diff --git a/fangija-zsyf/.gitignore b/fangija-zsyf/.gitignore new file mode 100644 index 0000000..ab1dde9 --- /dev/null +++ b/fangija-zsyf/.gitignore @@ -0,0 +1,35 @@ +# maven ignore +unpackage/ +*.apk + +target/ +*.jar +*.war +*.zip +*.tar +*.tar.gz + +# eclipse ignore +.settings/ +.project +.classpath + +# idea ignore +.idea/ +*.ipr +*.iml +*.iws + +# temp ignore +*.log +*.cache +*.diff +*.patch +*.tmp +*.java~ +*.properties~ +*.xml~ + +# system ignore +.DS_Store +Thumbs.db diff --git a/fangija-zsyf/about.html b/fangija-zsyf/about.html new file mode 100644 index 0000000..00496e4 --- /dev/null +++ b/fangija-zsyf/about.html @@ -0,0 +1,196 @@ + + + + + + + + Hello H5+ + + + + + + + +
+ +

HTML5中国产业联盟,简称“HTML5+ 联盟”,是为了更好的推进HTML5的商用、更好的为HTML5开发者服务而由产业链主流厂商共同组成的一个联盟。
+   HTML5+规范的愿景:根据开发者需求,为其提供增强的功能、性能扩展规范。方便开发者开发跨平台的app,并接近原生的功能和性能。 +

+
+ +
+ +
+ + + \ No newline at end of file diff --git a/fangija-zsyf/audio/friendship.mp3 b/fangija-zsyf/audio/friendship.mp3 new file mode 100644 index 0000000..4f0cdd6 Binary files /dev/null and b/fangija-zsyf/audio/friendship.mp3 differ diff --git a/fangija-zsyf/audio/shake.wav b/fangija-zsyf/audio/shake.wav new file mode 100644 index 0000000..a353d66 Binary files /dev/null and b/fangija-zsyf/audio/shake.wav differ diff --git a/fangija-zsyf/cardInfoPlaceholderImg.png b/fangija-zsyf/cardInfoPlaceholderImg.png new file mode 100644 index 0000000..8b65c49 Binary files /dev/null and b/fangija-zsyf/cardInfoPlaceholderImg.png differ diff --git a/fangija-zsyf/city.html b/fangija-zsyf/city.html new file mode 100644 index 0000000..3870a14 --- /dev/null +++ b/fangija-zsyf/city.html @@ -0,0 +1,887 @@ + + + + \ No newline at end of file diff --git a/fangija-zsyf/config.js b/fangija-zsyf/config.js new file mode 100644 index 0000000..ce2d4c9 --- /dev/null +++ b/fangija-zsyf/config.js @@ -0,0 +1,11 @@ +/**服务端地址**/ +var BASE_PATH = "http://youfang.fangjia.com"; +//var BASE_PATH = "http://192.168.10.128:8084"; +//var BASE_PATH = "http://192.168.10.47:8086"; +//var BASE_PATH = "http://192.168.10.161:8084"; +//var BASE_PATH = "http://192.168.10.47:8086"; +//var BASE_PATH = "http://192.168.10.161:8084"; +//var BASE_PATH = "http://192.168.10.53:8084"; +//var BASE_PATH = "http://192.168.10.171:8084"; +/**是否显示过启动页面**/ +var lauchFlag = false; \ No newline at end of file diff --git a/fangija-zsyf/css/city.css b/fangija-zsyf/css/city.css new file mode 100644 index 0000000..6873cd2 --- /dev/null +++ b/fangija-zsyf/css/city.css @@ -0,0 +1,48 @@ +@charset "utf-8"; +/* CSS Document */ + +/* 城市弹层 */ +.container{width:100%;position:absolute;top:66px;left:0;} +#cityContainer{background:#fff;} +.letter{background:#fff;overflow:hidden;line-height:0.9rem;font-size:0.5rem;position:absolute;top:45px;right:0;text-align:center;} +.letter ul{list-style-type:none;padding:0;} +.letter ul li a{text-decoration:none;font-size:0.7rem;line-height:0.9rem;display:block;} +.city{width:90%;background:#fff;overflow:hidden;padding:0 0.75rem;} +.city-list{width:100%;overflow:hidden;} +.city-list .city-letter{color:#999;font-size:0.8rem;display:inline-block;padding-top:0.75rem;padding-bottom:0.5rem;border-bottom:1px solid #e7e7e7;width:100%;} +.city-list p{width:95%;border-bottom:1px solid #e7e7e7;padding:0.75rem 0;margin:0;color:#333;cursor:pointer;} + + +.cityGPS{padding:0 0.75rem;border-bottom:solid 1px #d7d7d7;} +.cityGPS .city-list01{overflow:hidden;} +.cityGPS .city-list01 p{float:left;margin:0.5rem 0;} +.cityGPS .city-list01 small{color:#999;margin:0.62rem 0;float:right;} + +.cityHot{background:#f3f3f3;padding:10px 0;} +.city-list01 span{margin-left:0.75rem;display:block;font-size:0.7rem;color:#999;} +.city-list01 div{overflow:hidden;margin-left:10px;} +.city-list01 div p{width:27%;background:#fff;border:solid 1px #d7d7d7;border-radius:2px;float:left;margin:5px;text-align:center;line-height:34px;font-size:0.75rem;position:relative;} +.collectionCity .icon-collection03{width:14px;height:14px;background:url(../images/icon-collection02.png) no-repeat center center;background-size:100%;position:absolute;right:5px;top:9px;} +.collectionCity.active .icon-collection03,.collectionCity:active .icon-collection03{background:url(../images/icon-collection03a.png) no-repeat center center;background-size:100%;} + +/* +.city01{background:#fff;padding:10px 0;} +.city01 .city-list01{margin-bottom:0.5rem;} +.city01 .city-list01 div p{width:22%;} +.city01 .collectionCity .icon-collection03{right:1px;} +*/ + +.city .collectionCity .icon-collection03{background:url(../images/icon-collection02.png) no-repeat center center;background-size:100%;position:static;display:inline-block;vertical-align:-1px;margin-left:0.3rem;} + +.popup-about01 .content-block01{margin:0;top:66px;z-index:1;} +.popup-about01 .container{top:2rem;} +.popup-about01 .buttons-tab{top:66px;} +.popup-about01 .bar .button{top:0;} + + +/* 自适应 */ +@media(max-width:320px){ + .letter ul li a{line-height:0.8rem;} + .city01 .city-list01 div p{width:21%;} + .city01 .city-list01 div p.word5{font-size:0.6rem;} +} diff --git a/fangija-zsyf/css/common.css b/fangija-zsyf/css/common.css new file mode 100644 index 0000000..120945b --- /dev/null +++ b/fangija-zsyf/css/common.css @@ -0,0 +1,194 @@ +* { + -webkit-user-select: none; + -ms-touch-select: none; +/* + -ms-touch-action: none; +*/ +} +html { + width: 100%; + height: 100%; +} +body { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + font-family: Arial; + font-size:16px; + color: #6c6c6c; + -webkit-touch-callout:none; + -webkit-tap-highlight-color:rgba(0,0,0,0); + -webkit-text-size-adjust:none; +} +header { + width: 100%; + height: 44px; + position: fixed; + top: 0; + left: 0; + font-size: 17px; + text-align: center; + line-height: 44px; + background: #D74B28; + /*background: -webkit-linear-gradient(top,rgba(215,75,40,1),rgba(215,75,40,0.8));*/ + z-index: 9999; + /*border-bottom: 1px solid rgba(215,75,40,0.8);*/ + -ms-touch-action: none; +} +.nvbt { + width:15%; + height:100%; + float:left; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; +} +.nvbt:active { + background-color: rgba(170,170,170,0.1); +} +.nvtt { + width: 70%; + height: 100%; + color: #cccccc; + float: left; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; +} +.content { + text-align: center; + padding-top: 44px; +} +.scontent { + width: 100%; + position: fixed; + top: 44px; + bottom: 0px; + text-align: center; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + -ms-touch-action: pan-y cross-slide-y; + -ms-scroll-chaining: none; + -ms-scroll-limit: 0 50 0 50; +} +.dcontent { + text-align: center; + padding-top: 44px; + padding-bottom: 80px; +} +.sdcontent { + width: 100%; + position: fixed; + top: 44px; + bottom: 80px; + text-align: center; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + -ms-touch-action: pan-y cross-slide-y; + -ms-scroll-chaining: none; + -ms-scroll-limit: 0 50 0 50; +} +.heading { + margin:0 1em; + text-align:left; +} +.des { + padding: 0 1em; + text-align:left; + text-indent: 2em; + word-break: break-all; +} +.logo { + width: 100%; + text-align: center; +} +.button { + font-size: 18px; + font-weight: normal; + text-decoration: none; + display: block; + text-align: center; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + color: #FFF; + background-color: #FFCC33; + border: 1px solid #ECB100; + padding: .5em 0em; + margin: .5em .7em; + -webkit-border-radius: 5px; + border-radius: 5px; +} +.button:active { + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); +} +.button-waring { + color: #666; + background-color: #ebebeb; + border-color: #e0e0e0; +} +.button-select { + font-size: 14px; + background-color: #CCCCCC; + border: 0; + -webkit-border-radius: 2px; + border-radius: 2px; +} +.dlist { + padding: 0px; + margin: 1em; + background: #fff; + border: 1px solid #ddd; + -webkit-border-radius: 3px; + border-radius: 3px; +} +.ditem { + overflow: hidden; + list-style-type: none; + font-size: 1em; + padding: 1em; + border-bottom: inset 1px #ebebeb; + vertical-align: middle; +} +.ditem:active { + background: #f4f4f4; +} +.ditem:last-child { + border-bottom: inset 0px #ebebeb; +} +.ditem-empty { + overflow: hidden; + list-style-type: none; + font-size: 1em; + padding: 1em; + vertical-align: middle; +} +#output { + height: 64px; + position: fixed; + left: 0; + right: 0; + bottom: 0; + color: #f00; + background: #FFF; + font-size: 12px; + line-height: 16px; + word-break: break-all; + z-index: 6666; + padding: 8px 16px; + overflow-x: hidden; + overflow-y: scroll; + border-top: 2px solid #AAA; + -webkit-overflow-scrolling: touch; +} +.iback { + background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAACcklEQVR4nO3a0XESURiG4TeO99iBWoGZ+RvADtKBpAPtwBLsANJBrEAs4MyYDmIHSQXkgk0mMLK7ILt8/+F778ici394OGfDsher1Qqn05tTD+A2M4hYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYb089wNCVUq6Ay+blfUQsTjhOZxc1P9tbSlkAX7b+/C0ifpxgnF5Ve2TtwAD4OvIoe1UlSAsGwPsRR9m76kA6MAD+jjTKQVUF0gMD4HaEUQ6umot6T4ybiJgNP83hVbFDasGACnZIT4yfEXE1wjj/Xeod0hPjDpgNPsyRSguyB8Y0Ih6Gn+g4pQSpFQMSgtSMAclAaseARCDngAFJQM4FAxKAnBMGiH8xLKVMgV89ln6MiPthpxkn6R0SEUvgusfSZSnlsnuZftI75LlSygyYdyx7ZH1s/Rl+ouFKAQIvx9ctMGlZlh4lDQhAcywtqRhF+hqyXfMmT1m/6buasL6mzMaY6dilAoENlLuWZRNgnhEl1ZH1ulLKO9bH16eOpdfqz2K9Lt0Oea75EjilfadAsp2SFgQ2UH53LJ2XUr4PPtARSntkbVfL7+rVgEBvlM/NHQDJUh9Z2zWf/puOZbPhJzm8qkDgBaXt/teHcSY5rOpAAJp/c/vclJSrShDYifKI+NPvVV3U/1VzU3LavFyo/25SPUi2qj2ysmYQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsZ4Ak9fPFwUy/HsAAAAASUVORK5CYII=); + background-size: 50px 44px; +} +.idoc { + background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAAC2klEQVR4nO3bMU9TURjG8T9qIpskDjqYUAejm5B3MS4yOJoUNzd0dCJ+Av0IMrrVTSfK5oiT05vAJG64OUp0carDOdBbjLWBYp+W55fckHC5Nyf8c+5pk3Pner0epuPCpAdggxxEjIOIcRAxDiLGQcQ4iBgHEeMgYhxEjIOIcRAxDiLGQcQ4iBgHEeMgYhxEjIOIcRAxDiLGQcQ4iBgHEXNp0gMYVWY+BV4DO0AX2I6InYkO6gzMqe9czMwFSog2JcQqsFBPfwW2gW5EdCcywDGTDpKZS0AH6AGPgW/APeAi8AhYAZYal2zRD7T//0Y6PrJBGo+oTeAFME+ZHdfqnxwA+8AP4EY9t8Lg7Dl8tE3N7JEMkpkdYA14FhGdzGwBT4DLQy77Qgl0FXhICdSq5w6oM4cSaH/8ox4P1UV9DXhLWcABrgCfKf/ghb9cc7seUOI8B34CQZk5q5R1iMzcpQTqqH0wUJ0hzUEdLdz15zywSIlzZ4Tb/QL2KLPnFnCfxuyJiLlxjHlcpiHIcQMLd2YuUsK0gOsj3P4rJdAncJCR/CNI08DCnZnzlMdWi+GPN4BXoBdk2r+pLwLrwGaN+A5YBnYjYgN4A3ygzIipoLqon1SbPxfubkS8r797ObmhjWbWgjTdrcc6IPVYGmbaH1kzx0HEOIgYBxHjIGIcRIyDiHEQMQ4ixkHEOIgYBxHjIGIcRIyDiHEQMQ4ixkHEOIgYBxHjIGJUgyzTfznnXJHcBlQ3QO8A1J3vbfobpsfp+5jvd2qSQZrqqwMb9SAz2/TfBWmd8LZ7lFnoIKcVEVuUDdeHb1gdBloadl3DdkR8PKPhnZrkZuuTqO8iNmfP0UZrtQ3Vw8xMkOMy8wElzmpE3Jz0eEY1s0GmlerH3nPLQcQ4iBgHEeMgYhxEjIOIcRAxDiLGQcQ4iBgHEeMgYhxEjIOIcRAxDiLGQcQ4iBgHEeMgYhxEjIOI+Q2gWbiBmTXKQQAAAABJRU5ErkJggg==); + background-size: 50px 44px; +} \ No newline at end of file diff --git a/fangija-zsyf/css/light7-swiper.css b/fangija-zsyf/css/light7-swiper.css new file mode 100644 index 0000000..f2108bc --- /dev/null +++ b/fangija-zsyf/css/light7-swiper.css @@ -0,0 +1,857 @@ +/*! + * ===================================================== + * light7 V0.4.3 - http://light7.org/ + * + * ===================================================== + */ + +/*.hairline(@position, @color) when (@position = top) { + &:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: @color; + display: block; + z-index: 15; + transform-origin: 50% 0%; + @media only screen and (-webkit-min-device-pixel-ratio: 2) { + transform: scaleY(0.5); + } + @media only screen and (-webkit-min-device-pixel-ratio: 3) { + transform: scaleY(0.33); + } + } +} +.hairline(@position, @color) when (@position = left) { + &:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + width: 1px; + height: 100%; + background-color: @color; + display: block; + z-index: 15; + transform-origin: 0% 50%; + @media only screen and (-webkit-min-device-pixel-ratio: 2) { + transform: scaleY(0.5); + } + @media only screen and (-webkit-min-device-pixel-ratio: 3) { + transform: scaleY(0.33); + } + } +} +.hairline(@position, @color) when (@position = bottom) { + &:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: @color; + display: block; + z-index: 15; + transform-origin: 50% 100%; + @media only screen and (-webkit-min-device-pixel-ratio: 2) { + transform: scaleY(0.5); + } + @media only screen and (-webkit-min-device-pixel-ratio: 3) { + transform: scaleY(0.33); + } + } +} +.hairline(@position, @color) when (@position = right) { + &:after { + content: ''; + position: absolute; + right: 0; + top: 0; + left: auto; + bottom: auto; + width: 1px; + height: 100%; + background-color: @color; + display: block; + z-index: 15; + transform-origin: 100% 50%; + @media only screen and (-webkit-min-device-pixel-ratio: 2) { + transform: scaleY(0.5); + } + @media only screen and (-webkit-min-device-pixel-ratio: 3) { + transform: scaleY(0.33); + } + } +} +// For right and bottom +.hairline-remove(@position) when not (@position = left) and not (@position = top) { + &:after { + display: none; + } +} +// For left and top +.hairline-remove(@position) when not (@position = right) and not (@position = bottom) { + &:before { + display: none; + } +} +// For right and bottom +.hairline-color(@position, @color) when not (@position = left) and not (@position = top) { + &:after { + background-color: @color; + } +} +// For left and top +.hairline-color(@position, @color) when not (@position = right) and not (@position = bottom) { + &:before { + background-color: @color; + } +}*/ +/*.transition(@d) { + -webkit-transition-duration: @d; + transition-duration: @d; +} +.delay(@d) { + -webkit-transition-delay: @d; + transition-delay: @d; +} +.transform(@t) { + -webkit-transform: @t; + transform: @t; +} +.transform-origin(@to) { + -webkit-transform-origin: @to; + transform-origin: @to; +} +.translate3d(@x:0, @y:0, @z:0) { + -webkit-transform: translate3d(@x,@y,@z); + transform: translate3d(@x,@y,@z); +} +.animation(@a) { + -webkit-animation: @a; + animation: @a; +} +.border-box(){ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.box-shadow(@bs) { + -webkit-box-shadow: @bs; + box-shadow: @bs; +} +.animation-name(@name) { + -webkit-animation-name: @name; + -moz-animation-name: @name; + animation-name: @name; +} +.animation-duration(@duration) { + -webkit-animation-duration: @duration; + -moz-animation-duration: @duration; + animation-duration: @duration; +} +.animation-direction(@direction) { + -webkit-animation-direction: @direction; + -moz-animation-direction: @direction; + animation-direction: @direction; +} +*/ +/* === Photo Browser === */ +.photo-browser { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 10500; +} +.photo-browser .bar-tab .tab-item .icon { + width: 14px; + height: 14px; + margin-top: -5px; +} +.photo-browser .bar-tab ~ .photo-browser-captions { + bottom: 52px; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.photo-browser.photo-browser-in { + display: block; + -webkit-animation: photoBrowserIn 400ms forwards; + -o-animation: photoBrowserIn 400ms forwards; + animation: photoBrowserIn 400ms forwards; +} +.photo-browser.photo-browser-out { + display: block; + -webkit-animation: photoBrowserOut 400ms forwards; + -o-animation: photoBrowserOut 400ms forwards; + animation: photoBrowserOut 400ms forwards; +} +html.with-statusbar-overlay .photo-browser { + height: -webkit-calc(100% - 1rem); + height: calc(100% - 1rem); + top: 1rem; +} +.popup > .photo-browser .navbar, +body > .photo-browser .navbar, +.popup > .photo-browser .toolbar, +body > .photo-browser .toolbar { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.photo-browser .page[data-page="photo-browser-slides"] { + background: none; +} +.photo-browser .page { + -moz-box-sizing: border-box; + box-sizing: border-box; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background: #efeff4; +} +.photo-browser .view { + overflow: hidden; + -moz-box-sizing: border-box; + box-sizing: border-box; + position: relative; + width: 100%; + height: 100%; + z-index: 5000; +} +.page[data-page="photo-browser-slides"] .toolbar a { + color: #4cd964; +} +.photo-browser-popup { + background: none; +} +.photo-browser .navbar, +.view[data-page="photo-browser-slides"] .navbar, +.photo-browser .toolbar, +.view[data-page="photo-browser-slides"] .toolbar { + background: rgba(247, 247, 247, 0.95); + -webkit-transition: 400ms; + -o-transition: 400ms; + transition: 400ms; +} +.view[data-page="photo-browser-slides"] .page[data-page="photo-browser-slides"] .navbar, +.view[data-page="photo-browser-slides"] .page[data-page="photo-browser-slides"] .toolbar { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.photo-browser-exposed .navbar, +.photo-browser-exposed .toolbar { + opacity: 0; + visibility: hidden; + pointer-events: none; +} +.photo-browser-exposed .photo-browser-swiper-container { + background: #000; +} +.photo-browser-of { + margin: 0 0.25rem; +} +.photo-browser-captions { + pointer-events: none; + position: absolute; + left: 0; + width: 100%; + bottom: 0; + z-index: 10; + opacity: 1; + -webkit-transition: 400ms; + -o-transition: 400ms; + transition: 400ms; +} +.photo-browser-captions.photo-browser-captions-exposed { + opacity: 0; +} +.toolbar ~ .photo-browser-captions { + bottom: 2.2rem; + -webkit-transform: translate3d(0, 0rem, 0); + transform: translate3d(0, 0rem, 0); +} +.photo-browser-exposed .toolbar ~ .photo-browser-captions { + -webkit-transform: translate3d(0, 2.2rem, 0); + transform: translate3d(0, 2.2rem, 0); +} +.toolbar ~ .photo-browser-captions.photo-browser-captions-exposed { + transformt: ranslate3d(0, 0rem, 0); +} +.photo-browser-caption { + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: 300ms; + -o-transition: 300ms; + transition: 300ms; + position: absolute; + bottom: 0; + left: 0; + opacity: 0; + padding: 0.2rem 0.25px; + width: 100%; + text-align: center; + color: #fff; + background: rgba(0, 0, 0, 0.8); +} +.photo-browser-caption:empty { + display: none; +} +.photo-browser-caption.photo-browser-caption-active { + opacity: 1; +} +.photo-browser-captions-light .photo-browser-caption { + background: rgba(255, 255, 255, 0.8); + color: #3d4145; +} +.photo-browser-exposed .photo-browser-caption { + color: #fff; + background: rgba(0, 0, 0, 0.8); +} +.photo-browser-swiper-container { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: hidden; + background: #fff; + -webkit-transition: 400ms; + -o-transition: 400ms; + transition: 400ms; +} +.photo-browser-swiper-wrapper { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + padding: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; +} +.photo-browser-link-inactive { + opacity: 0.3; +} +.photo-browser-slide { + width: 100%; + height: 100%; + position: relative; + overflow: hidden; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.photo-browser-slide.transitioning { + -webkit-transition: 400ms; + -o-transition: 400ms; + transition: 400ms; +} +.photo-browser-slide span.photo-browser-zoom-container { + width: 100%; + text-align: center; + display: none; +} +.photo-browser-slide img { + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; + display: none; +} +.photo-browser-slide.swiper-slide-active span.photo-browser-zoom-container, +.photo-browser-slide.swiper-slide-next span.photo-browser-zoom-container, +.photo-browser-slide.swiper-slide-prev span.photo-browser-zoom-container { + display: block; +} +.photo-browser-slide.swiper-slide-active img, +.photo-browser-slide.swiper-slide-next img, +.photo-browser-slide.swiper-slide-prev img { + display: inline; +} +.photo-browser-slide.swiper-slide-active.photo-browser-slide-lazy .preloader, +.photo-browser-slide.swiper-slide-next.photo-browser-slide-lazy .preloader, +.photo-browser-slide.swiper-slide-prev.photo-browser-slide-lazy .preloader { + display: block; +} +.photo-browser-slide iframe { + width: 100%; + height: 100%; +} +.photo-browser-slide .preloader { + display: none; + position: absolute; + width: 2.1rem; + height: 2.1rem; + margin-left: -2.1rem; + margin-top: -2.1rem; + left: 50%; + top: 50%; +} +.photo-browser-dark .navbar, +.photo-browser-dark .toolbar { + background: rgba(30, 30, 30, 0.8); + color: #fff; +} +.photo-browser-dark .navbar:before, +.photo-browser-dark .toolbar:before { + display: none; +} +.photo-browser-dark .navbar:after, +.photo-browser-dark .toolbar:after { + display: none; +} +.photo-browser-dark .navbar a, +.photo-browser-dark .toolbar a { + color: #fff; +} +.photo-browser-dark .photo-browser-swiper-container { + background: #000; +} +@-webkit-keyframes photoBrowserIn { + 0% { + -webkit-transform: translate3d(0, 0, 0) scale(0.5); + transform: translate3d(0, 0, 0) scale(0.5); + opacity: 0; + } + 100% { + -webkit-transform: translate3d(0, 0, 0) scale(1); + transform: translate3d(0, 0, 0) scale(1); + opacity: 1; + } +} +@-o-keyframes photoBrowserIn { + 0% { + transform: translate3d(0, 0, 0) scale(0.5); + opacity: 0; + } + 100% { + transform: translate3d(0, 0, 0) scale(1); + opacity: 1; + } +} +@keyframes photoBrowserIn { + 0% { + -webkit-transform: translate3d(0, 0, 0) scale(0.5); + transform: translate3d(0, 0, 0) scale(0.5); + opacity: 0; + } + 100% { + -webkit-transform: translate3d(0, 0, 0) scale(1); + transform: translate3d(0, 0, 0) scale(1); + opacity: 1; + } +} +@-webkit-keyframes photoBrowserOut { + 0% { + -webkit-transform: translate3d(0, 0, 0) scale(1); + transform: translate3d(0, 0, 0) scale(1); + opacity: 1; + } + 100% { + -webkit-transform: translate3d(0, 0, 0) scale(0.5); + transform: translate3d(0, 0, 0) scale(0.5); + opacity: 0; + } +} +@-o-keyframes photoBrowserOut { + 0% { + transform: translate3d(0, 0, 0) scale(1); + opacity: 1; + } + 100% { + transform: translate3d(0, 0, 0) scale(0.5); + opacity: 0; + } +} +@keyframes photoBrowserOut { + 0% { + -webkit-transform: translate3d(0, 0, 0) scale(1); + transform: translate3d(0, 0, 0) scale(1); + opacity: 1; + } + 100% { + -webkit-transform: translate3d(0, 0, 0) scale(0.5); + transform: translate3d(0, 0, 0) scale(0.5); + opacity: 0; + } +} +/* === Swiper === */ +.swiper-container { + margin: 0 auto; + position: relative; + overflow: hidden; + padding-bottom: 30px; + /* Fix of Webkit flickering */ + z-index: 1; +} +.swiper-container-no-flexbox .swiper-slide { + float: left; +} +.swiper-container-vertical > .swiper-wrapper { + -webkit-box-orient: vertical; + -ms-flex-direction: column; + -webkit-flex-direction: column; + flex-direction: column; +} +.swiper-wrapper { + position: relative; + width: 100%; + height: 100%; + z-index: 1; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-transform-style: preserve-3d; + -ms-transform-style: preserve-3d; + transform-style: preserve-3d; + -webkit-transition-property: -webkit-transform; + -o-transition-property: -o-transform; + transition-property: transform; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.swiper-container-android .swiper-slide, +.swiper-wrapper { + -webkit-transform: translate3d(0px, 0, 0); + -o-transform: translate(0px, 0px); + -ms-transform: translate3d(0px, 0, 0); + transform: translate3d(0px, 0, 0); +} +.swiper-container-multirow > .swiper-wrapper { + -webkit-box-lines: multiple; + -moz-box-lines: multiple; + -ms-fles-wrap: wrap; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; +} +.swiper-container-free-mode > .swiper-wrapper { + -webkit-transition-timing-function: ease-out; + -o-transition-timing-function: ease-out; + transition-timing-function: ease-out; + margin: 0 auto; +} +.swiper-slide { + -webkit-transform-style: preserve-3d; + -ms-transform-style: preserve-3d; + transform-style: preserve-3d; + -webkit-flex-shrink: 0; + -ms-flex: 0 0 auto; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + width: 100%; + height: 100%; + position: relative; +} +/* a11y */ +.swiper-container .swiper-notification { + position: absolute; + left: 0; + top: 0; + pointer-events: none; + opacity: 0; + z-index: -1000; +} +/* IE10 Windows Phone 8 Fixes */ +.swiper-wp8-horizontal { + -ms-touch-action: pan-y; + touch-action: pan-y; +} +.swiper-wp8-vertical { + -ms-touch-action: pan-x; + touch-action: pan-x; +} +/* Arrows */ +.swiper-button-prev, +.swiper-button-next { + position: absolute; + top: 50%; + width: 27px; + height: 44px; + margin-top: -22px; + z-index: 10; + cursor: pointer; + background-size: 27px 44px; + background-position: center; + background-repeat: no-repeat; +} +.swiper-button-prev.swiper-button-disabled, +.swiper-button-next.swiper-button-disabled { + opacity: 0.35; + cursor: auto; + pointer-events: none; +} +.swiper-button-prev, +.swiper-container-rtl .swiper-button-next { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E"); + left: 10px; + right: auto; +} +.swiper-button-next, +.swiper-container-rtl .swiper-button-prev { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E"); + right: 10px; + left: auto; +} +/* Pagination Styles */ +.swiper-pagination { + position: absolute; + text-align: center; + -webkit-transition: 300ms; + -o-transition: 300ms; + transition: 300ms; + -webkit-transform: translate3d(0, 0, 0); + -ms-transform: translate3d(0, 0, 0); + -o-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + z-index: 10; +} +.swiper-pagination.swiper-pagination-hidden { + opacity: 0; +} +.swiper-pagination-bullet { + width: 8px; + height: 8px; + display: inline-block; + border-radius: 100%; + background: #000; + opacity: 0.2; +} +.swiper-pagination-bullet-active { + opacity: 1; + background: #007aff; +} +.swiper-container-vertical > .swiper-pagination { + right: 10px; + top: 50%; + -webkit-transform: translate3d(0px, -50%, 0); + -o-transform: translate(0px, -50%); + -ms-transform: translate3d(0px, -50%, 0); + transform: translate3d(0px, -50%, 0); +} +.swiper-container-vertical > .swiper-pagination .swiper-pagination-bullet { + margin: 5px 0; + display: block; +} +.swiper-container-horizontal > .swiper-pagination { + bottom: 10px; + left: 0; + width: 100%; +} +.swiper-container-horizontal > .swiper-pagination .swiper-pagination-bullet { + margin: 0 5px; +} +/* 3D Container */ +.swiper-container-3d { + -webkit-perspective: 1200px; + -o-perspective: 1200px; + perspective: 1200px; +} +.swiper-container-3d .swiper-wrapper, +.swiper-container-3d .swiper-slide, +.swiper-container-3d .swiper-slide-shadow-left, +.swiper-container-3d .swiper-slide-shadow-right, +.swiper-container-3d .swiper-slide-shadow-top, +.swiper-container-3d .swiper-slide-shadow-bottom, +.swiper-container-3d .swiper-cube-shadow { + -webkit-transform-style: preserve-3d; + -ms-transform-style: preserve-3d; + transform-style: preserve-3d; +} +.swiper-container-3d .swiper-slide-shadow-left, +.swiper-container-3d .swiper-slide-shadow-right, +.swiper-container-3d .swiper-slide-shadow-top, +.swiper-container-3d .swiper-slide-shadow-bottom { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 10; +} +.swiper-container-3d .swiper-slide-shadow-left { + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0))); + /* Safari 4+, Chrome */ + background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Chrome 10+, Safari 5.1+, iOS 5+ */ + /* Firefox 3.6-15 */ + background-image: -o-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Opera 11.10-12.00 */ + background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Firefox 16+, IE10, Opera 12.50+ */ +} +.swiper-container-3d .swiper-slide-shadow-right { + background-image: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0))); + /* Safari 4+, Chrome */ + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Chrome 10+, Safari 5.1+, iOS 5+ */ + /* Firefox 3.6-15 */ + background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Opera 11.10-12.00 */ + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Firefox 16+, IE10, Opera 12.50+ */ +} +.swiper-container-3d .swiper-slide-shadow-top { + background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0))); + /* Safari 4+, Chrome */ + background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Chrome 10+, Safari 5.1+, iOS 5+ */ + /* Firefox 3.6-15 */ + background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Opera 11.10-12.00 */ + background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Firefox 16+, IE10, Opera 12.50+ */ +} +.swiper-container-3d .swiper-slide-shadow-bottom { + background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0))); + /* Safari 4+, Chrome */ + background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Chrome 10+, Safari 5.1+, iOS 5+ */ + /* Firefox 3.6-15 */ + background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Opera 11.10-12.00 */ + background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); + /* Firefox 16+, IE10, Opera 12.50+ */ +} +/* Coverflow */ +.swiper-container-coverflow .swiper-wrapper { + /* Windows 8 IE 10 fix */ + -ms-perspective: 1200px; +} +/* Fade */ +.swiper-container-fade.swiper-container-free-mode .swiper-slide { + -webkit-transition-timing-function: ease-out; + -o-transition-timing-function: ease-out; + transition-timing-function: ease-out; +} +.swiper-container-fade .swiper-slide { + pointer-events: none; +} +.swiper-container-fade .swiper-slide-active { + pointer-events: auto; +} +/* Cube */ +.swiper-container-cube { + overflow: visible; +} +.swiper-container-cube .swiper-slide { + pointer-events: none; + visibility: hidden; + -webkit-transform-origin: 0 0; + -ms-transform-origin: 0 0; + -o-transform-origin: 0 0; + transform-origin: 0 0; + -webkit-backface-visibility: hidden; + -ms-backface-visibility: hidden; + backface-visibility: hidden; + width: 100%; + height: 100%; +} +.swiper-container-cube.swiper-container-rtl .swiper-slide { + -webkit-transform-origin: 100% 0; + -ms-transform-origin: 100% 0; + -o-transform-origin: 100% 0; + transform-origin: 100% 0; +} +.swiper-container-cube .swiper-slide-active, +.swiper-container-cube .swiper-slide-next, +.swiper-container-cube .swiper-slide-prev, +.swiper-container-cube .swiper-slide-next + .swiper-slide { + pointer-events: auto; + visibility: visible; +} +.swiper-container-cube .swiper-cube-shadow { + position: absolute; + left: 0; + bottom: 0px; + width: 100%; + height: 100%; + background: #000; + opacity: 0.6; + -webkit-filter: blur(50px); + filter: blur(50px); +} +.swiper-container-cube.swiper-container-vertical .swiper-cube-shadow { + z-index: 0; +} +/* Scrollbar */ +.swiper-scrollbar { + border-radius: 10px; + position: relative; + -ms-touch-action: none; + background: rgba(0, 0, 0, 0.1); +} +.swiper-container-horizontal > .swiper-scrollbar { + position: absolute; + left: 1%; + bottom: 3px; + z-index: 50; + height: 5px; + width: 98%; +} +.swiper-container-vertical > .swiper-scrollbar { + position: absolute; + right: 3px; + top: 1%; + z-index: 50; + width: 5px; + height: 98%; +} +.swiper-scrollbar-drag { + height: 100%; + width: 100%; + position: relative; + background: rgba(0, 0, 0, 0.5); + border-radius: 10px; + left: 0; + top: 0; +} +.swiper-scrollbar-cursor-drag { + cursor: move; +} +/* Preloader */ +.swiper-slide .preloader { + width: 42px; + height: 42px; + position: absolute; + left: 50%; + top: 50%; + margin-left: -21px; + margin-top: -21px; + z-index: 10; +} +.swiper-slide img { + display: block; +} diff --git a/fangija-zsyf/css/light7-swiper.min.css b/fangija-zsyf/css/light7-swiper.min.css new file mode 100644 index 0000000..807a268 --- /dev/null +++ b/fangija-zsyf/css/light7-swiper.min.css @@ -0,0 +1,115 @@ +/*! + * ===================================================== + * light7 V0.4.3 - http://light7.org/ + * + * ===================================================== + */ +.photo-browser{position:absolute;left:0;top:0;width:100%;height:100%;z-index:10500} +.photo-browser .bar-tab .tab-item .icon{width:14px;height:14px;margin-top:-5px} +.photo-browser .bar-tab~.photo-browser-captions{bottom:52px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} +.photo-browser.photo-browser-in{display:block;-webkit-animation:photoBrowserIn .4s forwards;-o-animation:photoBrowserIn .4s forwards;animation:photoBrowserIn .4s forwards} +.photo-browser.photo-browser-out{display:block;-webkit-animation:photoBrowserOut .4s forwards;-o-animation:photoBrowserOut .4s forwards;animation:photoBrowserOut .4s forwards} +html.with-statusbar-overlay .photo-browser{height:-webkit-calc(100% - 1rem);height:calc(100% - 1rem);top:1rem} +.popup>.photo-browser .navbar,.popup>.photo-browser .toolbar,body>.photo-browser .navbar,body>.photo-browser .toolbar{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} +.photo-browser .page[data-page=photo-browser-slides]{background:0 0} +.photo-browser .page{-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;background:#efeff4} +.photo-browser .view{overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;width:100%;height:100%;z-index:5000} +.page[data-page=photo-browser-slides] .toolbar a{color:#4cd964} +.photo-browser-popup{background:0 0} +.photo-browser .navbar,.photo-browser .toolbar,.view[data-page=photo-browser-slides] .navbar,.view[data-page=photo-browser-slides] .toolbar{background:rgba(247,247,247,.95);-webkit-transition:.4s;-o-transition:.4s;transition:.4s} +.view[data-page=photo-browser-slides] .page[data-page=photo-browser-slides] .navbar,.view[data-page=photo-browser-slides] .page[data-page=photo-browser-slides] .toolbar{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} +.photo-browser-exposed .navbar,.photo-browser-exposed .toolbar{opacity:0;visibility:hidden;pointer-events:none} +.photo-browser-exposed .photo-browser-swiper-container{background:#000} +.photo-browser-of{margin:0 .25rem} +.photo-browser-captions{pointer-events:none;position:absolute;left:0;width:100%;bottom:0;z-index:10;opacity:1;-webkit-transition:.4s;-o-transition:.4s;transition:.4s} +.photo-browser-captions.photo-browser-captions-exposed{opacity:0} +.toolbar~.photo-browser-captions{bottom:2.2rem;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} +.photo-browser-exposed .toolbar~.photo-browser-captions{-webkit-transform:translate3d(0,2.2rem,0);transform:translate3d(0,2.2rem,0)} +.toolbar~.photo-browser-captions.photo-browser-captions-exposed{transformt:ranslate3d(0,0,0)} +.photo-browser-caption{-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:.3s;-o-transition:.3s;transition:.3s;position:absolute;bottom:0;left:0;opacity:0;padding:.2rem .25px;width:100%;text-align:center;color:#fff;background:rgba(0,0,0,.8)} +.photo-browser-caption:empty{display:none} +.photo-browser-caption.photo-browser-caption-active{opacity:1} +.photo-browser-captions-light .photo-browser-caption{background:rgba(255,255,255,.8);color:#3d4145} +.photo-browser-exposed .photo-browser-caption{color:#fff;background:rgba(0,0,0,.8)} +.photo-browser-swiper-container{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;background:#fff;-webkit-transition:.4s;-o-transition:.4s;transition:.4s} +.photo-browser-swiper-wrapper{position:absolute;left:0;top:0;width:100%;height:100%;padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex} +.photo-browser-link-inactive{opacity:.3} +.photo-browser-slide{width:100%;height:100%;position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-moz-box-sizing:border-box;box-sizing:border-box} +.photo-browser-slide.transitioning{-webkit-transition:.4s;-o-transition:.4s;transition:.4s} +.photo-browser-slide span.photo-browser-zoom-container{width:100%;text-align:center;display:none} +.photo-browser-slide img{width:auto;height:auto;max-width:100%;max-height:100%;display:none} +.photo-browser-slide.swiper-slide-active span.photo-browser-zoom-container,.photo-browser-slide.swiper-slide-next span.photo-browser-zoom-container,.photo-browser-slide.swiper-slide-prev span.photo-browser-zoom-container{display:block} +.photo-browser-slide.swiper-slide-active img,.photo-browser-slide.swiper-slide-next img,.photo-browser-slide.swiper-slide-prev img{display:inline} +.photo-browser-slide.swiper-slide-active.photo-browser-slide-lazy .preloader,.photo-browser-slide.swiper-slide-next.photo-browser-slide-lazy .preloader,.photo-browser-slide.swiper-slide-prev.photo-browser-slide-lazy .preloader{display:block} +.photo-browser-slide iframe{width:100%;height:100%} +.photo-browser-slide .preloader{display:none;position:absolute;width:2.1rem;height:2.1rem;margin-left:-2.1rem;margin-top:-2.1rem;left:50%;top:50%} +.photo-browser-dark .navbar,.photo-browser-dark .toolbar{background:rgba(30,30,30,.8);color:#fff} +.photo-browser-dark .navbar:before,.photo-browser-dark .toolbar:before{display:none} +.photo-browser-dark .navbar:after,.photo-browser-dark .toolbar:after{display:none} +.photo-browser-dark .navbar a,.photo-browser-dark .toolbar a{color:#fff} +.photo-browser-dark .photo-browser-swiper-container{background:#000} +@-webkit-keyframes photoBrowserIn{0%{-webkit-transform:translate3d(0,0,0) scale(.5);transform:translate3d(0,0,0) scale(.5);opacity:0} +100%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1);opacity:1} +} +@-o-keyframes photoBrowserIn{0%{transform:translate3d(0,0,0) scale(.5);opacity:0} +100%{transform:translate3d(0,0,0) scale(1);opacity:1} +} +@keyframes photoBrowserIn{0%{-webkit-transform:translate3d(0,0,0) scale(.5);transform:translate3d(0,0,0) scale(.5);opacity:0} +100%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1);opacity:1} +} +@-webkit-keyframes photoBrowserOut{0%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1);opacity:1} +100%{-webkit-transform:translate3d(0,0,0) scale(.5);transform:translate3d(0,0,0) scale(.5);opacity:0} +} +@-o-keyframes photoBrowserOut{0%{transform:translate3d(0,0,0) scale(1);opacity:1} +100%{transform:translate3d(0,0,0) scale(.5);opacity:0} +} +@keyframes photoBrowserOut{0%{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1);opacity:1} +100%{-webkit-transform:translate3d(0,0,0) scale(.5);transform:translate3d(0,0,0) scale(.5);opacity:0} +} +.swiper-container{margin:0 auto;position:relative;overflow:hidden;padding-bottom:30px;z-index:1} +.swiper-container-no-flexbox .swiper-slide{float:left} +.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column} +.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-property:-webkit-transform;-o-transition-property:-o-transform;transition-property:transform;-moz-box-sizing:content-box;box-sizing:content-box} +.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0,0,0);-o-transform:translate(0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} +.swiper-container-multirow>.swiper-wrapper{-webkit-box-lines:multiple;-moz-box-lines:multiple;-ms-fles-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap} +.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto} +.swiper-slide{-webkit-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-flex-shrink:0;-ms-flex:0 0 auto;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative} +.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000} +.swiper-wp8-horizontal{-ms-touch-action:pan-y;touch-action:pan-y} +.swiper-wp8-vertical{-ms-touch-action:pan-x;touch-action:pan-x} +.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat} +.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none} +.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");left:10px;right:auto} +.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");right:10px;left:auto} +.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s;-o-transition:.3s;transition:.3s;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10} +.swiper-pagination.swiper-pagination-hidden{opacity:0} +.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2} +.swiper-pagination-bullet-active{opacity:1;background:#007aff} +.swiper-container-vertical>.swiper-pagination{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);-o-transform:translate(0,-50%);-ms-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)} +.swiper-container-vertical>.swiper-pagination .swiper-pagination-bullet{margin:5px 0;display:block} +.swiper-container-horizontal>.swiper-pagination{bottom:10px;left:0;width:100%} +.swiper-container-horizontal>.swiper-pagination .swiper-pagination-bullet{margin:0 5px} +.swiper-container-3d{-webkit-perspective:1200px;-o-perspective:1200px;perspective:1200px} +.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d} +.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10} +.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))} +.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))} +.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))} +.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))} +.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px} +.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out} +.swiper-container-fade .swiper-slide{pointer-events:none} +.swiper-container-fade .swiper-slide-active{pointer-events:auto} +.swiper-container-cube{overflow:visible} +.swiper-container-cube .swiper-slide{pointer-events:none;visibility:hidden;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;-o-transform-origin:0 0;transform-origin:0 0;-webkit-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;width:100%;height:100%} +.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;-o-transform-origin:100% 0;transform-origin:100% 0} +.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible} +.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px)} +.swiper-container-cube.swiper-container-vertical .swiper-cube-shadow{z-index:0} +.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)} +.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%} +.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%} +.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0} +.swiper-scrollbar-cursor-drag{cursor:move} +.swiper-slide .preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10} +.swiper-slide img{display:block} \ No newline at end of file diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css new file mode 100644 index 0000000..861cb4f --- /dev/null +++ b/fangija-zsyf/css/main.css @@ -0,0 +1,1423 @@ +@charset "utf-8"; +/* CSS Document */ +[v-cloak]{display:none;} +/* 公用 */ +*{font-size:16px;font-family:arial,"华文细黑";} +ul li{list-style:none;} +img{display:block;} +a{color:#F18D00;} +a:active{color:#F18D00;} +em{font-style:normal;color:#333;} +/* +em.up{color:#EB5F34;} +em.down{color:#88D053;} +*/ +.dn{display:none;} +.di{display:inline;} + +.content{background:#fff;color:#333;z-index:1;} +.content.f3{background:#f3f3f3;} +.popup{background:#f3f3f3;} +.popup-about02 .content{background:#fff;color:#333;z-index:1;} +.popup-about03 .content,.popup-about04 .content{background:none;} +.popup-about03 ul,.popup-about04 ul{margin:0 0.5rem;border:solid 1px #e6e6ea;border-radius:6px;} +.popup-about03 .list-block.list-block01,.popup-about04 .list-block.list-block01{margin-top:0;} +.popup-about03 .list-block ul:before,.popup-about04 .list-block ul:before{height:0;} +.popup-about03 .list-block ul:after,.popup-about04 .list-block ul:after{height:0;} + +/* 标题栏 */ +.page > header.bar{position:static;padding-left:0.75rem;padding-right:0.75rem;background:#fff;} +.page > header.barBorder{border-bottom:solid 1px #e7e7e7;} +.bar:after{height:0;} +.bar .button-nav{color:#999;} +.bar .button-nav.pull-left{margin-left:0;} +.bar .button-nav.pull-right{margin-right:0;} +.bar .icon.icon-logo{width:70px;height:20px;background:url(../images/icon-logo.png) no-repeat;background-size:100%;float:left;} +.bar .icon.icon-path{width:20px;height:4px;background:url(../images/icon-path.png) no-repeat;background-size:100%;float:right;} +.bar .icon.icon-path01{width:20px;height:4px;background:url(../images/icon-path01.png) no-repeat;background-size:100%;float:right;} +.bar .icon.icon-left{font-size:0.85rem;margin-left:-0.15rem;} +.title{color:#333;margin-left:-0.75rem;} + +/* 子导航 */ +.popover { + position: absolute; + top: 0; + right: 10px; + z-index: 11000; + display: none; + min-width: 8rem; + margin: 0; + background: rgba(255, 255, 255, .95); + border-radius: 0.2rem; + opacity: 0; + -webkit-transition-property: opacity; + -o-transition-property: opacity; + transition-property: opacity; + -webkit-transform: none; + -ms-transform: none; + -o-transform: none; + transform: none; +} +.popover.modal-in { + opacity: 1; + -webkit-transition-duration: 300ms; + -o-transition-duration: 300ms; + transition-duration: 300ms; +} +.popover .list-block { + margin: 0; + padding: 0 1rem; +} +.popover .list-block ul { + background: none; +} +.popover .list-block:first-child ul { + border-top: 0; + border-right: 0; + border-radius: .35rem .35rem 0 0; +} +.popover .list-block:first-child li:first-child a { + border-radius: .35rem .35rem 0 0; +} +.popover .list-block:last-child ul { + border-bottom: 0; + border-left: 0; + border-radius: 0 0 .35rem .35rem; +} +.popover .list-block:last-child li:last-child a { + border-radius: 0 0 .35rem .35rem; +} +.popover .list-block:first-child:last-child li:first-child:last-child a, +.popover .list-block:first-child:last-child ul:first-child:last-child { + border-radius: .35rem; +} +.popover .list-block + .list-block { + margin-top: 1.75rem; +} +.popover-angle { + position: absolute; + top: 0; + right: -1.3rem; + z-index: 100; + width: 1.3rem; + height: 1.3rem; + overflow: hidden; +} +.popover-angle:after { + position: absolute; + top: 0; + right: 0; + width: 1.3rem; + height: 1.3rem; + content: ' '; + background: rgba(255, 255, 255, .95); + border-radius: 0; + -webkit-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + transform: rotate(45deg); +} +.popover-angle.on-left { + right: -1.3rem; +} +.popover-angle.on-left:after { + top: 0; + right: .95rem; +} +.popover-angle.on-right { + right: 100%; +} +.popover-angle.on-right:after { + top: 0; + right: -.95rem; +} +.popover-angle.on-top { + top: -1.2rem; + right: 0; +} +.popover-angle.on-top:after { + top: 1rem; + right: 0; +} +.popover-angle.on-bottom { + top: 100%; + right: 0; +} +.popover-angle.on-bottom:after { + top: -.95rem; + right: 0; +} +.popover-inner { + overflow: auto; + -webkit-overflow-scrolling: touch; +} +.actions-popover .list-block + .list-block { + margin-top: 1rem; +} +.actions-popover .list-block ul { + background: #fff; +} +.actions-popover-label { + position: relative; + padding: .4rem .5rem; + font-size: .65rem; + line-height: 1.3; + color: #5f646e; + text-align: center; + border-bottom: 1px solid #d2d2d6; +} +.actions-popover-label:last-child { + border-bottom: 0; + border-left: 0; +} + +.popover .list-block .item-link.list-button{text-align:left;} +.popover .list-block ul:before,.popover .list-block ul:after{height:0;} +.popover .list-block .item-link.list-button{color:#333;} + +/* 工具栏 */ +.bar{background:#fff;} +.bar-tab .tab-item{color:#C3C0BC;} +.bar-tab .tab-item.active,.bar-tab .tab-item:active{color:#F18D00;} +.bar-tab .tab-item .icon{padding:0;font-size:1.05rem;} +.bar-tab:before{background-color:#e7e7e7;transform:scaleY(1);} +.bar-tab .tab-item .icon ~ .tab-label{top:0.05rem;} + +/* 首页 */ +.totalValue{padding:1rem 0;overflow:hidden;} +.totalValue div:first-child{float:left;margin-left:0.75rem;} +.totalValue div:last-child{float:right;margin-right:0.75rem;padding-top:0.9rem;overflow:hidden;width:100px;} +.totalValue p{color:#fff;margin:0;} +.totalValue p span{font-size:1.5rem;} +.totalValue p em{font-size:2.5rem;} +.totalValue p label{color:rgba(255,255,255,0.8);} +.totalValue a{color:rgba(255,255,255,0.8);line-height:1.5rem;border:solid 1px rgba(255,255,255,0.8);border-radius:0.2rem;padding:0 0.4rem;float:right;margin-top:1em;} +.totalValue a.open-preloader-title01{border:solid 1px rgba(255,255,255,0.8);text-decoration:none;padding:0.1rem 0.3rem;margin-top:0.9rem;} +.totalValue a.open-preloader-title01 i{width:8px;height:1.2rem;background:url(../images/arrow_check.png) no-repeat right center;background-size:100%;float:right;margin-left:0.3rem;} +.totalValue img{width:70px;height:100%;float:right;} + +.totalValue div.addPropertyBox{width:140px;margin:0 auto;float:none;} +.totalValue div.addPropertyBox .addProperty{width:140px;height:60px;background:rgba(255,255,255,0.2);border:dashed 1px #fff;border-radius:5px;font-size:1em;color:#fff;line-height:60px;text-decoration:none;display:block;float:none;margin-top:1.2rem;} +.totalValue div.addPropertyBox .addProperty i{float:left;width:20px;height:20px;margin-left:0.8rem;margin-right:0.5rem;} +.totalValue div.addPropertyBox + p{font-size:0.75rem;color:#fff;text-align:center;margin-top:0.85rem;} + +.totalValue01 div.addPropertyBox .addProperty{background:#fff;} +.totalValue01 div.addPropertyBox .addProperty i{float:left;width:20px;height:20px;margin-left:0.8rem;margin-right:0.5rem;} +.totalValue01 div.addPropertyBox + p{color:#999;} + +/* 块 */ +.content-block01{padding:0;} +.content-block > p{font-size:0.75rem;color:#999;} +.content-block > p label{font-size:0.85rem;color:#333;} +.content-block > p small{font-size:0.7rem;color:#666;} + +.priceRecovery{padding:0 1rem;padding-bottom:1rem;border-bottom:solid 1px #e7e7e7;} +.priceRecovery > p{text-align:center;} +.priceRecovery .col-50 .button{width:50%;margin:0 auto;border-color:#999;color:#333;} +.priceRecovery .col-50:first-child .button{float:right;} +.priceRecovery .col-50:last-child .button{float:left;} + +.content-block-title{color:#999;line-height:1.8rem;margin:0.2rem 0;margin-left:0.75rem;} +.content-block-title em{font-size:0.7rem;color:#EB5F34;} +.content-block-title .button{width:80px;float:right;margin-top:0.15rem;margin-right:0.75rem;padding:0;} +.content-block-title + .list-block, .content-block-title + .content-block, .content-block-title + .card{margin-top:0;margin-bottom:0;} + +/* 列表 */ +.list-block{margin:0;} +.list-block .item-content{min-height:auto;} +.list-block .item-content .item-inner01{background:none;padding-right:0.75rem;} +.list-block .list-container .item-title-row:first-child{margin-bottom:0.1rem;} + +.list-block .item-title{font-size:0.8rem;color:#333;} +.list-block .item-title.label{width:auto;font-size:0.8rem;color:#666;} +.list-block .item-title.label font{font-size:0.8rem;color:#333;} +.list-block .item-title label{font-size:0.8rem;color:#333;display:inline-block;vertical-align:top;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.list-block .item-title font{font-size:0.8rem;} +.list-block .item-title small{font-size:0.7rem;color:#999;} +.list-block .item-title span{font-size:0.7rem;color:#999;} +.list-block .item-title span.span01{font-size:0.7rem;color:#666;margin-left:0.3rem;} +.list-block .item-title input{display:inline-block;text-align:center;width:60px;border:solid 1px #e6e6ea;} +.list-block .item-title b{font-size:0.8rem;} +.list-block .item-title em{font-size:0.8rem;color:#EB5F34;} +.list-block .item-title .button.button-fill{display:inline-block;width:50px;height:24px;line-height:24px;margin-left:0.5rem;vertical-align:2px;} +.list-block .item-title.row{margin-left:0;width:100%;} +.list-block .item-title.row .col-50{margin-left:0;} +.list-block .item-title.row .col-50 p{margin:0.2rem 0;} +.list-block .item-title.row .col-50 p label{font-size:0.7rem;color:#999;vertical-align:middle;} +.list-block .item-title.row .col-50 p span{font-size:0.7rem;color:#333;margin-left:-5px;vertical-align:middle;} +.list-block .item-title.row .col-50 p span.span01{display:inline-block;max-width:160%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.list-block .item-title .tag small{font-size:80%;color:#F5A100;} +.icon-add{width:0.6rem;height:0.6rem;background:url(../images/icon-add.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;} + +.list-block .item-after{font-size:0.8rem;color:#333;} +.popup .list-block .item-after{font-size:0.75rem;line-height:2.4rem;} +.list-block .item-after span{font-size:0.7rem;color:#999;} +.list-block .item-after em{font-size:0.8rem;color:#EB5F34;} +.list-block .item-after font{font-size:0.7rem;color:#666;} +.list-block .item-after small{font-size:0.8rem;color:#999;} + +.list-block .item-subtitle{font-size:0.7rem;color:#999;} +.list-block .item-subtitle.row{width:100%;margin-left:0;} +.list-block .item-subtitle.row .col-50{width:50%;margin-left:0;} +.list-block .item-subtitle.row .col-100{margin-left:0;} +.list-block .item-subtitle span{display:inline-block;vertical-align:middle;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.7rem;color:#999;} +.list-block .item-subtitle label{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.list-block .item-subtitle small{font-size:0.65rem;color:#999;} +.list-block .item-subtitle em.em01{font-size:0.75rem;color:#F18D00;} +.list-block .item-subtitle em.em02{font-size:0.75rem;color:#EB5F34;} +.list-block .item-subtitle em.noData{font-size:0.75rem;color:#999;} +.list-block .item-subtitle div{font-size:0.7rem;} +.list-block .item-subtitle div.noData{color:#999;} +.list-block .item-subtitle div em{font-size:0.75rem;text-align:center;} +.list-block .item-subtitle div em strong{font-weight:normal;font-size:1.2rem;color:#EB5F34;} +.list-block .item-subtitle div em i{width:7px;height:10px;margin-left:0.2rem;} +.list-block .item-subtitle div label{display:block;font-size:0.7rem;color:#666;text-align:center;max-width:100%;} +.list-block .item-subtitle div p{margin-bottom:0;} +.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;} +.list-block .item-subtitle div.price em{font-size:0.8rem;color:#EB5F34;} +.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;} +.list-block .item-subtitle div.priceBox01 em{display:block;color:#333;} +.list-block .item-subtitle div .button{width:5rem;height:2.1rem;line-height:2rem;margin:0 auto;} +.list-block .item-subtitle .tag{margin-top:0.2rem;max-width:100%;} +.list-block .item-subtitle .tag small{font-size:80%;color:#F5A100;margin-left:0;margin-right:0.2rem;} +.list-block .item-subtitle .star{max-width:100%;} +.star{font-size:0.6rem;color:#666;} +.star:last-child{text-align:right;} +.star .icon{width:0.7rem;height:0.7rem;background:url(../images/icon-star.png) no-repeat center center;background-size:100%;margin-right:0.1rem;vertical-align:text-top;} +.star .icon-star01{background:url(../images/icon-star01.png) no-repeat center center;background-size:100%;} +.star .icon-star02{background:url(../images/icon-star02.png) no-repeat center center;background-size:100%;} + +.list-block .item-media{padding-top:0;padding-bottom:0;} +.list-block .item-inner .item-media{width:1.2rem;height:1.2rem;float:left;margin-right:0.2rem;} +.list-block .item-inner .item-media img{width:100%;} + +.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;} +.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;} +.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;} + +.list-block li.noData{padding:0.75rem;padding-top:1rem;} +.list-block li.noData img{margin:0 auto;} +.list-block li.noData p{color:#999;text-align:center;} +.list-block li.noData p a{text-decoration:underline;} + +.searchHistory{padding:0.75rem;padding-bottom:0.5rem;border-top:solid 1px #e7e7e7;font-size:0.75rem;color:#333;} +.icon-near{width:12px;height:16px;background:url(../images/icon-address.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.icon-history{width:15px;height:15px;background:url(../images/icon-history.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.searchHistory a{font-size:0.75rem;float:right;} +.clearHistory,.noHistory{color:#666;text-align:center;margin-top:10px;cursor:pointer;} +#clearSearchHistory{width:13px;height:14px;background:url(../images/icon-clear.png) no-repeat center center;background-size:100%;margin-top:0.2rem;} + +.popup-about02 .list-block.historyList{margin-top:-1px;} +.popup-about02 .list-block.historyList .searchHistory{padding-top:0;} +.newCss ul{padding:0.75rem;padding-top:0;padding-left:0.25rem;overflow:hidden;} +.newCss ul li{background:#F4F4F4;border-radius:0.16rem;display:inline-block;margin-left:0.5rem;margin-bottom:0.5rem;padding:0 0.5rem;line-height:1.5rem;font-size:0.65rem;color:#333;} +.newCss ul li span{font-size:0.65rem;color:#333;} +.newCss ul li a{font-size:0.65rem;color:#333;display:block;} +.newCss ul:before,.popup-about02 .list-block.newCss ul:after{height:0;} +.content-padded + .newCss ul{padding-bottom:0;} + +.list-block .item-content label.label-checkbox{float:left;padding-left:0;} +.list-block .item-content label.label-checkbox .item-media{width:auto;height:auto;padding:0;margin:0;} +label.label-checkbox i.icon-form-checkbox{margin-right:0.5rem;} +label.label-checkbox i.current{background:url(../images/checkImg.png) no-repeat center center #F18D00;background-size:0.55rem;border:none;} +.item-media i.check{width:24px;height:24px;border-radius:1.1rem;border:solid 1px #c7c7cc;margin:0;} +.item-media i.checked{background:url(../images/checkImg.png) no-repeat center center #F18D00;border:solid 1px #F18D00;background-size:0.55rem;} + +.list-block.list-block01{margin-top:66px;margin-bottom:76px;} +.list-block.list-block02{margin-bottom:0.5rem;} +.list-block.mb05{border-bottom:solid 0.5rem #f3f3f3;} +.list-block ul:before{transform:scaleY(1);} +.list-block ul:after{transform:scaleY(1);} +.list-block.topList ul:before{height:0;} + +small.spacing{letter-spacing:28px;} +small.spacing01{margin-right:4px;} +small.spacing01a{margin-right:3.5px;} +label.spacing01{margin-right:26px;} +label.spacing02{margin-right:27px;} + +.textAlignLeft{width:100%;height:auto;text-align:left;position:absolute;left:88px;} +.textAlignLeft01{left:110px;} +.textAlignRight{width:100%;height:auto;text-align:right;position:absolute;right:30px;} +.textAlignRight01{right:54px;} +.textAlignRight02{right:0.75rem;} +.list-block input[type="text"], .list-block input[type="password"], .list-block input[type="search"], .list-block input[type="email"], .list-block input[type="tel"], .list-block input[type="url"], .list-block input[type="date"], .list-block input[type="datetime-local"], .list-block input[type="time"], .list-block input[type="number"], .list-block select, .list-block textarea{height:24px;line-height:24px;font-size:inherit;padding:0;color:#333;} + +:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */ + font-size:0.75rem; + color:#BABABA; +} +::-moz-placeholder{ /* Mozilla Firefox 19+ */ + font-size:0.75rem; + color:#BABABA; +} +input:-ms-input-placeholder{ + font-size:0.75rem; + color:#BABABA; +} +input::-webkit-input-placeholder{ + font-size:0.75rem; + color:#BABABA; +} + +.infoBox01{float:left;width:80px;margin-top:0.8rem;} +.infoBox02{float:left;border-left:solid 1px #e7e7e7;padding-left:0.5rem;margin-left:0.5rem;} +.info{overflow:hidden;line-height:1rem;margin-bottom:0.2rem;} +.info01{padding-left:0.75rem;padding-top:0.55rem;} +.info02{margin-bottom:0.5rem;} +.infoTop{margin-top:0.2rem;margin-bottom:0.5rem;} +.info i{float:left;padding:1em 0;margin-right:0.3rem;} +.info i.grayIcon01{width:16px;height:16px;background:url(../images/grayIcon01.png) no-repeat center center;background-size:100%;margin-top:-5px;} +.info i.grayIcon02{width:12px;height:12px;background:url(../images/grayIcon02.png) no-repeat center center;background-size:100%;margin-top:-8px;margin-left:2px;margin-right:7px;} +.info i.grayIcon03{width:13px;height:13px;background:url(../images/grayIcon03.png) no-repeat center center;background-size:100%;margin-top:-6px;margin-left:1.5px;margin-right:6.5px;} +.info i.grayIcon04{width:10px;height:10px;background:url(../images/grayIcon04.png) no-repeat center center;background-size:100%;margin-top:-6px;margin-left:2.5px;margin-right:8.5px;} +.info span{float:left;} +.info span font{font-size:0.75rem;} +.info span font.c3{color:#333;} +.info span font.c6{color:#666;} +.info span font.c9{color:#999;} +.info span em{font-size:0.75rem;color:#EB5F34;} +.info span em font{font-size:0.7rem;vertical-align:text-bottom;} +.list-block .item-title .info > label{font-size:0.5rem;color:#f5b715;line-height:0.75rem;display:block;} +.list-block .item-title .info > span{color:#666;} +.list-block .item-title .info > em{color:#EB5F34;display:block;} +.list-block .item-title .info > em strong{font-size:1.2rem;font-weight:normal;} +.list-block .item-title span.c3{font-size:0.8rem;color:#333;margin-right:0.2rem;display:inline-block;vertical-align:top;} +.list-block .item-title span.c3a{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.list-block .item-title span.c6{font-size:0.65rem;color:#666;border-left:solid 1px #bfbfbf;margin-left:0.1rem;padding-left:0.3rem;display:inline-block;vertical-align:middle;} +.list-block .item-title span.c6a{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.list-block .item-title span.c9{font-size:0.75rem;color:#999;} +.info i.icon-warning{width:15px;height:15px;background:url(../images/icon-warning.png) no-repeat center center;background-size:100%;float:none;display:block;margin:0 auto;margin-top:0.2rem;} +.small01{height:0.9rem;background:#eaf7ff;border-radius:2px;padding:0 5px;color:#2db0fc;font-size:0.65rem;line-height:1rem;float:left;margin:0.1rem 0;margin-right:0.2rem;} +.small01:nth-of-type(1){background:#eaf7ff;color:#2db0fc;} +.small01:nth-of-type(2){background:#fff7e7;color:#f5b715;} +.small01:nth-of-type(3){background:#e9f8f0;color:#88D053;} +.small02{height:0.9rem;background:none;border:solid 1px #2db0fc;border-radius:2px;padding:0 5px;color:#2db0fc;font-size:0.65rem;line-height:0.9rem;float:left;margin:0.1rem 0;margin-left:0.2rem;} +.small03{border:solid 1px #ccc;border-radius:2px;padding:0 5px;font-size:0.65rem;color:#999;line-height:1rem;display:inline-block;vertical-align:middle;margin-left:0.5rem;} +.small04{width:49px;height:1.1rem;background:#F18D00;border-radius:2px;padding:0 5px;font-size:0.65rem;color:#fff;line-height:1.2rem;display:block;margin:0 auto;margin-bottom:0.2rem;} +.list-block .item-title small.small01{font-size:0.65rem;color:#2db0fc;} +.list-block .item-title small.small02{font-size:0.65rem;color:#2db0fc;} +.list-block .item-title .info02 small.small01{margin-top:0;margin-bottom:0;} +.list-block .item-subtitle small.small01{color:#2db0fc;margin-top:0.3rem;} +.list-block .item-subtitle small.small01:nth-of-type(1){background:#eaf7ff;color:#2db0fc;} +.list-block .item-subtitle small.small01:nth-of-type(2){background:#fff7e7;color:#f5b715;} +.list-block .item-subtitle small.small01:nth-of-type(3){background:#e9f8f0;color:#88D053;} +.list-block .item-subtitle small.small04{color:#fff;} +.delete_btn{width:12px;height:15px;background:url(../images/delete.png) no-repeat left center;background-size:100%;float:right;margin-right:0.75rem;margin-top:0.3rem;} + +/* 卡片 */ +.card{border-radius:0;box-shadow:none;} +.card div:before,.card div:after{height:0;} + +.cardPrice{border-bottom:solid 1px #e7e7e7;margin:0;} +.cardPrice .card-header span{font-size:0.8rem;color:#666;position:relative;} +.cardPrice .card-header span input{background:none;border:none;} +.cardPrice .card-header span a{font-size:0.8rem;color:#666;padding-right:1.2rem;} +.cardPrice .card-header span .icon-address04{position:absolute;left:-1rem;top:0.25rem;} +.cardPrice .card-header span .icon-down{position:absolute;right:0;top:0.15rem;} +.cardPrice .card-header span em{font-size:0.8rem;color:#F18D00;} +.cardPrice .card-content{background:url(../images/cardBg.png) no-repeat center bottom;background-size:100%;} +.cardPrice .card-content-inner{font-size:2rem;color:#F18D00;padding-top:0;padding-bottom:1.5rem;} +.cardPrice .card-content-inner span{font-size:0.75rem;margin-left:0.3rem;} +.cardPrice .card-footer{background:#fff;color:#333;border-radius:0;padding:0;} +.cardPrice .card-footer span{width:33%;border-right:solid 1px #e7e7e7;margin:0.5rem 0;text-align:center;} +.cardPrice .card-footer span:last-child{border-right:none;} +.cardPrice .card-footer span em{font-size:0.75rem;display:block;} +.cardPrice .card-footer span em strong{font-size:1rem;} +.cardPrice .card-footer span label{font-size:0.7rem;color:#999;display:block;} +.icon-address01{width:11px;height:13px;background:url(../images/icon-address01.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.icon-address02{width:0.81rem;height:0.81rem;background:url(../images/icon-address02.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.icon-address03{width:0.69rem;height:0.81rem;background:url(../images/icon-address03.png) no-repeat center center;background-size:100%;margin-right:0.1rem;} +.icon-address04{width:0.69rem;height:0.81rem;background:url(../images/icon-address04.png) no-repeat center center;background-size:100%;margin-right:0.1rem;} +.cardPrice .icon-down{font-size:0.75rem;margin-left:0.3rem;} +.icon-arrow-red{width:8px;height:12px;background:url(../images/icon-arrow-red.png) no-repeat center center;background-size:100%;margin-left:0.3rem;vertical-align:baseline;} +.icon-arrow-green{width:8px;height:12px;background:url(../images/icon-arrow-green.png) no-repeat center center;background-size:100%;margin-left:0.3rem;vertical-align:baseline;} + +.cardPrice01{border-bottom:solid 0.5rem #f3f3f3;} +.cardPrice01 .card-content{background:url(../images/cardBg01.png) no-repeat center bottom;background-size:100%;} +.cardPrice01 .card-content-inner{padding-top:0.5rem;padding-bottom:4rem;} +.cardPrice01 .card-footer{width:100%;padding:0 0.75rem;background:none;position:absolute;bottom:0;} +.cardPrice01 .card-footer span{width:50%;border-right:none;text-align:left;} +.cardPrice01 .card-footer span:last-child{text-align:right;} + +.cardPrice02 .card-footer span:first-child{width:30%;border-right:solid 2px #F18D00;} +.cardPrice02 .card-footer span:last-child{width:60%;text-align:justify;margin-right:0.75rem;} +.cardPrice02a .card-footer span:last-child{width:62%;} +.cardPrice02a .card-footer span img{width:1.8rem;height:1.8rem;margin:0 auto;margin-bottom:0.2rem;} +.cardPrice02a .card-footer span em strong{font-size:0.7rem;} + +.cardNearbyName{margin-top:0;margin-bottom:0;padding-bottom:0.3rem;} +.cardNearbyName span{font-size:0.75rem;} +.cardNearbyBox{width:100%;background:#f3f3f3;overflow-x:auto;} +.cardNearbyBox::-webkit-scrollbar{display:none;} +.cardNearbyWin{width:22.5rem;margin-left:0.25rem;overflow:hidden;} +.cardNearby{width:6.75rem;border-radius:0.16rem;float:left;margin-right:0;color:#333;} +.cardNearby div{padding-top:0;padding-bottom:0;} +.cardNearby .card-header{font-size:0.75rem;min-height:1.5rem;} +.cardNearby .card-content-inner{font-size:0.75rem;color:#EB5F34;} +.cardNearby .card-footer{font-size:0.65rem;color:#999;min-height:1.5rem;margin-top:-0.2rem;} + +.cardNearbyBox01{background:none;margin-top:-0.5rem;} +.cardNearbyBox01 .cardNearbyWin{margin-bottom:0.25rem;} +.cardNearbyBox01 .cardNearby{border:solid 1px #e7e7e7;} +.cardNearbyBox01 .cardNearby .card-header{padding-top:0.25rem;line-height:1.2rem;} + +.arrow-up{font-size:0;line-height:0;border-width:10px;border-color:#f3f3f3;border-top-width:0;border-style:dashed;border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;position:absolute;bottom:0;left:16%;} + +.cardRentBox{width:100%;background:#fff;overflow-x:auto;border-bottom:solid 1px #e7e7e7;} +.cardRentBox::-webkit-scrollbar{display:none;} +.cardRentWin{width:25rem;overflow:hidden;margin-left:0.75rem;border-left:solid 1px #e7e7e7;} +.cardRent{border-radius:0;border-right:solid 1px #e7e7e7;box-shadow:none;float:left;margin:0;} +.cardRent .card-content-inner{font-size:0.7rem;color:#EB5F34;padding:0.5rem 0.75rem;} +.cardRent .card-content-inner em{font-size:1rem;color:#EB5F34;} +.cardRent .card-content-inner small{font-size:0.7rem;color:#999;} + +.recommend{font-size:1rem;border-bottom:solid 1px #e7e7e7;margin:0;padding-left:0.75rem;padding-top:0.5rem;padding-bottom:0.2rem;} + +.cardInfo{margin:0 0.75rem;border-top:solid 1px #e7e7e7;} +.recommend + .cardInfo{border-top:none;} + +.cardInfo01{color:#333;} +.cardInfo01 > img{width:100%;} +.cardInfo01 span{font-size:0.6rem;color:#666;} +.cardInfo01 .card-header{padding:0;font-size:0.85rem;} +.cardInfo01 .card-content-inner{padding:0;} +.cardInfo01 .card-footer{padding:0;} + +.cardInfo01a .card-content-inner .tag{display:block;margin-bottom:0.5rem;} +.cardInfo01a .card-content-inner .tag small{margin-left:0;margin-right:0.2rem;} +.cardInfo01a .card-footer span{font-size:0.7rem;color:#999;text-align:left;width:50%;} +.cardInfo01a .card-footer span em{font-size:0.75rem;color:#EB5F34;} +.cardInfo01a .card-footer span strong{font-size:0.75rem;color:#333;font-weight:normal;} + +.tag small{height:0.9rem;border:solid 1px #FFD038;border-radius:2px;padding:0 5px;font-size:80%;color:#F5A100;line-height:0.9rem;margin-left:0.2rem;display:inline-block;} +/* +.tag small:nth-child(1){background:#E7F2FF;color:#76A5DD;margin-left:0;} +.tag small:nth-child(2){background:#E6F9E6;color:#6FBA6F;} +.tag small:nth-child(3){background:#FDF3DD;color:#E8AF27;} +.tag small:nth-child(4){background:#FDE9E2;color:#DD7B57;} +.tag small:nth-child(5){background:#F5EFFF;color:#A585D6;} +*/ + +.cardInfo01b .card-footer span{font-size:0.7rem;color:#999;display:inline-block;width:100%;word-wrap:break-word;white-space:normal;} + +.cardInfo02{padding:0.25rem 0;} +.cardInfo02 img{width:6.5rem;height:5.2rem;} +.cardInfo02 .item-content{padding:0;} +.cardInfo02 .item-title{font-size:0.85rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;} +.cardInfo02 .item-title span{text-align:right;} +.cardInfo02 .item-subtitle font{font-size:0.7rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;margin:0.3rem 0;} +.cardInfo02 .item-subtitle span{font-size:0.6rem;color:#666;max-width:100%;} +.cardInfo02 .item-subtitle small{font-size:0.7rem;color:#999;} +.cardInfo02 .item-subtitle em{font-size:0.7rem;color:#EB5F34;} +.cardInfo02 .item-subtitle em strong{font-size:1rem;} +.cardInfo02 .item-subtitle .tag{margin-bottom:0.2rem;} +.cardInfo02 .item-subtitle .star{font-size:0.7rem;color:#999;} + +.cardInfo03 .card-header{padding-left:0;padding-right:0;font-size:0.85rem;} +.cardInfo03 .card-content-inner{padding-top:0;} +.cardInfo03 .card-content-inner div span{font-size:0.75rem;color:#999;text-align:center;display:block;margin-top:0.1rem;} +.cardInfo03 .card-content-inner div font{height:8px;border-radius:1.35rem;display:block;margin:0.3rem 0;} +.cardInfo03 .card-content-inner div label{font-size:0.75rem;display:block;clear:both;} +.cardInfo03 .card-content-inner div.vote01 font{background-image:linear-gradient(90deg,#FFC879 1%,#EB5F34 100%);float:right;} +.cardInfo03 .card-content-inner div.vote02 font{background-image:linear-gradient(-90deg,#BDE9FF 0%,#8892E0 100%);float:left;} +.cardInfo03 .card-content-inner div.vote01 label{color:#EB5F34;text-align:right;} +.cardInfo03 .card-content-inner div.vote02 label{color:#8698F0;text-align:left;} +.cardInfo03 .card-content-inner em{font-size:1rem;color:#F18D00;text-align:center;line-height:45px;position:absolute;left:48%;} + +.icon-eye-white{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-eye-grey{width:0.85rem;height:0.6rem;background:url(../images/icon-eye-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-eye-orange{width:0.7rem;height:0.5rem;background:url(../images/icon-eye-orange.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-comments-white{width:13px;height:12px;background:url(../images/icon-comments-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-comments-grey{width:13px;height:12px;background:url(../images/icon-comments-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-comments-orange{width:0.55rem;height:0.5rem;background:url(../images/icon-comments-orange.png) no-repeat center center;background-size:100%;margin-right:0.3rem;margin-left:0.5rem;vertical-align:baseline;} +.icon-light-grey{width:45px;height:45px;background:url(../images/icon-light-grey.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;} +.icon-light-red{width:45px;height:45px;background:url(../images/icon-light-red.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;} +.icon-light-blue{width:45px;height:45px;background:url(../images/icon-light-blue.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;} +.vote01 .icon-light-grey:active{background:url(../images/icon-light-red.png) no-repeat center center;background-size:100%;} +.vote02 .icon-light-grey:active{background:url(../images/icon-light-blue.png) no-repeat center center;background-size:100%;} + +/* 资讯 */ +.content-padded{margin:0.75rem;} +.content-padded h1{font-size:1.1rem;line-height:1.6rem;letter-spacing:0.11rem;} +.content-padded p{font-size:0.8rem;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;} +.content-padded p span{margin-left:1rem;} +.content-padded p small{font-size:0.65rem;color:#999;line-height:0.9rem;letter-spacing:0.07rem;float:left;} +.content-padded img{width:100%;} + +.adBoxApp{width:80%;margin:0 auto;margin-top:1rem;margin-bottom:1.5rem;overflow:hidden;} +.adBoxApp img{float:left;width:5.6rem;height:4.7rem;margin-right:1rem;} +.adBoxApp p{float:left;} +.adBoxApp p label{font-size:0.8rem;} +.adBoxApp p small{font-size:0.65rem;} + +.list-block.commentList{margin-bottom:76px;} +.list-block.commentList ul:after{height:0;} +.list-block.commentList .item-media{padding-top:0;margin-top:-1rem;} +.list-block.commentList .item-media img{width:2.3rem;height:2.3rem;} +.list-block.commentList .item-after font{color:#999;} +.list-block.commentList .item-text{height:auto;min-height:1.5rem;color:#333;} + +.commentBox{height:66px;background:#fff;position:absolute;right:0;left:0;bottom:0;z-index:10;} +.commentBox .searchbar{padding:0.75rem 0.5rem;padding-left:0;margin:0;height:66px;background:#fff;border-top:solid 1px #e7e7e7;position:absolute;right:0;left:0;bottom:0;z-index:10;} +.commentBox .searchbar .search-input{line-height:36px;} +.commentBox .searchbar .search-input input{height:36px;background:#EFEFEF;} +.commentBox .searchbar.commentInputBox .search-input input{padding-left:1.8rem;} +.commentBox .searchbar span{text-align:center;line-height:36px;} +.commentBox .searchbar span font{font-size:0.65rem;color:#666;} +.commentBox .searchbar span.collection{margin-left:0.75rem;position:static;} +.commentBox .searchbar > a{line-height:36px;} +.icon-comments{width:17px;height:16px;background:url(../images/icon-comments.png) no-repeat center center;background-size:100%;margin-left:0.3rem;vertical-align:baseline;} + +.icon-praise-grey01{width:14px;height:14px;background:url(../images/icon-praise-grey01.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-praise-grey02{width:16px;height:16px;background:url(../images/icon-praise-grey02.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:text-bottom;} +.icon-praise-orange01{width:14px;height:14px;background:url(../images/icon-praise-orange.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-praise-orange02{width:16px;height:16px;background:url(../images/icon-praise-orange.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:text-bottom;} +.commentBox .icon-collection01{display:inline-block;vertical-align:text-bottom;margin:0;} +.commentBox .icon-collection02{display:inline-block;vertical-align:text-bottom;margin:0;} + +/* 登录 */ +.icon-login01{width:14px;height:20px;background:url(../images/icon-login01.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;} +.icon-login02{width:15px;height:19px;background:url(../images/icon-login02.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;} +.icon-login03{width:15px;height:18px;background:url(../images/icon-login03.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;} +.icon-loginMode01{width:30px;height:24px;background:url(../images/icon-loginMode01.png) no-repeat center center;background-size:100%;} +.icon-loginMode02{width:30px;height:24px;background:url(../images/icon-loginMode02.png) no-repeat center center;background-size:100%;} +.icon-loginMode03{width:22px;height:24px;background:url(../images/icon-loginMode03.png) no-repeat center center;background-size:100%;} +#input_phoneNumber,#input_codeSms,#input_password{left:24px;width:80%;} +#input_phoneNumber{width:50%;} +#input_feedback{width:100%;height:100px;} +.list-block .item-after .icon-eye-grey{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;} +.list-block .item-after .icon-eye-orange{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;} +.sendCode{padding:0 8px;height:27px;background:#fff;border:solid 1px #2db0fc;border-radius:3px;color:#2db0fc;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;} +.waiting{padding:0 8px;height:27px;background:#0a8ddf;border:solid 1px #0a8ddf;border-radius:3px;color:#fff;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;} +.agreement{font-size:0.65rem;color:#666;margin-left:0.75rem;} +.agreement a{font-size:0.65rem;} +.check{width:18px;height:18px;border:solid 1px #D7D7D7;border-radius:0.05rem;display:inline-block;vertical-align:middle;margin-right:0.2rem;position:relative;} +.checkImg{width:10px;height:7px;position:absolute;top:5px;left:3px;} +.loginBox p{text-align:center;margin:0;} +.loginBox p .button{margin-top:2rem;margin-bottom:0.5rem;} +.loginBox p a{font-size:0.65rem;color:#AA907A;} +.loginMode{width:100%;position:absolute;bottom:4.5rem;} +.loginMode p{font-size:0.65rem;color:#999;text-align:center;} +.loginMode p a:nth-child(2){margin:0 2rem;} +.line{width:100%;height:1px;background:#e7e7e7;margin-bottom:1.5rem;position:relative;} +.line span{position:absolute;top:-10px;left:50%;margin-left:-57.5px;display:block;background:#fff;padding:0 25px;font-size:0.65rem;color:#999;} + +/* 顶部 */ +.top{width:100%;padding:0.75rem 0.5rem;border-bottom:solid 1px #e7e7e7;overflow:hidden;position:absolute;top:0;z-index:10;} +.top.bar{height:auto;} +.top.bar ~ .content{top:66px;} +.top .searchBox{background:#EFEFEF;border-radius:0.25rem;overflow:hidden;padding:0.3rem 0;} +.top .searchBox .cityChoice{float:left;margin-left:0.5rem;margin-right:0.5rem;} +.top .searchBox .cityChoice a{color:#333;display:inline-block;} +.top .searchBox .cityChoice i{width:10px;height:5px;background:url(../images/arrow_select.png) no-repeat center center;background-size:100%;display:inline-block;vertical-align:middle;margin-left:0.2rem;} +.top .searchBox span{float:left;border-left:solid 1px #e0e0e0;overflow:hidden;} +.top .searchBox span input{width:85%;background:none;padding-left:0.25rem;display:inline-block;vertical-align:text-bottom;border:none;font-size:0.7rem;} +.top .searchBox span i{width:16px;height:16px;background:url(../images/search.png) no-repeat left center;background-size:100%;display:inline-block;vertical-align:text-bottom;margin-left:0.3rem;} +.top .searchBox .cancel{float:right;color:#2db0fc;} + +.top01{background:#fff;border-bottom:solid 1px #e7e7e7;padding:0 0.5rem;} +.top01 .searchBox{background:none;} +.top01 .searchBox .country{float:left;margin:0;margin-top:1px;font-size:0.75rem;line-height:24px;} +.top01 .searchBox .cityChoice{border-left:solid 1px #e7e7e7;padding-left:0.5rem;} +.top01 .searchBox .cityChoice a{font-size:0.75rem;} +.top01 .searchBox span{width:45%;border-left:solid 1px #e7e7e7;} +.top01 .searchBox span input{width:60%;font-size:0.75rem;} +.top01 .searchBox .active,.top01 .searchBox .cityChoice a.active{color:#F18D00;} +.top01 .searchBox .noData,.top01 .searchBox .cityChoice a.noData{color:#999;} + +.topCity{overflow:hidden;background:#fff;border-top:solid 1px #e7e7e7;border-bottom:solid 1px #e7e7e7;} +.topCity div{float:left;margin-right:0.4rem;} +.topCity div.active{color:#F18D00;} +.topCity span{float:right;} +.topCity span a{color:#333;} +.topCity span a.active{color:#F18D00;} +.topCity .icon-right{font-size:0.5rem;color:#999;padding:0;margin-left:0.1rem;} + +.popup .bar{height:66px;padding-left:0;padding-right:0;position:absolute;right:0;left:0;z-index:10;} +.popup .bar:after{background-color:#f3f3f3;} +.popup .bar .searchbar{padding:0.75rem 0.5rem;margin:0;height:66px;background:#f3f3f3;position:absolute;right:0;left:0;z-index:10;} +.popup .bar .searchbar .searchbar-cancel{line-height:36px;} +.popup .bar .searchbar .col-5{margin-left:1.5%;margin-right:2.5%;} +.popup .bar .searchbar .icon-left{padding:0;line-height:38px;color:#666;} +.popup .bar .searchbar .search-input input{height:36px;border:solid 1px #e6e6ea;} +.bar.bar-nav01{height:auto;overflow:hidden;padding-left:0.5rem;padding-right:0.5rem;} +.bar.bar-nav01 .button-link{color:#F18D00;} + +/* 底部 */ +.popup .bottom{height:66px;background:#e4e4e9;border-top:solid 1px #d7d7d7;position:absolute;right:0;left:0;bottom:0;z-index:10;} +.popup .bottom .searchbar{height:66px;background:#e4e4e9;border-top:solid 1px #d7d7d7;position:absolute;right:0;left:0;bottom:0;z-index:10;} +.popup .bottom .searchbar .search-input{line-height:36px;overflow:hidden;margin:0 0.5rem;} +.popup .bottom .searchbar .search-input div{width:30%;float:left;} +.popup .bottom .searchbar .search-input input{width:50%;height:36px;background:#fff;border:solid 1px #e6e6ea;border-right:solid 1px #fff;border-radius:0;padding-left:12px;float:left;} +.popup .bottom .searchbar .search-input a{width:20%;height:36px;border:solid 1px #e6e6ea;border-radius:0;line-height:34px;float:left;margin:0;top:0;} + +/* 评估结果 */ +.topBg{width:100%;padding-left:0.75rem;padding-right:0.75rem;padding-bottom:0.75rem;color:#fff;text-align:center;} +.topBg > div:first-child{border-bottom:solid 1px rgba(255,255,255,0.4);} +.topBg p{margin:0;} +.topBg p em{font-size:2.5rem;} +.topBg p span{font-size:1.5rem;} +.topBg p label{color:rgba(255,255,255,0.8);} +.topBg + .buttons-tab .button{font-size:0.7rem;padding:0 0.3rem;} + +.priceInfo{color:#fff;margin-top:0.75rem;overflow:hidden;} +.priceInfoLeft{float:left;width:50%;} +.priceInfoRight{float:right;width:50%;} +.priceInfo div div{overflow:hidden;} +.priceInfo div div i{float:left;padding:0.5rem 0;margin-right:2px;} +.priceInfo div div i.whiteIcon01{width:11px;height:11px;background:url(../images/whiteIcon01.png) no-repeat center center;background-size:100%;margin-left:3px;margin-right:5px;margin-top:-2px;} +.priceInfo div div i.whiteIcon02{width:11px;height:11px;background:url(../images/whiteIcon02.png) no-repeat center center;background-size:100%;margin-left:3px;margin-right:5px;margin-top:-2px;} +.priceInfo div div i.whiteIcon03{width:13px;height:13px;background:url(../images/whiteIcon03.png) no-repeat center center;background-size:100%;margin-left:2px;margin-right:4px;margin-top:-2px;} +.priceInfo div div i.whiteIcon04{width:12px;height:12px;background:url(../images/whiteIcon04.png) no-repeat center center;background-size:100%;margin-left:2px;margin-right:5px;margin-top:-1px;} +.priceInfo div div span{float:left;font-size:0.65rem;line-height:22px;width:146px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;} +.priceInfoTitle{overflow:hidden;margin-bottom:0.5rem;} +.priceInfoTitle .priceInfo-address{float:left;margin-right:0.5rem;font-size:0.85rem;text-align:left;} +.priceInfoTitle #input_status{width:90px;background:url(../images/arrow_select.png) no-repeat 3.6rem center rgba(255,255,255,0.2);border:solid 1px #fff;float:right;color:rgba(255,255,255,0.8);padding:0.1rem 0.2rem;padding-right:0.5rem;} + +.button.button-fill.management_btn{color:rgba(255,255,255,0.8);line-height:1.2rem;background:none;border:solid 1px rgba(255,255,255,0.8);border-radius:0.2rem;padding:0 0.4rem;float:right;} +.button.button-fill.management_btn i{font-size:0.5rem;color:#fff;} +.button.management_btn i.icon:first-child:last-child{margin-left:0.1rem;} +.button.button-fill.management_btn01{color:#333;border:solid 1px #666;position:absolute;top:0.75rem;right:0.75rem;} +.button.button-fill.management_btn01 i{color:#333;} + +.topic{background:#fff;border-bottom:solid 0.5rem #f3f3f3;} +.topic .topicTitle{font-size:0.85rem;line-height:2.5rem;margin-left:0.75rem;margin-right:0.75rem;color:#333;overflow:hidden;} +.topic .topicTitle > img{float:left;width:90px;margin-right:10px;} +.topic .topicTitle > small{color:#999;} +.topic .topicTitle > em{margin-left:0.5rem;font-size:inherit;} +.topic .topicTitle > span{float:right;color:#999;font-size:0.8rem;} +.topic .topicTitle > span em{color:#333;} +.topic .topicTitle > span em.up{color:#EB5F34;font-size:0.8rem;} +.topic .topicTitle > span em.down{color:#88D053;font-size:0.8rem;} +.topic .topicTitle > div{float:left;} +.topic .topicTitle > div p{font-size:0.7rem;line-height:0.6rem;color:#999;} +.topic .topicTitle > div p label{color:#333;} +.topic .topicTitle > div p font{font-size:0.7rem;} +.topic .topicTitle > div p font i{font-size:0.7rem;font-style:normal;margin-right:1rem;} +.topic .topicTitle > div:nth-child(2){text-align:right;float:right;} +.topic .topicTitle > div:nth-child(2) p label{color:#999;} +.topic .topicTitle > div:nth-child(2) p em{color:#EB5F34;} +.topic .topicTitle.topicTitle01{border-bottom:none;} +.topic .topicContent .topicTitle01{color:#333;margin-top:0;font-size:0.8rem;} +.topic .topicContent .topicTitle01 em{font-size:1.2rem;} +.topic .icon-note{width:16px;height:16px;background:url(../images/icon-note.png) no-repeat center center;background-size:100%;margin-left:0.3rem;margin-top:-2px;} + +.topic01{margin-bottom:0.5rem;} +.topic01 .topicTitle{position:relative;} +.topic01 .topicTitle > div{padding:0.4rem 0;} +.topic01 .topicTitle > div.scale{width:70px;height:70px;position:absolute;right:0.3rem;top:50%;margin-top:-35px;} +.topic01 .topicTitle > div p a{font-size:0.7rem;color:#999;text-decoration:underline;} +.topic01 .topicTitle > div p small{font-size:0.7rem;} +.topic01a .topicTitle > div{padding:0;} +.topic01a .topicTitle > div:nth-child(2){font-size:1em;color:#a0a0a0;text-align:left;float:left;margin-left:0.3rem;margin-top:-2px;} +.topic01a .topicTitle > div:nth-child(2) p a{vertical-align:0.5rem;} +.topic01a .topicTitle > div:nth-child(3){text-align:left;float:left;margin-left:0.3rem;width:52%;} +.topic01a .topicTitle > div:nth-child(3) p{margin-bottom:0;} +.topic01a .topicTitle > div:nth-child(3) p a{vertical-align:0.5rem;} +.topic01a .topicTitle > div:nth-child(3) p font{vertical-align:0.5rem;} +.topic01a .topicTitle > div:nth-child(3) p small{vertical-align:0.5rem;} + +.topic .topicContent{overflow:hidden;padding:0.75rem;color:#999;} +.topic .topicContent img{width:100%;} +.topic .topicContent > p{overflow:hidden;margin:0.8em 0;} +.topic .topicContent > p > label{float:left;} +.topic .topicContent > p > span{float:right;color:#333;} +.topic .topicContent .content-block{margin:1rem 0;} +.topic .topicContent .content-block.content-block01{margin:0;} +.topic .button-apply{width:30%;height:2rem;line-height:2rem;float:right;} +.tabs .topic{margin-bottom:0.5rem;} + +.topic .topicContent .topicContent_top{overflow:hidden;} +.topic .topicContent .topicContent_top .left{float:left;width:50%;border-right:solid 1px rgba(255,255,255,0.5);} +.topic .topicContent .topicContent_top .right{float:right;width:50%;} +.topic .topicContent .topicContent_top p{overflow:hidden;margin:0;text-align:center;} +.topic .topicContent .topicContent_top p i{width:10px;height:25px;margin-right:3%;display:inline-block;vertical-align:top;} +.topic .topicContent .topicContent_top p.up i{background:url(../images/up01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_top p.down i{background:url(../images/down01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_top p em{font-size:1.3rem;line-height:1.5rem;} +.topic .topicContent .topicContent_top p.up em{color:#fff;} +.topic .topicContent .topicContent_top p.down em{color:#fff;} +.topic .topicContent .topicContent_top p em font{vertical-align:middle;} +.topic .topicContent .topicContent_top p span{color:#fff;opacity:0.8;text-align:center;} + +.topic .topicContent .topicContent_top01 .left{border-right:solid 1px #e7e7e7;} +.topic .topicContent .topicContent_top01 p.up i{background:url(../images/up01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_top01 p.down i{background:url(../images/down01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_top01 p.up em{color:#EB5F34;} +.topic .topicContent .topicContent_top01 p.down em{color:#88D053;} +.topic .topicContent .topicContent_top01 p span{color:#999;opacity:1;} + +.adBox{display:block;background:#f9f9f9;border-radius:0.2rem;} +.adBox p{text-align:center;font-size:0.75rem;padding:0.5rem 0.75rem;margin-bottom:0;} +.adBox01{margin:0 0.75rem;} +.icon.icon-right01{font-size:0.6rem;margin-top:-2px;} + +.topic .topicContent .topicContent_bottom{position:relative;} +.topic .topicContent .topicContent_bottom p{margin-bottom:55px;font-size:0.8rem;} +.topic .topicContent .topicContent_bottom p em{color:#F18D00;font-size:0.8rem;} +.topic .topicContent .topicContent_bottom p a{float:right;color:#333;} +.topic .topicContent .topicContent_bottom font{width:100%;height:10px;background:#e7e7e7;border-radius:50px;display:block;margin-top:-10px;} +.topic .topicContent .topicContent_bottom font i{display:block;height:10px;background:#F18D00;border:solid 1px #e7e7e7;border-radius:50px;} +.topic .topicContent .topicContent_bottom .rankingNote{overflow:hidden;display:block;height:26px;} +.topic .topicContent .topicContent_bottom .rankingNote span{font-size:0.65rem;line-height:26px;color:#999;} +.topic .topicContent .topicContent_bottom .rankingNote span.rankingNoteLeft{float:left;} +.topic .topicContent .topicContent_bottom .rankingNote span.rankingNoteRight{float:right;} +.topic .topicContent .topicContent_bottom .slider_note{background:#bfc2cd;border-radius:3px;position:absolute;bottom:65px;white-space:nowrap;height:auto;padding:0 5px;line-height:26px;color:#fff;} +.topic .topicContent .topicContent_bottom .slider_note span{font-size:0.65rem;color:#fff;} +.topic .topicContent .topicContent_bottom .slider_note img{width:14px;height:6px;position:absolute;bottom:-4px;left:44%;} + +.topic .topicContent .topicContent_center{overflow:hidden;} +.topic .topicContent .topicContent_center div{float:left;width:25%;border-left:solid 1px #e7e7e7;text-align:center;} +.topic .topicContent .topicContent_center div:first-child{border-left:none;} +.topic .topicContent .topicContent_center div em{display:block;color:#EB5F34;font-size:0.85rem;} +.topic .topicContent .topicContent_center div label{display:block;color:#999;font-size:0.65rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 auto;} +.topic .topicContent .topicContent_center div span{display:block;color:#333;font-size:0.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 auto;margin-top:0.2rem;} + +.topic .topicContent .topicContent_center.menu div{width:20%;} +.topic .topicContent .topicContent_center.menu div span{font-size:0.65rem;} + +.topic .topicContent .topicContent_center div .icon{width:25px;height:25px;display:block;margin:0 auto;} +.topic .topicContent .topicContent_center div .icon.icon-menu01{background:url(../images/icon-menu01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu02{background:url(../images/icon-menu02.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu03{background:url(../images/icon-menu03.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu04{background:url(../images/icon-menu04.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu05{background:url(../images/icon-menu05.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu01a{background:url(../images/icon-menu01a.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu02a{background:url(../images/icon-menu02a.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu03a{background:url(../images/icon-menu03a.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu04a{background:url(../images/icon-menu04a.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center div .icon.icon-menu05a{background:url(../images/icon-menu05a.png) no-repeat center center;background-size:100%;} + +.topic .topicContent .topicContent_center.home div{width:25%;border-left:none;} + +.topic .topicContent .topicContent_center.home div .icon{width:45px;height:45px;display:block;margin:0 auto;} +.topic .topicContent .topicContent_center.home div .icon.icon-home01{background:url(../images/icon-home01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-home02{background:url(../images/icon-home02.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-home03{background:url(../images/icon-home03.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-home04{background:url(../images/icon-home04.png) no-repeat center center;background-size:100%;} + +.topic .topicContent .topicContent_center.home div .icon.icon-personal01{background:url(../images/icon-personal01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-personal02{background:url(../images/icon-personal02.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-personal03{background:url(../images/icon-personal03.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-personal04{background:url(../images/icon-personal04.png) no-repeat center center;background-size:100%;} + +.topic .topicContent .topicContent_center.home div .icon.icon-evaluation01{background:url(../images/icon-evaluation01.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-evaluation02{background:url(../images/icon-evaluation02.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-evaluation03{background:url(../images/icon-evaluation03.png) no-repeat center center;background-size:100%;} + +.topic .topicContent .topicContent_center01 div{width:29.333333333333332%;background:#fff;border:solid 1px #eee;border-radius:0.4rem;padding:0.3rem 0;} +.topic .topicContent .topicContent_center01 div:first-child{border-left:solid 1px #eee;} +.topic .topicContent .topicContent_center01 div em{display:block;color:#EB5F34;font-size:0.75rem;} +.topic .topicContent .topicContent_center01 div em.riskScore01{color:#ff4500;} +.topic .topicContent .topicContent_center01 div em.riskScore02{color:#ffb53e;} +.topic .topicContent .topicContent_center01 div em.riskScore03{color:#2db0fc;} +.topic .topicContent .topicContent_center01 div em.riskScore04{color:#18d57e;} +.topic .topicContent .topicContent_center01 div em font{font-size:0.7rem;vertical-align:top;} +.topic .topicContent .topicContent_center01 div label{font-size:0.75rem;} +.example{width:40px;height:40px;background:url(../images/example.png) no-repeat;background-size:100%;position:absolute;top:0;left:0;} +.topic .topicContent .topicContent_center01 div span{margin:0;} +.topic .topicContent .topicContent_center01 div small{display:block;float:none;width:3rem;margin:0 auto;padding:0;} + +.topic .topicContent .topicContent_center02 p{margin-top:0.5rem;margin-bottom:0;} +.topic .topicContent .topicContent_center02 p label{color:#333;} +.topic .topicContent .topicContent_center02 p em{color:#EB5F34;} +.topic .topicContent .topicContent_center02 p span{color:#666;} + +.topic01a .topicContent .topicContent_center{border-bottom:none;padding-bottom:0;} +.topic01a .topicContent .topicContent_center div{width:50%;} +.topic01a .topicContent .topicContent_center div em{margin-top:-0.3rem;} +.topic01a .topicContent .topicContent_center div em i.higher{width:8px;height:16px;background:url(../images/higher.png) no-repeat center bottom;background-size:100%;margin-top:-8px;margin-right:0.1rem;} +.topic01a .topicContent .topicContent_center div em i.lower{width:8px;height:16px;background:url(../images/lower.png) no-repeat center bottom;background-size:100%;margin-top:-8px;margin-right:0.1rem;} +.topic01a .topicContent .topicContent_center div em span{font-size:1.5rem;} +.topic01a .topicContent .topicContent_center div em font{font-size:0.7rem;} +.topic01a .topicContent .topicContent_center div:first-child em span{color:#ffb73a;} +.topic01a .topicContent .topicContent_center div:first-child em font{color:#ffb73a;} +.topic01a .topicContent .topicContent_center div label{margin-top:-0.3rem;} + +.topic .topicContent .topicContent_center em.up{color:#EB5F34;} +.topic .topicContent .topicContent_center em.down{color:#88D053;} +.topic .topicContent .topicContent_center em i{width:9px;height:14px;display:inline-block;vertical-align:-1px;margin-right:0.1rem;} +.topic .topicContent .topicContent_center em.up i{background:url(../images/up02.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center em.down i{background:url(../images/down02.png) no-repeat center center;background-size:100%;} + +.topic .topicContent .topicContent_bottom01{text-align:center;} +.topic .topicContent .topicContent_bottom01 span{display:block;height:24px;line-height:24px;} +.topic .topicContent .topicContent_bottom01 label{color:#666;} +.topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;} + +/* 广告 */ +.ad{display:block;border-bottom:solid 0.5rem #f3f3f3;} +.ad img{width:100%;} + +/* 图表 */ +.chart{width:100%;height:250px;} +.chart tspan{font-size:0.6rem;text-shadow:none;} +/* +#tabChart{width:100%;height:360px;} +#tabChart1{width:100%;position:absolute;z-index:1;} +#tabChart2{width:100%;display:block;position:absolute;z-index:-1;} +*/ +.scoreBox{height:130px;position:relative;} +.score{width:250px;height:250px;margin:0 auto;margin-top:1rem;} +.scoreText{width:250px;height:150px;position:absolute;top:0;left:50%;margin-left:-125px;} +.scoreText div{position:absolute;font-size:12px;color:#fff;} +.scoreText div:nth-child(1){top:80px;left:8px;} +.scoreText div:nth-child(2){top:6px;left:50%;margin-left:-12px;} +.scoreText div:nth-child(3){top:80px;right:8px;} +.priceBox{margin:0.75rem 0;overflow:hidden;} +.priceBox div{float:left;width:50%;text-align:center;} +.priceBox div label{color:#999;font-size:0.7rem;margin-right:0.3rem;} +.priceBox div font{color:#333;} +.priceBox div em{color:#666;font-size:0.7rem;} +.priceBox div em{color:#EB5F34;font-size:0.7rem;} +.priceBox div em.up{color:#EB5F34;} +.priceBox div em.down{color:#88D053;} +.priceBox div em i{width:12px;height:12px;display:inline-block;vertical-align:-1px;margin-right:0.1rem;} +.priceBox div em.up i{background:url(../images/up.png) no-repeat center center;background-size:100%;} +.priceBox div em.down i{background:url(../images/down.png) no-repeat center center;background-size:100%;} + +.topic .topicTitle > div.content-block{padding:0;margin:0;position:absolute;top:0.6rem;right:0;z-index:100;} +.topic .date{text-align:right;font-size:0.75rem;color:#ccc;padding-right:0.75rem;margin:0;} +.buttons-row .button{height:1.35rem;line-height:1.35rem;} +.buttons-row01 .button{border-radius:0.1rem;margin-left:0.5rem;padding:0;font-size:0.65rem;} +.buttons-row01 .button:first-child,.buttons-row01 .button:last-child{border-radius:0.1rem;} +.buttons-row01a .button{width:22%;} + +.topic .topicTitle > div.content-block.content-block01{position:relative;float:none;} +.content-block01 .buttons-row.theme{width:100%;border-bottom:solid 1px #e7e7e7;} +.content-block01 .buttons-row.theme .button{font-size:0.75rem;color:#999;line-height:1rem;border:none;padding:0;} +.content-block01 .buttons-row.theme .button.active{background:none;border-bottom:solid 2px #F18D00;color:#F18D00;} +.content-block01 .buttons-row .button:first-child,.content-block01 .buttons-row .button:last-child{border-radius:0;} + +.content-block01a{padding:0.75rem;padding-top:0;} + +.districtTab{background:#fff;padding-top:0.75rem;} +.districtTab .buttons-row .button{width:80px;} + +.assetRisk{width:300px;margin:0 auto;padding-top:1rem;} +.riskScore01{color:#ff4500;} +.riskScore02{color:#ffb53e;} +.riskScore03{color:#2db0fc;} +.riskScore04{color:#18d57e;} + +.assetRisk font{height:10px;display:block;margin-top:0.2rem;padding-left:3px;clear:both;} +.assetRisk font i{width:70px;height:10px;float:left;margin-right:1px;} +.assetRisk font i.riskScore01{background:#ff4500;} +.assetRisk font i.riskScore02{background:#ffb53e;} +.assetRisk font i.riskScore03{background:#2db0fc;} +.assetRisk font i.riskScore04{background:#18d57e;} + +.assetRisk p{overflow:hidden;margin:0;padding-left:3px;} +.assetRisk p span{width:70px;float:left;margin-right:1px;text-align:center;line-height:24px;font-size:0.65rem;} +.assetRisk p.p01 span{line-height:14px;text-align:left;width:auto;} + +.assetRisk .rankingBox{width:283px;height:24px;background:url(../images/scale.png) no-repeat left 10px;background-size:100%;padding-left:2px;margin-left:3px;margin-top:0.5rem;position:relative;} +.assetRisk .rankingBox .ranking{position:absolute;left:1px;top:5px;} +.assetRisk .rankingBox .ranking font{width:283px;height:5px;} +.assetRisk .rankingBox .ranking font i{height:5px;} + +/* 行情 */ +.cardCity .card-header:first-child{padding-top:0.5rem;padding-bottom:0;text-align:center;display:block;} +.cardCity .card-header{padding-top:0;} +.cardCity .card-header label{font-size:1rem;color:#333;} +.cardCity .card-content-inner.row{padding-top:0;} +.cardCity .card-content-inner.row > span{background:rgba(255,255,255,0.7);border:solid 1px #e7e7e7;border-radius:0.4rem;margin-left:4%;} +.cardCity .card-content-inner.row > span em{display:block;text-align:center;font-size:0.8rem;} +.cardCity .card-content-inner.row > span em.up{color:#EB5F34;} +.cardCity .card-content-inner.row > span em.down{color:#88D053;} +.cardCity .card-content-inner.row > span em strong{font-size:1.9rem;} +.cardCity .card-content-inner.row > span label{display:block;text-align:center;font-size:0.7rem;color:#666;margin-bottom:0.5rem;} +.cardCity .card-content-inner.row > span.col-60{margin:0 auto;float:none;display:block;margin-top:1rem;padding:1.3rem 0;} +.cardCity .card-content-inner.row > span.col-60 .icon-add{display:block;width:1rem;height:1rem;margin:0 auto;margin-bottom:0.5rem;} +.cardCity .card-footer{bottom:1rem;} +.cardCity .card-footer span label{display:inline-block;} +.cardCity .card-footer span em{display:inline-block;} + +.cardCity01 .card-header:first-child{padding-top:0.5rem;padding-bottom:0;text-align:center;display:block;} +.cardCity01 .card-header label{font-size:1rem;color:#333;} +.cardCity01 .card-header .button{top:0.6rem;} +.cardCity01 .card-content-inner{padding-bottom:5rem;} +.cardCity01 .card-footer{bottom:1.5rem;} + +.list-block.media-list.cityList ul:before{height:0;} +.list-block.media-list.cityList ul:after{height:0;} +.list-block.media-list.cityList .item-inner{padding-right:0;padding-top:0;padding-bottom:0;min-height:1.5rem;} +.list-block.media-list.cityList .item-inner:after{height:0;} +.list-block.media-list.cityList .item-subtitle{color:#333;} +.list-block.media-list.cityList ul li:nth-child(1) .item-subtitle{color:#999;} +.list-block.media-list.cityList .item-subtitle div:first-child{margin-left:0;} +.list-block.media-list.cityList .item-subtitle div.col-20:last-child em{color:#F18D00;} +.list-block.media-list.cityList .item-subtitle div.col-20{position:relative;} +.list-block.media-list.cityList .item-subtitle div.col-20 .button{width:auto;height:1.1rem;top:0;left:0;right:inherit;font-style:normal;line-height:1rem;} +.list-block.media-list.cityList .item-subtitle div.col-25 .star .icon{margin-right:0;} + +.list-block.dataList ul:before{height:0;} +.list-block.dataList ul:after{height:0;} +.list-block.dataList .item-inner{padding-top:0;padding-bottom:0;min-height:1.8rem;} +.list-block.dataList .item-inner:after{height:0;} +.list-block.dataList .item-text{height:auto;-webkit-line-clamp:inherit;color:#666;text-align:justify;} +.list-block.dataList .item-text em{font-size:0.8rem;color:#333;} +.list-block.dataList .item-text small{color:#999;} +.list-block.dataList01 .item-inner{padding-top:0.4rem;padding-bottom:0.35rem;} +.list-block.dataList01 .item-inner:after{height:1px;} +.list-block.dataList01 .item-text{font-size:0.8rem;color:#333;} + +.topic .topicTitle02{font-size:0.75rem;color:#666;} +.topic .topicTitle02 > span a{font-size:0.75rem;} +.topic .topicTitle02 > span a .icon-right{font-size:0.6rem;} + +.topic .topicTitle03{font-size:0.75rem;color:#666;text-align:center;position:relative;} +.topic .topicTitle03 img:first-child{width:1.8rem;height:0.3rem;position:absolute;left:32%;top:50%;margin-left:-0.9rem;margin-top:-0.15rem;} +.topic .topicTitle03 img:last-child{width:1.8rem;height:0.3rem;position:absolute;right:32%;top:50%;margin-right:-0.9rem;margin-top:-0.15rem;} + +.topicContent.cityImgBox{padding-top:0;padding-bottom:0;} +.topicContent.cityImgBox p{font-size:0.7rem;color:#333;margin-top:0.2rem;} + +.chartBox .chart{width:100px;height:100px;margin:0 auto;margin-bottom:0.5rem;} +.chartBox span{text-align:center;} +.chartBox span em{font-size:0.75rem;} +.chartBox span em strong{font-size:1rem;} +.chartBox span label{font-size:0.7rem;} + +.cardRankingBox{margin:0.25rem 0;overflow-x:hidden;} +.cardRankingBox .cardNearbyWin{width:100%;margin-bottom:0;} +.cardRankingBox .cardRanking{width:29%;border-radius:0.4rem;} +.cardRankingBox .cardRanking div{text-align:center;justify-content:center;} +.cardRankingBox .cardRanking .card-header{padding-top:0.5rem;line-height:1.5rem;font-size:0.8rem;} +.cardRankingBox .cardRanking .card-footer em{font-size:0.75rem;} +.cardRankingBox .cardRanking img{width:1.3rem;height:1.3rem;position:absolute;top:-1px;left:-1px;} + +.cardRankingBox01{border-bottom:solid 0.5rem #f3f3f3;padding-bottom:0.5rem;margin:0;} +.cardRankingBox01 .cardNearbyWin{margin-left:0;} +.cardRankingBox01 .cardRanking{width:33.33%;border:none;border-radius:0;margin:0;} +.cardRankingBox01 .cardRanking:last-child{border-right:none;} +.cardRankingBox01 .cardRanking .card-header:first-child{border-right:none;padding:0;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;} +.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;} +.cardRankingBox01 .cardRanking .card-header em{font-size:0.85rem;color:#F18D00;margin-right:0.2rem;} +.cardRankingBox01 .cardRanking .card-content-inner{color:#999;border-right:solid 1px #e7e7e7;} +.cardRankingBox01 .cardRanking .card-footer{padding:0;border-right:solid 1px #e7e7e7;} +.cardRankingBox01 .cardRanking .card-footer em{color:#EB5F34;} + +/* +.swiper-container{height:auto;padding-bottom:0;} +.swiper-pagination-bullet{background:none;border:solid 1px #d7d7d7;opacity:1;} +.swiper-pagination-bullet-active{background:#F18D00;border:solid 1px #F18D00;} +.swiper-container-horizontal > .swiper-pagination{top:11.2rem;bottom:inherit;} +*/ + +/* 贷款 */ +.banner{width:100%;height:80px;background:url(../images/banner.png);background-size:100%;margin-bottom:0.5rem;} +.banner .content-block{padding:0 2rem;padding-top:1rem;} +.banner .content-block p{margin:0;} +.banner .content-block p .button.theme{background:#fff;height:1.8rem;line-height:1.7rem;} + +.banner01{width:100%;} +.banner01 a{display:block;margin-bottom:0.5rem;} +.banner01 img{width:100%;} + +/* 出售分析 */ +.addLink{text-align:center;color:#999;font-size:0.75rem;padding-bottom:1.1em;} +.addLink a{text-decoration:underline;font-size:0.75rem;margin-left:0.1rem;} + +/* 出租管理 */ +.buttons-tab01{padding-top:0.5rem;margin-bottom:0.5rem;overflow-x:auto;} +.buttons-tab01 .button{height:2.5rem;line-height:1rem;border-right:solid 1px #e7e7e7;} +.buttons-tab01 .button label{font-size:0.75rem;display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 auto;} +.buttons-tab01 .button small{font-size:0.65rem;display:block;margin:0 auto;} + +/* 我要置换 */ +.nstSlider{width:100%;height:12px;background:#eee;} +.nstSlider .bar{height:12px;top:0;left:0;background:#F18D00;} +.nstSlider .leftGrip{box-shadow:3px 3px 3px rgba(113,113,113,0.35);top:-5px;z-index:10000} +.nstSlider .leftGrip.gripHighlighted{background:#fff;box-shadow:3px 3px 3px rgba(113,113,113,0.35);} + +.icon-city{width:12px;height:18px;background:url(../images/icon-city.png) no-repeat center center;background-size:100%;margin-left:0.3rem;margin-top:-3px;} + +.contentSuggest > p{font-size:0.65rem;color:#999;text-align:left;margin-left:0.75rem;} +.contentSuggest > p em{font-size:0.65rem;color:#F18D00;} +.contentSuggest .selectContainer{position:relative;} + +.selectBox{background:#fff;border-top:solid 1px #e7e7e7;text-align:center;line-height:44px;} +.selectBox div a{font-size:0.7rem;color:#333;display:inline-block;vertical-align:middle;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.selectBox div i{font-size:0.5rem;color:#999;margin-left:0.3rem;} + +.selectContent{width:100%;position:absolute;z-index:20000;} +.selectContent .topic{border-top:solid 1px #e7e7e7;border-bottom:solid 1px #e7e7e7;} +.selectContent .list-block .item-title{font-size:0.7rem;} +.selectContent .list-block i{width:16px;margin-right:0.3rem;} +#select_filter{margin-bottom:0;} + +.mask{width:100%;height:100%;background:rgba(0,0,0,0.4);position:absolute;top:47px;z-index:10600;} + +.contentSuggest .noData{background:#fff;height:100%;text-align:center;padding-top:8rem;} +.contentSuggest .noData img{width:30%;margin:0 auto;} +.contentSuggest .noData p{color:#999;margin-top:0.75rem;margin-bottom:1.5rem;} +.contentSuggest .noData a{text-decoration:underline;} +.contentSuggest .noData a.button{text-decoration:none;} + +.topBg02{background:#ecf6ff;border-bottom:solid 1px #e7e7e7;color:#333;text-align:justify;padding-top:1rem;margin-bottom:0.5rem;} +.topBg02 p{font-size:0.75rem;} +.topBg02 p label{color:#999;font-size:0.75rem;} +.topBg02 p em{color:#EB5F34;font-size:0.75rem;} +.topBg02 p a{font-size:0.75rem;} + +.collection{position:absolute;right:0.75rem;top:0.4rem;text-align:center;color:#666;font-size:0.7rem;} +.button.collection02{border:solid 1px #C3C0BC;color:#999;} +.button.collection02:active{border:solid 1px #C3C0BC;color:#999;} +.icon-collection01{width:16px;height:16px;background:url(../images/icon-collection01.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;} +.icon-collection02{width:16px;height:16px;background:url(../images/icon-collection02.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;} + +/* 地图 */ +.districtMap{height:200px;margin:0 0.75rem;} +.districtMap01{height:100%;} +.icon-address{width:12px;height:18px;background:url(../images/icon-address.png) no-repeat center center;background-size:100%;margin-right:0.3rem;margin-top:-3px;} + +/* 周边详情 */ +.contentList .list-block .item-title small{margin-right:0.5rem;} +.contentList .list-block .item-after{line-height:2.4rem;font-size:0.75rem;} +.contentList .list-block .moreList{margin:0;padding:0.2rem 0;text-align:center;} +.contentList .list-block .lessList{margin:0;padding:0.2rem 0;text-align:center;} + +/* 我要贷款 */ +.step{background:#fff;overflow:hidden;padding:1rem 0.75rem;} +.step img{width:100%;} +.step .num{float:left;width:20%;} +.step .num label{font-size:1rem;} +.step .num span{font-size:0.8rem;color:#999;} +.step .process{float:right;width:80%;margin-top:0.5rem;} +.step .process font{width:100%;height:12px;background:#eee;border-radius:50px;display:block;} +.step .process font i{display:block;height:12px;background:#F18D00;opacity:0.9;border-radius:50px;} + +.contentLoan .topic{background:#fff;} +.contentLoan .topic .topicTitle{border-bottom:none;color:#666;text-align:center;font-size:1rem;margin-top:0.75rem;} +.contentLoan .topic .topicContent{padding-top:0;} +.contentLoan .buttons-row.theme .button{height:4.8rem;line-height:4.8rem;background:#fbfbfb;border:solid 1px #eee;border-radius:0.1rem;font-size:0.85rem;} +.contentLoan .buttons-row .button:last-child{margin-left:0.75rem;} +.contentLoan .buttons-row .button.button01{line-height:1.25rem;padding-top:1.1rem;} + +.houseList{margin-top:0.5rem;} + +.resultBox{padding-top:20%;background:none;} +.resultBox img{width:28%;margin:0 auto;margin-bottom:1rem;} +.resultBox em{font-size:2rem;text-align:center;color:#EB5F34;display:block;} +.resultBox p{font-size:0.85rem;text-align:center;color:#333;margin-top:0;} +.resultBox span{font-size:0.75rem;text-align:center;color:#999;display:block;margin-top:1rem;margin-bottom:2rem;} +.resultBox span i{font-size:0.75rem;font-style:normal;color:#EB5F34;vertical-align:text-top;margin-right:0.1rem;} +.content-block.resultBox{padding-top:0;} +.content-block.resultBox span{margin-bottom:1rem;} +.content-block.resultBox span a{font-size:0.75rem;} + +/* 智能选房 */ +.filter_btn{width:15%;position:absolute;right:0.5rem;top:0.5rem;} + +.houseNum{width:3.5rem;height:3.5rem;border-radius:100%;background:#f74949;opacity:0.9;border:solid 2px #fff;position:absolute;left:40%;top:20%;} +.houseNum p{color:#fff;font-size:0.75rem;text-align:center;line-height:1rem;} + +.icon-house{width:30px;height:30px;background:url(../images/icon-house.png) no-repeat center center;background-size:100%;position:absolute;left:60%;bottom:50%;z-index:10000;} +.icon-house01{width:50px;height:80px;background:url(../images/icon-house01.png) no-repeat center center;background-size:100%;position:absolute;left:58%;bottom:50%;z-index:10500;} + +/* 我的 */ +.icon-message{width:20px;height:20px;background:url(../images/icon-message.png) no-repeat center center;background-size:100%;position:relative;} +.icon-message-new{width:7px;height:7px;background:url(../images/icon-message-new.png) no-repeat center center;background-size:100%;position:absolute;top:1px;right:-3px;} +.icon-set{width:20px;height:20px;background:url(../images/icon-set.png) no-repeat center center;background-size:100%;} +.icon-message01{width:24px;height:24px;background:url(../images/icon-message01.png) no-repeat center center;background-size:85%;margin-top:-2.2rem;} +.message01-new .icon-message01{width:24px;height:16px;background:url(../images/icon-message01-new.png) no-repeat center center;background-size:100%;margin-top:-2.5rem;} +.list-block .message01 .item-title{white-space:normal;text-overflow:-o-ellipsis-lastline;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#666;} +.list-block .message01-new .item-title{color:#333;font-weight:bold;} +.list-block .message01 .item-subtitle{margin-top:0.5rem;} +.contentText{background:#fff;} + +.topBg01{width:100%;background:url(../images/topBg.png) no-repeat center top;background-size:100%;border-bottom:solid 1px #e7e7e7;padding:1.2rem 0.75rem;padding-bottom:0;color:#fff;overflow:hidden;position:relative;} +.topBg01 img{width:3rem;height:3rem;margin:0 auto;margin-top:0.6rem;} +.topBg01 p{font-size:0.7rem;color:#333;text-align:center;margin-top:0.6rem;} +.topBg01 p .button{width:4rem;margin:0 auto;} + +.tabs .noData img{width:30%;margin:0 auto;margin-top:3rem;} + +/* 出错页面 */ +.contentError{padding-top:30%;} +.contentError img{width:30%;margin:0 auto;} +.contentError em{font-size:2rem;text-align:center;color:#666;display:block;} +.contentError p{text-align:center;color:#999;margin-top:0;} +.contentError a{text-align:center;text-decoration:underline;display:block;margin-top:2rem;} + +/* 按钮 */ +.content-block{margin:0;} + +.content-block01 .row .col-50{width:50%;margin-left:0;} +.content-block01 .row .col-50 .button{border-radius:0;border:solid 1px #F18D00;} +.content-block01 .row .col-50 .button.button-fill{height:2rem;line-height:2rem;} +.content-block01 .row .col-50 .button.button-fill.reset_btn{background:#fff;border:none;color:#333;border-top:solid 1px #e7e7e7;} +.content-block01 .row .col-50 .button.button-fill.confirm_btn{background:#F18D00;border:solid 1px #F18D00;} + +.button.addProperty_btn{background:#fff;border:dashed 1px #F18D00;color:#2db0fc;} +.button.addProperty_btn:active{background:#F18D00;border:dashed 1px #F18D00;color:#fff;} +.button.addProperty_btn span{width:120px;margin:0 auto;display:block;} +.button.addProperty_btn i{float:left;width:20px;height:20px;background:url(../images/addProperty.png) no-repeat center center;background-size:100%;margin:0.6rem 0;margin-left:13px;margin-right:-5px;} +.button.addProperty_btn:active i{float:left;width:20px;height:20px;background:url(../images/addProperty_active.png) no-repeat center center;background-size:100%;margin:0.6rem 0;margin-left:13px;margin-right:-5px;} + +.return{width:50px;height:50px;background:#fff;border:solid 1px #aaa;border-radius:100%;font-size:0.62rem;color:#666;text-align:center;position:fixed;left:0.75rem;bottom:0.75rem;} +.return i{width:18px;height:18px;background:url(../images/return.png) no-repeat;background-size:100%;display:block;margin:0 auto;margin-top:0.35rem;} + +/* picker */ +.picker-item{padding:0 1rem;font-size:18px;} +.bar-nav01a + .picker-modal-inner .picker-items-col:nth-child(1) .picker-item{padding-left:3rem;} +.bar-nav01a + .picker-modal-inner .picker-items-col:nth-child(3) .picker-item{padding-right:3rem;} +.bar-nav01b + .picker-modal-inner .picker-items-col:nth-child(1) .picker-item{padding-left:3rem;} +.bar-nav01b + .picker-modal-inner .picker-items-col:nth-child(2) .picker-item{padding-right:3rem;} +.bar-nav01c + .picker-modal-inner .picker-items-col .picker-item{padding:0 6rem;} + +/* 弹窗 */ +.modal-inner,.modal-button{background:#fff;} +.modal-button{color:#333;} +.cancel_btn{color:#333;} +.modal-button:first-child{color:#333;} +.modal-button:last-child{color:#F18D00;} +.modal-text{text-align:justify;} +.info-container{overflow:hidden;margin-top:0.75rem;} +.info-container label{float:left;width:87px;text-align:right;line-height:1.4rem;} +.info-container input{float:left;width:95px;padding:0 0.3rem;line-height:1.2rem;border:solid 1px #e6e6ea;} +.info-container font{float:left;margin-left:0.3rem;line-height:1.4rem;} + +.modal-no-buttons{width:8rem;margin-left:-4rem;} +.modal-no-buttons .modal-text{text-align:center;} +.modal .preloader.preloader01{animation:none;background-image:url(../images/loading.gif);background-size:100%;width:3rem;height:2.8rem;margin-left:-0.3rem;} +.modal .preloader.preloader01:after{background-image:none;} + +.modal-buttons-vertical .modal-button{color:#F18D00;} +.modal-buttons-vertical .modal-button:last-child{color:#333;} + +.modal01 .list-block .item-content{padding:0;} +.modal01 .list-block input[type="text"]{width:40%;} +.modal01 .list-block ul:before,.modal01 .list-block ul:after{height:0;} + +.modal01 .close{width:15px;height:15px;background:url(../images/close.png) no-repeat;background-size:100%;position:absolute;right:0.75rem;top:0.75rem;z-index:11000;} + +.modal01 { + width: 13.5rem; + border-radius: 0.35rem; + text-align: center; + position: absolute; + left: 50%; + margin-left: -6.75rem; + margin-top: 0; + top: 50%; + z-index: 11000; + opacity: 1; +} +.modal01 .modal-inner { + padding: 0.75rem; + border-radius: 0.35rem 0.35rem 0 0; + position: relative; + background: #fff; +} +.modal01 .modal-inner:after { + content: ''; + width: 100%; + height: 1px; + background-color: #b5b5b5; + display: block; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.modal01-overlay { + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + left: 0; + top: 0; + z-index: 10600; + opacity: 1; + -webkit-transition-duration: 400ms; + transition-duration: 400ms; +} + +/* 滑块 */ +.rangeBox{width:100%;height:12px;position:relative;} +.rangeBg{width:100%;height:12px;background:#eee;border-radius:10px;position:absolute;left:0;top:7px;} +input[type=range] { + -webkit-appearance: none; + width: 100%; + border-radius: 10px; /*这个属性设置使填充进度条时的图形为圆角*/ +/* background: #eee;*/ +/* background: -webkit-linear-gradient(#F18D00, #F18D00) no-repeat;*/ + opacity: 0.9; + background-size: 0% 100%; + position: absolute; + left: 0; + top: 7px; +} +input[type=range]::-webkit-slider-thumb { + -webkit-appearance: none; +} +input[type=range]::-webkit-slider-runnable-track { + height: 12px; + border-radius: 10px; /*将轨道设为圆角的*/ + /*box-shadow: 0 1px 1px #def3f8, inset 0 .125em .125em #0d1112; 轨道内置阴影效果*/ +} +input[type=range]:focus { + outline: none; +} +input[type=range]::-webkit-slider-thumb { + -webkit-appearance: none; + height: 25px; + width: 25px; + margin-top: -7px; /*使滑块超出轨道部分的偏移量相等*/ + background: #ffffff; + border-radius: 50%; /*外观设置为圆形*/ + border: solid 0.05em rgba(205, 224, 230, 0.1); /*设置边框*/ + box-shadow: 0 .05em .05em #3b4547; /*添加底部阴影*/ +} + +.rangeNote{display:block;margin-top:20px;} +.rangeNote span{font-size:0.65rem;} +.rangeNote span:last-child{margin-right:0;} +.rangeNote span.span01{margin-right:8.5%;} +.rangeNote span.span01a{margin-left:8%;} +.rangeNote span.span02{margin-right:6.2%;} +.rangeNote span.span03{margin-right:10%;} +.rangeNote span.span04{margin-right:13%;} +.rangeNote span.span05{margin-right:9%;} +.rangeNote span.span06{float:left;} +.rangeNote span.span07{float:right;} + +/* 启动页 */ +.contentStart{background:#21a5fe;} +.contentStart .time{width:65px;height:30px;line-height:1.6rem;text-align:center;font-size:0.7rem;color:#fff;background:rgba(0,0,0,0.3);border-radius:1.25rem;display:block;position:absolute;top:0.75rem;right:0.75rem;} +.contentStart #time{font-size:0.7rem;vertical-align:middle;} +.contentStart img{width:70%;margin:0 auto;margin-top:30%;} +.contentStart #test_btn{background:#fff;color:#21a5fe;width:10rem;margin:0 auto;margin-top:1.5rem;} + +/* 引导页 */ +.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;} +.swiper-slide img{margin:0 auto;margin-top:7rem;} +.swiper-slide img.guideImg01{width:90%;} +.swiper-slide img.guideImg02{width:85%;} +.swiper-slide img.guideImg03{width:55%;} +.swiper-slide div{position:absolute;bottom:5rem;width:100%;} +.swiper-slide p{text-align:center;padding:0 1rem;} +.swiper-slide p label{font-size:1rem;} +.swiper-slide p small{font-size:0.7rem;color:#999;} +.swiper-slide div.content-block{bottom:0.5rem;} +.swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;} +.swiper-pagination-bullet{width:10px;height:10px;background:#D7D7D7;opacity:1;} +.swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;} + +/* 字体图标 */ +@font-face {font-family: "iconfont"; + src: url('iconfont.eot?t=1522051063980'); /* IE9*/ + src: url('iconfont.eot?t=1522051063980#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA1YAAsAAAAAExwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQwAAAFZW+kghY21hcAAAAYAAAACcAAACKM8LY+dnbHlmAAACHAAACOAAAAu0OgPYA2hlYWQAAAr8AAAAMQAAADYRh9XsaGhlYQAACzAAAAAgAAAAJAiKBDVobXR4AAALUAAAACEAAAA4OQD//WxvY2EAAAt0AAAAHgAAAB4VPBHsbWF4cAAAC5QAAAAfAAAAIAEdAHtuYW1lAAALtAAAAUUAAAJtPlT+fXBvc3QAAAz8AAAAWgAAAKOBdgxReJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkEWKcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGBwYKp4JMDf8b2CIYe5l6AEKM4LkANs6C7AAeJzFkdEVgzAIRV80mkajdZBO0oF6/OhInYs17HvgjxNIzk0IkMABAAOAnrxIBtIXCZIPrcntPSa3Z7x5f3B1PHcrth2Ha9mqa5LkEatrHd9mZhhRaKv8Z0bDQteI2yTdl/oqzfffeWNXsJ+wRMuBem1DoDnZGGhWVgLN0GoA+acA8s8B+w9rARS7BJqtrQEU+wxUnW0Blj95ESQFeJxdVmmMHNURfvVeT/f0PX33HN29PT077d0Z99qzszP2Gu/sem2CDQQwh3AuxybBODYmkUxAchQWRBCOiUTsBAjKoQQUInJxyYjgKBIRSBEEATmk/EoQSJEiRYoifrLtVM9sCGH3zTvqdb9+VfV9VUVKhFx8m11gPrHIJrKV7CZXEwJ8B5oaDSBO+xntgBOXHM/WWJqksZA0M7YTvCZvu71Bv+3xAq+DBiHMx71BmtEUFvpLdAf03ACgWq9da043TPYgSH4afi3fR38ETpQ09KXN+d7uyO5NWeU7FNOsmuYDZb5UKlPK6Rrc6rliSZT4/PGSXnMuRDM0AqWa1q44oE7VzUP3908E054IsLYGVn1Ke2Jk1AxsX6m5llkVKmrZr6lJy4Y73pV9Swna7xD8o6jrt9hj7CiRSR211EAIwVuCYQYswYUTwnDeHQwXMqBw9AxjZ44ePUPpGXjxa09z3FP3vXjPcxx7hh1l52677Rwb9+vvcudPW6sBY8Gqdfo8IQy/8TD7CX6jTubJtfiVDIZLkGbQ5AXb9Vxe0AA/1BsM+20rziA18ALzQmLERpLO430MDfBmhUnR1Gha3i0MO4fndPBXjCndZUu6XwPYceASqPq6ZO/bC7f/7iTd9+f1lTAFSMPLtYz+cE69fLzKr1QtTuFsJcVRZ5oMD8sa0zcECmepAPyMVl1OhqPRMBnVtBm+shK1fL81tZz/GNKA/i1I4br1JfrSdbhanwpS9iboSqDo2B+QDUM+MJ4WgrGdH2b/QBu0SB8tkEJGeQEV8lC9+Z7rGGiIeAkWUPUdhSUGbdwstFsw+oNhYQT2xq35O1o6m+r5msdxzHa2SSpiUcv6oInbbIfxNP8lhN6vvXDcAbx6HEy9Aoae31Ob5qUK6GL+q+5llF7WhVVZM2U+yU/5UzDlQaUaAcTefzHxHY6yY+ivESGluNkuLhEhnkewBMU4hIHrGTYPiPT2HAi8kLQLNxS7Q7y8i0PaHozwMYH95f1Tpls1Tqmh/IAcandoqQTdaAH8/JtmXa2Lp08bDdG37nS4ZODuOo2yhnz66a1VaSpPKtbNfgW4uKofVgzlSd2RvqBaMhxP1Nn1Jyo+/MYp0bJ48nmXA+2wNeiWzOF5l6OCePKvm7xUGAr1gBR8vosjbI0MyKVkP/kMOYEeSBDS6aCdogsKnCOuCrB784UjJmBciDfGwi3zCEl8YxqdEYcQgM0LiNQF1sygvwToH5svfWg+3NhHuyFUXYf91oHIo8++8sqz1IvAqTUBmjXHMyHbMwfwEsztycD0JvL1G5UynCgrSjk/W1YOq66KzWk06B6tmGp2o9GQxfUToiyL9Kwo068fqfVUtoVhU3u1I0ltCc/JP2VHQjPJsiSKir4pRDY8jl9dqiUPijKALG6aDOvXqF7NU6E+W4cPZn+f7MEVoqKIY0ycRNB9g2wjhwgx+khgbOjgwt2eW8B43IQNnhYDggNJniIy2sVYTEuOjXAfDnZCf+CNbVpsdTA+dqCNrnCSwg10frWslrJbhrFubFk9eUPcHn6+I5hC3RJKcX17tNKyUsuVlWsOpsuBUDYO79emdKYLKTyR3CIKNuVeUw0GfMmQXksPSQiY36NdJVOCez95WdkQFo/MBZrSlrRrgmDLke0Skv7GrL3SWG3tjiqRYYnCglaKawKvfvyg1bIEV1nUXk9AsMLnShSgoh6XJIF/PQXRkF+H5GatwpNJnLuLvYE4q5LNZAWZk4wjFCILNmLpPFIcVW8DUj4CV8NE0sxowSoWb0gQNmwseGFb/rIQmH0r4POXt4tKQU+24sdKrm5DWb3EVXztNs03uFJdCE7A5VZDaI6F+RdRyriEDwx2zLRt8/1vQ0Wp+jFM+VWlQt90zKvUuqcoXl29ynTyxx3jpmINUEhuMpxJDFhDztxHMvIJZEvhqX47nW4LJa1Av+uNYxa/oVcRugp6pJNQwZJmO8Xnm3wwjmIfXX1ACzyBPR/NgG/ne4Mg32v7nVA1TRVFMBOxE5MRJT8YaQZEcxEY6rK6MdNGxaPUxR7eg5mpnW5LvKAoF8SWuzOaBVPN71ZNfH16ckoxmCrcpZr5qqm+7UWR93ZxwP9mxd7kLcIuXkT9U3YvEbEKuAR9idweDMc0/2BmNZO4nRYAHqegtsBnBR8wo3mlCRkcpABSAR7tLC52Otu3wyHsOrhwKM1Ho27LczxJEFpBMqu6gqY2dzeWavTVYFp0BPBatZ4RrsHiDYvwkY6DrP2x0Xev37l4leXzTK+7HK/ZnYMApuzPldijj3xpVhMLTF7MUY+fIyYlYpMeISIYG+4yIF4o8iwupwu3iIBlDN4fBr0I+TgoyhW8Xgj0+vwGRC79aTwP+Z8uEtgyfX1rC8AfSp62nHu5t6y5kiBToX5p/ZGq0TGq8C9ZoC/k5/L74x5AL4Y782feamGcm2s9perw/fywXquL8ILr3r3b8H3jqdekGhnH6a+yc+xu0iVbyB6ylxwkZLpI93itUXE7Ok6GS8XFQijAIxT/ONegiDEQG7HVG0ckLLqwWnPs4sH/E7NxsTGR/6IknzI3R8wYcK1d88GubYsPPfnQjuGuoFqL6+GCyaY2m6fkUn47sHz9Sj2QFF5RBLcRNFxVUaQAZoHL3z+vB6LCqyrvNsJAxA1VDAxNOqazVtfIwq0rLfjn7v2uqyiuu393brV2+b6u0Dmj22L6MUmD7wG3/rIuiXoY6I6iOA0DT5R0TLIfksugikp9srORo9fYH9FW15LPIj+9rd44K7mF18aWwayNkSajyZivfDLORoW/e+PgO4KFQS+AAbofDeq5Ao91WJJhKm+nTup4C0I2DlohXaL00/A5TdPks2G3G+b/tgO90bLTYeDk70VdmI3Oyrj7FmiUaW3FWPYE4CmUeaur6gMDjvfKTRdLJfDSTWGZfhmulkPjAUnvRvmb+Hpo77OnGxWsF662Q6wLYC6apZp8vxHJP3tMEChgHJdKWPnOzPJlDkRJEQzYeoDda3tY0zlNoxxtIv8BAp/RzHicY2BkYGAA4pdH83/H89t8ZeBmYQCBa/dOfIfR///9L2FZy9wL5HIwMIFEAb7yEGoAAAB4nGNgZGBgbvjfwBDDsur/v/9/WNYyAEVQAB8AvdUHxnicY2FgYGB+ycDAwoCEjdH4IGz5/z/Lqv//YHwAdGYGMgAAAAAAAAAAdgCoASoBgAHoAooDHAOCBAIEZgS8BVIF2gAAeJxjYGRgYOBjyGdgZQABJiDmAkIGhv9gPgMAFQ4BmQB4nGWPTU7DMBCFX/oHpBKqqGCH5AViASj9EatuWFRq911036ZOmyqJI8et1ANwHo7ACTgC3IA78EgnmzaWx9+8eWNPANzgBx6O3y33kT1cMjtyDRe4F65TfxBukF+Em2jjVbhF/U3YxzOmwm10YXmD17hi9oR3YQ8dfAjXcI1P4Tr1L+EG+Vu4iTv8CrfQ8erCPuZeV7iNRy/2x1YvnF6p5UHFockikzm/gple75KFrdLqnGtbxCZTg6BfSVOdaVvdU+zXQ+ciFVmTqgmrOkmMyq3Z6tAFG+fyUa8XiR6EJuVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxty8sOQDAUhOEzpVRRr9JqXV6nYk0iJB5fUjlWZvHn2wwJeqfpfwYCGXJIFCihUEGjRoMWBh3hlmdcbEj1qS61V/HYr221jhEYM2NgjIyJ8d090QM3mB8/AAA=') format('woff'), + url('iconfont.ttf?t=1522051063980') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('iconfont.svg?t=1522051063980#iconfont') format('svg'); /* iOS 4.1- */ +} + +.iconfont { + font-family:"iconfont" !important; + font-size:16px; + font-style:normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-tab04:before { content: "\e604"; } + +.icon-tab03:before { content: "\e605"; } + +.icon-tab01:before { content: "\e606"; } + +.icon-tab02:before { content: "\e607"; } + +.icon-around01:before { content: "\e609"; } + +.icon-around04:before { content: "\e60a"; } + +.icon-around08:before { content: "\e60b"; } + +.icon-around05:before { content: "\e60c"; } + +.icon-around06:before { content: "\e60d"; } + +.icon-around07:before { content: "\e60e"; } + +.icon-around02:before { content: "\e60f"; } + +.icon-around03:before { content: "\e610"; } + +.icon-star:before { content: ""; } + +/* 自适应 */ +@media(max-width:414px){ + .list-block .item-title span.c3a{max-width:220px;} + .textAlignLeft{left:88px;} + .textAlignLeft01{left:110px;} + label.spacing01{margin-right:41px;} + label.spacing02{margin-right:42px;} + small.spacing01a{margin-right:3.7px;} + .rangeNote span.span01{margin-right:8.5%;} + .rangeNote span.span01a{margin-left:8%;} + .rangeNote span.span02{margin-right:8%;} + .rangeNote span.span03{margin-right:13.5%;} + .rangeNote span.span04{margin-right:16%;} + .rangeNote span.span05{margin-right:13%;} + .guideBox02 .guideText{top:13.8rem;} + .guideBox01 .link{margin-top:8.5em;} + .guideBox02 .link{margin-top:17.7rem;} +} +@media(max-width:375px){ + .list-block .item-title span.c3a{max-width:180px;} + label.spacing01{margin-right:11px;} + label.spacing02{margin-right:12px;} + .rangeNote span.span01{margin-right:8.5%;} + .rangeNote span.span01a{margin-left:9%;} + .rangeNote span.span02{margin-right:8%;} + .rangeNote span.span03{margin-right:14%;} + .rangeNote span.span04{margin-right:15.5%;} + .rangeNote span.span05{margin-right:13%;} +} +@media(max-width:320px){ + .list-block .item-title span.c3a{max-width:112px;} + .list-block .item-title label{max-width:100px;} + label.spacing01{margin-right:11px;} + label.spacing02{margin-right:12px;} + .priceInfo div div span{width:125px;} + .rangeNote span.span01{margin-right:8.5%;} + .rangeNote span.span01a{margin-left:8%;} + .rangeNote span.span02{margin-right:6.2%;} + .rangeNote span.span03{margin-right:10%;} + .rangeNote span.span04{margin-right:13%;} + .rangeNote span.span05{margin-right:9%;} + .cardInfo01a .card-footer span{width:auto;} + .cardInfo02 img{width:5rem;height:4rem;} + .cardInfo02 .item-subtitle{margin-top:0;} + .cardCity .card-footer span em strong{font-size:0.9rem;} + .list-block.media-list.cityList ul li:nth-child(1) .item-subtitle div{font-size:0.6rem;} + .adBoxApp{width:88%;} +} +@media(min-height:750px){ + .bar-tab{bottom:1.7rem;} + .bar-tab ~ .content{bottom:4.2rem;} + .swiper-slide div{bottom:12rem;} + .swiper-slide div.content-block{bottom:5rem;} + .swiper-container-horizontal>.swiper-pagination{bottom:4rem;} +} +@media only screen and (-webkit-min-device-pixel-ratio:2){ + .list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);} +} +@media only screen and (-webkit-min-device-pixel-ratio:3){ + .list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);} +} + + + + + diff --git a/fangija-zsyf/css/mui.css b/fangija-zsyf/css/mui.css new file mode 100644 index 0000000..8abf444 --- /dev/null +++ b/fangija-zsyf/css/mui.css @@ -0,0 +1,5612 @@ +/*! + * ===================================================== + * Mui v3.7.2 (http://dev.dcloud.net.cn/mui) + * ===================================================== + */ + +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ +html +{ + font-family: sans-serif; + + -webkit-text-size-adjust: 100%; +} + +body +{ + margin: 0; +} + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary +{ + display: block; +} + +audio, +canvas, +progress, +video +{ + display: inline-block; + + vertical-align: baseline; +} + +audio:not([controls]) +{ + display: none; + + height: 0; +} + +[hidden], +template +{ + display: none; +} + +a +{ + background: transparent; +} + +a:active, +a:hover +{ + outline: 0; +} + +abbr[title] +{ + border-bottom: 1px dotted; +} + +b, +strong +{ + font-weight: bold; +} + +dfn +{ + font-style: italic; +} + +h1 +{ + font-size: 2em; + + margin: .67em 0; +} + +mark +{ + color: #000; + background: #ff0; +} + +small +{ + font-size: 80%; +} + +sub, +sup +{ + font-size: 75%; + line-height: 0; + + position: relative; + + vertical-align: baseline; +} + +sup +{ + top: -.5em; +} + +sub +{ + bottom: -.25em; +} + +img +{ + border: 0; +} + +svg:not(:root) +{ + overflow: hidden; +} + +figure +{ + margin: 1em 40px; +} + +hr +{ + box-sizing: content-box; + height: 0; +} + +pre +{ + overflow: auto; +} + +code, +kbd, +pre, +samp +{ + font-family: monospace, monospace; + font-size: 1em; +} + +button, +input, +optgroup, +select, +textarea +{ + font: inherit; + + margin: 0; + + color: inherit; +} + +button +{ + overflow: visible; +} + +button, +select +{ + text-transform: none; +} + +button, +html input[type='button'], +input[type='reset'], +input[type='submit'] +{ + cursor: pointer; + + -webkit-appearance: button; +} + +button[disabled], +html input[disabled] +{ + cursor: default; +} + +input +{ + line-height: normal; +} + +input[type='checkbox'], +input[type='radio'] +{ + box-sizing: border-box; + padding: 0; +} + +input[type='number']::-webkit-inner-spin-button, +input[type='number']::-webkit-outer-spin-button +{ + height: auto; +} + +input[type='search'] +{ + -webkit-box-sizing: content-box; + box-sizing: content-box; + + -webkit-appearance: textfield; +} + +input[type='search']::-webkit-search-cancel-button, +input[type='search']::-webkit-search-decoration +{ + -webkit-appearance: none; +} + +fieldset +{ + margin: 0 2px; + padding: .35em .625em .75em; + + border: 1px solid #c0c0c0; +} + +legend +{ + padding: 0; + + border: 0; +} + +textarea +{ + overflow: auto; +} + +optgroup +{ + font-weight: bold; +} + +table +{ + border-spacing: 0; + border-collapse: collapse; +} + +td, +th +{ + padding: 0; +} + +* +{ + -webkit-box-sizing: border-box; + box-sizing: border-box; + + -webkit-user-select: none; + + outline: none; + + -webkit-tap-highlight-color: transparent; + -webkit-tap-highlight-color: transparent; +} + +body +{ + font-family: 'Helvetica Neue', Helvetica, sans-serif; + font-size: 17px; + line-height: 21px; + + color: #000; + background-color: #efeff4; + + -webkit-overflow-scrolling: touch; +} + +a +{ + text-decoration: none; + + color: #007aff; +} +a:active +{ + color: #0062cc; +} + +.mui-content +{ + background-color: #efeff4; + + -webkit-overflow-scrolling: touch; +} + +.mui-bar-nav ~ .mui-content +{ + padding-top: 44px; +} +.mui-bar-nav ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical +{ + top: 44px; +} + +.mui-bar-header-secondary ~ .mui-content +{ + padding-top: 88px; +} +.mui-bar-header-secondary ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical +{ + top: 88px; +} + +.mui-bar-footer ~ .mui-content +{ + padding-bottom: 44px; +} +.mui-bar-footer ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical +{ + bottom: 44px; +} + +.mui-bar-footer-secondary ~ .mui-content +{ + padding-bottom: 88px; +} +.mui-bar-footer-secondary ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical +{ + bottom: 88px; +} + +.mui-bar-tab ~ .mui-content +{ + padding-bottom: 50px; +} +.mui-bar-tab ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical +{ + bottom: 50px; +} + +.mui-bar-footer-secondary-tab ~ .mui-content +{ + padding-bottom: 94px; +} +.mui-bar-footer-secondary-tab ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical +{ + bottom: 94px; +} + +.mui-content-padded +{ + margin: 10px; +} + +.mui-inline +{ + display: inline-block; + + vertical-align: top; +} + +.mui-block +{ + display: block !important; +} + +.mui-visibility +{ + visibility: visible !important; +} + +.mui-hidden +{ + display: none !important; +} + +.mui-ellipsis +{ + overflow: hidden; + + white-space: nowrap; + text-overflow: ellipsis; +} + +.mui-ellipsis-2 +{ + display: -webkit-box; + overflow: hidden; + + white-space: normal !important; + text-overflow: ellipsis; + word-wrap: break-word; + + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} + +.mui-table +{ + display: table; + + width: 100%; + + table-layout: fixed; +} + +.mui-table-cell +{ + position: relative; + + display: table-cell; +} + +.mui-text-left +{ + text-align: left !important; +} + +.mui-text-center +{ + text-align: center !important; +} + +.mui-text-justify +{ + text-align: justify !important; +} + +.mui-text-right +{ + text-align: right !important; +} + +.mui-pull-left +{ + float: left; +} + +.mui-pull-right +{ + float: right; +} + +.mui-list-unstyled +{ + padding-left: 0; + + list-style: none; +} + +.mui-list-inline +{ + margin-left: -5px; + padding-left: 0; + + list-style: none; +} + +.mui-list-inline > li +{ + display: inline-block; + + padding-right: 5px; + padding-left: 5px; +} + +.mui-clearfix:before, .mui-clearfix:after +{ + display: table; + + content: ' '; +} +.mui-clearfix:after +{ + clear: both; +} + +.mui-bg-primary +{ + background-color: #007aff; +} + +.mui-bg-positive +{ + background-color: #4cd964; +} + +.mui-bg-negative +{ + background-color: #dd524d; +} + +.mui-error +{ + margin: 88px 35px; + padding: 10px; + + border-radius: 6px; + background-color: #bbb; +} + +.mui-subtitle +{ + font-size: 15px; +} + +h1, h2, h3, h4, h5, h6 +{ + line-height: 1; + + margin-top: 5px; + margin-bottom: 5px; +} + +h1, .mui-h1 +{ + font-size: 36px; +} + +h2, .mui-h2 +{ + font-size: 30px; +} + +h3, .mui-h3 +{ + font-size: 24px; +} + +h4, .mui-h4 +{ + font-size: 18px; +} + +h5, .mui-h5 +{ + font-size: 14px; + font-weight: normal; + + color: #8f8f94; +} + +h6, .mui-h6 +{ + font-size: 12px; + font-weight: normal; + + color: #8f8f94; +} + +p +{ + font-size: 14px; + + margin-top: 0; + margin-bottom: 10px; + + color: #8f8f94; +} + +.mui-row:before, .mui-row:after +{ + display: table; + + content: ' '; +} +.mui-row:after +{ + clear: both; +} + +.mui-col-xs-1, .mui-col-sm-1, .mui-col-xs-2, .mui-col-sm-2, .mui-col-xs-3, .mui-col-sm-3, .mui-col-xs-4, .mui-col-sm-4, .mui-col-xs-5, .mui-col-sm-5, .mui-col-xs-6, .mui-col-sm-6, .mui-col-xs-7, .mui-col-sm-7, .mui-col-xs-8, .mui-col-sm-8, .mui-col-xs-9, .mui-col-sm-9, .mui-col-xs-10, .mui-col-sm-10, .mui-col-xs-11, .mui-col-sm-11, .mui-col-xs-12, .mui-col-sm-12 +{ + position: relative; + + min-height: 1px; +} + +.mui-row > [class*='mui-col-'] +{ + float: left; +} + +.mui-col-xs-12 +{ + width: 100%; +} + +.mui-col-xs-11 +{ + width: 91.66666667%; +} + +.mui-col-xs-10 +{ + width: 83.33333333%; +} + +.mui-col-xs-9 +{ + width: 75%; +} + +.mui-col-xs-8 +{ + width: 66.66666667%; +} + +.mui-col-xs-7 +{ + width: 58.33333333%; +} + +.mui-col-xs-6 +{ + width: 50%; +} + +.mui-col-xs-5 +{ + width: 41.66666667%; +} + +.mui-col-xs-4 +{ + width: 33.33333333%; +} + +.mui-col-xs-3 +{ + width: 25%; +} + +.mui-col-xs-2 +{ + width: 16.66666667%; +} + +.mui-col-xs-1 +{ + width: 8.33333333%; +} + +@media (min-width: 400px) +{ + .mui-col-sm-12 + { + width: 100%; + } + + .mui-col-sm-11 + { + width: 91.66666667%; + } + + .mui-col-sm-10 + { + width: 83.33333333%; + } + + .mui-col-sm-9 + { + width: 75%; + } + + .mui-col-sm-8 + { + width: 66.66666667%; + } + + .mui-col-sm-7 + { + width: 58.33333333%; + } + + .mui-col-sm-6 + { + width: 50%; + } + + .mui-col-sm-5 + { + width: 41.66666667%; + } + + .mui-col-sm-4 + { + width: 33.33333333%; + } + + .mui-col-sm-3 + { + width: 25%; + } + + .mui-col-sm-2 + { + width: 16.66666667%; + } + + .mui-col-sm-1 + { + width: 8.33333333%; + } +} +.mui-scroll-wrapper +{ + position: absolute; + z-index: 2; + top: 0; + bottom: 0; + left: 0; + + overflow: hidden; + + width: 100%; +} + +.mui-scroll +{ + position: absolute; + z-index: 1; + + width: 100%; +} + +.mui-scrollbar +{ + position: absolute; + z-index: 9998; + + overflow: hidden; + + -webkit-transition: 500ms; + transition: 500ms; + transform: translateZ(0px); + pointer-events: none; + + opacity: 0; +} + +.mui-scrollbar-vertical +{ + top: 0; + right: 1px; + bottom: 2px; + + width: 4px; +} +.mui-scrollbar-vertical .mui-scrollbar-indicator +{ + width: 100%; +} + +.mui-scrollbar-horizontal +{ + right: 2px; + bottom: 0; + left: 2px; + + height: 4px; +} +.mui-scrollbar-horizontal .mui-scrollbar-indicator +{ + height: 100%; +} + +.mui-scrollbar-indicator +{ + position: absolute; + + display: block; + + box-sizing: border-box; + + -webkit-transition: .01s cubic-bezier(.1, .57, .1, 1); + transition: .01s cubic-bezier(.1, .57, .1, 1); + transform: translate(0px, 0px) translateZ(0px); + + border: 1px solid rgba(255, 255, 255, .80196); + border-radius: 2px; + background: rgba(0, 0, 0, .39804); +} + +.mui-plus-pullrefresh .mui-fullscreen .mui-scroll-wrapper .mui-scroll-wrapper, .mui-plus-pullrefresh .mui-fullscreen .mui-slider-group .mui-scroll-wrapper +{ + position: absolute; + top: 0; + bottom: 0; + left: 0; + + overflow: hidden; + + width: 100%; +} +.mui-plus-pullrefresh .mui-fullscreen .mui-scroll-wrapper .mui-scroll, .mui-plus-pullrefresh .mui-fullscreen .mui-slider-group .mui-scroll +{ + position: absolute; + + width: 100%; +} +.mui-plus-pullrefresh .mui-scroll-wrapper, .mui-plus-pullrefresh .mui-slider-group +{ + position: static; + top: auto; + bottom: auto; + left: auto; + + overflow: auto; + + width: auto; +} +.mui-plus-pullrefresh .mui-slider-group +{ + overflow: visible; +} +.mui-plus-pullrefresh .mui-scroll +{ + position: static; + + width: auto; +} + +.mui-off-canvas-wrap .mui-bar +{ + position: absolute !important; + + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + + -webkit-box-shadow: none; + box-shadow: none; +} + +.mui-off-canvas-wrap +{ + position: relative; + z-index: 1; + + overflow: hidden; + + width: 100%; + height: 100%; +} +.mui-off-canvas-wrap .mui-inner-wrap +{ + position: relative; + z-index: 1; + + width: 100%; + height: 100%; +} +.mui-off-canvas-wrap .mui-inner-wrap.mui-transitioning +{ + -webkit-transition: -webkit-transform 350ms; + transition: transform 350ms cubic-bezier(.165, .84, .44, 1); +} +.mui-off-canvas-wrap .mui-inner-wrap .mui-off-canvas-left +{ + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); +} +.mui-off-canvas-wrap .mui-inner-wrap .mui-off-canvas-right +{ + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); +} +.mui-off-canvas-wrap.mui-active +{ + overflow: hidden; + + height: 100%; +} +.mui-off-canvas-wrap.mui-active .mui-off-canvas-backdrop +{ + position: absolute; + z-index: 998; + top: 0; + right: 0; + bottom: 0; + left: 0; + + display: block; + + transition: background 350ms cubic-bezier(.165, .84, .44, 1); + + background: rgba(0, 0, 0, .4); + box-shadow: -4px 0 4px rgba(0, 0, 0, .5), 4px 0 4px rgba(0, 0, 0, .5); + + -webkit-tap-highlight-color: transparent; +} +.mui-off-canvas-wrap.mui-slide-in .mui-off-canvas-right +{ + z-index: 10000 !important; + + -webkit-transform: translate3d(100%, 0px, 0px); +} +.mui-off-canvas-wrap.mui-slide-in .mui-off-canvas-left +{ + z-index: 10000 !important; + + -webkit-transform: translate3d(-100%, 0px, 0px); +} + +.mui-off-canvas-left, .mui-off-canvas-right +{ + position: absolute; + z-index: -1; + top: 0; + bottom: 0; + + visibility: hidden; + + box-sizing: content-box; + width: 70%; + min-height: 100%; + + background: #333; + + -webkit-overflow-scrolling: touch; +} +.mui-off-canvas-left.mui-transitioning, .mui-off-canvas-right.mui-transitioning +{ + -webkit-transition: -webkit-transform 350ms cubic-bezier(.165, .84, .44, 1); + transition: transform 350ms cubic-bezier(.165, .84, .44, 1); +} + +.mui-off-canvas-left +{ + left: 0; +} + +.mui-off-canvas-right +{ + right: 0; +} + +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable +{ + background-color: #333; +} +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable > .mui-off-canvas-left, .mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable > .mui-off-canvas-right +{ + width: 80%; + + -webkit-transform: scale(.8); + transform: scale(.8); + + opacity: .1; +} +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable > .mui-off-canvas-left.mui-transitioning, .mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable > .mui-off-canvas-right.mui-transitioning +{ + -webkit-transition: -webkit-transform 350ms cubic-bezier(.165, .84, .44, 1), opacity 350ms cubic-bezier(.165, .84, .44, 1); + transition: transform 350ms cubic-bezier(.165, .84, .44, 1), opacity 350ms cubic-bezier(.165, .84, .44, 1); +} +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable > .mui-off-canvas-left +{ + -webkit-transform-origin: -100%; + transform-origin: -100%; +} +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable > .mui-off-canvas-right +{ + -webkit-transform-origin: 200%; + transform-origin: 200%; +} +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable.mui-active > .mui-inner-wrap +{ + -webkit-transform: scale(.8); + transform: scale(.8); +} +.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable.mui-active > .mui-off-canvas-left, .mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable.mui-active > .mui-off-canvas-right +{ + -webkit-transform: scale(1); + transform: scale(1); + + opacity: 1; +} + +.mui-loading .mui-spinner +{ + display: block; + + margin: 0 auto; +} + +.mui-spinner +{ + display: inline-block; + + width: 24px; + height: 24px; + + -webkit-transform-origin: 50%; + transform-origin: 50%; + -webkit-animation: spinner-spin 1s step-end infinite; + animation: spinner-spin 1s step-end infinite; +} + +.mui-spinner:after +{ + display: block; + + width: 100%; + height: 100%; + + content: ''; + + background-image: url('data:image/svg+xml;charset=utf-8,'); + background-repeat: no-repeat; + background-position: 50%; + background-size: 100%; +} + +.mui-spinner-white:after +{ + background-image: url('data:image/svg+xml;charset=utf-8,'); +} + +@-webkit-keyframes spinner-spin +{ + 0% + { + -webkit-transform: rotate(0deg); + } + + 8.33333333% + { + -webkit-transform: rotate(30deg); + } + + 16.66666667% + { + -webkit-transform: rotate(60deg); + } + + 25% + { + -webkit-transform: rotate(90deg); + } + + 33.33333333% + { + -webkit-transform: rotate(120deg); + } + + 41.66666667% + { + -webkit-transform: rotate(150deg); + } + + 50% + { + -webkit-transform: rotate(180deg); + } + + 58.33333333% + { + -webkit-transform: rotate(210deg); + } + + 66.66666667% + { + -webkit-transform: rotate(240deg); + } + + 75% + { + -webkit-transform: rotate(270deg); + } + + 83.33333333% + { + -webkit-transform: rotate(300deg); + } + + 91.66666667% + { + -webkit-transform: rotate(330deg); + } + + 100% + { + -webkit-transform: rotate(360deg); + } +} +@keyframes spinner-spin +{ + 0% + { + transform: rotate(0deg); + } + + 8.33333333% + { + transform: rotate(30deg); + } + + 16.66666667% + { + transform: rotate(60deg); + } + + 25% + { + transform: rotate(90deg); + } + + 33.33333333% + { + transform: rotate(120deg); + } + + 41.66666667% + { + transform: rotate(150deg); + } + + 50% + { + transform: rotate(180deg); + } + + 58.33333333% + { + transform: rotate(210deg); + } + + 66.66666667% + { + transform: rotate(240deg); + } + + 75% + { + transform: rotate(270deg); + } + + 83.33333333% + { + transform: rotate(300deg); + } + + 91.66666667% + { + transform: rotate(330deg); + } + + 100% + { + transform: rotate(360deg); + } +} +input[type='button'], +input[type='submit'], +input[type='reset'], +button, +.mui-btn +{ + font-size: 14px; + font-weight: 400; + line-height: 1.42; + + position: relative; + + display: inline-block; + + margin-bottom: 0; + padding: 6px 12px; + + cursor: pointer; + -webkit-transition: all; + transition: all; + -webkit-transition-timing-function: linear; + transition-timing-function: linear; + -webkit-transition-duration: .2s; + transition-duration: .2s; + text-align: center; + vertical-align: top; + white-space: nowrap; + + color: #333; + border: 1px solid #ccc; + border-radius: 3px; + border-top-left-radius: 3px; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; + background-color: #fff; + background-clip: padding-box; +} +input[type='button']:enabled:active, input[type='button'].mui-active:enabled, +input[type='submit']:enabled:active, +input[type='submit'].mui-active:enabled, +input[type='reset']:enabled:active, +input[type='reset'].mui-active:enabled, +button:enabled:active, +button.mui-active:enabled, +.mui-btn:enabled:active, +.mui-btn.mui-active:enabled +{ + color: #fff; + background-color: #929292; +} +input[type='button']:disabled, input[type='button'].mui-disabled, +input[type='submit']:disabled, +input[type='submit'].mui-disabled, +input[type='reset']:disabled, +input[type='reset'].mui-disabled, +button:disabled, +button.mui-disabled, +.mui-btn:disabled, +.mui-btn.mui-disabled +{ + opacity: .6; +} + +input[type='submit'], +.mui-btn-primary, +.mui-btn-blue +{ + color: #fff; + border: 1px solid #007aff; + background-color: #007aff; +} +input[type='submit']:enabled:active, input[type='submit'].mui-active:enabled, +.mui-btn-primary:enabled:active, +.mui-btn-primary.mui-active:enabled, +.mui-btn-blue:enabled:active, +.mui-btn-blue.mui-active:enabled +{ + color: #fff; + border: 1px solid #0062cc; + background-color: #0062cc; +} + +.mui-btn-positive, +.mui-btn-success, +.mui-btn-green +{ + color: #fff; + border: 1px solid #4cd964; + background-color: #4cd964; +} +.mui-btn-positive:enabled:active, .mui-btn-positive.mui-active:enabled, +.mui-btn-success:enabled:active, +.mui-btn-success.mui-active:enabled, +.mui-btn-green:enabled:active, +.mui-btn-green.mui-active:enabled +{ + color: #fff; + border: 1px solid #2ac845; + background-color: #2ac845; +} + +.mui-btn-warning, +.mui-btn-yellow +{ + color: #fff; + border: 1px solid #f0ad4e; + background-color: #f0ad4e; +} +.mui-btn-warning:enabled:active, .mui-btn-warning.mui-active:enabled, +.mui-btn-yellow:enabled:active, +.mui-btn-yellow.mui-active:enabled +{ + color: #fff; + border: 1px solid #ec971f; + background-color: #ec971f; +} + +.mui-btn-negative, +.mui-btn-danger, +.mui-btn-red +{ + color: #fff; + border: 1px solid #dd524d; + background-color: #dd524d; +} +.mui-btn-negative:enabled:active, .mui-btn-negative.mui-active:enabled, +.mui-btn-danger:enabled:active, +.mui-btn-danger.mui-active:enabled, +.mui-btn-red:enabled:active, +.mui-btn-red.mui-active:enabled +{ + color: #fff; + border: 1px solid #cf2d28; + background-color: #cf2d28; +} + +.mui-btn-royal, +.mui-btn-purple +{ + color: #fff; + border: 1px solid #8a6de9; + background-color: #8a6de9; +} +.mui-btn-royal:enabled:active, .mui-btn-royal.mui-active:enabled, +.mui-btn-purple:enabled:active, +.mui-btn-purple.mui-active:enabled +{ + color: #fff; + border: 1px solid #6641e2; + background-color: #6641e2; +} + +.mui-btn-grey +{ + color: #fff; + border: 1px solid #c7c7cc; + background-color: #c7c7cc; +} +.mui-btn-grey:enabled:active, .mui-btn-grey.mui-active:enabled +{ + color: #fff; + border: 1px solid #acacb4; + background-color: #acacb4; +} + +.mui-btn-outlined +{ + background-color: transparent; +} +.mui-btn-outlined.mui-btn-primary, .mui-btn-outlined.mui-btn-blue +{ + color: #007aff; +} +.mui-btn-outlined.mui-btn-positive, .mui-btn-outlined.mui-btn-success, .mui-btn-outlined.mui-btn-green +{ + color: #4cd964; +} +.mui-btn-outlined.mui-btn-warning, .mui-btn-outlined.mui-btn-yellow +{ + color: #f0ad4e; +} +.mui-btn-outlined.mui-btn-negative, .mui-btn-outlined.mui-btn-danger, .mui-btn-outlined.mui-btn-red +{ + color: #dd524d; +} +.mui-btn-outlined.mui-btn-royal, .mui-btn-outlined.mui-btn-purple +{ + color: #8a6de9; +} +.mui-btn-outlined.mui-btn-primary:enabled:active, .mui-btn-outlined.mui-btn-blue:enabled:active, .mui-btn-outlined.mui-btn-positive:enabled:active, .mui-btn-outlined.mui-btn-success:enabled:active, .mui-btn-outlined.mui-btn-green:enabled:active, .mui-btn-outlined.mui-btn-warning:enabled:active, .mui-btn-outlined.mui-btn-yellow:enabled:active, .mui-btn-outlined.mui-btn-negative:enabled:active, .mui-btn-outlined.mui-btn-danger:enabled:active, .mui-btn-outlined.mui-btn-red:enabled:active, .mui-btn-outlined.mui-btn-royal:enabled:active, .mui-btn-outlined.mui-btn-purple:enabled:active +{ + color: #fff; +} + +.mui-btn-link +{ + padding-top: 6px; + padding-bottom: 6px; + + color: #007aff; + border: 0; + background-color: transparent; +} +.mui-btn-link:enabled:active, .mui-btn-link.mui-active:enabled +{ + color: #0062cc; + background-color: transparent; +} + +.mui-btn-block +{ + font-size: 18px; + + display: block; + + width: 100%; + margin-bottom: 10px; + padding: 15px 0; +} + +.mui-btn .mui-badge +{ + font-size: 14px; + + margin: -2px -4px -2px 4px; + + background-color: rgba(0, 0, 0, .15); +} + +.mui-btn .mui-badge-inverted, +.mui-btn:enabled:active .mui-badge-inverted +{ + background-color: transparent; +} + +.mui-btn-primary:enabled:active .mui-badge-inverted, +.mui-btn-positive:enabled:active .mui-badge-inverted, +.mui-btn-negative:enabled:active .mui-badge-inverted +{ + color: #fff; +} + +.mui-btn-block .mui-badge +{ + position: absolute; + right: 0; + + margin-right: 10px; +} + +.mui-btn .mui-icon +{ + font-size: inherit; +} + +.mui-btn.mui-icon +{ + font-size: 14px; + line-height: 1.42; +} + +.mui-btn.mui-fab +{ + width: 56px; + height: 56px; + padding: 16px; + + border-radius: 50%; + outline: none; +} +.mui-btn.mui-fab.mui-btn-mini +{ + width: 40px; + height: 40px; + padding: 8px; +} +.mui-btn.mui-fab .mui-icon +{ + font-size: 24px; + line-height: 24px; + + width: 24px; + height: 24px; +} + +.mui-btn .mui-spinner +{ + width: 14px; + height: 14px; + + vertical-align: text-bottom; +} + +.mui-btn-block .mui-spinner +{ + width: 22px; + height: 22px; +} + +.mui-bar +{ + position: fixed; + z-index: 10; + right: 0; + left: 0; + + height: 44px; + padding-right: 10px; + padding-left: 10px; + + border-bottom: 0; + background-color: #f7f7f7; + -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .85); + box-shadow: 0 0 1px rgba(0, 0, 0, .85); + + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} + +.mui-bar .mui-title +{ + right: 40px; + left: 40px; + + display: inline-block; + overflow: hidden; + + width: auto; + margin: 0; + + text-overflow: ellipsis; +} +.mui-bar .mui-backdrop +{ + background: none; +} + +.mui-bar-header-secondary +{ + top: 44px; +} + +.mui-bar-footer +{ + bottom: 0; +} + +.mui-bar-footer-secondary +{ + bottom: 44px; +} + +.mui-bar-footer-secondary-tab +{ + bottom: 50px; +} + +.mui-bar-footer, +.mui-bar-footer-secondary, +.mui-bar-footer-secondary-tab +{ + border-top: 0; +} + +.mui-bar-transparent +{ + top: 0; + + background-color: rgba(247, 247, 247, 0); + -webkit-box-shadow: none; + box-shadow: none; +} + +.mui-bar-nav +{ + top: 0; + + -webkit-box-shadow: 0 1px 6px #ccc; + box-shadow: 0 1px 6px #ccc; +} +.mui-bar-nav ~ .mui-content .mui-anchor +{ + display: block; + visibility: hidden; + + height: 45px; + margin-top: -45px; +} +.mui-bar-nav.mui-bar .mui-icon +{ + margin-right: -10px; + margin-left: -10px; + padding-right: 10px; + padding-left: 10px; +} + +.mui-title +{ + font-size: 17px; + font-weight: 500; + line-height: 44px; + + position: absolute; + + display: block; + + width: 100%; + margin: 0 -10px; + padding: 0; + + text-align: center; + white-space: nowrap; + + color: #000; +} + +.mui-title a +{ + color: inherit; +} + +.mui-bar-tab +{ + bottom: 0; + + display: table; + + width: 100%; + height: 50px; + padding: 0; + + table-layout: fixed; + + border-top: 0; + border-bottom: 0; + + -webkit-touch-callout: none; +} +.mui-bar-tab .mui-tab-item +{ + display: table-cell; + overflow: hidden; + + width: 1%; + height: 50px; + + text-align: center; + vertical-align: middle; + white-space: nowrap; + text-overflow: ellipsis; + + color: #929292; +} +.mui-bar-tab .mui-tab-item.mui-active +{ + color: #007aff; +} +.mui-bar-tab .mui-tab-item .mui-icon +{ + top: 3px; + + width: 24px; + height: 24px; + padding-top: 0; + padding-bottom: 0; +} +.mui-bar-tab .mui-tab-item .mui-icon ~ .mui-tab-label +{ + font-size: 11px; + + display: block; + overflow: hidden; + + text-overflow: ellipsis; +} +.mui-bar-tab .mui-tab-item .mui-icon:active +{ + background: none; +} + +.mui-focusin > .mui-bar-nav, +.mui-focusin > .mui-bar-header-secondary +{ + position: absolute; +} + +.mui-focusin > .mui-bar ~ .mui-content +{ + padding-bottom: 0; +} + +.mui-bar .mui-btn +{ + font-weight: 400; + + position: relative; + z-index: 20; + top: 7px; + + margin-top: 0; + padding: 6px 12px 7px; +} +.mui-bar .mui-btn.mui-pull-right +{ + margin-left: 10px; +} +.mui-bar .mui-btn.mui-pull-left +{ + margin-right: 10px; +} + +.mui-bar .mui-btn-link +{ + font-size: 16px; + line-height: 44px; + + top: 0; + + padding: 0; + + color: #007aff; + border: 0; +} +.mui-bar .mui-btn-link:active, .mui-bar .mui-btn-link.mui-active +{ + color: #0062cc; +} + +.mui-bar .mui-btn-block +{ + font-size: 16px; + + top: 6px; + + margin-bottom: 0; + padding: 5px 0; +} + +.mui-bar .mui-btn-nav.mui-pull-left +{ + margin-left: -5px; +} +.mui-bar .mui-btn-nav.mui-pull-left .mui-icon-left-nav +{ + margin-right: -3px; +} +.mui-bar .mui-btn-nav.mui-pull-right +{ + margin-right: -5px; +} +.mui-bar .mui-btn-nav.mui-pull-right .mui-icon-right-nav +{ + margin-left: -3px; +} +.mui-bar .mui-btn-nav:active +{ + opacity: .3; +} + +.mui-bar .mui-icon +{ + font-size: 24px; + + position: relative; + z-index: 20; + + padding-top: 10px; + padding-bottom: 10px; +} +.mui-bar .mui-icon:active +{ + opacity: .3; +} +.mui-bar .mui-btn .mui-icon +{ + top: 1px; + + margin: 0; + padding: 0; +} +.mui-bar .mui-title .mui-icon +{ + margin: 0; + padding: 0; +} +.mui-bar .mui-title .mui-icon.mui-icon-caret +{ + top: 4px; + + margin-left: -5px; +} + +.mui-bar input[type='search'] +{ + height: 29px; + margin: 6px 0; +} + +.mui-bar .mui-input-row .mui-btn +{ + padding: 12px 10px; +} + +.mui-bar .mui-search:before +{ + margin-top: -10px; +} + +.mui-bar .mui-input-row .mui-input-clear ~ .mui-icon-clear, +.mui-bar .mui-input-row .mui-input-speech ~ .mui-icon-speech +{ + top: 0; + right: 12px; +} + +.mui-bar.mui-bar-header-secondary .mui-input-row .mui-input-clear ~ .mui-icon-clear, +.mui-bar.mui-bar-header-secondary .mui-input-row .mui-input-speech ~ .mui-icon-speech +{ + top: 0; + right: 0; +} + +.mui-bar .mui-segmented-control +{ + top: 7px; + + width: auto; + margin: 0 auto; +} + +.mui-bar.mui-bar-header-secondary .mui-segmented-control +{ + top: 0; +} + +.mui-badge +{ + font-size: 12px; + line-height: 1; + + display: inline-block; + + padding: 3px 6px; + + color: #333; + border-radius: 100px; + background-color: rgba(0, 0, 0, .15); +} +.mui-badge.mui-badge-inverted +{ + padding: 0 5px 0 0; + + color: #929292; + background-color: transparent; +} + +.mui-badge-primary, .mui-badge-blue +{ + color: #fff; + background-color: #007aff; +} +.mui-badge-primary.mui-badge-inverted, .mui-badge-blue.mui-badge-inverted +{ + color: #007aff; + background-color: transparent; +} + +.mui-badge-success, .mui-badge-green +{ + color: #fff; + background-color: #4cd964; +} +.mui-badge-success.mui-badge-inverted, .mui-badge-green.mui-badge-inverted +{ + color: #4cd964; + background-color: transparent; +} + +.mui-badge-warning, .mui-badge-yellow +{ + color: #fff; + background-color: #f0ad4e; +} +.mui-badge-warning.mui-badge-inverted, .mui-badge-yellow.mui-badge-inverted +{ + color: #f0ad4e; + background-color: transparent; +} + +.mui-badge-danger, .mui-badge-red +{ + color: #fff; + background-color: #dd524d; +} +.mui-badge-danger.mui-badge-inverted, .mui-badge-red.mui-badge-inverted +{ + color: #dd524d; + background-color: transparent; +} + +.mui-badge-royal, .mui-badge-purple +{ + color: #fff; + background-color: #8a6de9; +} +.mui-badge-royal.mui-badge-inverted, .mui-badge-purple.mui-badge-inverted +{ + color: #8a6de9; + background-color: transparent; +} + +.mui-icon .mui-badge +{ + font-size: 10px; + line-height: 1.4; + + position: absolute; + top: -2px; + left: 100%; + + margin-left: -10px; + padding: 1px 5px; + + color: white; + background: red; +} + +.mui-card +{ + font-size: 14px; + + position: relative; + + overflow: hidden; + + margin: 10px; + + border-radius: 2px; + background-color: white; + background-clip: padding-box; + box-shadow: 0 1px 2px rgba(0, 0, 0, .3); +} + +.mui-content > .mui-card:first-child +{ + margin-top: 15px; +} + +.mui-card .mui-input-group:before, .mui-card .mui-input-group:after +{ + height: 0; +} +.mui-card .mui-input-group .mui-input-row:last-child:before, .mui-card .mui-input-group .mui-input-row:last-child:after +{ + height: 0; +} + +.mui-card .mui-table-view +{ + margin-bottom: 0; + + border-top: 0; + border-bottom: 0; + border-radius: 6px; +} +.mui-card .mui-table-view .mui-table-view-divider:first-child, .mui-card .mui-table-view .mui-table-view-cell:first-child +{ + top: 0; + + border-top-left-radius: 6px; + border-top-right-radius: 6px; +} +.mui-card .mui-table-view .mui-table-view-divider:last-child, .mui-card .mui-table-view .mui-table-view-cell:last-child +{ + border-bottom-right-radius: 6px; + border-bottom-left-radius: 6px; +} +.mui-card .mui-table-view:before, .mui-card .mui-table-view:after +{ + height: 0; +} + +.mui-card > .mui-table-view > .mui-table-view-cell:last-child:before, .mui-card > .mui-table-view > .mui-table-view-cell:last-child:after +{ + height: 0; +} + +.mui-card-header, +.mui-card-footer +{ + position: relative; + + display: -webkit-box; + display: -webkit-flex; + display: flex; + + min-height: 44px; + padding: 10px 15px; + + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.mui-card-header .mui-card-link, +.mui-card-footer .mui-card-link +{ + line-height: 44px; + + position: relative; + + display: -webkit-box; + display: -webkit-flex; + display: flex; + + height: 44px; + margin-top: -10px; + margin-bottom: -10px; + + -webkit-transition-duration: .3s; + transition-duration: .3s; + text-decoration: none; + + -webkit-box-pack: start; + -webkit-justify-content: flex-start; + justify-content: flex-start; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} + +.mui-card-header:after, +.mui-card-footer:before +{ + position: absolute; + top: 0; + right: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} + +.mui-card-header +{ + font-size: 17px; + + border-radius: 2px 2px 0 0; +} +.mui-card-header:after +{ + top: auto; + bottom: 0; +} +.mui-card-header > img:first-child +{ + font-size: 0; + line-height: 0; + + float: left; + + width: 34px; + height: 34px; +} + +.mui-card-footer +{ + color: #6d6d72; + border-radius: 0 0 2px 2px; +} + +.mui-card-content +{ + font-size: 14px; + + position: relative; +} + +.mui-card-content-inner +{ + position: relative; + + padding: 15px; +} + +.mui-card-media +{ + vertical-align: bottom; + + color: #fff; + background-position: center; + background-size: cover; +} + +.mui-card-header.mui-card-media +{ + display: block; + + padding: 10px; +} +.mui-card-header.mui-card-media .mui-media-body +{ + font-size: 14px; + font-weight: 500; + line-height: 17px; + + margin-bottom: 0; + margin-left: 44px; + + color: #333; +} +.mui-card-header.mui-card-media .mui-media-body p +{ + font-size: 13px; + + margin-bottom: 0; +} + +.mui-table-view +{ + position: relative; + + margin-top: 0; + margin-bottom: 0; + padding-left: 0; + + list-style: none; + + background-color: #fff; +} +.mui-table-view:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-table-view:before +{ + position: absolute; + top: 0; + right: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-table-view:before +{ + top: -1px; +} + +.mui-table-view-icon .mui-table-view-cell .mui-navigate-right .mui-icon +{ + font-size: 20px; + + margin-top: -1px; + margin-right: 5px; + margin-left: -5px; +} +.mui-table-view-icon .mui-table-view-cell:after +{ + left: 40px; +} + +.mui-table-view-chevron .mui-table-view-cell +{ + padding-right: 65px; +} +.mui-table-view-chevron .mui-table-view-cell > a:not(.mui-btn) +{ + margin-right: -65px; +} + +.mui-table-view-radio .mui-table-view-cell +{ + padding-right: 65px; +} +.mui-table-view-radio .mui-table-view-cell > a:not(.mui-btn) +{ + margin-right: -65px; +} +.mui-table-view-radio .mui-table-view-cell .mui-navigate-right:after +{ + font-size: 30px; + font-weight: 600; + + right: 9px; + + content: ''; + + color: #007aff; +} +.mui-table-view-radio .mui-table-view-cell.mui-selected .mui-navigate-right:after +{ + content: '\e472'; +} + +.mui-table-view-inverted +{ + color: #fff; + background: #333; +} +.mui-table-view-inverted:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #222; +} +.mui-table-view-inverted:before +{ + position: absolute; + top: 0; + right: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #222; +} +.mui-table-view-inverted .mui-table-view-cell:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 15px; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #222; +} +.mui-table-view-inverted .mui-table-view-cell.mui-active +{ + background-color: #242424; +} +.mui-table-view-inverted .mui-table-view-cell > a:not(.mui-btn).mui-active +{ + background-color: #242424; +} + +.mui-table-view-cell +{ + position: relative; + + overflow: hidden; + + padding: 11px 15px; + + -webkit-touch-callout: none; +} +.mui-table-view-cell:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 15px; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-table-view-cell.mui-radio input[type=radio], .mui-table-view-cell.mui-checkbox input[type=checkbox] +{ + top: 8px; +} +.mui-table-view-cell.mui-radio.mui-left, .mui-table-view-cell.mui-checkbox.mui-left +{ + padding-left: 58px; +} +.mui-table-view-cell.mui-active +{ + background-color: #eee; +} +.mui-table-view-cell:last-child:before, .mui-table-view-cell:last-child:after +{ + height: 0; +} +.mui-table-view-cell > a:not(.mui-btn) +{ + position: relative; + + display: block; + overflow: hidden; + + margin: -11px -15px; + padding: inherit; + + white-space: nowrap; + text-overflow: ellipsis; + + color: inherit; + /*&:active { + background-color: #eee; + }*/ +} +.mui-table-view-cell > a:not(.mui-btn).mui-active +{ + background-color: #eee; +} +.mui-table-view-cell p +{ + margin-bottom: 0; +} + +.mui-table-view-cell.mui-transitioning > .mui-slider-handle, .mui-table-view-cell.mui-transitioning > .mui-slider-left .mui-btn, .mui-table-view-cell.mui-transitioning > .mui-slider-right .mui-btn +{ + -webkit-transition: -webkit-transform 300ms ease; + transition: transform 300ms ease; +} +.mui-table-view-cell.mui-active > .mui-slider-handle +{ + background-color: #eee; +} +.mui-table-view-cell > .mui-slider-handle +{ + position: relative; + + background-color: #fff; +} +.mui-table-view-cell > .mui-slider-handle.mui-navigate-right:after, .mui-table-view-cell > .mui-slider-handle .mui-navigate-right:after +{ + right: 0; +} +.mui-table-view-cell > .mui-slider-handle, .mui-table-view-cell > .mui-slider-left .mui-btn, .mui-table-view-cell > .mui-slider-right .mui-btn +{ + -webkit-transition: -webkit-transform 0ms ease; + transition: transform 0ms ease; +} +.mui-table-view-cell > .mui-slider-left, .mui-table-view-cell > .mui-slider-right +{ + position: absolute; + top: 0; + + display: -webkit-box; + display: -webkit-flex; + display: flex; + + height: 100%; +} +.mui-table-view-cell > .mui-slider-left > .mui-btn, .mui-table-view-cell > .mui-slider-right > .mui-btn +{ + position: relative; + left: 0; + + display: -webkit-box; + display: -webkit-flex; + display: flex; + + padding: 0 30px; + + color: #fff; + border: 0; + border-radius: 0; + + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.mui-table-view-cell > .mui-slider-left > .mui-btn:after, .mui-table-view-cell > .mui-slider-right > .mui-btn:after +{ + position: absolute; + z-index: -1; + top: 0; + + width: 600%; + height: 100%; + + content: ''; + + background: inherit; +} +.mui-table-view-cell > .mui-slider-left > .mui-btn.mui-icon, .mui-table-view-cell > .mui-slider-right > .mui-btn.mui-icon +{ + font-size: 30px; +} +.mui-table-view-cell > .mui-slider-right +{ + right: 0; + + -webkit-transition: -webkit-transform 0ms ease; + transition: transform 0ms ease; + -webkit-transform: translateX(100%); + transform: translateX(100%); +} +.mui-table-view-cell > .mui-slider-left +{ + left: 0; + + -webkit-transition: -webkit-transform 0ms ease; + transition: transform 0ms ease; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); +} +.mui-table-view-cell > .mui-slider-left > .mui-btn:after +{ + right: 100%; + + margin-right: -1px; +} + +.mui-table-view-divider +{ + font-weight: 500; + + position: relative; + + margin-top: -1px; + margin-left: 0; + padding-top: 6px; + padding-bottom: 6px; + padding-left: 15px; + + color: #999; + background-color: #fafafa; +} +.mui-table-view-divider:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-table-view-divider:before +{ + position: absolute; + top: 0; + right: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} + +.mui-table-view .mui-media, +.mui-table-view .mui-media-body +{ + overflow: hidden; +} + +.mui-table-view .mui-media-large .mui-media-object +{ + line-height: 80px; + + max-width: 80px; + height: 80px; +} +.mui-table-view .mui-media .mui-subtitle +{ + color: #000; +} +.mui-table-view .mui-media-object +{ + line-height: 42px; + + max-width: 42px; + height: 42px; +} +.mui-table-view .mui-media-object.mui-pull-left +{ + margin-right: 10px; +} +.mui-table-view .mui-media-object.mui-pull-right +{ + margin-left: 10px; +} +.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object +{ + line-height: 29px; + + max-width: 29px; + height: 29px; + margin: -4px 0; +} +.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object img +{ + line-height: 29px; + + max-width: 29px; + height: 29px; +} +.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object.mui-pull-left +{ + margin-right: 10px; +} +.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object .mui-icon +{ + font-size: 29px; +} +.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-body:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 55px; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-table-view .mui-table-view-cell.mui-media-icon:after +{ + height: 0 !important; +} + +.mui-table-view.mui-unfold .mui-table-view-cell.mui-collapse .mui-table-view +{ + display: block; +} +.mui-table-view.mui-unfold .mui-table-view-cell.mui-collapse .mui-table-view:before, .mui-table-view.mui-unfold .mui-table-view-cell.mui-collapse .mui-table-view:after +{ + height: 0 !important; +} +.mui-table-view.mui-unfold .mui-table-view-cell.mui-media-icon.mui-collapse .mui-media-body:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 70px; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} + +.mui-table-view-cell > .mui-btn, +.mui-table-view-cell > .mui-badge, +.mui-table-view-cell > .mui-switch, +.mui-table-view-cell > a > .mui-btn, +.mui-table-view-cell > a > .mui-badge, +.mui-table-view-cell > a > .mui-switch +{ + position: absolute; + top: 50%; + right: 15px; + + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.mui-table-view-cell .mui-navigate-right > .mui-btn, +.mui-table-view-cell .mui-navigate-right > .mui-badge, +.mui-table-view-cell .mui-navigate-right > .mui-switch, +.mui-table-view-cell .mui-push-left > .mui-btn, +.mui-table-view-cell .mui-push-left > .mui-badge, +.mui-table-view-cell .mui-push-left > .mui-switch, +.mui-table-view-cell .mui-push-right > .mui-btn, +.mui-table-view-cell .mui-push-right > .mui-badge, +.mui-table-view-cell .mui-push-right > .mui-switch, +.mui-table-view-cell > a .mui-navigate-right > .mui-btn, +.mui-table-view-cell > a .mui-navigate-right > .mui-badge, +.mui-table-view-cell > a .mui-navigate-right > .mui-switch, +.mui-table-view-cell > a .mui-push-left > .mui-btn, +.mui-table-view-cell > a .mui-push-left > .mui-badge, +.mui-table-view-cell > a .mui-push-left > .mui-switch, +.mui-table-view-cell > a .mui-push-right > .mui-btn, +.mui-table-view-cell > a .mui-push-right > .mui-badge, +.mui-table-view-cell > a .mui-push-right > .mui-switch +{ + right: 35px; +} + +.mui-content > .mui-table-view:first-child +{ + margin-top: 15px; +} + +.mui-table-view-cell.mui-collapse .mui-table-view:before, .mui-table-view-cell.mui-collapse .mui-table-view:after +{ + height: 0; +} +.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell:last-child:after +{ + height: 0; +} +.mui-table-view-cell.mui-collapse > .mui-navigate-right:after, .mui-table-view-cell.mui-collapse > .mui-push-right:after +{ + content: '\e581'; +} +.mui-table-view-cell.mui-collapse.mui-active +{ + margin-top: -1px; +} +.mui-table-view-cell.mui-collapse.mui-active .mui-table-view, .mui-table-view-cell.mui-collapse.mui-active .mui-collapse-content +{ + display: block; +} +.mui-table-view-cell.mui-collapse.mui-active > .mui-navigate-right:after, .mui-table-view-cell.mui-collapse.mui-active > .mui-push-right:after +{ + content: '\e580'; +} +.mui-table-view-cell.mui-collapse.mui-active .mui-table-view-cell > a:not(.mui-btn).mui-active +{ + margin-left: -31px; + padding-left: 47px; +} +.mui-table-view-cell.mui-collapse .mui-collapse-content +{ + position: relative; + + display: none; + overflow: hidden; + + margin: 11px -15px -11px; + padding: 8px 15px; + + -webkit-transition: height .35s ease; + -o-transition: height .35s ease; + transition: height .35s ease; + + background: white; +} +.mui-table-view-cell.mui-collapse .mui-collapse-content > .mui-input-group, .mui-table-view-cell.mui-collapse .mui-collapse-content > .mui-slider +{ + width: auto; + height: auto; + margin: -8px -15px; +} +.mui-table-view-cell.mui-collapse .mui-collapse-content > .mui-slider +{ + margin: -8px -16px; +} +.mui-table-view-cell.mui-collapse .mui-table-view +{ + display: none; + + margin-top: 11px; + margin-right: -15px; + margin-bottom: -11px; + margin-left: -15px; + + border: 0; +} +.mui-table-view-cell.mui-collapse .mui-table-view.mui-table-view-chevron +{ + margin-right: -65px; +} +.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell +{ + padding-left: 31px; + + background-position: 31px 100%; +} +.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 30px; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} + +.mui-table-view.mui-grid-view +{ + font-size: 0; + + display: block; + + width: 100%; + padding: 0 10px 10px 0; + + white-space: normal; +} +.mui-table-view.mui-grid-view .mui-table-view-cell +{ + font-size: 17px; + + display: inline-block; + + margin-right: -4px; + padding: 10px 0 0 14px; + + text-align: center; + vertical-align: middle; + + background: none; +} +.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-object +{ + width: 100%; + max-width: 100%; + height: auto; +} +.mui-table-view.mui-grid-view .mui-table-view-cell > a:not(.mui-btn) +{ + margin: -10px 0 0 -14px; +} +.mui-table-view.mui-grid-view .mui-table-view-cell > a:not(.mui-btn):active, .mui-table-view.mui-grid-view .mui-table-view-cell > a:not(.mui-btn).mui-active +{ + background: none; +} +.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body +{ + font-size: 15px; + line-height: 15px; + + display: block; + + width: 100%; + height: 15px; + margin-top: 8px; + + text-overflow: ellipsis; + + color: #333; +} +.mui-table-view.mui-grid-view .mui-table-view-cell:before, .mui-table-view.mui-grid-view .mui-table-view-cell:after +{ + height: 0; +} + +.mui-grid-view.mui-grid-9 +{ + margin: 0; + padding: 0; + + border-top: 1px solid #eee; + border-left: 1px solid #eee; + background-color: #f2f2f2; +} +.mui-grid-view.mui-grid-9:before, .mui-grid-view.mui-grid-9:after +{ + display: table; + + content: ' '; +} +.mui-grid-view.mui-grid-9:after +{ + clear: both; +} +.mui-grid-view.mui-grid-9:after +{ + position: static; +} +.mui-grid-view.mui-grid-9 .mui-table-view-cell +{ + margin: 0; + padding: 11px 15px; + + vertical-align: top; + + border-right: 1px solid #eee; + border-bottom: 1px solid #eee; +} +.mui-grid-view.mui-grid-9 .mui-table-view-cell.mui-active +{ + background-color: #eee; +} +.mui-grid-view.mui-grid-9 .mui-table-view-cell > a:not(.mui-btn) +{ + margin: 0; + padding: 10px 0; +} +.mui-grid-view.mui-grid-9:before +{ + height: 0; +} +.mui-grid-view.mui-grid-9 .mui-media +{ + color: #797979; +} +.mui-grid-view.mui-grid-9 .mui-media .mui-icon +{ + font-size: 2.4em; + + position: relative; +} + +.mui-slider-cell +{ + position: relative; +} +.mui-slider-cell > .mui-slider-handle +{ + z-index: 1; +} +.mui-slider-cell > .mui-slider-left, .mui-slider-cell > .mui-slider-right +{ + position: absolute; + z-index: 0; + top: 0; + bottom: 0; +} +.mui-slider-cell > .mui-slider-left +{ + left: 0; +} +.mui-slider-cell > .mui-slider-right +{ + right: 0; +} + +input, +textarea, +select +{ + font-family: 'Helvetica Neue', Helvetica, sans-serif; + font-size: 17px; + + -webkit-tap-highlight-color: transparent; + -webkit-tap-highlight-color: transparent; +} +input:focus, +textarea:focus, +select:focus +{ + -webkit-tap-highlight-color: transparent; + -webkit-tap-highlight-color: transparent; + -webkit-user-modify: read-write-plaintext-only; +} + +select, +textarea, +input[type='text'], +input[type='search'], +input[type='password'], +input[type='datetime'], +input[type='datetime-local'], +input[type='date'], +input[type='month'], +input[type='time'], +input[type='week'], +input[type='number'], +input[type='email'], +input[type='url'], +input[type='tel'], +input[type='color'] +{ + line-height: 21px; + + width: 100%; + height: 40px; + margin-bottom: 15px; + padding: 10px 15px; + + -webkit-user-select: text; + + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 3px; + outline: none; + background-color: #fff; + + -webkit-appearance: none; +} + +input[type=number]::-webkit-inner-spin-button, +input[type=number]::-webkit-outer-spin-button +{ + margin: 0; + + -webkit-appearance: none; +} + +input[type='search'] +{ + font-size: 16px; + + -webkit-box-sizing: border-box; + box-sizing: border-box; + height: 34px; + + text-align: center; + + border: 0; + border-radius: 6px; + background-color: rgba(0, 0, 0, .1); +} + +input[type='search']:focus +{ + text-align: left; +} + +textarea +{ + height: auto; + + resize: none; +} + +select +{ + font-size: 14px; + + height: auto; + margin-top: 1px; + + border: 0 !important; + background-color: #fff; +} +select:focus +{ + -webkit-user-modify: read-only; +} + +.mui-input-group +{ + position: relative; + + padding: 0; + + border: 0; + background-color: #fff; +} +.mui-input-group:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-input-group:before +{ + position: absolute; + top: 0; + right: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} + +.mui-input-group input, +.mui-input-group textarea +{ + margin-bottom: 0; + + border: 0; + border-radius: 0; + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; +} + +.mui-input-group input[type='search'] +{ + background: none; +} + +.mui-input-group input:last-child +{ + background-image: none; +} + +.mui-input-row +{ + clear: left; + overflow: hidden; +} +.mui-input-row select +{ + font-size: 17px; + + height: 37px; + padding: 0; +} + +.mui-input-row:last-child, +.mui-input-row label + input, .mui-input-row .mui-btn + input +{ + background: none; +} + +.mui-input-group .mui-input-row +{ + height: 40px; +} +.mui-input-group .mui-input-row:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 15px; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} + +.mui-input-row label +{ + font-family: 'Helvetica Neue', Helvetica, sans-serif; + line-height: 1.1; + + float: left; + + width: 35%; + padding: 11px 15px; +} + +.mui-input-row label ~ input, .mui-input-row label ~ select, .mui-input-row label ~ textarea +{ + float: right; + + width: 65%; + margin-bottom: 0; + padding-left: 0; + + border: 0; +} + +.mui-input-row .mui-btn +{ + line-height: 1.1; + + float: right; + + width: 15%; + padding: 10px 15px; +} + +.mui-input-row .mui-btn ~ input, .mui-input-row .mui-btn ~ select, .mui-input-row .mui-btn ~ textarea +{ + float: left; + + width: 85%; + margin-bottom: 0; + padding-left: 0; + + border: 0; +} + +.mui-button-row +{ + position: relative; + + padding-top: 5px; + + text-align: center; +} + +.mui-input-group .mui-button-row +{ + height: 45px; +} + +.mui-input-row +{ + position: relative; +} +.mui-input-row.mui-input-range +{ + overflow: visible; + + padding-right: 20px; +} +.mui-input-row .mui-inline +{ + padding: 8px 0; +} +.mui-input-row .mui-input-clear ~ .mui-icon-clear, .mui-input-row .mui-input-speech ~ .mui-icon-speech, .mui-input-row .mui-input-password ~ .mui-icon-eye +{ + font-size: 20px; + + position: absolute; + z-index: 1; + top: 10px; + right: 0; + + width: 38px; + height: 38px; + + text-align: center; + + color: #999; +} +.mui-input-row .mui-input-clear ~ .mui-icon-clear.mui-active, .mui-input-row .mui-input-speech ~ .mui-icon-speech.mui-active, .mui-input-row .mui-input-password ~ .mui-icon-eye.mui-active +{ + color: #007aff; +} +.mui-input-row .mui-input-speech ~ .mui-icon-speech +{ + font-size: 24px; + + top: 8px; +} +.mui-input-row .mui-input-clear ~ .mui-icon-clear ~ .mui-icon-speech +{ + display: none; +} +.mui-input-row .mui-input-clear ~ .mui-icon-clear.mui-hidden ~ .mui-icon-speech +{ + display: inline-block; +} +.mui-input-row .mui-icon-speech ~ .mui-placeholder +{ + right: 38px; +} +.mui-input-row.mui-search .mui-icon-clear +{ + top: 7px; +} +.mui-input-row.mui-search .mui-icon-speech +{ + top: 5px; +} + +.mui-radio, .mui-checkbox +{ + position: relative; +} +.mui-radio label, .mui-checkbox label +{ + display: inline-block; + float: none; + + width: 100%; + padding-right: 58px; +} + +.mui-radio.mui-left input[type='radio'], .mui-checkbox.mui-left input[type='checkbox'] +{ + left: 20px; +} + +.mui-radio.mui-left label, .mui-checkbox.mui-left label +{ + padding-right: 15px; + padding-left: 58px; +} + +.mui-radio input[type='radio'], .mui-checkbox input[type='checkbox'] +{ + position: absolute; + top: 4px; + right: 20px; + + display: inline-block; + + width: 28px; + height: 26px; + + border: 0; + outline: 0 !important; + background-color: transparent; + + -webkit-appearance: none; +} +.mui-radio input[type='radio'][disabled]:before, .mui-checkbox input[type='checkbox'][disabled]:before +{ + opacity: .3; +} +.mui-radio input[type='radio']:before, .mui-checkbox input[type='checkbox']:before +{ + font-family: Muiicons; + font-size: 28px; + font-weight: normal; + line-height: 1; + + text-decoration: none; + + color: #aaa; + border-radius: 0; + background: none; + + -webkit-font-smoothing: antialiased; +} +.mui-radio input[type='radio']:checked:before, .mui-checkbox input[type='checkbox']:checked:before +{ + color: #007aff; +} + +.mui-radio.mui-disabled label, .mui-radio label.mui-disabled, .mui-checkbox.mui-disabled label, .mui-checkbox label.mui-disabled +{ + opacity: .4; +} + +.mui-radio input[type='radio']:before +{ + content: '\e411'; +} + +.mui-radio input[type='radio']:checked:before +{ + content: '\e441'; +} + +.mui-checkbox input[type='checkbox']:before +{ + content: '\e411'; +} + +.mui-checkbox input[type='checkbox']:checked:before +{ + content: '\e442'; +} + +.mui-select +{ + position: relative; +} + +.mui-select:before +{ + font-family: Muiicons; + + position: absolute; + top: 8px; + right: 21px; + + content: '\e581'; + + color: rgba(170, 170, 170, .6); +} + +.mui-input-row .mui-switch +{ + float: right; + + margin-top: 5px; + margin-right: 20px; +} + +.mui-input-range +{ + /*input[type="range"] { + -webkit-appearance: none; + background: #999; + height: 36px; + border-radius: 1px; + overflow: hidden; + margin-top: 2px; + margin-bottom: 2px; + outline:none; + position:relative; + width:100%; + }*/ + /*input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none!important; + opacity: 0.5; + height:28px; + width:28px; + border-radius: 50%; + background:#00b7fb; + position: relative; + pointer-events: none; + -webkit-box-sizing: border-box; + box-sizing: border-box; + &:before{ + position: absolute; + top: 13px; + left: -2000px; + width: 2000px; + height: 2px; + background: #00b7fb; + content:' '; + } + }*/ +} +.mui-input-range input[type='range'] +{ + position: relative; + + width: 100%; + height: 2px; + margin: 17px 0; + padding: 0; + + cursor: pointer; + + border: 0; + border-radius: 3px; + outline: none; + background-color: #999; + + -webkit-appearance: none !important; +} +.mui-input-range input[type='range']::-webkit-slider-thumb +{ + width: 28px; + height: 28px; + + border-color: #0062cc; + border-radius: 50%; + background-color: #007aff; + background-clip: padding-box; + + -webkit-appearance: none !important; +} +.mui-input-range label ~ input[type='range'] +{ + width: 65%; +} +.mui-input-range .mui-tooltip +{ + font-size: 36px; + line-height: 64px; + + position: absolute; + z-index: 1; + top: -70px; + + width: 64px; + height: 64px; + + text-align: center; + + opacity: .8; + color: #333; + border: 1px solid #ddd; + border-radius: 6px; + background-color: #fff; + text-shadow: 0 1px 0 #f3f3f3; +} + +.mui-search +{ + position: relative; +} +.mui-search input[type='search'] +{ + padding-left: 30px; +} +.mui-search .mui-placeholder +{ + font-size: 16px; + line-height: 34px; + + position: absolute; + z-index: 1; + top: 0; + right: 0; + bottom: 0; + left: 0; + + display: inline-block; + + height: 34px; + + text-align: center; + + color: #999; + border: 0; + border-radius: 6px; + background: none; +} +.mui-search .mui-placeholder .mui-icon +{ + font-size: 20px; + + color: #333; +} +.mui-search:before +{ + font-family: Muiicons; + font-size: 20px; + font-weight: normal; + + position: absolute; + top: 50%; + right: 50%; + + display: none; + + margin-top: -18px; + margin-right: 31px; + + content: '\e466'; +} +.mui-search.mui-active:before +{ + font-size: 20px; + + right: auto; + left: 5px; + + display: block; + + margin-right: 0; +} +.mui-search.mui-active input[type='search'] +{ + text-align: left; +} +.mui-search.mui-active .mui-placeholder +{ + display: none; +} + +.mui-segmented-control +{ + font-size: 15px; + font-weight: 400; + + position: relative; + + display: table; + overflow: hidden; + + width: 100%; + + table-layout: fixed; + + border: 1px solid #007aff; + border-radius: 3px; + background-color: transparent; + + -webkit-touch-callout: none; +} +.mui-segmented-control.mui-segmented-control-vertical +{ + border-collapse: collapse; + + border-width: 0; + border-radius: 0; +} +.mui-segmented-control.mui-segmented-control-vertical .mui-control-item +{ + display: block; + + border-bottom: 1px solid #c8c7cc; + border-left-width: 0; +} +.mui-segmented-control.mui-scroll-wrapper +{ + height: 38px; +} +.mui-segmented-control.mui-scroll-wrapper .mui-scroll +{ + width: auto; + height: 40px; + + white-space: nowrap; +} +.mui-segmented-control.mui-scroll-wrapper .mui-control-item +{ + display: inline-block; + + width: auto; + padding: 0 20px; + + border: 0; +} +.mui-segmented-control .mui-control-item +{ + line-height: 38px; + + display: table-cell; + overflow: hidden; + + width: 1%; + + -webkit-transition: background-color .1s linear; + transition: background-color .1s linear; + text-align: center; + white-space: nowrap; + text-overflow: ellipsis; + + color: #007aff; + border-color: #007aff; + border-left: 1px solid #007aff; +} +.mui-segmented-control .mui-control-item:first-child +{ + border-left-width: 0; +} +.mui-segmented-control .mui-control-item.mui-active +{ + color: #fff; + background-color: #007aff; +} +.mui-segmented-control.mui-segmented-control-inverted +{ + width: 100%; + + border: 0; + border-radius: 0; +} +.mui-segmented-control.mui-segmented-control-inverted.mui-segmented-control-vertical .mui-control-item +{ + border-bottom: 1px solid #c8c7cc; +} +.mui-segmented-control.mui-segmented-control-inverted.mui-segmented-control-vertical .mui-control-item.mui-active +{ + border-bottom: 1px solid #c8c7cc; +} +.mui-segmented-control.mui-segmented-control-inverted .mui-control-item +{ + color: inherit; + border: 0; +} +.mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active +{ + color: #007aff; + border-bottom: 2px solid #007aff; + background: none; +} +.mui-segmented-control.mui-segmented-control-inverted ~ .mui-slider-progress-bar +{ + background-color: #007aff; +} + +.mui-segmented-control-positive +{ + border: 1px solid #4cd964; +} +.mui-segmented-control-positive .mui-control-item +{ + color: #4cd964; + border-color: inherit; +} +.mui-segmented-control-positive .mui-control-item.mui-active +{ + color: #fff; + background-color: #4cd964; +} +.mui-segmented-control-positive.mui-segmented-control-inverted .mui-control-item.mui-active +{ + color: #4cd964; + border-bottom: 2px solid #4cd964; + background: none; +} +.mui-segmented-control-positive.mui-segmented-control-inverted ~ .mui-slider-progress-bar +{ + background-color: #4cd964; +} + +.mui-segmented-control-negative +{ + border: 1px solid #dd524d; +} +.mui-segmented-control-negative .mui-control-item +{ + color: #dd524d; + border-color: inherit; +} +.mui-segmented-control-negative .mui-control-item.mui-active +{ + color: #fff; + background-color: #dd524d; +} +.mui-segmented-control-negative.mui-segmented-control-inverted .mui-control-item.mui-active +{ + color: #dd524d; + border-bottom: 2px solid #dd524d; + background: none; +} +.mui-segmented-control-negative.mui-segmented-control-inverted ~ .mui-slider-progress-bar +{ + background-color: #dd524d; +} + +.mui-control-content +{ + position: relative; + + display: none; +} +.mui-control-content.mui-active +{ + display: block; +} + +.mui-popover +{ + position: absolute; + z-index: 999; + + display: none; + + width: 280px; + + -webkit-transition: opacity .3s; + transition: opacity .3s; + -webkit-transition-property: opacity; + transition-property: opacity; + -webkit-transform: none; + transform: none; + + opacity: 0; + border-radius: 7px; + background-color: #f7f7f7; + -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, .1); + box-shadow: 0 0 15px rgba(0, 0, 0, .1); +} +.mui-popover .mui-popover-arrow +{ + position: absolute; + z-index: 1000; + top: -25px; + left: 0; + + overflow: hidden; + + width: 26px; + height: 26px; +} +.mui-popover .mui-popover-arrow:after +{ + position: absolute; + top: 19px; + left: 0; + + width: 26px; + height: 26px; + + content: ' '; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + + border-radius: 3px; + background: #f7f7f7; +} +.mui-popover .mui-popover-arrow.mui-bottom +{ + top: 100%; + left: -26px; + + margin-top: -1px; +} +.mui-popover .mui-popover-arrow.mui-bottom:after +{ + top: -19px; + left: 0; +} +.mui-popover.mui-popover-action +{ + bottom: 0; + + width: 100%; + + -webkit-transition: -webkit-transform .3s, opacity .3s; + transition: transform .3s, opacity .3s; + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); + + border-radius: 0; + background: none; + -webkit-box-shadow: none; + box-shadow: none; +} +.mui-popover.mui-popover-action .mui-popover-arrow +{ + display: none; +} +.mui-popover.mui-popover-action.mui-popover-bottom +{ + position: fixed; +} +.mui-popover.mui-popover-action.mui-active +{ + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.mui-popover.mui-popover-action .mui-table-view +{ + margin: 8px; + + text-align: center; + + color: #007aff; + border-radius: 4px; +} +.mui-popover.mui-popover-action .mui-table-view .mui-table-view-cell:after +{ + position: absolute; + right: 0; + bottom: 0; + left: 0; + + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + + background-color: #c8c7cc; +} +.mui-popover.mui-popover-action .mui-table-view small +{ + font-weight: 400; + line-height: 1.3; + + display: block; +} +.mui-popover.mui-active +{ + display: block; + + opacity: 1; +} +.mui-popover .mui-bar ~ .mui-table-view +{ + padding-top: 44px; +} + +.mui-backdrop +{ + position: fixed; + z-index: 998; + top: 0; + right: 0; + bottom: 0; + left: 0; + + background-color: rgba(0, 0, 0, .3); +} + +.mui-bar-backdrop.mui-backdrop +{ + bottom: 50px; + + background: none; +} + +.mui-backdrop-action.mui-backdrop +{ + background-color: rgba(0, 0, 0, .3); +} + +.mui-bar-backdrop.mui-backdrop, .mui-backdrop-action.mui-backdrop +{ + opacity: 0; +} +.mui-bar-backdrop.mui-backdrop.mui-active, .mui-backdrop-action.mui-backdrop.mui-active +{ + -webkit-transition: all .4s ease; + transition: all .4s ease; + + opacity: 1; +} + +.mui-popover .mui-btn-block +{ + margin-bottom: 5px; +} +.mui-popover .mui-btn-block:last-child +{ + margin-bottom: 0; +} + +.mui-popover .mui-bar +{ + -webkit-box-shadow: none; + box-shadow: none; +} + +.mui-popover .mui-bar-nav +{ + border-bottom: 1px solid rgba(0, 0, 0, .15); + border-top-left-radius: 12px; + border-top-right-radius: 12px; + -webkit-box-shadow: none; + box-shadow: none; +} + +.mui-popover .mui-scroll-wrapper +{ + margin: 7px 0; + + border-radius: 7px; + background-clip: padding-box; +} + +.mui-popover .mui-scroll .mui-table-view +{ + max-height: none; +} + +.mui-popover .mui-table-view +{ + overflow: auto; + + max-height: 300px; + margin-bottom: 0; + + border-radius: 7px; + background-color: #f7f7f7; + background-image: none; + + -webkit-overflow-scrolling: touch; +} +.mui-popover .mui-table-view:before, .mui-popover .mui-table-view:after +{ + height: 0; +} +.mui-popover .mui-table-view .mui-table-view-cell:first-child, +.mui-popover .mui-table-view .mui-table-view-cell:first-child > a:not(.mui-btn) +{ + border-top-left-radius: 12px; + border-top-right-radius: 12px; +} +.mui-popover .mui-table-view .mui-table-view-cell:last-child, +.mui-popover .mui-table-view .mui-table-view-cell:last-child > a:not(.mui-btn) +{ + border-bottom-right-radius: 12px; + border-bottom-left-radius: 12px; +} + +.mui-popover.mui-bar-popover .mui-table-view +{ + width: 106px; +} +.mui-popover.mui-bar-popover .mui-table-view .mui-table-view-cell +{ + padding: 11px 15px 11px 15px; + + background-position: 0 100%; +} +.mui-popover.mui-bar-popover .mui-table-view .mui-table-view-cell > a:not(.mui-btn) +{ + margin: -11px -15px -11px -15px; +} + +.mui-popup-backdrop +{ + position: fixed; + z-index: 998; + top: 0; + right: 0; + bottom: 0; + left: 0; + + -webkit-transition-duration: 400ms; + transition-duration: 400ms; + + opacity: 0; + background: rgba(0, 0, 0, .4); +} +.mui-popup-backdrop.mui-active +{ + opacity: 1; +} + +.mui-popup +{ + position: fixed; + z-index: 10000; + top: 50%; + left: 50%; + + display: none; + overflow: hidden; + + width: 270px; + + -webkit-transition-property: -webkit-transform,opacity; + transition-property: transform,opacity; + -webkit-transform: translate3d(-50%, -50%, 0) scale(1.185); + transform: translate3d(-50%, -50%, 0) scale(1.185); + text-align: center; + + opacity: 0; + color: #000; + border-radius: 13px; +} +.mui-popup.mui-popup-in +{ + display: block; + + -webkit-transition-duration: 400ms; + transition-duration: 400ms; + -webkit-transform: translate3d(-50%, -50%, 0) scale(1); + transform: translate3d(-50%, -50%, 0) scale(1); + + opacity: 1; +} +.mui-popup.mui-popup-out +{ + -webkit-transition-duration: 400ms; + transition-duration: 400ms; + -webkit-transform: translate3d(-50%, -50%, 0) scale(1); + transform: translate3d(-50%, -50%, 0) scale(1); + + opacity: 0; +} + +.mui-popup-inner +{ + position: relative; + + padding: 15px; + + border-radius: 13px 13px 0 0; + background: rgba(255, 255, 255, .95); +} +.mui-popup-inner:after +{ + position: absolute; + z-index: 15; + top: auto; + right: auto; + bottom: 0; + left: 0; + + display: block; + + width: 100%; + height: 1px; + + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; + + background-color: rgba(0, 0, 0, .2); +} + +.mui-popup-title +{ + font-size: 18px; + font-weight: 500; + + text-align: center; +} + +.mui-popup-title + .mui-popup-text +{ + font-family: inherit; + font-size: 14px; + + margin: 5px 0 0; +} + +.mui-popup-buttons +{ + position: relative; + + display: -webkit-box; + display: -webkit-flex; + display: flex; + + height: 44px; + + -webkit-box-pack: center; + -webkit-justify-content: center; + justify-content: center; +} + +.mui-popup-button +{ + font-size: 17px; + line-height: 44px; + + position: relative; + + display: block; + overflow: hidden; + + box-sizing: border-box; + width: 100%; + height: 44px; + padding: 0 5px; + + cursor: pointer; + text-align: center; + white-space: nowrap; + text-overflow: ellipsis; + + color: #007aff; + background: rgba(255, 255, 255, .95); + + -webkit-box-flex: 1; +} +.mui-popup-button:after +{ + position: absolute; + z-index: 15; + top: 0; + right: 0; + bottom: auto; + left: auto; + + display: block; + + width: 1px; + height: 100%; + + content: ''; + -webkit-transform: scaleX(.5); + transform: scaleX(.5); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; + + background-color: rgba(0, 0, 0, .2); +} +.mui-popup-button:first-child +{ + border-radius: 0 0 0 13px; +} +.mui-popup-button:first-child:last-child +{ + border-radius: 0 0 13px 13px; +} +.mui-popup-button:last-child +{ + border-radius: 0 0 13px 0; +} +.mui-popup-button:last-child:after +{ + display: none; +} +.mui-popup-button.mui-popup-button-bold +{ + font-weight: 600; +} + +.mui-popup-input input +{ + font-size: 14px; + + width: 100%; + height: 26px; + margin: 15px 0 0; + padding: 0 5px; + + border: 1px solid rgba(0, 0, 0, .3); + border-radius: 0; + background: #fff; +} + +.mui-plus.mui-android .mui-popup-backdrop +{ + -webkit-transition-duration: 1ms; + transition-duration: 1ms; +} + +.mui-plus.mui-android .mui-popup +{ + -webkit-transition-duration: 1ms; + transition-duration: 1ms; + -webkit-transform: translate3d(-50%, -50%, 0) scale(1); + transform: translate3d(-50%, -50%, 0) scale(1); +} + +/* === Progress Bar === */ +.mui-progressbar +{ + position: relative; + + display: block; + overflow: hidden; + + width: 100%; + height: 2px; + + -webkit-transform-origin: center top; + transform-origin: center top; + vertical-align: middle; + + border-radius: 2px; + background: #b6b6b6; + + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; +} +.mui-progressbar span +{ + position: absolute; + top: 0; + left: 0; + + width: 100%; + height: 100%; + + -webkit-transition: 150ms; + transition: 150ms; + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); + + background: #007aff; +} +.mui-progressbar.mui-progressbar-infinite:before +{ + position: absolute; + top: 0; + left: 0; + + width: 100%; + height: 100%; + + content: ''; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + -webkit-transform-origin: left center; + transform-origin: left center; + -webkit-animation: mui-progressbar-infinite 1s linear infinite; + animation: mui-progressbar-infinite 1s linear infinite; + + background: #007aff; +} + +body > .mui-progressbar +{ + position: absolute; + z-index: 10000; + top: 44px; + left: 0; + + border-radius: 0; +} + +.mui-progressbar-in +{ + -webkit-animation: mui-progressbar-in 300ms forwards; + animation: mui-progressbar-in 300ms forwards; +} + +.mui-progressbar-out +{ + -webkit-animation: mui-progressbar-out 300ms forwards; + animation: mui-progressbar-out 300ms forwards; +} + +@-webkit-keyframes mui-progressbar-in +{ + from + { + -webkit-transform: scaleY(0); + + opacity: 0; + } + + to + { + -webkit-transform: scaleY(1); + + opacity: 1; + } +} +@keyframes mui-progressbar-in +{ + from + { + transform: scaleY(0); + + opacity: 0; + } + + to + { + transform: scaleY(1); + + opacity: 1; + } +} +@-webkit-keyframes mui-progressbar-out +{ + from + { + -webkit-transform: scaleY(1); + + opacity: 1; + } + + to + { + -webkit-transform: scaleY(0); + + opacity: 0; + } +} +@keyframes mui-progressbar-out +{ + from + { + transform: scaleY(1); + + opacity: 1; + } + + to + { + transform: scaleY(0); + + opacity: 0; + } +} +@-webkit-keyframes mui-progressbar-infinite +{ + 0% + { + -webkit-transform: translate3d(-50%, 0, 0) scaleX(.5); + } + + 100% + { + -webkit-transform: translate3d(100%, 0, 0) scaleX(.5); + } +} +@keyframes mui-progressbar-infinite +{ + 0% + { + transform: translate3d(-50%, 0, 0) scaleX(.5); + } + + 100% + { + transform: translate3d(100%, 0, 0) scaleX(.5); + } +} +.mui-pagination +{ + display: inline-block; + + margin: 0 auto; + padding-left: 0; + + border-radius: 6px; +} +.mui-pagination > li +{ + display: inline; +} +.mui-pagination > li > a, +.mui-pagination > li > span +{ + line-height: 1.428571429; + + position: relative; + + float: left; + + margin-left: -1px; + padding: 6px 12px; + + text-decoration: none; + + color: #007aff; + border: 1px solid #ddd; + background-color: #fff; +} +.mui-pagination > li:first-child > a, +.mui-pagination > li:first-child > span +{ + margin-left: 0; + + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; + background-clip: padding-box; +} +.mui-pagination > li:last-child > a, +.mui-pagination > li:last-child > span +{ + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; + background-clip: padding-box; +} +.mui-pagination > li:active > a, .mui-pagination > li:active > a:active, +.mui-pagination > li:active > span, +.mui-pagination > li:active > span:active, +.mui-pagination > li.mui-active > a, +.mui-pagination > li.mui-active > a:active, +.mui-pagination > li.mui-active > span, +.mui-pagination > li.mui-active > span:active +{ + z-index: 2; + + cursor: default; + + color: #fff; + border-color: #007aff; + background-color: #007aff; +} +.mui-pagination > li.mui-disabled > span, +.mui-pagination > li.mui-disabled > span:active, +.mui-pagination > li.mui-disabled > a, +.mui-pagination > li.mui-disabled > a:active +{ + opacity: .6; + color: #777; + border: 1px solid #ddd; + background-color: #fff; +} + +.mui-pagination-lg > li > a, +.mui-pagination-lg > li > span +{ + font-size: 18px; + + padding: 10px 16px; +} + +.mui-pagination-sm > li > a, +.mui-pagination-sm > li > span +{ + font-size: 12px; + + padding: 5px 10px; +} + +.mui-pager +{ + padding-left: 0; + + list-style: none; + + text-align: center; +} +.mui-pager:before, .mui-pager:after +{ + display: table; + + content: ' '; +} +.mui-pager:after +{ + clear: both; +} +.mui-pager li +{ + display: inline; +} +.mui-pager li > a, +.mui-pager li > span +{ + display: inline-block; + + padding: 5px 14px; + + border: 1px solid #ddd; + border-radius: 6px; + background-color: #fff; + background-clip: padding-box; +} +.mui-pager li:active > a, .mui-pager li:active > span, .mui-pager li.mui-active > a, .mui-pager li.mui-active > span +{ + cursor: default; + text-decoration: none; + + color: #fff; + border-color: #007aff; + background-color: #007aff; +} +.mui-pager .mui-next > a, +.mui-pager .mui-next > span +{ + float: right; +} +.mui-pager .mui-previous > a, +.mui-pager .mui-previous > span +{ + float: left; +} +.mui-pager .mui-disabled > a, +.mui-pager .mui-disabled > a:active, +.mui-pager .mui-disabled > span, +.mui-pager .mui-disabled > span:active +{ + opacity: .6; + color: #777; + border: 1px solid #ddd; + background-color: #fff; +} + +.mui-modal +{ + position: fixed; + z-index: 999; + top: 0; + + overflow: hidden; + + width: 100%; + min-height: 100%; + + -webkit-transition: -webkit-transform .25s, opacity 1ms .25s; + transition: transform .25s, opacity 1ms .25s; + -webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1); + transition-timing-function: cubic-bezier(.1, .5, .1, 1); + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); + + opacity: 0; + background-color: #fff; +} +.mui-modal.mui-active +{ + height: 100%; + + -webkit-transition: -webkit-transform .25s; + transition: transform .25s; + -webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1); + transition-timing-function: cubic-bezier(.1, .5, .1, 1); + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + + opacity: 1; +} + +.mui-android .mui-modal .mui-bar +{ + position: static; +} + +.mui-android .mui-modal .mui-bar-nav ~ .mui-content +{ + padding-top: 0; +} + +.mui-slider +{ + position: relative; + z-index: 1; + + overflow: hidden; + + width: 100%; +} +.mui-slider .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active +{ + border-bottom: 0; +} +.mui-slider .mui-segmented-control.mui-segmented-control-inverted ~ .mui-slider-group .mui-slider-item +{ + border-top: 1px solid #c8c7cc; + border-bottom: 1px solid #c8c7cc; +} +.mui-slider .mui-slider-group +{ + font-size: 0; + + position: relative; + + -webkit-transition: all 0s linear; + transition: all 0s linear; + white-space: nowrap; +} +.mui-slider .mui-slider-group .mui-slider-item +{ + font-size: 14px; + + position: relative; + + display: inline-block; + + width: 100%; + height: 100%; + + vertical-align: top; + white-space: normal; +} +.mui-slider .mui-slider-group .mui-slider-item > a:not(.mui-control-item) +{ + line-height: 0; + + position: relative; + + display: block; +} +.mui-slider .mui-slider-group .mui-slider-item img +{ + width: 100%; +} +.mui-slider .mui-slider-group .mui-slider-item .mui-table-view:before, .mui-slider .mui-slider-group .mui-slider-item .mui-table-view:after +{ + height: 0; +} +.mui-slider .mui-slider-group.mui-slider-loop +{ + -webkit-transform: translate(-100%, 0px); + transform: translate(-100%, 0px); +} + +.mui-slider-title +{ + line-height: 30px; + + position: absolute; + bottom: 0; + left: 0; + + width: 100%; + height: 30px; + margin: 0; + + text-align: left; + text-indent: 12px; + + opacity: .8; + background-color: #000; +} + +.mui-slider-indicator +{ + position: absolute; + bottom: 8px; + + width: 100%; + + text-align: center; + + background: none; +} +.mui-slider-indicator.mui-segmented-control +{ + position: relative; + bottom: auto; +} +.mui-slider-indicator .mui-indicator +{ + display: inline-block; + + width: 6px; + height: 6px; + margin: 1px 6px; + + cursor: pointer; + + border-radius: 50%; + background: #aaa; + -webkit-box-shadow: 0 0 1px 1px rgba(130, 130, 130, .7); + box-shadow: 0 0 1px 1px rgba(130, 130, 130, .7); +} +.mui-slider-indicator .mui-active.mui-indicator +{ + background: #fff; +} +.mui-slider-indicator .mui-icon +{ + font-size: 20px; + line-height: 30px; + + width: 40px; + height: 30px; + margin: 3px; + + text-align: center; + + border: 1px solid #ddd; +} +.mui-slider-indicator .mui-number +{ + line-height: 32px; + + display: inline-block; + + width: 58px; +} +.mui-slider-indicator .mui-number span +{ + color: #ff5053; +} + +.mui-slider-progress-bar +{ + z-index: 1; + + height: 2px; + + -webkit-transform: translateZ(0); + transform: translateZ(0); +} + +.mui-switch +{ + position: relative; + + display: block; + + width: 74px; + height: 30px; + + -webkit-transition-timing-function: ease-in-out; + transition-timing-function: ease-in-out; + -webkit-transition-duration: .2s; + transition-duration: .2s; + -webkit-transition-property: background-color, border; + transition-property: background-color, border; + + border: 2px solid #ddd; + border-radius: 20px; + background-color: #fff; + background-clip: padding-box; +} +.mui-switch.mui-disabled +{ + opacity: .3; +} +.mui-switch .mui-switch-handle +{ + position: absolute; + z-index: 1; + top: -1px; + left: -1px; + + width: 28px; + height: 28px; + + -webkit-transition: .2s ease-in-out; + transition: .2s ease-in-out; + -webkit-transition-property: -webkit-transform, width,left; + transition-property: transform, width,left; + + border-radius: 16px; + background-color: #fff; + background-clip: padding-box; + -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .4); + box-shadow: 0 2px 5px rgba(0, 0, 0, .4); +} +.mui-switch:before +{ + font-size: 13px; + + position: absolute; + top: 3px; + right: 11px; + + content: 'Off'; + text-transform: uppercase; + + color: #999; +} +.mui-switch.mui-dragging +{ + border-color: #f7f7f7; + background-color: #f7f7f7; +} +.mui-switch.mui-dragging .mui-switch-handle +{ + width: 38px; +} +.mui-switch.mui-dragging.mui-active .mui-switch-handle +{ + left: -11px; + + width: 38px; +} +.mui-switch.mui-active +{ + border-color: #4cd964; + background-color: #4cd964; +} +.mui-switch.mui-active .mui-switch-handle +{ + -webkit-transform: translate(43px, 0); + transform: translate(43px, 0); +} +.mui-switch.mui-active:before +{ + right: auto; + left: 15px; + + content: 'On'; + + color: #fff; +} +.mui-switch input[type='checkbox'] +{ + display: none; +} + +.mui-switch-mini +{ + width: 47px; +} +.mui-switch-mini:before +{ + display: none; +} +.mui-switch-mini.mui-active .mui-switch-handle +{ + -webkit-transform: translate(16px, 0); + transform: translate(16px, 0); +} + +.mui-switch-blue.mui-active +{ + border: 2px solid #007aff; + background-color: #007aff; +} + +.mui-content.mui-fade +{ + left: 0; + + opacity: 0; +} +.mui-content.mui-fade.mui-in +{ + opacity: 1; +} +.mui-content.mui-sliding +{ + z-index: 2; + + -webkit-transition: -webkit-transform .4s; + transition: transform .4s; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.mui-content.mui-sliding.mui-left +{ + z-index: 1; + + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); +} +.mui-content.mui-sliding.mui-right +{ + z-index: 3; + + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); +} + +.mui-navigate-right:after, +.mui-push-left:after, +.mui-push-right:after +{ + font-family: Muiicons; + font-size: inherit; + line-height: 1; + + position: absolute; + top: 50%; + + display: inline-block; + + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + text-decoration: none; + + color: #bbb; + + -webkit-font-smoothing: antialiased; +} + +.mui-push-left:after +{ + left: 15px; + + content: '\e582'; +} + +.mui-navigate-right:after, +.mui-push-right:after +{ + right: 15px; + + content: '\e583'; +} + +.mui-pull-top-pocket, .mui-pull-bottom-pocket +{ + position: absolute; + left: 0; + + display: block; + visibility: hidden; + overflow: hidden; + + width: 100%; + height: 50px; +} + +.mui-plus-pullrefresh .mui-pull-top-pocket, .mui-plus-pullrefresh .mui-pull-bottom-pocket +{ + display: none; + visibility: visible; +} + +.mui-pull-top-pocket +{ + top: 0; +} + +.mui-bar-nav ~ .mui-content .mui-pull-top-pocket +{ + top: 44px; +} + +.mui-bar-nav ~ .mui-bar-header-secondary ~ .mui-content .mui-pull-top-pocket +{ + top: 88px; +} + +.mui-pull-bottom-pocket +{ + position: relative; + bottom: 0; + + height: 40px; +} +.mui-pull-bottom-pocket .mui-pull-loading +{ + visibility: hidden; +} +.mui-pull-bottom-pocket .mui-pull-loading.mui-in +{ + display: inline-block; +} + +.mui-pull +{ + font-weight: bold; + + position: absolute; + right: 0; + bottom: 10px; + left: 0; + + text-align: center; + + color: #777; +} + +.mui-pull-loading +{ + margin-right: 10px; + + -webkit-transition: -webkit-transform .4s; + transition: transform .4s; + -webkit-transition-duration: 400ms; + transition-duration: 400ms; + vertical-align: middle; +} + +.mui-pull-loading.mui-reverse +{ + -webkit-transform: rotate(180deg) translateZ(0); + transform: rotate(180deg) translateZ(0); +} + +.mui-pull-caption +{ + font-size: 15px; + line-height: 24px; + + position: relative; + + display: inline-block; + overflow: visible; + + margin-top: 0; + + vertical-align: middle; +} +.mui-pull-caption span +{ + display: none; +} +.mui-pull-caption span.mui-in +{ + display: inline; +} + +.mui-toast-container +{ + line-height: 17px; + + position: fixed; + z-index: 9999; + bottom: 50px; + left: 50%; + + -webkit-transition: opacity .3s; + transition: opacity .3s; + -webkit-transform: translate(-50%, 0); + transform: translate(-50%, 0); + + opacity: 0; +} +.mui-toast-container.mui-active +{ + opacity: .9; +} + +.mui-toast-message +{ + font-size: 14px; + + padding: 10px 25px; + + text-align: center; + + color: #fff; + border-radius: 6px; + background-color: #323232; +} + +.mui-numbox +{ + position: relative; + + display: inline-block; + overflow: hidden; + + width: 120px; + height: 35px; + padding: 0 40px 0 40px; + + vertical-align: top; + vertical-align: middle; + + border: solid 1px #bbb; + border-radius: 3px; + background-color: #efeff4; +} +.mui-numbox [class*=numbox-btn], .mui-numbox [class*=btn-numbox] +{ + font-size: 18px; + font-weight: normal; + line-height: 100%; + + position: absolute; + top: 0; + + overflow: hidden; + + width: 40px; + height: 100%; + padding: 0; + + color: #555; + border: none; + border-radius: 0; + background-color: #f9f9f9; +} +.mui-numbox [class*=numbox-btn]:active, .mui-numbox [class*=btn-numbox]:active +{ + background-color: #ccc; +} +.mui-numbox [class*=numbox-btn][disabled], .mui-numbox [class*=btn-numbox][disabled] +{ + color: #c0c0c0; +} +.mui-numbox .mui-numbox-btn-plus, .mui-numbox .mui-btn-numbox-plus +{ + right: 0; + + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.mui-numbox .mui-numbox-btn-minus, .mui-numbox .mui-btn-numbox-minus +{ + left: 0; + + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.mui-numbox .mui-numbox-input, .mui-numbox .mui-input-numbox +{ + display: inline-block; + overflow: hidden; + + width: 100% !important; + height: 100%; + margin: 0; + padding: 0 3px !important; + + text-align: center; + text-overflow: ellipsis; + word-break: normal; + + border: none !important; + border-right: solid 1px #ccc !important; + border-left: solid 1px #ccc !important; + border-radius: 0 !important; +} + +.mui-input-row .mui-numbox +{ + float: right; + + margin: 2px 8px; +} + +@font-face { + font-family: Muiicons; + font-weight: normal; + font-style: normal; + + src: url('../fonts/mui.ttf') format('truetype'); +} +.mui-icon +{ + font-family: Muiicons; + font-size: 24px; + font-weight: normal; + font-style: normal; + line-height: 1; + + display: inline-block; + + text-decoration: none; + + -webkit-font-smoothing: antialiased; +} +.mui-icon.mui-active +{ + color: #007aff; +} +.mui-icon.mui-right:before +{ + float: right; + + padding-left: .2em; +} + +.mui-icon-contact:before +{ + content: '\e100'; +} + +.mui-icon-person:before +{ + content: '\e101'; +} + +.mui-icon-personadd:before +{ + content: '\e102'; +} + +.mui-icon-contact-filled:before +{ + content: '\e130'; +} + +.mui-icon-person-filled:before +{ + content: '\e131'; +} + +.mui-icon-personadd-filled:before +{ + content: '\e132'; +} + +.mui-icon-phone:before +{ + content: '\e200'; +} + +.mui-icon-email:before +{ + content: '\e201'; +} + +.mui-icon-chatbubble:before +{ + content: '\e202'; +} + +.mui-icon-chatboxes:before +{ + content: '\e203'; +} + +.mui-icon-phone-filled:before +{ + content: '\e230'; +} + +.mui-icon-email-filled:before +{ + content: '\e231'; +} + +.mui-icon-chatbubble-filled:before +{ + content: '\e232'; +} + +.mui-icon-chatboxes-filled:before +{ + content: '\e233'; +} + +.mui-icon-weibo:before +{ + content: '\e260'; +} + +.mui-icon-weixin:before +{ + content: '\e261'; +} + +.mui-icon-pengyouquan:before +{ + content: '\e262'; +} + +.mui-icon-chat:before +{ + content: '\e263'; +} + +.mui-icon-qq:before +{ + content: '\e264'; +} + +.mui-icon-videocam:before +{ + content: '\e300'; +} + +.mui-icon-camera:before +{ + content: '\e301'; +} + +.mui-icon-mic:before +{ + content: '\e302'; +} + +.mui-icon-location:before +{ + content: '\e303'; +} + +.mui-icon-mic-filled:before, .mui-icon-speech:before +{ + content: '\e332'; +} + +.mui-icon-location-filled:before +{ + content: '\e333'; +} + +.mui-icon-micoff:before +{ + content: '\e360'; +} + +.mui-icon-image:before +{ + content: '\e363'; +} + +.mui-icon-map:before +{ + content: '\e364'; +} + +.mui-icon-compose:before +{ + content: '\e400'; +} + +.mui-icon-trash:before +{ + content: '\e401'; +} + +.mui-icon-upload:before +{ + content: '\e402'; +} + +.mui-icon-download:before +{ + content: '\e403'; +} + +.mui-icon-close:before +{ + content: '\e404'; +} + +.mui-icon-redo:before +{ + content: '\e405'; +} + +.mui-icon-undo:before +{ + content: '\e406'; +} + +.mui-icon-refresh:before +{ + content: '\e407'; +} + +.mui-icon-star:before +{ + content: '\e408'; +} + +.mui-icon-plus:before +{ + content: '\e409'; +} + +.mui-icon-minus:before +{ + content: '\e410'; +} + +.mui-icon-circle:before, .mui-icon-checkbox:before +{ + content: '\e411'; +} + +.mui-icon-close-filled:before, .mui-icon-clear:before +{ + content: '\e434'; +} + +.mui-icon-refresh-filled:before +{ + content: '\e437'; +} + +.mui-icon-star-filled:before +{ + content: '\e438'; +} + +.mui-icon-plus-filled:before +{ + content: '\e439'; +} + +.mui-icon-minus-filled:before +{ + content: '\e440'; +} + +.mui-icon-circle-filled:before +{ + content: '\e441'; +} + +.mui-icon-checkbox-filled:before +{ + content: '\e442'; +} + +.mui-icon-closeempty:before +{ + content: '\e460'; +} + +.mui-icon-refreshempty:before +{ + content: '\e461'; +} + +.mui-icon-reload:before +{ + content: '\e462'; +} + +.mui-icon-starhalf:before +{ + content: '\e463'; +} + +.mui-icon-spinner:before +{ + content: '\e464'; +} + +.mui-icon-spinner-cycle:before +{ + content: '\e465'; +} + +.mui-icon-search:before +{ + content: '\e466'; +} + +.mui-icon-plusempty:before +{ + content: '\e468'; +} + +.mui-icon-forward:before +{ + content: '\e470'; +} + +.mui-icon-back:before, .mui-icon-left-nav:before +{ + content: '\e471'; +} + +.mui-icon-checkmarkempty:before +{ + content: '\e472'; +} + +.mui-icon-home:before +{ + content: '\e500'; +} + +.mui-icon-navigate:before +{ + content: '\e501'; +} + +.mui-icon-gear:before +{ + content: '\e502'; +} + +.mui-icon-paperplane:before +{ + content: '\e503'; +} + +.mui-icon-info:before +{ + content: '\e504'; +} + +.mui-icon-help:before +{ + content: '\e505'; +} + +.mui-icon-locked:before +{ + content: '\e506'; +} + +.mui-icon-more:before +{ + content: '\e507'; +} + +.mui-icon-flag:before +{ + content: '\e508'; +} + +.mui-icon-home-filled:before +{ + content: '\e530'; +} + +.mui-icon-gear-filled:before +{ + content: '\e532'; +} + +.mui-icon-info-filled:before +{ + content: '\e534'; +} + +.mui-icon-help-filled:before +{ + content: '\e535'; +} + +.mui-icon-more-filled:before +{ + content: '\e537'; +} + +.mui-icon-settings:before +{ + content: '\e560'; +} + +.mui-icon-list:before +{ + content: '\e562'; +} + +.mui-icon-bars:before +{ + content: '\e563'; +} + +.mui-icon-loop:before +{ + content: '\e565'; +} + +.mui-icon-paperclip:before +{ + content: '\e567'; +} + +.mui-icon-eye:before +{ + content: '\e568'; +} + +.mui-icon-arrowup:before +{ + content: '\e580'; +} + +.mui-icon-arrowdown:before +{ + content: '\e581'; +} + +.mui-icon-arrowleft:before +{ + content: '\e582'; +} + +.mui-icon-arrowright:before +{ + content: '\e583'; +} + +.mui-icon-arrowthinup:before +{ + content: '\e584'; +} + +.mui-icon-arrowthindown:before +{ + content: '\e585'; +} + +.mui-icon-arrowthinleft:before +{ + content: '\e586'; +} + +.mui-icon-arrowthinright:before +{ + content: '\e587'; +} + +.mui-icon-pulldown:before +{ + content: '\e588'; +} + +.mui-fullscreen +{ + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} +.mui-fullscreen.mui-slider .mui-slider-group +{ + height: 100%; +} +.mui-fullscreen .mui-segmented-control ~ .mui-slider-group +{ + position: absolute; + top: 40px; + bottom: 0; + + width: 100%; + height: auto; +} +.mui-fullscreen.mui-slider .mui-slider-item > a +{ + top: 50%; + + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.mui-fullscreen .mui-off-canvas-wrap .mui-slider-item > a +{ + top: auto; + + -webkit-transform: none; + transform: none; +} + +.mui-bar-nav ~ .mui-content .mui-slider.mui-fullscreen +{ + top: 44px; +} + +.mui-bar-tab ~ .mui-content .mui-slider.mui-fullscreen .mui-segmented-control ~ .mui-slider-group +{ + bottom: 50px; +} + +.mui-android.mui-android-4-0 input:focus, +.mui-android.mui-android-4-0 textarea:focus +{ + -webkit-user-modify: inherit; +} + +.mui-android.mui-android-4-2 input, +.mui-android.mui-android-4-2 textarea, .mui-android.mui-android-4-3 input, +.mui-android.mui-android-4-3 textarea +{ + -webkit-user-select: text; +} + +.mui-ios .mui-table-view-cell +{ + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; +} + +.mui-plus-visible, .mui-wechat-visible +{ + display: none !important; +} + +.mui-plus-hidden, .mui-wechat-hidden +{ + display: block !important; +} + +.mui-tab-item.mui-plus-hidden, .mui-tab-item.mui-wechat-hidden +{ + display: table-cell !important; +} + +.mui-plus .mui-plus-visible, .mui-wechat .mui-wechat-visible +{ + display: block !important; +} + +.mui-plus .mui-tab-item.mui-plus-visible, .mui-wechat .mui-tab-item.mui-wechat-visible +{ + display: table-cell !important; +} + +.mui-plus .mui-plus-hidden, .mui-wechat .mui-wechat-hidden +{ + display: none !important; +} + +.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-nav +{ + height: 64px; + padding-top: 20px; +} +.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-nav ~ .mui-content +{ + padding-top: 64px; +} +.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-nav ~ .mui-content .mui-pull-top-pocket +{ + top: 64px; +} +.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-header-secondary +{ + top: 64px; +} +.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-header-secondary ~ .mui-content +{ + padding-top: 94px; +} + +.mui-iframe-wrapper +{ + position: absolute; + right: 0; + left: 0; + + -webkit-overflow-scrolling: touch; +} +.mui-iframe-wrapper iframe +{ + width: 100%; + height: 100%; + + border: 0; +} diff --git a/fangija-zsyf/css/mui.min.css b/fangija-zsyf/css/mui.min.css new file mode 100644 index 0000000..c330ba6 --- /dev/null +++ b/fangija-zsyf/css/mui.min.css @@ -0,0 +1,5 @@ +/*! + * ===================================================== + * Mui v3.7.2 (http://dev.dcloud.net.cn/mui) + * ===================================================== + *//*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{font:inherit;margin:0;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{margin:0 2px;padding:.35em .625em .75em;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}*{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;outline:0;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent}body{font-family:'Helvetica Neue',Helvetica,sans-serif;font-size:17px;line-height:21px;color:#000;background-color:#efeff4;-webkit-overflow-scrolling:touch}a{text-decoration:none;color:#007aff}a:active{color:#0062cc}.mui-content{background-color:#efeff4;-webkit-overflow-scrolling:touch}.mui-bar-nav~.mui-content{padding-top:44px}.mui-bar-nav~.mui-content.mui-scroll-wrapper .mui-scrollbar-vertical{top:44px}.mui-bar-header-secondary~.mui-content{padding-top:88px}.mui-bar-header-secondary~.mui-content.mui-scroll-wrapper .mui-scrollbar-vertical{top:88px}.mui-bar-footer~.mui-content{padding-bottom:44px}.mui-bar-footer~.mui-content.mui-scroll-wrapper .mui-scrollbar-vertical{bottom:44px}.mui-bar-footer-secondary~.mui-content{padding-bottom:88px}.mui-bar-footer-secondary~.mui-content.mui-scroll-wrapper .mui-scrollbar-vertical{bottom:88px}.mui-bar-tab~.mui-content{padding-bottom:50px}.mui-bar-tab~.mui-content.mui-scroll-wrapper .mui-scrollbar-vertical{bottom:50px}.mui-bar-footer-secondary-tab~.mui-content{padding-bottom:94px}.mui-bar-footer-secondary-tab~.mui-content.mui-scroll-wrapper .mui-scrollbar-vertical{bottom:94px}.mui-content-padded{margin:10px}.mui-inline{display:inline-block;vertical-align:top}.mui-block{display:block!important}.mui-visibility{visibility:visible!important}.mui-hidden{display:none!important}.mui-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mui-ellipsis-2{display:-webkit-box;overflow:hidden;white-space:normal!important;text-overflow:ellipsis;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mui-table{display:table;width:100%;table-layout:fixed}.mui-table-cell{position:relative;display:table-cell}.mui-text-left{text-align:left!important}.mui-text-center{text-align:center!important}.mui-text-justify{text-align:justify!important}.mui-text-right{text-align:right!important}.mui-pull-left{float:left}.mui-pull-right{float:right}.mui-list-unstyled{padding-left:0;list-style:none}.mui-list-inline{margin-left:-5px;padding-left:0;list-style:none}.mui-list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}.mui-clearfix:after,.mui-clearfix:before{display:table;content:' '}.mui-clearfix:after{clear:both}.mui-bg-primary{background-color:#007aff}.mui-bg-positive{background-color:#4cd964}.mui-bg-negative{background-color:#dd524d}.mui-error{margin:88px 35px;padding:10px;border-radius:6px;background-color:#bbb}.mui-subtitle{font-size:15px}h1,h2,h3,h4,h5,h6{line-height:1;margin-top:5px;margin-bottom:5px}.mui-h1,h1{font-size:36px}.mui-h2,h2{font-size:30px}.mui-h3,h3{font-size:24px}.mui-h4,h4{font-size:18px}.mui-h5,h5{font-size:14px;font-weight:400;color:#8f8f94}.mui-h6,h6{font-size:12px;font-weight:400;color:#8f8f94}p{font-size:14px;margin-top:0;margin-bottom:10px;color:#8f8f94}.mui-row:after,.mui-row:before{display:table;content:' '}.mui-row:after{clear:both}.mui-col-sm-1,.mui-col-sm-10,.mui-col-sm-11,.mui-col-sm-12,.mui-col-sm-2,.mui-col-sm-3,.mui-col-sm-4,.mui-col-sm-5,.mui-col-sm-6,.mui-col-sm-7,.mui-col-sm-8,.mui-col-sm-9,.mui-col-xs-1,.mui-col-xs-10,.mui-col-xs-11,.mui-col-xs-12,.mui-col-xs-2,.mui-col-xs-3,.mui-col-xs-4,.mui-col-xs-5,.mui-col-xs-6,.mui-col-xs-7,.mui-col-xs-8,.mui-col-xs-9{position:relative;min-height:1px}.mui-row>[class*=mui-col-]{float:left}.mui-col-xs-12{width:100%}.mui-col-xs-11{width:91.66666667%}.mui-col-xs-10{width:83.33333333%}.mui-col-xs-9{width:75%}.mui-col-xs-8{width:66.66666667%}.mui-col-xs-7{width:58.33333333%}.mui-col-xs-6{width:50%}.mui-col-xs-5{width:41.66666667%}.mui-col-xs-4{width:33.33333333%}.mui-col-xs-3{width:25%}.mui-col-xs-2{width:16.66666667%}.mui-col-xs-1{width:8.33333333%}@media (min-width:400px){.mui-col-sm-12{width:100%}.mui-col-sm-11{width:91.66666667%}.mui-col-sm-10{width:83.33333333%}.mui-col-sm-9{width:75%}.mui-col-sm-8{width:66.66666667%}.mui-col-sm-7{width:58.33333333%}.mui-col-sm-6{width:50%}.mui-col-sm-5{width:41.66666667%}.mui-col-sm-4{width:33.33333333%}.mui-col-sm-3{width:25%}.mui-col-sm-2{width:16.66666667%}.mui-col-sm-1{width:8.33333333%}}.mui-scroll-wrapper{position:absolute;z-index:2;top:0;bottom:0;left:0;overflow:hidden;width:100%}.mui-scroll{position:absolute;z-index:1;width:100%}.mui-scrollbar{position:absolute;z-index:9998;overflow:hidden;-webkit-transition:500ms;transition:500ms;transform:translateZ(0px);pointer-events:none;opacity:0}.mui-scrollbar-vertical{top:0;right:1px;bottom:2px;width:4px}.mui-scrollbar-vertical .mui-scrollbar-indicator{width:100%}.mui-scrollbar-horizontal{right:2px;bottom:0;left:2px;height:4px}.mui-scrollbar-horizontal .mui-scrollbar-indicator{height:100%}.mui-scrollbar-indicator{position:absolute;display:block;box-sizing:border-box;-webkit-transition:.01s cubic-bezier(.1,.57,.1,1);transition:.01s cubic-bezier(.1,.57,.1,1);transform:translate(0px,0) translateZ(0px);border:1px solid rgba(255,255,255,.80196);border-radius:2px;background:rgba(0,0,0,.39804)}.mui-plus-pullrefresh .mui-fullscreen .mui-scroll-wrapper .mui-scroll-wrapper,.mui-plus-pullrefresh .mui-fullscreen .mui-slider-group .mui-scroll-wrapper{position:absolute;top:0;bottom:0;left:0;overflow:hidden;width:100%}.mui-plus-pullrefresh .mui-fullscreen .mui-scroll-wrapper .mui-scroll,.mui-plus-pullrefresh .mui-fullscreen .mui-slider-group .mui-scroll{position:absolute;width:100%}.mui-plus-pullrefresh .mui-scroll-wrapper,.mui-plus-pullrefresh .mui-slider-group{position:static;top:auto;bottom:auto;left:auto;overflow:auto;width:auto}.mui-plus-pullrefresh .mui-slider-group{overflow:visible}.mui-plus-pullrefresh .mui-scroll{position:static;width:auto}.mui-off-canvas-wrap .mui-bar{position:absolute!important;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-box-shadow:none;box-shadow:none}.mui-off-canvas-wrap{position:relative;z-index:1;overflow:hidden;width:100%;height:100%}.mui-off-canvas-wrap .mui-inner-wrap{position:relative;z-index:1;width:100%;height:100%}.mui-off-canvas-wrap .mui-inner-wrap.mui-transitioning{-webkit-transition:-webkit-transform 350ms;transition:transform 350ms cubic-bezier(.165,.84,.44,1)}.mui-off-canvas-wrap .mui-inner-wrap .mui-off-canvas-left{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mui-off-canvas-wrap .mui-inner-wrap .mui-off-canvas-right{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mui-off-canvas-wrap.mui-active{overflow:hidden;height:100%}.mui-off-canvas-wrap.mui-active .mui-off-canvas-backdrop{position:absolute;z-index:998;top:0;right:0;bottom:0;left:0;display:block;transition:background 350ms cubic-bezier(.165,.84,.44,1);background:rgba(0,0,0,.4);box-shadow:-4px 0 4px rgba(0,0,0,.5),4px 0 4px rgba(0,0,0,.5);-webkit-tap-highlight-color:transparent}.mui-off-canvas-wrap.mui-slide-in .mui-off-canvas-right{z-index:10000!important;-webkit-transform:translate3d(100%,0,0)}.mui-off-canvas-wrap.mui-slide-in .mui-off-canvas-left{z-index:10000!important;-webkit-transform:translate3d(-100%,0,0)}.mui-off-canvas-left,.mui-off-canvas-right{position:absolute;z-index:-1;top:0;bottom:0;visibility:hidden;box-sizing:content-box;width:70%;min-height:100%;background:#333;-webkit-overflow-scrolling:touch}.mui-off-canvas-left.mui-transitioning,.mui-off-canvas-right.mui-transitioning{-webkit-transition:-webkit-transform 350ms cubic-bezier(.165,.84,.44,1);transition:transform 350ms cubic-bezier(.165,.84,.44,1)}.mui-off-canvas-left{left:0}.mui-off-canvas-right{right:0}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable{background-color:#333}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable>.mui-off-canvas-left,.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable>.mui-off-canvas-right{width:80%;-webkit-transform:scale(.8);transform:scale(.8);opacity:.1}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable>.mui-off-canvas-left.mui-transitioning,.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable>.mui-off-canvas-right.mui-transitioning{-webkit-transition:-webkit-transform 350ms cubic-bezier(.165,.84,.44,1),opacity 350ms cubic-bezier(.165,.84,.44,1);transition:transform 350ms cubic-bezier(.165,.84,.44,1),opacity 350ms cubic-bezier(.165,.84,.44,1)}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable>.mui-off-canvas-left{-webkit-transform-origin:-100%;transform-origin:-100%}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable>.mui-off-canvas-right{-webkit-transform-origin:200%;transform-origin:200%}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable.mui-active>.mui-inner-wrap{-webkit-transform:scale(.8);transform:scale(.8)}.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable.mui-active>.mui-off-canvas-left,.mui-off-canvas-wrap:not(.mui-slide-in).mui-scalable.mui-active>.mui-off-canvas-right{-webkit-transform:scale(1);transform:scale(1);opacity:1}.mui-loading .mui-spinner{display:block;margin:0 auto}.mui-spinner{display:inline-block;width:24px;height:24px;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:spinner-spin 1s step-end infinite;animation:spinner-spin 1s step-end infinite}.mui-spinner:after{display:block;width:100%;height:100%;content:'';background-image:url('data:image/svg+xml;charset=utf-8,');background-repeat:no-repeat;background-position:50%;background-size:100%}.mui-spinner-white:after{background-image:url('data:image/svg+xml;charset=utf-8,')}@-webkit-keyframes spinner-spin{0%{-webkit-transform:rotate(0deg)}8.33333333%{-webkit-transform:rotate(30deg)}16.66666667%{-webkit-transform:rotate(60deg)}25%{-webkit-transform:rotate(90deg)}33.33333333%{-webkit-transform:rotate(120deg)}41.66666667%{-webkit-transform:rotate(150deg)}50%{-webkit-transform:rotate(180deg)}58.33333333%{-webkit-transform:rotate(210deg)}66.66666667%{-webkit-transform:rotate(240deg)}75%{-webkit-transform:rotate(270deg)}83.33333333%{-webkit-transform:rotate(300deg)}91.66666667%{-webkit-transform:rotate(330deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spinner-spin{0%{transform:rotate(0deg)}8.33333333%{transform:rotate(30deg)}16.66666667%{transform:rotate(60deg)}25%{transform:rotate(90deg)}33.33333333%{transform:rotate(120deg)}41.66666667%{transform:rotate(150deg)}50%{transform:rotate(180deg)}58.33333333%{transform:rotate(210deg)}66.66666667%{transform:rotate(240deg)}75%{transform:rotate(270deg)}83.33333333%{transform:rotate(300deg)}91.66666667%{transform:rotate(330deg)}100%{transform:rotate(360deg)}}.mui-btn,button,input[type=button],input[type=reset],input[type=submit]{font-size:14px;font-weight:400;line-height:1.42;position:relative;display:inline-block;margin-bottom:0;padding:6px 12px;cursor:pointer;-webkit-transition:all;transition:all;-webkit-transition-timing-function:linear;transition-timing-function:linear;-webkit-transition-duration:.2s;transition-duration:.2s;text-align:center;vertical-align:top;white-space:nowrap;color:#333;border:1px solid #ccc;border-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:#fff;background-clip:padding-box}.mui-btn.mui-active:enabled,.mui-btn:enabled:active,button.mui-active:enabled,button:enabled:active,input[type=button].mui-active:enabled,input[type=button]:enabled:active,input[type=reset].mui-active:enabled,input[type=reset]:enabled:active,input[type=submit].mui-active:enabled,input[type=submit]:enabled:active{color:#fff;background-color:#929292}.mui-btn.mui-disabled,.mui-btn:disabled,button.mui-disabled,button:disabled,input[type=button].mui-disabled,input[type=button]:disabled,input[type=reset].mui-disabled,input[type=reset]:disabled,input[type=submit].mui-disabled,input[type=submit]:disabled{opacity:.6}.mui-btn-blue,.mui-btn-primary,input[type=submit]{color:#fff;border:1px solid #007aff;background-color:#007aff}.mui-btn-blue.mui-active:enabled,.mui-btn-blue:enabled:active,.mui-btn-primary.mui-active:enabled,.mui-btn-primary:enabled:active,input[type=submit].mui-active:enabled,input[type=submit]:enabled:active{color:#fff;border:1px solid #0062cc;background-color:#0062cc}.mui-btn-green,.mui-btn-positive,.mui-btn-success{color:#fff;border:1px solid #4cd964;background-color:#4cd964}.mui-btn-green.mui-active:enabled,.mui-btn-green:enabled:active,.mui-btn-positive.mui-active:enabled,.mui-btn-positive:enabled:active,.mui-btn-success.mui-active:enabled,.mui-btn-success:enabled:active{color:#fff;border:1px solid #2ac845;background-color:#2ac845}.mui-btn-warning,.mui-btn-yellow{color:#fff;border:1px solid #f0ad4e;background-color:#f0ad4e}.mui-btn-warning.mui-active:enabled,.mui-btn-warning:enabled:active,.mui-btn-yellow.mui-active:enabled,.mui-btn-yellow:enabled:active{color:#fff;border:1px solid #ec971f;background-color:#ec971f}.mui-btn-danger,.mui-btn-negative,.mui-btn-red{color:#fff;border:1px solid #dd524d;background-color:#dd524d}.mui-btn-danger.mui-active:enabled,.mui-btn-danger:enabled:active,.mui-btn-negative.mui-active:enabled,.mui-btn-negative:enabled:active,.mui-btn-red.mui-active:enabled,.mui-btn-red:enabled:active{color:#fff;border:1px solid #cf2d28;background-color:#cf2d28}.mui-btn-purple,.mui-btn-royal{color:#fff;border:1px solid #8a6de9;background-color:#8a6de9}.mui-btn-purple.mui-active:enabled,.mui-btn-purple:enabled:active,.mui-btn-royal.mui-active:enabled,.mui-btn-royal:enabled:active{color:#fff;border:1px solid #6641e2;background-color:#6641e2}.mui-btn-grey{color:#fff;border:1px solid #c7c7cc;background-color:#c7c7cc}.mui-btn-grey.mui-active:enabled,.mui-btn-grey:enabled:active{color:#fff;border:1px solid #acacb4;background-color:#acacb4}.mui-btn-outlined{background-color:transparent}.mui-btn-outlined.mui-btn-blue,.mui-btn-outlined.mui-btn-primary{color:#007aff}.mui-btn-outlined.mui-btn-green,.mui-btn-outlined.mui-btn-positive,.mui-btn-outlined.mui-btn-success{color:#4cd964}.mui-btn-outlined.mui-btn-warning,.mui-btn-outlined.mui-btn-yellow{color:#f0ad4e}.mui-btn-outlined.mui-btn-danger,.mui-btn-outlined.mui-btn-negative,.mui-btn-outlined.mui-btn-red{color:#dd524d}.mui-btn-outlined.mui-btn-purple,.mui-btn-outlined.mui-btn-royal{color:#8a6de9}.mui-btn-outlined.mui-btn-blue:enabled:active,.mui-btn-outlined.mui-btn-danger:enabled:active,.mui-btn-outlined.mui-btn-green:enabled:active,.mui-btn-outlined.mui-btn-negative:enabled:active,.mui-btn-outlined.mui-btn-positive:enabled:active,.mui-btn-outlined.mui-btn-primary:enabled:active,.mui-btn-outlined.mui-btn-purple:enabled:active,.mui-btn-outlined.mui-btn-red:enabled:active,.mui-btn-outlined.mui-btn-royal:enabled:active,.mui-btn-outlined.mui-btn-success:enabled:active,.mui-btn-outlined.mui-btn-warning:enabled:active,.mui-btn-outlined.mui-btn-yellow:enabled:active{color:#fff}.mui-btn-link{padding-top:6px;padding-bottom:6px;color:#007aff;border:0;background-color:transparent}.mui-btn-link.mui-active:enabled,.mui-btn-link:enabled:active{color:#0062cc;background-color:transparent}.mui-btn-block{font-size:18px;display:block;width:100%;margin-bottom:10px;padding:15px 0}.mui-btn .mui-badge{font-size:14px;margin:-2px -4px -2px 4px;background-color:rgba(0,0,0,.15)}.mui-btn .mui-badge-inverted,.mui-btn:enabled:active .mui-badge-inverted{background-color:transparent}.mui-btn-negative:enabled:active .mui-badge-inverted,.mui-btn-positive:enabled:active .mui-badge-inverted,.mui-btn-primary:enabled:active .mui-badge-inverted{color:#fff}.mui-btn-block .mui-badge{position:absolute;right:0;margin-right:10px}.mui-btn .mui-icon{font-size:inherit}.mui-btn.mui-icon{font-size:14px;line-height:1.42}.mui-btn.mui-fab{width:56px;height:56px;padding:16px;border-radius:50%;outline:0}.mui-btn.mui-fab.mui-btn-mini{width:40px;height:40px;padding:8px}.mui-btn.mui-fab .mui-icon{font-size:24px;line-height:24px;width:24px;height:24px}.mui-btn .mui-spinner{width:14px;height:14px;vertical-align:text-bottom}.mui-btn-block .mui-spinner{width:22px;height:22px}.mui-bar{position:fixed;z-index:10;right:0;left:0;height:44px;padding-right:10px;padding-left:10px;border-bottom:0;background-color:#f7f7f7;-webkit-box-shadow:0 0 1px rgba(0,0,0,.85);box-shadow:0 0 1px rgba(0,0,0,.85);-webkit-backface-visibility:hidden;backface-visibility:hidden}.mui-bar .mui-title{right:40px;left:40px;display:inline-block;overflow:hidden;width:auto;margin:0;text-overflow:ellipsis}.mui-bar .mui-backdrop{background:0 0}.mui-bar-header-secondary{top:44px}.mui-bar-footer{bottom:0}.mui-bar-footer-secondary{bottom:44px}.mui-bar-footer-secondary-tab{bottom:50px}.mui-bar-footer,.mui-bar-footer-secondary,.mui-bar-footer-secondary-tab{border-top:0}.mui-bar-transparent{top:0;background-color:rgba(247,247,247,0);-webkit-box-shadow:none;box-shadow:none}.mui-bar-nav{top:0;-webkit-box-shadow:0 1px 6px #ccc;box-shadow:0 1px 6px #ccc}.mui-bar-nav~.mui-content .mui-anchor{display:block;visibility:hidden;height:45px;margin-top:-45px}.mui-bar-nav.mui-bar .mui-icon{margin-right:-10px;margin-left:-10px;padding-right:10px;padding-left:10px}.mui-title{font-size:17px;font-weight:500;line-height:44px;position:absolute;display:block;width:100%;margin:0 -10px;padding:0;text-align:center;white-space:nowrap;color:#000}.mui-title a{color:inherit}.mui-bar-tab{bottom:0;display:table;width:100%;height:50px;padding:0;table-layout:fixed;border-top:0;border-bottom:0;-webkit-touch-callout:none}.mui-bar-tab .mui-tab-item{display:table-cell;overflow:hidden;width:1%;height:50px;text-align:center;vertical-align:middle;white-space:nowrap;text-overflow:ellipsis;color:#929292}.mui-bar-tab .mui-tab-item.mui-active{color:#007aff}.mui-bar-tab .mui-tab-item .mui-icon{top:3px;width:24px;height:24px;padding-top:0;padding-bottom:0}.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis}.mui-bar-tab .mui-tab-item .mui-icon:active{background:0 0}.mui-focusin>.mui-bar-header-secondary,.mui-focusin>.mui-bar-nav{position:absolute}.mui-focusin>.mui-bar~.mui-content{padding-bottom:0}.mui-bar .mui-btn{font-weight:400;position:relative;z-index:20;top:7px;margin-top:0;padding:6px 12px 7px}.mui-bar .mui-btn.mui-pull-right{margin-left:10px}.mui-bar .mui-btn.mui-pull-left{margin-right:10px}.mui-bar .mui-btn-link{font-size:16px;line-height:44px;top:0;padding:0;color:#007aff;border:0}.mui-bar .mui-btn-link.mui-active,.mui-bar .mui-btn-link:active{color:#0062cc}.mui-bar .mui-btn-block{font-size:16px;top:6px;margin-bottom:0;padding:5px 0}.mui-bar .mui-btn-nav.mui-pull-left{margin-left:-5px}.mui-bar .mui-btn-nav.mui-pull-left .mui-icon-left-nav{margin-right:-3px}.mui-bar .mui-btn-nav.mui-pull-right{margin-right:-5px}.mui-bar .mui-btn-nav.mui-pull-right .mui-icon-right-nav{margin-left:-3px}.mui-bar .mui-btn-nav:active{opacity:.3}.mui-bar .mui-icon{font-size:24px;position:relative;z-index:20;padding-top:10px;padding-bottom:10px}.mui-bar .mui-icon:active{opacity:.3}.mui-bar .mui-btn .mui-icon{top:1px;margin:0;padding:0}.mui-bar .mui-title .mui-icon{margin:0;padding:0}.mui-bar .mui-title .mui-icon.mui-icon-caret{top:4px;margin-left:-5px}.mui-bar input[type=search]{height:29px;margin:6px 0}.mui-bar .mui-input-row .mui-btn{padding:12px 10px}.mui-bar .mui-search:before{margin-top:-10px}.mui-bar .mui-input-row .mui-input-clear~.mui-icon-clear,.mui-bar .mui-input-row .mui-input-speech~.mui-icon-speech{top:0;right:12px}.mui-bar.mui-bar-header-secondary .mui-input-row .mui-input-clear~.mui-icon-clear,.mui-bar.mui-bar-header-secondary .mui-input-row .mui-input-speech~.mui-icon-speech{top:0;right:0}.mui-bar .mui-segmented-control{top:7px;width:auto;margin:0 auto}.mui-bar.mui-bar-header-secondary .mui-segmented-control{top:0}.mui-badge{font-size:12px;line-height:1;display:inline-block;padding:3px 6px;color:#333;border-radius:100px;background-color:rgba(0,0,0,.15)}.mui-badge.mui-badge-inverted{padding:0 5px 0 0;color:#929292;background-color:transparent}.mui-badge-blue,.mui-badge-primary{color:#fff;background-color:#007aff}.mui-badge-blue.mui-badge-inverted,.mui-badge-primary.mui-badge-inverted{color:#007aff;background-color:transparent}.mui-badge-green,.mui-badge-success{color:#fff;background-color:#4cd964}.mui-badge-green.mui-badge-inverted,.mui-badge-success.mui-badge-inverted{color:#4cd964;background-color:transparent}.mui-badge-warning,.mui-badge-yellow{color:#fff;background-color:#f0ad4e}.mui-badge-warning.mui-badge-inverted,.mui-badge-yellow.mui-badge-inverted{color:#f0ad4e;background-color:transparent}.mui-badge-danger,.mui-badge-red{color:#fff;background-color:#dd524d}.mui-badge-danger.mui-badge-inverted,.mui-badge-red.mui-badge-inverted{color:#dd524d;background-color:transparent}.mui-badge-purple,.mui-badge-royal{color:#fff;background-color:#8a6de9}.mui-badge-purple.mui-badge-inverted,.mui-badge-royal.mui-badge-inverted{color:#8a6de9;background-color:transparent}.mui-icon .mui-badge{font-size:10px;line-height:1.4;position:absolute;top:-2px;left:100%;margin-left:-10px;padding:1px 5px;color:#fff;background:red}.mui-card{font-size:14px;position:relative;overflow:hidden;margin:10px;border-radius:2px;background-color:#fff;background-clip:padding-box;box-shadow:0 1px 2px rgba(0,0,0,.3)}.mui-content>.mui-card:first-child{margin-top:15px}.mui-card .mui-input-group .mui-input-row:last-child:after,.mui-card .mui-input-group .mui-input-row:last-child:before,.mui-card .mui-input-group:after,.mui-card .mui-input-group:before{height:0}.mui-card .mui-table-view{margin-bottom:0;border-top:0;border-bottom:0;border-radius:6px}.mui-card .mui-table-view .mui-table-view-cell:first-child,.mui-card .mui-table-view .mui-table-view-divider:first-child{top:0;border-top-left-radius:6px;border-top-right-radius:6px}.mui-card .mui-table-view .mui-table-view-cell:last-child,.mui-card .mui-table-view .mui-table-view-divider:last-child{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.mui-card .mui-table-view:after,.mui-card .mui-table-view:before,.mui-card>.mui-table-view>.mui-table-view-cell:last-child:after,.mui-card>.mui-table-view>.mui-table-view-cell:last-child:before{height:0}.mui-card-footer,.mui-card-header{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;min-height:44px;padding:10px 15px;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.mui-card-footer .mui-card-link,.mui-card-header .mui-card-link{line-height:44px;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;height:44px;margin-top:-10px;margin-bottom:-10px;-webkit-transition-duration:.3s;transition-duration:.3s;text-decoration:none;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.mui-card-footer:before,.mui-card-header:after{position:absolute;top:0;right:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-card-header{font-size:17px;border-radius:2px 2px 0 0}.mui-card-header:after{top:auto;bottom:0}.mui-card-header>img:first-child{font-size:0;line-height:0;float:left;width:34px;height:34px}.mui-card-footer{color:#6d6d72;border-radius:0 0 2px 2px}.mui-card-content{font-size:14px;position:relative}.mui-card-content-inner{position:relative;padding:15px}.mui-card-media{vertical-align:bottom;color:#fff;background-position:center;background-size:cover}.mui-card-header.mui-card-media{display:block;padding:10px}.mui-card-header.mui-card-media .mui-media-body{font-size:14px;font-weight:500;line-height:17px;margin-bottom:0;margin-left:44px;color:#333}.mui-card-header.mui-card-media .mui-media-body p{font-size:13px;margin-bottom:0}.mui-table-view{position:relative;margin-top:0;margin-bottom:0;padding-left:0;list-style:none;background-color:#fff}.mui-table-view:after{position:absolute;right:0;bottom:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view:before{position:absolute;right:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc;top:-1px}.mui-table-view-icon .mui-table-view-cell .mui-navigate-right .mui-icon{font-size:20px;margin-top:-1px;margin-right:5px;margin-left:-5px}.mui-table-view-icon .mui-table-view-cell:after{left:40px}.mui-table-view-chevron .mui-table-view-cell{padding-right:65px}.mui-table-view-chevron .mui-table-view-cell>a:not(.mui-btn){margin-right:-65px}.mui-table-view-radio .mui-table-view-cell{padding-right:65px}.mui-table-view-radio .mui-table-view-cell>a:not(.mui-btn){margin-right:-65px}.mui-table-view-radio .mui-table-view-cell .mui-navigate-right:after{font-size:30px;font-weight:600;right:9px;content:'';color:#007aff}.mui-table-view-radio .mui-table-view-cell.mui-selected .mui-navigate-right:after{content:'\e472'}.mui-table-view-inverted{color:#fff;background:#333}.mui-table-view-inverted:after{position:absolute;right:0;bottom:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#222}.mui-table-view-inverted:before{position:absolute;top:0;right:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#222}.mui-table-view-inverted .mui-table-view-cell:after{position:absolute;right:0;bottom:0;left:15px;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#222}.mui-table-view-inverted .mui-table-view-cell.mui-active,.mui-table-view-inverted .mui-table-view-cell>a:not(.mui-btn).mui-active{background-color:#242424}.mui-table-view-cell{position:relative;overflow:hidden;padding:11px 15px;-webkit-touch-callout:none}.mui-table-view-cell:after{position:absolute;right:0;bottom:0;left:15px;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view-cell.mui-checkbox input[type=checkbox],.mui-table-view-cell.mui-radio input[type=radio]{top:8px}.mui-table-view-cell.mui-checkbox.mui-left,.mui-table-view-cell.mui-radio.mui-left{padding-left:58px}.mui-table-view-cell.mui-active{background-color:#eee}.mui-table-view-cell:last-child:after,.mui-table-view-cell:last-child:before{height:0}.mui-table-view-cell>a:not(.mui-btn){position:relative;display:block;overflow:hidden;margin:-11px -15px;padding:inherit;white-space:nowrap;text-overflow:ellipsis;color:inherit}.mui-table-view-cell>a:not(.mui-btn).mui-active{background-color:#eee}.mui-table-view-cell p{margin-bottom:0}.mui-table-view-cell.mui-transitioning>.mui-slider-handle,.mui-table-view-cell.mui-transitioning>.mui-slider-left .mui-btn,.mui-table-view-cell.mui-transitioning>.mui-slider-right .mui-btn{-webkit-transition:-webkit-transform 300ms ease;transition:transform 300ms ease}.mui-table-view-cell.mui-active>.mui-slider-handle{background-color:#eee}.mui-table-view-cell>.mui-slider-handle{position:relative;background-color:#fff}.mui-table-view-cell>.mui-slider-handle .mui-navigate-right:after,.mui-table-view-cell>.mui-slider-handle.mui-navigate-right:after{right:0}.mui-table-view-cell>.mui-slider-handle,.mui-table-view-cell>.mui-slider-left .mui-btn,.mui-table-view-cell>.mui-slider-right .mui-btn{-webkit-transition:-webkit-transform 0ms ease;transition:transform 0ms ease}.mui-table-view-cell>.mui-slider-left,.mui-table-view-cell>.mui-slider-right{position:absolute;top:0;display:-webkit-box;display:-webkit-flex;display:flex;height:100%}.mui-table-view-cell>.mui-slider-left>.mui-btn,.mui-table-view-cell>.mui-slider-right>.mui-btn{position:relative;left:0;display:-webkit-box;display:-webkit-flex;display:flex;padding:0 30px;color:#fff;border:0;border-radius:0;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.mui-table-view-cell>.mui-slider-left>.mui-btn:after,.mui-table-view-cell>.mui-slider-right>.mui-btn:after{position:absolute;z-index:-1;top:0;width:600%;height:100%;content:'';background:inherit}.mui-table-view-cell>.mui-slider-left>.mui-btn.mui-icon,.mui-table-view-cell>.mui-slider-right>.mui-btn.mui-icon{font-size:30px}.mui-table-view-cell>.mui-slider-right{right:0;-webkit-transition:-webkit-transform 0ms ease;transition:transform 0ms ease;-webkit-transform:translateX(100%);transform:translateX(100%)}.mui-table-view-cell>.mui-slider-left{left:0;-webkit-transition:-webkit-transform 0ms ease;transition:transform 0ms ease;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.mui-table-view-cell>.mui-slider-left>.mui-btn:after{right:100%;margin-right:-1px}.mui-table-view-divider{font-weight:500;position:relative;margin-top:-1px;margin-left:0;padding-top:6px;padding-bottom:6px;padding-left:15px;color:#999;background-color:#fafafa}.mui-table-view-divider:after{position:absolute;right:0;bottom:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view-divider:before{position:absolute;top:0;right:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view .mui-media,.mui-table-view .mui-media-body{overflow:hidden}.mui-table-view .mui-media-large .mui-media-object{line-height:80px;max-width:80px;height:80px}.mui-table-view .mui-media .mui-subtitle{color:#000}.mui-table-view .mui-media-object{line-height:42px;max-width:42px;height:42px}.mui-table-view .mui-media-object.mui-pull-left{margin-right:10px}.mui-table-view .mui-media-object.mui-pull-right{margin-left:10px}.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object{line-height:29px;max-width:29px;height:29px;margin:-4px 0}.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object img{line-height:29px;max-width:29px;height:29px}.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object.mui-pull-left{margin-right:10px}.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-object .mui-icon{font-size:29px}.mui-table-view .mui-table-view-cell.mui-media-icon .mui-media-body:after{position:absolute;right:0;bottom:0;left:55px;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view .mui-table-view-cell.mui-media-icon:after{height:0!important}.mui-table-view.mui-unfold .mui-table-view-cell.mui-collapse .mui-table-view{display:block}.mui-table-view.mui-unfold .mui-table-view-cell.mui-collapse .mui-table-view:after,.mui-table-view.mui-unfold .mui-table-view-cell.mui-collapse .mui-table-view:before{height:0!important}.mui-table-view.mui-unfold .mui-table-view-cell.mui-media-icon.mui-collapse .mui-media-body:after{position:absolute;right:0;bottom:0;left:70px;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view-cell>.mui-badge,.mui-table-view-cell>.mui-btn,.mui-table-view-cell>.mui-switch,.mui-table-view-cell>a>.mui-badge,.mui-table-view-cell>a>.mui-btn,.mui-table-view-cell>a>.mui-switch{position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.mui-table-view-cell .mui-navigate-right>.mui-badge,.mui-table-view-cell .mui-navigate-right>.mui-btn,.mui-table-view-cell .mui-navigate-right>.mui-switch,.mui-table-view-cell .mui-push-left>.mui-badge,.mui-table-view-cell .mui-push-left>.mui-btn,.mui-table-view-cell .mui-push-left>.mui-switch,.mui-table-view-cell .mui-push-right>.mui-badge,.mui-table-view-cell .mui-push-right>.mui-btn,.mui-table-view-cell .mui-push-right>.mui-switch,.mui-table-view-cell>a .mui-navigate-right>.mui-badge,.mui-table-view-cell>a .mui-navigate-right>.mui-btn,.mui-table-view-cell>a .mui-navigate-right>.mui-switch,.mui-table-view-cell>a .mui-push-left>.mui-badge,.mui-table-view-cell>a .mui-push-left>.mui-btn,.mui-table-view-cell>a .mui-push-left>.mui-switch,.mui-table-view-cell>a .mui-push-right>.mui-badge,.mui-table-view-cell>a .mui-push-right>.mui-btn,.mui-table-view-cell>a .mui-push-right>.mui-switch{right:35px}.mui-content>.mui-table-view:first-child{margin-top:15px}.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell:last-child:after,.mui-table-view-cell.mui-collapse .mui-table-view:after,.mui-table-view-cell.mui-collapse .mui-table-view:before{height:0}.mui-table-view-cell.mui-collapse>.mui-navigate-right:after,.mui-table-view-cell.mui-collapse>.mui-push-right:after{content:'\e581'}.mui-table-view-cell.mui-collapse.mui-active{margin-top:-1px}.mui-table-view-cell.mui-collapse.mui-active .mui-collapse-content,.mui-table-view-cell.mui-collapse.mui-active .mui-table-view{display:block}.mui-table-view-cell.mui-collapse.mui-active>.mui-navigate-right:after,.mui-table-view-cell.mui-collapse.mui-active>.mui-push-right:after{content:'\e580'}.mui-table-view-cell.mui-collapse.mui-active .mui-table-view-cell>a:not(.mui-btn).mui-active{margin-left:-31px;padding-left:47px}.mui-table-view-cell.mui-collapse .mui-collapse-content{position:relative;display:none;overflow:hidden;margin:11px -15px -11px;padding:8px 15px;-webkit-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease;background:#fff}.mui-table-view-cell.mui-collapse .mui-collapse-content>.mui-input-group,.mui-table-view-cell.mui-collapse .mui-collapse-content>.mui-slider{width:auto;height:auto;margin:-8px -15px}.mui-table-view-cell.mui-collapse .mui-collapse-content>.mui-slider{margin:-8px -16px}.mui-table-view-cell.mui-collapse .mui-table-view{display:none;margin-top:11px;margin-right:-15px;margin-bottom:-11px;margin-left:-15px;border:0}.mui-table-view-cell.mui-collapse .mui-table-view.mui-table-view-chevron{margin-right:-65px}.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell{padding-left:31px;background-position:31px 100%}.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell:after{position:absolute;right:0;bottom:0;left:30px;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-table-view.mui-grid-view{font-size:0;display:block;width:100%;padding:0 10px 10px 0;white-space:normal}.mui-table-view.mui-grid-view .mui-table-view-cell{font-size:17px;display:inline-block;margin-right:-4px;padding:10px 0 0 14px;text-align:center;vertical-align:middle;background:0 0}.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-object{width:100%;max-width:100%;height:auto}.mui-table-view.mui-grid-view .mui-table-view-cell>a:not(.mui-btn){margin:-10px 0 0 -14px}.mui-table-view.mui-grid-view .mui-table-view-cell>a:not(.mui-btn).mui-active,.mui-table-view.mui-grid-view .mui-table-view-cell>a:not(.mui-btn):active{background:0 0}.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body{font-size:15px;line-height:15px;display:block;width:100%;height:15px;margin-top:8px;text-overflow:ellipsis;color:#333}.mui-table-view.mui-grid-view .mui-table-view-cell:after,.mui-table-view.mui-grid-view .mui-table-view-cell:before{height:0}.mui-grid-view.mui-grid-9{margin:0;padding:0;border-top:1px solid #eee;border-left:1px solid #eee;background-color:#f2f2f2}.mui-grid-view.mui-grid-9:after,.mui-grid-view.mui-grid-9:before{display:table;content:' '}.mui-grid-view.mui-grid-9:after{clear:both;position:static}.mui-grid-view.mui-grid-9 .mui-table-view-cell{margin:0;padding:11px 15px;vertical-align:top;border-right:1px solid #eee;border-bottom:1px solid #eee}.mui-grid-view.mui-grid-9 .mui-table-view-cell.mui-active{background-color:#eee}.mui-grid-view.mui-grid-9 .mui-table-view-cell>a:not(.mui-btn){margin:0;padding:10px 0}.mui-grid-view.mui-grid-9:before{height:0}.mui-grid-view.mui-grid-9 .mui-media{color:#797979}.mui-grid-view.mui-grid-9 .mui-media .mui-icon{font-size:2.4em;position:relative}.mui-slider-cell{position:relative}.mui-slider-cell>.mui-slider-handle{z-index:1}.mui-slider-cell>.mui-slider-left,.mui-slider-cell>.mui-slider-right{position:absolute;z-index:0;top:0;bottom:0}.mui-slider-cell>.mui-slider-left{left:0}.mui-slider-cell>.mui-slider-right{right:0}input,select,textarea{font-family:'Helvetica Neue',Helvetica,sans-serif;font-size:17px;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent}input:focus,select:focus,textarea:focus{-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent;-webkit-user-modify:read-write-plaintext-only}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{line-height:21px;width:100%;height:40px;margin-bottom:15px;padding:10px 15px;-webkit-user-select:text;border:1px solid rgba(0,0,0,.2);border-radius:3px;outline:0;background-color:#fff;-webkit-appearance:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}input[type=search]{font-size:16px;-webkit-box-sizing:border-box;box-sizing:border-box;height:34px;text-align:center;border:0;border-radius:6px;background-color:rgba(0,0,0,.1)}input[type=search]:focus{text-align:left}textarea{height:auto;resize:none}select{font-size:14px;height:auto;margin-top:1px;border:0!important;background-color:#fff}select:focus{-webkit-user-modify:read-only}.mui-input-group{position:relative;padding:0;border:0;background-color:#fff}.mui-input-group:after{position:absolute;right:0;bottom:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-input-group:before{position:absolute;top:0;right:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-input-group input,.mui-input-group textarea{margin-bottom:0;border:0;border-radius:0;background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.mui-input-group input[type=search]{background:0 0}.mui-input-group input:last-child{background-image:none}.mui-input-row{clear:left;overflow:hidden}.mui-input-row select{font-size:17px;height:37px;padding:0}.mui-input-row .mui-btn+input,.mui-input-row label+input,.mui-input-row:last-child{background:0 0}.mui-input-group .mui-input-row{height:40px}.mui-input-group .mui-input-row:after{position:absolute;right:0;bottom:0;left:15px;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-input-row label{font-family:'Helvetica Neue',Helvetica,sans-serif;line-height:1.1;float:left;width:35%;padding:11px 15px}.mui-input-row label~input,.mui-input-row label~select,.mui-input-row label~textarea{float:right;width:65%;margin-bottom:0;padding-left:0;border:0}.mui-input-row .mui-btn{line-height:1.1;float:right;width:15%;padding:10px 15px}.mui-input-row .mui-btn~input,.mui-input-row .mui-btn~select,.mui-input-row .mui-btn~textarea{float:left;width:85%;margin-bottom:0;padding-left:0;border:0}.mui-button-row{position:relative;padding-top:5px;text-align:center}.mui-input-group .mui-button-row{height:45px}.mui-input-row{position:relative}.mui-input-row.mui-input-range{overflow:visible;padding-right:20px}.mui-input-row .mui-inline{padding:8px 0}.mui-input-row .mui-input-clear~.mui-icon-clear,.mui-input-row .mui-input-password~.mui-icon-eye,.mui-input-row .mui-input-speech~.mui-icon-speech{font-size:20px;position:absolute;z-index:1;top:10px;right:0;width:38px;height:38px;text-align:center;color:#999}.mui-input-row .mui-input-clear~.mui-icon-clear.mui-active,.mui-input-row .mui-input-password~.mui-icon-eye.mui-active,.mui-input-row .mui-input-speech~.mui-icon-speech.mui-active{color:#007aff}.mui-input-row .mui-input-speech~.mui-icon-speech{font-size:24px;top:8px}.mui-input-row .mui-input-clear~.mui-icon-clear~.mui-icon-speech{display:none}.mui-input-row .mui-input-clear~.mui-icon-clear.mui-hidden~.mui-icon-speech{display:inline-block}.mui-input-row .mui-icon-speech~.mui-placeholder{right:38px}.mui-input-row.mui-search .mui-icon-clear{top:7px}.mui-input-row.mui-search .mui-icon-speech{top:5px}.mui-checkbox,.mui-radio{position:relative}.mui-checkbox label,.mui-radio label{display:inline-block;float:none;width:100%;padding-right:58px}.mui-checkbox.mui-left input[type=checkbox],.mui-radio.mui-left input[type=radio]{left:20px}.mui-checkbox.mui-left label,.mui-radio.mui-left label{padding-right:15px;padding-left:58px}.mui-checkbox input[type=checkbox],.mui-radio input[type=radio]{position:absolute;top:4px;right:20px;display:inline-block;width:28px;height:26px;border:0;outline:0!important;background-color:transparent;-webkit-appearance:none}.mui-checkbox input[type=checkbox][disabled]:before,.mui-radio input[type=radio][disabled]:before{opacity:.3}.mui-checkbox input[type=checkbox]:before,.mui-radio input[type=radio]:before{font-family:Muiicons;font-size:28px;font-weight:400;line-height:1;text-decoration:none;color:#aaa;border-radius:0;background:0 0;-webkit-font-smoothing:antialiased}.mui-checkbox input[type=checkbox]:checked:before,.mui-radio input[type=radio]:checked:before{color:#007aff}.mui-checkbox label.mui-disabled,.mui-checkbox.mui-disabled label,.mui-radio label.mui-disabled,.mui-radio.mui-disabled label{opacity:.4}.mui-radio input[type=radio]:before{content:'\e411'}.mui-radio input[type=radio]:checked:before{content:'\e441'}.mui-checkbox input[type=checkbox]:before{content:'\e411'}.mui-checkbox input[type=checkbox]:checked:before{content:'\e442'}.mui-select{position:relative}.mui-select:before{font-family:Muiicons;position:absolute;top:8px;right:21px;content:'\e581';color:rgba(170,170,170,.6)}.mui-input-row .mui-switch{float:right;margin-top:5px;margin-right:20px}.mui-input-range input[type=range]{position:relative;width:100%;height:2px;margin:17px 0;padding:0;cursor:pointer;border:0;border-radius:3px;outline:0;background-color:#999;-webkit-appearance:none!important}.mui-input-range input[type=range]::-webkit-slider-thumb{width:28px;height:28px;border-color:#0062cc;border-radius:50%;background-color:#007aff;background-clip:padding-box;-webkit-appearance:none!important}.mui-input-range label~input[type=range]{width:65%}.mui-input-range .mui-tooltip{font-size:36px;line-height:64px;position:absolute;z-index:1;top:-70px;width:64px;height:64px;text-align:center;opacity:.8;color:#333;border:1px solid #ddd;border-radius:6px;background-color:#fff;text-shadow:0 1px 0 #f3f3f3}.mui-search{position:relative}.mui-search input[type=search]{padding-left:30px}.mui-search .mui-placeholder{font-size:16px;line-height:34px;position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;display:inline-block;height:34px;text-align:center;color:#999;border:0;border-radius:6px;background:0 0}.mui-search .mui-placeholder .mui-icon{font-size:20px;color:#333}.mui-search:before{font-family:Muiicons;font-size:20px;font-weight:400;position:absolute;top:50%;right:50%;display:none;margin-top:-18px;margin-right:31px;content:'\e466'}.mui-search.mui-active:before{font-size:20px;right:auto;left:5px;display:block;margin-right:0}.mui-search.mui-active input[type=search]{text-align:left}.mui-search.mui-active .mui-placeholder{display:none}.mui-segmented-control{font-size:15px;font-weight:400;position:relative;display:table;overflow:hidden;width:100%;table-layout:fixed;border:1px solid #007aff;border-radius:3px;background-color:transparent;-webkit-touch-callout:none}.mui-segmented-control.mui-segmented-control-vertical{border-collapse:collapse;border-width:0;border-radius:0}.mui-segmented-control.mui-segmented-control-vertical .mui-control-item{display:block;border-bottom:1px solid #c8c7cc;border-left-width:0}.mui-segmented-control.mui-scroll-wrapper{height:38px}.mui-segmented-control.mui-scroll-wrapper .mui-scroll{width:auto;height:40px;white-space:nowrap}.mui-segmented-control.mui-scroll-wrapper .mui-control-item{display:inline-block;width:auto;padding:0 20px;border:0}.mui-segmented-control .mui-control-item{line-height:38px;display:table-cell;overflow:hidden;width:1%;-webkit-transition:background-color .1s linear;transition:background-color .1s linear;text-align:center;white-space:nowrap;text-overflow:ellipsis;color:#007aff;border-color:#007aff;border-left:1px solid #007aff}.mui-segmented-control .mui-control-item:first-child{border-left-width:0}.mui-segmented-control .mui-control-item.mui-active{color:#fff;background-color:#007aff}.mui-segmented-control.mui-segmented-control-inverted{width:100%;border:0;border-radius:0}.mui-segmented-control.mui-segmented-control-inverted.mui-segmented-control-vertical .mui-control-item,.mui-segmented-control.mui-segmented-control-inverted.mui-segmented-control-vertical .mui-control-item.mui-active{border-bottom:1px solid #c8c7cc}.mui-segmented-control.mui-segmented-control-inverted .mui-control-item{color:inherit;border:0}.mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{color:#007aff;border-bottom:2px solid #007aff;background:0 0}.mui-segmented-control.mui-segmented-control-inverted~.mui-slider-progress-bar{background-color:#007aff}.mui-segmented-control-positive{border:1px solid #4cd964}.mui-segmented-control-positive .mui-control-item{color:#4cd964;border-color:inherit}.mui-segmented-control-positive .mui-control-item.mui-active{color:#fff;background-color:#4cd964}.mui-segmented-control-positive.mui-segmented-control-inverted .mui-control-item.mui-active{color:#4cd964;border-bottom:2px solid #4cd964;background:0 0}.mui-segmented-control-positive.mui-segmented-control-inverted~.mui-slider-progress-bar{background-color:#4cd964}.mui-segmented-control-negative{border:1px solid #dd524d}.mui-segmented-control-negative .mui-control-item{color:#dd524d;border-color:inherit}.mui-segmented-control-negative .mui-control-item.mui-active{color:#fff;background-color:#dd524d}.mui-segmented-control-negative.mui-segmented-control-inverted .mui-control-item.mui-active{color:#dd524d;border-bottom:2px solid #dd524d;background:0 0}.mui-segmented-control-negative.mui-segmented-control-inverted~.mui-slider-progress-bar{background-color:#dd524d}.mui-control-content{position:relative;display:none}.mui-control-content.mui-active{display:block}.mui-popover{position:absolute;z-index:999;display:none;width:280px;-webkit-transition:opacity .3s;transition:opacity .3s;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transform:none;transform:none;opacity:0;border-radius:7px;background-color:#f7f7f7;-webkit-box-shadow:0 0 15px rgba(0,0,0,.1);box-shadow:0 0 15px rgba(0,0,0,.1)}.mui-popover .mui-popover-arrow{position:absolute;z-index:1000;top:-25px;left:0;overflow:hidden;width:26px;height:26px}.mui-popover .mui-popover-arrow:after{position:absolute;top:19px;left:0;width:26px;height:26px;content:' ';-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:3px;background:#f7f7f7}.mui-popover .mui-popover-arrow.mui-bottom{top:100%;left:-26px;margin-top:-1px}.mui-popover .mui-popover-arrow.mui-bottom:after{top:-19px;left:0}.mui-popover.mui-popover-action{bottom:0;width:100%;-webkit-transition:-webkit-transform .3s,opacity .3s;transition:transform .3s,opacity .3s;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);border-radius:0;background:0 0;-webkit-box-shadow:none;box-shadow:none}.mui-popover.mui-popover-action .mui-popover-arrow{display:none}.mui-popover.mui-popover-action.mui-popover-bottom{position:fixed}.mui-popover.mui-popover-action.mui-active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mui-popover.mui-popover-action .mui-table-view{margin:8px;text-align:center;color:#007aff;border-radius:4px}.mui-popover.mui-popover-action .mui-table-view .mui-table-view-cell:after{position:absolute;right:0;bottom:0;left:0;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.mui-popover.mui-popover-action .mui-table-view small{font-weight:400;line-height:1.3;display:block}.mui-popover.mui-active{display:block;opacity:1}.mui-popover .mui-bar~.mui-table-view{padding-top:44px}.mui-backdrop{position:fixed;z-index:998;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.3)}.mui-bar-backdrop.mui-backdrop{bottom:50px;background:0 0}.mui-backdrop-action.mui-backdrop{background-color:rgba(0,0,0,.3)}.mui-backdrop-action.mui-backdrop,.mui-bar-backdrop.mui-backdrop{opacity:0}.mui-backdrop-action.mui-backdrop.mui-active,.mui-bar-backdrop.mui-backdrop.mui-active{-webkit-transition:all .4s ease;transition:all .4s ease;opacity:1}.mui-popover .mui-btn-block{margin-bottom:5px}.mui-popover .mui-btn-block:last-child{margin-bottom:0}.mui-popover .mui-bar{-webkit-box-shadow:none;box-shadow:none}.mui-popover .mui-bar-nav{border-bottom:1px solid rgba(0,0,0,.15);border-top-left-radius:12px;border-top-right-radius:12px;-webkit-box-shadow:none;box-shadow:none}.mui-popover .mui-scroll-wrapper{margin:7px 0;border-radius:7px;background-clip:padding-box}.mui-popover .mui-scroll .mui-table-view{max-height:none}.mui-popover .mui-table-view{overflow:auto;max-height:300px;margin-bottom:0;border-radius:7px;background-color:#f7f7f7;background-image:none;-webkit-overflow-scrolling:touch}.mui-popover .mui-table-view:after,.mui-popover .mui-table-view:before{height:0}.mui-popover .mui-table-view .mui-table-view-cell:first-child,.mui-popover .mui-table-view .mui-table-view-cell:first-child>a:not(.mui-btn){border-top-left-radius:12px;border-top-right-radius:12px}.mui-popover .mui-table-view .mui-table-view-cell:last-child,.mui-popover .mui-table-view .mui-table-view-cell:last-child>a:not(.mui-btn){border-bottom-right-radius:12px;border-bottom-left-radius:12px}.mui-popover.mui-bar-popover .mui-table-view{width:106px}.mui-popover.mui-bar-popover .mui-table-view .mui-table-view-cell{padding:11px 15px;background-position:0 100%}.mui-popover.mui-bar-popover .mui-table-view .mui-table-view-cell>a:not(.mui-btn){margin:-11px -15px -11px -15px}.mui-popup-backdrop{position:fixed;z-index:998;top:0;right:0;bottom:0;left:0;-webkit-transition-duration:400ms;transition-duration:400ms;opacity:0;background:rgba(0,0,0,.4)}.mui-popup-backdrop.mui-active{opacity:1}.mui-popup{position:fixed;z-index:10000;top:50%;left:50%;display:none;overflow:hidden;width:270px;-webkit-transition-property:-webkit-transform,opacity;transition-property:transform,opacity;-webkit-transform:translate3d(-50%,-50%,0) scale(1.185);transform:translate3d(-50%,-50%,0) scale(1.185);text-align:center;opacity:0;color:#000;border-radius:13px}.mui-popup.mui-popup-in{display:block;-webkit-transition-duration:400ms;transition-duration:400ms;-webkit-transform:translate3d(-50%,-50%,0) scale(1);transform:translate3d(-50%,-50%,0) scale(1);opacity:1}.mui-popup.mui-popup-out{-webkit-transition-duration:400ms;transition-duration:400ms;-webkit-transform:translate3d(-50%,-50%,0) scale(1);transform:translate3d(-50%,-50%,0) scale(1);opacity:0}.mui-popup-inner{position:relative;padding:15px;border-radius:13px 13px 0 0;background:rgba(255,255,255,.95)}.mui-popup-inner:after{position:absolute;z-index:15;top:auto;right:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:'';-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:50% 100%;transform-origin:50% 100%;background-color:rgba(0,0,0,.2)}.mui-popup-title{font-size:18px;font-weight:500;text-align:center}.mui-popup-title+.mui-popup-text{font-family:inherit;font-size:14px;margin:5px 0 0}.mui-popup-buttons{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;height:44px;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.mui-popup-button{font-size:17px;line-height:44px;position:relative;display:block;overflow:hidden;box-sizing:border-box;width:100%;height:44px;padding:0 5px;cursor:pointer;text-align:center;white-space:nowrap;text-overflow:ellipsis;color:#007aff;background:rgba(255,255,255,.95);-webkit-box-flex:1}.mui-popup-button:after{position:absolute;z-index:15;top:0;right:0;bottom:auto;left:auto;display:block;width:1px;height:100%;content:'';-webkit-transform:scaleX(.5);transform:scaleX(.5);-webkit-transform-origin:100% 50%;transform-origin:100% 50%;background-color:rgba(0,0,0,.2)}.mui-popup-button:first-child{border-radius:0 0 0 13px}.mui-popup-button:first-child:last-child{border-radius:0 0 13px 13px}.mui-popup-button:last-child{border-radius:0 0 13px}.mui-popup-button:last-child:after{display:none}.mui-popup-button.mui-popup-button-bold{font-weight:600}.mui-popup-input input{font-size:14px;width:100%;height:26px;margin:15px 0 0;padding:0 5px;border:1px solid rgba(0,0,0,.3);border-radius:0;background:#fff}.mui-plus.mui-android .mui-popup-backdrop{-webkit-transition-duration:1ms;transition-duration:1ms}.mui-plus.mui-android .mui-popup{-webkit-transition-duration:1ms;transition-duration:1ms;-webkit-transform:translate3d(-50%,-50%,0) scale(1);transform:translate3d(-50%,-50%,0) scale(1)}.mui-progressbar{position:relative;display:block;overflow:hidden;width:100%;height:2px;-webkit-transform-origin:center top;transform-origin:center top;vertical-align:middle;border-radius:2px;background:#b6b6b6;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.mui-progressbar span{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transition:150ms;transition:150ms;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);background:#007aff}.mui-progressbar.mui-progressbar-infinite:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transform-origin:left center;transform-origin:left center;-webkit-animation:mui-progressbar-infinite 1s linear infinite;animation:mui-progressbar-infinite 1s linear infinite;background:#007aff}body>.mui-progressbar{position:absolute;z-index:10000;top:44px;left:0;border-radius:0}.mui-progressbar-in{-webkit-animation:mui-progressbar-in 300ms forwards;animation:mui-progressbar-in 300ms forwards}.mui-progressbar-out{-webkit-animation:mui-progressbar-out 300ms forwards;animation:mui-progressbar-out 300ms forwards}@-webkit-keyframes mui-progressbar-in{from{-webkit-transform:scaleY(0);opacity:0}to{-webkit-transform:scaleY(1);opacity:1}}@keyframes mui-progressbar-in{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}@-webkit-keyframes mui-progressbar-out{from{-webkit-transform:scaleY(1);opacity:1}to{-webkit-transform:scaleY(0);opacity:0}}@keyframes mui-progressbar-out{from{transform:scaleY(1);opacity:1}to{transform:scaleY(0);opacity:0}}@-webkit-keyframes mui-progressbar-infinite{0%{-webkit-transform:translate3d(-50%,0,0) scaleX(.5)}100%{-webkit-transform:translate3d(100%,0,0) scaleX(.5)}}@keyframes mui-progressbar-infinite{0%{transform:translate3d(-50%,0,0) scaleX(.5)}100%{transform:translate3d(100%,0,0) scaleX(.5)}}.mui-pagination{display:inline-block;margin:0 auto;padding-left:0;border-radius:6px}.mui-pagination>li{display:inline}.mui-pagination>li>a,.mui-pagination>li>span{line-height:1.428571429;position:relative;float:left;margin-left:-1px;padding:6px 12px;text-decoration:none;color:#007aff;border:1px solid #ddd;background-color:#fff}.mui-pagination>li:first-child>a,.mui-pagination>li:first-child>span{margin-left:0;border-top-left-radius:6px;border-bottom-left-radius:6px;background-clip:padding-box}.mui-pagination>li:last-child>a,.mui-pagination>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px;background-clip:padding-box}.mui-pagination>li.mui-active>a,.mui-pagination>li.mui-active>a:active,.mui-pagination>li.mui-active>span,.mui-pagination>li.mui-active>span:active,.mui-pagination>li:active>a,.mui-pagination>li:active>a:active,.mui-pagination>li:active>span,.mui-pagination>li:active>span:active{z-index:2;cursor:default;color:#fff;border-color:#007aff;background-color:#007aff}.mui-pagination>li.mui-disabled>a,.mui-pagination>li.mui-disabled>a:active,.mui-pagination>li.mui-disabled>span,.mui-pagination>li.mui-disabled>span:active{opacity:.6;color:#777;border:1px solid #ddd;background-color:#fff}.mui-pagination-lg>li>a,.mui-pagination-lg>li>span{font-size:18px;padding:10px 16px}.mui-pagination-sm>li>a,.mui-pagination-sm>li>span{font-size:12px;padding:5px 10px}.mui-pager{padding-left:0;list-style:none;text-align:center}.mui-pager:after,.mui-pager:before{display:table;content:' '}.mui-pager:after{clear:both}.mui-pager li{display:inline}.mui-pager li>a,.mui-pager li>span{display:inline-block;padding:5px 14px;border:1px solid #ddd;border-radius:6px;background-color:#fff;background-clip:padding-box}.mui-pager li.mui-active>a,.mui-pager li.mui-active>span,.mui-pager li:active>a,.mui-pager li:active>span{cursor:default;text-decoration:none;color:#fff;border-color:#007aff;background-color:#007aff}.mui-pager .mui-next>a,.mui-pager .mui-next>span{float:right}.mui-pager .mui-previous>a,.mui-pager .mui-previous>span{float:left}.mui-pager .mui-disabled>a,.mui-pager .mui-disabled>a:active,.mui-pager .mui-disabled>span,.mui-pager .mui-disabled>span:active{opacity:.6;color:#777;border:1px solid #ddd;background-color:#fff}.mui-modal{position:fixed;z-index:999;top:0;overflow:hidden;width:100%;min-height:100%;-webkit-transition:-webkit-transform .25s,opacity 1ms .25s;transition:transform .25s,opacity 1ms .25s;-webkit-transition-timing-function:cubic-bezier(.1,.5,.1,1);transition-timing-function:cubic-bezier(.1,.5,.1,1);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);opacity:0;background-color:#fff}.mui-modal.mui-active{height:100%;-webkit-transition:-webkit-transform .25s;transition:transform .25s;-webkit-transition-timing-function:cubic-bezier(.1,.5,.1,1);transition-timing-function:cubic-bezier(.1,.5,.1,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.mui-android .mui-modal .mui-bar{position:static}.mui-android .mui-modal .mui-bar-nav~.mui-content{padding-top:0}.mui-slider{position:relative;z-index:1;overflow:hidden;width:100%}.mui-slider .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{border-bottom:0}.mui-slider .mui-segmented-control.mui-segmented-control-inverted~.mui-slider-group .mui-slider-item{border-top:1px solid #c8c7cc;border-bottom:1px solid #c8c7cc}.mui-slider .mui-slider-group{font-size:0;position:relative;-webkit-transition:all 0s linear;transition:all 0s linear;white-space:nowrap}.mui-slider .mui-slider-group .mui-slider-item{font-size:14px;position:relative;display:inline-block;width:100%;height:100%;vertical-align:top;white-space:normal}.mui-slider .mui-slider-group .mui-slider-item>a:not(.mui-control-item){line-height:0;position:relative;display:block}.mui-slider .mui-slider-group .mui-slider-item img{width:100%}.mui-slider .mui-slider-group .mui-slider-item .mui-table-view:after,.mui-slider .mui-slider-group .mui-slider-item .mui-table-view:before{height:0}.mui-slider .mui-slider-group.mui-slider-loop{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}.mui-slider-title{line-height:30px;position:absolute;bottom:0;left:0;width:100%;height:30px;margin:0;text-align:left;text-indent:12px;opacity:.8;background-color:#000}.mui-slider-indicator{position:absolute;bottom:8px;width:100%;text-align:center;background:0 0}.mui-slider-indicator.mui-segmented-control{position:relative;bottom:auto}.mui-slider-indicator .mui-indicator{display:inline-block;width:6px;height:6px;margin:1px 6px;cursor:pointer;border-radius:50%;background:#aaa;-webkit-box-shadow:0 0 1px 1px rgba(130,130,130,.7);box-shadow:0 0 1px 1px rgba(130,130,130,.7)}.mui-slider-indicator .mui-active.mui-indicator{background:#fff}.mui-slider-indicator .mui-icon{font-size:20px;line-height:30px;width:40px;height:30px;margin:3px;text-align:center;border:1px solid #ddd}.mui-slider-indicator .mui-number{line-height:32px;display:inline-block;width:58px}.mui-slider-indicator .mui-number span{color:#ff5053}.mui-slider-progress-bar{z-index:1;height:2px;-webkit-transform:translateZ(0);transform:translateZ(0)}.mui-switch{position:relative;display:block;width:74px;height:30px;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:background-color,border;transition-property:background-color,border;border:2px solid #ddd;border-radius:20px;background-color:#fff;background-clip:padding-box}.mui-switch.mui-disabled{opacity:.3}.mui-switch .mui-switch-handle{position:absolute;z-index:1;top:-1px;left:-1px;width:28px;height:28px;-webkit-transition:.2s ease-in-out;transition:.2s ease-in-out;-webkit-transition-property:-webkit-transform,width,left;transition-property:transform,width,left;border-radius:16px;background-color:#fff;background-clip:padding-box;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.4);box-shadow:0 2px 5px rgba(0,0,0,.4)}.mui-switch:before{font-size:13px;position:absolute;top:3px;right:11px;content:'Off';text-transform:uppercase;color:#999}.mui-switch.mui-dragging{border-color:#f7f7f7;background-color:#f7f7f7}.mui-switch.mui-dragging .mui-switch-handle{width:38px}.mui-switch.mui-dragging.mui-active .mui-switch-handle{left:-11px;width:38px}.mui-switch.mui-active{border-color:#4cd964;background-color:#4cd964}.mui-switch.mui-active .mui-switch-handle{-webkit-transform:translate(43px,0);transform:translate(43px,0)}.mui-switch.mui-active:before{right:auto;left:15px;content:'On';color:#fff}.mui-switch input[type=checkbox]{display:none}.mui-switch-mini{width:47px}.mui-switch-mini:before{display:none}.mui-switch-mini.mui-active .mui-switch-handle{-webkit-transform:translate(16px,0);transform:translate(16px,0)}.mui-switch-blue.mui-active{border:2px solid #007aff;background-color:#007aff}.mui-content.mui-fade{left:0;opacity:0}.mui-content.mui-fade.mui-in{opacity:1}.mui-content.mui-sliding{z-index:2;-webkit-transition:-webkit-transform .4s;transition:transform .4s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mui-content.mui-sliding.mui-left{z-index:1;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mui-content.mui-sliding.mui-right{z-index:3;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mui-navigate-right:after,.mui-push-left:after,.mui-push-right:after{font-family:Muiicons;font-size:inherit;line-height:1;position:absolute;top:50%;display:inline-block;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-decoration:none;color:#bbb;-webkit-font-smoothing:antialiased}.mui-push-left:after{left:15px;content:'\e582'}.mui-navigate-right:after,.mui-push-right:after{right:15px;content:'\e583'}.mui-pull-bottom-pocket,.mui-pull-top-pocket{position:absolute;left:0;display:block;visibility:hidden;overflow:hidden;width:100%;height:50px}.mui-plus-pullrefresh .mui-pull-bottom-pocket,.mui-plus-pullrefresh .mui-pull-top-pocket{display:none;visibility:visible}.mui-pull-top-pocket{top:0}.mui-bar-nav~.mui-content .mui-pull-top-pocket{top:44px}.mui-bar-nav~.mui-bar-header-secondary~.mui-content .mui-pull-top-pocket{top:88px}.mui-pull-bottom-pocket{position:relative;bottom:0;height:40px}.mui-pull-bottom-pocket .mui-pull-loading{visibility:hidden}.mui-pull-bottom-pocket .mui-pull-loading.mui-in{display:inline-block}.mui-pull{font-weight:700;position:absolute;right:0;bottom:10px;left:0;text-align:center;color:#777}.mui-pull-loading{margin-right:10px;-webkit-transition:-webkit-transform .4s;transition:transform .4s;-webkit-transition-duration:400ms;transition-duration:400ms;vertical-align:middle}.mui-pull-loading.mui-reverse{-webkit-transform:rotate(180deg) translateZ(0);transform:rotate(180deg) translateZ(0)}.mui-pull-caption{font-size:15px;line-height:24px;position:relative;display:inline-block;overflow:visible;margin-top:0;vertical-align:middle}.mui-pull-caption span{display:none}.mui-pull-caption span.mui-in{display:inline}.mui-toast-container{line-height:17px;position:fixed;z-index:9999;bottom:50px;left:50%;-webkit-transition:opacity .3s;transition:opacity .3s;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0}.mui-toast-container.mui-active{opacity:.9}.mui-toast-message{font-size:14px;padding:10px 25px;text-align:center;color:#fff;border-radius:6px;background-color:#323232}.mui-numbox{position:relative;display:inline-block;overflow:hidden;width:120px;height:35px;padding:0 40px;vertical-align:top;vertical-align:middle;border:solid 1px #bbb;border-radius:3px;background-color:#efeff4}.mui-numbox [class*=btn-numbox],.mui-numbox [class*=numbox-btn]{font-size:18px;font-weight:400;line-height:100%;position:absolute;top:0;overflow:hidden;width:40px;height:100%;padding:0;color:#555;border:none;border-radius:0;background-color:#f9f9f9}.mui-numbox [class*=btn-numbox]:active,.mui-numbox [class*=numbox-btn]:active{background-color:#ccc}.mui-numbox [class*=btn-numbox][disabled],.mui-numbox [class*=numbox-btn][disabled]{color:silver}.mui-numbox .mui-btn-numbox-plus,.mui-numbox .mui-numbox-btn-plus{right:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.mui-numbox .mui-btn-numbox-minus,.mui-numbox .mui-numbox-btn-minus{left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.mui-numbox .mui-input-numbox,.mui-numbox .mui-numbox-input{display:inline-block;overflow:hidden;width:100%!important;height:100%;margin:0;padding:0 3px!important;text-align:center;text-overflow:ellipsis;word-break:normal;border:none!important;border-right:solid 1px #ccc!important;border-left:solid 1px #ccc!important;border-radius:0!important}.mui-input-row .mui-numbox{float:right;margin:2px 8px}@font-face{font-family:Muiicons;font-weight:400;font-style:normal;src:url(../fonts/mui.ttf) format('truetype')}.mui-icon{font-family:Muiicons;font-size:24px;font-weight:400;font-style:normal;line-height:1;display:inline-block;text-decoration:none;-webkit-font-smoothing:antialiased}.mui-icon.mui-active{color:#007aff}.mui-icon.mui-right:before{float:right;padding-left:.2em}.mui-icon-contact:before{content:'\e100'}.mui-icon-person:before{content:'\e101'}.mui-icon-personadd:before{content:'\e102'}.mui-icon-contact-filled:before{content:'\e130'}.mui-icon-person-filled:before{content:'\e131'}.mui-icon-personadd-filled:before{content:'\e132'}.mui-icon-phone:before{content:'\e200'}.mui-icon-email:before{content:'\e201'}.mui-icon-chatbubble:before{content:'\e202'}.mui-icon-chatboxes:before{content:'\e203'}.mui-icon-phone-filled:before{content:'\e230'}.mui-icon-email-filled:before{content:'\e231'}.mui-icon-chatbubble-filled:before{content:'\e232'}.mui-icon-chatboxes-filled:before{content:'\e233'}.mui-icon-weibo:before{content:'\e260'}.mui-icon-weixin:before{content:'\e261'}.mui-icon-pengyouquan:before{content:'\e262'}.mui-icon-chat:before{content:'\e263'}.mui-icon-qq:before{content:'\e264'}.mui-icon-videocam:before{content:'\e300'}.mui-icon-camera:before{content:'\e301'}.mui-icon-mic:before{content:'\e302'}.mui-icon-location:before{content:'\e303'}.mui-icon-mic-filled:before,.mui-icon-speech:before{content:'\e332'}.mui-icon-location-filled:before{content:'\e333'}.mui-icon-micoff:before{content:'\e360'}.mui-icon-image:before{content:'\e363'}.mui-icon-map:before{content:'\e364'}.mui-icon-compose:before{content:'\e400'}.mui-icon-trash:before{content:'\e401'}.mui-icon-upload:before{content:'\e402'}.mui-icon-download:before{content:'\e403'}.mui-icon-close:before{content:'\e404'}.mui-icon-redo:before{content:'\e405'}.mui-icon-undo:before{content:'\e406'}.mui-icon-refresh:before{content:'\e407'}.mui-icon-star:before{content:'\e408'}.mui-icon-plus:before{content:'\e409'}.mui-icon-minus:before{content:'\e410'}.mui-icon-checkbox:before,.mui-icon-circle:before{content:'\e411'}.mui-icon-clear:before,.mui-icon-close-filled:before{content:'\e434'}.mui-icon-refresh-filled:before{content:'\e437'}.mui-icon-star-filled:before{content:'\e438'}.mui-icon-plus-filled:before{content:'\e439'}.mui-icon-minus-filled:before{content:'\e440'}.mui-icon-circle-filled:before{content:'\e441'}.mui-icon-checkbox-filled:before{content:'\e442'}.mui-icon-closeempty:before{content:'\e460'}.mui-icon-refreshempty:before{content:'\e461'}.mui-icon-reload:before{content:'\e462'}.mui-icon-starhalf:before{content:'\e463'}.mui-icon-spinner:before{content:'\e464'}.mui-icon-spinner-cycle:before{content:'\e465'}.mui-icon-search:before{content:'\e466'}.mui-icon-plusempty:before{content:'\e468'}.mui-icon-forward:before{content:'\e470'}.mui-icon-back:before,.mui-icon-left-nav:before{content:'\e471'}.mui-icon-checkmarkempty:before{content:'\e472'}.mui-icon-home:before{content:'\e500'}.mui-icon-navigate:before{content:'\e501'}.mui-icon-gear:before{content:'\e502'}.mui-icon-paperplane:before{content:'\e503'}.mui-icon-info:before{content:'\e504'}.mui-icon-help:before{content:'\e505'}.mui-icon-locked:before{content:'\e506'}.mui-icon-more:before{content:'\e507'}.mui-icon-flag:before{content:'\e508'}.mui-icon-home-filled:before{content:'\e530'}.mui-icon-gear-filled:before{content:'\e532'}.mui-icon-info-filled:before{content:'\e534'}.mui-icon-help-filled:before{content:'\e535'}.mui-icon-more-filled:before{content:'\e537'}.mui-icon-settings:before{content:'\e560'}.mui-icon-list:before{content:'\e562'}.mui-icon-bars:before{content:'\e563'}.mui-icon-loop:before{content:'\e565'}.mui-icon-paperclip:before{content:'\e567'}.mui-icon-eye:before{content:'\e568'}.mui-icon-arrowup:before{content:'\e580'}.mui-icon-arrowdown:before{content:'\e581'}.mui-icon-arrowleft:before{content:'\e582'}.mui-icon-arrowright:before{content:'\e583'}.mui-icon-arrowthinup:before{content:'\e584'}.mui-icon-arrowthindown:before{content:'\e585'}.mui-icon-arrowthinleft:before{content:'\e586'}.mui-icon-arrowthinright:before{content:'\e587'}.mui-icon-pulldown:before{content:'\e588'}.mui-fullscreen{position:absolute;top:0;right:0;bottom:0;left:0}.mui-fullscreen.mui-slider .mui-slider-group{height:100%}.mui-fullscreen .mui-segmented-control~.mui-slider-group{position:absolute;top:40px;bottom:0;width:100%;height:auto}.mui-fullscreen.mui-slider .mui-slider-item>a{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.mui-fullscreen .mui-off-canvas-wrap .mui-slider-item>a{top:auto;-webkit-transform:none;transform:none}.mui-bar-nav~.mui-content .mui-slider.mui-fullscreen{top:44px}.mui-bar-tab~.mui-content .mui-slider.mui-fullscreen .mui-segmented-control~.mui-slider-group{bottom:50px}.mui-android.mui-android-4-0 input:focus,.mui-android.mui-android-4-0 textarea:focus{-webkit-user-modify:inherit}.mui-android.mui-android-4-2 input,.mui-android.mui-android-4-2 textarea,.mui-android.mui-android-4-3 input,.mui-android.mui-android-4-3 textarea{-webkit-user-select:text}.mui-ios .mui-table-view-cell{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.mui-plus-visible,.mui-wechat-visible{display:none!important}.mui-plus-hidden,.mui-wechat-hidden{display:block!important}.mui-tab-item.mui-plus-hidden,.mui-tab-item.mui-wechat-hidden{display:table-cell!important}.mui-plus .mui-plus-visible,.mui-wechat .mui-wechat-visible{display:block!important}.mui-plus .mui-tab-item.mui-plus-visible,.mui-wechat .mui-tab-item.mui-wechat-visible{display:table-cell!important}.mui-plus .mui-plus-hidden,.mui-wechat .mui-wechat-hidden{display:none!important}.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-nav{height:64px;padding-top:20px}.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-nav~.mui-content{padding-top:64px}.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-header-secondary,.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-nav~.mui-content .mui-pull-top-pocket{top:64px}.mui-plus.mui-statusbar.mui-statusbar-offset .mui-bar-header-secondary~.mui-content{padding-top:94px}.mui-iframe-wrapper{position:absolute;right:0;left:0;-webkit-overflow-scrolling:touch}.mui-iframe-wrapper iframe{width:100%;height:100%;border:0} \ No newline at end of file diff --git a/fangija-zsyf/css/sm.css b/fangija-zsyf/css/sm.css new file mode 100644 index 0000000..6eb59a3 --- /dev/null +++ b/fangija-zsyf/css/sm.css @@ -0,0 +1,4684 @@ +/*! + * ===================================================== + * SUI Mobile - http://m.sui.taobao.org/ + * + * ===================================================== + */ + +/*.transition(@d) { + -webkit-transition-duration: @d; + transition-duration: @d; +} +.delay(@d) { + -webkit-transition-delay: @d; + transition-delay: @d; +} +.transform(@t) { + -webkit-transform: @t; + transform: @t; +} +.transform-origin(@to) { + -webkit-transform-origin: @to; + transform-origin: @to; +} +.translate3d(@x:0, @y:0, @z:0) { + -webkit-transform: translate3d(@x,@y,@z); + transform: translate3d(@x,@y,@z); +} +.animation(@a) { + -webkit-animation: @a; + animation: @a; +} +.border-box(){ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.box-shadow(@bs) { + -webkit-box-shadow: @bs; + box-shadow: @bs; +} +.animation-name(@name) { + -webkit-animation-name: @name; + -moz-animation-name: @name; + animation-name: @name; +} +.animation-duration(@duration) { + -webkit-animation-duration: @duration; + -moz-animation-duration: @duration; + animation-duration: @duration; +} +.animation-direction(@direction) { + -webkit-animation-direction: @direction; + -moz-animation-direction: @direction; + animation-direction: @direction; +} +*/ +html { + font-size: 20px; +} +@media only screen and (min-width: 400px) { + html { + font-size: 21.33333333px !important; + } +} +@media only screen and (min-width: 414px) { + html { + font-size: 22.08px !important; + } +} +@media only screen and (min-width: 480px) { + html { + font-size: 25.6px !important; + } +} +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} +body { + margin: 0; +} +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} +audio:not([controls]) { + display: none; + height: 0; +} +[hidden], +template { + display: none; +} +a { + background-color: transparent; +} +a:active, +a:hover { + outline: 0; +} +abbr[title] { + border-bottom: 1px dotted; +} +b, +strong { + font-weight: bold; +} +dfn { + font-style: italic; +} +h1 { + font-size: 2em; + margin: 0.67em 0; +} +mark { + background: #ff0; + color: #000; +} +small { + font-size: 80%; +} +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + top: -0.5em; +} +sub { + bottom: -0.25em; +} +img { + border: 0; +} +svg:not(:root) { + overflow: hidden; +} +figure { + margin: 1em 40px; +} +hr { + box-sizing: content-box; + height: 0; +} +pre { + overflow: auto; +} +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} +button, +input, +optgroup, +select, +textarea { + color: inherit; + font: inherit; + margin: 0; +} +button { + overflow: visible; +} +button, +select { + text-transform: none; +} +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} +button[disabled], +html input[disabled] { + cursor: default; +} +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} +input { + line-height: normal; +} +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; + padding: 0; +} +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +input[type="search"] { + -webkit-appearance: textfield; + box-sizing: content-box; +} +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} +legend { + border: 0; + padding: 0; +} +textarea { + overflow: auto; +} +optgroup { + font-weight: bold; +} +table { + border-collapse: collapse; + border-spacing: 0; +} +td, +th { + padding: 0; +} +* { + box-sizing: border-box; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + -webkit-touch-callout: none; +} +body { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + font-family: "Helvetica Neue", Helvetica, sans-serif; + font-size: 0.85rem; + line-height: 1.5; + color: #3d4145; + background: #eee; + overflow: hidden; +} +a, +input, +textarea, +select, +button { + outline: 0; +} +p { + margin: 1em 0; +} +a { + color: #0894ec; + text-decoration: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +a:active { + color: #0a8ddf; +} +.page { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: #eee; + z-index: 2000; +} +.content { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + overflow: auto; + -webkit-overflow-scrolling: touch; +} +.bar-nav ~ .content { + top: 2.2rem; +} +.bar-header-secondary ~ .content { + top: 4.4rem; +} +.bar-footer ~ .content { + bottom: 2.2rem; +} +.bar-footer-secondary ~ .content { + bottom: 4.4rem; +} +.bar-tab ~ .content { + bottom: 2.5rem; +} +.bar-footer-secondary-tab ~ .content { + bottom: 4.7rem; +} +.content-padded { + margin: 0.5rem; +} +.text-center { + text-align: center; +} +.pull-left { + float: left; +} +.pull-right { + float: right; +} +.clearfix:before, +.clearfix:after { + content: " "; + display: table; +} +.clearfix:after { + clear: both; +} +/* === Content Block === */ +.content-block { + margin: 1.75rem 0; + padding: 0 0.75rem; + color: #6d6d72; +} +.content-block-title { + position: relative; + overflow: hidden; + margin: 0; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 0.7rem; + text-transform: uppercase; + line-height: 1; + color: #6d6d72; + margin: 1.75rem 0.75rem 0.5rem; +} +.content-block-title + .list-block, +.content-block-title + .content-block, +.content-block-title + .card { + margin-top: 0.5rem; +} +.content-block-inner { + background: #fff; + padding: 0.5rem 0.75rem; + margin-left: -0.75rem; + width: 100%; + position: relative; + color: #3d4145; +} +.content-block-inner:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #c8c7cc; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .content-block-inner:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .content-block-inner:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.content-block-inner:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #c8c7cc; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .content-block-inner:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .content-block-inner:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.content-block.inset { + margin-left: 0.75rem; + margin-right: 0.75rem; + border-radius: 0.35rem; +} +.content-block.inset .content-block-inner { + border-radius: 0.35rem; +} +.content-block.inset .content-block-inner:before { + display: none; +} +.content-block.inset .content-block-inner:after { + display: none; +} +@media all and (min-width: 768px) { + .content-block.tablet-inset { + margin-left: 0.75rem; + margin-right: 0.75rem; + border-radius: 0.35rem; + } + .content-block.tablet-inset .content-block-inner { + border-radius: 0.35rem; + } + .content-block.tablet-inset .content-block-inner:before { + display: none; + } + .content-block.tablet-inset .content-block-inner:after { + display: none; + } +} +/* === Grid === */ +.row { + overflow: hidden; + margin-left: -4%; +} +.row > [class*="col-"], +.row > [class*="tablet-"] { + box-sizing: border-box; + float: left; +} +.row.no-gutter { + margin-left: 0; +} +.row .col-100 { + width: 96%; + margin-left: 4%; +} +.row.no-gutter .col-100 { + width: 100%; + margin: 0; +} +.row .col-95 { + width: 91%; + margin-left: 4%; +} +.row.no-gutter .col-95 { + width: 95%; + margin: 0; +} +.row .col-90 { + width: 86%; + margin-left: 4%; +} +.row.no-gutter .col-90 { + width: 90%; + margin: 0; +} +.row .col-85 { + width: 81%; + margin-left: 4%; +} +.row.no-gutter .col-85 { + width: 85%; + margin: 0; +} +.row .col-80 { + width: 76%; + margin-left: 4%; +} +.row.no-gutter .col-80 { + width: 80%; + margin: 0; +} +.row .col-75 { + width: 71.00000000000001%; + margin-left: 4%; +} +.row.no-gutter .col-75 { + width: 75%; + margin: 0; +} +.row .col-66 { + width: 62.66666666666666%; + margin-left: 4%; +} +.row.no-gutter .col-66 { + width: 66.66666666666666%; + margin: 0; +} +.row .col-60 { + width: 55.99999999999999%; + margin-left: 4%; +} +.row.no-gutter .col-60 { + width: 60%; + margin: 0; +} +.row .col-50 { + width: 46%; + margin-left: 4%; +} +.row.no-gutter .col-50 { + width: 50%; + margin: 0; +} +.row .col-40 { + width: 36%; + margin-left: 4%; +} +.row.no-gutter .col-40 { + width: 40%; + margin: 0; +} +.row .col-33 { + width: 29.333333333333332%; + margin-left: 4%; +} +.row.no-gutter .col-33 { + width: 33.333333333333336%; + margin: 0; +} +.row .col-25 { + width: 21%; + margin-left: 4%; +} +.row.no-gutter .col-25 { + width: 25%; + margin: 0; +} +.row .col-20 { + width: 16%; + margin-left: 4%; +} +.row.no-gutter .col-20 { + width: 20%; + margin: 0; +} +.row .col-15 { + width: 10.999999999999998%; + margin-left: 4%; +} +.row.no-gutter .col-15 { + width: 15%; + margin: 0; +} +.row .col-10 { + width: 6%; + margin-left: 4%; +} +.row.no-gutter .col-10 { + width: 10%; + margin: 0; +} +.row .col-5 { + width: 1%; + margin-left: 4%; +} +.row.no-gutter .col-5 { + width: 5%; + margin: 0; +} +@media all and (min-width: 768px) { + .row { + margin-left: -2%; + } + .row .col-100 { + width: 98%; + margin-left: 2%; + } + .row.no-gutter .col-100 { + width: 100%; + margin: 0; + } + .row .col-95 { + width: 93%; + margin-left: 2%; + } + .row.no-gutter .col-95 { + width: 95%; + margin: 0; + } + .row .col-90 { + width: 87.99999999999999%; + margin-left: 2%; + } + .row.no-gutter .col-90 { + width: 90%; + margin: 0; + } + .row .col-85 { + width: 82.99999999999999%; + margin-left: 2%; + } + .row.no-gutter .col-85 { + width: 85%; + margin: 0; + } + .row .col-80 { + width: 78%; + margin-left: 2%; + } + .row.no-gutter .col-80 { + width: 80%; + margin: 0; + } + .row .col-75 { + width: 73%; + margin-left: 2%; + } + .row.no-gutter .col-75 { + width: 75%; + margin: 0; + } + .row .col-66 { + width: 64.66666666666666%; + margin-left: 2%; + } + .row.no-gutter .col-66 { + width: 66.66666666666666%; + margin: 0; + } + .row .col-60 { + width: 58%; + margin-left: 2%; + } + .row.no-gutter .col-60 { + width: 60%; + margin: 0; + } + .row .col-50 { + width: 48%; + margin-left: 2%; + } + .row.no-gutter .col-50 { + width: 50%; + margin: 0; + } + .row .col-40 { + width: 38%; + margin-left: 2%; + } + .row.no-gutter .col-40 { + width: 40%; + margin: 0; + } + .row .col-33 { + width: 31.333333333333332%; + margin-left: 2%; + } + .row.no-gutter .col-33 { + width: 33.333333333333336%; + margin: 0; + } + .row .col-25 { + width: 23%; + margin-left: 2%; + } + .row.no-gutter .col-25 { + width: 25%; + margin: 0; + } + .row .col-20 { + width: 18%; + margin-left: 2%; + + } + .row.no-gutter .col-20 { + width: 20%; + margin: 0; + } + .row .col-15 { + width: 13%; + margin-left: 2%; + } + .row.no-gutter .col-15 { + width: 15%; + margin: 0; + } + .row .col-10 { + width: 8%; + margin-left: 2%; + } + .row.no-gutter .col-10 { + width: 10%; + margin: 0; + } + .row .col-5 { + width: 3%; + margin-left: 2%; + } + .row.no-gutter .col-5 { + width: 5%; + margin: 0; + } + .row .tablet-100 { + width: 98%; + margin-left: 2%; + } + .row.no-gutter .tablet-100 { + width: 100%; + margin: 0; + } + .row .tablet-95 { + width: 93%; + margin-left: 2%; + } + .row.no-gutter .tablet-95 { + width: 95%; + margin: 0; + } + .row .tablet-90 { + width: 87.99999999999999%; + margin-left: 2%; + } + .row.no-gutter .tablet-90 { + width: 90%; + margin: 0; + } + .row .tablet-85 { + width: 82.99999999999999%; + margin-left: 2%; + } + .row.no-gutter .tablet-85 { + width: 85%; + margin: 0; + } + .row .tablet-80 { + width: 78%; + margin-left: 2%; + } + .row.no-gutter .tablet-80 { + width: 80%; + margin: 0; + } + .row .tablet-75 { + width: 73%; + margin-left: 2%; + } + .row.no-gutter .tablet-75 { + width: 75%; + margin: 0; + } + .row .tablet-66 { + width: 64.66666666666666%; + margin-left: 2%; + } + .row.no-gutter .tablet-66 { + width: 66.66666666666666%; + margin: 0; + } + .row .tablet-60 { + width: 58%; + margin-left: 2%; + } + .row.no-gutter .tablet-60 { + width: 60%; + margin: 0; + } + .row .tablet-50 { + width: 48%; + margin-left: 2%; + } + .row.no-gutter .tablet-50 { + width: 50%; + margin: 0; + } + .row .tablet-40 { + width: 38%; + margin-left: 2%; + } + .row.no-gutter .tablet-40 { + width: 40%; + margin: 0; + } + .row .tablet-33 { + width: 31.333333333333332%; + margin-left: 2%; + } + .row.no-gutter .tablet-33 { + width: 33.333333333333336%; + margin: 0; + } + .row .tablet-25 { + width: 23%; + margin-left: 2%; + } + .row.no-gutter .tablet-25 { + width: 25%; + margin: 0; + } + .row .tablet-20 { + width: 18%; + margin-left: 2%; + } + .row.no-gutter .tablet-20 { + width: 20%; + margin: 0; + } + .row .tablet-15 { + width: 13%; + margin-left: 2%; + } + .row.no-gutter .tablet-15 { + width: 15%; + margin: 0; + } + .row .tablet-10 { + width: 8%; + margin-left: 2%; + } + .row.no-gutter .tablet-10 { + width: 10%; + margin: 0; + } + .row .tablet-5 { + width: 3%; + margin-left: 2%; + } + .row.no-gutter .tablet-5 { + width: 5%; + margin: 0; + } +} +.color-default { + color: #3d4145; +} +.color-gray { + color: #999; +} +.color-primary { + color: #0894ec; +} +.color-success { + color: #4cd964; +} +.color-danger { + color: #f6383a; +} +.color-warning { + color: #f60; +} +.text-center { + text-align: center; +} +.bar { + position: absolute; + right: 0; + left: 0; + z-index: 10; + height: 2.2rem; + padding-right: 0.5rem; + padding-left: 0.5rem; + background-color: #f7f7f8; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.bar:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .bar:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .bar:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.bar-header-secondary { + top: 2.2rem; +} +.bar-footer { + bottom: 0; +} +.bar-footer-secondary { + bottom: 2.2rem; +} +.bar-footer-secondary-tab { + bottom: 2.5rem; +} +.bar-footer:before, +.bar-footer-secondary:before, +.bar-footer-secondary-tab:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .bar-footer:before, + .bar-footer-secondary:before, + .bar-footer-secondary-tab:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .bar-footer:before, + .bar-footer-secondary:before, + .bar-footer-secondary-tab:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.bar-footer:after, +.bar-footer-secondary:after, +.bar-footer-secondary-tab:after { + display: none; +} +.bar-nav { + top: 0; +} +.title { + position: absolute; + display: block; + width: 100%; + padding: 0; + margin: 0 -0.5rem; + font-size: 0.85rem; + font-weight: 500; + line-height: 2.2rem; + color: #3d4145; + text-align: center; + white-space: nowrap; +} +.title a { + color: inherit; +} +.bar-tab { + bottom: 0; + width: 100%; + height: 2.5rem; + padding: 0; + table-layout: fixed; +} +.bar-tab:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .bar-tab:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .bar-tab:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.bar-tab:after { + display: none; +} +.bar-tab .tab-item { + position: relative; + display: table-cell; + width: 1%; + height: 2.5rem; + color: #929292; + text-align: center; + vertical-align: middle; +} +.bar-tab .tab-item.active, +.bar-tab .tab-item:active { + color: #0894ec; +} +.bar-tab .tab-item .badge { + position: absolute; + top: .1rem; + left: 50%; + z-index: 100; + height: .8rem; + min-width: .8rem; + padding: 0 .2rem; + font-size: .6rem; + line-height: .8rem; + color: white; + vertical-align: top; + background: red; + border-radius: .5rem; + margin-left: .1rem; +} +.bar-tab .tab-item .icon { + top: 0.05rem; + height: 1.2rem; + font-size: 1.2rem; + line-height: 1.2rem; + padding-top: 0; + padding-bottom: 0; +} +.bar-tab .tab-item .icon ~ .tab-label { + display: block; + font-size: 0.55rem; + position: relative; + top: 0.15rem; +} +.bar .button { + position: relative; + top: 0.35rem; + z-index: 20; + margin-top: 0; + font-weight: 400; +} +.bar .button.pull-right { + margin-left: 0.5rem; +} +.bar .button.pull-left { + margin-right: 0.5rem; +} +.bar .button-link { + top: 0; + padding: 0; + font-size: 0.8rem; + line-height: 2.2rem; + height: 2.2rem; + color: #0894ec; + border: 0; +} +.bar .button-link:active, +.bar .button-link.active { + color: #0675bb; +} +.bar .button-block { + top: 0.35rem; + font-size: 0.8rem; + width: 100%; +} +.bar .button-nav.pull-left { + margin-left: -0.25rem; +} +.bar .button-nav.pull-left .icon-left-nav { + margin-right: -0.15rem; +} +.bar .button-nav.pull-right { + margin-right: -0.25rem; +} +.bar .button-nav.pull-right .icon-right-nav { + margin-left: -0.15rem; +} +.bar .icon { + position: relative; + z-index: 20; + padding: .5rem .1rem; + font-size: 1rem; + line-height: 1.2rem; +} +.bar .button .icon { + padding: 0; +} +.bar .title .icon { + padding: 0; +} +.bar .title .icon.icon-caret { + top: 0.2rem; + margin-left: -0.25rem; +} +.bar-footer .icon { + font-size: 1.2rem; + line-height: 1.2rem; +} +.bar input[type="search"] { + height: 1.45rem; + margin: 0.3rem 0; +} +.badge { + display: inline-block; + padding: 0.1rem 0.45rem 0.15rem; + font-size: 0.6rem; + line-height: 1; + color: #3d4145; + background-color: rgba(0, 0, 0, 0.15); + border-radius: 5rem; +} +.badge.badge-inverted { + padding: 0 0.25rem 0 0; + background-color: transparent; +} +/* === Lists === */ +.list-block { + margin: 1.75rem 0; + font-size: 0.85rem; + /* + .swipeout { + overflow: hidden; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + } + .swipeout.deleting { + transition-duration: 300ms; + .swipeout-content { + transform: translateX(-100%); + } + } + .swipeout.transitioning { + .swipeout-content, .swipeout-actions-right a, .swipeout-actions-left a, .swipeout-overswipe { + -webkit-transition: 300ms; + transition: 300ms; + } + } + .swipeout-content { + position: relative; + z-index: 10; + } + .swipeout-overswipe { + -webkit-transition: 200ms left; + transition: 200ms left; + } + .swipeout-actions-left, .swipeout-actions-right { + position: absolute; + top: 0; + height: 100%; + .flexbox(); + a { + padding: 0 1.5rem; + color:#fff; + background: #c7c7cc; + .flexbox(); + .align-items(center); + position: relative; + left: 0; + &:after { + content:''; + position: absolute; + top: 0; + width: 600%; + height: 100%; + background: inherit; + z-index: -1; + } + } + a.swipeout-delete { + background: @color-danger; + } + } + .swipeout-actions-right { + right: 0%; + transform: translateX(100%); + a:after { + left: 100%; + margin-left: -1px; + } + } + .swipeout-actions-left { + left: 0%; + transform: translateX(-100%); + a:after { + right: 100%; + margin-right: -1px; + } + } + */ + /* + .sortable-handler { + position: absolute; + right: 0; + top: 0; + bottom: 1px; + z-index: 10; + background-repeat: no-repeat; + background-size: 0.9rem 0.6rem; + background-image: url("@{imgBaseUrl}/i-sortable-handler.png"); + background-position: center; + width: 1.75rem; + opacity: 0; + visibility: hidden; + right: 0; + } + &.sortable { + .item-inner { + transition-duration: 300ms; + } + } + &.sortable-opened { + .sortable-handler { + visibility: visible; + opacity: 1; + } + .item-inner, .item-link .item-inner { + padding-right: 1.5rem; + } + .item-link .item-inner, .item-link .item-title-row { + background-image: none; + } + } + &.sortable-sorting { + li { + transition-duration: 300ms; + } + } + li.sorting { + z-index: 50; + background: rgba(255,255,255,0.8); + box-shadow: 0 0.1rem 0.4rem rgba(0,0,0,0.6); + transition-duration: 0ms; + .item-inner { + .hairline-remove(bottom); + } + } + */ +} +.list-block ul { + background: #fff; + list-style: none; + padding: 0; + margin: 0; + position: relative; +} +.list-block ul:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .list-block ul:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .list-block ul:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.list-block ul:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .list-block ul:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .list-block ul:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.list-block ul ul { + padding-left: 2.25rem; +} +.list-block ul ul:before { + display: none; +} +.list-block ul ul:after { + display: none; +} +.list-block .align-top, +.list-block .align-top .item-content, +.list-block .align-top .item-inner { + -webkit-box-align: start; + -webkit-align-items: flex-start; + align-items: flex-start; +} +.list-block.inset { + margin-left: 0.75rem; + margin-right: 0.75rem; + border-radius: 0.35rem; +} +.list-block.inset .content-block-title { + margin-left: 0; + margin-right: 0; +} +.list-block.inset ul { + border-radius: 0.35rem; +} +.list-block.inset ul:before { + display: none; +} +.list-block.inset ul:after { + display: none; +} +.list-block.inset li:first-child > a { + border-radius: 0.35rem 0.35rem 0 0; +} +.list-block.inset li:last-child > a { + border-radius: 0 0 0.35rem 0.35rem; +} +.list-block.inset li:first-child:last-child > a { + border-radius: 0.35rem; +} +@media all and (min-width: 768px) { + .list-block.tablet-inset { + margin-left: 0.75rem; + margin-right: 0.75rem; + border-radius: 0.35rem; + } + .list-block.tablet-inset .content-block-title { + margin-left: 0; + margin-right: 0; + } + .list-block.tablet-inset ul { + border-radius: 0.35rem; + } + .list-block.tablet-inset ul:before { + display: none; + } + .list-block.tablet-inset ul:after { + display: none; + } + .list-block.tablet-inset li:first-child > a { + border-radius: 0.35rem 0.35rem 0 0; + } + .list-block.tablet-inset li:last-child > a { + border-radius: 0 0 0.35rem 0.35rem; + } + .list-block.tablet-inset li:first-child:last-child > a { + border-radius: 0.35rem; + } + .list-block.tablet-inset .content-block-title { + margin-left: 0; + margin-right: 0; + } + .list-block.tablet-inset ul { + border-radius: 0.35rem; + } + .list-block.tablet-inset ul:before { + display: none; + } + .list-block.tablet-inset ul:after { + display: none; + } + .list-block.tablet-inset li:first-child > a { + border-radius: 0.35rem 0.35rem 0 0; + } + .list-block.tablet-inset li:last-child > a { + border-radius: 0 0 0.35rem 0.35rem; + } + .list-block.tablet-inset li:first-child:last-child > a { + border-radius: 0.35rem; + } +} +.list-block li { + box-sizing: border-box; + position: relative; +} +.list-block .item-media { + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-flex-shrink: 0; + -ms-flex: 0 0 auto; + -webkit-flex-shrink: 0; + flex-shrink: 0; + -webkit-box-lines: single; + -moz-box-lines: single; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; + box-sizing: border-box; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; + padding-top: 0.35rem; + padding-bottom: 0.4rem; +} +.list-block .item-media i + i { + margin-left: 0.25rem; +} +.list-block .item-media i + img { + margin-left: 0.25rem; +} +.list-block .item-media + .item-inner { + margin-left: 0.75rem; +} +.list-block .item-inner { + padding-right: 0.75rem; + position: relative; + width: 100%; + padding-top: 0.4rem; + padding-bottom: 0.35rem; + min-height: 2.2rem; + overflow: hidden; + box-sizing: border-box; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.list-block .item-inner:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .list-block .item-inner:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .list-block .item-inner:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.list-block .item-title { + -webkit-flex-shrink: 1; + -ms-flex: 0 1 auto; + -webkit-flex-shrink: 1; + flex-shrink: 1; + white-space: nowrap; + position: relative; + overflow: hidden; + text-overflow: ellipsis; + max-width: 100%; +} +.list-block .item-title.label { + width: 35%; + -webkit-flex-shrink: 0; + -ms-flex: 0 0 auto; + -webkit-flex-shrink: 0; + flex-shrink: 0; + margin: 4px 0; +} +.list-block .item-input { + width: 100%; + margin-top: -0.4rem; + margin-bottom: -0.35rem; + -webkit-box-flex: 1; + -ms-flex: 1; + -webkit-flex-shrink: 1; + -ms-flex: 0 1 auto; + -webkit-flex-shrink: 1; + flex-shrink: 1; +} +.list-block .item-after { + white-space: nowrap; + color: #5f646e; + -webkit-flex-shrink: 0; + -ms-flex: 0 0 auto; + -webkit-flex-shrink: 0; + flex-shrink: 0; + margin-left: 0.25rem; + display: -webkit-box; + display: -webkit-flex; + display: flex; + max-height: 1.4rem; +} +.list-block .smart-select .item-after { + max-width: 70%; + overflow: hidden; + text-overflow: ellipsis; + position: relative; +} +.list-block .item-link { + -webkit-transition-duration: 300ms; + transition-duration: 300ms; + display: block; + color: inherit; +} +.list-block .item-link .item-inner { + padding-right: 1.5rem; + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NUM0QzFDNzMyREM0MTFFNUJDNTI4OTMzMEE0RjBENzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NUM0QzFDNzQyREM0MTFFNUJDNTI4OTMzMEE0RjBENzMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1QzRDMUM3MTJEQzQxMUU1QkM1Mjg5MzMwQTRGMEQ3MyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1QzRDMUM3MjJEQzQxMUU1QkM1Mjg5MzMwQTRGMEQ3MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pjs2Bb4AAAItSURBVHjazJhbK0RRGIb3DIOU/AG5kUTOgxmHceFGKf6BO+Vf+E8KKYcYg3FuMpNIDhFJXJAcp/GtvKumrzVs+zBrvfU2u689q6d3rb33+lYgl8tZvymZ3JOX7eQp8gT50fJA0Wj4z3tKbY5VR14hV5ObyWLkZ6sICtq4p4V8CjihevIWucoUQJFUmtUayTvkShMAL5DiGqs3IMlK3YBSgwrIZkBWmAAoIRMKyG2/IIMO/hMjbygepCS53ARAoQHyOqu1YbrLTADMAXJbASmSDOkGlOpTQHaQN72CdAuYBeQuq4cBWaIbUEJGC0Am3UIGPVoqMsk9Vu/CwxTQDSj0iSQPWD2C6Q7oBhT6AmRKAZkwAVDoowBkn+LdqQVQ6A2QhwrIuAmAEjKi2KrF/jPdfgIKveI7Pcfq/eSMCYBSD4pakymA0+RxVrsn15oAOEMeY7Vbcif5ys4ApT7CzZJHWO2G3I1fSyfgPHmY1a7x6bvT/ZpZUMBdOoHzI8El8pCiK+wq8CQXNcFlBdw51tyD00G9SnAVHV++zgDn6hzHiwTjCrgTTKvrQya3Ca5jA5CvY3IP+UlnTxJEb8zhjpDck1cL20mCAcBFWD2D2ovOvjiERojDpTGtnsL9N8EQegt+LJrC5vRN59lMORp0DrePNH2BswvYivXVzuoHSO7dz+2QHcAa6+eMOl87WHOffm8m7QCK7foog+tFi2mZACg3npPkRUxrtkitgvUtwAA5A3LWdzPizwAAAABJRU5ErkJggg==); + background-size: 0.7rem; + background-repeat: no-repeat; + background-position: 97% center; + background-position: -webkit-calc(100% - .5rem) center; + background-position: calc(100% - .5rem) center; +} +html:not(.watch-active-state) .list-block .item-link:active, +.list-block .item-link.active-state { + -webkit-transition-duration: 0ms; + transition-duration: 0ms; + background-color: #d9d9d9; +} +html:not(.watch-active-state) .list-block .item-link:active .item-inner:after, +.list-block .item-link.active-state .item-inner:after { + background-color: transparent; +} +.list-block .item-link.list-button { + padding: 0 0.75rem; + text-align: center; + color: #0894ec; + display: block; + line-height: 2.15rem; +} +.list-block .item-link.list-button:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .list-block .item-link.list-button:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .list-block .item-link.list-button:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.list-block .item-content { + box-sizing: border-box; + padding-left: 0.75rem; + min-height: 2.2rem; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.list-block .list-block-label { + margin: 0.5rem 0 1.75rem; + padding: 0 0.75rem; + font-size: 0.7rem; + color: #5f646e; +} +.list-block .item-subtitle { + font-size: 0.75rem; + position: relative; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + text-overflow: ellipsis; +} +.list-block .item-text { + font-size: 0.75rem; + color: #5f646e; + line-height: 1.05rem; + position: relative; + overflow: hidden; + height: 2.1rem; + text-overflow: ellipsis; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + display: -webkit-box; +} +.list-block.media-list .item-title { + font-weight: 500; +} +.list-block.media-list .item-inner { + display: block; + padding-top: 0.5rem; + padding-bottom: 0.45rem; + -webkit-align-self: stretch; + align-self: stretch; +} +.list-block.media-list .item-media { + padding-top: 0.45rem; + padding-bottom: 0.5rem; +} +.list-block.media-list .item-media img { + display: block; +} +.list-block.media-list .item-title-row { + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; +} +.list-block .list-group ul:after, +.list-block .list-group ul:before { + z-index: 11; +} +.list-block .list-group + .list-group ul:before { + display: none; +} +.list-block .item-divider, +.list-block .list-group-title { + background: #F7F7F7; + margin-top: -1px; + padding: 0.2rem 0.75rem; + white-space: nowrap; + position: relative; + max-width: 100%; + text-overflow: ellipsis; + overflow: hidden; + color: #e7e7e7; +} +.list-block .item-divider:before, +.list-block .list-group-title:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .list-block .item-divider:before, + .list-block .list-group-title:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .list-block .item-divider:before, + .list-block .list-group-title:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.list-block .list-group-title { + position: relative; + position: -webkit-sticky; + position: -moz-sticky; + position: sticky; + top: 0; + z-index: 20; + margin-top: 0; +} +.list-block .list-group-title:before { + display: none; +} +.list-block li:last-child .list-button:after { + display: none; +} +.list-block li:last-child .item-inner:after, +.list-block li:last-child li:last-child .item-inner:after { + display: none; +} +.list-block li li:last-child .item-inner:after, +.list-block li:last-child li .item-inner:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #e7e7e7; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .list-block li li:last-child .item-inner:after, + .list-block li:last-child li .item-inner:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .list-block li li:last-child .item-inner:after, + .list-block li:last-child li .item-inner:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +/* === Forms === */ +.list-block input[type="text"], +.list-block input[type="password"], +.list-block input[type="search"], +.list-block input[type="email"], +.list-block input[type="tel"], +.list-block input[type="url"], +.list-block input[type="date"], +.list-block input[type="datetime-local"], +.list-block input[type="time"], +.list-block input[type="number"], +.list-block select, +.list-block textarea { + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + box-sizing: border-box; + border: none; + background: none; + border-radius: 0 0 0 0; + box-shadow: none; + display: block; + padding: 0 0 0 0.25rem; + margin: 0; + width: 100%; + height: 2.15rem; + color: #3d4145; + font-size: 0.85rem; + font-family: inherit; +} +.list-block input[type="date"], +.list-block input[type="datetime-local"] { + line-height: 2.2rem; +} +.list-block select { + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; +} +.list-block .label { + vertical-align: top; +} +.list-block textarea { + height: 5rem; + resize: none; + line-height: 1.4; + padding-top: 0.4rem; + padding-bottom: 0.35rem; +} +.label-switch { + display: inline-block; + vertical-align: middle; + width: 2.6rem; + border-radius: 0.8rem; + box-sizing: border-box; + height: 1.6rem; + position: relative; + cursor: pointer; + -webkit-align-self: center; + align-self: center; +} +.label-switch .checkbox { + width: 2.6rem; + border-radius: 0.8rem; + box-sizing: border-box; + height: 1.6rem; + background: #e5e5e5; + z-index: 0; + margin: 0; + padding: 0; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + border: none; + cursor: pointer; + position: relative; + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +.label-switch .checkbox:before { + content: ' '; + position: absolute; + left: 0.1rem; + top: 0.1rem; + width: 2.4rem; + border-radius: 0.8rem; + box-sizing: border-box; + height: 1.4rem; + background: #fff; + z-index: 1; + -webkit-transition-duration: 300ms; + transition-duration: 300ms; + -webkit-transform: scale(1); + transform: scale(1); +} +.label-switch .checkbox:after { + content: ' '; + height: 1.4rem; + width: 1.4rem; + border-radius: 1.4rem; + background: #fff; + position: absolute; + z-index: 2; + top: 0.1rem; + left: 0.1rem; + box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.4); + -webkit-transform: translateX(0px); + transform: translateX(0px); + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +.label-switch input[type="checkbox"] { + display: none; +} +.label-switch input[type="checkbox"]:checked + .checkbox { + background: #4cd964; +} +.label-switch input[type="checkbox"]:checked + .checkbox:before { + -webkit-transform: scale(0); + transform: scale(0); +} +.label-switch input[type="checkbox"]:checked + .checkbox:after { + -webkit-transform: translateX(1.1rem); + transform: translateX(1.1rem); +} +html.android .label-switch input[type="checkbox"] + .checkbox { + -webkit-transition-duration: 0; + transition-duration: 0; +} +html.android .label-switch input[type="checkbox"] + .checkbox:after, +html.android .label-switch input[type="checkbox"] + .checkbox:before { + -webkit-transition-duration: 0; + transition-duration: 0; +} +.range-slider { + width: 100%; + position: relative; + overflow: hidden; + padding-left: 0.15rem; + padding-right: 0.15rem; + margin-left: -1px; + -webkit-align-self: center; + align-self: center; +} +.range-slider input[type="range"] { + position: relative; + height: 1.4rem; + width: 100%; + margin: 0.2rem 0 0.25rem 0; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + background: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0, #b7b8b7), color-stop(100%, #b7b8b7)); + background: -webkit-linear-gradient(left, #b7b8b7 0, #b7b8b7 100%); + background: linear-gradient(to right, #b7b8b7 0, #b7b8b7 100%); + background-position: center; + background-size: 100% 0.1rem; + background-repeat: no-repeat; + outline: 0; +} +.range-slider input[type="range"]:after { + height: 0.1rem; + background: #fff; + content: ' '; + width: 0.25rem; + top: 50%; + margin-top: -1px; + left: -0.25rem; + z-index: 1; + position: absolute; +} +.range-slider input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + border: none; + height: 1.4rem; + width: 1.4rem; + position: relative; + background: none; +} +.range-slider input[type="range"]::-webkit-slider-thumb:after { + height: 1.4rem; + width: 1.4rem; + border-radius: 1.4rem; + background: #fff; + z-index: 10; + box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.4); + position: absolute; + left: 0; + top: 0; + content: ' '; +} +.range-slider input[type="range"]::-webkit-slider-thumb:before { + position: absolute; + top: 50%; + right: 100%; + width: 100rem; + height: 0.1rem; + margin-top: -1px; + z-index: 1; + background: #0894ec; + content: ' '; +} +label.label-checkbox { + cursor: pointer; +} +label.label-checkbox i.icon-form-checkbox { + width: 1.1rem; + height: 1.1rem; + position: relative; + border-radius: 1.1rem; + border: 1px solid #c7c7cc; + box-sizing: border-box; +} +label.label-checkbox i.icon-form-checkbox:after { + content: ' '; + position: absolute; + left: 50%; + margin-left: -0.3rem; + top: 50%; + margin-top: -0.2rem; + width: 0.6rem; + height: 0.45rem; +} +label.label-checkbox input[type="checkbox"], +label.label-checkbox input[type="radio"] { + display: none; +} +label.label-checkbox input[type="checkbox"]:checked + .item-media i.icon-form-checkbox, +label.label-checkbox input[type="radio"]:checked + .item-media i.icon-form-checkbox { + border: none; + background-color: #0894ec; +} +label.label-checkbox input[type="checkbox"]:checked + .item-media i.icon-form-checkbox:after, +label.label-checkbox input[type="radio"]:checked + .item-media i.icon-form-checkbox:after { + background: no-repeat center; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20x%3D'0px'%20y%3D'0px'%20viewBox%3D'0%200%2012%209'%20xml%3Aspace%3D'preserve'%3E%3Cpolygon%20fill%3D'%23ffffff'%20points%3D'12%2C0.7%2011.3%2C0%203.9%2C7.4%200.7%2C4.2%200%2C4.9%203.9%2C8.8%203.9%2C8.8%203.9%2C8.8%20'%2F%3E%3C%2Fsvg%3E"); + background-size: 0.6rem 0.45rem; +} +label.label-checkbox { + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +html:not(.watch-active-state) label.label-checkbox:active, +label.label-checkbox.active-state { + -webkit-transition: 0ms; + transition: 0ms; + background-color: #d9d9d9; +} +html:not(.watch-active-state) label.label-checkbox:active .item-inner:after, +label.label-checkbox.active-state .item-inner:after { + background-color: transparent; +} +.smart-select select { + display: none; +} +/* === Search Bar === */ +.searchbar { + padding: 8px 0; + overflow: hidden; + height: 2.2rem; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.searchbar .searchbar-cancel { + margin-right: -3rem; + width: 2.2rem; + float: right; + height: 1.4rem; + line-height: 1.4rem; + text-align: center; + -webkit-transition: all .3s; + transition: all .3s; + opacity: 0; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.searchbar .search-input { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + margin-right: 0; + -webkit-transition: all .3s; + transition: all .3s; +} +.searchbar .search-input input { + margin: 0; + height: 1.4rem; +} +.searchbar.searchbar-active .searchbar-cancel { + margin-right: 0; + opacity: 1; +} +.searchbar.searchbar-active .searchbar-cancel + .search-input { + margin-right: 2.5rem; +} +.search-input { + position: relative; +} +.search-input input { + box-sizing: border-box; + width: 100%; + height: 1.4rem; + display: block; + border: none; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border-radius: 0.25rem; + font-family: inherit; + color: #3d4145; + font-size: 0.7rem; + font-weight: normal; + padding: 0 0.5rem; + background-color: #fff; + border: 1px solid #b4b4b4; +} +.search-input input::-webkit-input-placeholder { + color: #ccc; + opacity: 1; +} +.search-input .icon { + position: absolute; + font-size: 0.9rem; + color: #b4b4b4; + top: 50%; + left: 0.3rem; + -webkit-transform: translate3D(0, -50%, 0); + transform: translate3D(0, -50%, 0); +} +.search-input label + input { + padding-left: 1.4rem; +} +.bar .searchbar { + margin: 0 -0.5rem; + padding: 0.4rem 0.5rem; + background: rgba(0, 0, 0, 0.1); +} +.bar .searchbar .search-input input { + border: 0; +} +.bar .searchbar .searchbar-cancel { + color: #5f646e; +} +.button { + border: 1px solid #0894ec; + color: #0894ec; + text-decoration: none; + text-align: center; + display: block; + border-radius: 0.25rem; + line-height: 1.25rem; + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + background: none; + padding: 0 0.5rem; + margin: 0; + height: 1.35rem; + white-space: nowrap; + position: relative; + text-overflow: ellipsis; + font-size: 0.7rem; + font-family: inherit; + cursor: pointer; +} +input[type="submit"].button, +input[type="button"].button { + width: 100%; +} +.button:active { + color: #0a8ddf; + border-color: #0a8ddf; +} +.button.button-round { + border-radius: 1.25rem; +} +.button.active, +.button.active:active { + color: #0a8ddf; + border-color: #0a8ddf; +} +.button.button-big { + font-size: 0.85rem; + height: 2.4rem; + line-height: 2.3rem; +} +.button.button-fill { + color: #fff; + background: #0894ec; + border: none; + line-height: 1.35rem; +} +.button.button-fill.active, +.button.button-fill:active { + background: #0a8ddf; +} +.button.button-fill.button-big { + line-height: 2.4rem; +} +.button .button-link { + padding-top: 0.3rem; + padding-bottom: 0.3rem; + color: #0894ec; + background-color: transparent; + border: 0; +} +.button i.icon:first-child { + margin-right: 0.5rem; +} +.button i.icon:last-child { + margin-left: 0.5rem; +} +.button i.icon:first-child:last-child { + margin-left: 0; + margin-right: 0; +} +.button-light { + border-color: #ccc; + color: #ccc; + color: #5f646e; +} +.button-light:active { + border-color: #0a8ddf; + color: #0a8ddf; +} +.button-light.button-fill { + color: white; + background-color: #ccc; +} +.button-light.button-fill:active { + background-color: #0a8ddf; +} +.button-dark { + border-color: #6e727b; + color: #6e727b; + color: #5f646e; +} +.button-dark:active { + border-color: #0a8ddf; + color: #0a8ddf; +} +.button-dark.button-fill { + color: white; + background-color: #6e727b; +} +.button-dark.button-fill:active { + background-color: #0a8ddf; +} +.button-success { + border-color: #4cd964; + color: #4cd964; +} +.button-success:active { + border-color: #2ac845; + color: #2ac845; +} +.button-success.button-fill { + color: white; + background-color: #4cd964; +} +.button-success.button-fill:active { + background-color: #2ac845; +} +.button-danger { + border-color: #f6383a; + color: #f6383a; +} +.button-danger:active { + border-color: #f00b0d; + color: #f00b0d; +} +.button-danger.button-fill { + color: white; + background-color: #f6383a; +} +.button-danger.button-fill:active { + background-color: #f00b0d; +} +.button-warning { + border-color: #f60; + color: #f60; +} +.button-warning:active { + border-color: #cc5200; + color: #cc5200; +} +.button-warning.button-fill { + color: white; + background-color: #f60; +} +.button-warning.button-fill:active { + background-color: #cc5200; +} +.button.disabled, +.button.button-primary.disabled, +.button.button-success.disabled, +.button.button-danger.disabled, +.button.button-warning.disabled { + border-color: #c8c9cb; + color: #c8c9cb; + cursor: not-allowed; +} +.button.disabled:active, +.button.button-primary.disabled:active, +.button.button-success.disabled:active, +.button.button-danger.disabled:active, +.button.button-warning.disabled:active { + border-color: #c8c9cb; + color: #c8c9cb; +} +.button.disabled.button-fill, +.button.button-primary.disabled.button-fill, +.button.button-success.disabled.button-fill, +.button.button-danger.disabled.button-fill, +.button.button-warning.disabled.button-fill { + color: white; + background-color: #c8c9cb; +} +.button.disabled.button-fill:active, +.button.button-primary.disabled.button-fill:active, +.button.button-success.disabled.button-fill:active, +.button.button-danger.disabled.button-fill:active, +.button.button-warning.disabled.button-fill:active { + background-color: #c8c9cb; +} +.buttons-row, +.buttons-tab { + -webkit-align-self: center; + align-self: center; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-lines: single; + -moz-box-lines: single; + -webkit-flex-wrap: nowrap; + flex-wrap: nowrap; +} +.buttons-row .button { + border-radius: 0 0 0 0; + margin-left: -1px; + width: 100%; + -webkit-box-flex: 1; + -ms-flex: 1; + border-color: #0894ec; + color: #0894ec; +} +.buttons-row .button.active { + background-color: #0894ec; + color: white; + z-index: 90; +} +.buttons-row .button:first-child { + border-radius: 0.25rem 0 0 0.25rem; + margin-left: 0; + border-left-width: 1px; + border-left-style: solid; +} +.buttons-row .button:last-child { + border-radius: 0 0.25rem 0.25rem 0; +} +.buttons-row .button.button-round:first-child { + border-radius: 1.35rem 0 0 1.35rem; +} +.buttons-row .button.button-round:last-child { + border-radius: 0 1.35rem 1.35rem 0; +} +.buttons-tab { + background: white; + position: relative; +} +.buttons-tab:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #d0d0d0; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .buttons-tab:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .buttons-tab:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.buttons-tab .button { + color: #5f646e; + font-size: 0.8rem; + width: 100%; + height: 2rem; + line-height: 2rem; + -webkit-box-flex: 1; + -ms-flex: 1; + border: 0; + border-bottom: 2px solid transparent; + border-radius: 0; +} +.buttons-tab .button.active { + color: #0894ec; + border-color: #0894ec; + z-index: 100; +} +.buttons-fixed { + position: fixed; + z-index: 99; + width: 100%; +} +/* === Tabs === */ +.tabs .tab { + display: none; +} +.tabs .tab.active { + display: block; +} +.tabs-animated-wrap { + position: relative; + width: 100%; + overflow: hidden; + height: 100%; +} +.tabs-animated-wrap > .tabs { + display: -webkit-box; + display: -webkit-flex; + display: flex; + height: 100%; + -webkit-transition: 300ms; + transition: 300ms; +} +.tabs-animated-wrap > .tabs > .tab { + width: 100%; + display: block; + -webkit-flex-shrink: 0; + -ms-flex: 0 0 auto; + -webkit-flex-shrink: 0; + flex-shrink: 0; +} +/* === Pages === */ +.page, +.page-group { + box-sizing: border-box; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background: #efeff4; + display: none; + overflow: hidden; +} +.page.page-current, +.page-group.page-current, +.page.page-visible, +.page-group.page-visible, +.page.page-from-center-to-left, +.page-group.page-from-center-to-left, +.page.page-from-center-to-right, +.page-group.page-from-center-to-right, +.page.page-from-right-to-center, +.page-group.page-from-right-to-center, +.page.page-from-left-to-center, +.page-group.page-from-left-to-center { + display: block; +} +.page.page-current, +.page-group.page-current { + overflow: hidden; +} +.page-group { + display: block; +} +.page-transitioning, +.page-transitioning .swipeback-page-shadow { + -webkit-transition: 400ms; + transition: 400ms; +} +.page-from-right-to-center { + -webkit-animation: pageFromRightToCenter 400ms forwards; + animation: pageFromRightToCenter 400ms forwards; + z-index: 2002; +} +.page-from-center-to-right { + -webkit-animation: pageFromCenterToRight 400ms forwards; + animation: pageFromCenterToRight 400ms forwards; + z-index: 2002; +} +@-webkit-keyframes pageFromRightToCenter { + from { + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + opacity: .9; + } + to { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + opacity: 1; + } +} +@keyframes pageFromRightToCenter { + from { + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + opacity: .9; + } + to { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + opacity: 1; + } +} +@-webkit-keyframes pageFromCenterToRight { + from { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + opacity: 1; + } + to { + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + opacity: .9; + } +} +@keyframes pageFromCenterToRight { + from { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + opacity: 1; + } + to { + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); + opacity: .9; + } +} +.page-from-center-to-left { + -webkit-animation: pageFromCenterToLeft 400ms forwards; + animation: pageFromCenterToLeft 400ms forwards; +} +.page-from-left-to-center { + -webkit-animation: pageFromLeftToCenter 400ms forwards; + animation: pageFromLeftToCenter 400ms forwards; +} +@-webkit-keyframes pageFromCenterToLeft { + from { + opacity: 1; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } + to { + opacity: 0.5; + -webkit-transform: translate3d(-20%, 0, 0); + transform: translate3d(-20%, 0, 0); + } +} +@keyframes pageFromCenterToLeft { + from { + opacity: 1; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } + to { + opacity: 0.5; + -webkit-transform: translate3d(-20%, 0, 0); + transform: translate3d(-20%, 0, 0); + } +} +@-webkit-keyframes pageFromLeftToCenter { + from { + opacity: .5; + -webkit-transform: translate3d(-20%, 0, 0); + transform: translate3d(-20%, 0, 0); + } + to { + opacity: 1; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } +} +@keyframes pageFromLeftToCenter { + from { + opacity: .5; + -webkit-transform: translate3d(-20%, 0, 0); + transform: translate3d(-20%, 0, 0); + } + to { + opacity: 1; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } +} +.content-inner { + box-sizing: border-box; + border-top: 1px solid transparent; + margin-top: -1px; + padding-bottom: 0.5rem; +} +.javascript-scroll { + overflow: hidden; +} +/* === Pull To Refresh === */ +.pull-to-refresh-layer { + position: relative; + left: 0; + top: 0; + width: 100%; + height: 2.2rem; +} +.pull-to-refresh-layer .preloader { + position: absolute; + left: 50%; + top: 50%; + margin-left: -0.5rem; + margin-top: -0.5rem; + visibility: hidden; +} +.pull-to-refresh-layer .pull-to-refresh-arrow { + width: 0.65rem; + height: 1rem; + position: absolute; + left: 50%; + top: 50%; + margin-left: -0.15rem; + margin-top: -0.5rem; + background: no-repeat center; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2026%2040'%3E%3Cpolygon%20points%3D'9%2C22%209%2C0%2017%2C0%2017%2C22%2026%2C22%2013.5%2C40%200%2C22'%20fill%3D'%238c8c8c'%2F%3E%3C%2Fsvg%3E"); + background-size: 0.65rem 1rem; + z-index: 10; + -webkit-transform: rotate(0deg) translate3d(0, 0, 0); + transform: rotate(0deg) translate3d(0, 0, 0); + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +.pull-to-refresh-content { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.pull-to-refresh-content.transitioning, +.pull-to-refresh-content.refreshing { + -webkit-transition: -webkit-transform 400ms; + transition: transform 400ms; +} +.pull-to-refresh-content:not(.refreshing) .pull-to-refresh-layer .preloader { + -webkit-animation: none; + animation: none; +} +.pull-to-refresh-content.refreshing .pull-to-refresh-arrow { + visibility: hidden; + -webkit-transition-duration: 0ms; + transition-duration: 0ms; +} +.pull-to-refresh-content.refreshing .preloader { + visibility: visible; +} +.pull-to-refresh-content.pull-up .pull-to-refresh-arrow { + -webkit-transform: rotate(180deg) translate3d(0, 0, 0); + transform: rotate(180deg) translate3d(0, 0, 0); +} +.pull-to-refresh-content { + top: -2.2rem; +} +.pull-to-refresh-content.refreshing { + -webkit-transform: translate3d(0, 2.2rem, 0); + transform: translate3d(0, 2.2rem, 0); +} +.bar-nav ~ .pull-to-refresh-content, +.bar-footer ~ .pull-to-refresh-content, +.bar-tab ~ .pull-to-refresh-content { + top: 0; +} +.bar-nav ~ .pull-to-refresh-content.refreshing, +.bar-footer ~ .pull-to-refresh-content.refreshing, +.bar-tab ~ .pull-to-refresh-content.refreshing { + -webkit-transform: translate3d(0, 2.2rem, 0); + transform: translate3d(0, 2.2rem, 0); +} +.bar-header-secondary ~ .pull-to-refresh-content, +.bar-footer-secondary ~ .pull-to-refresh-content { + top: 2.2rem; +} +.infinite-scroll-preloader { + margin: 0.5rem; + text-align: center; +} +.infinite-scroll-preloader .preloader { + width: 1.5rem; + height: 1.5rem; +} +.infinite-scroll-top .infinite-scroll-preloader { + position: absolute; + width: 100%; + top: 0; + margin: 0; +} +/* === Modals === */ +.modal-overlay, +.preloader-indicator-overlay, +.popup-overlay { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.4); + z-index: 10600; + visibility: hidden; + opacity: 0; + -webkit-transition-duration: 400ms; + transition-duration: 400ms; +} +.modal-overlay.modal-overlay-visible, +.preloader-indicator-overlay.modal-overlay-visible, +.popup-overlay.modal-overlay-visible { + visibility: visible; + opacity: 1; +} +.popup-overlay { + z-index: 10200; +} +.modal { + width: 13.5rem; + position: absolute; + z-index: 11000; + left: 50%; + margin-left: -6.75rem; + margin-top: 0; + top: 50%; + text-align: center; + border-radius: 0.35rem; + opacity: 0; + -webkit-transform: translate3d(0, 0, 0) scale(1.185); + transform: translate3d(0, 0, 0) scale(1.185); + -webkit-transition-property: -webkit-transform, opacity; + transition-property: transform, opacity; + color: #3d4145; + display: none; +} +.modal.modal-in { + opacity: 1; + -webkit-transition-duration: 400ms; + transition-duration: 400ms; + -webkit-transform: translate3d(0, 0, 0) scale(1); + transform: translate3d(0, 0, 0) scale(1); +} +.modal.modal-out { + opacity: 0; + z-index: 10999; + -webkit-transition-duration: 400ms; + transition-duration: 400ms; + -webkit-transform: translate3d(0, 0, 0) scale(0.815); + transform: translate3d(0, 0, 0) scale(0.815); +} +.modal-inner { + padding: 0.75rem; + border-radius: 0.35rem 0.35rem 0 0; + position: relative; + background: #e8e8e8; +} +.modal-inner:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #b5b5b5; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .modal-inner:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .modal-inner:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.modal-title { + font-weight: 500; + font-size: 0.9rem; + text-align: center; +} +.modal-title + .modal-text { + margin-top: 0.25rem; +} +.modal-buttons { + height: 2.2rem; + overflow: hidden; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + justify-content: center; +} +.modal-buttons.modal-buttons-vertical { + display: block; + height: auto; +} +.modal-button { + width: 100%; + padding: 0 0.25rem; + height: 2.2rem; + font-size: 0.85rem; + line-height: 2.2rem; + text-align: center; + color: #0894ec; + background: #e8e8e8; + display: block; + position: relative; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + cursor: pointer; + box-sizing: border-box; + -webkit-box-flex: 1; + -ms-flex: 1; +} +.modal-button:after { + content: ''; + position: absolute; + right: 0; + top: 0; + left: auto; + bottom: auto; + width: 1px; + height: 100%; + background-color: #b5b5b5; + display: block; + z-index: 15; + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .modal-button:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .modal-button:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.modal-button:first-child { + border-radius: 0 0 0 0.35rem; +} +.modal-button:last-child { + border-radius: 0 0 0.35rem 0; +} +.modal-button:last-child:after { + display: none; +} +.modal-button:first-child:last-child { + border-radius: 0 0 0.35rem 0.35rem; +} +.modal-button.modal-button-bold { + font-weight: 500; +} +html:not(.watch-active-state) .modal-button:active, +.modal-button.active-state { + background: #d4d4d4; +} +.modal-buttons-vertical .modal-button { + border-radius: 0; +} +.modal-buttons-vertical .modal-button:after { + display: none; +} +.modal-buttons-vertical .modal-button:before { + display: none; +} +.modal-buttons-vertical .modal-button:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #b5b5b5; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} + +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .modal-buttons-vertical .modal-button:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .modal-buttons-vertical .modal-button:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.modal-buttons-vertical .modal-button:last-child { + border-radius: 0 0 0.35rem 0.35rem; +} +.modal-buttons-vertical .modal-button:last-child:after { + display: none; +} +.modal-no-buttons .modal-inner { + border-radius: 0.35rem; +} +.modal-no-buttons .modal-inner:after { + display: none; +} +.modal-no-buttons .modal-buttons { + display: none; +} +.actions-modal { + position: absolute; + left: 0; + bottom: 0; + z-index: 11000; + width: 100%; + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); +} +.actions-modal.modal-in { + -webkit-transition-duration: 300ms; + transition-duration: 300ms; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.actions-modal.modal-out { + z-index: 10999; + -webkit-transition-duration: 300ms; + transition-duration: 300ms; + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); +} +.actions-modal-group { + margin: 0.4rem; +} +.actions-modal-button, +.actions-modal-label { + width: 100%; + text-align: center; + font-weight: normal; + margin: 0; + background: rgba(243, 243, 243, 0.95); + box-sizing: border-box; + display: block; + position: relative; +} +.actions-modal-button:after, +.actions-modal-label:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #d2d2d6; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .actions-modal-button:after, + .actions-modal-label:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .actions-modal-button:after, + .actions-modal-label:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.actions-modal-button a, +.actions-modal-label a { + text-decoration: none; + color: inherit; +} +.actions-modal-button b, +.actions-modal-label b { + font-weight: 500; +} +.actions-modal-button.actions-modal-button-bold, +.actions-modal-label.actions-modal-button-bold { + font-weight: 500; +} +.actions-modal-button.actions-modal-button-danger, +.actions-modal-label.actions-modal-button-danger { + color: #f6383a; +} +.actions-modal-button.color-danger, +.actions-modal-label.color-danger { + color: #f6383a; +} +.actions-modal-button.bg-danger, +.actions-modal-label.bg-danger { + background: #f6383a; + color: white; +} +.actions-modal-button.bg-danger:active, +.actions-modal-label.bg-danger:active { + background: #f00b0d; +} +.actions-modal-button:first-child, +.actions-modal-label:first-child { + border-radius: 0.2rem 0.2rem 0 0; +} +.actions-modal-button:last-child, +.actions-modal-label:last-child { + border-radius: 0 0 0.2rem 0.2rem; +} +.actions-modal-button:last-child:after, +.actions-modal-label:last-child:after { + display: none; +} +.actions-modal-button:first-child:last-child, +.actions-modal-label:first-child:last-child { + border-radius: 0.2rem; +} +.actions-modal-button.disabled, +.actions-modal-label.disabled { + opacity: 0.95; + color: #8e8e93; +} +.actions-modal-button { + cursor: pointer; + line-height: 2.15rem; + font-size: 1rem; + color: #0894ec; +} +.actions-modal-button:active, +.actions-modal-button.active-state { + background: #dcdcdc; +} +.actions-modal-label { + font-size: 0.7rem; + line-height: 1.3; + min-height: 2.2rem; + padding: 0.4rem 0.5rem; + color: #5f646e; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + justify-content: center; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +input.modal-text-input { + box-sizing: border-box; + height: 1.5rem; + background: #fff; + margin: 0; + margin-top: 0.75rem; + padding: 0 0.25rem; + border: 1px solid #a0a0a0; + border-radius: 0.25rem; + width: 100%; + font-size: 0.7rem; + font-family: inherit; + display: block; + box-shadow: 0 0 0 rgba(0, 0, 0, 0); + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; +} +input.modal-text-input + input.modal-text-input { + margin-top: 0.25rem; +} +input.modal-text-input.modal-text-input-double { + border-radius: 0.25rem 0.25rem 0 0; +} +input.modal-text-input.modal-text-input-double + input.modal-text-input { + margin-top: 0; + border-top: 0; + border-radius: 0 0 0.25rem 0.25rem; +} +.popup, +.login-screen { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 10400; + background: #fff; + box-sizing: border-box; + display: none; + overflow: auto; + -webkit-overflow-scrolling: touch; + -webkit-transition-property: -webkit-transform; + transition-property: transform; + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); +} +.popup.modal-in, +.login-screen.modal-in, +.popup.modal-out, +.login-screen.modal-out { + -webkit-transition-duration: 400ms; + transition-duration: 400ms; +} +.popup.modal-in, +.login-screen.modal-in { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.popup.modal-out, +.login-screen.modal-out { + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); +} +.login-screen.modal-in, +.login-screen.modal-out { + display: block; +} +html.with-statusbar-overlay .popup { + height: -webkit-calc(100% - 1rem); + height: calc(100% - 1rem); + top: 1rem; +} +html.with-statusbar-overlay .popup-overlay { + z-index: 9800; +} +@media all and (max-width: 629px), (max-height: 629px) { + html.with-statusbar-overlay .popup { + height: -webkit-calc(100% - 1rem); + height: calc(100% - 1rem); + top: 1rem; + } + html.with-statusbar-overlay .popup-overlay { + z-index: 9800; + } +} +html.with-statusbar-overlay .login-screen, +html.with-statusbar-overlay .popup.tablet-fullscreen { + height: -webkit-calc(100% - 1rem); + height: calc(100% - 1rem); + top: 1rem; +} +.modal .preloader { + width: 1.7rem; + height: 1.7rem; +} +.preloader-indicator-overlay { + visibility: visible; + opacity: 0; + background: none; +} +.preloader-indicator-modal { + position: absolute; + left: 50%; + top: 50%; + padding: 0.4rem; + margin-left: -1.25rem; + margin-top: -1.25rem; + background: rgba(0, 0, 0, 0.8); + z-index: 11000; + border-radius: 0.25rem; +} +.preloader-indicator-modal .preloader { + display: block; + width: 1.7rem; + height: 1.7rem; +} +.picker-modal { + position: fixed; + left: 0; + bottom: 0; + width: 100%; + height: 13rem; + z-index: 11500; + display: none; + -webkit-transition-property: -webkit-transform; + transition-property: transform; + background: #cfd5da; + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); +} +.picker-modal.modal-in, +.picker-modal.modal-out { + -webkit-transition-duration: 400ms; + transition-duration: 400ms; +} +.picker-modal.modal-in { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.picker-modal.modal-out { + -webkit-transform: translate3d(0, 100%, 0); + transform: translate3d(0, 100%, 0); +} +.picker-modal .picker-modal-inner { + height: 100%; + position: relative; +} +.picker-modal .toolbar { + position: relative; + width: 100%; +} +.picker-modal .toolbar:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #999; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-modal .toolbar:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-modal .toolbar:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-modal .toolbar + .picker-modal-inner { + height: -webkit-calc(100% - 2.2rem); + height: calc(100% - 2.2rem); +} +.picker-modal.picker-modal-inline { + display: block; + position: relative; + background: none; + z-index: inherit; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.picker-modal.picker-modal-inline .toolbar:before { + display: none; +} +.picker-modal.picker-modal-inline .toolbar:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #999; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-modal.picker-modal-inline .toolbar:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-modal.picker-modal-inline .toolbar:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.toast { + background: rgba(0, 0, 0, 0.8); + border-radius: 1rem; + color: white; + padding: 0 .8rem; + height: 2rem; + line-height: 2rem; + font-size: 0.8rem; + width: auto; +} +/* === Preloader === */ +.preloader { + display: inline-block; + width: 1rem; + height: 1rem; + -webkit-transform-origin: 50%; + transform-origin: 50%; + -webkit-animation: preloader-spin 1s steps(12, end) infinite; + animation: preloader-spin 1s steps(12, end) infinite; +} +.preloader:after { + display: block; + content: ""; + width: 100%; + height: 100%; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + background-position: 50%; + background-size: 100%; + background-repeat: no-repeat; +} +.preloader-white:after { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); +} +@-webkit-keyframes preloader-spin { + 100% { + -webkit-transform: rotate(360deg); + } +} +@keyframes preloader-spin { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +/* === Cards === */ +.cards-list ul, +.card .list-block ul { + background: none; +} +.cards-list > ul:before, +.card .list-block > ul:before { + display: none; +} +.cards-list > ul:after, +.card .list-block > ul:after { + display: none; +} +.card { + background: #fff; + box-shadow: 0 0.05rem 0.1rem rgba(0, 0, 0, 0.3); + margin: 0.5rem; + position: relative; + border-radius: 0.1rem; + font-size: 0.7rem; +} +.card .list-block, +.card .content-block { + margin: 0; +} +.row:not(.no-gutter) .col > .card { + margin-left: 0; + margin-right: 0; +} +.card-content { + position: relative; +} +.card-content-inner { + padding: 0.75rem; + position: relative; +} +.card-content-inner > p:first-child { + margin-top: 0; +} +.card-content-inner > p:last-child { + margin-bottom: 0; +} +.card-content-inner > .list-block, +.card-content-inner > .content-block { + margin: -0.75rem; +} +.card-header, +.card-footer { + min-height: 2.2rem; + position: relative; + padding: 0.5rem 0.75rem; + box-sizing: border-box; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.card-header[valign="top"], +.card-footer[valign="top"] { + -webkit-box-align: start; + -webkit-align-items: flex-start; + align-items: flex-start; +} +.card-header[valign="bottom"], +.card-footer[valign="bottom"] { + -webkit-box-align: end; + -webkit-align-items: flex-end; + align-items: flex-end; +} +.card-header a.link, +.card-footer a.link { + line-height: 2.2rem; + height: 2.2rem; + text-decoration: none; + position: relative; + margin-top: -0.5rem; + margin-bottom: -0.5rem; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: start; + -webkit-justify-content: flex-start; + justify-content: flex-start; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +html:not(.watch-active-state) .card-header a.link:active, +html:not(.watch-active-state) .card-footer a.link:active, +.card-header a.link.active-state, +.card-footer a.link.active-state { + opacity: 0.3; + -webkit-transition-duration: 0ms; + transition-duration: 0ms; +} +.card-header a.link i + span, +.card-footer a.link i + span, +.card-header a.link i + i, +.card-footer a.link i + i, +.card-header a.link span + i, +.card-footer a.link span + i, +.card-header a.link span + span, +.card-footer a.link span + span { + margin-left: 0.35rem; +} +.card-header a.link i.icon, +.card-footer a.link i.icon { + display: block; +} +.card-header a.icon-only, +.card-footer a.icon-only { + min-width: 2.2rem; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + justify-content: center; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; + margin: 0; +} +.card-header { + border-radius: 0.1rem 0.1rem 0 0; + font-size: 0.85rem; +} +.card-header:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #e1e1e1; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .card-header:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .card-header:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.card-header .card-cover { + width: 100%; + display: block; +} +.card-header.no-border:after { + display: none; +} +.card-header.no-padding { + padding: 0; +} +.card-footer { + border-radius: 0 0 0.1rem 0.1rem; + color: #5f646e; +} +.card-footer:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #e1e1e1; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .card-footer:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .card-footer:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.card-footer.no-border:before { + display: none; +} +.facebook-card .card-header { + display: block; + padding: 0.5rem; +} +.facebook-card .facebook-avatar { + float: left; +} +.facebook-card .facebook-name { + margin-left: 2.2rem; + font-size: 0.7rem; + font-weight: 500; +} +.facebook-card .facebook-date { + margin-left: 2.2rem; + font-size: 0.65rem; + color: #5f646e; +} +.facebook-card .card-footer { + background: #fafafa; +} +.facebook-card .card-footer a { + color: #5f646e; + font-weight: 500; +} +.facebook-card .card-content img { + display: block; +} +.facebook-card .card-content-inner { + padding: 0.75rem 0.5rem; +} +/* === Panels === */ +.panel-overlay { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0); + opacity: 0; + z-index: 5999; + display: none; +} +.panel { + z-index: 1000; + display: none; + background: #111; + color: white; + box-sizing: border-box; + overflow: auto; + -webkit-overflow-scrolling: touch; + position: absolute; + width: 12rem; + top: 0; + height: 100%; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + -webkit-transition: -webkit-transform 400ms; + transition: transform 400ms; +} +.panel.panel-left.panel-cover { + z-index: 6000; + left: -12rem; +} +.panel.panel-left.panel-reveal { + left: 0; +} +.panel.panel-right.panel-cover { + z-index: 6000; + right: -12rem; +} +.panel.panel-right.panel-reveal { + right: 0; +} +body.with-panel-left-cover .page, +body.with-panel-right-cover .page { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + -webkit-transition: -webkit-transform 400ms; + transition: transform 400ms; +} +body.with-panel-left-cover .panel-overlay, +body.with-panel-right-cover .panel-overlay { + display: block; +} +body.with-panel-left-reveal .page, +body.with-panel-right-reveal .page { + -webkit-transition: 400ms; + transition: 400ms; + -webkit-transition-property: -webkit-transform; + transition-property: transform; +} +body.with-panel-left-reveal .panel-overlay, +body.with-panel-right-reveal .panel-overlay { + display: block; +} +body.with-panel-left-reveal .page { + -webkit-transform: translate3d(12rem, 0, 0); + transform: translate3d(12rem, 0, 0); +} +body.with-panel-left-reveal .panel-overlay { + margin-left: 12rem; +} +body.with-panel-left-cover .panel-left { + -webkit-transform: translate3d(12rem, 0, 0); + transform: translate3d(12rem, 0, 0); +} +body.with-panel-right-reveal .page { + -webkit-transform: translate3d(-12rem, 0, 0); + transform: translate3d(-12rem, 0, 0); +} +body.with-panel-right-reveal .panel-overlay { + margin-left: -12rem; +} +body.with-panel-right-cover .panel-right { + -webkit-transform: translate3d(-12rem, 0, 0); + transform: translate3d(-12rem, 0, 0); +} +body.panel-closing .page { + -webkit-transition: 400ms; + transition: 400ms; + -webkit-transition-property: -webkit-transform; + transition-property: transform; +} +/* === Calendar === */ +.picker-calendar { + background: #fff; + height: 300px; + width: 100%; + overflow: hidden; +} +@media (orientation: landscape) and (max-height: 415px) { + .picker-calendar:not(.picker-modal-inline) { + height: 220px; + } +} +.picker-calendar .picker-modal-inner { + overflow: hidden; +} +.picker-calendar-week-days { + height: 18px; + background: #f7f7f8; + display: -webkit-box; + display: -webkit-flex; + display: flex; + font-size: 11px; + box-sizing: border-box; + position: relative; +} +.picker-calendar-week-days:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #c4c4c4; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-calendar-week-days:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-calendar-week-days:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-calendar-week-days .picker-calendar-week-day { + -webkit-flex-shrink: 1; + -ms-flex: 0 1 auto; + -webkit-flex-shrink: 1; + flex-shrink: 1; + width: 14.28571429%; + width: -webkit-calc(100% / 7); + width: calc(100% / 7); + line-height: 17px; + text-align: center; +} +.picker-calendar-week-days + .picker-calendar-months { + height: -webkit-calc(100% - 18px); + height: calc(100% - 18px); +} +.picker-calendar-months { + width: 100%; + height: 100%; + overflow: hidden; + position: relative; +} +.picker-calendar-months-wrapper { + position: relative; + width: 100%; + height: 100%; + -webkit-transition: 300ms; + transition: 300ms; +} +.picker-calendar-month { + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-orient: vertical; + -webkit-flex-direction: column; + flex-direction: column; + width: 100%; + height: 100%; + position: absolute; + left: 0; + top: 0; +} +.picker-calendar-row { + height: 16.66666667%; + height: -webkit-calc(100% / 6); + height: calc(100% / 6); + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-flex-shrink: 1; + -ms-flex: 0 1 auto; + -webkit-flex-shrink: 1; + flex-shrink: 1; + width: 100%; + position: relative; +} +.picker-calendar-row:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #ccc; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-calendar-row:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-calendar-row:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-calendar-row:last-child:after { + display: none; +} +.picker-calendar-day { + -webkit-flex-shrink: 1; + -ms-flex: 0 1 auto; + -webkit-flex-shrink: 1; + flex-shrink: 1; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + justify-content: center; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; + box-sizing: border-box; + width: 14.28571429%; + width: -webkit-calc(100% / 7); + width: calc(100% / 7); + text-align: center; + color: #3d4145; + font-size: 15px; + cursor: pointer; +} +.picker-calendar-day.picker-calendar-day-prev, +.picker-calendar-day.picker-calendar-day-next { + color: #ccc; +} +.picker-calendar-day.picker-calendar-day-disabled { + color: #d4d4d4; + cursor: auto; +} +.picker-calendar-day.picker-calendar-day-today span { + background: #e3e3e3; +} +.picker-calendar-day.picker-calendar-day-selected span { + background: #0894ec; + color: #fff; +} +.picker-calendar-day span { + display: inline-block; + border-radius: 100%; + width: 30px; + height: 30px; + line-height: 30px; +} +.picker-calendar-month-picker, +.picker-calendar-year-picker { + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + width: 50%; + max-width: 200px; + -webkit-flex-shrink: 10; + -ms-flex: 0 10 auto; + -webkit-flex-shrink: 10; + flex-shrink: 10; +} +.picker-calendar-month-picker a.icon-only, +.picker-calendar-year-picker a.icon-only { + min-width: 36px; +} +.picker-calendar-month-picker span, +.picker-calendar-year-picker span { + -webkit-flex-shrink: 1; + -ms-flex: 0 1 auto; + -webkit-flex-shrink: 1; + flex-shrink: 1; + position: relative; + overflow: hidden; + text-overflow: ellipsis; +} +.picker-modal .toolbar-inner { + height: 2.2rem; + display: -webkit-box; + display: -webkit-flex; + display: flex; + text-align: center; +} +.picker-calendar-month-picker, +.picker-calendar-year-picker { + display: block; + line-height: 2.2rem; +} +.picker-calendar-month-picker a.icon-only, +.picker-calendar-year-picker a.icon-only { + float: left; + width: 25%; + height: 2.2rem; + line-height: 2rem; +} +.picker-calendar-month-picker .current-month-value, +.picker-calendar-year-picker .current-month-value, +.picker-calendar-month-picker .current-year-value, +.picker-calendar-year-picker .current-year-value { + float: left; + width: 50%; + height: 2.2rem; +} +/* === Columns Picker === */ +.picker-columns { + width: 100%; + height: 13rem; + z-index: 11500; +} +.picker-columns.picker-modal-inline { + height: 10rem; +} +@media (orientation: landscape) and (max-height: 415px) { + .picker-columns:not(.picker-modal-inline) { + height: 10rem; + } +} +.picker-items { + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + justify-content: center; + padding: 0; + text-align: right; + font-size: 1.2rem; + -webkit-mask-box-image: -webkit-linear-gradient(bottom, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent); + -webkit-mask-box-image: linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent); +} +.bar + .picker-items { + height: 10.8rem; +} +.picker-items-col { + overflow: hidden; + position: relative; + max-height: 100%; +} +.picker-items-col.picker-items-col-left { + text-align: left; +} +.picker-items-col.picker-items-col-center { + text-align: center; +} +.picker-items-col.picker-items-col-right { + text-align: right; +} +.picker-items-col.picker-items-col-divider { + color: #3d4145; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + align-items: center; +} +.picker-items-col-normal { + width: 100%; +} +.picker-items-col-wrapper { + -webkit-transition: 300ms; + transition: 300ms; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; +} +.picker-item { + height: 36px; + line-height: 36px; + padding: 0 10px; + white-space: nowrap; + position: relative; + overflow: hidden; + text-overflow: ellipsis; + color: #999; + left: 0; + top: 0; + width: 100%; + box-sizing: border-box; + -webkit-transition: 300ms; + transition: 300ms; +} +.picker-items-col-absolute .picker-item { + position: absolute; +} +.picker-item.picker-item-far { + pointer-events: none; +} +.picker-item.picker-selected { + color: #3d4145; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + -webkit-transform: rotateX(0deg); + transform: rotateX(0deg); +} +.picker-center-highlight { + height: 36px; + box-sizing: border-box; + position: absolute; + left: 0; + width: 100%; + top: 50%; + margin-top: -18px; + pointer-events: none; +} +.picker-center-highlight:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #a8abb0; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-center-highlight:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-center-highlight:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-center-highlight:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #a8abb0; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-center-highlight:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-center-highlight:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-3d .picker-items { + overflow: hidden; + -webkit-perspective: 1200px; + perspective: 1200px; +} +.picker-3d .picker-items-col, +.picker-3d .picker-items-col-wrapper, +.picker-3d .picker-item { + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; +} +.picker-3d .picker-items-col { + overflow: visible; +} +.picker-3d .picker-item { + -webkit-transform-origin: center center -110px; + transform-origin: center center -110px; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; +} +.picker-modal .bar { + position: relative; + top: 0; +} +.picker-modal .bar:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: auto; + right: auto; + height: 1px; + width: 100%; + background-color: #a8abb0; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-modal .bar:before { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-modal .bar:before { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-modal .bar:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #a8abb0; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + .picker-modal .bar:after { + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); + } +} +@media only screen and (-webkit-min-device-pixel-ratio: 3) { + .picker-modal .bar:after { + -webkit-transform: scaleY(0.33); + transform: scaleY(0.33); + } +} +.picker-modal .bar .title { + color: #5f646e; + font-weight: normal; +} +.city-picker .col-province { + width: 5rem; +} +.city-picker .col-city { + width: 6rem; +} +.city-picker .col-district { + width: 5rem; +} +@font-face { + font-family: "iconfont-sm"; + src: url('../fonts/font_1433401008_2229297.woff') format('woff'), /* chrome銆乫irefox */ url('../fonts/font_1433401008_2229297.ttf') format('truetype'), /* chrome銆乫irefox銆乷pera銆丼afari, Android, iOS 4.2+*/ url('../fonts/font_1433401008_2229297.svg#iconfont') format('svg'); + /* iOS 4.1- */ +} +.icon { + font-family: "iconfont-sm" !important; + font-style: normal; + display: inline-block; + vertical-align: middle; + background-size: 100% auto; + background-position: center; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; +} +.icon-app:before { + content: "\e605"; +} +.icon-browser:before { + content: "\e606"; +} +.icon-card:before { + content: "\e607"; +} +.icon-cart:before { + content: "\e600"; +} +.icon-code:before { + content: "\e609"; +} +.icon-computer:before { + content: "\e616"; +} +.icon-remove:before { + content: "\e60a"; +} +.icon-download:before { + content: "\e60b"; +} +.icon-edit:before { + content: "\e60c"; +} +.icon-emoji:before { + content: "\e615"; +} +.icon-star:before { + content: "\e60e"; +} +.icon-friends:before { + content: "\e601"; +} +.icon-gift:before { + content: "\e618"; +} +.icon-phone:before { + content: "\e60f"; +} +.icon-clock:before { + content: "\e619"; +} +.icon-home:before { + content: "\e602"; +} +.icon-menu:before { + content: "\e60d"; +} +.icon-message:before { + content: "\e617"; +} +.icon-me:before { + content: "\e603"; +} +.icon-picture:before { + content: "\e61a"; +} +.icon-share:before { + content: "\e61b"; +} +.icon-settings:before { + content: "\e604"; +} +.icon-refresh:before { + content: "\e61c"; +} +.icon-caret:before { + content: "\e610"; +} +.icon-down:before { + content: "\e611"; +} +.icon-up:before { + content: "\e612"; +} +.icon-right:before { + content: "\e613"; +} +.icon-left:before { + content: "\e614"; +} +.icon-check:before { + content: "\e608"; +} +.icon-search:before { + content: "\e61d"; +} +.icon-new:before { + content: "\e61e"; +} +.icon-next, +.icon-prev { + width: 0.75rem; + height: 0.75rem; +} +.icon-next { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M1%2C1.6l11.8%2C5.8L1%2C13.4V1.6%20M0%2C0v15l15-7.6L0%2C0L0%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); +} +.icon-prev { + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M14%2C1.6v11.8L2.2%2C7.6L14%2C1.6%20M15%2C0L0%2C7.6L15%2C15V0L15%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); +} +/* +.icon-plus { + width: 1.25rem; + height: 1.25rem; + font-size: 1.55rem; + line-height: 1rem; + text-align: center; + font-weight: 100; +} +*/ +/*========================== +Framework7 Layouts Themes +==========================*/ +/* === Dark layout === */ +.theme-dark { + background-color: #222426; +} +.theme-dark .bar, +.bar.theme-dark { + background-color: #131313; + color: #fff; +} +.theme-dark .bar:after, +.bar.theme-dark:after { + background-color: #333; +} +.theme-dark .title { + color: #fff; +} +.theme-dark .bar-nav, +.theme-dark .bar-tab, +.bar-nav.theme-dark, +.bar-tab.theme-dark { + background-color: #131313; + color: #fff; +} +.theme-dark .bar-nav:before, +.theme-dark .bar-tab:before, +.bar-nav.theme-dark:before, +.bar-tab.theme-dark:before { + background-color: #333; +} +.theme-dark .tab-item { + color: #fff; +} +.theme-dark .tab-item.active { + color: #0894ec; +} +.theme-dark .picker-calendar-week-days { + color: #fff; + background-color: #131313; +} +.theme-dark .picker-modal.picker-modal-inline .picker-center-highlight:before { + background-color: #333; +} +.theme-dark .picker-modal.picker-modal-inline .picker-center-highlight:after { + background-color: #333; +} +.theme-dark .picker-modal.picker-modal-inline .picker-item.picker-selected { + color: #fff; +} +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-week-days { + color: #fff; +} +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day { + color: #fff; +} +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-prev, +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-next { + color: #777; +} +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-disabled { + color: #555; +} +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-today span { + background: #444; +} +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-week-days:after, +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-row:after { + background-color: #333; +} +.theme-dark .picker-modal.picker-modal-inline .toolbar ~ .picker-modal-inner .picker-calendar-months:before, +.theme-dark .picker-modal.picker-modal-inline .picker-calendar-week-days ~ .picker-calendar-months:before { + background-color: #333; +} +.theme-dark .photo-browser .navbar, +.photo-browser.theme-dark .navbar, +.theme-dark .view[data-page="photo-browser-slides"] .navbar, +.view[data-page="photo-browser-slides"].theme-dark .navbar, +.theme-dark .photo-browser .toolbar, +.photo-browser.theme-dark .toolbar, +.theme-dark .view[data-page="photo-browser-slides"] .toolbar, +.view[data-page="photo-browser-slides"].theme-dark .toolbar { + background: rgba(19, 19, 19, 0.95); +} +.theme-dark .tabbar a:not(.active) { + color: #fff; +} +.theme-dark .page, +.theme-dark .login-screen-content, +.page.theme-dark, +.theme-dark .panel, +.panel.theme-dark, +.theme-dark .content { + background-color: #222426; + color: #ddd; +} +.theme-dark .content-block-title { + color: #fff; +} +.theme-dark .content-block, +.content-block.theme-dark { + color: #bbb; +} +.theme-dark .content-block-inner { + background: #1c1d1f; + color: #ddd; +} +.theme-dark .content-block-inner:before { + background-color: #393939; +} +.theme-dark .content-block-inner:after { + background-color: #393939; +} +.theme-dark .list-block ul, +.list-block.theme-dark ul { + background: #1c1d1f; +} +.theme-dark .list-block ul:before, +.list-block.theme-dark ul:before { + background-color: #393939; +} +.theme-dark .list-block ul:after, +.list-block.theme-dark ul:after { + background-color: #393939; +} +.theme-dark .list-block.inset ul, +.list-block.theme-dark.inset ul { + background: #1c1d1f; +} +.theme-dark .list-block.notifications > ul, +.list-block.theme-dark.notifications > ul { + background: none; +} +.theme-dark .list-block .item-title, +.list-block.theme-dark .item-title, +.theme-dark .list-block .item-subtitle, +.list-block.theme-dark .item-subtitle { + color: #bbb; +} +.theme-dark .card { + background: #1c1d1f; +} +.theme-dark .card-header:after { + background-color: #393939; +} +.theme-dark .card-footer { + color: #bbb; +} +.theme-dark .card-footer:before { + background-color: #393939; +} +.theme-dark li.sorting { + background-color: #29292f; +} +.theme-dark .swipeout-actions-left a, +.theme-dark .swipeout-actions-right a { + background-color: #444; +} +.theme-dark .item-inner:after, +.theme-dark .list-block ul ul li:last-child .item-inner:after { + background-color: #393939; +} +.theme-dark .item-after { + color: #bbb; +} +html:not(.watch-active-state) .theme-dark .item-link:active, +html:not(.watch-active-state) .theme-dark label.label-checkbox:active, +html:not(.watch-active-state) .theme-dark label.label-radio:active, +.theme-dark .item-link.active-state, +.theme-dark label.label-checkbox.active-state, +.theme-dark label.label-radio.active-state { + background-color: #29292f; +} +.theme-dark .item-link.list-button:after { + background-color: #393939; +} +.theme-dark .list-block-label { + color: #bbb; +} +.theme-dark .item-divider, +.theme-dark .list-group-title { + background: #1a1a1a; + color: #bbb; +} +.theme-dark .item-divider:before, +.theme-dark .list-group-title:before { + background-color: #393939; +} +.theme-dark .searchbar { + background: #333; +} +.theme-dark .searchbar:after { + background-color: #333; +} +.theme-dark .list-block input[type="text"], +.list-block.theme-dark input[type="text"], +.theme-dark .list-block input[type="password"], +.list-block.theme-dark input[type="password"], +.theme-dark .list-block input[type="email"], +.list-block.theme-dark input[type="email"], +.theme-dark .list-block input[type="tel"], +.list-block.theme-dark input[type="tel"], +.theme-dark .list-block input[type="url"], +.list-block.theme-dark input[type="url"], +.theme-dark .list-block input[type="date"], +.list-block.theme-dark input[type="date"], +.theme-dark .list-block input[type="datetime-local"], +.list-block.theme-dark input[type="datetime-local"], +.theme-dark .list-block input[type="number"], +.list-block.theme-dark input[type="number"], +.theme-dark .list-block select, +.list-block.theme-dark select, +.theme-dark .list-block textarea, +.list-block.theme-dark textarea { + color: #fff; +} +.theme-dark .label-switch .checkbox { + background-color: #393939; +} +.theme-dark .label-switch .checkbox:before { + background-color: #1c1d1f; +} +.theme-dark .range-slider input[type="range"]:after { + background: #1c1d1f; +} +.theme-dark .buttons-tab { + background: #131313; +} +.theme-dark .buttons-tab .tab-link:not(.active) { + color: #ddd; +} +/* === White layout === */ +.theme-white .navbar, +.navbar.theme-white, +.theme-white .subnavbar, +.subnavbar.theme-white { + background-color: #fff; + color: #000; +} +.theme-white .navbar:after, +.navbar.theme-white:after, +.theme-white .subnavbar:after, +.subnavbar.theme-white:after { + background-color: #ddd; +} +.theme-white .toolbar, +.toolbar.theme-white { + background-color: #fff; + color: #000; +} +.theme-white .toolbar:before, +.toolbar.theme-white:before { + background-color: #ddd; +} +.theme-white .picker-modal.picker-modal-inline .picker-center-highlight:before { + background-color: #ddd; +} +.theme-white .picker-modal.picker-modal-inline .picker-center-highlight:after { + background-color: #ddd; +} +.theme-white .picker-modal.picker-modal-inline .picker-calendar-week-days:after, +.theme-white .picker-modal.picker-modal-inline .picker-calendar-row:after { + background-color: #ddd; +} +.theme-white .picker-modal.picker-modal-inline .toolbar ~ .picker-modal-inner .picker-calendar-months:before, +.theme-white .picker-modal.picker-modal-inline .picker-calendar-week-days ~ .picker-calendar-months:before { + background-color: #ddd; +} +.theme-white .photo-browser .navbar, +.photo-browser.theme-white .navbar, +.theme-white .view[data-page="photo-browser-slides"] .navbar, +.view[data-page="photo-browser-slides"].theme-white .navbar, +.theme-white .photo-browser .toolbar, +.photo-browser.theme-white .toolbar, +.theme-white .view[data-page="photo-browser-slides"] .toolbar, +.view[data-page="photo-browser-slides"].theme-white .toolbar { + background: rgba(255, 255, 255, 0.95); +} +.theme-white .tabbar a:not(.active) { + color: #777; +} +.theme-white .page, +.theme-white .login-screen-content, +.page.theme-white, +.theme-white .panel, +.panel.theme-white { + background-color: #fff; + color: #000; +} +.theme-white .content-block-title { + color: #777; +} +.theme-white .content-block, +.content-block.theme-white { + color: #777; +} +.theme-white .content-block-inner { + background: #fafafa; + color: #000; +} +.theme-white .content-block-inner:after { + background-color: #ddd; +} +.theme-white .content-block-inner:before { + background-color: #ddd; +} +.theme-white .list-block ul, +.list-block.theme-white ul { + background: #fff; +} +.theme-white .list-block ul:after, +.list-block.theme-white ul:after { + background-color: #ddd; +} +.theme-white .list-block ul:before, +.list-block.theme-white ul:before { + background-color: #ddd; +} +.theme-white .list-block.inset ul, +.list-block.theme-white.inset ul { + background: #fafafa; +} +.theme-white .list-block.notifications > ul, +.list-block.theme-white.notifications > ul { + background: none; +} +.theme-white li.sorting { + background-color: #eee; +} +.theme-white .swipeout-actions-left a, +.theme-white .swipeout-actions-right a { + background-color: #c7c7cc; +} +.theme-white .item-inner, +.theme-white .list-block ul ul li:last-child .item-inner { + border-color: #ddd; +} +.theme-white .item-inner:after, +.theme-white .list-block ul ul li:last-child .item-inner:after { + background-color: #ddd; +} +.theme-white .item-after { + color: #8e8e93; +} +html:not(.watch-active-state) .theme-white .item-link:active, +html:not(.watch-active-state) .theme-white label.label-checkbox:active, +html:not(.watch-active-state) .theme-white label.label-radio:active, +.theme-white .item-link.active-state, +.theme-white label.label-checkbox.active-state, +.theme-white label.label-radio.active-state { + background-color: #eee; +} +.theme-white .item-link.list-button:after { + background-color: #ddd; +} +.theme-white .list-block-label { + color: #777; +} +.theme-white .item-divider, +.theme-white .list-group-title { + background: #f7f7f7; + color: #777; +} +.theme-white .item-divider:before, +.theme-white .list-group-title:before { + background-color: #ddd; +} +.theme-white .searchbar { + background: #c9c9ce; +} +.theme-white .searchbar:after { + background-color: #b4b4b4; +} +.theme-white .list-block input[type="text"], +.list-block.theme-white input[type="text"], +.theme-white .list-block input[type="password"], +.list-block.theme-white input[type="password"], +.theme-white .list-block input[type="email"], +.list-block.theme-white input[type="email"], +.theme-white .list-block input[type="tel"], +.list-block.theme-white input[type="tel"], +.theme-white .list-block input[type="url"], +.list-block.theme-white input[type="url"], +.theme-white .list-block input[type="date"], +.list-block.theme-white input[type="date"], +.theme-white .list-block input[type="datetime-local"], +.list-block.theme-white input[type="datetime-local"], +.theme-white .list-block input[type="number"], +.list-block.theme-white input[type="number"], +.theme-white .list-block select, +.list-block.theme-white select, +.theme-white .list-block textarea, +.list-block.theme-white textarea { + color: #777; +} +.theme-white .label-switch .checkbox { + background-color: #e5e5e5; +} +.theme-white .label-switch .checkbox:before { + background-color: #fff; +} +.theme-white .range-slider input[type="range"]:after { + background: #fff; +} \ No newline at end of file diff --git a/fangija-zsyf/css/sm.min.css b/fangija-zsyf/css/sm.min.css new file mode 100644 index 0000000..e3d612a --- /dev/null +++ b/fangija-zsyf/css/sm.min.css @@ -0,0 +1,6 @@ +/*! + * ===================================================== + * SUI Mobile - http://m.sui.taobao.org/ + * + * ===================================================== + */html{font-size:20px}@media only screen and (min-width:400px){html{font-size:21.33px!important}}@media only screen and (min-width:414px){html{font-size:22.08px!important}}@media only screen and (min-width:480px){html{font-size:25.6px!important}}/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}body{position:absolute;top:0;right:0;bottom:0;left:0;font-family:"Helvetica Neue",Helvetica,sans-serif;font-size:.85rem;line-height:1.5;color:#3d4145;background:#eee;overflow:hidden}a,button,input,select,textarea{outline:0}p{margin:1em 0}a{color:#0894ec;text-decoration:none;-webkit-tap-highlight-color:transparent}a:active{color:#0a8ddf}.page{position:absolute;top:0;right:0;bottom:0;left:0;background:#eee;z-index:2000}.content{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch}.bar-nav~.content{top:2.2rem}.bar-header-secondary~.content{top:4.4rem}.bar-footer~.content{bottom:2.2rem}.bar-footer-secondary~.content{bottom:4.4rem}.bar-tab~.content{bottom:2.5rem}.bar-footer-secondary-tab~.content{bottom:4.7rem}.content-padded{margin:.5rem}.text-center{text-align:center}.pull-left{float:left}.pull-right{float:right}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.content-block{margin:1.75rem 0;padding:0 .75rem;color:#6d6d72}.content-block-title{position:relative;overflow:hidden;margin:0;white-space:nowrap;text-overflow:ellipsis;font-size:.7rem;text-transform:uppercase;line-height:1;color:#6d6d72;margin:1.75rem .75rem .5rem}.content-block-title+.card,.content-block-title+.content-block,.content-block-title+.list-block{margin-top:.5rem}.content-block-inner{background:#fff;padding:.5rem .75rem;margin-left:-.75rem;width:100%;position:relative;color:#3d4145}.content-block-inner:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#c8c7cc;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.content-block-inner:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.content-block-inner:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.content-block-inner:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#c8c7cc;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.content-block-inner:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.content-block-inner:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.content-block.inset{margin-left:.75rem;margin-right:.75rem;border-radius:.35rem}.content-block.inset .content-block-inner{border-radius:.35rem}.content-block.inset .content-block-inner:before{display:none}.content-block.inset .content-block-inner:after{display:none}@media all and (min-width:768px){.content-block.tablet-inset{margin-left:.75rem;margin-right:.75rem;border-radius:.35rem}.content-block.tablet-inset .content-block-inner{border-radius:.35rem}.content-block.tablet-inset .content-block-inner:before{display:none}.content-block.tablet-inset .content-block-inner:after{display:none}}.row{overflow:hidden;margin-left:-4%}.row>[class*=col-],.row>[class*=tablet-]{box-sizing:border-box;float:left}.row.no-gutter{margin-left:0}.row .col-100{width:96%;margin-left:4%}.row.no-gutter .col-100{width:100%;margin:0}.row .col-95{width:91%;margin-left:4%}.row.no-gutter .col-95{width:95%;margin:0}.row .col-90{width:86%;margin-left:4%}.row.no-gutter .col-90{width:90%;margin:0}.row .col-85{width:81%;margin-left:4%}.row.no-gutter .col-85{width:85%;margin:0}.row .col-80{width:76%;margin-left:4%}.row.no-gutter .col-80{width:80%;margin:0}.row .col-75{width:71.00000000000001%;margin-left:4%}.row.no-gutter .col-75{width:75%;margin:0}.row .col-66{width:62.66666666666666%;margin-left:4%}.row.no-gutter .col-66{width:66.66666666666666%;margin:0}.row .col-60{width:55.99999999999999%;margin-left:4%}.row.no-gutter .col-60{width:60%;margin:0}.row .col-50{width:46%;margin-left:4%}.row.no-gutter .col-50{width:50%;margin:0}.row .col-40{width:36%;margin-left:4%}.row.no-gutter .col-40{width:40%;margin:0}.row .col-33{width:29.333333333333332%;margin-left:4%}.row.no-gutter .col-33{width:33.333333333333336%;margin:0}.row .col-25{width:21%;margin-left:4%}.row.no-gutter .col-25{width:25%;margin:0}.row .col-20{width:16%;margin-left:4%}.row.no-gutter .col-20{width:20%;margin:0}.row .col-15{width:10.999999999999998%;margin-left:4%}.row.no-gutter .col-15{width:15%;margin:0}.row .col-10{width:6%;margin-left:4%}.row.no-gutter .col-10{width:10%;margin:0}.row .col-5{width:1%;margin-left:4%}.row.no-gutter .col-5{width:5%;margin:0}@media all and (min-width:768px){.row{margin-left:-2%}.row .col-100{width:98%;margin-left:2%}.row.no-gutter .col-100{width:100%;margin:0}.row .col-95{width:93%;margin-left:2%}.row.no-gutter .col-95{width:95%;margin:0}.row .col-90{width:87.99999999999999%;margin-left:2%}.row.no-gutter .col-90{width:90%;margin:0}.row .col-85{width:82.99999999999999%;margin-left:2%}.row.no-gutter .col-85{width:85%;margin:0}.row .col-80{width:78%;margin-left:2%}.row.no-gutter .col-80{width:80%;margin:0}.row .col-75{width:73%;margin-left:2%}.row.no-gutter .col-75{width:75%;margin:0}.row .col-66{width:64.66666666666666%;margin-left:2%}.row.no-gutter .col-66{width:66.66666666666666%;margin:0}.row .col-60{width:58%;margin-left:2%}.row.no-gutter .col-60{width:60%;margin:0}.row .col-50{width:48%;margin-left:2%}.row.no-gutter .col-50{width:50%;margin:0}.row .col-40{width:38%;margin-left:2%}.row.no-gutter .col-40{width:40%;margin:0}.row .col-33{width:31.333333333333332%;margin-left:2%}.row.no-gutter .col-33{width:33.333333333333336%;margin:0}.row .col-25{width:23%;margin-left:2%}.row.no-gutter .col-25{width:25%;margin:0}.row .col-20{width:18%;margin-left:2%}.row.no-gutter .col-20{width:20%;margin:0}.row .col-15{width:13%;margin-left:2%}.row.no-gutter .col-15{width:15%;margin:0}.row .col-10{width:8%;margin-left:2%}.row.no-gutter .col-10{width:10%;margin:0}.row .col-5{width:3%;margin-left:2%}.row.no-gutter .col-5{width:5%;margin:0}.row .tablet-100{width:98%;margin-left:2%}.row.no-gutter .tablet-100{width:100%;margin:0}.row .tablet-95{width:93%;margin-left:2%}.row.no-gutter .tablet-95{width:95%;margin:0}.row .tablet-90{width:87.99999999999999%;margin-left:2%}.row.no-gutter .tablet-90{width:90%;margin:0}.row .tablet-85{width:82.99999999999999%;margin-left:2%}.row.no-gutter .tablet-85{width:85%;margin:0}.row .tablet-80{width:78%;margin-left:2%}.row.no-gutter .tablet-80{width:80%;margin:0}.row .tablet-75{width:73%;margin-left:2%}.row.no-gutter .tablet-75{width:75%;margin:0}.row .tablet-66{width:64.66666666666666%;margin-left:2%}.row.no-gutter .tablet-66{width:66.66666666666666%;margin:0}.row .tablet-60{width:58%;margin-left:2%}.row.no-gutter .tablet-60{width:60%;margin:0}.row .tablet-50{width:48%;margin-left:2%}.row.no-gutter .tablet-50{width:50%;margin:0}.row .tablet-40{width:38%;margin-left:2%}.row.no-gutter .tablet-40{width:40%;margin:0}.row .tablet-33{width:31.333333333333332%;margin-left:2%}.row.no-gutter .tablet-33{width:33.333333333333336%;margin:0}.row .tablet-25{width:23%;margin-left:2%}.row.no-gutter .tablet-25{width:25%;margin:0}.row .tablet-20{width:18%;margin-left:2%}.row.no-gutter .tablet-20{width:20%;margin:0}.row .tablet-15{width:13%;margin-left:2%}.row.no-gutter .tablet-15{width:15%;margin:0}.row .tablet-10{width:8%;margin-left:2%}.row.no-gutter .tablet-10{width:10%;margin:0}.row .tablet-5{width:3%;margin-left:2%}.row.no-gutter .tablet-5{width:5%;margin:0}}.color-default{color:#3d4145}.color-gray{color:#999}.color-primary{color:#0894ec}.color-success{color:#4cd964}.color-danger{color:#f6383a}.color-warning{color:#f60}.text-center{text-align:center}.bar{position:absolute;right:0;left:0;z-index:10;height:2.2rem;padding-right:.5rem;padding-left:.5rem;background-color:#f7f7f8;-webkit-backface-visibility:hidden;backface-visibility:hidden}.bar:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.bar:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.bar:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.bar-header-secondary{top:2.2rem}.bar-footer{bottom:0}.bar-footer-secondary{bottom:2.2rem}.bar-footer-secondary-tab{bottom:2.5rem}.bar-footer-secondary-tab:before,.bar-footer-secondary:before,.bar-footer:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.bar-footer-secondary-tab:before,.bar-footer-secondary:before,.bar-footer:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.bar-footer-secondary-tab:before,.bar-footer-secondary:before,.bar-footer:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.bar-footer-secondary-tab:after,.bar-footer-secondary:after,.bar-footer:after{display:none}.bar-nav{top:0}.title{position:absolute;display:block;width:100%;padding:0;margin:0 -.5rem;font-size:.85rem;font-weight:500;line-height:2.2rem;color:#3d4145;text-align:center;white-space:nowrap}.title a{color:inherit}.bar-tab{bottom:0;width:100%;height:2.5rem;padding:0;table-layout:fixed}.bar-tab:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.bar-tab:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.bar-tab:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.bar-tab:after{display:none}.bar-tab .tab-item{position:relative;display:table-cell;width:1%;height:2.5rem;color:#929292;text-align:center;vertical-align:middle}.bar-tab .tab-item.active,.bar-tab .tab-item:active{color:#0894ec}.bar-tab .tab-item .badge{position:absolute;top:.1rem;left:50%;z-index:100;height:.8rem;min-width:.8rem;padding:0 .2rem;font-size:.6rem;line-height:.8rem;color:#fff;vertical-align:top;background:red;border-radius:.5rem;margin-left:.1rem}.bar-tab .tab-item .icon{top:.05rem;height:1.2rem;font-size:1.2rem;line-height:1.2rem;padding-top:0;padding-bottom:0}.bar-tab .tab-item .icon~.tab-label{display:block;font-size:.55rem;position:relative;top:.15rem}.bar .button{position:relative;top:.35rem;z-index:20;margin-top:0;font-weight:400}.bar .button.pull-right{margin-left:.5rem}.bar .button.pull-left{margin-right:.5rem}.bar .button-link{top:0;padding:0;font-size:.8rem;line-height:2.2rem;height:2.2rem;color:#0894ec;border:0}.bar .button-link.active,.bar .button-link:active{color:#0675bb}.bar .button-block{top:.35rem;font-size:.8rem;width:100%}.bar .button-nav.pull-left{margin-left:-.25rem}.bar .button-nav.pull-left .icon-left-nav{margin-right:-.15rem}.bar .button-nav.pull-right{margin-right:-.25rem}.bar .button-nav.pull-right .icon-right-nav{margin-left:-.15rem}.bar .icon{position:relative;z-index:20;padding:.5rem .1rem;font-size:1rem;line-height:1.2rem}.bar .button .icon{padding:0}.bar .title .icon{padding:0}.bar .title .icon.icon-caret{top:.2rem;margin-left:-.25rem}.bar-footer .icon{font-size:1.2rem;line-height:1.2rem}.bar input[type=search]{height:1.45rem;margin:.3rem 0}.badge{display:inline-block;padding:.1rem .45rem .15rem;font-size:.6rem;line-height:1;color:#3d4145;background-color:rgba(0,0,0,.15);border-radius:5rem}.badge.badge-inverted{padding:0 .25rem 0 0;background-color:transparent}.list-block{margin:1.75rem 0;font-size:.85rem}.list-block ul{background:#fff;list-style:none;padding:0;margin:0;position:relative}.list-block ul:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.list-block ul:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.list-block ul:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.list-block ul:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.list-block ul:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.list-block ul:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.list-block ul ul{padding-left:2.25rem}.list-block ul ul:before{display:none}.list-block ul ul:after{display:none}.list-block .align-top,.list-block .align-top .item-content,.list-block .align-top .item-inner{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.list-block.inset{margin-left:.75rem;margin-right:.75rem;border-radius:.35rem}.list-block.inset .content-block-title{margin-left:0;margin-right:0}.list-block.inset ul{border-radius:.35rem}.list-block.inset ul:before{display:none}.list-block.inset ul:after{display:none}.list-block.inset li:first-child>a{border-radius:.35rem .35rem 0 0}.list-block.inset li:last-child>a{border-radius:0 0 .35rem .35rem}.list-block.inset li:first-child:last-child>a{border-radius:.35rem}@media all and (min-width:768px){.list-block.tablet-inset{margin-left:.75rem;margin-right:.75rem;border-radius:.35rem}.list-block.tablet-inset .content-block-title{margin-left:0;margin-right:0}.list-block.tablet-inset ul{border-radius:.35rem}.list-block.tablet-inset ul:before{display:none}.list-block.tablet-inset ul:after{display:none}.list-block.tablet-inset li:first-child>a{border-radius:.35rem .35rem 0 0}.list-block.tablet-inset li:last-child>a{border-radius:0 0 .35rem .35rem}.list-block.tablet-inset li:first-child:last-child>a{border-radius:.35rem}.list-block.tablet-inset .content-block-title{margin-left:0;margin-right:0}.list-block.tablet-inset ul{border-radius:.35rem}.list-block.tablet-inset ul:before{display:none}.list-block.tablet-inset ul:after{display:none}.list-block.tablet-inset li:first-child>a{border-radius:.35rem .35rem 0 0}.list-block.tablet-inset li:last-child>a{border-radius:0 0 .35rem .35rem}.list-block.tablet-inset li:first-child:last-child>a{border-radius:.35rem}}.list-block li{box-sizing:border-box;position:relative}.list-block .item-media{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-shrink:0;-ms-flex:0 0 auto;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-lines:single;-moz-box-lines:single;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;box-sizing:border-box;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding-top:.35rem;padding-bottom:.4rem}.list-block .item-media i+i{margin-left:.25rem}.list-block .item-media i+img{margin-left:.25rem}.list-block .item-media+.item-inner{margin-left:.75rem}.list-block .item-inner{padding-right:.75rem;position:relative;width:100%;padding-top:.4rem;padding-bottom:.35rem;min-height:2.2rem;overflow:hidden;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-ms-flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.list-block .item-inner:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.list-block .item-inner:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.list-block .item-inner:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.list-block .item-title{-webkit-flex-shrink:1;-ms-flex:0 1 auto;-webkit-flex-shrink:1;flex-shrink:1;white-space:nowrap;position:relative;overflow:hidden;text-overflow:ellipsis;max-width:100%}.list-block .item-title.label{width:35%;-webkit-flex-shrink:0;-ms-flex:0 0 auto;-webkit-flex-shrink:0;flex-shrink:0;margin:4px 0}.list-block .item-input{width:100%;margin-top:-.4rem;margin-bottom:-.35rem;-webkit-box-flex:1;-ms-flex:1;-webkit-flex-shrink:1;-ms-flex:0 1 auto;-webkit-flex-shrink:1;flex-shrink:1}.list-block .item-after{white-space:nowrap;color:#5f646e;-webkit-flex-shrink:0;-ms-flex:0 0 auto;-webkit-flex-shrink:0;flex-shrink:0;margin-left:.25rem;display:-webkit-box;display:-webkit-flex;display:flex;max-height:1.4rem}.list-block .smart-select .item-after{max-width:70%;overflow:hidden;text-overflow:ellipsis;position:relative}.list-block .item-link{-webkit-transition-duration:.3s;transition-duration:.3s;display:block;color:inherit}.list-block .item-link .item-inner{padding-right:1.5rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NUM0QzFDNzMyREM0MTFFNUJDNTI4OTMzMEE0RjBENzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NUM0QzFDNzQyREM0MTFFNUJDNTI4OTMzMEE0RjBENzMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1QzRDMUM3MTJEQzQxMUU1QkM1Mjg5MzMwQTRGMEQ3MyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1QzRDMUM3MjJEQzQxMUU1QkM1Mjg5MzMwQTRGMEQ3MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pjs2Bb4AAAItSURBVHjazJhbK0RRGIb3DIOU/AG5kUTOgxmHceFGKf6BO+Vf+E8KKYcYg3FuMpNIDhFJXJAcp/GtvKumrzVs+zBrvfU2u689q6d3rb33+lYgl8tZvymZ3JOX7eQp8gT50fJA0Wj4z3tKbY5VR14hV5ObyWLkZ6sICtq4p4V8CjihevIWucoUQJFUmtUayTvkShMAL5DiGqs3IMlK3YBSgwrIZkBWmAAoIRMKyG2/IIMO/hMjbygepCS53ARAoQHyOqu1YbrLTADMAXJbASmSDOkGlOpTQHaQN72CdAuYBeQuq4cBWaIbUEJGC0Am3UIGPVoqMsk9Vu/CwxTQDSj0iSQPWD2C6Q7oBhT6AmRKAZkwAVDoowBkn+LdqQVQ6A2QhwrIuAmAEjKi2KrF/jPdfgIKveI7Pcfq/eSMCYBSD4pakymA0+RxVrsn15oAOEMeY7Vbcif5ys4ApT7CzZJHWO2G3I1fSyfgPHmY1a7x6bvT/ZpZUMBdOoHzI8El8pCiK+wq8CQXNcFlBdw51tyD00G9SnAVHV++zgDn6hzHiwTjCrgTTKvrQya3Ca5jA5CvY3IP+UlnTxJEb8zhjpDck1cL20mCAcBFWD2D2ovOvjiERojDpTGtnsL9N8EQegt+LJrC5vRN59lMORp0DrePNH2BswvYivXVzuoHSO7dz+2QHcAa6+eMOl87WHOffm8m7QCK7foog+tFi2mZACg3npPkRUxrtkitgvUtwAA5A3LWdzPizwAAAABJRU5ErkJggg==);background-size:.7rem;background-repeat:no-repeat;background-position:97% center;background-position:-webkit-calc(100% - .5rem) center;background-position:calc(100% - .5rem) center}.list-block .item-link.active-state,html:not(.watch-active-state) .list-block .item-link:active{-webkit-transition-duration:0s;transition-duration:0s;background-color:#d9d9d9}.list-block .item-link.active-state .item-inner:after,html:not(.watch-active-state) .list-block .item-link:active .item-inner:after{background-color:transparent}.list-block .item-link.list-button{padding:0 .75rem;text-align:center;color:#0894ec;display:block;line-height:2.15rem}.list-block .item-link.list-button:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.list-block .item-link.list-button:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.list-block .item-link.list-button:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.list-block .item-content{box-sizing:border-box;padding-left:.75rem;min-height:2.2rem;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.list-block .list-block-label{margin:.5rem 0 1.75rem;padding:0 .75rem;font-size:.7rem;color:#5f646e}.list-block .item-subtitle{font-size:.75rem;position:relative;overflow:hidden;white-space:nowrap;max-width:100%;text-overflow:ellipsis}.list-block .item-text{font-size:.75rem;color:#5f646e;line-height:1.05rem;position:relative;overflow:hidden;height:2.1rem;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}.list-block.media-list .item-title{font-weight:500}.list-block.media-list .item-inner{display:block;padding-top:.5rem;padding-bottom:.45rem;-webkit-align-self:stretch;align-self:stretch}.list-block.media-list .item-media{padding-top:.45rem;padding-bottom:.5rem}.list-block.media-list .item-media img{display:block}.list-block.media-list .item-title-row{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.list-block .list-group ul:after,.list-block .list-group ul:before{z-index:11}.list-block .list-group+.list-group ul:before{display:none}.list-block .item-divider,.list-block .list-group-title{background:#F7F7F7;margin-top:-1px;padding:.2rem .75rem;white-space:nowrap;position:relative;max-width:100%;text-overflow:ellipsis;overflow:hidden;color:#e7e7e7}.list-block .item-divider:before,.list-block .list-group-title:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.list-block .item-divider:before,.list-block .list-group-title:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.list-block .item-divider:before,.list-block .list-group-title:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.list-block .list-group-title{position:relative;position:-webkit-sticky;position:-moz-sticky;position:sticky;top:0;z-index:20;margin-top:0}.list-block .list-group-title:before{display:none}.list-block li:last-child .list-button:after{display:none}.list-block li:last-child .item-inner:after,.list-block li:last-child li:last-child .item-inner:after{display:none}.list-block li li:last-child .item-inner:after,.list-block li:last-child li .item-inner:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#e7e7e7;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.list-block li li:last-child .item-inner:after,.list-block li:last-child li .item-inner:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.list-block li li:last-child .item-inner:after,.list-block li:last-child li .item-inner:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.list-block input[type=text],.list-block input[type=password],.list-block input[type=email],.list-block input[type=tel],.list-block input[type=url],.list-block input[type=date],.list-block input[type=datetime-local],.list-block input[type=time],.list-block input[type=number],.list-block input[type=search],.list-block select,.list-block textarea{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;box-sizing:border-box;border:none;background:0 0;border-radius:0;box-shadow:none;display:block;padding:0 0 0 .25rem;margin:0;width:100%;height:2.15rem;color:#3d4145;font-size:.85rem;font-family:inherit}.list-block input[type=date],.list-block input[type=datetime-local]{line-height:2.2rem}.list-block select{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none}.list-block .label{vertical-align:top}.list-block textarea{height:5rem;resize:none;line-height:1.4;padding-top:.4rem;padding-bottom:.35rem}.label-switch{display:inline-block;vertical-align:middle;width:2.6rem;border-radius:.8rem;box-sizing:border-box;height:1.6rem;position:relative;cursor:pointer;-webkit-align-self:center;align-self:center}.label-switch .checkbox{width:2.6rem;border-radius:.8rem;box-sizing:border-box;height:1.6rem;background:#e5e5e5;z-index:0;margin:0;padding:0;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;border:none;cursor:pointer;position:relative;-webkit-transition-duration:.3s;transition-duration:.3s}.label-switch .checkbox:before{content:' ';position:absolute;left:.1rem;top:.1rem;width:2.4rem;border-radius:.8rem;box-sizing:border-box;height:1.4rem;background:#fff;z-index:1;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:scale(1);transform:scale(1)}.label-switch .checkbox:after{content:' ';height:1.4rem;width:1.4rem;border-radius:1.4rem;background:#fff;position:absolute;z-index:2;top:.1rem;left:.1rem;box-shadow:0 .1rem .25rem rgba(0,0,0,.4);-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-duration:.3s;transition-duration:.3s}.label-switch input[type=checkbox]{display:none}.label-switch input[type=checkbox]:checked+.checkbox{background:#4cd964}.label-switch input[type=checkbox]:checked+.checkbox:before{-webkit-transform:scale(0);transform:scale(0)}.label-switch input[type=checkbox]:checked+.checkbox:after{-webkit-transform:translateX(1.1rem);transform:translateX(1.1rem)}html.android .label-switch input[type=checkbox]+.checkbox{-webkit-transition-duration:0;transition-duration:0}html.android .label-switch input[type=checkbox]+.checkbox:after,html.android .label-switch input[type=checkbox]+.checkbox:before{-webkit-transition-duration:0;transition-duration:0}.range-slider{width:100%;position:relative;overflow:hidden;padding-left:.15rem;padding-right:.15rem;margin-left:-1px;-webkit-align-self:center;align-self:center}.range-slider input[type=range]{position:relative;height:1.4rem;width:100%;margin:.2rem 0 .25rem 0;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,#b7b8b7),color-stop(100%,#b7b8b7));background:-webkit-linear-gradient(left,#b7b8b7 0,#b7b8b7 100%);background:linear-gradient(to right,#b7b8b7 0,#b7b8b7 100%);background-position:center;background-size:100% .1rem;background-repeat:no-repeat;outline:0}.range-slider input[type=range]:after{height:.1rem;background:#fff;content:' ';width:.25rem;top:50%;margin-top:-1px;left:-.25rem;z-index:1;position:absolute}.range-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;border:none;height:1.4rem;width:1.4rem;position:relative;background:0 0}.range-slider input[type=range]::-webkit-slider-thumb:after{height:1.4rem;width:1.4rem;border-radius:1.4rem;background:#fff;z-index:10;box-shadow:0 .1rem .2rem rgba(0,0,0,.4);position:absolute;left:0;top:0;content:' '}.range-slider input[type=range]::-webkit-slider-thumb:before{position:absolute;top:50%;right:100%;width:100rem;height:.1rem;margin-top:-1px;z-index:1;background:#0894ec;content:' '}label.label-checkbox{cursor:pointer}label.label-checkbox i.icon-form-checkbox{width:1.1rem;height:1.1rem;position:relative;border-radius:1.1rem;border:1px solid #c7c7cc;box-sizing:border-box}label.label-checkbox i.icon-form-checkbox:after{content:' ';position:absolute;left:50%;margin-left:-.3rem;top:50%;margin-top:-.2rem;width:.6rem;height:.45rem}label.label-checkbox input[type=checkbox],label.label-checkbox input[type=radio]{display:none}label.label-checkbox input[type=checkbox]:checked+.item-media i.icon-form-checkbox,label.label-checkbox input[type=radio]:checked+.item-media i.icon-form-checkbox{border:none;background-color:#0894ec}label.label-checkbox input[type=checkbox]:checked+.item-media i.icon-form-checkbox:after,label.label-checkbox input[type=radio]:checked+.item-media i.icon-form-checkbox:after{background:no-repeat center;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20x%3D'0px'%20y%3D'0px'%20viewBox%3D'0%200%2012%209'%20xml%3Aspace%3D'preserve'%3E%3Cpolygon%20fill%3D'%23ffffff'%20points%3D'12%2C0.7%2011.3%2C0%203.9%2C7.4%200.7%2C4.2%200%2C4.9%203.9%2C8.8%203.9%2C8.8%203.9%2C8.8%20'%2F%3E%3C%2Fsvg%3E");background-size:.6rem .45rem}label.label-checkbox{-webkit-transition-duration:.3s;transition-duration:.3s}html:not(.watch-active-state) label.label-checkbox:active,label.label-checkbox.active-state{-webkit-transition:0s;transition:0s;background-color:#d9d9d9}html:not(.watch-active-state) label.label-checkbox:active .item-inner:after,label.label-checkbox.active-state .item-inner:after{background-color:transparent}.smart-select select{display:none}.searchbar{padding:8px 0;overflow:hidden;height:2.2rem;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.searchbar .searchbar-cancel{margin-right:-3rem;width:2.2rem;float:right;height:1.4rem;line-height:1.4rem;text-align:center;-webkit-transition:all .3s;transition:all .3s;opacity:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.searchbar .search-input{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);margin-right:0;-webkit-transition:all .3s;transition:all .3s}.searchbar .search-input input{margin:0;height:1.4rem}.searchbar.searchbar-active .searchbar-cancel{margin-right:0;opacity:1}.searchbar.searchbar-active .searchbar-cancel+.search-input{margin-right:2.5rem}.search-input{position:relative}.search-input input{box-sizing:border-box;width:100%;height:1.4rem;display:block;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;font-family:inherit;color:#3d4145;font-size:.7rem;font-weight:400;padding:0 .5rem;background-color:#fff;border:1px solid #b4b4b4}.search-input input::-webkit-input-placeholder{color:#ccc;opacity:1}.search-input .icon{position:absolute;font-size:.9rem;color:#b4b4b4;top:50%;left:.3rem;-webkit-transform:translate3D(0,-50%,0);transform:translate3D(0,-50%,0)}.search-input label+input{padding-left:1.4rem}.bar .searchbar{margin:0 -.5rem;padding:.4rem .5rem;background:rgba(0,0,0,.1)}.bar .searchbar .search-input input{border:0}.bar .searchbar .searchbar-cancel{color:#5f646e}.button{border:1px solid #0894ec;color:#0894ec;text-decoration:none;text-align:center;display:block;border-radius:.25rem;line-height:1.25rem;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:0 0;padding:0 .5rem;margin:0;height:1.35rem;white-space:nowrap;position:relative;text-overflow:ellipsis;font-size:.7rem;font-family:inherit;cursor:pointer}input[type=button].button,input[type=submit].button{width:100%}.button:active{color:#0a8ddf;border-color:#0a8ddf}.button.button-round{border-radius:1.25rem}.button.active,.button.active:active{color:#0a8ddf;border-color:#0a8ddf}.button.button-big{font-size:.85rem;height:2.4rem;line-height:2.3rem}.button.button-fill{color:#fff;background:#0894ec;border:none;line-height:1.35rem}.button.button-fill.active,.button.button-fill:active{background:#0a8ddf}.button.button-fill.button-big{line-height:2.4rem}.button .button-link{padding-top:.3rem;padding-bottom:.3rem;color:#0894ec;background-color:transparent;border:0}.button i.icon:first-child{margin-right:.5rem}.button i.icon:last-child{margin-left:.5rem}.button i.icon:first-child:last-child{margin-left:0;margin-right:0}.button-light{border-color:#ccc;color:#ccc;color:#5f646e}.button-light:active{border-color:#0a8ddf;color:#0a8ddf}.button-light.button-fill{color:#fff;background-color:#ccc}.button-light.button-fill:active{background-color:#0a8ddf}.button-dark{border-color:#6e727b;color:#6e727b;color:#5f646e}.button-dark:active{border-color:#0a8ddf;color:#0a8ddf}.button-dark.button-fill{color:#fff;background-color:#6e727b}.button-dark.button-fill:active{background-color:#0a8ddf}.button-success{border-color:#4cd964;color:#4cd964}.button-success:active{border-color:#2ac845;color:#2ac845}.button-success.button-fill{color:#fff;background-color:#4cd964}.button-success.button-fill:active{background-color:#2ac845}.button-danger{border-color:#f6383a;color:#f6383a}.button-danger:active{border-color:#f00b0d;color:#f00b0d}.button-danger.button-fill{color:#fff;background-color:#f6383a}.button-danger.button-fill:active{background-color:#f00b0d}.button-warning{border-color:#f60;color:#f60}.button-warning:active{border-color:#cc5200;color:#cc5200}.button-warning.button-fill{color:#fff;background-color:#f60}.button-warning.button-fill:active{background-color:#cc5200}.button.button-danger.disabled,.button.button-primary.disabled,.button.button-success.disabled,.button.button-warning.disabled,.button.disabled{border-color:#c8c9cb;color:#c8c9cb;cursor:not-allowed}.button.button-danger.disabled:active,.button.button-primary.disabled:active,.button.button-success.disabled:active,.button.button-warning.disabled:active,.button.disabled:active{border-color:#c8c9cb;color:#c8c9cb}.button.button-danger.disabled.button-fill,.button.button-primary.disabled.button-fill,.button.button-success.disabled.button-fill,.button.button-warning.disabled.button-fill,.button.disabled.button-fill{color:#fff;background-color:#c8c9cb}.button.button-danger.disabled.button-fill:active,.button.button-primary.disabled.button-fill:active,.button.button-success.disabled.button-fill:active,.button.button-warning.disabled.button-fill:active,.button.disabled.button-fill:active{background-color:#c8c9cb}.buttons-row,.buttons-tab{-webkit-align-self:center;align-self:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-lines:single;-moz-box-lines:single;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.buttons-row .button{border-radius:0;margin-left:-1px;width:100%;-webkit-box-flex:1;-ms-flex:1;border-color:#0894ec;color:#0894ec}.buttons-row .button.active{background-color:#0894ec;color:#fff;z-index:90}.buttons-row .button:first-child{border-radius:.25rem 0 0 .25rem;margin-left:0;border-left-width:1px;border-left-style:solid}.buttons-row .button:last-child{border-radius:0 .25rem .25rem 0}.buttons-row .button.button-round:first-child{border-radius:1.35rem 0 0 1.35rem}.buttons-row .button.button-round:last-child{border-radius:0 1.35rem 1.35rem 0}.buttons-tab{background:#fff;position:relative}.buttons-tab:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#d0d0d0;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.buttons-tab:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.buttons-tab:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.buttons-tab .button{color:#5f646e;font-size:.8rem;width:100%;height:2rem;line-height:2rem;-webkit-box-flex:1;-ms-flex:1;border:0;border-bottom:2px solid transparent;border-radius:0}.buttons-tab .button.active{color:#0894ec;border-color:#0894ec;z-index:100}.buttons-fixed{position:fixed;z-index:99;width:100%}.tabs .tab{display:none}.tabs .tab.active{display:block}.tabs-animated-wrap{position:relative;width:100%;overflow:hidden;height:100%}.tabs-animated-wrap>.tabs{display:-webkit-box;display:-webkit-flex;display:flex;height:100%;-webkit-transition:.3s;transition:.3s}.tabs-animated-wrap>.tabs>.tab{width:100%;display:block;-webkit-flex-shrink:0;-ms-flex:0 0 auto;-webkit-flex-shrink:0;flex-shrink:0}.page,.page-group{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;background:#efeff4;display:none;overflow:hidden}.page-group.page-current,.page-group.page-from-center-to-left,.page-group.page-from-center-to-right,.page-group.page-from-left-to-center,.page-group.page-from-right-to-center,.page-group.page-visible,.page.page-current,.page.page-from-center-to-left,.page.page-from-center-to-right,.page.page-from-left-to-center,.page.page-from-right-to-center,.page.page-visible{display:block}.page-group.page-current,.page.page-current{overflow:hidden}.page-group{display:block}.page-transitioning,.page-transitioning .swipeback-page-shadow{-webkit-transition:.4s;transition:.4s}.page-from-right-to-center{-webkit-animation:pageFromRightToCenter .4s forwards;animation:pageFromRightToCenter .4s forwards;z-index:2002}.page-from-center-to-right{-webkit-animation:pageFromCenterToRight .4s forwards;animation:pageFromCenterToRight .4s forwards;z-index:2002}@-webkit-keyframes pageFromRightToCenter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:.9}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes pageFromRightToCenter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:.9}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes pageFromCenterToRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:.9}}@keyframes pageFromCenterToRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:.9}}.page-from-center-to-left{-webkit-animation:pageFromCenterToLeft .4s forwards;animation:pageFromCenterToLeft .4s forwards}.page-from-left-to-center{-webkit-animation:pageFromLeftToCenter .4s forwards;animation:pageFromLeftToCenter .4s forwards}@-webkit-keyframes pageFromCenterToLeft{from{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{opacity:.5;-webkit-transform:translate3d(-20%,0,0);transform:translate3d(-20%,0,0)}}@keyframes pageFromCenterToLeft{from{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{opacity:.5;-webkit-transform:translate3d(-20%,0,0);transform:translate3d(-20%,0,0)}}@-webkit-keyframes pageFromLeftToCenter{from{opacity:.5;-webkit-transform:translate3d(-20%,0,0);transform:translate3d(-20%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes pageFromLeftToCenter{from{opacity:.5;-webkit-transform:translate3d(-20%,0,0);transform:translate3d(-20%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.content-inner{box-sizing:border-box;border-top:1px solid transparent;margin-top:-1px;padding-bottom:.5rem}.javascript-scroll{overflow:hidden}.pull-to-refresh-layer{position:relative;left:0;top:0;width:100%;height:2.2rem}.pull-to-refresh-layer .preloader{position:absolute;left:50%;top:50%;margin-left:-.5rem;margin-top:-.5rem;visibility:hidden}.pull-to-refresh-layer .pull-to-refresh-arrow{width:.65rem;height:1rem;position:absolute;left:50%;top:50%;margin-left:-.15rem;margin-top:-.5rem;background:no-repeat center;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2026%2040'%3E%3Cpolygon%20points%3D'9%2C22%209%2C0%2017%2C0%2017%2C22%2026%2C22%2013.5%2C40%200%2C22'%20fill%3D'%238c8c8c'%2F%3E%3C%2Fsvg%3E");background-size:.65rem 1rem;z-index:10;-webkit-transform:rotate(0) translate3d(0,0,0);transform:rotate(0) translate3d(0,0,0);-webkit-transition-duration:.3s;transition-duration:.3s}.pull-to-refresh-content{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.pull-to-refresh-content.refreshing,.pull-to-refresh-content.transitioning{-webkit-transition:-webkit-transform .4s;transition:transform .4s}.pull-to-refresh-content:not(.refreshing) .pull-to-refresh-layer .preloader{-webkit-animation:none;animation:none}.pull-to-refresh-content.refreshing .pull-to-refresh-arrow{visibility:hidden;-webkit-transition-duration:0s;transition-duration:0s}.pull-to-refresh-content.refreshing .preloader{visibility:visible}.pull-to-refresh-content.pull-up .pull-to-refresh-arrow{-webkit-transform:rotate(180deg) translate3d(0,0,0);transform:rotate(180deg) translate3d(0,0,0)}.pull-to-refresh-content{top:-2.2rem}.pull-to-refresh-content.refreshing{-webkit-transform:translate3d(0,2.2rem,0);transform:translate3d(0,2.2rem,0)}.bar-footer~.pull-to-refresh-content,.bar-nav~.pull-to-refresh-content,.bar-tab~.pull-to-refresh-content{top:0}.bar-footer~.pull-to-refresh-content.refreshing,.bar-nav~.pull-to-refresh-content.refreshing,.bar-tab~.pull-to-refresh-content.refreshing{-webkit-transform:translate3d(0,2.2rem,0);transform:translate3d(0,2.2rem,0)}.bar-footer-secondary~.pull-to-refresh-content,.bar-header-secondary~.pull-to-refresh-content{top:2.2rem}.infinite-scroll-preloader{margin:.5rem;text-align:center}.infinite-scroll-preloader .preloader{width:1.5rem;height:1.5rem}.infinite-scroll-top .infinite-scroll-preloader{position:absolute;width:100%;top:0;margin:0}.modal-overlay,.popup-overlay,.preloader-indicator-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:10600;visibility:hidden;opacity:0;-webkit-transition-duration:.4s;transition-duration:.4s}.modal-overlay.modal-overlay-visible,.popup-overlay.modal-overlay-visible,.preloader-indicator-overlay.modal-overlay-visible{visibility:visible;opacity:1}.popup-overlay{z-index:10200}.modal{width:13.5rem;position:absolute;z-index:11000;left:50%;margin-left:-6.75rem;margin-top:0;top:50%;text-align:center;border-radius:.35rem;opacity:0;-webkit-transform:translate3d(0,0,0) scale(1.185);transform:translate3d(0,0,0) scale(1.185);-webkit-transition-property:-webkit-transform,opacity;transition-property:transform,opacity;color:#3d4145;display:none}.modal.modal-in{opacity:1;-webkit-transition-duration:.4s;transition-duration:.4s;-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}.modal.modal-out{opacity:0;z-index:10999;-webkit-transition-duration:.4s;transition-duration:.4s;-webkit-transform:translate3d(0,0,0) scale(.815);transform:translate3d(0,0,0) scale(.815)}.modal-inner{padding:.75rem;border-radius:.35rem .35rem 0 0;position:relative;background:#e8e8e8}.modal-inner:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#b5b5b5;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.modal-inner:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.modal-inner:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.modal-title{font-weight:500;font-size:.9rem;text-align:center}.modal-title+.modal-text{margin-top:.25rem}.modal-buttons{height:2.2rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.modal-buttons.modal-buttons-vertical{display:block;height:auto}.modal-button{width:100%;padding:0 .25rem;height:2.2rem;font-size:.85rem;line-height:2.2rem;text-align:center;color:#0894ec;background:#e8e8e8;display:block;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:pointer;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1}.modal-button:after{content:'';position:absolute;right:0;top:0;left:auto;bottom:auto;width:1px;height:100%;background-color:#b5b5b5;display:block;z-index:15;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}@media only screen and (-webkit-min-device-pixel-ratio:2){.modal-button:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.modal-button:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.modal-button:first-child{border-radius:0 0 0 .35rem}.modal-button:last-child{border-radius:0 0 .35rem 0}.modal-button:last-child:after{display:none}.modal-button:first-child:last-child{border-radius:0 0 .35rem .35rem}.modal-button.modal-button-bold{font-weight:500}.modal-button.active-state,html:not(.watch-active-state) .modal-button:active{background:#d4d4d4}.modal-buttons-vertical .modal-button{border-radius:0}.modal-buttons-vertical .modal-button:after{display:none}.modal-buttons-vertical .modal-button:before{display:none}.modal-buttons-vertical .modal-button:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#b5b5b5;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.modal-buttons-vertical .modal-button:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.modal-buttons-vertical .modal-button:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.modal-buttons-vertical .modal-button:last-child{border-radius:0 0 .35rem .35rem}.modal-buttons-vertical .modal-button:last-child:after{display:none}.modal-no-buttons .modal-inner{border-radius:.35rem}.modal-no-buttons .modal-inner:after{display:none}.modal-no-buttons .modal-buttons{display:none}.actions-modal{position:absolute;left:0;bottom:0;z-index:11000;width:100%;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.actions-modal.modal-in{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.actions-modal.modal-out{z-index:10999;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.actions-modal-group{margin:.4rem}.actions-modal-button,.actions-modal-label{width:100%;text-align:center;font-weight:400;margin:0;background:rgba(243,243,243,.95);box-sizing:border-box;display:block;position:relative}.actions-modal-button:after,.actions-modal-label:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#d2d2d6;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.actions-modal-button:after,.actions-modal-label:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.actions-modal-button:after,.actions-modal-label:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.actions-modal-button a,.actions-modal-label a{text-decoration:none;color:inherit}.actions-modal-button b,.actions-modal-label b{font-weight:500}.actions-modal-button.actions-modal-button-bold,.actions-modal-label.actions-modal-button-bold{font-weight:500}.actions-modal-button.actions-modal-button-danger,.actions-modal-label.actions-modal-button-danger{color:#f6383a}.actions-modal-button.color-danger,.actions-modal-label.color-danger{color:#f6383a}.actions-modal-button.bg-danger,.actions-modal-label.bg-danger{background:#f6383a;color:#fff}.actions-modal-button.bg-danger:active,.actions-modal-label.bg-danger:active{background:#f00b0d}.actions-modal-button:first-child,.actions-modal-label:first-child{border-radius:.2rem .2rem 0 0}.actions-modal-button:last-child,.actions-modal-label:last-child{border-radius:0 0 .2rem .2rem}.actions-modal-button:last-child:after,.actions-modal-label:last-child:after{display:none}.actions-modal-button:first-child:last-child,.actions-modal-label:first-child:last-child{border-radius:.2rem}.actions-modal-button.disabled,.actions-modal-label.disabled{opacity:.95;color:#8e8e93}.actions-modal-button{cursor:pointer;line-height:2.15rem;font-size:1rem;color:#0894ec}.actions-modal-button.active-state,.actions-modal-button:active{background:#dcdcdc}.actions-modal-label{font-size:.7rem;line-height:1.3;min-height:2.2rem;padding:.4rem .5rem;color:#5f646e;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}input.modal-text-input{box-sizing:border-box;height:1.5rem;background:#fff;margin:0;margin-top:.75rem;padding:0 .25rem;border:1px solid #a0a0a0;border-radius:.25rem;width:100%;font-size:.7rem;font-family:inherit;display:block;box-shadow:0 0 0 transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}input.modal-text-input+input.modal-text-input{margin-top:.25rem}input.modal-text-input.modal-text-input-double{border-radius:.25rem .25rem 0 0}input.modal-text-input.modal-text-input-double+input.modal-text-input{margin-top:0;border-top:0;border-radius:0 0 .25rem .25rem}.login-screen,.popup{position:absolute;left:0;top:0;width:100%;height:100%;z-index:10400;background:#fff;box-sizing:border-box;display:none;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.login-screen.modal-in,.login-screen.modal-out,.popup.modal-in,.popup.modal-out{-webkit-transition-duration:.4s;transition-duration:.4s}.login-screen.modal-in,.popup.modal-in{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.login-screen.modal-out,.popup.modal-out{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.login-screen.modal-in,.login-screen.modal-out{display:block}html.with-statusbar-overlay .popup{height:-webkit-calc(100% - 1rem);height:calc(100% - 1rem);top:1rem}html.with-statusbar-overlay .popup-overlay{z-index:9800}@media all and (max-width:629px),(max-height:629px){html.with-statusbar-overlay .popup{height:-webkit-calc(100% - 1rem);height:calc(100% - 1rem);top:1rem}html.with-statusbar-overlay .popup-overlay{z-index:9800}}html.with-statusbar-overlay .login-screen,html.with-statusbar-overlay .popup.tablet-fullscreen{height:-webkit-calc(100% - 1rem);height:calc(100% - 1rem);top:1rem}.modal .preloader{width:1.7rem;height:1.7rem}.preloader-indicator-overlay{visibility:visible;opacity:0;background:0 0}.preloader-indicator-modal{position:absolute;left:50%;top:50%;padding:.4rem;margin-left:-1.25rem;margin-top:-1.25rem;background:rgba(0,0,0,.8);z-index:11000;border-radius:.25rem}.preloader-indicator-modal .preloader{display:block;width:1.7rem;height:1.7rem}.picker-modal{position:fixed;left:0;bottom:0;width:100%;height:13rem;z-index:11500;display:none;-webkit-transition-property:-webkit-transform;transition-property:transform;background:#cfd5da;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.picker-modal.modal-in,.picker-modal.modal-out{-webkit-transition-duration:.4s;transition-duration:.4s}.picker-modal.modal-in{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.picker-modal.modal-out{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.picker-modal .picker-modal-inner{height:100%;position:relative}.picker-modal .toolbar{position:relative;width:100%}.picker-modal .toolbar:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#999;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-modal .toolbar:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-modal .toolbar:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-modal .toolbar+.picker-modal-inner{height:-webkit-calc(100% - 2.2rem);height:calc(100% - 2.2rem)}.picker-modal.picker-modal-inline{display:block;position:relative;background:0 0;z-index:inherit;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.picker-modal.picker-modal-inline .toolbar:before{display:none}.picker-modal.picker-modal-inline .toolbar:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#999;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-modal.picker-modal-inline .toolbar:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-modal.picker-modal-inline .toolbar:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.toast{background:rgba(0,0,0,.8);border-radius:1rem;color:#fff;padding:0 .8rem;height:2rem;line-height:2rem;font-size:.8rem;width:auto}.preloader{display:inline-block;width:1rem;height:1rem;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:preloader-spin 1s steps(12,end) infinite;animation:preloader-spin 1s steps(12,end) infinite}.preloader:after{display:block;content:"";width:100%;height:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:50%;background-size:100%;background-repeat:no-repeat}.preloader-white:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}@-webkit-keyframes preloader-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.card .list-block ul,.cards-list ul{background:0 0}.card .list-block>ul:before,.cards-list>ul:before{display:none}.card .list-block>ul:after,.cards-list>ul:after{display:none}.card{background:#fff;box-shadow:0 .05rem .1rem rgba(0,0,0,.3);margin:.5rem;position:relative;border-radius:.1rem;font-size:.7rem}.card .content-block,.card .list-block{margin:0}.row:not(.no-gutter) .col>.card{margin-left:0;margin-right:0}.card-content{position:relative}.card-content-inner{padding:.75rem;position:relative}.card-content-inner>p:first-child{margin-top:0}.card-content-inner>p:last-child{margin-bottom:0}.card-content-inner>.content-block,.card-content-inner>.list-block{margin:-.75rem}.card-footer,.card-header{min-height:2.2rem;position:relative;padding:.5rem .75rem;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.card-footer[valign=top],.card-header[valign=top]{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.card-footer[valign=bottom],.card-header[valign=bottom]{-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}.card-footer a.link,.card-header a.link{line-height:2.2rem;height:2.2rem;text-decoration:none;position:relative;margin-top:-.5rem;margin-bottom:-.5rem;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition-duration:.3s;transition-duration:.3s}.card-footer a.link.active-state,.card-header a.link.active-state,html:not(.watch-active-state) .card-footer a.link:active,html:not(.watch-active-state) .card-header a.link:active{opacity:.3;-webkit-transition-duration:0s;transition-duration:0s}.card-footer a.link i+i,.card-footer a.link i+span,.card-footer a.link span+i,.card-footer a.link span+span,.card-header a.link i+i,.card-header a.link i+span,.card-header a.link span+i,.card-header a.link span+span{margin-left:.35rem}.card-footer a.link i.icon,.card-header a.link i.icon{display:block}.card-footer a.icon-only,.card-header a.icon-only{min-width:2.2rem;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:0}.card-header{border-radius:.1rem .1rem 0 0;font-size:.85rem}.card-header:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#e1e1e1;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.card-header:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.card-header:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.card-header .card-cover{width:100%;display:block}.card-header.no-border:after{display:none}.card-header.no-padding{padding:0}.card-footer{border-radius:0 0 .1rem .1rem;color:#5f646e}.card-footer:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#e1e1e1;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.card-footer:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.card-footer:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.card-footer.no-border:before{display:none}.facebook-card .card-header{display:block;padding:.5rem}.facebook-card .facebook-avatar{float:left}.facebook-card .facebook-name{margin-left:2.2rem;font-size:.7rem;font-weight:500}.facebook-card .facebook-date{margin-left:2.2rem;font-size:.65rem;color:#5f646e}.facebook-card .card-footer{background:#fafafa}.facebook-card .card-footer a{color:#5f646e;font-weight:500}.facebook-card .card-content img{display:block}.facebook-card .card-content-inner{padding:.75rem .5rem}.panel-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0);opacity:0;z-index:5999;display:none}.panel{z-index:1000;display:none;background:#111;color:#fff;box-sizing:border-box;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:12rem;top:0;height:100%;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition:-webkit-transform .4s;transition:transform .4s}.panel.panel-left.panel-cover{z-index:6000;left:-12rem}.panel.panel-left.panel-reveal{left:0}.panel.panel-right.panel-cover{z-index:6000;right:-12rem}.panel.panel-right.panel-reveal{right:0}body.with-panel-left-cover .page,body.with-panel-right-cover .page{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition:-webkit-transform .4s;transition:transform .4s}body.with-panel-left-cover .panel-overlay,body.with-panel-right-cover .panel-overlay{display:block}body.with-panel-left-reveal .page,body.with-panel-right-reveal .page{-webkit-transition:.4s;transition:.4s;-webkit-transition-property:-webkit-transform;transition-property:transform}body.with-panel-left-reveal .panel-overlay,body.with-panel-right-reveal .panel-overlay{display:block}body.with-panel-left-reveal .page{-webkit-transform:translate3d(12rem,0,0);transform:translate3d(12rem,0,0)}body.with-panel-left-reveal .panel-overlay{margin-left:12rem}body.with-panel-left-cover .panel-left{-webkit-transform:translate3d(12rem,0,0);transform:translate3d(12rem,0,0)}body.with-panel-right-reveal .page{-webkit-transform:translate3d(-12rem,0,0);transform:translate3d(-12rem,0,0)}body.with-panel-right-reveal .panel-overlay{margin-left:-12rem}body.with-panel-right-cover .panel-right{-webkit-transform:translate3d(-12rem,0,0);transform:translate3d(-12rem,0,0)}body.panel-closing .page{-webkit-transition:.4s;transition:.4s;-webkit-transition-property:-webkit-transform;transition-property:transform}.picker-calendar{background:#fff;height:300px;width:100%;overflow:hidden}@media (orientation:landscape) and (max-height:415px){.picker-calendar:not(.picker-modal-inline){height:220px}}.picker-calendar .picker-modal-inner{overflow:hidden}.picker-calendar-week-days{height:18px;background:#f7f7f8;display:-webkit-box;display:-webkit-flex;display:flex;font-size:11px;box-sizing:border-box;position:relative}.picker-calendar-week-days:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#c4c4c4;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-calendar-week-days:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-calendar-week-days:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-calendar-week-days .picker-calendar-week-day{-webkit-flex-shrink:1;-ms-flex:0 1 auto;-webkit-flex-shrink:1;flex-shrink:1;width:14.28571429%;width:-webkit-calc(100% / 7);width:calc(100% / 7);line-height:17px;text-align:center}.picker-calendar-week-days+.picker-calendar-months{height:-webkit-calc(100% - 18px);height:calc(100% - 18px)}.picker-calendar-months{width:100%;height:100%;overflow:hidden;position:relative}.picker-calendar-months-wrapper{position:relative;width:100%;height:100%;-webkit-transition:.3s;transition:.3s}.picker-calendar-month{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-flex-direction:column;flex-direction:column;width:100%;height:100%;position:absolute;left:0;top:0}.picker-calendar-row{height:16.66666667%;height:-webkit-calc(100% / 6);height:calc(100% / 6);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-shrink:1;-ms-flex:0 1 auto;-webkit-flex-shrink:1;flex-shrink:1;width:100%;position:relative}.picker-calendar-row:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#ccc;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-calendar-row:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-calendar-row:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-calendar-row:last-child:after{display:none}.picker-calendar-day{-webkit-flex-shrink:1;-ms-flex:0 1 auto;-webkit-flex-shrink:1;flex-shrink:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;width:14.28571429%;width:-webkit-calc(100% / 7);width:calc(100% / 7);text-align:center;color:#3d4145;font-size:15px;cursor:pointer}.picker-calendar-day.picker-calendar-day-next,.picker-calendar-day.picker-calendar-day-prev{color:#ccc}.picker-calendar-day.picker-calendar-day-disabled{color:#d4d4d4;cursor:auto}.picker-calendar-day.picker-calendar-day-today span{background:#e3e3e3}.picker-calendar-day.picker-calendar-day-selected span{background:#0894ec;color:#fff}.picker-calendar-day span{display:inline-block;border-radius:100%;width:30px;height:30px;line-height:30px}.picker-calendar-month-picker,.picker-calendar-year-picker{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:50%;max-width:200px;-webkit-flex-shrink:10;-ms-flex:0 10 auto;-webkit-flex-shrink:10;flex-shrink:10}.picker-calendar-month-picker a.icon-only,.picker-calendar-year-picker a.icon-only{min-width:36px}.picker-calendar-month-picker span,.picker-calendar-year-picker span{-webkit-flex-shrink:1;-ms-flex:0 1 auto;-webkit-flex-shrink:1;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis}.picker-modal .toolbar-inner{height:2.2rem;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center}.picker-calendar-month-picker,.picker-calendar-year-picker{display:block;line-height:2.2rem}.picker-calendar-month-picker a.icon-only,.picker-calendar-year-picker a.icon-only{float:left;width:25%;height:2.2rem;line-height:2rem}.picker-calendar-month-picker .current-month-value,.picker-calendar-month-picker .current-year-value,.picker-calendar-year-picker .current-month-value,.picker-calendar-year-picker .current-year-value{float:left;width:50%;height:2.2rem}.picker-columns{width:100%;height:13rem;z-index:11500}.picker-columns.picker-modal-inline{height:10rem}@media (orientation:landscape) and (max-height:415px){.picker-columns:not(.picker-modal-inline){height:10rem}}.picker-items{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:0;text-align:right;font-size:1.2rem;-webkit-mask-box-image:-webkit-linear-gradient(bottom,transparent,transparent 5%,#fff 20%,#fff 80%,transparent 95%,transparent);-webkit-mask-box-image:linear-gradient(to top,transparent,transparent 5%,#fff 20%,#fff 80%,transparent 95%,transparent)}.bar+.picker-items{height:10.8rem}.picker-items-col{overflow:hidden;position:relative;max-height:100%}.picker-items-col.picker-items-col-left{text-align:left}.picker-items-col.picker-items-col-center{text-align:center}.picker-items-col.picker-items-col-right{text-align:right}.picker-items-col.picker-items-col-divider{color:#3d4145;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.picker-items-col-normal{width:100%}.picker-items-col-wrapper{-webkit-transition:.3s;transition:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.picker-item{height:36px;line-height:36px;padding:0 10px;white-space:nowrap;position:relative;overflow:hidden;text-overflow:ellipsis;color:#999;left:0;top:0;width:100%;box-sizing:border-box;-webkit-transition:.3s;transition:.3s}.picker-items-col-absolute .picker-item{position:absolute}.picker-item.picker-item-far{pointer-events:none}.picker-item.picker-selected{color:#3d4145;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transform:rotateX(0);transform:rotateX(0)}.picker-center-highlight{height:36px;box-sizing:border-box;position:absolute;left:0;width:100%;top:50%;margin-top:-18px;pointer-events:none}.picker-center-highlight:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#a8abb0;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-center-highlight:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-center-highlight:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-center-highlight:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#a8abb0;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-center-highlight:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-center-highlight:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-3d .picker-items{overflow:hidden;-webkit-perspective:1200px;perspective:1200px}.picker-3d .picker-item,.picker-3d .picker-items-col,.picker-3d .picker-items-col-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-3d .picker-items-col{overflow:visible}.picker-3d .picker-item{-webkit-transform-origin:center center -110px;transform-origin:center center -110px;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.picker-modal .bar{position:relative;top:0}.picker-modal .bar:before{content:'';position:absolute;left:0;top:0;bottom:auto;right:auto;height:1px;width:100%;background-color:#a8abb0;display:block;z-index:15;-webkit-transform-origin:50% 0;transform-origin:50% 0}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-modal .bar:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-modal .bar:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-modal .bar:after{content:'';position:absolute;left:0;bottom:0;right:auto;top:auto;height:1px;width:100%;background-color:#a8abb0;display:block;z-index:15;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}@media only screen and (-webkit-min-device-pixel-ratio:2){.picker-modal .bar:after{-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media only screen and (-webkit-min-device-pixel-ratio:3){.picker-modal .bar:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.picker-modal .bar .title{color:#5f646e;font-weight:400}.city-picker .col-province{width:5rem}.city-picker .col-city{width:6rem}.city-picker .col-district{width:5rem}@font-face{font-family:iconfont-sm;src:url(//at.alicdn.com/t/font_1433401008_2229297.woff) format('woff'),url(//at.alicdn.com/t/font_1433401008_2229297.ttf) format('truetype'),url(//at.alicdn.com/t/font_1433401008_2229297.svg#iconfont) format('svg')}.icon{font-family:iconfont-sm!important;font-style:normal;display:inline-block;vertical-align:middle;background-size:100% auto;background-position:center;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.icon-app:before{content:"\e605"}.icon-browser:before{content:"\e606"}.icon-card:before{content:"\e607"}.icon-cart:before{content:"\e600"}.icon-code:before{content:"\e609"}.icon-computer:before{content:"\e616"}.icon-remove:before{content:"\e60a"}.icon-download:before{content:"\e60b"}.icon-edit:before{content:"\e60c"}.icon-emoji:before{content:"\e615"}.icon-star:before{content:"\e60e"}.icon-friends:before{content:"\e601"}.icon-gift:before{content:"\e618"}.icon-phone:before{content:"\e60f"}.icon-clock:before{content:"\e619"}.icon-home:before{content:"\e602"}.icon-menu:before{content:"\e60d"}.icon-message:before{content:"\e617"}.icon-me:before{content:"\e603"}.icon-picture:before{content:"\e61a"}.icon-share:before{content:"\e61b"}.icon-settings:before{content:"\e604"}.icon-refresh:before{content:"\e61c"}.icon-caret:before{content:"\e610"}.icon-down:before{content:"\e611"}.icon-up:before{content:"\e612"}.icon-right:before{content:"\e613"}.icon-left:before{content:"\e614"}.icon-check:before{content:"\e608"}.icon-search:before{content:"\e61d"}.icon-new:before{content:"\e61e"}.icon-next,.icon-prev{width:.75rem;height:.75rem}.icon-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M1%2C1.6l11.8%2C5.8L1%2C13.4V1.6%20M0%2C0v15l15-7.6L0%2C0L0%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.icon-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M14%2C1.6v11.8L2.2%2C7.6L14%2C1.6%20M15%2C0L0%2C7.6L15%2C15V0L15%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.theme-dark{background-color:#222426}.bar.theme-dark,.theme-dark .bar{background-color:#131313;color:#fff}.bar.theme-dark:after,.theme-dark .bar:after{background-color:#333}.theme-dark .title{color:#fff}.bar-nav.theme-dark,.bar-tab.theme-dark,.theme-dark .bar-nav,.theme-dark .bar-tab{background-color:#131313;color:#fff}.bar-nav.theme-dark:before,.bar-tab.theme-dark:before,.theme-dark .bar-nav:before,.theme-dark .bar-tab:before{background-color:#333}.theme-dark .tab-item{color:#fff}.theme-dark .tab-item.active{color:#0894ec}.theme-dark .picker-calendar-week-days{color:#fff;background-color:#131313}.theme-dark .picker-modal.picker-modal-inline .picker-center-highlight:before{background-color:#333}.theme-dark .picker-modal.picker-modal-inline .picker-center-highlight:after{background-color:#333}.theme-dark .picker-modal.picker-modal-inline .picker-item.picker-selected{color:#fff}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-week-days{color:#fff}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day{color:#fff}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-next,.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-prev{color:#777}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-disabled{color:#555}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-today span{background:#444}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-row:after,.theme-dark .picker-modal.picker-modal-inline .picker-calendar-week-days:after{background-color:#333}.theme-dark .picker-modal.picker-modal-inline .picker-calendar-week-days~.picker-calendar-months:before,.theme-dark .picker-modal.picker-modal-inline .toolbar~.picker-modal-inner .picker-calendar-months:before{background-color:#333}.photo-browser.theme-dark .navbar,.photo-browser.theme-dark .toolbar,.theme-dark .photo-browser .navbar,.theme-dark .photo-browser .toolbar,.theme-dark .view[data-page=photo-browser-slides] .navbar,.theme-dark .view[data-page=photo-browser-slides] .toolbar,.view[data-page=photo-browser-slides].theme-dark .navbar,.view[data-page=photo-browser-slides].theme-dark .toolbar{background:rgba(19,19,19,.95)}.theme-dark .tabbar a:not(.active){color:#fff}.page.theme-dark,.panel.theme-dark,.theme-dark .content,.theme-dark .login-screen-content,.theme-dark .page,.theme-dark .panel{background-color:#222426;color:#ddd}.theme-dark .content-block-title{color:#fff}.content-block.theme-dark,.theme-dark .content-block{color:#bbb}.theme-dark .content-block-inner{background:#1c1d1f;color:#ddd}.theme-dark .content-block-inner:before{background-color:#393939}.theme-dark .content-block-inner:after{background-color:#393939}.list-block.theme-dark ul,.theme-dark .list-block ul{background:#1c1d1f}.list-block.theme-dark ul:before,.theme-dark .list-block ul:before{background-color:#393939}.list-block.theme-dark ul:after,.theme-dark .list-block ul:after{background-color:#393939}.list-block.theme-dark.inset ul,.theme-dark .list-block.inset ul{background:#1c1d1f}.list-block.theme-dark.notifications>ul,.theme-dark .list-block.notifications>ul{background:0 0}.list-block.theme-dark .item-subtitle,.list-block.theme-dark .item-title,.theme-dark .list-block .item-subtitle,.theme-dark .list-block .item-title{color:#bbb}.theme-dark .card{background:#1c1d1f}.theme-dark .card-header:after{background-color:#393939}.theme-dark .card-footer{color:#bbb}.theme-dark .card-footer:before{background-color:#393939}.theme-dark li.sorting{background-color:#29292f}.theme-dark .swipeout-actions-left a,.theme-dark .swipeout-actions-right a{background-color:#444}.theme-dark .item-inner:after,.theme-dark .list-block ul ul li:last-child .item-inner:after{background-color:#393939}.theme-dark .item-after{color:#bbb}.theme-dark .item-link.active-state,.theme-dark label.label-checkbox.active-state,.theme-dark label.label-radio.active-state,html:not(.watch-active-state) .theme-dark .item-link:active,html:not(.watch-active-state) .theme-dark label.label-checkbox:active,html:not(.watch-active-state) .theme-dark label.label-radio:active{background-color:#29292f}.theme-dark .item-link.list-button:after{background-color:#393939}.theme-dark .list-block-label{color:#bbb}.theme-dark .item-divider,.theme-dark .list-group-title{background:#1a1a1a;color:#bbb}.theme-dark .item-divider:before,.theme-dark .list-group-title:before{background-color:#393939}.theme-dark .searchbar{background:#333}.theme-dark .searchbar:after{background-color:#333}.list-block.theme-dark input[type=text],.list-block.theme-dark input[type=password],.list-block.theme-dark input[type=email],.list-block.theme-dark input[type=tel],.list-block.theme-dark input[type=url],.list-block.theme-dark input[type=date],.list-block.theme-dark input[type=datetime-local],.list-block.theme-dark input[type=number],.list-block.theme-dark select,.list-block.theme-dark textarea,.theme-dark .list-block input[type=text],.theme-dark .list-block input[type=password],.theme-dark .list-block input[type=email],.theme-dark .list-block input[type=tel],.theme-dark .list-block input[type=url],.theme-dark .list-block input[type=date],.theme-dark .list-block input[type=datetime-local],.theme-dark .list-block input[type=number],.theme-dark .list-block select,.theme-dark .list-block textarea{color:#fff}.theme-dark .label-switch .checkbox{background-color:#393939}.theme-dark .label-switch .checkbox:before{background-color:#1c1d1f}.theme-dark .range-slider input[type=range]:after{background:#1c1d1f}.theme-dark .buttons-tab{background:#131313}.theme-dark .buttons-tab .tab-link:not(.active){color:#ddd}.navbar.theme-white,.subnavbar.theme-white,.theme-white .navbar,.theme-white .subnavbar{background-color:#fff;color:#000}.navbar.theme-white:after,.subnavbar.theme-white:after,.theme-white .navbar:after,.theme-white .subnavbar:after{background-color:#ddd}.theme-white .toolbar,.toolbar.theme-white{background-color:#fff;color:#000}.theme-white .toolbar:before,.toolbar.theme-white:before{background-color:#ddd}.theme-white .picker-modal.picker-modal-inline .picker-center-highlight:before{background-color:#ddd}.theme-white .picker-modal.picker-modal-inline .picker-center-highlight:after{background-color:#ddd}.theme-white .picker-modal.picker-modal-inline .picker-calendar-row:after,.theme-white .picker-modal.picker-modal-inline .picker-calendar-week-days:after{background-color:#ddd}.theme-white .picker-modal.picker-modal-inline .picker-calendar-week-days~.picker-calendar-months:before,.theme-white .picker-modal.picker-modal-inline .toolbar~.picker-modal-inner .picker-calendar-months:before{background-color:#ddd}.photo-browser.theme-white .navbar,.photo-browser.theme-white .toolbar,.theme-white .photo-browser .navbar,.theme-white .photo-browser .toolbar,.theme-white .view[data-page=photo-browser-slides] .navbar,.theme-white .view[data-page=photo-browser-slides] .toolbar,.view[data-page=photo-browser-slides].theme-white .navbar,.view[data-page=photo-browser-slides].theme-white .toolbar{background:rgba(255,255,255,.95)}.theme-white .tabbar a:not(.active){color:#777}.page.theme-white,.panel.theme-white,.theme-white .login-screen-content,.theme-white .page,.theme-white .panel{background-color:#fff;color:#000}.theme-white .content-block-title{color:#777}.content-block.theme-white,.theme-white .content-block{color:#777}.theme-white .content-block-inner{background:#fafafa;color:#000}.theme-white .content-block-inner:after{background-color:#ddd}.theme-white .content-block-inner:before{background-color:#ddd}.list-block.theme-white ul,.theme-white .list-block ul{background:#fff}.list-block.theme-white ul:after,.theme-white .list-block ul:after{background-color:#ddd}.list-block.theme-white ul:before,.theme-white .list-block ul:before{background-color:#ddd}.list-block.theme-white.inset ul,.theme-white .list-block.inset ul{background:#fafafa}.list-block.theme-white.notifications>ul,.theme-white .list-block.notifications>ul{background:0 0}.theme-white li.sorting{background-color:#eee}.theme-white .swipeout-actions-left a,.theme-white .swipeout-actions-right a{background-color:#c7c7cc}.theme-white .item-inner,.theme-white .list-block ul ul li:last-child .item-inner{border-color:#ddd}.theme-white .item-inner:after,.theme-white .list-block ul ul li:last-child .item-inner:after{background-color:#ddd}.theme-white .item-after{color:#8e8e93}.theme-white .item-link.active-state,.theme-white label.label-checkbox.active-state,.theme-white label.label-radio.active-state,html:not(.watch-active-state) .theme-white .item-link:active,html:not(.watch-active-state) .theme-white label.label-checkbox:active,html:not(.watch-active-state) .theme-white label.label-radio:active{background-color:#eee}.theme-white .item-link.list-button:after{background-color:#ddd}.theme-white .list-block-label{color:#777}.theme-white .item-divider,.theme-white .list-group-title{background:#f7f7f7;color:#777}.theme-white .item-divider:before,.theme-white .list-group-title:before{background-color:#ddd}.theme-white .searchbar{background:#c9c9ce}.theme-white .searchbar:after{background-color:#b4b4b4}.list-block.theme-white input[type=text],.list-block.theme-white input[type=password],.list-block.theme-white input[type=email],.list-block.theme-white input[type=tel],.list-block.theme-white input[type=url],.list-block.theme-white input[type=date],.list-block.theme-white input[type=datetime-local],.list-block.theme-white input[type=number],.list-block.theme-white select,.list-block.theme-white textarea,.theme-white .list-block input[type=text],.theme-white .list-block input[type=password],.theme-white .list-block input[type=email],.theme-white .list-block input[type=tel],.theme-white .list-block input[type=url],.theme-white .list-block input[type=date],.theme-white .list-block input[type=datetime-local],.theme-white .list-block input[type=number],.theme-white .list-block select,.theme-white .list-block textarea{color:#777}.theme-white .label-switch .checkbox{background-color:#e5e5e5}.theme-white .label-switch .checkbox:before{background-color:#fff}.theme-white .range-slider input[type=range]:after{background:#fff} \ No newline at end of file diff --git a/fangija-zsyf/css/theme-blue.css b/fangija-zsyf/css/theme-blue.css new file mode 100644 index 0000000..27f8f8b --- /dev/null +++ b/fangija-zsyf/css/theme-blue.css @@ -0,0 +1,275 @@ +/* CSS Document */ + +/* === blue layout === */ +.theme { + background-color: #18a2ff; +} +.theme .bar{ + background-color: #131313; + color: #fff; +} +.theme .bar:after, +.bar.theme:after { + background-color: #333; +} +.theme .title { + color: #fff; +} +.theme .bar-nav, +.bar-nav.theme{ + background-color: #18a2ff; + color: #fff; +} +.theme .bar-nav:before, +.bar-nav.theme:before, + background-color: #333; +} +.theme .tab-item { + color: #fff; +} +.theme .tab-item.active { + color: #18a2ff; +} +.theme .picker-calendar-week-days { + color: #fff; + background-color: #131313; +} +.theme .picker-modal.picker-modal-inline .picker-center-highlight:before { + background-color: #333; +} +.theme .picker-modal.picker-modal-inline .picker-center-highlight:after { + background-color: #333; +} +.theme .picker-modal.picker-modal-inline .picker-item.picker-selected { + color: #fff; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-week-days { + color: #fff; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day { + color: #fff; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-prev, +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-next { + color: #777; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-disabled { + color: #555; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-today span { + background: #444; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-week-days:after, +.theme .picker-modal.picker-modal-inline .picker-calendar-row:after { + background-color: #333; +} +.theme .picker-modal.picker-modal-inline .toolbar ~ .picker-modal-inner .picker-calendar-months:before, +.theme .picker-modal.picker-modal-inline .picker-calendar-week-days ~ .picker-calendar-months:before { + background-color: #333; +} +.theme .photo-browser .navbar, +.photo-browser.theme .navbar, +.theme .view[data-page="photo-browser-slides"] .navbar, +.view[data-page="photo-browser-slides"].theme .navbar, +.theme .photo-browser .toolbar, +.photo-browser.theme .toolbar, +.theme .view[data-page="photo-browser-slides"] .toolbar, +.view[data-page="photo-browser-slides"].theme .toolbar { + background: rgba(19, 19, 19, 0.95); +} +.theme .tabbar a:not(.active) { + color: #fff; +} +.theme .page, +.theme .login-screen-content, +.page.theme, +.theme .panel, +.panel.theme, +.theme .content { + background-color: #222426; + color: #ddd; +} +.theme .content-block-title { + color: #fff; +} +.theme .content-block, +.content-block.theme { + color: #bbb; +} +.theme .content-block-inner { + background: #1c1d1f; + color: #ddd; +} +.theme .content-block-inner:before { + background-color: #393939; +} +.theme .content-block-inner:after { + background-color: #393939; +} +.theme .list-block ul, +.list-block.theme ul { +/* background: #1c1d1f;*/ +} +.theme .list-block ul:before, +.list-block.theme ul:before { + background-color: #393939; +} +.theme .list-block ul:after, +.list-block.theme ul:after { + background-color: #393939; +} +.theme .list-block.inset ul, +.list-block.theme.inset ul { + background: #1c1d1f; +} +.theme .list-block.notifications > ul, +.list-block.theme.notifications > ul { + background: none; +} +.theme .list-block .item-title, +.list-block.theme .item-title, +.theme .list-block .item-subtitle, +.list-block.theme .item-subtitle { + color: #bbb; +} +.theme .card { + background: #1c1d1f; +} +.theme .card-header:after { + background-color: #393939; +} +.theme .card-footer { + color: #bbb; +} +.theme .card-footer:before { + background-color: #393939; +} +.theme li.sorting { + background-color: #29292f; +} +.theme .swipeout-actions-left a, +.theme .swipeout-actions-right a { + background-color: #444; +} +.theme .item-inner:after, +.theme .list-block ul ul li:last-child .item-inner:after { + background-color: #393939; +} +.theme .item-after { + color: #bbb; +} +html:not(.watch-active-state) .theme .item-link:active, +html:not(.watch-active-state) .theme label.label-checkbox:active, +html:not(.watch-active-state) .theme label.label-radio:active, +.theme .item-link.active-state, +.theme label.label-checkbox.active-state, +.theme label.label-radio.active-state { +/* background-color: #29292f;*/ +} +.theme .item-link.list-button:after { + background-color: #393939; +} +.theme .list-block-label { + color: #bbb; +} +.theme .item-divider, +.theme .list-group-title { + background: #1a1a1a; + color: #bbb; +} +.theme .item-divider:before, +.theme .list-group-title:before { + background-color: #393939; +} +.theme .searchbar { + background: #333; +} +.theme .searchbar:after { + background-color: #333; +} +.theme .list-block input[type="text"], +.list-block.theme input[type="text"], +.theme .list-block input[type="password"], +.list-block.theme input[type="password"], +.theme .list-block input[type="email"], +.list-block.theme input[type="email"], +.theme .list-block input[type="tel"], +.list-block.theme input[type="tel"], +.theme .list-block input[type="url"], +.list-block.theme input[type="url"], +.theme .list-block input[type="date"], +.list-block.theme input[type="date"], +.theme .list-block input[type="datetime-local"], +.list-block.theme input[type="datetime-local"], +.theme .list-block input[type="number"], +.list-block.theme input[type="number"], +.theme .list-block select, +.list-block.theme select, +.theme .list-block textarea, +.list-block.theme textarea { + color: #fff; +} +.theme .label-switch .checkbox { + background-color: #393939; +} +.theme .label-switch .checkbox:before { + background-color: #1c1d1f; +} +.theme .range-slider input[type="range"]:after { + background: #1c1d1f; +} +.theme .buttons-tab { + background: #131313; +} +.theme .buttons-tab .tab-link:not(.active) { + color: #ddd; +} + +.button.theme{background:none;border-color:#18a2ff;color:#18a2ff;} +.button.button-fill.theme{background:#18a2ff;color:#fff;} + +.bar-nav.theme .button-nav{background:#18a2ff;} +.bar-nav.theme .icon.icon-left{color:#fff;} + +.bar .button-link.theme{background:none;color:#18a2ff;} +.bar-tab.theme{background:#f7f7f8;} +.bar-tab.theme .tab-item{color:#999;} +.bar-tab.theme .tab-item.active{color:#18a2ff;} +.bar-tab.theme .tab-item:active{color:#18a2ff;} + +.buttons-row.theme{background:none;} +.buttons-row.theme .button{background:#fbfbfb;border-color:#ccc;color:#666;} +.buttons-row.theme .button.active{background:#18a2ff;border-color:#18a2ff;color:#fff;} + +.selectBox div.theme{background:none;} +.selectBox div.theme.active{color:#18a2ff;} +.selectBox div.theme.active a{color:#18a2ff;} +.selectContent .list-block ul li .item-title.theme{background:none;} +.selectContent .list-block ul li .item-title.theme.active{color:#18a2ff;} + +.buttons-tab.theme{background:#fff;} +.buttons-tab.theme .button.active{border-color:#18a2ff;color:#18a2ff;} +.buttons-tab01.theme .button.active{border-right-color:#e7e7e7;} + +.totalValue01.theme{background:none;} +.totalValue01.theme div.addPropertyBox .addProperty{border-color:#18a2ff;color:#18a2ff;} + +.list-block .item-after span.sendCode.theme{background:none;border-color:#18a2ff;color:#18a2ff;} +.list-block .item-after span.waiting.theme{background:#18a2ff;border-color:#18a2ff;color:#fff;} + +.topic .topicTitle em.theme{background:none;color:#18a2ff;} + +.topic .topicTitle > span.inputBox input{background:none;color:#18a2ff;} +.topic .topicTitle > span.inputBox font{background:none;color:#18a2ff;} + +.list-block.theme ul{background:#18a2ff;} +.theme .list-block ul:before, .list-block.theme ul:before{height:0;} +.theme .list-block ul:after, .list-block.theme ul:after{height:0;} +.list-block.theme .item-link:active{background:#18a2ff;} +.list-block.theme p{color:#fff;} +.list-block.theme .item-link .item-inner{background-image:#fff;} + +input[type=range].theme{background:-webkit-linear-gradient(#18a2ff, #18a2ff) no-repeat;} + + + diff --git a/fangija-zsyf/css/theme-orange.css b/fangija-zsyf/css/theme-orange.css new file mode 100644 index 0000000..d9a8b4d --- /dev/null +++ b/fangija-zsyf/css/theme-orange.css @@ -0,0 +1,281 @@ +/* CSS Document */ + +/* === orange layout === */ +.theme { + background-color: #F18D00; +} +.theme .bar{ + background-color: #131313; + color: #fff; +} +.theme .bar:after, +.bar.theme:after { + background-color: #333; +} +.theme .title { + color: #fff; +} +.theme .bar-nav, +.bar-nav.theme { + background-color: #F18D00; + color: #fff; +} +.theme .bar-nav:before, +.bar-nav.theme:before { + background-color: #333; +} +.theme .tab-item { + color: #fff; +} +.theme .tab-item.active { + color: #F18D00; +} +.theme .picker-calendar-week-days { + color: #fff; + background-color: #131313; +} +.theme .picker-modal.picker-modal-inline .picker-center-highlight:before { + background-color: #333; +} +.theme .picker-modal.picker-modal-inline .picker-center-highlight:after { + background-color: #333; +} +.theme .picker-modal.picker-modal-inline .picker-item.picker-selected { + color: #fff; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-week-days { + color: #fff; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day { + color: #fff; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-prev, +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-next { + color: #777; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-disabled { + color: #555; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-day.picker-calendar-day-today span { + background: #444; +} +.theme .picker-modal.picker-modal-inline .picker-calendar-week-days:after, +.theme .picker-modal.picker-modal-inline .picker-calendar-row:after { + background-color: #333; +} +.theme .picker-modal.picker-modal-inline .toolbar ~ .picker-modal-inner .picker-calendar-months:before, +.theme .picker-modal.picker-modal-inline .picker-calendar-week-days ~ .picker-calendar-months:before { + background-color: #333; +} +.theme .photo-browser .navbar, +.photo-browser.theme .navbar, +.theme .view[data-page="photo-browser-slides"] .navbar, +.view[data-page="photo-browser-slides"].theme .navbar, +.theme .photo-browser .toolbar, +.photo-browser.theme .toolbar, +.theme .view[data-page="photo-browser-slides"] .toolbar, +.view[data-page="photo-browser-slides"].theme .toolbar { + background: rgba(19, 19, 19, 0.95); +} +.theme .tabbar a:not(.active) { + color: #fff; +} +.theme .page, +.theme .login-screen-content, +.page.theme, +.theme .panel, +.panel.theme, +.theme .content { + background-color: #222426; + color: #ddd; +} +.theme .content-block-title { + color: #fff; +} +.theme .content-block, +.content-block.theme { + color: #bbb; +} +.theme .content-block-inner { + background: #1c1d1f; + color: #ddd; +} +.theme .content-block-inner:before { + background-color: #393939; +} +.theme .content-block-inner:after { + background-color: #393939; +} +.theme .list-block ul, +.list-block.theme ul { +/* background: #1c1d1f;*/ +} +.theme .list-block ul:before, +.list-block.theme ul:before { + background-color: #393939; +} +.theme .list-block ul:after, +.list-block.theme ul:after { + background-color: #393939; +} +.theme .list-block.inset ul, +.list-block.theme.inset ul { + background: #1c1d1f; +} +.theme .list-block.notifications > ul, +.list-block.theme.notifications > ul { + background: none; +} +.theme .list-block .item-title, +.list-block.theme .item-title, +.theme .list-block .item-subtitle, +.list-block.theme .item-subtitle { + color: #bbb; +} +.theme .card { + background: #1c1d1f; +} +.theme .card-header:after { + background-color: #393939; +} +.theme .card-footer { + color: #bbb; +} +.theme .card-footer:before { + background-color: #393939; +} +.theme li.sorting { + background-color: #29292f; +} +.theme .swipeout-actions-left a, +.theme .swipeout-actions-right a { + background-color: #444; +} +.theme .item-inner:after, +.theme .list-block ul ul li:last-child .item-inner:after { + background-color: #393939; +} +.theme .item-after { + color: #bbb; +} +html:not(.watch-active-state) .theme .item-link:active, +html:not(.watch-active-state) .theme label.label-checkbox:active, +html:not(.watch-active-state) .theme label.label-radio:active, +.theme .item-link.active-state, +.theme label.label-checkbox.active-state, +.theme label.label-radio.active-state { +/* background-color: #29292f;*/ +} +.theme .item-link.list-button:after { + background-color: #393939; +} +.theme .list-block-label { + color: #bbb; +} +.theme .item-divider, +.theme .list-group-title { + background: #1a1a1a; + color: #bbb; +} +.theme .item-divider:before, +.theme .list-group-title:before { + background-color: #393939; +} +.theme .searchbar { + background: #333; +} +.theme .searchbar:after { + background-color: #333; +} +.theme .list-block input[type="text"], +.list-block.theme input[type="text"], +.theme .list-block input[type="password"], +.list-block.theme input[type="password"], +.theme .list-block input[type="email"], +.list-block.theme input[type="email"], +.theme .list-block input[type="tel"], +.list-block.theme input[type="tel"], +.theme .list-block input[type="url"], +.list-block.theme input[type="url"], +.theme .list-block input[type="date"], +.list-block.theme input[type="date"], +.theme .list-block input[type="datetime-local"], +.list-block.theme input[type="datetime-local"], +.theme .list-block input[type="number"], +.list-block.theme input[type="number"], +.theme .list-block select, +.list-block.theme select, +.theme .list-block textarea, +.list-block.theme textarea { + color: #fff; +} +.theme .label-switch .checkbox { + background-color: #393939; +} +.theme .label-switch .checkbox:before { + background-color: #1c1d1f; +} +.theme .range-slider input[type="range"]:after { + background: #1c1d1f; +} +.theme .buttons-tab { + background: #131313; +} +.theme .buttons-tab .tab-link:not(.active) { + color: #ddd; +} + +.button.theme{background:none;border-color:#F18D00;color:#F18D00;} +.button.button-fill.theme{background:#F18D00;color:#fff;} + +.priceRecovery .col-50 .button.theme{background:none;border-color:#F18D00;color:#F18D00;} + +.page > header.bar.theme{background:#F18D00;} +.bar .button-nav:active{color:#F18D00;} +.bar-nav.theme .icon.icon-left{color:#fff;} + +.bar .button-link.theme{background:none;color:#F18D00;} + +.bar-tab.theme{background:#fff;} +.bar-tab.theme .tab-item{color:#999;} +.bar-tab.theme .tab-item.active{color:#F18D00;} +.bar-tab.theme .tab-item:active{color:#F18D00;} + +.buttons-row.theme{background:none;} +.buttons-row.theme .button{border-color:#D7D7D7;color:#999;} +.buttons-row.theme .button.active{background:none;border-color:#F18D00;color:#F18D00;} +.buttons-row01.theme .button{color:#333;} + +.selectBox div.theme{background:none;} +.selectBox div.theme.active{color:#F18D00;} +.selectBox div.theme.active a{color:#F18D00;} +.selectContent .list-block ul li .item-title.theme{background:none;} +.selectContent .list-block ul li .item-title.theme.active{color:#F18D00;} + +.buttons-tab.theme{background:#fff;} +.buttons-tab.theme .button.active{border-color:#F18D00;color:#F18D00;} +.buttons-tab01.theme .button.active{border-right-color:#e7e7e7;} + +.totalValue01.theme{background:none;} +.totalValue01.theme div.addPropertyBox .addProperty{border-color:#F18D00;color:#F18D00;} + +.list-block .item-after span.sendCode.theme{background:none;border-color:#F18D00;color:#F18D00;} +.list-block .item-after span.waiting.theme{background:#F18D00;border-color:#F18D00;color:#fff;} + +.topic .topicTitle em.theme{background:none;color:#F18D00;} + +.topic .topicTitle > span.inputBox input{background:none;color:#F18D00;} +.topic .topicTitle > span.inputBox font{background:none;color:#F18D00;} + +.list-block.theme ul{background:#F18D00;} +.theme .list-block ul:before, .list-block.theme ul:before{height:0;} +.theme .list-block ul:after, .list-block.theme ul:after{height:0;} +.list-block.theme .item-link:active{background:#F18D00;} +.list-block.theme p{color:#fff;} +.list-block.theme .item-link .item-inner{background-image:#fff;} + +input[type=range].theme{background:-webkit-linear-gradient(#F18D00, #F18D00) no-repeat;} + +.city-list p.active,.city-list p:active{color:#F18D00;} +.city-list01 div p.active,.city-list01 div p:active{background:#F18D00;border:solid 1px #F18D00;color:#fff;} + diff --git a/fangija-zsyf/doc/accelerometer.html b/fangija-zsyf/doc/accelerometer.html new file mode 100644 index 0000000..e480c0f --- /dev/null +++ b/fangija-zsyf/doc/accelerometer.html @@ -0,0 +1,135 @@ + + + + + + + +Hello H5+ + + + + +
+

accelerometer

+

Accelerometer模块管理设备加速度传感器,用于获取设备加速度信息,包括x(屏幕水平方向)、y(垂直屏幕水平方向)、z(垂直屏幕平面方向)三个方向的加速度信息。通过plus.accelerometer获取设备加速度传感器管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Accelerometer": {
+		"description": "加速度传感器"
+	}
+}
+}
+			
+

Acceleration

+

设备加速度信息对象

+
+interface Acceleration {
+	readonly attribute Number xAxis;
+	readonly attribute Number yAxis;
+	readonly attribute Number zAxis;  
+}
+				
+

说明:

+

+ JSON对象,保存获取设备的加速度信息,包括x、y、z三个方向的加速度信息。 +

+

属性:

+ +

AccelerometerOption

+

监听设备加速度感应器参数

+
+interface Acceleration {
+	readonly attribute DOMString frequency;
+}
+				
+

说明:

+

+ JSON对象,用于设置获取设备加速度信息的参数。 +

+

属性:

+ +

AccelerometerSuccessCallback

+

获取设备加速度信息成功的回调函数

+
+void onSuccess( acceleration ) {
+	// Get acceleration code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

AccelerometerErrorCallback

+

获取设备加速度信息失败的回调函数

+
+function void onAccelerometerError( Exception error ) {
+	// Handle error
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/android.html b/fangija-zsyf/doc/android.html new file mode 100644 index 0000000..8a85332 --- /dev/null +++ b/fangija-zsyf/doc/android.html @@ -0,0 +1,101 @@ + + + + + + + +Hello H5+ + + + + +
+

android

+

Native.js for Android封装一条通过JS语法直接调用Native Java接口通道,通过plus.android可调用几乎所有的系统API。

+

方法:

+ +

对象:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Invocation": {
+		"description": "Native.js"
+	}
+}
+}
+			
+

ClassObject

+

Java类对象

+
+interface ClassObject {
+	// ...
+	function Object plusGetAttribute( String name );
+	function Object plusSetAttribute( String name, Object value );
+	// ...
+}
+				
+

说明:

+

+ Java类对象,可通过其属性获取类的常量,可通过方法来操作类的静态变量和方法,也通过new方法来创建类的实例对象。 + 对于类的常量,则直接通过.后面跟随常量名称调用即可。 +

+

方法:

+ +

InstanceObject

+

Java实例对象

+
+interface InstanceObject {
+	// ...
+	function Object plusGetAttribute( String name );
+	function Object plusSetAttribute( String name, Object value );
+	// ...
+}
+				
+

说明:

+

+ Java实例对象,可通过其方法来操作实例的变量和方法。 + 注意:必须通过plusGetAttribute()方法读取实例对象的属性值,通过plusSetAttribute()方法设置实例对象的属性值。 +

+

方法:

+ +

+
+ diff --git a/fangija-zsyf/doc/audio.html b/fangija-zsyf/doc/audio.html new file mode 100644 index 0000000..cbd3ffd --- /dev/null +++ b/fangija-zsyf/doc/audio.html @@ -0,0 +1,196 @@ + + + + + + + +Hello H5+ + + + + +
+

audio

+

Audio模块用于提供音频的录制和播放功能,可调用系统的麦克风设备进行录音操作,也可调用系统的扬声器设备播放音频文件。通过plus.audio获取音频管理对象。

+

常量:

+ +

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Audio": {
+		"description": "音频"
+	}
+}
+}
+			
+

AudioRecorder

+

录音对象

+
+interface AudioRecorder {
+	readonly attribute String[] supportedSamplerates;
+	readonly attribute String[] supportedFormats;
+	function record( option, successCB, errorCB );
+	function stop();
+}
+				
+

属性:

+ +

方法:

+ +

AudioPlayer

+

音频播放对象

+
+interface AudioPlayer {
+	function void play( successCB, errorCB );
+	function void pause();
+	function void resume();
+	function void stop();
+	function void seekTo( position );
+	function Number getDuration();
+	function Number getPosition();
+	function void setRoute( route );
+}
+				
+

说明:

+

+ 音频播放对象,用于音频文件的播放。不能通过new方法直接创建,只能通过audio.createPlayer方法创建。 +

+

方法:

+ +

RecordOption

+

JSON对象,调用麦克风设备进行录音的参数

+

属性:

+ +

RecordSuccessCallback

+

录音操作成功回调

+
+void onSuccess( recordFile ) {
+	// Get record file code.
+}
+				
+

说明:

+

麦克风录音操作成功的回调函数,在录音操作完成调用stop()方法时调用。

+

参数:

+ +

返回值:

+void + : 无

PlaySuccessCallback

+

播放音频文件操作成功回调

+
+void onCompleted() {
+	// Play audio file completed code.
+}
+				
+

说明:

+

+ 音频播放操作成功的回调函数,在音频播放完成或调用stop()方法时触发。 +

+

参数:

+

无

+

返回值:

+void + : 无

AudioErrorCallback

+

音频操作失败回调

+
+void onError( error ) {
+	// Handle audio error
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/barcode.html b/fangija-zsyf/doc/barcode.html new file mode 100644 index 0000000..20beb38 --- /dev/null +++ b/fangija-zsyf/doc/barcode.html @@ -0,0 +1,252 @@ + + + + + + + +Hello H5+ + + + + +
+

barcode

+

Barcode模块管理条码扫描,提供常见的条码(二维码及一维码)的扫描识别功能,可调用设备的摄像头对条码图片扫描进行数据输入。通过plus.barcode可获取条码码管理对象。

+

常量:

+ +

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

permissions

+
+{
+// ...
+"permissions":{
+	// ...
+	"Barcode": {
+		"description": "二维码"
+	}
+}
+}
+			
+

Barcode

+

条码扫描识别控件对象

+
+interface plus.barcode.Barcode {
+	// Methods
+	function void start( options );
+	function void cancel();
+	function void close();
+	function void setFlash( open );
+
+	// Events
+	function void onmarked();
+	function void onerror();
+}
+				
+

说明:

+

+Barcode对象表示条码识别控件对象,在窗口中显示条码识别控件,使用此对象可自定义条码识别界面。 +

+

构造:

+ +

方法:

+ +

事件:

+ +

BarcodeStyles

+

条码扫描控件样式参数

+
+interface plus.barcode.BarcodeStyles {
+	attribute String frameColor;
+	attribute String scanbarColor;
+	attribute String background;
+}
+				
+

说明:

+

+ 设置条码识别控件的样式,如扫描框、扫描条的颜色等。 +

+

属性:

+ +

BarcodeOptions

+

条码识别控件扫描参数

+
+interface plus.barcode.BarcodeOptions {
+	attribute Boolean conserve;
+	attribute String filename;
+	attribute Boolean vibrate;
+	attribute String sound;
+}
+				
+

说明:

+

+ 设置条码识别控件扫描条码的参数,如是否保存扫描成功时的截图等。 +

+

属性:

+ +

BarcodeSuccessCallback

+

条码识别成功的回调函数

+
+void BarcodeSuccessCallback ( type, code, file ) {
+	// Barcode success code
+}
+				
+

说明:

+

当获取条码识别成功时的回调函数,用于返回识别成功的条码数据。

+

参数:

+ +

返回值:

+void + : 无

BarcodeErrorCallback

+

条码识别错误的回调函数

+
+void BarcodeErrorCallback(error){
+	// Error 
+	var code = error.code; 			// 错误编码
+	var message = error.message;	// 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/cache.html b/fangija-zsyf/doc/cache.html new file mode 100644 index 0000000..57b7ba8 --- /dev/null +++ b/fangija-zsyf/doc/cache.html @@ -0,0 +1,78 @@ + + + + + + + +Hello H5+ + + + + +
+

cache

+

Cache模块用于管理应用缓存,通过plus.cache获取缓存管理对象。

+

方法:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Cache": {
+		"description": "应用缓存"
+	}
+}
+}
+			
+

CacheClearCallback

+

清除应用缓存完成回调

+
+void onCompleted() {
+	// Clear cache completed code.
+}
+				
+

说明:

+

清除应用缓存回调函数,调用plus.cache.clear清除缓存操作时作为参数传入,在清除缓存操作完成时触发回调。

+

参数:

+ +

返回值:

+void + : 无

CacheCalculateCallback

+

计算应用使用缓存容量回调

+
+void onCompleted( size ) {
+	// Calculate cache complete code.
+}
+				
+

说明:

+

计算应用当前使用缓存容量回调函数,调用plus.cache.calculate计算缓存容量操作时作为参数传入,在计算缓存容量大小完成时触发回调。

+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/camera.html b/fangija-zsyf/doc/camera.html new file mode 100644 index 0000000..d451b46 --- /dev/null +++ b/fangija-zsyf/doc/camera.html @@ -0,0 +1,183 @@ + + + + + + + +Hello H5+ + + + + +
+

camera

+

Camera模块管理设备的摄像头,可用于拍照、摄像操作,通过plus.camera获取摄像头管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Camera": {
+		"description": "摄像头"
+	}
+}
+}
+			
+

Camera

+

摄像头对象

+
+interface Camera {
+	readonly attribute String[] supportedImageResolutions;
+	readonly attribute String[] supportedVideoResolutions;
+	readonly attribute String[] supportedImageFormats;
+	readonly attribute String[] supportedVideoFormats;
+	function void captureImage( successCB, errorCB, option );
+	function void startVideoCapture( successCB, errorCB, option );
+	function void stopVideoCapture();
+}
+				
+

属性:

+ +

方法:

+ +

CameraOption

+

JSON对象,调用摄像头的参数

+
+interface CameraOption {
+	attribute String filename;
+	attribute String format;
+	attribute String index;
+	attribute PopPosition popover;
+}
+				
+

属性:

+ +

PopPosition

+

JSON对象,弹出拍照或摄像界面指示位置

+

属性:

+ +

CameraSuccessCallback

+

调用摄像头操作成功回调

+
+void onSuccess( capturedFile ) {
+	// Caputre image/video file code.
+}
+				
+

说明:

+

调用摄像头操作成功的回调函数,在拍照或摄像操作成功时调用,用于返回图片或视频文件的路径。

+

参数:

+ +

返回值:

+void + : 无

CameraErrorCallback

+

摄像头操作失败回调

+
+void onError( error ) {
+	// Handle camera error
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/console.html b/fangija-zsyf/doc/console.html new file mode 100644 index 0000000..d1b3cb9 --- /dev/null +++ b/fangija-zsyf/doc/console.html @@ -0,0 +1,44 @@ + + + + + + + +Hello H5+ + + + + +
+

console

+

Console模块用于跟踪调试的API,可根据调试需求输出日志,协助开发人员定位业务逻辑问题。

+

方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Console": {
+		"description": "日志,跟踪调试输出日志信息"
+	}
+}
+}
+			
+

+
+ diff --git a/fangija-zsyf/doc/contacts.html b/fangija-zsyf/doc/contacts.html new file mode 100644 index 0000000..c67900b --- /dev/null +++ b/fangija-zsyf/doc/contacts.html @@ -0,0 +1,407 @@ + + + + + + + +Hello H5+ + + + + +
+

contacts

+

Contacts模块管理系统通讯录,用于可对系统通讯录进行增、删、改、查等操作。通过plus.contacts获取系统通讯录管理对象。

+

常量:

+ +

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Contacts": {
+		"description": "通讯录,访问系统联系人"
+	}
+}
+}
+			
+

AddressBook

+

通讯录对象

+
+interface AddressBook {
+	function Contact create();
+	function void find( contactFields, successCB, errorCB, findOptions );
+}
+				
+

说明:

+

通讯录管理对象,可对系统通讯录进行联系人的增、删、改、查操作。

+

方法:

+ +

Contact

+

联系人对象

+
+interface Contact {
+	readonly attribute String id;
+	attribute String displayName;
+	attribute ContactName name;
+	attribute String nickname;
+	attribute ContackField[] phoneNumbers;
+	attribute ContactField[] emails;
+	attribute ContactAddress[] addresses;
+	attribute ContactField[] ims;
+	attribute ContactOriganization[] organizations;
+	attribute Date birthday;
+	attribute String note;
+	attribute ContactField[] photos;
+	attribute ContactField[] categories;
+	attribute ContactField[] urls;
+	function Contact clone();
+	function void remove( successCB, errorCB );
+	function void save( successCB, errorCB );
+}
+				
+

说明:

+

联系人对象,包括联系人的各种信息,如名称、电话号码、地址等。也包括新增、删除联系人的操作方法。

+

属性:

+ +

方法:

+ +

ContactField

+

JSON对象,联系人域数据对象

+
+interface ContactField {
+	attribute String type;
+	attribute String value;
+	attribute Boolean preferred;
+}
+				
+

说明:

+

联系人域数据对象,保存联系人特定域信息。

+

属性:

+ +

ContactName

+

JSON对象,联系人名称对象

+
+interface ContactName {
+	attribute String formatted;
+	attribute String familyName;
+	attribute String givenName;
+	attribute String middleName;
+	attribute String honorificPrefix;
+	attribute String honorificSuffix;
+}
+				
+

说明:

+

联系人名称对象,保存联系人名称信息,如姓、名等。

+

属性:

+ +

ContactAddress

+

JSON对象,联系人地址对象

+
+interface ContactAddress {
+	attribute String type;
+	attribute String formatted;
+	attribute String streetAddress;
+	attribute String locality;
+	attribute String region;
+	attribute String country;
+	attribute String postalCode;
+	attribute Boolean preferred;
+}
+				
+

说明:

+

联系人地址对象,保存联系人地址信息,如国家、省份、城市等。

+

属性:

+ +

ContactOrganization

+

JSON对象,联系人所属组织信息

+
+interface ContactOrganization {
+	attribute String type;
+	attribute String name;
+	attribute String department;
+	attribute String title;
+	attribute Boolean preferred;
+}
+				
+

属性:

+ +

ContactFindOption

+

JSON对象,查找联系人参数

+
+interface ContactFindOption {
+	attribute ContactFindFilte[] filter;
+	attribute Boolean multiple;
+}
+				
+

属性:

+ +

ContactFindFilter

+

JSON对象,联系人查找过滤器

+
+interface ContactFindFilter {
+	attribute String logic;
+	attribute String field;
+	attribute String value;
+}
+				
+

属性:

+ +

AddressBookSuccessCallback

+

获取通讯录操作成功回调函数

+
+void onSuccess( addressbook ){
+	// Code AddressBook here
+}
+				
+

参数:

+ +

返回值:

+void + : 无

FindSuccessCallback

+

查找联系人操作成功回调函数

+
+void onSuccess( contacts ){
+	// Find contact success.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

ContactsSuccessCallback

+

联系人操作成功回调函数

+
+void onSuccess(){
+	// Operate success
+}
+				
+

参数:

+ +

返回值:

+void + : 无

ContactsErrorCallback

+

联系人操作失败回调

+
+void onError( error ){
+	// Handle the error
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/device.html b/fangija-zsyf/doc/device.html new file mode 100644 index 0000000..ed7b9b3 --- /dev/null +++ b/fangija-zsyf/doc/device.html @@ -0,0 +1,142 @@ + + + + + + + +Hello H5+ + + + + +
+

device

+

Device模块管理设备信息,用于获取手机设备的相关信息,如IMEI、IMSI、型号、厂商等。通过plus.device获取设备信息管理对象。

+

属性:

+ +

方法:

+ +

对象:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Device": {
+		"description": "设备信息"
+	}
+}
+}
+			
+

screen

+

Screen模块管理设备屏幕信息

+

属性:

+ +

方法:

+ +

display

+

Display模块管理应用可使用的显示区域信息

+

属性:

+ +

networkinfo

+

Device模块用于获取网络信息

+

常量:

+ +

方法:

+ +

os

+

OS模块管理操作系统信息

+

属性:

+ +

+
+ diff --git a/fangija-zsyf/doc/downloader.html b/fangija-zsyf/doc/downloader.html new file mode 100644 index 0000000..6f076c9 --- /dev/null +++ b/fangija-zsyf/doc/downloader.html @@ -0,0 +1,310 @@ + + + + + + + +Hello H5+ + + + + +
+

downloader

+

Downloader模块管理网络文件下载任务,用于从服务器下载各种文件,并支持跨域访问操作。通过plus.downloader获取下载管理对象。Downloader下载使用HTTP的GET/POST方式请求下载文件,符合标准HTTP/HTTPS传输协议。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Downloader": {
+		"description": "文件下载,管理文件下载任务"
+	}
+}
+}
+			
+

Download

+

Download对象管理一个下载任务

+
+interface Download {
+	readonly attribute String id;
+	readonly attribute String url;
+	readonly attribute Number state;
+	readonly attribute DownloadOptions options;
+	readonly attribute String filename;
+	readonly attribute Number downloadedSize;
+	readonly attribute Number totalSize;
+	function void abort();
+	function void addEventListener( String event, function Callback listener, Boolean capture );
+	function String getAllResponseHeaders();
+	function String getResponseHeader( headerName );
+	function void pause();
+	function void resume();
+	function void setRequestHeader( String headerName, String headerValue );
+	function void start();
+}
+				
+

属性:

+ +

方法:

+ +

DownloadEvent

+

下载任务事件类型

+

常量:

+ +

DownloadState

+

下载任务状态

+

常量:

+ +

DownloadOptions

+

下载任务参数

+

说明:

+

+ 在创建下载任务时设置的参数,如设置下载任务使用的HTTP协议类型、优先级等。 +

+

属性:

+ +

DownloadCompletedCallback

+

下载任务完成时的回调

+
+vaoid onCompleted( Download download, Number status ) {
+	// Download file complete code
+}
+				
+

说明:

+

+ 下载任务完成时的回调函数,在下载任务完成时调用。 + 下载任务失败也将触发此回调。 +

+

参数:

+ +

返回值:

+void + : 无

DownloadStateChangedCallback

+

下载任务状态变化回调

+
+void onStateChanged( Download download, status ) {
+	// Download state changed code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

DownloadEnumerateCallback

+

枚举下载任务回调

+
+void onEnumerated( Download[] downloads ) {
+	// Enumerate success code
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/events.html b/fangija-zsyf/doc/events.html new file mode 100644 index 0000000..a36f241 --- /dev/null +++ b/fangija-zsyf/doc/events.html @@ -0,0 +1,96 @@ + + + + + + + +Hello H5+ + + + + +
+

Events

+

Events模块管理客户端事件,包括系统事件,如扩展API加载完毕、程序前后台切换等。

+

常量:

+ +

方法:

+ +

回调方法:

+ +

EventTrigCallback

+

事件触发回调函数

+
+				
+void onTrig(){
+	// Event trig code
+}
+				
+				
+

说明:

+

+ 指定事件触发时的回调函数,在指定的事件已经发生时调用。 +

+

参数:

+

无

+

返回值:

+void + : 无

ErrorEventTrigCallback

+

页面加载错误事件回调函数

+
+				
+void onErrorTrig(Event event){
+	// Event trig code
+	var url = event.url;  // 加载错误的页面路径,API中传入的url值
+	var href = event.href;  // 加载错误的页面完整路径,通常以“file://”开头的路径
+}
+				
+				
+

说明:

+

+ 当Webview窗口加载页面失败后打开错误页面时触发此事件。 +

+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/gallery.html b/fangija-zsyf/doc/gallery.html new file mode 100644 index 0000000..428dafe --- /dev/null +++ b/fangija-zsyf/doc/gallery.html @@ -0,0 +1,247 @@ + + + + + + + +Hello H5+ + + + + +
+

gallery

+

Gallery模块管理系统相册,支持从相册中选择图片或视频文件、保存图片或视频文件到相册等功能。通过plus.gallery获取相册管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Gallery": {
+		"description": "系统相册"
+	}
+}
+}
+			
+

GalleryOptions

+

JSON对象,从相册中选择文件的参数

+

属性:

+ +

GalleryFilter

+

相册选择文件过滤类型

+

属性:

+ +

PopPosition

+

JSON对象,弹出拍照或摄像界面指示位置

+

属性:

+ +

GalleryPickSuccessCallback

+

单选系统相册图片成功的回调

+
+void onSuccess( file ) {
+	// Success code
+}
+				
+

说明:

+

+ 系统相册中单选图片或视频文件成功的回调函数,在选择文件操作成功时调用。 +

+

参数:

+ +

返回值:

+void + : 无

GalleryMultiplePickSuccessCallback

+

多选系统相册图片成功的回调

+
+void onSuccess( event ) {
+	// Pick success
+	var files = event.files; // 保存多选的图片或视频文件路径
+}
+				
+

说明:

+

+ 系统相册中多选图片或视频文件成功的回调函数,在多选择文件操作成功时调用。 +

+

参数:

+ +

返回值:

+void + : 无

GallerySuccessCallback

+

操作系统相册成功的回调

+
+void onSuccess() {
+	// Success code
+}
+				
+

说明:

+

+ 系统相册操作成功的回调函数,在保存文件到系统相册操作成功时调用。 +

+

参数:

+

无

+

返回值:

+void + : 无

GalleryErrorCallback

+

系统相册操作失败的回调

+
+void onError( error ) {
+	// Handle error
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

说明:

+

+ 系统相册操作失败的回调函数,在选择或保存图片操作失败时调用。 +

+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/geolocation.html b/fangija-zsyf/doc/geolocation.html new file mode 100644 index 0000000..7ee0604 --- /dev/null +++ b/fangija-zsyf/doc/geolocation.html @@ -0,0 +1,340 @@ + + + + + + + +Hello H5+ + + + + +
+

geolocation

+

Geolocation模块管理设备位置信息,用于获取地理位置信息,如经度、纬度等。通过plus.geolocation可获取设备位置管理对象。虽然W3C已经提供标准API获取位置信息,但在某些平台存在差异或未实现,为了保持各平台的统一性,定义此规范接口获取位置信息。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Geolocation": {
+		"description": "位置信息"
+	}
+}
+}
+			
+

Position

+

JSON对象,设备位置信息数据

+
+interface Position {
+	readonly attribute Coordinates coords;
+	readonly attribute String coordsType;
+	readonly attribute Number timestamp;
+	readonly attribute Address address;
+	readonly attribute String addresses;
+}
+				
+

属性:

+ +

Address

+

JSON对象,地址信息

+
+interface Address {
+	readonly attribute String country;
+	readonly attribute String province;
+	readonly attribute String city;
+	readonly attribute String district;
+	readonly attribute String street;
+	readonly attribute String streetNum;
+	readonly attribute String poiName;
+	readonly attribute String postalCode;
+	readonly attribute String cityCode;
+}			
+				
+

属性:

+ +

Coordinates

+

JSON对象,地理坐标信息

+
+interface Coordinates {
+	readonly attribute double latitude;
+	readonly attribute double longitude;
+	readonly attribute double altitude;
+	readonly attribute double accuracy;
+	readonly attribute double altitudeAccuracy;
+	readonly attribute double heading;
+	readonly attribute double speed;
+}			
+				
+

属性:

+ +

PositionOptions

+

JSON对象,监听设备位置信息参数

+

属性:

+ +

GeolocationError

+

JSON对象,定位错误信息

+
+interface GeolocationError {
+	const Number PERMISSION_DENIED = 1;
+	const Number POSITION_UNAVAILABLE = 2;
+	const Number TIMEOUT = 3;
+	const Number UNKNOWN_ERROR = 4;
+	readonly attribute Number code;
+	readonly attribute String message;
+}			
+				
+

属性:

+ +

GeolocationSuccessCallback

+

获取设备位置信息成功的回调函数

+
+void onSuccess( position ) {
+	// Get Position code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

GeolocationErrorCallback

+

获取设备位置信息失败的回调函数

+
+function void onGeolocationError( GeolocationError error ) {
+	// Handle error
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/interface-orientation.html b/fangija-zsyf/doc/interface-orientation.html new file mode 100644 index 0000000..dc365b3 --- /dev/null +++ b/fangija-zsyf/doc/interface-orientation.html @@ -0,0 +1,24 @@ + + + + + + + +Hello H5+ + + + + +
+

InterfaceOrientation

+

获取应用的横竖屏信息

+

方法:

+ +

事件:

+ +

+
+ diff --git a/fangija-zsyf/doc/io.html b/fangija-zsyf/doc/io.html new file mode 100644 index 0000000..f900d23 --- /dev/null +++ b/fangija-zsyf/doc/io.html @@ -0,0 +1,567 @@ + + + + + + + +Hello H5+ + + + + +
+

io

+

IO模块管理本地文件系统,用于对文件系统的目录浏览、文件的读取、文件的写入等操作。通过plus.io可获取文件系统管理对象。

+

常量:

+ +

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"File": {
+		"description": "文件系统"
+	}
+}
+}
+			
+

DirectoryEntry

+

文件系统中的目录对象,用于管理特定的本地目录

+

属性:

+ +

方法:

+ +

DirectoryReader

+

读取目录信息对象,用于获取目录中包含的文件及子目录

+

方法:

+ +

File

+

文件系统中的文件数据对象,用于获取文件的数据

+

属性:

+ +

方法:

+ +

FileEntry

+

文件系统中的文件对象,用于管理特定的本地文件

+

属性:

+ +

方法:

+ +

FileReader

+

文件系统中的读取文件对象,用于获取文件的内容

+

说明:

+

+ FileReader对象是从设备文件系统读取文件FileReader对象是从设备文件系统读取文件的一种方式,文件以文本或者Base64编码的字符串形式读出来。 + 用户注册自己的事件监听器来接收loadstart、progress、load、loadend、error和abort事件。 +

+

构造:

+ +

常量:

+ +

属性:

+ +

方法:

+ +

事件:

+ +

FileWriter

+

文件系统中的写文件对象,用于写入文件内容

+

说明:

+

+ FileWriter对象是从设备文件系统写入文件FileWriter对象是从设备文件系统写入文件的一种方式,用户注册自己的事件监听器来接收writestart、progress、write、writeend、error和abort事件。 + 一个FileWriter对象是为单个文件的操作而创建。你可以使用该对象多次对相应文件进行写入操作。FileWriter维护该文件的指针位置及长度属性,这样你就可以寻找和写入文件的任何地方。 + 默认情况下,FileWriter从文件的开头开始写入(将覆盖现有数据)。FileWriter对象的seek方法可设置文件操作指定位置,如fw.seek(fw.length-1)写入操作就会从文件的末尾开始。 +

+

常量:

+ +

属性:

+ +

方法:

+ +

事件:

+ +

FileSystem

+

文件系统对象,用于管理特定本地文件目录

+

说明:

+

+ 文件系统对象表示一个应用可访问的根目录。name属性用于标识此根目录的名称,与LocalFileSystem中的文件系统类型一一对应。root属性为文件目录对象,用于实际操作文件系统,参考DirectoryEntry。 +

+

属性:

+ +

Flags

+

JSON对象,获取文件操作的参数

+

属性:

+ +

Metadata

+

JSON对象,保存文件或目录的状态信息对象

+

说明:

+

可通过DirectoryEntry或FileEntry对象的getMetaData方法获取

+

属性:

+ +

FileEvent

+

文件或目录操作事件对象

+

说明:

+

+ 所有文件或目录操作事件回调函数中都创建该对象的实例。 + 该对象从DOMEvent继承而来,可通过该其target属性获取事件触发的文件或目录操作对象。 +

+

属性:

+ +

URLType

+

文件路径类型

+

说明:

+

在文件系统中的文件路径需转换成URL格式,已方便runtime快速加载。

+

RelativeURL

+

相对路径URL

+

说明:

+

只能在扩展API中使用,相对于基座提供的特定目录,以“_”开头。

+

常量:

+ +

LocalURL

+

本地路径URL

+

说明:

+

+ 可在html页面中直接访问本地资源,以“file:///”开头,后面跟随系统的绝对路径。 + 如示例:“file:///D:/res/hello.html”。 +

+

RemoteURL

+

网络路径URL

+

说明:

+

+ 可在html页面中以网络资源模式访问本地资源,以“http://”开头,后面跟随相对路径。 + 如示例:“http://localhost:13131/_www/res/icon.png”,其中“_www”字段可支持类型与相对路径URL一致。 +

+

FileEventCallback

+

文件事件回调

+
+void onEvent( event ) {
+	// Event code.
+}
+				
+

说明:

+

+ 文件或目录操作回调事件。 + 通常在FileReader和FileWriter对象的事件函数中触发。 +

+

参数:

+ +

返回值:

+void + : 无

FileSystemSuccessCallback

+

请求文件系统成功的回调函数

+
+void onSuccess( fs ) {
+	// File System operate code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

FileResolveSuccessCallback

+

通过URL参数获取目录或文件对象成功的回调函数

+
+void onSuccess( entry ) {
+	// File or Direcory entry operate code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

MetadataSuccessCallback

+

获取文件或目录状态信息成功的回调函数

+
+void onSuccess( metadata ) {
+	// Metadata code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

EntrySuccessCallback

+

操作文件或目录对象成功的回调函数

+
+void onSuccess( entry ) {
+	// Entry code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

EntrysSuccessCallback

+

操作文件或目录对象数组成功的回调函数

+
+void onSuccess( entrys ) {
+	// Entrys code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

FileWriterSuccessCallback

+

写文件操作成功的回调函数

+
+void onSuccess( writer ) {
+	// FileWriter code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

FileSuccessCallback

+

文件操作成功的回调函数

+
+void onSuccess( file ) {
+	// file code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

FileErrorCallback

+

文件操作失败的回调函数

+
+void onError( error ) {
+	// Error code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/ios.html b/fangija-zsyf/doc/ios.html new file mode 100644 index 0000000..da166cd --- /dev/null +++ b/fangija-zsyf/doc/ios.html @@ -0,0 +1,87 @@ + + + + + + + +Hello H5+ + + + + +
+

ios

+

Native.js for iOS封装一条通过JS语法直接调用Native Objective-C接口通道,通过plus.ios可调用几乎所有的系统API。

+

方法:

+ +

对象:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Invocation": {
+		"description": "Native.js"
+	}
+}
+}
+			
+

ClassObject

+

Objective-C类对象

+
+interface ClassObject {
+	// ...
+}
+				
+

说明:

+

+ Objective-C类对象,可通过其属性获取类的常量,可通过方法来操作类的静态方法,也通过new方法来创建类的实例对象。 + 对于类的静态方法,则直接通过.后面跟随方法名称调用。 +

+

InstanceObject

+

Objective-C实例对象

+
+interface InstanceObject {
+	// ...
+	function Object plusGetAttribute( String name );
+	function Object plusSetAttribute( String name, Object value );
+	// ...
+}
+				
+

说明:

+

+ Objective-C实例对象,可通过其方法来操作示例的变量和方法。 + 注意:必须通过plusGetAttribute()方法读取示例对象的属性值,通过plusSetAttribute()方法设置示例对象的属性值。 +

+

方法:

+ +

+
+ diff --git a/fangija-zsyf/doc/key.html b/fangija-zsyf/doc/key.html new file mode 100644 index 0000000..8ae648c --- /dev/null +++ b/fangija-zsyf/doc/key.html @@ -0,0 +1,131 @@ + + + + + + + +Hello H5+ + + + + +
+

key

+

Key管理设备按键事件

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Webview": {
+		"description": "窗口管理"
+	}
+}
+}
+			
+

KeyType

+

按键类型

+

常量:

+ +

KeyEvent

+

按键事件

+

属性:

+ +

KeyEventCallback

+

按键事件的回调函数

+
+void onKeyEvent( KeyEvent event ){
+	// Event handled code.
+	var key=event.keyCode; // 用户按键的键值
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/maps.html b/fangija-zsyf/doc/maps.html new file mode 100644 index 0000000..745c875 --- /dev/null +++ b/fangija-zsyf/doc/maps.html @@ -0,0 +1,939 @@ + + + + + + + +Hello H5+ + + + + +
+

maps

+

Maps模块管理地图控件,用于在web页面中显示地图控件,提供各种接口操作地图控件,如添加标点、路线等。通过plus.maps可获取地图管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

permissions

+
+{
+// ...
+"permissions":{
+	// ...
+	"Maps": {
+		"description": "地图"
+	}
+}
+}
+			
+

Map

+

地图控件对象

+

构造:

+ +

方法:

+ +

事件:

+ +

MapOptions

+

地图对象的参数

+

说明:

+

+ 设置地图对象初始化显示时使用的属性参数。 +

+

属性:

+ +

GeocodeOptions

+

地理编码转换的参数

+

属性:

+ +

CoordinateConvertOptions

+

地图坐标转换的参数

+

属性:

+ +

Point

+

Point对象用于表示地图元素的坐标

+

说明:

+

常用语对地图上元素进行定位时使用。

+

构造:

+ +

方法:

+ +

Bounds

+

地理区域

+

说明:

+

+ 有西南及东北坐标点数据组成的矩形区域。 +

+

构造:

+ +

方法:

+ +

MapType

+

地图视图类型

+

常量:

+ +

Overlay

+

地图覆盖物基类对象

+
+interface Overlay {
+	function Boolean isVisible();
+	function void show();
+	function void hide();
+}
+				
+

说明:

+

+Overlay是地图上显示元素的基类,用于抽象地图元素,不用于实例化。 +

+

方法:

+ +

Marker

+

地图上显示的标点对象

+

说明:

+

从Overlay对象继承而来,可通过Map对象的addOverlay()方法将对象添加地图中。

+

构造:

+ +

方法:

+ +

事件:

+ +

Bubble

+

地图上显示的气泡对象

+

说明:

+

+ 此对象不能直接添加到地图上显示,只可关联到地图标点覆盖物上,用户点击标点时弹出显示。 +

+

构造:

+ +

方法:

+ +

事件:

+ +

Circle

+

地图上显示的圆圈对象

+

说明:

+

从Overlay对象继承而来,可通过Map对象的addOverlay()方法将对象添加地图中。

+

构造:

+ +

方法:

+ +

Polyline

+

地图上显示的折线对象

+

说明:

+

从Overlay对象继承而来,可通过Map对象的addOverlay()方法将对象添加地图中。

+

构造:

+ +

方法:

+ +

Polygon

+

地图上显示的多边形对象

+

说明:

+

从Overlay对象继承而来,可通过Map对象的addOverlay()方法将对象添加地图中。

+

构造:

+ +

方法:

+ +

Search

+

地图检索对象

+

说明:

+

+ Search对象用于管理地图上的检索功能,包括位置检索、周边检索和范围检索。 +

+

构造:

+ +

方法:

+ +

事件:

+ +

SearchPolicy

+

检索策略类型

+

说明:

+

在线路检索时设置检索策略时使用。

+

常量:

+ +

SearchPoiResult

+

保存位置检索、周边检索和范围检索返回的结果

+

属性:

+ +

方法:

+ +

SearchRouteResult

+

保存位置检索、周边检索和范围检索返回的结果

+

说明:

+

+ 不可通过new操作符创建SearchRouteResult对象,在触发onRouteSearchComplete()时自动创建。 +

+

属性:

+ +

方法:

+ +

Position

+

检索结果的位置点

+

构造:

+ +

属性:

+ +

Route

+

地图中的路线对象

+

说明:

+

+ 从Overlay对象继承而来,可通过Map对象的addOverlay()方法将对象添加地图中。 +

+

构造:

+ +

属性:

+ +

GeocodeCallback

+

地理编码转换成功的回调函数

+
+void onGeocodeSuccess( Event event ) {
+	// JS code.
+	var address = event.address;  // 转换后的地理位置
+	var point = event.coord;  // 转换后的坐标信息
+	var coordType = event.coordType;	// 转换后的坐标系类型
+}
+				
+

说明:

+

+ 在地理编码转换成功触发,并返回转换结果。 +

+

参数:

+ +

返回值:

+void + : 无

CoordinateConvertCallback

+

坐标转换成功的回调函数

+
+void onConvertSuccess( Event event ) {
+	// JS code.
+	var point = event.coord;  // 转换后的坐标值
+	var coordType = event.coordType;	// 转换后的坐标系类型
+}
+				
+

说明:

+

+ 在坐标转换成功触发,并返回转换结果。 +

+

参数:

+ +

返回值:

+void + : 无

DistanceCalculateCallback

+

距离计算成功的回调函数

+
+void onCalculateSuccess( Event event ) {
+	// JS code.
+	var distance = event.distance;  // 转换后的距离值
+}
+				
+

说明:

+

+ 在距离计算成功触发,并返回计算结果。 +

+

参数:

+ +

返回值:

+void + : 无

AreaCalculateCallback

+

地理区域面积计算成功的回调函数

+
+void onCalculateSuccess( Event event ) {
+	// JS code.
+	var area = event.area;  // 计算后的面积值
+}
+				
+

说明:

+

+ 在地理区域面积计算成功触发,并返回计算结果。 +

+

参数:

+ +

返回值:

+void + : 无

UserLocationCallback

+

获取用户当前位置信息成功回调

+
+void onSuccess( state, point ) {
+	// Get location code
+}
+				
+

参数:

+ +

返回值:

+void + : 无

ClickEventHandler

+

用户点击地图回调事件

+
+void onClick( point ) {
+	// Click code
+}
+				
+

参数:

+ +

返回值:

+void + : 无

StatusChangedEventHandler

+

地图状态变化回调事件

+
+void onStatusChanged( event ) {
+	// Click code
+	var target = event.target;		// 状态变化的地图对象(plus.maps.Map)
+	var bounds = event.bounds;		// 地图的可视地理区域(plus.maps.Bounds)
+	var center = event.center;		// 地图的中心点坐标(plus.maps.Point)
+	var zoom = event.zoom;			// 地图的缩放级别(Number)
+}
+				
+

参数:

+ +

返回值:

+void + : 无

OverlayClickEventHandler

+

用户点击地图覆盖物回调事件

+
+void onClick( overlay ) {
+	// Click code
+}
+				
+

参数:

+ +

返回值:

+void + : 无

OverlayDragEventHandler

+

用户拖拽覆盖物回调事件

+
+void onDrag( target ) {
+	// Click code
+	var marker = target;    // 拖拽的覆盖物对象
+}
+				
+

参数:

+ +

返回值:

+void + : 无

PoiSearchCallback

+

兴趣点检索完成事件

+
+void onPoiSearchComplete( state, result ) {
+	// JS code.
+}
+				
+

说明:

+

+ 在兴趣点检索完成时触发,并返回检索结果。 +

+

参数:

+ +

返回值:

+void + : 无

RouteSearchCallback

+

线路检索完成事件

+
+void onRouteSearchComplete( state, result ) {
+	// JS code.
+}
+				
+

说明:

+

+ 在线路检索完成时触发,并返回检索结果。 +

+

参数:

+ +

返回值:

+void + : 无

SuccessCallback

+

地图操作成功回调函数

+
+void onSuccess(){
+	// Success code.
+}
+				
+

说明:

+

+ 地图操作成功后触发回调函数。 +

+

参数:

+

无

+

返回值:

+void + : 无

ErrorCallback

+

地图操作失败的回调函数

+
+function void onError( error ) {
+	// Handle error
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/messaging.html b/fangija-zsyf/doc/messaging.html new file mode 100644 index 0000000..4596d9f --- /dev/null +++ b/fangija-zsyf/doc/messaging.html @@ -0,0 +1,114 @@ + + + + + + + +Hello H5+ + + + + +
+

messaging

+

Messaging模块管理设备通讯功能,可用于短信、彩信、邮件发送等。通过plus.messaging可获取设备通讯管理对象。另外也可以直接通过html中的href直接快速发送短信、拨打电话、发送邮件等。

+

常量:

+ +

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Messaging": {
+		"description": "短信彩信邮件消息"
+	}
+}
+}
+			
+

Message

+

消息对象

+

属性:

+ +

方法:

+ +

BodyType

+

消息体内容类型

+

说明:

+

用于设定消息的消息体内容。

+

MessageSendSuccessCallback

+

消息发送成功的回调函数

+
+void onSuccess() {
+	// Send message success code.
+}
+					
+

参数:

+

无

+

返回值:

+void + : 无

MessageErrorCallback

+

消息发送失败的回调函数

+
+void onError( error ) {
+	// Error code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/native.js.html b/fangija-zsyf/doc/native.js.html new file mode 100644 index 0000000..935284f --- /dev/null +++ b/fangija-zsyf/doc/native.js.html @@ -0,0 +1,30 @@ + + + + + + + + Hello H5+ + + + + + +
+

Native.js

+

Native.JS一种把操作系统的原生对象转义,映射为JS对象,在JS里编写原生代码的技术。可通过plus.android.*和plus.ios.*提供的API分别调用Android和iOS平台的Native API。

+ +
+ + diff --git a/fangija-zsyf/doc/nativeUI.html b/fangija-zsyf/doc/nativeUI.html new file mode 100644 index 0000000..bef87c8 --- /dev/null +++ b/fangija-zsyf/doc/nativeUI.html @@ -0,0 +1,497 @@ + + + + + + + +Hello H5+ + + + + +
+

nativeUI

+

nativeUI管理系统原生界面,可用于弹出系统原生提示对话框窗口、时间日期选择对话框、等待对话框等。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"NativeUI": {
+		"description": "原生UI控件"
+	}
+}
+}
+			
+

ActionButtonStyles

+

JSON对象,原生选择按钮框上按钮的样式参数

+

属性:

+ +

ActionSheetStyles

+

JSON对象,原生选择按钮框的样式参数

+

属性:

+ +

PickDateOption

+

JSON对象,日期选择对话框的参数

+

属性:

+ +

PickTimeOption

+

JSON对象,时间选择对话框的参数

+

属性:

+ +

NativeUIObj

+

系统原生界面基类对象

+
+interface NativeUIObj{
+	function void close();
+}
+				
+

方法:

+ +

WaitingObj

+

系统等待对话框对象

+

说明:

+

+ 从NativeUIObj对象继承而来,通过plus.nativeUI.showWaiting方法创建时返回。 + 用于控制系统样式等待对话框的操作,如关闭、设置标题内容等。 +

+

方法:

+ +

事件:

+ +

WaitingOptions

+

JSON对象,原生等待对话框的参数

+

属性:

+ +

WaitingLoadingOptions

+

JSON对象,原生等待对话框上loading图标自定义样式

+

属性:

+ +

ToastOptions

+

JSON对象,系统提示消息框要设置的参数

+

属性:

+ +

ActionSheetCallback

+

系统选择按钮框的回调函数

+
+void onActioned( Event event ){
+	// actionsheet handled code.
+	var index=event.index; // 用户关闭时点击按钮的索引值
+}
+				
+

参数:

+ +

返回值:

+void + : 无

AlertCallback

+

系统提示框确认的回调函数

+
+void onAlerted( Event event ){
+	// Alert handled code.
+	var index=event.index; // 用户关闭提示对话框点击按钮的索引值
+}
+				
+

参数:

+ +

返回值:

+void + : 无

ConfirmCallback

+

关闭确认对话框的回调函数

+
+void onConfirmed( Event event ) {
+	// Confirm handled code.
+	var index=event.index; // 用户关闭确认对话框点击按钮的索引值
+}
+				
+

参数:

+ +

返回值:

+void + : 无

PromptCallback

+

系统输入对话框关闭后的回调函数

+
+function void onPrompted( Event event ) {
+	// Prompt handled code.
+	var index=event.index; // 用户关闭输入对话框点击按钮的索引值
+	var value=event.value; // 用户输入的内容
+}
+				
+

参数:

+ +

返回值:

+void + : 无

PickDatetimeSuccessCallback

+

选择日期或时间操作成功的回调函数

+
+function void onPickSuccess( Event event ) {
+	// Date picked code.
+	var date = event.date;// 用户选择的日期或时间
+}
+				
+

参数:

+ +

返回值:

+void + : 无

PickDatetimeErrorCallback

+

选择日期或时间操作取消或失败的回调函数

+
+function void onPickError( Exception error ) {
+	// Date picked error.
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/nativeobj.html b/fangija-zsyf/doc/nativeobj.html new file mode 100644 index 0000000..6c24622 --- /dev/null +++ b/fangija-zsyf/doc/nativeobj.html @@ -0,0 +1,840 @@ + + + + + + + +Hello H5+ + + + + +
+

nativeObj

+

nativeObj管理系统原生对象。

+

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"NativeObj": {
+		"description": "原生对象"
+	}
+}
+}
+			
+

Bitmap

+

原生图片对象

+
+interface Bitmap {
+	readonly attribute String id;
+
+	static function Array[Bitmap] getItems();
+	static function Bitmap getBitmapById( id );
+	
+	function void clear();
+	function void load( path, successCallback, errorCallback );
+	function void loadBase64Data( data, successCallback, errorCallback );
+	function void save( path, options, successCallback, errorCallback );
+	function String toBase64Data();
+}				
+

说明:

+

+ 原生图片对象会占用较大的内存资源,在使用时需谨慎管理,当图片不再使用时应该及时调用clear方法进行销毁。 +

+

构造:

+ +

属性:

+ +

方法:

+ +

BitmapSaveOptions

+

JSON对象,保存图片的参数

+
+interface BitmapSaveOptions {
+	attribute Boolean overwrite;
+	attribute String format;
+	attribute Number quality;
+	attribute Rect clip;
+}				
+

属性:

+ +

View

+

原生控件对象

+
+interface View {
+	readonly attribute String id;
+
+	static function void startAnimation(options, view, otherview, callback);
+	static function void clearAnimation(type);
+	static function View getViewById(id);
+
+	function void addEventListener(event, listener, capture);
+	function void animate(options, callback);
+	function void close();
+	function void clearRect(position, id);
+	function void draw(tags);
+	function void drawBitmap(src, sprite, position, id);
+	function void drawRect(color, position, id);
+	function void drawText(text, position, styles, id);
+	function void reset();
+	function void restore();
+	function void show();
+	function void setStyle(styles);
+	function void setTouchEventRect(rect);
+	function void hide();
+	function void interceptTouchEvent(intercept);
+	function Boolean isVisible();
+}
+				
+

说明:

+

+ 原生控件对象可用于在屏幕上绘制图片或文本内容,当控件不再使用时需要调用clear方法销毁控件。 +

+

构造:

+ +

属性:

+ +

方法:

+ +

AnimationOptions

+

原生动画参数

+
+interface AnimationOptions {
+	attribute String type;
+	attribute Number duration;
+}				
+

说明:

+

+ 指定动画的类型、持续时间等信息。 +

+

属性:

+ +

AnimationViewStyles

+

原生动画窗口样式

+
+interface AnimationViewStyles {
+	attribute Bitmap bitmap;
+	attribute String text;
+}				
+

说明:

+

+ 指定动画窗口的样式,如背景图片,绘制的文字等。 +

+

属性:

+ +

Rect

+

区域信息对象

+
+interface Rect {
+	attribute String top;
+	attribute String left;
+	attribute String width;
+	attribute String height;
+}				
+

说明:

+

+ 包括位置、大小等信息。 +

+

属性:

+ +

Position

+

区域信息对象

+
+interface Position {
+	attribute String top;
+	attribute String left;
+	attribute String width;
+	attribute String height;
+	attribute String bottom;
+	attribute String right;
+}				
+

说明:

+

+ 包括位置、大小等信息。 +

+

属性:

+ +

TextStyles

+

文本样式对象

+
+interface Rect {
+	attribute String color;
+	attribute String align;
+	attribute String family;
+	attribute String size;
+	attribute String style;
+	attribute String weight;
+	attribute String fontSrc;
+	attribute String overflow;
+}				
+

说明:

+

+ 用于定义文本的显示样式,如字体大小、字体颜色、字体粗细、字体样式、字体名称等信息。 +

+

属性:

+ +

ViewAnimationOptions

+

View控件动画参数

+
+interface ViewAnimationOptions {
+	attribute String type;
+	attribute Number duration;
+	attribute Number frames;
+	attribute Rect region;
+}				
+

说明:

+

+ 指定动画的类型、持续时间等信息。 +

+

属性:

+ +

ViewDrawTagStyles

+

View控件绘制元素参数

+
+interface ViewDrawTagStyles {
+	attribute String id;
+	attribute String tag;
+	attribute String color;
+	attribute Position position;
+	attribute String src;
+	attribute Position sprite;
+	attribute String text;
+	attribute TextStyles textStyles;
+}				
+

说明:

+

+ 指定绘制图片、矩形区域、文本内容等信息。 +

+

属性:

+ +

ViewEvents

+

View控件事件

+

常量:

+ +

ViewStatusbarStyles

+

JSON对象,View控件的系统状态栏区域样式

+

说明:

+

+ 仅在应用设置为沉浸式状态栏样式下有效,非沉浸式状态栏样式下忽略此属性。 +

+

属性:

+ +

ViewStyles

+

View控件样式

+
+interface ViewStyles {
+	attribute String bottom;
+	attribute String top;
+	attribute String left;
+	attribute String width;
+	attribute String height;
+	attribute String backgroundColor;
+	attribute String dock;
+	attribute String position;
+	attribute Number opacity;
+	attribute ViewStatusbarStyles statusbar;
+}				
+

说明:

+

+ 包括位置、大小等信息,位置信息相对于父容器控件进行计算。 +

+

属性:

+ +

BitmapSaveSuccessCallback

+

图片保存操作成功回调接口

+
+void onSuccess( Event event ){
+	// Code here
+	var target = event.target; // 保存后的图片url路径,以"file://"开头
+	var size = event.size; // 保存后图片的大小,单位为字节(Byte)
+	var width = event.width; // 保存后图片的实际宽度,单位为px
+	var height = event.height; // 保存后图片的实际高度,单位为px
+}
+				
+

参数:

+ +

返回值:

+void + : 无

TouchEventCallback

+

触屏事件的回调函数

+
+void onEvent(Event e){
+	// Event handled code.
+	var clientX = e.clientX;
+	var clientY = e.clientY;
+	var pageX = e.pageX;
+	var pageY = e.pageY;
+	var screenX = e.screenX;
+	var screenY = e.screenY;
+	var target = e.target;
+}
+				
+

参数:

+ +

返回值:

+void + : 无

NativeObjSuccessCallback

+

操作成功回调函数接口

+
+void onSuccess(){
+	// Code here
+}
+				
+

参数:

+

无

+

返回值:

+void + : 无

NativeObjErrorCallback

+

操作错误回调函数接口

+
+function void onError( Exception error ) {
+	// Error.
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/navigator.html b/fangija-zsyf/doc/navigator.html new file mode 100644 index 0000000..218760a --- /dev/null +++ b/fangija-zsyf/doc/navigator.html @@ -0,0 +1,270 @@ + + + + + + + +Hello H5+ + + + + +
+

navigator

+

navigator用于管理浏览器运行环境信息

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Navigator": {
+		"description": "浏览器信息"
+	}
+}
+}
+			
+

ShortcutOptions

+

创建应用快捷方式要设置的参数

+

属性:

+ +

SplashscreenOptions

+

更新应用启动界面要设置的参数

+

属性:

+ +

PermissionNames

+

运行环境权限类型

+

常量:

+ +

ShortcutSuccessCallback

+

创建桌面快捷方式成功的回调函数

+
+void onSuccess( Event event ){
+	var result=event.result; // 快捷方式是否已经存在,调用plus.navigator.hasShortcut方法时有效
+	var sure=event.sure; // 是否确定创建桌面快捷方式成功,调用plus.navigator.createShortcut方法时有效
+}
+				
+

参数:

+ +

返回值:

+void + : 无

NavigatorErrorCallback

+

操作错误回调函数接口

+
+function void onError( Exception error ) {
+	// Error.
+	var code = error.code; // 错误编码
+	var message = error.message; // 错误描述信息
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/oauth.html b/fangija-zsyf/doc/oauth.html new file mode 100644 index 0000000..ff0a5a9 --- /dev/null +++ b/fangija-zsyf/doc/oauth.html @@ -0,0 +1,347 @@ + + + + + + + +Hello H5+ + + + + +
+

oauth

+

OAuth模块管理客户端的用户登录授权验证功能,允许应用访问第三方平台的资源。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

permissions

+
+{
+// ...
+"permissions":{
+	// ...
+	"OAuth": {
+		"description": "登录鉴权"
+	}
+}
+}
+			
+

AuthService

+

登录授权认证服务对象

+
+interface plus.oauth.AuthService {
+	// Attributes
+	attribute String id;
+	attribute String description;
+	attribute AuthInfo authResult;
+	attribute UserInfo userInfo;
+	attribute JSON extra;
+	
+	// Methods
+	function void login( successCallback, errorCallback, options );
+	function void logout( successCallback, errorCallback );
+	function void getUserInfo( successCallback, errorCallback );
+	function void addPhoneNumber( successCallback, errorCallback );
+}
+				
+

说明:

+

+ AuthService对象用于表示登录授权认证服务,在JS中为对象,用于向系统进行登录授权认证操作。 +

+

属性:

+ +

方法:

+ +

AuthOptions

+

JSON对象,授权认证参数选项

+
+interface plus.oauth.AuthOptions {
+	attribute String scope;
+	attribute String state;
+	attribute String appid;
+	attribute String appkey;
+	attribute String appsecret;
+	attribute String redirect_uri;
+}
+				
+

说明:

+

+ 此对象支持的属性值由登录授权认证服务定义。 + 例如“微信”,则可配置以下参数: + scope - 应用授权作用域; + state - 用于保持请求和回调的状态参数。 +

+

属性:

+ +

AuthInfo

+

登录授权认证信息

+
+interface plus.oauth.AuthInfo {
+	attribute String openid;
+	attribute String access_token;
+	attribute String expires_in:
+	attribute String refresh_token;
+	attribute String scope;
+}
+				
+

说明:

+

+ 此对象仅定义标准属性,登录授权认证服务可扩展定义。 + 例如“微信”登录授权服务,则包括以下数据: + unionid - 用户统一标识,针对一个微信开放平台帐号下的应用,同一用户的unionid是唯一的。 +

+

属性:

+ +

UserInfo

+

登录授权用户信息

+
+interface plus.oauth.UserInfo {
+	attribute String openid;
+	attribute String headimgurl:
+	attribute String nickname;
+}
+				
+

说明:

+

+ 用于保存登录授权用户的信息。 + 此对象仅定义标准属性,登录授权认证服务可扩展定义。 + 例如“微信”登录授权服务,则包括以下数据: + sex - 普通用户性别,1为男性,2为女性; + province - 普通用户个人资料填写的省份; + city - 普通用户个人资料填写的城市; + country - 国家,如中国为CN; + privilege - 用户特权信息,json数组,如微信沃卡用户为(chinaunicom); + unionid - 用户统一标识,针对一个微信开放平台帐号下的应用,同一用户的unionid是唯一的。 +

+

属性:

+ +

ServicesSuccessCallback

+

获取登录授权认证服务成功回调

+
+void ServicesSuccessCallback( services ) {
+	// Get oauth services success code
+}
+				
+

说明:

+

+ 当获取登录授权认证服务列表成功时触发,并通过services参数返回运行环境支持的登录授权认证服务列表。 +

+

参数:

+ +

返回值:

+void + : 无

AuthLogoutSuccessCallback

+

注销登录授权认证操作成功回调函数

+
+void AuthLogoutSuccessCallback( event ) {
+	  // logout code
+}
+				
+

说明:

+

+ 注销登录授权认证成功时触发,并返回操作结果。 +

+

参数:

+ +

返回值:

+void + : 无

AuthSuccessCallback

+

登录授权认证服务操作成功回调函数

+
+void AuthSuccessCallback( event ) {
+	  // auth code
+}
+				
+

说明:

+

+ 登录授权认证服务操作如请求登录授权认证、获取登录授权用户信息成功时触发,并返回操作结果。 +

+

参数:

+ +

返回值:

+void + : 无

AuthErrorCallback

+

登录授权认证服务操作失败回调函数

+
+void AuthErrorCallback(error){
+	// Error code
+}
+				
+

说明:

+

+ 登录授权认证服务操作如请求登录授权认证、注销登录授权认证、获取登录授权用户信息失败时触发,并返回错误信息。 +

+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/orientation.html b/fangija-zsyf/doc/orientation.html new file mode 100644 index 0000000..2b8fddc --- /dev/null +++ b/fangija-zsyf/doc/orientation.html @@ -0,0 +1,132 @@ + + + + + + + +Hello H5+ + + + + +
+

orientation

+

Orientation模块管理设备的方向信息,包括alpha、beta、gamma三个方向信息,通过plus.orientation可获取设备方向管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Orientation": {
+		"description": "方向传感器"
+	}
+}
+}
+			
+

OrientationOption

+

JSON对象,监听设备方向感应器参数

+

属性:

+ +

Rotation

+

JSON对象,设备方向信息数据

+
+interface Rotation {
+	readonly attribute float alpha;
+	readonly attribute float beta;
+	readonly attribute float gamma;
+	readonly attribute float magneticHeading;
+	readonly attribute float trueHeading;
+	readonly attribute float headingAccuracy;
+}
+				
+

属性:

+ +

OrientationSuccessCallback

+

获取设备方向信息成功的回调函数

+
+void onSuccess( rotation ){
+	// Get orientation success code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

OrientationErrorCallback

+

获取设备方向信息失败的回调函数

+
+void onError( error ) {
+	// Get orientation error code. 
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/payment.html b/fangija-zsyf/doc/payment.html new file mode 100644 index 0000000..e2fea62 --- /dev/null +++ b/fangija-zsyf/doc/payment.html @@ -0,0 +1,407 @@ + + + + + + + +Hello H5+ + + + + +
+

payment

+

Payment模块管理支付功能,用于提供网页安全支付能力,支持通过Web接口进行支付操作。通过plus.payment可获取支付管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

permissions

+
+{
+// ...
+"permissions":{
+	// ...
+	"Payment": {
+		"description": "支付"
+	}
+}
+}
+			
+

PaymentChannel

+

支付通道对象

+
+interface plus.payment.PaymentChannel{
+	attribute String id;
+	attribute String description;
+	attribute Boolean serviceReady;
+	function void installService();
+	
+	// iOS iAP
+	function void requestOrder(ids, successCB, errorCB);
+	function void restoreComplateRequest(options, successCB);
+}
+				
+

说明:

+

+PaymentChannel对象表示特定的支付通道,用于向系统请求支付操作。 +

+

属性:

+ +

方法:

+ +

OrderStatementIAP

+

IAP订单数据对象

+
+interface plus.payment.OrderStatementIAP {
+	attribute String productid;
+	attribute String username;
+	attribute String quantity;
+}
+				
+

说明:

+

+ 描述IAP商品订单信息,如标识、数量等。 +

+

属性:

+ +

PaymentResult

+

支付操作结果对象

+
+interface plus.payment.PaymentResult {
+	attribute PaymentChannel channel;
+	attribute String tradeno;
+	attribute String description;
+	attribute String url;
+	attribute String signature;
+	attribute String rawdata;
+}
+				
+

说明:

+

+PaymentResult对象表示支付操作返回结果,用于确认支付操作成功。 +

+

属性:

+ +

IAPProduct

+

IAP商品对象

+
+interface plus.payment.IAPProduct {
+	attribute String productid;
+	attribute String price;
+	attribute String title;
+	attribute String description;
+}
+				
+

说明:

+

+ 描述IAP商品详细信息,如标识、价格、标题、描述信息等。 +

+

属性:

+ +

IAPProductInfo

+

购买IAP商品对象

+
+interface plus.payment.IAPProductInfo {
+	attribute String productIdentifier;
+	attribute String quantity;
+}
+				
+

说明:

+

+ 描述购买的IAP商品详细信息,如标识、数量等。 +

+

属性:

+ +

IAPTransaction

+

购买IAP商品交易信息对象

+
+interface plus.payment.IAPTransaction {
+    attribute IAPProductInfo payment;
+    attribute String transactionDate;
+    attribute String transactionIdentifier;
+    attribute String transactionReceipt;
+    attribute String transactionState;
+}
+				
+

说明:

+

+ 描述购买的IAP商品交易详细信息,如购买商品信息、交易日期、订单标识等。 +

+

属性:

+ +

ChannelsSuccessCallback

+

获取支付通道成功回调

+
+void ChannelsSuccessCallback( channels ) {
+	// Get payment channels success code
+}
+				
+

说明:

+

+ 当获取支付通道列表成功时的回调函数,用于返回终端支持的支付通道列表。 +

+

参数:

+ +

返回值:

+void + : 无

IapRequestOrderSuccessCallback

+

请求支付商品列表回调方法

+
+void onsuccess( results ) {
+	// Payment success code
+}
+				
+

说明:

+

+ 获取IAP商品列表信息成功时的回调函数,返回商品详细信息。 +

+

参数:

+ +

返回值:

+void + : 无

IapRestoreComplateRequestCallback

+

请求已经购买的非消耗性商品和订阅商品回调方法

+
+void onsuccess( results ) {
+	// Payment success code
+}
+				
+

说明:

+

+ 获取IAP商品列表信息成功时的回调函数,返回商品详细信息。 +

+

参数:

+ +

返回值:

+void + : 无

PaymentSuccessCallback

+

支付操作成功回调

+
+void PaymentSuccessCallback ( result ) {
+	// Payment success code
+}
+				
+

说明:

+

+ 当支付操作成功时的回调函数,用于返回支付操作的成功信息。 +

+

参数:

+ +

返回值:

+void + : 无

PaymentErrorCallback

+

支付操作失败回调

+
+void PaymentErrorCallback(error){
+	// Payment error code
+}
+				
+

说明:

+

当支付操作失败时的回调函数,用于返回支付操作失败的错误信息。

+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/proximity.html b/fangija-zsyf/doc/proximity.html new file mode 100644 index 0000000..c895982 --- /dev/null +++ b/fangija-zsyf/doc/proximity.html @@ -0,0 +1,78 @@ + + + + + + + +Hello H5+ + + + + +
+

proximity

+

Proximity模块管理设备距离传感器,可获取当前设备的接近距离信息,通过plus.proximity可获取设备距离传感管理对象。

+

方法:

+ +

回调方法:

+ +

权限:

+

5+功能模块(permissions)

+
+{
+// ...
+"permissions":{
+	// ...
+	"Proximity": {
+		"description": "距离感应器"
+	}
+}
+}
+			
+

ProximitySuccessCallback

+

获取设备接近距离信息成功的回调函数

+
+void onSuccess( distance ) {
+	// Get distance success code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

ProximityErrorCallback

+

获取设备接近距离信息失败的回调函数

+
+void onError( error ) {
+	// Get distance error code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/push.html b/fangija-zsyf/doc/push.html new file mode 100644 index 0000000..3adb4f1 --- /dev/null +++ b/fangija-zsyf/doc/push.html @@ -0,0 +1,198 @@ + + + + + + + +Hello H5+ + + + + +
+

push

+

Push模块管理推送消息功能,可以实现在线、离线的消息推送,通过plus.push可获取推送消息管理对象。

+

方法:

+ +

对象:

+ +

回调方法:

+ +

权限:

+

permissions

+
+{
+// ...
+"permissions":{
+	// ...
+	"Push": {
+		"description": "消息推送"
+	}
+}
+}
+			
+ 属性: + +

ClientInfo

+

JSON对象,获取的客户端标识信息

+

属性:

+ +

PushMessage

+

JSON对象,推送消息对象

+

属性:

+ +

MessageOptions

+

JSON对象,获客户端创建本地消息的参数

+

属性:

+ +

PushReceiveCallback

+

客户端接收到推动消息的回调函数

+
+void onReceive( msg ) {
+	// Recieved push message code.
+}
+				
+

参数:

+ +

返回值:

+void + : 无

PushClickCallback

+

用户点击推送消息事件的回调函数

+
+void onClick( msg ) {
+	// Clicked push message code. 
+}
+				
+

参数:

+ +

返回值:

+void + : 无

+
+ diff --git a/fangija-zsyf/doc/res/doc.css b/fangija-zsyf/doc/res/doc.css new file mode 100644 index 0000000..091d7de --- /dev/null +++ b/fangija-zsyf/doc/res/doc.css @@ -0,0 +1,61 @@ +* { + -webkit-user-select: none; + -ms-touch-select: none; +/* + -ms-touch-action: none; +*/ +} +html { + width: 100%; + height: 100%; +} +body { + color:#333; + font-family: Verdana, Arial, Helvetica , "Microsoft YaHei" , sans-serif; + font-size:14px; + word-break: break-all; + -webkit-touch-callout:none; + -webkit-tap-highlight-color:rgba(0,0,0,0); + -webkit-text-size-adjust:none; +} +.content { + padding: 0 0.5em; +} +h1 { + border-bottom:2px solid; + font-size:1.6em; + font-weight:bold; + margin:2em 0px 0.5em 0px; + +} +h2 { + font-size:1.2em; + font-weight:bold; + margin:1em 0px 0.5em 0px; + text-shadow:#FFFFFF 0px 1px 1px; +} +h3 { + font-size:1.1em; + font-weight:bold; + margin:0.8em 0px 0.5em 0px; + text-shadow:#FFFFFF 0px 1px 1px; +} +em { + font-size: 0.8em; + color: #999; +} +ul { + margin: 0; + padding: 0 0 0 2em; +} +a { + color:#D84C29; + text-decoration:none; +} +.des { + text-indent: 2em; + margin: 0; +} +.type{ + color:#0A0;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0); +} diff --git a/fangija-zsyf/doc/res/doc.js b/fangija-zsyf/doc/res/doc.js new file mode 100644 index 0000000..e67a19a --- /dev/null +++ b/fangija-zsyf/doc/res/doc.js @@ -0,0 +1,14 @@ +(function(w){ +// 空函数 +function shield(){ + return false; +} +//取消浏览器的所有事件,使得active的样式在手机上正常生效 +document.addEventListener('touchstart',shield,false); +document.oncontextmenu=shield; +// DOMContentLoaded事件处理 +document.addEventListener('DOMContentLoaded',function(){ + document.body.onselectstart=shield; + prettyPrint(); +},false); +})(window); \ No newline at end of file diff --git a/fangija-zsyf/doc/res/prettify.js b/fangija-zsyf/doc/res/prettify.js new file mode 100644 index 0000000..7fbe7aa --- /dev/null +++ b/fangija-zsyf/doc/res/prettify.js @@ -0,0 +1,1658 @@ +// Copyright (C) 2006 Google Inc. +// +// 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. + + +/** + * @fileoverview + * some functions for browser-side pretty printing of code contained in html. + * + *

+ * For a fairly comprehensive set of languages see the + * README + * file that came with this source. At a minimum, the lexer should work on a + * number of languages including C and friends, Java, Python, Bash, SQL, HTML, + * XML, CSS, Javascript, and Makefiles. It works passably on Ruby, PHP and Awk + * and a subset of Perl, but, because of commenting conventions, doesn't work on + * Smalltalk, Lisp-like, or CAML-like languages without an explicit lang class. + *

+ * Usage:

    + *
  1. include this source file in an html page via + * {@code } + *
  2. define style rules. See the example page for examples. + *
  3. mark the {@code
    } and {@code } tags in your source with
    + *    {@code class=prettyprint.}
    + *    You can also use the (html deprecated) {@code } tag, but the pretty
    + *    printer needs to do more substantial DOM manipulations to support that, so
    + *    some css styles may not be preserved.
    + * </ol>
    + * That's it.  I wanted to keep the API as simple as possible, so there's no
    + * need to specify which language the code is in, but if you wish, you can add
    + * another class to the {@code <pre>} or {@code <code>} element to specify the
    + * language, as in {@code <pre class="prettyprint lang-java">}.  Any class that
    + * starts with "lang-" followed by a file extension, specifies the file type.
    + * See the "lang-*.js" files in this directory for code that implements
    + * per-language file handlers.
    + * <p>
    + * Change log:<br>
    + * cbeust, 2006/08/22
    + * <blockquote>
    + *   Java annotations (start with "@") are now captured as literals ("lit")
    + * </blockquote>
    + * @requires console
    + */
    +
    +// JSLint declarations
    +/*global console, document, navigator, setTimeout, window, define */
    +
    +/** @define {boolean} */
    +var IN_GLOBAL_SCOPE = true;
    +
    +/**
    + * Split {@code prettyPrint} into multiple timeouts so as not to interfere with
    + * UI events.
    + * If set to {@code false}, {@code prettyPrint()} is synchronous.
    + */
    +window['PR_SHOULD_USE_CONTINUATION'] = true;
    +
    +/**
    + * Pretty print a chunk of code.
    + * @param {string} sourceCodeHtml The HTML to pretty print.
    + * @param {string} opt_langExtension The language name to use.
    + *     Typically, a filename extension like 'cpp' or 'java'.
    + * @param {number|boolean} opt_numberLines True to number lines,
    + *     or the 1-indexed number of the first line in sourceCodeHtml.
    + * @return {string} code as html, but prettier
    + */
    +var prettyPrintOne;
    +/**
    + * Find all the {@code <pre>} and {@code <code>} tags in the DOM with
    + * {@code class=prettyprint} and prettify them.
    + *
    + * @param {Function} opt_whenDone called when prettifying is done.
    + * @param {HTMLElement|HTMLDocument} opt_root an element or document
    + *   containing all the elements to pretty print.
    + *   Defaults to {@code document.body}.
    + */
    +var prettyPrint;
    +
    +
    +(function () {
    +  var win = window;
    +  // Keyword lists for various languages.
    +  // We use things that coerce to strings to make them compact when minified
    +  // and to defeat aggressive optimizers that fold large string constants.
    +  var FLOW_CONTROL_KEYWORDS = ["break,continue,do,else,for,if,return,while"];
    +  var C_KEYWORDS = [FLOW_CONTROL_KEYWORDS,"auto,case,char,const,default," + 
    +      "double,enum,extern,float,goto,inline,int,long,register,short,signed," +
    +      "sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];
    +  var COMMON_KEYWORDS = [C_KEYWORDS,"catch,class,delete,false,import," +
    +      "new,operator,private,protected,public,this,throw,true,try,typeof"];
    +  var CPP_KEYWORDS = [COMMON_KEYWORDS,"alignof,align_union,asm,axiom,bool," +
    +      "concept,concept_map,const_cast,constexpr,decltype,delegate," +
    +      "dynamic_cast,explicit,export,friend,generic,late_check," +
    +      "mutable,namespace,nullptr,property,reinterpret_cast,static_assert," +
    +      "static_cast,template,typeid,typename,using,virtual,where"];
    +  var JAVA_KEYWORDS = [COMMON_KEYWORDS,
    +      "abstract,assert,boolean,byte,extends,final,finally,implements,import," +
    +      "instanceof,interface,null,native,package,strictfp,super,synchronized," +
    +      "throws,transient"];
    +  var CSHARP_KEYWORDS = [JAVA_KEYWORDS,
    +      "as,base,by,checked,decimal,delegate,descending,dynamic,event," +
    +      "fixed,foreach,from,group,implicit,in,internal,into,is,let," +
    +      "lock,object,out,override,orderby,params,partial,readonly,ref,sbyte," +
    +      "sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort," +
    +      "var,virtual,where"];
    +  var COFFEE_KEYWORDS = "all,and,by,catch,class,else,extends,false,finally," +
    +      "for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then," +
    +      "throw,true,try,unless,until,when,while,yes";
    +  var JSCRIPT_KEYWORDS = [COMMON_KEYWORDS,
    +      "debugger,eval,export,function,get,null,set,undefined,var,with," +
    +      "Infinity,NaN"];
    +  var PERL_KEYWORDS = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for," +
    +      "goto,if,import,last,local,my,next,no,our,print,package,redo,require," +
    +      "sub,undef,unless,until,use,wantarray,while,BEGIN,END";
    +  var PYTHON_KEYWORDS = [FLOW_CONTROL_KEYWORDS, "and,as,assert,class,def,del," +
    +      "elif,except,exec,finally,from,global,import,in,is,lambda," +
    +      "nonlocal,not,or,pass,print,raise,try,with,yield," +
    +      "False,True,None"];
    +  var RUBY_KEYWORDS = [FLOW_CONTROL_KEYWORDS, "alias,and,begin,case,class," +
    +      "def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo," +
    +      "rescue,retry,self,super,then,true,undef,unless,until,when,yield," +
    +      "BEGIN,END"];
    +   var RUST_KEYWORDS = [FLOW_CONTROL_KEYWORDS, "as,assert,const,copy,drop," +
    +      "enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv," +
    +      "pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"];
    +  var SH_KEYWORDS = [FLOW_CONTROL_KEYWORDS, "case,done,elif,esac,eval,fi," +
    +      "function,in,local,set,then,until"];
    +  var ALL_KEYWORDS = [
    +      CPP_KEYWORDS, CSHARP_KEYWORDS, JSCRIPT_KEYWORDS, PERL_KEYWORDS,
    +      PYTHON_KEYWORDS, RUBY_KEYWORDS, SH_KEYWORDS];
    +  var C_TYPES = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;
    +
    +  // token style names.  correspond to css classes
    +  /**
    +   * token style for a string literal
    +   * @const
    +   */
    +  var PR_STRING = 'str';
    +  /**
    +   * token style for a keyword
    +   * @const
    +   */
    +  var PR_KEYWORD = 'kwd';
    +  /**
    +   * token style for a comment
    +   * @const
    +   */
    +  var PR_COMMENT = 'com';
    +  /**
    +   * token style for a type
    +   * @const
    +   */
    +  var PR_TYPE = 'typ';
    +  /**
    +   * token style for a literal value.  e.g. 1, null, true.
    +   * @const
    +   */
    +  var PR_LITERAL = 'lit';
    +  /**
    +   * token style for a punctuation string.
    +   * @const
    +   */
    +  var PR_PUNCTUATION = 'pun';
    +  /**
    +   * token style for plain text.
    +   * @const
    +   */
    +  var PR_PLAIN = 'pln';
    +
    +  /**
    +   * token style for an sgml tag.
    +   * @const
    +   */
    +  var PR_TAG = 'tag';
    +  /**
    +   * token style for a markup declaration such as a DOCTYPE.
    +   * @const
    +   */
    +  var PR_DECLARATION = 'dec';
    +  /**
    +   * token style for embedded source.
    +   * @const
    +   */
    +  var PR_SOURCE = 'src';
    +  /**
    +   * token style for an sgml attribute name.
    +   * @const
    +   */
    +  var PR_ATTRIB_NAME = 'atn';
    +  /**
    +   * token style for an sgml attribute value.
    +   * @const
    +   */
    +  var PR_ATTRIB_VALUE = 'atv';
    +
    +  /**
    +   * A class that indicates a section of markup that is not code, e.g. to allow
    +   * embedding of line numbers within code listings.
    +   * @const
    +   */
    +  var PR_NOCODE = 'nocode';
    +
    +  
    +  
    +  /**
    +   * A set of tokens that can precede a regular expression literal in
    +   * javascript
    +   * http://web.archive.org/web/20070717142515/http://www.mozilla.org/js/language/js20/rationale/syntax.html
    +   * has the full list, but I've removed ones that might be problematic when
    +   * seen in languages that don't support regular expression literals.
    +   *
    +   * <p>Specifically, I've removed any keywords that can't precede a regexp
    +   * literal in a syntactically legal javascript program, and I've removed the
    +   * "in" keyword since it's not a keyword in many languages, and might be used
    +   * as a count of inches.
    +   *
    +   * <p>The link above does not accurately describe EcmaScript rules since
    +   * it fails to distinguish between (a=++/b/i) and (a++/b/i) but it works
    +   * very well in practice.
    +   *
    +   * @private
    +   * @const
    +   */
    +  var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*';
    +  
    +  // CAVEAT: this does not properly handle the case where a regular
    +  // expression immediately follows another since a regular expression may
    +  // have flags for case-sensitivity and the like.  Having regexp tokens
    +  // adjacent is not valid in any language I'm aware of, so I'm punting.
    +  // TODO: maybe style special characters inside a regexp as punctuation.
    +
    +  /**
    +   * Given a group of {@link RegExp}s, returns a {@code RegExp} that globally
    +   * matches the union of the sets of strings matched by the input RegExp.
    +   * Since it matches globally, if the input strings have a start-of-input
    +   * anchor (/^.../), it is ignored for the purposes of unioning.
    +   * @param {Array.<RegExp>} regexs non multiline, non-global regexs.
    +   * @return {RegExp} a global regex.
    +   */
    +  function combinePrefixPatterns(regexs) {
    +    var capturedGroupIndex = 0;
    +  
    +    var needToFoldCase = false;
    +    var ignoreCase = false;
    +    for (var i = 0, n = regexs.length; i < n; ++i) {
    +      var regex = regexs[i];
    +      if (regex.ignoreCase) {
    +        ignoreCase = true;
    +      } else if (/[a-z]/i.test(regex.source.replace(
    +                     /\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, ''))) {
    +        needToFoldCase = true;
    +        ignoreCase = false;
    +        break;
    +      }
    +    }
    +  
    +    var escapeCharToCodeUnit = {
    +      'b': 8,
    +      't': 9,
    +      'n': 0xa,
    +      'v': 0xb,
    +      'f': 0xc,
    +      'r': 0xd
    +    };
    +  
    +    function decodeEscape(charsetPart) {
    +      var cc0 = charsetPart.charCodeAt(0);
    +      if (cc0 !== 92 /* \\ */) {
    +        return cc0;
    +      }
    +      var c1 = charsetPart.charAt(1);
    +      cc0 = escapeCharToCodeUnit[c1];
    +      if (cc0) {
    +        return cc0;
    +      } else if ('0' <= c1 && c1 <= '7') {
    +        return parseInt(charsetPart.substring(1), 8);
    +      } else if (c1 === 'u' || c1 === 'x') {
    +        return parseInt(charsetPart.substring(2), 16);
    +      } else {
    +        return charsetPart.charCodeAt(1);
    +      }
    +    }
    +  
    +    function encodeEscape(charCode) {
    +      if (charCode < 0x20) {
    +        return (charCode < 0x10 ? '\\x0' : '\\x') + charCode.toString(16);
    +      }
    +      var ch = String.fromCharCode(charCode);
    +      return (ch === '\\' || ch === '-' || ch === ']' || ch === '^')
    +          ? "\\" + ch : ch;
    +    }
    +  
    +    function caseFoldCharset(charSet) {
    +      var charsetParts = charSet.substring(1, charSet.length - 1).match(
    +          new RegExp(
    +              '\\\\u[0-9A-Fa-f]{4}'
    +              + '|\\\\x[0-9A-Fa-f]{2}'
    +              + '|\\\\[0-3][0-7]{0,2}'
    +              + '|\\\\[0-7]{1,2}'
    +              + '|\\\\[\\s\\S]'
    +              + '|-'
    +              + '|[^-\\\\]',
    +              'g'));
    +      var ranges = [];
    +      var inverse = charsetParts[0] === '^';
    +  
    +      var out = ['['];
    +      if (inverse) { out.push('^'); }
    +  
    +      for (var i = inverse ? 1 : 0, n = charsetParts.length; i < n; ++i) {
    +        var p = charsetParts[i];
    +        if (/\\[bdsw]/i.test(p)) {  // Don't muck with named groups.
    +          out.push(p);
    +        } else {
    +          var start = decodeEscape(p);
    +          var end;
    +          if (i + 2 < n && '-' === charsetParts[i + 1]) {
    +            end = decodeEscape(charsetParts[i + 2]);
    +            i += 2;
    +          } else {
    +            end = start;
    +          }
    +          ranges.push([start, end]);
    +          // If the range might intersect letters, then expand it.
    +          // This case handling is too simplistic.
    +          // It does not deal with non-latin case folding.
    +          // It works for latin source code identifiers though.
    +          if (!(end < 65 || start > 122)) {
    +            if (!(end < 65 || start > 90)) {
    +              ranges.push([Math.max(65, start) | 32, Math.min(end, 90) | 32]);
    +            }
    +            if (!(end < 97 || start > 122)) {
    +              ranges.push([Math.max(97, start) & ~32, Math.min(end, 122) & ~32]);
    +            }
    +          }
    +        }
    +      }
    +  
    +      // [[1, 10], [3, 4], [8, 12], [14, 14], [16, 16], [17, 17]]
    +      // -> [[1, 12], [14, 14], [16, 17]]
    +      ranges.sort(function (a, b) { return (a[0] - b[0]) || (b[1]  - a[1]); });
    +      var consolidatedRanges = [];
    +      var lastRange = [];
    +      for (var i = 0; i < ranges.length; ++i) {
    +        var range = ranges[i];
    +        if (range[0] <= lastRange[1] + 1) {
    +          lastRange[1] = Math.max(lastRange[1], range[1]);
    +        } else {
    +          consolidatedRanges.push(lastRange = range);
    +        }
    +      }
    +  
    +      for (var i = 0; i < consolidatedRanges.length; ++i) {
    +        var range = consolidatedRanges[i];
    +        out.push(encodeEscape(range[0]));
    +        if (range[1] > range[0]) {
    +          if (range[1] + 1 > range[0]) { out.push('-'); }
    +          out.push(encodeEscape(range[1]));
    +        }
    +      }
    +      out.push(']');
    +      return out.join('');
    +    }
    +  
    +    function allowAnywhereFoldCaseAndRenumberGroups(regex) {
    +      // Split into character sets, escape sequences, punctuation strings
    +      // like ('(', '(?:', ')', '^'), and runs of characters that do not
    +      // include any of the above.
    +      var parts = regex.source.match(
    +          new RegExp(
    +              '(?:'
    +              + '\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]'  // a character set
    +              + '|\\\\u[A-Fa-f0-9]{4}'  // a unicode escape
    +              + '|\\\\x[A-Fa-f0-9]{2}'  // a hex escape
    +              + '|\\\\[0-9]+'  // a back-reference or octal escape
    +              + '|\\\\[^ux0-9]'  // other escape sequence
    +              + '|\\(\\?[:!=]'  // start of a non-capturing group
    +              + '|[\\(\\)\\^]'  // start/end of a group, or line start
    +              + '|[^\\x5B\\x5C\\(\\)\\^]+'  // run of other characters
    +              + ')',
    +              'g'));
    +      var n = parts.length;
    +  
    +      // Maps captured group numbers to the number they will occupy in
    +      // the output or to -1 if that has not been determined, or to
    +      // undefined if they need not be capturing in the output.
    +      var capturedGroups = [];
    +  
    +      // Walk over and identify back references to build the capturedGroups
    +      // mapping.
    +      for (var i = 0, groupIndex = 0; i < n; ++i) {
    +        var p = parts[i];
    +        if (p === '(') {
    +          // groups are 1-indexed, so max group index is count of '('
    +          ++groupIndex;
    +        } else if ('\\' === p.charAt(0)) {
    +          var decimalValue = +p.substring(1);
    +          if (decimalValue) {
    +            if (decimalValue <= groupIndex) {
    +              capturedGroups[decimalValue] = -1;
    +            } else {
    +              // Replace with an unambiguous escape sequence so that
    +              // an octal escape sequence does not turn into a backreference
    +              // to a capturing group from an earlier regex.
    +              parts[i] = encodeEscape(decimalValue);
    +            }
    +          }
    +        }
    +      }
    +  
    +      // Renumber groups and reduce capturing groups to non-capturing groups
    +      // where possible.
    +      for (var i = 1; i < capturedGroups.length; ++i) {
    +        if (-1 === capturedGroups[i]) {
    +          capturedGroups[i] = ++capturedGroupIndex;
    +        }
    +      }
    +      for (var i = 0, groupIndex = 0; i < n; ++i) {
    +        var p = parts[i];
    +        if (p === '(') {
    +          ++groupIndex;
    +          if (!capturedGroups[groupIndex]) {
    +            parts[i] = '(?:';
    +          }
    +        } else if ('\\' === p.charAt(0)) {
    +          var decimalValue = +p.substring(1);
    +          if (decimalValue && decimalValue <= groupIndex) {
    +            parts[i] = '\\' + capturedGroups[decimalValue];
    +          }
    +        }
    +      }
    +  
    +      // Remove any prefix anchors so that the output will match anywhere.
    +      // ^^ really does mean an anchored match though.
    +      for (var i = 0; i < n; ++i) {
    +        if ('^' === parts[i] && '^' !== parts[i + 1]) { parts[i] = ''; }
    +      }
    +  
    +      // Expand letters to groups to handle mixing of case-sensitive and
    +      // case-insensitive patterns if necessary.
    +      if (regex.ignoreCase && needToFoldCase) {
    +        for (var i = 0; i < n; ++i) {
    +          var p = parts[i];
    +          var ch0 = p.charAt(0);
    +          if (p.length >= 2 && ch0 === '[') {
    +            parts[i] = caseFoldCharset(p);
    +          } else if (ch0 !== '\\') {
    +            // TODO: handle letters in numeric escapes.
    +            parts[i] = p.replace(
    +                /[a-zA-Z]/g,
    +                function (ch) {
    +                  var cc = ch.charCodeAt(0);
    +                  return '[' + String.fromCharCode(cc & ~32, cc | 32) + ']';
    +                });
    +          }
    +        }
    +      }
    +  
    +      return parts.join('');
    +    }
    +  
    +    var rewritten = [];
    +    for (var i = 0, n = regexs.length; i < n; ++i) {
    +      var regex = regexs[i];
    +      if (regex.global || regex.multiline) { throw new Error('' + regex); }
    +      rewritten.push(
    +          '(?:' + allowAnywhereFoldCaseAndRenumberGroups(regex) + ')');
    +    }
    +  
    +    return new RegExp(rewritten.join('|'), ignoreCase ? 'gi' : 'g');
    +  }
    +
    +  /**
    +   * Split markup into a string of source code and an array mapping ranges in
    +   * that string to the text nodes in which they appear.
    +   *
    +   * <p>
    +   * The HTML DOM structure:</p>
    +   * <pre>
    +   * (Element   "p"
    +   *   (Element "b"
    +   *     (Text  "print "))       ; #1
    +   *   (Text    "'Hello '")      ; #2
    +   *   (Element "br")            ; #3
    +   *   (Text    "  + 'World';")) ; #4
    +   * </pre>
    +   * <p>
    +   * corresponds to the HTML
    +   * {@code <p><b>print </b>'Hello '<br>  + 'World';</p>}.</p>
    +   *
    +   * <p>
    +   * It will produce the output:</p>
    +   * <pre>
    +   * {
    +   *   sourceCode: "print 'Hello '\n  + 'World';",
    +   *   //                     1          2
    +   *   //           012345678901234 5678901234567
    +   *   spans: [0, #1, 6, #2, 14, #3, 15, #4]
    +   * }
    +   * </pre>
    +   * <p>
    +   * where #1 is a reference to the {@code "print "} text node above, and so
    +   * on for the other text nodes.
    +   * </p>
    +   *
    +   * <p>
    +   * The {@code} spans array is an array of pairs.  Even elements are the start
    +   * indices of substrings, and odd elements are the text nodes (or BR elements)
    +   * that contain the text for those substrings.
    +   * Substrings continue until the next index or the end of the source.
    +   * </p>
    +   *
    +   * @param {Node} node an HTML DOM subtree containing source-code.
    +   * @param {boolean} isPreformatted true if white-space in text nodes should
    +   *    be considered significant.
    +   * @return {Object} source code and the text nodes in which they occur.
    +   */
    +  function extractSourceSpans(node, isPreformatted) {
    +    var nocode = /(?:^|\s)nocode(?:\s|$)/;
    +  
    +    var chunks = [];
    +    var length = 0;
    +    var spans = [];
    +    var k = 0;
    +  
    +    function walk(node) {
    +      var type = node.nodeType;
    +      if (type == 1) {  // Element
    +        if (nocode.test(node.className)) { return; }
    +        for (var child = node.firstChild; child; child = child.nextSibling) {
    +          walk(child);
    +        }
    +        var nodeName = node.nodeName.toLowerCase();
    +        if ('br' === nodeName || 'li' === nodeName) {
    +          chunks[k] = '\n';
    +          spans[k << 1] = length++;
    +          spans[(k++ << 1) | 1] = node;
    +        }
    +      } else if (type == 3 || type == 4) {  // Text
    +        var text = node.nodeValue;
    +        if (text.length) {
    +          if (!isPreformatted) {
    +            text = text.replace(/[ \t\r\n]+/g, ' ');
    +          } else {
    +            text = text.replace(/\r\n?/g, '\n');  // Normalize newlines.
    +          }
    +          // 清除代码尾部的空行
    +          text = text.replace(/\n[\s\t]+$/g,"");
    +          // TODO: handle tabs here?
    +          chunks[k] = text;
    +          spans[k << 1] = length;
    +          length += text.length;
    +          spans[(k++ << 1) | 1] = node;
    +        }
    +      }
    +    }
    +  
    +    walk(node);
    +  
    +    return {
    +      sourceCode: chunks.join('').replace(/\n$/, ''),
    +      spans: spans
    +    };
    +  }
    +
    +  /**
    +   * Apply the given language handler to sourceCode and add the resulting
    +   * decorations to out.
    +   * @param {number} basePos the index of sourceCode within the chunk of source
    +   *    whose decorations are already present on out.
    +   */
    +  function appendDecorations(basePos, sourceCode, langHandler, out) {
    +    if (!sourceCode) { return; }
    +    var job = {
    +      sourceCode: sourceCode,
    +      basePos: basePos
    +    };
    +    langHandler(job);
    +    out.push.apply(out, job.decorations);
    +  }
    +
    +  var notWs = /\S/;
    +
    +  /**
    +   * Given an element, if it contains only one child element and any text nodes
    +   * it contains contain only space characters, return the sole child element.
    +   * Otherwise returns undefined.
    +   * <p>
    +   * This is meant to return the CODE element in {@code <pre><code ...>} when
    +   * there is a single child element that contains all the non-space textual
    +   * content, but not to return anything where there are multiple child elements
    +   * as in {@code <pre><code>...</code><code>...</code></pre>} or when there
    +   * is textual content.
    +   */
    +  function childContentWrapper(element) {
    +    var wrapper = undefined;
    +    for (var c = element.firstChild; c; c = c.nextSibling) {
    +      var type = c.nodeType;
    +      wrapper = (type === 1)  // Element Node
    +          ? (wrapper ? element : c)
    +          : (type === 3)  // Text Node
    +          ? (notWs.test(c.nodeValue) ? element : wrapper)
    +          : wrapper;
    +    }
    +    return wrapper === element ? undefined : wrapper;
    +  }
    +
    +  /** Given triples of [style, pattern, context] returns a lexing function,
    +    * The lexing function interprets the patterns to find token boundaries and
    +    * returns a decoration list of the form
    +    * [index_0, style_0, index_1, style_1, ..., index_n, style_n]
    +    * where index_n is an index into the sourceCode, and style_n is a style
    +    * constant like PR_PLAIN.  index_n-1 <= index_n, and style_n-1 applies to
    +    * all characters in sourceCode[index_n-1:index_n].
    +    *
    +    * The stylePatterns is a list whose elements have the form
    +    * [style : string, pattern : RegExp, DEPRECATED, shortcut : string].
    +    *
    +    * Style is a style constant like PR_PLAIN, or can be a string of the
    +    * form 'lang-FOO', where FOO is a language extension describing the
    +    * language of the portion of the token in $1 after pattern executes.
    +    * E.g., if style is 'lang-lisp', and group 1 contains the text
    +    * '(hello (world))', then that portion of the token will be passed to the
    +    * registered lisp handler for formatting.
    +    * The text before and after group 1 will be restyled using this decorator
    +    * so decorators should take care that this doesn't result in infinite
    +    * recursion.  For example, the HTML lexer rule for SCRIPT elements looks
    +    * something like ['lang-js', /<[s]cript>(.+?)<\/script>/].  This may match
    +    * '<script>foo()<\/script>', which would cause the current decorator to
    +    * be called with '<script>' which would not match the same rule since
    +    * group 1 must not be empty, so it would be instead styled as PR_TAG by
    +    * the generic tag rule.  The handler registered for the 'js' extension would
    +    * then be called with 'foo()', and finally, the current decorator would
    +    * be called with '<\/script>' which would not match the original rule and
    +    * so the generic tag rule would identify it as a tag.
    +    *
    +    * Pattern must only match prefixes, and if it matches a prefix, then that
    +    * match is considered a token with the same style.
    +    *
    +    * Context is applied to the last non-whitespace, non-comment token
    +    * recognized.
    +    *
    +    * Shortcut is an optional string of characters, any of which, if the first
    +    * character, gurantee that this pattern and only this pattern matches.
    +    *
    +    * @param {Array} shortcutStylePatterns patterns that always start with
    +    *   a known character.  Must have a shortcut string.
    +    * @param {Array} fallthroughStylePatterns patterns that will be tried in
    +    *   order if the shortcut ones fail.  May have shortcuts.
    +    *
    +    * @return {function (Object)} a
    +    *   function that takes source code and returns a list of decorations.
    +    */
    +  function createSimpleLexer(shortcutStylePatterns, fallthroughStylePatterns) {
    +    var shortcuts = {};
    +    var tokenizer;
    +    (function () {
    +      var allPatterns = shortcutStylePatterns.concat(fallthroughStylePatterns);
    +      var allRegexs = [];
    +      var regexKeys = {};
    +      for (var i = 0, n = allPatterns.length; i < n; ++i) {
    +        var patternParts = allPatterns[i];
    +        var shortcutChars = patternParts[3];
    +        if (shortcutChars) {
    +          for (var c = shortcutChars.length; --c >= 0;) {
    +            shortcuts[shortcutChars.charAt(c)] = patternParts;
    +          }
    +        }
    +        var regex = patternParts[1];
    +        var k = '' + regex;
    +        if (!regexKeys.hasOwnProperty(k)) {
    +          allRegexs.push(regex);
    +          regexKeys[k] = null;
    +        }
    +      }
    +      allRegexs.push(/[\0-\uffff]/);
    +      tokenizer = combinePrefixPatterns(allRegexs);
    +    })();
    +
    +    var nPatterns = fallthroughStylePatterns.length;
    +
    +    /**
    +     * Lexes job.sourceCode and produces an output array job.decorations of
    +     * style classes preceded by the position at which they start in
    +     * job.sourceCode in order.
    +     *
    +     * @param {Object} job an object like <pre>{
    +     *    sourceCode: {string} sourceText plain text,
    +     *    basePos: {int} position of job.sourceCode in the larger chunk of
    +     *        sourceCode.
    +     * }</pre>
    +     */
    +    var decorate = function (job) {
    +      var sourceCode = job.sourceCode, basePos = job.basePos;
    +      /** Even entries are positions in source in ascending order.  Odd enties
    +        * are style markers (e.g., PR_COMMENT) that run from that position until
    +        * the end.
    +        * @type {Array.<number|string>}
    +        */
    +      var decorations = [basePos, PR_PLAIN];
    +      var pos = 0;  // index into sourceCode
    +      var tokens = sourceCode.match(tokenizer) || [];
    +      var styleCache = {};
    +
    +      for (var ti = 0, nTokens = tokens.length; ti < nTokens; ++ti) {
    +        var token = tokens[ti];
    +        var style = styleCache[token];
    +        var match = void 0;
    +
    +        var isEmbedded;
    +        if (typeof style === 'string') {
    +          isEmbedded = false;
    +        } else {
    +          var patternParts = shortcuts[token.charAt(0)];
    +          if (patternParts) {
    +            match = token.match(patternParts[1]);
    +            style = patternParts[0];
    +          } else {
    +            for (var i = 0; i < nPatterns; ++i) {
    +              patternParts = fallthroughStylePatterns[i];
    +              match = token.match(patternParts[1]);
    +              if (match) {
    +                style = patternParts[0];
    +                break;
    +              }
    +            }
    +
    +            if (!match) {  // make sure that we make progress
    +              style = PR_PLAIN;
    +            }
    +          }
    +
    +          isEmbedded = style.length >= 5 && 'lang-' === style.substring(0, 5);
    +          if (isEmbedded && !(match && typeof match[1] === 'string')) {
    +            isEmbedded = false;
    +            style = PR_SOURCE;
    +          }
    +
    +          if (!isEmbedded) { styleCache[token] = style; }
    +        }
    +
    +        var tokenStart = pos;
    +        pos += token.length;
    +
    +        if (!isEmbedded) {
    +          decorations.push(basePos + tokenStart, style);
    +        } else {  // Treat group 1 as an embedded block of source code.
    +          var embeddedSource = match[1];
    +          var embeddedSourceStart = token.indexOf(embeddedSource);
    +          var embeddedSourceEnd = embeddedSourceStart + embeddedSource.length;
    +          if (match[2]) {
    +            // If embeddedSource can be blank, then it would match at the
    +            // beginning which would cause us to infinitely recurse on the
    +            // entire token, so we catch the right context in match[2].
    +            embeddedSourceEnd = token.length - match[2].length;
    +            embeddedSourceStart = embeddedSourceEnd - embeddedSource.length;
    +          }
    +          var lang = style.substring(5);
    +          // Decorate the left of the embedded source
    +          appendDecorations(
    +              basePos + tokenStart,
    +              token.substring(0, embeddedSourceStart),
    +              decorate, decorations);
    +          // Decorate the embedded source
    +          appendDecorations(
    +              basePos + tokenStart + embeddedSourceStart,
    +              embeddedSource,
    +              langHandlerForExtension(lang, embeddedSource),
    +              decorations);
    +          // Decorate the right of the embedded section
    +          appendDecorations(
    +              basePos + tokenStart + embeddedSourceEnd,
    +              token.substring(embeddedSourceEnd),
    +              decorate, decorations);
    +        }
    +      }
    +      job.decorations = decorations;
    +    };
    +    return decorate;
    +  }
    +
    +  /** returns a function that produces a list of decorations from source text.
    +    *
    +    * This code treats ", ', and ` as string delimiters, and \ as a string
    +    * escape.  It does not recognize perl's qq() style strings.
    +    * It has no special handling for double delimiter escapes as in basic, or
    +    * the tripled delimiters used in python, but should work on those regardless
    +    * although in those cases a single string literal may be broken up into
    +    * multiple adjacent string literals.
    +    *
    +    * It recognizes C, C++, and shell style comments.
    +    *
    +    * @param {Object} options a set of optional parameters.
    +    * @return {function (Object)} a function that examines the source code
    +    *     in the input job and builds the decoration list.
    +    */
    +  function sourceDecorator(options) {
    +    var shortcutStylePatterns = [], fallthroughStylePatterns = [];
    +    if (options['tripleQuotedStrings']) {
    +      // '''multi-line-string''', 'single-line-string', and double-quoted
    +      shortcutStylePatterns.push(
    +          [PR_STRING,  /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,
    +           null, '\'"']);
    +    } else if (options['multiLineStrings']) {
    +      // 'multi-line-string', "multi-line-string"
    +      shortcutStylePatterns.push(
    +          [PR_STRING,  /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,
    +           null, '\'"`']);
    +    } else {
    +      // 'single-line-string', "single-line-string"
    +      shortcutStylePatterns.push(
    +          [PR_STRING,
    +           /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,
    +           null, '"\'']);
    +    }
    +    if (options['verbatimStrings']) {
    +      // verbatim-string-literal production from the C# grammar.  See issue 93.
    +      fallthroughStylePatterns.push(
    +          [PR_STRING, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]);
    +    }
    +    var hc = options['hashComments'];
    +    if (hc) {
    +      if (options['cStyleComments']) {
    +        if (hc > 1) {  // multiline hash comments
    +          shortcutStylePatterns.push(
    +              [PR_COMMENT, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, '#']);
    +        } else {
    +          // Stop C preprocessor declarations at an unclosed open comment
    +          shortcutStylePatterns.push(
    +              [PR_COMMENT, /^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,
    +               null, '#']);
    +        }
    +        // #include <stdio.h>
    +        fallthroughStylePatterns.push(
    +            [PR_STRING,
    +             /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,
    +             null]);
    +      } else {
    +        shortcutStylePatterns.push([PR_COMMENT, /^#[^\r\n]*/, null, '#']);
    +      }
    +    }
    +    if (options['cStyleComments']) {
    +      fallthroughStylePatterns.push([PR_COMMENT, /^\/\/[^\r\n]*/, null]);
    +      fallthroughStylePatterns.push(
    +          [PR_COMMENT, /^\/\*[\s\S]*?(?:\*\/|$)/, null]);
    +    }
    +    var regexLiterals = options['regexLiterals'];
    +    if (regexLiterals) {
    +      /**
    +       * @const
    +       */
    +      var regexExcls = regexLiterals > 1
    +        ? ''  // Multiline regex literals
    +        : '\n\r';
    +      /**
    +       * @const
    +       */
    +      var regexAny = regexExcls ? '.' : '[\\S\\s]';
    +      /**
    +       * @const
    +       */
    +      var REGEX_LITERAL = (
    +          // A regular expression literal starts with a slash that is
    +          // not followed by * or / so that it is not confused with
    +          // comments.
    +          '/(?=[^/*' + regexExcls + '])'
    +          // and then contains any number of raw characters,
    +          + '(?:[^/\\x5B\\x5C' + regexExcls + ']'
    +          // escape sequences (\x5C),
    +          +    '|\\x5C' + regexAny
    +          // or non-nesting character sets (\x5B\x5D);
    +          +    '|\\x5B(?:[^\\x5C\\x5D' + regexExcls + ']'
    +          +             '|\\x5C' + regexAny + ')*(?:\\x5D|$))+'
    +          // finally closed by a /.
    +          + '/');
    +      fallthroughStylePatterns.push(
    +          ['lang-regex',
    +           RegExp('^' + REGEXP_PRECEDER_PATTERN + '(' + REGEX_LITERAL + ')')
    +           ]);
    +    }
    +
    +    var types = options['types'];
    +    if (types) {
    +      fallthroughStylePatterns.push([PR_TYPE, types]);
    +    }
    +
    +    var keywords = ("" + options['keywords']).replace(/^ | $/g, '');
    +    if (keywords.length) {
    +      fallthroughStylePatterns.push(
    +          [PR_KEYWORD,
    +           new RegExp('^(?:' + keywords.replace(/[\s,]+/g, '|') + ')\\b'),
    +           null]);
    +    }
    +
    +    shortcutStylePatterns.push([PR_PLAIN,       /^\s+/, null, ' \r\n\t\xA0']);
    +
    +    var punctuation =
    +      // The Bash man page says
    +
    +      // A word is a sequence of characters considered as a single
    +      // unit by GRUB. Words are separated by metacharacters,
    +      // which are the following plus space, tab, and newline: { }
    +      // | & $ ; < >
    +      // ...
    +      
    +      // A word beginning with # causes that word and all remaining
    +      // characters on that line to be ignored.
    +
    +      // which means that only a '#' after /(?:^|[{}|&$;<>\s])/ starts a
    +      // comment but empirically
    +      // $ echo {#}
    +      // {#}
    +      // $ echo \$#
    +      // $#
    +      // $ echo }#
    +      // }#
    +
    +      // so /(?:^|[|&;<>\s])/ is more appropriate.
    +
    +      // http://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC3
    +      // suggests that this definition is compatible with a
    +      // default mode that tries to use a single token definition
    +      // to recognize both bash/python style comments and C
    +      // preprocessor directives.
    +
    +      // This definition of punctuation does not include # in the list of
    +      // follow-on exclusions, so # will not be broken before if preceeded
    +      // by a punctuation character.  We could try to exclude # after
    +      // [|&;<>] but that doesn't seem to cause many major problems.
    +      // If that does turn out to be a problem, we should change the below
    +      // when hc is truthy to include # in the run of punctuation characters
    +      // only when not followint [|&;<>].
    +      '^.[^\\s\\w.$@\'"`/\\\\]*';
    +    if (options['regexLiterals']) {
    +      punctuation += '(?!\s*\/)';
    +    }
    +
    +    fallthroughStylePatterns.push(
    +        // TODO(mikesamuel): recognize non-latin letters and numerals in idents
    +        [PR_LITERAL,     /^@[a-z_$][a-z_$@0-9]*/i, null],
    +        [PR_TYPE,        /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null],
    +        [PR_PLAIN,       /^[a-z_$][a-z_$@0-9]*/i, null],
    +        [PR_LITERAL,
    +         new RegExp(
    +             '^(?:'
    +             // A hex number
    +             + '0x[a-f0-9]+'
    +             // or an octal or decimal number,
    +             + '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
    +             // possibly in scientific notation
    +             + '(?:e[+\\-]?\\d+)?'
    +             + ')'
    +             // with an optional modifier like UL for unsigned long
    +             + '[a-z]*', 'i'),
    +         null, '0123456789'],
    +        // Don't treat escaped quotes in bash as starting strings.
    +        // See issue 144.
    +        [PR_PLAIN,       /^\\[\s\S]?/, null],
    +        [PR_PUNCTUATION, new RegExp(punctuation), null]);
    +
    +    return createSimpleLexer(shortcutStylePatterns, fallthroughStylePatterns);
    +  }
    +
    +  var decorateSource = sourceDecorator({
    +        'keywords': ALL_KEYWORDS,
    +        'hashComments': true,
    +        'cStyleComments': true,
    +        'multiLineStrings': true,
    +        'regexLiterals': true
    +      });
    +
    +  /**
    +   * Given a DOM subtree, wraps it in a list, and puts each line into its own
    +   * list item.
    +   *
    +   * @param {Node} node modified in place.  Its content is pulled into an
    +   *     HTMLOListElement, and each line is moved into a separate list item.
    +   *     This requires cloning elements, so the input might not have unique
    +   *     IDs after numbering.
    +   * @param {boolean} isPreformatted true iff white-space in text nodes should
    +   *     be treated as significant.
    +   */
    +  function numberLines(node, opt_startLineNum, isPreformatted) {
    +    var nocode = /(?:^|\s)nocode(?:\s|$)/;
    +    var lineBreak = /\r\n?|\n/;
    +    var invalidTail = /^[\s\t]+$/;
    +  
    +    var document = node.ownerDocument;
    +  
    +    var li = document.createElement('li');
    +    while (node.firstChild) {
    +      li.appendChild(node.firstChild);
    +    }
    +    // An array of lines.  We split below, so this is initialized to one
    +    // un-split line.
    +    var listItems = [li];
    +  
    +    function walk(node) {
    +      var type = node.nodeType;
    +      if (type == 1 && !nocode.test(node.className)) {  // Element
    +        if ('br' === node.nodeName) {
    +          breakAfter(node);
    +          // Discard the <BR> since it is now flush against a </LI>.
    +          if (node.parentNode) {
    +            node.parentNode.removeChild(node);
    +          }
    +        } else {
    +          for (var child = node.firstChild; child; child = child.nextSibling) {
    +            walk(child);
    +          }
    +        }
    +      } else if ((type == 3 || type == 4) && isPreformatted) {  // Text
    +        var text = node.nodeValue;
    +        var match = text.match(lineBreak);
    +        if (match) {
    +          var firstLine = text.substring(0, match.index);
    +          node.nodeValue = firstLine;
    +          var tail = text.substring(match.index + match[0].length);
    +          if (tail && !invalidTail.test(tail) ) {	// 清除代码尾部的空行, org: if (tail) {
    +            var parent = node.parentNode;
    +            parent.insertBefore(
    +              document.createTextNode(tail), node.nextSibling);
    +          }
    +          breakAfter(node);
    +          if (!firstLine) {
    +            // Don't leave blank text nodes in the DOM.
    +            node.parentNode.removeChild(node);
    +          }
    +        }
    +      }
    +    }
    +  
    +    // Split a line after the given node.
    +    function breakAfter(lineEndNode) {
    +      // If there's nothing to the right, then we can skip ending the line
    +      // here, and move root-wards since splitting just before an end-tag
    +      // would require us to create a bunch of empty copies.
    +      while (!lineEndNode.nextSibling) {
    +        lineEndNode = lineEndNode.parentNode;
    +        if (!lineEndNode) { return; }
    +      }
    +  
    +      function breakLeftOf(limit, copy) {
    +        // Clone shallowly if this node needs to be on both sides of the break.
    +        var rightSide = copy ? limit.cloneNode(false) : limit;
    +        var parent = limit.parentNode;
    +        if (parent) {
    +          // We clone the parent chain.
    +          // This helps us resurrect important styling elements that cross lines.
    +          // E.g. in <i>Foo<br>Bar</i>
    +          // should be rewritten to <li><i>Foo</i></li><li><i>Bar</i></li>.
    +          var parentClone = breakLeftOf(parent, 1);
    +          // Move the clone and everything to the right of the original
    +          // onto the cloned parent.
    +          var next = limit.nextSibling;
    +          parentClone.appendChild(rightSide);
    +          for (var sibling = next; sibling; sibling = next) {
    +            next = sibling.nextSibling;
    +            parentClone.appendChild(sibling);
    +          }
    +        }
    +        return rightSide;
    +      }
    +  
    +      var copiedListItem = breakLeftOf(lineEndNode.nextSibling, 0);
    +  
    +      // Walk the parent chain until we reach an unattached LI.
    +      for (var parent;
    +           // Check nodeType since IE invents document fragments.
    +           (parent = copiedListItem.parentNode) && parent.nodeType === 1;) {
    +        copiedListItem = parent;
    +      }
    +      // Put it on the list of lines for later processing.
    +      listItems.push(copiedListItem);
    +    }
    +  
    +    // Split lines while there are lines left to split.
    +    for (var i = 0;  // Number of lines that have been split so far.
    +         i < listItems.length;  // length updated by breakAfter calls.
    +         ++i) {
    +      walk(listItems[i]);
    +    }
    +  
    +    // Make sure numeric indices show correctly.
    +    if (opt_startLineNum === (opt_startLineNum|0)) {
    +      listItems[0].setAttribute('value', opt_startLineNum);
    +    }
    +  
    +    var ol = document.createElement('ol');
    +    ol.className = 'linenums';
    +    var offset = Math.max(0, ((opt_startLineNum - 1 /* zero index */)) | 0) || 0;
    +    for (var i = 0, n = listItems.length; i < n; ++i) {
    +      li = listItems[i];
    +      // Stick a class on the LIs so that stylesheets can
    +      // color odd/even rows, or any other row pattern that
    +      // is co-prime with 10.
    +      li.className = 'L' + ((i + offset) % 10);
    +      if (!li.firstChild) {
    +        li.appendChild(document.createTextNode('\xA0'));
    +      }
    +      ol.appendChild(li);
    +    }
    +  
    +    node.appendChild(ol);
    +  }
    +  /**
    +   * Breaks {@code job.sourceCode} around style boundaries in
    +   * {@code job.decorations} and modifies {@code job.sourceNode} in place.
    +   * @param {Object} job like <pre>{
    +   *    sourceCode: {string} source as plain text,
    +   *    sourceNode: {HTMLElement} the element containing the source,
    +   *    spans: {Array.<number|Node>} alternating span start indices into source
    +   *       and the text node or element (e.g. {@code <BR>}) corresponding to that
    +   *       span.
    +   *    decorations: {Array.<number|string} an array of style classes preceded
    +   *       by the position at which they start in job.sourceCode in order
    +   * }</pre>
    +   * @private
    +   */
    +  function recombineTagsAndDecorations(job) {
    +    var isIE8OrEarlier = /\bMSIE\s(\d+)/.exec(navigator.userAgent);
    +    isIE8OrEarlier = isIE8OrEarlier && +isIE8OrEarlier[1] <= 8;
    +    var newlineRe = /\n/g;
    +  
    +    var source = job.sourceCode;
    +    var sourceLength = source.length;
    +    // Index into source after the last code-unit recombined.
    +    var sourceIndex = 0;
    +  
    +    var spans = job.spans;
    +    var nSpans = spans.length;
    +    // Index into spans after the last span which ends at or before sourceIndex.
    +    var spanIndex = 0;
    +  
    +    var decorations = job.decorations;
    +    var nDecorations = decorations.length;
    +    // Index into decorations after the last decoration which ends at or before
    +    // sourceIndex.
    +    var decorationIndex = 0;
    +  
    +    // Remove all zero-length decorations.
    +    decorations[nDecorations] = sourceLength;
    +    var decPos, i;
    +    for (i = decPos = 0; i < nDecorations;) {
    +      if (decorations[i] !== decorations[i + 2]) {
    +        decorations[decPos++] = decorations[i++];
    +        decorations[decPos++] = decorations[i++];
    +      } else {
    +        i += 2;
    +      }
    +    }
    +    nDecorations = decPos;
    +  
    +    // Simplify decorations.
    +    for (i = decPos = 0; i < nDecorations;) {
    +      var startPos = decorations[i];
    +      // Conflate all adjacent decorations that use the same style.
    +      var startDec = decorations[i + 1];
    +      var end = i + 2;
    +      while (end + 2 <= nDecorations && decorations[end + 1] === startDec) {
    +        end += 2;
    +      }
    +      decorations[decPos++] = startPos;
    +      decorations[decPos++] = startDec;
    +      i = end;
    +    }
    +  
    +    nDecorations = decorations.length = decPos;
    +  
    +    var sourceNode = job.sourceNode;
    +    var oldDisplay;
    +    if (sourceNode) {
    +      oldDisplay = sourceNode.style.display;
    +      sourceNode.style.display = 'none';
    +    }
    +    try {
    +      var decoration = null;
    +      while (spanIndex < nSpans) {
    +        var spanStart = spans[spanIndex];
    +        var spanEnd = spans[spanIndex + 2] || sourceLength;
    +  
    +        var decEnd = decorations[decorationIndex + 2] || sourceLength;
    +  
    +        var end = Math.min(spanEnd, decEnd);
    +  
    +        var textNode = spans[spanIndex + 1];
    +        var styledText;
    +        if (textNode.nodeType !== 1  // Don't muck with <BR>s or <LI>s
    +            // Don't introduce spans around empty text nodes.
    +            && (styledText = source.substring(sourceIndex, end))) {
    +          // This may seem bizarre, and it is.  Emitting LF on IE causes the
    +          // code to display with spaces instead of line breaks.
    +          // Emitting Windows standard issue linebreaks (CRLF) causes a blank
    +          // space to appear at the beginning of every line but the first.
    +          // Emitting an old Mac OS 9 line separator makes everything spiffy.
    +          if (isIE8OrEarlier) {
    +            styledText = styledText.replace(newlineRe, '\r');
    +          }
    +          textNode.nodeValue = styledText;
    +          var document = textNode.ownerDocument;
    +          var span = document.createElement('span');
    +          span.className = decorations[decorationIndex + 1];
    +          var parentNode = textNode.parentNode;
    +          parentNode.replaceChild(span, textNode);
    +          span.appendChild(textNode);
    +          if (sourceIndex < spanEnd) {  // Split off a text node.
    +            spans[spanIndex + 1] = textNode
    +                // TODO: Possibly optimize by using '' if there's no flicker.
    +                = document.createTextNode(source.substring(end, spanEnd));
    +            parentNode.insertBefore(textNode, span.nextSibling);
    +          }
    +        }
    +  
    +        sourceIndex = end;
    +  
    +        if (sourceIndex >= spanEnd) {
    +          spanIndex += 2;
    +        }
    +        if (sourceIndex >= decEnd) {
    +          decorationIndex += 2;
    +        }
    +      }
    +    } finally {
    +      if (sourceNode) {
    +        sourceNode.style.display = oldDisplay;
    +      }
    +    }
    +  }
    +
    +  /** Maps language-specific file extensions to handlers. */
    +  var langHandlerRegistry = {};
    +  /** Register a language handler for the given file extensions.
    +    * @param {function (Object)} handler a function from source code to a list
    +    *      of decorations.  Takes a single argument job which describes the
    +    *      state of the computation.   The single parameter has the form
    +    *      {@code {
    +    *        sourceCode: {string} as plain text.
    +    *        decorations: {Array.<number|string>} an array of style classes
    +    *                     preceded by the position at which they start in
    +    *                     job.sourceCode in order.
    +    *                     The language handler should assigned this field.
    +    *        basePos: {int} the position of source in the larger source chunk.
    +    *                 All positions in the output decorations array are relative
    +    *                 to the larger source chunk.
    +    *      } }
    +    * @param {Array.<string>} fileExtensions
    +    */
    +  function registerLangHandler(handler, fileExtensions) {
    +    for (var i = fileExtensions.length; --i >= 0;) {
    +      var ext = fileExtensions[i];
    +      if (!langHandlerRegistry.hasOwnProperty(ext)) {
    +        langHandlerRegistry[ext] = handler;
    +      } else if (win['console']) {
    +        console['warn']('cannot override language handler %s', ext);
    +      }
    +    }
    +  }
    +  function langHandlerForExtension(extension, source) {
    +    if (!(extension && langHandlerRegistry.hasOwnProperty(extension))) {
    +      // Treat it as markup if the first non whitespace character is a < and
    +      // the last non-whitespace character is a >.
    +      extension = /^\s*</.test(source)
    +          ? 'default-markup'
    +          : 'default-code';
    +    }
    +    return langHandlerRegistry[extension];
    +  }
    +  registerLangHandler(decorateSource, ['default-code']);
    +  registerLangHandler(
    +      createSimpleLexer(
    +          [],
    +          [
    +           [PR_PLAIN,       /^[^<?]+/],
    +           [PR_DECLARATION, /^<!\w[^>]*(?:>|$)/],
    +           [PR_COMMENT,     /^<\!--[\s\S]*?(?:-\->|$)/],
    +           // Unescaped content in an unknown language
    +           ['lang-',        /^<\?([\s\S]+?)(?:\?>|$)/],
    +           ['lang-',        /^<%([\s\S]+?)(?:%>|$)/],
    +           [PR_PUNCTUATION, /^(?:<[%?]|[%?]>)/],
    +           ['lang-',        /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],
    +           // Unescaped content in javascript.  (Or possibly vbscript).
    +           ['lang-js',      /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],
    +           // Contains unescaped stylesheet content
    +           ['lang-css',     /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],
    +           ['lang-in.tag',  /^(<\/?[a-z][^<>]*>)/i]
    +          ]),
    +      ['default-markup', 'htm', 'html', 'mxml', 'xhtml', 'xml', 'xsl']);
    +  registerLangHandler(
    +      createSimpleLexer(
    +          [
    +           [PR_PLAIN,        /^[\s]+/, null, ' \t\r\n'],
    +           [PR_ATTRIB_VALUE, /^(?:\"[^\"]*\"?|\'[^\']*\'?)/, null, '\"\'']
    +           ],
    +          [
    +           [PR_TAG,          /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],
    +           [PR_ATTRIB_NAME,  /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],
    +           ['lang-uq.val',   /^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],
    +           [PR_PUNCTUATION,  /^[=<>\/]+/],
    +           ['lang-js',       /^on\w+\s*=\s*\"([^\"]+)\"/i],
    +           ['lang-js',       /^on\w+\s*=\s*\'([^\']+)\'/i],
    +           ['lang-js',       /^on\w+\s*=\s*([^\"\'>\s]+)/i],
    +           ['lang-css',      /^style\s*=\s*\"([^\"]+)\"/i],
    +           ['lang-css',      /^style\s*=\s*\'([^\']+)\'/i],
    +           ['lang-css',      /^style\s*=\s*([^\"\'>\s]+)/i]
    +           ]),
    +      ['in.tag']);
    +  registerLangHandler(
    +      createSimpleLexer([], [[PR_ATTRIB_VALUE, /^[\s\S]+/]]), ['uq.val']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': CPP_KEYWORDS,
    +          'hashComments': true,
    +          'cStyleComments': true,
    +          'types': C_TYPES
    +        }), ['c', 'cc', 'cpp', 'cxx', 'cyc', 'm']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': 'null,true,false'
    +        }), ['json']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': CSHARP_KEYWORDS,
    +          'hashComments': true,
    +          'cStyleComments': true,
    +          'verbatimStrings': true,
    +          'types': C_TYPES
    +        }), ['cs']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': JAVA_KEYWORDS,
    +          'cStyleComments': true
    +        }), ['java']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': SH_KEYWORDS,
    +          'hashComments': true,
    +          'multiLineStrings': true
    +        }), ['bash', 'bsh', 'csh', 'sh']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': PYTHON_KEYWORDS,
    +          'hashComments': true,
    +          'multiLineStrings': true,
    +          'tripleQuotedStrings': true
    +        }), ['cv', 'py', 'python']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': PERL_KEYWORDS,
    +          'hashComments': true,
    +          'multiLineStrings': true,
    +          'regexLiterals': 2  // multiline regex literals
    +        }), ['perl', 'pl', 'pm']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': RUBY_KEYWORDS,
    +          'hashComments': true,
    +          'multiLineStrings': true,
    +          'regexLiterals': true
    +        }), ['rb', 'ruby']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': JSCRIPT_KEYWORDS,
    +          'cStyleComments': true,
    +          'regexLiterals': true
    +        }), ['javascript', 'js']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': COFFEE_KEYWORDS,
    +          'hashComments': 3,  // ### style block comments
    +          'cStyleComments': true,
    +          'multilineStrings': true,
    +          'tripleQuotedStrings': true,
    +          'regexLiterals': true
    +        }), ['coffee']);
    +  registerLangHandler(sourceDecorator({
    +          'keywords': RUST_KEYWORDS,
    +          'cStyleComments': true,
    +          'multilineStrings': true
    +        }), ['rc', 'rs', 'rust']);
    +  registerLangHandler(
    +      createSimpleLexer([], [[PR_STRING, /^[\s\S]+/]]), ['regex']);
    +
    +  function applyDecorator(job) {
    +    var opt_langExtension = job.langExtension;
    +
    +    try {
    +      // Extract tags, and convert the source code to plain text.
    +      var sourceAndSpans = extractSourceSpans(job.sourceNode, job.pre);
    +      /** Plain text. @type {string} */
    +      var source = sourceAndSpans.sourceCode;
    +      job.sourceCode = source;
    +      job.spans = sourceAndSpans.spans;
    +      job.basePos = 0;
    +
    +      // Apply the appropriate language handler
    +      langHandlerForExtension(opt_langExtension, source)(job);
    +
    +      // Integrate the decorations and tags back into the source code,
    +      // modifying the sourceNode in place.
    +      recombineTagsAndDecorations(job);
    +    } catch (e) {
    +      if (win['console']) {
    +        console['log'](e && e['stack'] || e);
    +      }
    +    }
    +  }
    +
    +  /**
    +   * Pretty print a chunk of code.
    +   * @param sourceCodeHtml {string} The HTML to pretty print.
    +   * @param opt_langExtension {string} The language name to use.
    +   *     Typically, a filename extension like 'cpp' or 'java'.
    +   * @param opt_numberLines {number|boolean} True to number lines,
    +   *     or the 1-indexed number of the first line in sourceCodeHtml.
    +   */
    +  function $prettyPrintOne(sourceCodeHtml, opt_langExtension, opt_numberLines) {
    +    var container = document.createElement('div');
    +    // This could cause images to load and onload listeners to fire.
    +    // E.g. <img onerror="alert(1337)" src="nosuchimage.png">.
    +    // We assume that the inner HTML is from a trusted source.
    +    // The pre-tag is required for IE8 which strips newlines from innerHTML
    +    // when it is injected into a <pre> tag.
    +    // http://stackoverflow.com/questions/451486/pre-tag-loses-line-breaks-when-setting-innerhtml-in-ie
    +    // http://stackoverflow.com/questions/195363/inserting-a-newline-into-a-pre-tag-ie-javascript
    +    container.innerHTML = '<pre>' + sourceCodeHtml + '</pre>';
    +    container = container.firstChild;
    +    if (opt_numberLines) {
    +      numberLines(container, opt_numberLines, true);
    +    }
    +
    +    var job = {
    +      langExtension: opt_langExtension,
    +      numberLines: opt_numberLines,
    +      sourceNode: container,
    +      pre: 1
    +    };
    +    applyDecorator(job);
    +    return container.innerHTML;
    +  }
    +
    +   /**
    +    * Find all the {@code <pre>} and {@code <code>} tags in the DOM with
    +    * {@code class=prettyprint} and prettify them.
    +    *
    +    * @param {Function} opt_whenDone called when prettifying is done.
    +    * @param {HTMLElement|HTMLDocument} opt_root an element or document
    +    *   containing all the elements to pretty print.
    +    *   Defaults to {@code document.body}.
    +    */
    +  function $prettyPrint(opt_whenDone, opt_root) {
    +    var root = opt_root || document.body;
    +    var doc = root.ownerDocument || document;
    +    function byTagName(tn) { return root.getElementsByTagName(tn); }
    +    // fetch a list of nodes to rewrite
    +    var codeSegments = [byTagName('pre'), byTagName('code'), byTagName('xmp')];
    +    var elements = [];
    +    for (var i = 0; i < codeSegments.length; ++i) {
    +      for (var j = 0, n = codeSegments[i].length; j < n; ++j) {
    +        elements.push(codeSegments[i][j]);
    +      }
    +    }
    +    codeSegments = null;
    +
    +    var clock = Date;
    +    if (!clock['now']) {
    +      clock = { 'now': function () { return +(new Date); } };
    +    }
    +
    +    // The loop is broken into a series of continuations to make sure that we
    +    // don't make the browser unresponsive when rewriting a large page.
    +    var k = 0;
    +    var prettyPrintingJob;
    +
    +    var langExtensionRe = /\blang(?:uage)?-([\w.]+)(?!\S)/;
    +    var prettyPrintRe = /\bprettyprint\b/;
    +    var prettyPrintedRe = /\bprettyprinted\b/;
    +    var preformattedTagNameRe = /pre|xmp/i;
    +    var codeRe = /^code$/i;
    +    var preCodeXmpRe = /^(?:pre|code|xmp)$/i;
    +    var EMPTY = {};
    +
    +    function doWork() {
    +      var endTime = (win['PR_SHOULD_USE_CONTINUATION'] ?
    +                     clock['now']() + 250 /* ms */ :
    +                     Infinity);
    +      for (; k < elements.length && clock['now']() < endTime; k++) {
    +        var cs = elements[k];
    +
    +        // Look for a preceding comment like
    +        // <?prettify lang="..." linenums="..."?>
    +        var attrs = EMPTY;
    +        {
    +          for (var preceder = cs; (preceder = preceder.previousSibling);) {
    +            var nt = preceder.nodeType;
    +            // <?foo?> is parsed by HTML 5 to a comment node (8)
    +            // like <!--?foo?-->, but in XML is a processing instruction
    +            var value = (nt === 7 || nt === 8) && preceder.nodeValue;
    +            if (value
    +                ? !/^\??prettify\b/.test(value)
    +                : (nt !== 3 || /\S/.test(preceder.nodeValue))) {
    +              // Skip over white-space text nodes but not others.
    +              break;
    +            }
    +            if (value) {
    +              attrs = {};
    +              value.replace(
    +                  /\b(\w+)=([\w:.%+-]+)/g,
    +                function (_, name, value) { attrs[name] = value; });
    +              break;
    +            }
    +          }
    +        }
    +
    +        var className = cs.className;
    +        if ((attrs !== EMPTY || prettyPrintRe.test(className))
    +            // Don't redo this if we've already done it.
    +            // This allows recalling pretty print to just prettyprint elements
    +            // that have been added to the page since last call.
    +            && !prettyPrintedRe.test(className)) {
    +
    +          // make sure this is not nested in an already prettified element
    +          var nested = false;
    +          for (var p = cs.parentNode; p; p = p.parentNode) {
    +            var tn = p.tagName;
    +            if (preCodeXmpRe.test(tn)
    +                && p.className && prettyPrintRe.test(p.className)) {
    +              nested = true;
    +              break;
    +            }
    +          }
    +          if (!nested) {
    +            // Mark done.  If we fail to prettyprint for whatever reason,
    +            // we shouldn't try again.
    +            cs.className += ' prettyprinted';
    +
    +            // If the classes includes a language extensions, use it.
    +            // Language extensions can be specified like
    +            //     <pre class="prettyprint lang-cpp">
    +            // the language extension "cpp" is used to find a language handler
    +            // as passed to PR.registerLangHandler.
    +            // HTML5 recommends that a language be specified using "language-"
    +            // as the prefix instead.  Google Code Prettify supports both.
    +            // http://dev.w3.org/html5/spec-author-view/the-code-element.html
    +            var langExtension = attrs['lang'];
    +            if (!langExtension) {
    +              langExtension = className.match(langExtensionRe);
    +              // Support <pre class="prettyprint"><code class="language-c">
    +              var wrapper;
    +              if (!langExtension && (wrapper = childContentWrapper(cs))
    +                  && codeRe.test(wrapper.tagName)) {
    +                langExtension = wrapper.className.match(langExtensionRe);
    +              }
    +
    +              if (langExtension) { langExtension = langExtension[1]; }
    +            }
    +
    +            var preformatted;
    +            if (preformattedTagNameRe.test(cs.tagName)) {
    +              preformatted = 1;
    +            } else {
    +              var currentStyle = cs['currentStyle'];
    +              var defaultView = doc.defaultView;
    +              var whitespace = (
    +                  currentStyle
    +                  ? currentStyle['whiteSpace']
    +                  : (defaultView
    +                     && defaultView.getComputedStyle)
    +                  ? defaultView.getComputedStyle(cs, null)
    +                  .getPropertyValue('white-space')
    +                  : 0);
    +              preformatted = whitespace
    +                  && 'pre' === whitespace.substring(0, 3);
    +            }
    +
    +            // Look for a class like linenums or linenums:<n> where <n> is the
    +            // 1-indexed number of the first line.
    +            var lineNums = attrs['linenums'];
    +            if (!(lineNums = lineNums === 'true' || +lineNums)) {
    +              lineNums = className.match(/\blinenums\b(?::(\d+))?/);
    +              lineNums =
    +                lineNums
    +                ? lineNums[1] && lineNums[1].length
    +                  ? +lineNums[1] : true
    +                : false;
    +            }
    +            if (lineNums) { numberLines(cs, lineNums, preformatted); }
    +
    +            // do the pretty printing
    +            prettyPrintingJob = {
    +              langExtension: langExtension,
    +              sourceNode: cs,
    +              numberLines: lineNums,
    +              pre: preformatted
    +            };
    +            applyDecorator(prettyPrintingJob);
    +          }
    +        }
    +      }
    +      if (k < elements.length) {
    +        // finish up in a continuation
    +        setTimeout(doWork, 250);
    +      } else if ('function' === typeof opt_whenDone) {
    +        opt_whenDone();
    +      }
    +    }
    +
    +    doWork();
    +  }
    +
    +  /**
    +   * Contains functions for creating and registering new language handlers.
    +   * @type {Object}
    +   */
    +  var PR = win['PR'] = {
    +        'createSimpleLexer': createSimpleLexer,
    +        'registerLangHandler': registerLangHandler,
    +        'sourceDecorator': sourceDecorator,
    +        'PR_ATTRIB_NAME': PR_ATTRIB_NAME,
    +        'PR_ATTRIB_VALUE': PR_ATTRIB_VALUE,
    +        'PR_COMMENT': PR_COMMENT,
    +        'PR_DECLARATION': PR_DECLARATION,
    +        'PR_KEYWORD': PR_KEYWORD,
    +        'PR_LITERAL': PR_LITERAL,
    +        'PR_NOCODE': PR_NOCODE,
    +        'PR_PLAIN': PR_PLAIN,
    +        'PR_PUNCTUATION': PR_PUNCTUATION,
    +        'PR_SOURCE': PR_SOURCE,
    +        'PR_STRING': PR_STRING,
    +        'PR_TAG': PR_TAG,
    +        'PR_TYPE': PR_TYPE,
    +        'prettyPrintOne':
    +           IN_GLOBAL_SCOPE
    +             ? (win['prettyPrintOne'] = $prettyPrintOne)
    +             : (prettyPrintOne = $prettyPrintOne),
    +        'prettyPrint': prettyPrint =
    +           IN_GLOBAL_SCOPE
    +             ? (win['prettyPrint'] = $prettyPrint)
    +             : (prettyPrint = $prettyPrint)
    +      };
    +
    +  // Make PR available via the Asynchronous Module Definition (AMD) API.
    +  // Per https://github.com/amdjs/amdjs-api/wiki/AMD:
    +  // The Asynchronous Module Definition (AMD) API specifies a
    +  // mechanism for defining modules such that the module and its
    +  // dependencies can be asynchronously loaded.
    +  // ...
    +  // To allow a clear indicator that a global define function (as
    +  // needed for script src browser loading) conforms to the AMD API,
    +  // any global define function SHOULD have a property called "amd"
    +  // whose value is an object. This helps avoid conflict with any
    +  // other existing JavaScript code that could have defined a define()
    +  // function that does not conform to the AMD API.
    +  if (typeof define === "function" && define['amd']) {
    +    define("google-code-prettify", [], function () {
    +      return PR; 
    +    });
    +  }
    +})();
    diff --git a/fangija-zsyf/doc/res/prettify.sons.css b/fangija-zsyf/doc/res/prettify.sons.css
    new file mode 100644
    index 0000000..db47c6f
    --- /dev/null
    +++ b/fangija-zsyf/doc/res/prettify.sons.css
    @@ -0,0 +1,124 @@
    +/*
    + * Derived from einaros's Sons of Obsidian theme at
    + * http://studiostyl.es/schemes/son-of-obsidian by
    + * Alex Ford of CodeTunnel:
    + * http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
    + */
    +
    +.str
    +{
    +    color: #EC7600;
    +}
    +.kwd
    +{
    +    color: #93C763;
    +}
    +.com
    +{
    +    color: #66747B;
    +}
    +.typ
    +{
    +    color: #678CB1;
    +}
    +.lit
    +{
    +    color: #FACD22;
    +}
    +.pun
    +{
    +    color: #F1F2F3;
    +}
    +.pln
    +{
    +    color: #F1F2F3;
    +}
    +.tag
    +{
    +    color: #8AC763;
    +}
    +.atn
    +{
    +    color: #E0E2E4;
    +}
    +.atv
    +{
    +    color: #EC7600;
    +}
    +.dec
    +{
    +    color: purple;
    +}
    +pre.prettyprint
    +{
    +    border: 0px solid #888;
    +}
    +ol.linenums
    +{
    +    margin-top: 0;
    +    margin-bottom: 0;
    +}
    +.prettyprint {
    +    background: #000;
    +    border-radius: 3px;
    +    padding: 1em 0;
    +    overflow-x: scroll;
    +    -webkit-overflow-scrolling: touch;
    +    /*white-space: pre-wrap;*//*css-3*/
    +    /*word-wrap: break-word;*//*Internet Explorer 5.5+*/
    +}
    +li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
    +{
    +    color: #555;
    +    list-style-type: decimal;
    +}
    +/*li.L1, li.L3, li.L5, li.L7, li.L9 {
    +    background: #222;
    +}*/
    +@media print
    +{
    +    .str
    +    {
    +        color: #060;
    +    }
    +    .kwd
    +    {
    +        color: #006;
    +        font-weight: bold;
    +    }
    +    .com
    +    {
    +        color: #600;
    +        font-style: italic;
    +    }
    +    .typ
    +    {
    +        color: #404;
    +        font-weight: bold;
    +    }
    +    .lit
    +    {
    +        color: #044;
    +    }
    +    .pun
    +    {
    +        color: #440;
    +    }
    +    .pln
    +    {
    +        color: #000;
    +    }
    +    .tag
    +    {
    +        color: #006;
    +        font-weight: bold;
    +    }
    +    .atn
    +    {
    +        color: #404;
    +    }
    +    .atv
    +    {
    +        color: #060;
    +    }
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/doc/runtime.html b/fangija-zsyf/doc/runtime.html
    new file mode 100644
    index 0000000..7fdcd70
    --- /dev/null
    +++ b/fangija-zsyf/doc/runtime.html
    @@ -0,0 +1,262 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.runtime">runtime</a></h1>
    +<p>Runtime模块管理运行环境,可用于获取当前运行环境信息、与其它程序进行通讯等。通过plus.runtime可获取运行环境管理对象。</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>
    +<a href="#plus.runtime.appid">appid</a>: 当前应用的APPID</li>
    +<li>
    +<a href="#plus.runtime.arguments">arguments</a>: 第三方程序调用时传递给程序的参数</li>
    +<li>
    +<a href="#plus.runtime.channel">channel</a>: 应用的市场推广渠道标识</li>
    +<li>
    +<a href="#plus.runtime.launcher">launcher</a>: 应用启动来源</li>
    +<li>
    +<a href="#plus.runtime.origin">origin</a>: 应用安装来源</li>
    +<li>
    +<a href="#plus.runtime.version">version</a>: 客户端的版本号</li>
    +<li>
    +<a href="#plus.runtime.innerVersion">innerVersion</a>: 客户端5+运行环境的版本号</li>
    +<li>
    +<a href="#plus.runtime.launchLoadedTime">launchLoadedTime</a>: 获取当前应用首页加载的时间</li>
    +<li>
    +<a href="#plus.runtime.processId">processId</a>: 获取当前应用的进程标识</li>
    +<li>
    +<a href="#plus.runtime.startupTime">startupTime</a>: 获取当前应用的启动时间</li>
    +</ul>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.runtime.getProperty">getProperty</a>: 获取指定APPID对应的应用信息</li>
    +<li>
    +<a href="#plus.runtime.install">install</a>: 安装应用</li>
    +<li>
    +<a href="#plus.runtime.quit">quit</a>: 退出客户端程序</li>
    +<li>
    +<a href="#plus.runtime.restart">restart</a>: 重启当前的应用</li>
    +<li>
    +<a href="#plus.runtime.setBadgeNumber">setBadgeNumber</a>: 设置程序快捷方式上显示的提示数字</li>
    +<li>
    +<a href="#plus.runtime.openURL">openURL</a>: 调用第三方程序打开指定的URL</li>
    +<li>
    +<a href="#plus.runtime.openFile">openFile</a>: 调用第三方程序打开指定的文件</li>
    +<li>
    +<a href="#plus.runtime.launchApplication">launchApplication</a>: 调用第三方程序</li>
    +<li>
    +<a href="#plus.runtime.isApplicationExist">isApplicationExist</a>: 判断第三方程序是否已存在</li>
    +</ul>
    +<h2>对象:</h2>
    +<ul>
    +<li>
    +<a href="#plus.runtime.WidgetOptions">WidgetOptions</a>: JSON对象,应用安装参数</li>
    +<li>
    +<a href="#plus.runtime.WidgetInfo">WidgetInfo</a>: JSON对象,应用信息</li>
    +<li>
    +<a href="#plus.runtime.OpenFileOptions">OpenFileOptions</a>: JSON对象,打开文件参数</li>
    +<li>
    +<a href="#plus.runtime.ApplicationInf">ApplicationInf</a>: JSON对象,打开第三方程序参数</li>
    +</ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.runtime.InstallSuccessCallback">InstallSuccessCallback</a>: 安装应用成功回调函数</li>
    +<li>
    +<a href="#plus.runtime.InstallErrorCallback">InstallErrorCallback</a>: 安装应用失败回调函数</li>
    +<li>
    +<a href="#plus.runtime.GetPropertyCallBack">GetPropertyCallBack</a>: 获取应用属性成功回调函数</li>
    +<li>
    +<a href="#plus.runtime.OpenErrorCallback">OpenErrorCallback</a>: 打开本地文件或URL失败回调函数</li>
    +<li>
    +<a href="#plus.runtime.LaunchErrorCallback">LaunchErrorCallback</a>: 调用第三方程序失败回调函数</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>5+功能模块(permissions)</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Runtime": {
    +		"description": "运行环境"
    +	}
    +}
    +}
    +			</pre>
    +<h1><a name="plus.runtime.WidgetOptions">WidgetOptions</a></h1>
    +<p>JSON对象,应用安装参数</p>
    +<h2>说明:</h2>
    +<p class="des">可通过对象设置安装的应用是否进行appid校验、版本号校验等。</p>
    +<h2>属性:</h2>
    +<ul><li>force: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>是否强制安装<br><p>
    +	true表示强制安装,不进行版本号的校验;false则需要版本号校验,如果将要安装应用的版本号不高于现有应用的版本号则终止安装,并返回安装失败。
    +	仅安装wgt和wgtu时生效,默认值 false。
    +						</p>
    +</li></ul>
    +<h1><a name="plus.runtime.WidgetInfo">WidgetInfo</a></h1>
    +<p>JSON对象,应用信息</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>appid: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用的APPID<br>
    +</li>
    +<li>version: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用的版本号<br>
    +</li>
    +<li>name: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用的名称<br>
    +</li>
    +<li>description: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用描述信息<br>
    +</li>
    +<li>author: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用描述信息<br>
    +</li>
    +<li>email: <em>(<font class="type">String</font>
    +	类型
    +)</em>开发者邮箱地址<br>
    +</li>
    +<li>license: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用授权描述信息<br>
    +</li>
    +<li>licensehref: <em>(<font class="type">String</font>
    +	类型
    +)</em>应用授权说明链接地址<br>
    +</li>
    +<li>features: <em>(<font class="type">String[]</font>
    +	类型
    +)</em>应用许可特性列表<br>
    +</li>
    +</ul>
    +<h1><a name="plus.runtime.OpenFileOptions">OpenFileOptions</a></h1>
    +<p>JSON对象,打开文件参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>pname: <em>(<font class="type">String</font>
    +	类型
    +)</em>优先使用的程序包名<br><p>
    +	如果指定包名的程序已经安装,则调用其打开文件,若程序不支持打开文件则触发错误回调。
    +	如果指定包名的程序未安装,则弹出系统支持打开此文件的列表,由用户选择程序打开。
    +						</p>
    +</li>
    +<li>popover: <em>(<font class="type">json</font>
    +	类型
    +)</em>弹出系统选择程序界面指示区域<br><p>
    +	JSON对象,格式如{top:10;left:10;width:200;height:200;},所有值为像素值,左上坐标相对于容器webview的位置。仅在iPad设备平台有效。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.runtime.ApplicationInf">ApplicationInf</a></h1>
    +<p>JSON对象,打开第三方程序参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>pname: <em>(<font class="type">String</font>
    +	类型
    +)</em>第三方程序包名<br><p>仅Android平台支持,表示程序的包名,其它平台忽略此属性值。</p>
    +</li>
    +<li>action: <em>(<font class="type">String</font>
    +	类型
    +)</em>程序的操作行为<br><p>Android平台上与系统的action值一致;iOS平台为要调用程序的URLScheme格式字符串。</p>
    +</li>
    +<li>extra: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>调用程序的参数<br><p>仅Android平台支持,为JSON格式,用于传递给要调用程序的参数,如extra:{url:"http://www.html5plus.org"}。</p>
    +</li>
    +</ul>
    +<h1><a name="plus.runtime.InstallSuccessCallback">InstallSuccessCallback</a></h1>
    +<p>安装应用成功回调函数</p>
    +<pre class="prettyprint linenums">
    +void onSuccess(widgetInfo){
    +	// Code here
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>widgetInfo: 
    +		<em>(
    +			<font class="type">WidgetInfo</font>
    +			)
    +			必选 </em><br>应用信息,参见:WidgetInfo</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.runtime.InstallErrorCallback">InstallErrorCallback</a></h1>
    +<p>安装应用失败回调函数</p>
    +<pre class="prettyprint linenums">
    +void onError(error){
    +	// Handle the error
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">DOMException</font>
    +			)
    +			必选 </em><br>安装失败的错误信息</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.runtime.GetPropertyCallBack">GetPropertyCallBack</a></h1>
    +<p>获取应用属性成功回调函数</p>
    +<pre class="prettyprint linenums">
    +void onGetPropertyCB(widgetInfo){
    +	// Code here
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>widgetInfo: 
    +		<em>(
    +			<a href="#plus.runtime.WidgetInfo">WidgetInfo</a>
    +			)
    +			必选 </em><br>应用信息,参见:WidgetInfo</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.runtime.OpenErrorCallback">OpenErrorCallback</a></h1>
    +<p>打开本地文件或URL失败回调函数</p>
    +<pre class="prettyprint linenums">
    +void onError(error){
    +	// Handle the error
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">DOMException</font>
    +			)
    +			必选 </em><br>打开操作失败的错误信息</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.runtime.LaunchErrorCallback">LaunchErrorCallback</a></h1>
    +<p>调用第三方程序失败回调函数</p>
    +<pre class="prettyprint linenums">
    +void onError(error){
    +	// Handle the error
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">DOMException</font>
    +			)
    +			必选 </em><br>操作失败的错误信息</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/share.html b/fangija-zsyf/doc/share.html
    new file mode 100644
    index 0000000..65be2fc
    --- /dev/null
    +++ b/fangija-zsyf/doc/share.html
    @@ -0,0 +1,368 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.share">share</a></h1>
    +<p>Share模块管理客户端的社交分享功能,提供调用终端社交软件的分享能力。通过plus.share可获取社交分享管理对象。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.getServices">getServices</a>: 获取分享服务</li>
    +<li>
    +<a href="#plus.share.sendWithSystem">sendWithSystem</a>: 使用系统组件发送分享</li>
    +</ul>
    +<h2>对象:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.ShareService">ShareService</a>: 分享服务对象</li>
    +<li>
    +<a href="#plus.share.ShareServerIdentity">ShareServerIdentity</a>: 分享服务标识</li>
    +<li>
    +<a href="#plus.share.ShareMessage">ShareMessage</a>: JSON对象,分享消息对象</li>
    +<li>
    +<a href="#plus.share.GeoPosition">GeoPosition</a>: JSON对象,用户位置信息</li>
    +<li>
    +<a href="#plus.share.ShareMessageExtra">ShareMessageExtra</a>: JSON对象,保存分享消息扩展信息</li>
    +<li>
    +<a href="#plus.share.Authorize">Authorize</a>: 分享授权控件对象</li>
    +</ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.ServicesSuccessCallback">ServicesSuccessCallback</a>: 获取分享服务成功回调</li>
    +<li>
    +<a href="#plus.share.AuthorizeSuccessCallback">AuthorizeSuccessCallback</a>: 分享授权认证成功回调</li>
    +<li>
    +<a href="#plus.share.ShareSuccessCallback">ShareSuccessCallback</a>: 分享操作成功回调</li>
    +<li>
    +<a href="#plus.share.ShareErrorCallback">ShareErrorCallback</a>: 分享操作失败回调</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>permissions</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Share": {
    +		"description": "分享"
    +	}
    +}
    +}
    +			</pre>
    +<h1><a name="plus.share.ShareService">ShareService</a></h1>
    +<p>分享服务对象</p>
    +<pre class="prettyprint linenums">
    +interface plus.share.ShareService {
    +	// Attributes
    +	attribute DOMString id;
    +	attribute DOMString description;
    +	attribute Boolean authenticated;
    +	attribute DOMString accessToken;
    +	attribute Boolean nativeClient;
    +	
    +	// Methods
    +	function void authorize( successCallback, errorCallback );
    +	function void forbid();
    +	function void send( message );
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	ShareService对象用于表示分享服务,在JS中为对象,用于向系统请求分享操作。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.ShareService.id">id</a>: 分享服务标识</li>
    +<li>
    +<a href="#plus.share.ShareService.description">description</a>: 分享服务描述</li>
    +<li>
    +<a href="#plus.share.ShareService.authenticated">authenticated</a>: 是否授权认证</li>
    +<li>
    +<a href="#plus.share.ShareService.accessToken">accessToken</a>: 授权认证信息</li>
    +<li>
    +<a href="#plus.share.ShareService.nativeClient">nativeClient</a>: 是否存在对应的分享客户端</li>
    +</ul>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.ShareService.authorize">authorize</a>: 授权认证操作</li>
    +<li>
    +<a href="#plus.share.ShareService.forbid">forbid</a>: 取消授权认证</li>
    +<li>
    +<a href="#plus.share.ShareService.send">send</a>: 发送分享</li>
    +</ul>
    +<h1><a name="plus.share.ShareServerIdentity">ShareServerIdentity</a></h1>
    +<p>分享服务标识</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>"sinaweibo": <em>(<font class="type">DOMString</font>
    +	类型
    +)</em>新浪微博<br>
    +</li>
    +<li>"tencentweibo": <em>(<font class="type">DOMString</font>
    +	类型
    +)</em>腾讯微博<br>
    +</li>
    +<li>"weixin": <em>(<font class="type">DOMString</font>
    +	类型
    +)</em>微信<br>
    +</li>
    +</ul>
    +<h1><a name="plus.share.ShareMessage">ShareMessage</a></h1>
    +<p>JSON对象,分享消息对象</p>
    +<pre class="prettyprint linenums">
    +interface plus.share.ShareMessage {
    +	attribute String content;
    +	attribute String[] thumbs;
    +	attribute String[] pictures;
    +	attribute String href;
    +	attribute String title;
    +	attribute JSON extra;
    +	attribute GEOPosition geo;
    +	attribute ShareMessageExtra extra;
    +	attribute String interface;
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">ShareMessage对象用于表示分享消息内容,在JS中为JSON对象,用于向系统发送分享信息操作。</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>content: <em>(<font class="type">String</font>
    +	类型
    +)</em>分享消息的文字内容<br>
    +</li>
    +<li>pictures: <em>(<font class="type">Array</font>[
    +				<font class="type">String</font>
    +				]
    +			
    +	类型
    +)</em>分享消息的图片<br><p>
    +	分享消息中包含的图片路径,仅支持本地路径。
    +	若分享平台仅支持提交一张图片,传入多张图片则仅提交第一张图片。
    +	如果不能同时支持其它内容信息,优先级顺序为:pictures&gt;content。
    +						</p>
    +</li>
    +<li>thumbs: <em>(<font class="type">Array</font>[
    +				<font class="type">Stromg</font>
    +				]
    +			
    +	类型
    +)</em>分享消息的缩略图<br><p>
    +	分享消息中包含的缩略图路径;
    +	若分享平台仅支持提交一张图片,传入多张图片则仅提交第一张图片;
    +	如果分享平台的信息不支持缩略图,若没有设置消息的图片(pictures)则使用缩略图,否则忽略其属性值。
    +	注意:图片有大小限制,推荐图片小于20Kb。
    +						</p>
    +</li>
    +<li>href: <em>(<font class="type">String</font>
    +	类型
    +)</em>分享独立的链接<br><p>
    +	分享独立链接地址,仅支持网络地址(以http://或https://开头)。
    +	如果不能同时支持其它内容信息,优先级顺序为:href&gt;pictures&gt;content。
    +						</p>
    +</li>
    +<li>title: <em>(<font class="type">String</font>
    +	类型
    +)</em>分享消息的标题<br><p>
    +	目前仅微信分享独立链接消息时支持。
    +						</p>
    +</li>
    +<li>geo: <em>(<a href="#plus.share.GeoPosition">GeoPosition</a>
    +	类型
    +)</em>分享消息中包含的用户地理信息数据<br>
    +</li>
    +<li>extra: <em>(<a href="#plus.share.ShareMessageExtra">ShareMessageExtra</a>
    +	类型
    +)</em>分享消息扩展参数<br>
    +</li>
    +<li>interface: <em>(<font class="type">String</font>
    +	类型
    +)</em>分享消息的模式<br><p>
    +	可取值:
    +    "auto" - 自动选择,如果已经安装微博客户端则采用编辑界面进行分享,否则采用无界面分享;
    +    "slient" - 静默分享,采用无界面模式进行分享;
    +    "editable" - 进入编辑界面,用户确认分享内容后发送,如果当前未安装微博客户端则触发错误回调。
    +    默认值为"auto"。
    +    (仅新浪微博分享时生效)
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.share.GeoPosition">GeoPosition</a></h1>
    +<p>JSON对象,用户位置信息</p>
    +<pre class="prettyprint linenums">
    +interface plus.share.GeoPosition {
    +	attribute Number latitude;
    +	attribute Number longitude;
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	GeoPosition对象用于表示用户分享消息时的位置信息。用于标识分享操作时用户的位置信息。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>latitude: <em>(<font class="type">Number</font>
    +	类型
    +)</em>用户位置的纬度坐标信息<br>
    +</li>
    +<li>longitude: <em>(<font class="type">Number</font>
    +	类型
    +)</em>用户位置的经度坐标信息<br>
    +</li>
    +</ul>
    +<h1><a name="plus.share.ShareMessageExtra">ShareMessageExtra</a></h1>
    +<p>JSON对象,保存分享消息扩展信息</p>
    +<pre class="prettyprint linenums">
    +interface plus.share.ShareMessageExtra {
    +	attribute String scene;
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	ShareMessageExtra对象用于保存各分享平台扩展的参数,用于自定义分享功能。
    +				</p>
    +<h2>属性:</h2>
    +<ul><li>scene: <em>(<font class="type">String</font>
    +	类型
    +)</em>微信分享场景,仅微信分享平台有效<br><p>
    +	可取值:
    +	"WXSceneSession"分享到微信的“我的好友”;
    +	"WXSceneTimeline"分享到微信的“朋友圈”中;
    +	"WXSceneFavorite"分享到微信的“我的收藏”中。
    +	默认值为"WXSceneSession"。
    +						</p>
    +</li></ul>
    +<h1><a name="plus.share.Authorize">Authorize</a></h1>
    +<p>分享授权控件对象</p>
    +<pre class="prettyprint linenums">
    +interface plus.share.Authorize {
    +	// Methods
    +	function void load( id );
    +	function void setVisible( visible );
    +
    +	// Events
    +	function void onloaded();
    +	function void onauthenticated();
    +	function void onerror();
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	Authorize对象表示分享控件对象,用于在窗口中显示分享控件,使用此对象可自定义分享授权界面。
    +				</p>
    +<h2>构造:</h2>
    +<ul><li>
    +<a href="#plus.share.Authorize.Authorize(id,display)">Authorize(id,display)</a>: 创建分享授权控件对象</li></ul>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.Authorize.load">load</a>: 加载分享授权页面</li>
    +<li>
    +<a href="#plus.share.Authorize.setVisible">setVisible</a>: 设置分享授权控件是否可见</li>
    +</ul>
    +<h2>事件:</h2>
    +<ul>
    +<li>
    +<a href="#plus.share.Authorize.onloaded">onloaded</a>: 分享控件加载完成事件</li>
    +<li>
    +<a href="#plus.share.Authorize.onauthenticated">onauthenticated</a>: 分享授权认证成功事件</li>
    +<li>
    +<a href="#plus.share.Authorize.onerror">onerror</a>: 分享授权认证失败事件</li>
    +</ul>
    +<h1><a name="plus.share.ServicesSuccessCallback">ServicesSuccessCallback</a></h1>
    +<p>获取分享服务成功回调</p>
    +<pre class="prettyprint linenums">
    +void ServicesSuccessCallback( services ) {
    +	// Get share services success code
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	当获取分享服务列表成功时的回调函数,用于返回终端支持的分享服务列表。
    +				</p>
    +<h2>参数:</h2>
    +<ul><li>services: 
    +		<em>(
    +			<font class="type">Array</font>[
    +						<a href="#plus.share.ShareService">ShareService</a>
    +						]
    +					
    +			)
    +			必选 </em>数组,运行环境支持的分享服务列表<br>
    +	运行环境支持的分享服务列表数组,可通过services.length获取分享服务列表的数目。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.share.AuthorizeSuccessCallback">AuthorizeSuccessCallback</a></h1>
    +<p>分享授权认证成功回调</p>
    +<pre class="prettyprint linenums">
    +void AuthorizeSuccessCallback(services){
    +	  // Authorize success code
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	分享服务授权认证操作成功时调用。
    +				</p>
    +<h2>参数:</h2>
    +<ul><li>service: 
    +		<em>(
    +			<a href="#plus.share.ShareService">ShareService</a>
    +			)
    +			必选 </em>授权认证操作的分享服务对象<br>
    +</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.share.ShareSuccessCallback">ShareSuccessCallback</a></h1>
    +<p>分享操作成功回调</p>
    +<pre class="prettyprint linenums">
    +void ShareSuccessCallback () {
    +	// Share success code
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	分享操作成功回调函数,当分享操作成功时调用。
    +				</p>
    +<h2>参数:</h2>
    +<p>无</p>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.share.ShareErrorCallback">ShareErrorCallback</a></h1>
    +<p>分享操作失败回调</p>
    +<pre class="prettyprint linenums">
    +void ShareErrorCallback ( error ) {
    +	// Error 
    +	var code = error.code; 			// 错误编码
    +	var message = error.message;	// 错误描述信息
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	当分享操作失败时的回调函数,用于返回分享相关操作失败的错误信息。
    +				</p>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">DOMException</font>
    +			)
    +			必选 </em>分享操作失败错误信息<br>
    +	可通过error.code(Number类型)获取错误编码;
    +	可通过error.message(String类型)获取错误描述信息。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/speech.html b/fangija-zsyf/doc/speech.html
    new file mode 100644
    index 0000000..6bfbf5a
    --- /dev/null
    +++ b/fangija-zsyf/doc/speech.html
    @@ -0,0 +1,181 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.speech">speech</a></h1>
    +<p>Speech模块管理语音输入功能,提供语音识别功能,可支持用户通过麦克风设备进行语音输入内容。通过plus.speech可获取语音输入管理对象。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.speech.startRecognize">startRecognize</a>: 启动语音识别</li>
    +<li>
    +<a href="#plus.speech.stopRecognize">stopRecognize</a>: 停止语音识别</li>
    +</ul>
    +<h2>对象:</h2>
    +<ul><li>
    +<a href="#plus.speech.SpeechRecognizeOption">SpeechRecognizeOption</a>: JSON对象,语音识别参数</li></ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.speech.RecognitionSuccessCallback">RecognitionSuccessCallback</a>: 语音识别成功回调</li>
    +<li>
    +<a href="#plus.speech.RecognitionErrorCallback%20">RecognitionErrorCallback </a>: 语音识别失败回调</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>permissions</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Speech": {
    +		"description": "语音输入"
    +	}
    +}
    +}
    +			</pre>
    +<h1><a name="plus.speech.SpeechRecognizeOption">SpeechRecognizeOption</a></h1>
    +<p>JSON对象,语音识别参数</p>
    +<pre class="prettyprint linenums">
    +interface plus.speech.SpeechRecognizeOption {
    +	attribute String engine;
    +	attribute String service;
    +	attribute Number timeout;
    +	attribute String lang;
    +	attribute String punctuation;
    +	attribute Boolean continue;
    +	attribute Number nbest;
    +	attribute Boolean userInterface;
    +	attribute EventHandler onstart;
    +	attribute EventHandler onend;
    +	attribute EventHandler onaudiostart;
    +	attribute EventHandler onaudioend;
    +	attribute EventHandler onrecognizestart;
    +	attribute EventHandler onrecognizeend;
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	控制语音识别引擎内部参数,在JS中为JSON对象,在启动语音识别时使用。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>engine: <em>(<font class="type">String</font>
    +	类型
    +)</em>语音识别引擎标识<br><p>用于兼容多语音识别引擎的浏览器,建议使用语音识别厂商的产品名称,如未设置或设置不正确则使用浏览器默认的语音识别引擎。</p>
    +</li>
    +<li>service: <em>(<font class="type">String</font>
    +	类型
    +)</em>语音识别引擎服务器地址<br><p>可使用url地址或ip地址,如service:192.168.1.99指定定制的语音识别引擎服务器。默认值为浏览器内置服务器地址。</p>
    +</li>
    +<li>timeout: <em>(<font class="type">Number</font>
    +	类型
    +)</em>语音识别超时时间<br><p>语音识别超时的时间,单位为ms,如timeout:60000,默认值为10s。</p>
    +</li>
    +<li>lang: <em>(<font class="type">String</font>
    +	类型
    +)</em>语音识别引擎的语言<br><p>
    +	用于定义语音识别引擎的语言,其取值需符合W3C的Language codes规范。
    +	目前讯飞语音支持以下语言:
    +	"zh-cn" - 中文,普通话;
    +	"en-us" - 英语;
    +	"zh-cantonese" - 中文,粤语;
    +	"zh-henanese" - 中文,河南话。
    +	默认值为“zh-cn”。
    +
    +						</p>
    +</li>
    +<li>punctuation: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>识别结果中是否包含标点符号<br><p>
    +	true表示识别结果文本中包含标点符号,false表示识别结果文本中不包含标点符号。
    +	默认值为true。
    +						</p>
    +</li>
    +<li>continue: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>语音识别是否采用持续模式<br><p>设置为true表示语音引擎不会根据语音输入自动结束,识别到文本内容将多次调用successCallback函数返回,如果需要结束语音识别则必须调用stopRecognize接口,默认值为false。</p>
    +</li>
    +<li>nbest: <em>(<font class="type">Number</font>
    +	类型
    +)</em>指定识别结果识别包括多候选结果<br><p>用于指定识别结果识别包括多候选结果。如nbest:3,识别返回3个候选结果,默认值为1。</p>
    +</li>
    +<li>userInterface: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>识别时是否显示用户界面<br><p>用于指定识别时是否显示用户界面,设置为true表示显示浏览器内置语音识别界面;设置为false表示不显示浏览器内置语音识别界面。默认值为true。</p>
    +</li>
    +<li>onstart: <em>(<font class="type">EventHandler</font>
    +	类型
    +)</em>语音识别开始事件<br><p>事件函数,语音识别开始启动,在调用startRecognize方法后触发,与onend事件成对触发。</p>
    +</li>
    +<li>onend: <em>(<font class="type">EventHandler</font>
    +	类型
    +)</em>语音识别结束事件<br><p>事件函数,语音识别结束,在调用stopRecognize方法后触发,或者在引擎内部自动完成语音识别后触发,与onstart事件成对触发。</p>
    +</li>
    +<li>onaudiostart: <em>(<font class="type">EventHandler</font>
    +	类型
    +)</em>录音开始事件<br><p>事件函数,录音开始事件,启动语音识别后,调用设备麦克风设备开始一段语音录音时触发,与onaudioend事件成对触发。</p>
    +</li>
    +<li>onaudioend: <em>(<font class="type">EventHandler</font>
    +	类型
    +)</em>录音结束事件<br><p>事件函数,录音结束事件,调用麦克风完成一段语音录音时触发,与onaudiostart事件成对触发。</p>
    +</li>
    +<li>onrecognizestart: <em>(<font class="type">EventHandler</font>
    +	类型
    +)</em>录音识别开始事件<br><p>事件函数,录音识别开始事件,开始对语音录音数据分析识别,与onrecognizeend事件成对触发。</p>
    +</li>
    +<li>onrecognizeend: <em>(<font class="type">EventHandler</font>
    +	类型
    +)</em>录音识别结束事件<br><p>事件函数,录音识别结束事件,开始对语音录音数据分析识别完成,与onrecognizestart事件成对触发。</p>
    +</li>
    +</ul>
    +<h1><a name="plus.speech.RecognitionSuccessCallback">RecognitionSuccessCallback</a></h1>
    +<p>语音识别成功回调</p>
    +<pre class="prettyprint linenums">
    +void RecognitionSuccessCallback ( results ) {
    +	// Recognition success code
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">当语音识别成功时的回调函数,用于返回语音识别出的文本内容。</p>
    +<h2>参数:</h2>
    +<ul><li>results: 
    +		<em>(
    +			<font class="type">Array</font>[
    +						<font class="type">String</font>
    +						]
    +					
    +			)
    +			必选 </em>语音识别出的文本内容数组<br>语音识别出的候选文本内容,区配度高的在数组的前面,通过其length属性可获取总的候选内容的长度</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.speech.RecognitionErrorCallback%20">RecognitionErrorCallback </a></h1>
    +<p>语音识别失败回调</p>
    +<pre class="prettyprint linenums">
    +void RecognitionErrorCallback ( error ) {
    +	// Recognition error code
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">当语音识别失败时的回调函数,用于返回语音识别失败的错误信息。</p>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">DOMException</font>
    +			)
    +			必选 </em>语音识别失败的错误信息<br>
    +</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/splashscreen.html b/fangija-zsyf/doc/splashscreen.html
    new file mode 100644
    index 0000000..cbf72e6
    --- /dev/null
    +++ b/fangija-zsyf/doc/splashscreen.html
    @@ -0,0 +1,58 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.navigator">navigator</a></h1>
    +<p>Splashscreen管理程序启动界面</p>
    +<h2>方法:</h2>
    +<ul><li>
    +<a href="#plus.navigator.closeSplashscreen">closeSplashscreen</a>: 关闭程序启动界面</li></ul>
    +<h2>权限:</h2>
    +<p>
    +	5+功能模块(permissions)。
    +	在plus节点下配置splashscreen节点信息设置程序启动界面参数。
    +			</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Navigator": {
    +		"description": "浏览器信息"
    +	}
    +}
    +// ...
    +"plus":{
    +	// ...
    +	"splashscreen": {
    +		"autoclose": "true",	// 首页加载完成后自动关闭splash界面
    +		"delay": ""
    +	}
    +}
    +}
    +			</pre>
    +			属性:
    +			<ul>
    +<li>autoclose: 是否自动关闭程序启动界面<br>
    +</li>
    +<li>delay: 启动界面延迟关闭时间<br><p>
    +	仅在autioclose属性设置为"true"时有效,用于定义程序启动界面在应用的首界面加载完毕后延迟关闭的时间,单位为ms,默认值为0。
    +					</p>
    +</li>
    +<li>waiting: 启动界面是否显示系统等待框<br><p>
    +	系统等待框使用的是系统雪花控件,各平台效果存在差异。
    +					</p>
    +</li>
    +</ul>
    +<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/statistic.html b/fangija-zsyf/doc/statistic.html
    new file mode 100644
    index 0000000..9a09361
    --- /dev/null
    +++ b/fangija-zsyf/doc/statistic.html
    @@ -0,0 +1,42 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.statistic">statistic</a></h1>
    +<p>Statistic模块管理统计功能,用于提供应用内统计的能力,支持统计和分析用户属性和用户行为数据。通过plus.statistic可获取统计管理对象。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.statistic.eventTrig">eventTrig</a>: 触发事件</li>
    +<li>
    +<a href="#plus.statistic.eventDuration">eventDuration</a>: 精确持续事件</li>
    +<li>
    +<a href="#plus.statistic.eventStart">eventStart</a>: 开始持续事件(过期API,不推荐使用)</li>
    +<li>
    +<a href="#plus.statistic.eventEnd">eventEnd</a>: 结束持续事件(过期API,不推荐使用)</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>permissions</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Statistic": {
    +		"description": "统计"
    +	}
    +}
    +}
    +			</pre>
    +<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/storage.html b/fangija-zsyf/doc/storage.html
    new file mode 100644
    index 0000000..e22320f
    --- /dev/null
    +++ b/fangija-zsyf/doc/storage.html
    @@ -0,0 +1,46 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.storage">storage</a></h1>
    +<p>Storage模块管理应用本地数据存储区,用于应用数据的保存和读取。应用本地数据与localStorage、sessionStorage的区别在于数据有效域不同,前者可在应用内跨域操作,数据存储期是持久化的,并且没有容量限制。通过plus.storage可获取应用本地数据管理对象。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.storage.getLength">getLength</a>: 获取应用存储区中保存的键值对的个数</li>
    +<li>
    +<a href="#plus.storage.getItem">getItem</a>: 通过键(key)检索获取应用存储的值</li>
    +<li>
    +<a href="#plus.storage.setItem">setItem</a>: 修改或添加键值(key-value)对数据到应用数据存储中</li>
    +<li>
    +<a href="#plus.storage.removeItem">removeItem</a>: 通过key值删除键值对存储的数据</li>
    +<li>
    +<a href="#plus.storage.clear">clear</a>: 清除应用所有的键值对存储数据</li>
    +<li>
    +<a href="#plus.storage.key">key</a>: 获取键值对中指定索引值的key值</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>5+功能模块(permissions)</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Storage": {
    +		"description": "本地存储,访问应用本地存储数据"
    +	}
    +}
    +}
    +			</pre>
    +<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/uploader.html b/fangija-zsyf/doc/uploader.html
    new file mode 100644
    index 0000000..440539c
    --- /dev/null
    +++ b/fangija-zsyf/doc/uploader.html
    @@ -0,0 +1,311 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.uploader">uploader</a></h1>
    +<p>Uploader模块管理网络上传任务,用于从本地上传各种文件到服务器,并支持跨域访问操作。通过plus.uploader可获取上传管理对象。Uploader上传使用HTTP的POST方式提交数据,数据格式符合Multipart/form-data规范,即rfc1867(Form-based File Upload in HTML)协议。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.uploader.createUpload">createUpload</a>: 新建上传任务</li>
    +<li>
    +<a href="#plus.uploader.enumerate">enumerate</a>: 枚举上传任务</li>
    +<li>
    +<a href="#plus.uploader.clear">clear</a>: 清除上传任务</li>
    +<li>
    +<a href="#plus.uploader.startAll">startAll</a>: 开始所有上传任务</li>
    +</ul>
    +<h2>对象:</h2>
    +<ul>
    +<li>
    +<a href="#plus.uploader.Upload">Upload</a>: Upload对象管理一个上传任务</li>
    +<li>
    +<a href="#plus.uploader.UploadEvent">UploadEvent</a>: 上传任务事件类型</li>
    +<li>
    +<a href="#plus.uploader.UploadState">UploadState</a>: 上传任务的状态,Number类型</li>
    +<li>
    +<a href="#plus.uploader.UploadOptions">UploadOptions</a>: JSON对象,创建上传任务的参数</li>
    +<li>
    +<a href="#plus.uploader.UploadFileOptions">UploadFileOptions</a>: JSON对象,添加上传文件的参数</li>
    +</ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.uploader.UploadCompletedCallback">UploadCompletedCallback</a>: 上传任务完成时的回调函数</li>
    +<li>
    +<a href="#plus.uploader.UploadStateChangedCallback">UploadStateChangedCallback</a>: 上传任务状态变化回调函数,在上传任务状态发生变化时调用</li>
    +<li>
    +<a href="#plus.uploader.UploadEnumerateCallback">UploadEnumerateCallback</a>: 枚举上传任务回调函数,在枚举上传任务完成时时调用</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>5+功能模块(permissions)</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Uploader": {
    +		"description": "文件上传,管理文件上传任务"
    +	}
    +}
    +}			</pre>
    +<h1><a name="plus.uploader.Upload">Upload</a></h1>
    +<p>Upload对象管理一个上传任务</p>
    +<pre class="prettyprint linenums">
    +interface Upload {
    +	readonly attribute String url;
    +	readonly attribute Number state;
    +	readonly attribute UploadOptions options;
    +	readonly attribute String responseText;
    +	readonly attribute Number uploadedSize;
    +	readonly attribute Number totalSize;
    +	function void abort();
    +	function Boolean addData( String key, String value );
    +	function void addEventListener( String event, function Callback listener, Boolean capture );
    +	function Boolean addFile( String path, UploadFileOptions options );
    +	function String getAllResponseHeaders();
    +	function String getResponseHeader( headerName );
    +	function void pause();
    +	function void resume();
    +	function void setRequestHeader( String headerName, String headerValue );
    +	function void start();
    +}
    +				</pre>
    +<h2>属性:</h2>
    +<ul>
    +<li>
    +<a href="#plus.uploader.Upload.id">id</a>: 上传任务的标识</li>
    +<li>
    +<a href="#plus.uploader.Upload.url">url</a>: 上传文件的服务器地址</li>
    +<li>
    +<a href="#plus.uploader.Upload.state">state</a>: 任务的状态</li>
    +<li>
    +<a href="#plus.uploader.Upload.options">options</a>: 上传任务的参数</li>
    +<li>
    +<a href="#plus.uploader.Upload.responseText">responseText</a>: 上传任务完成后服务器返回的数据</li>
    +<li>
    +<a href="#plus.uploader.Upload.uploadedSize">uploadedSize</a>: 已完成上传数据的大小)</li>
    +<li>
    +<a href="#plus.uploader.Upload.totalSize">totalSize</a>: 上传数据的总大小</li>
    +</ul>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.uploader.Upload.addFile">addFile</a>: 添加上传文件</li>
    +<li>
    +<a href="#plus.uploader.Upload.addData">addData</a>: 添加上传数据</li>
    +<li>
    +<a href="#plus.uploader.Upload.start">start</a>: 开始上传任务</li>
    +<li>
    +<a href="#plus.uploader.Upload.pause">pause</a>: 暂停上传任务</li>
    +<li>
    +<a href="#plus.uploader.Upload.resume">resume</a>: 恢复暂停的上传任务</li>
    +<li>
    +<a href="#plus.uploader.Upload.abort">abort</a>: 取消上传任务</li>
    +<li>
    +<a href="#plus.uploader.Upload.addEventListener">addEventListener</a>: 添加上传任务事件监听器</li>
    +<li>
    +<a href="#plus.uploader.Upload.getAllResponseHeaders">getAllResponseHeaders</a>: 获取上传请求HTTP响应头部信息</li>
    +<li>
    +<a href="#plus.uploader.Upload.getResponseHeader">getResponseHeader</a>: 获取上传请求指定的HTTP响应头部的值</li>
    +<li>
    +<a href="#plus.uploader.Upload.setRequestHeader">setRequestHeader</a>: 设置上传请求的HTTP头数据</li>
    +</ul>
    +<h1><a name="plus.uploader.UploadEvent">UploadEvent</a></h1>
    +<p>上传任务事件类型</p>
    +<h2>常量:</h2>
    +<ul><li>"statechanged": <em>(<font class="type">String</font>
    +	类型
    +)</em>上传任务状态变化事件<br><p>
    +	当上传任务状态发生变化时触发此事件,事件原型参考UploadStateChangedCallback。
    +						</p>
    +</li></ul>
    +<h1><a name="plus.uploader.UploadState">UploadState</a></h1>
    +<p>上传任务的状态,Number类型</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>undefined: <em>(<font class="type">undefined</font>
    +	类型
    +)</em>上传任务未开始<br><p>
    +	通过plus.uploader.createUpload()方法创建上传任务后的初始状态,此时可调用其start()方法开始上传。
    +						</p>
    +</li>
    +<li>0: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务开始调度<br><p>
    +	调用上传任务的start()方法之后处于此状态,此时上传任务处于可调度上传状态。
    +						</p>
    +</li>
    +<li>1: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务开始请求<br><p>
    +	上传任务建立网络连接,发送请求到服务器并等待服务器的响应。
    +						</p>
    +</li>
    +<li>2: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务请求已经建立<br><p>
    +	上传任务网络连接已建立,服务器返回响应,准备传输数据内容。
    +						</p>
    +</li>
    +<li>3: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务提交数据<br><p>
    +	上传任务提交数据,监听statechanged事件时可多次触发此状态。
    +						</p>
    +</li>
    +<li>4: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务已完成<br><p>
    +	上传任务完成数据提交并断开连接,上传成功或失败都会设置为此状态。
    +						</p>
    +</li>
    +<li>5: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务已暂停<br><p>
    +	调用上传任务的pause()方法将任务暂停,此时可调用其resume()方法重新开始上传。
    +						</p>
    +</li>
    +<li>-1: <em>(<font class="type">number</font>
    +	类型
    +)</em>枚举任务状态<br><p>
    +	非上传任务状态,泛指所有上传任务的状态,用于enumerate()和clear()操作时指定作用于所有上传任务。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.uploader.UploadOptions">UploadOptions</a></h1>
    +<p>JSON对象,创建上传任务的参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>method: <em>(<font class="type">String</font>
    +	类型
    +)</em>网络请求类型<br><p>
    +	仅支持http协议的“POST”请求。
    +						</p>
    +</li>
    +<li>blocksize: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务每次上传的文件块大小(仅在支持断点续传的服务有效)<br><p>
    +	数值类型,单位为Byte(字节),默认值为102400,若设置值小于等于0则表示不分块上传。
    +						</p>
    +</li>
    +<li>priority: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务的优先级<br><p>
    +	数值类型,数值越大优先级越高,默认优先级值为0。
    +						</p>
    +</li>
    +<li>timeout: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务超时时间<br><p>
    +	数值类型,单位为s(秒),默认值为120s。
    +	超时时间为服务器响应请求的时间(不是上传任务完成的总时间),如果设置为0则表示永远不超时。
    +						</p>
    +</li>
    +<li>retry: <em>(<font class="type">number</font>
    +	类型
    +)</em>上传任务重试次数<br><p>
    +	数值类型,默认为重试3次。
    +						</p>
    +</li>
    +<li>retryInterval: <em>(<font class="type">Number</font>
    +	类型
    +)</em>上传任务重试间隔时间<br><p>
    +	数值类型,单位为s(秒),默认值为30s。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.uploader.UploadFileOptions">UploadFileOptions</a></h1>
    +<p>JSON对象,添加上传文件的参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>
    +<a href="#plus.uploader.UploadFileOptions.key">key</a>: 文件键名</li>
    +<li>
    +<a href="#plus.uploader.UploadFileOptions.name">name</a>: 文件名称</li>
    +<li>
    +<a href="#plus.uploader.UploadFileOptions.mime">mime</a>: 文件类型</li>
    +</ul>
    +<h1><a name="plus.uploader.UploadCompletedCallback">UploadCompletedCallback</a></h1>
    +<p>上传任务完成时的回调函数</p>
    +<pre class="prettyprint linenums">
    +void uploadCompleted( Upload upload, Number status ) {
    +	// File upload completed code.
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">在上传任务完成时调用,上传任务失败也将触发此回调。</p>
    +<h2>参数:</h2>
    +<ul>
    +<li>upload: 
    +		<em>(
    +			<a href="#plus.uploader.Upload">Upload</a>
    +			)
    +			必选 </em>上传任务对象<br>
    +</li>
    +<li>status: 
    +		<em>(
    +			<font class="type">Number</font>
    +			)
    +			必选 </em>上传结果状态码<br>
    +	HTTP传输协议状态码,如果未获取传输状态则其值则为0,如上传成功其值通常为200。
    +						</li>
    +</ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.uploader.UploadStateChangedCallback">UploadStateChangedCallback</a></h1>
    +<p>上传任务状态变化回调函数,在上传任务状态发生变化时调用</p>
    +<pre class="prettyprint linenums">
    +void onStateChanged( Upload upload, status ) {
    +	// Upload state changed code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul>
    +<li>upload: 
    +		<em>(
    +			<a href="#plus.uploader.Upload">Upload</a>
    +			)
    +			必选 </em>上传任务对象<br>
    +</li>
    +<li>status: 
    +		<em>(
    +			<font class="type">Number</font>
    +			)
    +			必选 </em>上传结果状态码<br>
    +	HTTP传输协议状态码,如果未获取传输状态则其值则为0,如上传成功其值通常为200。
    +						</li>
    +</ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.uploader.UploadEnumerateCallback">UploadEnumerateCallback</a></h1>
    +<p>枚举上传任务回调函数,在枚举上传任务完成时时调用</p>
    +<pre class="prettyprint linenums">
    +void onEnumerated( Upload[] uploads ) {
    +	// Upload enumerate completed code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>uploads: 
    +		<em>(
    +			<font class="type">Array</font>[
    +						<a href="#plus.uploader.Upload">Upload</a>
    +						]
    +					
    +			)
    +			必选 </em>枚举到的上传任务对象数组<br>
    +</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/webview.html b/fangija-zsyf/doc/webview.html
    new file mode 100644
    index 0000000..36547de
    --- /dev/null
    +++ b/fangija-zsyf/doc/webview.html
    @@ -0,0 +1,1680 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.webview">webview</a></h1>
    +<p>Webview模块管理应用窗口界面,实现多窗口的逻辑控制管理操作。通过plus.webview可获取应用界面管理对象。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.webview.all">all</a>: 获取所有Webview窗口</li>
    +<li>
    +<a href="#plus.webview.close">close</a>: 关闭Webview窗口</li>
    +<li>
    +<a href="#plus.webview.create">create</a>: 创建新的Webview窗口</li>
    +<li>
    +<a href="#plus.webview.currentWebview">currentWebview</a>: 获取当前窗口的WebviewObject对象</li>
    +<li>
    +<a href="#plus.webview.getDisplayWebview">getDisplayWebview</a>: 获取屏幕所有可视的Webview窗口</li>
    +<li>
    +<a href="#plus.webview.getWebviewById">getWebviewById</a>: 查找指定标识的WebviewObject窗口</li>
    +<li>
    +<a href="#plus.webview.getLaunchWebview">getLaunchWebview</a>: 获取应用首页WebviewObject窗口对象</li>
    +<li>
    +<a href="#plus.webview.getSecondWebview">getSecondWebview</a>: 获取应用第二个首页WebviewObject窗口对象</li>
    +<li>
    +<a href="#plus.webview.getTopWebview">getTopWebview</a>: 获取应用显示栈顶的WebviewObject窗口对象</li>
    +<li>
    +<a href="#plus.webview.hide">hide</a>: 隐藏Webview窗口</li>
    +<li>
    +<a href="#plus.webview.open">open</a>: 创建并打开Webview窗口</li>
    +<li>
    +<a href="#plus.webview.show">show</a>: 显示Webview窗口</li>
    +<li>
    +<a href="#plus.webview.startAnimation">startAnimation</a>: Webview窗口组合动画</li>
    +<li>
    +<a href="#plus.webview.defaultHardwareAccelerated">defaultHardwareAccelerated</a>: 获取Webview默认是否开启硬件加速</li>
    +</ul>
    +<h2>对象:</h2>
    +<ul>
    +<li>
    +<a href="#plus.webview.AnimationTypeShow">AnimationTypeShow</a>: 一组用于定义页面或控件显示动画效果</li>
    +<li>
    +<a href="#plus.webview.AnimationTypeClose">AnimationTypeClose</a>: 一组用于定义页面或控件关闭的动画效果</li>
    +<li>
    +<a href="#plus.webview.WebviewObject">WebviewObject</a>: Webview窗口对象,用于操作加载HTML页面的窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewAnimationOptions">WebviewAnimationOptions</a>: Webview窗口动画参数</li>
    +<li>
    +<a href="#plus.webview.WebviewAnimationStyles">WebviewAnimationStyles</a>: Webview窗口动画样式</li>
    +<li>
    +<a href="#plus.webview.WebviewBounceStyle">WebviewBounceStyle</a>: Webview窗口回弹样式</li>
    +<li>
    +<a href="#plus.webview.WebviewContentAnimationOptions">WebviewContentAnimationOptions</a>: Webview窗口内容动画参数</li>
    +<li>
    +<a href="#plus.webview.WebviewDock">WebviewDock</a>: 原生控件在窗口中停靠的方式</li>
    +<li>
    +<a href="#plus.webview.WebviewDragEvent">WebviewDragEvent</a>: Webview窗口滑动事件数据</li>
    +<li>
    +<a href="#plus.webview.WebviewDragOptions">WebviewDragOptions</a>: 窗口手势操作参数</li>
    +<li>
    +<a href="#plus.webview.WebviewDragOtherViewOptions">WebviewDragOtherViewOptions</a>: 手势操作关联对象参数</li>
    +<li>
    +<a href="#plus.webview.WebviewDrawOptions">WebviewDrawOptions</a>: 截屏绘制操作参数</li>
    +<li>
    +<a href="#plus.webview.WebviewNavigationbarStyles">WebviewNavigationbarStyles</a>: 窗口导航栏控件样式</li>
    +<li>
    +<a href="#plus.webview.WebviewSplitLineStyles">WebviewSplitLineStyles</a>: 窗口导航栏控件分割线样式</li>
    +<li>
    +<a href="#plus.webview.WebviewBackButtonStyles">WebviewBackButtonStyles</a>: 窗口导航栏控件返回键样式</li>
    +<li>
    +<a href="#plus.webview.WebviewEvent">WebviewEvent</a>: Webview窗口事件</li>
    +<li>
    +<a href="#plus.webview.WebviewExtraOptions">WebviewExtraOptions</a>: JSON对象,原生窗口扩展参数</li>
    +<li>
    +<a href="#plus.webview.WebviewPosition">WebviewPosition</a>: 原生控件在窗口中显示的位置</li>
    +<li>
    +<a href="#plus.webview.WebviewRefreshStyles">WebviewRefreshStyles</a>: Webview窗口下拉刷新样式</li>
    +<li>
    +<a href="#plus.webview.WebviewRenderedEventOptions">WebviewRenderedEventOptions</a>: Webview窗口rendered事件参数</li>
    +<li>
    +<a href="#plus.webview.WebviewStatusbarStyles">WebviewStatusbarStyles</a>: JSON对象,Webview窗口的系统状态栏区域样式</li>
    +<li>
    +<a href="#plus.webview.WebviewStyles">WebviewStyles</a>: JSON对象,Webview窗口对象的样式</li>
    +<li>
    +<a href="#plus.webview.WebviewTransform">WebviewTransform</a>: 一组用于定义页面或控件变形的属性</li>
    +<li>
    +<a href="#plus.webview.WebviewTransition">WebviewTransition</a>: 一组用于定义页面或控件转换效果的属性</li>
    +<li>
    +<a href="#plus.webview.WebviewOverrideResourceOptions">WebviewOverrideResourceOptions</a>: 拦截Webview窗口资源请求的参数</li>
    +<li>
    +<a href="#plus.webview.WebviewOverrideUrlOptions">WebviewOverrideUrlOptions</a>: 拦截Webview窗口URL请求的属性</li>
    +<li>
    +<a href="#plus.webview.WebviewListenResourceOptions">WebviewListenResourceOptions</a>: 监听Webview窗口资源加载的属性</li>
    +</ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.webview.BounceEventCallback">BounceEventCallback</a>: Webview窗口回弹事件的回调函数</li>
    +<li>
    +<a href="#plus.webview.EventCallback">EventCallback</a>: Webview窗口事件的回调函数</li>
    +<li>
    +<a href="#plus.webview.PopGestureCallback">PopGestureCallback</a>: Webview窗口侧滑事件的回调函数</li>
    +<li>
    +<a href="#plus.webview.HistoryQueryCallback">HistoryQueryCallback</a>: 历史记录查询的回调函数</li>
    +<li>
    +<a href="#plus.webview.ListenResourceLoadingCallback">ListenResourceLoadingCallback</a>: Webview窗口加载资源事件的回调函数</li>
    +<li>
    +<a href="#plus.webview.OverrideUrlLoadingCallback">OverrideUrlLoadingCallback</a>: Webview窗口拦截URL链接跳转的回调函数</li>
    +<li>
    +<a href="#plus.webview.TitleUpdateCallback">TitleUpdateCallback</a>: Webview窗口加载页面标题更新的回调函数</li>
    +<li>
    +<a href="#plus.webview.WebviewAnimationCallback">WebviewAnimationCallback</a>: Webview窗口组合动画回调函数</li>
    +<li>
    +<a href="#plus.webview.WebviewDragCallback">WebviewDragCallback</a>: Webview窗口滑屏操作事件回调函数</li>
    +<li>
    +<a href="#plus.webview.SuccessCallback">SuccessCallback</a>: Webview窗口操作成功回调函数</li>
    +<li>
    +<a href="#plus.webview.ErrorCallback">ErrorCallback</a>: Webview窗口操作失败回调函数</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>5+功能模块(permissions)</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Webview": {
    +		"description": "窗口管理"
    +	}
    +}
    +}
    +			</pre>
    +<h1><a name="plus.webview.AnimationTypeShow">AnimationTypeShow</a></h1>
    +<p>一组用于定义页面或控件显示动画效果</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>"auto": <em>(<font class="type">String</font>
    +	类型
    +)</em>自动选择动画效果<br><p>
    +	自动选择动画效果,使用上次显示窗口设置的动画效果,如果是第一次显示则默认动画效果“none”。
    +						</p>
    +</li>
    +<li>"none": <em>(<font class="type">String</font>
    +	类型
    +)</em>无动画效果<br><p>
    +	立即显示页面,无任何动画效果,页面显示默认的动画效果。
    +	此效果忽略动画时间参数,立即显示。
    +	对应关闭动画"none"。
    +						</p>
    +</li>
    +<li>"slide-in-right": <em>(<font class="type">String</font>
    +	类型
    +)</em>从右侧横向滑动效果<br><p>
    +	页面从屏幕右侧外向内横向滑动显示。
    +	对应关闭动画"slide-out-right"。
    +						</p>
    +</li>
    +<li>"slide-in-left": <em>(<font class="type">String</font>
    +	类型
    +)</em>从左侧横向滑动效果<br><p>
    +	页面从屏幕左侧向右横向滑动显示。
    +	对应关闭动画"slide-out-left"。
    +						</p>
    +</li>
    +<li>"slide-in-top": <em>(<font class="type">String</font>
    +	类型
    +)</em>从上侧竖向滑动效果<br><p>
    +	页面从屏幕上侧向下竖向滑动显示。
    +	对应关闭动画"slide-out-top"。
    +						</p>
    +</li>
    +<li>"slide-in-bottom": <em>(<font class="type">String</font>
    +	类型
    +)</em>从下侧竖向滑动效果<br><p>
    +	页面从屏幕下侧向上竖向滑动显示。
    +	对应关闭动画"slide-out-bottom"。
    +						</p>
    +</li>
    +<li>"fade-in": <em>(<font class="type">String</font>
    +	类型
    +)</em>从透明到不透明逐渐显示效果<br><p>
    +	页面从完全透明到不透明逐渐显示。
    +	对应关闭动画"fade-out"。
    +						</p>
    +</li>
    +<li>"zoom-out": <em>(<font class="type">String</font>
    +	类型
    +)</em>从小到大逐渐放大显示效果<br><p>
    +	页面在屏幕中间从小到大逐渐放大显示。
    +	对应关闭动画"zoom-in"。
    +						</p>
    +</li>
    +<li>"zoom-fade-out": <em>(<font class="type">String</font>
    +	类型
    +)</em>从小到大逐渐放大并且从透明到不透明逐渐显示效果<br><p>
    +	页面在屏幕中间从小到大逐渐放大并且从透明到不透明逐渐显示。
    +	对应关闭动画"zoom-fade-in"。
    +						</p>
    +</li>
    +<li>"pop-in": <em>(<font class="type">String</font>
    +	类型
    +)</em>从右侧平移入栈动画效果<br><p>
    +	页面从屏幕右侧滑入显示,同时上一个页面带阴影效果从屏幕左侧滑出隐藏。
    +	对应关闭动画"pop-out"。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.AnimationTypeClose">AnimationTypeClose</a></h1>
    +<p>一组用于定义页面或控件关闭的动画效果</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>"auto": <em>(<font class="type">String</font>
    +	类型
    +)</em>自动选择动画效果<br><p>
    +	自动选择显示窗口相对于的动画效果。
    +						</p>
    +</li>
    +<li>"none": <em>(<font class="type">String</font>
    +	类型
    +)</em>无动画<br><p>
    +	立即关闭页面,无任何动画效果。
    +	此效果忽略动画时间参数,立即关闭。
    +						</p>
    +</li>
    +<li>"slide-out-right": <em>(<font class="type">String</font>
    +	类型
    +)</em>横向向右侧滑出屏幕动画<br><p>
    +	页面从屏幕中横向向右侧滑动到屏幕外关闭。
    +						</p>
    +</li>
    +<li>"slide-out-left": <em>(<font class="type">String</font>
    +	类型
    +)</em>横向向左侧滑出屏幕动画<br><p>
    +	页面从屏幕中横向向左侧滑动到屏幕外关闭。
    +						</p>
    +</li>
    +<li>"slide-out-top": <em>(<font class="type">String</font>
    +	类型
    +)</em>竖向向上侧滑出屏幕动画<br><p>
    +	页面从屏幕中竖向向上侧滑动到屏幕外关闭。
    +						</p>
    +</li>
    +<li>"slide-out-bottom": <em>(<font class="type">String</font>
    +	类型
    +)</em>竖向向下侧滑出屏幕动画<br><p>
    +	页面从屏幕中竖向向下侧滑动到屏幕外关闭。
    +						</p>
    +</li>
    +<li>"fade-out": <em>(<font class="type">String</font>
    +	类型
    +)</em>从不透明到透明逐渐隐藏动画<br><p>
    +	页面从不透明到透明逐渐隐藏关闭。
    +						</p>
    +</li>
    +<li>"zoom-in": <em>(<font class="type">String</font>
    +	类型
    +)</em>从大逐渐缩小关闭动画<br><p>
    +	页面逐渐向页面中心缩小关闭。
    +						</p>
    +</li>
    +<li>"zoom-fade-in": <em>(<font class="type">String</font>
    +	类型
    +)</em>从大逐渐缩小并且从不透明到透明逐渐隐藏关闭动画<br><p>
    +	页面逐渐向页面中心缩小并且从不透明到透明逐渐隐藏关闭。
    +						</p>
    +</li>
    +<li>"pop-out": <em>(<font class="type">String</font>
    +	类型
    +)</em>从右侧平移出栈动画效果<br><p>
    +	页面从屏幕右侧滑出消失,同时上一个页面带阴影效果从屏幕左侧滑入显示。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewObject">WebviewObject</a></h1>
    +<p>Webview窗口对象,用于操作加载HTML页面的窗口</p>
    +<h2>属性:</h2>
    +<ul><li>
    +<a href="#plus.webview.WebviewObject.id">id</a>: Webview窗口的标识</li></ul>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.webview.WebviewObject.addEventListener">addEventListener</a>: 添加事件监听器</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.append">append</a>: 在Webview窗口中添加子窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.appendJsFile">appendJsFile</a>: 添加Webview窗口预加载js文件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.animate">animate</a>: Webview窗口内容动画</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.back">back</a>: 后退到上次加载的页面</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.beginPullToRefresh">beginPullToRefresh</a>: 开始Webview窗口的下拉刷新</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.canBack">canBack</a>: 查询Webview窗口是否可后退</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.canForward">canForward</a>: 查询Webview窗口是否可前进</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.checkRenderedContent">checkRenderedContent</a>: 检测Webview窗口是否渲染完成</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.children">children</a>: 获取Webview窗口的所有子Webview窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.clear">clear</a>: 清空原生Webview窗口加载的内容</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.close">close</a>: 关闭Webview窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.drag">drag</a>: 设置Webview窗口的滑屏操作手势</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.draw">draw</a>: 截屏绘制</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.endPullToRefresh">endPullToRefresh</a>: 结束Webview窗口的下拉刷新</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.evalJS">evalJS</a>: 在Webview窗口中执行JS脚本</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.forward">forward</a>: 前进到上次加载的页面</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.getNavigationbar">getNavigationbar</a>: 获取Webview窗口的导航栏控件对象</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.getStyle">getStyle</a>: 获取Webview窗口的样式</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.getTitle">getTitle</a>: 获取Webview窗口加载HTML页面的标题</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.getURL">getURL</a>: 获取Webview窗口加载HTML页面的地址</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.hide">hide</a>: 隐藏Webview窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.interceptTouchEvent">interceptTouchEvent</a>: 是否拦截Webview窗口的触屏事件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.isHardwareAccelerated">isHardwareAccelerated</a>: 查询Webview窗口是否开启硬件加速</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.isVisible">isVisible</a>: 查询Webview窗口是否可见</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.listenResourceLoading">listenResourceLoading</a>: 监听页面开始加载资源</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.loadData">loadData</a>: 加载新HTML数据</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.loadURL">loadURL</a>: 加载新URL页面</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.nativeInstanceObject">nativeInstanceObject</a>: 获取Webview窗口对象的原生(Native.JS)实例对象</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.opened">opened</a>: 获取在当前Webview窗口中创建的所有窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.opener">opener</a>: 获取当前Webview窗口的创建者</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.overrideResourceRequest">overrideResourceRequest</a>: 拦截Webview窗口的资源加载</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.overrideUrlLoading">overrideUrlLoading</a>: 拦截Webview窗口的URL请求</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.parent">parent</a>: 获取当前Webview窗口的父窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.reload">reload</a>: 重新加载Webview窗口显示的HTML页面</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.resetBounce">resetBounce</a>: 重置Webview窗口的回弹位置</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.restore">restore</a>: 恢复Webview控件显示内容</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.remove">remove</a>: 移除子Webview窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.removeEventListener">removeEventListener</a>: 移除Webview窗口事件监听器</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.removeFromParent">removeFromParent</a>: 从父窗口中移除</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setBounce">setBounce</a>: 设置Webview窗口的回弹效果</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setBlockNetworkImage">setBlockNetworkImage</a>: 设置Webview窗口是否阻塞加载页面中使用的网络图片</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setContentVisible">setContentVisible</a>: 设置HTML内容是否可见</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setPullToRefresh">setPullToRefresh</a>: 设置Webview窗口的下拉刷新效果</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setRenderedEventOptions">setRenderedEventOptions</a>: 设置Webview窗口rendered事件参数</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setStyle">setStyle</a>: 设置Webview窗口的样式</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setJsFile">setJsFile</a>: 设置预加载的JS文件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setCssFile">setCssFile</a>: 设置预加载的CSS文件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setCssText">setCssText</a>: 设置预加载的CSS内容</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setVisible">setVisible</a>: 设置Webview窗口是否可见</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.setFixBottom">setFixBottom</a>: 设置Webview窗口底部修复区域高度</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.show">show</a>: 显示Webview窗口</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.showBehind">showBehind</a>: 在指定Webview窗口后显示</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.stop">stop</a>: 停止加载HTML页面内容</li>
    +</ul>
    +<h2>事件:</h2>
    +<ul>
    +<li>
    +<a href="#plus.webview.WebviewObject.onclose">onclose</a>: Webview窗口关闭事件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.onerror">onerror</a>: Webview窗口错误事件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.onloaded">onloaded</a>: Webview窗口页面加载完成事件</li>
    +<li>
    +<a href="#plus.webview.WebviewObject.onloading">onloading</a>: Webview窗口页面开始加载事件</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewAnimationOptions">WebviewAnimationOptions</a></h1>
    +<p>Webview窗口动画参数</p>
    +<pre class="prettyprint linenums">
    +interface WebviewAnimationOptions {
    +	attribute WebviewObject view;
    +	attribute WebviewAnimationStyles styles;
    +	attribute String action;
    +}				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	用于指定动画目标窗口,起始位置、目标位置等信息。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>view: <em>(<a href="#plus.webview.WebviewObject">WebviewObject</a>
    +	类型
    +)</em>执行动画的窗口对象<br><p>
    +	可取值Webview窗口对象、Webview窗口的id(String类型)、原生View窗口对象(plus.nativeObj.View)。
    +						</p>
    +</li>
    +<li>styles: <em>(<a href="#plus.webview.WebviewAnimationStyles">WebviewAnimationStyles</a>
    +	类型
    +)</em>动画样式<br><p>
    +	用于指定动画窗口的起始位置,目标位置等。
    +						</p>
    +</li>
    +<li>action: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口动画完成后的行为<br><p>
    +	可取值:
    +	"none" - 动画完成后不做任何操作;
    +	"hide" - 动画完成后隐藏窗口;
    +	"close" - 动画完成后关闭窗口。
    +	默认值为"none"。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewAnimationStyles">WebviewAnimationStyles</a></h1>
    +<p>Webview窗口动画样式</p>
    +<pre class="prettyprint linenums">
    +interface WebviewAnimationStyles {
    +	attribute String fromLeft;
    +	attribute String toLeft;
    +}				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	用于指定动画窗口的起始位置、目标位置等信息。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>fromLeft: <em>(<font class="type">String</font>
    +	类型
    +)</em>画窗口的起始左侧位置<br><p>
    +	支持百分比、像素值,默认值为当前窗口的位置。
    +						</p>
    +</li>
    +<li>toLeft: <em>(<font class="type">String</font>
    +	类型
    +)</em>画窗口的目标左侧位置<br><p>
    +	持百分比、像素值。
    +	注意:如果设置的位置与起始位置一直,则无动画效果。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewBounceStyle">WebviewBounceStyle</a></h1>
    +<p>Webview窗口回弹样式</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>position: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>Webview窗口支持回弹效果的方向<br><p>
    +	可通过此参数设置开启Webview哪个方向支持回弹效果。
    +	支持以下属性:
    +	top:表示窗口顶部支持回弹效果;
    +	left:表示窗口左侧支持回弹效果;
    +	right:表示窗口右侧支持回弹效果;
    +	bottom:表示窗口底部支持回弹效果。
    +	**目前仅支持top属性**
    +	属性值:用于指定可拖拽的范围,可取百分比,如"10%";像素值,如"100px";自动计算值,如"auto";无回弹效果值,如"none";
    +						</p>
    +</li>
    +<li>changeoffset: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>Webview窗口回弹时停靠的位置<br><p>
    +	开启窗口回弹效果后,当窗口中展现的内容滚动到头(顶部或底部)时,再拖拽时窗口整体内容将跟随移动,拖拽过程中将触发"dragBounce"事件,松开后自动回弹到停靠位置。
    +	支持以下属性:
    +	top:表示窗口顶部回弹时停靠的位置。
    +	属性值:用于指定窗口回弹的位置,可取百分比,如"5%";像素值,如"100px";自动计算值,如"auto",默认为可拖拽的范围值的一半;
    +						</p>
    +</li>
    +<li>slideoffset: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>Webview窗口侧滑时停靠的位置<br><p>
    +	开启窗口回弹效果后,当窗口中展现的内容滚动到头(左侧或右侧)时,在拖拽时窗口整体内容将跟随移动,松开后自动停靠的侧滑位置,并触发"slideBounce"事件。
    +	支持以下属性:
    +	left:表示窗口左侧侧滑的位置;
    +	right:表示窗口右侧侧滑的位置。
    +	属性值:用于指定滑动后停靠的距离,可取百分比(left/right相对于窗口的宽度,top/bottom相对于窗口的高度),如"30%";像素值,如"100px";自动计算值,为可拖拽范围,如"auto"。
    +						</p>
    +</li>
    +<li>offset: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>Webview窗口拖拽偏移的位置<br><p>
    +	开启窗口回弹效果后,可以通过此属性值来主动设置拖拽的偏移位置,与手动操作拖拽至此偏移位置松开后的逻辑一致。
    +	支持以下属性:
    +	top:表示窗口顶部偏移的位置;
    +	left:表示窗口左侧偏移的位置;
    +	right:表示窗口右侧偏移的位置;
    +	bottom:表示窗口底部偏移的位置。
    +	属性值:用于指定偏移的位置,可取百分比,如"5%";像素值,如"100px";有效值范围为0到position属性定义的位置。
    +						</p>
    +</li>
    +<li>preventTouchEvent: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>Webview窗口是否阻止touch事件传递给DOM元素<br><p>
    +	设置为true表示阻止touch事件,设置为false表示不阻止touch事件。当开启侧滑功能(左侧滑和右侧滑)时默认值为true,否则为false。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewContentAnimationOptions">WebviewContentAnimationOptions</a></h1>
    +<p>Webview窗口内容动画参数</p>
    +<pre class="prettyprint linenums">
    +interface WebviewAnimationOptions {
    +	attribute String type;
    +	attribute Number duration;
    +	attribute Number frames;
    +	attribute Rect region;
    +}				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	指定动画的类型、持续时间等信息。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>type: <em>(<font class="type">String</font>
    +	类型
    +)</em>动画类型<br><p>
    +	可取值:"shrink" - 从上到下分块收缩清除窗口动画。
    +						</p>
    +</li>
    +<li>duration: <em>(<font class="type">Number</font>
    +	类型
    +)</em>动画持续时间<br><p>
    +	单位为毫秒,默认值为200ms。
    +						</p>
    +</li>
    +<li>frames: <em>(<font class="type">Number</font>
    +	类型
    +)</em>动画帧数<br><p>
    +	必须为大于0的整数,默认值为12。
    +						</p>
    +</li>
    +<li>region: <em>(<font class="type">json</font>
    +	类型
    +)</em>动画作用区域<br><p>
    +	支持以下属性:
    +	top - 区域距离控件顶部的偏移量,属性值可取像素值(如"100px"),百分比(如"10%",相对于控件的高度),默认值为'0px';
    +	bottom - 区域距离控件底部的偏移量,属性值可取像素值(如"100px"),百分比(如"10%",相对于控件的高度),默认值为'0px';
    +	left - 区域距离控件左侧的偏移量,属性值可取像素值(如"100px"),百分比(如"10%",相对于控件的宽度),默认值为'0px';
    +	right - 区域距离控件右侧的偏移量,属性值可取像素值(如"100px"),百分比(如"10%",相对于控件的宽度),默认值为'0px'。
    +	如“{top:'44px',bottom:'48px'}”。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewDock">WebviewDock</a></h1>
    +<p>原生控件在窗口中停靠的方式</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>"top": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件停靠则页面顶部<br>
    +</li>
    +<li>"bottom": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件停靠在页面底部<br>
    +</li>
    +<li>"right": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件停靠在页面右侧<br>
    +</li>
    +<li>"left": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件停靠在页面左侧<br>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewDragEvent">WebviewDragEvent</a></h1>
    +<p>Webview窗口滑动事件数据</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>direction: <em>(<font class="type">String</font>
    +	类型
    +)</em>手势类型<br><p>
    +	可取值:
    +	"rtl" - 从右向左滑动手势;
    +	"left" - 向左滑动手势,与rtl一致;
    +	"ltr" - 从左向右滑动手势;
    +	"right" - 向右滑动手势,与ltr一致。
    +						</p>
    +</li>
    +<li>type: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口滑动类型<br><p>
    +	可取值:
    +	"start" - 表示开始滑动操作;
    +	"move" - 表示正在滑动;
    +	"end" - 表示滑动操作结束。
    +						</p>
    +</li>
    +<li>result: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口滑动结果<br><p>
    +	可取值:
    +	"true" - 表示滑动操作成功;
    +	"false" - 表示滑动操作失败(恢复到滑动前的状态);
    +	"undefined" - 无状态值(当type值为"end"时返回此值)。
    +						</p>
    +</li>
    +<li>id: <em>(<font class="type">String</font>
    +	类型
    +)</em>当前操作窗口标识<br><p>
    +	当type值为"start"/"move"时,保存当前操作窗口(或View控件)的标识;
    +	当type值为"end"时保存滑动操作后显示窗口(或View控件)的标识(即result值为"true"则认为关联窗口显示,result值为false则认为主窗口显示)。
    +						</p>
    +</li>
    +<li>otherId: <em>(<font class="type">String</font>
    +	类型
    +)</em>关联窗口标识<br><p>
    +	滑动操作关联窗口(或View控件)的标识。
    +						</p>
    +</li>
    +<li>targetId: <em>(<font class="type">String</font>
    +	类型
    +)</em>主窗口标识<br><p>
    +	滑动操作主窗口(或View控件)的标识。
    +						</p>
    +</li>
    +<li>progress: <em>(<font class="type">Number</font>
    +	类型
    +)</em>滑动进度<br><p>
    +	滑动进度位置信息,取值范围为0-100,如20表示滑动了总距离的20%:
    +	当type值为"start"时progress值为0;
    +	当type值为"end"时如果result为true则progress值为0,如果result为false则progress值为100;
    +	当type值为"move"时,保存当前滑动的进度信息(注:多次触发move事件)。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewDragOptions">WebviewDragOptions</a></h1>
    +<p>窗口手势操作参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>callbackStep: <em>(<font class="type">Number</font>
    +	类型
    +)</em>滑屏操作回调事件触发步长<br><p>
    +	用于设置滑屏回调事件触发频率,取值范围为1-100,值越小触发频率越高,值越大触发频率越小,默认值为20。
    +	如设置值为20,则表示滑屏操作移动距离超过可移动范围的20%则触发一次回调事件,可通过回调函数参数(WebviewDragEvent)的progress属性获取。
    +	注意:触发频率过大会影响效率,开发者需谨慎设置此值。
    +						</p>
    +</li>
    +<li>direction: <em>(<font class="type">String</font>
    +	类型
    +)</em>设置的手势类型<br><p>
    +	可取值:
    +	可取值:
    +	"rtl" - 从右向左滑动手势;
    +	"left" - 向左滑动手势,与rtl一致;
    +	"ltr" - 从左向右滑动手势;
    +	"right" - 向右滑动手势,与ltr一致。
    +						</p>
    +</li>
    +<li>moveMode: <em>(<font class="type">String</font>
    +	类型
    +)</em>滑动手势模式<br><p>
    +	可取值:
    +	"followFinger" - 当前Webview窗口跟随手指滑动;
    +	"silent" - 当前Webview窗口不跟随手指滑动;
    +	"bounce" - 当前Webview窗口自动回弹(松手后窗口恢复到拖动前的位置),通常可通过设置此模式来实现Tab项无法继续滑动切换自动回弹效果。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewDragOtherViewOptions">WebviewDragOtherViewOptions</a></h1>
    +<p>手势操作关联对象参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>view: <em>(<font class="type">String</font>
    +	类型
    +)</em>手势关联对象<br><p>
    +	可取值Webview窗口的id(String类型)、Webview窗口对象、原生View窗口对象(plus.nativeObj.View)。
    +						</p>
    +</li>
    +<li>moveMode: <em>(<font class="type">String</font>
    +	类型
    +)</em>滑动模式<br><p>
    +	可取值:
    +	"follow" - 同步跟随主Webview窗口滑动;
    +	"silent" - 不跟随主Webview窗口滑动。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewDrawOptions">WebviewDrawOptions</a></h1>
    +<p>截屏绘制操作参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>bit: <em>(<font class="type">String</font>
    +	类型
    +)</em>截屏图片的位深<br><p>
    +	可取值:
    +		"RGB565" - RGB565彩色模式,一个像素占两个字节;
    +		"ARGB" - ARGB彩色模式,保存透明度信息。
    +						</p>
    +</li>
    +<li>check: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>是否检测截屏图片是否为空白<br><p>
    +	可取值:
    +		true - 表示检测到截屏到空白图片时认为操作失败(触发错误回调函数);
    +		false - 表示不检测,即使为空白图片仍然返回成功。
    +	默认值为false。
    +						</p>
    +</li>
    +<li>clip: <em>(<a href="#href.plus.nativeObj">plus.nativeObj</a>
    +	类型
    +)</em>设置截屏区域<br><p>
    +	相对于Webview窗口的区域信息,默认值为{top:'0px',left:'0px',width:'100%',height:'100%'}。
    +						</p>
    +</li>
    +<li>checkKeyboard: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>是否检测当前是否弹出软键盘<br><p>
    +	可取值:
    +		true - 表示检测到弹出软键盘是认为截屏操作失败(触发错误回调函数);
    +		false - 表示不检测软键盘状态,直接截屏。
    +	默认值为false。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewNavigationbarStyles">WebviewNavigationbarStyles</a></h1>
    +<p>窗口导航栏控件样式</p>
    +<h2>说明:</h2>
    +<p class="des">
    +	导航栏控件固定高度为44px,可通过Webview窗口对象的getNavigationbar方法获取导航栏原生控件对象动态绘制内容。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>backButton: <em>(<a href="#plus.webview.WebviewBackButtonStyles">WebviewBackButtonStyles</a>
    +	类型
    +)</em>导航控件的返回键样式<br><p>
    +	设置此属性则在导航栏控件中左侧显示返回键,可配置返回键颜色。
    +	设置此属性值为undefined或null则隐藏返回键。
    +	默认不显示返回键。
    +						</p>
    +</li>
    +<li>backgroundColor: <em>(<font class="type">String</font>
    +	类型
    +)</em>导航栏控件的背景颜色<br><p>
    +	颜色值格式为"#RRGGBB",如"#FF0000"表示为红色背景,默认值为"#1B1A1F"。
    +						</p>
    +</li>
    +<li>titleColor: <em>(<font class="type">String</font>
    +	类型
    +)</em>导航栏控件的标题颜色<br><p>
    +	颜色值格式为"#RRGGBB",如"#FF0000"表示标题文字为红色,默认值为"#FFFFFF"。
    +						</p>
    +</li>
    +<li>titleText: <em>(<font class="type">String</font>
    +	类型
    +)</em>导航栏控件的标题内容<br><p>
    +	在导航栏控件居中(水平和垂直)显示,左右边距为88px,如果文本过长则尾部裁剪显示。
    +	当不设置titleText属性或属性值为undefined/null时,使用当前Webview窗口加载页面的标题,并自动同步更新页面的标题。
    +						</p>
    +</li>
    +<li>titleSize: <em>(<font class="type">String</font>
    +	类型
    +)</em>导航栏控件的标题字体大小<br><p>
    +	字体大小单位为像素,如"20px"表示字体大小为20像素,默认值为17像素。
    +						</p>
    +</li>
    +<li>splitLine: <em>(<a href="#plus.webview.WebviewSplitLineStyles">WebviewSplitLineStyles</a>
    +	类型
    +)</em>导航栏控件底部分割线<br><p>
    +	设置此属性则在导航栏控件底部显示分割线,可配置颜色值及高度。
    +	设置此属性值为undefined或null则隐藏分割线。
    +	默认不显示底部分割线。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewSplitLineStyles">WebviewSplitLineStyles</a></h1>
    +<p>窗口导航栏控件分割线样式</p>
    +<h2>说明:</h2>
    +<p class="des">
    +	显示在导航栏控件底部。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>color: <em>(<font class="type">String</font>
    +	类型
    +)</em>底部分割线颜色<br><p>
    +	可取值: "#RRGGBB"格式字符串,如"#FF0000"表示绘制红色分割线;
    +	"rgba(R,G,B,A)",其中R/G/B分别代表红色值/绿色值/蓝色值,正整数类型,取值范围为0-255,A为透明度,浮点数类型,取值范围为0-1(0为全透明,1为不透明),如"rgba(255,0,0,0.5)",表示红色半透明。
    +	默认值为无色(白色全透明)。
    +						</p>
    +</li>
    +<li>height: <em>(<font class="type">String</font>
    +	类型
    +)</em>底部分割线高度<br><p>
    +	可取值:像素值,如"1px"表示1像素高;百分比,如"1%",相对于导航栏控件的高度。
    +	默认值为"1px"。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewBackButtonStyles">WebviewBackButtonStyles</a></h1>
    +<p>窗口导航栏控件返回键样式</p>
    +<h2>说明:</h2>
    +<p class="des">
    +	显示在导航栏控件右侧,点击后触发"backButton"事件(与点击物理返回键逻辑一致)。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>color: <em>(<font class="type">String</font>
    +	类型
    +)</em>返回键颜色<br><p>
    +	可取值: "#RRGGBB"格式字符串,如"#FF0000"表示绘制红色返回键;
    +	"rgba(R,G,B,A)",其中R/G/B分别代表红色值/绿色值/蓝色值,正整数类型,取值范围为0-255,A为透明度,浮点数类型,取值范围为0-1(0为全透明,1为不透明),如"rgba(255,0,0,0.5)",表示红色半透明。
    +	默认值为窗口导航栏控件标题颜色。
    +						</p>
    +</li>
    +<li>colorPressed: <em>(<font class="type">String</font>
    +	类型
    +)</em>返回键按下状态的颜色<br><p>
    +	可取值: "#RRGGBB"格式字符串,如"#FF0000"表示绘制红色返回键;
    +	"rgba(R,G,B,A)",其中R/G/B分别代表红色值/绿色值/蓝色值,正整数类型,取值范围为0-255,A为透明度,浮点数类型,取值范围为0-1(0为全透明,1为不透明),如"rgba(255,0,0,0.5)",表示红色半透明。
    +	默认值为color属性值自动调整透明度为0.3。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewEvent">WebviewEvent</a></h1>
    +<p>Webview窗口事件</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>"close": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口关闭事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口关闭时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"dragBounce": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口回弹事件<br><p>
    +	通过WebviewObject对象的setBounce方法开启回弹效果设置顶部下拉回弹changeoffset属性后,当用户向下拖拽窗口时触发发此事件,回调函数类型为BounceEventCallback。
    +						</p>
    +</li>
    +<li>"slideBounce": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口回弹事件<br><p>
    +	通过WebviewObject对象的setBounce方法开启回弹效果设置左右侧侧滑slideoffset属性后,当用户向左右侧拖拽窗口侧滑时触发发此事件,回调函数类型为BounceEventCallback。
    +						</p>
    +</li>
    +<li>"error": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口加载错误事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口加载错误时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"hide": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口隐藏事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口隐藏(窗口动画完成后)时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"loading": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口页面开始加载事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口开始加载新页面时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"loaded": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口页面加载完成事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口页面加载完成时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"maskClick": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口显示遮罩层时点击事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口通过mask属性设置显示遮罩层并且点击时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"rendering": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口开始渲染事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口开始渲染内容时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"rendered": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口渲染完成事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口渲染完成时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"show": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口显示事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口显示(窗口动画完成后)时触发此事件,回调函数类型为EventCallback。
    +						</p>
    +</li>
    +<li>"titleUpdate": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview加载页面标题更新事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口加载新页面更新标题时触发此事件,回调函数类型为SuccessCallback。
    +	注意:此事件会先于loaded事件触发,通常在加载网络页面时通过此事件可更快获取到页面的标题。
    +						</p>
    +</li>
    +<li>"touchstart": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口接收到触屏事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当用户操作按下到Webview窗口时触发此事件,回调函数类型为SuccessCallback。
    +	注意:每按下屏幕触发一次此事件。
    +						</p>
    +</li>
    +<li>"popGesture": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口侧滑返回事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口侧滑返回时触发此事件,回调函数类型为PopGestureCallback。
    +						</p>
    +</li>
    +<li>"progressChanged": <em>(<font class="type">String</font>
    +	类型
    +)</em>Webview窗口加载进度变化事件<br><p>
    +	通过WebviewObject对象的addEventListener方法添加事件监听函数,当Webview窗口加载页面进度变化时触发此事件。
    +	回调函数原型为void PorgressCandedCallback(Event e),可通过e.progress获取窗口加载进度,取值范围为0-100。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewExtraOptions">WebviewExtraOptions</a></h1>
    +<p>JSON对象,原生窗口扩展参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>acceleration: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口动画加速<br><p>
    +	开启窗口动画加速功能可优化窗口动画效果,提升动画流程度,可避免部分设备上打开(关闭)窗口闪屏的问题。
    +	可取值:
    +	"auto" - 自动优化窗口动画;
    +	"none" - 关闭窗口动画加速功能;
    +	"capture" - 使用截屏方式加速窗口动画。
    +	默认值为"auto"。
    +						</p>
    +</li>
    +<li>capture: <em>(<a href="#href.Bitmap">Bitmap</a>
    +	类型
    +)</em>窗口动画加速时使用的图片<br><p>
    +	当使用截屏方式加速窗口动画时,可设置已经创建好的截屏图片,此时不会进行实时截屏操作,加速窗口动画响应时间,提升用户体验。
    +	如果未指定截屏图片,则实时截取当前Webview窗口对象的图片进行动画操作。
    +	如果窗口未使用截屏方式加速动画,则忽略此参数。
    +						</p>
    +</li>
    +<li>otherCapture: <em>(<a href="#href.Bitmap">Bitmap</a>
    +	类型
    +)</em>关联窗口动画使用的图片<br><p>
    +	当使用截屏方式加速窗口动画时,可设置已经创建好的截屏图片,此时不会进行实时截屏操作,加速关联窗口动画响应时间,提升用户体验。
    +	如果未指定截屏图片,则实时截取关联Webview窗口对象的图片进行动画操作。
    +	如果窗口未使用截屏方式加速动画,则忽略此参数。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewPosition">WebviewPosition</a></h1>
    +<p>原生控件在窗口中显示的位置</p>
    +<h2>常量:</h2>
    +<ul>
    +<li>"static": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件在页面中正常定位,如果页面存在滚动条则随窗口内容滚动<br>
    +</li>
    +<li>"absolute": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件在页面中绝对定位,如果页面存在滚动条不随窗口内容滚动<br>
    +</li>
    +<li>"dock": <em>(<font class="type">String</font>
    +	类型
    +)</em>控件在页面中停靠,停靠的位置通过dock属性进行定义<br>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewRefreshStyles">WebviewRefreshStyles</a></h1>
    +<p>Webview窗口下拉刷新样式</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>support: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>是否开启Webview窗口的下拉刷新功能<br><p>
    +	true表示开启窗口的下拉刷新功能;
    +	false表示关闭窗口的下拉刷新功能。
    +						</p>
    +</li>
    +<li>color: <em>(<font class="type">String</font>
    +	类型
    +)</em>下拉刷新控件颜色<br><p>
    +	颜色值格式为"#RRGGBB",如"#FF0000"为设置下拉属性控件为红色,默认值为"#2BD009"。
    +	注意:仅"circle"样式下拉刷新支持此属性。
    +						</p>
    +</li>
    +<li>style: <em>(<font class="type">String</font>
    +	类型
    +)</em>下拉刷新样式<br><p>
    +	用于定义下拉刷新风格样式,可取值:
    +	"default" - 目前已实现的经典样式;
    +	"circle" - 新增下拉圆圈样式。
    +	默认值为"default"。
    +						</p>
    +</li>
    +<li>height: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的下拉刷新控件高度<br><p>
    +	支持百分比,如"10%";像素值,如"50px"。
    +						</p>
    +</li>
    +<li>range: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口可下拉拖拽的范围<br><p>
    +	支持百分比,如"10%";像素值,如"50px"。
    +						</p>
    +</li>
    +<li>offset: <em>(<font class="type">String</font>
    +	类型
    +)</em>下拉刷新控件的起始位置<br><p>
    +	仅对"circle"样式下拉刷新控件有效,用于定义刷新控件下拉时的起始位置。
    +	相对于Webview的顶部偏移量,支持百分比,如"10%";像素值,如"50px"。
    +	默认值为"0px"。
    +						</p>
    +</li>
    +<li>contentdown: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>在下拉可刷新状态时显示的内容<br><p>
    +	支持以下属性:
    +	caption:在下拉可刷新状态时下拉刷新控件上显示的标题内容。
    +						</p>
    +</li>
    +<li>contentover: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>在释放可刷新状态时显示的内容<br><p>
    +	支持以下属性:
    +	caption:在释放可刷新状态时下拉刷新控件上显示的标题内容。
    +						</p>
    +</li>
    +<li>contentrefresh: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>在正在刷新状态时显示的内容<br><p>
    +	支持以下属性:
    +	caption:在正在刷新状态时下拉刷新控件上显示的标题内容。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewRenderedEventOptions">WebviewRenderedEventOptions</a></h1>
    +<p>Webview窗口rendered事件参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>type: <em>(<font class="type">String</font>
    +	类型
    +)</em>判断窗口渲染完成类型<br><p>
    +	可取值:
    +	"top"-从顶部向下偏移22px横线截屏检测渲染是否完成;
    +	"bottom"-从底部向上偏移25px横线检测渲染是否完成;
    +	"center"-从中间横线检测渲染是否完成;
    +	"auto"为全屏检测(左、中、右三条竖线)。
    +	默认值为"auto"。
    +						</p>
    +</li>
    +<li>interval: <em>(<font class="type">Number</font>
    +	类型
    +)</em>判断窗口渲染完成间隔时间<br><p>
    +	单位为ms(毫秒),默认值为150ms。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewStatusbarStyles">WebviewStatusbarStyles</a></h1>
    +<p>JSON对象,Webview窗口的系统状态栏区域样式</p>
    +<h2>说明:</h2>
    +<p class="des">
    +	仅在应用设置为沉浸式状态栏样式下有效,非沉浸式状态栏样式下忽略此属性。
    +				</p>
    +<h2>属性:</h2>
    +<ul><li>background: <em>(<font class="type">String</font>
    +	类型
    +)</em>系统状态栏区域背景颜色<br><p>
    +	颜色值格式为"#RRGGBB",如"#FF0000"表示为红色背景。
    +	默认值为应用manifest.json中plus-&gt;statusbar-&gt;background属性配置的值,如果未配置此属性值,则使用系统默认状态栏的背景颜色。
    +						</p>
    +</li></ul>
    +<h1><a name="plus.webview.WebviewStyles">WebviewStyles</a></h1>
    +<p>JSON对象,Webview窗口对象的样式</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>cachemode: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的缓存模式<br><p>
    +	可取值:
    +	"default" - 根据cache-control决定是否使用缓存数据,如果存在缓存并且没有过期则使用本地缓存资源,否则从网络获取;
    +	"cacheElseNetwork" - 只要存在缓存(即使过期)数据则使用,否则从网络获取;
    +	"noCache" - 不使用缓存数据,全部从网络获取;
    +	"cacheOnly" - 仅使用缓存数据,不从网络获取(注:如果没有缓存数据则会导致加载失败)。
    +	默认使用"default"。	
    +						</p>
    +</li>
    +<li>background: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的背景颜色<br><p>
    +	窗口空白区域的背景模式,设置background为颜色值(参考CSS Color Names,可取值/十六进制值/rgb值/rgba值),窗口为独占模式显示(占整个屏幕区域);
    +	设置background为“transparent”,则表示窗口背景透明,为非独占模式。
    +						</p>
    +</li>
    +<li>blockNetworkImage: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>是否阻塞网络图片的加载<br><p>
    +	布尔类型,true表示阻塞,false表示不阻塞,默认值为false。
    +	阻塞后Webview窗口将不加载页面中使用的所有网络图片,可通过Webview窗口对象的setBlockNetWorkImage()方法动态修改此状态。
    +						</p>
    +</li>
    +<li>bottom: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口垂直向上的偏移量<br><p>
    +	支持百分比、像素值,默认值无值(根据top和height属性值来自动计算)。
    +	当同时设置了top和height值时,忽略此属性值;
    +	当未设置height值时,可通过top和bottom属性值来确定窗口的高度。
    +						</p>
    +</li>
    +<li>bounce: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口遇到边框是否有反弹效果<br><p>
    +	可取值:none表示没有反弹效果;vertical表示垂直方向有反弹效果;horizontal表示水平方向有反弹效果;all表示垂直和水平方向都有反弹效果。
    +						</p>
    +</li>
    +<li>bounceBackground: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口回弹效果区域的背景<br><p>
    +	窗口回弹效果区域背景可支持颜色值或图片:
    +		颜色值格式为"#RRGGBB",如"#FFFFFF"为设置白色背景;
    +		背景图为"url(%image path%)",如"url(./icon.png)"为设置icon.png为背景图,图片采用平铺模式绘制。
    +						</p>
    +</li>
    +<li>decelerationRate: <em>(<font class="type">Number</font>
    +	类型
    +)</em>窗口内容停止滑动的减速度<br><p>
    +	当Webview加载的内容超过其高度时,可以拖拽滑动内容,decelerationRate属性控制手指松开后页面滑动的速度。
    +	设置值越大手指松开后的滑动速度越快(滑动距离越长),其值域范围为0.0-1.0,默认值为0.989。
    +						</p>
    +</li>
    +<li>dock: <em>(<a href="#plus.webview.WebviewDock">WebviewDock</a>
    +	类型
    +)</em>窗口的停靠方式<br><p>
    +	当Webview窗口添加到另外一个窗口中时,停靠方式才会生效,采用停靠方式添加会导致原Webview窗口自动调整其大小避免其内容被子窗口盖住。
    +	可取值:"top",控件停靠则页面顶部;"bottom",控件停靠在页面底部;"right",控件停靠在页面右侧;"left",控件停靠在页面左侧。
    +						</p>
    +</li>
    +<li>errorPage: <em>(<a href="#plus.webview.String">String</a>
    +	类型
    +)</em>窗口加载错误时跳转的页面地址<br><p>
    +	当Webview窗口无法加载指定的url地址时(如本地页面不存在,或者无法访问的网络地址),此时会自动跳转到指定的错误页面地址(仅支持本地页面地址)。
    +	设置为“none”则关闭跳转到错误页面功能,此时页面显示Webview默认的错误页面内容。默认使用5+ Runtime内置的错误页面。
    +						</p>
    +</li>
    +<li>geolocation: <em>(<font class="type">Number</font>
    +	类型
    +)</em>拦截替换原生定位接口<br><p>
    +	当Webview加载的内容超过其高度时,可以拖拽滑动内容,decelerationRate属性控制手指松开后页面滑动的速度。
    +	设置值越大手指松开后的滑动速度越快(滑动距离越长),其值域范围为0.0-1.0,默认值为0.989。
    +						</p>
    +</li>
    +<li>hardwareAccelerated: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>窗口是否开启硬件加速<br><p>
    +	布尔类型,true表示开启硬件加速,false表示不开启硬件加速,默认情况5+ Runtime会根据设备实际支持情况自动选择是否开启硬件加速,可以通过plus.webview.defaultHardwareAccelerated()方法获取默认Webview是否开启硬件加速。
    +	由于不同设备对硬件加速的支持情况存在差异,开启硬件加速能加速HTML页面的渲染,但也会消耗更多的系统资源,从而导致在部分设备上可能出现闪屏、发虚、分块渲染等问题,因此在特定设备的特定页面如果出现以上问题需要手动设置关闭硬件加速来避免。
    +						</p>
    +</li>
    +<li>height: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的高度<br><p>
    +	支持百分比、像素值,默认为100%。
    +	当未设置height属性值时,优先通过top和bottom属性值来计算窗口的高度。
    +						</p>
    +</li>
    +<li>kernel: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口使用的内核<br><p>
    +	可取值:
    +	"WKWebview" - 在iOS8.0及以上系统使用WKWebview内核,低版本下仍然使用UIWebview内核;
    +    "UIWebview" - 在所有版本上都使用UIWebview内核。
    +    默认值为“UIWebview”。
    +    使用UKWebview内核会有更好的性能,但在功能上有些限制,目前已知的问题有:
    +    1. 不支持设置cookie,即plus.navigator.setCookie() API无法使用;
    +    2. 本地的HTML页面中的XHR不支持跨域访问,需使用plus.net.XMLHttpRequest来替换;
    +    3. 不支持使用WebSQL,需使用indexDB来替换;
    +    4. 不支持js原生混淆功能,需使用前端js混淆来替换。
    +						</p>
    +</li>
    +<li>left: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口水平向右的偏移量<br><p>
    +	支持百分比、像素值,默认值为0px。
    +	未设置left属性值时,优先通过right和width属性值来计算窗口的left位置。
    +						</p>
    +</li>
    +<li>margin: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的边距<br><p>
    +	用于定位窗口的位置,支持auto,auto表示居中。若设置了left、right、top、bottom则对应的边距值失效。
    +						</p>
    +</li>
    +<li>mask: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的遮罩<br><p>
    +	用于设置Webview窗口的遮罩层样式,遮罩层会覆盖Webview中所有内容,包括子webview,并且截获webview的所有触屏事件,此时Webview窗口的点击操作会触发maskClick事件。
    +	字符串类型,可取值:
    +	rgba格式字符串,定义纯色遮罩层样式,如"rgba(0,0,0,0.5)",表示黑色半透明;
    +	"none",表示不使用遮罩层;
    +	默认值为"none",即无遮罩层。
    +						</p>
    +</li>
    +<li>navigationbar: <em>(<a href="#plus.webview.WebviewNavigationbarStyles">WebviewNavigationbarStyles</a>
    +	类型
    +)</em>定义窗口创建导航栏控件<br><p>
    +	设置此属性值则表明创建导航栏控件,并可通过其属性值设置背景颜色、文本内容、文本颜色等。
    +						</p>
    +</li>
    +<li>opacity: <em>(<font class="type">Number</font>
    +	类型
    +)</em>窗口的不透明度<br><p>0为全透明,1为不透明,默认值为1,即不透明。</p>
    +</li>
    +<li>popGesture: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的侧滑返回功能<br><p>
    +	可取值"none":无侧滑返回功能;"close":侧滑返回关闭Webview窗口;"hide":侧滑返回隐藏webview窗口。
    +						</p>
    +</li>
    +<li>render: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口渲染模式<br><p>
    +	支持以下属性值:
    +		"onscreen" - Webview窗口在屏幕区可见时渲染,不可见时不进行渲染,此时能减少内存使用量;
    +		"always" - Webview在任何时候都渲染,在内存较大的设备上使用,被遮挡的窗口在此中模式下显示的时候会有更流畅的效果。
    +	默认值为"onscreen"。
    +	仅Android平台支持。
    +						</p>
    +</li>
    +<li>right: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口水平向左的偏移量<br><p>
    +	支持百分比、像素值,默认无值(根据left和width属性值来自动计算)。
    +	当设置了left和width值时,忽略此属性值;
    +	当未设置width值时,可通过left和bottom属性值来确定窗口的宽度。
    +						</p>
    +</li>
    +<li>scalable: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>窗口是否可缩放<br><p>
    +	窗口设置为可缩放(scalable:true)时,用户可通过双指操作放大或缩小页面,此时html页面可通过meta节点设置“name="viewport" content="user-scalable=no"”来限制页面不可缩放。
    +	窗口设置为不可缩放(scalable:false)时,用户不可通过双指操作放大或缩小页面,即使页面中的meta节点也无法开启可缩放功能。
    +	默认值为false,即不可缩放。
    +						</p>
    +</li>
    +<li>scrollIndicator: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口是否显示滚动条<br><p>
    +	用于控制窗口滚动条样式,可取值:
    +	"all":垂直和水平滚动条都显示;
    +	"vertical":仅显示垂直滚动条;
    +	"horizontal":仅显示水平滚动条;
    +	"none":垂直和水平滚动条都不显示。
    +	默认值为"all",即垂直和水平滚动条都显示。
    +	注意:显示滚动条的前提条件是窗口中的内容超过窗口显示的宽或高。
    +						</p>
    +</li>
    +<li>scrollsToTop: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>点击设备的状态栏时是否滚动返回至顶部<br><p>
    +	true表示点击设备的状态栏可以滚动返回至顶部,false表示点击设备的状态栏不可以,默认值为true。
    +	此功能仅iOS平台支持,在iPhone上有且只有一个Webview窗口的scrollsToTop属性值为true时才生效,所以在显示和关闭Webview窗口时需动态更新所有Webview的scrollsToTop值,已确保此功能生效。
    +						</p>
    +</li>
    +<li>softinputMode: <em>(<font class="type">String</font>
    +	类型
    +)</em>弹出系统软键盘模式<br><p>
    +	可选值:“adjustPan”- 弹出软键盘时Webview窗口自动上移,以保证当前输入框可见;“adjustResize”- 自动调整Webview窗口大小(屏幕区域减去软键盘区域),同时自动滚动Webview保证输入框可见。
    +	默认值为“adjustPan”。
    +						</p>
    +</li>
    +<li>statusbar: <em>(<font class="type">WebviewStatusbarStyles</font>
    +	类型
    +)</em>窗口状态栏样式<br><p>
    +	仅在应用设置为沉浸式状态栏样式下有效,设置此属性后将自动保留系统状态栏区域不被Webview窗口占用(即Webview窗口非沉浸式样式显示)。
    +						</p>
    +</li>
    +<li>top: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口垂直向下的偏移量<br><p>
    +	支持百分比、像素值,默认值为0px。
    +	未设置top属性值时,优先通过bottom和height属性值来计算窗口的top位置。
    +						</p>
    +</li>
    +<li>transition: <em>(<a href="#plus.webview.WebviewTransition">WebviewTransition</a>
    +	类型
    +)</em>窗口定义窗口变换的动画效果<br>
    +</li>
    +<li>transform: <em>(<a href="#plus.webview.WebviewTransform">WebviewTransform</a>
    +	类型
    +)</em>窗口定义窗口变形效果<br>
    +</li>
    +<li>position: <em>(<a href="#plus.webview.WebviewPosition">WebviewPosition</a>
    +	类型
    +)</em>Webview窗口的排版位置<br><p>
    +	当Webview窗口添加到另外一个窗口中时,排版位置才会生效,排版位置决定子窗口在父窗口中的定位方式。
    +	可取值:"static",控件在页面中正常定位,如果页面存在滚动条则随窗口内容滚动;"absolute",控件在页面中绝对定位,如果页面存在滚动条不随窗口内容滚动;"dock",控件在页面中停靠,停靠的位置由dock属性值决定。
    +	默认值为"absolute"。
    +						</p>
    +</li>
    +<li>videoFullscreen: <em>(<font class="type">String</font>
    +	类型
    +)</em>视频全屏播放时的显示方向<br><p>
    +	可取值:
    +	"auto": 自动适配,如果当前页面竖屏,则竖屏显示;如果当前页面横盘显示,则横屏;如果当前页面自动感应,则自动感应横竖屏切换。
    +	"portrait-primary": 竖屏正方向; 
    +	"portrait-secondary": 竖屏反方向,屏幕正方向按顺时针旋转180°; 
    +	"landscape-primary": 横屏正方向,屏幕正方向按顺时针旋转90°; 
    +	"landscape-secondary": 横屏方向,屏幕正方向按顺时针旋转270°; 
    +	"landscape": 横屏正方向或反方向,根据设备重力感应器自动调整;
    +	默认值为“auto”。
    +						</p>
    +</li>
    +<li>width: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口的宽度<br><p>
    +	支持百分比、像素值,默认为100%。未设置width属性值时,可同时设置left和right属性值改变窗口的默认宽度。
    +						</p>
    +</li>
    +<li>zindex: <em>(<font class="type">Number</font>
    +	类型
    +)</em>窗口的堆叠顺序值<br><p>
    +	拥有更高堆叠顺序的窗口总是会处于堆叠顺序较低的窗口的前面,拥有相同堆叠顺序的窗口后调用show方法则在前面。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewTransform">WebviewTransform</a></h1>
    +<p>一组用于定义页面或控件变形的属性</p>
    +<h1><a name="plus.webview.WebviewTransition">WebviewTransition</a></h1>
    +<p>一组用于定义页面或控件转换效果的属性</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>property: <em>(<font class="type">String</font>
    +	类型
    +)</em>产生变换效果的属性<br><p>
    +	默认值为"all",暂不支持其它值。
    +						</p>
    +</li>
    +<li>duration: <em>(<font class="type">String</font>
    +	类型
    +)</em>变换持续的时间<br><p>
    +	默认值为0,即无动画效果。
    +						</p>
    +</li>
    +<li>timingfunction: <em>(<font class="type">String</font>
    +	类型
    +)</em>窗口变换效果<br><p>
    +	可取值:
    +	"linear":匀速变化,匀速动画效果;
    +	"ease-in":匀加速变化,逐渐变快的动画效果;
    +	"ease-out":匀减速变化,逐渐变慢的动画效果;
    +	"ease-in-out":先加速后减速变化,先变快后变慢的动画效果。
    +	默认值为"ease-in-out"。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewOverrideResourceOptions">WebviewOverrideResourceOptions</a></h1>
    +<p>拦截Webview窗口资源请求的参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>match: <em>(<font class="type">String</font>
    +	类型
    +)</em>区配需要拦截请求资源的URL地址<br><p>
    +	支持正则表达式,默认值为空字符串(即不拦截)。
    +						</p>
    +</li>
    +<li>redirect: <em>(<font class="type">String</font>
    +	类型
    +)</em>拦截重定向的资源地址<br><p>
    +	仅支持本地资源地址,如"_www"、"_doc"、"_downloads"、"_documents"等开头的路径。
    +						</p>
    +</li>
    +<li>mime: <em>(<font class="type">String</font>
    +	类型
    +)</em>重定向的资源数据类型<br><p>
    +	RFC2045/RFC2046/RFC2047/RFC2048/RFC2049规范中定义的数据类型。
    +	如普通文本(text/plain)、PNG图像(image/png)、GIF图形(image/gif)、JPEG图形(image/jpeg)。
    +	如果未指定mime类型,则根据重定向资源路径自动区配。
    +						</p>
    +</li>
    +<li>encoding: <em>(<font class="type">String</font>
    +	类型
    +)</em>重定向的资源数据编码<br><p>
    +	如未设置,则使用默认值"UTF-8"。
    +						</p>
    +</li>
    +<li>header: <em>(<font class="type">JSON</font>
    +	类型
    +)</em>设置重定向资源数据的http头数据<br><p>
    +	可设置标注http头数据(如Content-type),也可设置自定义数据。
    +	通常可通过此属性来设置拦截资源的缓存策略(如Cache-control)。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewOverrideUrlOptions">WebviewOverrideUrlOptions</a></h1>
    +<p>拦截Webview窗口URL请求的属性</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>effect: <em>(<font class="type">String</font>
    +	类型
    +)</em>拦截URL请求生效时机<br><p>
    +	可取值:
    +		"instant" - 表示立即生效,即调用overrideUrlLoading方法后立即生效;
    +		"touchstart" - 表示用户操作Webview窗口(触发touchstart事件)后生效,如果用户没有操作Webview窗口则不对URL请求操作进行拦截处理。
    +	默认值为"instant"。
    +						</p>
    +</li>
    +<li>mode: <em>(<font class="type">String</font>
    +	类型
    +)</em>拦截模式<br><p>
    +	可取值:
    +	"allow"表示满足match属性定义的条件时不拦截url继续加载,不满足match属性定义的条件时拦截url跳转并触发callback回调;
    +	"reject"表示满足match属性定义的提交时拦截url跳转并触发callback回调,不满足match属性定义的条件时不拦截url继续加载。
    +	默认值为"reject"。
    +						</p>
    +</li>
    +<li>match: <em>(<font class="type">String</font>
    +	类型
    +)</em>区配是否需要处理的URL请求<br><p>
    +	支持正则表达式,默认值为对所有URL地址生效(相当于正则表达式“.*”)。
    +	如果mode值为"allow"则允许区配的URL请求跳转,mode值为"reject"则拦截区配的URL请求。
    +						</p>
    +</li>
    +<li>exclude: <em>(<font class="type">String</font>
    +	类型
    +)</em>排除拦截处理请求类型<br><p>
    +	不拦截处理指定类型的URL请求,直接使用系统默认处理逻辑。
    +	可取值:
    +	"none"表示不排除任何URL请求(即拦截处理所有URL请求);
    +	"redirect"表示排除拦截处理301/302跳转的请求(谨慎使用,非a标签的href触发的URL请求可能会误判断为302跳转)。
    +	默认值为"none"。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.webview.WebviewListenResourceOptions">WebviewListenResourceOptions</a></h1>
    +<p>监听Webview窗口资源加载的属性</p>
    +<h2>属性:</h2>
    +<ul><li>match: <em>(<font class="type">String</font>
    +	类型
    +)</em>区配是否需要处理的URL资源<br><p>
    +	支持正则表达式,默认值为对所有URL资源请求生效(相当于正则表达式“.*”)。
    +	如果Webview加载的资源区配条件,则触发回调事件。
    +						</p>
    +</li></ul>
    +<h1><a name="plus.webview.BounceEventCallback">BounceEventCallback</a></h1>
    +<p>Webview窗口回弹事件的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onEvent( Event event ){
    +	// Event handled code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>Webview窗口回弹事件触发时事件数据<br>
    +	Event对象包含以下属性:
    +	status - 表示回弹位置状态,设置顶部下拉回弹changeoffset属性后可取值:"beforeChangeOffset"表示可继续拖拽,此时松开拖拽窗口会回弹到其初始位置;
    +			"afterChangeOffset"表示回弹可停靠,此时松开拖拽窗口会回弹到停靠位置;
    +			"dragEndAfterChangeOffset"表示已进松开拖拽,并且窗口回弹到停靠位置。
    +			设置左右侧侧滑slideoffset属性后可取值:"beforeSlide"表示未侧滑状态;"afterSlide"表示已侧滑状态。
    +	offset - 表示回弹方向,可取值:"left"表示左侧滑动,"right"表示右侧滑动,"top"表示上侧下拉滑动。
    +	target - 保存触发回弹此事件的Webview窗口对象。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.EventCallback">EventCallback</a></h1>
    +<p>Webview窗口事件的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onEvent(Event event){
    +	// Event handled code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>Webview窗口事件触发时事件数据<br>
    +	Event对象包含以下属性:
    +		target:保存触发此事件的Webview窗口对象;
    +		progress:保存窗口页面加载进度,仅"progressChanged"事件时有此属性。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.PopGestureCallback">PopGestureCallback</a></h1>
    +<p>Webview窗口侧滑事件的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onEvent( PopGestureEvent event ){
    +	// Event handled code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<a href="#plus.webview.PopGestureEvent">PopGestureEvent</a>
    +			)
    +			必选 </em>Webview窗口事件触发时事件数据<br>
    +	PopGestureEvent对象包含以下属性:
    +		target:保存侧滑操作的Webview窗口对象。
    +		type:保存侧滑事件类型,"start"表示开始侧滑返回,用户按下滑动时触发;
    +		“end”表示结束侧滑返回,用户松手时触发;
    +		“move"表示侧滑返回动作结束,用户移动侧滑时触发。
    +		result:保存操作结果,仅在e.type为end时有效,boolean类型,
    +		true表示侧滑返回执行,false表示侧滑返回取消;否则为undefined。
    +		progress:保存侧滑位置,Number类型,可带小数点,范围为0-100。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.HistoryQueryCallback">HistoryQueryCallback</a></h1>
    +<p>历史记录查询的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onHistoryQuery( Event event ) {
    +	// Event handled code.
    +	var canBack = event.canBack;
    +	var canForward = event.canForward;
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>查询Webview窗口历史记录操作事件数据<br>
    +	可通过event的canBack属性获取Webview窗口是否可后退,通过event的canForward属性获取Webview窗口是否可前进。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.ListenResourceLoadingCallback">ListenResourceLoadingCallback</a></h1>
    +<p>Webview窗口加载资源事件的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onLoadingResource( Event event ) {
    +	// Event handled code.
    +	var url = event.url;
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>Webview窗口加载资源事件数据<br>
    +	可通过event的url属性获取要加载的资源URL地址。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.OverrideUrlLoadingCallback">OverrideUrlLoadingCallback</a></h1>
    +<p>Webview窗口拦截URL链接跳转的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onOverride( Event event ) {
    +	// Event handled code.
    +	var url = event.url;
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>Webview窗口拦截URL跳转事件数据<br>
    +	可通过event的url属性获取拦截的URL地址。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.TitleUpdateCallback">TitleUpdateCallback</a></h1>
    +<p>Webview窗口加载页面标题更新的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onQuery( Event event ) {
    +	// Event handled code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>Webview窗口加载页面标题更新事件数据<br>
    +	可通过event的title属性获取Webview窗口的标题。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.WebviewAnimationCallback">WebviewAnimationCallback</a></h1>
    +<p>Webview窗口组合动画回调函数</p>
    +<pre class="prettyprint linenums">
    +void onAnimationFinished( Event event ) {
    +	// Event handled code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			必选 </em>Webview窗口动画完成事件数据<br>
    +	可通过event的id属性获取对应Webview窗口的标识,如果操作的窗口未设置id,则返回空字符串;
    +	可通过event的target属性获取对应Webview窗口对象。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.WebviewDragCallback">WebviewDragCallback</a></h1>
    +<p>Webview窗口滑屏操作事件回调函数</p>
    +<pre class="prettyprint linenums">
    +void onDrag( Event event ) {
    +	// Event handled code.
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	在窗口开始滑动、滑动过程、滑动结束时触发,其中滑动过程中会触发多次,滑动过程中触发次数由WebviewDragOptions对象的callbackStep决定。
    +				</p>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<a href="#plus.webview.WebviewDragEvent">WebviewDragEvent</a>
    +			)
    +			必选 </em>Webview窗口滑动操作事件数据<br>
    +</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.SuccessCallback">SuccessCallback</a></h1>
    +<p>Webview窗口操作成功回调函数</p>
    +<pre class="prettyprint linenums">
    +void onSuccess(){
    +	// Success code.
    +}
    +				</pre>
    +<h2>说明:</h2>
    +<p class="des">
    +	Webview窗口业务操作成功后触发回调函数。
    +				</p>
    +<h2>参数:</h2>
    +<p>无</p>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.webview.ErrorCallback">ErrorCallback</a></h1>
    +<p>Webview窗口操作失败回调函数</p>
    +<pre class="prettyprint linenums">
    +void onError(error){
    +	// Handle the error
    +	var code = error.code; // 错误编码
    +	var message = error.message; // 错误描述信息
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">Exception</font>
    +			)
    +			可选 </em>Webview窗口操作错误信息<br>
    +	可通过error.code(Number类型)获取错误编码;
    +	可通过error.message(String类型)获取错误描述信息。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/xhr.html b/fangija-zsyf/doc/xhr.html
    new file mode 100644
    index 0000000..32241fb
    --- /dev/null
    +++ b/fangija-zsyf/doc/xhr.html
    @@ -0,0 +1,172 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.net">net</a></h1>
    +<p>XMLHttpRequest模块管理网络请求,与标准HTML中的XMLHttpRequest用途一致,差别在于前者可以进行跨域访问。通过plus.net可获取网络请求管理对象。</p>
    +<h2>对象:</h2>
    +<ul>
    +<li>
    +<a href="#plus.net.XMLHttpRequest">XMLHttpRequest</a>: 跨域网络请求对象</li>
    +<li>
    +<a href="#plus.net.ProgressEvent">ProgressEvent</a>: HTTP请求进度事件</li>
    +</ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.net.XhrStateChangeCallback">XhrStateChangeCallback</a>: 网络请求状态变化的回调函数</li>
    +<li>
    +<a href="#plus.net.XhrProgressEventCallback">XhrProgressEventCallback</a>: 网络请求进度事件的回调函数</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>5+功能模块(permissions)</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"XMLHttpRequest": {
    +		"description": "跨域网络连接"
    +	}
    +}
    +}
    +			</pre>
    +<h1><a name="plus.net.XMLHttpRequest">XMLHttpRequest</a></h1>
    +<p>跨域网络请求对象</p>
    +<h2>构造:</h2>
    +<ul><li>
    +<a href="#plus.net.XMLHttpRequest.XMLHttpRequest()">XMLHttpRequest()</a>: 创建一个XMLHttpRequest 对象,对象创建时不触发任何时间和网络请求,需和open,send方法配合使用。</li></ul>
    +<h2>属性:</h2>
    +<ul>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.readyState">readyState</a>: HTTP 请求的状态</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.response">response</a>: 请求从服务器接收到的响应数据</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.responseText">responseText</a>: 请求从服务器接收到的响应数据(字符串数据)</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.responseType">responseType</a>: 请求响应数据response的类型</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.responseXML">responseXML</a>: 请求响应的Document对象</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.status">status</a>: 服务器返回的HTTP状态代码</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.statusText">statusText</a>: 服务器返回的HTTP状态描述</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.timeout">timeout</a>: 请求服务器的超时时间,单位为毫秒(ms)</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.withCredentials">withCredentials</a>: 是否支持跨域请求</li>
    +</ul>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.abort">abort</a>: 取消当前响应,关闭连接并且结束任何未决的网络活动</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.getAllResponseHeaders">getAllResponseHeaders</a>: 获取HTTP响应头部信息</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.getResponseHeader">getResponseHeader</a>: 获取指定的HTTP响应头部的值</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.open">open</a>: 初始化HTTP请求参数,例如URL和HTTP方法,但是并不发送请求</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.overrideMimeType">overrideMimeType</a>: 重写服务器返回的MIME类型</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.send">send</a>: 发送HTTP请求</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.setRequestHeader">setRequestHeader</a>: 指定一个HTTP请求的Header</li>
    +</ul>
    +<h2>事件:</h2>
    +<ul>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onreadystatechange">onreadystatechange</a>: 网络请求状态发生变化事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onloadstart">onloadstart</a>: 网络请求开始事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onprogress">onprogress</a>: 网络请求传输数据事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onabort">onabort</a>: 网络请求取消事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onerror">onerror</a>: 网络请求错误事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onload">onload</a>: 网络请求成功事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.ontimeout">ontimeout</a>: 网络请求超时事件</li>
    +<li>
    +<a href="#plus.net.XMLHttpRequest.onloadend">onloadend</a>: 网络请求结束事件</li>
    +</ul>
    +<h1><a name="plus.net.ProgressEvent">ProgressEvent</a></h1>
    +<p>HTTP请求进度事件</p>
    +<pre class="prettyprint linenums">
    +interface ProgressEvent : Event {
    +    readonly attribute XMLHttpRequest target;
    +    readonly attribute Boolean lengthComputable;
    +    readonly attribute Number loaded;
    +    readonly attribute Number total;
    +};
    +				</pre>
    +<h2>属性:</h2>
    +<ul>
    +<li>target: <em>(<a href="#plus.net.XMLHttpRequest">XMLHttpRequest</a>
    +	类型
    +)</em>事件的目标对象<br><p>
    +	通知HTTP请求进度事件的XMLHttpRequest对象。
    +						</p>
    +</li>
    +<li>lengthComputable: <em>(<font class="type">Number</font>
    +	类型
    +)</em>进度信息是否可计算<br><p>
    +	HTTP请求进度信息是否有效,如果HTTP请求头中包含Content-Length头信息则为true,否则为false。
    +						</p>
    +</li>
    +<li>loaded: <em>(<font class="type">XMLHttpRequest</font>
    +	类型
    +)</em>当前已经接收到的数据长度<br><p>
    +	HTTP请求接收到的数据长度,单位为字节。
    +						</p>
    +</li>
    +<li>total: <em>(<font class="type">XMLHttpRequest</font>
    +	类型
    +)</em>总数据长度<br><p>
    +	HTTP请求返回的总数据长度,单位为字节。
    +	如果无法获取则设置为0。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.net.XhrStateChangeCallback">XhrStateChangeCallback</a></h1>
    +<p>网络请求状态变化的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onSuccess() {
    +	// State changed code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<p>无</p>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.net.XhrProgressEventCallback">XhrProgressEventCallback</a></h1>
    +<p>网络请求进度事件的回调函数</p>
    +<pre class="prettyprint linenums">
    +void onProgressEvent( ProgressEvent event ) {
    +	// Progress changed code.
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<a href="#plus.net.ProgressEvent">ProgressEvent</a>
    +			)
    +			必选 </em>HTTP请求进度事件<br>
    +</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/doc/zip.html b/fangija-zsyf/doc/zip.html
    new file mode 100644
    index 0000000..3a50fe5
    --- /dev/null
    +++ b/fangija-zsyf/doc/zip.html
    @@ -0,0 +1,227 @@
    +<!DOCTYPE HTML>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    +<meta name="HandheldFriendly" content="true">
    +<meta name="MobileOptimized" content="320">
    +<title>Hello H5+</title>
    +<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
    +<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
    +<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
    +</head>
    +<body><div id="content" class="content">
    +<h1><a name="plus.zip">zip</a></h1>
    +<p>Zip模块管理文件压缩和解压,通过plus.zip可获取压缩管理对象。</p>
    +<h2>方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.zip.compress">compress</a>: 压缩生成Zip文件</li>
    +<li>
    +<a href="#plus.zip.decompress">decompress</a>: 解压缩Zip文件</li>
    +<li>
    +<a href="#plus.zip.compressImage">compressImage</a>: 图片压缩转换</li>
    +</ul>
    +<h2>对象:</h2>
    +<ul>
    +<li>
    +<a href="#plus.zip.CompressImageOptions">CompressImageOptions</a>: JSON对象,配置图片压缩转换的参数</li>
    +<li>
    +<a href="#plus.zip.ClipImageOptions">ClipImageOptions</a>: JSON对象,图片裁剪区域的参数</li>
    +</ul>
    +<h2>回调方法:</h2>
    +<ul>
    +<li>
    +<a href="#plus.zip.CompressImageSuccessCallback">CompressImageSuccessCallback</a>: 图片压缩转换操作成功回调接口</li>
    +<li>
    +<a href="#plus.zip.ZipSuccessCallback">ZipSuccessCallback</a>: 操作成功回调函数接口,在解压Zip文件或压缩成Zip文件成功时调用</li>
    +<li>
    +<a href="#plus.zip.ZipErrorCallback">ZipErrorCallback</a>: 操作错误回调函数接口,在解压Zip文件或压缩成Zip文件失败时调用</li>
    +</ul>
    +<h2>权限:</h2>
    +<p>5+功能模块(permissions)</p>
    +<pre class="prettyprint linenums">
    +{
    +// ...
    +"permissions":{
    +	// ...
    +	"Zip": {
    +		"description": "压缩与解压"
    +	}
    +}
    +}
    +			</pre>
    +<h1><a name="plus.zip.CompressImageOptions">CompressImageOptions</a></h1>
    +<p>JSON对象,配置图片压缩转换的参数</p>
    +<h2>说明:</h2>
    +<p class="des">
    +	设置width/height属性则表示需对图片进行缩放转换操作;
    +	设置rotate属性则表示需对图片进行旋转转换操作;
    +	设置clip属性则表示需对图片进行裁剪转换操作;
    +	如同时设置了多个转换操作,则按缩放、旋转、裁剪顺序进行操作。
    +				</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>src: <em>(<font class="type">String</font>
    +	类型
    +)</em>压缩转换原始图片的路径<br><p>
    +	支持以下图片路径:
    +	相对路径 - 相对于当前页面的host位置,如"a.jpg",注意当前页面为网络地址则不支持;
    +	绝对路径 - 系统绝对路径,如Android平台"/storage/sdcard0/Android/data/io.dcloud.HBuilder/.HBuilder/apps/HBuilder/www/a.jpg",iOS平台"/var/mobile/Containers/Data/Application/757966CF-345C-4348-B07F-EEF83CF9A369/Library/Pandora/apps/HBuilder/www/a.png";
    +	相对路径URL(RelativeURL) - 以"_"开头的相对路径,如"_www/a.jpg"、"_doc/b.jpg"、"_documents/c.jpg"、"_downloads/d.jpg";
    +	本地路径URL - 以“file://”开头,后面跟随系统绝对路径。
    +						</p>
    +</li>
    +<li>dst: <em>(<font class="type">String</font>
    +	类型
    +)</em>压缩转换目标图片的路径<br><p>
    +	支持以下图片路径:
    +	绝对路径 - 系统绝对路径,如Android平台"/storage/sdcard0/Android/data/io.dcloud.HBuilder/.HBuilder/apps/HBuilder/doc/a.jpg",iOS平台"/var/mobile/Containers/Data/Application/757966CF-345C-4348-B07F-EEF83CF9A369/Library/Pandora/apps/HBuilder/doc/a.png";
    +	相对路径URL(RelativeURL) - 以"_"开头的相对路径,如"_doc/b.jpg"、"_documents/c.jpg"、"_downloads/d.jpg",注意不支持"_www"开头的路径;
    +	本地路径URL - 以“file://”开头,后面跟随系统绝对路径。
    +	注意:如果设置的路径无权限访问,则返回失败。
    +						</p>
    +</li>
    +<li>overwrite: <em>(<font class="type">Boolean</font>
    +	类型
    +)</em>覆盖生成新文件<br><p>
    +	仅在dst制定的路径文件存在时有效:
    +	true表示覆盖存在的文件;
    +	false表示不覆盖,如果文件存在,则返回失败。
    +	默认值为false。
    +						</p>
    +</li>
    +<li>format: <em>(<font class="type">String</font>
    +	类型
    +)</em>压缩转换后的图片格式<br><p>
    +	支持"jpg"、"png",如果未指定则使用源图片的格式。
    +						</p>
    +</li>
    +<li>quality: <em>(<font class="type">Number</font>
    +	类型
    +)</em>压缩图片的质量<br><p>
    +	取值范围为1-100,1表示使用最低的图片质量(转换后的图片文件最小)、100表示使用最高的图片质量(转换后的图片文件最大);
    +	默认值为50。
    +						</p>
    +</li>
    +<li>width: <em>(<font class="type">String</font>
    +	类型
    +)</em>缩放图片的宽度<br><p>
    +	支持像素值(如"100px")、百分比(如"50%")、自动计算(如"auto",即根据height与源图高的缩放比例计算,若未设置height则使用源图高度);
    +	默认值为"auto"。
    +	注意:若设置了width属性值不合法(如"0px"),则不对图片进行缩放操作。
    +						</p>
    +</li>
    +<li>height: <em>(<font class="type">String</font>
    +	类型
    +)</em>缩放图片的高度<br><p>
    +	支持像素值(如"100px")、百分比(如"50%")、自动计算(如"auto",即根据width与源图宽的缩放比例计算,若未设置width则使用源图高度);
    +	默认值为"auto"。
    +	注意:若设置了height属性值不合法(如"0px"),则不对图片进行缩放操作。
    +						</p>
    +</li>
    +<li>rotate: <em>(<font class="type">Number</font>
    +	类型
    +)</em>旋转图片的角度<br><p>
    +	支持值:90-表示旋转90度;180-表示旋转180度;270-表示旋转270度。
    +	注意:若设置rotate属性值不合法,则不对图片进行旋转操作。
    +						</p>
    +</li>
    +<li>clip: <em>(<a href="#plus.zip.ClipImageOptions">ClipImageOptions</a>
    +	类型
    +)</em>裁剪图片的区域<br><p>
    +	值参考ClipImageOptions定义,若设置clip属性值不合法,则不对图片进行裁剪操作。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.zip.ClipImageOptions">ClipImageOptions</a></h1>
    +<p>JSON对象,图片裁剪区域的参数</p>
    +<h2>属性:</h2>
    +<ul>
    +<li>top: <em>(<font class="type">String</font>
    +	类型
    +)</em>图片裁剪区域与原图片上边界的偏移距离<br><p>
    +	支持像素值(如"10px")、百分比(如"10%");默认值为"0px"。
    +	注意:如果top值超出原图片高度,则图片裁剪失败。
    +						</p>
    +</li>
    +<li>left: <em>(<font class="type">Stirng</font>
    +	类型
    +)</em>图片裁剪区域与原图片左边界的偏移距离<br><p>
    +	支持像素值(如"10px")、百分比(如"10%");默认值为"0px"。
    +	注意:如果left值超出原图片宽度,则图片裁剪失败。
    +						</p>
    +</li>
    +<li>width: <em>(<font class="type">String</font>
    +	类型
    +)</em>图片裁剪区域的宽度<br><p>
    +	支持像素值(如"100px")、百分比(如"50%")、自动计算(如"auto",即从left位置到图片右边界的宽度);默认值为"auto"。
    +	注意:如果left值加width值超出原图片宽度,则使用"auto"值进行裁剪。
    +						</p>
    +</li>
    +<li>height: <em>(<font class="type">String</font>
    +	类型
    +)</em>图片裁剪区域的高度<br><p>
    +	支持像素值(如"100px")、百分比(如"50%")、自动计算(如"auto",即从top位置到图片下边界的高度);默认值为"auto"。
    +	注意:如果top值加height值超出原图片高度,则使用"auto"值进行裁剪。
    +						</p>
    +</li>
    +</ul>
    +<h1><a name="plus.zip.CompressImageSuccessCallback">CompressImageSuccessCallback</a></h1>
    +<p>图片压缩转换操作成功回调接口</p>
    +<pre class="prettyprint linenums">
    +void onSuccess( Event event ){
    +	// Code here
    +	var target = event.target; // 压缩转换后的图片url路径,以"file://"开头
    +	var size = event.size; // 压缩转换后图片的大小,单位为字节(Byte)
    +	var width = event.width; // 压缩转换后图片的实际宽度,单位为px
    +	var height = event.height; // 压缩转换后图片的实际高度,单位为px
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>event: 
    +		<em>(
    +			<font class="type">Event</font>
    +			)
    +			可选 </em>图片压缩转换后的图片信息<br>
    +	可通过event.target(String类型)获取压缩转换后的图片url路径,以"file://"开头,可直接在html页面中通过src属性引用,如Android平台"file:///storage/sdcard0/Android/data/io.dcloud.HBuilder/.HBuilder/apps/HBuilder/doc/a.jpg",iOS平台"file:///var/mobile/Containers/Data/Application/757966CF-345C-4348-B07F-EEF83CF9A369/Library/Pandora/apps/HBuilder/doc/a.png";
    +	可通过event.size(Number类型)获取压缩转换后图片的大小,单位为字节(Byte);
    +	可通过event.width(Number类型)获取压缩转换后的图片的实际宽度,单位为px;
    +	可通过event.height(Number类型)获取压缩转换后的图片的实际高度,单位为px。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.zip.ZipSuccessCallback">ZipSuccessCallback</a></h1>
    +<p>操作成功回调函数接口,在解压Zip文件或压缩成Zip文件成功时调用</p>
    +<pre class="prettyprint linenums">
    +void onSuccess(){
    +	// Code here
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<p>无</p>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<h1><a name="plus.zip.ZipErrorCallback">ZipErrorCallback</a></h1>
    +<p>操作错误回调函数接口,在解压Zip文件或压缩成Zip文件失败时调用</p>
    +<pre class="prettyprint linenums">
    +void onError(error){
    +	// Handle the error
    +	var code = error.code; // 错误编码
    +	var message = error.message; // 错误描述信息
    +}
    +				</pre>
    +<h2>参数:</h2>
    +<ul><li>error: 
    +		<em>(
    +			<font class="type">Exception</font>
    +			)
    +			可选 </em>Zip操作的错误信息<br>
    +	可通过error.code(Number类型)获取错误编码;
    +	可通过error.message(String类型)获取错误描述信息。
    +						</li></ul>
    +<h2>返回值:</h2>
    +<font class="type">void</font>
    +			: 无<br><br>
    +</div></body>
    +</html>
    diff --git a/fangija-zsyf/error.html b/fangija-zsyf/error.html
    new file mode 100644
    index 0000000..99284f4
    --- /dev/null
    +++ b/fangija-zsyf/error.html
    @@ -0,0 +1,46 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title></title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="css/sm.css">
    +<link rel="stylesheet" href="css/main.css">
    +<link rel="stylesheet" href="css/theme-orange.css">
    +
    +<style>
    +	.contentError img{width:20%;margin-bottom:1.5rem;}
    +	.contentError em{font-size:1rem;color:#8890a4;margin-bottom:0.5rem;}
    +	.contentError p{color:#bac0ce;}
    +	.contentError a{width:50%;margin:0 auto;margin-top:2rem;text-decoration:none;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +		</header>
    +        <div class="content contentError">
    +        	<img src="img/errorInternet.png">
    +        	<em>网络加载异常</em>
    +        	<p>请返回重试或检查网络设置</p>
    +        	<div class="content-block">
    +				<p><a onclick="plus.runtime.restart()" class="button button-big button-round theme">返回重试</a></p>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +<script type="text/javascript" src="js/common.js" ></script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/fonts/demo.css b/fangija-zsyf/fonts/demo.css
    new file mode 100644
    index 0000000..3d9cbe7
    --- /dev/null
    +++ b/fangija-zsyf/fonts/demo.css
    @@ -0,0 +1,370 @@
    +*{margin: 0;padding: 0;list-style: none;}
    +/*
    +KISSY CSS Reset
    +理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
    +2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
    +3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
    +特色:1. 适应中文;2. 基于最新主流浏览器。
    +维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
    + */
    +
    +/** 清除内外边距 **/
    +body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
    +dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
    +pre, /* text formatting elements 文本格式元素 */
    +form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
    +th, td /* table elements 表格元素 */ {
    +  margin: 0;
    +  padding: 0;
    +}
    +
    +/** 设置默认字体 **/
    +body,
    +button, input, select, textarea /* for ie */ {
    +  font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
    +}
    +h1, h2, h3, h4, h5, h6 { font-size: 100%; }
    +address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
    +code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
    +small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
    +
    +/** 重置列表元素 **/
    +ul, ol { list-style: none; }
    +
    +/** 重置文本格式元素 **/
    +a { text-decoration: none; }
    +a:hover { text-decoration: underline; }
    +
    +
    +/** 重置表单元素 **/
    +legend { color: #000; } /* for ie6 */
    +fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
    +button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
    +/* 注:optgroup 无法扶正 */
    +
    +/** 重置表格元素 **/
    +table { border-collapse: collapse; border-spacing: 0; }
    +
    +/* 清除浮动 */
    +.ks-clear:after, .clear:after {
    +  content: '\20';
    +  display: block;
    +  height: 0;
    +  clear: both;
    +}
    +.ks-clear, .clear {
    +  *zoom: 1;
    +}
    +
    +.main {
    +  padding: 30px 100px;
    +width: 960px;
    +margin: 0 auto;
    +}
    +.main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
    +
    +.helps{margin-top:40px;}
    +.helps pre{
    +  padding:20px;
    +  margin:10px 0;
    +  border:solid 1px #e7e1cd;
    +  background-color: #fffdef;
    +  overflow: auto;
    +}
    +
    +.icon_lists{
    +  width: 100% !important;
    +
    +}
    +
    +.icon_lists li{
    +  float:left;
    +  width: 100px;
    +  height:180px;
    +  text-align: center;
    +  list-style: none !important;
    +}
    +.icon_lists .icon{
    +  font-size: 42px;
    +  line-height: 100px;
    +  margin: 10px 0;
    +  color:#333;
    +  -webkit-transition: font-size 0.25s ease-out 0s;
    +  -moz-transition: font-size 0.25s ease-out 0s;
    +  transition: font-size 0.25s ease-out 0s;
    +
    +}
    +.icon_lists .icon:hover{
    +  font-size: 100px;
    +}
    +
    +
    +
    +.markdown {
    +  color: #666;
    +  font-size: 14px;
    +  line-height: 1.8;
    +}
    +
    +.highlight {
    +  line-height: 1.5;
    +}
    +
    +.markdown img {
    +  vertical-align: middle;
    +  max-width: 100%;
    +}
    +
    +.markdown h1 {
    +  color: #404040;
    +  font-weight: 500;
    +  line-height: 40px;
    +  margin-bottom: 24px;
    +}
    +
    +.markdown h2,
    +.markdown h3,
    +.markdown h4,
    +.markdown h5,
    +.markdown h6 {
    +  color: #404040;
    +  margin: 1.6em 0 0.6em 0;
    +  font-weight: 500;
    +  clear: both;
    +}
    +
    +.markdown h1 {
    +  font-size: 28px;
    +}
    +
    +.markdown h2 {
    +  font-size: 22px;
    +}
    +
    +.markdown h3 {
    +  font-size: 16px;
    +}
    +
    +.markdown h4 {
    +  font-size: 14px;
    +}
    +
    +.markdown h5 {
    +  font-size: 12px;
    +}
    +
    +.markdown h6 {
    +  font-size: 12px;
    +}
    +
    +.markdown hr {
    +  height: 1px;
    +  border: 0;
    +  background: #e9e9e9;
    +  margin: 16px 0;
    +  clear: both;
    +}
    +
    +.markdown p,
    +.markdown pre {
    +  margin: 1em 0;
    +}
    +
    +.markdown > p,
    +.markdown > blockquote,
    +.markdown > .highlight,
    +.markdown > ol,
    +.markdown > ul {
    +  width: 80%;
    +}
    +
    +.markdown ul > li {
    +  list-style: circle;
    +}
    +
    +.markdown > ul li,
    +.markdown blockquote ul > li {
    +  margin-left: 20px;
    +  padding-left: 4px;
    +}
    +
    +.markdown > ul li p,
    +.markdown > ol li p {
    +  margin: 0.6em 0;
    +}
    +
    +.markdown ol > li {
    +  list-style: decimal;
    +}
    +
    +.markdown > ol li,
    +.markdown blockquote ol > li {
    +  margin-left: 20px;
    +  padding-left: 4px;
    +}
    +
    +.markdown code {
    +  margin: 0 3px;
    +  padding: 0 5px;
    +  background: #eee;
    +  border-radius: 3px;
    +}
    +
    +.markdown pre {
    +  border-radius: 6px;
    +  background: #f7f7f7;
    +  padding: 20px;
    +}
    +
    +.markdown pre code {
    +  border: none;
    +  background: #f7f7f7;
    +  margin: 0;
    +}
    +
    +.markdown strong,
    +.markdown b {
    +  font-weight: 600;
    +}
    +
    +.markdown > table {
    +  border-collapse: collapse;
    +  border-spacing: 0px;
    +  empty-cells: show;
    +  border: 1px solid #e9e9e9;
    +  width: 95%;
    +  margin-bottom: 24px;
    +}
    +
    +.markdown > table th {
    +  white-space: nowrap;
    +  color: #333;
    +  font-weight: 600;
    +
    +}
    +
    +.markdown > table th,
    +.markdown > table td {
    +  border: 1px solid #e9e9e9;
    +  padding: 8px 16px;
    +  text-align: left;
    +}
    +
    +.markdown > table th {
    +  background: #F7F7F7;
    +}
    +
    +.markdown blockquote {
    +  font-size: 90%;
    +  color: #999;
    +  border-left: 4px solid #e9e9e9;
    +  padding-left: 0.8em;
    +  margin: 1em 0;
    +  font-style: italic;
    +}
    +
    +.markdown blockquote p {
    +  margin: 0;
    +}
    +
    +.markdown .anchor {
    +  opacity: 0;
    +  transition: opacity 0.3s ease;
    +  margin-left: 8px;
    +}
    +
    +.markdown .waiting {
    +  color: #ccc;
    +}
    +
    +.markdown h1:hover .anchor,
    +.markdown h2:hover .anchor,
    +.markdown h3:hover .anchor,
    +.markdown h4:hover .anchor,
    +.markdown h5:hover .anchor,
    +.markdown h6:hover .anchor {
    +  opacity: 1;
    +  display: inline-block;
    +}
    +
    +.markdown > br,
    +.markdown > p > br {
    +  clear: both;
    +}
    +
    +
    +.hljs {
    +  display: block;
    +  background: white;
    +  padding: 0.5em;
    +  color: #333333;
    +  overflow-x: auto;
    +}
    +
    +.hljs-comment,
    +.hljs-meta {
    +  color: #969896;
    +}
    +
    +.hljs-string,
    +.hljs-variable,
    +.hljs-template-variable,
    +.hljs-strong,
    +.hljs-emphasis,
    +.hljs-quote {
    +  color: #df5000;
    +}
    +
    +.hljs-keyword,
    +.hljs-selector-tag,
    +.hljs-type {
    +  color: #a71d5d;
    +}
    +
    +.hljs-literal,
    +.hljs-symbol,
    +.hljs-bullet,
    +.hljs-attribute {
    +  color: #0086b3;
    +}
    +
    +.hljs-section,
    +.hljs-name {
    +  color: #63a35c;
    +}
    +
    +.hljs-tag {
    +  color: #333333;
    +}
    +
    +.hljs-title,
    +.hljs-attr,
    +.hljs-selector-id,
    +.hljs-selector-class,
    +.hljs-selector-attr,
    +.hljs-selector-pseudo {
    +  color: #795da3;
    +}
    +
    +.hljs-addition {
    +  color: #55a532;
    +  background-color: #eaffea;
    +}
    +
    +.hljs-deletion {
    +  color: #bd2c00;
    +  background-color: #ffecec;
    +}
    +
    +.hljs-link {
    +  text-decoration: underline;
    +}
    +
    +pre{
    +  background: #fff;
    +}
    +
    +
    +
    +
    +
    diff --git a/fangija-zsyf/fonts/demo_fontclass.html b/fangija-zsyf/fonts/demo_fontclass.html
    new file mode 100644
    index 0000000..b4b1c8b
    --- /dev/null
    +++ b/fangija-zsyf/fonts/demo_fontclass.html
    @@ -0,0 +1,64 @@
    +
    +<!DOCTYPE html>
    +<html>
    +<head>
    +    <meta charset="utf-8"/>
    +    <title>IconFont</title>
    +    <link rel="stylesheet" href="demo.css">
    +    <link rel="stylesheet" href="iconfont.css">
    +</head>
    +<body>
    +    <div class="main markdown">
    +        <h1>IconFont 图标</h1>
    +        <ul class="icon_lists clear">
    +            
    +                <li>
    +                <i class="icon iconfont icon-tab04"></i>
    +                    <div class="name">icon_tab_user</div>
    +                    <div class="fontclass">.icon-tab04</div>
    +                </li>
    +            
    +                <li>
    +                <i class="icon iconfont icon-tab03"></i>
    +                    <div class="name">icon_tab_assessment</div>
    +                    <div class="fontclass">.icon-tab03</div>
    +                </li>
    +            
    +                <li>
    +                <i class="icon iconfont icon-tab01"></i>
    +                    <div class="name">icon_tab_menu</div>
    +                    <div class="fontclass">.icon-tab01</div>
    +                </li>
    +            
    +                <li>
    +                <i class="icon iconfont icon-tab02"></i>
    +                    <div class="name">icon_tab_market</div>
    +                    <div class="fontclass">.icon-tab02</div>
    +                </li>
    +            
    +        </ul>
    +
    +        <h2 id="font-class-">font-class引用</h2>
    +        <hr>
    +
    +        <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
    +        <p>与unicode使用方式相比,具有如下特点:</p>
    +        <ul>
    +        <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
    +        <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
    +        <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
    +        <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
    +        </ul>
    +        <p>使用步骤如下:</p>
    +        <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
    +
    +
    +        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
    +        <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
    +        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
    +        <blockquote>
    +        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
    +        </blockquote>
    +    </div>
    +</body>
    +</html>
    diff --git a/fangija-zsyf/fonts/demo_symbol.html b/fangija-zsyf/fonts/demo_symbol.html
    new file mode 100644
    index 0000000..cc4df31
    --- /dev/null
    +++ b/fangija-zsyf/fonts/demo_symbol.html
    @@ -0,0 +1,95 @@
    +
    +<!DOCTYPE html>
    +<html>
    +<head>
    +    <meta charset="utf-8"/>
    +    <title>IconFont</title>
    +    <link rel="stylesheet" href="demo.css">
    +    <script src="iconfont.js"></script>
    +
    +    <style type="text/css">
    +        .icon {
    +          /* 通过设置 font-size 来改变图标大小 */
    +          width: 1em; height: 1em;
    +          /* 图标和文字相邻时,垂直对齐 */
    +          vertical-align: -0.15em;
    +          /* 通过设置 color 来改变 SVG 的颜色/fill */
    +          fill: currentColor;
    +          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
    +             normalize.css 中也包含这行 */
    +          overflow: hidden;
    +        }
    +
    +    </style>
    +</head>
    +<body>
    +    <div class="main markdown">
    +        <h1>IconFont 图标</h1>
    +        <ul class="icon_lists clear">
    +            
    +                <li>
    +                    <svg class="icon" aria-hidden="true">
    +                        <use xlink:href="#icon-tab04"></use>
    +                    </svg>
    +                    <div class="name">icon_tab_user</div>
    +                    <div class="fontclass">#icon-tab04</div>
    +                </li>
    +            
    +                <li>
    +                    <svg class="icon" aria-hidden="true">
    +                        <use xlink:href="#icon-tab03"></use>
    +                    </svg>
    +                    <div class="name">icon_tab_assessment</div>
    +                    <div class="fontclass">#icon-tab03</div>
    +                </li>
    +            
    +                <li>
    +                    <svg class="icon" aria-hidden="true">
    +                        <use xlink:href="#icon-tab01"></use>
    +                    </svg>
    +                    <div class="name">icon_tab_menu</div>
    +                    <div class="fontclass">#icon-tab01</div>
    +                </li>
    +            
    +                <li>
    +                    <svg class="icon" aria-hidden="true">
    +                        <use xlink:href="#icon-tab02"></use>
    +                    </svg>
    +                    <div class="name">icon_tab_market</div>
    +                    <div class="fontclass">#icon-tab02</div>
    +                </li>
    +            
    +        </ul>
    +
    +
    +        <h2 id="symbol-">symbol引用</h2>
    +        <hr>
    +
    +        <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
    +        这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:</p>
    +        <ul>
    +          <li>支持多色图标了,不再受单色限制。</li>
    +          <li>通过一些技巧,支持像字体那样,通过<code>font-size</code>,<code>color</code>来调整样式。</li>
    +          <li>兼容性较差,支持 ie9+,及现代浏览器。</li>
    +          <li>浏览器渲染svg的性能一般,还不如png。</li>
    +        </ul>
    +        <p>使用步骤如下:</p>
    +        <h3 id="-symbol-">第一步:引入项目下面生成的symbol代码:</h3>
    +        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
    +        <h3 id="-css-">第二步:加入通用css代码(引入一次就行):</h3>
    +        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
    +.icon {
    +   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
    +   vertical-align: <span class="hljs-number">-0.15</span>em;
    +   fill: currentColor;
    +   overflow: hidden;
    +}
    +&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
    +        <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
    +        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
    +  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
    +</span>&lt;<span class="hljs-regexp">/svg&gt;
    +        </span></code></pre>
    +    </div>
    +</body>
    +</html>
    diff --git a/fangija-zsyf/fonts/demo_unicode.html b/fangija-zsyf/fonts/demo_unicode.html
    new file mode 100644
    index 0000000..e6653e9
    --- /dev/null
    +++ b/fangija-zsyf/fonts/demo_unicode.html
    @@ -0,0 +1,102 @@
    +
    +<!DOCTYPE html>
    +<html>
    +<head>
    +    <meta charset="utf-8"/>
    +    <title>IconFont</title>
    +    <link rel="stylesheet" href="demo.css">
    +
    +    <style type="text/css">
    +
    +        @font-face {font-family: "iconfont";
    +          src: url('iconfont.eot'); /* IE9*/
    +          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
    +          url('iconfont.woff') format('woff'), /* chrome, firefox */
    +          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
    +          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
    +        }
    +
    +        .iconfont {
    +          font-family:"iconfont" !important;
    +          font-size:16px;
    +          font-style:normal;
    +          -webkit-font-smoothing: antialiased;
    +          -webkit-text-stroke-width: 0.2px;
    +          -moz-osx-font-smoothing: grayscale;
    +        }
    +
    +    </style>
    +</head>
    +<body>
    +    <div class="main markdown">
    +        <h1>IconFont 图标</h1>
    +        <ul class="icon_lists clear">
    +            
    +                <li>
    +                <i class="icon iconfont">&#xe604;</i>
    +                    <div class="name">icon_tab_user</div>
    +                    <div class="code">&amp;#xe604;</div>
    +                </li>
    +            
    +                <li>
    +                <i class="icon iconfont">&#xe605;</i>
    +                    <div class="name">icon_tab_assessment</div>
    +                    <div class="code">&amp;#xe605;</div>
    +                </li>
    +            
    +                <li>
    +                <i class="icon iconfont">&#xe606;</i>
    +                    <div class="name">icon_tab_menu</div>
    +                    <div class="code">&amp;#xe606;</div>
    +                </li>
    +            
    +                <li>
    +                <i class="icon iconfont">&#xe607;</i>
    +                    <div class="name">icon_tab_market</div>
    +                    <div class="code">&amp;#xe607;</div>
    +                </li>
    +            
    +        </ul>
    +        <h2 id="unicode-">unicode引用</h2>
    +        <hr>
    +
    +        <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
    +        <ul>
    +        <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
    +        <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
    +        <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
    +        </ul>
    +        <blockquote>
    +        <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
    +        </blockquote>
    +        <p>unicode使用步骤如下:</p>
    +        <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
    +        <pre><code class="lang-js hljs javascript">@font-face {
    +  font-family: <span class="hljs-string">'iconfont'</span>;
    +  src: url(<span class="hljs-string">'iconfont.eot'</span>);
    +  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
    +  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
    +  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
    +  url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
    +}
    +</code></pre>
    +        <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
    +        <pre><code class="lang-js hljs javascript">.iconfont{
    +  font-family:<span class="hljs-string">"iconfont"</span> !important;
    +  font-size:<span class="hljs-number">16</span>px;font-style:normal;
    +  -webkit-font-smoothing: antialiased;
    +  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
    +  -moz-osx-font-smoothing: grayscale;
    +}
    +</code></pre>
    +        <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
    +        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>
    +
    +        <blockquote>
    +        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
    +        </blockquote>
    +    </div>
    +
    +
    +</body>
    +</html>
    diff --git a/fangija-zsyf/fonts/font_1433401008_2229297.woff b/fangija-zsyf/fonts/font_1433401008_2229297.woff
    new file mode 100644
    index 0000000..32aa26e
    Binary files /dev/null and b/fangija-zsyf/fonts/font_1433401008_2229297.woff differ
    diff --git a/fangija-zsyf/fonts/iconfont.css b/fangija-zsyf/fonts/iconfont.css
    new file mode 100644
    index 0000000..1060f13
    --- /dev/null
    +++ b/fangija-zsyf/fonts/iconfont.css
    @@ -0,0 +1,25 @@
    +
    +@font-face {font-family: "iconfont";
    +  src: url('iconfont.eot?t=1520926545516'); /* IE9*/
    +  src: url('iconfont.eot?t=1520926545516#iefix') format('embedded-opentype'), /* IE6-IE8 */
    +  url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAdEAAsAAAAACjgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQwAAAFZW7kf+Y21hcAAAAYAAAAByAAABsM5HNkRnbHlmAAAB9AAAAz4AAAPQdtDgKmhlYWQAAAU0AAAALwAAADYQvISeaGhlYQAABWQAAAAeAAAAJAfgA7pobXR4AAAFhAAAABYAAAAYGBwAAGxvY2EAAAWcAAAADgAAAA4DiAIobWF4cAAABawAAAAfAAAAIAEVAGBuYW1lAAAFzAAAAUUAAAJtPlT+fXBvc3QAAAcUAAAAMAAAAEuNTxU5eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWWcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGBwYKp6xMzf8b2CIYW5gaAAKM4LkANVdC4EAeJzFkcsNxDAIRB8JdqTVlpLT1rE17GmLcMW0kQw4l1QQpGc0Y/wRAA1YxS4c7I+R8ZNr5a+8ync+0l3ZWBixHYf0CK+sEu31yovOeN5sncfCnnv6Hu9av5fKfo8LfTF8op4RbZLziD7JmcQ2oZ3gERGBAAB4nDWSz4scRRTH61X1j5np7urp3z9mu2d6encqmx17yfzoDqzOJFkPyUZBSC57NIfA5Ie5rKywHpZAxGFzUCIsHv2BES8akRVMRPAmXvQi5KSSnPwbnNbqQZvu9/q9Kuq976ceEhH650/yhPjIQqfQGfQyeg0hkDagS3EECRtleAOcRHQ8mxKWskROuxl5CbyuZLuDfNTzJFnSgUIMw2SQswwzGI8meAsGbgQQtMIr5tqKSd6Dhs/ie+UO/hicdrqiT14oL/Wn9qBj1fZV0wxM835NEsUaxoJO4bbn1sV6Qyo/FfXQedJex21QAxa+sqt1Wubr747eiNa8OsDhIVitDn04NUKDv2+HrmUGclOr+aGWrtqw/1zxLTXqPUP8wVzrB+QTMkMKanGVFOQYvAkUGZCUB04MxdDNi3EGGGZHhBzNZkcYH8Hje48E4at3Ht/9RiBfkxl5cOfOA7K0i+fCydzajgiJtq35CUKE1zgmn/MaLTREV3iVDIoJsAy6kmy7nivJFHihQV6MelaSATN4A0M5NRIjZUPej0GBd1Yh5ag5WsmtwG7yczb4V3mGL9gN3Q8BtnZfhMDXG/bOJXjzpz2889vifMwAWHyZZvijTe3yMipf1SxBFWyVca8TqsCxQon+X0IVLA1AWqfBubSYTot0GtJ1qXm+ver7q51z5WfAIvxHxODqYoJ/vMqjRSdi5FfQ1UjVud1VDEPZXf5WiSXnY/IXZ7CKRpwAgwxLMhfkcXnDgesYHEQygTGXvlWRyHt8sVI3NkZ5UUEgv9wun1F2munloScIxHbONjQ+izQbAa2ftR0i4fJLiL3vvXhpAH6+BabeBEMv74ZrUqMJer38rn8R44t92FaoqUhpeeB3oONBM2gDJN7/M/GhgMlNfl9ThMSk26uaaPN5nsIEKl9A7nqGLQGf9N4myJKc9qprqFYL3rzLHevlU75NJk//PjDdwDjQYuW+EtN9yhrQb4/BL983W1qrPp8bK3XfessR0ty9MOe5FWX+6EzQ6JRp07ruN0FIAv2aaqhf6E7jhmYpcCvVTi8eNn34wRFxrb73rSsAvWblfdEsTlwBy/W93095TC7kVvQvXPug3QAAeJxjYGRgYADiQ24bneP5bb4ycLMwgMC1swsCEfT/KSxMzNlALgcDE0gUADpWCuYAeJxjYGRgYG7438AQw2LMAAQsTAyMDKiADQBMLQKkAAB4nGNhYGBgfsnAwMKAhI0ZGAATOAE0AAAAAAAAAHYAqAEqAYAB6AAAeJxjYGRgYGBjCGFgZQABJiDmAkIGhv9gPgMAEZMBdgB4nGWPTU7DMBCFX/oHpBKqqGCH5AViASj9EatuWFRq911036ZOmyqJI8et1ANwHo7ACTgC3IA78EgnmzaWx9+8eWNPANzgBx6O3y33kT1cMjtyDRe4F65TfxBukF+Em2jjVbhF/U3YxzOmwm10YXmD17hi9oR3YQ8dfAjXcI1P4Tr1L+EG+Vu4iTv8CrfQ8erCPuZeV7iNRy/2x1YvnF6p5UHFockikzm/gple75KFrdLqnGtbxCZTg6BfSVOdaVvdU+zXQ+ciFVmTqgmrOkmMyq3Z6tAFG+fyUa8XiR6EJuVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxjYGKAAC4G7ICNkYmRmZGFkZWRjZGdgbGCtSQxycAETBqDSUMwacTAAABzaQcn') format('woff'),
    +  url('iconfont.ttf?t=1520926545516') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
    +  url('iconfont.svg?t=1520926545516#iconfont') format('svg'); /* iOS 4.1- */
    +}
    +
    +.iconfont {
    +  font-family:"iconfont" !important;
    +  font-size:16px;
    +  font-style:normal;
    +  -webkit-font-smoothing: antialiased;
    +  -moz-osx-font-smoothing: grayscale;
    +}
    +
    +.icon-tab04:before { content: "\e604"; }
    +
    +.icon-tab03:before { content: "\e605"; }
    +
    +.icon-tab01:before { content: "\e606"; }
    +
    +.icon-tab02:before { content: "\e607"; }
    +
    diff --git a/fangija-zsyf/fonts/iconfont.eot b/fangija-zsyf/fonts/iconfont.eot
    new file mode 100644
    index 0000000..5e868a3
    Binary files /dev/null and b/fangija-zsyf/fonts/iconfont.eot differ
    diff --git a/fangija-zsyf/fonts/iconfont.js b/fangija-zsyf/fonts/iconfont.js
    new file mode 100644
    index 0000000..68ba76a
    --- /dev/null
    +++ b/fangija-zsyf/fonts/iconfont.js
    @@ -0,0 +1 @@
    +(function(window){var svgSprite='<svg><symbol id="icon-tab04" viewBox="0 0 1024 1024"><path d="M512.930909 23.272727C377.018182 23.272727 266.426182 140.241455 266.426182 283.927273c0 143.685818 110.592 260.654545 246.504727 260.654545 135.912727 0 246.504727-116.922182 246.504727-260.654545 0-143.732364-110.592-260.654545-246.504727-260.654546m103.889455 543.045818H430.405818C257.256727 566.318545 116.363636 710.888727 116.363636 888.645818v19.130182C116.363636 1000.727273 254.976 1000.727273 430.405818 1000.727273h186.414546c168.541091 0 314.088727 0 314.088727-92.951273v-19.083636c0-177.803636-140.893091-322.373818-314.088727-322.373819" fill="#CAC6BF" ></path></symbol><symbol id="icon-tab03" viewBox="0 0 1024 1024"><path d="M578.466909 639.069091a36.305455 36.305455 0 0 1-25.786182-26.158546 35.84 35.84 0 0 1 10.565818-35.048727 175.802182 175.802182 0 0 0 49.198546-123.485091c0-73.681455-47.010909-118.690909-105.099636-118.690909-58.042182 0-105.099636 45.009455-105.099637 118.690909a176.407273 176.407273 0 0 0 48.919273 123.205818 36.119273 36.119273 0 0 1-15.406546 61.533091c-97.745455 18.664727-146.757818 72.005818-146.757818 111.802182 0 49.245091 85.643636 59.392 218.344728 59.392 132.654545 0 218.344727-10.146909 218.344727-59.392 0-39.936-49.291636-93.277091-147.223273-111.802182z m287.790546 361.658182H162.722909A69.352727 69.352727 0 0 1 93.090909 931.933091V195.956364a69.352727 69.352727 0 0 1 69.632-68.794182h75.403636L223.604364 211.316364h-45.381819v705.210181h672.581819V211.362909h-46.871273l-13.032727-84.247273h75.357091a69.352727 69.352727 0 0 1 69.585454 68.840728v735.976727a69.352727 69.352727 0 0 1-69.585454 68.794182zM460.753455 23.272727a39.005091 39.005091 0 0 0-36.072728 27.741091l-12.101818 28.858182a39.098182 39.098182 0 0 1-36.026182 27.741091h-38.306909a39.098182 39.098182 0 0 0-36.072727 27.834182L287.185455 223.930182a21.085091 21.085091 0 0 0 3.537454 19.642182c4.421818 5.585455 11.310545 8.564364 18.432 8.098909h406.388364a21.736727 21.736727 0 0 0 18.432-8.098909 21.131636 21.131636 0 0 0 3.584-19.642182l-14.941091-88.436364a39.098182 39.098182 0 0 0-36.072727-27.927273h-38.353455a39.098182 39.098182 0 0 1-36.072727-27.694545l-12.101818-28.858182A39.098182 39.098182 0 0 0 564.084364 23.272727h-103.330909z" fill="#CAC6BF" ></path></symbol><symbol id="icon-tab01" viewBox="0 0 1024 1024"><path d="M976.197818 437.294545L866.676364 329.495273l-284.253091-274.385455A105.146182 105.146182 0 0 0 507.857455 23.272727c-27.927273 0-55.901091 12.241455-74.565819 31.837091l-384.465454 382.138182c-32.581818 34.350545-25.6 61.300364-23.272727 68.608 4.654545 12.288 16.290909 26.996364 44.218181 26.996364h55.947637c13.963636 0 23.272727 12.241455 23.272727 24.482909v325.818182c0 56.32 37.329455 117.573818 97.885091 117.573818h526.615273c60.602182 0 97.885091-61.253818 97.885091-117.573818v-323.397819c0-14.661818 11.636364-24.482909 23.272727-24.482909h55.947636c27.927273 0 39.563636-14.708364 44.218182-29.416727 7.028364-7.307636 14.010182-31.837091-18.618182-68.561455z m-314.554182 416.442182c0 31.837091-23.272727 56.32-53.573818 56.32H419.328c-30.254545 0-53.573818-26.903273-53.573818-56.32V581.818182c0-31.837091 23.272727-56.32 53.527273-56.32h188.788363c30.254545 0 53.573818 26.903273 53.573818 56.32v271.918545z" fill="#CAC6BF" ></path></symbol><symbol id="icon-tab02" viewBox="0 0 1075 1024"><path d="M985.4464 998.4H83.6096c-22.8352 0-39.936-20.224-39.936-40.448V697.856c0-43.3152 19.968-63.5392 42.8032-43.3152l122.7264 98.2016c17.1008 14.4384 39.936 34.6624 54.2208 17.3568l139.8272-170.496c14.336-17.3056 37.12-40.448 54.272-25.9584l119.808 106.8544c17.152 14.4896 51.4048 37.5808 62.8224 20.224l299.6736-364.032c39.936-46.2336 85.6064-34.6624 85.6064 20.224V957.952c0 20.224-19.968 40.448-39.936 40.448z m-351.0272-447.8464a73.984 73.984 0 0 1-45.6704 26.0096c-17.1008 2.8672-37.0688-2.8672-48.4864-14.4384L403.2512 446.464l-136.96 182.0672a67.072 67.072 0 0 1-45.6704 26.0096h-8.5504a76.288 76.288 0 0 1-42.8032-14.4896L49.408 541.9008C20.8384 518.7584 17.92 475.4432 40.8064 446.464c22.8352-28.8768 65.6384-31.744 94.208-8.6528l65.6384 54.8864L337.6128 310.784c11.4176-14.4384 28.5696-23.0912 45.6704-26.0096 17.152-2.8672 37.12 2.9184 51.3536 14.4384l137.0112 115.6096 176.9472-222.464-48.5376-40.448c-34.2528-28.928-25.6512-60.7232 17.152-69.376L971.1616 27.648c45.7216-8.704 57.1392 11.5712 31.4368 49.152l-368.128 473.8048z" fill="#CAC6BF" ></path></symbol></svg>';var script=function(){var scripts=document.getElementsByTagName("script");return scripts[scripts.length-1]}();var shouldInjectCss=script.getAttribute("data-injectcss");var ready=function(fn){if(document.addEventListener){if(~["complete","loaded","interactive"].indexOf(document.readyState)){setTimeout(fn,0)}else{var loadFn=function(){document.removeEventListener("DOMContentLoaded",loadFn,false);fn()};document.addEventListener("DOMContentLoaded",loadFn,false)}}else if(document.attachEvent){IEContentLoaded(window,fn)}function IEContentLoaded(w,fn){var d=w.document,done=false,init=function(){if(!done){done=true;fn()}};var polling=function(){try{d.documentElement.doScroll("left")}catch(e){setTimeout(polling,50);return}init()};polling();d.onreadystatechange=function(){if(d.readyState=="complete"){d.onreadystatechange=null;init()}}}};var before=function(el,target){target.parentNode.insertBefore(el,target)};var prepend=function(el,target){if(target.firstChild){before(el,target.firstChild)}else{target.appendChild(el)}};function appendSvg(){var div,svg;div=document.createElement("div");div.innerHTML=svgSprite;svgSprite=null;svg=div.getElementsByTagName("svg")[0];if(svg){svg.setAttribute("aria-hidden","true");svg.style.position="absolute";svg.style.width=0;svg.style.height=0;svg.style.overflow="hidden";prepend(svg,document.body)}}if(shouldInjectCss&&!window.__iconfont__svg__cssinject__){window.__iconfont__svg__cssinject__=true;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}ready(appendSvg)})(window)
    \ No newline at end of file
    diff --git a/fangija-zsyf/fonts/iconfont.svg b/fangija-zsyf/fonts/iconfont.svg
    new file mode 100644
    index 0000000..ee335c3
    --- /dev/null
    +++ b/fangija-zsyf/fonts/iconfont.svg
    @@ -0,0 +1,45 @@
    +<?xml version="1.0" standalone="no"?>
    +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
    +<!--
    +2013-9-30: Created.
    +-->
    +<svg>
    +<metadata>
    +Created by iconfont
    +</metadata>
    +<defs>
    +
    +<font id="iconfont" horiz-adv-x="1024" >
    +  <font-face
    +    font-family="iconfont"
    +    font-weight="500"
    +    font-stretch="normal"
    +    units-per-em="1024"
    +    ascent="896"
    +    descent="-128"
    +  />
    +    <missing-glyph />
    +    
    +    <glyph glyph-name="x" unicode="x" horiz-adv-x="1001"
    +d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5
    +t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5
    +t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" />
    +    
    +
    +    
    +    <glyph glyph-name="tab04" unicode="&#58884;" d="M512.930909 872.727273C377.018182 872.727273 266.426182 755.758545 266.426182 612.072727c0-143.685818 110.592-260.654545 246.504727-260.654545 135.912727 0 246.504727 116.922182 246.504727 260.654545 0 143.732364-110.592 260.654545-246.504727 260.654546m103.889455-543.045818H430.405818C257.256727 329.681455 116.363636 185.11127299999998 116.363636 7.354182000000037v-19.130182C116.363636-104.72727299999997 254.976-104.72727299999997 430.405818-104.72727299999997h186.414546c168.541091 0 314.088727 0 314.088727 92.951273v19.083636c0 177.803636-140.893091 322.373818-314.088727 322.373819"  horiz-adv-x="1024" />
    +
    +    
    +    <glyph glyph-name="tab03" unicode="&#58885;" d="M578.466909 256.93090900000004a36.305455 36.305455 0 0 0-25.786182 26.158546 35.84 35.84 0 0 0 10.565818 35.048727 175.802182 175.802182 0 0 1 49.198546 123.485091c0 73.681455-47.010909 118.690909-105.099636 118.690909-58.042182 0-105.099636-45.009455-105.099637-118.690909a176.407273 176.407273 0 0 1 48.919273-123.205818 36.119273 36.119273 0 0 0-15.406546-61.533091c-97.745455-18.664727-146.757818-72.005818-146.757818-111.802182 0-49.245091 85.643636-59.392 218.344728-59.392 132.654545 0 218.344727 10.146909 218.344727 59.392 0 39.936-49.291636 93.277091-147.223273 111.802182z m287.790546-361.658182H162.722909A69.352727 69.352727 0 0 0 93.090909-35.93309099999999V700.043636a69.352727 69.352727 0 0 0 69.632 68.794182h75.403636L223.604364 684.683636h-45.381819v-705.210181h672.581819V684.637091h-46.871273l-13.032727 84.247273h75.357091a69.352727 69.352727 0 0 0 69.585454-68.840728v-735.976727a69.352727 69.352727 0 0 0-69.585454-68.794182zM460.753455 872.727273a39.005091 39.005091 0 0 1-36.072728-27.741091l-12.101818-28.858182a39.098182 39.098182 0 0 0-36.026182-27.741091h-38.306909a39.098182 39.098182 0 0 1-36.072727-27.834182L287.185455 672.0698179999999a21.085091 21.085091 0 0 1 3.537454-19.642182c4.421818-5.585455 11.310545-8.564364 18.432-8.098909h406.388364a21.736727 21.736727 0 0 1 18.432 8.098909 21.131636 21.131636 0 0 1 3.584 19.642182l-14.941091 88.436364a39.098182 39.098182 0 0 1-36.072727 27.927273h-38.353455a39.098182 39.098182 0 0 0-36.072727 27.694545l-12.101818 28.858182A39.098182 39.098182 0 0 1 564.084364 872.727273h-103.330909z"  horiz-adv-x="1024" />
    +
    +    
    +    <glyph glyph-name="tab01" unicode="&#58886;" d="M976.197818 458.705455L866.676364 566.504727l-284.253091 274.385455A105.146182 105.146182 0 0 1 507.857455 872.727273c-27.927273 0-55.901091-12.241455-74.565819-31.837091l-384.465454-382.138182c-32.581818-34.350545-25.6-61.300364-23.272727-68.608 4.654545-12.288 16.290909-26.996364 44.218181-26.996364h55.947637c13.963636 0 23.272727-12.241455 23.272727-24.482909v-325.818182c0-56.32 37.329455-117.573818 97.885091-117.573818h526.615273c60.602182 0 97.885091 61.253818 97.885091 117.573818v323.397819c0 14.661818 11.636364 24.482909 23.272727 24.482909h55.947636c27.927273 0 39.563636 14.708364 44.218182 29.416727 7.028364 7.307636 14.010182 31.837091-18.618182 68.561455z m-314.554182-416.442182c0-31.837091-23.272727-56.32-53.573818-56.32H419.328c-30.254545 0-53.573818 26.903273-53.573818 56.32V314.181818c0 31.837091 23.272727 56.32 53.527273 56.32h188.788363c30.254545 0 53.573818-26.903273 53.573818-56.32v-271.918545z"  horiz-adv-x="1024" />
    +
    +    
    +    <glyph glyph-name="tab02" unicode="&#58887;" d="M985.4464-102.39999999999998H83.6096c-22.8352 0-39.936 20.224-39.936 40.448V198.144c0 43.3152 19.968 63.5392 42.8032 43.3152l122.7264-98.2016c17.1008-14.4384 39.936-34.6624 54.2208-17.3568l139.8272 170.496c14.336 17.3056 37.12 40.448 54.272 25.9584l119.808-106.8544c17.152-14.4896 51.4048-37.5808 62.8224-20.224l299.6736 364.032c39.936 46.2336 85.6064 34.6624 85.6064-20.224V-61.952c0-20.224-19.968-40.448-39.936-40.448z m-351.0272 447.8464a73.984 73.984 0 0 0-45.6704-26.0096c-17.1008-2.8672-37.0688 2.8672-48.4864 14.4384L403.2512 449.536l-136.96-182.0672a67.072 67.072 0 0 0-45.6704-26.0096h-8.5504a76.288 76.288 0 0 0-42.8032 14.4896L49.408 354.0992C20.8384 377.24159999999995 17.92 420.5568 40.8064 449.536c22.8352 28.8768 65.6384 31.744 94.208 8.6528l65.6384-54.8864L337.6128 585.216c11.4176 14.4384 28.5696 23.0912 45.6704 26.0096 17.152 2.8672 37.12-2.9184 51.3536-14.4384l137.0112-115.6096 176.9472 222.464-48.5376 40.448c-34.2528 28.928-25.6512 60.7232 17.152 69.376L971.1616 868.352c45.7216 8.704 57.1392-11.5712 31.4368-49.152l-368.128-473.8048z"  horiz-adv-x="1075" />
    +
    +    
    +
    +
    +  </font>
    +</defs></svg>
    diff --git a/fangija-zsyf/fonts/iconfont.ttf b/fangija-zsyf/fonts/iconfont.ttf
    new file mode 100644
    index 0000000..bf4ac03
    Binary files /dev/null and b/fangija-zsyf/fonts/iconfont.ttf differ
    diff --git a/fangija-zsyf/fonts/iconfont.woff b/fangija-zsyf/fonts/iconfont.woff
    new file mode 100644
    index 0000000..0fcd992
    Binary files /dev/null and b/fangija-zsyf/fonts/iconfont.woff differ
    diff --git a/fangija-zsyf/fonts/mui.ttf b/fangija-zsyf/fonts/mui.ttf
    new file mode 100644
    index 0000000..eced387
    Binary files /dev/null and b/fangija-zsyf/fonts/mui.ttf differ
    diff --git a/fangija-zsyf/icon.png b/fangija-zsyf/icon.png
    new file mode 100644
    index 0000000..fad0f0e
    Binary files /dev/null and b/fangija-zsyf/icon.png differ
    diff --git a/fangija-zsyf/images/adImg.png b/fangija-zsyf/images/adImg.png
    new file mode 100644
    index 0000000..857312a
    Binary files /dev/null and b/fangija-zsyf/images/adImg.png differ
    diff --git a/fangija-zsyf/images/addHouse.png b/fangija-zsyf/images/addHouse.png
    new file mode 100644
    index 0000000..ffb1e30
    Binary files /dev/null and b/fangija-zsyf/images/addHouse.png differ
    diff --git a/fangija-zsyf/images/addProperty.png b/fangija-zsyf/images/addProperty.png
    new file mode 100644
    index 0000000..6403623
    Binary files /dev/null and b/fangija-zsyf/images/addProperty.png differ
    diff --git a/fangija-zsyf/images/addProperty_active.png b/fangija-zsyf/images/addProperty_active.png
    new file mode 100644
    index 0000000..d4ebbdd
    Binary files /dev/null and b/fangija-zsyf/images/addProperty_active.png differ
    diff --git a/fangija-zsyf/images/arrow_note_down.png b/fangija-zsyf/images/arrow_note_down.png
    new file mode 100644
    index 0000000..4e72118
    Binary files /dev/null and b/fangija-zsyf/images/arrow_note_down.png differ
    diff --git a/fangija-zsyf/images/arrow_select.png b/fangija-zsyf/images/arrow_select.png
    new file mode 100644
    index 0000000..7072a5b
    Binary files /dev/null and b/fangija-zsyf/images/arrow_select.png differ
    diff --git a/fangija-zsyf/images/banner.png b/fangija-zsyf/images/banner.png
    new file mode 100644
    index 0000000..ffdb36d
    Binary files /dev/null and b/fangija-zsyf/images/banner.png differ
    diff --git a/fangija-zsyf/images/banner01.png b/fangija-zsyf/images/banner01.png
    new file mode 100644
    index 0000000..fee3866
    Binary files /dev/null and b/fangija-zsyf/images/banner01.png differ
    diff --git a/fangija-zsyf/images/bottomBg.png b/fangija-zsyf/images/bottomBg.png
    new file mode 100644
    index 0000000..b671c29
    Binary files /dev/null and b/fangija-zsyf/images/bottomBg.png differ
    diff --git a/fangija-zsyf/images/bottomBg01.png b/fangija-zsyf/images/bottomBg01.png
    new file mode 100644
    index 0000000..64f14ee
    Binary files /dev/null and b/fangija-zsyf/images/bottomBg01.png differ
    diff --git a/fangija-zsyf/images/cardBg.png b/fangija-zsyf/images/cardBg.png
    new file mode 100644
    index 0000000..7df9e22
    Binary files /dev/null and b/fangija-zsyf/images/cardBg.png differ
    diff --git a/fangija-zsyf/images/cardBg01.png b/fangija-zsyf/images/cardBg01.png
    new file mode 100644
    index 0000000..c16e2d3
    Binary files /dev/null and b/fangija-zsyf/images/cardBg01.png differ
    diff --git a/fangija-zsyf/images/cardInfoBg01.png b/fangija-zsyf/images/cardInfoBg01.png
    new file mode 100644
    index 0000000..908e8df
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoBg01.png differ
    diff --git a/fangija-zsyf/images/cardInfoBg02.png b/fangija-zsyf/images/cardInfoBg02.png
    new file mode 100644
    index 0000000..ea54c17
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoBg02.png differ
    diff --git a/fangija-zsyf/images/cardInfoBg03.png b/fangija-zsyf/images/cardInfoBg03.png
    new file mode 100644
    index 0000000..4ef34b7
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoBg03.png differ
    diff --git a/fangija-zsyf/images/cardInfoBg04.png b/fangija-zsyf/images/cardInfoBg04.png
    new file mode 100644
    index 0000000..e0afbdc
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoBg04.png differ
    diff --git a/fangija-zsyf/images/cardInfoBg05.png b/fangija-zsyf/images/cardInfoBg05.png
    new file mode 100644
    index 0000000..5f374cc
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoBg05.png differ
    diff --git a/fangija-zsyf/images/cardInfoImg01.png b/fangija-zsyf/images/cardInfoImg01.png
    new file mode 100644
    index 0000000..908e8df
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoImg01.png differ
    diff --git a/fangija-zsyf/images/cardInfoImg02.png b/fangija-zsyf/images/cardInfoImg02.png
    new file mode 100644
    index 0000000..ea54c17
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoImg02.png differ
    diff --git a/fangija-zsyf/images/cardInfoImg03.png b/fangija-zsyf/images/cardInfoImg03.png
    new file mode 100644
    index 0000000..4ef34b7
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoImg03.png differ
    diff --git a/fangija-zsyf/images/cardInfoImg04.png b/fangija-zsyf/images/cardInfoImg04.png
    new file mode 100644
    index 0000000..e0afbdc
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoImg04.png differ
    diff --git a/fangija-zsyf/images/cardInfoImg05.png b/fangija-zsyf/images/cardInfoImg05.png
    new file mode 100644
    index 0000000..5f374cc
    Binary files /dev/null and b/fangija-zsyf/images/cardInfoImg05.png differ
    diff --git a/fangija-zsyf/images/checkImg.png b/fangija-zsyf/images/checkImg.png
    new file mode 100644
    index 0000000..71eca2b
    Binary files /dev/null and b/fangija-zsyf/images/checkImg.png differ
    diff --git a/fangija-zsyf/images/checkImg01.png b/fangija-zsyf/images/checkImg01.png
    new file mode 100644
    index 0000000..34d6611
    Binary files /dev/null and b/fangija-zsyf/images/checkImg01.png differ
    diff --git a/fangija-zsyf/images/checkImg02.png b/fangija-zsyf/images/checkImg02.png
    new file mode 100644
    index 0000000..bbfdccb
    Binary files /dev/null and b/fangija-zsyf/images/checkImg02.png differ
    diff --git a/fangija-zsyf/images/cityBg.png b/fangija-zsyf/images/cityBg.png
    new file mode 100644
    index 0000000..b7f9073
    Binary files /dev/null and b/fangija-zsyf/images/cityBg.png differ
    diff --git a/fangija-zsyf/images/cityImg01.png b/fangija-zsyf/images/cityImg01.png
    new file mode 100644
    index 0000000..c4dc73e
    Binary files /dev/null and b/fangija-zsyf/images/cityImg01.png differ
    diff --git a/fangija-zsyf/images/cityImg02.png b/fangija-zsyf/images/cityImg02.png
    new file mode 100644
    index 0000000..9ba971b
    Binary files /dev/null and b/fangija-zsyf/images/cityImg02.png differ
    diff --git a/fangija-zsyf/images/cityImg03.png b/fangija-zsyf/images/cityImg03.png
    new file mode 100644
    index 0000000..a8109ed
    Binary files /dev/null and b/fangija-zsyf/images/cityImg03.png differ
    diff --git a/fangija-zsyf/images/delete.png b/fangija-zsyf/images/delete.png
    new file mode 100644
    index 0000000..a7aba68
    Binary files /dev/null and b/fangija-zsyf/images/delete.png differ
    diff --git a/fangija-zsyf/images/down.png b/fangija-zsyf/images/down.png
    new file mode 100644
    index 0000000..cf8b1a0
    Binary files /dev/null and b/fangija-zsyf/images/down.png differ
    diff --git a/fangija-zsyf/images/down01.png b/fangija-zsyf/images/down01.png
    new file mode 100644
    index 0000000..b6ca7a5
    Binary files /dev/null and b/fangija-zsyf/images/down01.png differ
    diff --git a/fangija-zsyf/images/down02.png b/fangija-zsyf/images/down02.png
    new file mode 100644
    index 0000000..5a1113b
    Binary files /dev/null and b/fangija-zsyf/images/down02.png differ
    diff --git a/fangija-zsyf/images/dw.png b/fangija-zsyf/images/dw.png
    new file mode 100644
    index 0000000..7978b10
    Binary files /dev/null and b/fangija-zsyf/images/dw.png differ
    diff --git a/fangija-zsyf/images/dw_h.png b/fangija-zsyf/images/dw_h.png
    new file mode 100644
    index 0000000..5c620ca
    Binary files /dev/null and b/fangija-zsyf/images/dw_h.png differ
    diff --git a/fangija-zsyf/images/error404&500.png b/fangija-zsyf/images/error404&500.png
    new file mode 100644
    index 0000000..0fb49c2
    Binary files /dev/null and b/fangija-zsyf/images/error404&500.png differ
    diff --git a/fangija-zsyf/images/error404.png b/fangija-zsyf/images/error404.png
    new file mode 100644
    index 0000000..effce91
    Binary files /dev/null and b/fangija-zsyf/images/error404.png differ
    diff --git a/fangija-zsyf/images/error500.png b/fangija-zsyf/images/error500.png
    new file mode 100644
    index 0000000..2e69827
    Binary files /dev/null and b/fangija-zsyf/images/error500.png differ
    diff --git a/fangija-zsyf/images/errorInternet.png b/fangija-zsyf/images/errorInternet.png
    new file mode 100644
    index 0000000..2a0f94a
    Binary files /dev/null and b/fangija-zsyf/images/errorInternet.png differ
    diff --git a/fangija-zsyf/images/exchange-step01.png b/fangija-zsyf/images/exchange-step01.png
    new file mode 100644
    index 0000000..d095219
    Binary files /dev/null and b/fangija-zsyf/images/exchange-step01.png differ
    diff --git a/fangija-zsyf/images/exchange-step02.png b/fangija-zsyf/images/exchange-step02.png
    new file mode 100644
    index 0000000..c2c9885
    Binary files /dev/null and b/fangija-zsyf/images/exchange-step02.png differ
    diff --git a/fangija-zsyf/images/filter.png b/fangija-zsyf/images/filter.png
    new file mode 100644
    index 0000000..14c02c6
    Binary files /dev/null and b/fangija-zsyf/images/filter.png differ
    diff --git a/fangija-zsyf/images/grayIcon01.png b/fangija-zsyf/images/grayIcon01.png
    new file mode 100644
    index 0000000..5466f25
    Binary files /dev/null and b/fangija-zsyf/images/grayIcon01.png differ
    diff --git a/fangija-zsyf/images/grayIcon02.png b/fangija-zsyf/images/grayIcon02.png
    new file mode 100644
    index 0000000..3077c5f
    Binary files /dev/null and b/fangija-zsyf/images/grayIcon02.png differ
    diff --git a/fangija-zsyf/images/grayIcon03.png b/fangija-zsyf/images/grayIcon03.png
    new file mode 100644
    index 0000000..44080fc
    Binary files /dev/null and b/fangija-zsyf/images/grayIcon03.png differ
    diff --git a/fangija-zsyf/images/grayIcon04.png b/fangija-zsyf/images/grayIcon04.png
    new file mode 100644
    index 0000000..0693bf1
    Binary files /dev/null and b/fangija-zsyf/images/grayIcon04.png differ
    diff --git a/fangija-zsyf/images/headPortrait-wx.png b/fangija-zsyf/images/headPortrait-wx.png
    new file mode 100644
    index 0000000..484e528
    Binary files /dev/null and b/fangija-zsyf/images/headPortrait-wx.png differ
    diff --git a/fangija-zsyf/images/headPortrait.png b/fangija-zsyf/images/headPortrait.png
    new file mode 100644
    index 0000000..dc1ea89
    Binary files /dev/null and b/fangija-zsyf/images/headPortrait.png differ
    diff --git a/fangija-zsyf/images/houseNote.png b/fangija-zsyf/images/houseNote.png
    new file mode 100644
    index 0000000..c2a4f72
    Binary files /dev/null and b/fangija-zsyf/images/houseNote.png differ
    diff --git a/fangija-zsyf/images/icon-add.png b/fangija-zsyf/images/icon-add.png
    new file mode 100644
    index 0000000..155d50a
    Binary files /dev/null and b/fangija-zsyf/images/icon-add.png differ
    diff --git a/fangija-zsyf/images/icon-address.png b/fangija-zsyf/images/icon-address.png
    new file mode 100644
    index 0000000..8b49cac
    Binary files /dev/null and b/fangija-zsyf/images/icon-address.png differ
    diff --git a/fangija-zsyf/images/icon-address01.png b/fangija-zsyf/images/icon-address01.png
    new file mode 100644
    index 0000000..22f891e
    Binary files /dev/null and b/fangija-zsyf/images/icon-address01.png differ
    diff --git a/fangija-zsyf/images/icon-address02.png b/fangija-zsyf/images/icon-address02.png
    new file mode 100644
    index 0000000..4e62509
    Binary files /dev/null and b/fangija-zsyf/images/icon-address02.png differ
    diff --git a/fangija-zsyf/images/icon-address03.png b/fangija-zsyf/images/icon-address03.png
    new file mode 100644
    index 0000000..1cc4d39
    Binary files /dev/null and b/fangija-zsyf/images/icon-address03.png differ
    diff --git a/fangija-zsyf/images/icon-address04.png b/fangija-zsyf/images/icon-address04.png
    new file mode 100644
    index 0000000..4375a17
    Binary files /dev/null and b/fangija-zsyf/images/icon-address04.png differ
    diff --git a/fangija-zsyf/images/icon-around01-active.png b/fangija-zsyf/images/icon-around01-active.png
    new file mode 100644
    index 0000000..af8df41
    Binary files /dev/null and b/fangija-zsyf/images/icon-around01-active.png differ
    diff --git a/fangija-zsyf/images/icon-around01.png b/fangija-zsyf/images/icon-around01.png
    new file mode 100644
    index 0000000..4a7a13c
    Binary files /dev/null and b/fangija-zsyf/images/icon-around01.png differ
    diff --git a/fangija-zsyf/images/icon-around02-active.png b/fangija-zsyf/images/icon-around02-active.png
    new file mode 100644
    index 0000000..f72304b
    Binary files /dev/null and b/fangija-zsyf/images/icon-around02-active.png differ
    diff --git a/fangija-zsyf/images/icon-around02.png b/fangija-zsyf/images/icon-around02.png
    new file mode 100644
    index 0000000..78bee60
    Binary files /dev/null and b/fangija-zsyf/images/icon-around02.png differ
    diff --git a/fangija-zsyf/images/icon-around03-active.png b/fangija-zsyf/images/icon-around03-active.png
    new file mode 100644
    index 0000000..4fb78a0
    Binary files /dev/null and b/fangija-zsyf/images/icon-around03-active.png differ
    diff --git a/fangija-zsyf/images/icon-around03.png b/fangija-zsyf/images/icon-around03.png
    new file mode 100644
    index 0000000..be5a29d
    Binary files /dev/null and b/fangija-zsyf/images/icon-around03.png differ
    diff --git a/fangija-zsyf/images/icon-around04-active.png b/fangija-zsyf/images/icon-around04-active.png
    new file mode 100644
    index 0000000..f8a0fc0
    Binary files /dev/null and b/fangija-zsyf/images/icon-around04-active.png differ
    diff --git a/fangija-zsyf/images/icon-around04.png b/fangija-zsyf/images/icon-around04.png
    new file mode 100644
    index 0000000..063e3fa
    Binary files /dev/null and b/fangija-zsyf/images/icon-around04.png differ
    diff --git a/fangija-zsyf/images/icon-around05-active.png b/fangija-zsyf/images/icon-around05-active.png
    new file mode 100644
    index 0000000..7dbfa60
    Binary files /dev/null and b/fangija-zsyf/images/icon-around05-active.png differ
    diff --git a/fangija-zsyf/images/icon-around05.png b/fangija-zsyf/images/icon-around05.png
    new file mode 100644
    index 0000000..4359fff
    Binary files /dev/null and b/fangija-zsyf/images/icon-around05.png differ
    diff --git a/fangija-zsyf/images/icon-around06-active.png b/fangija-zsyf/images/icon-around06-active.png
    new file mode 100644
    index 0000000..dbad78f
    Binary files /dev/null and b/fangija-zsyf/images/icon-around06-active.png differ
    diff --git a/fangija-zsyf/images/icon-around06.png b/fangija-zsyf/images/icon-around06.png
    new file mode 100644
    index 0000000..11bc20f
    Binary files /dev/null and b/fangija-zsyf/images/icon-around06.png differ
    diff --git a/fangija-zsyf/images/icon-around07-active.png b/fangija-zsyf/images/icon-around07-active.png
    new file mode 100644
    index 0000000..251f8ee
    Binary files /dev/null and b/fangija-zsyf/images/icon-around07-active.png differ
    diff --git a/fangija-zsyf/images/icon-around07.png b/fangija-zsyf/images/icon-around07.png
    new file mode 100644
    index 0000000..8a32f10
    Binary files /dev/null and b/fangija-zsyf/images/icon-around07.png differ
    diff --git a/fangija-zsyf/images/icon-around08-active.png b/fangija-zsyf/images/icon-around08-active.png
    new file mode 100644
    index 0000000..4f8d459
    Binary files /dev/null and b/fangija-zsyf/images/icon-around08-active.png differ
    diff --git a/fangija-zsyf/images/icon-around08.png b/fangija-zsyf/images/icon-around08.png
    new file mode 100644
    index 0000000..28bdd89
    Binary files /dev/null and b/fangija-zsyf/images/icon-around08.png differ
    diff --git a/fangija-zsyf/images/icon-arrow-green.png b/fangija-zsyf/images/icon-arrow-green.png
    new file mode 100644
    index 0000000..5cc3ee4
    Binary files /dev/null and b/fangija-zsyf/images/icon-arrow-green.png differ
    diff --git a/fangija-zsyf/images/icon-arrow-red.png b/fangija-zsyf/images/icon-arrow-red.png
    new file mode 100644
    index 0000000..9043e12
    Binary files /dev/null and b/fangija-zsyf/images/icon-arrow-red.png differ
    diff --git a/fangija-zsyf/images/icon-city.png b/fangija-zsyf/images/icon-city.png
    new file mode 100644
    index 0000000..4483eef
    Binary files /dev/null and b/fangija-zsyf/images/icon-city.png differ
    diff --git a/fangija-zsyf/images/icon-clear.png b/fangija-zsyf/images/icon-clear.png
    new file mode 100644
    index 0000000..495cb32
    Binary files /dev/null and b/fangija-zsyf/images/icon-clear.png differ
    diff --git a/fangija-zsyf/images/icon-collection01.png b/fangija-zsyf/images/icon-collection01.png
    new file mode 100644
    index 0000000..c2804b0
    Binary files /dev/null and b/fangija-zsyf/images/icon-collection01.png differ
    diff --git a/fangija-zsyf/images/icon-collection02.png b/fangija-zsyf/images/icon-collection02.png
    new file mode 100644
    index 0000000..878cb48
    Binary files /dev/null and b/fangija-zsyf/images/icon-collection02.png differ
    diff --git a/fangija-zsyf/images/icon-collection03.png b/fangija-zsyf/images/icon-collection03.png
    new file mode 100644
    index 0000000..952e82e
    Binary files /dev/null and b/fangija-zsyf/images/icon-collection03.png differ
    diff --git a/fangija-zsyf/images/icon-collection03a.png b/fangija-zsyf/images/icon-collection03a.png
    new file mode 100644
    index 0000000..f7302b3
    Binary files /dev/null and b/fangija-zsyf/images/icon-collection03a.png differ
    diff --git a/fangija-zsyf/images/icon-comments-grey.png b/fangija-zsyf/images/icon-comments-grey.png
    new file mode 100644
    index 0000000..47d4c43
    Binary files /dev/null and b/fangija-zsyf/images/icon-comments-grey.png differ
    diff --git a/fangija-zsyf/images/icon-comments-orange.png b/fangija-zsyf/images/icon-comments-orange.png
    new file mode 100644
    index 0000000..75bc7d3
    Binary files /dev/null and b/fangija-zsyf/images/icon-comments-orange.png differ
    diff --git a/fangija-zsyf/images/icon-comments-white.png b/fangija-zsyf/images/icon-comments-white.png
    new file mode 100644
    index 0000000..82601e4
    Binary files /dev/null and b/fangija-zsyf/images/icon-comments-white.png differ
    diff --git a/fangija-zsyf/images/icon-comments.png b/fangija-zsyf/images/icon-comments.png
    new file mode 100644
    index 0000000..0ea8a5e
    Binary files /dev/null and b/fangija-zsyf/images/icon-comments.png differ
    diff --git a/fangija-zsyf/images/icon-evaluation01.png b/fangija-zsyf/images/icon-evaluation01.png
    new file mode 100644
    index 0000000..ea156ac
    Binary files /dev/null and b/fangija-zsyf/images/icon-evaluation01.png differ
    diff --git a/fangija-zsyf/images/icon-evaluation02.png b/fangija-zsyf/images/icon-evaluation02.png
    new file mode 100644
    index 0000000..149f45a
    Binary files /dev/null and b/fangija-zsyf/images/icon-evaluation02.png differ
    diff --git a/fangija-zsyf/images/icon-evaluation03.png b/fangija-zsyf/images/icon-evaluation03.png
    new file mode 100644
    index 0000000..0b15f76
    Binary files /dev/null and b/fangija-zsyf/images/icon-evaluation03.png differ
    diff --git a/fangija-zsyf/images/icon-eye-grey.png b/fangija-zsyf/images/icon-eye-grey.png
    new file mode 100644
    index 0000000..c34d988
    Binary files /dev/null and b/fangija-zsyf/images/icon-eye-grey.png differ
    diff --git a/fangija-zsyf/images/icon-eye-orange.png b/fangija-zsyf/images/icon-eye-orange.png
    new file mode 100644
    index 0000000..9bde02a
    Binary files /dev/null and b/fangija-zsyf/images/icon-eye-orange.png differ
    diff --git a/fangija-zsyf/images/icon-eye-white.png b/fangija-zsyf/images/icon-eye-white.png
    new file mode 100644
    index 0000000..a9b379d
    Binary files /dev/null and b/fangija-zsyf/images/icon-eye-white.png differ
    diff --git a/fangija-zsyf/images/icon-eye.png b/fangija-zsyf/images/icon-eye.png
    new file mode 100644
    index 0000000..8d00c3a
    Binary files /dev/null and b/fangija-zsyf/images/icon-eye.png differ
    diff --git a/fangija-zsyf/images/icon-history.png b/fangija-zsyf/images/icon-history.png
    new file mode 100644
    index 0000000..186ad54
    Binary files /dev/null and b/fangija-zsyf/images/icon-history.png differ
    diff --git a/fangija-zsyf/images/icon-home01.png b/fangija-zsyf/images/icon-home01.png
    new file mode 100644
    index 0000000..7592f1d
    Binary files /dev/null and b/fangija-zsyf/images/icon-home01.png differ
    diff --git a/fangija-zsyf/images/icon-home02.png b/fangija-zsyf/images/icon-home02.png
    new file mode 100644
    index 0000000..e00a576
    Binary files /dev/null and b/fangija-zsyf/images/icon-home02.png differ
    diff --git a/fangija-zsyf/images/icon-home03.png b/fangija-zsyf/images/icon-home03.png
    new file mode 100644
    index 0000000..dcc8f70
    Binary files /dev/null and b/fangija-zsyf/images/icon-home03.png differ
    diff --git a/fangija-zsyf/images/icon-home04.png b/fangija-zsyf/images/icon-home04.png
    new file mode 100644
    index 0000000..8c435ca
    Binary files /dev/null and b/fangija-zsyf/images/icon-home04.png differ
    diff --git a/fangija-zsyf/images/icon-house.png b/fangija-zsyf/images/icon-house.png
    new file mode 100644
    index 0000000..c41b802
    Binary files /dev/null and b/fangija-zsyf/images/icon-house.png differ
    diff --git a/fangija-zsyf/images/icon-house01.png b/fangija-zsyf/images/icon-house01.png
    new file mode 100644
    index 0000000..3cd27d2
    Binary files /dev/null and b/fangija-zsyf/images/icon-house01.png differ
    diff --git a/fangija-zsyf/images/icon-houseLevel.png b/fangija-zsyf/images/icon-houseLevel.png
    new file mode 100644
    index 0000000..8d3b802
    Binary files /dev/null and b/fangija-zsyf/images/icon-houseLevel.png differ
    diff --git a/fangija-zsyf/images/icon-light-blue.png b/fangija-zsyf/images/icon-light-blue.png
    new file mode 100644
    index 0000000..e7d6a0a
    Binary files /dev/null and b/fangija-zsyf/images/icon-light-blue.png differ
    diff --git a/fangija-zsyf/images/icon-light-grey.png b/fangija-zsyf/images/icon-light-grey.png
    new file mode 100644
    index 0000000..e932a85
    Binary files /dev/null and b/fangija-zsyf/images/icon-light-grey.png differ
    diff --git a/fangija-zsyf/images/icon-light-red.png b/fangija-zsyf/images/icon-light-red.png
    new file mode 100644
    index 0000000..155bcfd
    Binary files /dev/null and b/fangija-zsyf/images/icon-light-red.png differ
    diff --git a/fangija-zsyf/images/icon-login01.png b/fangija-zsyf/images/icon-login01.png
    new file mode 100644
    index 0000000..cc8fc8b
    Binary files /dev/null and b/fangija-zsyf/images/icon-login01.png differ
    diff --git a/fangija-zsyf/images/icon-login02.png b/fangija-zsyf/images/icon-login02.png
    new file mode 100644
    index 0000000..b825250
    Binary files /dev/null and b/fangija-zsyf/images/icon-login02.png differ
    diff --git a/fangija-zsyf/images/icon-login03.png b/fangija-zsyf/images/icon-login03.png
    new file mode 100644
    index 0000000..c93a28b
    Binary files /dev/null and b/fangija-zsyf/images/icon-login03.png differ
    diff --git a/fangija-zsyf/images/icon-loginMode01.png b/fangija-zsyf/images/icon-loginMode01.png
    new file mode 100644
    index 0000000..09c739b
    Binary files /dev/null and b/fangija-zsyf/images/icon-loginMode01.png differ
    diff --git a/fangija-zsyf/images/icon-loginMode02.png b/fangija-zsyf/images/icon-loginMode02.png
    new file mode 100644
    index 0000000..127b4b9
    Binary files /dev/null and b/fangija-zsyf/images/icon-loginMode02.png differ
    diff --git a/fangija-zsyf/images/icon-loginMode03.png b/fangija-zsyf/images/icon-loginMode03.png
    new file mode 100644
    index 0000000..3b1e582
    Binary files /dev/null and b/fangija-zsyf/images/icon-loginMode03.png differ
    diff --git a/fangija-zsyf/images/icon-menu01.png b/fangija-zsyf/images/icon-menu01.png
    new file mode 100644
    index 0000000..f3cf90d
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu01.png differ
    diff --git a/fangija-zsyf/images/icon-menu01a.png b/fangija-zsyf/images/icon-menu01a.png
    new file mode 100644
    index 0000000..b17ada7
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu01a.png differ
    diff --git a/fangija-zsyf/images/icon-menu02.png b/fangija-zsyf/images/icon-menu02.png
    new file mode 100644
    index 0000000..f4b44d4
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu02.png differ
    diff --git a/fangija-zsyf/images/icon-menu02a.png b/fangija-zsyf/images/icon-menu02a.png
    new file mode 100644
    index 0000000..882607b
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu02a.png differ
    diff --git a/fangija-zsyf/images/icon-menu03.png b/fangija-zsyf/images/icon-menu03.png
    new file mode 100644
    index 0000000..960412b
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu03.png differ
    diff --git a/fangija-zsyf/images/icon-menu03a.png b/fangija-zsyf/images/icon-menu03a.png
    new file mode 100644
    index 0000000..cb9c854
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu03a.png differ
    diff --git a/fangija-zsyf/images/icon-menu04.png b/fangija-zsyf/images/icon-menu04.png
    new file mode 100644
    index 0000000..2ade4aa
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu04.png differ
    diff --git a/fangija-zsyf/images/icon-menu04a.png b/fangija-zsyf/images/icon-menu04a.png
    new file mode 100644
    index 0000000..5a35d9e
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu04a.png differ
    diff --git a/fangija-zsyf/images/icon-menu05a.png b/fangija-zsyf/images/icon-menu05a.png
    new file mode 100644
    index 0000000..9f3725f
    Binary files /dev/null and b/fangija-zsyf/images/icon-menu05a.png differ
    diff --git a/fangija-zsyf/images/icon-message-new.png b/fangija-zsyf/images/icon-message-new.png
    new file mode 100644
    index 0000000..e2d22a1
    Binary files /dev/null and b/fangija-zsyf/images/icon-message-new.png differ
    diff --git a/fangija-zsyf/images/icon-message.png b/fangija-zsyf/images/icon-message.png
    new file mode 100644
    index 0000000..d46939e
    Binary files /dev/null and b/fangija-zsyf/images/icon-message.png differ
    diff --git a/fangija-zsyf/images/icon-message01-new.png b/fangija-zsyf/images/icon-message01-new.png
    new file mode 100644
    index 0000000..b404693
    Binary files /dev/null and b/fangija-zsyf/images/icon-message01-new.png differ
    diff --git a/fangija-zsyf/images/icon-message01.png b/fangija-zsyf/images/icon-message01.png
    new file mode 100644
    index 0000000..e03912d
    Binary files /dev/null and b/fangija-zsyf/images/icon-message01.png differ
    diff --git a/fangija-zsyf/images/icon-note.png b/fangija-zsyf/images/icon-note.png
    new file mode 100644
    index 0000000..8a6f9c9
    Binary files /dev/null and b/fangija-zsyf/images/icon-note.png differ
    diff --git a/fangija-zsyf/images/icon-path.png b/fangija-zsyf/images/icon-path.png
    new file mode 100644
    index 0000000..e98690e
    Binary files /dev/null and b/fangija-zsyf/images/icon-path.png differ
    diff --git a/fangija-zsyf/images/icon-path01.png b/fangija-zsyf/images/icon-path01.png
    new file mode 100644
    index 0000000..58af9c5
    Binary files /dev/null and b/fangija-zsyf/images/icon-path01.png differ
    diff --git a/fangija-zsyf/images/icon-personal01.png b/fangija-zsyf/images/icon-personal01.png
    new file mode 100644
    index 0000000..6f44a0a
    Binary files /dev/null and b/fangija-zsyf/images/icon-personal01.png differ
    diff --git a/fangija-zsyf/images/icon-personal02.png b/fangija-zsyf/images/icon-personal02.png
    new file mode 100644
    index 0000000..cb048e4
    Binary files /dev/null and b/fangija-zsyf/images/icon-personal02.png differ
    diff --git a/fangija-zsyf/images/icon-personal03.png b/fangija-zsyf/images/icon-personal03.png
    new file mode 100644
    index 0000000..7d12a9c
    Binary files /dev/null and b/fangija-zsyf/images/icon-personal03.png differ
    diff --git a/fangija-zsyf/images/icon-personal04.png b/fangija-zsyf/images/icon-personal04.png
    new file mode 100644
    index 0000000..7527eac
    Binary files /dev/null and b/fangija-zsyf/images/icon-personal04.png differ
    diff --git a/fangija-zsyf/images/icon-praise-grey.png b/fangija-zsyf/images/icon-praise-grey.png
    new file mode 100644
    index 0000000..b3533ad
    Binary files /dev/null and b/fangija-zsyf/images/icon-praise-grey.png differ
    diff --git a/fangija-zsyf/images/icon-praise-grey01.png b/fangija-zsyf/images/icon-praise-grey01.png
    new file mode 100644
    index 0000000..95df77a
    Binary files /dev/null and b/fangija-zsyf/images/icon-praise-grey01.png differ
    diff --git a/fangija-zsyf/images/icon-praise-grey02.png b/fangija-zsyf/images/icon-praise-grey02.png
    new file mode 100644
    index 0000000..e289ceb
    Binary files /dev/null and b/fangija-zsyf/images/icon-praise-grey02.png differ
    diff --git a/fangija-zsyf/images/icon-praise-orange.png b/fangija-zsyf/images/icon-praise-orange.png
    new file mode 100644
    index 0000000..13cb029
    Binary files /dev/null and b/fangija-zsyf/images/icon-praise-orange.png differ
    diff --git a/fangija-zsyf/images/icon-praise-white.png b/fangija-zsyf/images/icon-praise-white.png
    new file mode 100644
    index 0000000..294953d
    Binary files /dev/null and b/fangija-zsyf/images/icon-praise-white.png differ
    diff --git a/fangija-zsyf/images/icon-set.png b/fangija-zsyf/images/icon-set.png
    new file mode 100644
    index 0000000..990a27a
    Binary files /dev/null and b/fangija-zsyf/images/icon-set.png differ
    diff --git a/fangija-zsyf/images/icon-star.png b/fangija-zsyf/images/icon-star.png
    new file mode 100644
    index 0000000..389fe29
    Binary files /dev/null and b/fangija-zsyf/images/icon-star.png differ
    diff --git a/fangija-zsyf/images/icon-star01.png b/fangija-zsyf/images/icon-star01.png
    new file mode 100644
    index 0000000..d1e66b7
    Binary files /dev/null and b/fangija-zsyf/images/icon-star01.png differ
    diff --git a/fangija-zsyf/images/icon-star02.png b/fangija-zsyf/images/icon-star02.png
    new file mode 100644
    index 0000000..f6efef1
    Binary files /dev/null and b/fangija-zsyf/images/icon-star02.png differ
    diff --git a/fangija-zsyf/images/icon-tab01-active.png b/fangija-zsyf/images/icon-tab01-active.png
    new file mode 100644
    index 0000000..3cd5cac
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab01-active.png differ
    diff --git a/fangija-zsyf/images/icon-tab01.png b/fangija-zsyf/images/icon-tab01.png
    new file mode 100644
    index 0000000..8f9889b
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab01.png differ
    diff --git a/fangija-zsyf/images/icon-tab02-active.png b/fangija-zsyf/images/icon-tab02-active.png
    new file mode 100644
    index 0000000..bddd879
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab02-active.png differ
    diff --git a/fangija-zsyf/images/icon-tab02.png b/fangija-zsyf/images/icon-tab02.png
    new file mode 100644
    index 0000000..3e02478
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab02.png differ
    diff --git a/fangija-zsyf/images/icon-tab03-active.png b/fangija-zsyf/images/icon-tab03-active.png
    new file mode 100644
    index 0000000..e40fd13
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab03-active.png differ
    diff --git a/fangija-zsyf/images/icon-tab03.png b/fangija-zsyf/images/icon-tab03.png
    new file mode 100644
    index 0000000..1deab3d
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab03.png differ
    diff --git a/fangija-zsyf/images/icon-tab04-active.png b/fangija-zsyf/images/icon-tab04-active.png
    new file mode 100644
    index 0000000..6a1d0c7
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab04-active.png differ
    diff --git a/fangija-zsyf/images/icon-tab04.png b/fangija-zsyf/images/icon-tab04.png
    new file mode 100644
    index 0000000..471f2e4
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab04.png differ
    diff --git a/fangija-zsyf/images/icon-tab05-active.png b/fangija-zsyf/images/icon-tab05-active.png
    new file mode 100644
    index 0000000..15df7de
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab05-active.png differ
    diff --git a/fangija-zsyf/images/icon-tab05.png b/fangija-zsyf/images/icon-tab05.png
    new file mode 100644
    index 0000000..328af7c
    Binary files /dev/null and b/fangija-zsyf/images/icon-tab05.png differ
    diff --git a/fangija-zsyf/images/icon-wx.png b/fangija-zsyf/images/icon-wx.png
    new file mode 100644
    index 0000000..89062af
    Binary files /dev/null and b/fangija-zsyf/images/icon-wx.png differ
    diff --git a/fangija-zsyf/images/infoDetailImg.png b/fangija-zsyf/images/infoDetailImg.png
    new file mode 100644
    index 0000000..467e79b
    Binary files /dev/null and b/fangija-zsyf/images/infoDetailImg.png differ
    diff --git a/fangija-zsyf/images/lineImg.png b/fangija-zsyf/images/lineImg.png
    new file mode 100644
    index 0000000..b691b9a
    Binary files /dev/null and b/fangija-zsyf/images/lineImg.png differ
    diff --git a/fangija-zsyf/images/loan-img01.png b/fangija-zsyf/images/loan-img01.png
    new file mode 100644
    index 0000000..10cfc7f
    Binary files /dev/null and b/fangija-zsyf/images/loan-img01.png differ
    diff --git a/fangija-zsyf/images/loan-img02.png b/fangija-zsyf/images/loan-img02.png
    new file mode 100644
    index 0000000..55310fb
    Binary files /dev/null and b/fangija-zsyf/images/loan-img02.png differ
    diff --git a/fangija-zsyf/images/loan01.png b/fangija-zsyf/images/loan01.png
    new file mode 100644
    index 0000000..cd8112d
    Binary files /dev/null and b/fangija-zsyf/images/loan01.png differ
    diff --git a/fangija-zsyf/images/loan02.png b/fangija-zsyf/images/loan02.png
    new file mode 100644
    index 0000000..96b7d8c
    Binary files /dev/null and b/fangija-zsyf/images/loan02.png differ
    diff --git a/fangija-zsyf/images/loan03.png b/fangija-zsyf/images/loan03.png
    new file mode 100644
    index 0000000..a7d83dc
    Binary files /dev/null and b/fangija-zsyf/images/loan03.png differ
    diff --git a/fangija-zsyf/images/loginCode.png b/fangija-zsyf/images/loginCode.png
    new file mode 100644
    index 0000000..52315f0
    Binary files /dev/null and b/fangija-zsyf/images/loginCode.png differ
    diff --git a/fangija-zsyf/images/noData.png b/fangija-zsyf/images/noData.png
    new file mode 100644
    index 0000000..8a3b890
    Binary files /dev/null and b/fangija-zsyf/images/noData.png differ
    diff --git a/fangija-zsyf/images/photo.png b/fangija-zsyf/images/photo.png
    new file mode 100644
    index 0000000..3cd610d
    Binary files /dev/null and b/fangija-zsyf/images/photo.png differ
    diff --git a/fangija-zsyf/images/rankingImg01.png b/fangija-zsyf/images/rankingImg01.png
    new file mode 100644
    index 0000000..c391500
    Binary files /dev/null and b/fangija-zsyf/images/rankingImg01.png differ
    diff --git a/fangija-zsyf/images/rankingImg02.png b/fangija-zsyf/images/rankingImg02.png
    new file mode 100644
    index 0000000..7d1d589
    Binary files /dev/null and b/fangija-zsyf/images/rankingImg02.png differ
    diff --git a/fangija-zsyf/images/rankingImg03.png b/fangija-zsyf/images/rankingImg03.png
    new file mode 100644
    index 0000000..7c2e225
    Binary files /dev/null and b/fangija-zsyf/images/rankingImg03.png differ
    diff --git a/fangija-zsyf/images/search.png b/fangija-zsyf/images/search.png
    new file mode 100644
    index 0000000..3e65b8d
    Binary files /dev/null and b/fangija-zsyf/images/search.png differ
    diff --git a/fangija-zsyf/images/start.png b/fangija-zsyf/images/start.png
    new file mode 100644
    index 0000000..af0b046
    Binary files /dev/null and b/fangija-zsyf/images/start.png differ
    diff --git a/fangija-zsyf/images/topBg.png b/fangija-zsyf/images/topBg.png
    new file mode 100644
    index 0000000..c5a8a99
    Binary files /dev/null and b/fangija-zsyf/images/topBg.png differ
    diff --git a/fangija-zsyf/images/up.png b/fangija-zsyf/images/up.png
    new file mode 100644
    index 0000000..74f6e32
    Binary files /dev/null and b/fangija-zsyf/images/up.png differ
    diff --git a/fangija-zsyf/images/up01.png b/fangija-zsyf/images/up01.png
    new file mode 100644
    index 0000000..c713783
    Binary files /dev/null and b/fangija-zsyf/images/up01.png differ
    diff --git a/fangija-zsyf/images/up02.png b/fangija-zsyf/images/up02.png
    new file mode 100644
    index 0000000..e2cbd8b
    Binary files /dev/null and b/fangija-zsyf/images/up02.png differ
    diff --git a/fangija-zsyf/images/updown_bottom01.png b/fangija-zsyf/images/updown_bottom01.png
    new file mode 100644
    index 0000000..8f372f2
    Binary files /dev/null and b/fangija-zsyf/images/updown_bottom01.png differ
    diff --git a/fangija-zsyf/images/updown_bottom02.png b/fangija-zsyf/images/updown_bottom02.png
    new file mode 100644
    index 0000000..c0783ef
    Binary files /dev/null and b/fangija-zsyf/images/updown_bottom02.png differ
    diff --git a/fangija-zsyf/images/updown_bottom03.png b/fangija-zsyf/images/updown_bottom03.png
    new file mode 100644
    index 0000000..3a3cd10
    Binary files /dev/null and b/fangija-zsyf/images/updown_bottom03.png differ
    diff --git a/fangija-zsyf/images/updown_top01.png b/fangija-zsyf/images/updown_top01.png
    new file mode 100644
    index 0000000..aa4653f
    Binary files /dev/null and b/fangija-zsyf/images/updown_top01.png differ
    diff --git a/fangija-zsyf/images/updown_top02.png b/fangija-zsyf/images/updown_top02.png
    new file mode 100644
    index 0000000..b72b433
    Binary files /dev/null and b/fangija-zsyf/images/updown_top02.png differ
    diff --git a/fangija-zsyf/images/updown_top03.png b/fangija-zsyf/images/updown_top03.png
    new file mode 100644
    index 0000000..c57d462
    Binary files /dev/null and b/fangija-zsyf/images/updown_top03.png differ
    diff --git a/fangija-zsyf/images/whiteIcon01.png b/fangija-zsyf/images/whiteIcon01.png
    new file mode 100644
    index 0000000..5ffb2f5
    Binary files /dev/null and b/fangija-zsyf/images/whiteIcon01.png differ
    diff --git a/fangija-zsyf/images/whiteIcon02.png b/fangija-zsyf/images/whiteIcon02.png
    new file mode 100644
    index 0000000..f9d0f28
    Binary files /dev/null and b/fangija-zsyf/images/whiteIcon02.png differ
    diff --git a/fangija-zsyf/images/whiteIcon03.png b/fangija-zsyf/images/whiteIcon03.png
    new file mode 100644
    index 0000000..dea2ef7
    Binary files /dev/null and b/fangija-zsyf/images/whiteIcon03.png differ
    diff --git a/fangija-zsyf/images/whiteIcon04.png b/fangija-zsyf/images/whiteIcon04.png
    new file mode 100644
    index 0000000..cdf5730
    Binary files /dev/null and b/fangija-zsyf/images/whiteIcon04.png differ
    diff --git a/fangija-zsyf/images/wx.png b/fangija-zsyf/images/wx.png
    new file mode 100644
    index 0000000..67b1279
    Binary files /dev/null and b/fangija-zsyf/images/wx.png differ
    diff --git a/fangija-zsyf/images/wx_app.png b/fangija-zsyf/images/wx_app.png
    new file mode 100644
    index 0000000..bd9ea58
    Binary files /dev/null and b/fangija-zsyf/images/wx_app.png differ
    diff --git a/fangija-zsyf/img/5.jpg b/fangija-zsyf/img/5.jpg
    new file mode 100644
    index 0000000..471d2a5
    Binary files /dev/null and b/fangija-zsyf/img/5.jpg differ
    diff --git a/fangija-zsyf/img/add.png b/fangija-zsyf/img/add.png
    new file mode 100644
    index 0000000..d256952
    Binary files /dev/null and b/fangija-zsyf/img/add.png differ
    diff --git a/fangija-zsyf/img/arecord.png b/fangija-zsyf/img/arecord.png
    new file mode 100644
    index 0000000..246d1b8
    Binary files /dev/null and b/fangija-zsyf/img/arecord.png differ
    diff --git a/fangija-zsyf/img/astop.png b/fangija-zsyf/img/astop.png
    new file mode 100644
    index 0000000..2c0ef6f
    Binary files /dev/null and b/fangija-zsyf/img/astop.png differ
    diff --git a/fangija-zsyf/img/barcode.png b/fangija-zsyf/img/barcode.png
    new file mode 100644
    index 0000000..e842dce
    Binary files /dev/null and b/fangija-zsyf/img/barcode.png differ
    diff --git a/fangija-zsyf/img/cardInfoImg01.png b/fangija-zsyf/img/cardInfoImg01.png
    new file mode 100644
    index 0000000..908e8df
    Binary files /dev/null and b/fangija-zsyf/img/cardInfoImg01.png differ
    diff --git a/fangija-zsyf/img/cardInfoImg02.png b/fangija-zsyf/img/cardInfoImg02.png
    new file mode 100644
    index 0000000..ea54c17
    Binary files /dev/null and b/fangija-zsyf/img/cardInfoImg02.png differ
    diff --git a/fangija-zsyf/img/cardInfoImg03.png b/fangija-zsyf/img/cardInfoImg03.png
    new file mode 100644
    index 0000000..4ef34b7
    Binary files /dev/null and b/fangija-zsyf/img/cardInfoImg03.png differ
    diff --git a/fangija-zsyf/img/cardInfoImg04.png b/fangija-zsyf/img/cardInfoImg04.png
    new file mode 100644
    index 0000000..e0afbdc
    Binary files /dev/null and b/fangija-zsyf/img/cardInfoImg04.png differ
    diff --git a/fangija-zsyf/img/cardInfoImg05.png b/fangija-zsyf/img/cardInfoImg05.png
    new file mode 100644
    index 0000000..5f374cc
    Binary files /dev/null and b/fangija-zsyf/img/cardInfoImg05.png differ
    diff --git a/fangija-zsyf/img/default_share.png b/fangija-zsyf/img/default_share.png
    new file mode 100644
    index 0000000..a93105d
    Binary files /dev/null and b/fangija-zsyf/img/default_share.png differ
    diff --git a/fangija-zsyf/img/errorInternet.png b/fangija-zsyf/img/errorInternet.png
    new file mode 100644
    index 0000000..2a0f94a
    Binary files /dev/null and b/fangija-zsyf/img/errorInternet.png differ
    diff --git a/fangija-zsyf/img/fdir.png b/fangija-zsyf/img/fdir.png
    new file mode 100644
    index 0000000..62a6b3e
    Binary files /dev/null and b/fangija-zsyf/img/fdir.png differ
    diff --git a/fangija-zsyf/img/fdisk.png b/fangija-zsyf/img/fdisk.png
    new file mode 100644
    index 0000000..1501cdc
    Binary files /dev/null and b/fangija-zsyf/img/fdisk.png differ
    diff --git a/fangija-zsyf/img/ffile.png b/fangija-zsyf/img/ffile.png
    new file mode 100644
    index 0000000..032455c
    Binary files /dev/null and b/fangija-zsyf/img/ffile.png differ
    diff --git a/fangija-zsyf/img/fup.png b/fangija-zsyf/img/fup.png
    new file mode 100644
    index 0000000..acc8e93
    Binary files /dev/null and b/fangija-zsyf/img/fup.png differ
    diff --git a/fangija-zsyf/img/h5p.jpg b/fangija-zsyf/img/h5p.jpg
    new file mode 100644
    index 0000000..171105c
    Binary files /dev/null and b/fangija-zsyf/img/h5p.jpg differ
    diff --git a/fangija-zsyf/img/helloh5.jpg b/fangija-zsyf/img/helloh5.jpg
    new file mode 100644
    index 0000000..57e7db0
    Binary files /dev/null and b/fangija-zsyf/img/helloh5.jpg differ
    diff --git a/fangija-zsyf/img/orientationa.png b/fangija-zsyf/img/orientationa.png
    new file mode 100644
    index 0000000..bf2ae47
    Binary files /dev/null and b/fangija-zsyf/img/orientationa.png differ
    diff --git a/fangija-zsyf/img/orientationb.png b/fangija-zsyf/img/orientationb.png
    new file mode 100644
    index 0000000..9a398e5
    Binary files /dev/null and b/fangija-zsyf/img/orientationb.png differ
    diff --git a/fangija-zsyf/img/orientationbg.png b/fangija-zsyf/img/orientationbg.png
    new file mode 100644
    index 0000000..626477a
    Binary files /dev/null and b/fangija-zsyf/img/orientationbg.png differ
    diff --git a/fangija-zsyf/img/orientationc.png b/fangija-zsyf/img/orientationc.png
    new file mode 100644
    index 0000000..7c7dbbd
    Binary files /dev/null and b/fangija-zsyf/img/orientationc.png differ
    diff --git a/fangija-zsyf/img/orientationl.png b/fangija-zsyf/img/orientationl.png
    new file mode 100644
    index 0000000..ab687f6
    Binary files /dev/null and b/fangija-zsyf/img/orientationl.png differ
    diff --git a/fangija-zsyf/img/pull_arrow.png b/fangija-zsyf/img/pull_arrow.png
    new file mode 100644
    index 0000000..aadf69e
    Binary files /dev/null and b/fangija-zsyf/img/pull_arrow.png differ
    diff --git a/fangija-zsyf/img/pull_fresh.png b/fangija-zsyf/img/pull_fresh.png
    new file mode 100644
    index 0000000..1726af6
    Binary files /dev/null and b/fangija-zsyf/img/pull_fresh.png differ
    diff --git a/fangija-zsyf/img/qr.png b/fangija-zsyf/img/qr.png
    new file mode 100644
    index 0000000..a8401a3
    Binary files /dev/null and b/fangija-zsyf/img/qr.png differ
    diff --git a/fangija-zsyf/img/shake/1.jpg b/fangija-zsyf/img/shake/1.jpg
    new file mode 100644
    index 0000000..bbbef2d
    Binary files /dev/null and b/fangija-zsyf/img/shake/1.jpg differ
    diff --git a/fangija-zsyf/img/shake/2.jpg b/fangija-zsyf/img/shake/2.jpg
    new file mode 100644
    index 0000000..c9843aa
    Binary files /dev/null and b/fangija-zsyf/img/shake/2.jpg differ
    diff --git a/fangija-zsyf/img/shake/3.jpg b/fangija-zsyf/img/shake/3.jpg
    new file mode 100644
    index 0000000..3c29745
    Binary files /dev/null and b/fangija-zsyf/img/shake/3.jpg differ
    diff --git a/fangija-zsyf/img/shake/4.jpg b/fangija-zsyf/img/shake/4.jpg
    new file mode 100644
    index 0000000..d00db26
    Binary files /dev/null and b/fangija-zsyf/img/shake/4.jpg differ
    diff --git a/fangija-zsyf/img/shakedown.png b/fangija-zsyf/img/shakedown.png
    new file mode 100644
    index 0000000..92b9318
    Binary files /dev/null and b/fangija-zsyf/img/shakedown.png differ
    diff --git a/fangija-zsyf/img/shakeup.png b/fangija-zsyf/img/shakeup.png
    new file mode 100644
    index 0000000..ec36b52
    Binary files /dev/null and b/fangija-zsyf/img/shakeup.png differ
    diff --git a/fangija-zsyf/img/ui.png b/fangija-zsyf/img/ui.png
    new file mode 100644
    index 0000000..23d6a54
    Binary files /dev/null and b/fangija-zsyf/img/ui.png differ
    diff --git a/fangija-zsyf/img/waiting.png b/fangija-zsyf/img/waiting.png
    new file mode 100644
    index 0000000..ee9e2fc
    Binary files /dev/null and b/fangija-zsyf/img/waiting.png differ
    diff --git a/fangija-zsyf/index.html b/fangija-zsyf/index.html
    new file mode 100644
    index 0000000..75732b9
    --- /dev/null
    +++ b/fangija-zsyf/index.html
    @@ -0,0 +1,1178 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    +		<meta name="misapplication-tap-highlight" content="no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="js/update.js"></script>
    +		<script type="text/javascript" charset="utf-8">
    +//取消浏览器的所有事件,使得active的样式在手机上正常生效
    +document.addEventListener('touchstart',function(){
    +    return false;
    +},true);
    +// 禁止选择
    +document.oncontextmenu=function(){
    +	return false;
    +};
    +// H5 plus事件处理
    +var as='pop-in';// 默认窗口动画
    +function plusReady(){
    +	// 隐藏滚动条
    +	plus.webview.currentWebview().setStyle({scrollIndicator:'none'});
    +	// Android处理返回键
    +	plus.key.addEventListener('backbutton',function(){
    +		('iOS'==plus.os.name)?plus.nativeUI.confirm('确认退出?', function(e){
    +			if(e.index>0){
    +				plus.runtime.quit();
    +			}
    +		}, 'HelloH5', ['取消','确定']):(confirm('确认退出?')&&plus.runtime.quit());
    +	},false);
    +	compatibleAdjust();
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready',plusReady,false);
    +}
    +// DOMContentLoaded事件处理
    +var _domReady=false;
    +document.addEventListener('DOMContentLoaded',function(){
    +	_domReady=true;
    +	compatibleAdjust();
    +},false);
    +// 兼容性样式调整
    +var _adjust=false;
    +function compatibleAdjust(){
    +	if(_adjust||!window.plus||!_domReady){
    +		return;
    +	}
    +	_adjust=true;
    +	// iOS平台特效
    +	if('iOS'==plus.os.name){
    +		document.getElementById('content').className='scontent';	// 使用div的滚动条
    +		if(navigator.userAgent.indexOf('StreamApp')>=0){	// 在流应用模式下显示返回按钮
    +			document.getElementById('back').style.visibility='visible';
    +		}
    +	}
    +	// 预创建二级窗口
    +//	preateWebviews();
    +	// 关闭启动界面
    +		plus.navigator.setStatusBarBackground('#D74B28');
    +	setTimeout(function(){
    +		plus.navigator.closeSplashscreen();
    +	},200);
    +}
    +// 处理点击事件
    +var _openw=null;
    +/**
    + * 点击打开新窗口
    + * @param {Object} id	加载的页面地址,也用作窗口标识
    + * @param {Object} a	页面动画内心,默认使用全局as设置的值
    + * @param {Object} s	是否不显示窗口
    + */
    +function clicked(id,a,s){
    +	if(_openw){return;}
    +	a||(a=as);
    +	_openw=preate[id];
    +	if(_openw){
    +		_openw.showded=true;
    +		_openw.show(a,null,function(){
    +			_openw=null;//避免快速点击打开多个页面
    +		});
    +	}else{
    +//		var wa=plus.nativeUI.showWaiting();
    +//		_openw=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'hide'},{preate:true});//复用二级页面
    +		_openw=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'close'});
    +		preate[id]=_openw;
    +		_openw.addEventListener('loaded',function(){//叶面加载完成后才显示
    +//		setTimeout(function(){//延后显示可避免低端机上动画时白屏
    +//			wa.close();
    +			_openw.showded=true;
    +			s||_openw.show(a,null,function(){
    +				_openw=null;//避免快速点击打开多个页面
    +			});
    +			s&&(_openw=null);//避免s模式下变量无法重置
    +//		},10);
    +		},false);
    +		_openw.addEventListener('hide',function(){
    +			_openw&&(_openw.showded=true);
    +			_openw=null;
    +		},false);
    +		_openw.addEventListener('close',function(){//页面关闭后可再次打开
    +			_openw=null;
    +			preate[id]&&(preate[id]=null);//兼容窗口的关闭
    +		},false);
    +	}
    +}
    +// 预创建二级页面
    +var preate={};
    +function preateWebviews(){
    +	preateWebivew('plus/webview.html');
    +	var plist=document.getElementById('plist').children;
    +	// 由于启动是预创建过多Webview窗口会消耗较长的时间,所以这里限制仅创建5个
    +	for( var i=0;i<plist.length&&i<2;i++){
    +		var id=plist[i].id;
    +		id&&(id.length>0)&&preateWebivew(id);
    +	}
    +}
    +function preateWebivew(id){
    +	if(!preate[id]){
    +		var w=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'hide'},{preate:true});
    +		preate[id]=w;
    +		w.addEventListener('close',function(){//页面关闭后可再次打开
    +			_openw=null;
    +			preate[id]&&(preate[id]=null);//兼容窗口的关闭
    +		},false);
    +	}
    +}
    +// 清除预创建页面(仅)
    +function preateClear(){
    +	for(var p in preate){
    +		var w=preate[p];
    +		if(w&&w.showded&&!w.isVisible()){
    +			w.close();
    +			preate[p]=null;
    +		}
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +li {
    +	padding:0.8em;
    +	border-bottom:1px solid #eaeaea;
    +}
    +li:active {
    +	background:#f4f4f4;
    +}
    +.iabout {
    +	background:no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAADkUlEQVR4nO2b63HTQBRGTxj+EyrAVBAzWwBKBYQO0kHcAU4HTgehApwKUArYwa4ApwJwBeGHNuAY2URaSfczuWcmk3jH+xid7N596ej+/h5HhxfWDXAe40LEcCFiuBAxXIgYLkQMFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMVyIGC5EDBcihgsRw4WI4ULEeGndgKbEGEdAkX7GwMmOry6BBVAC8xDCz/5bl8/RodztjTEWwAT40LKIG2AWQii7alMfyAuJMY6BGfC+oyJvgamqGGkhMcYZcNFT8VchhElPZbdGUkiM8Zhq7N8VH7piCRRK8UVulpWGqJL+ZZDqWKQ6JZDqIalnLIA3GcUs0+8mQmV6iloPKWkv4zPwOoQwDiGMgVNg/cS8J6luc2R6SGYAvw0hFDVlzmk2TTYP9BI9JK0xcmZTsx3pq4blXFjHEwkhwLSncs9a5NkldxDMh6zUO75mFvMoKKfJwTXtV/WnVgtHhb2sLsbsE2AVY1ykz7mr+glGQd60h6T/5B9mDdjP2xDCauhKrWNImzF+KAqLSq2FFMb176OwqNRaSFdTzDvgkmqYOaJaFOZiMv21Duq5+1VrYBJCuN5MDCGUMcbMogfZS/sL6x6SwyUw2pYBvycLB8khCllTrROmwPGOh18M2qIOOUQh58AorTm+Uz/WF0M2qEusY0gbvmx+2LGiLgZpSQ8cYg/Z5HY7IQ1hJgG5C6yFLP/9lb0satKKzDIfyG1bK6yF1D3QJpQ1aV2t/nPb1gprIWUP+YvMMveV3TuHLGS5fQaebjXmnMdvMu+onEaYCkm7qTcts5c1aaONv6+oztnbcGN14cG6h0D7E7qyJm1F2tOiOoVsux9ldmpofmIIEGMsaX6otPO8Ip2Lz2k3fNVemBgKlYXhBPjWJEOdjLQGmQCfMtoyzcibjUQPgVbXgD6GEOYp7zHVlsqEvKBufg1IRghA2p966ip7zZ+1Qhc345fpgp0pCkF9k4Knr5BfUYnoQsYdIvtfUkLSVPOc6gENxRI4U7jXC2JD1gPP+XUESSEPPMcXdqSGrG3SAzulZps9g1vgnaIMEO8hm/hLn6Kk+HJGs9eiS4tbiG04OCH/O9Ix5DniQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMVyIGC5EDBcihgsRw4WI4ULEcCFiuBAxfgHyQw1G9FJgWwAAAABJRU5ErkJggg==);
    +	background-size:50px 44px;
    +}
    +.item {
    +	display:block;
    +	background:no-repeat right center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAsCAYAAAB/nHhDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNC8yOC8xMqLz6JEAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAABJ0lEQVRYhe3Wv6rCMBQG8C/VN1AEd3HSzuYO3jr4knkY0UE62xTBcp9A8A0uHhc72CZp/lQQyZmT7xfSJKeMiPDOSt6aHoEIRKAbkLKioqiCrroWkLKi+51ARAhBlEAdXlcI0gLK8u8lPBRpAYvFjCUJUw72QZRbtFzOe0O0H7kvxHhM83yfhiJdF+2c5/utCTmdLnS93rQQs2mZQogN59lOdbrqmk7HmExGrZVYAU9kzXl2cEWsgSfys1r9Hk1TmogTAABFcTFOaQJOr6mUlVO4E9B8n2zCrQHfcAAYmoKFEAPOs39dOGMMaTpXX5J6jGlTTSu3CQcsGk5IuBboK1wJ6BqOT7gS0DUcn3AlALR7gW84YHGKiOAd3gn0UV/+6xiBCHwG8AByzMrOPKV7sAAAAABJRU5ErkJggg==);
    +	background-size:12px 22px;
    +	-ms-touch-action:auto;
    +}
    +.chs {
    +	font-size:0.8em;
    +	color:#838383;
    +}
    +		</style>
    +	</head>
    +	<body onselectstart="return false;">
    +		<header id="header">
    +			<div id="back" style="visibility:hidden" class="nvbt iback" onclick="plus.runtime.quit()"></div>
    +			<div class="nvtt">Hello HTML5+</div>
    +			<div class="nvbt iabout" onclick="clicked('about.html','zoom-fade-out',true)"></div>
    +		</header>
    +		<div id="content" class="content">
    +		<ul id="plist" style="list-style:none;margin:0;padding:0;text-align:left;">
    +			<li id="plus/accelerometer.html" onclick="clicked(this.id)">
    +				<span class="item">Accelerometer
    +					<div class="chs">加速度传感器</div>
    +				</span>
    +			</li>
    +			<li id="plus/audio.html" onclick="clicked(this.id)">
    +				<span class="item">Audio
    +					<div class="chs">音频录制/播放</div>
    +				</span>
    +			</li>
    +			<li id="plus/barcode.html" onclick="clicked(this.id)">
    +				<span class="item">Barcode
    +					<div class="chs">二维码扫描</div>
    +				</span>
    +			</li>
    +			<li id="plus/camera.html" onclick="clicked(this.id)">
    +				<span class="item">Camera
    +					<div class="chs">摄像头拍照/录像</div>
    +				</span>
    +			</li>
    +			<li id="plus/device.html" onclick="clicked(this.id)">
    +				<span class="item">Device
    +					<div class="chs">设备信息</div>
    +				</span>
    +			</li>
    +			<li id="plus/downloader.html" onclick="clicked(this.id)">
    +				<span class="item">Downloader
    +					<div class="chs">下载管理</div>
    +				</span>
    +			</li>
    +			<li id="plus/events.html" onclick="clicked(this.id)">
    +				<span class="item">Events
    +					<div class="chs">系统事件</div>
    +				</span>
    +			</li>
    +			<li id="plus/file.html" onclick="clicked(this.id)">
    +				<span class="item">File System
    +					<div class="chs">文件系统</div>
    +				</span>
    +			</li>
    +			<li id="plus/gallery.html" onclick="clicked(this.id)">
    +				<span class="item">Gallery
    +					<div class="chs">系统相册</div>
    +				</span>
    +			</li>
    +			<li id="plus/geolocation.html" onclick="clicked(this.id)">
    +				<span class="item">Geolocation
    +					<div class="chs">地理定位</div>
    +				</span>
    +			</li>
    +			<li id="plus/maps.html" onclick="clicked(this.id)">
    +				<span class="item">Maps
    +					<div class="chs">地图</div>
    +				</span>
    +			</li>
    +			<li id="plus/message.html" onclick="clicked(this.id)">
    +				<span class="item">Messaging
    +					<div class="chs">消息通讯</div>
    +				</span>
    +			</li>
    +			<li id="plus/nativeobj.html" onclick="clicked(this.id)">
    +				<span class="item">NativeObj
    +					<div class="chs">原生对象</div>
    +				</span>
    +			</li>
    +			<li id="plus/nativeui.html" onclick="clicked(this.id)">
    +				<span class="item">NativeUI
    +					<div class="chs">原生界面</div>
    +				</span>
    +			</li>
    +			<li id="plus/navigator.html" onclick="clicked(this.id)">
    +				<span class="item">Navigator
    +					<div class="chs">浏览器环境</div>
    +				</span>
    +			</li>
    +			<li id="plus/oauth.html" onclick="clicked(this.id)">
    +				<span class="item">OAuth
    +					<div class="chs">授权登录认证</div>
    +				</span>
    +			</li>
    +			<li id="plus/orientation.html" onclick="clicked(this.id)">
    +				<span class="item">Orientation
    +					<div class="chs">方向传感器</div>
    +				</span>
    +			</li>
    +			<li id="plus/payment.html" onclick="clicked(this.id)">
    +				<span class="item">Payment
    +					<div class="chs">支付</div>
    +				</span>
    +			</li>
    +			<li id="plus/proximity.html" onclick="clicked(this.id)">
    +				<span class="item">Proximity
    +					<div class="chs">距离传感器</div>
    +				</span>
    +			</li>
    +			<li id="plus/push.html" onclick="clicked(this.id)">
    +				<span class="item">Push
    +					<div class="chs">消息推送</div>
    +				</span>
    +			</li>
    +			<li id="plus/runtime.html" onclick="clicked(this.id)">
    +				<span class="item">Runtime
    +					<div class="chs">运行环境</div>
    +				</span>
    +			</li>
    +			<li id="plus/share.html" onclick="clicked(this.id)">
    +				<span class="item">Share
    +					<div class="chs">分享</div>
    +				</span>
    +			</li>
    +			<li id="plus/speech.html" onclick="clicked(this.id)">
    +				<span class="item">Speech
    +					<div class="chs">语音识别</div>
    +				</span>
    +			</li>
    +			<li id="plus/statistic.html" onclick="clicked(this.id)">
    +				<span class="item">Statistic
    +					<div class="chs">统计管理</div>
    +				</span>
    +			</li>
    +			<li id="plus/storage.html" onclick="clicked(this.id)">
    +				<span class="item">Storage
    +					<div class="chs">本地数据存储</div>
    +				</span>
    +			</li>
    +			<li id="plus/uploader.html" onclick="clicked(this.id)">
    +				<span class="item">Uploader
    +					<div class="chs">上传管理</div>
    +				</span>
    +			</li>
    +			<li id="plus/webview.html" onclick="clicked(this.id)">
    +				<span class="item">Webview
    +					<div class="chs">窗口管理</div>
    +				</span>
    +			</li>
    +			<li id="plus/xhr.html" onclick="clicked(this.id)">
    +				<span class="item">XMLHttpRequest
    +					<div class="chs">跨域请求</div>
    +				</span>
    +			</li>
    +			<li id="plus/zip.html" onclick="clicked(this.id)">
    +				<span class="item">ZIP
    +					<div class="chs">文件压缩/解压</div>
    +				</span>
    +			</li>
    +			<li id="plus/njs.html" onclick="clicked(this.id)">
    +				<span class="item">Native.JS
    +					<div class="chs">JS调用原生代码</div>
    +				</span>
    +			</li>
    +		</ul>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="js/immersed.js" ></script>
    +	<script type="text/javascript" src="js/shortcut.js" ></script>
    +	<script type="text/javascript">
    +;(function () {
    +	'use strict';
    +
    +	/**
    +	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
    +	 *
    +	 * @codingstandard ftlabs-jsv2
    +	 * @copyright The Financial Times Limited [All Rights Reserved]
    +	 * @license MIT License (see LICENSE.txt)
    +	 */
    +
    +	/*jslint browser:true, node:true*/
    +	/*global define, Event, Node*/
    +
    +
    +	/**
    +	 * Instantiate fast-clicking listeners on the specified layer.
    +	 *
    +	 * @constructor
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	function FastClick(layer, options) {
    +		var oldOnClick;
    +
    +		options = options || {};
    +
    +		/**
    +		 * Whether a click is currently being tracked.
    +		 *
    +		 * @type boolean
    +		 */
    +		this.trackingClick = false;
    +
    +
    +		/**
    +		 * Timestamp for when click tracking started.
    +		 *
    +		 * @type number
    +		 */
    +		this.trackingClickStart = 0;
    +
    +
    +		/**
    +		 * The element being tracked for a click.
    +		 *
    +		 * @type EventTarget
    +		 */
    +		this.targetElement = null;
    +
    +
    +		/**
    +		 * X-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartX = 0;
    +
    +
    +		/**
    +		 * Y-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartY = 0;
    +
    +
    +		/**
    +		 * ID of the last touch, retrieved from Touch.identifier.
    +		 *
    +		 * @type number
    +		 */
    +		this.lastTouchIdentifier = 0;
    +
    +
    +		/**
    +		 * Touchmove boundary, beyond which a click will be cancelled.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchBoundary = options.touchBoundary || 10;
    +
    +
    +		/**
    +		 * The FastClick layer.
    +		 *
    +		 * @type Element
    +		 */
    +		this.layer = layer;
    +
    +		/**
    +		 * The minimum time between tap(touchstart and touchend) events
    +		 *
    +		 * @type number
    +		 */
    +		this.tapDelay = options.tapDelay || 200;
    +
    +		/**
    +		 * The maximum time for a tap
    +		 *
    +		 * @type number
    +		 */
    +		this.tapTimeout = options.tapTimeout || 700;
    +
    +		if (FastClick.notNeeded(layer)) {
    +			return;
    +		}
    +
    +		// Some old versions of Android don't have Function.prototype.bind
    +		function bind(method, context) {
    +			return function() { return method.apply(context, arguments); };
    +		}
    +
    +
    +		var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
    +		var context = this;
    +		for (var i = 0, l = methods.length; i < l; i++) {
    +			context[methods[i]] = bind(context[methods[i]], context);
    +		}
    +
    +		// Set up event handlers as required
    +		if (deviceIsAndroid) {
    +			layer.addEventListener('mouseover', this.onMouse, true);
    +			layer.addEventListener('mousedown', this.onMouse, true);
    +			layer.addEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.addEventListener('click', this.onClick, true);
    +		layer.addEventListener('touchstart', this.onTouchStart, false);
    +		layer.addEventListener('touchmove', this.onTouchMove, false);
    +		layer.addEventListener('touchend', this.onTouchEnd, false);
    +		layer.addEventListener('touchcancel', this.onTouchCancel, false);
    +
    +		// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +		// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
    +		// layer when they are cancelled.
    +		if (!Event.prototype.stopImmediatePropagation) {
    +			layer.removeEventListener = function(type, callback, capture) {
    +				var rmv = Node.prototype.removeEventListener;
    +				if (type === 'click') {
    +					rmv.call(layer, type, callback.hijacked || callback, capture);
    +				} else {
    +					rmv.call(layer, type, callback, capture);
    +				}
    +			};
    +
    +			layer.addEventListener = function(type, callback, capture) {
    +				var adv = Node.prototype.addEventListener;
    +				if (type === 'click') {
    +					adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
    +						if (!event.propagationStopped) {
    +							callback(event);
    +						}
    +					}), capture);
    +				} else {
    +					adv.call(layer, type, callback, capture);
    +				}
    +			};
    +		}
    +
    +		// If a handler is already declared in the element's onclick attribute, it will be fired before
    +		// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
    +		// adding it as listener.
    +		if (typeof layer.onclick === 'function') {
    +
    +			// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
    +			// - the old one won't work if passed to addEventListener directly.
    +			oldOnClick = layer.onclick;
    +			layer.addEventListener('click', function(event) {
    +				oldOnClick(event);
    +			}, false);
    +			layer.onclick = null;
    +		}
    +	}
    +
    +	/**
    +	* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
    +	*
    +	* @type boolean
    +	*/
    +	var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
    +
    +	/**
    +	 * Android requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS 4 requires an exception for select elements.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
    +
    +
    +	/**
    +	 * iOS 6.0-7.* requires the target element to be manually derived
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
    +
    +	/**
    +	 * BlackBerry requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
    +
    +	/**
    +	 * Determine whether a given element requires a native click.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element needs a native click
    +	 */
    +	FastClick.prototype.needsClick = function(target) {
    +		switch (target.nodeName.toLowerCase()) {
    +
    +		// Don't send a synthetic click to disabled inputs (issue #62)
    +		case 'button':
    +		case 'select':
    +		case 'textarea':
    +			if (target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'input':
    +
    +			// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
    +			if ((deviceIsIOS && target.type === 'file') || target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'label':
    +		case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
    +		case 'video':
    +			return true;
    +		}
    +
    +		return (/\bneedsclick\b/).test(target.className);
    +	};
    +
    +
    +	/**
    +	 * Determine whether a given element requires a call to focus to simulate click into element.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
    +	 */
    +	FastClick.prototype.needsFocus = function(target) {
    +		switch (target.nodeName.toLowerCase()) {
    +		case 'textarea':
    +			return true;
    +		case 'select':
    +			return !deviceIsAndroid;
    +		case 'input':
    +			switch (target.type) {
    +			case 'button':
    +			case 'checkbox':
    +			case 'file':
    +			case 'image':
    +			case 'radio':
    +			case 'submit':
    +				return false;
    +			}
    +
    +			// No point in attempting to focus disabled inputs
    +			return !target.disabled && !target.readOnly;
    +		default:
    +			return (/\bneedsfocus\b/).test(target.className);
    +		}
    +	};
    +
    +
    +	/**
    +	 * Send a click event to the specified element.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 * @param {Event} event
    +	 */
    +	FastClick.prototype.sendClick = function(targetElement, event) {
    +		var clickEvent, touch;
    +
    +		// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
    +		if (document.activeElement && document.activeElement !== targetElement) {
    +			document.activeElement.blur();
    +		}
    +
    +		touch = event.changedTouches[0];
    +
    +		// Synthesise a click event, with an extra attribute so it can be tracked
    +		clickEvent = document.createEvent('MouseEvents');
    +		clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
    +		clickEvent.forwardedTouchEvent = true;
    +		targetElement.dispatchEvent(clickEvent);
    +	};
    +
    +	FastClick.prototype.determineEventType = function(targetElement) {
    +
    +		//Issue #159: Android Chrome Select Box does not open with a synthetic click event
    +		if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
    +			return 'mousedown';
    +		}
    +
    +		return 'click';
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.focus = function(targetElement) {
    +		var length;
    +
    +		// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
    +		if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
    +			length = targetElement.value.length;
    +			targetElement.setSelectionRange(length, length);
    +		} else {
    +			targetElement.focus();
    +		}
    +	};
    +
    +
    +	/**
    +	 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.updateScrollParent = function(targetElement) {
    +		var scrollParent, parentElement;
    +
    +		scrollParent = targetElement.fastClickScrollParent;
    +
    +		// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
    +		// target element was moved to another parent.
    +		if (!scrollParent || !scrollParent.contains(targetElement)) {
    +			parentElement = targetElement;
    +			do {
    +				if (parentElement.scrollHeight > parentElement.offsetHeight) {
    +					scrollParent = parentElement;
    +					targetElement.fastClickScrollParent = parentElement;
    +					break;
    +				}
    +
    +				parentElement = parentElement.parentElement;
    +			} while (parentElement);
    +		}
    +
    +		// Always update the scroll top tracker if possible.
    +		if (scrollParent) {
    +			scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
    +		}
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget} targetElement
    +	 * @returns {Element|EventTarget}
    +	 */
    +	FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
    +
    +		// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
    +		if (eventTarget.nodeType === Node.TEXT_NODE) {
    +			return eventTarget.parentNode;
    +		}
    +
    +		return eventTarget;
    +	};
    +
    +
    +	/**
    +	 * On touch start, record the position and scroll offset.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchStart = function(event) {
    +		var targetElement, touch, selection;
    +
    +		// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
    +		if (event.targetTouches.length > 1) {
    +			return true;
    +		}
    +
    +		targetElement = this.getTargetElementFromEventTarget(event.target);
    +		touch = event.targetTouches[0];
    +
    +		if (deviceIsIOS) {
    +
    +			// Only trusted events will deselect text on iOS (issue #49)
    +			selection = window.getSelection();
    +			if (selection.rangeCount && !selection.isCollapsed) {
    +				return true;
    +			}
    +
    +			if (!deviceIsIOS4) {
    +
    +				// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
    +				// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
    +				// with the same identifier as the touch event that previously triggered the click that triggered the alert.
    +				// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
    +				// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
    +				// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
    +				// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
    +				// random integers, it's safe to to continue if the identifier is 0 here.
    +				if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
    +					event.preventDefault();
    +					return false;
    +				}
    +
    +				this.lastTouchIdentifier = touch.identifier;
    +
    +				// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
    +				// 1) the user does a fling scroll on the scrollable layer
    +				// 2) the user stops the fling scroll with another tap
    +				// then the event.target of the last 'touchend' event will be the element that was under the user's finger
    +				// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
    +				// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
    +				this.updateScrollParent(targetElement);
    +			}
    +		}
    +
    +		this.trackingClick = true;
    +		this.trackingClickStart = event.timeStamp;
    +		this.targetElement = targetElement;
    +
    +		this.touchStartX = touch.pageX;
    +		this.touchStartY = touch.pageY;
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			event.preventDefault();
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.touchHasMoved = function(event) {
    +		var touch = event.changedTouches[0], boundary = this.touchBoundary;
    +
    +		if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Update the last position.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchMove = function(event) {
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// If the touch has moved, cancel the click tracking
    +		if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
    +			this.trackingClick = false;
    +			this.targetElement = null;
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Attempt to find the labelled control for the given label element.
    +	 *
    +	 * @param {EventTarget|HTMLLabelElement} labelElement
    +	 * @returns {Element|null}
    +	 */
    +	FastClick.prototype.findControl = function(labelElement) {
    +
    +		// Fast path for newer browsers supporting the HTML5 control attribute
    +		if (labelElement.control !== undefined) {
    +			return labelElement.control;
    +		}
    +
    +		// All browsers under test that support touch events also support the HTML5 htmlFor attribute
    +		if (labelElement.htmlFor) {
    +			return document.getElementById(labelElement.htmlFor);
    +		}
    +
    +		// If no for attribute exists, attempt to retrieve the first labellable descendant element
    +		// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
    +		return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
    +	};
    +
    +
    +	/**
    +	 * On touch end, determine whether to send a click event at once.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchEnd = function(event) {
    +		var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
    +
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			this.cancelNextClick = true;
    +			return true;
    +		}
    +
    +		if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
    +			return true;
    +		}
    +
    +		// Reset to prevent wrong click cancel on input (issue #156).
    +		this.cancelNextClick = false;
    +
    +		this.lastClickTime = event.timeStamp;
    +
    +		trackingClickStart = this.trackingClickStart;
    +		this.trackingClick = false;
    +		this.trackingClickStart = 0;
    +
    +		// On some iOS devices, the targetElement supplied with the event is invalid if the layer
    +		// is performing a transition or scroll, and has to be re-detected manually. Note that
    +		// for this to function correctly, it must be called *after* the event target is checked!
    +		// See issue #57; also filed as rdar://13048589 .
    +		if (deviceIsIOSWithBadTarget) {
    +			touch = event.changedTouches[0];
    +
    +			// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
    +			targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
    +			targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
    +		}
    +
    +		targetTagName = targetElement.tagName.toLowerCase();
    +		if (targetTagName === 'label') {
    +			forElement = this.findControl(targetElement);
    +			if (forElement) {
    +				this.focus(targetElement);
    +				if (deviceIsAndroid) {
    +					return false;
    +				}
    +
    +				targetElement = forElement;
    +			}
    +		} else if (this.needsFocus(targetElement)) {
    +
    +			// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
    +			// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
    +			if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
    +				this.targetElement = null;
    +				return false;
    +			}
    +
    +			this.focus(targetElement);
    +			this.sendClick(targetElement, event);
    +
    +			// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
    +			// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
    +			if (!deviceIsIOS || targetTagName !== 'select') {
    +				this.targetElement = null;
    +				event.preventDefault();
    +			}
    +
    +			return false;
    +		}
    +
    +		if (deviceIsIOS && !deviceIsIOS4) {
    +
    +			// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
    +			// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
    +			scrollParent = targetElement.fastClickScrollParent;
    +			if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
    +				return true;
    +			}
    +		}
    +
    +		// Prevent the actual click from going though - unless the target node is marked as requiring
    +		// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
    +		if (!this.needsClick(targetElement)) {
    +			event.preventDefault();
    +			this.sendClick(targetElement, event);
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * On touch cancel, stop tracking the click.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.onTouchCancel = function() {
    +		this.trackingClick = false;
    +		this.targetElement = null;
    +	};
    +
    +
    +	/**
    +	 * Determine mouse events which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onMouse = function(event) {
    +
    +		// If a target element was never set (because a touch event was never fired) allow the event
    +		if (!this.targetElement) {
    +			return true;
    +		}
    +
    +		if (event.forwardedTouchEvent) {
    +			return true;
    +		}
    +
    +		// Programmatically generated events targeting a specific element should be permitted
    +		if (!event.cancelable) {
    +			return true;
    +		}
    +
    +		// Derive and check the target element to see whether the mouse event needs to be permitted;
    +		// unless explicitly enabled, prevent non-touch click events from triggering actions,
    +		// to prevent ghost/doubleclicks.
    +		if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
    +
    +			// Prevent any user-added listeners declared on FastClick element from being fired.
    +			if (event.stopImmediatePropagation) {
    +				event.stopImmediatePropagation();
    +			} else {
    +
    +				// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +				event.propagationStopped = true;
    +			}
    +
    +			// Cancel the event
    +			event.stopPropagation();
    +			event.preventDefault();
    +
    +			return false;
    +		}
    +
    +		// If the mouse event is permitted, return true for the action to go through.
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * On actual clicks, determine whether this is a touch-generated click, a click action occurring
    +	 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
    +	 * an actual click which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onClick = function(event) {
    +		var permitted;
    +
    +		// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
    +		if (this.trackingClick) {
    +			this.targetElement = null;
    +			this.trackingClick = false;
    +			return true;
    +		}
    +
    +		// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
    +		if (event.target.type === 'submit' && event.detail === 0) {
    +			return true;
    +		}
    +
    +		permitted = this.onMouse(event);
    +
    +		// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
    +		if (!permitted) {
    +			this.targetElement = null;
    +		}
    +
    +		// If clicks are permitted, return true for the action to go through.
    +		return permitted;
    +	};
    +
    +
    +	/**
    +	 * Remove all FastClick's event listeners.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.destroy = function() {
    +		var layer = this.layer;
    +
    +		if (deviceIsAndroid) {
    +			layer.removeEventListener('mouseover', this.onMouse, true);
    +			layer.removeEventListener('mousedown', this.onMouse, true);
    +			layer.removeEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.removeEventListener('click', this.onClick, true);
    +		layer.removeEventListener('touchstart', this.onTouchStart, false);
    +		layer.removeEventListener('touchmove', this.onTouchMove, false);
    +		layer.removeEventListener('touchend', this.onTouchEnd, false);
    +		layer.removeEventListener('touchcancel', this.onTouchCancel, false);
    +	};
    +
    +
    +	/**
    +	 * Check whether FastClick is needed.
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 */
    +	FastClick.notNeeded = function(layer) {
    +		var metaViewport;
    +		var chromeVersion;
    +		var blackberryVersion;
    +		var firefoxVersion;
    +
    +		// Devices that don't support touch don't need FastClick
    +		if (typeof window.ontouchstart === 'undefined') {
    +			return true;
    +		}
    +
    +		// Chrome version - zero for other browsers
    +		chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (chromeVersion) {
    +
    +			if (deviceIsAndroid) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// Chrome 32 and above with width=device-width or less don't need FastClick
    +					if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +
    +			// Chrome desktop doesn't need FastClick (issue #15)
    +			} else {
    +				return true;
    +			}
    +		}
    +
    +		if (deviceIsBlackBerry10) {
    +			blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
    +
    +			// BlackBerry 10.3+ does not require Fastclick library.
    +			// https://github.com/ftlabs/fastclick/issues/251
    +			if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// user-scalable=no eliminates click delay.
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// width=device-width (or less than device-width) eliminates click delay.
    +					if (document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +			}
    +		}
    +
    +		// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
    +		if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		// Firefox version - zero for other browsers
    +		firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (firefoxVersion >= 27) {
    +			// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
    +
    +			metaViewport = document.querySelector('meta[name=viewport]');
    +			if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
    +				return true;
    +			}
    +		}
    +
    +		// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
    +		// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
    +		if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Factory method for creating a FastClick object
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	FastClick.attach = function(layer, options) {
    +		return new FastClick(layer, options);
    +	};
    +
    +
    +	if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
    +
    +		// AMD. Register as an anonymous module.
    +		define(function() {
    +			return FastClick;
    +		});
    +	} else if (typeof module !== 'undefined' && module.exports) {
    +		module.exports = FastClick.attach;
    +		module.exports.FastClick = FastClick;
    +	} else {
    +		window.FastClick = FastClick;
    +	}
    +
    +document.addEventListener('DOMContentLoaded', function() {
    +    FastClick.attach(document.body);
    +}, false);
    +
    +}());
    +	</script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/BMapLib_RichMarker.js b/fangija-zsyf/js/BMapLib_RichMarker.js
    new file mode 100644
    index 0000000..a7af6a8
    --- /dev/null
    +++ b/fangija-zsyf/js/BMapLib_RichMarker.js
    @@ -0,0 +1,1125 @@
    +/**
    + * @fileoverview °ٶȵØͼµĸ»MarkerÀ࣬¶ÔÍ⿪·š£
    + * ÔÊÐíÓû§ÔÚ×Զ¨Òå·ḻµÄMarkerչÏ֣¬²¢Ìí¼ӵã»÷¡¢˫»÷¡¢ÍÏקµÈʼþ¡£
    + * »ùÓÚBaidu Map API 1.2¡£
    + *
    + * @author Baidu Map Api Group
    + * @version 1.2
    + */
    +/**
    + * @namespace BMapµÄËùÓÐlibraryÀà¾ù·ÅÔÚBMapLibÃüÃû¿ռäÏÂ
    + */
    +var BMapLib = window.BMapLib = BMapLib || {};
    +(function () {
    +    /**
    +     * ÉùÃ÷baidu°ü
    +     */
    +    var baidu = baidu || {
    +            guid: "$BAIDU$"
    +        };
    +    (function () {
    +        // һЩҳÃ漶±ðΨһµÄÊôÐԣ¬ÐèҪ¹ÒÔØÔÚwindow[baidu.guid]ÉÏ
    +        window[baidu.guid] = {};
    +
    +        /**
    +         * ½«Դ¶ÔÏóµÄËùÓÐÊôÐԿ½±´µ½Ŀ±ê¶ÔÏóÖÐ
    +         * @name baidu.extend
    +         * @function
    +         * @grammar baidu.extend(target, source)
    +         * @param {Object} target Ŀ±ê¶ÔÏó
    +         * @param {Object} source Դ¶ÔÏó
    +         * @returns {Object} Ŀ±ê¶ÔÏó
    +         */
    +        baidu.extend = function (target, source) {
    +            for (var p in source) {
    +                if (source.hasOwnProperty(p)) {
    +                    target[p] = source[p];
    +                }
    +            }
    +            return target;
    +        };
    +        /**
    +         * @ignore
    +         * @namespace
    +         * @baidu.lang ¶ÔÓïÑԲãÃæµķâװ£¬°üÀ¨ÀàÐÍÅжϡ¢ģ¿éÀ©չ¡¢¼̳лùÀàÒԼ°¶ÔÏó×Զ¨ÒåʼþµÄ֧³֡£
    +         * @property guid ¶ÔÏóµÄΨһ±êʶ
    +         */
    +        baidu.lang = baidu.lang || {};
    +
    +        /**
    +         * ·µ»Øһ¸öµ±ǰҳÃæµÄΨһ±êʶ×ַû´®¡£
    +         * @function
    +         * @grammar baidu.lang.guid()
    +         * @returns {String} µ±ǰҳÃæµÄΨһ±êʶ×ַû´®
    +         */
    +        baidu.lang.guid = function () {
    +            return "TANGRAM__" + (window[baidu.guid]._counter++).toString(36);
    +        };
    +
    +        window[baidu.guid]._counter = window[baidu.guid]._counter || 1;
    +
    +        /**
    +         * ËùÓÐÀàµÄʵÀýµÄÈÝÆ÷
    +         * keyΪÿ¸öʵÀýµÄguid
    +         */
    +        window[baidu.guid]._instances = window[baidu.guid]._instances || {};
    +
    +        /**
    +         * Tangram¼̳лúÖÆÌṩµÄһ¸ö»ùÀ࣬Óû§¿ÉÒÔͨ¹ý¼̳Ðbaidu.lang.ClassÀ´»ñȡËüµÄÊôÐԼ°·½·¨¡£
    +         * @function
    +         * @name baidu.lang.Class
    +         * @grammar baidu.lang.Class(guid)
    +         * @param {string} guid    ¶ÔÏóµÄΨһ±êʶ
    +         * @meta standard
    +         * @remark baidu.lang.ClassºÍËüµÄ×ÓÀàµÄʵÀý¾ù°üº¬һ¸öȫ¾ÖΨһµıêʶguid¡£
    +         * guidÊÇÔڹ¹Ô캯ÊýÖÐÉú³ɵģ¬Òò´ˣ¬¼̳Ð×Ôbaidu.lang.ClassµÄÀàӦ¸Ãֱ½ӻòÕ߼ä½ӵ÷ÓÃËüµĹ¹Ô캯Êý¡£<br>
    +         * baidu.lang.ClassµĹ¹Ô캯ÊýÖвúÉúguidµķ½ʽ¿ÉÒԱ£֤guidµÄΨһÐԣ¬¼°ÿ¸öʵÀý¶¼ÓÐһ¸öȫ¾ÖΨһµÄguid¡£
    +         */
    +        baidu.lang.Class = function (guid) {
    +            this.guid = guid || baidu.lang.guid();
    +            window[baidu.guid]._instances[this.guid] = this;
    +        };
    +
    +        window[baidu.guid]._instances = window[baidu.guid]._instances || {};
    +        /**
    +         * ÅжÏĿ±ê²ÎÊýÊǷñstringÀàÐͻòString¶ÔÏó
    +         * @name baidu.lang.isString
    +         * @function
    +         * @grammar baidu.lang.isString(source)
    +         * @param {Any} source Ŀ±ê²ÎÊý
    +         * @shortcut isString
    +         * @meta standard
    +         *
    +         * @returns {boolean} ÀàÐÍÅжϽá¹û
    +         */
    +        baidu.lang.isString = function (source) {
    +            return '[object String]' == Object.prototype.toString.call(source);
    +        };
    +        baidu.isString = baidu.lang.isString;
    +
    +        /**
    +         * ÅжÏĿ±ê²ÎÊýÊǷñΪfunction»òFunctionʵÀý
    +         * @name baidu.lang.isFunction
    +         * @function
    +         * @grammar baidu.lang.isFunction(source)
    +         * @param {Any} source Ŀ±ê²ÎÊý
    +         * @returns {boolean} ÀàÐÍÅжϽá¹û
    +         */
    +        baidu.lang.isFunction = function (source) {
    +            return '[object Function]' == Object.prototype.toString.call(source);
    +        };
    +        /**
    +         * ×Զ¨ÒåµÄʼþ¶ÔÏó¡£
    +         * @function
    +         * @name baidu.lang.Event
    +         * @grammar baidu.lang.Event(type[, target])
    +         * @param {string} type     ʼþÀàÐÍÃû³ơ£ΪÁ˷½±ãÇø·ÖʼþºÍһ¸öÆÕͨµķ½·¨£¬Ê¼þÀàÐÍÃû³ƱØÐëÒÔ"on"(Сд)¿ªͷ¡£
    +         * @param {Object} [target]´¥·¢Ê¼þµĶÔÏó
    +         * @meta standard
    +         * @remark ÒýÈë¸Ãģ¿飬»á×Զ¯ΪClassÒýÈë3¸öʼþÀ©չ·½·¨£ºaddEventListener¡¢removeEventListenerºÍdispatchEvent¡£
    +         * @see baidu.lang.Class
    +         */
    +        baidu.lang.Event = function (type, target) {
    +            this.type = type;
    +            this.returnValue = true;
    +            this.target = target || null;
    +            this.currentTarget = null;
    +        };
    +
    +        /**
    +         * ע²á¶ÔÏóµÄʼþ¼àÌýÆ÷¡£ÒýÈëbaidu.lang.Eventºó£¬ClassµÄ×ÓÀàʵÀý²Żá»ñµø÷½·¨¡£
    +         * @grammar obj.addEventListener(type, handler[, key])
    +         * @param    {string}   type         ×Զ¨ÒåʼþµÄÃû³Æ
    +         * @param    {Function} handler      ×Զ¨Òåʼþ±»´¥·¢ʱӦ¸õ÷ÓõĻص÷º¯Êý
    +         * @param    {string}   [key]        Ϊʼþ¼àÌýº¯Êýָ¶¨µÄÃû³ƣ¬¿ÉÔÚÒƳýʱʹÓá£Èç¹û²»Ìṩ£¬·½·¨»áĬÈÏΪËüÉú³Éһ¸öȫ¾ÖΨһµÄkey¡£
    +         * @remark    ʼþÀàÐÍÇø·ִóСд¡£Èç¹û×Զ¨ÒåʼþÃû³Ʋ»ÊÇÒÔСд"on"¿ªͷ£¬¸÷½·¨»á¸øËü¼ÓÉÏ"on"ÔٽøÐÐÅжϣ¬¼´"click"ºÍ"onclick"»ᱻÈÏΪÊÇͬһÖÖʼþ¡£
    +         */
    +        baidu.lang.Class.prototype.addEventListener = function (type, handler, key) {
    +            if (!baidu.lang.isFunction(handler)) {
    +                return;
    +            }
    +            !this.__listeners && (this.__listeners = {});
    +            var t = this.__listeners,
    +                id;
    +            if (typeof key == "string" && key) {
    +                if (/[^\w\-]/.test(key)) {
    +                    throw ("nonstandard key:" + key);
    +                } else {
    +                    handler.hashCode = key;
    +                    id = key;
    +                }
    +            }
    +            type.indexOf("on") != 0 && (type = "on" + type);
    +            typeof t[type] != "object" && (t[type] = {});
    +            id = id || baidu.lang.guid();
    +            handler.hashCode = id;
    +            t[type][id] = handler;
    +        };
    +
    +        /**
    +         * ÒƳý¶ÔÏóµÄʼþ¼àÌýÆ÷¡£ÒýÈëbaidu.lang.Eventºó£¬ClassµÄ×ÓÀàʵÀý²Żá»ñµø÷½·¨¡£
    +         * @grammar obj.removeEventListener(type, handler)
    +         * @param {string}   type     ʼþÀàÐÍ
    +         * @param {Function|string} handler  ҪÒƳýµÄʼþ¼àÌýº¯Êý»òÕ߼àÌýº¯ÊýµÄkey
    +         * @remark    Èç¹ûµڶþ¸ö²ÎÊýhandlerûÓб»°󶨵½¶ÔӦµÄ×Զ¨ÒåʼþÖУ¬ʲôҲ²»×ö¡£
    +         */
    +        baidu.lang.Class.prototype.removeEventListener = function (type, handler) {
    +            if (baidu.lang.isFunction(handler)) {
    +                handler = handler.hashCode;
    +            } else if (!baidu.lang.isString(handler)) {
    +                return;
    +            }
    +            !this.__listeners && (this.__listeners = {});
    +            type.indexOf("on") != 0 && (type = "on" + type);
    +            var t = this.__listeners;
    +            if (!t[type]) {
    +                return;
    +            }
    +            t[type][handler] && delete t[type][handler];
    +        };
    +
    +        /**
    +         * Åɷ¢×Զ¨Òåʼþ£¬ʹµð󶨵½×Զ¨ÒåʼþÉÏÃæµĺ¯Êý¶¼»ᱻִÐС£ÒýÈëbaidu.lang.Eventºó£¬ClassµÄ×ÓÀàʵÀý²Żá»ñµø÷½·¨¡£
    +         * @grammar obj.dispatchEvent(event, options)
    +         * @param {baidu.lang.Event|String} event    Event¶ÔÏ󣬻òʼþÃû³Æ(1.1.1Æð֧³Ö)
    +         * @param {Object} options À©չ²ÎÊý,Ëùº¬ÊôÐԼüֵ»áÀ©չµ½Event¶ÔÏóÉÏ(1.2Æð֧³Ö)
    +         * @remark ´¦Àí»áµ÷ÓÃͨ¹ýaddEventListenr°󶨵Ä×Զ¨Òåʼþ»ص÷º¯Êý֮Í⣬»¹»áµ÷ÓÃֱ½Ӱ󶨵½¶ÔÏóÉÏÃæµÄ×Զ¨Òåʼþ¡£
    +         * ÀýÈ磺<br>
    +         * myobj.onMyEvent = function(){}<br>
    +         * myobj.addEventListener("onMyEvent", function(){});
    +         */
    +        baidu.lang.Class.prototype.dispatchEvent = function (event, options) {
    +            if (baidu.lang.isString(event)) {
    +                event = new baidu.lang.Event(event);
    +            }
    +            !this.__listeners && (this.__listeners = {});
    +            options = options || {};
    +            for (var i in options) {
    +                event[i] = options[i];
    +            }
    +            var i, t = this.__listeners,
    +                p = event.type;
    +            event.target = event.target || this;
    +            event.currentTarget = this;
    +            p.indexOf("on") != 0 && (p = "on" + p);
    +            baidu.lang.isFunction(this[p]) && this[p].apply(this, arguments);
    +            if (typeof t[p] == "object") {
    +                for (i in t[p]) {
    +                    t[p][i].apply(this, arguments);
    +                }
    +            }
    +            return event.returnValue;
    +        };
    +
    +        /**
    +         * @ignore
    +         * @namespace baidu.dom
    +         * ²Ù×÷domµķ½·¨
    +         */
    +        baidu.dom = baidu.dom || {};
    +
    +        /**
    +         * ´ÓÎĵµÖлñȡָ¶¨µÄDOMԪËØ
    +         * **Äڲ¿·½·¨**
    +         *
    +         * @param {string|HTMLElement} id ԪËصÄid»òDOMԪËØ
    +         * @meta standard
    +         * @return {HTMLElement} DOMԪËأ¬Èç¹û²»´æÔڣ¬·µ»Ønull£¬Èç¹û²ÎÊý²»ºϷ¨£¬ֱ½ӷµ»زÎÊý
    +         */
    +        baidu.dom._g = function (id) {
    +            if (baidu.lang.isString(id)) {
    +                return document.getElementById(id);
    +            }
    +            return id;
    +        };
    +        baidu._g = baidu.dom._g;
    +
    +        /**
    +         * @ignore
    +         * @namespace baidu.event ÆÁ±Îä¯ÀÀÆ÷²îÒìÐԵÄʼþ·âװ¡£
    +         * @property target    ʼþµĴ¥·¢ԪËØ
    +         * @property pageX        Êó±êʼþµÄÊó±êx×ø±ê
    +         * @property pageY        Êó±êʼþµÄÊó±êy×ø±ê
    +         * @property keyCode    ¼üÅÌʼþµļüֵ
    +         */
    +        baidu.event = baidu.event || {};
    +
    +        /**
    +         * ʼþ¼àÌýÆ÷µĴ洢±í
    +         * @private
    +         * @meta standard
    +         */
    +        baidu.event._listeners = baidu.event._listeners || [];
    +
    +        /**
    +         * ΪĿ±êԪËØÌí¼Óʼþ¼àÌýÆ÷
    +         * @name baidu.event.on
    +         * @function
    +         * @grammar baidu.event.on(element, type, listener)
    +         * @param {HTMLElement|string|window} element Ŀ±êԪËػòĿ±êԪËØid
    +         * @param {string} type ʼþÀàÐÍ
    +         * @param {Function} listener ÐèҪÌí¼ӵļàÌýÆ÷
    +         * @remark
    +         *
    +         1. ²»֧³ֿçä¯ÀÀÆ÷µÄÊó±ê¹öÂÖʼþ¼àÌýÆ÷Ìí¼Ó<br>
    +         2. ¸ķ½·¨²»Ϊ¼àÌýÆ÷¹àÈëʼþ¶ÔÏó£¬ÒԷÀֹ¿çiframeʼþ¹ÒÔصÄʼþ¶ÔÏó»ñȡʧ°Ü
    +
    +         * @shortcut on
    +         * @meta standard
    +         * @see baidu.event.un
    +         * @returns {HTMLElement|window} Ŀ±êԪËØ
    +         */
    +        baidu.event.on = function (element, type, listener) {
    +            type = type.replace(/^on/i, '');
    +            element = baidu.dom._g(element);
    +
    +            var realListener = function (ev) {
    +                    listener.call(element, ev);
    +                },
    +                lis = baidu.event._listeners,
    +                filter = baidu.event._eventFilter,
    +                afterFilter, realType = type;
    +            type = type.toLowerCase();
    +            if (filter && filter[type]) {
    +                afterFilter = filter[type](element, type, realListener);
    +                realType = afterFilter.type;
    +                realListener = afterFilter.listener;
    +            }
    +            if (element.addEventListener) {
    +                element.addEventListener(realType, realListener, false);
    +            } else if (element.attachEvent) {
    +                element.attachEvent('on' + realType, realListener);
    +            }
    +            lis[lis.length] = [element, type, listener, realListener, realType];
    +            return element;
    +        };
    +        baidu.on = baidu.event.on;
    +
    +        /**
    +         * ΪĿ±êԪËØÒƳýʼþ¼àÌýÆ÷
    +         * @name baidu.event.un
    +         * @function
    +         * @grammar baidu.event.un(element, type, listener)
    +         * @param {HTMLElement|string|window} element Ŀ±êԪËػòĿ±êԪËØid
    +         * @param {string} type ʼþÀàÐÍ
    +         * @param {Function} listener ÐèҪÒƳýµļàÌýÆ÷
    +         * @shortcut un
    +         * @meta standard
    +         * @see baidu.event.on
    +         *
    +         * @returns {HTMLElement|window} Ŀ±êԪËØ
    +         */
    +        baidu.event.un = function (element, type, listener) {
    +            element = baidu.dom._g(element);
    +            type = type.replace(/^on/i, '').toLowerCase();
    +
    +            var lis = baidu.event._listeners,
    +                len = lis.length,
    +                isRemoveAll = !listener,
    +                item, realType, realListener;
    +            while (len--) {
    +                item = lis[len];
    +                if (item[1] === type && item[0] === element && (isRemoveAll || item[2] === listener)) {
    +                    realType = item[4];
    +                    realListener = item[3];
    +                    if (element.removeEventListener) {
    +                        element.removeEventListener(realType, realListener, false);
    +                    } else if (element.detachEvent) {
    +                        element.detachEvent('on' + realType, realListener);
    +                    }
    +                    lis.splice(len, 1);
    +                }
    +            }
    +
    +            return element;
    +        };
    +        baidu.un = baidu.event.un;
    +
    +        /**
    +         * ×èֹʼþµÄĬÈÏÐÐΪ
    +         * @name baidu.event.preventDefault
    +         * @function
    +         * @grammar baidu.event.preventDefault(event)
    +         * @param {Event} event ʼþ¶ÔÏó
    +         * @meta standard
    +         */
    +        baidu.preventDefault = baidu.event.preventDefault = function (event) {
    +            if (event.preventDefault) {
    +                event.preventDefault();
    +            } else {
    +                event.returnValue = false;
    +            }
    +        };
    +    })();
    +
    +    /**
    +     * @exports RichMarker as BMapLib.RichMarker
    +     */
    +    var RichMarker =
    +    /**
    +     * RichMarkerÀàµĹ¹Ô캯Êý
    +     * @class ¸»Marker¶¨ÒåÀ࣬ʵÏַḻµÄMarkerչÏÖЧ¹û¡£
    +     *
    +     * @constructor
    +     * @param {String | HTMLElement} content Óû§×Զ¨ÒåµÄMarkerÄÚÈݣ¬¿ÉÒÔÊÇ×ַû´®£¬Ҳ¿ÉÒÔÊÇdom½ڵã
    +     * @param {BMap.Point} position markerµÄλÖÃ
    +     * @param {Json} RichMarkerOptions ¿ÉѡµÄÊäÈë²ÎÊý£¬·DZØÌîÏ¿ÉÊäÈëѡÏî°üÀ¨£º<br />
    +     * {"<b>anchor</b>" : {BMap.Size} MarkerµĵÄλÖÃƫÒÆֵ,
    +      * <br />"<b>enableDragging</b>" : {Boolean} ÊǷñÆôÓÃÍÏק£¬ĬÈÏΪfalse}
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * var map = new BMap.Map("container");
    +     * map.centerAndZoom(new BMap.Point(116.309965, 40.058333), 17);
    +     * var htm = "<div style='background:#E7F0F5;color:#0082CB;border:1px solid #333'>"
    +     *              +     "»¶ӭʹÓðٶȵØͼ£¡"
    +     *              +     "<img src='http://map.baidu.com/img/logo-map.gif' border='0' />"
    +     *              + "</div>";
    +     * var point = new BMap.Point(116.30816, 40.056863);
    +     * var myRichMarkerObject = new BMapLib.RichMarker(htm, point, {"anchor": new BMap.Size(-72, -84), "enableDragging": true});
    +     * map.addOverlay(myRichMarkerObject);
    +     */
    +        BMapLib.RichMarker = function (content, position, opts) {
    +            if (!content || !position || !(position instanceof BMap.Point)) {
    +                return;
    +            }
    +
    +            /**
    +             * map¶ÔÏó
    +             * @private
    +             * @type {Map}
    +             */
    +            this._map = null;
    +
    +            /**
    +             * MarkerÄÚÈÝ
    +             * @private
    +             * @type {String | HTMLElement}
    +             */
    +            this._content = content;
    +
    +            /**
    +             * markerÏÔʾλÖÃ
    +             * @private
    +             * @type {BMap.Point}
    +             */
    +            this._position = position;
    +
    +            /**
    +             * markerÖ÷ÈÝÆ÷
    +             * @private
    +             * @type {HTMLElement}
    +             */
    +            this._container = null;
    +
    +            /**
    +             * markerÖ÷ÈÝÆ÷µijߴç
    +             * @private
    +             * @type {BMap.Size}
    +             */
    +            this._size = null;
    +
    +            opts = opts || {};
    +            /**
    +             * _optsÊÇĬÈϲÎÊý¸³ֵ¡£
    +             * ÏÂÃæͨ¹ýÓû§ÊäÈëµÄopts£¬¶ÔĬÈϲÎÊý¸³ֵ
    +             * @private
    +             * @type {Json}
    +             */
    +            this._opts = baidu.extend(
    +                baidu.extend(this._opts || {}, {
    +
    +                    /**
    +                     * MarkerÊǷñ¿ÉÒÔÍÏק
    +                     * @private
    +                     * @type {Boolean}
    +                     */
    +                    enableDragging: false,
    +
    +                    /**
    +                     * MarkerµÄƫÒÆÁ¿
    +                     * @private
    +                     * @type {BMap.Size}
    +                     */
    +                    anchor: new BMap.Size(0, 0)
    +                }), opts);
    +        }
    +
    +    // ¼̳и²¸ÇÎïÀà
    +    RichMarker.prototype = new BMap.Overlay();
    +
    +    /**
    +     * ³õʼ»¯£¬ʵÏÖ×Զ¨Ò帲¸ÇÎïµÄinitialize·½·¨
    +     * Ö÷ҪÉú³ÉMarkerµÄÖ÷ÈÝÆ÷£¬Ìî³ä×Զ¨ÒåµÄÄÚÈݣ¬²¢¸½¼Óʼþ
    +     *
    +     * @private
    +     * @param {BMap} map mapʵÀý¶ÔÏó
    +     * @return {Dom} ·µ»Ø×Զ¨ÒåÉú³ɵÄdom½ڵã
    +     */
    +    RichMarker.prototype.initialize = function (map) {
    +        var me = this,
    +            div = me._container = document.createElement("div");
    +        me._map = map;
    +        baidu.extend(div.style, {
    +            position: "absolute",
    +            zIndex: BMap.Overlay.getZIndex(me._position.lat),
    +            // background: "#FFF",
    +            cursor: "pointer"
    +        });
    +        map.getPanes().labelPane.appendChild(div);
    +
    +        // ¸øÖ÷ÈÝÆ÷Ìí¼ÓÉÏÓû§×Զ¨ÒåµÄÄÚÈÝ
    +        me._appendContent();
    +        // ¸øÖ÷ÈÝÆ÷Ìí¼Óʼþ´¦Àí
    +        me._setEventDispath();
    +        // »ñȡÖ÷ÈÝÆ÷µĸ߿í
    +        me._getContainerSize();
    +
    +        return div;
    +    }
    +
    +    /**
    +     * Ϊ×Զ¨ÒåµÄMarkerÉ趨ÏÔʾλÖã¬ʵÏÖ×Զ¨Ò帲¸ÇÎïµÄdraw·½·¨
    +     *
    +     * @private
    +     */
    +    RichMarker.prototype.draw = function () {
    +        var map = this._map,
    +            anchor = this._opts.anchor,
    +            pixel = map.pointToOverlayPixel(this._position);
    +        this._container.style.left = pixel.x + anchor.width + "px";
    +        this._container.style.top = pixel.y + anchor.height + "px";
    +    }
    +
    +    /**
    +     * ÉèÖÃMarker¿ÉÒÔÍÏק
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.enableDragging();
    +     */
    +    RichMarker.prototype.enableDragging = function () {
    +        this._opts.enableDragging = true;
    +    }
    +
    +    /**
    +     * ÉèÖÃMarker²»ÄÜÍÏק
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.disableDragging();
    +     */
    +    RichMarker.prototype.disableDragging = function () {
    +        this._opts.enableDragging = false;
    +    }
    +
    +    /**
    +     * »ñȡMarkerÊǷñÄܱ»ÍÏקµÄ״̬
    +     * @return {Boolean} trueΪ¿ÉÒÔÍÏק£¬falseΪ²»Äܱ»ÍÏק
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.isDraggable();
    +     */
    +    RichMarker.prototype.isDraggable = function () {
    +        return this._opts.enableDragging;
    +    }
    +
    +    /**
    +     * »ñȡMarkerµÄÏÔʾλÖÃ
    +     * @return {BMap.Point} ÏÔʾµÄλÖÃ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.getPosition();
    +     */
    +    RichMarker.prototype.getPosition = function () {
    +        return this._position;
    +    }
    +
    +    /**
    +     * ÉèÖÃMarkerµÄÏÔʾλÖÃ
    +     * @param {BMap.Point} position ÐèҪÉèÖõÄλÖÃ
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.setPosition(new BMap.Point(116.30816, 40.056863));
    +     */
    +    RichMarker.prototype.setPosition = function (position) {
    +        if (!position instanceof BMap.Point) {
    +            return;
    +        }
    +        this._position = position;
    +        this.draw();
    +    }
    +
    +    /**
    +     * »ñȡMarkerµÄƫÒÆÁ¿
    +     * @return {BMap.Size} MarkerµÄƫÒÆÁ¿
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.getAnchor();
    +     */
    +    RichMarker.prototype.getAnchor = function () {
    +        return this._opts.anchor;
    +    }
    +
    +    /**
    +     * ÉèÖÃMarkerµÄƫÒÆÁ¿
    +     * @param {BMap.Size} anchor ÐèҪÉèÖõÄƫÒÆÁ¿
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.setAnchor(new BMap.Size(-72, -84));
    +     */
    +    RichMarker.prototype.setAnchor = function (anchor) {
    +        if (!anchor instanceof BMap.Size) {
    +            return;
    +        }
    +        this._opts.anchor = anchor;
    +        this.draw();
    +    }
    +
    +    /**
    +     * Ìí¼ÓÓû§µÄ×Զ¨ÒåµÄÄÚÈÝ
    +     *
    +     * @private
    +     * @return Î޷µ»Øֵ
    +     */
    +    RichMarker.prototype._appendContent = function () {
    +        var content = this._content;
    +        // Óû§ÊäÈëµÄÄÚÈÝÊÇ×ַû´®£¬ÐèҪת»¯³Édom½ڵã
    +        if (typeof content == "string") {
    +            var div = document.createElement('DIV');
    +            div.innerHTML = content;
    +            if (div.childNodes.length == 1) {
    +                content = (div.removeChild(div.firstChild));
    +            } else {
    +                var fragment = document.createDocumentFragment();
    +                while (div.firstChild) {
    +                    fragment.appendChild(div.firstChild);
    +                }
    +                content = fragment;
    +            }
    +        }
    +        this._container.innerHTML = "";
    +        this._container.appendChild(content);
    +    }
    +
    +    /**
    +     * »ñȡMarkerµÄÄÚÈÝ
    +     * @return {String | HTMLElement} µ±ǰÄÚÈÝ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.getContent();
    +     */
    +    RichMarker.prototype.getContent = function () {
    +        return this._content;
    +    }
    +
    +    /**
    +     * ÉèÖÃMarkerµÄÄÚÈÝ
    +     * @param {String | HTMLElement} content ÐèҪÉèÖõÄÄÚÈÝ
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * var htm = "<div style='background:#E7F0F5;color:#0082CB;border:1px solid #333'>"
    +     *              +     "»¶ӭʹÓðٶȵØͼAPI£¡"
    +     *              +     "<img src='http://map.baidu.com/img/logo-map.gif' border='0' />"
    +     *              + "</div>";
    +     * myRichMarkerObject.setContent(htm);
    +     */
    +    RichMarker.prototype.setContent = function (content) {
    +        if (!content) {
    +            return;
    +        }
    +        // ´洢Óû§ÊäÈëµÄMarkerÏÔʾÄÚÈÝ
    +        this._content = content;
    +        // Ìí¼ӽøÖ÷ÈÝÆ÷
    +        this._appendContent();
    +    }
    +
    +    /**
    +     * »ñȡMarkerµĸ߿í
    +     *
    +     * @private
    +     * @return {BMap.Size} µ±ǰ¸߿í
    +     */
    +    RichMarker.prototype._getContainerSize = function () {
    +        if (!this._container) {
    +            return;
    +        }
    +        var h = this._container.offsetHeight;
    +        var w = this._container.offsetWidth;
    +        this._size = new BMap.Size(w, h);
    +    }
    +
    +    /**
    +     * »ñȡMarkerµĿí¶È
    +     * @return {Number} µ±ǰ¿í¶È
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.getWidth();
    +     */
    +    RichMarker.prototype.getWidth = function () {
    +        if (!this._size) {
    +            return;
    +        }
    +        return this._size.width;
    +    }
    +
    +    /**
    +     * ÉèÖÃMarkerµĿí¶È
    +     * @param {Number} width ÐèҪÉèÖõĿí¶È
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.setWidth(300);
    +     */
    +    RichMarker.prototype.setWidth = function (width) {
    +        if (!this._container) {
    +            return;
    +        }
    +        this._container.style.width = width + "px";
    +        this._getContainerSize();
    +    }
    +
    +    /**
    +     * »ñȡMarkerµĸ߶È
    +     * @return {Number} µ±ǰ¸߶È
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.getHeight();
    +     */
    +    RichMarker.prototype.getHeight = function () {
    +        if (!this._size) {
    +            return;
    +        }
    +        return this._size.height;
    +    }
    +
    +    /**
    +     * ÉèÖÃMarkerµĸ߶È
    +     * @param {Number} height ÐèҪÉèÖõĸ߶È
    +     * @return Î޷µ»Øֵ
    +     *
    +     * @example <b>²ο¼ʾÀý£º</b>
    +     * myRichMarkerObject.setHeight(200);
    +     */
    +    RichMarker.prototype.setHeight = function (height) {
    +        if (!this._container) {
    +            return;
    +        }
    +        this._container.style.height = height + "px";
    +        this._getContainerSize();
    +    }
    +
    +    /**
    +     * ÉèÖÃMarkerµĸ÷ÖÖʼþ
    +     *
    +     * @private
    +     * @return Î޷µ»Øֵ
    +     */
    +    RichMarker.prototype._setEventDispath = function () {
    +        var me = this,
    +            div = me._container,
    +            isMouseDown = false,
    +        // Êó±êÊǷñ°´Ï£¬ÓÃÒÔÅжÏÊó±êÒƶ¯¹ý³ÌÖеÄÍÏק¼ÆËã
    +            startPosition = null; // ÍÏקʱ£¬Êó±갴ϵijõʼλÖã¬ÍÏקµĸ¨Öú¼ÆËã²ÎÊý
    +
    +        // ͨ¹ýe²ÎÊý»ñȡµ±ǰÊó±êËùÔÚλÖÃ
    +        function _getPositionByEvent(e) {
    +            var e = window.event || e,
    +                x = e.pageX || e.clientX || 0,
    +                y = e.pageY || e.clientY || 0,
    +                pixel = new BMap.Pixel(x, y),
    +                point = me._map.pixelToPoint(pixel);
    +            return {
    +                "pixel": pixel,
    +                "point": point
    +            };
    +        }
    +
    +        // µ¥»÷ʼþ
    +        baidu.on(div, "onclick", function (e) {
    +            /**
    +             * µã»÷Markerʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#onclick
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +              * <br />"<b>type</b>£º{String} ʼþÀàÐÍ}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("onclick", function(e) {
    +              *     alert(e.type);
    +              * });
    +             */
    +            _dispatchEvent(me, "onclick");
    +            _stopAndPrevent(e);
    +        });
    +
    +        // ˫»÷ʼþ
    +        baidu.on(div, "ondblclick", function (e) {
    +            var position = _getPositionByEvent(e);
    +            /**
    +             * ˫»÷Markerʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#ondblclick
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +              * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +              * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +              * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("ondblclick", function(e) {
    +              *     alert(e.type);
    +              * });
    +             */
    +            _dispatchEvent(me, "ondblclick", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +            _stopAndPrevent(e);
    +        });
    +
    +        // Êó±êÒÆÉÏʼþ
    +        div.onmouseover = function (e) {
    +            var position = _getPositionByEvent(e);
    +            /**
    +             * Êó±êÒƵ½MarkerÉÏʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#onmouseover
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +              * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +              * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +              * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("onmouseover", function(e) {
    +              *     alert(e.type);
    +              * });
    +             */
    +            _dispatchEvent(me, "onmouseover", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +            _stopAndPrevent(e);
    +        }
    +
    +        // Êó±êÒƳöʼþ
    +        div.onmouseout = function (e) {
    +            var position = _getPositionByEvent(e);
    +            /**
    +             * Êó±êÒƳöMarkerʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#onmouseout
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +              * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +              * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +              * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("onmouseout", function(e) {
    +              *     alert(e.type);
    +              * });
    +             */
    +            _dispatchEvent(me, "onmouseout", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +            _stopAndPrevent(e);
    +        }
    +
    +        // Êó±굯Æðʼþ
    +        var mouseUpEvent = function (e) {
    +            var position = _getPositionByEvent(e);
    +            /**
    +             * ÔÚMarkerÉϵ¯ÆðÊó±êʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#onmouseup
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +                  * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +                  * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +                  * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("onmouseup", function(e) {
    +                  *     alert(e.type);
    +                  * });
    +             */
    +            _dispatchEvent(me, "onmouseup", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +
    +            if (me._container.releaseCapture) {
    +                baidu.un(div, "onmousemove", mouseMoveEvent);
    +                baidu.un(div, "onmouseup", mouseUpEvent);
    +            } else {
    +                baidu.un(window, "onmousemove", mouseMoveEvent);
    +                baidu.un(window, "onmouseup", mouseUpEvent);
    +            }
    +
    +            // ÅжÏÊǷñÐèҪ½øÐÐÍÏקʼþµĴ¦Àí
    +            if (!me._opts.enableDragging) {
    +                _stopAndPrevent(e);
    +                return;
    +            }
    +            // ÍÏק½áÊøʱ£¬ÊͷÅÊó±겶»ñ
    +            me._container.releaseCapture && me._container.releaseCapture();
    +            /**
    +             * ÍÏקMarker½áÊøʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#ondragend
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +                  * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +                  * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +                  * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("ondragend", function(e) {
    +                  *     alert(e.type);
    +                  * });
    +             */
    +            _dispatchEvent(me, "ondragend", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +            isMouseDown = false;
    +            startPosition = null;
    +            // ÉèÖÃÍÏק½áÊøºóµÄÊó±êÊÖÐÍ
    +            me._setCursor("dragend");
    +            // ÍÏק¹ý³ÌÖзÀֹÎÄ×ֱ»ѡÖÐ
    +            me._container.style['MozUserSelect'] = '';
    +            me._container.style['KhtmlUserSelect'] = '';
    +            me._container.style['WebkitUserSelect'] = '';
    +            me._container['unselectable'] = 'off';
    +            me._container['onselectstart'] = function () {
    +            };
    +
    +            _stopAndPrevent(e);
    +        }
    +
    +        // Êó±êÒƶ¯Ê¼þ
    +        var mouseMoveEvent = function (e) {
    +            // ÅжÏÊǷñÐèҪ½øÐÐÍÏקʼþµĴ¦Àí
    +            if (!me._opts.enableDragging || !isMouseDown) {
    +                return;
    +            }
    +            var position = _getPositionByEvent(e);
    +
    +            // ¼ÆË㵱ǰmarkerӦ¸ÃËùÔڵÄλÖÃ
    +            var startPixel = me._map.pointToPixel(me._position);
    +            var x = position.pixel.x - startPosition.x + startPixel.x;
    +            var y = position.pixel.y - startPosition.y + startPixel.y;
    +
    +            startPosition = position.pixel;
    +            me._position = me._map.pixelToPoint(new BMap.Pixel(x, y));
    +            me.draw();
    +            // ÉèÖÃÍÏק¹ý³ÌÖеÄÊó±êÊÖÐÍ
    +            me._setCursor("dragging");
    +            /**
    +             * ÍÏקMarkerµĹý³ÌÖУ¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#ondragging
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +                  * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +                  * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +                  * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("ondragging", function(e) {
    +                  *     alert(e.type);
    +                  * });
    +             */
    +            _dispatchEvent(me, "ondragging", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +            _stopAndPrevent(e);
    +        }
    +
    +        // Êó±갴ÏÂʼþ
    +        baidu.on(div, "onmousedown", function (e) {
    +            var position = _getPositionByEvent(e);
    +            /**
    +             * ÔÚMarkerÉϰ´ÏÂÊó±êʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#onmousedown
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +                  * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +                  * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +                  * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("onmousedown", function(e) {
    +                  *     alert(e.type);
    +                  * });
    +             */
    +            _dispatchEvent(me, "onmousedown", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +
    +            if (me._container.setCapture) {
    +                baidu.on(div, "onmousemove", mouseMoveEvent);
    +                baidu.on(div, "onmouseup", mouseUpEvent);
    +            } else {
    +                baidu.on(window, "onmousemove", mouseMoveEvent);
    +                baidu.on(window, "onmouseup", mouseUpEvent);
    +            }
    +
    +            // ÅжÏÊǷñÐèҪ½øÐÐÍÏקʼþµĴ¦Àí
    +            if (!me._opts.enableDragging) {
    +                _stopAndPrevent(e);
    +                return;
    +            }
    +            startPosition = position.pixel;
    +            /**
    +             * ¿ªʼÍÏקMarkerʱ£¬Åɷ¢Ê¼þµĽӿÚ
    +             * @name RichMarker#ondragstart
    +             * @event
    +             * @param {Event Object} e »ص÷º¯Êý»᷵»Øevent²ÎÊý£¬°üÀ¨ÒÔÏ·µ»Øֵ£º
    +             * <br />{"<b>target</b> : {BMap.Overlay} ´¥·¢Ê¼þµÄԪËØ,
    +                  * <br />"<b>type</b>£º{String} ʼþÀàÐÍ,
    +                  * <br />"<b>point</b>£º{BMap.Point} Êó±êµÄÎïÀí×ø±ê,
    +                  * <br />"<b>pixel</b>£º{BMap.Pixel} Êó±êµÄÏñËØ×ø±ê}
    +             *
    +             * @example <b>²ο¼ʾÀý£º</b>
    +             * myRichMarkerObject.addEventListener("ondragstart", function(e) {
    +                  *     alert(e.type);
    +                  * });
    +             */
    +            _dispatchEvent(me, "ondragstart", {
    +                "point": position.point,
    +                "pixel": position.pixel
    +            });
    +            isMouseDown = true;
    +            // ÉèÖÃÍÏק¿ªʼµÄÊó±êÊÖÐÍ
    +            me._setCursor("dragstart");
    +            // ÍÏק¿ªʼʱ£¬ÉèÖÃÊó±겶»ñ
    +            me._container.setCapture && me._container.setCapture();
    +            // ÍÏק¹ý³ÌÖзÀֹÎÄ×ֱ»ѡÖÐ
    +            me._container.style['MozUserSelect'] = 'none';
    +            me._container.style['KhtmlUserSelect'] = 'none';
    +            me._container.style['WebkitUserSelect'] = 'none';
    +            me._container['unselectable'] = 'on';
    +            me._container['onselectstart'] = function () {
    +                return false;
    +            };
    +            _stopAndPrevent(e);
    +        });
    +    }
    +
    +    /**
    +     * ÉèÖÃÍÏק¹ý³ÌÖеÄÊÖÐÍ
    +     *
    +     * @private
    +     * @param {string} cursorType ÐèҪÉèÖõÄÊÖÐÍÀàÐÍ
    +     */
    +    RichMarker.prototype._setCursor = function (cursorType) {
    +        var cursor = '';
    +        var cursorStylies = {
    +            "moz": {
    +                "dragstart": "-moz-grab",
    +                "dragging": "-moz-grabbing",
    +                "dragend": "pointer"
    +            },
    +            "other": {
    +                "dragstart": "move",
    +                "dragging": "move",
    +                "dragend": "pointer"
    +            }
    +        };
    +
    +        if (navigator.userAgent.indexOf('Gecko/') !== -1) {
    +            cursor = cursorStylies.moz[cursorType];
    +        } else {
    +            cursor = cursorStylies.other[cursorType];
    +        }
    +
    +        if (this._container.style.cursor != cursor) {
    +            this._container.style.cursor = cursor;
    +        }
    +    }
    +
    +    /**
    +     * ɾ³ýMarker
    +     *
    +     * @private
    +     * @return Î޷µ»Øֵ
    +     */
    +    RichMarker.prototype.remove = function () {
    +        _dispatchEvent(this, "onremove");
    +        // Çå³ýÖ÷ÈÝÆ÷ÉϵÄʼþ°ó¶¨
    +        if (this._container) {
    +            _purge(this._container);
    +        }
    +        // ɾ³ýÖ÷ÈÝÆ÷
    +        if (this._container && this._container.parentNode) {
    +            this._container.parentNode.removeChild(this._container);
    +        }
    +    }
    +
    +    /**
    +     * ¼¯ÖÐÅɷ¢Ê¼þº¯Êý
    +     *
    +     * @private
    +     * @param {Object} instance Åɷ¢Ê¼þµÄʵÀý
    +     * @param {String} type Åɷ¢µÄʼþÃû
    +     * @param {Json} opts Åɷ¢Ê¼þÀïÌí¼ӵIJÎÊý£¬¿Éѡ
    +     */
    +    function _dispatchEvent(instance, type, opts) {
    +        type.indexOf("on") != 0 && (type = "on" + type);
    +        var event = new baidu.lang.Event(type);
    +        if (!!opts) {
    +            for (var p in opts) {
    +                event[p] = opts[p];
    +            }
    +        }
    +        instance.dispatchEvent(event);
    +    }
    +
    +    /**
    +     * ÇåÀíDOMʼþ£¬·Àֹѭ»·ÒýÓÃ
    +     *
    +     * @type {DOM} dom ÐèҪÇåÀíµÄdom¶ÔÏó
    +     */
    +    function _purge(dom) {
    +        if (!dom) {
    +            return;
    +        }
    +        var attrs = dom.attributes,
    +            name = "";
    +        if (attrs) {
    +            for (var i = 0, n = attrs.length; i < n; i++) {
    +                name = attrs[i].name;
    +                if (typeof dom[name] === "function") {
    +                    dom[name] = null;
    +                }
    +            }
    +        }
    +        var child = dom.childnodes;
    +        if (child) {
    +            for (var i = 0, n = child.length; i < n; i++) {
    +                _purge(dom.childnodes[i]);
    +            }
    +        }
    +    }
    +
    +    /**
    +     * ֹͣʼþðÅݴ«²¥
    +     *
    +     * @type {Event} e e¶ÔÏó
    +     */
    +    function _stopAndPrevent(e) {
    +        var e = window.event || e;
    +        e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true;
    +        return baidu.preventDefault(e);
    +    }
    +})();
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/RichMarker_min.js b/fangija-zsyf/js/RichMarker_min.js
    new file mode 100644
    index 0000000..95e0f87
    --- /dev/null
    +++ b/fangija-zsyf/js/RichMarker_min.js
    @@ -0,0 +1 @@
    +var BMapLib=window.BMapLib=BMapLib||{};(function(){var a=a||{guid:"$BAIDU$"};(function(){window[a.guid]={};a.extend=function(h,f){for(var g in f){if(f.hasOwnProperty(g)){h[g]=f[g]}}return h};a.lang=a.lang||{};a.lang.guid=function(){return"TANGRAM__"+(window[a.guid]._counter++).toString(36)};window[a.guid]._counter=window[a.guid]._counter||1;window[a.guid]._instances=window[a.guid]._instances||{};a.lang.Class=function(f){this.guid=f||a.lang.guid();window[a.guid]._instances[this.guid]=this};window[a.guid]._instances=window[a.guid]._instances||{};a.lang.isString=function(f){return"[object String]"==Object.prototype.toString.call(f)};a.isString=a.lang.isString;a.lang.isFunction=function(f){return"[object Function]"==Object.prototype.toString.call(f)};a.lang.Event=function(f,g){this.type=f;this.returnValue=true;this.target=g||null;this.currentTarget=null};a.lang.Class.prototype.addEventListener=function(i,h,g){if(!a.lang.isFunction(h)){return}!this.__listeners&&(this.__listeners={});var f=this.__listeners,j;if(typeof g=="string"&&g){if(/[^\w\-]/.test(g)){throw ("nonstandard key:"+g)}else{h.hashCode=g;j=g}}i.indexOf("on")!=0&&(i="on"+i);typeof f[i]!="object"&&(f[i]={});j=j||a.lang.guid();h.hashCode=j;f[i][j]=h};a.lang.Class.prototype.removeEventListener=function(h,g){if(a.lang.isFunction(g)){g=g.hashCode}else{if(!a.lang.isString(g)){return}}!this.__listeners&&(this.__listeners={});h.indexOf("on")!=0&&(h="on"+h);var f=this.__listeners;if(!f[h]){return}f[h][g]&&delete f[h][g]};a.lang.Class.prototype.dispatchEvent=function(j,f){if(a.lang.isString(j)){j=new a.lang.Event(j)}!this.__listeners&&(this.__listeners={});f=f||{};for(var h in f){j[h]=f[h]}var h,g=this.__listeners,k=j.type;j.target=j.target||this;j.currentTarget=this;k.indexOf("on")!=0&&(k="on"+k);a.lang.isFunction(this[k])&&this[k].apply(this,arguments);if(typeof g[k]=="object"){for(h in g[k]){g[k][h].apply(this,arguments)}}return j.returnValue};a.dom=a.dom||{};a.dom._g=function(f){if(a.lang.isString(f)){return document.getElementById(f)}return f};a._g=a.dom._g;a.event=a.event||{};a.event._listeners=a.event._listeners||[];a.event.on=function(g,j,l){j=j.replace(/^on/i,"");g=a.dom._g(g);var k=function(n){l.call(g,n)},f=a.event._listeners,i=a.event._eventFilter,m,h=j;j=j.toLowerCase();if(i&&i[j]){m=i[j](g,j,k);h=m.type;k=m.listener}if(g.addEventListener){g.addEventListener(h,k,false)}else{if(g.attachEvent){g.attachEvent("on"+h,k)}}f[f.length]=[g,j,l,k,h];return g};a.on=a.event.on;a.event.un=function(h,k,g){h=a.dom._g(h);k=k.replace(/^on/i,"").toLowerCase();var n=a.event._listeners,i=n.length,j=!g,m,l,f;while(i--){m=n[i];if(m[1]===k&&m[0]===h&&(j||m[2]===g)){l=m[4];f=m[3];if(h.removeEventListener){h.removeEventListener(l,f,false)}else{if(h.detachEvent){h.detachEvent("on"+l,f)}}n.splice(i,1)}}return h};a.un=a.event.un;a.preventDefault=a.event.preventDefault=function(f){if(f.preventDefault){f.preventDefault()}else{f.returnValue=false}}})();var e=BMapLib.RichMarker=function(h,f,g){if(!h||!f||!(f instanceof BMap.Point)){return}this._map=null;this._content=h;this._position=f;this._container=null;this._size=null;g=g||{};this._opts=a.extend(a.extend(this._opts||{},{enableDragging:false,anchor:new BMap.Size(0,0)}),g)};e.prototype=new BMap.Overlay();e.prototype.initialize=function(g){var f=this,h=f._container=document.createElement("div");f._map=g;a.extend(h.style,{position:"absolute",zIndex:BMap.Overlay.getZIndex(f._position.lat),background:"#FFF",cursor:"pointer"});g.getPanes().labelPane.appendChild(h);f._appendContent();f._setEventDispath();f._getContainerSize();return h};e.prototype.draw=function(){var h=this._map,g=this._opts.anchor,f=h.pointToOverlayPixel(this._position);this._container.style.left=f.x+g.width+"px";this._container.style.top=f.y+g.height+"px"};e.prototype.enableDragging=function(){this._opts.enableDragging=true};e.prototype.disableDragging=function(){this._opts.enableDragging=false};e.prototype.isDraggable=function(){return this._opts.enableDragging};e.prototype.getPosition=function(){return this._position};e.prototype.setPosition=function(f){if(!f instanceof BMap.Point){return}this._position=f;this.draw()};e.prototype.getAnchor=function(){return this._opts.anchor};e.prototype.setAnchor=function(f){if(!f instanceof BMap.Size){return}this._opts.anchor=f;this.draw()};e.prototype._appendContent=function(){var g=this._content;if(typeof g=="string"){var h=document.createElement("DIV");h.innerHTML=g;if(h.childNodes.length==1){g=(h.removeChild(h.firstChild))}else{var f=document.createDocumentFragment();while(h.firstChild){f.appendChild(h.firstChild)}g=f}}this._container.innerHTML="";this._container.appendChild(g)};e.prototype.getContent=function(){return this._content};e.prototype.setContent=function(f){if(!f){return}this._content=f;this._appendContent()};e.prototype._getContainerSize=function(){if(!this._container){return}var g=this._container.offsetHeight;var f=this._container.offsetWidth;this._size=new BMap.Size(f,g)};e.prototype.getWidth=function(){if(!this._size){return}return this._size.width};e.prototype.setWidth=function(f){if(!this._container){return}this._container.style.width=f+"px";this._getContainerSize()};e.prototype.getHeight=function(){if(!this._size){return}return this._size.height};e.prototype.setHeight=function(f){if(!this._container){return}this._container.style.height=f+"px";this._getContainerSize()};e.prototype._setEventDispath=function(){var k=this,l=k._container,g=false,i=null;function j(p){var p=window.event||p,n=p.pageX||p.clientX||0,q=p.pageY||p.clientY||0,o=new BMap.Pixel(n,q),m=k._map.pixelToPoint(o);return{pixel:o,point:m}}a.on(l,"onclick",function(m){c(k,"onclick");d(m)});a.on(l,"ontouchend",function(m){c(k,"ontouchend");c(k,"onclick");d(m)});a.on(l,"ondblclick",function(n){var m=j(n);c(k,"ondblclick",{point:m.point,pixel:m.pixel});d(n)});l.onmouseover=function(n){var m=j(n);c(k,"onmouseover",{point:m.point,pixel:m.pixel});d(n)};l.onmouseout=function(n){var m=j(n);c(k,"onmouseout",{point:m.point,pixel:m.pixel});d(n)};var h=function(n){var m=j(n);c(k,"onmouseup",{point:m.point,pixel:m.pixel});if(k._container.releaseCapture){a.un(l,"onmousemove",f);a.un(l,"onmouseup",h)}else{a.un(window,"onmousemove",f);a.un(window,"onmouseup",h)}if(!k._opts.enableDragging){d(n);return}k._container.releaseCapture&&k._container.releaseCapture();c(k,"ondragend",{point:m.point,pixel:m.pixel});g=false;i=null;k._setCursor("dragend");k._container.style.MozUserSelect="";k._container.style.KhtmlUserSelect="";k._container.style.WebkitUserSelect="";k._container.unselectable="off";k._container.onselectstart=function(){};d(n)};var f=function(o){if(!k._opts.enableDragging||!g){return}var n=j(o);var p=k._map.pointToPixel(k._position);var m=n.pixel.x-i.x+p.x;var q=n.pixel.y-i.y+p.y;i=n.pixel;k._position=k._map.pixelToPoint(new BMap.Pixel(m,q));k.draw();k._setCursor("dragging");c(k,"ondragging",{point:n.point,pixel:n.pixel});d(o)};a.on(l,"onmousedown",function(n){var m=j(n);c(k,"onmousedown",{point:m.point,pixel:m.pixel});if(k._container.setCapture){a.on(l,"onmousemove",f);a.on(l,"onmouseup",h)}else{a.on(window,"onmousemove",f);a.on(window,"onmouseup",h)}if(!k._opts.enableDragging){d(n);return}i=m.pixel;c(k,"ondragstart",{point:m.point,pixel:m.pixel});g=true;k._setCursor("dragstart");k._container.setCapture&&k._container.setCapture();k._container.style.MozUserSelect="none";k._container.style.KhtmlUserSelect="none";k._container.style.WebkitUserSelect="none";k._container.unselectable="on";k._container.onselectstart=function(){return false};d(n)})};e.prototype._setCursor=function(f){var h="";var g={moz:{dragstart:"-moz-grab",dragging:"-moz-grabbing",dragend:"pointer"},other:{dragstart:"move",dragging:"move",dragend:"pointer"}};if(navigator.userAgent.indexOf("Gecko/")!==-1){h=g.moz[f]}else{h=g.other[f]}if(this._container.style.cursor!=h){this._container.style.cursor=h}};e.prototype.remove=function(){c(this,"onremove");if(this._container){b(this._container)}if(this._container&&this._container.parentNode){this._container.parentNode.removeChild(this._container)}};function c(f,g,i){g.indexOf("on")!=0&&(g="on"+g);var h=new a.lang.Event(g);if(!!i){for(var j in i){h[j]=i[j]}}f.dispatchEvent(h)}function b(j){if(!j){return}var g=j.attributes,f="";if(g){for(var h=0,l=g.length;h<l;h++){f=g[h].name;if(typeof j[f]==="function"){j[f]=null}}}var k=j.childnodes;if(k){for(var h=0,l=k.length;h<l;h++){b(j.childnodes[h])}}}function d(f){var f=window.event||f;f.stopPropagation?f.stopPropagation():f.cancelBubble=true;return a.preventDefault(f)}})();
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/axios.min.js b/fangija-zsyf/js/axios.min.js
    new file mode 100644
    index 0000000..69cc188
    --- /dev/null
    +++ b/fangija-zsyf/js/axios.min.js
    @@ -0,0 +1,9 @@
    +/* axios v0.18.0 | (c) 2018 by Matt Zabriskie */
    +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){var t=new s(e),n=i(s.prototype.request,t);return o.extend(n,s.prototype,t),o.extend(n,t),n}var o=n(2),i=n(3),s=n(5),u=n(6),a=r(u);a.Axios=s,a.create=function(e){return r(o.merge(u,e))},a.Cancel=n(23),a.CancelToken=n(24),a.isCancel=n(20),a.all=function(e){return Promise.all(e)},a.spread=n(25),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";function r(e){return"[object Array]"===R.call(e)}function o(e){return"[object ArrayBuffer]"===R.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return"string"==typeof e}function a(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===R.call(e)}function d(e){return"[object File]"===R.call(e)}function l(e){return"[object Blob]"===R.call(e)}function h(e){return"[object Function]"===R.call(e)}function m(e){return f(e)&&h(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(e,t){if(null!==e&&"undefined"!=typeof e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function x(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=x(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)v(arguments[n],e);return t}function b(e,t,n){return v(t,function(t,r){n&&"function"==typeof t?e[r]=E(t,n):e[r]=t}),e}var E=n(3),C=n(4),R=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:C,isFormData:i,isArrayBufferView:s,isString:u,isNumber:a,isObject:f,isUndefined:c,isDate:p,isFile:d,isBlob:l,isFunction:h,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:g,forEach:v,merge:x,extend:b,trim:w}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}/*!
    +	 * Determine if an object is a Buffer
    +	 *
    +	 * @author   Feross Aboukhadijeh <https://feross.org>
    +	 * @license  MIT
    +	 */
    +e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var o=n(6),i=n(2),s=n(17),u=n(18);r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[u,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(8):"undefined"!=typeof process&&(e=n(8)),e}var i=n(2),s=n(7),u={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:o(),transformRequest:[function(e,t){return s(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){a.headers[e]={}}),i.forEach(["post","put","patch"],function(e){a.headers[e]=i.merge(u)}),e.exports=a},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(9),i=n(12),s=n(13),u=n(14),a=n(10),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(15);e.exports=function(e){return new Promise(function(t,f){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var l=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in l||u(e.url)||(l=new window.XDomainRequest,h="onload",m=!0,l.onprogress=function(){},l.ontimeout=function(){}),e.auth){var y=e.auth.username||"",w=e.auth.password||"";d.Authorization="Basic "+c(y+":"+w)}if(l.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l[h]=function(){if(l&&(4===l.readyState||m)&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?s(l.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?l.response:l.responseText,i={data:r,status:1223===l.status?204:l.status,statusText:1223===l.status?"No Content":l.statusText,headers:n,config:e,request:l};o(t,f,i),l=null}},l.onerror=function(){f(a("Network Error",e,null,l)),l=null},l.ontimeout=function(){f(a("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var g=n(16),v=(e.withCredentials||u(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in l&&r.forEach(d,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)}),e.withCredentials&&(l.withCredentials=!0),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),f(e),l=null)}),void 0===p&&(p=null),l.send(p)})}},function(e,t,n){"use strict";var r=n(10);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([n]):s[t]=s[t]?s[t]+", "+n:n}}),s):s}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){"use strict";function n(){this.message="String contains an invalid character"}function r(e){for(var t,r,i=String(e),s="",u=0,a=o;i.charAt(0|u)||(a="=",u%1);s+=a.charAt(63&t>>8-u%1*8)){if(r=i.charCodeAt(u+=.75),r>255)throw new n;t=t<<8|r}return s}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),i=n(19),s=n(20),u=n(6),a=n(21),c=n(22);e.exports=function(e){r(e),e.baseURL&&!a(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||u.adapter;return t(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])});
    +//# sourceMappingURL=axios.min.map
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/axiosPlugin.js b/fangija-zsyf/js/axiosPlugin.js
    new file mode 100644
    index 0000000..531b3ee
    --- /dev/null
    +++ b/fangija-zsyf/js/axiosPlugin.js
    @@ -0,0 +1,37 @@
    +axios.defaults.baseURL = BASE_PATH;
    +axios.defaults.headers.post['Content-Type'] = 'application/json';
    +axios.defaults.timeout = 15000;
    +
    +// 添加请求拦截器
    +axios.interceptors.request.use(function (config) {
    +	var token = localStorage.getItem("user_token");
    +	config.headers.Authorization = token;
    +    return config;
    +  }, function (error) {
    +    return Promise.reject(error);
    +});
    +
    +// 添加响应拦截器
    +axios.interceptors.response.use(function (response) {
    +	try {
    +		plus.nativeUI.closeWaiting();
    +	}catch(e){
    +		
    +	}
    +    return response;
    +  }, function (error) {
    +  	try {
    +  		if(error=="Error: Network Error" || error.toString().indexOf('timeout') > -1){
    +	  		if(plus.webview.getWebviewById('error.html')==null){
    +				clicked('error.html',true,false,{},{},function(){
    +					window.location.reload();
    +				})
    +			}else{
    +				$(".loadingBg").hide();
    +				plus.nativeUI.closeWaiting();
    +				plus.webview.getWebviewById("error.html").show();
    +			}
    +	  	}
    +  	}catch(e){}
    +	return Promise.reject(error);
    +});
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/beacon_release.js b/fangija-zsyf/js/beacon_release.js
    new file mode 100644
    index 0000000..90d42b4
    --- /dev/null
    +++ b/fangija-zsyf/js/beacon_release.js
    @@ -0,0 +1,38 @@
    +(function(){function G(){this.url="http://oth.eve.mdt.qq.com:8080/analytics/upload?tp=js";this.opts={};this.requestArray=[]}function H(b){I&&(b=(new Date).getTime(),BeaconComm.exitSet(b),BeaconComm.addEvent({name:encodeURIComponent(window.location.href),start:p,duration:parseInt((b-p)/1E3),refer:encodeURIComponent(document.referrer)},"pages"),I=!1)}if(!(0<navigator.userAgent.indexOf("MSIE")&&(0<navigator.userAgent.indexOf("MSIE 6.0")||0<navigator.userAgent.indexOf("MSIE 7.0")||0<navigator.userAgent.indexOf("MSIE 8.0")||
    +0<navigator.userAgent.indexOf("MSIE 9.0")&&!window.innerWidth))){for(var l=document.getElementsByTagName("script"),r="",J=0,z=0;z<l.length;z++)if(r=l[z].src,-1!==r.indexOf("beacon_release.js")){J=1;break}if(J){var t={};(-1!==r.indexOf("?")?r.split("?").pop():"").replace(/(\w+)(?:=([^&]*))?/g,function(b,a,c){t[a]=c});(l=t.appid)||(l=t.appkey);r=t.vc;if(l&&r){var A=t.openid,K=0,Q=function(b){function a(a,b,c,f){if(a.global)return!0}function c(b){b.global&&0===m.active++&&a(b,null,"ajaxStart")}function g(b,
    +c){var f=c.context;if(!1===c.beforeSend.call(f,b,c)||!1===a(c,f,"ajaxBeforeSend",[b,c]))return!1;a(c,f,"ajaxSend",[b,c])}function f(b,c,f){var g=f.context;f.success.call(g,b,"success",c);a(f,g,"ajaxSuccess",[c,f,b]);d("success",c,f);BeaconComm.cleanMsg();F=0}function h(b,c,f,g){var u=g.context;g.error.call(u,f,c,b);a(g,u,"ajaxError",[f,g,b]);d(c,f,g)}function d(b,c,f){var g=f.context;f.complete.call(g,c,b);a(f,g,"ajaxComplete",[c,f]);f.global&&!--m.active&&a(f,null,"ajaxStop")}function B(){}function e(a){return a&&
    +(a==z?"html":a==y?"json":A.test(a)?"script":C.test(a)&&"xml")||"text"}function l(a){"object"==typeof a.data&&(a.data=r(a.data));!a.data||a.type&&"GET"!=a.type.toUpperCase()||(a.url=(a.url+"&"+a.data).replace(/[&?]{1,2}/,"?"))}function n(a,c,b,f){var g="array"==typeof c,d;for(d in c){var u=c[d];f&&(d=b?f:f+"["+(g?"":d)+"]");!f&&g?a.add(u.name,u.value):(b?"array"==typeof u:"object"==typeof u)?n(a,u,b,d):a.add(d,u)}}function r(a,c){var b=[];return b.add=function(a,b){this.push(encodeURIComponent(a)+
    +"="+encodeURIComponent(b))},n(b,a,c),b.join("&").replace("%20","+")}function q(a){return Array.prototype.slice.call(arguments,1).forEach(function(b){for(w in b)void 0!==b[w]&&(a[w]=b[w])}),a}var v=0,p=b.document,w,t,A=/^(?:text|application)\/javascript/i,C=/^(?:text|application)\/xml/i,y="application/json",z="text/html",D=/^\s*$/,m=function(a){var d=q({},a||{});for(w in m.settings)void 0===d[w]&&(d[w]=m.settings[w]);c(d);d.crossDomain||(d.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(d.url)&&RegExp.$2!=
    +b.location.host);var x=d.dataType;a=/=\?/.test(d.url);if("jsonp"==x||a)return a||(d.url=(d.url+"&callback=?").replace(/[&?]{1,2}/,"?")),m.JSONP(d);d.url||(d.url=b.location.toString());l(d);a=d.accepts[x];var E={},n=/^([\w-]+:)\/\//.test(d.url)?RegExp.$1:b.location.protocol,k=m.settings.xhr(),p;d.crossDomain||(E["X-Requested-With"]="XMLHttpRequest");a&&(E.Accept=a,-1<a.indexOf(",")&&(a=a.split(",",2)[0]),k.overrideMimeType&&k.overrideMimeType(a));if(d.contentType||d.data&&"GET"!=d.type.toUpperCase())E["Content-Type"]=
    +d.contentType||"application/x-www-form-urlencoded";d.headers=q(E,d.headers||{});k.onreadystatechange=function(){if(4==k.readyState){clearTimeout(p);var a=!1;if(200<=k.status&&300>k.status||304==k.status||0==k.status&&"file:"==n){x=x||e(k.getResponseHeader("content-type"));var b=k.responseText;try{"script"==x?(0,eval)(b):"xml"==x?b=k.responseXML:"json"==x&&(b=D.test(b)?null:JSON.parse(b))}catch(P){a=P}a?h(a,"parsererror",k,d):f(b,k,d)}else h(null,"error",k,d)}};k.open(d.type,d.url,"async"in d?d.async:
    +!0);for(t in d.headers)k.setRequestHeader(t,d.headers[t]);return!1===g(k,d)?(k.abort(),!1):(0<d.timeout&&(p=setTimeout(function(){k.onreadystatechange=B;k.abort();h(null,"timeout",k,d)},d.timeout)),k.send(d.data?d.data:null),k)};m.active=0;m.JSONP=function(a){if("type"in a){var c="jsonp"+ ++v,g=p.createElement("script"),h={abort:function(){c in b&&(b[c]=B);d("abort",h,a)}},e,k=p.getElementsByTagName("head")[0]||p.documentElement;return a.error&&(g.onerror=function(){h.abort();a.error()}),b[c]=function(d){clearTimeout(e);
    +delete b[c];f(d,h,a)},l(a),g.src=a.url.replace(/=\?/,"="+c),k.insertBefore(g,k.firstChild),0<a.timeout&&(e=setTimeout(function(){h.abort();d("timeout",h,a)},a.timeout)),h}return m(a)};m.settings={type:"POST",beforeSend:B,success:B,error:B,complete:B,context:null,global:!0,xhr:function(){return new b.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:y,xml:"application/xml, text/xml",html:z,text:"text/plain"},crossDomain:!1,timeout:0};m.get=function(a,b){return m({url:a,
    +success:b})};m.post=function(a,b,c,d){return"function"==typeof b&&(d=d||c,c=b,b=null),m({type:"POST",url:a,data:b,success:c,dataType:d})};return{ajax:m}}(window),L="",C=l||"",R=r||"",D="",M="",N="",S=navigator.language,n={id:"",start:0,duration:0},p=(new Date).getTime(),q={},I=!0,l={addEventListener:function(b,a,c){b.addEventListener?b.addEventListener(a,c,!1):b.attachEvent?b.attachEvent("on"+a,c):b["on"+a]=c}};l.addEventListener(window,"pagehide",H);l.addEventListener(window,"beforeunload",H);(function(b,
    +a,c){a[b]=c()})("Fingerprint",q,function(){var b=function(a){var b=Array.prototype.forEach;var g=Array.prototype.map;this.each=function(a,c,d){if(null!==a)if(b&&a.forEach===b)a.forEach(c,d);else if(a.length===+a.length)for(var f=0,g=a.length;f<g&&c.call(d,a[f],f,a)!=={};f++);else for(f in a)if(a.hasOwnProperty(f)&&c.call(d,a[f],f,a)==={})break};this.map=function(a,b,c){var d=[];return null==a?d:g&&a.map===g?a.map(b,c):(this.each(a,function(a,f,g){d[d.length]=b.call(c,a,f,g)}),d)};"object"==typeof a?
    +(this.hasher=a.hasher,this.screen_resolution=a.screen_resolution,this.screen_orientation=a.screen_orientation,this.canvas=a.canvas,this.ie_activex=a.ie_activex):"function"==typeof a&&(this.hasher=a)};return b.prototype={get:function(){var a=[];a.push(navigator.userAgent);a.push(navigator.language);a.push(screen.colorDepth);this.screen_resolution&&"undefined"!=typeof this.getScreenResolution()&&a.push(this.getScreenResolution().join("x"));return a.push((new Date).getTimezoneOffset()),a.push(this.hasSessionStorage()),
    +a.push(this.hasLocalStorage()),a.push(!!window.indexedDB),document.body?a.push(typeof document.body.addBehavior):a.push("undefined"),a.push(typeof window.openDatabase),a.push(navigator.cpuClass),a.push(navigator.platform),a.push(navigator.doNotTrack),this.isCanvasSupported()&&a.push(this.getCanvasFingerprint()),this.hasher?this.hasher(a.join("###"),31):this.murmurhash3_32_gc(a.join("###"),31)},murmurhash3_32_gc:function(a,b){var c;var f=a.length&3;var h=a.length-f;var d=b;for(c=0;c<h;){var e=a.charCodeAt(c)&
    +255|(a.charCodeAt(++c)&255)<<8|(a.charCodeAt(++c)&255)<<16|(a.charCodeAt(++c)&255)<<24;++c;e=3432918353*(e&65535)+((3432918353*(e>>>16)&65535)<<16)&4294967295;e=e<<15|e>>>17;e=461845907*(e&65535)+((461845907*(e>>>16)&65535)<<16)&4294967295;d^=e;d=d<<13|d>>>19;d=5*(d&65535)+((5*(d>>>16)&65535)<<16)&4294967295;d=(d&65535)+27492+(((d>>>16)+58964&65535)<<16)}e=0;switch(f){case 3:e^=(a.charCodeAt(c+2)&255)<<16;case 2:e^=(a.charCodeAt(c+1)&255)<<8;case 1:e^=a.charCodeAt(c)&255,e=3432918353*(e&65535)+((3432918353*
    +(e>>>16)&65535)<<16)&4294967295,e=e<<15|e>>>17,d^=461845907*(e&65535)+((461845907*(e>>>16)&65535)<<16)&4294967295}return d^=a.length,d^=d>>>16,d=2246822507*(d&65535)+((2246822507*(d>>>16)&65535)<<16)&4294967295,d^=d>>>13,d=3266489909*(d&65535)+((3266489909*(d>>>16)&65535)<<16)&4294967295,d^=d>>>16,d>>>0},hasLocalStorage:function(){try{return!!window.localStorage}catch(a){return!0}},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(a){return!0}},isCanvasSupported:function(){var a=
    +document.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName?!0:"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?!0:!1},getPluginsString:function(){return this.isIE()&&this.ie_activex?this.getIEPluginsString():this.getRegularPluginsString()},getRegularPluginsString:function(){return this.map(navigator.plugins,function(a){var b=this.map(a,function(a){return[a.type,a.suffixes].join("~")}).join(",");
    +return[a.name,a.description,b].join("::")},this).join(";")},getIEPluginsString:function(){return window.ActiveXObject?this.map("ShockwaveFlash.ShockwaveFlash;AcroPDF.PDF;PDF.PdfCtrl;QuickTime.QuickTime;rmocx.RealPlayer G2 Control;rmocx.RealPlayer G2 Control.1;RealPlayer.RealPlayer(tm) ActiveX Control (32-bit);RealVideo.RealVideo(tm) ActiveX Control (32-bit);RealPlayer;SWCtl.SWCtl;WMPlayer.OCX;AgControl.AgControl;Skype.Detection".split(";"),function(a){try{return new ActiveXObject(a),a}catch(c){return null}}).join(";"):
    +""},getScreenResolution:function(){var a;return this.screen_orientation?a=screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height]:a=[screen.height,screen.width],a},getCanvasFingerprint:function(){var a=document.createElement("canvas"),b=a.getContext("2d");var g="beacon.qq.com "+Math.random();return b.textBaseline="top",b.font="12px 'Arial'",b.textBaseline="alphabetic",b.fillStyle="#ffc",b.fillRect(0,0,180,20),b.fillStyle="#069",b.fillText(g,2,15),b.fillStyle="rgba(102, 204, 0, 0.7)",
    +b.fillText(g,4,17),a.toDataURL()}},b});var y=function(b,a,c){if("undefined"==typeof a){a=null;if(document.cookie&&""!=document.cookie){var g=document.cookie.split(";");for(c=0;c<g.length;c++){var f=g[c];if(f.substring(0,b.length+1)==b+"="){a=decodeURIComponent(f.substring(b.length+1));break}}}return a}c=c||{};null===a&&(a="",c.expires=-1);g="";c.expires&&("number"==typeof c.expires||c.expires.toUTCString)&&("number"==typeof c.expires?(f=new Date,f.setTime(f.getTime()+864E5*c.expires)):f=c.expires,
    +g="; expires="+f.toUTCString());var f=c.path?"; path="+c.path:"",e=c.domain?"; domain="+c.domain:"";c=c.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(a),g,f,e,c].join("")};q.localStorage={add:function(b,a){this.addLocalStorage(b,a);"sessionId"!=b&&this.addCookie(b,a)},get:function(b){var a=this.getLocalStorage(b);return a?a:this._getCookie(b)},create:function(){y("__BEACON_LOCAL")||this._addCookie("")},addCookie:function(b,a){if(!window.localStorage){this.create();var c=this.cookieList();
    +c[b]=a;var g=[],f;for(f in c)g.push(f+"="+c[f]);this._addCookie(g.join(";"))}},_setCookie:function(){this.cookieList();y("__BEACON_LOCAL","",{expires:365,path:"/",domain:location.hostname})},_addCookie:function(b){y("__BEACON_LOCAL",b,{expires:365,path:"/",domain:location.hostname})},_getCookie:function(b){var a=this.cookieList();if(a&&a[b])return a[b]},delCookie:function(b){},cookieList:function(){var b=y("__BEACON_LOCAL");return this.format(b)},addLocalStorage:function(b,a){window.localStorage&&
    +("sessionId"==b&&window.sessionStorage?sessionStorage.setItem("__BEACON_"+b,a):localStorage["__BEACON_"+b]=a)},delLocalStorage:function(b){window.localStorage&&localStorage.removeItem("__BEACON_"+b)},getLocalStorage:function(b){if(window.localStorage)return"sessionId"==b&&window.sessionStorage?sessionStorage.getItem("__BEACON_"+b):localStorage["__BEACON_"+b]},format:function(b){var a={};if(!b)return a;b=b.split(";");for(var c=b.length,g=0;g<c;g++){var f=b[g].split("=");2==f.length&&(a[f[0]]=f[1])}return a}};
    +q.sessionStorage={add:function(b,a){window.sessionStorage&&sessionStorage.setItem("__BEACON_"+b,a)},get:function(b){return sessionStorage.getItem("__BEACON_"+b)},remove:function(b){sessionStorage.removeItem("__BEACON_"+b)}};G.prototype={getAjax:function(b,a,c,g,f){(function(e){if(0<navigator.userAgent.indexOf("MSIE 9.0")){var d=navigator.appVersion.split(";")[1].replace(/[ ]/g,"");if("MSIE6.0"!=d&&"MSIE7.0"!=d&&window.XDomainRequest){var h=new XDomainRequest;e.error&&"function"==typeof e.error&&(h.onerror=
    +function(){e.error()});e.timeout&&"function"==typeof e.timeout&&(h.ontimeout=function(){e.timeout()});e.success&&"function"==typeof e.success&&(h.onload=function(){e.dataType?"json"==e.dataType.toLowerCase()&&e.success(JSON.parse(h.responseText)):e.success(h.responseText)});h.open(e.type,e.url);h.send(e.param)}}else Q.ajax({type:b,url:a,data:JSON.stringify(c),dataType:"text",success:g,error:f})})({url:this.url,type:"POST",param:JSON.stringify(c),success:g})},set:function(b,a,c){this.opts=b;this.send(a,
    +c)},send:function(b,a){this.getAjax("post",this.url,this.opts,b,a)}};(function(b){b.BeaconComm=b.BeaconComm||{};BeaconComm.cacheName="cacheList";BeaconComm.unique=function(a){a.sort();for(var b=[a[0]],e=1;e<a.length;e++)a[e]!==b[b.length-1]&&b.push(a[e]);return b};BeaconComm.getArgs=function(){for(var a={},c=b.location.search.substring(1).split("&"),e=0;e<c.length;e++){var f=c[e].indexOf("=");if(-1!=f){var h=c[e].substring(0,f),f=c[e].substring(f+1),f=decodeURIComponent(f);a[h]=f}}return a};BeaconComm.getCommon=
    +function(a){var b;e.get("appkey")?b=e.get("appkey"):b=C;return{deviceId:L,appkey:b,versionCode:R,initTime:D,channelID:M,sdkVersion:"js_v1.0.6",pixel:N,language:S,msgs:a.msg}};BeaconComm.getCommonMsg=function(a,b,e,f){return{type:2,data:{id:a,start:b,status:e,duration:f||0,pages:[],events:[]}}};BeaconComm.addSessionStart=function(a,b){e.add("lastSession",JSON.stringify({id:n.id,start:n.start}));var c=BeaconComm.getCommonMsg(n.id,n.start,b,a);if(1==b){var f={name:encodeURIComponent(window.location.href),
    +start:p,duration:0,refer:encodeURIComponent(document.referrer)};c.data.pages.push(f)}BeaconComm.addMsg(c)};BeaconComm.equal=function(a,b){if(typeof a!=typeof b||typeof a.length!=typeof b.length)return!1;var c=!0,f=[],e=[];for(d in a)"count"!==d&&"start"!==d&&f.push(d);for(d in b)"count"!==d&&"start"!==d&&e.push(d);if(f.length!=e.length)return!1;var d=0;for(var l=e.length;d<l;d++)f.push(e[d]);f=BeaconComm.unique(f);d=0;for(l=f.length;d<l;d++){if(!(f[d]in a&&f[d]in b))return!1;if("object"==typeof a[f[d]]&&
    +"object"==typeof b[f[d]])c=BeaconComm.equal(a[f[d]],b[f[d]]);else if(a[f[d]]!==b[f[d]])return!1}return c};BeaconComm.addEvent=function(a,b,g){if(e.get("sessionMsg")){g&&g(a);g=JSON.parse(e.get("sessionMsg"));var c=g.msg[g.msg.length-1].data[b];if("events"===b)if(A&&a.params&&(a.params.openid=A),a.params&&(a.params.A102=encodeURIComponent(window.location.href)),0!=c.length){b=!1;for(var h=0;h<c.length;h++)if(BeaconComm.equal(c[h],a)){b=!0;c[h].count+=1;c[h].start=a.start;break}b||c.push(a)}else c.push(a);
    +else c.push(a);e.add("sessionMsg",JSON.stringify(g))}};BeaconComm.exitSet=function(a){e.add("exittime",a);e.add("exitSession",parseInt((a-v.get("sessionStart"))/1E3))};BeaconComm.addMsg=function(a){if(e.get("sessionMsg")){var b=JSON.parse(e.get("sessionMsg"));b.msg.push(a);e.add("sessionMsg",JSON.stringify(b))}else e.add("sessionMsg",JSON.stringify({msg:[a]}))};BeaconComm.cleanMsg=function(){if(e.get("sessionMsg")){var a=JSON.parse(e.get("sessionMsg")),b=a.msg.length;1==b?(b=a.msg[0],b.data.pages=
    +[],b.data.events=[],e.delLocalStorage("sessionMsg"),e.add("sessionMsg",JSON.stringify(a))):1<b&&(b=a.msg[b-1],b.data.pages=[],b.data.events=[],a.msg=[],a.msg.push(b),e.add("sessionMsg",JSON.stringify(a)))}}})(window);var e=q.localStorage,v=q.sessionStorage,O={timedif:void 0,state:1,deviceId:0,sessionId:0,local:[],set:function(){this.setDeviceId();this.setSession();this.setSessionTime();this.setInitTime();this.setChannelID();this.setResolution();this.addlastSession();this.getAjax()},setDeviceId:function(){if(e.get("deviceId"))this.deviceId=
    +e.get("deviceId");else{var b=new q.Fingerprint,a=new q.Fingerprint({screen_resolution:!0}),b=b.get()+""+a.get();isNaN(parseInt(b))?this.deviceId=b:this.deviceId=parseInt(b).toString(16);this.deviceId=this.deviceId.replace(/\.|\+|\(|\)/g,"");e.add("deviceId",this.deviceId)}L=this.deviceId},setSession:function(){parseInt(this.deviceId,16);var b=(new Date).getTime();b=-1<this.deviceId.indexOf("-")?this.deviceId.split("-")[0]+b:this.deviceId+b;v.get("sessionId")?b=v.get("sessionId"):v.add("sessionId",
    +b);if(0<32-b.length)for(var a=0,c=32-b.length;a<c;a++)b+="0";0>32-b.length&&(b=b.substring(0,32));n.id=this.sessionId=b},setSessionTime:function(){var b=(new Date).getTime();v.get("sessionStart")?b=v.get("sessionStart"):v.add("sessionStart",b);n.start=parseInt(b)},setInitTime:function(){e.get("initTime")?D=parseInt(e.get("initTime")):(D=p,e.add("initTime",p))},setChannelID:function(){var b=BeaconComm.getArgs().channelid;void 0!=b&&(M=b)},setResolution:function(){var b=[window.screen.width,window.screen.height];
    +window.devicePixelRatio&&b.push(window.devicePixelRatio);N=b.join("*")},addlastSession:function(){var b=e.get("lastSession");void 0===b&&(e.delLocalStorage("sessionMsg"),e.delLocalStorage("lastSession"));b?(b=JSON.parse(b),console.log("AppSession.id:"+n.id),b.id!=n.id&&(b=BeaconComm.getCommonMsg(b.id,b.start,3,parseInt(e.get("exitSession"))),console.log("n:"+JSON.stringify(b)),BeaconComm.addMsg(b),this.timedif=parseInt((n.start-e.get("exittime"))/1E3),e.add("T-%%%-T","{"+(new Date(parseInt(e.get("exittime")))).toLocaleString().replace(/\u5e74|\u6708/g,
    +"-").replace(/\u65e5/g," ")+","+(new Date(parseInt(n.start))).toLocaleString().replace(/\u5e74|\u6708/g,"-").replace(/\u65e5/g," ")+"}"),e.get("appkey")?e.get("appkey")==C&&BeaconComm.addSessionStart(this.timedif,1):BeaconComm.addSessionStart(this.timedif,1))):BeaconComm.addSessionStart(0,1)},getAjax:function(){var b=this,a=new G;localStorage.__BEACON_sessionMsg||BeaconComm.addSessionStart(0,2);var c=JSON.parse(e.get("sessionMsg")),c=BeaconComm.getCommon(c),g=localStorage.__BEACON_hold_event;if(g){var f=
    +c.msgs[c.msgs.length-1];f&&(f.data.events=f.data.events.concat(JSON.parse(g)),console.log("s.data.events:"+JSON.stringify(f.data.events)))}e.delLocalStorage("hold_event");e.get("appkey")?e.get("appkey")!=C?a.set(c,function(a){e.delLocalStorage("sessionMsg");BeaconComm.addSessionStart(0,1);b.getAjax()},function(a){console.log(a)}):a.set(c,function(a){e.delLocalStorage("sessionMsg");BeaconComm.addSessionStart(0,2)},function(a){console.log(a)}):a.set(c,function(a){e.delLocalStorage("sessionMsg");BeaconComm.addSessionStart(0,
    +2)},function(a){console.log(a)});e.add("appkey",C)}};O.set();var F=0;window.BeaconAction={};window.BeaconAction.onEvent=function(b,a,c){if(0<arguments.length)try{var g={count:1,start:(new Date).getTime()};void 0!=b&&(g.id="string"!=typeof b?JSON.stringify(b):b);void 0!=a?g.name="string"!=typeof a?JSON.stringify(a):a:g.name="";void 0!=c&&(function(a){return"object"==typeof a&&"[object object]"==Object.prototype.toString.call(a).toLowerCase()&&!a.length}(c)?g.params=c:g.params={params:""});if(K)BeaconComm.addEvent(g,
    +"events");else{A&&g.params&&(g.params.openid=A);g.params&&(g.params.A102=encodeURIComponent(window.location.href));a=e.get("hold_event");c=[];c.push(g);if(a){a=JSON.parse(a);for(var f=0,h=0;h<a.length;h++)if(BeaconComm.equal(a[h],g)){a[h].count+=1;a[h].start=g.start;f=1;break}f||(a=a.concat(c));e.add("hold_event",JSON.stringify(a))}else e.add("hold_event",JSON.stringify(c));K=1}setTimeout(function(){F||(F=1,O.getAjax())},500)}catch(d){}};l=document.createEvent("Event");l.initEvent("js-sdk-loaded",
    +!0,!0);document.dispatchEvent(l)}}else console.log("none match params!")}})();
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/city-app.js b/fangija-zsyf/js/city-app.js
    new file mode 100644
    index 0000000..1061e47
    --- /dev/null
    +++ b/fangija-zsyf/js/city-app.js
    @@ -0,0 +1,102 @@
    +
    +/* 弹出城市选择页面 */
    +$(document).on("click",".open-about01", function () {
    +	$("input").blur()
    +    $("#citySearchInp").val("");
    +	$("#selectContainer").hide();
    +	$.popup(".popup-about01");
    +	$("p.close-popup").removeClass("collectionCity");
    +	$("p.close-popup").removeClass("active");
    +	$.ajax({
    +        type: "GET",
    +        url:BASE_PATH+"/quotations/loadCollectCitys",
    +        dataType:'json',
    +        success: function(data) {
    +        	
    +        	var collects = data.collects;
    +        	
    +        	$("p.close-popup").each(function(){
    +    		 	var text = $(this).text();
    +    		 	//设置关注城市
    +    		 	if(collects){
    +    		 		if(collects.indexOf(text)>-1){
    +        		 		$(this).addClass("collectionCity");
    +        		 		//$(this).find("i").addClass("icon-collection03");
    +        		 	}
    +            	}
    +    		 	
    +    		 	//设置当前城市选中
    +    		 	if(typeof(curCity)!="undefined"){ 
    +    		 		if(curCity && text == curCity){
    +        		 		$(this).addClass("active");
    +        		 	}
    +    		 	}
    +    		});
    +        }
    +    });
    +	
    +});
    +
    +/* 定位城市 */
    +$("body").on("click", ".letter a", function () {
    +	var s = $(this).html();
    +	$(".popup-about01 .content").scrollTop(0);
    +	$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
    +});
    +$("#tabCity1 .content-block01").scroll(function () {
    +	$("#tabCity1 .content-block01 .letter").css("position","absolute");
    +	$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
    +});
    +
    +/* 获取城市 */
    +$(".popup-about01 .cityGPS").on("click", function () {
    +	$("#input_city").val($(this).find("p").text());
    +	$(".cityChoice a").text($(this).find("p").text());
    +	$(".popup-about01 p").removeClass("active");
    +});
    +$(".popup-about01 p").on("click", function () {
    +	$("#input_city").val($(this).text());
    +	$(".cityChoice a").text($(this).text());
    +	$(".popup-about01 p").removeClass("active");
    +	$(this).addClass("active");
    +});
    +function req(city){
    +	city=city.replace("<i></i>","")
    +    $("#input_city").text(city);
    +	//potenialIndex(city);
    +}
    +//城市选择
    +//$("#cityCopy").html($('.tabs').html())
    +var getAllCitys = function() {
    +        var list = new Array();
    +        $("#tabCity1 #cityContainer .city p").each(function(i, o) {
    +            list.push($(o).text());
    +        });
    +        return list;
    +}
    +
    +var search = function(){
    +    var city = $("#citySearchInp").val();
    +    $("#selectContainer .city-list").empty();
    +    $("#selectContainer").show();
    +    
    +    var cityList = getAllCitys();
    +    for(var i=0;i<cityList.length;i++) {
    +        if(cityList[i].indexOf(city) != -1){
    +            $("#selectContainer .city-list").append("<p class='close-popup' onclick=\"req('"+cityList[i]+"')\">"+cityList[i]+"</p>");
    +        }
    +    }
    +
    +    if(city == ""){
    +    	$("#selectContainer").hide();
    +    }
    +}
    +
    +$("#citySearchInp").bind('input propertychange keyup', function() {
    +    search();
    +});
    +
    +$("#citySearchInp").bind('keyup', function() {
    +    search();
    +});
    +
    diff --git a/fangija-zsyf/js/city.js b/fangija-zsyf/js/city.js
    new file mode 100644
    index 0000000..c4024e4
    --- /dev/null
    +++ b/fangija-zsyf/js/city.js
    @@ -0,0 +1,84 @@
    +var renameCitys = [{"baiduCity": "阿克苏地区", "city": "阿克苏"},
    +    {"baiduCity": "阿勒泰地区", "city": "阿勒泰"},
    +    {"baiduCity": "阿里地区", "city": "阿里"},
    +    {"baiduCity": "博尔塔拉蒙古自治州", "city": "博尔塔拉"},
    +    {"baiduCity": "昌都地区", "city": "昌都"},
    +    {"baiduCity": "昌吉回族自治州", "city": "昌吉"},
    +    {"baiduCity": "白沙黎族自治县", "city": "白沙"},
    +    {"baiduCity": "保亭黎族苗族自治县", "city": "保亭"},
    +    {"baiduCity": "巴音郭楞蒙古自治州", "city": "巴音郭楞"},
    +    {"baiduCity": "毕节地区", "city": "毕节"},
    +    {"baiduCity": "昌都地区", "city": "昌都"},
    +    {"baiduCity": "昌江黎族自治县", "city": "昌江"},
    +    {"baiduCity": "楚雄彝族自治州", "city": "楚雄"},
    +    {"baiduCity": "澄迈县", "city": "澄迈"},
    +    {"baiduCity": "定安县", "city": "定安"},
    +    {"baiduCity": "大兴安岭地区", "city": "大兴安岭"},
    +    {"baiduCity": "迪庆藏族自治州", "city": "迪庆州"},
    +    {"baiduCity": "德宏傣族景颇族自治州", "city": "德宏州"},
    +    {"baiduCity": "恩施土家族苗族自治州", "city": "恩施"},
    +    {"baiduCity": "甘南藏族自治州", "city": "甘南"},
    +    {"baiduCity": "甘孜藏族自治州", "city": "甘孜州"},
    +    {"baiduCity": "果洛藏族自治州", "city": "果洛州"},
    +    {"baiduCity": "哈密地区", "city": "哈密"},
    +    {"baiduCity": "海北藏族自治州", "city": "海北州"},
    +    {"baiduCity": "海南藏族自治州", "city": "海南州"},
    +    {"baiduCity": "海西蒙古族藏族自治州", "city": "海西州"},
    +    {"baiduCity": "海东地区", "city": "海东"},
    +    {"baiduCity": "和田地区", "city": "和田"},
    +    {"baiduCity": "红河哈尼族彝族自治州", "city": "红河"},
    +    {"baiduCity": "黄南藏族自治州", "city": "黄南州"},
    +    {"baiduCity": "喀什地区", "city": "喀什"},
    +    {"baiduCity": "克孜勒苏柯尔克孜自治州", "city": "克孜勒苏"},
    +    {"baiduCity": "乐东黎族自治县", "city": "乐东"},
    +    {"baiduCity": "凉山彝族自治州", "city": "凉山州"},
    +    {"baiduCity": "临高县", "city": "临高"},
    +    {"baiduCity": "临夏回族自治州", "city": "临夏"},
    +    {"baiduCity": "陵水黎族自治县", "city": "陵水"},
    +    {"baiduCity": "林芝地区", "city": "林芝"},
    +    {"baiduCity": "那曲地区", "city": "那曲"},
    +    {"baiduCity": "怒江傈僳族自治州", "city": "怒江州"},
    +    {"baiduCity": "琼中黎族苗族自治县", "city": "琼中"},
    +    {"baiduCity": "黔东南苗族侗族自治州", "city": "黔东南"},
    +    {"baiduCity": "黔南布依族苗族自治州", "city": "黔南"},
    +    {"baiduCity": "黔西南布依族苗族自治州", "city": "黔西南"},
    +    {"baiduCity": "日喀则地区", "city": "日喀则"},
    +    {"baiduCity": "山南地区", "city": "山南"},
    +    {"baiduCity": "神农架林区", "city": "神农架"},
    +    {"baiduCity": "塔城地区", "city": "塔城"},
    +    {"baiduCity": "铜仁地区", "city": "铜仁"},
    +    {"baiduCity": "吐鲁番地区", "city": "吐鲁番"},
    +    {"baiduCity": "屯昌县", "city": "屯昌"},
    +    {"baiduCity": "文山壮族苗族自治州", "city": "文山州"},
    +    {"baiduCity": "西双版纳傣族自治州", "city": "西双版纳州"},
    +    {"baiduCity": "湘西土家族苗族自治州", "city": "湘西"},
    +    {"baiduCity": "延边朝鲜族自治州", "city": "延边"},
    +    {"baiduCity": "伊犁哈萨克自治州", "city": "伊犁"},
    +    {"baiduCity": "玉树藏族自治州", "city": "玉树州"}];
    + String.prototype.startWith=function(str){     
    +  var reg=new RegExp("^"+str);     
    +  return reg.test(this);        
    +}  
    +
    +String.prototype.endWith=function(str){     
    +  var reg=new RegExp(str+"$");     
    +  return reg.test(this);        
    +}
    +/**
    + * 把百度的城市格式化成房价网的城市
    + * @param baiduCity
    + * @returns {string}
    + */
    +function formatBaiduCity(baiduCity) {
    +    var newCity = "";
    +    for (var i = 0; i < renameCitys.length; i++) {
    +        if (renameCitys[i].baiduCity == baiduCity) {
    +            newCity = renameCitys[i].city;
    +            break;
    +        }
    +    }
    +    if (newCity == "" && baiduCity.endWith("市")) {
    +    	newCity = baiduCity.substring(0,baiduCity.length-1);
    +    }
    +    return newCity;
    +}
    diff --git a/fangija-zsyf/js/cityRegion.js b/fangija-zsyf/js/cityRegion.js
    new file mode 100644
    index 0000000..d8b780c
    --- /dev/null
    +++ b/fangija-zsyf/js/cityRegion.js
    @@ -0,0 +1,13340 @@
    +{"data":
    +	[
    +	 {
    +  "city" : "黄山",
    +  "name" : "徽州"
    +},
    +{
    +  "city" : "贵港",
    +  "name" : "桂平"
    +},
    +{
    +  "city" : "黄山",
    +  "name" : "歙县"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "尼木"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "曲水"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "朝天"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "苍溪"
    +},
    +{
    +  "city" : "乌海",
    +  "name" : "海勃湾"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "五原"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "磴口"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "杭锦后旗"
    +},
    +{
    +  "city" : "来宾",
    +  "name" : "金秀"
    +},
    +{
    +  "city" : "防城港",
    +  "name" : "港口"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "南岔"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "友好"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "西林"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "汤旺河"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "乌伊岭"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "阜南"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "红星"
    +},
    +{
    +  "city" : "松原",
    +  "name" : "前郭尔罗斯"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "临洮"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "调兵山"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "宏伟"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "太子河"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "漳县"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "弓长岭"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "铁岭"
    +},
    +{
    +  "city" : "吴忠",
    +  "name" : "红寺堡"
    +},
    +{
    +  "city" : "吴忠",
    +  "name" : "青铜峡"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "营子"
    +},
    +{
    +  "city" : "吴忠",
    +  "name" : "盐池"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "承德"
    +},
    +{
    +  "city" : "防城港",
    +  "name" : "上思"
    +},
    +{
    +  "city" : "吴忠",
    +  "name" : "同心"
    +},
    +{
    +  "city" : "泰安",
    +  "name" : "泰山"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "隆化"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "滦平"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "尖山"
    +},
    +{
    +  "city" : "枣庄",
    +  "name" : "峄城"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "禹会"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "怀远"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "北林"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "伊金霍洛"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "安达"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "万秀"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "海伦"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "长洲"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "南谯"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "兰西"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "绥棱"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "来安"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "东昌"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "集安"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "通化"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "辉南"
    +},
    +{
    +  "city" : "钦州",
    +  "name" : "钦南"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "龙海"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "华安"
    +},
    +{
    +  "city" : "钦州",
    +  "name" : "浦北"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "平和"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "东山"
    +},
    +{
    +  "city" : "汕尾",
    +  "name" : "陆河"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "乐业"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "雨城"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "麻山"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "芦山"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "密山"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "冷水滩"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "零陵"
    +},
    +{
    +  "city" : "七台河",
    +  "name" : "桃山"
    +},
    +{
    +  "city" : "白城",
    +  "name" : "通榆"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "康保"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "双牌"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "道县"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "蔚县"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "江永"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "阳原"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "江华"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "双塔"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "龙城"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "万全"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "怀来"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "涿鹿"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "崇礼"
    +},
    +{
    +  "city" : "娄底",
    +  "name" : "冷水江"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "建平"
    +},
    +{
    +  "city" : "克拉玛依",
    +  "name" : "克拉玛依"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "石首"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "洪湖"
    +},
    +{
    +  "city" : "咸宁",
    +  "name" : "通山"
    +},
    +{
    +  "city" : "咸宁",
    +  "name" : "通城"
    +},
    +{
    +  "city" : "三门峡",
    +  "name" : "湖滨"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "海拉尔"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "额尔古纳"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "陈旗"
    +},
    +{
    +  "city" : "东营",
    +  "name" : "东营"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "内丘"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "宁陵"
    +},
    +{
    +  "city" : "东营",
    +  "name" : "河口"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "柏乡"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "柘城"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "隆尧"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "虞城"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "宁晋"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "宁明"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "屯留"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "黎城"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "长子"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "金城江"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "巴马"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "石楼"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "岚县"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "方山"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "罗城"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "环江"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "临县"
    +},
    +{
    +  "city" : "日照",
    +  "name" : "莒县"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "萝北"
    +},
    +{
    +  "city" : "黑河",
    +  "name" : "爱辉"
    +},
    +{
    +  "city" : "黑河",
    +  "name" : "五大连池"
    +},
    +{
    +  "city" : "黑河",
    +  "name" : "逊克"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "新华"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "泊头"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "河间"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "沧县"
    +},
    +{
    +  "city" : "金昌",
    +  "name" : "金川"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "成县"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "文县"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "临川"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "浦城"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "福安"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "霞浦"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "周宁"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "南丰"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "澳前镇"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "嘉祥"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "汶上"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "昭阳"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "水富县"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "东昌府"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "大关县"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "鲁甸县"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "盐津县"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "彝良县"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "威信县"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "茌平"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "东阿"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "高唐"
    +},
    +{
    +  "city" : "淮北",
    +  "name" : "烈山"
    +},
    +{
    +  "city" : "淮北",
    +  "name" : "杜集"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "赫章"
    +},
    +{
    +  "city" : "景德镇",
    +  "name" : "浮梁"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "广德"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "梅列"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "三元"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "沙县"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "长汀"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "连城"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "上杭"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "永定"
    +},
    +{
    +  "city" : "遂宁",
    +  "name" : "大英"
    +},
    +{
    +  "city" : "铜川",
    +  "name" : "王益"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "北湖"
    +},
    +{
    +  "city" : "海东",
    +  "name" : "循化"
    +},
    +{
    +  "city" : "益阳",
    +  "name" : "安化"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "通川"
    +},
    +{
    +  "city" : "巴中",
    +  "name" : "巴州"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "应城"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "崆峒"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "云梦"
    +},
    +{
    +  "city" : "巴中",
    +  "name" : "平昌"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "华亭"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "静宁"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "鹿邑"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "鹤城"
    +},
    +{
    +  "city" : "荆门",
    +  "name" : "掇刀"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "郸城"
    +},
    +{
    +  "city" : "荆门",
    +  "name" : "沙洋"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "中方"
    +},
    +{
    +  "city" : "阳泉",
    +  "name" : "矿区"
    +},
    +{
    +  "city" : "阳泉",
    +  "name" : "郊区"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "新晃"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "泸县"
    +},
    +{
    +  "city" : "阳泉",
    +  "name" : "平定"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "合江"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "夏县"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "镇康"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "新绛"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "平陆"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "房县"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "华州"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "白水"
    +},
    +{
    +  "city" : "漯河",
    +  "name" : "舞阳"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "忻府"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "原平"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "神池"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "五寨"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "偏关"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "河曲"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "环县"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "宁武"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "昔阳"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "寿阳"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "婺源"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "光山"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "商城"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "潢川"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "息县"
    +},
    +{
    +  "city" : "张掖",
    +  "name" : "民乐"
    +},
    +{
    +  "city" : "张掖",
    +  "name" : "高台"
    +},
    +{
    +  "city" : "张掖",
    +  "name" : "肃南"
    +},
    +{
    +  "city" : "新余",
    +  "name" : "渝水"
    +},
    +{
    +  "city" : "新余",
    +  "name" : "分宜"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "丰城"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "樟树"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "高安"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "金台"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "万载"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "渭滨"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "上高"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "陈仓"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "岐山"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "扶风"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "驿城"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "眉县"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "凤翔"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "上蔡"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "陇县"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "千阳"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "平舆"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "奉新"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "麟游"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "正阳"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "凤县"
    +},
    +{
    +  "city" : "宝鸡",
    +  "name" : "太白"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "汝南"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "遂平"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "新蔡"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "宜丰"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "铜鼓"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "靖安"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "顺河"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "鼓楼"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "杞县"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "尉氏"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "双清"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "大祥"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "隆回"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "洞口"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "阿克苏"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "库车"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "伽师"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "牟定"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "东明"
    +},
    +{
    +  "city" : "哈密",
    +  "name" : "巴里坤"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "青河"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "吉木乃"
    +},
    +{
    +  "city" : "博尔塔拉",
    +  "name" : "博乐"
    +},
    +{
    +  "city" : "博尔塔拉",
    +  "name" : "阿拉山口"
    +},
    +{
    +  "city" : "博尔塔拉",
    +  "name" : "精河"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "轮台"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "且末"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "和静"
    +},
    +{
    +  "city" : "克孜勒苏",
    +  "name" : "阿图什"
    +},
    +{
    +  "city" : "克孜勒苏",
    +  "name" : "乌恰"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "伊宁县"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "绿春"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "元阳"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "屏边"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "江达"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "贡觉"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "类乌齐"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "丁青"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "察雅"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "八宿"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "洛隆"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "左贡"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "芒康"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "边坝"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "桑珠孜"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "南木林"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "白朗"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "萨迦"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "岗巴"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "定结"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "仁布"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "谢通门"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "吉隆"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "措美"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "隆子"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "琼结"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "桑日"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "贡嘎"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "错那"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "浪卡子"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "营山"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "阆中"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "双湖"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "普兰"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "改则"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "米林"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "工布江达"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "朗县"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "墨脱"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "察隅"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "波密"
    +},
    +{
    +  "city" : "兴安盟",
    +  "name" : "乌兰浩特"
    +},
    +{
    +  "city" : "兴安盟",
    +  "name" : "阿尔山"
    +},
    +{
    +  "city" : "兴安盟",
    +  "name" : "科右前旗"
    +},
    +{
    +  "city" : "兴安盟",
    +  "name" : "科右中旗"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "锡林浩特"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "多伦"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "阿巴嘎"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "西乌旗"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "东乌旗"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "太仆寺"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "正蓝"
    +},
    +{
    +  "city" : "阿拉善盟",
    +  "name" : "阿左旗"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "宁南"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "普格"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "布拖"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "越西"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "冕宁"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "榕江"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "从江"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "雷山"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "三穗"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "镇远"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "丘北"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "广南"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "兴仁"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "晴隆"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "册亨"
    +},
    +{
    +  "city" : "怒江州",
    +  "name" : "泸水"
    +},
    +{
    +  "city" : "怒江州",
    +  "name" : "福贡"
    +},
    +{
    +  "city" : "怒江州",
    +  "name" : "兰坪"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "广河"
    +},
    +{
    +  "city" : "怒江州",
    +  "name" : "贡山"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "和政"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "康乐"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "东乡"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "积石"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "合作"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "夏河"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "玛曲"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "碌曲"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "吉首"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "泸溪"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "花垣"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "保靖"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "古丈"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "龙山"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "卓尼"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "舟曲"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "小金"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "红原"
    +},
    +{
    +  "city" : "海南州",
    +  "name" : "共和"
    +},
    +{
    +  "city" : "海南州",
    +  "name" : "兴海"
    +},
    +{
    +  "city" : "黄南州",
    +  "name" : "同仁"
    +},
    +{
    +  "city" : "黄南州",
    +  "name" : "尖扎"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "九龙"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "雅江"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "炉霍"
    +},
    +{
    +  "city" : "黄南州",
    +  "name" : "泽库"
    +},
    +{
    +  "city" : "黄南州",
    +  "name" : "河南"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "石渠"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "巴塘"
    +},
    +{
    +  "city" : "果洛州",
    +  "name" : "达日"
    +},
    +{
    +  "city" : "果洛州",
    +  "name" : "久治"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "得荣"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "乌烈"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "万泉"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "龙江"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "瑞溪"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "万冲"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "抱由"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "永发"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "石壁"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "大安"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "志仲"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "会山"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "老城"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "千家"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "尖峰"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "南丰"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "莺歌海"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "桥头"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "新州"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "中兴"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "椰林"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "英州"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "本号"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "峨蔓"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "兰洋"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "文罗"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "铺前"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "冯坡"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "新竹"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "重兴"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "龙湖"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "会文"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "龙河"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "黄竹"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "南坤"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "潭牛"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "西昌"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "三道"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "南林"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "毛感"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "南宝"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "龙滚"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "皇桐"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "感城"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "黎母山"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "板桥"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "长征"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "大田"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "牙叉"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "邦溪"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "七坊"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "元门"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "郑场"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "毛嘴"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "胡场"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "麻洋"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "马湾"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "小板"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "向阳"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "东城"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "新城"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "宋洛"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "金银川"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "通什"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "喀拉拜勒"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "青湖路"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "济水"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "沁园"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "梨林"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "轵城"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "承留"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "坡头"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "王屋"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "沙湖"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "潜江"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "天门"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "琼中"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "万宁"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "五指山"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "琼海"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "石河子"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "阿拉尔市"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "图木舒克市"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "五家渠市"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "庐山"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "东莞"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "八十五团"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "九〇团"
    +},
    +{
    +  "city" : "可克达拉",
    +  "name" : "界梁子"
    +},
    +{
    +  "city" : "可克达拉",
    +  "name" : "可克达拉"
    +},
    +{
    +  "city" : "铁门关",
    +  "name" : "中心城"
    +},
    +{
    +  "city" : "北屯",
    +  "name" : "丰庆"
    +},
    +{
    +  "city" : "嘉峪关",
    +  "name" : "嘉峪关"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "竹根滩"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "沙田"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "茶山"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "大岭山"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "洪梅"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "麻涌"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "桥头"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "石排"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "望牛墩"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "中堂"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "庐阳"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "长丰"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "肥西"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "南明"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "乌当"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "安宁"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "盘龙"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "西山"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "托克托"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "和林格尔"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "新建"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "安义"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "西湖"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "青山湖"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "霞山"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "廉江"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "兴平"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "武功"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "秦都"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "长武"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "旬邑"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "渭城"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "杨陵"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "礼泉"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "乾县"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "泾阳"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "三原"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "彬县"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "淳化"
    +},
    +{
    +  "city" : "常州",
    +  "name" : "新北"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "秀洲"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "海盐"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "平湖"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "鼓楼"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "丰县"
    +},
    +{
    +  "city" : "珠海",
    +  "name" : "香洲"
    +},
    +{
    +  "city" : "珠海",
    +  "name" : "金湾"
    +},
    +{
    +  "city" : "珠海",
    +  "name" : "斗门"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "阿城"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "道外"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "平房"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "南关"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "榆树"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "德惠"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "农安"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "船营"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "龙潭"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "永吉"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "磐石"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "昌邑"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "招远"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "芝罘"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "福山"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "龙口"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "莱山"
    +},
    +{
    +  "city" : "镇江",
    +  "name" : "京口"
    +},
    +{
    +  "city" : "镇江",
    +  "name" : "丹徒"
    +},
    +{
    +  "city" : "镇江",
    +  "name" : "句容"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "镜湖"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "南陵"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "弋江"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "鸠江"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "涧西"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "西工"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "偃师"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "嵩县"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "洛宁"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "西乡塘"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "上林"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "宾阳"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "隆安"
    +},
    +{
    +  "city" : "惠州",
    +  "name" : "龙门"
    +},
    +{
    +  "city" : "惠州",
    +  "name" : "惠东"
    +},
    +{
    +  "city" : "惠州",
    +  "name" : "惠阳"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "丰泽"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "鲤城"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "永春"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "安溪"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "象山"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "七星"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "叠彩"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "兴安"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "全州"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "灌阳"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "平乐"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "恭城"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "秀峰"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "安丘"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "高密"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "奎文"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "坊子"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "青州"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "邱县"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "永年"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "大名"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "丛台"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "武安"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "鸡泽"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "临漳"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "广阳"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "三河"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "霸州"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "固安"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "文安"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "大厂"
    +},
    +{
    +  "city" : "绍兴",
    +  "name" : "上虞"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "皋兰"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "榆中"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "保康"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "宜城"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "株洲"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "茶陵"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "醴陵"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "屏山"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "江安"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "高县"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "珙县"
    +},
    +{
    +  "city" : "自贡",
    +  "name" : "沿滩"
    +},
    +{
    +  "city" : "泰州",
    +  "name" : "泰兴"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "满城"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "涿州"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "莲池"
    +},
    +{
    +  "city" : "湖州",
    +  "name" : "吴兴"
    +},
    +{
    +  "city" : "衢州",
    +  "name" : "柯城"
    +},
    +{
    +  "city" : "衢州",
    +  "name" : "江山"
    +},
    +{
    +  "city" : "衢州",
    +  "name" : "龙游"
    +},
    +{
    +  "city" : "宿迁",
    +  "name" : "沭阳"
    +},
    +{
    +  "city" : "宿迁",
    +  "name" : "泗洪"
    +},
    +{
    +  "city" : "宿迁",
    +  "name" : "宿城"
    +},
    +{
    +  "city" : "宿迁",
    +  "name" : "泗阳"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "金东"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "义乌"
    +},
    +{
    +  "city" : "连云港",
    +  "name" : "灌云"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "立山"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "台安"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "张店"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "临淄"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "高青"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "盐都"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "滨海"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "伍家岗"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "兴山"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "长阳"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "五峰"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "宝塔"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "黄龙"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "安塞"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "信丰"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "赣县"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "南康"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "浔阳"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "濂溪"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "德安"
    +},
    +{
    +  "city" : "丽江",
    +  "name" : "玉龙"
    +},
    +{
    +  "city" : "丽江",
    +  "name" : "宁蒗"
    +},
    +{
    +  "city" : "丽江",
    +  "name" : "华坪"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "柳南"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "柳北"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "龙凤"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "洱源"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "云龙"
    +},
    +{
    +  "city" : "张家界",
    +  "name" : "桑植"
    +},
    +{
    +  "city" : "六盘水",
    +  "name" : "盘县"
    +},
    +{
    +  "city" : "六盘水",
    +  "name" : "六枝"
    +},
    +{
    +  "city" : "六盘水",
    +  "name" : "水城"
    +},
    +{
    +  "city" : "莆田",
    +  "name" : "秀屿"
    +},
    +{
    +  "city" : "莆田",
    +  "name" : "仙游"
    +},
    +{
    +  "city" : "莆田",
    +  "name" : "涵江"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "容县"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "北流"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "博白"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "兴业"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "玉州"
    +},
    +{
    +  "city" : "丹东",
    +  "name" : "振安"
    +},
    +{
    +  "city" : "丹东",
    +  "name" : "凤城"
    +},
    +{
    +  "city" : "丹东",
    +  "name" : "东港"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "雨花台"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "黄岛"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "佛冈"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "同里"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "平望"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "横扇"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "黎里"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "滨湖新城"
    +},
    +{
    +  "city" : "慈溪",
    +  "name" : "慈溪"
    +},
    +{
    +  "city" : "奉化",
    +  "name" : "奉化"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "张渚镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "西渚镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "徐舍镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "和桥镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "太华镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "芳桥镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "新庄街道"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "环保科技工业园"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "宜兴经济开发区"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "玉山"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "锦溪"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "龙湖"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "濠江"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "端州"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "汾湖"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "文峰"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "安阳"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "林州"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "珠晖"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "祁东"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "屺亭街道"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "红旗"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "新乡"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "获嘉"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "原阳"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "延津"
    +},
    +{
    +  "city" : "营口",
    +  "name" : "西市"
    +},
    +{
    +  "city" : "营口",
    +  "name" : "鲅鱼圈"
    +},
    +{
    +  "city" : "营口",
    +  "name" : "大石桥"
    +},
    +{
    +  "city" : "营口",
    +  "name" : "盖州"
    +},
    +{
    +  "city" : "潮州",
    +  "name" : "饶平"
    +},
    +{
    +  "city" : "河源",
    +  "name" : "源城"
    +},
    +{
    +  "city" : "河源",
    +  "name" : "东源"
    +},
    +{
    +  "city" : "河源",
    +  "name" : "和平"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "中站"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "修武"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "温县"
    +},
    +{
    +  "city" : "揭阳",
    +  "name" : "揭西"
    +},
    +{
    +  "city" : "揭阳",
    +  "name" : "普宁"
    +},
    +{
    +  "city" : "茂名",
    +  "name" : "茂南"
    +},
    +{
    +  "city" : "茂名",
    +  "name" : "信宜"
    +},
    +{
    +  "city" : "茂名",
    +  "name" : "化州"
    +},
    +{
    +  "city" : "茂名",
    +  "name" : "电白"
    +},
    +{
    +  "city" : "盘锦",
    +  "name" : "双台子"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "汝州"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "翁源"
    +},
    +{
    +  "city" : "阳江",
    +  "name" : "江城"
    +},
    +{
    +  "city" : "阳江",
    +  "name" : "阳东"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "梅江"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "平远"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "花桥"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "曹村"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "飞云"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "锦湖"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "平阳坑"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "上望"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "塘下"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "莘塍"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "虹桥"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "仙溪"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "支塘镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "辛庄镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "练塘镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "东南开发区"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "尚湖镇"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "宾县"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "巴彦"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "黔江"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "潼南"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "荣昌"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "梁平"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "丰都"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "垫江"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "忠县"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "云阳"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "奉节"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "巫山"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "涟水"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "上犹"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "崇义"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "安远"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "龙南"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "定南"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "于都"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "兴国"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "寻乌"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "望江"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "英山"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "蕲春"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "牡丹"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "单县"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "成武"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "鄄城"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "定陶"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "汉台"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "矿区"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "新荣"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "天镇"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "灵丘"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "左云"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "红山"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "元宝山"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "松山"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "阿鲁科尔沁"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "临澧"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "庐江"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "富拉尔基"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "泰来"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "甘南"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "富裕"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "克东"
    +},
    +{
    +  "city" : "四平",
    +  "name" : "铁西"
    +},
    +{
    +  "city" : "四平",
    +  "name" : "铁东"
    +},
    +{
    +  "city" : "四平",
    +  "name" : "公主岭"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "君山"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "云溪"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "华容"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "青山"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "石拐"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "白云矿"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "九原"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "湟源"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "达茂旗"
    +},
    +{
    +  "city" : "三亚",
    +  "name" : "吉阳"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "彭水"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "定兴"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "阜平"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "蠡县"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "容城"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "顺平"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "望都"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "易县"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "侯马"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "曲沃"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "洪洞"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "汾西"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "吉县"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "神木"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "府谷"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "定边"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "米脂"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "吴堡"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "沂水"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "平邑"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "临沭"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "费县"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "社旗"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "镇平"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "内乡"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "东风"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "汤原"
    +},
    +{
    +  "city" : "武威",
    +  "name" : "凉州"
    +},
    +{
    +  "city" : "武威",
    +  "name" : "天祝"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "正安"
    +},
    +{
    +  "city" : "辽源",
    +  "name" : "龙山"
    +},
    +{
    +  "city" : "辽源",
    +  "name" : "西安"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "莲都"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "青田"
    +},
    +{
    +  "city" : "中卫",
    +  "name" : "海原"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "云和"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "金口河"
    +},
    +{
    +  "city" : "石嘴山",
    +  "name" : "惠农"
    +},
    +{
    +  "city" : "石嘴山",
    +  "name" : "平罗"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "科左后旗"
    +},
    +{
    +  "city" : "晋城",
    +  "name" : "阳城"
    +},
    +{
    +  "city" : "晋城",
    +  "name" : "泽州"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "奈曼"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "扎鲁特"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "古塔"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "凉城"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "察右前"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "察右后"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "四子王"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "凌海"
    +},
    +{
    +  "city" : "贺州",
    +  "name" : "八步"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "北镇"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "黑山"
    +},
    +{
    +  "city" : "贺州",
    +  "name" : "平桂"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "义县"
    +},
    +{
    +  "city" : "贺州",
    +  "name" : "钟山"
    +},
    +{
    +  "city" : "贺州",
    +  "name" : "昭平"
    +},
    +{
    +  "city" : "黄山",
    +  "name" : "黄山"
    +},
    +{
    +  "city" : "黄山",
    +  "name" : "祁门"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "昭化"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "旺苍"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "剑阁"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "青川"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "临河"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "乌拉特"
    +},
    +{
    +  "city" : "来宾",
    +  "name" : "合山"
    +},
    +{
    +  "city" : "来宾",
    +  "name" : "象州"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "伊春"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "颍州"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "翠峦"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "金山屯"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "乌马河"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "颍上"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "上甘岭"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "界首"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "嘉荫"
    +},
    +{
    +  "city" : "松原",
    +  "name" : "宁江"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "银州"
    +},
    +{
    +  "city" : "松原",
    +  "name" : "长岭"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "文圣"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "岷县"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "西丰"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "灯塔"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "昌图"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "辽阳"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "丰宁"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "宽城"
    +},
    +{
    +  "city" : "枣庄",
    +  "name" : "市中"
    +},
    +{
    +  "city" : "枣庄",
    +  "name" : "薛城"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "武山"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "清水"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "明水"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "天长"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "明光"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "青冈"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "庆安"
    +},
    +{
    +  "city" : "钦州",
    +  "name" : "钦北"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "柳河"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "龙文"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "芗城"
    +},
    +{
    +  "city" : "钦州",
    +  "name" : "灵山"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "长泰"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "南靖"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "云霄"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "墨江"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "太平"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "景东"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "景谷"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "凌云"
    +},
    +{
    +  "city" : "德阳",
    +  "name" : "广汉"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "隆林"
    +},
    +{
    +  "city" : "广安",
    +  "name" : "广安"
    +},
    +{
    +  "city" : "广安",
    +  "name" : "前锋"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "鸡冠"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "滴道"
    +},
    +{
    +  "city" : "广安",
    +  "name" : "岳池"
    +},
    +{
    +  "city" : "广安",
    +  "name" : "武胜"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "梨树"
    +},
    +{
    +  "city" : "广安",
    +  "name" : "邻水"
    +},
    +{
    +  "city" : "七台河",
    +  "name" : "茄子河"
    +},
    +{
    +  "city" : "白城",
    +  "name" : "洮南"
    +},
    +{
    +  "city" : "白城",
    +  "name" : "镇赉"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "东安"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "尚义"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "朝阳"
    +},
    +{
    +  "city" : "娄底",
    +  "name" : "涟源"
    +},
    +{
    +  "city" : "克拉玛依",
    +  "name" : "独山子"
    +},
    +{
    +  "city" : "克拉玛依",
    +  "name" : "白碱滩"
    +},
    +{
    +  "city" : "娄底",
    +  "name" : "新化"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "喀左"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "沙市"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "松滋"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "江陵"
    +},
    +{
    +  "city" : "固原",
    +  "name" : "原州"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "公安"
    +},
    +{
    +  "city" : "固原",
    +  "name" : "西吉"
    +},
    +{
    +  "city" : "固原",
    +  "name" : "隆德"
    +},
    +{
    +  "city" : "亳州",
    +  "name" : "蒙城"
    +},
    +{
    +  "city" : "咸宁",
    +  "name" : "咸安"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "金安"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "桥东"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "邢台"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "鄂温克自治旗"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "永城"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "莫旗"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "睢县"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "任县"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "郊区"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "长治"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "龙州"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "襄垣"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "平乡"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "平顺"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "壶关"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "武乡"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "临西"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "沁县"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "宜州"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "离石"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "南丹"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "孝义"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "东兰"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "大化"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "兴县"
    +},
    +{
    +  "city" : "日照",
    +  "name" : "五莲"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "兴山"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "向阳"
    +},
    +{
    +  "city" : "黑河",
    +  "name" : "嫩江"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "海兴"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "盐山"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "徽县"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "两当"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "献县"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "沾化"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "博兴"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "邹平"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "新抚"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "顺城"
    +},
    +{
    +  "city" : "宿州",
    +  "name" : "埇桥"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "望花"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "德城"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "新宾"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "清原"
    +},
    +{
    +  "city" : "宿州",
    +  "name" : "砀山"
    +},
    +{
    +  "city" : "宿州",
    +  "name" : "萧县"
    +},
    +{
    +  "city" : "宿州",
    +  "name" : "灵璧"
    +},
    +{
    +  "city" : "葫芦岛",
    +  "name" : "龙港"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "宁津"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "庆云"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "临邑"
    +},
    +{
    +  "city" : "池州",
    +  "name" : "贵池"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "平原"
    +},
    +{
    +  "city" : "池州",
    +  "name" : "石台"
    +},
    +{
    +  "city" : "萍乡",
    +  "name" : "安源"
    +},
    +{
    +  "city" : "萍乡",
    +  "name" : "湘东"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "深州"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "枣强"
    +},
    +{
    +  "city" : "萍乡",
    +  "name" : "莲花"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "建阳"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "建瓯"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "故城"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "景县"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "政和"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "任城"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "兖州"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "南城"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "苏澳镇"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "曲阜"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "屿头乡"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "邹城"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "崇仁"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "宜黄"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "大练乡"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "广昌"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "金乡"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "东乡"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "泗水"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "岚城乡"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "七星关"
    +},
    +{
    +  "city" : "景德镇",
    +  "name" : "昌江"
    +},
    +{
    +  "city" : "景德镇",
    +  "name" : "珠山"
    +},
    +{
    +  "city" : "景德镇",
    +  "name" : "乐平"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "纳雍"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "织金"
    +},
    +{
    +  "city" : "资阳",
    +  "name" : "雁江"
    +},
    +{
    +  "city" : "资阳",
    +  "name" : "安岳"
    +},
    +{
    +  "city" : "保山",
    +  "name" : "隆阳"
    +},
    +{
    +  "city" : "铜川",
    +  "name" : "宜君"
    +},
    +{
    +  "city" : "眉山",
    +  "name" : "青神"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "万山"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "石阡"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "思南"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "资兴"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "德江"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "安仁"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "桂阳"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "松桃"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "永兴"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "沿河"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "印江"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "宜章"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "嘉禾"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "临武"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "汝城"
    +},
    +{
    +  "city" : "朔州",
    +  "name" : "朔城"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "桂东"
    +},
    +{
    +  "city" : "朔州",
    +  "name" : "平鲁"
    +},
    +{
    +  "city" : "朔州",
    +  "name" : "山阴"
    +},
    +{
    +  "city" : "朔州",
    +  "name" : "应县"
    +},
    +{
    +  "city" : "朔州",
    +  "name" : "右玉"
    +},
    +{
    +  "city" : "朔州",
    +  "name" : "怀仁"
    +},
    +{
    +  "city" : "内江",
    +  "name" : "市中"
    +},
    +{
    +  "city" : "益阳",
    +  "name" : "资阳"
    +},
    +{
    +  "city" : "内江",
    +  "name" : "东兴"
    +},
    +{
    +  "city" : "内江",
    +  "name" : "资中"
    +},
    +{
    +  "city" : "益阳",
    +  "name" : "赫山"
    +},
    +{
    +  "city" : "海东",
    +  "name" : "乐都"
    +},
    +{
    +  "city" : "内江",
    +  "name" : "威远"
    +},
    +{
    +  "city" : "内江",
    +  "name" : "隆昌"
    +},
    +{
    +  "city" : "海东",
    +  "name" : "平安"
    +},
    +{
    +  "city" : "海东",
    +  "name" : "互助"
    +},
    +{
    +  "city" : "海东",
    +  "name" : "化隆"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "达川"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "开江"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "宣汉"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "渠县"
    +},
    +{
    +  "city" : "随州",
    +  "name" : "曾都"
    +},
    +{
    +  "city" : "随州",
    +  "name" : "广水"
    +},
    +{
    +  "city" : "随州",
    +  "name" : "随县"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "孝南"
    +},
    +{
    +  "city" : "巴中",
    +  "name" : "恩阳"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "汉川"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "泾川"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "大悟"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "崇信"
    +},
    +{
    +  "city" : "荆门",
    +  "name" : "京山"
    +},
    +{
    +  "city" : "荆门",
    +  "name" : "钟祥"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "会同"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "纳溪"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "龙马潭"
    +},
    +{
    +  "city" : "阳泉",
    +  "name" : "盂县"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "靖州"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "临翔"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "稷山"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "双江"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "芮城"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "临渭"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "丹江口"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "韩城"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "郧阳"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "郧西"
    +},
    +{
    +  "city" : "漯河",
    +  "name" : "郾城"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "合阳"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "富平"
    +},
    +{
    +  "city" : "鹤壁",
    +  "name" : "浚县"
    +},
    +{
    +  "city" : "嘉峪关",
    +  "name" : "雄关"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "静乐"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "定襄"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "五台"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "庆城"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "榆次"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "宁县"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "上饶"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "铅山"
    +},
    +{
    +  "city" : "鹰潭",
    +  "name" : "月湖"
    +},
    +{
    +  "city" : "宜春",
    +  "name" : "袁州"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "北塔"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "新邵"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "绥宁"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "新宁"
    +},
    +{
    +  "city" : "三沙",
    +  "name" : "南沙"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "沙雅"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "疏勒"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "莎车"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "叶城"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "麦盖提"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "巴楚"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "塔县"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "奇台"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "双柏"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "禄丰"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "牡丹"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "定陶区"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "郓城"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "鄄城"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "加格达奇"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "呼玛"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "塔河"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "漠河"
    +},
    +{
    +  "city" : "博尔塔拉",
    +  "name" : "温泉"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "库尔勒"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "尉犁"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "金平"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "河口"
    +},
    +{
    +  "city" : "昌都",
    +  "name" : "卡若"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "拉孜"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "亚东"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "仲巴"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "乃东"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "洛扎"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "加查"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "高坪"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "嘉陵"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "仪陇"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "安多"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "聂荣"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "比如"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "巴青"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "申扎"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "班戈"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "尼玛"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "噶尔"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "札达"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "日土"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "革吉"
    +},
    +{
    +  "city" : "阿里",
    +  "name" : "措勤"
    +},
    +{
    +  "city" : "兴安盟",
    +  "name" : "突泉"
    +},
    +{
    +  "city" : "兴安盟",
    +  "name" : "扎赉特"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "二连"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "苏右旗"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "正镶白"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "镶黄"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "西昌"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "德昌"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "美姑"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "喜德"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "盐源"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "汪清"
    +},
    +{
    +  "city" : "西双版纳州",
    +  "name" : "景洪"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "恩施"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "利川"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "建始"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "巴东"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "宣恩"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "文山"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "咸丰"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "鹤峰"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "马关"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "贞丰"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "荔波"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "瓮安"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "罗甸"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "长顺"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "龙里"
    +},
    +{
    +  "city" : "德宏州",
    +  "name" : "芒市"
    +},
    +{
    +  "city" : "德宏州",
    +  "name" : "瑞丽"
    +},
    +{
    +  "city" : "德宏州",
    +  "name" : "盈江"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "凤凰"
    +},
    +{
    +  "city" : "海北州",
    +  "name" : "祁连"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "阿坝"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "汶川"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "理县"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "黑水"
    +},
    +{
    +  "city" : "海南州",
    +  "name" : "贵德"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "康定"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "泸定"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "道孚"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "德格"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "乡城"
    +},
    +{
    +  "city" : "果洛州",
    +  "name" : "甘德"
    +},
    +{
    +  "city" : "果洛州",
    +  "name" : "班玛"
    +},
    +{
    +  "city" : "玉树州",
    +  "name" : "杂多"
    +},
    +{
    +  "city" : "玉树州",
    +  "name" : "称多"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "王下"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "阳江"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "塔洋"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "金江"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "黄流"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "那大"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "文儒"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "福山"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "光村"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "新村"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "东成"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "仁兴"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "隆广"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "群英"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "排浦"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "海头"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "木棠"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "白马井"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "翰林"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "蓬莱"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "富文"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "新兴"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "抱罗"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "公坡"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "枫木"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "临城"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "东英"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "波莲"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "万城"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "六弓"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "北大"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "新盈"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "和乐"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "三家"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "红毛"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "新龙"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "东河"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "吊罗山"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "江边"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "阜龙"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "青松"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "荣邦"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "三伏潭"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "通海口"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "陈场"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "王场"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "渔洋"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "龙湾"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "积玉口"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "多宝"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "拖市"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "张港"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "渔薪"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "蒋场"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "多祥"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "干驿"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "胡市"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "石河"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "岳口"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "龙华山"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "红山"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "老街"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "北泉"
    +},
    +{
    +  "city" : "石河子",
    +  "name" : "石河子乡"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "阳日"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "红坪"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "九湖"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "下谷坪"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "南圣"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "番阳"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "天坛"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "玉泉"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "克井"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "五龙口"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "大峪"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "邵原"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "思礼"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "南口"
    +},
    +{
    +  "city" : "海西州",
    +  "name" : "德令哈"
    +},
    +{
    +  "city" : "海西州",
    +  "name" : "格尔木"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "叶集"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "昌江"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "临高"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "澄迈"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "定安"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "清江浦"
    +},
    +{
    +  "city" : "铜陵",
    +  "name" : "枞阳"
    +},
    +{
    +  "city" : "安顺",
    +  "name" : "平坝"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "八十一团"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "八十四团"
    +},
    +{
    +  "city" : "吐鲁番",
    +  "name" : "高昌"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "张沟"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "托喀依"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "鄠邑"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "长宁"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "静安"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "虹口"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "杨浦"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "宝山"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "奉贤"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "松江"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "崇明"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "门头沟"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "朝阳"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "密云"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "延庆"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "大兴"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "房山"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "丰台"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "天河"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "荔湾"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "南沙"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "番禺"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "花都"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "越秀"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "增城"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "从化"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "富阳"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "临安"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "建德"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "淳安"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "桐庐"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "江干"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "拱墅"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "西湖"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "罗湖"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "南山"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "盐田"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "宝安"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "玄武"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "建邺"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "高淳"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "西青"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "河东"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "河西"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "蓟州"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "武清"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "宁河"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "吴江"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "太仓"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "吴中"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "相城"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "张家港"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "昆山"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "邛崃"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "新津"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "双流"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "武侯"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "金牛"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "锦江"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "温江"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "青羊"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "青白江"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "龙泉驿"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "成华"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "新都"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "金堂"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "彭州"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "渝中"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "江北"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "渝北"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "南岸"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "沙坪坝"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "大渡口"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "巴南"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "永川"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "长寿"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "涪陵"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "皇姑"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "铁西"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "沈北"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "于洪"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "辽中"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "浑南"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "汉南"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "汉阳"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "江岸"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "东西湖"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "青山"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "洪山"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "江夏"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "黄陂"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "新城"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "雁塔"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "碑林"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "未央"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "临潼"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "阎良"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "蓝田"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "开福"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "雨花"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "天心"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "岳麓"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "芙蓉"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "望城"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "宁乡"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "浏阳"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "市南"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "市北"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "李沧"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "崂山"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "城阳"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "即墨"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "胶州"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "新乐"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "井陉矿"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "辛集"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "赵县"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "赞皇"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "深泽"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "高邑"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "无极"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "行唐"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "元氏"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "台江"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "鼓楼"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "仓山"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "闽侯"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "长乐"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "福清"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "连江"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "闽清"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "罗源"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "市中"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "历下"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "历城"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "商河"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "济阳"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "章丘"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "西岗"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "中山"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "沙河口"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "甘井子"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "旅顺口"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "金州"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "瓦房店"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "普兰店"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "庄河"
    +},
    +{
    +  "city" : "厦门",
    +  "name" : "思明"
    +},
    +{
    +  "city" : "厦门",
    +  "name" : "同安"
    +},
    +{
    +  "city" : "厦门",
    +  "name" : "集美"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "锡山"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "宜兴"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "江北"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "海曙"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "鄞州"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "慈溪"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "象山"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "杏花岭"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "小店"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "迎泽"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "尖草坪"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "万柏林"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "古交"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "鹿城"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "龙湾"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "乐清"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "洞头"
    +},
    +{
    +  "city" : "扬州",
    +  "name" : "江都"
    +},
    +{
    +  "city" : "三亚",
    +  "name" : "天涯"
    +},
    +{
    +  "city" : "佛山",
    +  "name" : "禅城"
    +},
    +{
    +  "city" : "佛山",
    +  "name" : "三水"
    +},
    +{
    +  "city" : "佛山",
    +  "name" : "南海"
    +},
    +{
    +  "city" : "佛山",
    +  "name" : "顺德"
    +},
    +{
    +  "city" : "佛山",
    +  "name" : "高明"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "金水"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "新郑"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "巩义"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "中牟"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "二七"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "路北"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "乐亭"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "迁西"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "遵化"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "沙溪"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "五桂山"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "古镇"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "小榄"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "东凤"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "南头"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "横栏"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "大涌"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "黄圃"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "南朗"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "南区"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "港口"
    +},
    +{
    +  "city" : "威海",
    +  "name" : "文登"
    +},
    +{
    +  "city" : "威海",
    +  "name" : "荣成"
    +},
    +{
    +  "city" : "威海",
    +  "name" : "乳山"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "东城"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "南城"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "莞城"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "万江"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "常平"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "虎门"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "石龙"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "塘厦"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "寮步"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "厚街"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "黄江"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "清溪"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "横沥"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "道滘"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "东坑"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "高埗"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "松山湖"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "瑶海"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "白云"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "观山湖"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "开阳"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "修文"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "息烽"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "清镇"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "五华"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "新城"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "回民"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "玉泉"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "湾里"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "东湖"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "徐闻"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "遂溪"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "赤坎"
    +},
    +{
    +  "city" : "常州",
    +  "name" : "溧阳"
    +},
    +{
    +  "city" : "常州",
    +  "name" : "天宁"
    +},
    +{
    +  "city" : "常州",
    +  "name" : "武进"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "南湖"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "海宁"
    +},
    +{
    +  "city" : "海口",
    +  "name" : "秀英"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "呼兰"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "朝阳"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "绿园"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "双阳"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "丰满"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "蛟河"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "舒兰"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "栖霞"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "海阳"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "牟平"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "蓬莱"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "莱阳"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "长岛"
    +},
    +{
    +  "city" : "镇江",
    +  "name" : "润州"
    +},
    +{
    +  "city" : "镇江",
    +  "name" : "丹阳"
    +},
    +{
    +  "city" : "镇江",
    +  "name" : "扬中"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "芜湖"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "三山"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "老城"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "瀍河"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "伊川"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "宜阳"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "新安"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "德化"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "惠安"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "洛江"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "石狮"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "泉港"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "南安"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "灵川"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "荔浦"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "阳朔"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "雁山"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "昌乐"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "曲周"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "肥乡"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "魏县"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "邯山"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "峰峰"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "复兴"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "安次"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "崇川"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "港闸"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "通州"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "如东"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "如皋"
    +},
    +{
    +  "city" : "绍兴",
    +  "name" : "诸暨"
    +},
    +{
    +  "city" : "绍兴",
    +  "name" : "嵊州"
    +},
    +{
    +  "city" : "绍兴",
    +  "name" : "越城"
    +},
    +{
    +  "city" : "绍兴",
    +  "name" : "新昌"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "城东"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "城西"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "城北"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "城中"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "永登"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "城关"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "七里河"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "西固"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "安宁"
    +},
    +{
    +  "city" : "兰州",
    +  "name" : "红古"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "樊城"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "谷城"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "南漳"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "襄州"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "襄城"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "安州"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "平武"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "江油"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "盐亭"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "天元"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "石峰"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "攸县"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "芦淞"
    +},
    +{
    +  "city" : "湘潭",
    +  "name" : "岳塘"
    +},
    +{
    +  "city" : "湘潭",
    +  "name" : "湘潭"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "筠连"
    +},
    +{
    +  "city" : "自贡",
    +  "name" : "大安"
    +},
    +{
    +  "city" : "自贡",
    +  "name" : "贡井"
    +},
    +{
    +  "city" : "自贡",
    +  "name" : "荣县"
    +},
    +{
    +  "city" : "自贡",
    +  "name" : "富顺"
    +},
    +{
    +  "city" : "泰州",
    +  "name" : "高港"
    +},
    +{
    +  "city" : "泰州",
    +  "name" : "靖江"
    +},
    +{
    +  "city" : "泰州",
    +  "name" : "兴化"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "黄岩"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "椒江"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "临海"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "路桥"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "三门"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "安国"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "竞秀"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "定州"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "山海关"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "抚宁"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "卢龙"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "青龙"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "海港"
    +},
    +{
    +  "city" : "湖州",
    +  "name" : "南浔"
    +},
    +{
    +  "city" : "湖州",
    +  "name" : "德清"
    +},
    +{
    +  "city" : "湖州",
    +  "name" : "长兴"
    +},
    +{
    +  "city" : "衢州",
    +  "name" : "衢江"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "东阳"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "永康"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "兰溪"
    +},
    +{
    +  "city" : "连云港",
    +  "name" : "海州"
    +},
    +{
    +  "city" : "连云港",
    +  "name" : "赣榆"
    +},
    +{
    +  "city" : "连云港",
    +  "name" : "灌南"
    +},
    +{
    +  "city" : "马鞍山",
    +  "name" : "花山"
    +},
    +{
    +  "city" : "马鞍山",
    +  "name" : "雨山"
    +},
    +{
    +  "city" : "马鞍山",
    +  "name" : "和县"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "沙依巴克"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "头屯河"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "达坂城"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "乌鲁木齐"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "台山"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "新会"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "铁西"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "海城"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "岫岩"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "沂源"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "淄川"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "博山"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "阜宁"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "射阳"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "点军"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "猇亭"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "宜都"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "延长"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "洛川"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "彭泽"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "都昌"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "九江"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "永修"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "武宁"
    +},
    +{
    +  "city" : "北海",
    +  "name" : "铁山港"
    +},
    +{
    +  "city" : "北海",
    +  "name" : "合浦"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "鹿寨"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "柳城"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "林甸"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "杜尔伯特"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "肇州"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "让胡路"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "大同"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "剑川"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "巍山"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "鹤庆"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "祥云"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "永平"
    +},
    +{
    +  "city" : "张家界",
    +  "name" : "慈利"
    +},
    +{
    +  "city" : "张家界",
    +  "name" : "永定"
    +},
    +{
    +  "city" : "张家界",
    +  "name" : "武陵源"
    +},
    +{
    +  "city" : "莆田",
    +  "name" : "城厢"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "陆川"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "清新"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "阳山"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "英德"
    +},
    +{
    +  "city" : "增城",
    +  "name" : "增城"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "盛泽"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "震泽"
    +},
    +{
    +  "city" : "余姚",
    +  "name" : "余姚"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "湖父镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "万石镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "高塍镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "杨巷镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "宜城街道"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "周市"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "张浦"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "淀山湖"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "周庄"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "千灯"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "金平"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "澄海"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "鼎湖"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "广宁"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "封开"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "高要"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "四会"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "麒麟"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "宣威"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "沾益"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "师宗"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "罗平"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "马龙"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "雁峰"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "石鼓"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "常宁"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "衡南"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "衡东"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "卫滨"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "牧野"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "凤泉"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "辉县"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "卫辉"
    +},
    +{
    +  "city" : "潮州",
    +  "name" : "湘桥"
    +},
    +{
    +  "city" : "潮州",
    +  "name" : "潮安"
    +},
    +{
    +  "city" : "黄石",
    +  "name" : "下陆"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "山阳"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "马村"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "沁阳"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "孟州"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "博爱"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "东宁"
    +},
    +{
    +  "city" : "盘锦",
    +  "name" : "兴隆台"
    +},
    +{
    +  "city" : "盘锦",
    +  "name" : "大洼"
    +},
    +{
    +  "city" : "盘锦",
    +  "name" : "盘山"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "湛河"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "新华"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "鲁山"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "叶县"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "武江"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "乐昌"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "仁化"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "乳源"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "始兴"
    +},
    +{
    +  "city" : "阳江",
    +  "name" : "阳春"
    +},
    +{
    +  "city" : "阳江",
    +  "name" : "阳西"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "兴宁"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "蕉岭"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "大埔"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "丰顺"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "五华"
    +},
    +{
    +  "city" : "云浮",
    +  "name" : "新兴"
    +},
    +{
    +  "city" : "本溪",
    +  "name" : "本溪"
    +},
    +{
    +  "city" : "本溪",
    +  "name" : "桓仁"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "红塔"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "峨山"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "江川"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "澄江"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "易门"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "新平"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "开发区"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "安阳"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "碧山"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "马屿"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "潘岱"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "陶山"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "清江"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "象阳"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "北白象"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "石帆"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "白石"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "磐石"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "乐成"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "虞山镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "海虞镇"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "晋宁"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "禄劝"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "石林"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "依兰"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "延寿"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "坪山"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "大足"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "铜梁"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "璧山"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "开州"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "巫溪"
    +},
    +{
    +  "city" : "舟山",
    +  "name" : "定海"
    +},
    +{
    +  "city" : "舟山",
    +  "name" : "普陀"
    +},
    +{
    +  "city" : "舟山",
    +  "name" : "岱山"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "淮安"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "淮阴"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "洪泽"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "金湖"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "全南"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "会昌"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "石城"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "无为"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "大观"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "宜秀"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "怀宁"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "桐城"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "黄州"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "麻城"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "田家庵"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "八公山"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "潘集"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "凤台"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "曹县"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "东明"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "南郑"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "城固"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "勉县"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "略阳"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "南郊"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "阳高"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "广灵"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "浑源"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "大同"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "龙华"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "喀喇沁"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "昂昂溪"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "碾子山"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "梅里斯"
    +},
    +{
    +  "city" : "四平",
    +  "name" : "双辽"
    +},
    +{
    +  "city" : "四平",
    +  "name" : "梨树"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "汨罗"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "东河"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "昆都仑"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "湟中"
    +},
    +{
    +  "city" : "西宁",
    +  "name" : "大通"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "固阳"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "曲阳"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "唐县"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "雄县"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "徐水"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "尧都"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "霍州"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "襄汾"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "浮山"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "乡宁"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "永和"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "隰县"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "榆阳"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "横山"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "靖边"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "清涧"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "兰山"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "河东"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "兰陵"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "蒙阴"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "莒南"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "南召"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "西峡"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "淅川"
    +},
    +{
    +  "city" : "许昌",
    +  "name" : "魏都"
    +},
    +{
    +  "city" : "许昌",
    +  "name" : "禹州"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "前进"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "郊区"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "同江"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "仁怀"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "绥阳"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "道真"
    +},
    +{
    +  "city" : "辽源",
    +  "name" : "东辽"
    +},
    +{
    +  "city" : "辽源",
    +  "name" : "东丰"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "龙泉"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "庆元"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "松阳"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "遂昌"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "缙云"
    +},
    +{
    +  "city" : "白山",
    +  "name" : "浑江"
    +},
    +{
    +  "city" : "白山",
    +  "name" : "江源"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "市中"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "峨眉山"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "犍为"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "沐川"
    +},
    +{
    +  "city" : "安顺",
    +  "name" : "普定"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "汉阴"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "紫阳"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "平利"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "白河"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "霍林郭勒"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "库伦"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "集宁"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "丰镇"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "商都"
    +},
    +{
    +  "city" : "贵港",
    +  "name" : "港北"
    +},
    +{
    +  "city" : "贵港",
    +  "name" : "覃塘"
    +},
    +{
    +  "city" : "黄山",
    +  "name" : "休宁"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "堆龙德庆"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "墨竹工卡"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "林周"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "达孜"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "当雄"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "乌拉特后旗"
    +},
    +{
    +  "city" : "来宾",
    +  "name" : "武宣"
    +},
    +{
    +  "city" : "来宾",
    +  "name" : "忻城"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "新青"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "颍东"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "美溪"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "五营"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "临泉"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "太和"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "带岭"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "安定"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "清河"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "双桥"
    +},
    +{
    +  "city" : "吴忠",
    +  "name" : "利通"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "围场"
    +},
    +{
    +  "city" : "泰安",
    +  "name" : "岱岳"
    +},
    +{
    +  "city" : "泰安",
    +  "name" : "新泰"
    +},
    +{
    +  "city" : "泰安",
    +  "name" : "肥城"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "平泉"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "东胜"
    +},
    +{
    +  "city" : "泰安",
    +  "name" : "宁阳"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "兴隆"
    +},
    +{
    +  "city" : "泰安",
    +  "name" : "东平"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "岭东"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "宝山"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "集贤"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "麦积"
    +},
    +{
    +  "city" : "枣庄",
    +  "name" : "台儿庄"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "友谊"
    +},
    +{
    +  "city" : "枣庄",
    +  "name" : "山亭"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "达拉特"
    +},
    +{
    +  "city" : "枣庄",
    +  "name" : "滕州"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "甘谷"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "准格尔"
    +},
    +{
    +  "city" : "莱芜",
    +  "name" : "莱城"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "宝清"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "秦安"
    +},
    +{
    +  "city" : "莱芜",
    +  "name" : "钢城"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "鄂托克前旗"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "蚌山"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "淮上"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "杭锦旗"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "五河"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "固镇"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "琅琊"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "肇东"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "全椒"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "凤阳"
    +},
    +{
    +  "city" : "铜陵",
    +  "name" : "铜官"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "诏安"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "海州"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "苍梧"
    +},
    +{
    +  "city" : "汕尾",
    +  "name" : "城区"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "藤县"
    +},
    +{
    +  "city" : "汕尾",
    +  "name" : "陆丰"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "新邱"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "岑溪"
    +},
    +{
    +  "city" : "德阳",
    +  "name" : "什邡"
    +},
    +{
    +  "city" : "德阳",
    +  "name" : "中江"
    +},
    +{
    +  "city" : "德阳",
    +  "name" : "罗江"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "名山"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "汉源"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "石棉"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "宝兴"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "虎林"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "桥西"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "张北"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "祁阳"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "沽源"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "蓝山"
    +},
    +{
    +  "city" : "娄底",
    +  "name" : "双峰"
    +},
    +{
    +  "city" : "亳州",
    +  "name" : "谯城"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "监利"
    +},
    +{
    +  "city" : "亳州",
    +  "name" : "利辛"
    +},
    +{
    +  "city" : "咸宁",
    +  "name" : "崇阳"
    +},
    +{
    +  "city" : "咸宁",
    +  "name" : "嘉鱼"
    +},
    +{
    +  "city" : "三门峡",
    +  "name" : "灵宝"
    +},
    +{
    +  "city" : "三门峡",
    +  "name" : "陕州"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "裕安"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "金寨"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "桥西"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "霍山"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "根河"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "睢阳"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "新右旗"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "南宫"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "鄂伦春"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "江州"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "城区"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "大新"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "新河"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "潞城"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "天等"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "广宗"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "威县"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "清河"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "汾阳"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "天峨"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "交城"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "文水"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "交口"
    +},
    +{
    +  "city" : "日照",
    +  "name" : "东港"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "柳林"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "都安"
    +},
    +{
    +  "city" : "吕梁",
    +  "name" : "中阳"
    +},
    +{
    +  "city" : "日照",
    +  "name" : "岚山"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "工农"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "滨城"
    +},
    +{
    +  "city" : "黑河",
    +  "name" : "北安"
    +},
    +{
    +  "city" : "黑河",
    +  "name" : "孙吴"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "惠民"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "运河"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "任丘"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "黄骅"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "洛南"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "丹凤"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "商南"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "山阳"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "镇安"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "东光"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "阳信"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "肃宁"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "武都"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "吴桥"
    +},
    +{
    +  "city" : "滨州",
    +  "name" : "无棣"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "西和"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "礼县"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "康县"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "东洲"
    +},
    +{
    +  "city" : "抚顺",
    +  "name" : "抚顺"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "禹城"
    +},
    +{
    +  "city" : "葫芦岛",
    +  "name" : "连山"
    +},
    +{
    +  "city" : "葫芦岛",
    +  "name" : "南票"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "齐河"
    +},
    +{
    +  "city" : "葫芦岛",
    +  "name" : "兴城"
    +},
    +{
    +  "city" : "葫芦岛",
    +  "name" : "绥中"
    +},
    +{
    +  "city" : "葫芦岛",
    +  "name" : "建昌"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "夏津"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "武城"
    +},
    +{
    +  "city" : "池州",
    +  "name" : "东至"
    +},
    +{
    +  "city" : "池州",
    +  "name" : "青阳"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "桃城"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "饶阳"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "安平"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "武夷山"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "阜城"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "顺昌"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "光泽"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "松溪"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "蕉城"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "古田"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "柘荣"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "潭城镇"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "黎川"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "北厝镇"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "平原镇"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "敖东镇"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "芦洋乡"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "梁山"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "中楼乡"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "东庠乡"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "南海乡"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "永善县"
    +},
    +{
    +  "city" : "淮北",
    +  "name" : "相山"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "威宁"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "宁国"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "郎溪"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "泾县"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "永安"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "明溪"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "清流"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "宁化"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "大田"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "尤溪"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "泰宁"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "建宁"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "新罗"
    +},
    +{
    +  "city" : "遂宁",
    +  "name" : "安居"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "漳平"
    +},
    +{
    +  "city" : "遂宁",
    +  "name" : "蓬溪"
    +},
    +{
    +  "city" : "铜川",
    +  "name" : "印台"
    +},
    +{
    +  "city" : "铜川",
    +  "name" : "耀州"
    +},
    +{
    +  "city" : "保山",
    +  "name" : "施甸"
    +},
    +{
    +  "city" : "保山",
    +  "name" : "腾冲"
    +},
    +{
    +  "city" : "眉山",
    +  "name" : "东坡"
    +},
    +{
    +  "city" : "保山",
    +  "name" : "龙陵"
    +},
    +{
    +  "city" : "保山",
    +  "name" : "昌宁"
    +},
    +{
    +  "city" : "眉山",
    +  "name" : "彭山"
    +},
    +{
    +  "city" : "眉山",
    +  "name" : "洪雅"
    +},
    +{
    +  "city" : "眉山",
    +  "name" : "丹棱"
    +},
    +{
    +  "city" : "白银",
    +  "name" : "白银"
    +},
    +{
    +  "city" : "白银",
    +  "name" : "靖远"
    +},
    +{
    +  "city" : "白银",
    +  "name" : "会宁"
    +},
    +{
    +  "city" : "益阳",
    +  "name" : "桃江"
    +},
    +{
    +  "city" : "益阳",
    +  "name" : "南县"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "万源"
    +},
    +{
    +  "city" : "达州",
    +  "name" : "大竹"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "安陆"
    +},
    +{
    +  "city" : "孝感",
    +  "name" : "孝昌"
    +},
    +{
    +  "city" : "巴中",
    +  "name" : "南江"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "庄浪"
    +},
    +{
    +  "city" : "巴中",
    +  "name" : "通江"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "川汇"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "项城"
    +},
    +{
    +  "city" : "荆门",
    +  "name" : "东宝"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "太康"
    +},
    +{
    +  "city" : "濮阳",
    +  "name" : "南乐"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "沅陵"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "江阳"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "溆浦"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "芷江"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "叙永"
    +},
    +{
    +  "city" : "泸州",
    +  "name" : "古蔺"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "通道"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "盐湖"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "凤庆"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "永济"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "云县"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "永德"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "耿马"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "闻喜"
    +},
    +{
    +  "city" : "鄂州",
    +  "name" : "华容"
    +},
    +{
    +  "city" : "鄂州",
    +  "name" : "鄂城"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "潼关"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "大荔"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "蒲城"
    +},
    +{
    +  "city" : "漯河",
    +  "name" : "源汇"
    +},
    +{
    +  "city" : "嘉峪关",
    +  "name" : "长城"
    +},
    +{
    +  "city" : "鹤壁",
    +  "name" : "淇滨"
    +},
    +{
    +  "city" : "嘉峪关",
    +  "name" : "镜铁"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "西峰"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "介休"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "太谷"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "华池"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "祁县"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "平遥"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "合水"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "灵石"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "榆社"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "玉山"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "横峰"
    +},
    +{
    +  "city" : "鹰潭",
    +  "name" : "贵溪"
    +},
    +{
    +  "city" : "鹰潭",
    +  "name" : "余江"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "西平"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "确山"
    +},
    +{
    +  "city" : "驻马店",
    +  "name" : "泌阳"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "龙亭"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "禹王台"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "通许"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "兰考"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "城步"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "吉州"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "吉水"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "峡江"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "新干"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "永丰"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "泰和"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "遂川"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "万安"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "安福"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "永新"
    +},
    +{
    +  "city" : "三沙",
    +  "name" : "西沙"
    +},
    +{
    +  "city" : "三沙",
    +  "name" : "中沙"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "新和"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "拜城"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "温宿"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "木垒"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "楚雄"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "永仁"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "元谋"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "巨野"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "松岭"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "新林"
    +},
    +{
    +  "city" : "大兴安岭",
    +  "name" : "呼中"
    +},
    +{
    +  "city" : "吐鲁番",
    +  "name" : "鄯善"
    +},
    +{
    +  "city" : "吐鲁番",
    +  "name" : "托克逊"
    +},
    +{
    +  "city" : "哈密",
    +  "name" : "伊州"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "策勒"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "额敏"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "和布克赛尔"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "阿勒泰"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "布尔津"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "富蕴"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "福海"
    +},
    +{
    +  "city" : "阿勒泰",
    +  "name" : "哈巴河"
    +},
    +{
    +  "city" : "克孜勒苏",
    +  "name" : "阿合奇"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "伊宁"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "尼勒克"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "昭苏"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "霍尔果斯"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "开远"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "建水"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "泸西"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "红河"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "江孜"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "聂拉木"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "昂仁"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "萨嘎"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "扎囊"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "顺庆"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "蓬安"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "嘉黎"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "索县"
    +},
    +{
    +  "city" : "阿拉善盟",
    +  "name" : "阿右旗"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "会理"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "昭觉"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "雷波"
    +},
    +{
    +  "city" : "西双版纳州",
    +  "name" : "勐腊"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "凯里"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "黎平"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "天柱"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "西畴"
    +},
    +{
    +  "city" : "恩施",
    +  "name" : "来凤"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "富宁"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "兴义"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "普安"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "望谟"
    +},
    +{
    +  "city" : "黔西南",
    +  "name" : "安龙"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "都匀"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "福泉"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "贵定"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "独山"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "惠水"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "三都"
    +},
    +{
    +  "city" : "德宏州",
    +  "name" : "陇川"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "临夏"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "永靖"
    +},
    +{
    +  "city" : "湘西",
    +  "name" : "永顺"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "迭部"
    +},
    +{
    +  "city" : "海北州",
    +  "name" : "海晏"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "若尔盖"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "茂县"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "松潘"
    +},
    +{
    +  "city" : "海南州",
    +  "name" : "贵南"
    +},
    +{
    +  "city" : "海南州",
    +  "name" : "同德"
    +},
    +{
    +  "city" : "玉树州",
    +  "name" : "囊谦"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "石碌"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "十月田"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "昌化"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "海尾"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "七叉"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "大路"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "佛罗"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "大丰"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "中和"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "光坡"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "三才"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "黎安"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "王五"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "雷鸣"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "东路"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "龙门"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "文教"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "岭口"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "文城"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "东阁"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "锦山"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "屯城"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "坡心"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "龙楼"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "南吕"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "什玲"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "加茂"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "响水"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "新政"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "调楼"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "长丰"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "山根"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "三更罗"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "湾岭"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "四更"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "上安"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "天安"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "打安"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "细水"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "南开"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "金波"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "剅河"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "西流河"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "熊口"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "高石碑"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "老新"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "横林"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "九真"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "木鱼"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "青松路"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "幸福路"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "毛阳"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "畅好"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "水满"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "前海"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "齐干却勒"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "永安坝"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "军垦路"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "人民路"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "北海"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "下冶"
    +},
    +{
    +  "city" : "海西州",
    +  "name" : "乌兰"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "寿县"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "彭场"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "屯昌"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "儋州"
    +},
    +{
    +  "city" : "济源",
    +  "name" : "济源"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "仙桃"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "神农架"
    +},
    +{
    +  "city" : "铜陵",
    +  "name" : "义安"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "八十六团"
    +},
    +{
    +  "city" : "北屯",
    +  "name" : "北屯"
    +},
    +{
    +  "city" : "北屯",
    +  "name" : "海川"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "陵城"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "金门"
    +},
    +{
    +  "city" : "林芝",
    +  "name" : "巴宜"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "康巴什"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "杨林尾"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "四十四团"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "五十一团"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "郫都"
    +},
    +{
    +  "city" : "许昌",
    +  "name" : "建安"
    +},
    +{
    +  "city" : "铁门关",
    +  "name" : "铁门关"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "黄浦"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "徐汇"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "普陀"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "闵行"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "浦东"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "嘉定"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "金山"
    +},
    +{
    +  "city" : "上海",
    +  "name" : "青浦"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "顺义"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "石景山"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "平谷"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "怀柔"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "昌平"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "西城"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "东城"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "海淀"
    +},
    +{
    +  "city" : "北京",
    +  "name" : "通州"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "黄埔"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "海珠"
    +},
    +{
    +  "city" : "广州",
    +  "name" : "白云"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "余杭"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "萧山"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "滨江"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "下城"
    +},
    +{
    +  "city" : "杭州",
    +  "name" : "上城"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "福田"
    +},
    +{
    +  "city" : "深圳",
    +  "name" : "龙岗"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "秦淮"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "鼓楼"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "江宁"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "六合"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "浦口"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "栖霞"
    +},
    +{
    +  "city" : "南京",
    +  "name" : "溧水"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "和平"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "北辰"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "南开"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "河北"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "津南"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "红桥"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "东丽"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "静海"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "宝坻"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "常熟"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "蒲江"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "都江堰"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "崇州"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "大邑"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "九龙坡"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "北碚"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "合川"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "江津"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "万州"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "南川"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "綦江"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "和平"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "沈河"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "大东"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "苏家屯"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "新民"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "法库"
    +},
    +{
    +  "city" : "沈阳",
    +  "name" : "康平"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "新洲"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "蔡甸"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "硚口"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "江汉"
    +},
    +{
    +  "city" : "武汉",
    +  "name" : "武昌"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "长安"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "莲湖"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "灞桥"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "周至"
    +},
    +{
    +  "city" : "西安",
    +  "name" : "高陵"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "平度"
    +},
    +{
    +  "city" : "青岛",
    +  "name" : "莱西"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "裕华"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "新华"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "桥西"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "平山"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "正定"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "鹿泉"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "长安"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "藁城"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "栾城"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "晋州"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "灵寿"
    +},
    +{
    +  "city" : "石家庄",
    +  "name" : "井陉"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "晋安"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "马尾"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "永泰"
    +},
    +{
    +  "city" : "福州",
    +  "name" : "平潭"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "天桥"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "槐荫"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "长清"
    +},
    +{
    +  "city" : "济南",
    +  "name" : "平阴"
    +},
    +{
    +  "city" : "大连",
    +  "name" : "长海"
    +},
    +{
    +  "city" : "厦门",
    +  "name" : "翔安"
    +},
    +{
    +  "city" : "厦门",
    +  "name" : "湖里"
    +},
    +{
    +  "city" : "厦门",
    +  "name" : "海沧"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "滨湖"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "惠山"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "江阴"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "镇海"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "宁海"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "余姚"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "奉化"
    +},
    +{
    +  "city" : "宁波",
    +  "name" : "北仑"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "晋源"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "清徐"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "阳曲"
    +},
    +{
    +  "city" : "太原",
    +  "name" : "娄烦"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "瓯海"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "瑞安"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "永嘉"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "平阳"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "苍南"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "文成"
    +},
    +{
    +  "city" : "温州",
    +  "name" : "泰顺"
    +},
    +{
    +  "city" : "扬州",
    +  "name" : "广陵"
    +},
    +{
    +  "city" : "扬州",
    +  "name" : "邗江"
    +},
    +{
    +  "city" : "扬州",
    +  "name" : "宝应"
    +},
    +{
    +  "city" : "扬州",
    +  "name" : "仪征"
    +},
    +{
    +  "city" : "扬州",
    +  "name" : "高邮"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "管城"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "上街"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "惠济"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "登封"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "新密"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "荥阳"
    +},
    +{
    +  "city" : "郑州",
    +  "name" : "中原"
    +},
    +{
    +  "city" : "天津",
    +  "name" : "滨海"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "路南"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "古冶"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "开平"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "丰南"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "丰润"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "滦县"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "滦南"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "玉田"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "迁安"
    +},
    +{
    +  "city" : "唐山",
    +  "name" : "曹妃甸"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "阜沙"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "三角"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "民众"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "三乡"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "板芙"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "神湾"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "坦洲"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "东升"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "东区"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "西区"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "石岐"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "火炬"
    +},
    +{
    +  "city" : "威海",
    +  "name" : "环翠"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "樟木头"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "长安"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "大朗"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "凤岗"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "石碣"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "企石"
    +},
    +{
    +  "city" : "东莞",
    +  "name" : "谢岗"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "包河"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "蜀山"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "肥东"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "云岩"
    +},
    +{
    +  "city" : "贵阳",
    +  "name" : "花溪"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "官渡"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "呈贡"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "赛罕"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "土左旗"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "清水河"
    +},
    +{
    +  "city" : "呼和浩特",
    +  "name" : "武川"
    +},
    +{
    +  "city" : "银川",
    +  "name" : "西夏"
    +},
    +{
    +  "city" : "银川",
    +  "name" : "贺兰"
    +},
    +{
    +  "city" : "银川",
    +  "name" : "永宁"
    +},
    +{
    +  "city" : "银川",
    +  "name" : "灵武"
    +},
    +{
    +  "city" : "银川",
    +  "name" : "金凤"
    +},
    +{
    +  "city" : "银川",
    +  "name" : "兴庆"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "进贤"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "南昌"
    +},
    +{
    +  "city" : "南昌",
    +  "name" : "青云谱"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "麻章"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "坡头"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "吴川"
    +},
    +{
    +  "city" : "湛江",
    +  "name" : "雷州"
    +},
    +{
    +  "city" : "咸阳",
    +  "name" : "永寿"
    +},
    +{
    +  "city" : "常州",
    +  "name" : "金坛"
    +},
    +{
    +  "city" : "常州",
    +  "name" : "钟楼"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "嘉善"
    +},
    +{
    +  "city" : "嘉兴",
    +  "name" : "桐乡"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "云龙"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "贾汪"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "泉山"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "铜山"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "睢宁"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "沛县"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "新沂"
    +},
    +{
    +  "city" : "徐州",
    +  "name" : "邳州"
    +},
    +{
    +  "city" : "海口",
    +  "name" : "龙华"
    +},
    +{
    +  "city" : "海口",
    +  "name" : "美兰"
    +},
    +{
    +  "city" : "海口",
    +  "name" : "琼山"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "道里"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "南岗"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "松北"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "香坊"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "二道"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "宽城"
    +},
    +{
    +  "city" : "长春",
    +  "name" : "九台"
    +},
    +{
    +  "city" : "吉林",
    +  "name" : "桦甸"
    +},
    +{
    +  "city" : "烟台",
    +  "name" : "莱州"
    +},
    +{
    +  "city" : "芜湖",
    +  "name" : "繁昌"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "洛龙"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "吉利"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "栾川"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "孟津"
    +},
    +{
    +  "city" : "洛阳",
    +  "name" : "汝阳"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "青秀"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "兴宁"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "邕宁"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "江南"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "良庆"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "横县"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "马山"
    +},
    +{
    +  "city" : "南宁",
    +  "name" : "武鸣"
    +},
    +{
    +  "city" : "惠州",
    +  "name" : "博罗"
    +},
    +{
    +  "city" : "惠州",
    +  "name" : "惠城"
    +},
    +{
    +  "city" : "泉州",
    +  "name" : "晋江"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "资源"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "永福"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "龙胜"
    +},
    +{
    +  "city" : "桂林",
    +  "name" : "临桂"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "昌邑"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "临朐"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "潍城"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "寒亭"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "诸城"
    +},
    +{
    +  "city" : "潍坊",
    +  "name" : "寿光"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "馆陶"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "涉县"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "广平"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "磁县"
    +},
    +{
    +  "city" : "邯郸",
    +  "name" : "成安"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "香河"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "永清"
    +},
    +{
    +  "city" : "廊坊",
    +  "name" : "大城"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "海安"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "启东"
    +},
    +{
    +  "city" : "南通",
    +  "name" : "海门"
    +},
    +{
    +  "city" : "绍兴",
    +  "name" : "柯桥"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "枣阳"
    +},
    +{
    +  "city" : "襄阳",
    +  "name" : "老河口"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "涪城"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "游仙"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "梓潼"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "北川"
    +},
    +{
    +  "city" : "绵阳",
    +  "name" : "三台"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "荷塘"
    +},
    +{
    +  "city" : "株洲",
    +  "name" : "炎陵"
    +},
    +{
    +  "city" : "湘潭",
    +  "name" : "湘乡"
    +},
    +{
    +  "city" : "湘潭",
    +  "name" : "雨湖"
    +},
    +{
    +  "city" : "湘潭",
    +  "name" : "韶山"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "兴文"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "翠屏"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "南溪"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "长宁"
    +},
    +{
    +  "city" : "宜宾",
    +  "name" : "宜宾"
    +},
    +{
    +  "city" : "自贡",
    +  "name" : "自流井"
    +},
    +{
    +  "city" : "泰州",
    +  "name" : "姜堰"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "天台"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "仙居"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "玉环"
    +},
    +{
    +  "city" : "台州",
    +  "name" : "温岭"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "清城"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "清苑"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "高碑店"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "昌黎"
    +},
    +{
    +  "city" : "秦皇岛",
    +  "name" : "北戴河"
    +},
    +{
    +  "city" : "湖州",
    +  "name" : "安吉"
    +},
    +{
    +  "city" : "衢州",
    +  "name" : "常山"
    +},
    +{
    +  "city" : "衢州",
    +  "name" : "开化"
    +},
    +{
    +  "city" : "宿迁",
    +  "name" : "宿豫"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "婺城"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "武义"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "浦江"
    +},
    +{
    +  "city" : "金华",
    +  "name" : "磐安"
    +},
    +{
    +  "city" : "连云港",
    +  "name" : "连云"
    +},
    +{
    +  "city" : "连云港",
    +  "name" : "东海"
    +},
    +{
    +  "city" : "马鞍山",
    +  "name" : "含山"
    +},
    +{
    +  "city" : "马鞍山",
    +  "name" : "当涂"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "天山"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "新市"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "水磨沟"
    +},
    +{
    +  "city" : "乌鲁木齐",
    +  "name" : "米东"
    +},
    +{
    +  "city" : "攀枝花",
    +  "name" : "米易"
    +},
    +{
    +  "city" : "攀枝花",
    +  "name" : "盐边"
    +},
    +{
    +  "city" : "攀枝花",
    +  "name" : "仁和"
    +},
    +{
    +  "city" : "攀枝花",
    +  "name" : "西区"
    +},
    +{
    +  "city" : "攀枝花",
    +  "name" : "东区"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "鹤山"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "恩平"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "开平"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "江海"
    +},
    +{
    +  "city" : "江门",
    +  "name" : "蓬江"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "铁东"
    +},
    +{
    +  "city" : "鞍山",
    +  "name" : "千山"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "周村"
    +},
    +{
    +  "city" : "淄博",
    +  "name" : "桓台"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "响水"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "东台"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "大丰"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "建湖"
    +},
    +{
    +  "city" : "盐城",
    +  "name" : "亭湖"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "夷陵"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "西陵"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "当阳"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "枝江"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "远安"
    +},
    +{
    +  "city" : "宜昌",
    +  "name" : "秭归"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "富县"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "吴起"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "黄陵"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "甘泉"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "子长"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "志丹"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "宜川"
    +},
    +{
    +  "city" : "延安",
    +  "name" : "延川"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "章贡"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "宁都"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "瑞金"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "共青城"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "修水"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "瑞昌"
    +},
    +{
    +  "city" : "九江",
    +  "name" : "湖口"
    +},
    +{
    +  "city" : "丽江",
    +  "name" : "古城"
    +},
    +{
    +  "city" : "丽江",
    +  "name" : "永胜"
    +},
    +{
    +  "city" : "北海",
    +  "name" : "海城"
    +},
    +{
    +  "city" : "北海",
    +  "name" : "银海"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "融安"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "柳江"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "三江"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "融水"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "鱼峰"
    +},
    +{
    +  "city" : "柳州",
    +  "name" : "城中"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "肇源"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "红岗"
    +},
    +{
    +  "city" : "大庆",
    +  "name" : "萨尔图"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "大理"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "漾濞"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "宾川"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "弥渡"
    +},
    +{
    +  "city" : "大理",
    +  "name" : "南涧"
    +},
    +{
    +  "city" : "六盘水",
    +  "name" : "钟山"
    +},
    +{
    +  "city" : "莆田",
    +  "name" : "荔城"
    +},
    +{
    +  "city" : "丹东",
    +  "name" : "元宝"
    +},
    +{
    +  "city" : "丹东",
    +  "name" : "宽甸"
    +},
    +{
    +  "city" : "丹东",
    +  "name" : "振兴"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "虎丘"
    +},
    +{
    +  "city" : "长沙",
    +  "name" : "长沙"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "连州"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "连南"
    +},
    +{
    +  "city" : "清远",
    +  "name" : "连山"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "岳阳楼"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "松陵"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "桃源"
    +},
    +{
    +  "city" : "吴江",
    +  "name" : "七都"
    +},
    +{
    +  "city" : "宁海",
    +  "name" : "宁海"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "丁蜀镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "官林镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "周铁镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "新建镇"
    +},
    +{
    +  "city" : "宜兴",
    +  "name" : "新街街道"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "巴城"
    +},
    +{
    +  "city" : "昆山",
    +  "name" : "陆家"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "潮阳"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "潮南"
    +},
    +{
    +  "city" : "汕头",
    +  "name" : "南澳"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "德庆"
    +},
    +{
    +  "city" : "肇庆",
    +  "name" : "怀集"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "北关"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "殷都"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "龙安"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "滑县"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "内黄"
    +},
    +{
    +  "city" : "安阳",
    +  "name" : "汤阴"
    +},
    +{
    +  "city" : "义乌",
    +  "name" : "义乌"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "富源"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "陆良"
    +},
    +{
    +  "city" : "曲靖",
    +  "name" : "会泽"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "南岳"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "蒸湘"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "耒阳"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "衡阳"
    +},
    +{
    +  "city" : "衡阳",
    +  "name" : "衡山"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "封丘"
    +},
    +{
    +  "city" : "新乡",
    +  "name" : "长垣"
    +},
    +{
    +  "city" : "营口",
    +  "name" : "站前"
    +},
    +{
    +  "city" : "营口",
    +  "name" : "老边"
    +},
    +{
    +  "city" : "河源",
    +  "name" : "连平"
    +},
    +{
    +  "city" : "河源",
    +  "name" : "龙川"
    +},
    +{
    +  "city" : "河源",
    +  "name" : "紫金"
    +},
    +{
    +  "city" : "黄石",
    +  "name" : "黄石港"
    +},
    +{
    +  "city" : "黄石",
    +  "name" : "西塞山"
    +},
    +{
    +  "city" : "黄石",
    +  "name" : "铁山"
    +},
    +{
    +  "city" : "黄石",
    +  "name" : "大冶"
    +},
    +{
    +  "city" : "黄石",
    +  "name" : "阳新"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "解放"
    +},
    +{
    +  "city" : "焦作",
    +  "name" : "武陟"
    +},
    +{
    +  "city" : "揭阳",
    +  "name" : "榕城"
    +},
    +{
    +  "city" : "揭阳",
    +  "name" : "揭东"
    +},
    +{
    +  "city" : "揭阳",
    +  "name" : "惠来"
    +},
    +{
    +  "city" : "茂名",
    +  "name" : "高州"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "东安"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "西安"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "爱民"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "阳明"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "绥芬河"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "宁安"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "海林"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "穆棱"
    +},
    +{
    +  "city" : "牡丹江",
    +  "name" : "林口"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "石龙"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "卫东"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "舞钢"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "宝丰"
    +},
    +{
    +  "city" : "平顶山",
    +  "name" : "郏县"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "浈江"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "曲江"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "南雄"
    +},
    +{
    +  "city" : "韶关",
    +  "name" : "新丰"
    +},
    +{
    +  "city" : "梅州",
    +  "name" : "梅县"
    +},
    +{
    +  "city" : "云浮",
    +  "name" : "云城"
    +},
    +{
    +  "city" : "云浮",
    +  "name" : "罗定"
    +},
    +{
    +  "city" : "云浮",
    +  "name" : "郁南"
    +},
    +{
    +  "city" : "云浮",
    +  "name" : "云安"
    +},
    +{
    +  "city" : "本溪",
    +  "name" : "平山"
    +},
    +{
    +  "city" : "本溪",
    +  "name" : "明山"
    +},
    +{
    +  "city" : "本溪",
    +  "name" : "溪湖"
    +},
    +{
    +  "city" : "本溪",
    +  "name" : "南芬"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "通海"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "华宁"
    +},
    +{
    +  "city" : "玉溪",
    +  "name" : "元江"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "东山"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "湖岭"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "龙湖"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "汀田"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "仙降"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "玉海"
    +},
    +{
    +  "city" : "瑞安",
    +  "name" : "老城"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "大荆"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "雁荡"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "南塘"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "芙蓉"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "南岳"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "蒲岐"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "翁垟"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "七里港"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "淡溪"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "湖雾"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "黄华"
    +},
    +{
    +  "city" : "乐清",
    +  "name" : "柳市"
    +},
    +{
    +  "city" : "苏州",
    +  "name" : "姑苏"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "梅李镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "新港镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "古里镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "沙家浜"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "董浜镇"
    +},
    +{
    +  "city" : "常熟",
    +  "name" : "王庄镇"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "东川"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "富民"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "嵩明"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "寻甸"
    +},
    +{
    +  "city" : "昆明",
    +  "name" : "宜良"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "木兰"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "通河"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "方正"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "五常"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "双城"
    +},
    +{
    +  "city" : "哈尔滨",
    +  "name" : "尚志"
    +},
    +{
    +  "city" : "合肥",
    +  "name" : "巢湖"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "城口"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "武隆"
    +},
    +{
    +  "city" : "舟山",
    +  "name" : "嵊泗"
    +},
    +{
    +  "city" : "淮安",
    +  "name" : "盱眙"
    +},
    +{
    +  "city" : "泰州",
    +  "name" : "海陵"
    +},
    +{
    +  "city" : "赣州",
    +  "name" : "大余"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "迎江"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "潜山"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "太湖"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "宿松"
    +},
    +{
    +  "city" : "安庆",
    +  "name" : "岳西"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "团风"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "红安"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "罗田"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "浠水"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "黄梅"
    +},
    +{
    +  "city" : "黄冈",
    +  "name" : "武穴"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "大通"
    +},
    +{
    +  "city" : "淮南",
    +  "name" : "谢家集"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "巨野"
    +},
    +{
    +  "city" : "荷泽",
    +  "name" : "郓城"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "洋县"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "西乡"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "宁强"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "镇巴"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "留坝"
    +},
    +{
    +  "city" : "汉中",
    +  "name" : "佛坪"
    +},
    +{
    +  "city" : "广元",
    +  "name" : "利州"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "巴林左"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "巴林右"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "林西"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "克什克腾"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "翁牛特"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "宁城"
    +},
    +{
    +  "city" : "赤峰",
    +  "name" : "敖汉"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "武陵"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "鼎城"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "津市"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "安乡"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "汉寿"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "澧县"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "桃源"
    +},
    +{
    +  "city" : "常德",
    +  "name" : "石门"
    +},
    +{
    +  "city" : "玉林",
    +  "name" : "福绵"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "龙沙"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "建华"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "铁峰"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "讷河"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "龙江"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "依安"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "克山"
    +},
    +{
    +  "city" : "齐齐哈尔",
    +  "name" : "拜泉"
    +},
    +{
    +  "city" : "四平",
    +  "name" : "伊通"
    +},
    +{
    +  "city" : "马鞍山",
    +  "name" : "博望"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "临湘"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "平江"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "湘阴"
    +},
    +{
    +  "city" : "岳阳",
    +  "name" : "岳阳"
    +},
    +{
    +  "city" : "包头",
    +  "name" : "土右旗"
    +},
    +{
    +  "city" : "三亚",
    +  "name" : "海棠"
    +},
    +{
    +  "city" : "三亚",
    +  "name" : "崖州"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "石柱"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "秀山"
    +},
    +{
    +  "city" : "重庆",
    +  "name" : "酉阳"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "安新"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "博野"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "高阳"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "涞水"
    +},
    +{
    +  "city" : "保定",
    +  "name" : "涞源"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "翼城"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "安泽"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "大宁"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "蒲县"
    +},
    +{
    +  "city" : "临汾",
    +  "name" : "古县"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "绥德"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "子洲"
    +},
    +{
    +  "city" : "榆林",
    +  "name" : "佳县"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "罗庄"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "郯城"
    +},
    +{
    +  "city" : "临沂",
    +  "name" : "沂南"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "卧龙"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "宛城"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "新野"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "唐河"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "桐柏"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "方城"
    +},
    +{
    +  "city" : "许昌",
    +  "name" : "长葛"
    +},
    +{
    +  "city" : "许昌",
    +  "name" : "鄢陵"
    +},
    +{
    +  "city" : "许昌",
    +  "name" : "襄城"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "向阳"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "富锦"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "桦南"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "桦川"
    +},
    +{
    +  "city" : "佳木斯",
    +  "name" : "抚远"
    +},
    +{
    +  "city" : "武威",
    +  "name" : "古浪"
    +},
    +{
    +  "city" : "武威",
    +  "name" : "民勤"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "红花岗"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "汇川"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "桐梓"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "凤冈"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "湄潭"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "余庆"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "习水"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "赤水"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "务川"
    +},
    +{
    +  "city" : "中卫",
    +  "name" : "沙坡头"
    +},
    +{
    +  "city" : "中卫",
    +  "name" : "中宁"
    +},
    +{
    +  "city" : "丽水",
    +  "name" : "景宁"
    +},
    +{
    +  "city" : "白山",
    +  "name" : "抚松"
    +},
    +{
    +  "city" : "白山",
    +  "name" : "靖宇"
    +},
    +{
    +  "city" : "白山",
    +  "name" : "临江"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "沙湾"
    +},
    +{
    +  "city" : "白山",
    +  "name" : "长白"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "五通桥"
    +},
    +{
    +  "city" : "安顺",
    +  "name" : "西秀"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "夹江"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "井研"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "峨边"
    +},
    +{
    +  "city" : "安顺",
    +  "name" : "镇宁"
    +},
    +{
    +  "city" : "乐山",
    +  "name" : "马边"
    +},
    +{
    +  "city" : "安顺",
    +  "name" : "紫云"
    +},
    +{
    +  "city" : "安顺",
    +  "name" : "关岭"
    +},
    +{
    +  "city" : "晋城",
    +  "name" : "城区"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "汉滨"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "石泉"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "宁陕"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "岚皋"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "镇坪"
    +},
    +{
    +  "city" : "安康",
    +  "name" : "旬阳"
    +},
    +{
    +  "city" : "石嘴山",
    +  "name" : "大武口"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "科尔沁"
    +},
    +{
    +  "city" : "晋城",
    +  "name" : "高平"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "科左中旗"
    +},
    +{
    +  "city" : "晋城",
    +  "name" : "陵川"
    +},
    +{
    +  "city" : "晋城",
    +  "name" : "沁水"
    +},
    +{
    +  "city" : "通辽",
    +  "name" : "开鲁"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "凌河"
    +},
    +{
    +  "city" : "锦州",
    +  "name" : "太和"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "化德"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "卓资"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "兴和"
    +},
    +{
    +  "city" : "乌兰察布",
    +  "name" : "察右中"
    +},
    +{
    +  "city" : "贺州",
    +  "name" : "富川"
    +},
    +{
    +  "city" : "黄山",
    +  "name" : "屯溪"
    +},
    +{
    +  "city" : "贵港",
    +  "name" : "港南"
    +},
    +{
    +  "city" : "黄山",
    +  "name" : "黟县"
    +},
    +{
    +  "city" : "拉萨",
    +  "name" : "城关"
    +},
    +{
    +  "city" : "乌海",
    +  "name" : "乌达"
    +},
    +{
    +  "city" : "乌海",
    +  "name" : "海南"
    +},
    +{
    +  "city" : "贵港",
    +  "name" : "平南"
    +},
    +{
    +  "city" : "巴彦淖尔",
    +  "name" : "乌拉特前旗"
    +},
    +{
    +  "city" : "来宾",
    +  "name" : "兴宾"
    +},
    +{
    +  "city" : "阜阳",
    +  "name" : "颍泉"
    +},
    +{
    +  "city" : "伊春",
    +  "name" : "铁力"
    +},
    +{
    +  "city" : "松原",
    +  "name" : "扶余"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "通渭"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "陇西"
    +},
    +{
    +  "city" : "松原",
    +  "name" : "乾安"
    +},
    +{
    +  "city" : "定西",
    +  "name" : "渭源"
    +},
    +{
    +  "city" : "辽阳",
    +  "name" : "白塔"
    +},
    +{
    +  "city" : "铁岭",
    +  "name" : "开原"
    +},
    +{
    +  "city" : "防城港",
    +  "name" : "防城"
    +},
    +{
    +  "city" : "承德",
    +  "name" : "双滦"
    +},
    +{
    +  "city" : "防城港",
    +  "name" : "东兴"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "四方台"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "秦州"
    +},
    +{
    +  "city" : "双鸭山",
    +  "name" : "饶河"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "鄂托克"
    +},
    +{
    +  "city" : "蚌埠",
    +  "name" : "龙子湖"
    +},
    +{
    +  "city" : "天水",
    +  "name" : "张家川"
    +},
    +{
    +  "city" : "鄂尔多斯",
    +  "name" : "乌审"
    +},
    +{
    +  "city" : "绥化",
    +  "name" : "望奎"
    +},
    +{
    +  "city" : "滁州",
    +  "name" : "定远"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "二道江"
    +},
    +{
    +  "city" : "通化",
    +  "name" : "梅河口"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "龙圩"
    +},
    +{
    +  "city" : "铜陵",
    +  "name" : "郊区"
    +},
    +{
    +  "city" : "漳州",
    +  "name" : "漳浦"
    +},
    +{
    +  "city" : "梧州",
    +  "name" : "蒙山"
    +},
    +{
    +  "city" : "汕尾",
    +  "name" : "海丰"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "思茅"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "宁洱"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "清河门"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "细河"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "镇沅"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "右江"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "江城"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "田阳"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "孟连"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "澜沧"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "田东"
    +},
    +{
    +  "city" : "普洱",
    +  "name" : "西盟"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "平果"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "阜蒙"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "德保"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "靖西"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "那坡"
    +},
    +{
    +  "city" : "德阳",
    +  "name" : "旌阳"
    +},
    +{
    +  "city" : "阜新",
    +  "name" : "彰武"
    +},
    +{
    +  "city" : "德阳",
    +  "name" : "绵竹"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "田林"
    +},
    +{
    +  "city" : "百色",
    +  "name" : "西林"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "恒山"
    +},
    +{
    +  "city" : "广安",
    +  "name" : "华蓥"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "荥经"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "城子河"
    +},
    +{
    +  "city" : "雅安",
    +  "name" : "天全"
    +},
    +{
    +  "city" : "鸡西",
    +  "name" : "鸡东"
    +},
    +{
    +  "city" : "七台河",
    +  "name" : "新兴"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "桥东"
    +},
    +{
    +  "city" : "七台河",
    +  "name" : "勃利"
    +},
    +{
    +  "city" : "白城",
    +  "name" : "洮北"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "宣化"
    +},
    +{
    +  "city" : "白城",
    +  "name" : "大安"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "下花园"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "怀安"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "宁远"
    +},
    +{
    +  "city" : "永州",
    +  "name" : "新田"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "北票"
    +},
    +{
    +  "city" : "朝阳",
    +  "name" : "凌源"
    +},
    +{
    +  "city" : "娄底",
    +  "name" : "娄星"
    +},
    +{
    +  "city" : "张家口",
    +  "name" : "赤城"
    +},
    +{
    +  "city" : "克拉玛依",
    +  "name" : "乌尔禾"
    +},
    +{
    +  "city" : "荆州",
    +  "name" : "荆州"
    +},
    +{
    +  "city" : "亳州",
    +  "name" : "涡阳"
    +},
    +{
    +  "city" : "固原",
    +  "name" : "泾源"
    +},
    +{
    +  "city" : "固原",
    +  "name" : "彭阳"
    +},
    +{
    +  "city" : "咸宁",
    +  "name" : "赤壁"
    +},
    +{
    +  "city" : "三门峡",
    +  "name" : "义马"
    +},
    +{
    +  "city" : "三门峡",
    +  "name" : "渑池"
    +},
    +{
    +  "city" : "三门峡",
    +  "name" : "卢氏"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "霍邱"
    +},
    +{
    +  "city" : "六安",
    +  "name" : "舒城"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "满洲里"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "扎兰屯"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "牙克石"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "梁园"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "阿荣旗"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "新左旗"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "沙河"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "临城"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "民权"
    +},
    +{
    +  "city" : "商丘",
    +  "name" : "夏邑"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "南和"
    +},
    +{
    +  "city" : "东营",
    +  "name" : "垦利"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "凭祥"
    +},
    +{
    +  "city" : "邢台",
    +  "name" : "巨鹿"
    +},
    +{
    +  "city" : "东营",
    +  "name" : "利津"
    +},
    +{
    +  "city" : "崇左",
    +  "name" : "扶绥"
    +},
    +{
    +  "city" : "东营",
    +  "name" : "广饶"
    +},
    +{
    +  "city" : "长治",
    +  "name" : "沁源"
    +},
    +{
    +  "city" : "河池",
    +  "name" : "凤山"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "南山"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "兴安"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "东山"
    +},
    +{
    +  "city" : "鹤岗",
    +  "name" : "绥滨"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "商州"
    +},
    +{
    +  "city" : "商洛",
    +  "name" : "柞水"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "青县"
    +},
    +{
    +  "city" : "金昌",
    +  "name" : "永昌"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "南皮"
    +},
    +{
    +  "city" : "陇南",
    +  "name" : "宕昌"
    +},
    +{
    +  "city" : "沧州",
    +  "name" : "孟村"
    +},
    +{
    +  "city" : "德州",
    +  "name" : "乐陵"
    +},
    +{
    +  "city" : "宿州",
    +  "name" : "泗县"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "冀州"
    +},
    +{
    +  "city" : "萍乡",
    +  "name" : "芦溪"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "延平"
    +},
    +{
    +  "city" : "萍乡",
    +  "name" : "上栗"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "武邑"
    +},
    +{
    +  "city" : "衡水",
    +  "name" : "武强"
    +},
    +{
    +  "city" : "南平",
    +  "name" : "邵武"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "福鼎"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "屏南"
    +},
    +{
    +  "city" : "宁德",
    +  "name" : "寿宁"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "流水镇"
    +},
    +{
    +  "city" : "平潭",
    +  "name" : "白青乡"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "乐安"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "金溪"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "微山"
    +},
    +{
    +  "city" : "抚州",
    +  "name" : "资溪"
    +},
    +{
    +  "city" : "济宁",
    +  "name" : "鱼台"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "绥江县"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "巧家县"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "临清"
    +},
    +{
    +  "city" : "昭通",
    +  "name" : "镇雄县"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "冠县"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "阳谷"
    +},
    +{
    +  "city" : "聊城",
    +  "name" : "莘县"
    +},
    +{
    +  "city" : "淮北",
    +  "name" : "濉溪"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "大方"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "宣州"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "黔西"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "旌德"
    +},
    +{
    +  "city" : "宣城",
    +  "name" : "绩溪"
    +},
    +{
    +  "city" : "毕节",
    +  "name" : "金沙"
    +},
    +{
    +  "city" : "三明",
    +  "name" : "将乐"
    +},
    +{
    +  "city" : "资阳",
    +  "name" : "乐至"
    +},
    +{
    +  "city" : "遂宁",
    +  "name" : "船山"
    +},
    +{
    +  "city" : "遂宁",
    +  "name" : "射洪"
    +},
    +{
    +  "city" : "龙岩",
    +  "name" : "武平"
    +},
    +{
    +  "city" : "眉山",
    +  "name" : "仁寿"
    +},
    +{
    +  "city" : "白银",
    +  "name" : "平川"
    +},
    +{
    +  "city" : "白银",
    +  "name" : "景泰"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "碧江"
    +},
    +{
    +  "city" : "郴州",
    +  "name" : "苏仙"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "江口"
    +},
    +{
    +  "city" : "铜仁",
    +  "name" : "玉屏"
    +},
    +{
    +  "city" : "海东",
    +  "name" : "民和"
    +},
    +{
    +  "city" : "益阳",
    +  "name" : "沅江"
    +},
    +{
    +  "city" : "平凉",
    +  "name" : "灵台"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "淮阳"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "沈丘"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "商水"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "西华"
    +},
    +{
    +  "city" : "周口",
    +  "name" : "扶沟"
    +},
    +{
    +  "city" : "濮阳",
    +  "name" : "华龙"
    +},
    +{
    +  "city" : "濮阳",
    +  "name" : "濮阳"
    +},
    +{
    +  "city" : "濮阳",
    +  "name" : "清丰"
    +},
    +{
    +  "city" : "濮阳",
    +  "name" : "范县"
    +},
    +{
    +  "city" : "濮阳",
    +  "name" : "台前"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "洪江"
    +},
    +{
    +  "city" : "阳泉",
    +  "name" : "城区"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "辰溪"
    +},
    +{
    +  "city" : "怀化",
    +  "name" : "麻阳"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "河津"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "绛县"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "临猗"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "万荣"
    +},
    +{
    +  "city" : "鄂州",
    +  "name" : "梁子湖"
    +},
    +{
    +  "city" : "临沧",
    +  "name" : "沧源"
    +},
    +{
    +  "city" : "运城",
    +  "name" : "垣曲"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "茅箭"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "华阴"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "张湾"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "竹山"
    +},
    +{
    +  "city" : "十堰",
    +  "name" : "竹溪"
    +},
    +{
    +  "city" : "渭南",
    +  "name" : "澄城"
    +},
    +{
    +  "city" : "漯河",
    +  "name" : "召陵"
    +},
    +{
    +  "city" : "漯河",
    +  "name" : "临颍"
    +},
    +{
    +  "city" : "鹤壁",
    +  "name" : "山城"
    +},
    +{
    +  "city" : "鹤壁",
    +  "name" : "鹤山"
    +},
    +{
    +  "city" : "鹤壁",
    +  "name" : "淇县"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "代县"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "繁峙"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "岢岚"
    +},
    +{
    +  "city" : "忻州",
    +  "name" : "保德"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "正宁"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "左权"
    +},
    +{
    +  "city" : "晋中",
    +  "name" : "和顺"
    +},
    +{
    +  "city" : "庆阳",
    +  "name" : "镇原"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "信州"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "肃州"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "玉门"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "敦煌"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "金塔"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "瓜州"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "德兴"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "肃北"
    +},
    +{
    +  "city" : "酒泉",
    +  "name" : "阿克塞"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "广丰"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "弋阳"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "余干"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "鄱阳"
    +},
    +{
    +  "city" : "上饶",
    +  "name" : "万年"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "浉河"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "平桥"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "罗山"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "新县"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "固始"
    +},
    +{
    +  "city" : "信阳",
    +  "name" : "淮滨"
    +},
    +{
    +  "city" : "张掖",
    +  "name" : "甘州"
    +},
    +{
    +  "city" : "张掖",
    +  "name" : "临泽"
    +},
    +{
    +  "city" : "张掖",
    +  "name" : "山丹"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "武冈"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "邵东"
    +},
    +{
    +  "city" : "邵阳",
    +  "name" : "邵阳"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "青原"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "井冈山"
    +},
    +{
    +  "city" : "吉安",
    +  "name" : "吉安"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "阿瓦提"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "乌什"
    +},
    +{
    +  "city" : "阿克苏",
    +  "name" : "柯坪"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "喀什"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "疏附"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "英吉沙"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "岳普湖"
    +},
    +{
    +  "city" : "喀什",
    +  "name" : "泽普"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "昌吉"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "阜康"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "玛纳斯"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "呼图壁"
    +},
    +{
    +  "city" : "昌吉",
    +  "name" : "吉木萨尔"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "南华"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "姚安"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "大姚"
    +},
    +{
    +  "city" : "楚雄",
    +  "name" : "武定"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "曹县"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "单县"
    +},
    +{
    +  "city" : "菏泽",
    +  "name" : "成武"
    +},
    +{
    +  "city" : "哈密",
    +  "name" : "伊吾"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "和田市"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "皮山"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "墨玉"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "和田县"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "洛浦"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "于田"
    +},
    +{
    +  "city" : "和田",
    +  "name" : "民丰"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "塔城"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "乌苏"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "沙湾"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "托里"
    +},
    +{
    +  "city" : "塔城",
    +  "name" : "裕民"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "若羌"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "焉耆"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "和硕"
    +},
    +{
    +  "city" : "巴音郭楞",
    +  "name" : "博湖"
    +},
    +{
    +  "city" : "克孜勒苏",
    +  "name" : "阿克陶"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "奎屯"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "巩留"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "特克斯"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "新源"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "察布查尔"
    +},
    +{
    +  "city" : "伊犁",
    +  "name" : "霍城"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "蒙自"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "个旧"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "弥勒"
    +},
    +{
    +  "city" : "红河",
    +  "name" : "石屏"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "定日"
    +},
    +{
    +  "city" : "日喀则",
    +  "name" : "康马"
    +},
    +{
    +  "city" : "山南",
    +  "name" : "曲松"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "南部"
    +},
    +{
    +  "city" : "南充",
    +  "name" : "西充"
    +},
    +{
    +  "city" : "那曲",
    +  "name" : "那曲"
    +},
    +{
    +  "city" : "锡林郭勒盟",
    +  "name" : "苏左旗"
    +},
    +{
    +  "city" : "阿拉善盟",
    +  "name" : "额济纳"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "会东"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "金阳"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "甘洛"
    +},
    +{
    +  "city" : "凉山州",
    +  "name" : "木里"
    +},
    +{
    +  "city" : "开封",
    +  "name" : "祥符"
    +},
    +{
    +  "city" : "呼伦贝尔",
    +  "name" : "扎赉诺尔"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "延吉"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "图们"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "敦化"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "珲春"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "龙井"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "和龙"
    +},
    +{
    +  "city" : "延边",
    +  "name" : "安图"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "梁溪"
    +},
    +{
    +  "city" : "无锡",
    +  "name" : "新吴"
    +},
    +{
    +  "city" : "西双版纳州",
    +  "name" : "勐海"
    +},
    +{
    +  "city" : "迪庆州",
    +  "name" : "香格里拉"
    +},
    +{
    +  "city" : "迪庆州",
    +  "name" : "维西傈僳族"
    +},
    +{
    +  "city" : "迪庆州",
    +  "name" : "德钦"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "丹寨"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "黄平"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "台江"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "麻江"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "岑巩"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "剑河"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "施秉"
    +},
    +{
    +  "city" : "黔东南",
    +  "name" : "锦屏"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "麻栗坡"
    +},
    +{
    +  "city" : "黔南",
    +  "name" : "平塘"
    +},
    +{
    +  "city" : "德宏州",
    +  "name" : "梁河"
    +},
    +{
    +  "city" : "临夏",
    +  "name" : "临夏市"
    +},
    +{
    +  "city" : "甘南",
    +  "name" : "临潭"
    +},
    +{
    +  "city" : "海北州",
    +  "name" : "刚察"
    +},
    +{
    +  "city" : "海北州",
    +  "name" : "门源"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "马尔康"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "金川"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "壤塘"
    +},
    +{
    +  "city" : "阿坝州",
    +  "name" : "九寨沟"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "丹巴"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "甘孜"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "新龙"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "白玉"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "色达"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "理塘"
    +},
    +{
    +  "city" : "果洛州",
    +  "name" : "玛沁"
    +},
    +{
    +  "city" : "甘孜州",
    +  "name" : "稻城"
    +},
    +{
    +  "city" : "果洛州",
    +  "name" : "玛多"
    +},
    +{
    +  "city" : "玉树州",
    +  "name" : "治多"
    +},
    +{
    +  "city" : "玉树州",
    +  "name" : "曲麻莱"
    +},
    +{
    +  "city" : "玉树州",
    +  "name" : "玉树"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "嘉积"
    +},
    +{
    +  "city" : "昌江",
    +  "name" : "叉河"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "长坡"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "潭门"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "中原"
    +},
    +{
    +  "city" : "琼海",
    +  "name" : "博鳌"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "利国"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "九所"
    +},
    +{
    +  "city" : "澄迈",
    +  "name" : "加乐"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "雅星"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "和庆"
    +},
    +{
    +  "city" : "儋州",
    +  "name" : "大成"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "提蒙"
    +},
    +{
    +  "city" : "定安",
    +  "name" : "定城"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "东郊"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "昌洒"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "翁田"
    +},
    +{
    +  "city" : "屯昌",
    +  "name" : "乌坡"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "保城"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "加来"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "和舍"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "后安"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "大茂"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "礼纪"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "多文"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "南桥"
    +},
    +{
    +  "city" : "万宁",
    +  "name" : "东澳"
    +},
    +{
    +  "city" : "临高",
    +  "name" : "博厚"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "八所"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "营根"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "中平"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "和平"
    +},
    +{
    +  "city" : "琼中",
    +  "name" : "什运"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "长埫口"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "回族"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "浩口"
    +},
    +{
    +  "city" : "潜江",
    +  "name" : "张金"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "黄潭"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "汪场"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "彭市"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "皂市"
    +},
    +{
    +  "city" : "天门",
    +  "name" : "佛子山"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "沙嘴"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "干河"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "松柏"
    +},
    +{
    +  "city" : "神农架",
    +  "name" : "新华"
    +},
    +{
    +  "city" : "阿拉尔",
    +  "name" : "金银川路"
    +},
    +{
    +  "city" : "五指山",
    +  "name" : "毛道"
    +},
    +{
    +  "city" : "海西州",
    +  "name" : "都兰"
    +},
    +{
    +  "city" : "海西州",
    +  "name" : "天峻"
    +},
    +{
    +  "city" : "大同",
    +  "name" : "城区"
    +},
    +{
    +  "city" : "南阳",
    +  "name" : "邓州"
    +},
    +{
    +  "city" : "白沙",
    +  "name" : "白沙"
    +},
    +{
    +  "city" : "乐东",
    +  "name" : "乐东"
    +},
    +{
    +  "city" : "陵水",
    +  "name" : "陵水"
    +},
    +{
    +  "city" : "文昌",
    +  "name" : "文昌"
    +},
    +{
    +  "city" : "东方",
    +  "name" : "东方"
    +},
    +{
    +  "city" : "保亭",
    +  "name" : "保亭"
    +},
    +{
    +  "city" : "成都",
    +  "name" : "简阳"
    +},
    +{
    +  "city" : "遵义",
    +  "name" : "播州"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "双河"
    +},
    +{
    +  "city" : "双河",
    +  "name" : "八十九团"
    +},
    +{
    +  "city" : "可克达拉",
    +  "name" : "佛尕善"
    +},
    +{
    +  "city" : "铁门关",
    +  "name" : "博古其"
    +},
    +{
    +  "city" : "铁门关",
    +  "name" : "双丰"
    +},
    +{
    +  "city" : "北屯",
    +  "name" : "锡伯渡"
    +},
    +{
    +  "city" : "文山州",
    +  "name" : "砚山"
    +},
    +{
    +  "city" : "中山",
    +  "name" : "中山"
    +},
    +{
    +  "city" : "仙桃",
    +  "name" : "郭河"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "一零一团"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "一零二团"
    +},
    +{
    +  "city" : "五家渠",
    +  "name" : "一零三团"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "四十九团"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "五十团"
    +},
    +{
    +  "city" : "图木舒克",
    +  "name" : "五十三团"
    +}
    +	]
    +}
    diff --git a/fangija-zsyf/js/cn.js b/fangija-zsyf/js/cn.js
    new file mode 100644
    index 0000000..848bf40
    --- /dev/null
    +++ b/fangija-zsyf/js/cn.js
    @@ -0,0 +1,22 @@
    +/*!
    + * =====================================================
    + * light7 V0.4.3 - http://light7.org/
    + *
    + * =====================================================
    + */
    +"use strict";
    +
    +/* global $:true */
    ++function ($) {
    +  var modal = $.modal.prototype.defaults;
    +  modal.modalButtonOk = "确定";
    +  modal.modalButtonCancel = "取消";
    +  modal.modalPreloaderTitle = "正在加载...";
    +
    +  var calendar = $.fn.calendar.prototype.defaults;
    +  
    +  calendar.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月' , '九月' , '十月', '十一月', '十二月'];
    +  calendar.monthNamesShort = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月' , '九月' , '十月', '十一月', '十二月'];
    +  calendar.dayNames = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
    +  calendar.dayNamesShort = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
    +}($);
    diff --git a/fangija-zsyf/js/common.js b/fangija-zsyf/js/common.js
    new file mode 100644
    index 0000000..caac7b6
    --- /dev/null
    +++ b/fangija-zsyf/js/common.js
    @@ -0,0 +1,1058 @@
    +(function(w){
    +// 空函数
    +function shield(){
    +	return false;
    +}
    +document.addEventListener('touchstart',shield,false);//取消浏览器的所有事件,使得active的样式在手机上正常生效
    +document.oncontextmenu=shield;//屏蔽选择函数
    +// H5 plus事件处理
    +var ws=null,as='pop-in';
    +(function() {
    +	var first = null;
    +	mui.back = function() { //首次按键,提示‘再按一次退出应用’
    +		if (!first) {
    +				first = new Date().getTime();
    +				mui.toast('再按一次退出应用');
    +				setTimeout(function() {
    +					first = null;
    +				}, 1000);
    +			} else {
    +				if (new Date().getTime() - first > 1000) {
    +					plus.runtime.quit();
    +				}
    +			}
    +	};
    +})
    +function plusReady(){
    +	/*ws=plus.webview.currentWebview();
    +	// Android处理返回键
    +	plus.key.addEventListener('backbutton',function(){
    +		if (ws.id == 'yfindex.html') {
    +			alert("aa")
    +			plus.nativeUI.confirm("确认退出",function(e) {
    +				alert(e.index);
    +				if(e.index == 0) {
    +					plus.runtime.quit(); 
    +				}
    +			});
    +		} else {
    +			back();
    +		}
    +		back();
    +	},false);
    +	compatibleAdjust();*/
    +}
    +if(w.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready',plusReady,false);
    +}
    +// DOMContentLoaded事件处理
    +var domready=false;
    +document.addEventListener('DOMContentLoaded',function(){
    +	domready=true;
    +	gInit();
    +	document.body.onselectstart=shield;
    +	compatibleAdjust();
    +},false);
    +// 处理返回事件
    +w.back=function(hide){
    +	if(w.plus){
    +		ws||(ws=plus.webview.currentWebview());
    +		if(hide||ws.preate){
    +			ws.hide('auto');
    +		}else{
    +			ws.close('auto');
    +		}
    +	}else if(history.length>1){
    +		history.back();
    +	}else{
    +		w.close();
    +	}
    +};
    +// 处理点击事件
    +var openw=null,waiting=null;
    +/**
    + * 打开新窗口
    + * @param {URIString} id : 要打开页面url
    + * @param {boolean} wa : 是否显示等待框
    + * @param {boolean} ns : 是否不自动显示
    + * @param {JSON} ws : Webview窗口属性
    + */
    +w.clicked=function(id,wa,ns,ws, params,callback,callbackParams){
    +	if(openw){//避免多次打开同一个页面
    +		return null;
    +	}
    +	if(w.plus){
    +		wa&&(waiting=plus.nativeUI.showWaiting());
    +		ws=ws||{};
    +		ws.scrollIndicator||(ws.scrollIndicator='none');
    +		ws.scalable||(ws.scalable=false);
    +		var pre='';//'http://192.168.1.178:8080/h5/';
    +		openw=plus.webview.create(pre+id,id,ws,params);
    +		ns||openw.addEventListener('loaded',function(){//页面加载完成后才显示
    +//		setTimeout(function(){//延后显示可避免低端机上动画时白屏
    +			openw.show(as);
    +			closeWaiting();
    +//		},200);
    +		},false);
    +		openw.addEventListener('close',function(){//页面关闭后可再次打开
    +			//可以设置页面关闭时回调的方法,可以对数据进行重新加载操作
    +			if(callback){
    +				callback(callbackParams);
    +			}
    +			openw=null;
    +		},false);
    +		return openw;
    +	}else{
    +		w.open(id);
    +	}
    +	return null;
    +};
    +w.openDoc=function(t,c){
    +	var d=plus.webview.getWebviewById('document');
    +	if(d){
    +		d.evalJS('updateDoc("'+t+'","'+c+'")');
    +	}else{
    +		d=plus.webview.create('/plus/doc.html','document',{zindex:9999,popGesture:'hide'},{preate:true});
    +		d.addEventListener('loaded',function(){
    +			d.evalJS('updateDoc("'+t+'","'+c+'")');
    +		},false);
    +	}
    +}
    +/**
    + * 关闭等待框
    + */
    +w.closeWaiting=function(){
    +	waiting&&waiting.close();
    +	waiting=null;
    +}
    +// 兼容性样式调整
    +var adjust=false;
    +function compatibleAdjust(){
    +	if(adjust||!w.plus||!domready){
    +		return;
    +	}	// iOS平台使用滚动的div
    +	if('iOS'==plus.os.name){
    +		var t=document.getElementById("dcontent");
    +		t&&(t.className="sdcontent");
    +		t=document.getElementById("content");
    +		t&&(t.className="scontent");
    +		//iOS8横竖屏切换div不更新滚动问题
    +		var lasto=window.orientation;
    +		window.addEventListener("orientationchange",function(){
    +			var nowo=window.orientation;
    +			if(lasto!=nowo&&(90==nowo||-90==nowo)){
    +				window.dcontent&&(0==dcontent.scrollTop)&&(dcontent.scrollTop=1);
    +				window.content&&(0==content.scrollTop)&&(content.scrollTop=1);
    +			}
    +			lasto=nowo;
    +		},false);
    +	}
    +	adjust=true;
    +};
    +w.compatibleConfirm=function(){
    +	plus.nativeUI.confirm('本OS原生层面不提供该控件,需使用mui框架实现类似效果。请点击“确定”下载Hello mui示例',function(e){
    +		if(0==e.index){
    +			plus.runtime.openURL("http://www.dcloud.io/hellomui/");
    +		}
    +	},"",["确定","取消"]);
    +}
    +// 通用元素对象
    +var _dout_=null,_dcontent_=null;
    +w.gInit=function(){
    +	_dout_=document.getElementById("output");
    +	_dcontent_=document.getElementById("dcontent");
    +};
    +// 清空输出内容
    +w.outClean=function(){
    +	_dout_.innerText="";
    +	_dout_.scrollTop=0;//在iOS8存在不滚动的现象
    +};
    +// 输出内容
    +w.outSet=function(s){
    +	_dout_.innerText=s+"\n";
    +	(0==_dout_.scrollTop)&&(_dout_.scrollTop=1);//在iOS8存在不滚动的现象
    +};
    +// 输出行内容
    +w.outLine=function(s){
    +	_dout_.innerText+=s+"\n";
    +	(0==_dout_.scrollTop)&&(_dout_.scrollTop=1);//在iOS8存在不滚动的现象
    +};
    +// 格式化时长字符串,格式为"HH:MM:SS"
    +w.timeToStr=function(ts){
    +	if(isNaN(ts)){
    +		return "--:--:--";
    +	}
    +	var h=parseInt(ts/3600);
    +	var m=parseInt((ts%3600)/60);
    +	var s=parseInt(ts%60);
    +	return (ultZeroize(h)+":"+ultZeroize(m)+":"+ultZeroize(s));
    +};
    +// 格式化日期时间字符串,格式为"YYYY-MM-DD HH:MM:SS"
    +w.dateToStr=function(d){
    +	return (d.getFullYear()+"-"+ultZeroize(d.getMonth()+1)+"-"+ultZeroize(d.getDate())+" "+ultZeroize(d.getHours())+":"+ultZeroize(d.getMinutes())+":"+ultZeroize(d.getSeconds()));
    +};
    +/**
    + * zeroize value with length(default is 2).
    + * @param {Object} v
    + * @param {Number} l
    + * @return {String} 
    + */
    +w.ultZeroize=function(v,l){
    +	var z="";
    +	l=l||2;
    +	v=String(v);
    +	for(var i=0;i<l-v.length;i++){
    +		z+="0";
    +	}
    +	return z+v;
    +};
    +})(window);
    +
    +;(function () {
    +	'use strict';
    +
    +	/**
    +	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
    +	 *
    +	 * @codingstandard ftlabs-jsv2
    +	 * @copyright The Financial Times Limited [All Rights Reserved]
    +	 * @license MIT License (see LICENSE.txt)
    +	 */
    +
    +	/*jslint browser:true, node:true*/
    +	/*global define, Event, Node*/
    +
    +
    +	/**
    +	 * Instantiate fast-clicking listeners on the specified layer.
    +	 *
    +	 * @constructor
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	function FastClick(layer, options) {
    +		var oldOnClick;
    +
    +		options = options || {};
    +
    +		/**
    +		 * Whether a click is currently being tracked.
    +		 *
    +		 * @type boolean
    +		 */
    +		this.trackingClick = false;
    +
    +
    +		/**
    +		 * Timestamp for when click tracking started.
    +		 *
    +		 * @type number
    +		 */
    +		this.trackingClickStart = 0;
    +
    +
    +		/**
    +		 * The element being tracked for a click.
    +		 *
    +		 * @type EventTarget
    +		 */
    +		this.targetElement = null;
    +
    +
    +		/**
    +		 * X-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartX = 0;
    +
    +
    +		/**
    +		 * Y-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartY = 0;
    +
    +
    +		/**
    +		 * ID of the last touch, retrieved from Touch.identifier.
    +		 *
    +		 * @type number
    +		 */
    +		this.lastTouchIdentifier = 0;
    +
    +
    +		/**
    +		 * Touchmove boundary, beyond which a click will be cancelled.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchBoundary = options.touchBoundary || 10;
    +
    +
    +		/**
    +		 * The FastClick layer.
    +		 *
    +		 * @type Element
    +		 */
    +		this.layer = layer;
    +
    +		/**
    +		 * The minimum time between tap(touchstart and touchend) events
    +		 *
    +		 * @type number
    +		 */
    +		this.tapDelay = options.tapDelay || 200;
    +
    +		/**
    +		 * The maximum time for a tap
    +		 *
    +		 * @type number
    +		 */
    +		this.tapTimeout = options.tapTimeout || 700;
    +
    +		if (FastClick.notNeeded(layer)) {
    +			return;
    +		}
    +
    +		// Some old versions of Android don't have Function.prototype.bind
    +		function bind(method, context) {
    +			return function() { return method.apply(context, arguments); };
    +		}
    +
    +
    +		var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
    +		var context = this;
    +		for (var i = 0, l = methods.length; i < l; i++) {
    +			context[methods[i]] = bind(context[methods[i]], context);
    +		}
    +
    +		// Set up event handlers as required
    +		if (deviceIsAndroid) {
    +			layer.addEventListener('mouseover', this.onMouse, true);
    +			layer.addEventListener('mousedown', this.onMouse, true);
    +			layer.addEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.addEventListener('click', this.onClick, true);
    +		layer.addEventListener('touchstart', this.onTouchStart, false);
    +		layer.addEventListener('touchmove', this.onTouchMove, false);
    +		layer.addEventListener('touchend', this.onTouchEnd, false);
    +		layer.addEventListener('touchcancel', this.onTouchCancel, false);
    +
    +		// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +		// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
    +		// layer when they are cancelled.
    +		if (!Event.prototype.stopImmediatePropagation) {
    +			layer.removeEventListener = function(type, callback, capture) {
    +				var rmv = Node.prototype.removeEventListener;
    +				if (type === 'click') {
    +					rmv.call(layer, type, callback.hijacked || callback, capture);
    +				} else {
    +					rmv.call(layer, type, callback, capture);
    +				}
    +			};
    +
    +			layer.addEventListener = function(type, callback, capture) {
    +				var adv = Node.prototype.addEventListener;
    +				if (type === 'click') {
    +					adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
    +						if (!event.propagationStopped) {
    +							callback(event);
    +						}
    +					}), capture);
    +				} else {
    +					adv.call(layer, type, callback, capture);
    +				}
    +			};
    +		}
    +
    +		// If a handler is already declared in the element's onclick attribute, it will be fired before
    +		// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
    +		// adding it as listener.
    +		if (typeof layer.onclick === 'function') {
    +
    +			// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
    +			// - the old one won't work if passed to addEventListener directly.
    +			oldOnClick = layer.onclick;
    +			layer.addEventListener('click', function(event) {
    +				oldOnClick(event);
    +			}, false);
    +			layer.onclick = null;
    +		}
    +	}
    +
    +	/**
    +	* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
    +	*
    +	* @type boolean
    +	*/
    +	var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
    +
    +	/**
    +	 * Android requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS 4 requires an exception for select elements.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
    +
    +
    +	/**
    +	 * iOS 6.0-7.* requires the target element to be manually derived
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
    +
    +	/**
    +	 * BlackBerry requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
    +
    +	/**
    +	 * Determine whether a given element requires a native click.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element needs a native click
    +	 */
    +	FastClick.prototype.needsClick = function(target) {
    +		switch (target.nodeName.toLowerCase()) {
    +
    +		// Don't send a synthetic click to disabled inputs (issue #62)
    +		case 'button':
    +		case 'select':
    +		case 'textarea':
    +			if (target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'input':
    +
    +			// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
    +			if ((deviceIsIOS && target.type === 'file') || target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'label':
    +		case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
    +		case 'video':
    +			return true;
    +		}
    +
    +		return (/\bneedsclick\b/).test(target.className);
    +	};
    +
    +
    +	/**
    +	 * Determine whether a given element requires a call to focus to simulate click into element.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
    +	 */
    +	FastClick.prototype.needsFocus = function(target) {
    +		switch (target.nodeName.toLowerCase()) {
    +		case 'textarea':
    +			return true;
    +		case 'select':
    +			return !deviceIsAndroid;
    +		case 'input':
    +			switch (target.type) {
    +			case 'button':
    +			case 'checkbox':
    +			case 'file':
    +			case 'image':
    +			case 'radio':
    +			case 'submit':
    +				return false;
    +			}
    +
    +			// No point in attempting to focus disabled inputs
    +			return !target.disabled && !target.readOnly;
    +		default:
    +			return (/\bneedsfocus\b/).test(target.className);
    +		}
    +	};
    +
    +
    +	/**
    +	 * Send a click event to the specified element.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 * @param {Event} event
    +	 */
    +	FastClick.prototype.sendClick = function(targetElement, event) {
    +		var clickEvent, touch;
    +
    +		// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
    +		if (document.activeElement && document.activeElement !== targetElement) {
    +			document.activeElement.blur();
    +		}
    +
    +		touch = event.changedTouches[0];
    +
    +		// Synthesise a click event, with an extra attribute so it can be tracked
    +		clickEvent = document.createEvent('MouseEvents');
    +		clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
    +		clickEvent.forwardedTouchEvent = true;
    +		targetElement.dispatchEvent(clickEvent);
    +	};
    +
    +	FastClick.prototype.determineEventType = function(targetElement) {
    +
    +		//Issue #159: Android Chrome Select Box does not open with a synthetic click event
    +		if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
    +			return 'mousedown';
    +		}
    +
    +		return 'click';
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.focus = function(targetElement) {
    +		var length;
    +
    +		// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
    +		if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
    +			length = targetElement.value.length;
    +			targetElement.setSelectionRange(length, length);
    +		} else {
    +			targetElement.focus();
    +		}
    +	};
    +
    +
    +	/**
    +	 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.updateScrollParent = function(targetElement) {
    +		var scrollParent, parentElement;
    +
    +		scrollParent = targetElement.fastClickScrollParent;
    +
    +		// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
    +		// target element was moved to another parent.
    +		if (!scrollParent || !scrollParent.contains(targetElement)) {
    +			parentElement = targetElement;
    +			do {
    +				if (parentElement.scrollHeight > parentElement.offsetHeight) {
    +					scrollParent = parentElement;
    +					targetElement.fastClickScrollParent = parentElement;
    +					break;
    +				}
    +
    +				parentElement = parentElement.parentElement;
    +			} while (parentElement);
    +		}
    +
    +		// Always update the scroll top tracker if possible.
    +		if (scrollParent) {
    +			scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
    +		}
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget} targetElement
    +	 * @returns {Element|EventTarget}
    +	 */
    +	FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
    +
    +		// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
    +		if (eventTarget.nodeType === Node.TEXT_NODE) {
    +			return eventTarget.parentNode;
    +		}
    +
    +		return eventTarget;
    +	};
    +
    +
    +	/**
    +	 * On touch start, record the position and scroll offset.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchStart = function(event) {
    +		var targetElement, touch, selection;
    +
    +		// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
    +		if (event.targetTouches.length > 1) {
    +			return true;
    +		}
    +
    +		targetElement = this.getTargetElementFromEventTarget(event.target);
    +		touch = event.targetTouches[0];
    +
    +		if (deviceIsIOS) {
    +
    +			// Only trusted events will deselect text on iOS (issue #49)
    +			selection = window.getSelection();
    +			if (selection.rangeCount && !selection.isCollapsed) {
    +				return true;
    +			}
    +
    +			if (!deviceIsIOS4) {
    +
    +				// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
    +				// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
    +				// with the same identifier as the touch event that previously triggered the click that triggered the alert.
    +				// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
    +				// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
    +				// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
    +				// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
    +				// random integers, it's safe to to continue if the identifier is 0 here.
    +				if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
    +					event.preventDefault();
    +					return false;
    +				}
    +
    +				this.lastTouchIdentifier = touch.identifier;
    +
    +				// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
    +				// 1) the user does a fling scroll on the scrollable layer
    +				// 2) the user stops the fling scroll with another tap
    +				// then the event.target of the last 'touchend' event will be the element that was under the user's finger
    +				// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
    +				// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
    +				this.updateScrollParent(targetElement);
    +			}
    +		}
    +
    +		this.trackingClick = true;
    +		this.trackingClickStart = event.timeStamp;
    +		this.targetElement = targetElement;
    +
    +		this.touchStartX = touch.pageX;
    +		this.touchStartY = touch.pageY;
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			event.preventDefault();
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.touchHasMoved = function(event) {
    +		var touch = event.changedTouches[0], boundary = this.touchBoundary;
    +
    +		if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Update the last position.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchMove = function(event) {
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// If the touch has moved, cancel the click tracking
    +		if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
    +			this.trackingClick = false;
    +			this.targetElement = null;
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Attempt to find the labelled control for the given label element.
    +	 *
    +	 * @param {EventTarget|HTMLLabelElement} labelElement
    +	 * @returns {Element|null}
    +	 */
    +	FastClick.prototype.findControl = function(labelElement) {
    +
    +		// Fast path for newer browsers supporting the HTML5 control attribute
    +		if (labelElement.control !== undefined) {
    +			return labelElement.control;
    +		}
    +
    +		// All browsers under test that support touch events also support the HTML5 htmlFor attribute
    +		if (labelElement.htmlFor) {
    +			return document.getElementById(labelElement.htmlFor);
    +		}
    +
    +		// If no for attribute exists, attempt to retrieve the first labellable descendant element
    +		// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
    +		return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
    +	};
    +
    +
    +	/**
    +	 * On touch end, determine whether to send a click event at once.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchEnd = function(event) {
    +		var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
    +
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			this.cancelNextClick = true;
    +			return true;
    +		}
    +
    +		if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
    +			return true;
    +		}
    +
    +		// Reset to prevent wrong click cancel on input (issue #156).
    +		this.cancelNextClick = false;
    +
    +		this.lastClickTime = event.timeStamp;
    +
    +		trackingClickStart = this.trackingClickStart;
    +		this.trackingClick = false;
    +		this.trackingClickStart = 0;
    +
    +		// On some iOS devices, the targetElement supplied with the event is invalid if the layer
    +		// is performing a transition or scroll, and has to be re-detected manually. Note that
    +		// for this to function correctly, it must be called *after* the event target is checked!
    +		// See issue #57; also filed as rdar://13048589 .
    +		if (deviceIsIOSWithBadTarget) {
    +			touch = event.changedTouches[0];
    +
    +			// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
    +			targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
    +			targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
    +		}
    +
    +		targetTagName = targetElement.tagName.toLowerCase();
    +		if (targetTagName === 'label') {
    +			forElement = this.findControl(targetElement);
    +			if (forElement) {
    +				this.focus(targetElement);
    +				if (deviceIsAndroid) {
    +					return false;
    +				}
    +
    +				targetElement = forElement;
    +			}
    +		} else if (this.needsFocus(targetElement)) {
    +
    +			// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
    +			// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
    +			if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
    +				this.targetElement = null;
    +				return false;
    +			}
    +
    +			this.focus(targetElement);
    +			this.sendClick(targetElement, event);
    +
    +			// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
    +			// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
    +			if (!deviceIsIOS || targetTagName !== 'select') {
    +				this.targetElement = null;
    +				event.preventDefault();
    +			}
    +
    +			return false;
    +		}
    +
    +		if (deviceIsIOS && !deviceIsIOS4) {
    +
    +			// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
    +			// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
    +			scrollParent = targetElement.fastClickScrollParent;
    +			if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
    +				return true;
    +			}
    +		}
    +
    +		// Prevent the actual click from going though - unless the target node is marked as requiring
    +		// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
    +		if (!this.needsClick(targetElement)) {
    +			event.preventDefault();
    +			this.sendClick(targetElement, event);
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * On touch cancel, stop tracking the click.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.onTouchCancel = function() {
    +		this.trackingClick = false;
    +		this.targetElement = null;
    +	};
    +
    +
    +	/**
    +	 * Determine mouse events which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onMouse = function(event) {
    +
    +		// If a target element was never set (because a touch event was never fired) allow the event
    +		if (!this.targetElement) {
    +			return true;
    +		}
    +
    +		if (event.forwardedTouchEvent) {
    +			return true;
    +		}
    +
    +		// Programmatically generated events targeting a specific element should be permitted
    +		if (!event.cancelable) {
    +			return true;
    +		}
    +
    +		// Derive and check the target element to see whether the mouse event needs to be permitted;
    +		// unless explicitly enabled, prevent non-touch click events from triggering actions,
    +		// to prevent ghost/doubleclicks.
    +		if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
    +
    +			// Prevent any user-added listeners declared on FastClick element from being fired.
    +			if (event.stopImmediatePropagation) {
    +				event.stopImmediatePropagation();
    +			} else {
    +
    +				// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +				event.propagationStopped = true;
    +			}
    +
    +			// Cancel the event
    +			event.stopPropagation();
    +			event.preventDefault();
    +
    +			return false;
    +		}
    +
    +		// If the mouse event is permitted, return true for the action to go through.
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * On actual clicks, determine whether this is a touch-generated click, a click action occurring
    +	 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
    +	 * an actual click which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onClick = function(event) {
    +		var permitted;
    +
    +		// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
    +		if (this.trackingClick) {
    +			this.targetElement = null;
    +			this.trackingClick = false;
    +			return true;
    +		}
    +
    +		// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
    +		if (event.target.type === 'submit' && event.detail === 0) {
    +			return true;
    +		}
    +
    +		permitted = this.onMouse(event);
    +
    +		// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
    +		if (!permitted) {
    +			this.targetElement = null;
    +		}
    +
    +		// If clicks are permitted, return true for the action to go through.
    +		return permitted;
    +	};
    +
    +
    +	/**
    +	 * Remove all FastClick's event listeners.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.destroy = function() {
    +		var layer = this.layer;
    +
    +		if (deviceIsAndroid) {
    +			layer.removeEventListener('mouseover', this.onMouse, true);
    +			layer.removeEventListener('mousedown', this.onMouse, true);
    +			layer.removeEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.removeEventListener('click', this.onClick, true);
    +		layer.removeEventListener('touchstart', this.onTouchStart, false);
    +		layer.removeEventListener('touchmove', this.onTouchMove, false);
    +		layer.removeEventListener('touchend', this.onTouchEnd, false);
    +		layer.removeEventListener('touchcancel', this.onTouchCancel, false);
    +	};
    +
    +
    +	/**
    +	 * Check whether FastClick is needed.
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 */
    +	FastClick.notNeeded = function(layer) {
    +		var metaViewport;
    +		var chromeVersion;
    +		var blackberryVersion;
    +		var firefoxVersion;
    +
    +		// Devices that don't support touch don't need FastClick
    +		if (typeof window.ontouchstart === 'undefined') {
    +			return true;
    +		}
    +
    +		// Chrome version - zero for other browsers
    +		chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (chromeVersion) {
    +
    +			if (deviceIsAndroid) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// Chrome 32 and above with width=device-width or less don't need FastClick
    +					if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +
    +			// Chrome desktop doesn't need FastClick (issue #15)
    +			} else {
    +				return true;
    +			}
    +		}
    +
    +		if (deviceIsBlackBerry10) {
    +			blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
    +
    +			// BlackBerry 10.3+ does not require Fastclick library.
    +			// https://github.com/ftlabs/fastclick/issues/251
    +			if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// user-scalable=no eliminates click delay.
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// width=device-width (or less than device-width) eliminates click delay.
    +					if (document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +			}
    +		}
    +
    +		// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
    +		if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		// Firefox version - zero for other browsers
    +		firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (firefoxVersion >= 27) {
    +			// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
    +
    +			metaViewport = document.querySelector('meta[name=viewport]');
    +			if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
    +				return true;
    +			}
    +		}
    +
    +		// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
    +		// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
    +		if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Factory method for creating a FastClick object
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	FastClick.attach = function(layer, options) {
    +		return new FastClick(layer, options);
    +	};
    +
    +
    +	if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
    +
    +		// AMD. Register as an anonymous module.
    +		define(function() {
    +			return FastClick;
    +		});
    +	} else if (typeof module !== 'undefined' && module.exports) {
    +		module.exports = FastClick.attach;
    +		module.exports.FastClick = FastClick;
    +	} else {
    +		window.FastClick = FastClick;
    +	}
    +
    +document.addEventListener('DOMContentLoaded', function() {
    +    FastClick.attach(document.body);
    +}, false);
    +
    +}());
    diff --git a/fangija-zsyf/js/district/district-map.js b/fangija-zsyf/js/district/district-map.js
    new file mode 100644
    index 0000000..27fab72
    --- /dev/null
    +++ b/fangija-zsyf/js/district/district-map.js
    @@ -0,0 +1,1140 @@
    +var that;
    +var mapConfig = {
    +    /* 初始化入口*/
    +    init: function () {
    +        that = this;
    +        that.lat = lat;
    +        that.lng = lng;
    +        that.map = new BMap.Map('districtMap');
    +    	var point =  new BMap.Point(that.lng, that.lat);
    +    	that.map.centerAndZoom(point, 14);
    +    	// 编写自定义函数,创建标注
    +    	var marker = new BMap.Marker(point);
    +    	function CountOverlay(city, text){
    +            this._city = city;
    +            this._point = point;
    +            this._text = text;
    +        }
    +    	
    +    	CountOverlay.prototype = new BMap.Overlay();
    +        CountOverlay.prototype.initialize = function(map){
    +            this._map = that.map;
    +            var div = this._div = document.createElement("div");
    +            div.style.position = "absolute";
    +            div.style.zIndex = BMap.Overlay.getZIndex(this._point.lat);
    +            div.style.backgroundColor = "grey";
    +            div.style.border = "1px solid grey";
    +            div.style.color = "white";
    +            div.style.height = "25px";
    +            div.style.padding = "2px";
    +            div.style.lineHeight = "18px";
    +            div.style.whiteSpace = "nowrap";
    +            div.style.MozUserSelect = "none";
    +            div.style.fontSize = "12px"
    +            div.style.cursor = "pointer"
    +            var span = this._span = document.createElement("span");
    +            span.style.lineHeight = "inherit";
    +            span.style.minWidth = "25px";
    +            span.style.textAlign = "center";
    +            div.appendChild(span);
    +            span.appendChild(document.createTextNode(this._text));
    +
    +            var arrow = this._arrow = document.createElement("div");
    +           // arrow.style.background = "url(http://map.baidu.com/fwmap/upload/r/map/fwmap/static/house/images/label.png) no-repeat";
    +            arrow.style.position = "absolute";
    +            arrow.style.width = "11px";
    +            arrow.style.height = "10px";
    +            arrow.style.top = "24px";
    +            arrow.style.left = "28px";
    +            arrow.style.overflow = "hidden";
    +            div.appendChild(arrow);
    +
    +            /* div.addEventListener('click', function(e){
    +                that.datas.zoom = that.datas.zoomThreshold + 2;
    +                mp.centerAndZoom(city, that.datas.zoom)
    +            }) */
    +            that.map.getPanes().labelPane.appendChild(div);
    +
    +            return div;
    +        }
    +
    +        CountOverlay.prototype.draw = function(){
    +            var map = this._map;
    +            var pixel = map.pointToOverlayPixel(this._point);
    +            this._div.style.left = pixel.x - parseInt(this._arrow.style.left) - 13 + "px";
    +            this._div.style.top  = pixel.y - 60 + "px";
    +        }
    +
    +        that.map.addOverlay(new CountOverlay(city, name));	
    +    	that.map.addOverlay(marker);
    +    	that.map.enableScrollWheelZoom(true);  // 开启鼠标滚轮缩放
    +        that.map.citycenter = new BMap.Point(that.lng, that.lat);
    +
    +
    +        /* 打开银行、餐饮等tab大类*/
    +        $('.bar,#aroundLink').on('click', 'a', function () {
    +            var $this = $(this);
    +            $this.addClass('active').siblings().removeClass('active');
    +            var id = $this.attr('id');
    +            that.hidden_all_mark()
    +            that.openTypeWrap(id);
    +        });
    +
    +
    +		that.openTypeWrap('bus');
    +        
    +    	
    +    },
    +
    +    /* 计算两点间距离*/
    +    getShortDistance: function (lon1, lat1, lon2, lat2) {
    +        // PI
    +        var DEF_PI = 3.14159265359;
    +
    +        // 2*PI
    +        var DEF_2PI = 6.28318530712;
    +
    +        // PI/180.0
    +        var DEF_PI180 = 0.01745329252;
    +
    +        // radius of earth
    +        var DEF_R = 6370693.5;
    +        var ew1, ns1, ew2, ns2, dx, dy, dew, distance;
    +
    +        // 角度转换为弧度
    +        ew1 = lon1 * DEF_PI180;
    +        ns1 = lat1 * DEF_PI180;
    +        ew2 = lon2 * DEF_PI180;
    +        ns2 = lat2 * DEF_PI180;
    +
    +        // 经度差
    +        dew = ew1 - ew2;
    +
    +        // 若跨东经和西经180 度,进行调整
    +        if (dew > DEF_PI) {
    +            dew = DEF_2PI - dew;
    +        } else if (dew < -DEF_PI) {
    +            dew = DEF_2PI + dew;
    +        }
    +
    +        // 东西方向长度(在纬度圈上的投影长度)
    +        dx = DEF_R * Math.cos(ns1) * dew;
    +
    +        // 南北方向长度(在经度圈上的投影长度)
    +        dy = DEF_R * (ns1 - ns2);
    +
    +        // 勾股定理求斜边长
    +        distance = Math.sqrt(dx * dx + dy * dy);
    +        return parseInt(distance);
    +    },
    +
    +    /* 获取附近楼盘创建标记*/
    +
    +
    +    // 设置条数:type大分类
    +    setCount: function (type) {
    +        var that = this;
    +        var list = '#' + type + '_list';
    +        var liCount = $(list).find('li[id]').length;;
    +        var countDom = $('#' + type + 'Count'), text = '', split = '、', unit = '个';
    +        // 楼盘
    +        if (type === 'hs') {
    +        	// 医院
    +            text += liCount ? liCount + unit + that.have_arr_new[type] + split : '';
    +            /*for (var item in that.house_type) {
    +                if (that.house_type.hasOwnProperty(item)) {
    +                    liCount = $('#' + item + '_list').find('li[id]').length;
    +                    text += liCount ? liCount + unit + that.house_type[item] + split : '';
    +                }
    +            }*/
    +        } else if (that.house_near_merge[type]) {
    +            // 交通 教育
    +            for (var i = 0; i < that.house_near_merge[type].length; i++) {
    +                if (that.house_near_merge[type][i]) {
    +                    var item_traffic = that.house_near_merge[type][i];
    +                    if (type === 'business') {
    +                        unit = '处';
    +                    } else if (type === 'school') {
    +                        unit = '所';
    +                    } else if (type === 'school') {
    +                        if (item_traffic === 'subway') {
    +                            unit = '条';
    +                        } else {
    +                            unit = '个';
    +                        }
    +                    }
    +                    liCount = $('#' + item_traffic + '_list').find('li[id]').length;
    +                    text += liCount ? liCount + unit + that.have_arr_new[item_traffic] + split : '';
    +                }
    +            }
    +        } else if (type === 'hos') {
    +            // 医院
    +            text += liCount ? liCount + unit + that.have_arr_new[type] + split : '';
    +        } else if (type === 'other') {
    +            text = liCount + unit;
    +        }
    +        if (text) {
    +            // 除去、
    +            if (text.lastIndexOf(split) === text.length - 1) {
    +                text = text.substr(0, text.length - 1);
    +            }
    +            countDom.text(text);
    +            //隐藏无结果提示语
    +            $('#' + type + '_noResult').hide();
    +        } else {
    +            //显示无结果提示
    +            $('#' + type + '_noResult').show();
    +        }
    +    },
    +
    +    /* 按距离希尔排序*/
    +    shellSort: function (arr) {
    +        for (var step = arr.length >> 1; step > 0; step >>= 1) {
    +            for (var i = 0; i < step; ++i) {
    +                for (var j = i + step; j < arr.length; j += step) {
    +                    var k = j, value = arr[j].distance, tmp = arr[j];
    +                    while (k >= step && arr[k - step].distance > value) {
    +                        arr[k] = arr[k - step];
    +                        k -= step;
    +                    }
    +                    arr[k] = tmp;
    +                }
    +            }
    +        }
    +        return arr;
    +    },
    +
    +    /* 添加标注:单一图标*/
    +    // tag为true表示楼盘需要清除;n为索引;type为大分类
    +    addMarker_s: function (info, tag, n, isShow) {
    +        var that = this;
    +        var latLng = new BMap.Point(info.x, info.y);
    +        // var textIndent = (n + '').length > 1 ? ' style="text-indent:2px" ' : '';
    +        var ltext = '<div class="mark-icon-box">';
    +        ltext += ' <a class="map-icon mark-icon bus">' + n + '</a>';
    +        ltext += '<div  class="mark-tip" style="display: none">';
    +        ltext += '<div class="title1"><span>' + info.title + '</span><b>' + info.distance + '米</b></div>';
    +        ltext += '<i class="map-icon icon"></i>';
    +        ltext += '</div></div>';
    +        var marker = new BMapLib.RichMarker(ltext, latLng, {anchor: new BMap.Size(0, 0)});
    +        tag && that.toDelterMarkers.push(marker);
    +        
    +        marker.provalue = info;
    +        that.openTip[info.uid] = that.opentip(marker);
    +        that.map.addOverlay(marker);
    +        if(isShow){
    +        	marker.hide();
    +        }
    +        return marker;
    +    },
    +
    +    /* 鼠标划到描点事件*/
    +    focusmarker_b: function (marker) {
    +        var info = marker.provalue;
    +        var focusInfoWinFun = function () {
    +            var container = $(marker._container), mapDiv = container.find('.mark-icon-box');
    +            if (mapDiv.length) {
    +                marker.setTop && marker.setTop(true);
    +                mapDiv.find('.mark-icon').addClass('mark-icon-h').end().find('.mark-tip').show();
    +                // 恢复置顶
    +                container.css('zIndex', Math.abs(container.css('zIndex')));
    +                var list = $('#list' + info.uid);
    +                list.find('a').css('background', '#e8f4ff');
    +            }
    +        };
    +        marker.addEventListener('mouseover', focusInfoWinFun);
    +        return focusInfoWinFun;
    +    },
    +
    +    /* 鼠标划过描点事件*/
    +    blurmarker_b: function (marker) {
    +        var that = this;
    +        var info = marker.provalue;
    +        var blurInfoWinFun = function () {
    +            if (that.isclick != info.uid) {
    +                var container = $(marker._container), mapDiv = container.find('.mark-icon-box');
    +                if (mapDiv.length) {
    +                    mapDiv.find('.mark-icon').removeClass('mark-icon-h').end().find('.mark-tip').hide();
    +                    // 恢复置顶
    +                    container.css('zIndex', -Math.abs(container.css('zIndex')));
    +                    var list = $('#list' + info.uid);
    +                    list.find('a').css('background', '#fff');
    +                }
    +            }
    +        };
    +        marker.addEventListener('mouseout', blurInfoWinFun);
    +        return blurInfoWinFun;
    +    },
    +
    +    /* maibuilding的hover*/
    +    hoverMarker: function (marker, flg) {
    +        var that = this;
    +        if (!marker._div) {
    +            return;
    +        }
    +        var cName = marker._div.className;
    +        var tip_price = $('#tip_price');
    +        if (flg) {
    +            if (cName.indexOf('qp') > -1) {
    +                marker._div.className = 'qp02';
    +            }
    +            marker._div.parentNode.style.zIndex = 1;
    +            if (tip_price.length > 0) {
    +                tip_price.css('display', 'inline');
    +            }
    +        } else {
    +            if (that.isclick != marker.provalue.newCode) {
    +                marker._div.parentNode.style.zIndex = marker._zindex;
    +                if (cName.indexOf('qp') < 0) {
    +                    return;
    +                }
    +                if (tip_price) {
    +                    tip_price.css('display', 'none');
    +                }
    +                var lclass = 'qp01';
    +                var sTc = {0: '04', 1: '01', 2: '05', 3: '03', 4: '01'};
    +                if ('undefined' != typeof(marker.provalue.saling) && 'undefined' != typeof(sTc[marker.provalue.saling])) {
    +                    lclass = 'qp' + sTc[marker.provalue.saling];
    +                }
    +                marker._div.className = lclass;
    +            }
    +        }
    +    },
    +
    +    /* 关闭详情窗口*/
    +    closeTip: function () {
    +        var that = this;
    +        $('#maptip').css('visibility', 'hidden');
    +        var tip_price = $('#tip_price');
    +        if (tip_price) {
    +            tip_price.css('display', 'none');
    +        }
    +    },
    +
    +    /* 弹出详情窗口****/
    +    opentip: function (marker) {
    +        var that = this;
    +        var map = that.map;
    +        var maptipDom = $('#maptip');
    +        if (!maptipDom) {
    +            return;
    +        }
    +        var opentheTip = function () {
    +            var info = marker.provalue;
    +            if (!info) {
    +                return;
    +            }
    +            info.x = info.x || info.baidu_coord_x || info.mapx;
    +            info.y = info.y || info.baidu_coord_y || info.mapy;
    +            if (that.isclick && that.isclick == info.uid) {
    +                that.closeTip();
    +                return;
    +            }
    +            var point0 =  new BMap.Point(marker._position.lng, marker._position.lat);
    +        	that.map.centerAndZoom(point0, 14);
    +        };
    +        marker.addEventListener('click', opentheTip);
    +        return opentheTip;
    +    },
    +    panMap: function () {
    +        var that = this;
    +        that.map.setViewport(that.markerBounds);
    +    },
    +
    +    /* 打开餐饮、银行大类信息*/
    +    openTypeWrap: function (type) {
    +        var that = this;
    +        that.createPoints_new(type);
    +    },
    +
    +    /* 重置所有标注-*/
    +    reset_all_mark: function (fmaker) {
    +        var that = this;
    +        if ('undefined' != typeof that.map && 'undefined' != typeof that.house_near_p) {
    +            // 设置背景为初始白色
    +            $('li[id^=list] a').css('background', '#fff');
    +            // 去除描点悬浮蓝色并且隐藏所有悬浮框
    +            var map = $('#mapObj');
    +            map.find('.mark-icon').removeClass('mark-icon-h').end().find('.mark-tip').hide();
    +
    +            if (fmaker && !fmaker._div) {
    +                var info = fmaker.provalue;
    +                var container = $(fmaker._container);
    +                container.css('zIndex', Math.abs(container.css('zIndex')));
    +                var listNew = $('#list' + info.uid);
    +                listNew.find('a').css('background', '#e8f4ff');
    +            }
    +        }
    +    },
    +
    +    /* 隐藏所有标注*/
    +    hidden_all_mark: function () {
    +        var that = this;
    +        if ('undefined' != typeof that.map && 'undefined' != typeof that.house_near_p) {
    +            for (var key in that.house_near_p) {
    +                if (that.house_near_p[key].length < 1) {
    +                    return;
    +                }
    +                for (var j = 0; j < that.house_near_p[key].length; j++) {
    +                    var point = that.house_near_p[key][j];
    +                    point && point.hide();
    +                }
    +            }
    +        }
    +    },
    +
    +    /* 只传入类型的大类标注*/
    +    hideOtherPoints: function (type) {
    +        var that = this;
    +        if ('undefined' == typeof that.map || 'undefined' == typeof that.house_near_p || null == type) {
    +            return;
    +        }
    +        for (var key in that.house_near_p) {
    +            if (that.house_near_p[key].length > 0) {
    +                for (var j = 0; j < that.house_near_p[key].length; j++) {
    +                    var point = that.house_near_p[key][j];
    +                    if(point){
    +						if(key == type){
    +						 	point.show();
    +						}else{
    +							point.hide()
    +						}
    +                    }
    +                }
    +            }
    +        }
    +    },
    +
    +    /* 显示周边楼盘标注*/
    +    createPoints_house: function () {
    +        var that = this;
    +        that.panTo(that.map.citycenter);
    +        that.hidden_all_mark();
    +        if (that.have_arr['hs'] == 1 && 'undefined' != typeof that.map && 'undefined' != typeof that.house_near_p) {
    +            for (var key in that.house_near_p) {
    +                if ('hs' != key) {
    +                    continue;
    +                }
    +                for (var j = 0; j < that.house_near_p[key].length; j++) {
    +                    var point = that.house_near_p[key][j];
    +                    point && point.show();
    +                }
    +                break;
    +            }
    +        } else {
    +            //that.getNearHouse();
    +        }
    +    },
    +
    +    /**
    +     * 创建小分类下的标注:若已经创建则显示已经创建的
    +     * @param type 分类
    +     * @returns null
    +     */
    +    createPoints_new: function (type) {
    +        if (null == type) {
    +            return;
    +        }
    +        type = type.replace(/\s+/g, '');
    +        var that = this;
    +        that.panTo(that.map.citycenter);
    +        that.hideOtherPoints(type);
    +        // 若已经存在
    +        if (that.have_arr[type] == 1) {
    +        	//that.hideOtherPoints(type);
    +            /* 刷新地图标注*/
    +           // that.hideOtherPoints(type);
    +
    +            /* 显示该分类下所有的内容*/
    +            /*var typeList = $('#' + type + '_list');
    +            // 记录滚动位置
    +            that.topScroll = typeList.parent().scrollTop();
    +            typeList.find('li').show();
    +            typeList.show().siblings().hide();*/
    +            /* 隐藏更多按钮*/
    +            $('.mscoputup').show();
    +            $('.mscomore').hide();
    +        } else {
    +            /*if (type == 'hs') {
    +                //that.getNearHouse();
    +            } else {
    +                that.getnear_s(that.have_arr_new[type], that.maxMarker_count, that.view_count, that.limit, that.maxMarker_count);
    +            }*/
    +            that.getnear_s(type,that.maxMarker_count, that.view_count, that.limit, that.maxMarker_count);
    +        }
    +    },
    +
    +    panTo: function(e, a) {
    +        e && a && that.map.panTo(new BMap.Point(a, e))
    +    },
    +    /**
    +     * 创建大分类下的标注:若已经创建则显示已经创建的
    +     * @param key 大分类
    +     * @returns null
    +     */
    +    createPoints_merge: function (key) {
    +        var that = this;
    +        that.panTo(that.map.citycenter);
    +
    +        /* 隐藏地图上所有标注*/
    +        that.hidden_all_mark();
    +        var mergeArr = that.house_near_merge[key];
    +
    +        /* 显示标注*/
    +        var flag = false, i, j = 0, l;
    +        for (i = 0, l = mergeArr.length; i < l; i++) {
    +            if (that.have_arr[mergeArr[i]] == 1) {
    +                flag = true;
    +                break;
    +            }
    +        }
    +
    +        /* 显示全部*/
    +        if (flag) {
    +            if ('undefined' != typeof that.map && 'undefined' != typeof that.house_near_p) {
    +                // 显示当前大分类下所有小分类列表
    +                var typeList = $('#' + mergeArr[0] + '_list');
    +                typeList.show().siblings().show();
    +                /* 显示更多按钮  隐藏收起按钮*/
    +                $('.mscoputup').hide();
    +                $('.mscomore').show();
    +                for (var k in that.house_near_p) {
    +                    if (that.in_array(k, mergeArr)) {
    +                        for (j = 0; j < that.house_near_p[k].length; j++) {
    +                            var point = that.house_near_p[k][j];
    +                            point && (j < that.view_count ? point.show() : point.hide());
    +                        }
    +                    }
    +                }
    +                for (i = 0, l = mergeArr.length; i < l; i++) {
    +                    var objs = $('#' + mergeArr[i] + '_list').find('li');
    +                    for (j = that.view_count; j < that.maxMarker_count; j++) {
    +                        if (null == objs[j]) {
    +                            break;
    +                        }
    +                        $(objs[j]).hide();
    +                    }
    +                }
    +                // 滚到展开位置
    +                typeList.parent().scrollTop(that.topScroll || 0);
    +            }
    +        } else {
    +            that.init_search_merge(key);
    +        }
    +    },
    +
    +    init_search_merge: function (key) {
    +        var that = this;
    +        var mergeArr = that.house_near_merge[key];
    +        for (var i = 0, l = mergeArr.length; i < l; i++) {
    +            that.getnear_s(mergeArr[i], that.maxMarker_count, that.view_count, that.limit, that.maxMarker_count, key);
    +        }
    +    },
    +
    +    /**
    +     * 获取周围信息
    +     * @param type 小分类
    +     * @param count 需要搜索的最大个数
    +     * @param view_count 非展开状态下显示个数
    +     * @param limit 搜索距离(m)
    +     * @param limit_count 页面上展示最大个数
    +     * @param parentType 大分类
    +     * @returns null
    +     */
    +    getnear_s: function (type, count, view_count, limit, limit_count, parentType) {
    +        var that = this;
    +        /*if (cityy == '' || cityx == '' || null == type) {
    +            return;
    +        }*/
    +        var searchname = that.have_arr_new[type];
    +        var onLocalSearch = function (resData) {
    +            // 娱乐由于合在了一起所以单独处理
    +            //var isFun = that.in_array(type, that.house_near_merge['fun']);
    +            /* 判断状态是否正确*/
    +            if (localSearch.getStatus() == BMAP_STATUS_SUCCESS) {
    +                var resultArr = [];
    +                that.focusInfoWinFuns[type] = [];
    +                that.blurInfoWinFuns[type] = [];
    +                var uidarr = [];
    +                var points = []
    +                /* 处理百度返回信息*/
    +                for (var i = 0; i < resData.getCurrentNumPois(); i++) {
    +                    var info = resData.getPoi(i);
    +                    if(info){
    +                    	/* 过滤地铁中的地铁口*/
    +                        info['address'] = info['address'] ? info['address'] : '';
    +                        if ('subway' == type && (!that.array_in_array(that.type_tags[type], info.tags) || info['address'].indexOf('线') < 0)) {
    +                            continue;
    +                        }
    +                        /* 计算距离*/
    +                        info.distance = that.getShortDistance(that.map.citycenter.lng, that.map.citycenter.lat, info.point.lng, info.point.lat);
    +                        uidarr.push(info.uid);
    +                        resultArr.push(info);
    +                        points.push(new BMap.Point(info.point.lng,info.point.lat))
    +                    }
    +                }
    +                resData._pois = that.shellSort(resultArr);
    +                that.have_arr[type] = 1;
    +                // 所有周围娱乐数据加载完毕
    +                var allFunIsFinished = that.have_arr['ktv'] && that.have_arr['bar'] && that.have_arr['cinema']
    +                    && that.have_arr['beauty'] && that.have_arr['cafe'];
    +                // 若是娱乐将type设为fun
    +                /*if (isFun) {
    +                    type = 'fun';
    +                    searchname = '娱乐';
    +                    that.focusInfoWinFuns[type] = [];
    +                    that.blurInfoWinFuns[type] = [];
    +                    that.have_arr[type] = 1;
    +                    !that.funData && (that.funData = []);
    +                    that.funData = that.funData.concat(resData._pois);
    +                    // 若娱乐都检索完毕则可以画点
    +                    if (allFunIsFinished) {
    +                        resData._pois = that.shellSort(that.funData);
    +                    } else {
    +                        return;
    +                    }
    +                }*/
    +                that.house_near_p[type] = [];
    +                /*if (!isFun || isFun && allFunIsFinished) {
    +                    that.getListAndMarker(resData._pois, limit_count, view_count, type, parentType, searchname);
    +                }*/
    +                that.getListAndMarker(resData._pois, limit_count, view_count, type, parentType, searchname);
    +                
    +                 that.map.setViewport(points);
    +            } else {
    +                //  若没搜索成功娱乐也加标识位,因为娱乐是所有加载完后再描点
    +                /*if (isFun) {
    +                    that.have_arr[type] = 1;
    +                    if (that.have_arr['ktv'] && that.have_arr['bar'] && that.have_arr['cinema']
    +                        && that.have_arr['beauty'] && that.have_arr['cafe']) {
    +                        that.getListAndMarker(that.funData, limit_count, view_count, type, parentType, '娱乐');
    +                    }
    +                }*/
    +            }
    +        };
    +        var localSearch = new BMap.LocalSearch(new BMap.Point(that.lng, that.lat), {onSearchComplete: onLocalSearch});
    +        localSearch.setPageCapacity(count);
    +        localSearch.searchNearby(searchname, that.map.citycenter, limit);
    +    },
    +
    +    /**
    +     * 拼接列表并描点
    +     * @param rsData 描点数组
    +     * @param limit_count 页面上展示最大个数
    +     * @param view_count 非展开状态下显示个数
    +     * @param type 小分类
    +     * @param mergeType 大分类
    +     * @param searchName 小分类列表头
    +     * @param isNotVisible 是否需要隐藏
    +     * @returns null
    +     */
    +    getListAndMarker: function (resData, limit_count, view_count, type, mergeType, searchName, isNotVisible) {
    +        var that = this;
    +        var s = [], l = resData.length;
    +        if (l > 0) {
    +            s.push('<div class="list_title">' + searchName + '</div><ul class="list_content">');
    +            for (var i = 0; i < l && i < limit_count; i++) {
    +                var result = resData[i];
    +                var selected = view_count && (i > view_count - 1) ? 'none' : '';
    +                if (mergeType) {
    +                    s.push('<li id="list' + result.uid + '" style="display :' + selected + '">');
    +                } else {
    +                    s.push('<li id="list' + result.uid + '">');
    +                }
    +                s.push('<a href="javascript:void(0)" title="' + result.title + '" data-MyData="' + type + ',' + result.uid + '" >');
    +                //var textIndent = i + 1 > 9 ? ' style="text-indent:2px" ' : '';
    +                s.push('<i>' + (i + 1) + '</i><p>' + that.cut_str(result.title, 12)+ '</p>');
    +                if (result.distance) {
    +                    s.push('<small>' + result.distance + '米</small>');
    +                }
    +                s.push('</a></li>');
    +                result.maptype = type;
    +                // 删除other类型的描点
    +                var tag = type === 'other';
    +                if(that.house_near_merge[mergeType] && i>4){
    +                	var marker = that.addMarker_s(that.orgSearchInfo(result), tag, i + 1,true);
    +                }else{
    +                	var marker = that.addMarker_s(that.orgSearchInfo(result), tag, i + 1,false);
    +                }
    +                that.house_near_p[type].push(marker);
    +                // 搜索周围需要显示
    +                /*if (!isNotVisible) {
    +                    mergeType ? view_count && i > view_count && that.house_near_p[type][i].hide() : that.house_near_p[type][i].hide();
    +                }*/
    +                that.focusInfoWinFuns[type][result.uid] = that.focusmarker_b(marker, i);
    +                that.blurInfoWinFuns[type][result.uid] = that.blurmarker_b(marker, i);
    +            }
    +           if (mergeType && l > view_count) {
    +                s.push('<div class="mscother"><span class="mscomore"><a style="color: #01a1ff;" data-More="' + type);
    +                s.push('" href="javascript:void(0)"  >更多<em></em></a></span>');
    +                s.push('<span class="mscoputup" style="display:none;">');
    +                s.push('<a style="color: #01a1ff;" href="javascript:void(0)"  data-Shrink="' + mergeType + '" >收起</a>');
    +                s.push('</span>');
    +                s.push('</div>');
    +            }
    +            s.push('</ul>');
    +            var domList = $('#' + type + '_list');
    +            domList.html(s.join(''));
    +            /* 注册多个事件*/
    +            that.addEventsListener(domList);
    +            that.setCount(mergeType || type);
    +        }
    +    },
    +
    +    /* 添加多个事件 提出来了*/
    +    addEventsListener: function (dom) {
    +        var that = this;
    +        if (!dom) {
    +            return;
    +        }
    +        dom.on('mouseover mouseout click', 'a', function (e) {
    +            var $this = $(this), dataS = $this.attr('data-mydata'), dataMore = $this.attr('data-More'), dataShrink = $this.attr('data-Shrink');
    +            if (!dataS && !dataMore && !dataShrink) {
    +                return;
    +            }
    +            var data = dataS ? dataS.split(',') : undefined;
    +            switch (e.type) {
    +                case 'click':
    +                    /* 更多和收起按钮的动作*/
    +                    if (dataMore) {
    +                        that.createPoints_new(dataMore);
    +                        break;
    +                    }
    +                    if (dataShrink) {
    +                        that.createPoints_merge(dataShrink);
    +                        break;
    +                    }
    +                    that.openTip[data[1]]();
    +                    break;
    +                case 'mouseover':
    +                    data && that.focusInfoWinFuns[data[0]][data[1]]();
    +                    break;
    +                case 'mouseout':
    +                    data && that.blurInfoWinFuns[data[0]][data[1]]();
    +                    break;
    +            }
    +        });
    +    },
    +
    +    /* 获取周围餐馆、银行、医院、公交车***/
    +    searchNearby: function (x, y, keyword, title) {
    +        var that = this;
    +        if (!keyword) {
    +            return;
    +        }
    +        var onLocalSearch = function (resData) {
    +            // 判断状态是否正确
    +            if (local.getStatus() == BMAP_STATUS_SUCCESS) {
    +                var resultArr = [];
    +                var type = 'other';
    +                that.house_near_p[type] = [];
    +                that.focusInfoWinFuns[type] = [];
    +                that.blurInfoWinFuns[type] = [];
    +                /* 处理百度返回信息*/
    +                for (var i = 0; i < resData.getCurrentNumPois(); i++) {
    +                    var info = resData.getPoi(i);
    +                    /* 计算距离*/
    +                    info.distance = that.getShortDistance(that.map.citycenter.lng, that.map.citycenter.lat, info.point.lng, info.point.lat);
    +                    resultArr.push(info);
    +                }
    +                resData._pois = that.shellSort(resultArr);
    +                //
    +                that.getListAndMarker(resData._pois, that.maxMarker_count, null, type, null, title + '周边' + keyword, true);
    +                $('.myWrap').hide();
    +                $('#' + type + '_wrap').show();
    +
    +            }
    +        };
    +        var local = new BMap.LocalSearch(that.map._map, {
    +            onSearchComplete: onLocalSearch
    +        });
    +        local.setPageCapacity(20);
    +        local.searchNearby(keyword, new BMap.Point(x, y), that.limit);
    +        that.hidden_all_mark();
    +        that.removeOtherOverlays();
    +    },
    +    cut_str: function (str, len) {
    +        var char_length = 0;
    +        for (var i = 0; i < str.length; i++) {
    +            var son_str = str.charAt(i);
    +            encodeURI(son_str).length > 2 ? char_length += 1 : char_length += 0.5;
    +            if (char_length >= len) {
    +                var sub_len = char_length == len ? i + 1 : i;
    +                return str.substr(0, sub_len);
    +            }
    +        }
    +        return str;
    +    },
    +    drawMarkers: function () {
    +        var that = this;
    +        for (var i = 0; i < that.metaMarkers.length; i++) {
    +            var proValue = that.metaMarkers[i];
    +            that.markerBounds.extend(that.createMarker(proValue));
    +        }
    +    },
    +    createMarker: function (info) {
    +        var that = this;
    +        that.this_code = info.newCode;
    +        var latLng = new BMap.Point(info.baidu_coord_x || info.mapx, info.baidu_coord_y || info.mapy);
    +        var lclass = 'labeledMarkerStyle3';
    +        var sTc = {0: '2', 2: '4', 3: '1'};
    +        if ('undefined' != typeof(info.saling) && 'undefined' != typeof(sTc[info.saling])) {
    +            lclass = 'labeledMarkerStyle' + sTc[info.saling];
    +        }
    +        var ltext, opts;
    +        if ('hs' != that.iType && info.maplogo != '') {
    +            lclass = 'lpmctd';
    +            ltext = '<div class="' + lclass + '" id="tip' + info.newCode + '"><div class="lpmctdpic"><img style="width:100px;" src="' + info.maplogo;
    +            ltext += '" alt="" /></div></div>';
    +            opts = {anchor: new BMap.Size(-50, -47)};
    +        } else {
    +            lclass = 'qp01';
    +            sTc = {0: '04', 1: '01', 2: '05', 3: '03', 4: '01'};
    +            if ('undefined' != typeof(info.saling) && 'undefined' != typeof(sTc[info.saling])) {
    +                lclass = 'qp' + sTc[info.saling];
    +            }
    +            ltext = '<div class="' + lclass + '" id="tip' + info.newCode + '"><div class="s1"><em>' + info.title;
    +            ltext += '<span style="display: none;" id="tip_price">|' + info.price_type + info.price_num + info.price_unit + '</span></em></div></div>';
    +            opts = {anchor: new BMap.Size(-5, -38)};
    +        }
    +        var marker = new BMapLib.RichMarker(ltext, latLng, opts);
    +        marker.provalue = that.orgInfo(info);
    +        marker.addEventListener('mouseover', function () {
    +            that.hoverMarker(marker, true);
    +        });
    +        marker.addEventListener('mouseout', function () {
    +            that.hoverMarker(marker, false);
    +        });
    +        that.opentip(marker);
    +        that.centerMarker = marker;
    +        that.map.addMarker(marker);
    +        marker._div = $('#tip' + info.newCode)[0];
    +        marker._zindex = marker._div.parentNode.style.zIndex;
    +        return latLng;
    +    },
    +
    +    /* 组织页面*/
    +    orgInfo: function (info) {
    +        var that = this;
    +        info.uid = info.newCode;
    +        info.detailUrl = that.httpAddress(info.purpose) + info.newCode + '.htm';
    +        var stimetempstr = '';
    +        if (info.startTime) {
    +            if (info.startTime.indexOf('-') > -1) {
    +                var stimetemparr = info.startTime.split('-');
    +                stimetempstr += stimetemparr[0] + '年';
    +                if ('undefined' != typeof stimetemparr[1]) {
    +                    stimetempstr += stimetemparr[1] + '月';
    +                }
    +                if ('undefined' != typeof stimetemparr[2]) {
    +                    stimetempstr += stimetemparr[2] + '日';
    +                }
    +            } else {
    +                stimetempstr += info.startTime.substr(0, 4) + '年';
    +                if (info.startTime.substr(4, 2) != '') {
    +                    stimetempstr += info.startTime.substr(4, 2) + '月';
    +                }
    +                if (info.startTime.substr(6, 2) != '') {
    +                    stimetempstr += info.startTime.substr(6, 2) + '日';
    +                }
    +            }
    +        }
    +        info.startTime = stimetempstr;
    +        if (info.picAddress == '') {
    +            info.picAddress = imgUrl + 'shipin0.gif';
    +        }
    +        info.mapUrl = 'http://map.' + nowsite + '.com/house/' + city + '/index.php';
    +        if (info.tel) {
    +            info.tel = info.tel.replace(/\s+/g, '');
    +            info.tel = info.tel.replace(/(转)/g, '</span> $1 <span class="mpucred">');
    +        }
    +        if ('' == info.houseurl) {
    +            info.houseurl = 'javascript:void(0)';
    +        }
    +        info.saleType = info.saling ? '<dt class="shouw rbox2  fl ml10 mt15">' + that.saling[info.saling] + '</dt>' : '';
    +
    +        if (info.category && info.esfNum && '2' == info.category) {
    +            if (0 == info.esfNum) {
    +                info.saleType = '<span>(暂无房源信息)</span>';
    +            } else {
    +                info.saleType = '<span>(' + info.esfNum + '套房源)</span>';
    +            }
    +        }
    +        if (!info.price_num) {
    +            info.price_num = '价格暂无';
    +        }
    +        if ('--' == info.price_unit) {
    +            info.price_unit = '';
    +        }
    +        if (info.mobilepayment && 'undefined' != typeof info.mobilepayment) {
    +            info.youhui = '<span class="rbox2 ml05" title="' + info.mobilepayment + '">' + that.cut_str(info.mobilepayment, 7) + '</span>';
    +        } else if (info.signupname && 'undefined' != typeof info.signupname) {
    +            info.youhui = '<span class="rbox2 ml05" title="' + info.signupname + '">' + that.cut_str(info.signupname, 7) + '</span>';
    +        } else if (info.soufun_card_client && 'undefined' != typeof info.soufun_card_client) {
    +            info.youhui = '<span class="rbox2 ml05" title="' + info.soufun_card_client + '">' + that.cut_str(info.soufun_card_client, 7) + '</span>';
    +        } else {
    +            info.youhui = '';
    +        }
    +
    +        info.city_a = '<a style="color: #333;" href="http://www.' + nowsite + '.com/house/s/' + info.city + '" target="_blank">' + info.city + '</a>';
    +        info.district_a = info.district ? ' - ' + '<a style="color: #333;" href="http://www.' + nowsite + '.com/house/s/' + info.district + '/" target="_blank">' + info.district + '</a>' : '';
    +        info.comarea_a = info.comarea ? ' - ' + '<a style="color: #333;" href="http://www.' + nowsite + '.com/house/s/' + info.comarea + '/" target="_blank">' + info.comarea + '</a>' : '';
    +
    +        info.title_l = that.cut_str(info.title, 14);
    +        if (!info.x) {
    +            info.x = info.lng;
    +        }
    +        if (!info.y) {
    +            info.y = info.lat;
    +        }
    +        info.maptype = 'hs';
    +        return info;
    +    },
    +
    +    /* 拼url*/
    +    httpAddress: function (purpose) {
    +        var soufunhttp = '';
    +        var city_cn = '';
    +        if ('undefined' != typeof cname) {
    +            city_cn = cname;
    +        } else if ('undefined' !== typeof searchcondition['cityname']) {
    +            city_cn = searchcondition['cityname'];
    +        }
    +        // IE兼容 indexOf
    +        if (!Array.indexOf) {
    +            Array.prototype.indexOf = function (obj) {
    +                for (var i = 0; i < this.length; i++) {
    +                    if (this[i] == obj) {
    +                        return i;
    +                    }
    +                }
    +                return -1;
    +            };
    +        }
    +        if (purpose.indexOf('写字楼') > -1) {
    +            /* 北京、成都、广州、深圳、天津、上海、重庆、苏州、杭州、沈阳*/
    +            var isInThose = city == 'bj' || city == 'sh' || city == 'cd' || city == 'gz' || city == 'sz' || city == 'tj' || city == 'cq';
    +            if (isInThose || city == 'sy' || city == 'hz' || city == 'suzhou') {
    +                if (city == 'bj') {
    +                    soufunhttp = 'http://office.' + nowsite + '.com';
    +                } else {
    +                    soufunhttp = 'http://office.' + city + '.' + nowsite + '.com';
    +                }
    +                return soufunhttp + '/house/' + city_cn + '_';
    +            }
    +        } else if (purpose.indexOf('商铺') > -1) {
    +            /* 北京、天津、上海、深圳、东莞、武汉、南京、苏州*/
    +            if (city == 'bj' || city == 'sh' || city == 'dg' || city == 'sz' || city == 'tj' || city == 'wuhan' || city == 'nanjing' || city == 'suzhou') {
    +                if (city == 'bj') {
    +                    soufunhttp = 'http://shop.' + nowsite + '.com';
    +                } else {
    +                    soufunhttp = 'http://shop.' + city + '.' + nowsite + '.com';
    +                }
    +                return soufunhttp + '/house/' + city_cn + '_';
    +            }
    +        }
    +        if (city == 'bj') {
    +            soufunhttp = 'http://www.' + nowsite + '.com/house/';
    +        } else if (city == 'nanjing') {
    +            soufunhttp = 'http://nanjing.' + nowsite + '.com/house/';
    +        } else {
    +            soufunhttp = 'http://newhouse.' + city + '.' + nowsite + '.com/house/';
    +        }
    +        return soufunhttp;
    +    },
    +    orgSearchInfo: function (info) {
    +        info.x = info.point.lng;
    +        info.y = info.point.lat;
    +        info.address = info.address ? info.address : '暂无';
    +        info.phoneNumber = info.phoneNumber ? info.phoneNumber : '暂无';
    +        return info;
    +    },
    +
    +    /* 测距**/
    +    openDis: function () {
    +        var that = this;
    +        if ('undefined' == typeof that._disTool) {
    +            that._disTool = new BMapLib.DistanceTool(that.map._map);
    +            that._disTool.addEventListener('drawend',
    +                function () {
    +                    that._disTool.close();
    +                });
    +        }
    +        that._disTool.open();
    +    },
    +
    +    /* 用戶行為*/
    +    yhxw: function (action) {
    +        _ub.city = vars.cityname;
    +
    +        /* 业务 地图*/
    +        _ub.biz = 'n';
    +
    +        /* 用户动作(浏览0、搜索1)*/
    +        var b = 0;
    +
    +        var p = {
    +            nh: encodeURIComponent(action)
    +        };
    +
    +        /* 收集方法*/
    +        _ub.collect(b, p);
    +    },
    +
    +    array_in_array: function (arr1, arr2) {
    +        if ('undefined' != typeof arr1 && 'undefined' != typeof arr2) {
    +            for (var key in arr1) {
    +                for (var key2 in arr2) {
    +                    if ('string' == typeof arr2[key2] && 'string' == typeof arr1[key] && arr2[key2].indexOf(arr1[key]) >= 0) {
    +                        return true;
    +                    }
    +                }
    +            }
    +        }
    +        return false;
    +    },
    +
    +    in_array: function (type, arr) {
    +        if ('undefined' != typeof arr && 'undefined' != typeof type && $.inArray(type, arr) > -1) {
    +            return true;
    +        } else {
    +            return false;
    +        }
    +
    +    }
    +    
    +}
    +
    +function initMapConfig(){
    +    mapConfig.map = null,
    +    mapConfig.defaultZoom= 13,
    +    mapConfig.cityx=121.356766,
    +    mapConfig.cityy=31.213703,
    +    zoom=14,
    +    /* 获取附近楼盘url的参数*/
    +    mapConfig.params= {
    +        x1: 121.356766,
    +        y1: 31.213703,
    +        distance: '2',
    +        strNewCode: ''
    +    },
    +
    +    /* 用来存储当前页面上所有点的信息*/
    +    mapConfig.markerList= {},
    +
    +    /* 地图边界:可用来控制地图的显示范围*/
    +    mapConfig.markerBounds= new BMap.Bounds(),
    +    mapConfig.iType= 'hs',
    +    mapConfig.house_type= {zz: '住宅', sp: '商铺', xzl: '写字楼', bs: '别墅'},
    +
    +    // 销售状态
    +    mapConfig.saling= {
    +        1: '在&nbsp;售',
    +        2: '待&nbsp;售',
    +        3: '在&nbsp;租',
    +        4: '待&nbsp;租',
    +        0: '售&nbsp;完'
    +    },
    +
    +    /* 以下是周边查询的***/
    +    mapConfig.have_arr= {
    +        hs: '',
    +        jj: '',
    +        zs: '',
    +        bus: '',
    +        subway: '',
    +        ct: '',
    +        bank: '',
    +        school: '',
    +        hos: '',
    +        buy: '',
    +        park: '',
    +        parking: '',
    +        gas: '',
    +        ktv: '',
    +        bar: '',
    +        cinema: '',
    +        beauty: '',
    +        cafe: '',
    +        kindergarten: '',
    +        primarysc: '',
    +        middlesc: '',
    +        university: '',
    +        traffic: '',
    +        fun: ''
    +    },
    +    mapConfig.have_arr_new= {
    +        bus: '公交',
    +        subway: '地铁',
    +        ct: '餐饮',
    +        bank: '银行',
    +        school: '学校',
    +        hos: '医院',
    +        buy: '购物',
    +        park: '公园',
    +        parking: '停车场',
    +        gas: '加油站',
    +        supermark: '超市',
    +        ktv: 'KTV',
    +        bar: '酒吧',
    +        cinema: '电影院',
    +        beauty: '美容院',
    +        cafe: '咖啡厅',
    +        kindergarten: '幼儿园',
    +        primarysc: '小学',
    +        middlesc: '中学',
    +        university: '大学',
    +        traffic: '交通',
    +        fun: '娱乐',
    +        hs: '小区'
    +    },
    +    // 需要删除的点集合包含路线,搜附近type为other的点
    +    mapConfig.toDelterMarkers= [],
    +    // 已描点集合
    +    mapConfig.house_near_p= [],
    +
    +    /* 打开标注框方法集***/
    +    mapConfig.openTip= [],
    +
    +    /* 标注获得焦点方法集***/
    +    mapConfig.focusInfoWinFuns= [],
    +
    +    /* 标注失去焦点方法集***/
    +    mapConfig.blurInfoWinFuns= [],
    +
    +    /* 具有小分类的周边搜索***/
    +    mapConfig.house_near_merge= {
    +        traffic: ['subway', 'bus', 'parking', 'gas'],
    +        // 商业包含娱乐 超市 餐饮 银行 公园
    +        business: ['fun', 'supermark', 'ct', 'bank', 'park'],
    +        // 娱乐
    +        fun: ['ktv', 'bar', 'cinema', 'beauty', 'cafe'],
    +        school: ['kindergarten', 'primarysc', 'middlesc', 'university']
    +    },
    +
    +    /* 大分类列表***/
    +    mapConfig.search_wrap= ['hs', 'traffic', 'fun', 'supermark', 'ct', 'bank', 'hos', 'park', 'school'],
    +
    +    /* 需要进行搜索返回值过滤的周边***/
    +    mapConfig.type_tags= {subway: ['地铁']},
    +
    +    /* 获取周边条数*/
    +    mapConfig.maxMarker_count= 20,
    +
    +    // 列表中初始化可看到的元素
    +    mapConfig.view_count= 5,
    +    /* 获取周边范围(m)*/
    +    mapConfig.limit= 2000,
    +
    +    /* 驾车查询的参数*/
    +    mapConfig.searchdrive= {start: '', x1: '', y1: '', sstatus: '', end: '', x2: '', y2: '', estatus: '', type: '', tag: ''},
    +    mapConfig.sstartname= null,
    +    mapConfig.sendname= null,
    +    mapConfig.tag= null
    +}
    +
    +
    +function loadMapPoi(){
    +	initMapConfig();
    +    mapConfig.init();
    +}
    diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js
    new file mode 100644
    index 0000000..f8d2cdc
    --- /dev/null
    +++ b/fangija-zsyf/js/district/districtDetail.js
    @@ -0,0 +1,730 @@
    +var colorList = ['#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'];
    +var labelFont = 'bold 12px Sans-serif';
    +
    +var dates;
    +var data; 
    +var volumes;
    +var curOption;
    +var mapLoadCount = 0;
    +
    +
    +/* 关注&已关注切换 */
    +function doAddCollect(){
    +	if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +		clicked('../user/codeSms.html',true,false,{},{},function(){
    +			doAddCollect();
    +		})
    +		return;
    +	} else {
    +		addCollect();
    +	}
    +}
    +
    +function addCollect(){
    +	axios.post("/rest/districts/addCollect",{city:city,region:region,name:name,lat:lat,lng:lng,address:address, poiTags:tags}).then(function (response) {
    +		var msg = response.data.message
    +		if(msg){
    +			$.toast(msg);
    +		}else{
    +			$(".collection01").hide();
    +			$(".collection02").show();
    +			$.toast("随时掌握小区动态");
    +		}
    +		plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +		plus.webview.getWebviewById('yfindex.html').reload();
    +		plus.webview.getWebviewById('views/house/houseManageList.html').reload();
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +$(".collection02").on("click", function () {
    +	removeCollect();
    +});
    +
    +function doRemoveCollect(){
    +	if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +		clicked('../user/codeSms.html',true,false,{},{},function(){
    +			doRemoveCollect();
    +		})
    +		return;
    +	} else {
    +		removeCollect();
    +	}
    +}
    +
    +function removeCollect(){
    +	axios.post("/rest/districts/removeCollect",{city:city,region:region,name:name}).then(function (response) {
    +		var msg = response.data.message
    +		if(msg){
    +			$.toast(msg);
    +		}else{
    +			$(".collection02").hide();
    +			$(".collection01").show();
    +			$.toast("取消关注");
    +		}
    +		plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +		plus.webview.getWebviewById('yfindex.html').reload();
    +		plus.webview.getWebviewById('views/house/houseManageList.html').reload();
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +/* button状态切换 */
    +/*$("#trendTabDiv .button").on("click", function () {
    +	$(this).parent().children().removeClass("active");
    +	$(this).addClass("active");
    +});
    +*/
    +/* 图表切换 */
    +/*$("#tabAvgDiv").on("click", function () {
    +  $("#tabChart1").css("z-index","1");
    +  $("#tabChart2").css("z-index","-1");
    +});
    +$("#tabRentDiv").on("click", function () {
    +  $("#tabChart2").css("z-index","1");
    +  $("#tabChart1").css("z-index","-1");
    +});*/
    +
    +/*var t1 = window.setInterval(loadMap,1000);
    +function loadMap(){
    +	mapLoadCount++;
    +	if(lng && lat){
    +		loadMapPoi();
    +		$("#mapDiv").show();
    +		window.clearInterval(t1);
    +	}else{
    +		if(mapLoadCount == 10){
    +			$("#mapDiv").hide();
    +			window.clearInterval(t1);
    +		}else{
    +			$("#mapDiv").hide();
    +		}
    +	}
    +}*/
    +function showLoadRentTrends(type) {
    +	if(type == 3) {
    +		document.getElementById("trendDivTab3").setAttribute("class","tab-link button active");
    +		document.getElementById("trendDivTab2").setAttribute("class","tab-link button");
    +	} else {
    +		document.getElementById("trendDivTab3").setAttribute("class","tab-link button");
    +		document.getElementById("trendDivTab2").setAttribute("class","tab-link button active");
    +	}
    +	
    +	loadRentTrends(city, region, name,type);	
    +}
    +
    +//小区详情
    +function loadDistrictInfo(){
    +	axios.get("/rest/districts/detail", {
    +	    params: {
    +	      city: city,
    +	      region:region,
    +	      name: name
    +	    }
    +	}).then(function (response) {
    +		var vo = response.data.data.detail
    +		var cityPrice = response.data.data.cityPrice
    +		var collected = response.data.data.collected
    +		if(cityPrice){
    +			baseInfo.cityPrice = cityPrice
    +		}
    +		if(collected){
    +			$(".collection02").show();
    +			$(".collection01").hide();
    +		}else{
    +			$(".collection02").hide();
    +			$(".collection01").show();
    +		}
    +		if(vo){
    +			if(vo.avgPrice){
    +				lat = vo.lat2;
    +				lng = vo.lng2;
    +				
    +				//loadMapPoi();
    +				
    +				baseInfo.city = vo.city
    +				baseInfo.region = vo.region
    +				baseInfo.address = vo.address;
    +				baseInfo.name = vo.name
    +				baseInfo.avgPrice = vo.avgPrice;
    +				baseInfo.oneMonthUpDownRange = vo.oneMonthUpDownRange;
    +				
    +				if(vo.rank){
    +					baseInfo.priceRate = vo.rank.substring(0, vo.rank.indexOf("/"));
    +				}
    +				
    +				//baseInfo.cityPrice = vo.cityPrice;
    +				
    +				var finishDate = ""
    +				if(vo.finishBuildingDate){
    +					if(vo.finishBuildingDate.indexOf("~")!=-1){
    +						finishDate = vo.finishBuildingDate.replace("年","");
    +					}else{
    +						finishDate = vo.finishBuildingDate.substring(0,4)+"年"
    +					}
    +				}
    +				
    +				
    +				baseInfo.finishBuildingDate = finishDate;
    +				baseInfo.householdCount = vo.householdCount;
    +				baseInfo.cubagePercent = vo.cubagePercent;
    +				baseInfo.carSiteCount = vo.carSiteCount;
    +				baseInfo.virescencePercent = vo.virescencePercent;
    +				baseInfo.estateCharge = vo.estateCharge;
    +				baseInfo.moreArea = vo.moreArea;
    +				baseInfo.developer = vo.developer;
    +				baseInfo.estateCompany = vo.estateCompany;
    +				
    +				address = vo.address;
    +				tags = vo.poiTags;
    +				
    +				if(vo.poiTags){
    +					if(vo.poiTags.length>=3){
    +						baseInfo.tags = vo.poiTags.slice(0,3);
    +					}else{
    +						baseInfo.tags = vo.poiTags;
    +					}
    +				}
    +				
    +				var starScore = response.data.data.starScore
    +				if(starScore && starScore > 0){
    +					var regionIndex = response.data.data.regionIndex
    +					var districtPoiCount = response.data.data.districtPoiCount
    +					
    +					var schoolIndex = response.data.data.schoolIndex
    +					var arroundIndex = response.data.data.arroundIndex
    +					
    +					var indexs = []
    +					indexs.push(vo.index);
    +					indexs.push(regionIndex);
    +					indexs.push(schoolIndex);
    +					indexs.push(arroundIndex);
    +					
    +					/* 小区评级 */
    +					loadDistrictLevel(indexs);
    +				}else{
    +					$("#distLevelDiv").hide()
    +				}
    +				
    +				
    +
    +			}else{
    +				$("#noDataDiv").show()
    +				baseInfo.name = "小区详情"
    +			}
    +		}
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//附近小区
    +/*function loadNearDistrict(lat, lng){
    +	axios.get("/rest/districts/nearDistrict", {
    +	    params: {
    +	      lat: lat,
    +	      lng:lng
    +	    }
    +	}).then(function (response) {
    +		var datas = response.data.data
    +		if(datas){
    +			var ret = []
    +			for(var v in datas){
    +				var o = datas[v]
    +				if(o.city == city && o.district == region && o.name == name){
    +					continue;
    +				}else{
    +					if(ret.length <= 5){
    +						ret.push(o);
    +					}
    +				}
    +			}
    +			baseInfo.nearDists = ret;
    +			
    +			$("#nearDistDiv .cardNearbyWin").css("width",(7.5*ret.length)+"rem");
    +		}else{
    +			$("#nearDistDiv").hide()
    +		}
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}*/
    +
    +
    +	
    +
    +function loadKLineData(city, region, name){
    +	var type = $("#trendDiv1 a.active").attr("t-v");
    +	axios.get("/rest/trend/kData", {
    +	    params: {
    +	      city: city,
    +	      region:region,
    +	      name:name,
    +	      type: type
    +	    }
    +	}).then(function (response) {
    +		var datas = response.data.data
    +        if(datas){
    +        		var trends = [];
    +        		var counts = [];
    +        		var times = []
    +        		var haveCount = false;
    +        		for(var d in datas){
    +        			times.push(d);
    +        			
    +        			var prices = new Array();
    +        			for(var m in datas[d]){
    +        				prices.push(datas[d][m]);
    +        			}
    +        			trends.push(prices);
    +        			if(haveCount==false && datas[d][4]){
    +        				haveCount = true;
    +        			}
    +        			counts.push(datas[d][4]);
    +        		}
    +        		
    +        			option01.xAxis[0].data = times
    +        			option01.xAxis[1].data = times
    +        			//option01.series[0].data = counts
    +        			option01.series[0].data = trends
    +        			curOption = option01;
    +        			
    +        			var myChart01 = echarts.init(document.getElementById('chart01'));
    +            		myChart01.setOption(option01,true);
    +
    +        	}
    +       }).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +function showTrends(v){
    +	if(v == "36"){
    +		if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +			clicked('../user/codeSms.html',true,false,{},{},function(){
    +				showTrends(v);
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +			})
    +			return;
    +		} else {
    +			$("#trendDiv1 a").removeClass("active")
    +			$("a[t-v='36']").addClass("active")
    +			//curOption.dataZoom[0].start = 0
    +			loadKLineData(city, region, name)
    +		}
    +	}else{
    +		$("#trendDiv1 a").removeClass("active")
    +		//myChart01.setOption(curOption,true);
    +		if(v == 12){
    +			$("a[t-v='12']").addClass("active")
    +		}else{
    +			$("a[t-v='6']").addClass("active")
    +		}
    +		loadKLineData(city, region, name)
    +	}
    +	
    +}
    +
    +
    +var option01 = {
    +    animation: false,
    +    color: colorList,
    +    title: {
    +		text: null,
    +        left: 'center'
    +    },
    +    legend: {
    +		show: false,
    +        top: 30,
    +        data: ['均价']
    +    },
    +    tooltip: {
    +        triggerOn: 'none',
    +        transitionDuration: 0,
    +        confine: true,
    +        bordeRadius: 4,
    +        borderWidth: 1,
    +        borderColor: '#333',
    +        backgroundColor: 'rgba(255,255,255,0.9)',
    +        textStyle: {
    +            fontSize: 12,
    +            color: '#333'
    +        },
    +        formatter: function (params) {
    +        	var res = params[0].seriesName + ' ' + params[0].name;
    +            res += '<br/>  月初 : ' + params[0].value[1]; 
    +            res += '<br/>  月末 : ' + params[0].value[2];
    +            res += '<br/>  最低 : ' + params[0].value[3];
    +            res += '<br/>  最高 : ' + params[0].value[4];
    +            return res;
    +        },
    +        position: function (pos, params, el, elRect, size) {
    +            var obj = {
    +                top: 60
    +            };
    +            obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
    +            return obj;
    +        }
    +    },
    +    axisPointer: {
    +        link: [{
    +            xAxisIndex: [0, 1]
    +        }]
    +    },
    +    dataZoom: [{
    +        type: 'slider',
    +        xAxisIndex: [0, 1],
    +        realtime: false,
    +        start: 1,
    +        end: 99,
    +        top: 5,
    +        height: 20,
    +        handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
    +        handleSize: '120%'
    +    }, {
    +        type: 'inside',
    +        xAxisIndex: [0, 1],
    +        start: 40,
    +        end: 70,
    +        top: 30,
    +        height: 20
    +    }],
    +    xAxis: [{
    +	    type: 'category',
    +	    data: dates,
    +	    boundaryGap : false,
    +	    axisLine: { lineStyle: { color: '#666' } },
    +	    axisLabel: {
    +	        formatter: function (value) {
    +	            return echarts.format.formatTime('MM-dd', value);
    +	        }
    +	    },
    +	    min: 'dataMin',
    +	    max: 'dataMax',
    +	    axisPointer: {
    +	        show: true
    +	    }
    +	}, {
    +	    type: 'category',
    +	    gridIndex: 1,
    +	    data: dates,
    +	    scale: false,
    +	    boundaryGap : false,
    +	    splitLine: {show: false},
    +	    axisLabel: {show: false},
    +	    axisTick: {show: false},
    +	    axisLine: {lineStyle: { color: '#fff' } },
    +	    splitNumber: 20,
    +	    min: 'dataMin',
    +	    max: 'dataMax',
    +	    axisPointer: {
    +	        type: 'line',
    +			lineStyle: {
    +				color: '#fff',
    +				width: 1,
    +				type: 'solid'
    +			},
    +	        label: {show: false},
    +	        triggerTooltip: true,
    +	        handle: {
    +	            show: true,
    +	            margin: -70,
    +	            color: '#F18D00'
    +	        }
    +	    }
    +    }],
    +    yAxis: [{
    +		name: '均价(元/㎡)',
    +		nameRotate: 90,
    +		nameLocation: 'center',
    +		nameGap: 5,
    +		position: 'right',
    +		nameTextStyle: {
    +			color: '#999'
    +		},
    +        scale: true,
    +        splitNumber: 2,
    +        axisLine: { lineStyle: { color: '#999' } },
    +        splitLine: { show: true },
    +        axisTick: { show: false },
    +        axisLabel: {
    +            inside: true,
    +            formatter: '{value}\n'
    +        }
    +    }, {
    +		name: '',
    +		nameRotate: 90,
    +		nameLocation: 'center',
    +		nameGap: 5,
    +		position: 'right',
    +		nameTextStyle: {
    +			color: '#999'
    +		},
    +        scale: true,
    +        gridIndex: 1,
    +        splitNumber: 2,
    +        axisLabel: {show: false},
    +        axisLine: {show: false},
    +        axisTick: {show: false},
    +        splitLine: {show: false}
    +    }],
    +    grid: [{
    +        left: 20,
    +        right: 20,
    +        top: 60,
    +        height: 120
    +    }, {
    +        left: 20,
    +        right: 20,
    +        height: 40,
    +        top: 260
    +    }],
    +    graphic: [{
    +        type: 'group',
    +        left: 'center',
    +        top: 70,
    +        width: 300,
    +        bounding: 'raw'
    +    }],
    +    series: [/*{
    +        name: '成交量',
    +        type: 'bar',
    +        xAxisIndex: 1,
    +        yAxisIndex: 1,
    +        itemStyle: {
    +            normal: {
    +                color: '#87cefa'
    +            },
    +            emphasis: {
    +                color: 'black'
    +            }
    +        },
    +        data: volumes
    +    }, */{
    +        type: 'candlestick',
    +        name: '均价',
    +        data: data,
    +        itemStyle: {
    +            normal: {
    +                color: '#EB5F34',
    +                color0: '#88D053',
    +                borderColor: '#EB5F34',
    +                borderColor0: '#88D053'
    +            },
    +            emphasis: {
    +                color: '#F18D00',
    +                color0: '#666',
    +                borderColor: '#F18D00',
    +                borderColor0: '#666'
    +            }
    +        }
    +    }]
    +};
    +
    +
    +/*$("#trendDiv2 a").click(function(){
    +	$("#trendDiv2 a").removeClass("active")
    +	$(this).addClass("active")
    +	//var v = $(this).attr("t-v");
    +	loadRentTrends(city, region, name);
    +});*/
    +
    +/* 小区租金走势 */
    +
    +function loadRentTrends(city, region, name, type){
    +
    +	if(type == undefined) type= 2;
    +	axios.get("/rest/trend/distRentTrends", {
    +	    params: {
    +	      city: city,
    +	      region:region,
    +	      name:name,
    +	      type:type
    +	    }
    +	}).then(function (response) {
    +		var re = response.data.data
    +        	var categories = new Array();
    +			var series = new Array();
    +			var m = re.times;
    +			var pm = re.distMap
    +			var rooms = re.rooms;
    +			
    +			if(m && rooms.length>0){
    +				
    +				for(var i=0;i<m.length;i++){
    +					categories.push(m[i]);
    +				}
    +				for(var k in rooms){
    +					var room = rooms[k]
    +					var distM = pm[room];
    +					var distObj = new Object();
    +					var distDatas = new Array();
    +					
    +					for(var i=0;i<m.length;i++){
    +						if(distM[m[i]] == undefined){
    +							distDatas.push(null);
    +						} else {
    +							distDatas.push(distM[m[i]]);
    +						}
    +					}
    +					distObj.name = room+"室"
    +					distObj.data = distDatas;
    +					distObj.type = 'line';
    +					distObj.symbolSize = 0;
    +					series.push(distObj);
    +					//alert(distDatas);
    +				}
    +				//alert(categories);
    +				
    +				//showRentChart(categories, series);
    +				showRentChart2(categories, series);
    +			}else{
    +				//没数据
    +				//$("#tabChart2").hide();
    +				$("#trendDiv2").parent().parent().addClass("dn")
    +				$("#chart02").addClass("dn")
    +				$("#rentTrendDiv").addClass("dn")
    +			}
    +        }).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +function showRentChart2(categories, series){
    +		var option03 = {
    +			tooltip: {
    +		        trigger: 'axis',
    +				textStyle: {
    +					fontFamily: 'arial,华文细黑',
    +					fontSize: 12
    +				}
    +		    },
    +			grid:{
    +				x: 54,
    +				y: 10,
    +				x2: 16,
    +		        y2: 60,
    +				borderWidth: 1
    +			},
    +			color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
    +		    legend: {
    +				y: 'bottom',
    +				textStyle: {
    +					fontFamily: '华文细黑',
    +					fontWeight: 'bold'
    +				},
    +				itemWidth: 16,
    +		    	itemHeight: 8
    +		    },
    +		    xAxis: {
    +		        type: 'category',
    +		        boundaryGap: false,
    +				axisLine: {
    +					lineStyle: {
    +						color: '#ccc'
    +					}
    +				},
    +				axisLabel: {
    +					textStyle: {
    +						fontFamily: 'arial',
    +						color: '#666'
    +					}
    +				},
    +		        data: categories,
    +		    },
    +		    yAxis: {
    +		        type: 'value',
    +				axisLine: {
    +					lineStyle: {
    +						color: '#ccc'
    +					}
    +				},
    +				axisLabel: {
    +					textStyle: {
    +						fontFamily: 'arial',
    +						color: '#666'
    +					}
    +				}
    +		    },
    +		    series:series 
    +		};
    +	
    +	var myChart02 = echarts.init(document.getElementById('chart02'));
    +	myChart02.setOption(option03,true);
    +}
    +
    +/* 小区评级 */
    +function loadDistrictLevel(datas){
    +	var option03 = {
    +	tooltip: {
    +		trigger: 'axis',
    +		formatter: '{d} : {c}'
    +	},
    +	calculable: true,
    +	radar: [
    +		{
    +			indicator: [
    +				{text: '楼盘潜力评级', max: 100},
    +				{text: '板块评级', max: 100},
    +				{text: '教育评级', max: 100},
    +				{text: '生活便利评级', max: 100},
    +			],
    +			radius: 70,
    +			name: {
    +				textStyle: {
    +					color: '#333'
    +				}
    +			},
    +			splitArea: {
    +                areaStyle: {
    +                    color: ['rgba(136,208,83,0.20)',
    +                    'rgba(255,255,255,1)', 'rgba(136,208,83,0.20)',
    +                    'rgba(255,255,255,1)', 'rgba(136,208,83,0.20)'],
    +                    shadowColor: 'rgba(136,208,83,0.20)',
    +                    shadowBlur: 10
    +                }
    +            },
    +			axisLine: {
    +                lineStyle: {
    +                    color: 'rgba(136,208,83,0.50)'
    +                }
    +            },
    +			splitLine: {
    +                lineStyle: {
    +                    color: 'rgba(136,208,83,0.25)'
    +                }
    +            }
    +		}
    +	],
    +	series: [
    +		{
    +			name: '',
    +			type: 'radar',
    +			itemStyle: {
    +				normal: {
    +					areaStyle: {
    +						type: 'default'
    +					},
    +					color: 'rgba(136,208,83,0.9)'
    +				}
    +			},
    +			data: [
    +				{
    +					name: '',
    +					value: datas
    +				}
    +			]
    +		}
    +	]
    +};
    +var myChart03 = echarts.init(document.getElementById('chart03'));
    +myChart03.setOption(option03,true);
    +}
    diff --git a/fangija-zsyf/js/echarts-all.js b/fangija-zsyf/js/echarts-all.js
    new file mode 100644
    index 0000000..baa6b2d
    --- /dev/null
    +++ b/fangija-zsyf/js/echarts-all.js
    @@ -0,0 +1,37 @@
    +// JavaScript Document
    +
    +!function(e){var t,i;!function(){function e(e,t){if(!t)return e;if(0===e.indexOf(".")){var i=t.split("/"),n=e.split("/"),a=i.length-1,o=n.length,r=0,s=0;e:for(var l=0;o>l;l++)switch(n[l]){case"..":if(!(a>r))break e;r++,s++;break;case".":s++;break;default:break e}return i.length=a-r,n=n.slice(s),i.concat(n).join("/")}return e}function n(t){function i(i,r){if("string"==typeof i){var s=n[i];return s||(s=o(e(i,t)),n[i]=s),s}i instanceof Array&&(r=r||function(){},r.apply(this,a(i,r,t)))}var n={};return i}function a(i,n,a){for(var s=[],l=r[a],h=0,m=Math.min(i.length,n.length);m>h;h++){var V,U=e(i[h],a);switch(U){case"require":V=l&&l.require||t;break;case"exports":V=l.exports;break;case"module":V=l;break;default:V=o(U)}s.push(V)}return s}function o(e){var t=r[e];if(!t)throw new Error("No "+e);if(!t.defined){var i=t.factory,n=i.apply(this,a(t.deps||[],i,e));"undefined"!=typeof n&&(t.exports=n),t.defined=1}return t.exports}var r={};i=function(e,t,i){r[e]={id:e,deps:t,factory:i,defined:0,exports:{},require:n(e)}},t=n("")}(),i("echarts",["echarts/echarts"],function(e){return e}),i("echarts/echarts",["require","./config","zrender/tool/util","zrender/tool/event","zrender/tool/env","zrender","zrender/config","./chart/island","./component/toolbox","./component","./component/title","./component/tooltip","./component/legend","./util/ecData","./chart","zrender/tool/color","./component/timeline","zrender/shape/Image","zrender/loadingEffect/Bar","zrender/loadingEffect/Bubble","zrender/loadingEffect/DynamicLine","zrender/loadingEffect/Ring","zrender/loadingEffect/Spin","zrender/loadingEffect/Whirling","./theme/macarons","./theme/infographic"],function(e){function t(){r.Dispatcher.call(this)}function i(e){e.innerHTML="",this._themeConfig={},this.dom=e,this._connected=!1,this._status={dragIn:!1,dragOut:!1,needRefresh:!1},this._curEventType=!1,this._chartList=[],this._messageCenter=new t,this._messageCenterOutSide=new t,this.resize=this.resize(),this._init()}function n(e,t,i,n,a){for(var o=e._chartList,r=o.length;r--;){var s=o[r];"function"==typeof s[t]&&s[t](i,n,a)}}var a=e("./config"),o=e("zrender/tool/util"),r=e("zrender/tool/event"),s={},l=e("zrender/tool/env").canvasSupported,h=new Date-0,m={},V="_echarts_instance_";s.version="2.2.7",s.dependencies={zrender:"2.1.1"},s.init=function(t,n){var a=e("zrender");a.version.replace(".","")-0<s.dependencies.zrender.replace(".","")-0&&console.error("ZRender "+a.version+" is too old for ECharts "+s.version+". Current version need ZRender "+s.dependencies.zrender+"+"),t=t instanceof Array?t[0]:t;var o=t.getAttribute(V);return o||(o=h++,t.setAttribute(V,o)),m[o]&&m[o].dispose(),m[o]=new i(t),m[o].id=o,m[o].canvasSupported=l,m[o].setTheme(n),m[o]},s.getInstanceById=function(e){return m[e]},o.merge(t.prototype,r.Dispatcher.prototype,!0);var U=e("zrender/config").EVENT,d=["CLICK","DBLCLICK","MOUSEOVER","MOUSEOUT","DRAGSTART","DRAGEND","DRAGENTER","DRAGOVER","DRAGLEAVE","DROP"];return i.prototype={_init:function(){var t=this,i=e("zrender").init(this.dom);this._zr=i,this._messageCenter.dispatch=function(e,i,n,a){n=n||{},n.type=e,n.event=i,t._messageCenter.dispatchWithContext(e,n,a),t._messageCenterOutSide.dispatchWithContext(e,n,a)},this._onevent=function(e){return t.__onevent(e)};for(var n in a.EVENT)"CLICK"!=n&&"DBLCLICK"!=n&&"HOVER"!=n&&"MOUSEOUT"!=n&&"MAP_ROAM"!=n&&this._messageCenter.bind(a.EVENT[n],this._onevent,this);var o={};this._onzrevent=function(e){return t[o[e.type]](e)};for(var r=0,s=d.length;s>r;r++){var l=d[r],h=U[l];o[h]="_on"+l.toLowerCase(),i.on(h,this._onzrevent)}this.chart={},this.component={};var m=e("./chart/island");this._island=new m(this._themeConfig,this._messageCenter,i,{},this),this.chart.island=this._island;var V=e("./component/toolbox");this._toolbox=new V(this._themeConfig,this._messageCenter,i,{},this),this.component.toolbox=this._toolbox;var p=e("./component");p.define("title",e("./component/title")),p.define("tooltip",e("./component/tooltip")),p.define("legend",e("./component/legend")),(0===i.getWidth()||0===i.getHeight())&&console.error("Dom’s width & height should be ready before init.")},__onevent:function(e){e.__echartsId=e.__echartsId||this.id;var t=e.__echartsId===this.id;switch(this._curEventType||(this._curEventType=e.type),e.type){case a.EVENT.LEGEND_SELECTED:this._onlegendSelected(e);break;case a.EVENT.DATA_ZOOM:if(!t){var i=this.component.dataZoom;i&&(i.silence(!0),i.absoluteZoom(e.zoom),i.silence(!1))}this._ondataZoom(e);break;case a.EVENT.DATA_RANGE:t&&this._ondataRange(e);break;case a.EVENT.MAGIC_TYPE_CHANGED:if(!t){var n=this.component.toolbox;n&&(n.silence(!0),n.setMagicType(e.magicType),n.silence(!1))}this._onmagicTypeChanged(e);break;case a.EVENT.DATA_VIEW_CHANGED:t&&this._ondataViewChanged(e);break;case a.EVENT.TOOLTIP_HOVER:t&&this._tooltipHover(e);break;case a.EVENT.RESTORE:this._onrestore();break;case a.EVENT.REFRESH:t&&this._onrefresh(e);break;case a.EVENT.TOOLTIP_IN_GRID:case a.EVENT.TOOLTIP_OUT_GRID:if(t){if(this._connected){var o=this.component.grid;o&&(e.x=(e.event.zrenderX-o.getX())/o.getWidth(),e.y=(e.event.zrenderY-o.getY())/o.getHeight())}}else{var o=this.component.grid;o&&this._zr.trigger("mousemove",{connectTrigger:!0,zrenderX:o.getX()+e.x*o.getWidth(),zrenderY:o.getY()+e.y*o.getHeight()})}}if(this._connected&&t&&this._curEventType===e.type){for(var r in this._connected)this._connected[r].connectedEventHandler(e);this._curEventType=null}(!t||!this._connected&&t)&&(this._curEventType=null)},_onclick:function(e){if(n(this,"onclick",e),e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.CLICK,e.event,t,this)}},_ondblclick:function(e){if(n(this,"ondblclick",e),e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.DBLCLICK,e.event,t,this)}},_onmouseover:function(e){if(e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.HOVER,e.event,t,this)}},_onmouseout:function(e){if(e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.MOUSEOUT,e.event,t,this)}},_ondragstart:function(e){this._status={dragIn:!1,dragOut:!1,needRefresh:!1},n(this,"ondragstart",e)},_ondragenter:function(e){n(this,"ondragenter",e)},_ondragover:function(e){n(this,"ondragover",e)},_ondragleave:function(e){n(this,"ondragleave",e)},_ondrop:function(e){n(this,"ondrop",e,this._status),this._island.ondrop(e,this._status)},_ondragend:function(e){if(n(this,"ondragend",e,this._status),this._timeline&&this._timeline.ondragend(e,this._status),this._island.ondragend(e,this._status),this._status.needRefresh){this._syncBackupData(this._option);var t=this._messageCenter;t.dispatch(a.EVENT.DATA_CHANGED,e.event,this._eventPackage(e.target),this),t.dispatch(a.EVENT.REFRESH,null,null,this)}},_onlegendSelected:function(e){this._status.needRefresh=!1,n(this,"onlegendSelected",e,this._status),this._status.needRefresh&&this._messageCenter.dispatch(a.EVENT.REFRESH,null,null,this)},_ondataZoom:function(e){this._status.needRefresh=!1,n(this,"ondataZoom",e,this._status),this._status.needRefresh&&this._messageCenter.dispatch(a.EVENT.REFRESH,null,null,this)},_ondataRange:function(e){this._clearEffect(),this._status.needRefresh=!1,n(this,"ondataRange",e,this._status),this._status.needRefresh&&this._zr.refreshNextFrame()},_onmagicTypeChanged:function(){this._clearEffect(),this._render(this._toolbox.getMagicOption())},_ondataViewChanged:function(e){this._syncBackupData(e.option),this._messageCenter.dispatch(a.EVENT.DATA_CHANGED,null,e,this),this._messageCenter.dispatch(a.EVENT.REFRESH,null,null,this)},_tooltipHover:function(e){var t=[];n(this,"ontooltipHover",e,t)},_onrestore:function(){this.restore()},_onrefresh:function(e){this._refreshInside=!0,this.refresh(e),this._refreshInside=!1},_syncBackupData:function(e){this.component.dataZoom&&this.component.dataZoom.syncBackupData(e)},_eventPackage:function(t){if(t){var i=e("./util/ecData"),n=i.get(t,"seriesIndex"),a=i.get(t,"dataIndex");return a=-1!=n&&this.component.dataZoom?this.component.dataZoom.getRealDataIndex(n,a):a,{seriesIndex:n,seriesName:(i.get(t,"series")||{}).name,dataIndex:a,data:i.get(t,"data"),name:i.get(t,"name"),value:i.get(t,"value"),special:i.get(t,"special")}}},_noDataCheck:function(e){for(var t=e.series,i=0,n=t.length;n>i;i++)if(t[i].type==a.CHART_TYPE_MAP||t[i].data&&t[i].data.length>0||t[i].markPoint&&t[i].markPoint.data&&t[i].markPoint.data.length>0||t[i].markLine&&t[i].markLine.data&&t[i].markLine.data.length>0||t[i].nodes&&t[i].nodes.length>0||t[i].links&&t[i].links.length>0||t[i].matrix&&t[i].matrix.length>0||t[i].eventList&&t[i].eventList.length>0)return!1;var o=this._option&&this._option.noDataLoadingOption||this._themeConfig.noDataLoadingOption||a.noDataLoadingOption||{text:this._option&&this._option.noDataText||this._themeConfig.noDataText||a.noDataText,effect:this._option&&this._option.noDataEffect||this._themeConfig.noDataEffect||a.noDataEffect};return this.clear(),this.showLoading(o),!0},_render:function(t){if(this._mergeGlobalConifg(t),!this._noDataCheck(t)){var i=t.backgroundColor;if(i)if(l||-1==i.indexOf("rgba"))this.dom.style.backgroundColor=i;else{var n=i.split(",");this.dom.style.filter="alpha(opacity="+100*n[3].substring(0,n[3].lastIndexOf(")"))+")",n.length=3,n[0]=n[0].replace("a",""),this.dom.style.backgroundColor=n.join(",")+")"}this._zr.clearAnimation(),this._chartList=[];var o=e("./chart"),r=e("./component");(t.xAxis||t.yAxis)&&(t.grid=t.grid||{},t.dataZoom=t.dataZoom||{});for(var s,h,m,V=["title","legend","tooltip","dataRange","roamController","grid","dataZoom","xAxis","yAxis","polar"],U=0,d=V.length;d>U;U++)h=V[U],m=this.component[h],t[h]?(m?m.refresh&&m.refresh(t):(s=r.get(/^[xy]Axis$/.test(h)?"axis":h),m=new s(this._themeConfig,this._messageCenter,this._zr,t,this,h),this.component[h]=m),this._chartList.push(m)):m&&(m.dispose(),this.component[h]=null,delete this.component[h]);for(var p,c,u,y={},U=0,d=t.series.length;d>U;U++)c=t.series[U].type,c?y[c]||(y[c]=!0,p=o.get(c),p?(this.chart[c]?(u=this.chart[c],u.refresh(t)):u=new p(this._themeConfig,this._messageCenter,this._zr,t,this),this._chartList.push(u),this.chart[c]=u):console.error(c+" has not been required.")):console.error("series["+U+"] chart type has not been defined.");for(c in this.chart)c==a.CHART_TYPE_ISLAND||y[c]||(this.chart[c].dispose(),this.chart[c]=null,delete this.chart[c]);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._island.refresh(t),this._toolbox.refresh(t),t.animation&&!t.renderAsImage?this._zr.refresh():this._zr.render();var g="IMG"+this.id,b=document.getElementById(g);t.renderAsImage&&l?(b?b.src=this.getDataURL(t.renderAsImage):(b=this.getImage(t.renderAsImage),b.id=g,b.style.position="absolute",b.style.left=0,b.style.top=0,this.dom.firstChild.appendChild(b)),this.un(),this._zr.un(),this._disposeChartList(),this._zr.clear()):b&&b.parentNode.removeChild(b),b=null,this._option=t}},restore:function(){this._clearEffect(),this._option=o.clone(this._optionRestore),this._disposeChartList(),this._island.clear(),this._toolbox.reset(this._option,!0),this._render(this._option)},refresh:function(e){this._clearEffect(),e=e||{};var t=e.option;!this._refreshInside&&t&&(t=this.getOption(),o.merge(t,e.option,!0),o.merge(this._optionRestore,e.option,!0),this._toolbox.reset(t)),this._island.refresh(t),this._toolbox.refresh(t),this._zr.clearAnimation();for(var i=0,n=this._chartList.length;n>i;i++)this._chartList[i].refresh&&this._chartList[i].refresh(t);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._zr.refresh()},_disposeChartList:function(){this._clearEffect(),this._zr.clearAnimation();for(var e=this._chartList.length;e--;){var t=this._chartList[e];if(t){var i=t.type;this.chart[i]&&delete this.chart[i],this.component[i]&&delete this.component[i],t.dispose&&t.dispose()}}this._chartList=[]},_mergeGlobalConifg:function(t){for(var i=["backgroundColor","calculable","calculableColor","calculableHolderColor","nameConnector","valueConnector","animation","animationThreshold","animationDuration","animationDurationUpdate","animationEasing","addDataAnimation","symbolList","DRAG_ENABLE_TIME"],n=i.length;n--;){var o=i[n];null==t[o]&&(t[o]=null!=this._themeConfig[o]?this._themeConfig[o]:a[o])}var r=t.color;r&&r.length||(r=this._themeConfig.color||a.color),this._zr.getColor=function(t){var i=e("zrender/tool/color");return i.getColor(t,r)},l||(t.animation=!1,t.addDataAnimation=!1)},setOption:function(e,t){return e.timeline?this._setTimelineOption(e):this._setOption(e,t)},_setOption:function(e,t,i){return!t&&this._option?this._option=o.merge(this.getOption(),o.clone(e),!0):(this._option=o.clone(e),!i&&this._timeline&&this._timeline.dispose()),this._optionRestore=o.clone(this._option),this._option.series&&0!==this._option.series.length?(this.component.dataZoom&&(this._option.dataZoom||this._option.toolbox&&this._option.toolbox.feature&&this._option.toolbox.feature.dataZoom&&this._option.toolbox.feature.dataZoom.show)&&this.component.dataZoom.syncOption(this._option),this._toolbox.reset(this._option),this._render(this._option),this):void this._zr.clear()},getOption:function(){function e(e){var n=i._optionRestore[e];if(n)if(n instanceof Array)for(var a=n.length;a--;)t[e][a].data=o.clone(n[a].data);else t[e].data=o.clone(n.data)}var t=o.clone(this._option),i=this;return e("xAxis"),e("yAxis"),e("series"),t},setSeries:function(e,t){return t?(this._option.series=e,this.setOption(this._option,t)):this.setOption({series:e}),this},getSeries:function(){return this.getOption().series},_setTimelineOption:function(t){this._timeline&&this._timeline.dispose();var i=e("./component/timeline"),n=new i(this._themeConfig,this._messageCenter,this._zr,t,this);return this._timeline=n,this.component.timeline=this._timeline,this},addData:function(e,t,i,n,r){function s(){if(V._zr){V._zr.clearAnimation();for(var e=0,t=X.length;t>e;e++)X[e].motionlessOnce=h.addDataAnimation&&X[e].addDataAnimation;V._messageCenter.dispatch(a.EVENT.REFRESH,null,{option:h},V)}}for(var l=e instanceof Array?e:[[e,t,i,n,r]],h=this.getOption(),m=this._optionRestore,V=this,U=0,d=l.length;d>U;U++){e=l[U][0],t=l[U][1],i=l[U][2],n=l[U][3],r=l[U][4];var p=m.series[e],c=i?"unshift":"push",u=i?"pop":"shift";if(p){var y=p.data,g=h.series[e].data;if(y[c](t),g[c](t),n||(y[u](),t=g[u]()),null!=r){var b,f;if(p.type===a.CHART_TYPE_PIE&&(b=m.legend)&&(f=b.data)){var k=h.legend.data;if(f[c](r),k[c](r),!n){var x=o.indexOf(f,t.name);-1!=x&&f.splice(x,1),x=o.indexOf(k,t.name),-1!=x&&k.splice(x,1)}}else if(null!=m.xAxis&&null!=m.yAxis){var _,L,W=p.xAxisIndex||0;(null==m.xAxis[W].type||"category"===m.xAxis[W].type)&&(_=m.xAxis[W].data,L=h.xAxis[W].data,_[c](r),L[c](r),n||(_[u](),L[u]())),W=p.yAxisIndex||0,"category"===m.yAxis[W].type&&(_=m.yAxis[W].data,L=h.yAxis[W].data,_[c](r),L[c](r),n||(_[u](),L[u]()))}}this._option.series[e].data=h.series[e].data}}this._zr.clearAnimation();for(var X=this._chartList,v=0,w=function(){v--,0===v&&s()},U=0,d=X.length;d>U;U++)h.addDataAnimation&&X[U].addDataAnimation&&(v++,X[U].addDataAnimation(l,w));return this.component.dataZoom&&this.component.dataZoom.syncOption(h),this._option=h,h.addDataAnimation||setTimeout(s,0),this},addMarkPoint:function(e,t){return this._addMark(e,t,"markPoint")},addMarkLine:function(e,t){return this._addMark(e,t,"markLine")},_addMark:function(e,t,i){var n,a=this._option.series;if(a&&(n=a[e])){var r=this._optionRestore.series,s=r[e],l=n[i],h=s[i];l=n[i]=l||{data:[]},h=s[i]=h||{data:[]};for(var m in t)"data"===m?(l.data=l.data.concat(t.data),h.data=h.data.concat(t.data)):"object"!=typeof t[m]||null==l[m]?l[m]=h[m]=t[m]:(o.merge(l[m],t[m],!0),o.merge(h[m],t[m],!0));var V=this.chart[n.type];V&&V.addMark(e,t,i)}return this},delMarkPoint:function(e,t){return this._delMark(e,t,"markPoint")},delMarkLine:function(e,t){return this._delMark(e,t,"markLine")},_delMark:function(e,t,i){var n,a,o,r=this._option.series;if(!(r&&(n=r[e])&&(a=n[i])&&(o=a.data)))return this;t=t.split(" > ");for(var s=-1,l=0,h=o.length;h>l;l++){var m=o[l];if(m instanceof Array){if(m[0].name===t[0]&&m[1].name===t[1]){s=l;break}}else if(m.name===t[0]){s=l;break}}if(s>-1){o.splice(s,1),this._optionRestore.series[e][i].data.splice(s,1);var V=this.chart[n.type];V&&V.delMark(e,t.join(" > "),i)}return this},getDom:function(){return this.dom},getZrender:function(){return this._zr},getDataURL:function(e){if(!l)return"";if(0===this._chartList.length){var t="IMG"+this.id,i=document.getElementById(t);if(i)return i.src}var n=this.component.tooltip;switch(n&&n.hideTip(),e){case"jpeg":break;default:e="png"}var a=this._option.backgroundColor;return a&&"rgba(0,0,0,0)"===a.replace(" ","")&&(a="#fff"),this._zr.toDataURL("image/"+e,a)},getImage:function(e){var t=this._optionRestore.title,i=document.createElement("img");return i.src=this.getDataURL(e),i.title=t&&t.text||"ECharts",i},getConnectedDataURL:function(t){if(!this.isConnected())return this.getDataURL(t);var i=this.dom,n={self:{img:this.getDataURL(t),left:i.offsetLeft,top:i.offsetTop,right:i.offsetLeft+i.offsetWidth,bottom:i.offsetTop+i.offsetHeight}},a=n.self.left,o=n.self.top,r=n.self.right,s=n.self.bottom;for(var l in this._connected)i=this._connected[l].getDom(),n[l]={img:this._connected[l].getDataURL(t),left:i.offsetLeft,top:i.offsetTop,right:i.offsetLeft+i.offsetWidth,bottom:i.offsetTop+i.offsetHeight},a=Math.min(a,n[l].left),o=Math.min(o,n[l].top),r=Math.max(r,n[l].right),s=Math.max(s,n[l].bottom);var h=document.createElement("div");h.style.position="absolute",h.style.left="-4000px",h.style.width=r-a+"px",h.style.height=s-o+"px",document.body.appendChild(h);var m=e("zrender").init(h),V=e("zrender/shape/Image");for(var l in n)m.addShape(new V({style:{x:n[l].left-a,y:n[l].top-o,image:n[l].img}}));m.render();var U=this._option.backgroundColor;U&&"rgba(0,0,0,0)"===U.replace(/ /g,"")&&(U="#fff");var d=m.toDataURL("image/png",U);return setTimeout(function(){m.dispose(),h.parentNode.removeChild(h),h=null},100),d},getConnectedImage:function(e){var t=this._optionRestore.title,i=document.createElement("img");return i.src=this.getConnectedDataURL(e),i.title=t&&t.text||"ECharts",i},on:function(e,t){return this._messageCenterOutSide.bind(e,t,this),this},un:function(e,t){return this._messageCenterOutSide.unbind(e,t),this},connect:function(e){if(!e)return this;if(this._connected||(this._connected={}),e instanceof Array)for(var t=0,i=e.length;i>t;t++)this._connected[e[t].id]=e[t];else this._connected[e.id]=e;return this},disConnect:function(e){if(!e||!this._connected)return this;if(e instanceof Array)for(var t=0,i=e.length;i>t;t++)delete this._connected[e[t].id];else delete this._connected[e.id];for(var n in this._connected)return this;return this._connected=!1,this},connectedEventHandler:function(e){e.__echartsId!=this.id&&this._onevent(e)},isConnected:function(){return!!this._connected},showLoading:function(t){var i={bar:e("zrender/loadingEffect/Bar"),bubble:e("zrender/loadingEffect/Bubble"),dynamicLine:e("zrender/loadingEffect/DynamicLine"),ring:e("zrender/loadingEffect/Ring"),spin:e("zrender/loadingEffect/Spin"),whirling:e("zrender/loadingEffect/Whirling")};this._toolbox.hideDataView(),t=t||{};var n=t.textStyle||{};t.textStyle=n;var r=o.merge(o.merge(o.clone(n),this._themeConfig.textStyle),a.textStyle);n.textFont=r.fontStyle+" "+r.fontWeight+" "+r.fontSize+"px "+r.fontFamily,n.text=t.text||this._option&&this._option.loadingText||this._themeConfig.loadingText||a.loadingText,null!=t.x&&(n.x=t.x),null!=t.y&&(n.y=t.y),t.effectOption=t.effectOption||{},t.effectOption.textStyle=n;var s=t.effect;return("string"==typeof s||null==s)&&(s=i[t.effect||this._option&&this._option.loadingEffect||this._themeConfig.loadingEffect||a.loadingEffect]||i.spin),this._zr.showLoading(new s(t.effectOption)),this},hideLoading:function(){return this._zr.hideLoading(),this},setTheme:function(t){if(t){if("string"==typeof t)switch(t){case"macarons":t=e("./theme/macarons");break;case"infographic":t=e("./theme/infographic");break;default:t={}}else t=t||{};this._themeConfig=t}if(!l){var i=this._themeConfig.textStyle;i&&i.fontFamily&&i.fontFamily2&&(i.fontFamily=i.fontFamily2),i=a.textStyle,i.fontFamily=i.fontFamily2}this._timeline&&this._timeline.setTheme(!0),this._optionRestore&&this.restore()},resize:function(){var e=this;return function(){if(e._clearEffect(),e._zr.resize(),e._option&&e._option.renderAsImage&&l)return e._render(e._option),e;e._zr.clearAnimation(),e._island.resize(),e._toolbox.resize(),e._timeline&&e._timeline.resize();for(var t=0,i=e._chartList.length;i>t;t++)e._chartList[t].resize&&e._chartList[t].resize();return e.component.grid&&e.component.grid.refixAxisShape(e.component),e._zr.refresh(),e._messageCenter.dispatch(a.EVENT.RESIZE,null,null,e),e}},_clearEffect:function(){this._zr.modLayer(a.EFFECT_ZLEVEL,{motionBlur:!1}),this._zr.painter.clearLayer(a.EFFECT_ZLEVEL)},clear:function(){return this._disposeChartList(),this._zr.clear(),this._option={},this._optionRestore={},this.dom.style.backgroundColor=null,this},dispose:function(){var e=this.dom.getAttribute(V);e&&delete m[e],this._island.dispose(),this._toolbox.dispose(),this._timeline&&this._timeline.dispose(),this._messageCenter.unbind(),this.clear(),this._zr.dispose(),this._zr=null}},s}),i("echarts/config",[],function(){var e={CHART_TYPE_LINE:"line",CHART_TYPE_BAR:"bar",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_PIE:"pie",CHART_TYPE_RADAR:"radar",CHART_TYPE_VENN:"venn",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_TREE:"tree",CHART_TYPE_MAP:"map",CHART_TYPE_K:"k",CHART_TYPE_ISLAND:"island",CHART_TYPE_FORCE:"force",CHART_TYPE_CHORD:"chord",CHART_TYPE_GAUGE:"gauge",CHART_TYPE_FUNNEL:"funnel",CHART_TYPE_EVENTRIVER:"eventRiver",CHART_TYPE_WORDCLOUD:"wordCloud",CHART_TYPE_HEATMAP:"heatmap",COMPONENT_TYPE_TITLE:"title",COMPONENT_TYPE_LEGEND:"legend",COMPONENT_TYPE_DATARANGE:"dataRange",COMPONENT_TYPE_DATAVIEW:"dataView",COMPONENT_TYPE_DATAZOOM:"dataZoom",COMPONENT_TYPE_TOOLBOX:"toolbox",COMPONENT_TYPE_TOOLTIP:"tooltip",COMPONENT_TYPE_GRID:"grid",COMPONENT_TYPE_AXIS:"axis",COMPONENT_TYPE_POLAR:"polar",COMPONENT_TYPE_X_AXIS:"xAxis",COMPONENT_TYPE_Y_AXIS:"yAxis",COMPONENT_TYPE_AXIS_CATEGORY:"categoryAxis",COMPONENT_TYPE_AXIS_VALUE:"valueAxis",COMPONENT_TYPE_TIMELINE:"timeline",COMPONENT_TYPE_ROAMCONTROLLER:"roamController",backgroundColor:"rgba(0,0,0,0)",color:["#ff7f50","#87cefa","#da70d6","#32cd32","#6495ed","#ff69b4","#ba55d3","#cd5c5c","#ffa500","#40e0d0","#1e90ff","#ff6347","#7b68ee","#00fa9a","#ffd700","#6699FF","#ff6666","#3cb371","#b8860b","#30e0e0"],markPoint:{clickable:!0,symbol:"pin",symbolSize:10,large:!1,effect:{show:!1,loop:!0,period:15,type:"scale",scaleSize:2,bounceDistance:10},itemStyle:{normal:{borderWidth:2,label:{show:!0,position:"inside"}},emphasis:{label:{show:!0}}}},markLine:{clickable:!0,symbol:["circle","arrow"],symbolSize:[2,4],smoothness:.2,precision:2,effect:{show:!1,loop:!0,period:15,scaleSize:2},bundling:{enable:!1,maxTurningAngle:45},itemStyle:{normal:{borderWidth:1.5,label:{show:!0,position:"end"},lineStyle:{type:"dashed"}},emphasis:{label:{show:!1},lineStyle:{}}}},textStyle:{decoration:"none",fontFamily:"Arial, Verdana, sans-serif",fontFamily2:"微软雅黑",fontSize:12,fontStyle:"normal",fontWeight:"normal"},EVENT:{REFRESH:"refresh",RESTORE:"restore",RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",MOUSEOUT:"mouseout",DATA_CHANGED:"dataChanged",DATA_ZOOM:"dataZoom",DATA_RANGE:"dataRange",DATA_RANGE_SELECTED:"dataRangeSelected",DATA_RANGE_HOVERLINK:"dataRangeHoverLink",LEGEND_SELECTED:"legendSelected",LEGEND_HOVERLINK:"legendHoverLink",MAP_SELECTED:"mapSelected",PIE_SELECTED:"pieSelected",MAGIC_TYPE_CHANGED:"magicTypeChanged",DATA_VIEW_CHANGED:"dataViewChanged",TIMELINE_CHANGED:"timelineChanged",MAP_ROAM:"mapRoam",FORCE_LAYOUT_END:"forceLayoutEnd",TOOLTIP_HOVER:"tooltipHover",TOOLTIP_IN_GRID:"tooltipInGrid",TOOLTIP_OUT_GRID:"tooltipOutGrid",ROAMCONTROLLER:"roamController"},DRAG_ENABLE_TIME:120,EFFECT_ZLEVEL:10,effectBlendAlpha:.95,symbolList:["circle","rectangle","triangle","diamond","emptyCircle","emptyRectangle","emptyTriangle","emptyDiamond"],loadingEffect:"spin",loadingText:"数据读取中...",noDataEffect:"bubble",noDataText:"暂无数据",calculable:!1,calculableColor:"rgba(255,165,0,0.6)",calculableHolderColor:"#ccc",nameConnector:" & ",valueConnector:": ",animation:!0,addDataAnimation:!0,animationThreshold:2e3,animationDuration:2e3,animationDurationUpdate:500,animationEasing:"ExponentialOut"};return e}),i("zrender/tool/util",["require","../dep/excanvas"],function(e){function t(e){return e&&1===e.nodeType&&"string"==typeof e.nodeName}function i(e){if("object"==typeof e&&null!==e){var n=e;if(e instanceof Array){n=[];for(var a=0,o=e.length;o>a;a++)n[a]=i(e[a])}else if(!y[g.call(e)]&&!t(e)){n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=i(e[r]))}return n}return e}function n(e,i,n,o){if(i.hasOwnProperty(n)){var r=e[n];"object"!=typeof r||y[g.call(r)]||t(r)?!o&&n in e||(e[n]=i[n]):a(e[n],i[n],o)}}function a(e,t,i){for(var a in t)n(e,t,a,i);return e}function o(){if(!U)if(e("../dep/excanvas"),window.G_vmlCanvasManager){var t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",document.body.appendChild(t),U=G_vmlCanvasManager.initElement(t).getContext("2d")}else U=document.createElement("canvas").getContext("2d");return U}function r(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1}function s(e,t){function i(){}var n=e.prototype;i.prototype=t.prototype,e.prototype=new i;for(var a in n)e.prototype[a]=n[a];e.constructor=e}function l(e,t,i){if(e&&t)if(e.forEach&&e.forEach===p)e.forEach(t,i);else if(e.length===+e.length)for(var n=0,a=e.length;a>n;n++)t.call(i,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e)}function h(e,t,i){if(e&&t){if(e.map&&e.map===c)return e.map(t,i);for(var n=[],a=0,o=e.length;o>a;a++)n.push(t.call(i,e[a],a,e));return n}}function m(e,t,i){if(e&&t){if(e.filter&&e.filter===u)return e.filter(t,i);for(var n=[],a=0,o=e.length;o>a;a++)t.call(i,e[a],a,e)&&n.push(e[a]);return n}}function V(e,t){return function(){e.apply(t,arguments)}}var U,d=Array.prototype,p=d.forEach,c=d.map,u=d.filter,y={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},g=Object.prototype.toString;return{inherits:s,clone:i,merge:a,getContext:o,indexOf:r,each:l,map:h,filter:m,bind:V}}),i("zrender/tool/event",["require","../mixin/Eventful"],function(e){"use strict";function t(e){return"undefined"!=typeof e.zrenderX&&e.zrenderX||"undefined"!=typeof e.offsetX&&e.offsetX||"undefined"!=typeof e.layerX&&e.layerX||"undefined"!=typeof e.clientX&&e.clientX}function i(e){return"undefined"!=typeof e.zrenderY&&e.zrenderY||"undefined"!=typeof e.offsetY&&e.offsetY||"undefined"!=typeof e.layerY&&e.layerY||"undefined"!=typeof e.clientY&&e.clientY}function n(e){return"undefined"!=typeof e.zrenderDelta&&e.zrenderDelta||"undefined"!=typeof e.wheelDelta&&e.wheelDelta||"undefined"!=typeof e.detail&&-e.detail}var a=e("../mixin/Eventful"),o="function"==typeof window.addEventListener?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};return{getX:t,getY:i,getDelta:n,stop:o,Dispatcher:a}}),i("zrender/tool/env",[],function(){function e(e){var t=this.os={},i=this.browser={},n=e.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=e.match(/(Android);?[\s\/]+([\d.]+)?/),o=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!o&&e.match(/(iPhone\sOS)\s([\d_]+)/),l=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=l&&e.match(/TouchPad/),m=e.match(/Kindle\/([\d.]+)/),V=e.match(/Silk\/([\d._]+)/),U=e.match(/(BlackBerry).*Version\/([\d.]+)/),d=e.match(/(BB10).*Version\/([\d.]+)/),p=e.match(/(RIM\sTablet\sOS)\s([\d.]+)/),c=e.match(/PlayBook/),u=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),y=e.match(/Firefox\/([\d.]+)/),g=e.match(/MSIE ([\d.]+)/),b=n&&e.match(/Mobile\//)&&!u,f=e.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!u,g=e.match(/MSIE\s([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),a&&(t.android=!0,t.version=a[2]),s&&!r&&(t.ios=t.iphone=!0,t.version=s[2].replace(/_/g,".")),o&&(t.ios=t.ipad=!0,t.version=o[2].replace(/_/g,".")),r&&(t.ios=t.ipod=!0,t.version=r[3]?r[3].replace(/_/g,"."):null),l&&(t.webos=!0,t.version=l[2]),h&&(t.touchpad=!0),U&&(t.blackberry=!0,t.version=U[2]),d&&(t.bb10=!0,t.version=d[2]),p&&(t.rimtabletos=!0,t.version=p[2]),c&&(i.playbook=!0),m&&(t.kindle=!0,t.version=m[1]),V&&(i.silk=!0,i.version=V[1]),!V&&t.android&&e.match(/Kindle Fire/)&&(i.silk=!0),u&&(i.chrome=!0,i.version=u[1]),y&&(i.firefox=!0,i.version=y[1]),g&&(i.ie=!0,i.version=g[1]),b&&(e.match(/Safari/)||t.ios)&&(i.safari=!0),f&&(i.webview=!0),g&&(i.ie=!0,i.version=g[1]),t.tablet=!!(o||c||a&&!e.match(/Mobile/)||y&&e.match(/Tablet/)||g&&!e.match(/Phone/)&&e.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(a||s||l||U||d||u&&e.match(/Android/)||u&&e.match(/CriOS\/([\d.]+)/)||y&&e.match(/Mobile/)||g&&e.match(/Touch/))),{browser:i,os:t,canvasSupported:document.createElement("canvas").getContext?!0:!1}}return e(navigator.userAgent)}),i("zrender",["zrender/zrender"],function(e){return e}),i("zrender/zrender",["require","./dep/excanvas","./tool/util","./tool/log","./tool/guid","./Handler","./Painter","./Storage","./animation/Animation","./tool/env"],function(e){function t(e){return function(){e._needsRefreshNextFrame&&e.refresh()}}e("./dep/excanvas");var i=e("./tool/util"),n=e("./tool/log"),a=e("./tool/guid"),o=e("./Handler"),r=e("./Painter"),s=e("./Storage"),l=e("./animation/Animation"),h={},m={};m.version="2.1.1",m.init=function(e){var t=new V(a(),e);return h[t.id]=t,t},m.dispose=function(e){if(e)e.dispose();else{for(var t in h)h[t].dispose();h={}}return m},m.getInstance=function(e){return h[e]},m.delInstance=function(e){return delete h[e],m};var V=function(i,n){this.id=i,this.env=e("./tool/env"),this.storage=new s,this.painter=new r(n,this.storage),this.handler=new o(n,this.storage,this.painter),this.animation=new l({stage:{update:t(this)}}),this.animation.start();var a=this;this.painter.refreshNextFrame=function(){a.refreshNextFrame()},this._needsRefreshNextFrame=!1;var a=this,h=this.storage,m=h.delFromMap;h.delFromMap=function(e){var t=h.get(e);a.stopAnimation(t),m.call(h,e)}};return V.prototype.getId=function(){return this.id},V.prototype.addShape=function(e){return this.addElement(e),this},V.prototype.addGroup=function(e){return this.addElement(e),this},V.prototype.delShape=function(e){return this.delElement(e),this},V.prototype.delGroup=function(e){return this.delElement(e),this},V.prototype.modShape=function(e,t){return this.modElement(e,t),this},V.prototype.modGroup=function(e,t){return this.modElement(e,t),this},V.prototype.addElement=function(e){return this.storage.addRoot(e),this._needsRefreshNextFrame=!0,this},V.prototype.delElement=function(e){return this.storage.delRoot(e),this._needsRefreshNextFrame=!0,this},V.prototype.modElement=function(e,t){return this.storage.mod(e,t),this._needsRefreshNextFrame=!0,this},V.prototype.modLayer=function(e,t){return this.painter.modLayer(e,t),this._needsRefreshNextFrame=!0,this},V.prototype.addHoverShape=function(e){return this.storage.addHover(e),this},V.prototype.render=function(e){return this.painter.render(e),this._needsRefreshNextFrame=!1,this},V.prototype.refresh=function(e){return this.painter.refresh(e),this._needsRefreshNextFrame=!1,this},V.prototype.refreshNextFrame=function(){return this._needsRefreshNextFrame=!0,this},V.prototype.refreshHover=function(e){return this.painter.refreshHover(e),this},V.prototype.refreshShapes=function(e,t){return this.painter.refreshShapes(e,t),this},V.prototype.resize=function(){return this.painter.resize(),this},V.prototype.animate=function(e,t,a){var o=this;if("string"==typeof e&&(e=this.storage.get(e)),e){var r;if(t){for(var s=t.split("."),l=e,h=0,m=s.length;m>h;h++)l&&(l=l[s[h]]);l&&(r=l)}else r=e;if(!r)return void n('Property "'+t+'" is not existed in element '+e.id);
    +
    +null==e.__animators&&(e.__animators=[]);var V=e.__animators,U=this.animation.animate(r,{loop:a}).during(function(){o.modShape(e)}).done(function(){var t=i.indexOf(e.__animators,U);t>=0&&V.splice(t,1)});return V.push(U),U}n("Element not existed")},V.prototype.stopAnimation=function(e){if(e.__animators){for(var t=e.__animators,i=t.length,n=0;i>n;n++)t[n].stop();t.length=0}return this},V.prototype.clearAnimation=function(){return this.animation.clear(),this},V.prototype.showLoading=function(e){return this.painter.showLoading(e),this},V.prototype.hideLoading=function(){return this.painter.hideLoading(),this},V.prototype.getWidth=function(){return this.painter.getWidth()},V.prototype.getHeight=function(){return this.painter.getHeight()},V.prototype.toDataURL=function(e,t,i){return this.painter.toDataURL(e,t,i)},V.prototype.shapeToImage=function(e,t,i){var n=a();return this.painter.shapeToImage(n,e,t,i)},V.prototype.on=function(e,t,i){return this.handler.on(e,t,i),this},V.prototype.un=function(e,t){return this.handler.un(e,t),this},V.prototype.trigger=function(e,t){return this.handler.trigger(e,t),this},V.prototype.clear=function(){return this.storage.delRoot(),this.painter.clear(),this},V.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,m.delInstance(this.id)},m}),i("zrender/config",[],function(){var e={EVENT:{RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300},elementClassName:"zr-element",catchBrushException:!1,debugMode:0,devicePixelRatio:Math.max(window.devicePixelRatio||1,1)};return e}),i("echarts/chart/island",["require","./base","zrender/shape/Circle","../config","../util/ecData","zrender/tool/util","zrender/tool/event","zrender/tool/color","../util/accMath","../chart"],function(e){function t(e,t,n,a,r){i.call(this,e,t,n,a,r),this._nameConnector,this._valueConnector,this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth();var l=this;l.shapeHandler.onmousewheel=function(e){var t=e.target,i=e.event,n=s.getDelta(i);n=n>0?-1:1,t.style.r-=n,t.style.r=t.style.r<5?5:t.style.r;var a=o.get(t,"value"),r=a*l.option.island.calculateStep;a=r>1?Math.round(a-r*n):+(a-r*n).toFixed(2);var h=o.get(t,"name");t.style.text=h+":"+a,o.set(t,"value",a),o.set(t,"name",h),l.zr.modShape(t.id),l.zr.refreshNextFrame(),s.stop(i)}}var i=e("./base"),n=e("zrender/shape/Circle"),a=e("../config");a.island={zlevel:0,z:5,r:15,calculateStep:.1};var o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/event");return t.prototype={type:a.CHART_TYPE_ISLAND,_combine:function(t,i){var n=e("zrender/tool/color"),a=e("../util/accMath"),r=a.accAdd(o.get(t,"value"),o.get(i,"value")),s=o.get(t,"name")+this._nameConnector+o.get(i,"name");t.style.text=s+this._valueConnector+r,o.set(t,"value",r),o.set(t,"name",s),t.style.r=this.option.island.r,t.style.color=n.mix(t.style.color,i.style.color)},refresh:function(e){e&&(e.island=this.reformOption(e.island),this.option=e,this._nameConnector=this.option.nameConnector,this._valueConnector=this.option.valueConnector)},getOption:function(){return this.option},resize:function(){var e=this.zr.getWidth(),t=this.zr.getHeight(),i=e/(this._zrWidth||e),n=t/(this._zrHeight||t);if(1!==i||1!==n){this._zrWidth=e,this._zrHeight=t;for(var a=0,o=this.shapeList.length;o>a;a++)this.zr.modShape(this.shapeList[a].id,{style:{x:Math.round(this.shapeList[a].style.x*i),y:Math.round(this.shapeList[a].style.y*n)}})}},add:function(e){var t=o.get(e,"name"),i=o.get(e,"value"),a=null!=o.get(e,"series")?o.get(e,"series").name:"",r=this.getFont(this.option.island.textStyle),s=this.option.island,l={zlevel:s.zlevel,z:s.z,style:{x:e.style.x,y:e.style.y,r:this.option.island.r,color:e.style.color||e.style.strokeColor,text:t+this._valueConnector+i,textFont:r},draggable:!0,hoverable:!0,onmousewheel:this.shapeHandler.onmousewheel,_type:"island"};"#fff"===l.style.color&&(l.style.color=e.style.strokeColor),this.setCalculable(l),l.dragEnableTime=0,o.pack(l,{name:a},-1,i,-1,t),l=new n(l),this.shapeList.push(l),this.zr.addShape(l)},del:function(e){this.zr.delShape(e.id);for(var t=[],i=0,n=this.shapeList.length;n>i;i++)this.shapeList[i].id!=e.id&&t.push(this.shapeList[i]);this.shapeList=t},ondrop:function(e,t){if(this.isDrop&&e.target){var i=e.target,n=e.dragged;this._combine(i,n),this.zr.modShape(i.id),t.dragIn=!0,this.isDrop=!1}},ondragend:function(e,t){var i=e.target;this.isDragend?t.dragIn&&(this.del(i),t.needRefresh=!0):t.dragIn||(i.style.x=s.getX(e.event),i.style.y=s.getY(e.event),this.add(i),t.needRefresh=!0),this.isDragend=!1}},r.inherits(t,i),e("../chart").define("island",t),t}),i("echarts/component/toolbox",["require","./base","zrender/shape/Line","zrender/shape/Image","zrender/shape/Rectangle","../util/shape/Icon","../config","zrender/tool/util","zrender/config","zrender/tool/event","./dataView","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.dom=o.dom,this._magicType={},this._magicMap={},this._isSilence=!1,this._iconList,this._iconShapeMap={},this._featureTitle={},this._featureIcon={},this._featureColor={},this._featureOption={},this._enableColor="red",this._disableColor="#ccc",this._markShapeList=[];var r=this;r._onMark=function(e){r.__onMark(e)},r._onMarkUndo=function(e){r.__onMarkUndo(e)},r._onMarkClear=function(e){r.__onMarkClear(e)},r._onDataZoom=function(e){r.__onDataZoom(e)},r._onDataZoomReset=function(e){r.__onDataZoomReset(e)},r._onDataView=function(e){r.__onDataView(e)},r._onRestore=function(e){r.__onRestore(e)},r._onSaveAsImage=function(e){r.__onSaveAsImage(e)},r._onMagicType=function(e){r.__onMagicType(e)},r._onCustomHandler=function(e){r.__onCustomHandler(e)},r._onmousemove=function(e){return r.__onmousemove(e)},r._onmousedown=function(e){return r.__onmousedown(e)},r._onmouseup=function(e){return r.__onmouseup(e)},r._onclick=function(e){return r.__onclick(e)}}var i=e("./base"),n=e("zrender/shape/Line"),a=e("zrender/shape/Image"),o=e("zrender/shape/Rectangle"),r=e("../util/shape/Icon"),s=e("../config");s.toolbox={zlevel:0,z:6,show:!1,orient:"horizontal",x:"right",y:"top",color:["#1e90ff","#22bb22","#4b0082","#d2691e"],disableColor:"#ddd",effectiveColor:"red",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemSize:16,showTitle:!0,feature:{mark:{show:!1,title:{mark:"辅助线开关",markUndo:"删除辅助线",markClear:"清空辅助线"},lineStyle:{width:1,color:"#1e90ff",type:"dashed"}},dataZoom:{show:!1,title:{dataZoom:"区域缩放",dataZoomReset:"区域缩放后退"}},dataView:{show:!1,title:"数据视图",readOnly:!1,lang:["数据视图","关闭","刷新"]},magicType:{show:!1,title:{line:"折线图切换",bar:"柱形图切换",stack:"堆积",tiled:"平铺",force:"力导向布局图切换",chord:"和弦图切换",pie:"饼图切换",funnel:"漏斗图切换"},type:[]},restore:{show:!1,title:"还原"},saveAsImage:{show:!1,title:"保存为图片",type:"png",lang:["点击保存"]}}};var l=e("zrender/tool/util"),h=e("zrender/config"),m=e("zrender/tool/event"),V="stack",U="tiled";return t.prototype={type:s.COMPONENT_TYPE_TOOLBOX,_buildShape:function(){this._iconList=[];var e=this.option.toolbox;this._enableColor=e.effectiveColor,this._disableColor=e.disableColor;var t=e.feature,i=[];for(var n in t)if(t[n].show)switch(n){case"mark":i.push({key:n,name:"mark"}),i.push({key:n,name:"markUndo"}),i.push({key:n,name:"markClear"});break;case"magicType":for(var a=0,o=t[n].type.length;o>a;a++)t[n].title[t[n].type[a]+"Chart"]=t[n].title[t[n].type[a]],t[n].option&&(t[n].option[t[n].type[a]+"Chart"]=t[n].option[t[n].type[a]]),i.push({key:n,name:t[n].type[a]+"Chart"});break;case"dataZoom":i.push({key:n,name:"dataZoom"}),i.push({key:n,name:"dataZoomReset"});break;case"saveAsImage":this.canvasSupported&&i.push({key:n,name:"saveAsImage"});break;default:i.push({key:n,name:n})}if(i.length>0){for(var r,n,a=0,o=i.length;o>a;a++)r=i[a].name,n=i[a].key,this._iconList.push(r),this._featureTitle[r]=t[n].title[r]||t[n].title,t[n].icon&&(this._featureIcon[r]=t[n].icon[r]||t[n].icon),t[n].color&&(this._featureColor[r]=t[n].color[r]||t[n].color),t[n].option&&(this._featureOption[r]=t[n].option[r]||t[n].option);this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var a=0,o=this.shapeList.length;o>a;a++)this.zr.addShape(this.shapeList[a]);this._iconShapeMap.mark&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear)),this._iconShapeMap.dataZoomReset&&0===this._zoomQueue.length&&this._iconDisable(this._iconShapeMap.dataZoomReset)}},_buildItem:function(){var t,i,n,o,s=this.option.toolbox,l=this._iconList.length,h=this._itemGroupLocation.x,m=this._itemGroupLocation.y,V=s.itemSize,U=s.itemGap,d=s.color instanceof Array?s.color:[s.color],p=this.getFont(s.textStyle);"horizontal"===s.orient?(i=this._itemGroupLocation.y/this.zr.getHeight()<.5?"bottom":"top",n=this._itemGroupLocation.x/this.zr.getWidth()<.5?"left":"right",o=this._itemGroupLocation.y/this.zr.getHeight()<.5?"top":"bottom"):i=this._itemGroupLocation.x/this.zr.getWidth()<.5?"right":"left",this._iconShapeMap={};for(var c=this,u=0;l>u;u++){switch(t={type:"icon",zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:h,y:m,width:V,height:V,iconType:this._iconList[u],lineWidth:1,strokeColor:this._featureColor[this._iconList[u]]||d[u%d.length],brushType:"stroke"},highlightStyle:{lineWidth:1,text:s.showTitle?this._featureTitle[this._iconList[u]]:void 0,textFont:p,textPosition:i,strokeColor:this._featureColor[this._iconList[u]]||d[u%d.length]},hoverable:!0,clickable:!0},this._featureIcon[this._iconList[u]]&&(t.style.image=this._featureIcon[this._iconList[u]].replace(new RegExp("^image:\\/\\/"),""),t.style.opacity=.8,t.highlightStyle.opacity=1,t.type="image"),"horizontal"===s.orient&&(0===u&&"left"===n&&(t.highlightStyle.textPosition="specific",t.highlightStyle.textAlign=n,t.highlightStyle.textBaseline=o,t.highlightStyle.textX=h,t.highlightStyle.textY="top"===o?m+V+10:m-10),u===l-1&&"right"===n&&(t.highlightStyle.textPosition="specific",t.highlightStyle.textAlign=n,t.highlightStyle.textBaseline=o,t.highlightStyle.textX=h+V,t.highlightStyle.textY="top"===o?m+V+10:m-10)),this._iconList[u]){case"mark":t.onclick=c._onMark;break;case"markUndo":t.onclick=c._onMarkUndo;break;case"markClear":t.onclick=c._onMarkClear;break;case"dataZoom":t.onclick=c._onDataZoom;break;case"dataZoomReset":t.onclick=c._onDataZoomReset;break;case"dataView":if(!this._dataView){var y=e("./dataView");this._dataView=new y(this.ecTheme,this.messageCenter,this.zr,this.option,this.myChart)}t.onclick=c._onDataView;break;case"restore":t.onclick=c._onRestore;break;case"saveAsImage":t.onclick=c._onSaveAsImage;break;default:this._iconList[u].match("Chart")?(t._name=this._iconList[u].replace("Chart",""),t.onclick=c._onMagicType):t.onclick=c._onCustomHandler}"icon"===t.type?t=new r(t):"image"===t.type&&(t=new a(t)),this.shapeList.push(t),this._iconShapeMap[this._iconList[u]]=t,"horizontal"===s.orient?h+=V+U:m+=V+U}},_buildBackground:function(){var e=this.option.toolbox,t=this.reformCssArray(this.option.toolbox.padding);this.shapeList.push(new o({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-t[3],y:this._itemGroupLocation.y-t[0],width:this._itemGroupLocation.width+t[3]+t[1],height:this._itemGroupLocation.height+t[0]+t[2],brushType:0===e.borderWidth?"fill":"both",color:e.backgroundColor,strokeColor:e.borderColor,lineWidth:e.borderWidth}}))},_getItemGroupLocation:function(){var e=this.option.toolbox,t=this.reformCssArray(this.option.toolbox.padding),i=this._iconList.length,n=e.itemGap,a=e.itemSize,o=0,r=0;"horizontal"===e.orient?(o=(a+n)*i-n,r=a):(r=(a+n)*i-n,o=a);var s,l=this.zr.getWidth();switch(e.x){case"center":s=Math.floor((l-o)/2);break;case"left":s=t[3]+e.borderWidth;break;case"right":s=l-o-t[1]-e.borderWidth;break;default:s=e.x-0,s=isNaN(s)?0:s}var h,m=this.zr.getHeight();switch(e.y){case"top":h=t[0]+e.borderWidth;break;case"bottom":h=m-r-t[2]-e.borderWidth;break;case"center":h=Math.floor((m-r)/2);break;default:h=e.y-0,h=isNaN(h)?0:h}return{x:s,y:h,width:o,height:r}},__onmousemove:function(e){this._marking&&(this._markShape.style.xEnd=m.getX(e.event),this._markShape.style.yEnd=m.getY(e.event),this.zr.addHoverShape(this._markShape)),this._zooming&&(this._zoomShape.style.width=m.getX(e.event)-this._zoomShape.style.x,this._zoomShape.style.height=m.getY(e.event)-this._zoomShape.style.y,this.zr.addHoverShape(this._zoomShape),this.dom.style.cursor="crosshair",m.stop(e.event)),this._zoomStart&&"pointer"!=this.dom.style.cursor&&"move"!=this.dom.style.cursor&&(this.dom.style.cursor="crosshair")},__onmousedown:function(e){if(!e.target){this._zooming=!0;var t=m.getX(e.event),i=m.getY(e.event),n=this.option.dataZoom||{};return this._zoomShape=new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:t,y:i,width:1,height:1,brushType:"both"},highlightStyle:{lineWidth:2,color:n.fillerColor||s.dataZoom.fillerColor,strokeColor:n.handleColor||s.dataZoom.handleColor,brushType:"both"}}),this.zr.addHoverShape(this._zoomShape),!0}},__onmouseup:function(){if(!this._zoomShape||Math.abs(this._zoomShape.style.width)<10||Math.abs(this._zoomShape.style.height)<10)return this._zooming=!1,!0;if(this._zooming&&this.component.dataZoom){this._zooming=!1;var e=this.component.dataZoom.rectZoom(this._zoomShape.style);e&&(this._zoomQueue.push({start:e.start,end:e.end,start2:e.start2,end2:e.end2}),this._iconEnable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame())}return!0},__onclick:function(e){if(!e.target)if(this._marking)this._marking=!1,this._markShapeList.push(this._markShape),this._iconEnable(this._iconShapeMap.markUndo),this._iconEnable(this._iconShapeMap.markClear),this.zr.addShape(this._markShape),this.zr.refreshNextFrame();else if(this._markStart){this._marking=!0;var t=m.getX(e.event),i=m.getY(e.event);this._markShape=new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:t,yStart:i,xEnd:t,yEnd:i,lineWidth:this.query(this.option,"toolbox.feature.mark.lineStyle.width"),strokeColor:this.query(this.option,"toolbox.feature.mark.lineStyle.color"),lineType:this.query(this.option,"toolbox.feature.mark.lineStyle.type")}}),this.zr.addHoverShape(this._markShape)}},__onMark:function(e){var t=e.target;if(this._marking||this._markStart)this._resetMark(),this.zr.refreshNextFrame();else{this._resetZoom(),this.zr.modShape(t.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._markStart=!0;var i=this;setTimeout(function(){i.zr&&i.zr.on(h.EVENT.CLICK,i._onclick)&&i.zr.on(h.EVENT.MOUSEMOVE,i._onmousemove)},10)}return!0},__onMarkUndo:function(){if(this._marking)this._marking=!1;else{var e=this._markShapeList.length;if(e>=1){var t=this._markShapeList[e-1];this.zr.delShape(t.id),this.zr.refreshNextFrame(),this._markShapeList.pop(),1===e&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear))}}return!0},__onMarkClear:function(){this._marking&&(this._marking=!1);var e=this._markShapeList.length;if(e>0){for(;e--;)this.zr.delShape(this._markShapeList.pop().id);this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear),this.zr.refreshNextFrame()}return!0},__onDataZoom:function(e){var t=e.target;if(this._zooming||this._zoomStart)this._resetZoom(),this.zr.refreshNextFrame(),this.dom.style.cursor="default";else{this._resetMark(),this.zr.modShape(t.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._zoomStart=!0;var i=this;setTimeout(function(){i.zr&&i.zr.on(h.EVENT.MOUSEDOWN,i._onmousedown)&&i.zr.on(h.EVENT.MOUSEUP,i._onmouseup)&&i.zr.on(h.EVENT.MOUSEMOVE,i._onmousemove)},10),this.dom.style.cursor="crosshair"}return!0},__onDataZoomReset:function(){return this._zooming&&(this._zooming=!1),this._zoomQueue.pop(),this._zoomQueue.length>0?this.component.dataZoom.absoluteZoom(this._zoomQueue[this._zoomQueue.length-1]):(this.component.dataZoom.rectZoom(),this._iconDisable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame()),!0},_resetMark:function(){this._marking=!1,this._markStart&&(this._markStart=!1,this._iconShapeMap.mark&&this.zr.modShape(this._iconShapeMap.mark.id,{style:{strokeColor:this._iconShapeMap.mark.highlightStyle.strokeColor}}),this.zr.un(h.EVENT.CLICK,this._onclick),this.zr.un(h.EVENT.MOUSEMOVE,this._onmousemove))},_resetZoom:function(){this._zooming=!1,this._zoomStart&&(this._zoomStart=!1,this._iconShapeMap.dataZoom&&this.zr.modShape(this._iconShapeMap.dataZoom.id,{style:{strokeColor:this._iconShapeMap.dataZoom.highlightStyle.strokeColor}}),this.zr.un(h.EVENT.MOUSEDOWN,this._onmousedown),this.zr.un(h.EVENT.MOUSEUP,this._onmouseup),this.zr.un(h.EVENT.MOUSEMOVE,this._onmousemove))},_iconDisable:function(e){"image"!=e.type?this.zr.modShape(e.id,{hoverable:!1,clickable:!1,style:{strokeColor:this._disableColor}}):this.zr.modShape(e.id,{hoverable:!1,clickable:!1,style:{opacity:.3}})},_iconEnable:function(e){"image"!=e.type?this.zr.modShape(e.id,{hoverable:!0,clickable:!0,style:{strokeColor:e.highlightStyle.strokeColor}}):this.zr.modShape(e.id,{hoverable:!0,clickable:!0,style:{opacity:.8}})},__onDataView:function(){return this._dataView.show(this.option),!0},__onRestore:function(){return this._resetMark(),this._resetZoom(),this.messageCenter.dispatch(s.EVENT.RESTORE,null,null,this.myChart),!0},__onSaveAsImage:function(){var e=this.option.toolbox.feature.saveAsImage,t=e.type||"png";"png"!=t&&"jpeg"!=t&&(t="png");var i;i=this.myChart.isConnected()?this.myChart.getConnectedDataURL(t):this.zr.toDataURL("image/"+t,this.option.backgroundColor&&"rgba(0,0,0,0)"===this.option.backgroundColor.replace(" ","")?"#fff":this.option.backgroundColor);var n=document.createElement("div");n.id="__echarts_download_wrap__",n.style.cssText="position:fixed;z-index:99999;display:block;top:0;left:0;background-color:rgba(33,33,33,0.5);text-align:center;width:100%;height:100%;line-height:"+document.documentElement.clientHeight+"px;";var a=document.createElement("a");a.href=i,a.setAttribute("download",(e.name?e.name:this.option.title&&(this.option.title.text||this.option.title.subtext)?this.option.title.text||this.option.title.subtext:"ECharts")+"."+t),a.innerHTML='<img style="vertical-align:middle" src="'+i+'" title="'+(window.ActiveXObject||"ActiveXObject"in window?"右键->图片另存为":e.lang?e.lang[0]:"点击保存")+'"/>',n.appendChild(a),document.body.appendChild(n),a=null,n=null,setTimeout(function(){var e=document.getElementById("__echarts_download_wrap__");e&&(e.onclick=function(){var e=document.getElementById("__echarts_download_wrap__");e.onclick=null,e.innerHTML="",document.body.removeChild(e),e=null},e=null)},500)},__onMagicType:function(e){this._resetMark();var t=e.target._name;return this._magicType[t]||(this._magicType[t]=!0,t===s.CHART_TYPE_LINE?this._magicType[s.CHART_TYPE_BAR]=!1:t===s.CHART_TYPE_BAR&&(this._magicType[s.CHART_TYPE_LINE]=!1),t===s.CHART_TYPE_PIE?this._magicType[s.CHART_TYPE_FUNNEL]=!1:t===s.CHART_TYPE_FUNNEL&&(this._magicType[s.CHART_TYPE_PIE]=!1),t===s.CHART_TYPE_FORCE?this._magicType[s.CHART_TYPE_CHORD]=!1:t===s.CHART_TYPE_CHORD&&(this._magicType[s.CHART_TYPE_FORCE]=!1),t===V?this._magicType[U]=!1:t===U&&(this._magicType[V]=!1),this.messageCenter.dispatch(s.EVENT.MAGIC_TYPE_CHANGED,e.event,{magicType:this._magicType},this.myChart)),!0},setMagicType:function(e){this._resetMark(),this._magicType=e,!this._isSilence&&this.messageCenter.dispatch(s.EVENT.MAGIC_TYPE_CHANGED,null,{magicType:this._magicType},this.myChart)},__onCustomHandler:function(e){var t=e.target.style.iconType,i=this.option.toolbox.feature[t].onclick;"function"==typeof i&&i.call(this,this.option)},reset:function(e,t){if(t&&this.clear(),this.query(e,"toolbox.show")&&this.query(e,"toolbox.feature.magicType.show")){var i=e.toolbox.feature.magicType.type,n=i.length;for(this._magicMap={};n--;)this._magicMap[i[n]]=!0;n=e.series.length;for(var a,o;n--;)a=e.series[n].type,this._magicMap[a]&&(o=e.xAxis instanceof Array?e.xAxis[e.series[n].xAxisIndex||0]:e.xAxis,o&&"category"===(o.type||"category")&&(o.__boundaryGap=null!=o.boundaryGap?o.boundaryGap:!0),o=e.yAxis instanceof Array?e.yAxis[e.series[n].yAxisIndex||0]:e.yAxis,o&&"category"===o.type&&(o.__boundaryGap=null!=o.boundaryGap?o.boundaryGap:!0),e.series[n].__type=a,e.series[n].__itemStyle=l.clone(e.series[n].itemStyle||{})),(this._magicMap[V]||this._magicMap[U])&&(e.series[n].__stack=e.series[n].stack)}this._magicType=t?{}:this._magicType||{};for(var r in this._magicType)if(this._magicType[r]){this.option=e,this.getMagicOption();break}var s=e.dataZoom;if(s&&s.show){var h=null!=s.start&&s.start>=0&&s.start<=100?s.start:0,m=null!=s.end&&s.end>=0&&s.end<=100?s.end:100;h>m&&(h+=m,m=h-m,h-=m),this._zoomQueue=[{start:h,end:m,start2:0,end2:100}]}else this._zoomQueue=[]},getMagicOption:function(){var e,t;if(this._magicType[s.CHART_TYPE_LINE]||this._magicType[s.CHART_TYPE_BAR]){for(var i=this._magicType[s.CHART_TYPE_LINE]?!1:!0,n=0,a=this.option.series.length;a>n;n++)t=this.option.series[n].type,(t==s.CHART_TYPE_LINE||t==s.CHART_TYPE_BAR)&&(e=this.option.xAxis instanceof Array?this.option.xAxis[this.option.series[n].xAxisIndex||0]:this.option.xAxis,e&&"category"===(e.type||"category")&&(e.boundaryGap=i?!0:e.__boundaryGap),e=this.option.yAxis instanceof Array?this.option.yAxis[this.option.series[n].yAxisIndex||0]:this.option.yAxis,e&&"category"===e.type&&(e.boundaryGap=i?!0:e.__boundaryGap));this._defaultMagic(s.CHART_TYPE_LINE,s.CHART_TYPE_BAR)}if(this._defaultMagic(s.CHART_TYPE_CHORD,s.CHART_TYPE_FORCE),this._defaultMagic(s.CHART_TYPE_PIE,s.CHART_TYPE_FUNNEL),this._magicType[V]||this._magicType[U])for(var n=0,a=this.option.series.length;a>n;n++)this._magicType[V]?(this.option.series[n].stack="_ECHARTS_STACK_KENER_2014_",t=V):this._magicType[U]&&(this.option.series[n].stack=null,t=U),this._featureOption[t+"Chart"]&&l.merge(this.option.series[n],this._featureOption[t+"Chart"]||{},!0);return this.option},_defaultMagic:function(e,t){if(this._magicType[e]||this._magicType[t])for(var i=0,n=this.option.series.length;n>i;i++){var a=this.option.series[i].type;(a==e||a==t)&&(this.option.series[i].type=this._magicType[e]?e:t,this.option.series[i].itemStyle=l.clone(this.option.series[i].__itemStyle),a=this.option.series[i].type,this._featureOption[a+"Chart"]&&l.merge(this.option.series[i],this._featureOption[a+"Chart"]||{},!0))}},silence:function(e){this._isSilence=e},resize:function(){this._resetMark(),this.clear(),this.option&&this.option.toolbox&&this.option.toolbox.show&&this._buildShape(),this._dataView&&this._dataView.resize()},hideDataView:function(){this._dataView&&this._dataView.hide()},clear:function(e){this.zr&&(this.zr.delShape(this.shapeList),this.shapeList=[],e||(this.zr.delShape(this._markShapeList),this._markShapeList=[]))},onbeforDispose:function(){this._dataView&&(this._dataView.dispose(),this._dataView=null),this._markShapeList=null},refresh:function(e){e&&(this._resetMark(),this._resetZoom(),e.toolbox=this.reformOption(e.toolbox),this.option=e,this.clear(!0),e.toolbox.show&&this._buildShape(),this.hideDataView())}},l.inherits(t,i),e("../component").define("toolbox",t),t}),i("echarts/component",[],function(){var e={},t={};return e.define=function(i,n){return t[i]=n,e},e.get=function(e){return t[e]},e}),i("echarts/component/title",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","zrender/tool/color","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Rectangle"),o=e("../config");o.title={zlevel:0,z:6,show:!0,text:"",subtext:"",x:"left",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:5,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}};var r=e("zrender/tool/util"),s=e("zrender/tool/area"),l=e("zrender/tool/color");return t.prototype={type:o.COMPONENT_TYPE_TITLE,_buildShape:function(){if(this.titleOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildItem:function(){var e=this.titleOption.text,t=this.titleOption.link,i=this.titleOption.target,a=this.titleOption.subtext,o=this.titleOption.sublink,r=this.titleOption.subtarget,s=this.getFont(this.titleOption.textStyle),h=this.getFont(this.titleOption.subtextStyle),m=this._itemGroupLocation.x,V=this._itemGroupLocation.y,U=this._itemGroupLocation.width,d=this._itemGroupLocation.height,p={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:V,color:this.titleOption.textStyle.color,text:e,textFont:s,textBaseline:"top"},highlightStyle:{color:l.lift(this.titleOption.textStyle.color,1),brushType:"fill"},hoverable:!1};t&&(p.hoverable=!0,p.clickable=!0,p.onclick=function(){i&&"self"==i?window.location=t:window.open(t)});var c={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:V+d,color:this.titleOption.subtextStyle.color,text:a,textFont:h,textBaseline:"bottom"},highlightStyle:{color:l.lift(this.titleOption.subtextStyle.color,1),brushType:"fill"},hoverable:!1};switch(o&&(c.hoverable=!0,c.clickable=!0,c.onclick=function(){r&&"self"==r?window.location=o:window.open(o)}),this.titleOption.x){case"center":p.style.x=c.style.x=m+U/2,p.style.textAlign=c.style.textAlign="center";break;case"left":p.style.x=c.style.x=m,p.style.textAlign=c.style.textAlign="left";break;case"right":p.style.x=c.style.x=m+U,p.style.textAlign=c.style.textAlign="right";break;default:m=this.titleOption.x-0,m=isNaN(m)?0:m,p.style.x=c.style.x=m}this.titleOption.textAlign&&(p.style.textAlign=c.style.textAlign=this.titleOption.textAlign),this.shapeList.push(new n(p)),""!==a&&this.shapeList.push(new n(c))},_buildBackground:function(){var e=this.reformCssArray(this.titleOption.padding);this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.titleOption.borderWidth?"fill":"both",color:this.titleOption.backgroundColor,strokeColor:this.titleOption.borderColor,lineWidth:this.titleOption.borderWidth}}))},_getItemGroupLocation:function(){var e,t=this.reformCssArray(this.titleOption.padding),i=this.titleOption.text,n=this.titleOption.subtext,a=this.getFont(this.titleOption.textStyle),o=this.getFont(this.titleOption.subtextStyle),r=Math.max(s.getTextWidth(i,a),s.getTextWidth(n,o)),l=s.getTextHeight(i,a)+(""===n?0:this.titleOption.itemGap+s.getTextHeight(n,o)),h=this.zr.getWidth();switch(this.titleOption.x){case"center":e=Math.floor((h-r)/2);break;case"left":e=t[3]+this.titleOption.borderWidth;break;case"right":e=h-r-t[1]-this.titleOption.borderWidth;break;default:e=this.titleOption.x-0,e=isNaN(e)?0:e}var m,V=this.zr.getHeight();switch(this.titleOption.y){case"top":m=t[0]+this.titleOption.borderWidth;break;case"bottom":m=V-l-t[2]-this.titleOption.borderWidth;break;case"center":m=Math.floor((V-l)/2);break;default:m=this.titleOption.y-0,m=isNaN(m)?0:m}return{x:e,y:m,width:r,height:l}},refresh:function(e){e&&(this.option=e,this.option.title=this.reformOption(this.option.title),this.titleOption=this.option.title,this.titleOption.textStyle=this.getTextStyle(this.titleOption.textStyle),this.titleOption.subtextStyle=this.getTextStyle(this.titleOption.subtextStyle)),this.clear(),this._buildShape()}},r.inherits(t,i),e("../component").define("title",t),t}),i("echarts/component/tooltip",["require","./base","../util/shape/Cross","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/area","zrender/tool/color","zrender/tool/util","zrender/shape/Base","../component"],function(e){function t(e,t,o,r,s){i.call(this,e,t,o,r,s),this.dom=s.dom;var l=this;l._onmousemove=function(e){return l.__onmousemove(e)},l._onglobalout=function(e){return l.__onglobalout(e)},this.zr.on(h.EVENT.MOUSEMOVE,l._onmousemove),this.zr.on(h.EVENT.GLOBALOUT,l._onglobalout),l._hide=function(e){return l.__hide(e)},l._tryShow=function(e){return l.__tryShow(e)},l._refixed=function(e){return l.__refixed(e)},l._setContent=function(e,t){return l.__setContent(e,t)},this._tDom=this._tDom||document.createElement("div"),this._tDom.onselectstart=function(){return!1},this._tDom.onmouseover=function(){l._mousein=!0},this._tDom.onmouseout=function(){l._mousein=!1},this._tDom.className="echarts-tooltip",this._tDom.style.position="absolute",this.hasAppend=!1,this._axisLineShape&&this.zr.delShape(this._axisLineShape.id),this._axisLineShape=new a({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisLineShape),this.zr.addShape(this._axisLineShape),this._axisShadowShape&&this.zr.delShape(this._axisShadowShape.id),this._axisShadowShape=new a({zlevel:this.getZlevelBase(),z:1,invisible:!0,hoverable:!1}),this.shapeList.push(this._axisShadowShape),this.zr.addShape(this._axisShadowShape),this._axisCrossShape&&this.zr.delShape(this._axisCrossShape.id),this._axisCrossShape=new n({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisCrossShape),this.zr.addShape(this._axisCrossShape),this.showing=!1,this.refresh(r)}var i=e("./base"),n=e("../util/shape/Cross"),a=e("zrender/shape/Line"),o=e("zrender/shape/Rectangle"),r=new o({}),s=e("../config");s.tooltip={zlevel:1,z:8,show:!0,showContent:!0,trigger:"item",islandFormatter:"{a} <br/>{b} : {c}",showDelay:20,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(0,0,0,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",lineStyle:{color:"#48b",width:2,type:"solid"},crossStyle:{color:"#1e90ff",width:1,type:"dashed"},shadowStyle:{color:"rgba(150,150,150,0.3)",width:"auto",type:"default"}},textStyle:{color:"#fff"}};var l=e("../util/ecData"),h=e("zrender/config"),m=e("zrender/tool/event"),V=e("zrender/tool/area"),U=e("zrender/tool/color"),d=e("zrender/tool/util"),p=e("zrender/shape/Base");return t.prototype={type:s.COMPONENT_TYPE_TOOLTIP,_gCssText:"position:absolute;display:block;border-style:solid;white-space:nowrap;",_style:function(e){if(!e)return"";var t=[];if(e.transitionDuration){var i="left "+e.transitionDuration+"s,top "+e.transitionDuration+"s";t.push("transition:"+i),t.push("-moz-transition:"+i),t.push("-webkit-transition:"+i),t.push("-o-transition:"+i)}e.backgroundColor&&(t.push("background-Color:"+U.toHex(e.backgroundColor)),t.push("filter:alpha(opacity=70)"),t.push("background-Color:"+e.backgroundColor)),null!=e.borderWidth&&t.push("border-width:"+e.borderWidth+"px"),null!=e.borderColor&&t.push("border-color:"+e.borderColor),null!=e.borderRadius&&(t.push("border-radius:"+e.borderRadius+"px"),t.push("-moz-border-radius:"+e.borderRadius+"px"),t.push("-webkit-border-radius:"+e.borderRadius+"px"),t.push("-o-border-radius:"+e.borderRadius+"px"));var n=e.textStyle;n&&(n.color&&t.push("color:"+n.color),n.decoration&&t.push("text-decoration:"+n.decoration),n.align&&t.push("text-align:"+n.align),n.fontFamily&&t.push("font-family:"+n.fontFamily),n.fontSize&&t.push("font-size:"+n.fontSize+"px"),n.fontSize&&t.push("line-height:"+Math.round(3*n.fontSize/2)+"px"),n.fontStyle&&t.push("font-style:"+n.fontStyle),n.fontWeight&&t.push("font-weight:"+n.fontWeight));var a=e.padding;return null!=a&&(a=this.reformCssArray(a),t.push("padding:"+a[0]+"px "+a[1]+"px "+a[2]+"px "+a[3]+"px")),t=t.join(";")+";"},__hide:function(){this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,this._tDom&&(this._tDom.style.display="none");var e=!1;this._axisLineShape.invisible||(this._axisLineShape.invisible=!0,
    +this.zr.modShape(this._axisLineShape.id),e=!0),this._axisShadowShape.invisible||(this._axisShadowShape.invisible=!0,this.zr.modShape(this._axisShadowShape.id),e=!0),this._axisCrossShape.invisible||(this._axisCrossShape.invisible=!0,this.zr.modShape(this._axisCrossShape.id),e=!0),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2),e&&this.zr.refreshNextFrame(),this.showing=!1},_show:function(e,t,i,n){var a=this._tDom.offsetHeight,o=this._tDom.offsetWidth;e&&("function"==typeof e&&(e=e([t,i])),e instanceof Array&&(t=e[0],i=e[1])),t+o>this._zrWidth&&(t-=o+40),i+a>this._zrHeight&&(i-=a-20),20>i&&(i=0),this._tDom.style.cssText=this._gCssText+this._defaultCssText+(n?n:"")+"left:"+t+"px;top:"+i+"px;",(10>a||10>o)&&setTimeout(this._refixed,20),this.showing=!0},__refixed:function(){if(this._tDom){var e="",t=this._tDom.offsetHeight,i=this._tDom.offsetWidth;this._tDom.offsetLeft+i>this._zrWidth&&(e+="left:"+(this._zrWidth-i-20)+"px;"),this._tDom.offsetTop+t>this._zrHeight&&(e+="top:"+(this._zrHeight-t-10)+"px;"),""!==e&&(this._tDom.style.cssText+=e)}},__tryShow:function(){var e,t;if(this._curTarget){if("island"===this._curTarget._type&&this.option.tooltip.show)return void this._showItemTrigger();var i=l.get(this._curTarget,"series"),n=l.get(this._curTarget,"data");e=this.deepQuery([n,i,this.option],"tooltip.show"),null!=i&&null!=n&&e?(t=this.deepQuery([n,i,this.option],"tooltip.trigger"),"axis"===t?this._showAxisTrigger(i.xAxisIndex,i.yAxisIndex,l.get(this._curTarget,"dataIndex")):this._showItemTrigger()):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}else this._findPolarTrigger()||this._findAxisTrigger()},_findAxisTrigger:function(){if(!this.component.xAxis||!this.component.yAxis)return void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));for(var e,t,i=this.option.series,n=0,a=i.length;a>n;n++)if("axis"===this.deepQuery([i[n],this.option],"tooltip.trigger"))return e=i[n].xAxisIndex||0,t=i[n].yAxisIndex||0,this.component.xAxis.getAxis(e)&&this.component.xAxis.getAxis(e).type===s.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(e,t,this._getNearestDataIndex("x",this.component.xAxis.getAxis(e))):this.component.yAxis.getAxis(t)&&this.component.yAxis.getAxis(t).type===s.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(e,t,this._getNearestDataIndex("y",this.component.yAxis.getAxis(t))):void this._showAxisTrigger(e,t,-1);"cross"===this.option.tooltip.axisPointer.type&&this._showAxisTrigger(-1,-1,-1)},_findPolarTrigger:function(){if(!this.component.polar)return!1;var e,t=m.getX(this._event),i=m.getY(this._event),n=this.component.polar.getNearestIndex([t,i]);return n?(e=n.valueIndex,n=n.polarIndex):n=-1,-1!=n?this._showPolarTrigger(n,e):!1},_getNearestDataIndex:function(e,t){var i=-1,n=m.getX(this._event),a=m.getY(this._event);if("x"===e){for(var o,r,s=this.component.grid.getXend(),l=t.getCoordByIndex(i);s>l&&(r=l,n>=l);)o=l,l=t.getCoordByIndex(++i);return 0>=i?i=0:r-n>=n-o?i-=1:null==t.getNameByIndex(i)&&(i-=1),i}for(var h,V,U=this.component.grid.getY(),l=t.getCoordByIndex(i);l>U&&(h=l,l>=a);)V=l,l=t.getCoordByIndex(++i);return 0>=i?i=0:a-h>=V-a?i-=1:null==t.getNameByIndex(i)&&(i-=1),i},_showAxisTrigger:function(e,t,i){if(!this._event.connectTrigger&&this.messageCenter.dispatch(s.EVENT.TOOLTIP_IN_GRID,this._event,null,this.myChart),null==this.component.xAxis||null==this.component.yAxis||null==e||null==t)return clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));var n,a,o,r,l=this.option.series,h=[],V=[],U="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return;a=this.option.tooltip.formatter,o=this.option.tooltip.position}var d,p,c=-1!=e&&this.component.xAxis.getAxis(e).type===s.COMPONENT_TYPE_AXIS_CATEGORY?"xAxis":-1!=t&&this.component.yAxis.getAxis(t).type===s.COMPONENT_TYPE_AXIS_CATEGORY?"yAxis":!1;if(c){var u="xAxis"==c?e:t;n=this.component[c].getAxis(u);for(var y=0,g=l.length;g>y;y++)this._isSelected(l[y].name)&&l[y][c+"Index"]===u&&"axis"===this.deepQuery([l[y],this.option],"tooltip.trigger")&&(r=this.query(l[y],"tooltip.showContent")||r,a=this.query(l[y],"tooltip.formatter")||a,o=this.query(l[y],"tooltip.position")||o,U+=this._style(this.query(l[y],"tooltip")),null!=l[y].stack&&"xAxis"==c?(h.unshift(l[y]),V.unshift(y)):(h.push(l[y]),V.push(y)));this.messageCenter.dispatch(s.EVENT.TOOLTIP_HOVER,this._event,{seriesIndex:V,dataIndex:i},this.myChart);var b;"xAxis"==c?(d=this.subPixelOptimize(n.getCoordByIndex(i),this._axisLineWidth),p=m.getY(this._event),b=[d,this.component.grid.getY(),d,this.component.grid.getYend()]):(d=m.getX(this._event),p=this.subPixelOptimize(n.getCoordByIndex(i),this._axisLineWidth),b=[this.component.grid.getX(),p,this.component.grid.getXend(),p]),this._styleAxisPointer(h,b[0],b[1],b[2],b[3],n.getGap(),d,p)}else d=m.getX(this._event),p=m.getY(this._event),this._styleAxisPointer(l,this.component.grid.getX(),p,this.component.grid.getXend(),p,0,d,p),i>=0?this._showItemTrigger(!0):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._tDom.style.display="none");if(h.length>0){if(this._lastItemTriggerId=-1,this._lastDataIndex!=i||this._lastSeriesIndex!=V[0]){this._lastDataIndex=i,this._lastSeriesIndex=V[0];var f,k;if("function"==typeof a){for(var x=[],y=0,g=h.length;g>y;y++)f=h[y].data[i],k=this.getDataFromOption(f,"-"),x.push({seriesIndex:V[y],seriesName:h[y].name||"",series:h[y],dataIndex:i,data:f,name:n.getNameByIndex(i),value:k,0:h[y].name||"",1:n.getNameByIndex(i),2:k,3:f});this._curTicket="axis:"+i,this._tDom.innerHTML=a.call(this.myChart,x,this._curTicket,this._setContent)}else if("string"==typeof a){this._curTicket=0/0,a=a.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}");for(var y=0,g=h.length;g>y;y++)a=a.replace("{a"+y+"}",this._encodeHTML(h[y].name||"")),a=a.replace("{b"+y+"}",this._encodeHTML(n.getNameByIndex(i))),f=h[y].data[i],f=this.getDataFromOption(f,"-"),a=a.replace("{c"+y+"}",f instanceof Array?f:this.numAddCommas(f));this._tDom.innerHTML=a}else{this._curTicket=0/0,a=this._encodeHTML(n.getNameByIndex(i));for(var y=0,g=h.length;g>y;y++)a+="<br/>"+this._encodeHTML(h[y].name||"")+" : ",f=h[y].data[i],f=this.getDataFromOption(f,"-"),a+=f instanceof Array?f:this.numAddCommas(f);this._tDom.innerHTML=a}}if(r===!1||!this.option.tooltip.showContent)return;this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(o,d+10,p+10,U)}},_showPolarTrigger:function(e,t){if(null==this.component.polar||null==e||null==t||0>t)return!1;var i,n,a,o=this.option.series,r=[],s=[],l="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return!1;i=this.option.tooltip.formatter,n=this.option.tooltip.position}for(var h=this.option.polar[e].indicator[t].text,V=0,U=o.length;U>V;V++)this._isSelected(o[V].name)&&o[V].polarIndex===e&&"axis"===this.deepQuery([o[V],this.option],"tooltip.trigger")&&(a=this.query(o[V],"tooltip.showContent")||a,i=this.query(o[V],"tooltip.formatter")||i,n=this.query(o[V],"tooltip.position")||n,l+=this._style(this.query(o[V],"tooltip")),r.push(o[V]),s.push(V));if(r.length>0){for(var d,p,c,u=[],V=0,U=r.length;U>V;V++){d=r[V].data;for(var y=0,g=d.length;g>y;y++)p=d[y],this._isSelected(p.name)&&(p=null!=p?p:{name:"",value:{dataIndex:"-"}},c=this.getDataFromOption(p.value[t]),u.push({seriesIndex:s[V],seriesName:r[V].name||"",series:r[V],dataIndex:t,data:p,name:p.name,indicator:h,value:c,0:r[V].name||"",1:p.name,2:c,3:h}))}if(u.length<=0)return;if(this._lastItemTriggerId=-1,this._lastDataIndex!=t||this._lastSeriesIndex!=s[0])if(this._lastDataIndex=t,this._lastSeriesIndex=s[0],"function"==typeof i)this._curTicket="axis:"+t,this._tDom.innerHTML=i.call(this.myChart,u,this._curTicket,this._setContent);else if("string"==typeof i){i=i.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}");for(var V=0,U=u.length;U>V;V++)i=i.replace("{a"+V+"}",this._encodeHTML(u[V].seriesName)),i=i.replace("{b"+V+"}",this._encodeHTML(u[V].name)),i=i.replace("{c"+V+"}",this.numAddCommas(u[V].value)),i=i.replace("{d"+V+"}",this._encodeHTML(u[V].indicator));this._tDom.innerHTML=i}else{i=this._encodeHTML(u[0].name)+"<br/>"+this._encodeHTML(u[0].indicator)+" : "+this.numAddCommas(u[0].value);for(var V=1,U=u.length;U>V;V++)i+="<br/>"+this._encodeHTML(u[V].name)+"<br/>",i+=this._encodeHTML(u[V].indicator)+" : "+this.numAddCommas(u[V].value);this._tDom.innerHTML=i}if(a===!1||!this.option.tooltip.showContent)return;return this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(n,m.getX(this._event),m.getY(this._event),l),!0}},_showItemTrigger:function(e){if(this._curTarget){var t,i,n,a=l.get(this._curTarget,"series"),o=l.get(this._curTarget,"seriesIndex"),r=l.get(this._curTarget,"data"),h=l.get(this._curTarget,"dataIndex"),V=l.get(this._curTarget,"name"),U=l.get(this._curTarget,"value"),d=l.get(this._curTarget,"special"),p=l.get(this._curTarget,"special2"),c=[r,a,this.option],u="";if("island"!=this._curTarget._type){var y=e?"axis":"item";this.option.tooltip.trigger===y&&(t=this.option.tooltip.formatter,i=this.option.tooltip.position),this.query(a,"tooltip.trigger")===y&&(n=this.query(a,"tooltip.showContent")||n,t=this.query(a,"tooltip.formatter")||t,i=this.query(a,"tooltip.position")||i,u+=this._style(this.query(a,"tooltip"))),n=this.query(r,"tooltip.showContent")||n,t=this.query(r,"tooltip.formatter")||t,i=this.query(r,"tooltip.position")||i,u+=this._style(this.query(r,"tooltip"))}else this._lastItemTriggerId=0/0,n=this.deepQuery(c,"tooltip.showContent"),t=this.deepQuery(c,"tooltip.islandFormatter"),i=this.deepQuery(c,"tooltip.islandPosition");this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId!==this._curTarget.id&&(this._lastItemTriggerId=this._curTarget.id,"function"==typeof t?(this._curTicket=(a.name||"")+":"+h,this._tDom.innerHTML=t.call(this.myChart,{seriesIndex:o,seriesName:a.name||"",series:a,dataIndex:h,data:r,name:V,value:U,percent:d,indicator:d,value2:p,indicator2:p,0:a.name||"",1:V,2:U,3:d,4:p,5:r,6:o,7:h},this._curTicket,this._setContent)):"string"==typeof t?(this._curTicket=0/0,t=t.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),t=t.replace("{a0}",this._encodeHTML(a.name||"")).replace("{b0}",this._encodeHTML(V)).replace("{c0}",U instanceof Array?U:this.numAddCommas(U)),t=t.replace("{d}","{d0}").replace("{d0}",d||""),t=t.replace("{e}","{e0}").replace("{e0}",l.get(this._curTarget,"special2")||""),this._tDom.innerHTML=t):(this._curTicket=0/0,this._tDom.innerHTML=a.type===s.CHART_TYPE_RADAR&&d?this._itemFormatter.radar.call(this,a,V,U,d):a.type===s.CHART_TYPE_EVENTRIVER?this._itemFormatter.eventRiver.call(this,a,V,U,r):""+(null!=a.name?this._encodeHTML(a.name)+"<br/>":"")+(""===V?"":this._encodeHTML(V)+" : ")+(U instanceof Array?U:this.numAddCommas(U))));var g=m.getX(this._event),b=m.getY(this._event);this.deepQuery(c,"tooltip.axisPointer.show")&&this.component.grid?this._styleAxisPointer([a],this.component.grid.getX(),b,this.component.grid.getXend(),b,0,g,b):this._hide(),n!==!1&&this.option.tooltip.showContent&&(this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(i,g+20,b-20,u))}},_itemFormatter:{radar:function(e,t,i,n){var a="";a+=this._encodeHTML(""===t?e.name||"":t),a+=""===a?"":"<br />";for(var o=0;o<n.length;o++)a+=this._encodeHTML(n[o].text)+" : "+this.numAddCommas(i[o])+"<br />";return a},chord:function(e,t,i,n,a){if(null==a)return this._encodeHTML(t)+" ("+this.numAddCommas(i)+")";var o=this._encodeHTML(t),r=this._encodeHTML(n);return""+(null!=e.name?this._encodeHTML(e.name)+"<br/>":"")+o+" -> "+r+" ("+this.numAddCommas(i)+")<br />"+r+" -> "+o+" ("+this.numAddCommas(a)+")"},eventRiver:function(e,t,i,n){var a="";a+=this._encodeHTML(""===e.name?"":e.name+" : "),a+=this._encodeHTML(t),a+=""===a?"":"<br />",n=n.evolution;for(var o=0,r=n.length;r>o;o++)a+='<div style="padding-top:5px;">',n[o].detail&&(n[o].detail.img&&(a+='<img src="'+n[o].detail.img+'" style="float:left;width:40px;height:40px;">'),a+='<div style="margin-left:45px;">'+n[o].time+"<br/>",a+='<a href="'+n[o].detail.link+'" target="_blank">',a+=n[o].detail.text+"</a></div>",a+="</div>");return a}},_styleAxisPointer:function(e,t,i,n,a,o,r,s){if(e.length>0){var l,h,m=this.option.tooltip.axisPointer,V=m.type,U={line:{},cross:{},shadow:{}};for(var d in U)U[d].color=m[d+"Style"].color,U[d].width=m[d+"Style"].width,U[d].type=m[d+"Style"].type;for(var p=0,c=e.length;c>p;p++)l=e[p],h=this.query(l,"tooltip.axisPointer.type"),V=h||V,h&&(U[h].color=this.query(l,"tooltip.axisPointer."+h+"Style.color")||U[h].color,U[h].width=this.query(l,"tooltip.axisPointer."+h+"Style.width")||U[h].width,U[h].type=this.query(l,"tooltip.axisPointer."+h+"Style.type")||U[h].type);if("line"===V){var u=U.line.width,y=t==n;this._axisLineShape.style={xStart:y?this.subPixelOptimize(t,u):t,yStart:y?i:this.subPixelOptimize(i,u),xEnd:y?this.subPixelOptimize(n,u):n,yEnd:y?a:this.subPixelOptimize(a,u),strokeColor:U.line.color,lineWidth:u,lineType:U.line.type},this._axisLineShape.invisible=!1,this.zr.modShape(this._axisLineShape.id)}else if("cross"===V){var g=U.cross.width;this._axisCrossShape.style={brushType:"stroke",rect:this.component.grid.getArea(),x:this.subPixelOptimize(r,g),y:this.subPixelOptimize(s,g),text:("( "+this.component.xAxis.getAxis(0).getValueFromCoord(r)+" , "+this.component.yAxis.getAxis(0).getValueFromCoord(s)+" )").replace("  , "," ").replace(" ,  "," "),textPosition:"specific",strokeColor:U.cross.color,lineWidth:g,lineType:U.cross.type},this.component.grid.getXend()-r>100?(this._axisCrossShape.style.textAlign="left",this._axisCrossShape.style.textX=r+10):(this._axisCrossShape.style.textAlign="right",this._axisCrossShape.style.textX=r-10),s-this.component.grid.getY()>50?(this._axisCrossShape.style.textBaseline="bottom",this._axisCrossShape.style.textY=s-10):(this._axisCrossShape.style.textBaseline="top",this._axisCrossShape.style.textY=s+10),this._axisCrossShape.invisible=!1,this.zr.modShape(this._axisCrossShape.id)}else"shadow"===V&&((null==U.shadow.width||"auto"===U.shadow.width||isNaN(U.shadow.width))&&(U.shadow.width=o),t===n?Math.abs(this.component.grid.getX()-t)<2?(U.shadow.width/=2,t=n+=U.shadow.width/2):Math.abs(this.component.grid.getXend()-t)<2&&(U.shadow.width/=2,t=n-=U.shadow.width/2):i===a&&(Math.abs(this.component.grid.getY()-i)<2?(U.shadow.width/=2,i=a+=U.shadow.width/2):Math.abs(this.component.grid.getYend()-i)<2&&(U.shadow.width/=2,i=a-=U.shadow.width/2)),this._axisShadowShape.style={xStart:t,yStart:i,xEnd:n,yEnd:a,strokeColor:U.shadow.color,lineWidth:U.shadow.width},this._axisShadowShape.invisible=!1,this.zr.modShape(this._axisShadowShape.id));this.zr.refreshNextFrame()}},__onmousemove:function(e){if(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),!this._mousein||!this._enterable){var t=e.target,i=m.getX(e.event),n=m.getY(e.event);if(t){this._curTarget=t,this._event=e.event,this._event.zrenderX=i,this._event.zrenderY=n;var a;if(this._needAxisTrigger&&this.component.polar&&-1!=(a=this.component.polar.isInside([i,n])))for(var o=this.option.series,l=0,h=o.length;h>l;l++)if(o[l].polarIndex===a&&"axis"===this.deepQuery([o[l],this.option],"tooltip.trigger")){this._curTarget=null;break}this._showingTicket=setTimeout(this._tryShow,this._showDelay)}else this._curTarget=!1,this._event=e.event,this._event.zrenderX=i,this._event.zrenderY=n,this._needAxisTrigger&&this.component.grid&&V.isInside(r,this.component.grid.getArea(),i,n)?this._showingTicket=setTimeout(this._tryShow,this._showDelay):this._needAxisTrigger&&this.component.polar&&-1!=this.component.polar.isInside([i,n])?this._showingTicket=setTimeout(this._tryShow,this._showDelay):(!this._event.connectTrigger&&this.messageCenter.dispatch(s.EVENT.TOOLTIP_OUT_GRID,this._event,null,this.myChart),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}},__onglobalout:function(){clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay)},__setContent:function(e,t){this._tDom&&(e===this._curTicket&&(this._tDom.innerHTML=t),setTimeout(this._refixed,20))},ontooltipHover:function(e,t){if(!this._lastTipShape||this._lastTipShape&&this._lastTipShape.dataIndex!=e.dataIndex){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this.shapeList.length=2);for(var i=0,n=t.length;n>i;i++)t[i].zlevel=this.getZlevelBase(),t[i].z=this.getZBase(),t[i].style=p.prototype.getHighlightStyle(t[i].style,t[i].highlightStyle),t[i].draggable=!1,t[i].hoverable=!1,t[i].clickable=!1,t[i].ondragend=null,t[i].ondragover=null,t[i].ondrop=null,this.shapeList.push(t[i]),this.zr.addShape(t[i]);this._lastTipShape={dataIndex:e.dataIndex,tipShape:t}}},ondragend:function(){this._hide()},onlegendSelected:function(e){this._selectedMap=e.selected},_setSelectedMap:function(){this._selectedMap=this.component.legend?d.clone(this.component.legend.getSelectedMap()):{}},_isSelected:function(e){return null!=this._selectedMap[e]?this._selectedMap[e]:!0},showTip:function(e){if(e){var t,i=this.option.series;if(null!=e.seriesIndex)t=e.seriesIndex;else for(var n=e.seriesName,a=0,o=i.length;o>a;a++)if(i[a].name===n){t=a;break}var r=i[t];if(null!=r){var m=this.myChart.chart[r.type],V="axis"===this.deepQuery([r,this.option],"tooltip.trigger");if(m)if(V){var U=e.dataIndex;switch(m.type){case s.CHART_TYPE_LINE:case s.CHART_TYPE_BAR:case s.CHART_TYPE_K:case s.CHART_TYPE_RADAR:if(null==this.component.polar||r.data[0].value.length<=U)return;var d=r.polarIndex||0,p=this.component.polar.getVector(d,U,"max");this._event={zrenderX:p[0],zrenderY:p[1]},this._showPolarTrigger(d,U)}}else{var c,u,y=m.shapeList;switch(m.type){case s.CHART_TYPE_LINE:case s.CHART_TYPE_BAR:case s.CHART_TYPE_K:case s.CHART_TYPE_TREEMAP:case s.CHART_TYPE_SCATTER:for(var U=e.dataIndex,a=0,o=y.length;o>a;a++)if(null==y[a]._mark&&l.get(y[a],"seriesIndex")==t&&l.get(y[a],"dataIndex")==U){this._curTarget=y[a],c=y[a].style.x,u=m.type!=s.CHART_TYPE_K?y[a].style.y:y[a].style.y[0];break}break;case s.CHART_TYPE_RADAR:for(var U=e.dataIndex,a=0,o=y.length;o>a;a++)if("polygon"===y[a].type&&l.get(y[a],"seriesIndex")==t&&l.get(y[a],"dataIndex")==U){this._curTarget=y[a];var p=this.component.polar.getCenter(r.polarIndex||0);c=p[0],u=p[1];break}break;case s.CHART_TYPE_PIE:for(var g=e.name,a=0,o=y.length;o>a;a++)if("sector"===y[a].type&&l.get(y[a],"seriesIndex")==t&&l.get(y[a],"name")==g){this._curTarget=y[a];var b=this._curTarget.style,f=(b.startAngle+b.endAngle)/2*Math.PI/180;c=this._curTarget.style.x+Math.cos(f)*b.r/1.5,u=this._curTarget.style.y-Math.sin(f)*b.r/1.5;break}break;case s.CHART_TYPE_MAP:for(var g=e.name,k=r.mapType,a=0,o=y.length;o>a;a++)if("text"===y[a].type&&y[a]._mapType===k&&y[a].style._name===g){this._curTarget=y[a],c=this._curTarget.style.x+this._curTarget.position[0],u=this._curTarget.style.y+this._curTarget.position[1];break}break;case s.CHART_TYPE_CHORD:for(var g=e.name,a=0,o=y.length;o>a;a++)if("sector"===y[a].type&&l.get(y[a],"name")==g){this._curTarget=y[a];var b=this._curTarget.style,f=(b.startAngle+b.endAngle)/2*Math.PI/180;return c=this._curTarget.style.x+Math.cos(f)*(b.r-2),u=this._curTarget.style.y-Math.sin(f)*(b.r-2),void this.zr.trigger(h.EVENT.MOUSEMOVE,{zrenderX:c,zrenderY:u})}break;case s.CHART_TYPE_FORCE:for(var g=e.name,a=0,o=y.length;o>a;a++)if("circle"===y[a].type&&l.get(y[a],"name")==g){this._curTarget=y[a],c=this._curTarget.position[0],u=this._curTarget.position[1];break}}null!=c&&null!=u&&(this._event={zrenderX:c,zrenderY:u},this.zr.addHoverShape(this._curTarget),this.zr.refreshHover(),this._showItemTrigger())}}}},hideTip:function(){this._hide()},refresh:function(e){if(this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2,this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,e){this.option=e,this.option.tooltip=this.reformOption(this.option.tooltip),this.option.tooltip.textStyle=d.merge(this.option.tooltip.textStyle,this.ecTheme.textStyle),this._needAxisTrigger=!1,"axis"===this.option.tooltip.trigger&&(this._needAxisTrigger=!0);for(var t=this.option.series,i=0,n=t.length;n>i;i++)if("axis"===this.query(t[i],"tooltip.trigger")){this._needAxisTrigger=!0;break}this._showDelay=this.option.tooltip.showDelay,this._hideDelay=this.option.tooltip.hideDelay,this._defaultCssText=this._style(this.option.tooltip),this._setSelectedMap(),this._axisLineWidth=this.option.tooltip.axisPointer.lineStyle.width,this._enterable=this.option.tooltip.enterable,!this._enterable&&this._tDom.className.indexOf(h.elementClassName)<0&&(this._tDom.className+=" "+h.elementClassName)}if(this.showing){var a=this;setTimeout(function(){a.zr.trigger(h.EVENT.MOUSEMOVE,a.zr.handler._event)},50)}},onbeforDispose:function(){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this.zr.un(h.EVENT.MOUSEMOVE,this._onmousemove),this.zr.un(h.EVENT.GLOBALOUT,this._onglobalout),this.hasAppend&&this.dom.firstChild&&this.dom.firstChild.removeChild(this._tDom),this._tDom=null},_encodeHTML:function(e){return String(e).replace(/&/g,"&").replace(/</g,"&lt;").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}},d.inherits(t,i),e("../component").define("tooltip",t),t}),i("echarts/component/legend",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","zrender/shape/Sector","../util/shape/Icon","../util/shape/Candle","../config","zrender/tool/util","zrender/tool/area","../component"],function(e){function t(e,t,n,a,o){if(!this.query(a,"legend.data"))return void console.error("option.legend.data has not been defined.");i.call(this,e,t,n,a,o);var r=this;r._legendSelected=function(e){r.__legendSelected(e)},r._dispatchHoverLink=function(e){return r.__dispatchHoverLink(e)},this._colorIndex=0,this._colorMap={},this._selectedMap={},this._hasDataMap={},this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Rectangle"),o=e("zrender/shape/Sector"),r=e("../util/shape/Icon"),s=e("../util/shape/Candle"),l=e("../config");l.legend={zlevel:0,z:4,show:!0,orient:"horizontal",x:"center",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0};var h=e("zrender/tool/util"),m=e("zrender/tool/area");t.prototype={type:l.COMPONENT_TYPE_LEGEND,_buildShape:function(){if(this.legendOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildItem:function(){var e,t,i,a,o,s,l,V,U=this.legendOption.data,d=U.length,p=this.legendOption.textStyle,c=this.zr.getWidth(),u=this.zr.getHeight(),y=this._itemGroupLocation.x,g=this._itemGroupLocation.y,b=this.legendOption.itemWidth,f=this.legendOption.itemHeight,k=this.legendOption.itemGap;"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(y=this._itemGroupLocation.x+this._itemGroupLocation.width-b);for(var x=0;d>x;x++)o=h.merge(U[x].textStyle||{},p),s=this.getFont(o),e=this._getName(U[x]),l=this._getFormatterName(e),""!==e?(t=U[x].icon||this._getSomethingByName(e).type,V=this.getColor(e),"horizontal"===this.legendOption.orient?200>c-y&&b+5+m.getTextWidth(l,s)+(x===d-1||""===U[x+1]?0:k)>=c-y&&(y=this._itemGroupLocation.x,g+=f+k):200>u-g&&f+(x===d-1||""===U[x+1]?0:k)>=u-g&&("right"===this.legendOption.x?y-=this._itemGroupLocation.maxWidth+k:y+=this._itemGroupLocation.maxWidth+k,g=this._itemGroupLocation.y),i=this._getItemShapeByType(y,g,b,f,this._selectedMap[e]&&this._hasDataMap[e]?V:"#ccc",t,V),i._name=e,i=new r(i),a={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:y+b+5,y:g+f/2,color:this._selectedMap[e]?"auto"===o.color?V:o.color:"#ccc",text:l,textFont:s,textBaseline:"middle"},highlightStyle:{color:V,brushType:"fill"},hoverable:!!this.legendOption.selectedMode,clickable:!!this.legendOption.selectedMode},"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(a.style.x-=b+10,a.style.textAlign="right"),a._name=e,a=new n(a),this.legendOption.selectedMode&&(i.onclick=a.onclick=this._legendSelected,i.onmouseover=a.onmouseover=this._dispatchHoverLink,i.hoverConnect=a.id,a.hoverConnect=i.id),this.shapeList.push(i),this.shapeList.push(a),"horizontal"===this.legendOption.orient?y+=b+5+m.getTextWidth(l,s)+k:g+=f+k):"horizontal"===this.legendOption.orient?(y=this._itemGroupLocation.x,g+=f+k):("right"===this.legendOption.x?y-=this._itemGroupLocation.maxWidth+k:y+=this._itemGroupLocation.maxWidth+k,g=this._itemGroupLocation.y);"horizontal"===this.legendOption.orient&&"center"===this.legendOption.x&&g!=this._itemGroupLocation.y&&this._mLineOptimize()},_getName:function(e){return"undefined"!=typeof e.name?e.name:e},_getFormatterName:function(e){var t,i=this.legendOption.formatter;return t="function"==typeof i?i.call(this.myChart,e):"string"==typeof i?i.replace("{name}",e):e},_getFormatterNameFromData:function(e){var t=this._getName(e);return this._getFormatterName(t)},_mLineOptimize:function(){for(var e=[],t=this._itemGroupLocation.x,i=2,n=this.shapeList.length;n>i;i++)this.shapeList[i].style.x===t?e.push((this._itemGroupLocation.width-(this.shapeList[i-1].style.x+m.getTextWidth(this.shapeList[i-1].style.text,this.shapeList[i-1].style.textFont)-t))/2):i===n-1&&e.push((this._itemGroupLocation.width-(this.shapeList[i].style.x+m.getTextWidth(this.shapeList[i].style.text,this.shapeList[i].style.textFont)-t))/2);for(var a=-1,i=1,n=this.shapeList.length;n>i;i++)this.shapeList[i].style.x===t&&a++,0!==e[a]&&(this.shapeList[i].style.x+=e[a])},_buildBackground:function(){var e=this.reformCssArray(this.legendOption.padding);this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.legendOption.borderWidth?"fill":"both",color:this.legendOption.backgroundColor,strokeColor:this.legendOption.borderColor,lineWidth:this.legendOption.borderWidth}}))},_getItemGroupLocation:function(){var e=this.legendOption.data,t=e.length,i=this.legendOption.itemGap,n=this.legendOption.itemWidth+5,a=this.legendOption.itemHeight,o=this.legendOption.textStyle,r=this.getFont(o),s=0,l=0,V=this.reformCssArray(this.legendOption.padding),U=this.zr.getWidth()-V[1]-V[3],d=this.zr.getHeight()-V[0]-V[2],p=0,c=0;if("horizontal"===this.legendOption.orient){l=a;for(var u=0;t>u;u++)if(""!==this._getName(e[u])){var y=m.getTextWidth(this._getFormatterNameFromData(e[u]),e[u].textStyle?this.getFont(h.merge(e[u].textStyle||{},o)):r);p+n+y+i>U?(p-=i,s=Math.max(s,p),l+=a+i,p=0):(p+=n+y+i,s=Math.max(s,p-i))}else p-=i,s=Math.max(s,p),l+=a+i,p=0}else{for(var u=0;t>u;u++)c=Math.max(c,m.getTextWidth(this._getFormatterNameFromData(e[u]),e[u].textStyle?this.getFont(h.merge(e[u].textStyle||{},o)):r));c+=n,s=c;for(var u=0;t>u;u++)""!==this._getName(e[u])?p+a+i>d?(s+=c+i,p-=i,l=Math.max(l,p),p=0):(p+=a+i,l=Math.max(l,p-i)):(s+=c+i,p-=i,l=Math.max(l,p),p=0)}U=this.zr.getWidth(),d=this.zr.getHeight();var g;switch(this.legendOption.x){case"center":g=Math.floor((U-s)/2);break;case"left":g=V[3]+this.legendOption.borderWidth;break;case"right":g=U-s-V[1]-V[3]-2*this.legendOption.borderWidth;break;default:g=this.parsePercent(this.legendOption.x,U)}var b;switch(this.legendOption.y){case"top":b=V[0]+this.legendOption.borderWidth;break;case"bottom":b=d-l-V[0]-V[2]-2*this.legendOption.borderWidth;break;case"center":b=Math.floor((d-l)/2);break;default:b=this.parsePercent(this.legendOption.y,d)}return{x:g,y:b,width:s,height:l,maxWidth:c}},_getSomethingByName:function(e){for(var t,i=this.option.series,n=0,a=i.length;a>n;n++){if(i[n].name===e)return{type:i[n].type,series:i[n],seriesIndex:n,data:null,dataIndex:-1};if(i[n].type===l.CHART_TYPE_PIE||i[n].type===l.CHART_TYPE_RADAR||i[n].type===l.CHART_TYPE_CHORD||i[n].type===l.CHART_TYPE_FORCE||i[n].type===l.CHART_TYPE_FUNNEL||i[n].type===l.CHART_TYPE_TREEMAP){t=i[n].categories||i[n].data||i[n].nodes;for(var o=0,r=t.length;r>o;o++)if(t[o].name===e)return{type:i[n].type,series:i[n],seriesIndex:n,data:t[o],dataIndex:o}}}return{type:"bar",series:null,seriesIndex:-1,data:null,dataIndex:-1}},_getItemShapeByType:function(e,t,i,n,a,o,r){var s,h="#ccc"===a?r:a,m={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{iconType:"legendicon"+o,x:e,y:t,width:i,height:n,color:a,strokeColor:a,lineWidth:2},highlightStyle:{color:h,strokeColor:h,lineWidth:1},hoverable:this.legendOption.selectedMode,clickable:this.legendOption.selectedMode};if(o.match("image")){var s=o.replace(new RegExp("^image:\\/\\/"),"");o="image"}switch(o){case"line":m.style.brushType="stroke",m.highlightStyle.lineWidth=3;break;case"radar":case"venn":case"tree":case"treemap":case"scatter":m.highlightStyle.lineWidth=3;break;case"k":m.style.brushType="both",m.highlightStyle.lineWidth=3,m.highlightStyle.color=m.style.color=this.deepQuery([this.ecTheme,l],"k.itemStyle.normal.color")||"#fff",m.style.strokeColor="#ccc"!=a?this.deepQuery([this.ecTheme,l],"k.itemStyle.normal.lineStyle.color")||"#ff3200":a;break;case"image":m.style.iconType="image",m.style.image=s,"#ccc"===a&&(m.style.opacity=.5)}return m},__legendSelected:function(e){var t=e.target._name;if("single"===this.legendOption.selectedMode)for(var i in this._selectedMap)this._selectedMap[i]=!1;this._selectedMap[t]=!this._selectedMap[t],this.messageCenter.dispatch(l.EVENT.LEGEND_SELECTED,e.event,{selected:this._selectedMap,target:t},this.myChart)},__dispatchHoverLink:function(e){this.messageCenter.dispatch(l.EVENT.LEGEND_HOVERLINK,e.event,{target:e.target._name},this.myChart)},refresh:function(e){if(e){this.option=e||this.option,this.option.legend=this.reformOption(this.option.legend),this.legendOption=this.option.legend;var t,i,n,a,o=this.legendOption.data||[];if(this.legendOption.selected)for(var r in this.legendOption.selected)this._selectedMap[r]="undefined"!=typeof this._selectedMap[r]?this._selectedMap[r]:this.legendOption.selected[r];for(var s=0,h=o.length;h>s;s++)t=this._getName(o[s]),""!==t&&(i=this._getSomethingByName(t),i.series?(this._hasDataMap[t]=!0,a=!i.data||i.type!==l.CHART_TYPE_PIE&&i.type!==l.CHART_TYPE_FORCE&&i.type!==l.CHART_TYPE_FUNNEL?[i.series]:[i.data,i.series],n=this.getItemStyleColor(this.deepQuery(a,"itemStyle.normal.color"),i.seriesIndex,i.dataIndex,i.data),n&&i.type!=l.CHART_TYPE_K&&this.setColor(t,n),this._selectedMap[t]=null!=this._selectedMap[t]?this._selectedMap[t]:!0):this._hasDataMap[t]=!1)}this.clear(),this._buildShape()},getRelatedAmount:function(e){for(var t,i=0,n=this.option.series,a=0,o=n.length;o>a;a++)if(n[a].name===e&&i++,n[a].type===l.CHART_TYPE_PIE||n[a].type===l.CHART_TYPE_RADAR||n[a].type===l.CHART_TYPE_CHORD||n[a].type===l.CHART_TYPE_FORCE||n[a].type===l.CHART_TYPE_FUNNEL){t=n[a].type!=l.CHART_TYPE_FORCE?n[a].data:n[a].categories;for(var r=0,s=t.length;s>r;r++)t[r].name===e&&"-"!=t[r].value&&i++}return i},setColor:function(e,t){this._colorMap[e]=t},getColor:function(e){return this._colorMap[e]||(this._colorMap[e]=this.zr.getColor(this._colorIndex++)),this._colorMap[e]},hasColor:function(e){return this._colorMap[e]?this._colorMap[e]:!1},add:function(e,t){
    +for(var i=this.legendOption.data,n=0,a=i.length;a>n;n++)if(this._getName(i[n])===e)return;this.legendOption.data.push(e),this.setColor(e,t),this._selectedMap[e]=!0,this._hasDataMap[e]=!0},del:function(e){for(var t=this.legendOption.data,i=0,n=t.length;n>i;i++)if(this._getName(t[i])===e)return this.legendOption.data.splice(i,1)},getItemShape:function(e){if(null!=e)for(var t,i=0,n=this.shapeList.length;n>i;i++)if(t=this.shapeList[i],t._name===e&&"text"!=t.type)return t},setItemShape:function(e,t){for(var i,n=0,a=this.shapeList.length;a>n;n++)i=this.shapeList[n],i._name===e&&"text"!=i.type&&(this._selectedMap[e]||(t.style.color="#ccc",t.style.strokeColor="#ccc"),this.zr.modShape(i.id,t))},isSelected:function(e){return"undefined"!=typeof this._selectedMap[e]?this._selectedMap[e]:!0},getSelectedMap:function(){return this._selectedMap},setSelected:function(e,t){if("single"===this.legendOption.selectedMode)for(var i in this._selectedMap)this._selectedMap[i]=!1;this._selectedMap[e]=t,this.messageCenter.dispatch(l.EVENT.LEGEND_SELECTED,null,{selected:this._selectedMap,target:e},this.myChart)},onlegendSelected:function(e,t){var i=e.selected;for(var n in i)this._selectedMap[n]!=i[n]&&(t.needRefresh=!0),this._selectedMap[n]=i[n]}};var V={line:function(e,t){var i=t.height/2;e.moveTo(t.x,t.y+i),e.lineTo(t.x+t.width,t.y+i)},pie:function(e,t){var i=t.x,n=t.y,a=t.width,r=t.height;o.prototype.buildPath(e,{x:i+a/2,y:n+r+2,r:r,r0:6,startAngle:45,endAngle:135})},eventRiver:function(e,t){var i=t.x,n=t.y,a=t.width,o=t.height;e.moveTo(i,n+o),e.bezierCurveTo(i+a,n+o,i,n+4,i+a,n+4),e.lineTo(i+a,n),e.bezierCurveTo(i,n,i+a,n+o-4,i,n+o-4),e.lineTo(i,n+o)},k:function(e,t){var i=t.x,n=t.y,a=t.width,o=t.height;s.prototype.buildPath(e,{x:i+a/2,y:[n+1,n+1,n+o-6,n+o],width:a-6})},bar:function(e,t){var i=t.x,n=t.y+1,a=t.width,o=t.height-2,r=3;e.moveTo(i+r,n),e.lineTo(i+a-r,n),e.quadraticCurveTo(i+a,n,i+a,n+r),e.lineTo(i+a,n+o-r),e.quadraticCurveTo(i+a,n+o,i+a-r,n+o),e.lineTo(i+r,n+o),e.quadraticCurveTo(i,n+o,i,n+o-r),e.lineTo(i,n+r),e.quadraticCurveTo(i,n,i+r,n)},force:function(e,t){r.prototype.iconLibrary.circle(e,t)},radar:function(e,t){var i=6,n=t.x+t.width/2,a=t.y+t.height/2,o=t.height/2,r=2*Math.PI/i,s=-Math.PI/2,l=n+o*Math.cos(s),h=a+o*Math.sin(s);e.moveTo(l,h),s+=r;for(var m=0,V=i-1;V>m;m++)e.lineTo(n+o*Math.cos(s),a+o*Math.sin(s)),s+=r;e.lineTo(l,h)}};V.chord=V.pie,V.map=V.bar;for(var U in V)r.prototype.iconLibrary["legendicon"+U]=V[U];return h.inherits(t,i),e("../component").define("legend",t),t}),i("echarts/util/ecData",[],function(){function e(e,t,i,n,a,o,r,s){var l;return"undefined"!=typeof n&&(l=null==n.value?n:n.value),e._echartsData={_series:t,_seriesIndex:i,_data:n,_dataIndex:a,_name:o,_value:l,_special:r,_special2:s},e._echartsData}function t(e,t){var i=e._echartsData;if(!t)return i;switch(t){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":return i&&i["_"+t]}return null}function i(e,t,i){switch(e._echartsData=e._echartsData||{},t){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":e._echartsData["_"+t]=i}}function n(e,t){t._echartsData={_series:e._echartsData._series,_seriesIndex:e._echartsData._seriesIndex,_data:e._echartsData._data,_dataIndex:e._echartsData._dataIndex,_name:e._echartsData._name,_value:e._echartsData._value,_special:e._echartsData._special,_special2:e._echartsData._special2}}return{pack:e,set:i,get:t,clone:n}}),i("echarts/chart",[],function(){var e={},t={};return e.define=function(i,n){return t[i]=n,e},e.get=function(e){return t[e]},e}),i("zrender/tool/color",["require","../tool/util"],function(e){function t(e){D=e}function i(){D=N}function n(e,t){return e=0|e,t=t||D,t[e%t.length]}function a(e){B=e}function o(){H=B}function r(){return B}function s(e,t,i,n,a,o,r){O||(O=P.getContext());for(var s=O.createRadialGradient(e,t,i,n,a,o),l=0,h=r.length;h>l;l++)s.addColorStop(r[l][0],r[l][1]);return s.__nonRecursion=!0,s}function l(e,t,i,n,a){O||(O=P.getContext());for(var o=O.createLinearGradient(e,t,i,n),r=0,s=a.length;s>r;r++)o.addColorStop(a[r][0],a[r][1]);return o.__nonRecursion=!0,o}function h(e,t,i){e=p(e),t=p(t),e=I(e),t=I(t);for(var n=[],a=(t[0]-e[0])/i,o=(t[1]-e[1])/i,r=(t[2]-e[2])/i,s=(t[3]-e[3])/i,l=0,h=e[0],m=e[1],U=e[2],d=e[3];i>l;l++)n[l]=V([S(Math.floor(h),[0,255]),S(Math.floor(m),[0,255]),S(Math.floor(U),[0,255]),d.toFixed(4)-0],"rgba"),h+=a,m+=o,U+=r,d+=s;return h=t[0],m=t[1],U=t[2],d=t[3],n[l]=V([h,m,U,d],"rgba"),n}function m(e,t){var i=[],n=e.length;if(void 0===t&&(t=20),1===n)i=h(e[0],e[0],t);else if(n>1)for(var a=0,o=n-1;o>a;a++){var r=h(e[a],e[a+1],t);o-1>a&&r.pop(),i=i.concat(r)}return i}function V(e,t){if(t=t||"rgb",e&&(3===e.length||4===e.length)){if(e=C(e,function(e){return e>1?Math.ceil(e):e}),t.indexOf("hex")>-1)return"#"+((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1);if(t.indexOf("hs")>-1){var i=C(e.slice(1,3),function(e){return e+"%"});e[1]=i[0],e[2]=i[1]}return t.indexOf("a")>-1?(3===e.length&&e.push(1),e[3]=S(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}function U(e){e=L(e),e.indexOf("rgba")<0&&(e=p(e));var t=[],i=0;return e.replace(/[\d.]+/g,function(e){e=3>i?0|e:+e,t[i++]=e}),t}function d(e,t){if(!E(e))return e;var i=I(e),n=i[3];return"undefined"==typeof n&&(n=1),e.indexOf("hsb")>-1?i=F(i):e.indexOf("hsl")>-1&&(i=T(i)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?i=A(i):t.indexOf("hsl")>-1&&(i=M(i)),i[3]=n,V(i,t)}function p(e){return d(e,"rgba")}function c(e){return d(e,"rgb")}function u(e){return d(e,"hex")}function y(e){return d(e,"hsva")}function g(e){return d(e,"hsv")}function b(e){return d(e,"hsba")}function f(e){return d(e,"hsb")}function k(e){return d(e,"hsla")}function x(e){return d(e,"hsl")}function _(e){for(var t in G)if(u(G[t])===u(e))return t;return null}function L(e){return String(e).replace(/\s+/g,"")}function W(e){if(G[e]&&(e=G[e]),e=L(e),e=e.replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(e)){e=parseInt(e.slice(1),16);var t=(3840&e)<<8,i=(240&e)<<4,n=15&e;e="#"+((1<<24)+(t<<4)+t+(i<<4)+i+(n<<4)+n).toString(16).slice(1)}return e}function X(e,t){if(!E(e))return e;var i=t>0?1:-1;"undefined"==typeof t&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=c(e);for(var n=I(e),a=0;3>a;a++)n[a]=1===i?n[a]*(1-t)|0:(255-n[a])*t+n[a]|0;return"rgb("+n.join(",")+")"}function v(e){if(!E(e))return e;var t=I(p(e));return t=C(t,function(e){return 255-e}),V(t,"rgb")}function w(e,t,i){if(!E(e)||!E(t))return e;"undefined"==typeof i&&(i=.5),i=1-S(i,[0,1]);for(var n=2*i-1,a=I(p(e)),o=I(p(t)),r=a[3]-o[3],s=((n*r===-1?n:(n+r)/(1+n*r))+1)/2,l=1-s,h=[],m=0;3>m;m++)h[m]=a[m]*s+o[m]*l;var U=a[3]*i+o[3]*(1-i);return U=Math.max(0,Math.min(1,U)),1===a[3]&&1===o[3]?V(h,"rgb"):(h[3]=U,V(h,"rgba"))}function K(){return"#"+(Math.random().toString(16)+"0000").slice(2,8)}function I(e){e=W(e);var t=e.match(R);if(null===t)throw new Error("The color format error");var i,n,a,o=[];if(t[2])i=t[2].replace("#","").split(""),a=[i[0]+i[1],i[2]+i[3],i[4]+i[5]],o=C(a,function(e){return S(parseInt(e,16),[0,255])});else if(t[4]){var r=t[4].split(",");n=r[3],a=r.slice(0,3),o=C(a,function(e){return e=Math.floor(e.indexOf("%")>0?2.55*parseInt(e,0):e),S(e,[0,255])}),"undefined"!=typeof n&&o.push(S(parseFloat(n),[0,1]))}else if(t[5]||t[6]){var s=(t[5]||t[6]).split(","),l=parseInt(s[0],0)/360,h=s[1],m=s[2];n=s[3],o=C([h,m],function(e){return S(parseFloat(e)/100,[0,1])}),o.unshift(l),"undefined"!=typeof n&&o.push(S(parseFloat(n),[0,1]))}return o}function J(e,t){if(!E(e))return e;null===t&&(t=1);var i=I(p(e));return i[3]=S(Number(t).toFixed(4),[0,1]),V(i,"rgba")}function C(e,t){if("function"!=typeof t)throw new TypeError;for(var i=e?e.length:0,n=0;i>n;n++)e[n]=t(e[n]);return e}function S(e,t){return e<=t[0]?e=t[0]:e>=t[1]&&(e=t[1]),e}function E(e){return e instanceof Array||"string"==typeof e}function F(e){var t,i,n,a=e[0],o=e[1],r=e[2];if(0===o)t=255*r,i=255*r,n=255*r;else{var s=6*a;6===s&&(s=0);var l=0|s,h=r*(1-o),m=r*(1-o*(s-l)),V=r*(1-o*(1-(s-l))),U=0,d=0,p=0;0===l?(U=r,d=V,p=h):1===l?(U=m,d=r,p=h):2===l?(U=h,d=r,p=V):3===l?(U=h,d=m,p=r):4===l?(U=V,d=h,p=r):(U=r,d=h,p=m),t=255*U,i=255*d,n=255*p}return[t,i,n]}function T(e){var t,i,n,a=e[0],o=e[1],r=e[2];if(0===o)t=255*r,i=255*r,n=255*r;else{var s;s=.5>r?r*(1+o):r+o-o*r;var l=2*r-s;t=255*z(l,s,a+1/3),i=255*z(l,s,a),n=255*z(l,s,a-1/3)}return[t,i,n]}function z(e,t,i){return 0>i&&(i+=1),i>1&&(i-=1),1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}function A(e){var t,i,n=e[0]/255,a=e[1]/255,o=e[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,h=s;if(0===l)t=0,i=0;else{i=l/s;var m=((s-n)/6+l/2)/l,V=((s-a)/6+l/2)/l,U=((s-o)/6+l/2)/l;n===s?t=U-V:a===s?t=1/3+m-U:o===s&&(t=2/3+V-m),0>t&&(t+=1),t>1&&(t-=1)}return t=360*t,i=100*i,h=100*h,[t,i,h]}function M(e){var t,i,n=e[0]/255,a=e[1]/255,o=e[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,h=(s+r)/2;if(0===l)t=0,i=0;else{i=.5>h?l/(s+r):l/(2-s-r);var m=((s-n)/6+l/2)/l,V=((s-a)/6+l/2)/l,U=((s-o)/6+l/2)/l;n===s?t=U-V:a===s?t=1/3+m-U:o===s&&(t=2/3+V-m),0>t&&(t+=1),t>1&&(t-=1)}return t=360*t,i=100*i,h=100*h,[t,i,h]}var O,P=e("../tool/util"),D=["#ff9277"," #dddd00"," #ffc877"," #bbe3ff"," #d5ffbb","#bbbbff"," #ddb000"," #b0dd00"," #e2bbff"," #ffbbe3","#ff7777"," #ff9900"," #83dd00"," #77e3ff"," #778fff","#c877ff"," #ff77ab"," #ff6600"," #aa8800"," #77c7ff","#ad77ff"," #ff77ff"," #dd0083"," #777700"," #00aa00","#0088aa"," #8400dd"," #aa0088"," #dd0000"," #772e00"],N=D,B="rgba(255,255,0,0.5)",H=B,R=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,G={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#e7e7e7",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"};return{customPalette:t,resetPalette:i,getColor:n,getHighlightColor:r,customHighlight:a,resetHighlight:o,getRadialGradient:s,getLinearGradient:l,getGradientColors:m,getStepColors:h,reverse:v,mix:w,lift:X,trim:L,random:K,toRGB:c,toRGBA:p,toHex:u,toHSL:x,toHSLA:k,toHSB:f,toHSBA:b,toHSV:g,toHSVA:y,toName:_,toColor:V,toArray:U,alpha:J,getData:I}}),i("echarts/component/timeline",["require","./base","zrender/shape/Rectangle","../util/shape/Icon","../util/shape/Chain","../config","zrender/tool/util","zrender/tool/area","zrender/tool/event","../component"],function(e){function t(e,t,i,a,o){n.call(this,e,t,i,a,o);var r=this;if(r._onclick=function(e){return r.__onclick(e)},r._ondrift=function(e,t){return r.__ondrift(this,e,t)},r._ondragend=function(){return r.__ondragend()},r._setCurrentOption=function(){var e=r.timelineOption;r.currentIndex%=e.data.length;var t=r.options[r.currentIndex]||{};r.myChart._setOption(t,e.notMerge,!0),r.messageCenter.dispatch(s.EVENT.TIMELINE_CHANGED,null,{currentIndex:r.currentIndex,data:null!=e.data[r.currentIndex].name?e.data[r.currentIndex].name:e.data[r.currentIndex]},r.myChart)},r._onFrame=function(){r._setCurrentOption(),r._syncHandleShape(),r.timelineOption.autoPlay&&(r.playTicket=setTimeout(function(){return r.currentIndex+=1,!r.timelineOption.loop&&r.currentIndex>=r.timelineOption.data.length?(r.currentIndex=r.timelineOption.data.length-1,void r.stop()):void r._onFrame()},r.timelineOption.playInterval))},this.setTheme(!1),this.options=this.option.options,this.currentIndex=this.timelineOption.currentIndex%this.timelineOption.data.length,this.timelineOption.notMerge||0===this.currentIndex||(this.options[this.currentIndex]=l.merge(this.options[this.currentIndex],this.options[0])),this.timelineOption.show&&(this._buildShape(),this._syncHandleShape()),this._setCurrentOption(),this.timelineOption.autoPlay){var r=this;this.playTicket=setTimeout(function(){r.play()},null!=this.ecTheme.animationDuration?this.ecTheme.animationDuration:s.animationDuration)}}function i(e,t){var i=2,n=t.x+i,a=t.y+i+2,r=t.width-i,s=t.height-i,l=t.symbol;if("last"===l)e.moveTo(n+r-2,a+s/3),e.lineTo(n+r-2,a),e.lineTo(n+2,a+s/2),e.lineTo(n+r-2,a+s),e.lineTo(n+r-2,a+s/3*2),e.moveTo(n,a),e.lineTo(n,a);else if("next"===l)e.moveTo(n+2,a+s/3),e.lineTo(n+2,a),e.lineTo(n+r-2,a+s/2),e.lineTo(n+2,a+s),e.lineTo(n+2,a+s/3*2),e.moveTo(n,a),e.lineTo(n,a);else if("play"===l)if("stop"===t.status)e.moveTo(n+2,a),e.lineTo(n+r-2,a+s/2),e.lineTo(n+2,a+s),e.lineTo(n+2,a);else{var h="both"===t.brushType?2:3;e.rect(n+2,a,h,s),e.rect(n+r-h-2,a,h,s)}else if(l.match("image")){var m="";m=l.replace(new RegExp("^image:\\/\\/"),""),l=o.prototype.iconLibrary.image,l(e,{x:n,y:a,width:r,height:s,image:m})}}var n=e("./base"),a=e("zrender/shape/Rectangle"),o=e("../util/shape/Icon"),r=e("../util/shape/Chain"),s=e("../config");s.timeline={zlevel:0,z:4,show:!0,type:"time",notMerge:!1,realtime:!0,x:80,x2:80,y2:0,height:50,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,controlPosition:"left",autoPlay:!1,loop:!0,playInterval:2e3,lineStyle:{width:1,color:"#666",type:"dashed"},label:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#333"}},checkpointStyle:{symbol:"auto",symbolSize:"auto",color:"auto",borderColor:"auto",borderWidth:"auto",label:{show:!1,textStyle:{color:"auto"}}},controlStyle:{itemSize:15,itemGap:5,normal:{color:"#333"},emphasis:{color:"#1e90ff"}},symbol:"emptyDiamond",symbolSize:4,currentIndex:0};var l=e("zrender/tool/util"),h=e("zrender/tool/area"),m=e("zrender/tool/event");return t.prototype={type:s.COMPONENT_TYPE_TIMELINE,_buildShape:function(){if(this._location=this._getLocation(),this._buildBackground(),this._buildControl(),this._chainPoint=this._getChainPoint(),this.timelineOption.label.show)for(var e=this._getInterval(),t=0,i=this._chainPoint.length;i>t;t+=e)this._chainPoint[t].showLabel=!0;this._buildChain(),this._buildHandle();for(var t=0,n=this.shapeList.length;n>t;t++)this.zr.addShape(this.shapeList[t])},_getLocation:function(){var e,t=this.timelineOption,i=this.reformCssArray(this.timelineOption.padding),n=this.zr.getWidth(),a=this.parsePercent(t.x,n),o=this.parsePercent(t.x2,n);null==t.width?(e=n-a-o,o=n-o):(e=this.parsePercent(t.width,n),o=a+e);var r,s,l=this.zr.getHeight(),h=this.parsePercent(t.height,l);return null!=t.y?(r=this.parsePercent(t.y,l),s=r+h):(s=l-this.parsePercent(t.y2,l),r=s-h),{x:a+i[3],y:r+i[0],x2:o-i[1],y2:s-i[2],width:e-i[1]-i[3],height:h-i[0]-i[2]}},_getReformedLabel:function(e){var t=this.timelineOption,i=null!=t.data[e].name?t.data[e].name:t.data[e],n=t.data[e].formatter||t.label.formatter;return n&&("function"==typeof n?i=n.call(this.myChart,i):"string"==typeof n&&(i=n.replace("{value}",i))),i},_getInterval:function(){var e=this._chainPoint,t=this.timelineOption,i=t.label.interval;if("auto"===i){var n=t.label.textStyle.fontSize,a=t.data,o=t.data.length;if(o>3){var r,s,l=!1;for(i=0;!l&&o>i;){i++,l=!0;for(var m=i;o>m;m+=i){if(r=e[m].x-e[m-i].x,0!==t.label.rotate)s=n;else if(a[m].textStyle)s=h.getTextWidth(e[m].name,e[m].textFont);else{var V=e[m].name+"",U=(V.match(/\w/g)||"").length,d=V.length-U;s=U*n*2/3+d*n}if(s>r){l=!1;break}}}}else i=1}else i=i-0+1;return i},_getChainPoint:function(){function e(e){return null!=h[e].name?h[e].name:h[e]+""}var t,i=this.timelineOption,n=i.symbol.toLowerCase(),a=i.symbolSize,o=i.label.rotate,r=i.label.textStyle,s=this.getFont(r),h=i.data,m=this._location.x,V=this._location.y+this._location.height/4*3,U=this._location.x2-this._location.x,d=h.length,p=[];if(d>1){var c=U/d;if(c=c>50?50:20>c?5:c,U-=2*c,"number"===i.type)for(var u=0;d>u;u++)p.push(m+c+U/(d-1)*u);else{p[0]=new Date(e(0).replace(/-/g,"/")),p[d-1]=new Date(e(d-1).replace(/-/g,"/"))-p[0];for(var u=1;d>u;u++)p[u]=m+c+U*(new Date(e(u).replace(/-/g,"/"))-p[0])/p[d-1];p[0]=m+c}}else p.push(m+U/2);for(var y,g,b,f,k,x=[],u=0;d>u;u++)m=p[u],y=h[u].symbol&&h[u].symbol.toLowerCase()||n,y.match("empty")?(y=y.replace("empty",""),b=!0):b=!1,y.match("star")&&(g=y.replace("star","")-0||5,y="star"),t=h[u].textStyle?l.merge(h[u].textStyle||{},r):r,f=t.align||"center",o?(f=o>0?"right":"left",k=[o*Math.PI/180,m,V-5]):k=!1,x.push({x:m,n:g,isEmpty:b,symbol:y,symbolSize:h[u].symbolSize||a,color:h[u].color,borderColor:h[u].borderColor,borderWidth:h[u].borderWidth,name:this._getReformedLabel(u),textColor:t.color,textAlign:f,textBaseline:t.baseline||"middle",textX:m,textY:V-(o?5:0),textFont:h[u].textStyle?this.getFont(t):s,rotation:k,showLabel:!1});return x},_buildBackground:function(){var e=this.timelineOption,t=this.reformCssArray(this.timelineOption.padding),i=this._location.width,n=this._location.height;(0!==e.borderWidth||"rgba(0,0,0,0)"!=e.backgroundColor.replace(/\s/g,""))&&this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x-t[3],y:this._location.y-t[0],width:i+t[1]+t[3],height:n+t[0]+t[2],brushType:0===e.borderWidth?"fill":"both",color:e.backgroundColor,strokeColor:e.borderColor,lineWidth:e.borderWidth}}))},_buildControl:function(){var e=this,t=this.timelineOption,i=t.lineStyle,n=t.controlStyle;if("none"!==t.controlPosition){var a,r=n.itemSize,s=n.itemGap;"left"===t.controlPosition?(a=this._location.x,this._location.x+=3*(r+s)):(a=this._location.x2-(3*(r+s)-s),this._location.x2-=3*(r+s));var h=this._location.y,m={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{iconType:"timelineControl",symbol:"last",x:a,y:h,width:r,height:r,brushType:"stroke",color:n.normal.color,strokeColor:n.normal.color,lineWidth:i.width},highlightStyle:{color:n.emphasis.color,strokeColor:n.emphasis.color,lineWidth:i.width+1},clickable:!0};this._ctrLastShape=new o(m),this._ctrLastShape.onclick=function(){e.last()},this.shapeList.push(this._ctrLastShape),a+=r+s,this._ctrPlayShape=new o(l.clone(m)),this._ctrPlayShape.style.brushType="fill",this._ctrPlayShape.style.symbol="play",this._ctrPlayShape.style.status=this.timelineOption.autoPlay?"playing":"stop",this._ctrPlayShape.style.x=a,this._ctrPlayShape.onclick=function(){"stop"===e._ctrPlayShape.style.status?e.play():e.stop()},this.shapeList.push(this._ctrPlayShape),a+=r+s,this._ctrNextShape=new o(l.clone(m)),this._ctrNextShape.style.symbol="next",this._ctrNextShape.style.x=a,this._ctrNextShape.onclick=function(){e.next()},this.shapeList.push(this._ctrNextShape)}},_buildChain:function(){var e=this.timelineOption,t=e.lineStyle;this._timelineShae={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:this._location.x,y:this.subPixelOptimize(this._location.y,t.width),width:this._location.x2-this._location.x,height:this._location.height,chainPoint:this._chainPoint,brushType:"both",strokeColor:t.color,lineWidth:t.width,lineType:t.type},hoverable:!1,clickable:!0,onclick:this._onclick},this._timelineShae=new r(this._timelineShae),this.shapeList.push(this._timelineShae)},_buildHandle:function(){var e=this._chainPoint[this.currentIndex],t=e.symbolSize+1;t=5>t?5:t,this._handleShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,hoverable:!1,draggable:!0,style:{iconType:"diamond",n:e.n,x:e.x-t,y:this._location.y+this._location.height/4-t,width:2*t,height:2*t,brushType:"both",textPosition:"specific",textX:e.x,textY:this._location.y-this._location.height/4,textAlign:"center",textBaseline:"middle"},highlightStyle:{},ondrift:this._ondrift,ondragend:this._ondragend},this._handleShape=new o(this._handleShape),this.shapeList.push(this._handleShape)},_syncHandleShape:function(){if(this.timelineOption.show){var e=this.timelineOption,t=e.checkpointStyle,i=this._chainPoint[this.currentIndex];this._handleShape.style.text=t.label.show?i.name:"",this._handleShape.style.textFont=i.textFont,this._handleShape.style.n=i.n,"auto"===t.symbol?this._handleShape.style.iconType="none"!=i.symbol?i.symbol:"diamond":(this._handleShape.style.iconType=t.symbol,t.symbol.match("star")&&(this._handleShape.style.n=t.symbol.replace("star","")-0||5,this._handleShape.style.iconType="star"));var n;"auto"===t.symbolSize?(n=i.symbolSize+2,n=5>n?5:n):n=t.symbolSize-0,this._handleShape.style.color="auto"===t.color?i.color?i.color:e.controlStyle.emphasis.color:t.color,this._handleShape.style.textColor="auto"===t.label.textStyle.color?this._handleShape.style.color:t.label.textStyle.color,this._handleShape.highlightStyle.strokeColor=this._handleShape.style.strokeColor="auto"===t.borderColor?i.borderColor?i.borderColor:"#fff":t.borderColor,this._handleShape.style.lineWidth="auto"===t.borderWidth?i.borderWidth?i.borderWidth:0:t.borderWidth-0,this._handleShape.highlightStyle.lineWidth=this._handleShape.style.lineWidth+1,this.zr.animate(this._handleShape.id,"style").when(500,{x:i.x-n,textX:i.x,y:this._location.y+this._location.height/4-n,width:2*n,height:2*n}).start("ExponentialOut")}},_findChainIndex:function(e){var t=this._chainPoint,i=t.length;if(e<=t[0].x)return 0;if(e>=t[i-1].x)return i-1;for(var n=0;i-1>n;n++)if(e>=t[n].x&&e<=t[n+1].x)return Math.abs(e-t[n].x)<Math.abs(e-t[n+1].x)?n:n+1},__onclick:function(e){var t=m.getX(e.event),i=this._findChainIndex(t);return i===this.currentIndex?!0:(this.currentIndex=i,this.timelineOption.autoPlay&&this.stop(),clearTimeout(this.playTicket),void this._onFrame())},__ondrift:function(e,t){this.timelineOption.autoPlay&&this.stop();var i,n=this._chainPoint,a=n.length;e.style.x+t<=n[0].x-n[0].symbolSize?(e.style.x=n[0].x-n[0].symbolSize,i=0):e.style.x+t>=n[a-1].x-n[a-1].symbolSize?(e.style.x=n[a-1].x-n[a-1].symbolSize,i=a-1):(e.style.x+=t,i=this._findChainIndex(e.style.x));var o=n[i],r=o.symbolSize+2;if(e.style.iconType=o.symbol,e.style.n=o.n,e.style.textX=e.style.x+r/2,e.style.y=this._location.y+this._location.height/4-r,e.style.width=2*r,e.style.height=2*r,e.style.text=o.name,i===this.currentIndex)return!0;if(this.currentIndex=i,this.timelineOption.realtime){clearTimeout(this.playTicket);var s=this;this.playTicket=setTimeout(function(){s._setCurrentOption()},200)}return!0},__ondragend:function(){this.isDragend=!0},ondragend:function(e,t){this.isDragend&&e.target&&(!this.timelineOption.realtime&&this._setCurrentOption(),t.dragOut=!0,t.dragIn=!0,t.needRefresh=!1,this.isDragend=!1,this._syncHandleShape())},last:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex-=1,this.currentIndex<0&&(this.currentIndex=this.timelineOption.data.length-1),this._onFrame(),this.currentIndex},next:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex+=1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},play:function(e,t){return this._ctrPlayShape&&"playing"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="playing",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=null!=t?t:!0,this.timelineOption.autoPlay||clearTimeout(this.playTicket),this.currentIndex=null!=e?e:this.currentIndex+1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},stop:function(){return this._ctrPlayShape&&"stop"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="stop",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=!1,clearTimeout(this.playTicket),this.currentIndex},resize:function(){this.timelineOption.show&&(this.clear(),this._buildShape(),this._syncHandleShape())},setTheme:function(e){this.timelineOption=this.reformOption(l.clone(this.option.timeline)),this.timelineOption.label.textStyle=this.getTextStyle(this.timelineOption.label.textStyle),this.timelineOption.checkpointStyle.label.textStyle=this.getTextStyle(this.timelineOption.checkpointStyle.label.textStyle),this.myChart.canvasSupported||(this.timelineOption.realtime=!1),this.timelineOption.show&&e&&(this.clear(),this._buildShape(),this._syncHandleShape())},onbeforDispose:function(){clearTimeout(this.playTicket)}},o.prototype.iconLibrary.timelineControl=i,l.inherits(t,n),e("../component").define("timeline",t),t}),i("zrender/shape/Image",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"image",brush:function(e,t,i){var n=this.style||{};t&&(n=this.getHighlightStyle(n,this.highlightStyle||{}));var a=n.image,o=this;if(this._imageCache||(this._imageCache={}),"string"==typeof a){var r=a;this._imageCache[r]?a=this._imageCache[r]:(a=new Image,a.onload=function(){a.onload=null,o.modSelf(),i()},a.src=r,this._imageCache[r]=a)}if(a){if("IMG"==a.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=a.readyState)return}else if(!a.complete)return;var s=n.width||a.width,l=n.height||a.height,h=n.x,m=n.y;if(!a.width||!a.height)return;if(e.save(),this.doClip(e),this.setContext(e,n),this.setTransform(e),n.sWidth&&n.sHeight){var V=n.sx||0,U=n.sy||0;e.drawImage(a,V,U,n.sWidth,n.sHeight,h,m,s,l)}else if(n.sx&&n.sy){var V=n.sx,U=n.sy,d=s-V,p=l-U;e.drawImage(a,V,U,d,p,h,m,s,l)}else e.drawImage(a,h,m,s,l);n.width||(n.width=s),n.height||(n.height=l),this.style.width||(this.style.width=s),this.style.height||(this.style.height=l),this.drawText(e,n,this.style),e.restore()}},getRect:function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}},clearCache:function(){this._imageCache={}}},e("../tool/util").inherits(i,t),i}),i("zrender/loadingEffect/Bar",["require","./Base","../tool/util","../tool/color","../shape/Rectangle"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Rectangle");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effectOption:{x:0,y:this.canvasHeight/2-30,width:this.canvasWidth,height:5,brushType:"fill",timeInterval:100}}),r=this.createTextShape(i.textStyle),s=this.createBackgroundShape(i.backgroundColor),l=i.effectOption,h=new o({highlightStyle:n.clone(l)});return h.highlightStyle.color=l.color||a.getLinearGradient(l.x,l.y,l.x+l.width,l.y+l.height,[[0,"#ff6400"],[.5,"#ffe100"],[1,"#b1ff00"]]),null!=i.progress?(e(s),h.highlightStyle.width=this.adjust(i.progress,[0,1])*i.effectOption.width,e(h),e(r),void t()):(h.highlightStyle.width=0,setInterval(function(){e(s),h.highlightStyle.width<l.width?h.highlightStyle.width+=8:h.highlightStyle.width=0,e(h),e(r),t()},l.timeInterval))},t}),i("zrender/loadingEffect/Bubble",["require","./Base","../tool/util","../tool/color","../shape/Circle"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Circle");return n.inherits(t,i),t.prototype._start=function(e,t){for(var i=n.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{n:50,lineWidth:2,brushType:"stroke",color:"random",timeInterval:100}}),r=this.createTextShape(i.textStyle),s=this.createBackgroundShape(i.backgroundColor),l=i.effect,h=l.n,m=l.brushType,V=l.lineWidth,U=[],d=this.canvasWidth,p=this.canvasHeight,c=0;h>c;c++){var u="random"==l.color?a.alpha(a.random(),.3):l.color;U[c]=new o({highlightStyle:{x:Math.ceil(Math.random()*d),y:Math.ceil(Math.random()*p),r:Math.ceil(40*Math.random()),brushType:m,color:u,strokeColor:u,lineWidth:V},animationY:Math.ceil(20*Math.random())})}return setInterval(function(){e(s);for(var i=0;h>i;i++){var n=U[i].highlightStyle;n.y-U[i].animationY+n.r<=0&&(U[i].highlightStyle.y=p+n.r,U[i].highlightStyle.x=Math.ceil(Math.random()*d)),U[i].highlightStyle.y-=U[i].animationY,e(U[i])}e(r),t()},l.timeInterval)},t}),i("zrender/loadingEffect/DynamicLine",["require","./Base","../tool/util","../tool/color","../shape/Line"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Line");return n.inherits(t,i),t.prototype._start=function(e,t){for(var i=n.merge(this.options,{textStyle:{color:"#fff"},backgroundColor:"rgba(0, 0, 0, 0.8)",effectOption:{n:30,lineWidth:1,color:"random",timeInterval:100}}),r=this.createTextShape(i.textStyle),s=this.createBackgroundShape(i.backgroundColor),l=i.effectOption,h=l.n,m=l.lineWidth,V=[],U=this.canvasWidth,d=this.canvasHeight,p=0;h>p;p++){var c=-Math.ceil(1e3*Math.random()),u=Math.ceil(400*Math.random()),y=Math.ceil(Math.random()*d),g="random"==l.color?a.random():l.color;V[p]=new o({highlightStyle:{xStart:c,yStart:y,xEnd:c+u,yEnd:y,strokeColor:g,lineWidth:m},animationX:Math.ceil(100*Math.random()),len:u})}return setInterval(function(){e(s);for(var i=0;h>i;i++){var n=V[i].highlightStyle;n.xStart>=U&&(V[i].len=Math.ceil(400*Math.random()),n.xStart=-400,n.xEnd=-400+V[i].len,n.yStart=Math.ceil(Math.random()*d),n.yEnd=n.yStart),n.xStart+=V[i].animationX,n.xEnd+=V[i].animationX,e(V[i])}e(r),t()},l.timeInterval)},t}),i("zrender/loadingEffect/Ring",["require","./Base","../tool/util","../tool/color","../shape/Ring","../shape/Sector"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Ring"),r=e("../shape/Sector");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#07a"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{x:this.canvasWidth/2,y:this.canvasHeight/2,r0:60,r:100,color:"#bbdcff",brushType:"fill",textPosition:"inside",textFont:"normal 30px verdana",textColor:"rgba(30, 144, 255, 0.6)",timeInterval:100}}),s=i.effect,l=i.textStyle;
    +
    +null==l.x&&(l.x=s.x),null==l.y&&(l.y=s.y+(s.r0+s.r)/2-5);for(var h=this.createTextShape(i.textStyle),m=this.createBackgroundShape(i.backgroundColor),V=s.x,U=s.y,d=s.r0+6,p=s.r-6,c=s.color,u=a.lift(c,.1),y=new o({highlightStyle:n.clone(s)}),g=[],b=a.getGradientColors(["#ff6400","#ffe100","#97ff00"],25),f=15,k=240,x=0;16>x;x++)g.push(new r({highlightStyle:{x:V,y:U,r0:d,r:p,startAngle:k-f,endAngle:k,brushType:"fill",color:u},_color:a.getLinearGradient(V+d*Math.cos(k,!0),U-d*Math.sin(k,!0),V+d*Math.cos(k-f,!0),U-d*Math.sin(k-f,!0),[[0,b[2*x]],[1,b[2*x+1]]])})),k-=f;k=360;for(var x=0;4>x;x++)g.push(new r({highlightStyle:{x:V,y:U,r0:d,r:p,startAngle:k-f,endAngle:k,brushType:"fill",color:u},_color:a.getLinearGradient(V+d*Math.cos(k,!0),U-d*Math.sin(k,!0),V+d*Math.cos(k-f,!0),U-d*Math.sin(k-f,!0),[[0,b[2*x+32]],[1,b[2*x+33]]])})),k-=f;var _=0;if(null!=i.progress){e(m),_=100*this.adjust(i.progress,[0,1]).toFixed(2)/5,y.highlightStyle.text=5*_+"%",e(y);for(var x=0;20>x;x++)g[x].highlightStyle.color=_>x?g[x]._color:u,e(g[x]);return e(h),void t()}return setInterval(function(){e(m),_+=_>=20?-20:1,e(y);for(var i=0;20>i;i++)g[i].highlightStyle.color=_>i?g[i]._color:u,e(g[i]);e(h),t()},s.timeInterval)},t}),i("zrender/loadingEffect/Spin",["require","./Base","../tool/util","../tool/color","../tool/area","../shape/Sector"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../tool/area"),r=e("../shape/Sector");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#fff",textAlign:"start"},backgroundColor:"rgba(0, 0, 0, 0.8)"}),s=this.createTextShape(i.textStyle),l=10,h=o.getTextWidth(s.highlightStyle.text,s.highlightStyle.textFont),m=o.getTextHeight(s.highlightStyle.text,s.highlightStyle.textFont),V=n.merge(this.options.effect||{},{r0:9,r:15,n:18,color:"#fff",timeInterval:100}),U=this.getLocation(this.options.textStyle,h+l+2*V.r,Math.max(2*V.r,m));V.x=U.x+V.r,V.y=s.highlightStyle.y=U.y+U.height/2,s.highlightStyle.x=V.x+V.r+l;for(var d=this.createBackgroundShape(i.backgroundColor),p=V.n,c=V.x,u=V.y,y=V.r0,g=V.r,b=V.color,f=[],k=Math.round(180/p),x=0;p>x;x++)f[x]=new r({highlightStyle:{x:c,y:u,r0:y,r:g,startAngle:k*x*2,endAngle:k*x*2+k,color:a.alpha(b,(x+1)/p),brushType:"fill"}});var _=[0,c,u];return setInterval(function(){e(d),_[0]-=.3;for(var i=0;p>i;i++)f[i].rotation=_,e(f[i]);e(s),t()},V.timeInterval)},t}),i("zrender/loadingEffect/Whirling",["require","./Base","../tool/util","../tool/area","../shape/Ring","../shape/Droplet","../shape/Circle"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/area"),o=e("../shape/Ring"),r=e("../shape/Droplet"),s=e("../shape/Circle");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#888",textAlign:"start"},backgroundColor:"rgba(250, 250, 250, 0.8)"}),l=this.createTextShape(i.textStyle),h=10,m=a.getTextWidth(l.highlightStyle.text,l.highlightStyle.textFont),V=a.getTextHeight(l.highlightStyle.text,l.highlightStyle.textFont),U=n.merge(this.options.effect||{},{r:18,colorIn:"#fff",colorOut:"#555",colorWhirl:"#6cf",timeInterval:50}),d=this.getLocation(this.options.textStyle,m+h+2*U.r,Math.max(2*U.r,V));U.x=d.x+U.r,U.y=l.highlightStyle.y=d.y+d.height/2,l.highlightStyle.x=U.x+U.r+h;var p=this.createBackgroundShape(i.backgroundColor),c=new r({highlightStyle:{a:Math.round(U.r/2),b:Math.round(U.r-U.r/6),brushType:"fill",color:U.colorWhirl}}),u=new s({highlightStyle:{r:Math.round(U.r/6),brushType:"fill",color:U.colorIn}}),y=new o({highlightStyle:{r0:Math.round(U.r-U.r/3),r:U.r,brushType:"fill",color:U.colorOut}}),g=[0,U.x,U.y];return c.highlightStyle.x=u.highlightStyle.x=y.highlightStyle.x=g[1],c.highlightStyle.y=u.highlightStyle.y=y.highlightStyle.y=g[2],setInterval(function(){e(p),e(y),g[0]-=.3,c.rotation=g,e(c),e(u),e(l),t()},U.timeInterval)},t}),i("echarts/theme/macarons",[],function(){var e={color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],title:{textStyle:{fontWeight:"normal",color:"#008acd"}},dataRange:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{color:["#1e90ff","#1e90ff","#1e90ff","#1e90ff"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{normal:{color:"#008acd"},emphasis:{color:"#008acd"}},symbol:"emptyCircle",symbolSize:3},bar:{itemStyle:{normal:{barBorderRadius:5},emphasis:{barBorderRadius:5}}},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},k:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",lineStyle:{color:"#d87a80",color0:"#2ec7c9"}}}},scatter:{symbol:"circle",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#d87a80"}}},emphasis:{areaStyle:{color:"#fe994e"}}}},force:{itemStyle:{normal:{linkStyle:{color:"#1e90ff"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}},textStyle:{fontFamily:"微软雅黑, Arial, Verdana, sans-serif"}};return e}),i("echarts/theme/infographic",[],function(){var e={color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],title:{textStyle:{fontWeight:"normal",color:"#27727B"}},dataRange:{x:"right",y:"center",itemWidth:5,itemHeight:25,color:["#C1232B","#FCCE10"]},toolbox:{color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#27727B"},controlStyle:{normal:{color:"#27727B"},emphasis:{color:"#27727B"}},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{normal:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3}},emphasis:{borderWidth:0}},symbol:"circle",symbolSize:3.5},k:{itemStyle:{normal:{color:"#C1232B",color0:"#B5C334",lineStyle:{width:1,color:"#C1232B",color0:"#B5C334"}}}},scatter:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(200,200,200,0.5)"},emphasis:{borderWidth:0}},symbol:"star4",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#C1232B"}}},emphasis:{areaStyle:{color:"#fe994e"},label:{textStyle:{color:"rgb(100,0,0)"}}}}},force:{itemStyle:{normal:{linkStyle:{color:"#27727B"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{center:["50%","80%"],radius:"100%",startAngle:180,endAngle:0,axisLine:{show:!0,lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]],width:"40%"}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{textStyle:{color:"#fff",fontWeight:"bolder"}},splitLine:{length:"5%",lineStyle:{color:"#fff"}},pointer:{width:"40%",length:"80%",color:"#fff"},title:{offsetCenter:[0,-20],textStyle:{color:"auto",fontSize:20}},detail:{offsetCenter:[0,0],textStyle:{color:"auto",fontSize:40}}},textStyle:{fontFamily:"微软雅黑, Arial, Verdana, sans-serif"}};return e}),i("zrender/dep/excanvas",["require"],function(){return document.createElement("canvas").getContext?G_vmlCanvasManager=!1:!function(){function e(){return this.context_||(this.context_=new f(this))}function t(e,t){var i=O.call(arguments,2);return function(){return e.apply(t,i.concat(O.call(arguments)))}}function i(e){return String(e).replace(/&/g,"&").replace(/"/g,""")}function n(e,t,i){e.namespaces[t]||e.namespaces.add(t,i,"#default#VML")}function a(e){if(n(e,"g_vml_","urn:schemas-microsoft-com:vml"),n(e,"g_o_","urn:schemas-microsoft-com:office:office"),!e.styleSheets.ex_canvas_){var t=e.createStyleSheet();t.owningElement.id="ex_canvas_",t.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function o(e){var t=e.srcElement;switch(e.propertyName){case"width":t.getContext().clearRect(),t.style.width=t.attributes.width.nodeValue+"px",t.firstChild.style.width=t.clientWidth+"px";break;case"height":t.getContext().clearRect(),t.style.height=t.attributes.height.nodeValue+"px",t.firstChild.style.height=t.clientHeight+"px"}}function r(e){var t=e.srcElement;t.firstChild&&(t.firstChild.style.width=t.clientWidth+"px",t.firstChild.style.height=t.clientHeight+"px")}function s(){return[[1,0,0],[0,1,0],[0,0,1]]}function l(e,t){for(var i=s(),n=0;3>n;n++)for(var a=0;3>a;a++){for(var o=0,r=0;3>r;r++)o+=e[n][r]*t[r][a];i[n][a]=o}return i}function h(e,t){t.fillStyle=e.fillStyle,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.shadowBlur=e.shadowBlur,t.shadowColor=e.shadowColor,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY,t.strokeStyle=e.strokeStyle,t.globalAlpha=e.globalAlpha,t.font=e.font,t.textAlign=e.textAlign,t.textBaseline=e.textBaseline,t.scaleX_=e.scaleX_,t.scaleY_=e.scaleY_,t.lineScale_=e.lineScale_}function m(e){var t=e.indexOf("(",3),i=e.indexOf(")",t+1),n=e.substring(t+1,i).split(",");return(4!=n.length||"a"!=e.charAt(3))&&(n[3]=1),n}function V(e){return parseFloat(e)/100}function U(e,t,i){return Math.min(i,Math.max(t,e))}function d(e){var t,i,n,a,o,r;if(a=parseFloat(e[0])/360%360,0>a&&a++,o=U(V(e[1]),0,1),r=U(V(e[2]),0,1),0==o)t=i=n=r;else{var s=.5>r?r*(1+o):r+o-r*o,l=2*r-s;t=p(l,s,a+1/3),i=p(l,s,a),n=p(l,s,a-1/3)}return"#"+D[Math.floor(255*t)]+D[Math.floor(255*i)]+D[Math.floor(255*n)]}function p(e,t,i){return 0>i&&i++,i>1&&i--,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}function c(e){if(e in R)return R[e];var t,i=1;if(e=String(e),"#"==e.charAt(0))t=e;else if(/^rgb/.test(e)){for(var n,a=m(e),t="#",o=0;3>o;o++)n=-1!=a[o].indexOf("%")?Math.floor(255*V(a[o])):+a[o],t+=D[U(n,0,255)];i=+a[3]}else if(/^hsl/.test(e)){var a=m(e);t=d(a),i=a[3]}else t=H[e]||e;return R[e]={color:t,alpha:i}}function u(e){if(Y[e])return Y[e];var t,i=document.createElement("div"),n=i.style;try{n.font=e,t=n.fontFamily.split(",")[0]}catch(a){}return Y[e]={style:n.fontStyle||G.style,variant:n.fontVariant||G.variant,weight:n.fontWeight||G.weight,size:n.fontSize||G.size,family:t||G.family}}function y(e,t){var i={};for(var n in e)i[n]=e[n];var a=parseFloat(t.currentStyle.fontSize),o=parseFloat(e.size);return i.size="number"==typeof e.size?e.size:-1!=e.size.indexOf("px")?o:-1!=e.size.indexOf("em")?a*o:-1!=e.size.indexOf("%")?a/100*o:-1!=e.size.indexOf("pt")?o/.75:a,i}function g(e){return e.style+" "+e.variant+" "+e.weight+" "+e.size+"px '"+e.family+"'"}function b(e){return Q[e]||"square"}function f(e){this.m_=s(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*A,this.globalAlpha=1,this.font="12px 微软雅黑",this.textAlign="left",this.textBaseline="alphabetic",this.canvas=e;var t="width:"+e.clientWidth+"px;height:"+e.clientHeight+"px;overflow:hidden;position:absolute",i=e.ownerDocument.createElement("div");i.style.cssText=t,e.appendChild(i);var n=i.cloneNode(!1);n.style.backgroundColor="#fff",n.style.filter="alpha(opacity=0)",e.appendChild(n),this.element_=i,this.scaleX_=1,this.scaleY_=1,this.lineScale_=1}function k(e,t,i,n){e.currentPath_.push({type:"bezierCurveTo",cp1x:t.x,cp1y:t.y,cp2x:i.x,cp2y:i.y,x:n.x,y:n.y}),e.currentX_=n.x,e.currentY_=n.y}function x(e,t){var i=c(e.strokeStyle),n=i.color,a=i.alpha*e.globalAlpha,o=e.lineScale_*e.lineWidth;1>o&&(a*=o),t.push("<g_vml_:stroke",' opacity="',a,'"',' joinstyle="',e.lineJoin,'"',' miterlimit="',e.miterLimit,'"',' endcap="',b(e.lineCap),'"',' weight="',o,'px"',' color="',n,'" />')}function _(e,t,i,n){var a=e.fillStyle,o=e.scaleX_,r=e.scaleY_,s=n.x-i.x,l=n.y-i.y;if(a instanceof v){var h=0,m={x:0,y:0},V=0,U=1;if("gradient"==a.type_){var d=a.x0_/o,p=a.y0_/r,u=a.x1_/o,y=a.y1_/r,g=L(e,d,p),b=L(e,u,y),f=b.x-g.x,k=b.y-g.y;h=180*Math.atan2(f,k)/Math.PI,0>h&&(h+=360),1e-6>h&&(h=0)}else{var g=L(e,a.x0_,a.y0_);m={x:(g.x-i.x)/s,y:(g.y-i.y)/l},s/=o*A,l/=r*A;var x=C.max(s,l);V=2*a.r0_/x,U=2*a.r1_/x-V}var _=a.colors_;_.sort(function(e,t){return e.offset-t.offset});for(var W=_.length,X=_[0].color,K=_[W-1].color,I=_[0].alpha*e.globalAlpha,J=_[W-1].alpha*e.globalAlpha,S=[],E=0;W>E;E++){var F=_[E];S.push(F.offset*U+V+" "+F.color)}t.push('<g_vml_:fill type="',a.type_,'"',' method="none" focus="100%"',' color="',X,'"',' color2="',K,'"',' colors="',S.join(","),'"',' opacity="',J,'"',' g_o_:opacity2="',I,'"',' angle="',h,'"',' focusposition="',m.x,",",m.y,'" />')}else if(a instanceof w){if(s&&l){var T=-i.x,z=-i.y;t.push("<g_vml_:fill",' position="',T/s*o*o,",",z/l*r*r,'"',' type="tile"',' src="',a.src_,'" />')}}else{var M=c(e.fillStyle),O=M.color,P=M.alpha*e.globalAlpha;t.push('<g_vml_:fill color="',O,'" opacity="',P,'" />')}}function L(e,t,i){var n=e.m_;return{x:A*(t*n[0][0]+i*n[1][0]+n[2][0])-M,y:A*(t*n[0][1]+i*n[1][1]+n[2][1])-M}}function W(e){return isFinite(e[0][0])&&isFinite(e[0][1])&&isFinite(e[1][0])&&isFinite(e[1][1])&&isFinite(e[2][0])&&isFinite(e[2][1])}function X(e,t,i){if(W(t)&&(e.m_=t,e.scaleX_=Math.sqrt(t[0][0]*t[0][0]+t[0][1]*t[0][1]),e.scaleY_=Math.sqrt(t[1][0]*t[1][0]+t[1][1]*t[1][1]),i)){var n=t[0][0]*t[1][1]-t[0][1]*t[1][0];e.lineScale_=z(T(n))}}function v(e){this.type_=e,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function w(e,t){switch(I(e),t){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=t;break;default:K("SYNTAX_ERR")}this.src_=e.src,this.width_=e.width,this.height_=e.height}function K(e){throw new J(e)}function I(e){e&&1==e.nodeType&&"IMG"==e.tagName||K("TYPE_MISMATCH_ERR"),"complete"!=e.readyState&&K("INVALID_STATE_ERR")}function J(e){this.code=this[e],this.message=e+": DOM Exception "+this.code}var C=Math,S=C.round,E=C.sin,F=C.cos,T=C.abs,z=C.sqrt,A=10,M=A/2,O=(+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1],Array.prototype.slice);a(document);var P={init:function(e){var i=e||document;i.createElement("canvas"),i.attachEvent("onreadystatechange",t(this.init_,this,i))},init_:function(e){for(var t=e.getElementsByTagName("canvas"),i=0;i<t.length;i++)this.initElement(t[i])},initElement:function(t){if(!t.getContext){t.getContext=e,a(t.ownerDocument),t.innerHTML="",t.attachEvent("onpropertychange",o),t.attachEvent("onresize",r);var i=t.attributes;i.width&&i.width.specified?t.style.width=i.width.nodeValue+"px":t.width=t.clientWidth,i.height&&i.height.specified?t.style.height=i.height.nodeValue+"px":t.height=t.clientHeight}return t}};P.init();for(var D=[],N=0;16>N;N++)for(var B=0;16>B;B++)D[16*N+B]=N.toString(16)+B.toString(16);var H={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#e7e7e7",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},R={},G={style:"normal",variant:"normal",weight:"normal",size:12,family:"微软雅黑"},Y={},Q={butt:"flat",round:"round"},Z=f.prototype;Z.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null),this.element_.innerHTML=""},Z.beginPath=function(){this.currentPath_=[]},Z.moveTo=function(e,t){var i=L(this,e,t);this.currentPath_.push({type:"moveTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},Z.lineTo=function(e,t){var i=L(this,e,t);this.currentPath_.push({type:"lineTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},Z.bezierCurveTo=function(e,t,i,n,a,o){var r=L(this,a,o),s=L(this,e,t),l=L(this,i,n);k(this,s,l,r)},Z.quadraticCurveTo=function(e,t,i,n){var a=L(this,e,t),o=L(this,i,n),r={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)},s={x:r.x+(o.x-this.currentX_)/3,y:r.y+(o.y-this.currentY_)/3};k(this,r,s,o)},Z.arc=function(e,t,i,n,a,o){i*=A;var r=o?"at":"wa",s=e+F(n)*i-M,l=t+E(n)*i-M,h=e+F(a)*i-M,m=t+E(a)*i-M;s!=h||o||(s+=.125);var V=L(this,e,t),U=L(this,s,l),d=L(this,h,m);this.currentPath_.push({type:r,x:V.x,y:V.y,radius:i,xStart:U.x,yStart:U.y,xEnd:d.x,yEnd:d.y})},Z.rect=function(e,t,i,n){this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.closePath()},Z.strokeRect=function(e,t,i,n){var a=this.currentPath_;this.beginPath(),this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.closePath(),this.stroke(),this.currentPath_=a},Z.fillRect=function(e,t,i,n){var a=this.currentPath_;this.beginPath(),this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.closePath(),this.fill(),this.currentPath_=a},Z.createLinearGradient=function(e,t,i,n){var a=new v("gradient");return a.x0_=e,a.y0_=t,a.x1_=i,a.y1_=n,a},Z.createRadialGradient=function(e,t,i,n,a,o){var r=new v("gradientradial");return r.x0_=e,r.y0_=t,r.r0_=i,r.x1_=n,r.y1_=a,r.r1_=o,r},Z.drawImage=function(e){var t,i,n,a,o,r,s,l,h=e.runtimeStyle.width,m=e.runtimeStyle.height;e.runtimeStyle.width="auto",e.runtimeStyle.height="auto";var V=e.width,U=e.height;if(e.runtimeStyle.width=h,e.runtimeStyle.height=m,3==arguments.length)t=arguments[1],i=arguments[2],o=r=0,s=n=V,l=a=U;else if(5==arguments.length)t=arguments[1],i=arguments[2],n=arguments[3],a=arguments[4],o=r=0,s=V,l=U;else{if(9!=arguments.length)throw Error("Invalid number of arguments");o=arguments[1],r=arguments[2],s=arguments[3],l=arguments[4],t=arguments[5],i=arguments[6],n=arguments[7],a=arguments[8]}var d=L(this,t,i),p=[],c=10,u=10,y=b=1;if(p.push(" <g_vml_:group",' coordsize="',A*c,",",A*u,'"',' coordorigin="0,0"',' style="width:',c,"px;height:",u,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var g=[],y=this.scaleX_,b=this.scaleY_;g.push("M11=",this.m_[0][0]/y,",","M12=",this.m_[1][0]/b,",","M21=",this.m_[0][1]/y,",","M22=",this.m_[1][1]/b,",","Dx=",S(d.x/A),",","Dy=",S(d.y/A),"");var f=d,k=L(this,t+n,i),x=L(this,t,i+a),_=L(this,t+n,i+a);f.x=C.max(f.x,k.x,x.x,_.x),f.y=C.max(f.y,k.y,x.y,_.y),p.push("padding:0 ",S(f.x/A),"px ",S(f.y/A),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",g.join(""),", SizingMethod='clip');")}else p.push("top:",S(d.y/A),"px;left:",S(d.x/A),"px;");p.push(' ">'),(o||r)&&p.push('<div style="overflow: hidden; width:',Math.ceil((n+o*n/s)*y),"px;"," height:",Math.ceil((a+r*a/l)*b),"px;"," filter:progid:DxImageTransform.Microsoft.Matrix(Dx=",-o*n/s*y,",Dy=",-r*a/l*b,');">'),p.push('<div style="width:',Math.round(y*V*n/s),"px;"," height:",Math.round(b*U*a/l),"px;"," filter:"),this.globalAlpha<1&&p.push(" progid:DXImageTransform.Microsoft.Alpha(opacity="+100*this.globalAlpha+")"),p.push(" progid:DXImageTransform.Microsoft.AlphaImageLoader(src=",e.src,',sizingMethod=scale)">'),(o||r)&&p.push("</div>"),p.push("</div></div>"),this.element_.insertAdjacentHTML("BeforeEnd",p.join(""))},Z.stroke=function(e){var t=[],i=10,n=10;t.push("<g_vml_:shape",' filled="',!!e,'"',' style="position:absolute;width:',i,"px;height:",n,'px;"',' coordorigin="0,0"',' coordsize="',A*i,",",A*n,'"',' stroked="',!e,'"',' path="');for(var a={x:null,y:null},o={x:null,y:null},r=0;r<this.currentPath_.length;r++){var s,l=this.currentPath_[r];switch(l.type){case"moveTo":s=l,t.push(" m ",S(l.x),",",S(l.y));break;case"lineTo":t.push(" l ",S(l.x),",",S(l.y));break;case"close":t.push(" x "),l=null;break;case"bezierCurveTo":t.push(" c ",S(l.cp1x),",",S(l.cp1y),",",S(l.cp2x),",",S(l.cp2y),",",S(l.x),",",S(l.y));break;case"at":case"wa":t.push(" ",l.type," ",S(l.x-this.scaleX_*l.radius),",",S(l.y-this.scaleY_*l.radius)," ",S(l.x+this.scaleX_*l.radius),",",S(l.y+this.scaleY_*l.radius)," ",S(l.xStart),",",S(l.yStart)," ",S(l.xEnd),",",S(l.yEnd))}l&&((null==a.x||l.x<a.x)&&(a.x=l.x),(null==o.x||l.x>o.x)&&(o.x=l.x),(null==a.y||l.y<a.y)&&(a.y=l.y),(null==o.y||l.y>o.y)&&(o.y=l.y))}t.push(' ">'),e?_(this,t,a,o):x(this,t),t.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",t.join(""))},Z.fill=function(){this.stroke(!0)},Z.closePath=function(){this.currentPath_.push({type:"close"})},Z.save=function(){var e={};h(this,e),this.aStack_.push(e),this.mStack_.push(this.m_),this.m_=l(s(),this.m_)},Z.restore=function(){this.aStack_.length&&(h(this.aStack_.pop(),this),this.m_=this.mStack_.pop())},Z.translate=function(e,t){var i=[[1,0,0],[0,1,0],[e,t,1]];X(this,l(i,this.m_),!1)},Z.rotate=function(e){var t=F(e),i=E(e),n=[[t,i,0],[-i,t,0],[0,0,1]];X(this,l(n,this.m_),!1)},Z.scale=function(e,t){var i=[[e,0,0],[0,t,0],[0,0,1]];X(this,l(i,this.m_),!0)},Z.transform=function(e,t,i,n,a,o){var r=[[e,t,0],[i,n,0],[a,o,1]];X(this,l(r,this.m_),!0)},Z.setTransform=function(e,t,i,n,a,o){var r=[[e,t,0],[i,n,0],[a,o,1]];X(this,r,!0)},Z.drawText_=function(e,t,n,a,o){var r=this.m_,s=1e3,l=0,h=s,m={x:0,y:0},V=[],U=y(u(this.font),this.element_),d=g(U),p=this.element_.currentStyle,c=this.textAlign.toLowerCase();switch(c){case"left":case"center":case"right":break;case"end":c="ltr"==p.direction?"right":"left";break;case"start":c="rtl"==p.direction?"right":"left";break;default:c="left"}switch(this.textBaseline){case"hanging":case"top":m.y=U.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":m.y=-U.size/2.25}switch(c){case"right":l=s,h=.05;break;case"center":l=h=s/2}var b=L(this,t+m.x,n+m.y);V.push('<g_vml_:line from="',-l,' 0" to="',h,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!o,'" stroked="',!!o,'" style="position:absolute;width:1px;height:1px;">'),o?x(this,V):_(this,V,{x:-l,y:0},{x:h,y:U.size});var f=r[0][0].toFixed(3)+","+r[1][0].toFixed(3)+","+r[0][1].toFixed(3)+","+r[1][1].toFixed(3)+",0,0",k=S(b.x/A)+","+S(b.y/A);V.push('<g_vml_:skew on="t" matrix="',f,'" ',' offset="',k,'" origin="',l,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',i(e),'" style="v-text-align:',c,";font:",i(d),'" /></g_vml_:line>'),this.element_.insertAdjacentHTML("beforeEnd",V.join(""))},Z.fillText=function(e,t,i,n){this.drawText_(e,t,i,n,!1)},Z.strokeText=function(e,t,i,n){this.drawText_(e,t,i,n,!0)},Z.measureText=function(e){if(!this.textMeasureEl_){var t='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",t),this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";try{this.textMeasureEl_.style.font=this.font}catch(n){}return this.textMeasureEl_.appendChild(i.createTextNode(e)),{width:this.textMeasureEl_.offsetWidth}},Z.clip=function(){},Z.arcTo=function(){},Z.createPattern=function(e,t){return new w(e,t)},v.prototype.addColorStop=function(e,t){t=c(t),this.colors_.push({offset:e,color:t.color,alpha:t.alpha})};var q=J.prototype=new Error;q.INDEX_SIZE_ERR=1,q.DOMSTRING_SIZE_ERR=2,q.HIERARCHY_REQUEST_ERR=3,q.WRONG_DOCUMENT_ERR=4,q.INVALID_CHARACTER_ERR=5,q.NO_DATA_ALLOWED_ERR=6,q.NO_MODIFICATION_ALLOWED_ERR=7,q.NOT_FOUND_ERR=8,q.NOT_SUPPORTED_ERR=9,q.INUSE_ATTRIBUTE_ERR=10,q.INVALID_STATE_ERR=11,q.SYNTAX_ERR=12,q.INVALID_MODIFICATION_ERR=13,q.NAMESPACE_ERR=14,q.INVALID_ACCESS_ERR=15,q.VALIDATION_ERR=16,q.TYPE_MISMATCH_ERR=17,G_vmlCanvasManager=P,CanvasRenderingContext2D=f,CanvasGradient=v,CanvasPattern=w,DOMException=J}(),G_vmlCanvasManager}),i("zrender/mixin/Eventful",["require"],function(){var e=function(){this._handlers={}};return e.prototype.one=function(e,t,i){var n=this._handlers;return t&&e?(n[e]||(n[e]=[]),n[e].push({h:t,one:!0,ctx:i||this}),this):this},e.prototype.bind=function(e,t,i){var n=this._handlers;return t&&e?(n[e]||(n[e]=[]),n[e].push({h:t,one:!1,ctx:i||this}),this):this},e.prototype.unbind=function(e,t){var i=this._handlers;if(!e)return this._handlers={},this;if(t){if(i[e]){for(var n=[],a=0,o=i[e].length;o>a;a++)i[e][a].h!=t&&n.push(i[e][a]);i[e]=n}i[e]&&0===i[e].length&&delete i[e]}else delete i[e];return this},e.prototype.dispatch=function(e){if(this._handlers[e]){var t=arguments,i=t.length;i>3&&(t=Array.prototype.slice.call(t,1));for(var n=this._handlers[e],a=n.length,o=0;a>o;){switch(i){case 1:n[o].h.call(n[o].ctx);break;case 2:n[o].h.call(n[o].ctx,t[1]);break;case 3:n[o].h.call(n[o].ctx,t[1],t[2]);break;default:n[o].h.apply(n[o].ctx,t)}n[o].one?(n.splice(o,1),a--):o++}}return this},e.prototype.dispatchWithContext=function(e){if(this._handlers[e]){var t=arguments,i=t.length;i>4&&(t=Array.prototype.slice.call(t,1,t.length-1));for(var n=t[t.length-1],a=this._handlers[e],o=a.length,r=0;o>r;){switch(i){case 1:a[r].h.call(n);break;case 2:a[r].h.call(n,t[1]);break;case 3:a[r].h.call(n,t[1],t[2]);break;default:a[r].h.apply(n,t)}a[r].one?(a.splice(r,1),o--):r++}}return this},e}),i("zrender/tool/log",["require","../config"],function(e){var t=e("../config");return function(){if(0!==t.debugMode)if(1==t.debugMode)for(var e in arguments)throw new Error(arguments[e]);else if(t.debugMode>1)for(var e in arguments)console.log(arguments[e])}}),i("zrender/tool/guid",[],function(){var e=2311;return function(){return"zrender__"+e++}}),i("zrender/Handler",["require","./config","./tool/env","./tool/event","./tool/util","./tool/vector","./tool/matrix","./mixin/Eventful"],function(e){"use strict";function t(e,t){return function(i,n){return e.call(t,i,n)}}function i(e,t){return function(i,n,a){return e.call(t,i,n,a)}}function n(e){for(var i=d.length;i--;){var n=d[i];e["_"+n+"Handler"]=t(c[n],e)}}function a(e,t,i){if(this._draggingTarget&&this._draggingTarget.id==e.id||e.isSilent())return!1;var n=this._event;if(e.isCover(t,i)){e.hoverable&&this.storage.addHover(e);for(var a=e.parent;a;){if(a.clipShape&&!a.clipShape.isCover(this._mouseX,this._mouseY))return!1;a=a.parent}return this._lastHover!=e&&(this._processOutShape(n),this._processDragLeave(n),this._lastHover=e,this._processDragEnter(n)),this._processOverShape(n),this._processDragOver(n),this._hasfound=1,!0}return!1}var o=e("./config"),r=e("./tool/env"),s=e("./tool/event"),l=e("./tool/util"),h=e("./tool/vector"),m=e("./tool/matrix"),V=o.EVENT,U=e("./mixin/Eventful"),d=["resize","click","dblclick","mousewheel","mousemove","mouseout","mouseup","mousedown","touchstart","touchend","touchmove"],p=function(e){if(window.G_vmlCanvasManager)return!0;e=e||window.event;var t=e.toElement||e.relatedTarget||e.srcElement||e.target;return t&&t.className.match(o.elementClassName)},c={resize:function(e){e=e||window.event,this._lastHover=null,this._isMouseDown=0,this.dispatch(V.RESIZE,e)},click:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e);var i=this._lastHover;(i&&i.clickable||!i)&&this._clickThreshold<5&&this._dispatchAgency(i,V.CLICK,e),this._mousemoveHandler(e)}},dblclick:function(e,t){if(p(e)||t){e=e||window.event,e=this._zrenderEventFixed(e);var i=this._lastHover;(i&&i.clickable||!i)&&this._clickThreshold<5&&this._dispatchAgency(i,V.DBLCLICK,e),this._mousemoveHandler(e)}},mousewheel:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e);var i=e.wheelDelta||-e.detail,n=i>0?1.1:1/1.1,a=!1,o=this._mouseX,r=this._mouseY;this.painter.eachBuildinLayer(function(t){var i=t.position;if(t.zoomable){t.__zoom=t.__zoom||1;var l=t.__zoom;l*=n,l=Math.max(Math.min(t.maxZoom,l),t.minZoom),n=l/t.__zoom,t.__zoom=l,i[0]-=(o-i[0])*(n-1),i[1]-=(r-i[1])*(n-1),t.scale[0]*=n,t.scale[1]*=n,t.dirty=!0,a=!0,s.stop(e)}}),a&&this.painter.refresh(),this._dispatchAgency(this._lastHover,V.MOUSEWHEEL,e),this._mousemoveHandler(e)}},mousemove:function(e,t){if((p(e)||t)&&!this.painter.isLoading()){e=this._zrenderEventFixed(e),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=s.getX(e),this._mouseY=s.getY(e);var i=this._mouseX-this._lastX,n=this._mouseY-this._lastY;this._processDragStart(e),this._hasfound=0,this._event=e,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(e),
    +this._processDragLeave(e)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var a="default";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,i,n),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget),this._clickThreshold++;else if(this._isMouseDown){var o=!1;this.painter.eachBuildinLayer(function(e){e.panable&&(a="move",e.position[0]+=i,e.position[1]+=n,o=!0,e.dirty=!0)}),o&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?a="move":this._hasfound&&this._lastHover.clickable&&(a="pointer"),this.root.style.cursor=a,this._dispatchAgency(this._lastHover,V.MOUSEMOVE,e),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()}},mouseout:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e);var i=e.toElement||e.relatedTarget;if(i!=this.root)for(;i&&9!=i.nodeType;){if(i==this.root)return void this._mousemoveHandler(e);i=i.parentNode}e.zrenderX=this._lastX,e.zrenderY=this._lastY,this.root.style.cursor="default",this._isMouseDown=0,this._processOutShape(e),this._processDrop(e),this._processDragEnd(e),this.painter.isLoading()||this.painter.refreshHover(),this.dispatch(V.GLOBALOUT,e)}},mousedown:function(e,t){if(p(e)||t){if(this._clickThreshold=0,2==this._lastDownButton)return this._lastDownButton=e.button,void(this._mouseDownTarget=null);this._lastMouseDownMoment=new Date,e=this._zrenderEventFixed(e),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,V.MOUSEDOWN,e),this._lastDownButton=e.button}},mouseup:function(e,t){(p(e)||t)&&(e=this._zrenderEventFixed(e),this.root.style.cursor="default",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,V.MOUSEUP,e),this._processDrop(e),this._processDragEnd(e))},touchstart:function(e,t){(p(e)||t)&&(e=this._zrenderEventFixed(e,!0),this._lastTouchMoment=new Date,this._mobileFindFixed(e),this._mousedownHandler(e))},touchmove:function(e,t){(p(e)||t)&&(e=this._zrenderEventFixed(e,!0),this._mousemoveHandler(e),this._isDragging&&s.stop(e))},touchend:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e,!0),this._mouseupHandler(e);var i=new Date;i-this._lastTouchMoment<V.touchClickDelay&&(this._mobileFindFixed(e),this._clickHandler(e),i-this._lastClickMoment<V.touchClickDelay/2&&(this._dblclickHandler(e),this._lastHover&&this._lastHover.clickable&&s.stop(e)),this._lastClickMoment=i),this.painter.clearHover()}}},u=function(e,t,o){U.call(this),this.root=e,this.storage=t,this.painter=o,this._lastX=this._lastY=this._mouseX=this._mouseY=0,this._findHover=i(a,this),this._domHover=o.getDomHover(),n(this),window.addEventListener?(window.addEventListener("resize",this._resizeHandler),r.os.tablet||r.os.phone?(e.addEventListener("touchstart",this._touchstartHandler),e.addEventListener("touchmove",this._touchmoveHandler),e.addEventListener("touchend",this._touchendHandler)):(e.addEventListener("click",this._clickHandler),e.addEventListener("dblclick",this._dblclickHandler),e.addEventListener("mousewheel",this._mousewheelHandler),e.addEventListener("mousemove",this._mousemoveHandler),e.addEventListener("mousedown",this._mousedownHandler),e.addEventListener("mouseup",this._mouseupHandler)),e.addEventListener("DOMMouseScroll",this._mousewheelHandler),e.addEventListener("mouseout",this._mouseoutHandler)):(window.attachEvent("onresize",this._resizeHandler),e.attachEvent("onclick",this._clickHandler),e.ondblclick=this._dblclickHandler,e.attachEvent("onmousewheel",this._mousewheelHandler),e.attachEvent("onmousemove",this._mousemoveHandler),e.attachEvent("onmouseout",this._mouseoutHandler),e.attachEvent("onmousedown",this._mousedownHandler),e.attachEvent("onmouseup",this._mouseupHandler))};u.prototype.on=function(e,t,i){return this.bind(e,t,i),this},u.prototype.un=function(e,t){return this.unbind(e,t),this},u.prototype.trigger=function(e,t){switch(e){case V.RESIZE:case V.CLICK:case V.DBLCLICK:case V.MOUSEWHEEL:case V.MOUSEMOVE:case V.MOUSEDOWN:case V.MOUSEUP:case V.MOUSEOUT:this["_"+e+"Handler"](t,!0)}},u.prototype.dispose=function(){var e=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),r.os.tablet||r.os.phone?(e.removeEventListener("touchstart",this._touchstartHandler),e.removeEventListener("touchmove",this._touchmoveHandler),e.removeEventListener("touchend",this._touchendHandler)):(e.removeEventListener("click",this._clickHandler),e.removeEventListener("dblclick",this._dblclickHandler),e.removeEventListener("mousewheel",this._mousewheelHandler),e.removeEventListener("mousemove",this._mousemoveHandler),e.removeEventListener("mousedown",this._mousedownHandler),e.removeEventListener("mouseup",this._mouseupHandler)),e.removeEventListener("DOMMouseScroll",this._mousewheelHandler),e.removeEventListener("mouseout",this._mouseoutHandler)):(window.detachEvent("onresize",this._resizeHandler),e.detachEvent("onclick",this._clickHandler),e.detachEvent("dblclick",this._dblclickHandler),e.detachEvent("onmousewheel",this._mousewheelHandler),e.detachEvent("onmousemove",this._mousemoveHandler),e.detachEvent("onmouseout",this._mouseoutHandler),e.detachEvent("onmousedown",this._mousedownHandler),e.detachEvent("onmouseup",this._mouseupHandler)),this.root=this._domHover=this.storage=this.painter=null,this.un()},u.prototype._processDragStart=function(e){var t=this._lastHover;if(this._isMouseDown&&t&&t.draggable&&!this._draggingTarget&&this._mouseDownTarget==t){if(t.dragEnableTime&&new Date-this._lastMouseDownMoment<t.dragEnableTime)return;var i=t;this._draggingTarget=i,this._isDragging=1,i.invisible=!0,this.storage.mod(i.id),this._dispatchAgency(i,V.DRAGSTART,e),this.painter.refresh()}},u.prototype._processDragEnter=function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,V.DRAGENTER,e,this._draggingTarget)},u.prototype._processDragOver=function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,V.DRAGOVER,e,this._draggingTarget)},u.prototype._processDragLeave=function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,V.DRAGLEAVE,e,this._draggingTarget)},u.prototype._processDrop=function(e){this._draggingTarget&&(this._draggingTarget.invisible=!1,this.storage.mod(this._draggingTarget.id),this.painter.refresh(),this._dispatchAgency(this._lastHover,V.DROP,e,this._draggingTarget))},u.prototype._processDragEnd=function(e){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,V.DRAGEND,e),this._lastHover=null),this._isDragging=0,this._draggingTarget=null},u.prototype._processOverShape=function(e){this._dispatchAgency(this._lastHover,V.MOUSEOVER,e)},u.prototype._processOutShape=function(e){this._dispatchAgency(this._lastHover,V.MOUSEOUT,e)},u.prototype._dispatchAgency=function(e,t,i,n){var a="on"+t,o={type:t,event:i,target:e,cancelBubble:!1},r=e;for(n&&(o.dragged=n);r&&(r[a]&&(o.cancelBubble=r[a](o)),r.dispatch(t,o),r=r.parent,!o.cancelBubble););if(e)o.cancelBubble||this.dispatch(t,o);else if(!n){var s={type:t,event:i};this.dispatch(t,s),this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a](s),e.dispatch&&e.dispatch(t,s)})}},u.prototype._iterateAndFindHover=function(){var e=m.create();return function(){for(var t,i,n=this.storage.getShapeList(),a=[0,0],o=n.length-1;o>=0;o--){var r=n[o];if(t!==r.zlevel&&(i=this.painter.getLayer(r.zlevel,i),a[0]=this._mouseX,a[1]=this._mouseY,i.needTransform&&(m.invert(e,i.transform),h.applyTransform(a,a,e))),this._findHover(r,a[0],a[1]))break}}}();var y=[{x:10},{x:-20},{x:10,y:10},{y:-20}];return u.prototype._mobileFindFixed=function(e){this._lastHover=null,this._mouseX=e.zrenderX,this._mouseY=e.zrenderY,this._event=e,this._iterateAndFindHover();for(var t=0;!this._lastHover&&t<y.length;t++){var i=y[t];i.x&&(this._mouseX+=i.x),i.y&&(this._mouseY+=i.y),this._iterateAndFindHover()}this._lastHover&&(e.zrenderX=this._mouseX,e.zrenderY=this._mouseY)},u.prototype._zrenderEventFixed=function(e,t){if(e.zrenderFixed)return e;if(t){var i="touchend"!=e.type?e.targetTouches[0]:e.changedTouches[0];if(i){var n=this.painter._domRoot.getBoundingClientRect();e.zrenderX=i.clientX-n.left,e.zrenderY=i.clientY-n.top}}else{e=e||window.event;var a=e.toElement||e.relatedTarget||e.srcElement||e.target;a&&a!=this._domHover&&(e.zrenderX=("undefined"!=typeof e.offsetX?e.offsetX:e.layerX)+a.offsetLeft,e.zrenderY=("undefined"!=typeof e.offsetY?e.offsetY:e.layerY)+a.offsetTop)}return e.zrenderFixed=1,e},l.merge(u.prototype,U.prototype,!0),u}),i("zrender/Painter",["require","./config","./tool/util","./tool/log","./loadingEffect/Base","./Layer","./shape/Image"],function(e){"use strict";function t(){return!1}function i(){}function n(e){return e?e.isBuildin?!0:"function"!=typeof e.resize||"function"!=typeof e.refresh?!1:!0:!1}var a=e("./config"),o=e("./tool/util"),r=e("./tool/log"),s=e("./loadingEffect/Base"),l=e("./Layer"),h=function(e,i){this.root=e,e.style["-webkit-tap-highlight-color"]="transparent",e.style["-webkit-user-select"]="none",e.style["user-select"]="none",e.style["-webkit-touch-callout"]="none",this.storage=i,e.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var n=document.createElement("div");this._domRoot=n,n.style.position="relative",n.style.overflow="hidden",n.style.width=this._width+"px",n.style.height=this._height+"px",e.appendChild(n),this._layers={},this._zlevelList=[],this._layerConfig={},this._loadingEffect=new s({}),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=document.createElement("div"),this._bgDom.style.cssText=["position:absolute;left:0px;top:0px;width:",this._width,"px;height:",this._height+"px;","-webkit-user-select:none;user-select;none;","-webkit-touch-callout:none;"].join(""),this._bgDom.setAttribute("data-zr-dom-id","bg"),this._bgDom.className=a.elementClassName,n.appendChild(this._bgDom),this._bgDom.onselectstart=t;var o=new l("_zrender_hover_",this);this._layers.hover=o,n.appendChild(o.dom),o.initContext(),o.dom.onselectstart=t,o.dom.style["-webkit-user-select"]="none",o.dom.style["user-select"]="none",o.dom.style["-webkit-touch-callout"]="none",this.refreshNextFrame=null};return h.prototype.render=function(e){return this.isLoading()&&this.hideLoading(),this.refresh(e,!0),this},h.prototype.refresh=function(e,t){var i=this.storage.getShapeList(!0);this._paintList(i,t);for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n],o=this._layers[a];!o.isBuildin&&o.refresh&&o.refresh()}return"function"==typeof e&&e(),this},h.prototype._preProcessLayer=function(e){e.unusedCount++,e.updateTransform()},h.prototype._postProcessLayer=function(e){e.dirty=!1,1==e.unusedCount&&e.clear()},h.prototype._paintList=function(e,t){"undefined"==typeof t&&(t=!1),this._updateLayerStatus(e);var i,n,o;this.eachBuildinLayer(this._preProcessLayer);for(var s=0,l=e.length;l>s;s++){var h=e[s];if(n!==h.zlevel&&(i&&(i.needTransform&&o.restore(),o.flush&&o.flush()),n=h.zlevel,i=this.getLayer(n),i.isBuildin||r("ZLevel "+n+" has been used by unkown layer "+i.id),o=i.ctx,i.unusedCount=0,(i.dirty||t)&&i.clear(),i.needTransform&&(o.save(),i.setTransform(o))),(i.dirty||t)&&!h.invisible&&(!h.onbrush||h.onbrush&&!h.onbrush(o,!1)))if(a.catchBrushException)try{h.brush(o,!1,this.refreshNextFrame)}catch(m){r(m,"brush error of "+h.type,h)}else h.brush(o,!1,this.refreshNextFrame);h.__dirty=!1}i&&(i.needTransform&&o.restore(),o.flush&&o.flush()),this.eachBuildinLayer(this._postProcessLayer)},h.prototype.getLayer=function(e){var t=this._layers[e];return t||(t=new l(e,this),t.isBuildin=!0,this._layerConfig[e]&&o.merge(t,this._layerConfig[e],!0),t.updateTransform(),this.insertLayer(e,t),t.initContext()),t},h.prototype.insertLayer=function(e,t){if(this._layers[e])return void r("ZLevel "+e+" has been used already");if(!n(t))return void r("Layer of zlevel "+e+" is not valid");var i=this._zlevelList.length,a=null,o=-1;if(i>0&&e>this._zlevelList[0]){for(o=0;i-1>o&&!(this._zlevelList[o]<e&&this._zlevelList[o+1]>e);o++);a=this._layers[this._zlevelList[o]]}this._zlevelList.splice(o+1,0,e);var s=a?a.dom:this._bgDom;s.nextSibling?s.parentNode.insertBefore(t.dom,s.nextSibling):s.parentNode.appendChild(t.dom),this._layers[e]=t},h.prototype.eachLayer=function(e,t){for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i];e.call(t,this._layers[n],n)}},h.prototype.eachBuildinLayer=function(e,t){for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i],a=this._layers[n];a.isBuildin&&e.call(t,a,n)}},h.prototype.eachOtherLayer=function(e,t){for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i],a=this._layers[n];a.isBuildin||e.call(t,a,n)}},h.prototype.getLayers=function(){return this._layers},h.prototype._updateLayerStatus=function(e){var t=this._layers,i={};this.eachBuildinLayer(function(e,t){i[t]=e.elCount,e.elCount=0});for(var n=0,a=e.length;a>n;n++){var o=e[n],r=o.zlevel,s=t[r];if(s){if(s.elCount++,s.dirty)continue;s.dirty=o.__dirty}}this.eachBuildinLayer(function(e,t){i[t]!==e.elCount&&(e.dirty=!0)})},h.prototype.refreshShapes=function(e,t){for(var i=0,n=e.length;n>i;i++){var a=e[i];a.modSelf()}return this.refresh(t),this},h.prototype.setLoadingEffect=function(e){return this._loadingEffect=e,this},h.prototype.clear=function(){return this.eachBuildinLayer(this._clearLayer),this},h.prototype._clearLayer=function(e){e.clear()},h.prototype.modLayer=function(e,t){if(t){this._layerConfig[e]?o.merge(this._layerConfig[e],t,!0):this._layerConfig[e]=t;var i=this._layers[e];i&&o.merge(i,this._layerConfig[e],!0)}},h.prototype.delLayer=function(e){var t=this._layers[e];t&&(this.modLayer(e,{position:t.position,rotation:t.rotation,scale:t.scale}),t.dom.parentNode.removeChild(t.dom),delete this._layers[e],this._zlevelList.splice(o.indexOf(this._zlevelList,e),1))},h.prototype.refreshHover=function(){this.clearHover();for(var e=this.storage.getHoverShapes(!0),t=0,i=e.length;i>t;t++)this._brushHover(e[t]);var n=this._layers.hover.ctx;return n.flush&&n.flush(),this.storage.delHover(),this},h.prototype.clearHover=function(){var e=this._layers.hover;return e&&e.clear(),this},h.prototype.showLoading=function(e){return this._loadingEffect&&this._loadingEffect.stop(),e&&this.setLoadingEffect(e),this._loadingEffect.start(this),this.loading=!0,this},h.prototype.hideLoading=function(){return this._loadingEffect.stop(),this.clearHover(),this.loading=!1,this},h.prototype.isLoading=function(){return this.loading},h.prototype.resize=function(){var e=this._domRoot;e.style.display="none";var t=this._getWidth(),i=this._getHeight();if(e.style.display="",this._width!=t||i!=this._height){this._width=t,this._height=i,e.style.width=t+"px",e.style.height=i+"px";for(var n in this._layers)this._layers[n].resize(t,i);this.refresh(null,!0)}return this},h.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},h.prototype.dispose=function(){this.isLoading()&&this.hideLoading(),this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},h.prototype.getDomHover=function(){return this._layers.hover.dom},h.prototype.toDataURL=function(e,t,i){if(window.G_vmlCanvasManager)return null;var n=new l("image",this);this._bgDom.appendChild(n.dom),n.initContext();var o=n.ctx;n.clearColor=t||"#fff",n.clear();var s=this;this.storage.iterShape(function(e){if(!e.invisible&&(!e.onbrush||e.onbrush&&!e.onbrush(o,!1)))if(a.catchBrushException)try{e.brush(o,!1,s.refreshNextFrame)}catch(t){r(t,"brush error of "+e.type,e)}else e.brush(o,!1,s.refreshNextFrame)},{normal:"up",update:!0});var h=n.dom.toDataURL(e,i);return o=null,this._bgDom.removeChild(n.dom),h},h.prototype.getWidth=function(){return this._width},h.prototype.getHeight=function(){return this._height},h.prototype._getWidth=function(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10)).toFixed(0)-0},h.prototype._getHeight=function(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)).toFixed(0)-0},h.prototype._brushHover=function(e){var t=this._layers.hover.ctx;if(!e.onbrush||e.onbrush&&!e.onbrush(t,!0)){var i=this.getLayer(e.zlevel);if(i.needTransform&&(t.save(),i.setTransform(t)),a.catchBrushException)try{e.brush(t,!0,this.refreshNextFrame)}catch(n){r(n,"hoverBrush error of "+e.type,e)}else e.brush(t,!0,this.refreshNextFrame);i.needTransform&&t.restore()}},h.prototype._shapeToImage=function(t,i,n,a,o){var r=document.createElement("canvas"),s=r.getContext("2d");r.style.width=n+"px",r.style.height=a+"px",r.setAttribute("width",n*o),r.setAttribute("height",a*o),s.clearRect(0,0,n*o,a*o);var l={position:i.position,rotation:i.rotation,scale:i.scale};i.position=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s,!1);var h=e("./shape/Image"),m=new h({id:t,style:{x:0,y:0,image:r}});return null!=l.position&&(m.position=i.position=l.position),null!=l.rotation&&(m.rotation=i.rotation=l.rotation),null!=l.scale&&(m.scale=i.scale=l.scale),m},h.prototype._createShapeToImageProcessor=function(){if(window.G_vmlCanvasManager)return i;var e=this;return function(t,i,n,o){return e._shapeToImage(t,i,n,o,a.devicePixelRatio)}},h}),i("zrender/Storage",["require","./tool/util","./Group"],function(e){"use strict";function t(e,t){return e.zlevel==t.zlevel?e.z==t.z?e.__renderidx-t.__renderidx:e.z-t.z:e.zlevel-t.zlevel}var i=e("./tool/util"),n=e("./Group"),a={hover:!1,normal:"down",update:!1},o=function(){this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],this._shapeListOffset=0};return o.prototype.iterShape=function(e,t){if(t||(t=a),t.hover)for(var i=0,n=this._hoverElements.length;n>i;i++){var o=this._hoverElements[i];if(o.updateTransform(),e(o))return this}switch(t.update&&this.updateShapeList(),t.normal){case"down":for(var n=this._shapeList.length;n--;)if(e(this._shapeList[n]))return this;break;default:for(var i=0,n=this._shapeList.length;n>i;i++)if(e(this._shapeList[i]))return this}return this},o.prototype.getHoverShapes=function(e){for(var i=[],n=0,a=this._hoverElements.length;a>n;n++){i.push(this._hoverElements[n]);var o=this._hoverElements[n].hoverConnect;if(o){var r;o=o instanceof Array?o:[o];for(var s=0,l=o.length;l>s;s++)r=o[s].id?o[s]:this.get(o[s]),r&&i.push(r)}}if(i.sort(t),e)for(var n=0,a=i.length;a>n;n++)i[n].updateTransform();return i},o.prototype.getShapeList=function(e){return e&&this.updateShapeList(),this._shapeList},o.prototype.updateShapeList=function(){this._shapeListOffset=0;for(var e=0,i=this._roots.length;i>e;e++){var n=this._roots[e];this._updateAndAddShape(n)}this._shapeList.length=this._shapeListOffset;for(var e=0,i=this._shapeList.length;i>e;e++)this._shapeList[e].__renderidx=e;this._shapeList.sort(t)},o.prototype._updateAndAddShape=function(e,t){if(!e.ignore)if(e.updateTransform(),e.clipShape&&(e.clipShape.parent=e,e.clipShape.updateTransform(),t?(t=t.slice(),t.push(e.clipShape)):t=[e.clipShape]),"group"==e.type){for(var i=0;i<e._children.length;i++){var n=e._children[i];n.__dirty=e.__dirty||n.__dirty,this._updateAndAddShape(n,t)}e.__dirty=!1}else e.__clipShapes=t,this._shapeList[this._shapeListOffset++]=e},o.prototype.mod=function(e,t){if("string"==typeof e&&(e=this._elements[e]),e&&(e.modSelf(),t))if(t.parent||t._storage||t.__clipShapes){var n={};for(var a in t)"parent"!==a&&"_storage"!==a&&"__clipShapes"!==a&&t.hasOwnProperty(a)&&(n[a]=t[a]);i.merge(e,n,!0)}else i.merge(e,t,!0);return this},o.prototype.drift=function(e,t,i){var n=this._elements[e];return n&&(n.needTransform=!0,"horizontal"===n.draggable?i=0:"vertical"===n.draggable&&(t=0),(!n.ondrift||n.ondrift&&!n.ondrift(t,i))&&n.drift(t,i)),this},o.prototype.addHover=function(e){return e.updateNeedTransform(),this._hoverElements.push(e),this},o.prototype.delHover=function(){return this._hoverElements=[],this},o.prototype.hasHoverShape=function(){return this._hoverElements.length>0},o.prototype.addRoot=function(e){this._elements[e.id]||(e instanceof n&&e.addChildrenToStorage(this),this.addToMap(e),this._roots.push(e))},o.prototype.delRoot=function(e){if("undefined"==typeof e){for(var t=0;t<this._roots.length;t++){var a=this._roots[t];a instanceof n&&a.delChildrenFromStorage(this)}return this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],void(this._shapeListOffset=0)}if(e instanceof Array)for(var t=0,o=e.length;o>t;t++)this.delRoot(e[t]);else{var r;r="string"==typeof e?this._elements[e]:e;var s=i.indexOf(this._roots,r);s>=0&&(this.delFromMap(r.id),this._roots.splice(s,1),r instanceof n&&r.delChildrenFromStorage(this))}},o.prototype.addToMap=function(e){return e instanceof n&&(e._storage=this),e.modSelf(),this._elements[e.id]=e,this},o.prototype.get=function(e){return this._elements[e]},o.prototype.delFromMap=function(e){var t=this._elements[e];return t&&(delete this._elements[e],t instanceof n&&(t._storage=null)),this},o.prototype.dispose=function(){this._elements=this._renderList=this._roots=this._hoverElements=null},o}),i("zrender/animation/Animation",["require","./Clip","../tool/color","../tool/util","../tool/event"],function(e){"use strict";function t(e,t){return e[t]}function i(e,t,i){e[t]=i}function n(e,t,i){return(t-e)*i+e}function a(e,t,i,a,o){var r=e.length;if(1==o)for(var s=0;r>s;s++)a[s]=n(e[s],t[s],i);else for(var l=e[0].length,s=0;r>s;s++)for(var h=0;l>h;h++)a[s][h]=n(e[s][h],t[s][h],i)}function o(e){switch(typeof e){case"undefined":case"string":return!1}return"undefined"!=typeof e.length}function r(e,t,i,n,a,o,r,l,h){var m=e.length;if(1==h)for(var V=0;m>V;V++)l[V]=s(e[V],t[V],i[V],n[V],a,o,r);else for(var U=e[0].length,V=0;m>V;V++)for(var d=0;U>d;d++)l[V][d]=s(e[V][d],t[V][d],i[V][d],n[V][d],a,o,r)}function s(e,t,i,n,a,o,r){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*r+(-3*(t-i)-2*s-l)*o+s*a+t}function l(e){if(o(e)){var t=e.length;if(o(e[0])){for(var i=[],n=0;t>n;n++)i.push(c.call(e[n]));return i}return c.call(e)}return e}function h(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var m=e("./Clip"),V=e("../tool/color"),U=e("../tool/util"),d=e("../tool/event").Dispatcher,p=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},c=Array.prototype.slice,u=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time=0,d.call(this)};u.prototype={add:function(e){this._clips.push(e)},remove:function(e){if(e.__inStep)e.__needsRemove=!0;else{var t=U.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)}},_update:function(){for(var e=(new Date).getTime(),t=e-this._time,i=this._clips,n=i.length,a=[],o=[],r=0;n>r;r++){var s=i[r];s.__inStep=!0;var l=s.step(e);s.__inStep=!1,l&&(a.push(l),o.push(s))}for(var r=0;n>r;)i[r].__needsRemove?(i[r]=i[n-1],i.pop(),n--):r++;n=a.length;for(var r=0;n>r;r++)o[r].fire(a[r]);this._time=e,this.onframe(t),this.dispatch("frame",t),this.stage.update&&this.stage.update()},start:function(){function e(){t._running&&(p(e),t._update())}var t=this;this._running=!0,this._time=(new Date).getTime(),p(e)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(e,t){t=t||{};var i=new y(e,t.loop,t.getter,t.setter);return i.animation=this,i},constructor:u},U.merge(u.prototype,d.prototype,!0);var y=function(e,n,a,o){this._tracks={},this._target=e,this._loop=n||!1,this._getter=a||t,this._setter=o||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y.prototype={when:function(e,t){for(var i in t)this._tracks[i]||(this._tracks[i]=[],0!==e&&this._tracks[i].push({time:0,value:l(this._getter(this._target,i))})),this._tracks[i].push({time:parseInt(e,10),value:t[i]});return this},during:function(e){return this._onframeList.push(e),this},start:function(e){var t=this,i=this._setter,l=this._getter,U="spline"===e,d=function(){if(t._clipCount--,0===t._clipCount){t._tracks={};for(var e=t._doneList.length,i=0;e>i;i++)t._doneList[i].call(t)}},p=function(p,c){var u=p.length;if(u){var y=p[0].value,g=o(y),b=!1,f=g&&o(y[0])?2:1;p.sort(function(e,t){return e.time-t.time});var k;if(u){k=p[u-1].time;for(var x=[],_=[],L=0;u>L;L++){x.push(p[L].time/k);var W=p[L].value;"string"==typeof W&&(W=V.toArray(W),0===W.length&&(W[0]=W[1]=W[2]=0,W[3]=1),b=!0),_.push(W)}var X,L,v,w,K,I,J,C=0,S=0;if(b)var E=[0,0,0,0];var F=function(e,o){if(S>o){for(X=Math.min(C+1,u-1),L=X;L>=0&&!(x[L]<=o);L--);L=Math.min(L,u-2)}else{for(L=C;u>L&&!(x[L]>o);L++);L=Math.min(L-1,u-2)}C=L,S=o;var m=x[L+1]-x[L];if(0!==m){if(v=(o-x[L])/m,U)if(K=_[L],w=_[0===L?L:L-1],I=_[L>u-2?u-1:L+1],J=_[L>u-3?u-1:L+2],g)r(w,K,I,J,v,v*v,v*v*v,l(e,c),f);else{var V;b?(V=r(w,K,I,J,v,v*v,v*v*v,E,1),V=h(E)):V=s(w,K,I,J,v,v*v,v*v*v),i(e,c,V)}else if(g)a(_[L],_[L+1],v,l(e,c),f);else{var V;b?(a(_[L],_[L+1],v,E,1),V=h(E)):V=n(_[L],_[L+1],v),i(e,c,V)}for(L=0;L<t._onframeList.length;L++)t._onframeList[L](e,o)}},T=new m({target:t._target,life:k,loop:t._loop,delay:t._delay,onframe:F,ondestroy:d});e&&"spline"!==e&&(T.easing=e),t._clipList.push(T),t._clipCount++,t.animation.add(T)}}};for(var c in this._tracks)p(this._tracks[c],c);return this},stop:function(){for(var e=0;e<this._clipList.length;e++){var t=this._clipList[e];this.animation.remove(t)}this._clipList=[]},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this}},u}),i("zrender/tool/vector",[],function(){var e="undefined"==typeof Float32Array?Array:Float32Array,t={create:function(t,i){var n=new e(2);return n[0]=t||0,n[1]=i||0,n},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},clone:function(t){var i=new e(2);return i[0]=t[0],i[1]=t[1],i},set:function(e,t,i){return e[0]=t,e[1]=i,e},add:function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e},scaleAndAdd:function(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e},sub:function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e},len:function(e){return Math.sqrt(this.lenSquare(e))},lenSquare:function(e){return e[0]*e[0]+e[1]*e[1]},mul:function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e},div:function(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e},normalize:function(e,i){var n=t.len(i);return 0===n?(e[0]=0,e[1]=0):(e[0]=i[0]/n,e[1]=i[1]/n),e},distance:function(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))},distanceSquare:function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},lerp:function(e,t,i,n){return e[0]=t[0]+n*(i[0]-t[0]),e[1]=t[1]+n*(i[1]-t[1]),e},applyTransform:function(e,t,i){var n=t[0],a=t[1];return e[0]=i[0]*n+i[2]*a+i[4],e[1]=i[1]*n+i[3]*a+i[5],e},min:function(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e},max:function(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}};return t.length=t.len,t.lengthSquare=t.lenSquare,t.dist=t.distance,t.distSquare=t.distanceSquare,t}),i("zrender/tool/matrix",[],function(){var e="undefined"==typeof Float32Array?Array:Float32Array,t={create:function(){var i=new e(6);return t.identity(i),i},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},mul:function(e,t,i){return e[0]=t[0]*i[0]+t[2]*i[1],e[1]=t[1]*i[0]+t[3]*i[1],e[2]=t[0]*i[2]+t[2]*i[3],e[3]=t[1]*i[2]+t[3]*i[3],e[4]=t[0]*i[4]+t[2]*i[5]+t[4],e[5]=t[1]*i[4]+t[3]*i[5]+t[5],e},translate:function(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e},rotate:function(e,t,i){var n=t[0],a=t[2],o=t[4],r=t[1],s=t[3],l=t[5],h=Math.sin(i),m=Math.cos(i);return e[0]=n*m+r*h,e[1]=-n*h+r*m,e[2]=a*m+s*h,e[3]=-a*h+m*s,e[4]=m*o+h*l,e[5]=m*l-h*o,e},scale:function(e,t,i){var n=i[0],a=i[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e},invert:function(e,t){var i=t[0],n=t[2],a=t[4],o=t[1],r=t[3],s=t[5],l=i*r-o*n;return l?(l=1/l,e[0]=r*l,e[1]=-o*l,e[2]=-n*l,e[3]=i*l,e[4]=(n*s-r*a)*l,e[5]=(o*a-i*s)*l,e):null}};return t}),i("zrender/loadingEffect/Base",["require","../tool/util","../shape/Text","../shape/Rectangle"],function(e){function t(e){this.setOptions(e)}var i=e("../tool/util"),n=e("../shape/Text"),a=e("../shape/Rectangle"),o="Loading...",r="normal 16px Arial";return t.prototype.createTextShape=function(e){return new n({highlightStyle:i.merge({x:this.canvasWidth/2,y:this.canvasHeight/2,text:o,textAlign:"center",textBaseline:"middle",textFont:r,color:"#333",brushType:"fill"},e,!0)})},t.prototype.createBackgroundShape=function(e){return new a({highlightStyle:{x:0,y:0,width:this.canvasWidth,height:this.canvasHeight,brushType:"fill",color:e}})},t.prototype.start=function(e){function t(t){e.storage.addHover(t)}function i(){e.refreshHover()}this.canvasWidth=e._width,this.canvasHeight=e._height,this.loadingTimer=this._start(t,i)},t.prototype._start=function(){return setInterval(function(){},1e4)},t.prototype.stop=function(){clearInterval(this.loadingTimer)},t.prototype.setOptions=function(e){this.options=e||{}},t.prototype.adjust=function(e,t){return e<=t[0]?e=t[0]:e>=t[1]&&(e=t[1]),e},t.prototype.getLocation=function(e,t,i){var n=null!=e.x?e.x:"center";switch(n){case"center":n=Math.floor((this.canvasWidth-t)/2);break;case"left":n=0;break;case"right":n=this.canvasWidth-t}var a=null!=e.y?e.y:"center";switch(a){case"center":a=Math.floor((this.canvasHeight-i)/2);break;case"top":a=0;break;case"bottom":a=this.canvasHeight-i}return{x:n,y:a,width:t,height:i}},t}),i("zrender/Layer",["require","./mixin/Transformable","./tool/util","./config"],function(e){function t(){return!1}function i(e,t,i){var n=document.createElement(t),a=i.getWidth(),o=i.getHeight();return n.style.position="absolute",n.style.left=0,n.style.top=0,n.style.width=a+"px",n.style.height=o+"px",n.width=a*r.devicePixelRatio,n.height=o*r.devicePixelRatio,n.setAttribute("data-zr-dom-id",e),n}var n=e("./mixin/Transformable"),a=e("./tool/util"),o=window.G_vmlCanvasManager,r=e("./config"),s=function(e,a){this.id=e,this.dom=i(e,"canvas",a),this.dom.onselectstart=t,this.dom.style["-webkit-user-select"]="none",this.dom.style["user-select"]="none",this.dom.style["-webkit-touch-callout"]="none",this.dom.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",this.dom.className=r.elementClassName,o&&o.initElement(this.dom),this.domBack=null,this.ctxBack=null,this.painter=a,this.unusedCount=0,this.config=null,this.dirty=!0,this.elCount=0,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.zoomable=!1,this.panable=!1,this.maxZoom=1/0,this.minZoom=0,n.call(this)};return s.prototype.initContext=function(){this.ctx=this.dom.getContext("2d");var e=r.devicePixelRatio;1!=e&&this.ctx.scale(e,e)},s.prototype.createBackBuffer=function(){if(!o){this.domBack=i("back-"+this.id,"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d");var e=r.devicePixelRatio;1!=e&&this.ctxBack.scale(e,e)}},s.prototype.resize=function(e,t){var i=r.devicePixelRatio;this.dom.style.width=e+"px",this.dom.style.height=t+"px",this.dom.setAttribute("width",e*i),this.dom.setAttribute("height",t*i),1!=i&&this.ctx.scale(i,i),this.domBack&&(this.domBack.setAttribute("width",e*i),this.domBack.setAttribute("height",t*i),1!=i&&this.ctxBack.scale(i,i))},s.prototype.clear=function(){var e=this.dom,t=this.ctx,i=e.width,n=e.height,a=this.clearColor&&!o,s=this.motionBlur&&!o,l=this.lastFrameAlpha,h=r.devicePixelRatio;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/h,n/h)),t.clearRect(0,0,i/h,n/h),a&&(t.save(),t.fillStyle=this.clearColor,t.fillRect(0,0,i/h,n/h),t.restore()),s){var m=this.domBack;t.save(),t.globalAlpha=l,t.drawImage(m,0,0,i/h,n/h),t.restore()}},a.merge(s.prototype,n.prototype),s}),i("zrender/shape/Text",["require","../tool/area","./Base","../tool/util"],function(e){
    +var t=e("../tool/area"),i=e("./Base"),n=function(e){i.call(this,e)};return n.prototype={type:"text",brush:function(e,i){var n=this.style;if(i&&(n=this.getHighlightStyle(n,this.highlightStyle||{})),"undefined"!=typeof n.text&&n.text!==!1){e.save(),this.doClip(e),this.setContext(e,n),this.setTransform(e),n.textFont&&(e.font=n.textFont),e.textAlign=n.textAlign||"start",e.textBaseline=n.textBaseline||"middle";var a,o=(n.text+"").split("\n"),r=t.getTextHeight("国",n.textFont),s=this.getRect(n),l=n.x;a="top"==n.textBaseline?s.y:"bottom"==n.textBaseline?s.y+r:s.y+r/2;for(var h=0,m=o.length;m>h;h++){if(n.maxWidth)switch(n.brushType){case"fill":e.fillText(o[h],l,a,n.maxWidth);break;case"stroke":e.strokeText(o[h],l,a,n.maxWidth);break;case"both":e.fillText(o[h],l,a,n.maxWidth),e.strokeText(o[h],l,a,n.maxWidth);break;default:e.fillText(o[h],l,a,n.maxWidth)}else switch(n.brushType){case"fill":e.fillText(o[h],l,a);break;case"stroke":e.strokeText(o[h],l,a);break;case"both":e.fillText(o[h],l,a),e.strokeText(o[h],l,a);break;default:e.fillText(o[h],l,a)}a+=r}e.restore()}},getRect:function(e){if(e.__rect)return e.__rect;var i=t.getTextWidth(e.text,e.textFont),n=t.getTextHeight(e.text,e.textFont),a=e.x;"end"==e.textAlign||"right"==e.textAlign?a-=i:"center"==e.textAlign&&(a-=i/2);var o;return o="top"==e.textBaseline?e.y:"bottom"==e.textBaseline?e.y-n:e.y-n/2,e.__rect={x:a,y:o,width:i,height:n},e.__rect}},e("../tool/util").inherits(n,i),n}),i("zrender/shape/Rectangle",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"rectangle",_buildRadiusPath:function(e,t){var i,n,a,o,r=t.x,s=t.y,l=t.width,h=t.height,m=t.radius;"number"==typeof m?i=n=a=o=m:m instanceof Array?1===m.length?i=n=a=o=m[0]:2===m.length?(i=a=m[0],n=o=m[1]):3===m.length?(i=m[0],n=o=m[1],a=m[2]):(i=m[0],n=m[1],a=m[2],o=m[3]):i=n=a=o=0;var V;i+n>l&&(V=i+n,i*=l/V,n*=l/V),a+o>l&&(V=a+o,a*=l/V,o*=l/V),n+a>h&&(V=n+a,n*=h/V,a*=h/V),i+o>h&&(V=i+o,i*=h/V,o*=h/V),e.moveTo(r+i,s),e.lineTo(r+l-n,s),0!==n&&e.quadraticCurveTo(r+l,s,r+l,s+n),e.lineTo(r+l,s+h-a),0!==a&&e.quadraticCurveTo(r+l,s+h,r+l-a,s+h),e.lineTo(r+o,s+h),0!==o&&e.quadraticCurveTo(r,s+h,r,s+h-o),e.lineTo(r,s+i),0!==i&&e.quadraticCurveTo(r,s,r+i,s)},buildPath:function(e,t){t.radius?this._buildRadiusPath(e,t):(e.moveTo(t.x,t.y),e.lineTo(t.x+t.width,t.y),e.lineTo(t.x+t.width,t.y+t.height),e.lineTo(t.x,t.y+t.height),e.lineTo(t.x,t.y)),e.closePath()},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-t/2),y:Math.round(e.y-t/2),width:e.width+t,height:e.height+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("zrender/tool/area",["require","./util","./curve"],function(e){"use strict";function t(e){return e%=C,0>e&&(e+=C),e}function i(e,t,i,o){if(!t||!e)return!1;var r=e.type;L=L||W.getContext();var s=n(e,t,i,o);if("undefined"!=typeof s)return s;if(e.buildPath&&L.isPointInPath)return a(e,L,t,i,o);switch(r){case"ellipse":return!0;case"trochoid":var l="out"==t.location?t.r1+t.r2+t.d:t.r1-t.r2+t.d;return d(t,i,o,l);case"rose":return d(t,i,o,t.maxr);default:return!1}}function n(e,t,i,n){var a=e.type;switch(a){case"bezier-curve":return"undefined"==typeof t.cpX2?l(t.xStart,t.yStart,t.cpX1,t.cpY1,t.xEnd,t.yEnd,t.lineWidth,i,n):s(t.xStart,t.yStart,t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd,t.lineWidth,i,n);case"line":return r(t.xStart,t.yStart,t.xEnd,t.yEnd,t.lineWidth,i,n);case"polyline":return m(t.pointList,t.lineWidth,i,n);case"ring":return V(t.x,t.y,t.r0,t.r,i,n);case"circle":return d(t.x,t.y,t.r,i,n);case"sector":var o=t.startAngle*Math.PI/180,h=t.endAngle*Math.PI/180;return t.clockWise||(o=-o,h=-h),p(t.x,t.y,t.r0,t.r,o,h,!t.clockWise,i,n);case"path":return t.pathArray&&k(t.pathArray,Math.max(t.lineWidth,5),t.brushType,i,n);case"polygon":case"star":case"isogon":return c(t.pointList,i,n);case"text":var u=t.__rect||e.getRect(t);return U(u.x,u.y,u.width,u.height,i,n);case"rectangle":case"image":return U(t.x,t.y,t.width,t.height,i,n)}}function a(e,t,i,n,a){return t.beginPath(),e.buildPath(t,i),t.closePath(),t.isPointInPath(n,a)}function o(e,t,n,a){return!i(e,t,n,a)}function r(e,t,i,n,a,o,r){if(0===a)return!1;var s=Math.max(a,5),l=0,h=e;if(r>t+s&&r>n+s||t-s>r&&n-s>r||o>e+s&&o>i+s||e-s>o&&i-s>o)return!1;if(e===i)return Math.abs(o-e)<=s/2;l=(t-n)/(e-i),h=(e*n-i*t)/(e-i);var m=l*o-r+h,V=m*m/(l*l+1);return s/2*s/2>=V}function s(e,t,i,n,a,o,r,s,l,h,m){if(0===l)return!1;var V=Math.max(l,5);if(m>t+V&&m>n+V&&m>o+V&&m>s+V||t-V>m&&n-V>m&&o-V>m&&s-V>m||h>e+V&&h>i+V&&h>a+V&&h>r+V||e-V>h&&i-V>h&&a-V>h&&r-V>h)return!1;var U=X.cubicProjectPoint(e,t,i,n,a,o,r,s,h,m,null);return V/2>=U}function l(e,t,i,n,a,o,r,s,l){if(0===r)return!1;var h=Math.max(r,5);if(l>t+h&&l>n+h&&l>o+h||t-h>l&&n-h>l&&o-h>l||s>e+h&&s>i+h&&s>a+h||e-h>s&&i-h>s&&a-h>s)return!1;var m=X.quadraticProjectPoint(e,t,i,n,a,o,s,l,null);return h/2>=m}function h(e,i,n,a,o,r,s,l,h){if(0===s)return!1;var m=Math.max(s,5);l-=e,h-=i;var V=Math.sqrt(l*l+h*h);if(V-m>n||n>V+m)return!1;if(Math.abs(a-o)>=C)return!0;if(r){var U=a;a=t(o),o=t(U)}else a=t(a),o=t(o);a>o&&(o+=C);var d=Math.atan2(h,l);return 0>d&&(d+=C),d>=a&&o>=d||d+C>=a&&o>=d+C}function m(e,t,i,n){for(var t=Math.max(t,10),a=0,o=e.length-1;o>a;a++){var s=e[a][0],l=e[a][1],h=e[a+1][0],m=e[a+1][1];if(r(s,l,h,m,t,i,n))return!0}return!1}function V(e,t,i,n,a,o){var r=(a-e)*(a-e)+(o-t)*(o-t);return n*n>r&&r>i*i}function U(e,t,i,n,a,o){return a>=e&&e+i>=a&&o>=t&&t+n>=o}function d(e,t,i,n,a){return i*i>(n-e)*(n-e)+(a-t)*(a-t)}function p(e,t,i,n,a,o,r,s,l){return h(e,t,(i+n)/2,a,o,r,n-i,s,l)}function c(e,t,i){for(var n=e.length,a=0,o=0,r=n-1;n>o;o++){var s=e[r][0],l=e[r][1],h=e[o][0],m=e[o][1];a+=u(s,l,h,m,t,i),r=o}return 0!==a}function u(e,t,i,n,a,o){if(o>t&&o>n||t>o&&n>o)return 0;if(n==t)return 0;var r=t>n?1:-1,s=(o-t)/(n-t),l=s*(i-e)+e;return l>a?r:0}function y(){var e=E[0];E[0]=E[1],E[1]=e}function g(e,t,i,n,a,o,r,s,l,h){if(h>t&&h>n&&h>o&&h>s||t>h&&n>h&&o>h&&s>h)return 0;var m=X.cubicRootAt(t,n,o,s,h,S);if(0===m)return 0;for(var V,U,d=0,p=-1,c=0;m>c;c++){var u=S[c],g=X.cubicAt(e,i,a,r,u);l>g||(0>p&&(p=X.cubicExtrema(t,n,o,s,E),E[1]<E[0]&&p>1&&y(),V=X.cubicAt(t,n,o,s,E[0]),p>1&&(U=X.cubicAt(t,n,o,s,E[1]))),d+=2==p?u<E[0]?t>V?1:-1:u<E[1]?V>U?1:-1:U>s?1:-1:u<E[0]?t>V?1:-1:V>s?1:-1)}return d}function b(e,t,i,n,a,o,r,s){if(s>t&&s>n&&s>o||t>s&&n>s&&o>s)return 0;var l=X.quadraticRootAt(t,n,o,s,S);if(0===l)return 0;var h=X.quadraticExtremum(t,n,o);if(h>=0&&1>=h){for(var m=0,V=X.quadraticAt(t,n,o,h),U=0;l>U;U++){var d=X.quadraticAt(e,i,a,S[U]);r>d||(m+=S[U]<h?t>V?1:-1:V>o?1:-1)}return m}var d=X.quadraticAt(e,i,a,S[0]);return r>d?0:t>o?1:-1}function f(e,i,n,a,o,r,s,l){if(l-=i,l>n||-n>l)return 0;var h=Math.sqrt(n*n-l*l);if(S[0]=-h,S[1]=h,Math.abs(a-o)>=C){a=0,o=C;var m=r?1:-1;return s>=S[0]+e&&s<=S[1]+e?m:0}if(r){var h=a;a=t(o),o=t(h)}else a=t(a),o=t(o);a>o&&(o+=C);for(var V=0,U=0;2>U;U++){var d=S[U];if(d+e>s){var p=Math.atan2(l,d),m=r?1:-1;0>p&&(p=C+p),(p>=a&&o>=p||p+C>=a&&o>=p+C)&&(p>Math.PI/2&&p<1.5*Math.PI&&(m=-m),V+=m)}}return V}function k(e,t,i,n,a){var o=0,m=0,V=0,U=0,d=0,p=!0,c=!0;i=i||"fill";for(var y="stroke"===i||"both"===i,k="fill"===i||"both"===i,x=0;x<e.length;x++){var _=e[x],L=_.points;if(p||"M"===_.command){if(x>0&&(k&&(o+=u(m,V,U,d,n,a)),0!==o))return!0;U=L[L.length-2],d=L[L.length-1],p=!1,c&&"A"!==_.command&&(c=!1,m=U,V=d)}switch(_.command){case"M":m=L[0],V=L[1];break;case"L":if(y&&r(m,V,L[0],L[1],t,n,a))return!0;k&&(o+=u(m,V,L[0],L[1],n,a)),m=L[0],V=L[1];break;case"C":if(y&&s(m,V,L[0],L[1],L[2],L[3],L[4],L[5],t,n,a))return!0;k&&(o+=g(m,V,L[0],L[1],L[2],L[3],L[4],L[5],n,a)),m=L[4],V=L[5];break;case"Q":if(y&&l(m,V,L[0],L[1],L[2],L[3],t,n,a))return!0;k&&(o+=b(m,V,L[0],L[1],L[2],L[3],n,a)),m=L[2],V=L[3];break;case"A":var W=L[0],X=L[1],v=L[2],w=L[3],K=L[4],I=L[5],J=Math.cos(K)*v+W,C=Math.sin(K)*w+X;c?(c=!1,U=J,d=C):o+=u(m,V,J,C);var S=(n-W)*w/v+W;if(y&&h(W,X,w,K,K+I,1-L[7],t,S,a))return!0;k&&(o+=f(W,X,w,K,K+I,1-L[7],S,a)),m=Math.cos(K+I)*v+W,V=Math.sin(K+I)*w+X;break;case"z":if(y&&r(m,V,U,d,t,n,a))return!0;p=!0}}return k&&(o+=u(m,V,U,d,n,a)),0!==o}function x(e,t){var i=e+":"+t;if(v[i])return v[i];L=L||W.getContext(),L.save(),t&&(L.font=t),e=(e+"").split("\n");for(var n=0,a=0,o=e.length;o>a;a++)n=Math.max(L.measureText(e[a]).width,n);return L.restore(),v[i]=n,++K>J&&(K=0,v={}),n}function _(e,t){var i=e+":"+t;if(w[i])return w[i];L=L||W.getContext(),L.save(),t&&(L.font=t),e=(e+"").split("\n");var n=(L.measureText("国").width+2)*e.length;return L.restore(),w[i]=n,++I>J&&(I=0,w={}),n}var L,W=e("./util"),X=e("./curve"),v={},w={},K=0,I=0,J=5e3,C=2*Math.PI,S=[-1,-1,-1],E=[-1,-1];return{isInside:i,isOutside:o,getTextWidth:x,getTextHeight:_,isInsidePath:k,isInsidePolygon:c,isInsideSector:p,isInsideCircle:d,isInsideLine:r,isInsideRect:U,isInsidePolyline:m,isInsideCubicStroke:s,isInsideQuadraticStroke:l}}),i("zrender/shape/Base",["require","../tool/matrix","../tool/guid","../tool/util","../tool/log","../mixin/Transformable","../mixin/Eventful","../tool/area","../tool/color"],function(e){function t(t,n,a,o,r,s,l){r&&(t.font=r),t.textAlign=s,t.textBaseline=l;var h=i(n,a,o,r,s,l);n=(n+"").split("\n");var m=e("../tool/area").getTextHeight("国",r);switch(l){case"top":o=h.y;break;case"bottom":o=h.y+m;break;default:o=h.y+m/2}for(var V=0,U=n.length;U>V;V++)t.fillText(n[V],a,o),o+=m}function i(t,i,n,a,o,r){var s=e("../tool/area"),l=s.getTextWidth(t,a),h=s.getTextHeight("国",a);switch(t=(t+"").split("\n"),o){case"end":case"right":i-=l;break;case"center":i-=l/2}switch(r){case"top":break;case"bottom":n-=h*t.length;break;default:n-=h*t.length/2}return{x:i,y:n,width:l,height:h*t.length}}var n=window.G_vmlCanvasManager,a=e("../tool/matrix"),o=e("../tool/guid"),r=e("../tool/util"),s=e("../tool/log"),l=e("../mixin/Transformable"),h=e("../mixin/Eventful"),m=function(e){e=e||{},this.id=e.id||o();for(var t in e)this[t]=e[t];this.style=this.style||{},this.highlightStyle=this.highlightStyle||null,this.parent=null,this.__dirty=!0,this.__clipShapes=[],l.call(this),h.call(this)};m.prototype.invisible=!1,m.prototype.ignore=!1,m.prototype.zlevel=0,m.prototype.draggable=!1,m.prototype.clickable=!1,m.prototype.hoverable=!0,m.prototype.z=0,m.prototype.brush=function(e,t){var i=this.beforeBrush(e,t);switch(e.beginPath(),this.buildPath(e,i),i.brushType){case"both":e.fill();case"stroke":i.lineWidth>0&&e.stroke();break;default:e.fill()}this.drawText(e,i,this.style),this.afterBrush(e)},m.prototype.beforeBrush=function(e,t){var i=this.style;return this.brushTypeOnly&&(i.brushType=this.brushTypeOnly),t&&(i=this.getHighlightStyle(i,this.highlightStyle||{},this.brushTypeOnly)),"stroke"==this.brushTypeOnly&&(i.strokeColor=i.strokeColor||i.color),e.save(),this.doClip(e),this.setContext(e,i),this.setTransform(e),i},m.prototype.afterBrush=function(e){e.restore()};var V=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]];m.prototype.setContext=function(e,t){for(var i=0,n=V.length;n>i;i++){var a=V[i][0],o=t[a],r=V[i][1];"undefined"!=typeof o&&(e[r]=o)}};var U=a.create();return m.prototype.doClip=function(e){if(this.__clipShapes&&!n)for(var t=0;t<this.__clipShapes.length;t++){var i=this.__clipShapes[t];if(i.needTransform){var o=i.transform;a.invert(U,o),e.transform(o[0],o[1],o[2],o[3],o[4],o[5])}if(e.beginPath(),i.buildPath(e,i.style),e.clip(),i.needTransform){var o=U;e.transform(o[0],o[1],o[2],o[3],o[4],o[5])}}},m.prototype.getHighlightStyle=function(t,i,n){var a={};for(var o in t)a[o]=t[o];var r=e("../tool/color"),s=r.getHighlightColor();"stroke"!=t.brushType?(a.strokeColor=s,a.lineWidth=(t.lineWidth||1)+this.getHighlightZoom(),a.brushType="both"):"stroke"!=n?(a.strokeColor=s,a.lineWidth=(t.lineWidth||1)+this.getHighlightZoom()):a.strokeColor=i.strokeColor||r.mix(t.strokeColor,r.toRGB(s));for(var o in i)"undefined"!=typeof i[o]&&(a[o]=i[o]);return a},m.prototype.getHighlightZoom=function(){return"text"!=this.type?6:2},m.prototype.drift=function(e,t){this.position[0]+=e,this.position[1]+=t},m.prototype.buildPath=function(){s("buildPath not implemented in "+this.type)},m.prototype.getRect=function(){s("getRect not implemented in "+this.type)},m.prototype.isCover=function(t,i){var n=this.transformCoordToLocal(t,i);return t=n[0],i=n[1],this.isCoverRect(t,i)?e("../tool/area").isInside(this,this.style,t,i):!1},m.prototype.isCoverRect=function(e,t){var i=this.style.__rect;return i||(i=this.style.__rect=this.getRect(this.style)),e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},m.prototype.drawText=function(e,i,n){if("undefined"!=typeof i.text&&i.text!==!1){var a=i.textColor||i.color||i.strokeColor;e.fillStyle=a;var o,r,s,l,h=10,m=i.textPosition||this.textPosition||"top";switch(m){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var V=(n||i).__rect||this.getRect(n||i);switch(m){case"inside":s=V.x+V.width/2,l=V.y+V.height/2,o="center",r="middle","stroke"!=i.brushType&&a==i.color&&(e.fillStyle="#fff");break;case"left":s=V.x-h,l=V.y+V.height/2,o="end",r="middle";break;case"right":s=V.x+V.width+h,l=V.y+V.height/2,o="start",r="middle";break;case"top":s=V.x+V.width/2,l=V.y-h,o="center",r="bottom";break;case"bottom":s=V.x+V.width/2,l=V.y+V.height+h,o="center",r="top"}}break;case"start":case"end":var U=i.pointList||[[i.xStart||0,i.yStart||0],[i.xEnd||0,i.yEnd||0]],d=U.length;if(2>d)return;var p,c,u,y;switch(m){case"start":p=U[1][0],c=U[0][0],u=U[1][1],y=U[0][1];break;case"end":p=U[d-2][0],c=U[d-1][0],u=U[d-2][1],y=U[d-1][1]}s=c,l=y;var g=Math.atan((u-y)/(c-p))/Math.PI*180;0>c-p?g+=180:0>u-y&&(g+=360),h=5,g>=30&&150>=g?(o="center",r="bottom",l-=h):g>150&&210>g?(o="right",r="middle",s-=h):g>=210&&330>=g?(o="center",r="top",l+=h):(o="left",r="middle",s+=h);break;case"specific":s=i.textX||0,l=i.textY||0,o="start",r="middle"}null!=s&&null!=l&&t(e,i.text,s,l,i.textFont,i.textAlign||o,i.textBaseline||r)}},m.prototype.modSelf=function(){this.__dirty=!0,this.style&&(this.style.__rect=null),this.highlightStyle&&(this.highlightStyle.__rect=null)},m.prototype.isSilent=function(){return!(this.hoverable||this.draggable||this.clickable||this.onmousemove||this.onmouseover||this.onmouseout||this.onmousedown||this.onmouseup||this.onclick||this.ondragenter||this.ondragover||this.ondragleave||this.ondrop)},r.merge(m.prototype,l.prototype,!0),r.merge(m.prototype,h.prototype,!0),m}),i("zrender/tool/curve",["require","./vector"],function(e){function t(e){return e>-u&&u>e}function i(e){return e>u||-u>e}function n(e,t,i,n,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*n+3*o*i)}function a(e,t,i,n,a){var o=1-a;return 3*(((t-e)*o+2*(i-t)*a)*o+(n-i)*a*a)}function o(e,i,n,a,o,r){var s=a+3*(i-n)-e,l=3*(n-2*i+e),h=3*(i-e),m=e-o,V=l*l-3*s*h,U=l*h-9*s*m,d=h*h-3*l*m,p=0;if(t(V)&&t(U))if(t(l))r[0]=0;else{var c=-h/l;c>=0&&1>=c&&(r[p++]=c)}else{var u=U*U-4*V*d;if(t(u)){var b=U/V,c=-l/s+b,f=-b/2;c>=0&&1>=c&&(r[p++]=c),f>=0&&1>=f&&(r[p++]=f)}else if(u>0){var k=Math.sqrt(u),x=V*l+1.5*s*(-U+k),_=V*l+1.5*s*(-U-k);x=0>x?-Math.pow(-x,g):Math.pow(x,g),_=0>_?-Math.pow(-_,g):Math.pow(_,g);var c=(-l-(x+_))/(3*s);c>=0&&1>=c&&(r[p++]=c)}else{var L=(2*V*l-3*s*U)/(2*Math.sqrt(V*V*V)),W=Math.acos(L)/3,X=Math.sqrt(V),v=Math.cos(W),c=(-l-2*X*v)/(3*s),f=(-l+X*(v+y*Math.sin(W)))/(3*s),w=(-l+X*(v-y*Math.sin(W)))/(3*s);c>=0&&1>=c&&(r[p++]=c),f>=0&&1>=f&&(r[p++]=f),w>=0&&1>=w&&(r[p++]=w)}}return p}function r(e,n,a,o,r){var s=6*a-12*n+6*e,l=9*n+3*o-3*e-9*a,h=3*n-3*e,m=0;if(t(l)){if(i(s)){var V=-h/s;V>=0&&1>=V&&(r[m++]=V)}}else{var U=s*s-4*l*h;if(t(U))r[0]=-s/(2*l);else if(U>0){var d=Math.sqrt(U),V=(-s+d)/(2*l),p=(-s-d)/(2*l);V>=0&&1>=V&&(r[m++]=V),p>=0&&1>=p&&(r[m++]=p)}}return m}function s(e,t,i,n,a,o){var r=(t-e)*a+e,s=(i-t)*a+t,l=(n-i)*a+i,h=(s-r)*a+r,m=(l-s)*a+s,V=(m-h)*a+h;o[0]=e,o[1]=r,o[2]=h,o[3]=V,o[4]=V,o[5]=m,o[6]=l,o[7]=n}function l(e,t,i,a,o,r,s,l,h,m,V){var U,d=.005,p=1/0;b[0]=h,b[1]=m;for(var y=0;1>y;y+=.05){f[0]=n(e,i,o,s,y),f[1]=n(t,a,r,l,y);var g=c.distSquare(b,f);p>g&&(U=y,p=g)}p=1/0;for(var x=0;32>x&&!(u>d);x++){var _=U-d,L=U+d;f[0]=n(e,i,o,s,_),f[1]=n(t,a,r,l,_);var g=c.distSquare(f,b);if(_>=0&&p>g)U=_,p=g;else{k[0]=n(e,i,o,s,L),k[1]=n(t,a,r,l,L);var W=c.distSquare(k,b);1>=L&&p>W?(U=L,p=W):d*=.5}}return V&&(V[0]=n(e,i,o,s,U),V[1]=n(t,a,r,l,U)),Math.sqrt(p)}function h(e,t,i,n){var a=1-n;return a*(a*e+2*n*t)+n*n*i}function m(e,t,i,n){return 2*((1-n)*(t-e)+n*(i-t))}function V(e,n,a,o,r){var s=e-2*n+a,l=2*(n-e),h=e-o,m=0;if(t(s)){if(i(l)){var V=-h/l;V>=0&&1>=V&&(r[m++]=V)}}else{var U=l*l-4*s*h;if(t(U)){var V=-l/(2*s);V>=0&&1>=V&&(r[m++]=V)}else if(U>0){var d=Math.sqrt(U),V=(-l+d)/(2*s),p=(-l-d)/(2*s);V>=0&&1>=V&&(r[m++]=V),p>=0&&1>=p&&(r[m++]=p)}}return m}function U(e,t,i){var n=e+i-2*t;return 0===n?.5:(e-t)/n}function d(e,t,i,n,a){var o=(t-e)*n+e,r=(i-t)*n+t,s=(r-o)*n+o;a[0]=e,a[1]=o,a[2]=s,a[3]=s,a[4]=r,a[5]=i}function p(e,t,i,n,a,o,r,s,l){var m,V=.005,U=1/0;b[0]=r,b[1]=s;for(var d=0;1>d;d+=.05){f[0]=h(e,i,a,d),f[1]=h(t,n,o,d);var p=c.distSquare(b,f);U>p&&(m=d,U=p)}U=1/0;for(var y=0;32>y&&!(u>V);y++){var g=m-V,x=m+V;f[0]=h(e,i,a,g),f[1]=h(t,n,o,g);var p=c.distSquare(f,b);if(g>=0&&U>p)m=g,U=p;else{k[0]=h(e,i,a,x),k[1]=h(t,n,o,x);var _=c.distSquare(k,b);1>=x&&U>_?(m=x,U=_):V*=.5}}return l&&(l[0]=h(e,i,a,m),l[1]=h(t,n,o,m)),Math.sqrt(U)}var c=e("./vector"),u=1e-4,y=Math.sqrt(3),g=1/3,b=c.create(),f=c.create(),k=c.create();return{cubicAt:n,cubicDerivativeAt:a,cubicRootAt:o,cubicExtrema:r,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:h,quadraticDerivativeAt:m,quadraticRootAt:V,quadraticExtremum:U,quadraticSubdivide:d,quadraticProjectPoint:p}}),i("zrender/mixin/Transformable",["require","../tool/matrix","../tool/vector"],function(e){"use strict";function t(e){return e>-s&&s>e}function i(e){return e>s||-s>e}var n=e("../tool/matrix"),a=e("../tool/vector"),o=[0,0],r=n.translate,s=5e-5,l=function(){this.position||(this.position=[0,0]),"undefined"==typeof this.rotation&&(this.rotation=[0,0,0]),this.scale||(this.scale=[1,1,0,0]),this.needLocalTransform=!1,this.needTransform=!1};return l.prototype={constructor:l,updateNeedTransform:function(){this.needLocalTransform=i(this.rotation[0])||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},updateTransform:function(){this.updateNeedTransform();var e=this.parent&&this.parent.needTransform;if(this.needTransform=this.needLocalTransform||e,this.needTransform){var t=this.transform||n.create();if(n.identity(t),this.needLocalTransform){var a=this.scale;if(i(a[0])||i(a[1])){o[0]=-a[2]||0,o[1]=-a[3]||0;var s=i(o[0])||i(o[1]);s&&r(t,t,o),n.scale(t,t,a),s&&(o[0]=-o[0],o[1]=-o[1],r(t,t,o))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){o[0]=-this.rotation[1]||0,o[1]=-this.rotation[2]||0;var s=i(o[0])||i(o[1]);s&&r(t,t,o),n.rotate(t,t,this.rotation[0]),s&&(o[0]=-o[0],o[1]=-o[1],r(t,t,o))}}else 0!==this.rotation&&n.rotate(t,t,this.rotation);(i(this.position[0])||i(this.position[1]))&&r(t,t,this.position)}e&&(this.needLocalTransform?n.mul(t,this.parent.transform,t):n.copy(t,this.parent.transform)),this.transform=t,this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,t)}},setTransform:function(e){if(this.needTransform){var t=this.transform;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},lookAt:function(){var e=a.create();return function(i){this.transform||(this.transform=n.create());var o=this.transform;if(a.sub(e,i,this.position),!t(e[0])||!t(e[1])){a.normalize(e,e);var r=this.scale;o[2]=e[0]*r[1],o[3]=e[1]*r[1],o[0]=e[1]*r[0],o[1]=-e[0]*r[0],o[4]=this.position[0],o[5]=this.position[1],this.decomposeTransform()}}}(),decomposeTransform:function(){if(this.transform){var e=this.transform,t=e[0]*e[0]+e[1]*e[1],n=this.position,a=this.scale,o=this.rotation;i(t-1)&&(t=Math.sqrt(t));var r=e[2]*e[2]+e[3]*e[3];i(r-1)&&(r=Math.sqrt(r)),n[0]=e[4],n[1]=e[5],a[0]=t,a[1]=r,a[2]=a[3]=0,o[0]=Math.atan2(-e[1]/r,e[0]/t),o[1]=o[2]=0}},transformCoordToLocal:function(e,t){var i=[e,t];return this.needTransform&&this.invTransform&&a.applyTransform(i,i,this.invTransform),i}},l}),i("zrender/Group",["require","./tool/guid","./tool/util","./mixin/Transformable","./mixin/Eventful"],function(e){var t=e("./tool/guid"),i=e("./tool/util"),n=e("./mixin/Transformable"),a=e("./mixin/Eventful"),o=function(e){e=e||{},this.id=e.id||t();for(var i in e)this[i]=e[i];this.type="group",this.clipShape=null,this._children=[],this._storage=null,this.__dirty=!0,n.call(this),a.call(this)};return o.prototype.ignore=!1,o.prototype.children=function(){return this._children.slice()},o.prototype.childAt=function(e){return this._children[e]},o.prototype.addChild=function(e){e!=this&&e.parent!=this&&(e.parent&&e.parent.removeChild(e),this._children.push(e),e.parent=this,this._storage&&this._storage!==e._storage&&(this._storage.addToMap(e),e instanceof o&&e.addChildrenToStorage(this._storage)))},o.prototype.removeChild=function(e){var t=i.indexOf(this._children,e);t>=0&&this._children.splice(t,1),e.parent=null,this._storage&&(this._storage.delFromMap(e.id),e instanceof o&&e.delChildrenFromStorage(this._storage))},o.prototype.clearChildren=function(){for(var e=0;e<this._children.length;e++){var t=this._children[e];this._storage&&(this._storage.delFromMap(t.id),t instanceof o&&t.delChildrenFromStorage(this._storage))}this._children.length=0},o.prototype.eachChild=function(e,t){for(var i=!!t,n=0;n<this._children.length;n++){var a=this._children[n];i?e.call(t,a):e(a)}},o.prototype.traverse=function(e,t){for(var i=!!t,n=0;n<this._children.length;n++){var a=this._children[n];i?e.call(t,a):e(a),"group"===a.type&&a.traverse(e,t)}},o.prototype.addChildrenToStorage=function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.addToMap(i),i instanceof o&&i.addChildrenToStorage(e)}},o.prototype.delChildrenFromStorage=function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.delFromMap(i.id),i instanceof o&&i.delChildrenFromStorage(e)}},o.prototype.modSelf=function(){this.__dirty=!0},i.merge(o.prototype,n.prototype,!0),i.merge(o.prototype,a.prototype,!0),o}),i("zrender/animation/Clip",["require","./easing"],function(e){function t(e){this._targetPool=e.target||{},this._targetPool instanceof Array||(this._targetPool=[this._targetPool]),this._life=e.life||1e3,this._delay=e.delay||0,this._startTime=(new Date).getTime()+this._delay,this._endTime=this._startTime+1e3*this._life,this.loop="undefined"==typeof e.loop?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}var i=e("./easing");return t.prototype={step:function(e){var t=(e-this._startTime)/this._life;if(!(0>t)){t=Math.min(t,1);var n="string"==typeof this.easing?i[this.easing]:this.easing,a="function"==typeof n?n(t):t;return this.fire("frame",a),1==t?this.loop?(this.restart(),"restart"):(this.__needsRemove=!0,"destroy"):null}},restart:function(){var e=(new Date).getTime(),t=(e-this._startTime)%this._life;this._startTime=(new Date).getTime()-t+this.gap,this.__needsRemove=!1},fire:function(e,t){for(var i=0,n=this._targetPool.length;n>i;i++)this["on"+e]&&this["on"+e](this._targetPool[i],t)},constructor:t},t}),i("zrender/animation/easing",[],function(){var e={Linear:function(e){return e},QuadraticIn:function(e){return e*e},QuadraticOut:function(e){return e*(2-e)},QuadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},CubicIn:function(e){return e*e*e},CubicOut:function(e){return--e*e*e+1},CubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},QuarticIn:function(e){return e*e*e*e},QuarticOut:function(e){return 1- --e*e*e*e},QuarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},QuinticIn:function(e){return e*e*e*e*e},QuinticOut:function(e){return--e*e*e*e*e+1},QuinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},SinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},SinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},SinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},ExponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},ExponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},ExponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},CircularIn:function(e){return 1-Math.sqrt(1-e*e)},CircularOut:function(e){return Math.sqrt(1- --e*e)},CircularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},ElasticIn:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||1>i?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(e-=1))*Math.sin(2*(e-t)*Math.PI/n)))},ElasticOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||1>i?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin(2*(e-t)*Math.PI/n)+1)},ElasticInOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||1>i?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?-.5*i*Math.pow(2,10*(e-=1))*Math.sin(2*(e-t)*Math.PI/n):i*Math.pow(2,-10*(e-=1))*Math.sin(2*(e-t)*Math.PI/n)*.5+1)},BackIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},BackOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},BackInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*e*e*((t+1)*e-t):.5*((e-=2)*e*((t+1)*e+t)+2)},BounceIn:function(t){return 1-e.BounceOut(1-t)},BounceOut:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},BounceInOut:function(t){return.5>t?.5*e.BounceIn(2*t):.5*e.BounceOut(2*t-1)+.5}};return e}),i("echarts/chart/base",["require","zrender/shape/Image","../util/shape/Icon","../util/shape/MarkLine","../util/shape/Symbol","zrender/shape/Polyline","zrender/shape/ShapeBundle","../config","../util/ecData","../util/ecAnimation","../util/ecEffect","../util/accMath","../component/base","../layout/EdgeBundling","zrender/tool/util","zrender/tool/area"],function(e){function t(e){return null!=e.x&&null!=e.y}function i(e,t,i,n,a){p.call(this,e,t,i,n,a);var o=this;this.selectedMap={},this.lastShapeList=[],this.shapeHandler={onclick:function(){o.isClick=!0},ondragover:function(e){var t=e.target;t.highlightStyle=t.highlightStyle||{};var i=t.highlightStyle,n=i.brushTyep,a=i.strokeColor,r=i.lineWidth;i.brushType="stroke",i.strokeColor=o.ecTheme.calculableColor||h.calculableColor,i.lineWidth="icon"===t.type?30:10,o.zr.addHoverShape(t),setTimeout(function(){i&&(i.brushType=n,i.strokeColor=a,i.lineWidth=r)},20)},ondrop:function(e){null!=m.get(e.dragged,"data")&&(o.isDrop=!0)},ondragend:function(){o.isDragend=!0}}}var n=e("zrender/shape/Image"),a=e("../util/shape/Icon"),o=e("../util/shape/MarkLine"),r=e("../util/shape/Symbol"),s=e("zrender/shape/Polyline"),l=e("zrender/shape/ShapeBundle"),h=e("../config"),m=e("../util/ecData"),V=e("../util/ecAnimation"),U=e("../util/ecEffect"),d=e("../util/accMath"),p=e("../component/base"),c=e("../layout/EdgeBundling"),u=e("zrender/tool/util"),y=e("zrender/tool/area");return i.prototype={setCalculable:function(e){return e.dragEnableTime=this.ecTheme.DRAG_ENABLE_TIME||h.DRAG_ENABLE_TIME,e.ondragover=this.shapeHandler.ondragover,e.ondragend=this.shapeHandler.ondragend,e.ondrop=this.shapeHandler.ondrop,e},ondrop:function(e,t){if(this.isDrop&&e.target&&!t.dragIn){var i,n=e.target,a=e.dragged,o=m.get(n,"seriesIndex"),r=m.get(n,"dataIndex"),s=this.series,l=this.component.legend;if(-1===r){if(m.get(a,"seriesIndex")==o)return t.dragOut=t.dragIn=t.needRefresh=!0,void(this.isDrop=!1);i={value:m.get(a,"value"),name:m.get(a,"name")},this.type===h.CHART_TYPE_PIE&&i.value<0&&(i.value=0);for(var V=!1,U=s[o].data,p=0,c=U.length;c>p;p++)U[p].name===i.name&&"-"===U[p].value&&(s[o].data[p].value=i.value,V=!0);!V&&s[o].data.push(i),l&&l.add(i.name,a.style.color||a.style.strokeColor)}else i=s[o].data[r]||"-",null!=i.value?(s[o].data[r].value="-"!=i.value?d.accAdd(s[o].data[r].value,m.get(a,"value")):m.get(a,"value"),(this.type===h.CHART_TYPE_FUNNEL||this.type===h.CHART_TYPE_PIE)&&(l&&1===l.getRelatedAmount(i.name)&&this.component.legend.del(i.name),i.name+=this.option.nameConnector+m.get(a,"name"),l&&l.add(i.name,a.style.color||a.style.strokeColor))):s[o].data[r]="-"!=i?d.accAdd(s[o].data[r],m.get(a,"value")):m.get(a,"value");t.dragIn=t.dragIn||!0,this.isDrop=!1;var u=this;setTimeout(function(){u.zr.trigger("mousemove",e.event)},300)}},ondragend:function(e,t){if(this.isDragend&&e.target&&!t.dragOut){var i=e.target,n=m.get(i,"seriesIndex"),a=m.get(i,"dataIndex"),o=this.series;if(null!=o[n].data[a].value){o[n].data[a].value="-";var r=o[n].data[a].name,s=this.component.legend;s&&0===s.getRelatedAmount(r)&&s.del(r)}else o[n].data[a]="-";t.dragOut=!0,t.needRefresh=!0,this.isDragend=!1}},onlegendSelected:function(e,t){var i=e.selected;for(var n in this.selectedMap)this.selectedMap[n]!=i[n]&&(t.needRefresh=!0),this.selectedMap[n]=i[n]},_buildPosition:function(){this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this._sIndex2ColorMap={},this.selectedMap={},this.xMarkMap={};for(var e,t,i,n,a=this.series,o={top:[],bottom:[],left:[],right:[],other:[]},r=0,s=a.length;s>r;r++)a[r].type===this.type&&(a[r]=this.reformOption(a[r]),this.legendHoverLink=a[r].legendHoverLink||this.legendHoverLink,e=a[r].xAxisIndex,t=a[r].yAxisIndex,i=this.component.xAxis.getAxis(e),n=this.component.yAxis.getAxis(t),i.type===h.COMPONENT_TYPE_AXIS_CATEGORY?o[i.getPosition()].push(r):n.type===h.COMPONENT_TYPE_AXIS_CATEGORY?o[n.getPosition()].push(r):o.other.push(r));for(var l in o)o[l].length>0&&this._buildSinglePosition(l,o[l]);this.addShapeList()},_buildSinglePosition:function(e,t){var i=this._mapData(t),n=i.locationMap,a=i.maxDataLength;if(0!==a&&0!==n.length){switch(e){case"bottom":case"top":this._buildHorizontal(t,a,n,this.xMarkMap);break;case"left":case"right":this._buildVertical(t,a,n,this.xMarkMap);break;case"other":this._buildOther(t,a,n,this.xMarkMap)}for(var o=0,r=t.length;r>o;o++)this.buildMark(t[o])}},_mapData:function(e){for(var t,i,n,a,o=this.series,r=0,s={},l="__kener__stack__",m=this.component.legend,V=[],U=0,d=0,p=e.length;p>d;d++){if(t=o[e[d]],n=t.name,this._sIndex2ShapeMap[e[d]]=this._sIndex2ShapeMap[e[d]]||this.query(t,"symbol")||this._symbol[d%this._symbol.length],m){if(this.selectedMap[n]=m.isSelected(n),this._sIndex2ColorMap[e[d]]=m.getColor(n),a=m.getItemShape(n)){var c=a.style;if(this.type==h.CHART_TYPE_LINE)c.iconType="legendLineIcon",c.symbol=this._sIndex2ShapeMap[e[d]];else if(t.itemStyle.normal.barBorderWidth>0){var u=a.highlightStyle;c.brushType="both",c.x+=1,c.y+=1,c.width-=2,c.height-=2,c.strokeColor=u.strokeColor=t.itemStyle.normal.barBorderColor,u.lineWidth=3}m.setItemShape(n,a)}}else this.selectedMap[n]=!0,this._sIndex2ColorMap[e[d]]=this.zr.getColor(e[d]);this.selectedMap[n]&&(i=t.stack||l+e[d],null==s[i]?(s[i]=r,V[r]=[e[d]],r++):V[s[i]].push(e[d])),U=Math.max(U,t.data.length)}return{locationMap:V,maxDataLength:U}},_calculMarkMapXY:function(e,t,i){for(var n=this.series,a=0,o=t.length;o>a;a++)for(var r=0,s=t[a].length;s>r;r++){var l=t[a][r],h="xy"==i?0:"",m=this.component.grid,V=e[l];if("-1"!=i.indexOf("x")){V["counter"+h]>0&&(V["average"+h]=V["sum"+h]/V["counter"+h]);var U=this.component.xAxis.getAxis(n[l].xAxisIndex||0).getCoord(V["average"+h]);V["averageLine"+h]=[[U,m.getYend()],[U,m.getY()]],V["minLine"+h]=[[V["minX"+h],m.getYend()],[V["minX"+h],m.getY()]],V["maxLine"+h]=[[V["maxX"+h],m.getYend()],[V["maxX"+h],m.getY()]],V.isHorizontal=!1}if(h="xy"==i?1:"","-1"!=i.indexOf("y")){V["counter"+h]>0&&(V["average"+h]=V["sum"+h]/V["counter"+h]);var d=this.component.yAxis.getAxis(n[l].yAxisIndex||0).getCoord(V["average"+h]);V["averageLine"+h]=[[m.getX(),d],[m.getXend(),d]],V["minLine"+h]=[[m.getX(),V["minY"+h]],[m.getXend(),V["minY"+h]]],V["maxLine"+h]=[[m.getX(),V["maxY"+h]],[m.getXend(),V["maxY"+h]]],V.isHorizontal=!0}}},addLabel:function(e,t,i,n,a){var o=[i,t],r=this.deepMerge(o,"itemStyle.normal.label"),s=this.deepMerge(o,"itemStyle.emphasis.label"),l=r.textStyle||{},h=s.textStyle||{};
    +
    +if(r.show){var m=e.style;m.text=this._getLabelText(t,i,n,"normal"),m.textPosition=null==r.position?"horizontal"===a?"right":"top":r.position,m.textColor=l.color,m.textFont=this.getFont(l),m.textAlign=l.align,m.textBaseline=l.baseline}if(s.show){var V=e.highlightStyle;V.text=this._getLabelText(t,i,n,"emphasis"),V.textPosition=r.show?e.style.textPosition:null==s.position?"horizontal"===a?"right":"top":s.position,V.textColor=h.color,V.textFont=this.getFont(h),V.textAlign=h.align,V.textBaseline=h.baseline}return e},_getLabelText:function(e,t,i,n){var a=this.deepQuery([t,e],"itemStyle."+n+".label.formatter");a||"emphasis"!==n||(a=this.deepQuery([t,e],"itemStyle.normal.label.formatter"));var o=this.getDataFromOption(t,"-");return a?"function"==typeof a?a.call(this.myChart,{seriesName:e.name,series:e,name:i,value:o,data:t,status:n}):"string"==typeof a?a=a.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",e.name).replace("{b0}",i).replace("{c0}",this.numAddCommas(o)):void 0:o instanceof Array?null!=o[2]?this.numAddCommas(o[2]):o[0]+" , "+o[1]:this.numAddCommas(o)},buildMark:function(e){var t=this.series[e];this.selectedMap[t.name]&&(t.markLine&&this._buildMarkLine(e),t.markPoint&&this._buildMarkPoint(e))},_buildMarkPoint:function(e){for(var t,i,n=(this.markAttachStyle||{})[e],a=this.series[e],o=u.clone(a.markPoint),r=0,s=o.data.length;s>r;r++)t=o.data[r],i=this.getMarkCoord(e,t),t.x=null!=t.x?t.x:i[0],t.y=null!=t.y?t.y:i[1],!t.type||"max"!==t.type&&"min"!==t.type||(t.value=i[3],t.name=t.name||t.type,t.symbolSize=t.symbolSize||y.getTextWidth(i[3],this.getFont())/2+5);for(var l=this._markPoint(e,o),r=0,s=l.length;s>r;r++){var m=l[r];m.zlevel=a.zlevel,m.z=a.z+1;for(var V in n)m[V]=u.clone(n[V]);this.shapeList.push(m)}if(this.type===h.CHART_TYPE_FORCE||this.type===h.CHART_TYPE_CHORD)for(var r=0,s=l.length;s>r;r++)this.zr.addShape(l[r])},_buildMarkLine:function(e){for(var t,i=(this.markAttachStyle||{})[e],n=this.series[e],a=u.clone(n.markLine),o=0,r=a.data.length;r>o;o++){var s=a.data[o];!s.type||"max"!==s.type&&"min"!==s.type&&"average"!==s.type?t=[this.getMarkCoord(e,s[0]),this.getMarkCoord(e,s[1])]:(t=this.getMarkCoord(e,s),a.data[o]=[u.clone(s),{}],a.data[o][0].name=s.name||s.type,a.data[o][0].value="average"!==s.type?t[3]:+t[3].toFixed(null!=a.precision?a.precision:this.deepQuery([this.ecTheme,h],"markLine.precision")),t=t[2],s=[{},{}]),null!=t&&null!=t[0]&&null!=t[1]&&(a.data[o][0].x=null!=s[0].x?s[0].x:t[0][0],a.data[o][0].y=null!=s[0].y?s[0].y:t[0][1],a.data[o][1].x=null!=s[1].x?s[1].x:t[1][0],a.data[o][1].y=null!=s[1].y?s[1].y:t[1][1])}var m=this._markLine(e,a),V=a.large;if(V){var U=new l({style:{shapeList:m}}),d=m[0];if(d){u.merge(U.style,d.style),u.merge(U.highlightStyle={},d.highlightStyle),U.style.brushType="stroke",U.zlevel=n.zlevel,U.z=n.z+1,U.hoverable=!1;for(var p in i)U[p]=u.clone(i[p])}this.shapeList.push(U),this.zr.addShape(U),U._mark="largeLine";var c=a.effect;c.show&&(U.effect=c)}else{for(var o=0,r=m.length;r>o;o++){var y=m[o];y.zlevel=n.zlevel,y.z=n.z+1;for(var p in i)y[p]=u.clone(i[p]);this.shapeList.push(y)}if(this.type===h.CHART_TYPE_FORCE||this.type===h.CHART_TYPE_CHORD)for(var o=0,r=m.length;r>o;o++)this.zr.addShape(m[o])}},_markPoint:function(e,t){var i=this.series[e],n=this.component;u.merge(u.merge(t,u.clone(this.ecTheme.markPoint||{})),u.clone(h.markPoint)),t.name=i.name;var a,o,r,s,l,V,U,d=[],p=t.data,c=n.dataRange,y=n.legend,g=this.zr.getWidth(),b=this.zr.getHeight();if(t.large)a=this.getLargeMarkPointShape(e,t),a._mark="largePoint",a&&d.push(a);else for(var f=0,k=p.length;k>f;f++)null!=p[f].x&&null!=p[f].y&&(r=null!=p[f].value?p[f].value:"",y&&(o=y.getColor(i.name)),c&&(o=isNaN(r)?o:c.getColor(r),s=[p[f],t],l=this.deepQuery(s,"itemStyle.normal.color")||o,V=this.deepQuery(s,"itemStyle.emphasis.color")||l,null==l&&null==V)||(o=null==o?this.zr.getColor(e):o,p[f].tooltip=p[f].tooltip||t.tooltip||{trigger:"item"},p[f].name=null!=p[f].name?p[f].name:"",p[f].value=r,a=this.getSymbolShape(t,e,p[f],f,p[f].name,this.parsePercent(p[f].x,g),this.parsePercent(p[f].y,b),"pin",o,"rgba(0,0,0,0)","horizontal"),a._mark="point",U=this.deepMerge([p[f],t],"effect"),U.show&&(a.effect=U),i.type===h.CHART_TYPE_MAP&&(a._geo=this.getMarkGeo(p[f])),m.pack(a,i,e,p[f],f,p[f].name,r),d.push(a)));return d},_markLine:function(){function e(e,t){e[t]=e[t]instanceof Array?e[t].length>1?e[t]:[e[t][0],e[t][0]]:[e[t],e[t]]}return function(i,n){var a=this.series[i],o=this.component,r=o.dataRange,s=o.legend;u.merge(u.merge(n,u.clone(this.ecTheme.markLine||{})),u.clone(h.markLine));var l=s?s.getColor(a.name):this.zr.getColor(i);e(n,"symbol"),e(n,"symbolSize"),e(n,"symbolRotate");for(var V=n.data,U=[],d=this.zr.getWidth(),p=this.zr.getHeight(),y=0;y<V.length;y++){var g=V[y];if(t(g[0])&&t(g[1])){var b=this.deepMerge(g),f=[b,n],k=l,x=null!=b.value?b.value:"";if(r){k=isNaN(x)?k:r.getColor(x);var _=this.deepQuery(f,"itemStyle.normal.color")||k,L=this.deepQuery(f,"itemStyle.emphasis.color")||_;if(null==_&&null==L)continue}g[0].tooltip=b.tooltip||n.tooltip||{trigger:"item"},g[0].name=g[0].name||"",g[1].name=g[1].name||"",g[0].value=x,U.push({points:[[this.parsePercent(g[0].x,d),this.parsePercent(g[0].y,p)],[this.parsePercent(g[1].x,d),this.parsePercent(g[1].y,p)]],rawData:g,color:k})}}var W=this.query(n,"bundling.enable");if(W){var X=new c;X.maxTurningAngle=this.query(n,"bundling.maxTurningAngle")/180*Math.PI,U=X.run(U)}n.name=a.name;for(var v=[],y=0,w=U.length;w>y;y++){var K=U[y],I=K.rawEdge||K,g=I.rawData,x=null!=g.value?g.value:"",J=this.getMarkLineShape(n,i,g,y,K.points,W,I.color);J._mark="line";var C=this.deepMerge([g[0],g[1],n],"effect");C.show&&(J.effect=C,J.effect.large=n.large),a.type===h.CHART_TYPE_MAP&&(J._geo=[this.getMarkGeo(g[0]),this.getMarkGeo(g[1])]),m.pack(J,a,i,g[0],y,g[0].name+(""!==g[1].name?" > "+g[1].name:""),x),v.push(J)}return v}}(),getMarkCoord:function(){return[0,0]},getSymbolShape:function(e,t,i,o,r,s,l,h,V,U,d){var p=[i,e],c=this.getDataFromOption(i,"-");h=this.deepQuery(p,"symbol")||h;var u=this.deepQuery(p,"symbolSize");u="function"==typeof u?u(c):u,"number"==typeof u&&(u=[u,u]);var y=this.deepQuery(p,"symbolRotate"),g=this.deepMerge(p,"itemStyle.normal"),b=this.deepMerge(p,"itemStyle.emphasis"),f=null!=g.borderWidth?g.borderWidth:g.lineStyle&&g.lineStyle.width;null==f&&(f=h.match("empty")?2:0);var k=null!=b.borderWidth?b.borderWidth:b.lineStyle&&b.lineStyle.width;null==k&&(k=f+2);var x=this.getItemStyleColor(g.color,t,o,i),_=this.getItemStyleColor(b.color,t,o,i),L=u[0],W=u[1],X=new a({style:{iconType:h.replace("empty","").toLowerCase(),x:s-L,y:l-W,width:2*L,height:2*W,brushType:"both",color:h.match("empty")?U:x||V,strokeColor:g.borderColor||x||V,lineWidth:f},highlightStyle:{color:h.match("empty")?U:_||x||V,strokeColor:b.borderColor||g.borderColor||_||x||V,lineWidth:k},clickable:this.deepQuery(p,"clickable")});return h.match("image")&&(X.style.image=h.replace(new RegExp("^image:\\/\\/"),""),X=new n({style:X.style,highlightStyle:X.highlightStyle,clickable:this.deepQuery(p,"clickable")})),null!=y&&(X.rotation=[y*Math.PI/180,s,l]),h.match("star")&&(X.style.iconType="star",X.style.n=h.replace("empty","").replace("star","")-0||5),"none"===h&&(X.invisible=!0,X.hoverable=!1),X=this.addLabel(X,e,i,r,d),h.match("empty")&&(null==X.style.textColor&&(X.style.textColor=X.style.strokeColor),null==X.highlightStyle.textColor&&(X.highlightStyle.textColor=X.highlightStyle.strokeColor)),m.pack(X,e,t,i,o,r),X._x=s,X._y=l,X._dataIndex=o,X._seriesIndex=t,X},getMarkLineShape:function(e,t,i,n,a,r,l){var h=null!=i[0].value?i[0].value:"-",m=null!=i[1].value?i[1].value:"-",V=[i[0].symbol||e.symbol[0],i[1].symbol||e.symbol[1]],U=[i[0].symbolSize||e.symbolSize[0],i[1].symbolSize||e.symbolSize[1]];U[0]="function"==typeof U[0]?U[0](h):U[0],U[1]="function"==typeof U[1]?U[1](m):U[1];var d=[this.query(i[0],"symbolRotate")||e.symbolRotate[0],this.query(i[1],"symbolRotate")||e.symbolRotate[1]],p=[i[0],i[1],e],c=this.deepMerge(p,"itemStyle.normal");c.color=this.getItemStyleColor(c.color,t,n,i);var u=this.deepMerge(p,"itemStyle.emphasis");u.color=this.getItemStyleColor(u.color,t,n,i);var y=c.lineStyle,g=u.lineStyle,b=y.width;null==b&&(b=c.borderWidth);var f=g.width;null==f&&(f=null!=u.borderWidth?u.borderWidth:b+2);var k=this.deepQuery(p,"smoothness");this.deepQuery(p,"smooth")||(k=0);var x=r?s:o,_=new x({style:{symbol:V,symbolSize:U,symbolRotate:d,brushType:"both",lineType:y.type,shadowColor:y.shadowColor||y.color||c.borderColor||c.color||l,shadowBlur:y.shadowBlur,shadowOffsetX:y.shadowOffsetX,shadowOffsetY:y.shadowOffsetY,color:c.color||l,strokeColor:y.color||c.borderColor||c.color||l,lineWidth:b,symbolBorderColor:c.borderColor||c.color||l,symbolBorder:c.borderWidth},highlightStyle:{shadowColor:g.shadowColor,shadowBlur:g.shadowBlur,shadowOffsetX:g.shadowOffsetX,shadowOffsetY:g.shadowOffsetY,color:u.color||c.color||l,strokeColor:g.color||y.color||u.borderColor||c.borderColor||u.color||c.color||l,lineWidth:f,symbolBorderColor:u.borderColor||c.borderColor||u.color||c.color||l,symbolBorder:null==u.borderWidth?c.borderWidth+2:u.borderWidth},clickable:this.deepQuery(p,"clickable")}),L=_.style;return r?(L.pointList=a,L.smooth=k):(L.xStart=a[0][0],L.yStart=a[0][1],L.xEnd=a[1][0],L.yEnd=a[1][1],L.curveness=k,_.updatePoints(_.style)),_=this.addLabel(_,e,i[0],i[0].name+" : "+i[1].name)},getLargeMarkPointShape:function(e,t){var i,n,a,o,s,l,h=this.series[e],m=this.component,V=t.data,U=m.dataRange,d=m.legend,p=[V[0],t];if(d&&(n=d.getColor(h.name)),!U||(a=null!=V[0].value?V[0].value:"",n=isNaN(a)?n:U.getColor(a),o=this.deepQuery(p,"itemStyle.normal.color")||n,s=this.deepQuery(p,"itemStyle.emphasis.color")||o,null!=o||null!=s)){n=this.deepMerge(p,"itemStyle.normal").color||n;var c=this.deepQuery(p,"symbol")||"circle";c=c.replace("empty","").replace(/\d/g,""),l=this.deepMerge([V[0],t],"effect");var u=window.devicePixelRatio||1;return i=new r({style:{pointList:V,color:n,strokeColor:n,shadowColor:l.shadowColor||n,shadowBlur:(null!=l.shadowBlur?l.shadowBlur:8)*u,size:this.deepQuery(p,"symbolSize"),iconType:c,brushType:"fill",lineWidth:1},draggable:!1,hoverable:!1}),l.show&&(i.effect=l),i}},backupShapeList:function(){this.shapeList&&this.shapeList.length>0?(this.lastShapeList=this.shapeList,this.shapeList=[]):this.lastShapeList=[]},addShapeList:function(){var e,t,i=this.option.animationThreshold/(this.canvasSupported?2:4),n=this.lastShapeList,a=this.shapeList,o=n.length>0,r=o?this.query(this.option,"animationDurationUpdate"):this.query(this.option,"animationDuration"),s=this.query(this.option,"animationEasing"),l={},m={};if(this.option.animation&&!this.option.renderAsImage&&a.length<i&&!this.motionlessOnce){for(var V=0,U=n.length;U>V;V++)t=this._getAnimationKey(n[V]),t.match("undefined")?this.zr.delShape(n[V].id):(t+=n[V].type,l[t]?this.zr.delShape(n[V].id):l[t]=n[V]);for(var V=0,U=a.length;U>V;V++)t=this._getAnimationKey(a[V]),t.match("undefined")?this.zr.addShape(a[V]):(t+=a[V].type,m[t]=a[V]);for(t in l)m[t]||this.zr.delShape(l[t].id);for(t in m)l[t]?(this.zr.delShape(l[t].id),this._animateMod(l[t],m[t],r,s,0,o)):(e=this.type!=h.CHART_TYPE_LINE&&this.type!=h.CHART_TYPE_RADAR||0===t.indexOf("icon")?0:r/2,this._animateMod(!1,m[t],r,s,e,o));this.zr.refresh(),this.animationEffect()}else{this.motionlessOnce=!1,this.zr.delShape(n);for(var V=0,U=a.length;U>V;V++)this.zr.addShape(a[V])}},_getAnimationKey:function(e){return this.type!=h.CHART_TYPE_MAP&&this.type!=h.CHART_TYPE_TREEMAP&&this.type!=h.CHART_TYPE_VENN&&this.type!=h.CHART_TYPE_TREE?m.get(e,"seriesIndex")+"_"+m.get(e,"dataIndex")+(e._mark?e._mark:"")+(this.type===h.CHART_TYPE_RADAR?m.get(e,"special"):""):m.get(e,"seriesIndex")+"_"+m.get(e,"dataIndex")+(e._mark?e._mark:"undefined")},_animateMod:function(e,t,i,n,a,o){switch(t.type){case"polyline":case"half-smooth-polygon":V.pointList(this.zr,e,t,i,n);break;case"rectangle":V.rectangle(this.zr,e,t,i,n);break;case"image":case"icon":V.icon(this.zr,e,t,i,n,a);break;case"candle":o?this.zr.addShape(t):V.candle(this.zr,e,t,i,n);break;case"ring":case"sector":case"circle":o?"sector"===t.type?V.sector(this.zr,e,t,i,n):this.zr.addShape(t):V.ring(this.zr,e,t,i+(m.get(t,"dataIndex")||0)%20*100,n);break;case"text":V.text(this.zr,e,t,i,n);break;case"polygon":o?V.pointList(this.zr,e,t,i,n):V.polygon(this.zr,e,t,i,n);break;case"ribbon":V.ribbon(this.zr,e,t,i,n);break;case"gauge-pointer":V.gaugePointer(this.zr,e,t,i,n);break;case"mark-line":V.markline(this.zr,e,t,i,n);break;case"bezier-curve":case"line":V.line(this.zr,e,t,i,n);break;default:this.zr.addShape(t)}},animationMark:function(e,t,i){for(var i=i||this.shapeList,n=0,a=i.length;a>n;n++)i[n]._mark&&this._animateMod(!1,i[n],e,t,0,!0);this.animationEffect(i)},animationEffect:function(e){if(!e&&this.clearEffectShape(),e=e||this.shapeList,null!=e){var t=h.EFFECT_ZLEVEL;this.canvasSupported&&this.zr.modLayer(t,{motionBlur:!0,lastFrameAlpha:this.option.effectBlendAlpha||h.effectBlendAlpha});for(var i,n=0,a=e.length;a>n;n++)i=e[n],i._mark&&i.effect&&i.effect.show&&U[i._mark]&&(U[i._mark](this.zr,this.effectList,i,t),this.effectList[this.effectList.length-1]._mark=i._mark)}},clearEffectShape:function(e){var t=this.effectList;if(this.zr&&t&&t.length>0){e&&this.zr.modLayer(h.EFFECT_ZLEVEL,{motionBlur:!1}),this.zr.delShape(t);for(var i=0;i<t.length;i++)t[i].effectAnimator&&t[i].effectAnimator.stop()}this.effectList=[]},addMark:function(e,t,i){var n=this.series[e];if(this.selectedMap[n.name]){var a=this.query(this.option,"animationDurationUpdate"),o=this.query(this.option,"animationEasing"),r=n[i].data,s=this.shapeList.length;if(n[i].data=t.data,this["_build"+i.replace("m","M")](e),this.option.animation&&!this.option.renderAsImage)this.animationMark(a,o,this.shapeList.slice(s));else{for(var l=s,h=this.shapeList.length;h>l;l++)this.zr.addShape(this.shapeList[l]);this.zr.refreshNextFrame()}n[i].data=r}},delMark:function(e,t,i){i=i.replace("mark","").replace("large","").toLowerCase();var n=this.series[e];if(this.selectedMap[n.name]){for(var a=!1,o=[this.shapeList,this.effectList],r=2;r--;)for(var s=0,l=o[r].length;l>s;s++)if(o[r][s]._mark==i&&m.get(o[r][s],"seriesIndex")==e&&m.get(o[r][s],"name")==t){this.zr.delShape(o[r][s].id),o[r].splice(s,1),a=!0;break}a&&this.zr.refreshNextFrame()}}},u.inherits(i,p),i}),i("zrender/shape/Circle",["require","./Base","../tool/util"],function(e){"use strict";var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"circle",buildPath:function(e,t){e.moveTo(t.x+t.r,t.y),e.arc(t.x,t.y,t.r,0,2*Math.PI,!0)},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.r-t/2),y:Math.round(e.y-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("echarts/util/accMath",[],function(){function e(e,t){var i=e.toString(),n=t.toString(),a=0;try{a=n.split(".")[1].length}catch(o){}try{a-=i.split(".")[1].length}catch(o){}return(i.replace(".","")-0)/(n.replace(".","")-0)*Math.pow(10,a)}function t(e,t){var i=e.toString(),n=t.toString(),a=0;try{a+=i.split(".")[1].length}catch(o){}try{a+=n.split(".")[1].length}catch(o){}return(i.replace(".","")-0)*(n.replace(".","")-0)/Math.pow(10,a)}function i(e,t){var i=0,n=0;try{i=e.toString().split(".")[1].length}catch(a){}try{n=t.toString().split(".")[1].length}catch(a){}var o=Math.pow(10,Math.max(i,n));return(Math.round(e*o)+Math.round(t*o))/o}function n(e,t){return i(e,-t)}return{accDiv:e,accMul:t,accAdd:i,accSub:n}}),i("echarts/util/shape/Icon",["require","zrender/tool/util","zrender/shape/Star","zrender/shape/Heart","zrender/shape/Droplet","zrender/shape/Image","zrender/shape/Base"],function(e){function t(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n+t.height),e.lineTo(i+5*a,n+14*o),e.lineTo(i+t.width,n+3*o),e.lineTo(i+13*a,n),e.lineTo(i+2*a,n+11*o),e.lineTo(i,n+t.height),e.moveTo(i+6*a,n+10*o),e.lineTo(i+14*a,n+2*o),e.moveTo(i+10*a,n+13*o),e.lineTo(i+t.width,n+13*o),e.moveTo(i+13*a,n+10*o),e.lineTo(i+13*a,n+t.height)}function i(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n+t.height),e.lineTo(i+5*a,n+14*o),e.lineTo(i+t.width,n+3*o),e.lineTo(i+13*a,n),e.lineTo(i+2*a,n+11*o),e.lineTo(i,n+t.height),e.moveTo(i+6*a,n+10*o),e.lineTo(i+14*a,n+2*o),e.moveTo(i+10*a,n+13*o),e.lineTo(i+t.width,n+13*o)}function n(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i+4*a,n+15*o),e.lineTo(i+9*a,n+13*o),e.lineTo(i+14*a,n+8*o),e.lineTo(i+11*a,n+5*o),e.lineTo(i+6*a,n+10*o),e.lineTo(i+4*a,n+15*o),e.moveTo(i+5*a,n),e.lineTo(i+11*a,n),e.moveTo(i+5*a,n+o),e.lineTo(i+11*a,n+o),e.moveTo(i,n+2*o),e.lineTo(i+t.width,n+2*o),e.moveTo(i,n+5*o),e.lineTo(i+3*a,n+t.height),e.lineTo(i+13*a,n+t.height),e.lineTo(i+t.width,n+5*o)}function a(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n+3*o),e.lineTo(i+6*a,n+3*o),e.moveTo(i+3*a,n),e.lineTo(i+3*a,n+6*o),e.moveTo(i+3*a,n+8*o),e.lineTo(i+3*a,n+t.height),e.lineTo(i+t.width,n+t.height),e.lineTo(i+t.width,n+3*o),e.lineTo(i+8*a,n+3*o)}function o(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i+6*a,n),e.lineTo(i+2*a,n+3*o),e.lineTo(i+6*a,n+6*o),e.moveTo(i+2*a,n+3*o),e.lineTo(i+14*a,n+3*o),e.lineTo(i+14*a,n+11*o),e.moveTo(i+2*a,n+5*o),e.lineTo(i+2*a,n+13*o),e.lineTo(i+14*a,n+13*o),e.moveTo(i+10*a,n+10*o),e.lineTo(i+14*a,n+13*o),e.lineTo(i+10*a,n+t.height)}function r(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16,r=t.width/2;e.lineWidth=1.5,e.arc(i+r,n+r,r-a,0,2*Math.PI/3),e.moveTo(i+3*a,n+t.height),e.lineTo(i+0*a,n+12*o),e.lineTo(i+5*a,n+11*o),e.moveTo(i,n+8*o),e.arc(i+r,n+r,r-a,Math.PI,5*Math.PI/3),e.moveTo(i+13*a,n),e.lineTo(i+t.width,n+4*o),e.lineTo(i+11*a,n+5*o)}function s(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n),e.lineTo(i,n+t.height),e.lineTo(i+t.width,n+t.height),e.moveTo(i+2*a,n+14*o),e.lineTo(i+7*a,n+6*o),e.lineTo(i+11*a,n+11*o),e.lineTo(i+15*a,n+2*o)}function l(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n),e.lineTo(i,n+t.height),e.lineTo(i+t.width,n+t.height),e.moveTo(i+3*a,n+14*o),e.lineTo(i+3*a,n+6*o),e.lineTo(i+4*a,n+6*o),e.lineTo(i+4*a,n+14*o),e.moveTo(i+7*a,n+14*o),e.lineTo(i+7*a,n+2*o),e.lineTo(i+8*a,n+2*o),e.lineTo(i+8*a,n+14*o),e.moveTo(i+11*a,n+14*o),e.lineTo(i+11*a,n+9*o),e.lineTo(i+12*a,n+9*o),e.lineTo(i+12*a,n+14*o)}function h(e,t){var i=t.x,n=t.y,a=t.width-2,o=t.height-2,r=Math.min(a,o)/2;n+=2,e.moveTo(i+r+3,n+r-3),e.arc(i+r+3,n+r-3,r-1,0,-Math.PI/2,!0),e.lineTo(i+r+3,n+r-3),e.moveTo(i+r,n),e.lineTo(i+r,n+r),e.arc(i+r,n+r,r,-Math.PI/2,2*Math.PI,!0),e.lineTo(i+r,n+r),e.lineWidth=1.5}function m(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;n-=o,e.moveTo(i+1*a,n+2*o),e.lineTo(i+15*a,n+2*o),e.lineTo(i+14*a,n+3*o),e.lineTo(i+2*a,n+3*o),e.moveTo(i+3*a,n+6*o),e.lineTo(i+13*a,n+6*o),e.lineTo(i+12*a,n+7*o),e.lineTo(i+4*a,n+7*o),e.moveTo(i+5*a,n+10*o),e.lineTo(i+11*a,n+10*o),e.lineTo(i+10*a,n+11*o),e.lineTo(i+6*a,n+11*o),e.moveTo(i+7*a,n+14*o),e.lineTo(i+9*a,n+14*o),e.lineTo(i+8*a,n+15*o),e.lineTo(i+7*a,n+15*o)}function V(e,t){var i=t.x,n=t.y,a=t.width,o=t.height,r=a/16,s=o/16,l=2*Math.min(r,s);e.moveTo(i+r+l,n+s+l),e.arc(i+r,n+s,l,Math.PI/4,3*Math.PI),e.lineTo(i+7*r-l,n+6*s-l),e.arc(i+7*r,n+6*s,l,Math.PI/4*5,4*Math.PI),e.arc(i+7*r,n+6*s,l/2,Math.PI/4*5,4*Math.PI),e.moveTo(i+7*r-l/2,n+6*s+l),e.lineTo(i+r+l,n+14*s-l),e.arc(i+r,n+14*s,l,-Math.PI/4,2*Math.PI),e.moveTo(i+7*r+l/2,n+6*s),e.lineTo(i+14*r-l,n+10*s-l/2),e.moveTo(i+16*r,n+10*s),e.arc(i+14*r,n+10*s,l,0,3*Math.PI),e.lineWidth=1.5}function U(e,t){var i=t.x,n=t.y,a=t.width,o=t.height,r=Math.min(a,o)/2;e.moveTo(i+a,n+o/2),e.arc(i+r,n+r,r,0,2*Math.PI),e.arc(i+r,n,r,Math.PI/4,Math.PI/5*4),e.arc(i,n+r,r,-Math.PI/3,Math.PI/3),e.arc(i+a,n+o,r,Math.PI,Math.PI/2*3),e.lineWidth=1.5}function d(e,t){for(var i=t.x,n=t.y,a=t.width,o=t.height,r=Math.round(o/3),s=Math.round((r-2)/2),l=3;l--;)e.rect(i,n+r*l+s,a,2)}function p(e,t){for(var i=t.x,n=t.y,a=t.width,o=t.height,r=Math.round(a/3),s=Math.round((r-2)/2),l=3;l--;)e.rect(i+r*l+s,n,2,o)}function c(e,t){var i=t.x,n=t.y,a=t.width/16;e.moveTo(i+a,n),e.lineTo(i+a,n+t.height),e.lineTo(i+15*a,n+t.height),e.lineTo(i+15*a,n),e.lineTo(i+a,n),e.moveTo(i+3*a,n+3*a),e.lineTo(i+13*a,n+3*a),e.moveTo(i+3*a,n+6*a),e.lineTo(i+13*a,n+6*a),e.moveTo(i+3*a,n+9*a),e.lineTo(i+13*a,n+9*a),e.moveTo(i+3*a,n+12*a),e.lineTo(i+9*a,n+12*a)}function u(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n),e.lineTo(i,n+t.height),e.lineTo(i+t.width,n+t.height),e.lineTo(i+t.width,n),e.lineTo(i,n),e.moveTo(i+4*a,n),e.lineTo(i+4*a,n+8*o),e.lineTo(i+12*a,n+8*o),e.lineTo(i+12*a,n),e.moveTo(i+6*a,n+11*o),e.lineTo(i+6*a,n+13*o),e.lineTo(i+10*a,n+13*o),e.lineTo(i+10*a,n+11*o),e.lineTo(i+6*a,n+11*o)}function y(e,t){var i=t.x,n=t.y,a=t.width,o=t.height;e.moveTo(i,n+o/2),e.lineTo(i+a,n+o/2),e.moveTo(i+a/2,n),e.lineTo(i+a/2,n+o)}function g(e,t){var i=t.width/2,n=t.height/2,a=Math.min(i,n);e.moveTo(t.x+i+a,t.y+n),e.arc(t.x+i,t.y+n,a,0,2*Math.PI),e.closePath()}function b(e,t){e.rect(t.x,t.y,t.width,t.height),e.closePath()}function f(e,t){var i=t.width/2,n=t.height/2,a=t.x+i,o=t.y+n,r=Math.min(i,n);e.moveTo(a,o-r),e.lineTo(a+r,o+r),e.lineTo(a-r,o+r),e.lineTo(a,o-r),e.closePath()}function k(e,t){var i=t.width/2,n=t.height/2,a=t.x+i,o=t.y+n,r=Math.min(i,n);e.moveTo(a,o-r),e.lineTo(a+r,o),e.lineTo(a,o+r),e.lineTo(a-r,o),e.lineTo(a,o-r),e.closePath()}function x(e,t){var i=t.x,n=t.y,a=t.width/16;e.moveTo(i+8*a,n),e.lineTo(i+a,n+t.height),e.lineTo(i+8*a,n+t.height/4*3),e.lineTo(i+15*a,n+t.height),e.lineTo(i+8*a,n),e.closePath()}function _(t,i){var n=e("zrender/shape/Star"),a=i.width/2,o=i.height/2;n.prototype.buildPath(t,{x:i.x+a,y:i.y+o,r:Math.min(a,o),n:i.n||5})}function L(t,i){var n=e("zrender/shape/Heart");n.prototype.buildPath(t,{x:i.x+i.width/2,y:i.y+.2*i.height,a:i.width/2,b:.8*i.height})}function W(t,i){var n=e("zrender/shape/Droplet");n.prototype.buildPath(t,{x:i.x+.5*i.width,y:i.y+.5*i.height,a:.5*i.width,b:.8*i.height})}function X(e,t){var i=t.x,n=t.y-t.height/2*1.5,a=t.width/2,o=t.height/2,r=Math.min(a,o);e.arc(i+a,n+o,r,Math.PI/5*4,Math.PI/5),e.lineTo(i+a,n+o+1.5*r),e.closePath()}function v(t,i,n){var a=e("zrender/shape/Image");this._imageShape=this._imageShape||new a({style:{}});for(var o in i)this._imageShape.style[o]=i[o];this._imageShape.brush(t,!1,n)}function w(e){I.call(this,e)}var K=e("zrender/tool/util"),I=e("zrender/shape/Base");return w.prototype={type:"icon",iconLibrary:{mark:t,markUndo:i,markClear:n,dataZoom:a,dataZoomReset:o,restore:r,lineChart:s,barChart:l,pieChart:h,funnelChart:m,forceChart:V,chordChart:U,stackChart:d,tiledChart:p,dataView:c,saveAsImage:u,cross:y,circle:g,rectangle:b,triangle:f,diamond:k,arrow:x,star:_,heart:L,droplet:W,pin:X,image:v},brush:function(t,i,n){var a=i?this.highlightStyle:this.style;a=a||{};var o=a.iconType||this.style.iconType;if("image"===o){var r=e("zrender/shape/Image");r.prototype.brush.call(this,t,i,n)}else{var a=this.beforeBrush(t,i);switch(t.beginPath(),this.buildPath(t,a,n),a.brushType){case"both":t.fill();case"stroke":a.lineWidth>0&&t.stroke();break;default:t.fill()}this.drawText(t,a,this.style),this.afterBrush(t)}},buildPath:function(e,t,i){this.iconLibrary[t.iconType]?this.iconLibrary[t.iconType].call(this,e,t,i):(e.moveTo(t.x,t.y),e.lineTo(t.x+t.width,t.y),e.lineTo(t.x+t.width,t.y+t.height),e.lineTo(t.x,t.y+t.height),e.lineTo(t.x,t.y),e.closePath())},getRect:function(e){return e.__rect?e.__rect:(e.__rect={x:Math.round(e.x),y:Math.round(e.y-("pin"==e.iconType?e.height/2*1.5:0)),width:e.width,height:e.height*("pin"===e.iconType?1.25:1)},e.__rect)},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);e=i[0],t=i[1];var n=this.style.__rect;n||(n=this.style.__rect=this.getRect(this.style));var a=n.height<8||n.width<8?4:0;return e>=n.x-a&&e<=n.x+n.width+a&&t>=n.y-a&&t<=n.y+n.height+a}},K.inherits(w,I),w}),i("echarts/util/shape/MarkLine",["require","zrender/shape/Base","./Icon","zrender/shape/Line","zrender/shape/BezierCurve","zrender/tool/area","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/curve"],function(e){function t(e){i.call(this,e),this.style.curveness>0&&this.updatePoints(this.style),this.highlightStyle.curveness>0&&this.updatePoints(this.highlightStyle)}var i=e("zrender/shape/Base"),n=e("./Icon"),a=e("zrender/shape/Line"),o=new a({}),r=e("zrender/shape/BezierCurve"),s=new r({}),l=e("zrender/tool/area"),h=e("zrender/shape/util/dashedLineTo"),m=e("zrender/tool/util"),V=e("zrender/tool/curve");return t.prototype={type:"mark-line",brush:function(e,t){var i=this.style;t&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),e.save(),this.setContext(e,i),this.setTransform(e),e.save(),e.beginPath(),this.buildPath(e,i),e.stroke(),e.restore(),this.brushSymbol(e,i,0),this.brushSymbol(e,i,1),this.drawText(e,i,this.style),e.restore()},buildPath:function(e,t){var i=t.lineType||"solid";if(e.moveTo(t.xStart,t.yStart),t.curveness>0){var n=null;switch(i){case"dashed":n=[5,5];break;case"dotted":n=[1,1]}n&&e.setLineDash&&e.setLineDash(n),e.quadraticCurveTo(t.cpX1,t.cpY1,t.xEnd,t.yEnd)}else if("solid"==i)e.lineTo(t.xEnd,t.yEnd);else{var a=(t.lineWidth||1)*("dashed"==t.lineType?5:1);h(e,t.xStart,t.yStart,t.xEnd,t.yEnd,a)}},updatePoints:function(e){var t=e.curveness||0,i=1,n=e.xStart,a=e.yStart,o=e.xEnd,r=e.yEnd,s=(n+o)/2-i*(a-r)*t,l=(a+r)/2-i*(o-n)*t;e.cpX1=s,e.cpY1=l},brushSymbol:function(e,t,i){if("none"!=t.symbol[i]){e.save(),e.beginPath(),e.lineWidth=t.symbolBorder,e.strokeStyle=t.symbolBorderColor;var a=t.symbol[i].replace("empty","").toLowerCase();t.symbol[i].match("empty")&&(e.fillStyle="#fff");var o=t.xStart,r=t.yStart,s=t.xEnd,l=t.yEnd,h=0===i?o:s,m=0===i?r:l,U=t.curveness||0,d=null!=t.symbolRotate[i]?t.symbolRotate[i]-0:0;if(d=d/180*Math.PI,"arrow"==a&&0===d)if(0===U){var p=0===i?-1:1;d=Math.PI/2+Math.atan2(p*(l-r),p*(s-o))}else{var c=t.cpX1,u=t.cpY1,y=V.quadraticDerivativeAt,g=y(o,c,s,i),b=y(r,u,l,i);d=Math.PI/2+Math.atan2(b,g)}e.translate(h,m),0!==d&&e.rotate(d);var f=t.symbolSize[i];n.prototype.buildPath(e,{x:-f,y:-f,width:2*f,height:2*f,iconType:a}),e.closePath(),e.fill(),e.stroke(),e.restore()}},getRect:function(e){return e.curveness>0?s.getRect(e):o.getRect(e),e.__rect},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)?this.style.curveness>0?l.isInside(s,this.style,e,t):l.isInside(o,this.style,e,t):!1}},m.inherits(t,i),t}),i("echarts/util/shape/Symbol",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/Polygon"),a=new n({}),o=e("zrender/tool/util");return t.prototype={type:"symbol",buildPath:function(e,t){var i=t.pointList,n=i.length;if(0!==n)for(var a,o,r,s,l,h=1e4,m=Math.ceil(n/h),V=i[0]instanceof Array,U=t.size?t.size:2,d=U,p=U/2,c=2*Math.PI,u=0;m>u;u++){e.beginPath(),a=u*h,o=a+h,o=o>n?n:o;for(var y=a;o>y;y++)if(t.random&&(r=t["randomMap"+y%20]/100,d=U*r*r,p=d/2),V?(s=i[y][0],l=i[y][1]):(s=i[y].x,l=i[y].y),3>d)e.rect(s-p,l-p,d,d);else switch(t.iconType){case"circle":e.moveTo(s,l),e.arc(s,l,p,0,c,!0);break;case"diamond":e.moveTo(s,l-p),e.lineTo(s+p/3,l-p/3),e.lineTo(s+p,l),e.lineTo(s+p/3,l+p/3),e.lineTo(s,l+p),e.lineTo(s-p/3,l+p/3),e.lineTo(s-p,l),e.lineTo(s-p/3,l-p/3),e.lineTo(s,l-p);break;default:e.rect(s-p,l-p,d,d)}if(e.closePath(),m-1>u)switch(t.brushType){case"both":e.fill(),t.lineWidth>0&&e.stroke();break;case"stroke":t.lineWidth>0&&e.stroke();break;default:e.fill()}}},getRect:function(e){return e.__rect||a.getRect(e)},isCover:e("./normalIsCover")},o.inherits(t,i),t}),i("zrender/shape/Polyline",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","./Polygon","../tool/util"],function(e){var t=e("./Base"),i=e("./util/smoothSpline"),n=e("./util/smoothBezier"),a=e("./util/dashedLineTo"),o=function(e){this.brushTypeOnly="stroke",this.textPosition="end",t.call(this,e)};return o.prototype={type:"polyline",buildPath:function(e,t){var n=t.pointList;if(!(n.length<2)){var o=Math.min(t.pointList.length,Math.round(t.pointListLength||t.pointList.length));if(t.smooth&&"spline"!==t.smooth){t.controlPointList||this.updateControlPoints(t);var r=t.controlPointList;e.moveTo(n[0][0],n[0][1]);for(var s,l,h,m=0;o-1>m;m++)s=r[2*m],l=r[2*m+1],h=n[m+1],e.bezierCurveTo(s[0],s[1],l[0],l[1],h[0],h[1])}else if("spline"===t.smooth&&(n=i(n),o=n.length),t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var V=(t.lineWidth||1)*("dashed"==t.lineType?5:1);e.moveTo(n[0][0],n[0][1]);for(var m=1;o>m;m++)a(e,n[m-1][0],n[m-1][1],n[m][0],n[m][1],V)}}else{e.moveTo(n[0][0],n[0][1]);for(var m=1;o>m;m++)e.lineTo(n[m][0],n[m][1])}}},updateControlPoints:function(e){e.controlPointList=n(e.pointList,e.smooth,!1,e.smoothConstraint)},getRect:function(t){return e("./Polygon").prototype.getRect(t)}},e("../tool/util").inherits(o,t),o}),i("zrender/shape/ShapeBundle",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={constructor:i,type:"shape-bundle",brush:function(e,t){var i=this.beforeBrush(e,t);e.beginPath();for(var n=0;n<i.shapeList.length;n++){var a=i.shapeList[n],o=a.style;t&&(o=a.getHighlightStyle(o,a.highlightStyle||{},a.brushTypeOnly)),a.buildPath(e,o)}switch(i.brushType){case"both":e.fill();case"stroke":i.lineWidth>0&&e.stroke();break;default:e.fill()}this.drawText(e,i,this.style),this.afterBrush(e)},getRect:function(e){if(e.__rect)return e.__rect;for(var t=1/0,i=-(1/0),n=1/0,a=-(1/0),o=0;o<e.shapeList.length;o++)var r=e.shapeList[o],s=r.getRect(r.style),t=Math.min(s.x,t),n=Math.min(s.y,n),i=Math.max(s.x+s.width,i),a=Math.max(s.y+s.height,a);return e.__rect={x:t,y:n,width:i-t,height:a-n},e.__rect},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);if(e=i[0],t=i[1],this.isCoverRect(e,t))for(var n=0;n<this.style.shapeList.length;n++){var a=this.style.shapeList[n];if(a.isCover(e,t))return!0}return!1}},e("../tool/util").inherits(i,t),i}),i("echarts/util/ecAnimation",["require","zrender/tool/util","zrender/tool/curve","zrender/shape/Polygon"],function(e){function t(e,t,i,n,a){var o,r=i.style.pointList,s=r.length;if(!t){if(o=[],"vertical"!=i._orient)for(var l=r[0][1],h=0;s>h;h++)o[h]=[r[h][0],l];else for(var m=r[0][0],h=0;s>h;h++)o[h]=[m,r[h][1]];"half-smooth-polygon"==i.type&&(o[s-1]=p.clone(r[s-1]),o[s-2]=p.clone(r[s-2])),t={style:{pointList:o}}}o=t.style.pointList;var V=o.length;i.style.pointList=V==s?o:s>V?o.concat(r.slice(V)):o.slice(0,s),e.addShape(i),i.__animating=!0,e.animate(i.id,"style").when(n,{pointList:r}).during(function(){i.updateControlPoints&&i.updateControlPoints(i.style)}).done(function(){i.__animating=!1}).start(a)}function i(e,t){for(var i=arguments.length,n=2;i>n;n++){var a=arguments[n];e.style[a]=t.style[a]}}function n(e,t,n,a,o){var r=n.style;t||(t={position:n.position,style:{x:r.x,y:"vertical"==n._orient?r.y+r.height:r.y,width:"vertical"==n._orient?r.width:0,height:"vertical"!=n._orient?r.height:0}});var s=r.x,l=r.y,h=r.width,m=r.height,V=[n.position[0],n.position[1]];i(n,t,"x","y","width","height"),n.position=t.position,e.addShape(n),(V[0]!=t.position[0]||V[1]!=t.position[1])&&e.animate(n.id,"").when(a,{position:V}).start(o),n.__animating=!0,e.animate(n.id,"style").when(a,{x:s,y:l,width:h,height:m}).done(function(){n.__animating=!1}).start(o)}function a(e,t,i,n,a){if(!t){var o=i.style.y;t={style:{y:[o[0],o[0],o[0],o[0]]}}}var r=i.style.y;i.style.y=t.style.y,e.addShape(i),i.__animating=!0,e.animate(i.id,"style").when(n,{y:r}).done(function(){i.__animating=!1}).start(a)}function o(e,t,i,n,a){var o=i.style.x,r=i.style.y,s=i.style.r0,l=i.style.r;i.__animating=!0,"r"!=i._animationAdd?(i.style.r0=0,i.style.r=0,i.rotation=[2*Math.PI,o,r],e.addShape(i),e.animate(i.id,"style").when(n,{r0:s,r:l}).done(function(){i.__animating=!1}).start(a),e.animate(i.id,"").when(n,{rotation:[0,o,r]}).start(a)):(i.style.r0=i.style.r,e.addShape(i),e.animate(i.id,"style").when(n,{r0:s}).done(function(){i.__animating=!1}).start(a))}function r(e,t,n,a,o){t||(t="r"!=n._animationAdd?{
    +style:{startAngle:n.style.startAngle,endAngle:n.style.startAngle}}:{style:{r0:n.style.r}});var r=n.style.startAngle,s=n.style.endAngle;i(n,t,"startAngle","endAngle"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{startAngle:r,endAngle:s}).done(function(){n.__animating=!1}).start(o)}function s(e,t,n,a,o){t||(t={style:{x:"left"==n.style.textAlign?n.style.x+100:n.style.x-100,y:n.style.y}});var r=n.style.x,s=n.style.y;i(n,t,"x","y"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{x:r,y:s}).done(function(){n.__animating=!1}).start(o)}function l(t,i,n,a,o){var r=e("zrender/shape/Polygon").prototype.getRect(n.style),s=r.x+r.width/2,l=r.y+r.height/2;n.scale=[.1,.1,s,l],t.addShape(n),n.__animating=!0,t.animate(n.id,"").when(a,{scale:[1,1,s,l]}).done(function(){n.__animating=!1}).start(o)}function h(e,t,n,a,o){t||(t={style:{source0:0,source1:n.style.source1>0?360:-360,target0:0,target1:n.style.target1>0?360:-360}});var r=n.style.source0,s=n.style.source1,l=n.style.target0,h=n.style.target1;t.style&&i(n,t,"source0","source1","target0","target1"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{source0:r,source1:s,target0:l,target1:h}).done(function(){n.__animating=!1}).start(o)}function m(e,t,i,n,a){t||(t={style:{angle:i.style.startAngle}});var o=i.style.angle;i.style.angle=t.style.angle,e.addShape(i),i.__animating=!0,e.animate(i.id,"style").when(n,{angle:o}).done(function(){i.__animating=!1}).start(a)}function V(e,t,i,a,o,r){if(i.style._x=i.style.x,i.style._y=i.style.y,i.style._width=i.style.width,i.style._height=i.style.height,t)n(e,t,i,a,o);else{var s=i._x||0,l=i._y||0;i.scale=[.01,.01,s,l],e.addShape(i),i.__animating=!0,e.animate(i.id,"").delay(r).when(a,{scale:[1,1,s,l]}).done(function(){i.__animating=!1}).start(o||"QuinticOut")}}function U(e,t,n,a,o){t||(t={style:{xStart:n.style.xStart,yStart:n.style.yStart,xEnd:n.style.xStart,yEnd:n.style.yStart}});var r=n.style.xStart,s=n.style.xEnd,l=n.style.yStart,h=n.style.yEnd;i(n,t,"xStart","xEnd","yStart","yEnd"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{xStart:r,xEnd:s,yStart:l,yEnd:h}).done(function(){n.__animating=!1}).start(o)}function d(e,t,i,n,a){a=a||"QuinticOut",i.__animating=!0,e.addShape(i);var o=i.style,r=function(){i.__animating=!1},s=o.xStart,l=o.yStart,h=o.xEnd,m=o.yEnd;if(o.curveness>0){i.updatePoints(o);var V={p:0},U=o.cpX1,d=o.cpY1,p=[],u=[],y=c.quadraticSubdivide;e.animation.animate(V).when(n,{p:1}).during(function(){y(s,U,h,V.p,p),y(l,d,m,V.p,u),o.cpX1=p[1],o.cpY1=u[1],o.xEnd=p[2],o.yEnd=u[2],e.modShape(i)}).done(r).start(a)}else e.animate(i.id,"style").when(0,{xEnd:s,yEnd:l}).when(n,{xEnd:h,yEnd:m}).done(r).start(a)}var p=e("zrender/tool/util"),c=e("zrender/tool/curve");return{pointList:t,rectangle:n,candle:a,ring:o,sector:r,text:s,polygon:l,ribbon:h,gaugePointer:m,icon:V,line:U,markline:d}}),i("echarts/util/ecEffect",["require","../util/ecData","zrender/shape/Circle","zrender/shape/Image","zrender/tool/curve","../util/shape/Icon","../util/shape/Symbol","zrender/shape/ShapeBundle","zrender/shape/Polyline","zrender/tool/vector","zrender/tool/env"],function(e){function t(e,t,i,n){var a,r=i.effect,l=r.color||i.style.strokeColor||i.style.color,m=r.shadowColor||l,V=r.scaleSize,U=r.bounceDistance,d="undefined"!=typeof r.shadowBlur?r.shadowBlur:V;"image"!==i.type?(a=new h({zlevel:n,style:{brushType:"stroke",iconType:"droplet"!=i.style.iconType?i.style.iconType:"circle",x:d+1,y:d+1,n:i.style.n,width:i.style._width*V,height:i.style._height*V,lineWidth:1,strokeColor:l,shadowColor:m,shadowBlur:d},draggable:!1,hoverable:!1}),"pin"==i.style.iconType&&(a.style.y+=a.style.height/2*1.5),p&&(a.style.image=e.shapeToImage(a,a.style.width+2*d+2,a.style.height+2*d+2).style.image,a=new s({zlevel:a.zlevel,style:a.style,draggable:!1,hoverable:!1}))):a=new s({zlevel:n,style:i.style,draggable:!1,hoverable:!1}),o.clone(i,a),a.position=i.position,t.push(a),e.addShape(a);var c="image"!==i.type?window.devicePixelRatio||1:1,u=(a.style.width/c-i.style._width)/2;a.style.x=i.style._x-u,a.style.y=i.style._y-u,"pin"==i.style.iconType&&(a.style.y-=i.style.height/2*1.5);var y=100*(r.period+10*Math.random());e.modShape(i.id,{invisible:!0});var g=a.style.x+a.style.width/2/c,b=a.style.y+a.style.height/2/c;"scale"===r.type?(e.modShape(a.id,{scale:[.1,.1,g,b]}),e.animate(a.id,"",r.loop).when(y,{scale:[1,1,g,b]}).done(function(){i.effect.show=!1,e.delShape(a.id)}).start()):e.animate(a.id,"style",r.loop).when(y,{y:a.style.y-U}).when(2*y,{y:a.style.y}).done(function(){i.effect.show=!1,e.delShape(a.id)}).start()}function i(e,t,i,n){var a=i.effect,o=a.color||i.style.strokeColor||i.style.color,r=a.scaleSize,s=a.shadowColor||o,l="undefined"!=typeof a.shadowBlur?a.shadowBlur:2*r,h=window.devicePixelRatio||1,V=new m({zlevel:n,position:i.position,scale:i.scale,style:{pointList:i.style.pointList,iconType:i.style.iconType,color:o,strokeColor:o,shadowColor:s,shadowBlur:l*h,random:!0,brushType:"fill",lineWidth:1,size:i.style.size},draggable:!1,hoverable:!1});t.push(V),e.addShape(V),e.modShape(i.id,{invisible:!0});for(var U=Math.round(100*a.period),d={},p={},c=0;20>c;c++)V.style["randomMap"+c]=0,d={},d["randomMap"+c]=100,p={},p["randomMap"+c]=0,V.style["randomMap"+c]=100*Math.random(),e.animate(V.id,"style",!0).when(U,d).when(2*U,p).when(3*U,d).when(4*U,d).delay(Math.random()*U*c).start()}function n(e,t,i,n,a){var s=i.effect,h=i.style,m=s.color||h.strokeColor||h.color,V=s.shadowColor||h.strokeColor||m,c=h.lineWidth*s.scaleSize,u="undefined"!=typeof s.shadowBlur?s.shadowBlur:c,y=new r({zlevel:n,style:{x:u,y:u,r:c,color:m,shadowColor:V,shadowBlur:u},hoverable:!1}),g=0;if(p&&!a){var n=y.zlevel;y=e.shapeToImage(y,2*(c+u),2*(c+u)),y.zlevel=n,y.hoverable=!1,g=u}a||(o.clone(i,y),y.position=i.position,t.push(y),e.addShape(y));var b=function(){a||(i.effect.show=!1,e.delShape(y.id)),y.effectAnimator=null};if(i instanceof U){for(var f=[0],k=0,x=h.pointList,_=h.controlPointList,L=1;L<x.length;L++){if(_){var W=_[2*(L-1)],X=_[2*(L-1)+1];k+=d.dist(x[L-1],W)+d.dist(W,X)+d.dist(X,x[L])}else k+=d.dist(x[L-1],x[L]);f.push(k)}for(var v={p:0},w=e.animation.animate(v,{loop:s.loop}),L=0;L<f.length;L++)w.when(f[L]*s.period,{p:L});w.during(function(){var t,i,n=Math.floor(v.p);if(n==x.length-1)t=x[n][0],i=x[n][1];else{var o=v.p-n,r=x[n],s=x[n+1];if(_){var h=_[2*n],m=_[2*n+1];t=l.cubicAt(r[0],h[0],m[0],s[0],o),i=l.cubicAt(r[1],h[1],m[1],s[1],o)}else t=(s[0]-r[0])*o+r[0],i=(s[1]-r[1])*o+r[1]}y.style.x=t,y.style.y=i,a||e.modShape(y)}).done(b).start(),w.duration=k*s.period,y.effectAnimator=w}else{var K=h.xStart-g,I=h.yStart-g,J=h.xEnd-g,C=h.yEnd-g;y.style.x=K,y.style.y=I;var S=(J-K)*(J-K)+(C-I)*(C-I),E=Math.round(Math.sqrt(Math.round(S*s.period*s.period)));if(i.style.curveness>0){var F=h.cpX1-g,T=h.cpY1-g;y.effectAnimator=e.animation.animate(y,{loop:s.loop}).when(E,{p:1}).during(function(t,i){y.style.x=l.quadraticAt(K,F,J,i),y.style.y=l.quadraticAt(I,T,C,i),a||e.modShape(y)}).done(b).start()}else y.effectAnimator=e.animation.animate(y.style,{loop:s.loop}).when(E,{x:J,y:C}).during(function(){a||e.modShape(y)}).done(b).start();y.effectAnimator.duration=E}return y}function a(e,t,i,a){var o=new V({style:{shapeList:[]},zlevel:a,hoverable:!1}),r=i.style.shapeList,s=i.effect;o.position=i.position;for(var l=0,h=[],m=0;m<r.length;m++){r[m].effect=s;var U=n(e,null,r[m],a,!0),d=U.effectAnimator;o.style.shapeList.push(U),d.duration>l&&(l=d.duration),0===m&&(o.style.color=U.style.color,o.style.shadowBlur=U.style.shadowBlur,o.style.shadowColor=U.style.shadowColor),h.push(d)}t.push(o),e.addShape(o);var p=function(){for(var e=0;e<h.length;e++)h[e].stop()};if(l){o.__dummy=0;var c=e.animate(o.id,"",s.loop).when(l,{__dummy:1}).during(function(){e.modShape(o)}).done(function(){i.effect.show=!1,e.delShape(o.id)}).start(),u=c.stop;c.stop=function(){p(),u.call(this)}}}var o=e("../util/ecData"),r=e("zrender/shape/Circle"),s=e("zrender/shape/Image"),l=e("zrender/tool/curve"),h=e("../util/shape/Icon"),m=e("../util/shape/Symbol"),V=e("zrender/shape/ShapeBundle"),U=e("zrender/shape/Polyline"),d=e("zrender/tool/vector"),p=e("zrender/tool/env").canvasSupported;return{point:t,largePoint:i,line:n,largeLine:a}}),i("echarts/component/base",["require","../config","../util/ecData","../util/ecQuery","../util/number","zrender/tool/util","zrender/tool/env"],function(e){function t(e,t,a,o,r){this.ecTheme=e,this.messageCenter=t,this.zr=a,this.option=o,this.series=o.series,this.myChart=r,this.component=r.component,this.shapeList=[],this.effectList=[];var s=this;s._onlegendhoverlink=function(e){if(s.legendHoverLink)for(var t,a=e.target,o=s.shapeList.length-1;o>=0;o--)t=s.type==i.CHART_TYPE_PIE||s.type==i.CHART_TYPE_FUNNEL?n.get(s.shapeList[o],"name"):(n.get(s.shapeList[o],"series")||{}).name,t!=a||s.shapeList[o].invisible||s.shapeList[o].__animating||s.zr.addHoverShape(s.shapeList[o])},t&&t.bind(i.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink)}var i=e("../config"),n=e("../util/ecData"),a=e("../util/ecQuery"),o=e("../util/number"),r=e("zrender/tool/util");return t.prototype={canvasSupported:e("zrender/tool/env").canvasSupported,_getZ:function(e){if(null!=this[e])return this[e];var t=this.ecTheme[this.type];return t&&null!=t[e]?t[e]:(t=i[this.type],t&&null!=t[e]?t[e]:0)},getZlevelBase:function(){return this._getZ("zlevel")},getZBase:function(){return this._getZ("z")},reformOption:function(e){return e=r.merge(r.merge(e||{},r.clone(this.ecTheme[this.type]||{})),r.clone(i[this.type]||{})),this.z=e.z,this.zlevel=e.zlevel,e},reformCssArray:function(e){if(!(e instanceof Array))return[e,e,e,e];switch(e.length+""){case"4":return e;case"3":return[e[0],e[1],e[2],e[1]];case"2":return[e[0],e[1],e[0],e[1]];case"1":return[e[0],e[0],e[0],e[0]];case"0":return[0,0,0,0]}},getShapeById:function(e){for(var t=0,i=this.shapeList.length;i>t;t++)if(this.shapeList[t].id===e)return this.shapeList[t];return null},getFont:function(e){var t=this.getTextStyle(r.clone(e));return t.fontStyle+" "+t.fontWeight+" "+t.fontSize+"px "+t.fontFamily},getTextStyle:function(e){return r.merge(r.merge(e||{},this.ecTheme.textStyle),i.textStyle)},getItemStyleColor:function(e,t,i,n){return"function"==typeof e?e.call(this.myChart,{seriesIndex:t,series:this.series[t],dataIndex:i,data:n}):e},getDataFromOption:function(e,t){return null!=e?null!=e.value?e.value:e:t},subPixelOptimize:function(e,t){return e=t%2===1?Math.floor(e)+.5:Math.round(e)},resize:function(){this.refresh&&this.refresh(),this.clearEffectShape&&this.clearEffectShape(!0);var e=this;setTimeout(function(){e.animationEffect&&e.animationEffect()},200)},clear:function(){this.clearEffectShape&&this.clearEffectShape(),this.zr&&this.zr.delShape(this.shapeList),this.shapeList=[]},dispose:function(){this.onbeforDispose&&this.onbeforDispose(),this.clear(),this.shapeList=null,this.effectList=null,this.messageCenter&&this.messageCenter.unbind(i.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink),this.onafterDispose&&this.onafterDispose()},query:a.query,deepQuery:a.deepQuery,deepMerge:a.deepMerge,parsePercent:o.parsePercent,parseCenter:o.parseCenter,parseRadius:o.parseRadius,numAddCommas:o.addCommas,getPrecision:o.getPrecision},t}),i("echarts/layout/EdgeBundling",["require","../data/KDTree","zrender/tool/vector"],function(e){function t(e,t){e=e.array,t=t.array;var i=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2],o=t[3]-e[3];return i*i+n*n+a*a+o*o}function i(e){this.points=[e.mp0,e.mp1],this.group=e}function n(e){var t=e.points;t[0][1]<t[1][1]||e instanceof i?(this.array=[t[0][0],t[0][1],t[1][0],t[1][1]],this._startPoint=t[0],this._endPoint=t[1]):(this.array=[t[1][0],t[1][1],t[0][0],t[0][1]],this._startPoint=t[1],this._endPoint=t[0]),this.ink=m(t[0],t[1]),this.edge=e,this.group=null}function a(){this.edgeList=[],this.mp0=l(),this.mp1=l(),this.ink=0}function o(){this.maxNearestEdge=6,this.maxTurningAngle=Math.PI/4,this.maxIteration=20}var r=e("../data/KDTree"),s=e("zrender/tool/vector"),l=s.create,h=s.distSquare,m=s.dist,V=s.copy,U=s.clone;return n.prototype.getStartPoint=function(){return this._startPoint},n.prototype.getEndPoint=function(){return this._endPoint},a.prototype.addEdge=function(e){e.group=this,this.edgeList.push(e)},a.prototype.removeEdge=function(e){e.group=null,this.edgeList.splice(this.edgeList.indexOf(e),1)},o.prototype={constructor:o,run:function(e){function t(e,t){return h(e,t)<1e-10}function n(e,i){for(var n=[],a=0,o=0;o<e.length;o++)a>0&&t(e[o],n[a-1])||(n[a++]=U(e[o]));return i[0]&&!t(n[0],i[0])&&(n=n.reverse()),n}for(var a=this._iterate(e),o=0;o++<this.maxIteration;){for(var r=[],s=0;s<a.groups.length;s++)r.push(new i(a.groups[s]));var l=this._iterate(r);if(l.savedInk<=0)break;a=l}var m=[],V=function(e,t){for(var a,o=0;o<e.length;o++){var r=e[o];if(r.edgeList[0]&&r.edgeList[0].edge instanceof i){for(var s=[],l=0;l<r.edgeList.length;l++)s.push(r.edgeList[l].edge.group);a=t?t.slice():[],a.unshift(r.mp0),a.push(r.mp1),V(s,a)}else for(var l=0;l<r.edgeList.length;l++){var h=r.edgeList[l];a=t?t.slice():[],a.unshift(r.mp0),a.push(r.mp1),a.unshift(h.getStartPoint()),a.push(h.getEndPoint()),m.push({points:n(a,h.edge.points),rawEdge:h.edge})}}};return V(a.groups),m},_iterate:function(e){for(var i=[],o=[],s=0,h=0;h<e.length;h++){var m=new n(e[h]);i.push(m)}for(var U=new r(i,4),d=[],p=l(),c=l(),u=0,y=l(),g=l(),b=0,h=0;h<i.length;h++){var m=i[h];if(!m.group){U.nearestN(m,this.maxNearestEdge,t,d);for(var f=0,k=null,x=null,_=0;_<d.length;_++){var L=d[_],W=0;L.group?L.group!==x&&(x=L.group,u=this._calculateGroupEdgeInk(L.group,m,p,c),W=L.group.ink+m.ink-u):(u=this._calculateEdgeEdgeInk(m,L,p,c),W=L.ink+m.ink-u),W>f&&(f=W,k=L,V(g,c),V(y,p),b=u)}if(k){s+=f;var X;k.group||(X=new a,o.push(X),X.addEdge(k)),X=k.group,V(X.mp0,y),V(X.mp1,g),X.ink=b,k.group.addEdge(m)}else{var X=new a;o.push(X),V(X.mp0,m.getStartPoint()),V(X.mp1,m.getEndPoint()),X.ink=m.ink,X.addEdge(m)}}}return{groups:o,edges:i,savedInk:s}},_calculateEdgeEdgeInk:function(){var e=[],t=[];return function(i,n,a,o){e[0]=i.getStartPoint(),e[1]=n.getStartPoint(),t[0]=i.getEndPoint(),t[1]=n.getEndPoint(),this._calculateMeetPoints(e,t,a,o);var r=m(e[0],a)+m(a,o)+m(o,t[0])+m(e[1],a)+m(o,t[1]);return r}}(),_calculateGroupEdgeInk:function(e,t,i,n){for(var a=[],o=[],r=0;r<e.edgeList.length;r++){var s=e.edgeList[r];a.push(s.getStartPoint()),o.push(s.getEndPoint())}a.push(t.getStartPoint()),o.push(t.getEndPoint()),this._calculateMeetPoints(a,o,i,n);for(var l=m(i,n),r=0;r<a.length;r++)l+=m(a[r],i)+m(o[r],n);return l},_calculateMeetPoints:function(){var e=l(),t=l();return function(i,n,a,o){s.set(e,0,0),s.set(t,0,0);for(var r=i.length,l=0;r>l;l++)s.add(e,e,i[l]);s.scale(e,e,1/r),r=n.length;for(var l=0;r>l;l++)s.add(t,t,n[l]);s.scale(t,t,1/r),this._limitTurningAngle(i,e,t,a),this._limitTurningAngle(n,t,e,o)}}(),_limitTurningAngle:function(){var e=l(),t=l(),i=l(),n=l();return function(a,o,r,l){var V=Math.cos(this.maxTurningAngle),U=Math.tan(this.maxTurningAngle);s.sub(e,o,r),s.normalize(e,e),s.copy(l,o);for(var d=0,p=0;p<a.length;p++){var c=a[p];s.sub(t,c,o);var u=s.len(t);s.scale(t,t,1/u);var y=s.dot(t,e);if(V>y){s.scaleAndAdd(i,o,e,u*y);var g=m(i,c),b=g/U;s.scaleAndAdd(n,i,e,-b);var f=h(n,o);f>d&&(d=f,s.copy(l,n))}}}}()},o}),i("zrender/shape/Star",["require","../tool/math","./Base","../tool/util"],function(e){var t=e("../tool/math"),i=t.sin,n=t.cos,a=Math.PI,o=e("./Base"),r=function(e){o.call(this,e)};return r.prototype={type:"star",buildPath:function(e,t){var o=t.n;if(o&&!(2>o)){var r=t.x,s=t.y,l=t.r,h=t.r0;null==h&&(h=o>4?l*n(2*a/o)/n(a/o):l/3);var m=a/o,V=-a/2,U=r+l*n(V),d=s+l*i(V);V+=m;var p=t.pointList=[];p.push([U,d]);for(var c,u=0,y=2*o-1;y>u;u++)c=u%2===0?h:l,p.push([r+c*n(V),s+c*i(V)]),V+=m;p.push([U,d]),e.moveTo(p[0][0],p[0][1]);for(var u=0;u<p.length;u++)e.lineTo(p[u][0],p[u][1]);e.closePath()}},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.r-t/2),y:Math.round(e.y-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}},e("../tool/util").inherits(r,o),r}),i("zrender/shape/Heart",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(e){"use strict";var t=e("./Base"),i=e("./util/PathProxy"),n=e("../tool/area"),a=function(e){t.call(this,e),this._pathProxy=new i};return a.prototype={type:"heart",buildPath:function(e,t){var n=this._pathProxy||new i;n.begin(e),n.moveTo(t.x,t.y),n.bezierCurveTo(t.x+t.a/2,t.y-2*t.b/3,t.x+2*t.a,t.y+t.b/3,t.x,t.y+t.b),n.bezierCurveTo(t.x-2*t.a,t.y+t.b/3,t.x-t.a/2,t.y-2*t.b/3,t.x,t.y),n.closePath()},getRect:function(e){return e.__rect?e.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,e),this._pathProxy.fastBoundingRect())},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)?n.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,e,t):void 0}},e("../tool/util").inherits(a,t),a}),i("zrender/shape/Droplet",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(e){"use strict";var t=e("./Base"),i=e("./util/PathProxy"),n=e("../tool/area"),a=function(e){t.call(this,e),this._pathProxy=new i};return a.prototype={type:"droplet",buildPath:function(e,t){var n=this._pathProxy||new i;n.begin(e),n.moveTo(t.x,t.y+t.a),n.bezierCurveTo(t.x+t.a,t.y+t.a,t.x+3*t.a/2,t.y-t.a/3,t.x,t.y-t.b),n.bezierCurveTo(t.x-3*t.a/2,t.y-t.a/3,t.x-t.a,t.y+t.a,t.x,t.y+t.a),n.closePath()},getRect:function(e){return e.__rect?e.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,e),this._pathProxy.fastBoundingRect())},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)?n.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,e,t):void 0}},e("../tool/util").inherits(a,t),a}),i("zrender/tool/math",[],function(){function e(e,t){return Math.sin(t?e*a:e)}function t(e,t){return Math.cos(t?e*a:e)}function i(e){return e*a}function n(e){return e/a}var a=Math.PI/180;return{sin:e,cos:t,degreeToRadian:i,radianToDegree:n}}),i("zrender/shape/util/PathProxy",["require","../../tool/vector"],function(e){var t=e("../../tool/vector"),i=function(e,t){this.command=e,this.points=t||null},n=function(){this.pathCommands=[],this._ctx=null,this._min=[],this._max=[]};return n.prototype.fastBoundingRect=function(){var e=this._min,i=this._max;e[0]=e[1]=1/0,i[0]=i[1]=-(1/0);for(var n=0;n<this.pathCommands.length;n++){var a=this.pathCommands[n],o=a.points;switch(a.command){case"M":t.min(e,e,o),t.max(i,i,o);break;case"L":t.min(e,e,o),t.max(i,i,o);break;case"C":for(var r=0;6>r;r+=2)e[0]=Math.min(e[0],e[0],o[r]),e[1]=Math.min(e[1],e[1],o[r+1]),i[0]=Math.max(i[0],i[0],o[r]),i[1]=Math.max(i[1],i[1],o[r+1]);break;case"Q":for(var r=0;4>r;r+=2)e[0]=Math.min(e[0],e[0],o[r]),e[1]=Math.min(e[1],e[1],o[r+1]),i[0]=Math.max(i[0],i[0],o[r]),i[1]=Math.max(i[1],i[1],o[r+1]);break;case"A":var s=o[0],l=o[1],h=o[2],m=o[3];e[0]=Math.min(e[0],e[0],s-h),e[1]=Math.min(e[1],e[1],l-m),i[0]=Math.max(i[0],i[0],s+h),i[1]=Math.max(i[1],i[1],l+m)}}return{x:e[0],y:e[1],width:i[0]-e[0],height:i[1]-e[1]}},n.prototype.begin=function(e){return this._ctx=e||null,this.pathCommands.length=0,this},n.prototype.moveTo=function(e,t){return this.pathCommands.push(new i("M",[e,t])),this._ctx&&this._ctx.moveTo(e,t),this},n.prototype.lineTo=function(e,t){return this.pathCommands.push(new i("L",[e,t])),this._ctx&&this._ctx.lineTo(e,t),this},n.prototype.bezierCurveTo=function(e,t,n,a,o,r){return this.pathCommands.push(new i("C",[e,t,n,a,o,r])),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,o,r),this},n.prototype.quadraticCurveTo=function(e,t,n,a){return this.pathCommands.push(new i("Q",[e,t,n,a])),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this},n.prototype.arc=function(e,t,n,a,o,r){return this.pathCommands.push(new i("A",[e,t,n,n,a,o-a,0,r?0:1])),this._ctx&&this._ctx.arc(e,t,n,a,o,r),this},n.prototype.arcTo=function(e,t,i,n,a){return this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},n.prototype.rect=function(e,t,i,n){return this._ctx&&this._ctx.rect(e,t,i,n),this},n.prototype.closePath=function(){return this.pathCommands.push(new i("z")),this._ctx&&this._ctx.closePath(),this},n.prototype.isEmpty=function(){return 0===this.pathCommands.length},n.PathSegment=i,n}),i("zrender/shape/Line",["require","./Base","./util/dashedLineTo","../tool/util"],function(e){var t=e("./Base"),i=e("./util/dashedLineTo"),n=function(e){this.brushTypeOnly="stroke",this.textPosition="end",t.call(this,e)};return n.prototype={type:"line",buildPath:function(e,t){if(t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var n=(t.lineWidth||1)*("dashed"==t.lineType?5:1);i(e,t.xStart,t.yStart,t.xEnd,t.yEnd,n)}}else e.moveTo(t.xStart,t.yStart),e.lineTo(t.xEnd,t.yEnd)},getRect:function(e){if(e.__rect)return e.__rect;var t=e.lineWidth||1;return e.__rect={x:Math.min(e.xStart,e.xEnd)-t,y:Math.min(e.yStart,e.yEnd)-t,width:Math.abs(e.xStart-e.xEnd)+t,height:Math.abs(e.yStart-e.yEnd)+t},e.__rect}},e("../tool/util").inherits(n,t),n}),i("zrender/shape/BezierCurve",["require","./Base","../tool/util"],function(e){"use strict";var t=e("./Base"),i=function(e){this.brushTypeOnly="stroke",this.textPosition="end",t.call(this,e)};return i.prototype={type:"bezier-curve",buildPath:function(e,t){e.moveTo(t.xStart,t.yStart),"undefined"!=typeof t.cpX2&&"undefined"!=typeof t.cpY2?e.bezierCurveTo(t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd):e.quadraticCurveTo(t.cpX1,t.cpY1,t.xEnd,t.yEnd)},getRect:function(e){if(e.__rect)return e.__rect;var t=Math.min(e.xStart,e.xEnd,e.cpX1),i=Math.min(e.yStart,e.yEnd,e.cpY1),n=Math.max(e.xStart,e.xEnd,e.cpX1),a=Math.max(e.yStart,e.yEnd,e.cpY1),o=e.cpX2,r=e.cpY2;"undefined"!=typeof o&&"undefined"!=typeof r&&(t=Math.min(t,o),i=Math.min(i,r),n=Math.max(n,o),a=Math.max(a,r));var s=e.lineWidth||1;return e.__rect={x:t-s,y:i-s,width:n-t+s,height:a-i+s},e.__rect}},e("../tool/util").inherits(i,t),i}),i("zrender/shape/util/dashedLineTo",[],function(){var e=[5,5];return function(t,i,n,a,o,r){if(t.setLineDash)return e[0]=e[1]=r,t.setLineDash(e),t.moveTo(i,n),void t.lineTo(a,o);r="number"!=typeof r?5:r;var s=a-i,l=o-n,h=Math.floor(Math.sqrt(s*s+l*l)/r);s/=h,l/=h;for(var m=!0,V=0;h>V;++V)m?t.moveTo(i,n):t.lineTo(i,n),m=!m,i+=s,n+=l;t.lineTo(a,o)}}),i("zrender/shape/Polygon",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","../tool/util"],function(e){var t=e("./Base"),i=e("./util/smoothSpline"),n=e("./util/smoothBezier"),a=e("./util/dashedLineTo"),o=function(e){t.call(this,e)};return o.prototype={type:"polygon",buildPath:function(e,t){var o=t.pointList;if(!(o.length<2)){if(t.smooth&&"spline"!==t.smooth){var r=n(o,t.smooth,!0,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s,l,h,m=o.length,V=0;m>V;V++)s=r[2*V],l=r[2*V+1],h=o[(V+1)%m],e.bezierCurveTo(s[0],s[1],l[0],l[1],h[0],h[1])}else if("spline"===t.smooth&&(o=i(o,!0)),t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var U=t._dashLength||(t.lineWidth||1)*("dashed"==t.lineType?5:1);t._dashLength=U,e.moveTo(o[0][0],o[0][1]);for(var V=1,d=o.length;d>V;V++)a(e,o[V-1][0],o[V-1][1],o[V][0],o[V][1],U);a(e,o[o.length-1][0],o[o.length-1][1],o[0][0],o[0][1],U)}}else{e.moveTo(o[0][0],o[0][1]);for(var V=1,d=o.length;d>V;V++)e.lineTo(o[V][0],o[V][1]);e.lineTo(o[0][0],o[0][1])}e.closePath()}},getRect:function(e){if(e.__rect)return e.__rect;for(var t=Number.MAX_VALUE,i=Number.MIN_VALUE,n=Number.MAX_VALUE,a=Number.MIN_VALUE,o=e.pointList,r=0,s=o.length;s>r;r++)o[r][0]<t&&(t=o[r][0]),o[r][0]>i&&(i=o[r][0]),o[r][1]<n&&(n=o[r][1]),o[r][1]>a&&(a=o[r][1]);var l;return l="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(t-l/2),y:Math.round(n-l/2),width:i-t+l,height:a-n+l},e.__rect}},e("../tool/util").inherits(o,t),o}),i("echarts/util/shape/normalIsCover",[],function(){return function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)}}),i("zrender/shape/util/smoothSpline",["require","../../tool/vector"],function(e){function t(e,t,i,n,a,o,r){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*r+(-3*(t-i)-2*s-l)*o+s*a+t}var i=e("../../tool/vector");return function(e,n){for(var a=e.length,o=[],r=0,s=1;a>s;s++)r+=i.distance(e[s-1],e[s]);var l=r/5;l=a>l?a:l;for(var s=0;l>s;s++){var h,m,V,U=s/(l-1)*(n?a:a-1),d=Math.floor(U),p=U-d,c=e[d%a];n?(h=e[(d-1+a)%a],m=e[(d+1)%a],V=e[(d+2)%a]):(h=e[0===d?d:d-1],m=e[d>a-2?a-1:d+1],V=e[d>a-3?a-1:d+2]);var u=p*p,y=p*u;o.push([t(h[0],c[0],m[0],V[0],p,u,y),t(h[1],c[1],m[1],V[1],p,u,y)])}return o}}),i("zrender/shape/util/smoothBezier",["require","../../tool/vector"],function(e){var t=e("../../tool/vector");return function(e,i,n,a){var o,r,s,l,h=[],m=[],V=[],U=[],d=!!a;if(d){s=[1/0,1/0],l=[-(1/0),-(1/0)];for(var p=0,c=e.length;c>p;p++)t.min(s,s,e[p]),t.max(l,l,e[p]);t.min(s,s,a[0]),t.max(l,l,a[1])}for(var p=0,c=e.length;c>p;p++){var o,r,u=e[p];if(n)o=e[p?p-1:c-1],r=e[(p+1)%c];else{if(0===p||p===c-1){h.push(t.clone(e[p]));continue}o=e[p-1],r=e[p+1]}t.sub(m,r,o),t.scale(m,m,i);var y=t.distance(u,o),g=t.distance(u,r),b=y+g;0!==b&&(y/=b,g/=b),t.scale(V,m,-y),t.scale(U,m,g);var f=t.add([],u,V),k=t.add([],u,U);d&&(t.max(f,f,s),t.min(f,f,l),t.max(k,k,s),t.min(k,k,l)),h.push(f),h.push(k)}return n&&h.push(t.clone(h.shift())),h}}),i("echarts/util/ecQuery",["require","zrender/tool/util"],function(e){function t(e,t){if("undefined"!=typeof e){if(!t)return e;t=t.split(".");for(var i=t.length,n=0;i>n;){if(e=e[t[n]],"undefined"==typeof e)return;n++}return e}}function i(e,i){for(var n,a=0,o=e.length;o>a;a++)if(n=t(e[a],i),"undefined"!=typeof n)return n}function n(e,i){for(var n,o=e.length;o--;){var r=t(e[o],i);"undefined"!=typeof r&&("undefined"==typeof n?n=a.clone(r):a.merge(n,r,!0))}return n}var a=e("zrender/tool/util");return{query:t,deepQuery:i,deepMerge:n}}),i("echarts/util/number",[],function(){function e(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function t(t,i){return"string"==typeof t?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):t}function i(e,i){return[t(i[0],e.getWidth()),t(i[1],e.getHeight())]}function n(e,i){i instanceof Array||(i=[0,i]);var n=Math.min(e.getWidth(),e.getHeight())/2;return[t(i[0],n),t(i[1],n)]}function a(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function o(e){for(var t=1,i=0;Math.round(e*t)/t!==e;)t*=10,i++;return i}return{parsePercent:t,parseCenter:i,parseRadius:n,addCommas:a,getPrecision:o}}),i("echarts/data/KDTree",["require","./quickSelect"],function(e){function t(e,t){this.left=null,this.right=null,this.axis=e,this.data=t}var i=e("./quickSelect"),n=function(e,t){e.length&&(t||(t=e[0].array.length),this.dimension=t,this.root=this._buildTree(e,0,e.length-1,0),this._stack=[],this._nearstNList=[])};return n.prototype._buildTree=function(e,n,a,o){if(n>a)return null;var r=Math.floor((n+a)/2);r=i(e,n,a,r,function(e,t){return e.array[o]-t.array[o]});var s=e[r],l=new t(o,s);return o=(o+1)%this.dimension,a>n&&(l.left=this._buildTree(e,n,r-1,o),l.right=this._buildTree(e,r+1,a,o)),l},n.prototype.nearest=function(e,t){var i=this.root,n=this._stack,a=0,o=1/0,r=null;for(i.data!==e&&(o=t(i.data,e),r=i),e.array[i.axis]<i.data.array[i.axis]?(i.right&&(n[a++]=i.right),i.left&&(n[a++]=i.left)):(i.left&&(n[a++]=i.left),i.right&&(n[a++]=i.right));a--;){i=n[a];var s=e.array[i.axis]-i.data.array[i.axis],l=0>s,h=!1;s*=s,o>s&&(s=t(i.data,e),o>s&&i.data!==e&&(o=s,r=i),h=!0),l?(h&&i.right&&(n[a++]=i.right),i.left&&(n[a++]=i.left)):(h&&i.left&&(n[a++]=i.left),i.right&&(n[a++]=i.right))}return r.data},n.prototype._addNearest=function(e,t,i){for(var n=this._nearstNList,a=e-1;a>0&&!(t>=n[a-1].dist);a--)n[a].dist=n[a-1].dist,n[a].node=n[a-1].node;n[a].dist=t,n[a].node=i},n.prototype.nearestN=function(e,t,i,n){if(0>=t)return n.length=0,n;for(var a=this.root,o=this._stack,r=0,s=this._nearstNList,l=0;t>l;l++)s[l]||(s[l]={}),s[l].dist=0,s[l].node=null;var h=i(a.data,e),m=0;for(a.data!==e&&(m++,this._addNearest(m,h,a)),e.array[a.axis]<a.data.array[a.axis]?(a.right&&(o[r++]=a.right),a.left&&(o[r++]=a.left)):(a.left&&(o[r++]=a.left),a.right&&(o[r++]=a.right));r--;){a=o[r];var h=e.array[a.axis]-a.data.array[a.axis],V=0>h,U=!1;h*=h,(t>m||h<s[m-1].dist)&&(h=i(a.data,e),(t>m||h<s[m-1].dist)&&a.data!==e&&(t>m&&m++,this._addNearest(m,h,a)),U=!0),V?(U&&a.right&&(o[r++]=a.right),a.left&&(o[r++]=a.left)):(U&&a.left&&(o[r++]=a.left),a.right&&(o[r++]=a.right))}for(var l=0;m>l;l++)n[l]=s[l].node.data;return n.length=m,n},n}),i("echarts/data/quickSelect",["require"],function(){function e(e,t){return e-t}function t(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function i(e,i,n,a,o){for(var r=i;n>i;){var r=Math.round((n+i)/2),s=e[r];t(e,r,n),r=i;for(var l=i;n-1>=l;l++)o(s,e[l])>=0&&(t(e,l,r),r++);if(t(e,n,r),r===a)return r;a>r?i=r+1:n=r-1}return i}function n(t,n,a,o,r){return arguments.length<=3&&(o=n,r=2==arguments.length?e:a,n=0,a=t.length-1),i(t,n,a,o,r)}return n}),i("echarts/component/dataView",["require","./base","../config","zrender/tool/util","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.dom=o.dom,this._tDom=document.createElement("div"),this._textArea=document.createElement("textArea"),this._buttonRefresh=document.createElement("button"),this._buttonRefresh.setAttribute("type","button"),this._buttonClose=document.createElement("button"),this._buttonClose.setAttribute("type","button"),this._hasShow=!1,this._zrHeight=n.getHeight(),this._zrWidth=n.getWidth(),this._tDom.className="echarts-dataview",this.hide(),this.dom.firstChild.appendChild(this._tDom),window.addEventListener?(this._tDom.addEventListener("click",this._stop),this._tDom.addEventListener("mousewheel",this._stop),this._tDom.addEventListener("mousemove",this._stop),this._tDom.addEventListener("mousedown",this._stop),this._tDom.addEventListener("mouseup",this._stop),this._tDom.addEventListener("touchstart",this._stop),this._tDom.addEventListener("touchmove",this._stop),this._tDom.addEventListener("touchend",this._stop)):(this._tDom.attachEvent("onclick",this._stop),this._tDom.attachEvent("onmousewheel",this._stop),this._tDom.attachEvent("onmousemove",this._stop),this._tDom.attachEvent("onmousedown",this._stop),this._tDom.attachEvent("onmouseup",this._stop))}var i=e("./base"),n=e("../config"),a=e("zrender/tool/util");return t.prototype={type:n.COMPONENT_TYPE_DATAVIEW,_lang:["Data View","close","refresh"],_gCssText:"position:absolute;display:block;overflow:hidden;transition:height 0.8s,background-color 1s;-moz-transition:height 0.8s,background-color 1s;-webkit-transition:height 0.8s,background-color 1s;-o-transition:height 0.8s,background-color 1s;z-index:1;left:0;top:0;",hide:function(){this._sizeCssText="width:"+this._zrWidth+"px;height:0px;background-color:#f0ffff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},show:function(e){this._hasShow=!0;var t=this.query(this.option,"toolbox.feature.dataView.lang")||this._lang;this.option=e,this._tDom.innerHTML='<p style="padding:8px 0;margin:0 0 10px 0;border-bottom:1px solid #eee">'+(t[0]||this._lang[0])+"</p>";var i=this.query(this.option,"toolbox.feature.dataView.optionToContent");"function"!=typeof i?this._textArea.value=this._optionToContent():(this._textArea=document.createElement("div"),this._textArea.innerHTML=i(this.option)),this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;",this._tDom.appendChild(this._textArea),this._buttonClose.style.cssText="float:right;padding:1px 6px;",this._buttonClose.innerHTML=t[1]||this._lang[1];var n=this;this._buttonClose.onclick=function(){n.hide()},this._tDom.appendChild(this._buttonClose),this.query(this.option,"toolbox.feature.dataView.readOnly")===!1?(this._buttonRefresh.style.cssText="float:right;margin-right:10px;padding:1px 6px;",this._buttonRefresh.innerHTML=t[2]||this._lang[2],this._buttonRefresh.onclick=function(){n._save()},this._textArea.readOnly=!1,this._textArea.style.cursor="default"):(this._buttonRefresh.style.cssText="display:none",
    +this._textArea.readOnly=!0,this._textArea.style.cursor="text"),this._tDom.appendChild(this._buttonRefresh),this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},_optionToContent:function(){var e,t,i,a,o,r,s=[],l="";if(this.option.xAxis)for(s=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],e=0,a=s.length;a>e;e++)if("category"==(s[e].type||"category")){for(r=[],t=0,i=s[e].data.length;i>t;t++)r.push(this.getDataFromOption(s[e].data[t]));l+=r.join(", ")+"\n\n"}if(this.option.yAxis)for(s=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],e=0,a=s.length;a>e;e++)if("category"==s[e].type){for(r=[],t=0,i=s[e].data.length;i>t;t++)r.push(this.getDataFromOption(s[e].data[t]));l+=r.join(", ")+"\n\n"}var h,m=this.option.series;for(e=0,a=m.length;a>e;e++){for(r=[],t=0,i=m[e].data.length;i>t;t++)o=m[e].data[t],h=m[e].type==n.CHART_TYPE_PIE||m[e].type==n.CHART_TYPE_MAP?(o.name||"-")+":":"",m[e].type==n.CHART_TYPE_SCATTER&&(o=this.getDataFromOption(o).join(", ")),r.push(h+this.getDataFromOption(o));l+=(m[e].name||"-")+" : \n",l+=r.join(m[e].type==n.CHART_TYPE_SCATTER?"\n":", "),l+="\n\n"}return l},_save:function(){var e=this.query(this.option,"toolbox.feature.dataView.contentToOption");if("function"!=typeof e){for(var t=this._textArea.value.split("\n"),i=[],a=0,o=t.length;o>a;a++)t[a]=this._trim(t[a]),""!==t[a]&&i.push(t[a]);this._contentToOption(i)}else e(this._textArea,this.option);this.hide();var r=this;setTimeout(function(){r.messageCenter&&r.messageCenter.dispatch(n.EVENT.DATA_VIEW_CHANGED,null,{option:r.option},r.myChart)},r.canvasSupported?800:100)},_contentToOption:function(e){var t,i,a,o,r,s,l,h=[],m=0;if(this.option.xAxis)for(h=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],t=0,o=h.length;o>t;t++)if("category"==(h[t].type||"category")){for(s=e[m].split(","),i=0,a=h[t].data.length;a>i;i++)l=this._trim(s[i]||""),r=h[t].data[i],"undefined"!=typeof h[t].data[i].value?h[t].data[i].value=l:h[t].data[i]=l;m++}if(this.option.yAxis)for(h=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],t=0,o=h.length;o>t;t++)if("category"==h[t].type){for(s=e[m].split(","),i=0,a=h[t].data.length;a>i;i++)l=this._trim(s[i]||""),r=h[t].data[i],"undefined"!=typeof h[t].data[i].value?h[t].data[i].value=l:h[t].data[i]=l;m++}var V=this.option.series;for(t=0,o=V.length;o>t;t++)if(m++,V[t].type==n.CHART_TYPE_SCATTER)for(var i=0,a=V[t].data.length;a>i;i++)s=e[m],l=s.replace(" ","").split(","),"undefined"!=typeof V[t].data[i].value?V[t].data[i].value=l:V[t].data[i]=l,m++;else{s=e[m].split(",");for(var i=0,a=V[t].data.length;a>i;i++)l=(s[i]||"").replace(/.*:/,""),l=this._trim(l),l="-"!=l&&""!==l?l-0:"-","undefined"!=typeof V[t].data[i].value?V[t].data[i].value=l:V[t].data[i]=l;m++}},_trim:function(e){var t=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");return e.replace(t,"")},_stop:function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},resize:function(){this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._tDom.offsetHeight>10&&(this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText,this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;")},dispose:function(){window.removeEventListener?(this._tDom.removeEventListener("click",this._stop),this._tDom.removeEventListener("mousewheel",this._stop),this._tDom.removeEventListener("mousemove",this._stop),this._tDom.removeEventListener("mousedown",this._stop),this._tDom.removeEventListener("mouseup",this._stop),this._tDom.removeEventListener("touchstart",this._stop),this._tDom.removeEventListener("touchmove",this._stop),this._tDom.removeEventListener("touchend",this._stop)):(this._tDom.detachEvent("onclick",this._stop),this._tDom.detachEvent("onmousewheel",this._stop),this._tDom.detachEvent("onmousemove",this._stop),this._tDom.detachEvent("onmousedown",this._stop),this._tDom.detachEvent("onmouseup",this._stop)),this._buttonRefresh.onclick=null,this._buttonClose.onclick=null,this._hasShow&&(this._tDom.removeChild(this._textArea),this._tDom.removeChild(this._buttonRefresh),this._tDom.removeChild(this._buttonClose)),this._textArea=null,this._buttonRefresh=null,this._buttonClose=null,this.dom.firstChild.removeChild(this._tDom),this._tDom=null}},a.inherits(t,i),e("../component").define("dataView",t),t}),i("echarts/util/shape/Cross",["require","zrender/shape/Base","zrender/shape/Line","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/Line"),a=e("zrender/tool/util");return t.prototype={type:"cross",buildPath:function(e,t){var i=t.rect;t.xStart=i.x,t.xEnd=i.x+i.width,t.yStart=t.yEnd=t.y,n.prototype.buildPath(e,t),t.xStart=t.xEnd=t.x,t.yStart=i.y,t.yEnd=i.y+i.height,n.prototype.buildPath(e,t)},getRect:function(e){return e.rect},isCover:e("./normalIsCover")},a.inherits(t,i),t}),i("zrender/shape/Sector",["require","../tool/math","../tool/computeBoundingBox","../tool/vector","./Base","../tool/util"],function(e){var t=e("../tool/math"),i=e("../tool/computeBoundingBox"),n=e("../tool/vector"),a=e("./Base"),o=n.create(),r=n.create(),s=n.create(),l=n.create(),h=function(e){a.call(this,e)};return h.prototype={type:"sector",buildPath:function(e,i){var n=i.x,a=i.y,o=i.r0||0,r=i.r,s=i.startAngle,l=i.endAngle,h=i.clockWise||!1;s=t.degreeToRadian(s),l=t.degreeToRadian(l),h||(s=-s,l=-l);var m=t.cos(s),V=t.sin(s);e.moveTo(m*o+n,V*o+a),e.lineTo(m*r+n,V*r+a),e.arc(n,a,r,s,l,!h),e.lineTo(t.cos(l)*o+n,t.sin(l)*o+a),0!==o&&e.arc(n,a,o,l,s,h),e.closePath()},getRect:function(e){if(e.__rect)return e.__rect;var a=e.x,h=e.y,m=e.r0||0,V=e.r,U=t.degreeToRadian(e.startAngle),d=t.degreeToRadian(e.endAngle),p=e.clockWise;return p||(U=-U,d=-d),m>1?i.arc(a,h,m,U,d,!p,o,s):(o[0]=s[0]=a,o[1]=s[1]=h),i.arc(a,h,V,U,d,!p,r,l),n.min(o,o,r),n.max(s,s,l),e.__rect={x:o[0],y:o[1],width:s[0]-o[0],height:s[1]-o[1]},e.__rect}},e("../tool/util").inherits(h,a),h}),i("echarts/util/shape/Candle",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/tool/util");return t.prototype={type:"candle",_numberOrder:function(e,t){return t-e},buildPath:function(e,t){var i=n.clone(t.y).sort(this._numberOrder);e.moveTo(t.x,i[3]),e.lineTo(t.x,i[2]),e.moveTo(t.x-t.width/2,i[2]),e.rect(t.x-t.width/2,i[2],t.width,i[1]-i[2]),e.moveTo(t.x,i[1]),e.lineTo(t.x,i[0])},getRect:function(e){if(!e.__rect){var t=0;("stroke"==e.brushType||"fill"==e.brushType)&&(t=e.lineWidth||1);var i=n.clone(e.y).sort(this._numberOrder);e.__rect={x:Math.round(e.x-e.width/2-t/2),y:Math.round(i[3]-t/2),width:e.width+t,height:i[0]-i[3]+t}}return e.__rect},isCover:e("./normalIsCover")},n.inherits(t,i),t}),i("zrender/tool/computeBoundingBox",["require","./vector","./curve"],function(e){function t(e,t,i){if(0!==e.length){for(var n=e[0][0],a=e[0][0],o=e[0][1],r=e[0][1],s=1;s<e.length;s++){var l=e[s];l[0]<n&&(n=l[0]),l[0]>a&&(a=l[0]),l[1]<o&&(o=l[1]),l[1]>r&&(r=l[1])}t[0]=n,t[1]=o,i[0]=a,i[1]=r}}function i(e,t,i,n,a,r){var s=[];o.cubicExtrema(e[0],t[0],i[0],n[0],s);for(var l=0;l<s.length;l++)s[l]=o.cubicAt(e[0],t[0],i[0],n[0],s[l]);var h=[];o.cubicExtrema(e[1],t[1],i[1],n[1],h);for(var l=0;l<h.length;l++)h[l]=o.cubicAt(e[1],t[1],i[1],n[1],h[l]);s.push(e[0],n[0]),h.push(e[1],n[1]);var m=Math.min.apply(null,s),V=Math.max.apply(null,s),U=Math.min.apply(null,h),d=Math.max.apply(null,h);a[0]=m,a[1]=U,r[0]=V,r[1]=d}function n(e,t,i,n,a){var r=o.quadraticExtremum(e[0],t[0],i[0]),s=o.quadraticExtremum(e[1],t[1],i[1]);r=Math.max(Math.min(r,1),0),s=Math.max(Math.min(s,1),0);var l=1-r,h=1-s,m=l*l*e[0]+2*l*r*t[0]+r*r*i[0],V=l*l*e[1]+2*l*r*t[1]+r*r*i[1],U=h*h*e[0]+2*h*s*t[0]+s*s*i[0],d=h*h*e[1]+2*h*s*t[1]+s*s*i[1];n[0]=Math.min(e[0],i[0],m,U),n[1]=Math.min(e[1],i[1],V,d),a[0]=Math.max(e[0],i[0],m,U),a[1]=Math.max(e[1],i[1],V,d)}var a=e("./vector"),o=e("./curve"),r=a.create(),s=a.create(),l=a.create(),h=function(e,t,i,n,o,h,m,V){if(Math.abs(n-o)>=2*Math.PI)return m[0]=e-i,m[1]=t-i,V[0]=e+i,void(V[1]=t+i);if(r[0]=Math.cos(n)*i+e,r[1]=Math.sin(n)*i+t,s[0]=Math.cos(o)*i+e,s[1]=Math.sin(o)*i+t,a.min(m,r,s),a.max(V,r,s),n%=2*Math.PI,0>n&&(n+=2*Math.PI),o%=2*Math.PI,0>o&&(o+=2*Math.PI),n>o&&!h?o+=2*Math.PI:o>n&&h&&(n+=2*Math.PI),h){var U=o;o=n,n=U}for(var d=0;o>d;d+=Math.PI/2)d>n&&(l[0]=Math.cos(d)*i+e,l[1]=Math.sin(d)*i+t,a.min(m,l,m),a.max(V,l,V))};return t.cubeBezier=i,t.quadraticBezier=n,t.arc=h,t}),i("echarts/util/shape/Chain",["require","zrender/shape/Base","./Icon","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/matrix"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("./Icon"),a=e("zrender/shape/util/dashedLineTo"),o=e("zrender/tool/util"),r=e("zrender/tool/matrix");return t.prototype={type:"chain",brush:function(e,t){var i=this.style;t&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),e.save(),this.setContext(e,i),this.setTransform(e),e.save(),e.beginPath(),this.buildLinePath(e,i),e.stroke(),e.restore(),this.brushSymbol(e,i),e.restore()},buildLinePath:function(e,t){var i=t.x,n=t.y+5,o=t.width,r=t.height/2-10;if(e.moveTo(i,n),e.lineTo(i,n+r),e.moveTo(i+o,n),e.lineTo(i+o,n+r),e.moveTo(i,n+r/2),t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var s=(t.lineWidth||1)*("dashed"==t.lineType?5:1);a(e,i,n+r/2,i+o,n+r/2,s)}}else e.lineTo(i+o,n+r/2)},brushSymbol:function(e,t){var i=t.y+t.height/4;e.save();for(var a,o=t.chainPoint,r=0,s=o.length;s>r;r++){if(a=o[r],"none"!=a.symbol){e.beginPath();var l=a.symbolSize;n.prototype.buildPath(e,{iconType:a.symbol,x:a.x-l,y:i-l,width:2*l,height:2*l,n:a.n}),e.fillStyle=a.isEmpty?"#fff":t.strokeColor,e.closePath(),e.fill(),e.stroke()}a.showLabel&&(e.font=a.textFont,e.fillStyle=a.textColor,e.textAlign=a.textAlign,e.textBaseline=a.textBaseline,a.rotation?(e.save(),this._updateTextTransform(e,a.rotation),e.fillText(a.name,a.textX,a.textY),e.restore()):e.fillText(a.name,a.textX,a.textY))}e.restore()},_updateTextTransform:function(e,t){var i=r.create();if(r.identity(i),0!==t[0]){var n=t[1]||0,a=t[2]||0;(n||a)&&r.translate(i,i,[-n,-a]),r.rotate(i,i,t[0]),(n||a)&&r.translate(i,i,[n,a])}e.transform.apply(e,i)},isCover:function(e,t){var i=this.style;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height?!0:!1}},o.inherits(t,i),t}),i("zrender/shape/Ring",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"ring",buildPath:function(e,t){e.arc(t.x,t.y,t.r,0,2*Math.PI,!1),e.moveTo(t.x+t.r0,t.y),e.arc(t.x,t.y,t.r0,0,2*Math.PI,!0)},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.r-t/2),y:Math.round(e.y-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("echarts/component/axis",["require","./base","zrender/shape/Line","../config","../util/ecData","zrender/tool/util","zrender/tool/color","./categoryAxis","./valueAxis","../component"],function(e){function t(e,t,n,a,o,r){i.call(this,e,t,n,a,o),this.axisType=r,this._axisList=[],this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Line"),a=e("../config"),o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/color");return t.prototype={type:a.COMPONENT_TYPE_AXIS,axisBase:{_buildAxisLine:function(){var e=this.option.axisLine.lineStyle.width,t=e/2,i={_axisShape:"axisLine",zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1},a=this.grid;switch(this.option.position){case"left":i.style={xStart:a.getX()-t,yStart:a.getYend(),xEnd:a.getX()-t,yEnd:a.getY(),lineCap:"round"};break;case"right":i.style={xStart:a.getXend()+t,yStart:a.getYend(),xEnd:a.getXend()+t,yEnd:a.getY(),lineCap:"round"};break;case"bottom":i.style={xStart:a.getX(),yStart:a.getYend()+t,xEnd:a.getXend(),yEnd:a.getYend()+t,lineCap:"round"};break;case"top":i.style={xStart:a.getX(),yStart:a.getY()-t,xEnd:a.getXend(),yEnd:a.getY()-t,lineCap:"round"}}var o=i.style;""!==this.option.name&&(o.text=this.option.name,o.textPosition=this.option.nameLocation,o.textFont=this.getFont(this.option.nameTextStyle),this.option.nameTextStyle.align&&(o.textAlign=this.option.nameTextStyle.align),this.option.nameTextStyle.baseline&&(o.textBaseline=this.option.nameTextStyle.baseline),this.option.nameTextStyle.color&&(o.textColor=this.option.nameTextStyle.color)),o.strokeColor=this.option.axisLine.lineStyle.color,o.lineWidth=e,this.isHorizontal()?o.yStart=o.yEnd=this.subPixelOptimize(o.yEnd,e):o.xStart=o.xEnd=this.subPixelOptimize(o.xEnd,e),o.lineType=this.option.axisLine.lineStyle.type,i=new n(i),this.shapeList.push(i)},_axisLabelClickable:function(e,t){return e?(o.pack(t,void 0,-1,void 0,-1,t.style.text),t.hoverable=!0,t.clickable=!0,t.highlightStyle={color:s.lift(t.style.color,1),brushType:"fill"},t):t},refixAxisShape:function(e,t){if(this.option.axisLine.onZero){var i;if(this.isHorizontal()&&null!=t)for(var n=0,a=this.shapeList.length;a>n;n++)"axisLine"===this.shapeList[n]._axisShape?(this.shapeList[n].style.yStart=this.shapeList[n].style.yEnd=this.subPixelOptimize(t,this.shapeList[n].stylelineWidth),this.zr.modShape(this.shapeList[n].id)):"axisTick"===this.shapeList[n]._axisShape&&(i=this.shapeList[n].style.yEnd-this.shapeList[n].style.yStart,this.shapeList[n].style.yStart=t-i,this.shapeList[n].style.yEnd=t,this.zr.modShape(this.shapeList[n].id));if(!this.isHorizontal()&&null!=e)for(var n=0,a=this.shapeList.length;a>n;n++)"axisLine"===this.shapeList[n]._axisShape?(this.shapeList[n].style.xStart=this.shapeList[n].style.xEnd=this.subPixelOptimize(e,this.shapeList[n].stylelineWidth),this.zr.modShape(this.shapeList[n].id)):"axisTick"===this.shapeList[n]._axisShape&&(i=this.shapeList[n].style.xEnd-this.shapeList[n].style.xStart,this.shapeList[n].style.xStart=e,this.shapeList[n].style.xEnd=e+i,this.zr.modShape(this.shapeList[n].id))}},getPosition:function(){return this.option.position},isHorizontal:function(){return"bottom"===this.option.position||"top"===this.option.position}},reformOption:function(e){if(!e||e instanceof Array&&0===e.length?e=[{type:a.COMPONENT_TYPE_AXIS_VALUE}]:e instanceof Array||(e=[e]),e.length>2&&(e=[e[0],e[1]]),"xAxis"===this.axisType){(!e[0].position||"bottom"!=e[0].position&&"top"!=e[0].position)&&(e[0].position="bottom"),e.length>1&&(e[1].position="bottom"===e[0].position?"top":"bottom");for(var t=0,i=e.length;i>t;t++)e[t].type=e[t].type||"category",e[t].xAxisIndex=t,e[t].yAxisIndex=-1}else{(!e[0].position||"left"!=e[0].position&&"right"!=e[0].position)&&(e[0].position="left"),e.length>1&&(e[1].position="left"===e[0].position?"right":"left");for(var t=0,i=e.length;i>t;t++)e[t].type=e[t].type||"value",e[t].xAxisIndex=-1,e[t].yAxisIndex=t}return e},refresh:function(t){var i;t&&(this.option=t,"xAxis"===this.axisType?(this.option.xAxis=this.reformOption(t.xAxis),i=this.option.xAxis):(this.option.yAxis=this.reformOption(t.yAxis),i=this.option.yAxis),this.series=t.series);for(var n=e("./categoryAxis"),a=e("./valueAxis"),o=Math.max(i&&i.length||0,this._axisList.length),r=0;o>r;r++)!this._axisList[r]||!t||i[r]&&this._axisList[r].type==i[r].type||(this._axisList[r].dispose&&this._axisList[r].dispose(),this._axisList[r]=!1),this._axisList[r]?this._axisList[r].refresh&&this._axisList[r].refresh(i?i[r]:!1,this.series):i&&i[r]&&(this._axisList[r]="category"===i[r].type?new n(this.ecTheme,this.messageCenter,this.zr,i[r],this.myChart,this.axisBase):new a(this.ecTheme,this.messageCenter,this.zr,i[r],this.myChart,this.axisBase,this.series))},getAxis:function(e){return this._axisList[e]},getAxisCount:function(){return this._axisList.length},clear:function(){for(var e=0,t=this._axisList.length;t>e;e++)this._axisList[e].dispose&&this._axisList[e].dispose();this._axisList=[]}},r.inherits(t,i),e("../component").define("axis",t),t}),i("echarts/component/grid",["require","./base","zrender/shape/Rectangle","../config","zrender/tool/util","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Rectangle"),a=e("../config");a.grid={zlevel:0,z:0,x:80,y:60,x2:80,y2:60,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var o=e("zrender/tool/util");return t.prototype={type:a.COMPONENT_TYPE_GRID,getX:function(){return this._x},getY:function(){return this._y},getWidth:function(){return this._width},getHeight:function(){return this._height},getXend:function(){return this._x+this._width},getYend:function(){return this._y+this._height},getArea:function(){return{x:this._x,y:this._y,width:this._width,height:this._height}},getBbox:function(){return[[this._x,this._y],[this.getXend(),this.getYend()]]},refixAxisShape:function(e){for(var t,i,n,o=e.xAxis._axisList.concat(e.yAxis?e.yAxis._axisList:[]),r=o.length;r--;)n=o[r],n.type==a.COMPONENT_TYPE_AXIS_VALUE&&n._min<0&&n._max>=0&&(n.isHorizontal()?t=n.getCoord(0):i=n.getCoord(0));if("undefined"!=typeof t||"undefined"!=typeof i)for(r=o.length;r--;)o[r].refixAxisShape(t,i)},refresh:function(e){if(e||this._zrWidth!=this.zr.getWidth()||this._zrHeight!=this.zr.getHeight()){this.clear(),this.option=e||this.option,this.option.grid=this.reformOption(this.option.grid);var t=this.option.grid;this._zrWidth=this.zr.getWidth(),this._zrHeight=this.zr.getHeight(),this._x=this.parsePercent(t.x,this._zrWidth),this._y=this.parsePercent(t.y,this._zrHeight);var i=this.parsePercent(t.x2,this._zrWidth),a=this.parsePercent(t.y2,this._zrHeight);this._width="undefined"==typeof t.width?this._zrWidth-this._x-i:this.parsePercent(t.width,this._zrWidth),this._width=this._width<=0?10:this._width,this._height="undefined"==typeof t.height?this._zrHeight-this._y-a:this.parsePercent(t.height,this._zrHeight),this._height=this._height<=0?10:this._height,this._x=this.subPixelOptimize(this._x,t.borderWidth),this._y=this.subPixelOptimize(this._y,t.borderWidth),this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._x,y:this._y,width:this._width,height:this._height,brushType:t.borderWidth>0?"both":"fill",color:t.backgroundColor,strokeColor:t.borderColor,lineWidth:t.borderWidth}})),this.zr.addShape(this.shapeList[0])}}},o.inherits(t,i),e("../component").define("grid",t),t}),i("echarts/component/dataZoom",["require","./base","zrender/shape/Rectangle","zrender/shape/Polygon","../util/shape/Icon","../config","../util/date","zrender/tool/util","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r._ondrift=function(e,t){return r.__ondrift(this,e,t)},r._ondragend=function(){return r.__ondragend()},this._fillerSize=30,this._isSilence=!1,this._zoom={},this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this._handleSize=this.zoomOption.handleSize,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom.show&&this._buildShape(),this._syncData()}var i=e("./base"),n=e("zrender/shape/Rectangle"),a=e("zrender/shape/Polygon"),o=e("../util/shape/Icon"),r=e("../config");r.dataZoom={zlevel:0,z:4,show:!1,orient:"horizontal",backgroundColor:"rgba(0,0,0,0)",dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"rgba(70,130,180,0.8)",handleSize:8,showDetail:!0,realtime:!0};var s=e("../util/date"),l=e("zrender/tool/util");return t.prototype={type:r.COMPONENT_TYPE_DATAZOOM,_buildShape:function(){this._buildBackground(),this._buildFiller(),this._buildHandle(),this._buildFrame();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e]);this._syncFrameShape()},_getLocation:function(){var e,t,i,n,a=this.component.grid;return"horizontal"==this.zoomOption.orient?(i=this.zoomOption.width||a.getWidth(),n=this.zoomOption.height||this._fillerSize,e=null!=this.zoomOption.x?this.zoomOption.x:a.getX(),t=null!=this.zoomOption.y?this.zoomOption.y:this.zr.getHeight()-n-2):(i=this.zoomOption.width||this._fillerSize,n=this.zoomOption.height||a.getHeight(),e=null!=this.zoomOption.x?this.zoomOption.x:2,t=null!=this.zoomOption.y?this.zoomOption.y:a.getY()),{x:e,y:t,width:i,height:n}},_getZoom:function(){var e=this.option.series,t=this.option.xAxis;!t||t instanceof Array||(t=[t],this.option.xAxis=t);var i=this.option.yAxis;!i||i instanceof Array||(i=[i],this.option.yAxis=i);var n,a,o=[],s=this.zoomOption.xAxisIndex;if(t&&null==s){n=[];for(var l=0,h=t.length;h>l;l++)("category"==t[l].type||null==t[l].type)&&n.push(l)}else n=s instanceof Array?s:null!=s?[s]:[];if(s=this.zoomOption.yAxisIndex,i&&null==s){a=[];for(var l=0,h=i.length;h>l;l++)"category"==i[l].type&&a.push(l)}else a=s instanceof Array?s:null!=s?[s]:[];for(var m,l=0,h=e.length;h>l;l++)if(m=e[l],m.type==r.CHART_TYPE_LINE||m.type==r.CHART_TYPE_BAR||m.type==r.CHART_TYPE_SCATTER||m.type==r.CHART_TYPE_K){for(var V=0,U=n.length;U>V;V++)if(n[V]==(m.xAxisIndex||0)){o.push(l);break}for(var V=0,U=a.length;U>V;V++)if(a[V]==(m.yAxisIndex||0)){o.push(l);break}null==this.zoomOption.xAxisIndex&&null==this.zoomOption.yAxisIndex&&m.data&&this.getDataFromOption(m.data[0])instanceof Array&&(m.type==r.CHART_TYPE_SCATTER||m.type==r.CHART_TYPE_LINE||m.type==r.CHART_TYPE_BAR)&&o.push(l)}var d=null!=this._zoom.start?this._zoom.start:null!=this.zoomOption.start?this.zoomOption.start:0,p=null!=this._zoom.end?this._zoom.end:null!=this.zoomOption.end?this.zoomOption.end:100;d>p&&(d+=p,p=d-p,d-=p);var c=Math.round((p-d)/100*("horizontal"==this.zoomOption.orient?this._location.width:this._location.height));return{start:d,end:p,start2:0,end2:100,size:c,xAxisIndex:n,yAxisIndex:a,seriesIndex:o,scatterMap:this._zoom.scatterMap||{}}},_backupData:function(){this._originalData={xAxis:{},yAxis:{},series:{}};for(var e=this.option.xAxis,t=this._zoom.xAxisIndex,i=0,n=t.length;n>i;i++)this._originalData.xAxis[t[i]]=e[t[i]].data;for(var a=this.option.yAxis,o=this._zoom.yAxisIndex,i=0,n=o.length;n>i;i++)this._originalData.yAxis[o[i]]=a[o[i]].data;for(var s,l=this.option.series,h=this._zoom.seriesIndex,i=0,n=h.length;n>i;i++)s=l[h[i]],this._originalData.series[h[i]]=s.data,s.data&&this.getDataFromOption(s.data[0])instanceof Array&&(s.type==r.CHART_TYPE_SCATTER||s.type==r.CHART_TYPE_LINE||s.type==r.CHART_TYPE_BAR)&&(this._backupScale(),this._calculScatterMap(h[i]))},_calculScatterMap:function(t){this._zoom.scatterMap=this._zoom.scatterMap||{},this._zoom.scatterMap[t]=this._zoom.scatterMap[t]||{};var i=e("../component"),n=i.get("axis"),a=l.clone(this.option.xAxis);"category"==a[0].type&&(a[0].type="value"),a[1]&&"category"==a[1].type&&(a[1].type="value");var o=new n(this.ecTheme,null,!1,{xAxis:a,series:this.option.series},this,"xAxis"),r=this.option.series[t].xAxisIndex||0;this._zoom.scatterMap[t].x=o.getAxis(r).getExtremum(),o.dispose(),a=l.clone(this.option.yAxis),"category"==a[0].type&&(a[0].type="value"),a[1]&&"category"==a[1].type&&(a[1].type="value"),o=new n(this.ecTheme,null,!1,{yAxis:a,series:this.option.series},this,"yAxis"),r=this.option.series[t].yAxisIndex||0,this._zoom.scatterMap[t].y=o.getAxis(r).getExtremum(),o.dispose()},_buildBackground:function(){var e=this._location.width,t=this._location.height;this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x,y:this._location.y,width:e,height:t,color:this.zoomOption.backgroundColor}}));for(var i=0,o=this._originalData.xAxis,s=this._zoom.xAxisIndex,l=0,h=s.length;h>l;l++)i=Math.max(i,o[s[l]].length);for(var m=this._originalData.yAxis,V=this._zoom.yAxisIndex,l=0,h=V.length;h>l;l++)i=Math.max(i,m[V[l]].length);for(var U,d=this._zoom.seriesIndex[0],p=this._originalData.series[d],c=Number.MIN_VALUE,u=Number.MAX_VALUE,l=0,h=p.length;h>l;l++)U=this.getDataFromOption(p[l],0),this.option.series[d].type==r.CHART_TYPE_K&&(U=U[1]),isNaN(U)&&(U=0),c=Math.max(c,U),u=Math.min(u,U);var y=c-u,g=[],b=e/(i-(i>1?1:0)),f=t/(i-(i>1?1:0)),k=1;"horizontal"==this.zoomOption.orient&&1>b?k=Math.floor(3*i/e):"vertical"==this.zoomOption.orient&&1>f&&(k=Math.floor(3*i/t));for(var l=0,h=i;h>l;l+=k)U=this.getDataFromOption(p[l],0),this.option.series[d].type==r.CHART_TYPE_K&&(U=U[1]),isNaN(U)&&(U=0),g.push("horizontal"==this.zoomOption.orient?[this._location.x+b*l,this._location.y+t-1-Math.round((U-u)/y*(t-10))]:[this._location.x+1+Math.round((U-u)/y*(e-10)),this._location.y+f*(h-l-1)]);"horizontal"==this.zoomOption.orient?(g.push([this._location.x+e,this._location.y+t]),g.push([this._location.x,this._location.y+t])):(g.push([this._location.x,this._location.y]),g.push([this._location.x,this._location.y+t])),this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:g,color:this.zoomOption.dataBackgroundColor},hoverable:!1}))},_buildFiller:function(){this._fillerShae={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,_type:"filler"},this._fillerShae.style="horizontal"==this.zoomOption.orient?{x:this._location.x+Math.round(this._zoom.start/100*this._location.width)+this._handleSize,y:this._location.y,width:this._zoom.size-2*this._handleSize,height:this._location.height,color:this.zoomOption.fillerColor,text:":::",textPosition:"inside"}:{x:this._location.x,y:this._location.y+Math.round(this._zoom.start/100*this._location.height)+this._handleSize,width:this._location.width,height:this._zoom.size-2*this._handleSize,color:this.zoomOption.fillerColor,text:"::",textPosition:"inside"},this._fillerShae.highlightStyle={brushType:"fill",color:"rgba(0,0,0,0)"},this._fillerShae=new n(this._fillerShae),this.shapeList.push(this._fillerShae)},_buildHandle:function(){var e=this.zoomOption.showDetail?this._getDetail():{start:"",end:""};this._startShape={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,style:{iconType:"rectangle",x:this._location.x,y:this._location.y,width:this._handleSize,height:this._handleSize,color:this.zoomOption.handleColor,text:"=",textPosition:"inside"},highlightStyle:{text:e.start,brushType:"fill",textPosition:"left"},ondrift:this._ondrift,ondragend:this._ondragend},"horizontal"==this.zoomOption.orient?(this._startShape.style.height=this._location.height,this._endShape=l.clone(this._startShape),this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endShape.highlightStyle.text=e.end,this._endShape.highlightStyle.textPosition="right"):(this._startShape.style.width=this._location.width,this._endShape=l.clone(this._startShape),this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startShape.highlightStyle.textPosition="bottom",this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._endShape.highlightStyle.text=e.end,this._endShape.highlightStyle.textPosition="top"),this._startShape=new o(this._startShape),this._endShape=new o(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_buildFrame:function(){var e=this.subPixelOptimize(this._location.x,1),t=this.subPixelOptimize(this._location.y,1);this._startFrameShape={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:e,y:t,width:this._location.width-(e>this._location.x?1:0),height:this._location.height-(t>this._location.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:this.zoomOption.handleColor}},this._endFrameShape=l.clone(this._startFrameShape),this._startFrameShape=new n(this._startFrameShape),this._endFrameShape=new n(this._endFrameShape),this.shapeList.push(this._startFrameShape),this.shapeList.push(this._endFrameShape)},_syncHandleShape:function(){"horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._zoom.start=(this._startShape.style.x-this._location.x)/this._location.width*100,this._zoom.end=(this._endShape.style.x+this._handleSize-this._location.x)/this._location.width*100):(this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._zoom.start=(this._location.y+this._location.height-this._startShape.style.y)/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-this._endShape.style.y-this._handleSize)/this._location.height*100),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFillerShape:function(){var e,t;"horizontal"==this.zoomOption.orient?(e=this._startShape.style.x,t=this._endShape.style.x,this._fillerShae.style.x=Math.min(e,t)+this._handleSize,this._fillerShae.style.width=Math.abs(e-t)-this._handleSize,this._zoom.start=(Math.min(e,t)-this._location.x)/this._location.width*100,this._zoom.end=(Math.max(e,t)+this._handleSize-this._location.x)/this._location.width*100):(e=this._startShape.style.y,t=this._endShape.style.y,this._fillerShae.style.y=Math.min(e,t)+this._handleSize,this._fillerShae.style.height=Math.abs(e-t)-this._handleSize,this._zoom.start=(this._location.y+this._location.height-Math.max(e,t))/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-Math.min(e,t)-this._handleSize)/this._location.height*100),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFrameShape:function(){"horizontal"==this.zoomOption.orient?(this._startFrameShape.style.width=this._fillerShae.style.x-this._location.x,this._endFrameShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endFrameShape.style.width=this._location.x+this._location.width-this._endFrameShape.style.x):(this._startFrameShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startFrameShape.style.height=this._location.y+this._location.height-this._startFrameShape.style.y,this._endFrameShape.style.height=this._fillerShae.style.y-this._location.y),this.zr.modShape(this._startFrameShape.id),this.zr.modShape(this._endFrameShape.id)},_syncShape:function(){this.zoomOption.show&&("horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._location.x+this._zoom.start/100*this._location.width,this._endShape.style.x=this._location.x+this._zoom.end/100*this._location.width-this._handleSize,this._fillerShae.style.x=this._startShape.style.x+this._handleSize,this._fillerShae.style.width=this._endShape.style.x-this._startShape.style.x-this._handleSize):(this._startShape.style.y=this._location.y+this._location.height-this._zoom.start/100*this._location.height,this._endShape.style.y=this._location.y+this._location.height-this._zoom.end/100*this._location.height-this._handleSize,this._fillerShae.style.y=this._endShape.style.y+this._handleSize,this._fillerShae.style.height=this._startShape.style.y-this._endShape.style.y-this._handleSize),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refresh())},_syncData:function(e){var t,i,n,a,o;for(var s in this._originalData){t=this._originalData[s];for(var l in t)o=t[l],null!=o&&(a=o.length,i=Math.floor(this._zoom.start/100*a),n=Math.ceil(this._zoom.end/100*a),this.getDataFromOption(o[0])instanceof Array&&this.option[s][l].type!=r.CHART_TYPE_K?(this._setScale(),this.option[s][l].data=this._synScatterData(l,o)):this.option[s][l].data=o.slice(i,n))}this._isSilence||!this.zoomOption.realtime&&!e||this.messageCenter.dispatch(r.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart)},_synScatterData:function(e,t){if(0===this._zoom.start&&100==this._zoom.end&&0===this._zoom.start2&&100==this._zoom.end2)return t;var i,n,a,o,r,s=[],l=this._zoom.scatterMap[e];
    +
    +"horizontal"==this.zoomOption.orient?(i=l.x.max-l.x.min,n=this._zoom.start/100*i+l.x.min,a=this._zoom.end/100*i+l.x.min,i=l.y.max-l.y.min,o=this._zoom.start2/100*i+l.y.min,r=this._zoom.end2/100*i+l.y.min):(i=l.x.max-l.x.min,n=this._zoom.start2/100*i+l.x.min,a=this._zoom.end2/100*i+l.x.min,i=l.y.max-l.y.min,o=this._zoom.start/100*i+l.y.min,r=this._zoom.end/100*i+l.y.min);var h;(h=l.x.dataMappingMethods)&&(n=h.coord2Value(n),a=h.coord2Value(a)),(h=l.y.dataMappingMethods)&&(o=h.coord2Value(o),r=h.coord2Value(r));for(var m,V=0,U=t.length;U>V;V++)m=t[V].value||t[V],m[0]>=n&&m[0]<=a&&m[1]>=o&&m[1]<=r&&s.push(t[V]);return s},_setScale:function(){var e=0!==this._zoom.start||100!==this._zoom.end||0!==this._zoom.start2||100!==this._zoom.end2,t={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var i in t)for(var n=0,a=t[i].length;a>n;n++)t[i][n].scale=e||t[i][n]._scale},_backupScale:function(){var e={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var t in e)for(var i=0,n=e[t].length;n>i;i++)e[t][i]._scale=e[t][i].scale},_getDetail:function(){for(var e=["xAxis","yAxis"],t=0,i=e.length;i>t;t++){var n=this._originalData[e[t]];for(var a in n){var o=n[a];if(null!=o){var r=o.length,l=Math.floor(this._zoom.start/100*r),h=Math.ceil(this._zoom.end/100*r);return h-=h>0?1:0,{start:this.getDataFromOption(o[l]),end:this.getDataFromOption(o[h])}}}}e="horizontal"==this.zoomOption.orient?"xAxis":"yAxis";var m=this._zoom.seriesIndex[0],V=this.option.series[m][e+"Index"]||0,U=this.option[e][V].type,d=this._zoom.scatterMap[m][e.charAt(0)].min,p=this._zoom.scatterMap[m][e.charAt(0)].max,c=p-d;if("value"==U)return{start:d+c*this._zoom.start/100,end:d+c*this._zoom.end/100};if("time"==U){p=d+c*this._zoom.end/100,d+=c*this._zoom.start/100;var u=s.getAutoFormatter(d,p).formatter;return{start:s.format(u,d),end:s.format(u,p)}}return{start:"",end:""}},__ondrift:function(e,t,i){this.zoomOption.zoomLock&&(e=this._fillerShae);var n="filler"==e._type?this._handleSize:0;if("horizontal"==this.zoomOption.orient?e.style.x+t-n<=this._location.x?e.style.x=this._location.x+n:e.style.x+t+e.style.width+n>=this._location.x+this._location.width?e.style.x=this._location.x+this._location.width-e.style.width-n:e.style.x+=t:e.style.y+i-n<=this._location.y?e.style.y=this._location.y+n:e.style.y+i+e.style.height+n>=this._location.y+this._location.height?e.style.y=this._location.y+this._location.height-e.style.height-n:e.style.y+=i,"filler"==e._type?this._syncHandleShape():this._syncFillerShape(),this.zoomOption.realtime&&this._syncData(),this.zoomOption.showDetail){var a=this._getDetail();this._startShape.style.text=this._startShape.highlightStyle.text=a.start,this._endShape.style.text=this._endShape.highlightStyle.text=a.end,this._startShape.style.textPosition=this._startShape.highlightStyle.textPosition,this._endShape.style.textPosition=this._endShape.highlightStyle.textPosition}return!0},__ondragend:function(){this.zoomOption.showDetail&&(this._startShape.style.text=this._endShape.style.text="=",this._startShape.style.textPosition=this._endShape.style.textPosition="inside",this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.refreshNextFrame()),this.isDragend=!0},ondragend:function(e,t){this.isDragend&&e.target&&(!this.zoomOption.realtime&&this._syncData(),t.dragOut=!0,t.dragIn=!0,this._isSilence||this.zoomOption.realtime||this.messageCenter.dispatch(r.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart),t.needRefresh=!1,this.isDragend=!1)},ondataZoom:function(e,t){t.needRefresh=!0},absoluteZoom:function(e){this._zoom.start=e.start,this._zoom.end=e.end,this._zoom.start2=e.start2,this._zoom.end2=e.end2,this._syncShape(),this._syncData(!0)},rectZoom:function(e){if(!e)return this._zoom.start=this._zoom.start2=0,this._zoom.end=this._zoom.end2=100,this._syncShape(),this._syncData(!0),this._zoom;var t=this.component.grid.getArea(),i={x:e.x,y:e.y,width:e.width,height:e.height};if(i.width<0&&(i.x+=i.width,i.width=-i.width),i.height<0&&(i.y+=i.height,i.height=-i.height),i.x>t.x+t.width||i.y>t.y+t.height)return!1;i.x<t.x&&(i.x=t.x),i.x+i.width>t.x+t.width&&(i.width=t.x+t.width-i.x),i.y+i.height>t.y+t.height&&(i.height=t.y+t.height-i.y);var n,a=(i.x-t.x)/t.width,o=1-(i.x+i.width-t.x)/t.width,r=1-(i.y+i.height-t.y)/t.height,s=(i.y-t.y)/t.height;return"horizontal"==this.zoomOption.orient?(n=this._zoom.end-this._zoom.start,this._zoom.start+=n*a,this._zoom.end-=n*o,n=this._zoom.end2-this._zoom.start2,this._zoom.start2+=n*r,this._zoom.end2-=n*s):(n=this._zoom.end-this._zoom.start,this._zoom.start+=n*r,this._zoom.end-=n*s,n=this._zoom.end2-this._zoom.start2,this._zoom.start2+=n*a,this._zoom.end2-=n*o),this._syncShape(),this._syncData(!0),this._zoom},syncBackupData:function(e){for(var t,i,n=this._originalData.series,a=e.series,o=0,r=a.length;r>o;o++){i=a[o].data||a[o].eventList,t=n[o]?Math.floor(this._zoom.start/100*n[o].length):0;for(var s=0,l=i.length;l>s;s++)n[o]&&(n[o][s+t]=i[s])}},syncOption:function(e){this.silence(!0),this.option=e,this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom&&this.option.dataZoom.show&&this._buildShape(),this._syncData(),this.silence(!1)},silence:function(e){this._isSilence=e},getRealDataIndex:function(e,t){if(!this._originalData||0===this._zoom.start&&100==this._zoom.end)return t;var i=this._originalData.series;return i[e]?Math.floor(this._zoom.start/100*i[e].length)+t:-1},resize:function(){this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this.option.dataZoom.show&&this._buildShape()}},l.inherits(t,i),e("../component").define("dataZoom",t),t}),i("echarts/component/categoryAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","../component"],function(e){function t(e,t,n,a,o,r){if(a.data.length<1)return void console.error("option.data.length < 1.");i.call(this,e,t,n,a,o),this.grid=this.component.grid;for(var s in r)this[s]=r[s];this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Rectangle"),r=e("../config");r.categoryAxis={zlevel:0,z:0,show:!0,position:"bottom",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:!0,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!0,interval:"auto",inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,interval:"auto",rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var s=e("zrender/tool/util"),l=e("zrender/tool/area");return t.prototype={type:r.COMPONENT_TYPE_AXIS_CATEGORY,_getReformedLabel:function(e){var t=this.getDataFromOption(this.option.data[e]),i=this.option.data[e].formatter||this.option.axisLabel.formatter;return i&&("function"==typeof i?t=i.call(this.myChart,t):"string"==typeof i&&(t=i.replace("{value}",t))),t},_getInterval:function(){var e=this.option.axisLabel.interval;if("auto"==e){var t=this.option.axisLabel.textStyle.fontSize,i=this.option.data,n=this.option.data.length;if(this.isHorizontal())if(n>3){var a,o,r=this.getGap(),h=!1,m=Math.floor(.5/r);for(m=1>m?1:m,e=Math.floor(15/r);!h&&n>e;){e+=m,h=!0,a=Math.floor(r*e);for(var V=Math.floor((n-1)/e)*e;V>=0;V-=e){if(0!==this.option.axisLabel.rotate)o=t;else if(i[V].textStyle)o=l.getTextWidth(this._getReformedLabel(V),this.getFont(s.merge(i[V].textStyle,this.option.axisLabel.textStyle)));else{var U=this._getReformedLabel(V)+"",d=(U.match(/\w/g)||"").length,p=U.length-d;o=d*t*2/3+p*t}if(o>a){h=!1;break}}}}else e=1;else if(n>3){var r=this.getGap();for(e=Math.floor(11/r);t>r*e-6&&n>e;)e++}else e=1}else e="function"==typeof e?1:e-0+1;return e},_buildShape:function(){if(this._interval=this._getInterval(),this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildAxisTick:function(){var e,t=this.option.data,i=this.option.data.length,n=this.option.axisTick,o=n.length,r=n.lineStyle.color,s=n.lineStyle.width,l="function"==typeof n.interval?n.interval:"auto"==n.interval&&"function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,h=l?1:"auto"==n.interval?this._interval:n.interval-0+1,m=n.onGap,V=m?this.getGap()/2:"undefined"==typeof m&&this.option.boundaryGap?this.getGap()/2:0,U=V>0?-h:0;if(this.isHorizontal())for(var d,p="bottom"==this.option.position?n.inside?this.grid.getYend()-o-1:this.grid.getYend()+1:n.inside?this.grid.getY()+1:this.grid.getY()-o-1,c=U;i>c;c+=h)(!l||l(c,t[c]))&&(d=this.subPixelOptimize(this.getCoordByIndex(c)+(c>=0?V:0),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:d,yStart:p,xEnd:d,yEnd:p+o,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e)));else for(var u,y="left"==this.option.position?n.inside?this.grid.getX()+1:this.grid.getX()-o-1:n.inside?this.grid.getXend()-o-1:this.grid.getXend()+1,c=U;i>c;c+=h)(!l||l(c,t[c]))&&(u=this.subPixelOptimize(this.getCoordByIndex(c)-(c>=0?V:0),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:y,yStart:u,xEnd:y+o,yEnd:u,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e)))},_buildAxisLabel:function(){var e,t,i=this.option.data,a=this.option.data.length,o=this.option.axisLabel,r=o.rotate,l=o.margin,h=o.clickable,m=o.textStyle,V="function"==typeof o.interval?o.interval:!1;if(this.isHorizontal()){var U,d;"bottom"==this.option.position?(U=this.grid.getYend()+l,d="top"):(U=this.grid.getY()-l,d="bottom");for(var p=0;a>p;p+=this._interval)V&&!V(p,i[p])||""===this._getReformedLabel(p)||(t=s.merge(i[p].textStyle||{},m),e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoordByIndex(p),y:U,color:t.color,text:this._getReformedLabel(p),textFont:this.getFont(t),textAlign:t.align||"center",textBaseline:t.baseline||d}},r&&(e.style.textAlign=r>0?"bottom"==this.option.position?"right":"left":"bottom"==this.option.position?"left":"right",e.rotation=[r*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(h,e))))}else{var c,u;"left"==this.option.position?(c=this.grid.getX()-l,u="right"):(c=this.grid.getXend()+l,u="left");for(var p=0;a>p;p+=this._interval)V&&!V(p,i[p])||""===this._getReformedLabel(p)||(t=s.merge(i[p].textStyle||{},m),e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:c,y:this.getCoordByIndex(p),color:t.color,text:this._getReformedLabel(p),textFont:this.getFont(t),textAlign:t.align||u,textBaseline:t.baseline||0===p&&""!==this.option.name?"bottom":p==a-1&&""!==this.option.name?"top":"middle"}},r&&(e.rotation=[r*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(h,e))))}},_buildSplitLine:function(){var e,t=this.option.data,i=this.option.data.length,n=this.option.splitLine,o=n.lineStyle.type,r=n.lineStyle.width,s=n.lineStyle.color;s=s instanceof Array?s:[s];var l=s.length,h="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,m=n.onGap,V=m?this.getGap()/2:"undefined"==typeof m&&this.option.boundaryGap?this.getGap()/2:0;if(i-=m||"undefined"==typeof m&&this.option.boundaryGap?1:0,this.isHorizontal())for(var U,d=this.grid.getY(),p=this.grid.getYend(),c=0;i>c;c+=this._interval)(!h||h(c,t[c]))&&(U=this.subPixelOptimize(this.getCoordByIndex(c)+V,r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:U,yStart:d,xEnd:U,yEnd:p,strokeColor:s[c/this._interval%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e)));else for(var u,y=this.grid.getX(),g=this.grid.getXend(),c=0;i>c;c+=this._interval)(!h||h(c,t[c]))&&(u=this.subPixelOptimize(this.getCoordByIndex(c)-V,r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:y,yStart:u,xEnd:g,yEnd:u,strokeColor:s[c/this._interval%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e)))},_buildSplitArea:function(){var e,t=this.option.data,i=this.option.splitArea,n=i.areaStyle.color;if(n instanceof Array){var a=n.length,r=this.option.data.length,s="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,l=i.onGap,h=l?this.getGap()/2:"undefined"==typeof l&&this.option.boundaryGap?this.getGap()/2:0;if(this.isHorizontal())for(var m,V=this.grid.getY(),U=this.grid.getHeight(),d=this.grid.getX(),p=0;r>=p;p+=this._interval)s&&!s(p,t[p])&&r>p||(m=r>p?this.getCoordByIndex(p)+h:this.grid.getXend(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:d,y:V,width:m-d,height:U,color:n[p/this._interval%a]}},this.shapeList.push(new o(e)),d=m);else for(var c,u=this.grid.getX(),y=this.grid.getWidth(),g=this.grid.getYend(),p=0;r>=p;p+=this._interval)s&&!s(p,t[p])&&r>p||(c=r>p?this.getCoordByIndex(p)-h:this.grid.getY(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:u,y:c,width:y,height:g-c,color:n[p/this._interval%a]}},this.shapeList.push(new o(e)),g=c)}else e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:n}},this.shapeList.push(new o(e))},refresh:function(e){e&&(this.option=this.reformOption(e),this.option.axisLabel.textStyle=this.getTextStyle(this.option.axisLabel.textStyle)),this.clear(),this._buildShape()},getGap:function(){var e=this.option.data.length,t=this.isHorizontal()?this.grid.getWidth():this.grid.getHeight();return this.option.boundaryGap?t/e:t/(e>1?e-1:1)},getCoord:function(e){for(var t=this.option.data,i=t.length,n=this.getGap(),a=this.option.boundaryGap?n/2:0,o=0;i>o;o++){if(this.getDataFromOption(t[o])==e)return a=this.isHorizontal()?this.grid.getX()+a:this.grid.getYend()-a;a+=n}},getCoordByIndex:function(e){if(0>e)return this.isHorizontal()?this.grid.getX():this.grid.getYend();if(e>this.option.data.length-1)return this.isHorizontal()?this.grid.getXend():this.grid.getY();var t=this.getGap(),i=this.option.boundaryGap?t/2:0;return i+=e*t,i=this.isHorizontal()?this.grid.getX()+i:this.grid.getYend()-i},getNameByIndex:function(e){return this.getDataFromOption(this.option.data[e])},getIndexByName:function(e){for(var t=this.option.data,i=t.length,n=0;i>n;n++)if(this.getDataFromOption(t[n])==e)return n;return-1},getValueFromCoord:function(){return""},isMainAxis:function(e){return e%this._interval===0}},s.inherits(t,i),e("../component").define("categoryAxis",t),t}),i("echarts/component/valueAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/date","zrender/tool/util","../util/smartSteps","../util/accMath","../util/smartLogSteps","../component"],function(e){function t(e,t,n,a,o,r,s){if(!s||0===s.length)return void console.err("option.series.length == 0.");i.call(this,e,t,n,a,o),this.series=s,this.grid=this.component.grid;for(var l in r)this[l]=r[l];this.refresh(a,s)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Rectangle"),r=e("../config");r.valueAxis={zlevel:0,z:0,show:!0,position:"left",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:[0,0],axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!1,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var s=e("../util/date"),l=e("zrender/tool/util");return t.prototype={type:r.COMPONENT_TYPE_AXIS_VALUE,_buildShape:function(){if(this._hasData=!1,this._calculateValue(),this._hasData&&this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildAxisTick:function(){var e,t=this._valueList,i=this._valueList.length,n=this.option.axisTick,o=n.length,r=n.lineStyle.color,s=n.lineStyle.width;if(this.isHorizontal())for(var l,h="bottom"===this.option.position?n.inside?this.grid.getYend()-o-1:this.grid.getYend()+1:n.inside?this.grid.getY()+1:this.grid.getY()-o-1,m=0;i>m;m++)l=this.subPixelOptimize(this.getCoord(t[m]),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:l,yStart:h,xEnd:l,yEnd:h+o,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e));else for(var V,U="left"===this.option.position?n.inside?this.grid.getX()+1:this.grid.getX()-o-1:n.inside?this.grid.getXend()-o-1:this.grid.getXend()+1,m=0;i>m;m++)V=this.subPixelOptimize(this.getCoord(t[m]),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:U,yStart:V,xEnd:U+o,yEnd:V,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e))},_buildAxisLabel:function(){var e,t=this._valueList,i=this._valueList.length,a=this.option.axisLabel.rotate,o=this.option.axisLabel.margin,r=this.option.axisLabel.clickable,s=this.option.axisLabel.textStyle;if(this.isHorizontal()){var l,h;"bottom"===this.option.position?(l=this.grid.getYend()+o,h="top"):(l=this.grid.getY()-o,h="bottom");for(var m=0;i>m;m++)e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoord(t[m]),y:l,color:"function"==typeof s.color?s.color(t[m]):s.color,text:this._valueLabel[m],textFont:this.getFont(s),textAlign:s.align||"center",textBaseline:s.baseline||h}},a&&(e.style.textAlign=a>0?"bottom"===this.option.position?"right":"left":"bottom"===this.option.position?"left":"right",e.rotation=[a*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(r,e)))}else{var V,U;"left"===this.option.position?(V=this.grid.getX()-o,U="right"):(V=this.grid.getXend()+o,U="left");for(var m=0;i>m;m++)e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:V,y:this.getCoord(t[m]),color:"function"==typeof s.color?s.color(t[m]):s.color,text:this._valueLabel[m],textFont:this.getFont(s),textAlign:s.align||U,textBaseline:s.baseline||(0===m&&""!==this.option.name?"bottom":m===i-1&&""!==this.option.name?"top":"middle")}},a&&(e.rotation=[a*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(r,e)))}},_buildSplitLine:function(){var e,t=this._valueList,i=this._valueList.length,n=this.option.splitLine,o=n.lineStyle.type,r=n.lineStyle.width,s=n.lineStyle.color;s=s instanceof Array?s:[s];var l=s.length;if(this.isHorizontal())for(var h,m=this.grid.getY(),V=this.grid.getYend(),U=0;i>U;U++)h=this.subPixelOptimize(this.getCoord(t[U]),r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:h,yStart:m,xEnd:h,yEnd:V,strokeColor:s[U%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e));else for(var d,p=this.grid.getX(),c=this.grid.getXend(),U=0;i>U;U++)d=this.subPixelOptimize(this.getCoord(t[U]),r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:p,yStart:d,xEnd:c,yEnd:d,strokeColor:s[U%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e))},_buildSplitArea:function(){var e,t=this.option.splitArea.areaStyle.color;if(t instanceof Array){var i=t.length,n=this._valueList,a=this._valueList.length;if(this.isHorizontal())for(var r,s=this.grid.getY(),l=this.grid.getHeight(),h=this.grid.getX(),m=0;a>=m;m++)r=a>m?this.getCoord(n[m]):this.grid.getXend(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:h,y:s,width:r-h,height:l,color:t[m%i]}},this.shapeList.push(new o(e)),h=r;else for(var V,U=this.grid.getX(),d=this.grid.getWidth(),p=this.grid.getYend(),m=0;a>=m;m++)V=a>m?this.getCoord(n[m]):this.grid.getY(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:U,y:V,width:d,height:p-V,color:t[m%i]}},this.shapeList.push(new o(e)),p=V}else e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:t}},this.shapeList.push(new o(e))},_calculateValue:function(){if(isNaN(this.option.min-0)||isNaN(this.option.max-0)){for(var e,t,i={},n=this.component.legend,a=0,o=this.series.length;o>a;a++)!(this.series[a].type!=r.CHART_TYPE_LINE&&this.series[a].type!=r.CHART_TYPE_BAR&&this.series[a].type!=r.CHART_TYPE_SCATTER&&this.series[a].type!=r.CHART_TYPE_K&&this.series[a].type!=r.CHART_TYPE_EVENTRIVER||n&&!n.isSelected(this.series[a].name)||(e=this.series[a].xAxisIndex||0,t=this.series[a].yAxisIndex||0,this.option.xAxisIndex!=e&&this.option.yAxisIndex!=t||!this._calculSum(i,a)));var s;for(var a in i){s=i[a];for(var l=0,h=s.length;h>l;l++)if(!isNaN(s[l])){this._hasData=!0,this._min=s[l],this._max=s[l];break}if(this._hasData)break}for(var a in i){s=i[a];for(var l=0,h=s.length;h>l;l++)isNaN(s[l])||(this._min=Math.min(this._min,s[l]),this._max=Math.max(this._max,s[l]))}var m="log"!==this.option.type?this.option.boundaryGap:[0,0],V=Math.abs(this._max-this._min);this._min=isNaN(this.option.min-0)?this._min-Math.abs(V*m[0]):this.option.min-0,this._max=isNaN(this.option.max-0)?this._max+Math.abs(V*m[1]):this.option.max-0,this._min===this._max&&(0===this._max?this._max=1:this._max>0?this._min=this._max/this.option.splitNumber!=null?this.option.splitNumber:5:this._max=this._max/this.option.splitNumber!=null?this.option.splitNumber:5),"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._reformValue(this.option.scale)}else this._hasData=!0,this._min=this.option.min-0,this._max=this.option.max-0,"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._customerValue()},_calculSum:function(e,t){var i,n,a=this.series[t].name||"kener";if(this.series[t].stack){var o="__Magic_Key_Positive__"+this.series[t].stack,l="__Magic_Key_Negative__"+this.series[t].stack;e[o]=e[o]||[],e[l]=e[l]||[],e[a]=e[a]||[],n=this.series[t].data;for(var h=0,m=n.length;m>h;h++)i=this.getDataFromOption(n[h]),"-"!==i&&(i-=0,i>=0?null!=e[o][h]?e[o][h]+=i:e[o][h]=i:null!=e[l][h]?e[l][h]+=i:e[l][h]=i,this.option.scale&&e[a].push(i))}else if(e[a]=e[a]||[],this.series[t].type!=r.CHART_TYPE_EVENTRIVER){n=this.series[t].data;for(var h=0,m=n.length;m>h;h++)i=this.getDataFromOption(n[h]),this.series[t].type===r.CHART_TYPE_K?(e[a].push(i[0]),e[a].push(i[1]),e[a].push(i[2]),e[a].push(i[3])):i instanceof Array?(-1!=this.option.xAxisIndex&&e[a].push("time"!=this.option.type?i[0]:s.getNewDate(i[0])),-1!=this.option.yAxisIndex&&e[a].push("time"!=this.option.type?i[1]:s.getNewDate(i[1]))):e[a].push(i)}else{n=this.series[t].data;for(var h=0,m=n.length;m>h;h++)for(var V=n[h].evolution,U=0,d=V.length;d>U;U++)e[a].push(s.getNewDate(V[U].time))}},_reformValue:function(t){var i=e("../util/smartSteps"),n=this.option.splitNumber;!t&&this._min>=0&&this._max>=0&&(this._min=0),!t&&this._min<=0&&this._max<=0&&(this._max=0);var a=i(this._min,this._max,n);n=null!=n?n:a.secs,this._min=a.min,this._max=a.max,this._valueList=a.pnts,this._reformLabelData()},_reformTimeValue:function(){var e=null!=this.option.splitNumber?this.option.splitNumber:5,t=s.getAutoFormatter(this._min,this._max,e),i=t.formatter,n=t.gapValue;this._valueList=[s.getNewDate(this._min)];var a;switch(i){case"week":a=s.nextMonday(this._min);break;case"month":a=s.nextNthOnMonth(this._min,1);break;case"quarter":a=s.nextNthOnQuarterYear(this._min,1);break;case"half-year":a=s.nextNthOnHalfYear(this._min,1);break;case"year":a=s.nextNthOnYear(this._min,1);break;default:72e5>=n?a=(Math.floor(this._min/n)+1)*n:(a=s.getNewDate(this._min- -n),a.setHours(6*Math.round(a.getHours()/6)),a.setMinutes(0),a.setSeconds(0))}for(a-this._min<n/2&&(a-=-n),t=s.getNewDate(a),e*=1.5;e-->=0&&(("month"==i||"quarter"==i||"half-year"==i||"year"==i)&&t.setDate(1),!(this._max-t<n/2));)this._valueList.push(t),t=s.getNewDate(t- -n);this._valueList.push(s.getNewDate(this._max)),this._reformLabelData(function(e){return function(t){return s.format(e,t)}}(i))},_customerValue:function(){var t=e("../util/accMath"),i=null!=this.option.splitNumber?this.option.splitNumber:5,n=(this._max-this._min)/i;this._valueList=[];for(var a=0;i>=a;a++)this._valueList.push(t.accAdd(this._min,t.accMul(n,a)));this._reformLabelData()},_reformLogValue:function(){var t=this.option,i=e("../util/smartLogSteps")({dataMin:this._min,dataMax:this._max,logPositive:t.logPositive,logLabelBase:t.logLabelBase,splitNumber:t.splitNumber});this._min=i.dataMin,this._max=i.dataMax,this._valueList=i.tickList,this._dataMappingMethods=i.dataMappingMethods,this._reformLabelData(i.labelFormatter)},_reformLabelData:function(e){this._valueLabel=[];var t=this.option.axisLabel.formatter;if(t)for(var i=0,n=this._valueList.length;n>i;i++)"function"==typeof t?this._valueLabel.push(e?t.call(this.myChart,this._valueList[i],e):t.call(this.myChart,this._valueList[i])):"string"==typeof t&&this._valueLabel.push(e?s.format(t,this._valueList[i]):t.replace("{value}",this._valueList[i]));else for(var i=0,n=this._valueList.length;n>i;i++)this._valueLabel.push(e?e(this._valueList[i]):this.numAddCommas(this._valueList[i]))},getExtremum:function(){this._calculateValue();var e=this._dataMappingMethods;return{min:this._min,max:this._max,dataMappingMethods:e?l.merge({},e):null}},refresh:function(e,t){e&&(this.option=this.reformOption(e),this.option.axisLabel.textStyle=l.merge(this.option.axisLabel.textStyle||{},this.ecTheme.textStyle),this.series=t),this.zr&&(this.clear(),this._buildShape())},getCoord:function(e){this._dataMappingMethods&&(e=this._dataMappingMethods.value2Coord(e)),e=e<this._min?this._min:e,e=e>this._max?this._max:e;var t;return t=this.isHorizontal()?this.grid.getX()+(e-this._min)/(this._max-this._min)*this.grid.getWidth():this.grid.getYend()-(e-this._min)/(this._max-this._min)*this.grid.getHeight()},getCoordSize:function(e){return Math.abs(this.isHorizontal()?e/(this._max-this._min)*this.grid.getWidth():e/(this._max-this._min)*this.grid.getHeight())},getValueFromCoord:function(e){var t;return this.isHorizontal()?(e=e<this.grid.getX()?this.grid.getX():e,e=e>this.grid.getXend()?this.grid.getXend():e,t=this._min+(e-this.grid.getX())/this.grid.getWidth()*(this._max-this._min)):(e=e<this.grid.getY()?this.grid.getY():e,e=e>this.grid.getYend()?this.grid.getYend():e,t=this._max-(e-this.grid.getY())/this.grid.getHeight()*(this._max-this._min)),this._dataMappingMethods&&(t=this._dataMappingMethods.coord2Value(t)),t.toFixed(2)-0},isMaindAxis:function(e){for(var t=0,i=this._valueList.length;i>t;t++)if(this._valueList[t]===e)return!0;return!1}},l.inherits(t,i),e("../component").define("valueAxis",t),t}),i("echarts/util/date",[],function(){function e(e,t,i){i=i>1?i:2;for(var n,a,o,r,s=0,l=m.length;l>s;s++)if(n=m[s].value,a=Math.ceil(t/n)*n-Math.floor(e/n)*n,Math.round(a/n)<=1.2*i){o=m[s].formatter,r=m[s].value;break}return null==o&&(o="year",n=317088e5,a=Math.ceil(t/n)*n-Math.floor(e/n)*n,r=Math.round(a/(i-1)/n)*n),{formatter:o,gapValue:r}}function t(e){return 10>e?"0"+e:e}function i(e,i){("week"==e||"month"==e||"quarter"==e||"half-year"==e||"year"==e)&&(e="MM - dd\nyyyy");var n=h(i),a=n.getFullYear(),o=n.getMonth()+1,r=n.getDate(),s=n.getHours(),l=n.getMinutes(),m=n.getSeconds();return e=e.replace("MM",t(o)),e=e.toLowerCase(),e=e.replace("yyyy",a),e=e.replace("yy",a%100),e=e.replace("dd",t(r)),e=e.replace("d",r),e=e.replace("hh",t(s)),e=e.replace("h",s),e=e.replace("mm",t(l)),e=e.replace("m",l),e=e.replace("ss",t(m)),e=e.replace("s",m)}function n(e){return e=h(e),e.setDate(e.getDate()+8-e.getDay()),e}function a(e,t,i){return e=h(e),e.setMonth(Math.ceil((e.getMonth()+1)/i)*i),e.setDate(t),e}function o(e,t){return a(e,t,1)}function r(e,t){return a(e,t,3)}function s(e,t){return a(e,t,6)}function l(e,t){return a(e,t,12)}function h(e){return e instanceof Date?e:new Date("string"==typeof e?e.replace(/-/g,"/"):e)}var m=[{formatter:"hh : mm : ss",value:1e3},{formatter:"hh : mm : ss",value:5e3},{formatter:"hh : mm : ss",value:1e4},{formatter:"hh : mm : ss",value:15e3},{formatter:"hh : mm : ss",value:3e4},{formatter:"hh : mm\nMM - dd",value:6e4},{formatter:"hh : mm\nMM - dd",value:3e5},{formatter:"hh : mm\nMM - dd",value:6e5},{formatter:"hh : mm\nMM - dd",value:9e5},{formatter:"hh : mm\nMM - dd",value:18e5},{formatter:"hh : mm\nMM - dd",value:36e5},{formatter:"hh : mm\nMM - dd",value:72e5},{formatter:"hh : mm\nMM - dd",value:216e5},{formatter:"hh : mm\nMM - dd",value:432e5},{formatter:"MM - dd\nyyyy",value:864e5},{formatter:"week",value:6048e5},{formatter:"month",value:26784e5},{formatter:"quarter",value:8208e6},{formatter:"half-year",value:16416e6},{formatter:"year",value:32832e6}];return{getAutoFormatter:e,getNewDate:h,format:i,nextMonday:n,nextNthPerNmonth:a,nextNthOnMonth:o,nextNthOnQuarterYear:r,nextNthOnHalfYear:s,nextNthOnYear:l}}),i("echarts/util/smartSteps",[],function(){function e(e){return X.log(I(e))/X.LN10}function t(e){return X.pow(10,e)}function i(e){return e===w(e)}function n(e,t,n,a){b=a||{},f=b.steps||L,k=b.secs||W,n=v(+n||0)%99,e=+e||0,t=+t||0,x=_=0,"min"in b&&(e=+b.min||0,x=1),"max"in b&&(t=+b.max||0,_=1),e>t&&(t=[e,e=t][0]);var o=t-e;if(x&&_)return g(e,t,n);if((n||5)>o){if(i(e)&&i(t))return d(e,t,n);if(0===o)return p(e,t,n)}return h(e,t,n)}function a(e,i,n,a){a=a||0;var s=o((i-e)/n,-1),l=o(e,-1,1),h=o(i,-1),m=X.min(s.e,l.e,h.e);0===l.c?m=X.min(s.e,h.e):0===h.c&&(m=X.min(s.e,l.e)),r(s,{c:0,e:m}),r(l,s,1),r(h,s),a+=m,e=l.c,i=h.c;for(var V=(i-e)/n,U=t(a),d=0,p=[],c=n+1;c--;)p[c]=(e+V*c)*U;if(0>a){d=u(U),V=+(V*U).toFixed(d),e=+(e*U).toFixed(d),i=+(i*U).toFixed(d);for(var c=p.length;c--;)p[c]=p[c].toFixed(d),0===+p[c]&&(p[c]="0")}else e*=U,i*=U,V*=U;return k=0,f=0,b=0,{min:e,max:i,secs:n,step:V,fix:d,exp:a,pnts:p}}function o(n,a,o){a=v(a%10)||2,0>a&&(i(n)?a=(""+I(n)).replace(/0+$/,"").length||1:(n=n.toFixed(15).replace(/0+$/,""),a=n.replace(".","").replace(/^[-0]+/,"").length,n=+n));var r=w(e(n))-a+1,s=+(n*t(-r)).toFixed(15)||0;return s=o?w(s):K(s),!s&&(r=0),(""+I(s)).length>a&&(r+=1,s/=10),{c:s,e:r}}function r(e,i,n){var a=i.e-e.e;a&&(e.e+=a,e.c*=t(-a),e.c=n?w(e.c):K(e.c))}function s(e,t,i){e.e<t.e?r(t,e,i):r(e,t,i)}function l(e,t){t=t||L,e=o(e);for(var i=e.c,n=0;i>t[n];)n++;if(!t[n])for(i/=10,e.e+=1,n=0;i>t[n];)n++;return e.c=t[n],e}function h(e,t,n){var s,h=n||+k.slice(-1),p=l((t-e)/h,f),u=o(t-e),g=o(e,-1,1),b=o(t,-1);if(r(u,p),r(g,p,1),r(b,p),n?s=V(g,b,h):h=m(g,b),i(e)&&i(t)&&e*t>=0){if(h>t-e)return d(e,t,h);h=U(e,t,n,g,b,h)}var L=c(e,t,g.c,b.c);return g.c=L[0],b.c=L[1],(x||_)&&y(e,t,g,b),a(g.c,b.c,h,b.e)}function m(e,i){for(var n,a,o,r,s=[],h=k.length;h--;)n=k[h],a=l((i.c-e.c)/n,f),a=a.c*t(a.e),o=w(e.c/a)*a,r=K(i.c/a)*a,s[h]={min:o,max:r,step:a,span:r-o};return s.sort(function(e,t){var i=e.span-t.span;return 0===i&&(i=e.step-t.step),i}),s=s[0],n=s.span/s.step,e.c=s.min,i.c=s.max,3>n?2*n:n}function V(e,i,n){for(var a,o,r=i.c,s=(i.c-e.c)/n-1;r>e.c;)s=l(s+1,f),s=s.c*t(s.e),a=s*n,o=K(i.c/s)*s,r=o-a;var h=e.c-r,m=o-i.c,V=h-m;return V>1.1*s&&(V=v(V/s/2)*s,r+=V,o+=V),e.c=r,i.c=o,s}function U(e,n,a,o,r,s){var l=r.c-o.c,h=l/s*t(r.e);if(!i(h)&&(h=w(h),l=h*s,n-e>l&&(h+=1,l=h*s,!a&&h*(s-1)>=n-e&&(s-=1,l=h*s)),l>=n-e)){var m=l-(n-e);o.c=v(e-m/2),r.c=v(n+m/2),o.e=0,r.e=0}return s}function d(e,t,i){if(i=i||5,x)t=e+i;else if(_)e=t-i;else{var n=i-(t-e),o=v(e-n/2),r=v(t+n/2),s=c(e,t,o,r);e=s[0],t=s[1]}return a(e,t,i)}function p(e,t,i){i=i||5;var n=X.min(I(t/i),i)/2.1;return x?t=e+n:_?e=t-n:(e-=n,t+=n),h(e,t,i)}function c(e,t,i,n){
    +return e>=0&&0>i?(n-=i,i=0):0>=t&&n>0&&(i-=n,n=0),[i,n]}function u(e){return e=(+e).toFixed(15).split("."),e.pop().replace(/0+$/,"").length}function y(e,t,i,n){if(x){var a=o(e,4,1);i.e-a.e>6&&(a={c:0,e:i.e}),s(i,a),s(n,a),n.c+=a.c-i.c,i.c=a.c}else if(_){var r=o(t,4);n.e-r.e>6&&(r={c:0,e:n.e}),s(i,r),s(n,r),i.c+=r.c-n.c,n.c=r.c}}function g(e,t,i){var n=i?[i]:k,s=t-e;if(0===s)return t=o(t,3),i=n[0],t.c=v(t.c+i/2),a(t.c-i,t.c,i,t.e);I(t/s)<1e-6&&(t=0),I(e/s)<1e-6&&(e=0);var l,h,m,V=[[5,10],[10,2],[50,10],[100,2]],U=[],d=[],p=o(t-e,3),c=o(e,-1,1),u=o(t,-1);r(c,p,1),r(u,p),s=u.c-c.c,p.c=s;for(var y=n.length;y--;){i=n[y],l=K(s/i),h=l*i-s,m=3*(h+3),m+=2*(i-n[0]+2),i%5===0&&(m-=10);for(var g=V.length;g--;)l%V[g][0]===0&&(m/=V[g][1]);d[y]=[i,l,h,m].join(),U[y]={secs:i,step:l,delta:h,score:m}}return U.sort(function(e,t){return e.score-t.score}),U=U[0],c.c=v(c.c-U.delta/2),u.c=v(u.c+U.delta/2),a(c.c,u.c,U.secs,p.e)}var b,f,k,x,_,L=[10,20,25,50],W=[4,5,6],X=Math,v=X.round,w=X.floor,K=X.ceil,I=X.abs;return n}),i("echarts/util/smartLogSteps",["require","./number"],function(e){function t(e){return i(),u=e||{},n(),a(),[o(),i()][0]}function i(){U=u=g=c=b=f=y=k=d=p=null}function n(){d=u.logLabelBase,null==d?(p="plain",d=10,c=I):(d=+d,1>d&&(d=10),p="exponent",c=L(d)),y=u.splitNumber,null==y&&(y=E);var e=parseFloat(u.dataMin),t=parseFloat(u.dataMax);isFinite(e)||isFinite(t)?isFinite(e)?isFinite(t)?e>t&&(t=[e,e=t][0]):t=e:e=t:e=t=1,U=u.logPositive,null==U&&(U=t>0||0===e),b=U?e:-t,f=U?t:-e,S>b&&(b=S),S>f&&(f=S)}function a(){function e(){y>m&&(y=m);var e=w(l(m/y)),t=v(l(m/e)),i=e*t,n=(i-U)/2,a=w(l(r-n));V(a-r)&&(a-=1),g=-a*c;for(var s=a;o>=s-e;s+=e)k.push(W(d,s))}function t(){for(var e=i(h,0),t=e+2;t>e&&a(e+1)+n(e+1)*C<r;)e++;for(var l=i(s,0),t=l-2;l>t&&a(l-1)+n(l-1)*C>o;)l--;g=-(a(e)*I+n(e)*J);for(var m=e;l>=m;m++){var V=a(m),U=n(m);k.push(W(10,V)*W(2,U))}}function i(e,t){return 3*e+t}function n(e){return e-3*a(e)}function a(e){return w(l(e/3))}k=[];var o=l(L(f)/c),r=l(L(b)/c),s=v(o),h=w(r),m=s-h,U=o-r;"exponent"===p?e():F>=m&&y>F?t():e()}function o(){for(var e=[],t=0,i=k.length;i>t;t++)e[t]=(U?1:-1)*k[t];!U&&e.reverse();var n=s(),a=n.value2Coord,o=a(e[0]),l=a(e[e.length-1]);return o===l&&(o-=1,l+=1),{dataMin:o,dataMax:l,tickList:e,logPositive:U,labelFormatter:r(),dataMappingMethods:n}}function r(){if("exponent"===p){var e=d,t=c;return function(i){if(!isFinite(parseFloat(i)))return"";var n="";return 0>i&&(i=-i,n="-"),n+e+m(L(i)/t)}}return function(e){return isFinite(parseFloat(e))?x.addCommas(h(e)):""}}function s(){var e=U,t=g;return{value2Coord:function(i){return null==i||isNaN(i)||!isFinite(i)?i:(i=parseFloat(i),isFinite(i)?e&&S>i?i=S:!e&&i>-S&&(i=-S):i=S,i=X(i),(e?1:-1)*(L(i)+t))},coord2Value:function(i){return null==i||isNaN(i)||!isFinite(i)?i:(i=parseFloat(i),isFinite(i)||(i=S),e?W(K,i-t):-W(K,-i+t))}}}function l(e){return+Number(+e).toFixed(14)}function h(e){return Number(e).toFixed(15).replace(/\.?0*$/,"")}function m(e){e=h(Math.round(e));for(var t=[],i=0,n=e.length;n>i;i++){var a=e.charAt(i);t.push(T[a]||"")}return t.join("")}function V(e){return e>-S&&S>e}var U,d,p,c,u,y,g,b,f,k,x=e("./number"),_=Math,L=_.log,W=_.pow,X=_.abs,v=_.ceil,w=_.floor,K=_.E,I=_.LN10,J=_.LN2,C=J/I,S=1e-9,E=5,F=2,T={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹","-":"⁻"};return t}),i("echarts/chart/line",["require","./base","zrender/shape/Polyline","../util/shape/Icon","../util/shape/HalfSmoothPolygon","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,i,a,o){n.call(this,e,t,i,a,o),this.refresh(a)}function i(e,t,i){var n=t.x,a=t.y,r=t.width,s=t.height,l=s/2;t.symbol.match("empty")&&(e.fillStyle="#fff"),t.brushType="both";var h=t.symbol.replace("empty","").toLowerCase();h.match("star")?(l=h.replace("star","")-0||5,a-=1,h="star"):("rectangle"===h||"arrow"===h)&&(n+=(r-s)/2,r=s);var m="";if(h.match("image")&&(m=h.replace(new RegExp("^image:\\/\\/"),""),h="image",n+=Math.round((r-s)/2)-1,r=s+=2),h=o.prototype.iconLibrary[h]){var V=t.x,U=t.y;e.moveTo(V,U+l),e.lineTo(V+5,U+l),e.moveTo(V+t.width-5,U+l),e.lineTo(V+t.width,U+l);var d=this;h(e,{x:n+4,y:a+4,width:r-8,height:s-8,n:l,image:m},function(){d.modSelf(),i()})}else e.moveTo(n,a+l),e.lineTo(n+r,a+l)}var n=e("./base"),a=e("zrender/shape/Polyline"),o=e("../util/shape/Icon"),r=e("../util/shape/HalfSmoothPolygon");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var s=e("../config");s.line={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,dataFilter:"nearest",itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid",shadowColor:"rgba(0,0,0,0)",shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0}},emphasis:{label:{show:!1}}},symbolSize:2,showAllSymbol:!1};var l=e("../util/ecData"),h=e("zrender/tool/util"),m=e("zrender/tool/color");return t.prototype={type:s.CHART_TYPE_LINE,_buildShape:function(){this.finalPLMap={},this._buildPosition()},_buildHorizontal:function(e,t,i,n){for(var a,o,r,s,l,h,m,V,U,d=this.series,p=i[0][0],c=d[p],u=this.component.xAxis.getAxis(c.xAxisIndex||0),y={},g=0,b=t;b>g&&null!=u.getNameByIndex(g);g++){o=u.getCoordByIndex(g);for(var f=0,k=i.length;k>f;f++){a=this.component.yAxis.getAxis(d[i[f][0]].yAxisIndex||0),l=s=m=h=a.getCoord(0);for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),y[p]=y[p]||[],n[p]=n[p]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(s-=x>0?a.getCoordSize(U):l-a.getCoord(U),r=s):0>U&&(h+=x>0?a.getCoordSize(U):a.getCoord(U)-m,r=h),y[p].push([o,r,g,u.getNameByIndex(g),o,l]),n[p].min>U&&(n[p].min=U,n[p].minY=r,n[p].minX=o),n[p].max<U&&(n[p].max=U,n[p].maxY=r,n[p].maxX=o),n[p].sum+=U,n[p].counter++):y[p].length>0&&(this.finalPLMap[p]=this.finalPLMap[p]||[],this.finalPLMap[p].push(y[p]),y[p]=[])}s=this.component.grid.getY();for(var L,f=0,k=i.length;k>f;f++)for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),"-"==U&&this.deepQuery([V,c,this.option],"calculable")&&(L=this.deepQuery([V,c],"symbolSize"),s+=2*L+5,r=s,this.shapeList.push(this._getCalculableItem(p,g,u.getNameByIndex(g),o,r,"horizontal")))}for(var W in y)y[W].length>0&&(this.finalPLMap[W]=this.finalPLMap[W]||[],this.finalPLMap[W].push(y[W]),y[W]=[]);this._calculMarkMapXY(n,i,"y"),this._buildBorkenLine(e,this.finalPLMap,u,"horizontal")},_buildVertical:function(e,t,i,n){for(var a,o,r,s,l,h,m,V,U,d=this.series,p=i[0][0],c=d[p],u=this.component.yAxis.getAxis(c.yAxisIndex||0),y={},g=0,b=t;b>g&&null!=u.getNameByIndex(g);g++){r=u.getCoordByIndex(g);for(var f=0,k=i.length;k>f;f++){a=this.component.xAxis.getAxis(d[i[f][0]].xAxisIndex||0),l=s=m=h=a.getCoord(0);for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),y[p]=y[p]||[],n[p]=n[p]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(s+=x>0?a.getCoordSize(U):a.getCoord(U)-l,o=s):0>U&&(h-=x>0?a.getCoordSize(U):m-a.getCoord(U),o=h),y[p].push([o,r,g,u.getNameByIndex(g),l,r]),n[p].min>U&&(n[p].min=U,n[p].minX=o,n[p].minY=r),n[p].max<U&&(n[p].max=U,n[p].maxX=o,n[p].maxY=r),n[p].sum+=U,n[p].counter++):y[p].length>0&&(this.finalPLMap[p]=this.finalPLMap[p]||[],this.finalPLMap[p].push(y[p]),y[p]=[])}s=this.component.grid.getXend();for(var L,f=0,k=i.length;k>f;f++)for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),"-"==U&&this.deepQuery([V,c,this.option],"calculable")&&(L=this.deepQuery([V,c],"symbolSize"),s-=2*L+5,o=s,this.shapeList.push(this._getCalculableItem(p,g,u.getNameByIndex(g),o,r,"vertical")))}for(var W in y)y[W].length>0&&(this.finalPLMap[W]=this.finalPLMap[W]||[],this.finalPLMap[W].push(y[W]),y[W]=[]);this._calculMarkMapXY(n,i,"x"),this._buildBorkenLine(e,this.finalPLMap,u,"vertical")},_buildOther:function(e,t,i,n){for(var a,o=this.series,r={},s=0,l=i.length;l>s;s++)for(var h=0,m=i[s].length;m>h;h++){var V=i[s][h],U=o[V];a=this.component.xAxis.getAxis(U.xAxisIndex||0);var d=this.component.yAxis.getAxis(U.yAxisIndex||0),p=d.getCoord(0);r[V]=r[V]||[],n[V]=n[V]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var c=0,u=U.data.length;u>c;c++){var y=U.data[c],g=this.getDataFromOption(y,"-");if(g instanceof Array){var b=a.getCoord(g[0]),f=d.getCoord(g[1]);r[V].push([b,f,c,g[0],b,p]),n[V].min0>g[0]&&(n[V].min0=g[0],n[V].minY0=f,n[V].minX0=b),n[V].max0<g[0]&&(n[V].max0=g[0],n[V].maxY0=f,n[V].maxX0=b),n[V].sum0+=g[0],n[V].counter0++,n[V].min1>g[1]&&(n[V].min1=g[1],n[V].minY1=f,n[V].minX1=b),n[V].max1<g[1]&&(n[V].max1=g[1],n[V].maxY1=f,n[V].maxX1=b),n[V].sum1+=g[1],n[V].counter1++}}}for(var k in r)r[k].length>0&&(this.finalPLMap[k]=this.finalPLMap[k]||[],this.finalPLMap[k].push(r[k]),r[k]=[]);this._calculMarkMapXY(n,i,"xy"),this._buildBorkenLine(e,this.finalPLMap,a,"other")},_buildBorkenLine:function(e,t,i,n){for(var o,s="other"==n?"horizontal":n,V=this.series,U=e.length-1;U>=0;U--){var d=e[U],p=V[d],c=t[d];if(p.type===this.type&&null!=c)for(var u=this._getBbox(d,s),y=this._sIndex2ColorMap[d],g=this.query(p,"itemStyle.normal.lineStyle.width"),b=this.query(p,"itemStyle.normal.lineStyle.type"),f=this.query(p,"itemStyle.normal.lineStyle.color"),k=this.getItemStyleColor(this.query(p,"itemStyle.normal.color"),d,-1),x=null!=this.query(p,"itemStyle.normal.areaStyle"),_=this.query(p,"itemStyle.normal.areaStyle.color"),L=0,W=c.length;W>L;L++){var X=c[L],v="other"!=n&&this._isLarge(s,X);if(v)X=this._getLargePointList(s,X,p.dataFilter);else for(var w=0,K=X.length;K>w;w++)o=p.data[X[w][2]],(this.deepQuery([o,p,this.option],"calculable")||this.deepQuery([o,p],"showAllSymbol")||"categoryAxis"===i.type&&i.isMainAxis(X[w][2])&&"none"!=this.deepQuery([o,p],"symbol"))&&this.shapeList.push(this._getSymbol(d,X[w][2],X[w][3],X[w][0],X[w][1],s));var I=new a({zlevel:p.zlevel,z:p.z,style:{miterLimit:g,pointList:X,strokeColor:f||k||y,lineWidth:g,lineType:b,smooth:this._getSmooth(p.smooth),smoothConstraint:u,shadowColor:this.query(p,"itemStyle.normal.lineStyle.shadowColor"),shadowBlur:this.query(p,"itemStyle.normal.lineStyle.shadowBlur"),shadowOffsetX:this.query(p,"itemStyle.normal.lineStyle.shadowOffsetX"),shadowOffsetY:this.query(p,"itemStyle.normal.lineStyle.shadowOffsetY")},hoverable:!1,_main:!0,_seriesIndex:d,_orient:s});if(l.pack(I,V[d],d,0,L,V[d].name),this.shapeList.push(I),x){var J=new r({zlevel:p.zlevel,z:p.z,style:{miterLimit:g,pointList:h.clone(X).concat([[X[X.length-1][4],X[X.length-1][5]],[X[0][4],X[0][5]]]),brushType:"fill",smooth:this._getSmooth(p.smooth),smoothConstraint:u,color:_?_:m.alpha(y,.5)},highlightStyle:{brushType:"fill"},hoverable:!1,_main:!0,_seriesIndex:d,_orient:s});l.pack(J,V[d],d,0,L,V[d].name),this.shapeList.push(J)}}}},_getBbox:function(e,t){var i=this.component.grid.getBbox(),n=this.xMarkMap[e];return null!=n.minX0?[[Math.min(n.minX0,n.maxX0,n.minX1,n.maxX1),Math.min(n.minY0,n.maxY0,n.minY1,n.maxY1)],[Math.max(n.minX0,n.maxX0,n.minX1,n.maxX1),Math.max(n.minY0,n.maxY0,n.minY1,n.maxY1)]]:("horizontal"===t?(i[0][1]=Math.min(n.minY,n.maxY),i[1][1]=Math.max(n.minY,n.maxY)):(i[0][0]=Math.min(n.minX,n.maxX),i[1][0]=Math.max(n.minX,n.maxX)),i)},_isLarge:function(e,t){return t.length<2?!1:"horizontal"===e?Math.abs(t[0][0]-t[1][0])<.5:Math.abs(t[0][1]-t[1][1])<.5},_getLargePointList:function(e,t,i){var n;n="horizontal"===e?this.component.grid.getWidth():this.component.grid.getHeight();var a=t.length,o=[];if("function"!=typeof i)switch(i){case"min":i=function(e){return Math.max.apply(null,e)};break;case"max":i=function(e){return Math.min.apply(null,e)};break;case"average":i=function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t/e.length};break;default:i=function(e){return e[0]}}for(var r=[],s=0;n>s;s++){var l=Math.floor(a/n*s),h=Math.min(Math.floor(a/n*(s+1)),a);if(!(l>=h)){for(var m=l;h>m;m++)r[m-l]="horizontal"===e?t[m][1]:t[m][0];r.length=h-l;for(var V=i(r),U=-1,d=1/0,m=l;h>m;m++){var p="horizontal"===e?t[m][1]:t[m][0],c=Math.abs(p-V);d>c&&(U=m,d=c)}var u=t[U].slice();"horizontal"===e?u[1]=V:u[0]=V,o.push(u)}}return o},_getSmooth:function(e){return e?.3:0},_getCalculableItem:function(e,t,i,n,a,o){var r=this.series,l=r[e].calculableHolderColor||this.ecTheme.calculableHolderColor||s.calculableHolderColor,h=this._getSymbol(e,t,i,n,a,o);return h.style.color=l,h.style.strokeColor=l,h.rotation=[0,0],h.hoverable=!1,h.draggable=!1,h.style.text=void 0,h},_getSymbol:function(e,t,i,n,a,o){var r=this.series,s=r[e],l=s.data[t],h=this.getSymbolShape(s,e,l,t,i,n,a,this._sIndex2ShapeMap[e],this._sIndex2ColorMap[e],"#fff","vertical"===o?"horizontal":"vertical");return h.zlevel=s.zlevel,h.z=s.z+1,this.deepQuery([l,s,this.option],"calculable")&&(this.setCalculable(h),h.draggable=!0),h},getMarkCoord:function(e,t){var i=this.series[e],n=this.xMarkMap[e],a=this.component.xAxis.getAxis(i.xAxisIndex),o=this.component.yAxis.getAxis(i.yAxisIndex);if(t.type&&("max"===t.type||"min"===t.type||"average"===t.type)){var r=null!=t.valueIndex?t.valueIndex:null!=n.maxX0?"1":"";return[n[t.type+"X"+r],n[t.type+"Y"+r],n[t.type+"Line"+r],n[t.type+r]]}return["string"!=typeof t.xAxis&&a.getCoordByIndex?a.getCoordByIndex(t.xAxis||0):a.getCoord(t.xAxis||0),"string"!=typeof t.yAxis&&o.getCoordByIndex?o.getCoordByIndex(t.yAxis||0):o.getCoord(t.yAxis||0)]},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},ontooltipHover:function(e,t){for(var i,n,a=e.seriesIndex,o=e.dataIndex,r=a.length;r--;)if(i=this.finalPLMap[a[r]])for(var s=0,l=i.length;l>s;s++){n=i[s];for(var h=0,m=n.length;m>h;h++)o===n[h][2]&&t.push(this._getSymbol(a[r],n[h][2],n[h][3],n[h][0],n[h][1],"horizontal"))}},addDataAnimation:function(e,t){function i(){c--,0===c&&t&&t()}function n(e){e.style.controlPointList=null}for(var a=this.series,o={},r=0,s=e.length;s>r;r++)o[e[r][0]]=e[r];for(var l,h,m,V,U,d,p,c=0,r=this.shapeList.length-1;r>=0;r--)if(U=this.shapeList[r]._seriesIndex,o[U]&&!o[U][3]){if(this.shapeList[r]._main&&this.shapeList[r].style.pointList.length>1){if(d=this.shapeList[r].style.pointList,h=Math.abs(d[0][0]-d[1][0]),V=Math.abs(d[0][1]-d[1][1]),p="horizontal"===this.shapeList[r]._orient,o[U][2]){if("half-smooth-polygon"===this.shapeList[r].type){var u=d.length;this.shapeList[r].style.pointList[u-3]=d[u-2],this.shapeList[r].style.pointList[u-3][p?0:1]=d[u-4][p?0:1],this.shapeList[r].style.pointList[u-2]=d[u-1]}this.shapeList[r].style.pointList.pop(),p?(l=h,m=0):(l=0,m=-V)}else{if(this.shapeList[r].style.pointList.shift(),"half-smooth-polygon"===this.shapeList[r].type){var y=this.shapeList[r].style.pointList.pop();p?y[0]=d[0][0]:y[1]=d[0][1],this.shapeList[r].style.pointList.push(y)}p?(l=-h,m=0):(l=0,m=V)}this.shapeList[r].style.controlPointList=null,this.zr.modShape(this.shapeList[r])}else{if(o[U][2]&&this.shapeList[r]._dataIndex===a[U].data.length-1){this.zr.delShape(this.shapeList[r].id);continue}if(!o[U][2]&&0===this.shapeList[r]._dataIndex){this.zr.delShape(this.shapeList[r].id);continue}}this.shapeList[r].position=[0,0],c++,this.zr.animate(this.shapeList[r].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[l,m]}).during(n).done(i).start()}c||t&&t()}},o.prototype.iconLibrary.legendLineIcon=i,h.inherits(t,n),e("../chart").define("line",t),t}),i("echarts/util/shape/HalfSmoothPolygon",["require","zrender/shape/Base","zrender/shape/util/smoothBezier","zrender/tool/util","zrender/shape/Polygon"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/util/smoothBezier"),a=e("zrender/tool/util");return t.prototype={type:"half-smooth-polygon",buildPath:function(t,i){var a=i.pointList;if(!(a.length<2))if(i.smooth){var o=n(a.slice(0,-2),i.smooth,!1,i.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var r,s,l,h=a.length,m=0;h-3>m;m++)r=o[2*m],s=o[2*m+1],l=a[m+1],t.bezierCurveTo(r[0],r[1],s[0],s[1],l[0],l[1]);t.lineTo(a[h-2][0],a[h-2][1]),t.lineTo(a[h-1][0],a[h-1][1]),t.lineTo(a[0][0],a[0][1])}else e("zrender/shape/Polygon").prototype.buildPath(t,i)}},a.inherits(t,i),t}),i("echarts/chart/bar",["require","./base","zrender/shape/Rectangle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Rectangle");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var a=e("../config");a.bar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}},emphasis:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}}}};var o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/color");return t.prototype={type:a.CHART_TYPE_BAR,_buildShape:function(){this._buildPosition()},_buildNormal:function(e,t,i,o,r){for(var s,l,h,m,V,U,d,p,c,u,y,g,b=this.series,f=i[0][0],k=b[f],x="horizontal"==r,_=this.component.xAxis,L=this.component.yAxis,W=x?_.getAxis(k.xAxisIndex):L.getAxis(k.yAxisIndex),X=this._mapSize(W,i),v=X.gap,w=X.barGap,K=X.barWidthMap,I=X.barMaxWidthMap,J=X.barWidth,C=X.barMinHeightMap,S=X.interval,E=this.deepQuery([this.ecTheme,a],"island.r"),F=0,T=t;T>F&&null!=W.getNameByIndex(F);F++){x?m=W.getCoordByIndex(F)-v/2:V=W.getCoordByIndex(F)+v/2;for(var z=0,A=i.length;A>z;z++){var M=b[i[z][0]].yAxisIndex||0,O=b[i[z][0]].xAxisIndex||0;s=x?L.getAxis(M):_.getAxis(O),d=U=c=p=s.getCoord(0);for(var P=0,D=i[z].length;D>P;P++)f=i[z][P],k=b[f],y=k.data[F],g=this.getDataFromOption(y,"-"),o[f]=o[f]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},h=Math.min(I[f]||Number.MAX_VALUE,K[f]||J),"-"!==g&&(g>0?(l=P>0?s.getCoordSize(g):x?d-s.getCoord(g):s.getCoord(g)-d,1===D&&C[f]>l&&(l=C[f]),x?(U-=l,V=U):(m=U,U+=l)):0>g?(l=P>0?s.getCoordSize(g):x?s.getCoord(g)-c:c-s.getCoord(g),1===D&&C[f]>l&&(l=C[f]),x?(V=p,p+=l):(p-=l,m=p)):(l=0,x?(U-=l,V=U):(m=U,U+=l)),o[f][F]=x?m+h/2:V-h/2,o[f].min>g&&(o[f].min=g,x?(o[f].minY=V,o[f].minX=o[f][F]):(o[f].minX=m+l,o[f].minY=o[f][F])),o[f].max<g&&(o[f].max=g,x?(o[f].maxY=V,o[f].maxX=o[f][F]):(o[f].maxX=m+l,o[f].maxY=o[f][F])),o[f].sum+=g,o[f].counter++,F%S===0&&(u=this._getBarItem(f,F,W.getNameByIndex(F),m,V-(x?0:h),x?h:l,x?l:h,x?"vertical":"horizontal"),this.shapeList.push(new n(u))));for(var P=0,D=i[z].length;D>P;P++)f=i[z][P],k=b[f],y=k.data[F],g=this.getDataFromOption(y,"-"),h=Math.min(I[f]||Number.MAX_VALUE,K[f]||J),"-"==g&&this.deepQuery([y,k,this.option],"calculable")&&(x?(U-=E,V=U):(m=U,U+=E),u=this._getBarItem(f,F,W.getNameByIndex(F),m,V-(x?0:h),x?h:E,x?E:h,x?"vertical":"horizontal"),u.hoverable=!1,u.draggable=!1,u.style.lineWidth=1,u.style.brushType="stroke",u.style.strokeColor=k.calculableHolderColor||this.ecTheme.calculableHolderColor||a.calculableHolderColor,this.shapeList.push(new n(u)));x?m+=h+w:V-=h+w}}this._calculMarkMapXY(o,i,x?"y":"x")},_buildHorizontal:function(e,t,i,n){return this._buildNormal(e,t,i,n,"horizontal")},_buildVertical:function(e,t,i,n){return this._buildNormal(e,t,i,n,"vertical")},_buildOther:function(e,t,i,a){for(var o=this.series,r=0,s=i.length;s>r;r++)for(var l=0,h=i[r].length;h>l;l++){var m=i[r][l],V=o[m],U=V.xAxisIndex||0,d=this.component.xAxis.getAxis(U),p=d.getCoord(0),c=V.yAxisIndex||0,u=this.component.yAxis.getAxis(c),y=u.getCoord(0);a[m]=a[m]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var g=0,b=V.data.length;b>g;g++){var f=V.data[g],k=this.getDataFromOption(f,"-");if(k instanceof Array){var x,_,L=d.getCoord(k[0]),W=u.getCoord(k[1]),X=[f,V],v=this.deepQuery(X,"barWidth")||10,w=this.deepQuery(X,"barHeight");null!=w?(x="horizontal",k[0]>0?(v=L-p,L-=v):v=k[0]<0?p-L:0,_=this._getBarItem(m,g,k[0],L,W-w/2,v,w,x)):(x="vertical",k[1]>0?w=y-W:k[1]<0?(w=W-y,W-=w):w=0,_=this._getBarItem(m,g,k[0],L-v/2,W,v,w,x)),this.shapeList.push(new n(_)),L=d.getCoord(k[0]),W=u.getCoord(k[1]),a[m].min0>k[0]&&(a[m].min0=k[0],a[m].minY0=W,a[m].minX0=L),a[m].max0<k[0]&&(a[m].max0=k[0],a[m].maxY0=W,a[m].maxX0=L),a[m].sum0+=k[0],a[m].counter0++,a[m].min1>k[1]&&(a[m].min1=k[1],a[m].minY1=W,a[m].minX1=L),a[m].max1<k[1]&&(a[m].max1=k[1],a[m].maxY1=W,a[m].maxX1=L),a[m].sum1+=k[1],a[m].counter1++}}}this._calculMarkMapXY(a,i,"xy")},_mapSize:function(e,t,i){var n,a,o=this._findSpecialBarSzie(t,i),r=o.barWidthMap,s=o.barMaxWidthMap,l=o.barMinHeightMap,h=o.sBarWidthCounter,m=o.sBarWidthTotal,V=o.barGap,U=o.barCategoryGap,d=1;if(t.length!=h){if(i)n=e.getGap(),V=0,a=+(n/t.length).toFixed(2),0>=a&&(d=Math.floor(t.length/n),a=1);else if(n="string"==typeof U&&U.match(/%$/)?(e.getGap()*(100-parseFloat(U))/100).toFixed(2)-0:e.getGap()-U,"string"==typeof V&&V.match(/%$/)?(V=parseFloat(V)/100,a=+((n-m)/((t.length-1)*V+t.length-h)).toFixed(2),V=a*V):(V=parseFloat(V),a=+((n-m-V*(t.length-1))/(t.length-h)).toFixed(2)),0>=a)return this._mapSize(e,t,!0)}else if(n=h>1?"string"==typeof U&&U.match(/%$/)?+(e.getGap()*(100-parseFloat(U))/100).toFixed(2):e.getGap()-U:m,a=0,V=h>1?+((n-m)/(h-1)).toFixed(2):0,0>V)return this._mapSize(e,t,!0);return this._recheckBarMaxWidth(t,r,s,l,n,a,V,d)},_findSpecialBarSzie:function(e,t){for(var i,n,a,o,r=this.series,s={},l={},h={},m=0,V=0,U=0,d=e.length;d>U;U++)for(var p={barWidth:!1,barMaxWidth:!1},c=0,u=e[U].length;u>c;c++){var y=e[U][c],g=r[y];if(!t){if(p.barWidth)s[y]=i;else if(i=this.query(g,"barWidth"),null!=i){s[y]=i,V+=i,m++,p.barWidth=!0;for(var b=0,f=c;f>b;b++){var k=e[U][b];s[k]=i}}if(p.barMaxWidth)l[y]=n;else if(n=this.query(g,"barMaxWidth"),null!=n){l[y]=n,p.barMaxWidth=!0;for(var b=0,f=c;f>b;b++){var k=e[U][b];l[k]=n}}}h[y]=this.query(g,"barMinHeight"),a=null!=a?a:this.query(g,"barGap"),o=null!=o?o:this.query(g,"barCategoryGap")}return{barWidthMap:s,barMaxWidthMap:l,barMinHeightMap:h,sBarWidth:i,sBarMaxWidth:n,sBarWidthCounter:m,sBarWidthTotal:V,barGap:a,barCategoryGap:o}},_recheckBarMaxWidth:function(e,t,i,n,a,o,r,s){for(var l=0,h=e.length;h>l;l++){var m=e[l][0];i[m]&&i[m]<o&&(a-=o-i[m])}return{barWidthMap:t,barMaxWidthMap:i,barMinHeightMap:n,gap:a,barWidth:o,barGap:r,interval:s}},_getBarItem:function(e,t,i,n,a,r,l,h){var m,V=this.series,U=V[e],d=U.data[t],p=this._sIndex2ColorMap[e],c=[d,U],u=this.deepMerge(c,"itemStyle.normal"),y=this.deepMerge(c,"itemStyle.emphasis"),g=u.barBorderWidth;m={zlevel:U.zlevel,z:U.z,clickable:this.deepQuery(c,"clickable"),style:{x:n,y:a,width:r,height:l,brushType:"both",color:this.getItemStyleColor(this.deepQuery(c,"itemStyle.normal.color")||p,e,t,d),radius:u.barBorderRadius,lineWidth:g,strokeColor:u.barBorderColor},highlightStyle:{color:this.getItemStyleColor(this.deepQuery(c,"itemStyle.emphasis.color"),e,t,d),radius:y.barBorderRadius,lineWidth:y.barBorderWidth,strokeColor:y.barBorderColor},_orient:h};var b=m.style;m.highlightStyle.color=m.highlightStyle.color||("string"==typeof b.color?s.lift(b.color,-.3):b.color),b.x=Math.floor(b.x),b.y=Math.floor(b.y),b.height=Math.ceil(b.height),b.width=Math.ceil(b.width),g>0&&b.height>g&&b.width>g?(b.y+=g/2,b.height-=g,b.x+=g/2,b.width-=g):b.brushType="fill",m.highlightStyle.textColor=m.highlightStyle.color,m=this.addLabel(m,U,d,i,h);for(var f=[b,m.highlightStyle],k=0,x=f.length;x>k;k++){var _=f[k].textPosition;if("insideLeft"===_||"insideRight"===_||"insideTop"===_||"insideBottom"===_){var L=5;switch(_){case"insideLeft":f[k].textX=b.x+L,f[k].textY=b.y+b.height/2,f[k].textAlign="left",f[k].textBaseline="middle";break;case"insideRight":f[k].textX=b.x+b.width-L,f[k].textY=b.y+b.height/2,f[k].textAlign="right",f[k].textBaseline="middle";break;case"insideTop":f[k].textX=b.x+b.width/2,f[k].textY=b.y+L/2,f[k].textAlign="center",f[k].textBaseline="top";break;case"insideBottom":f[k].textX=b.x+b.width/2,f[k].textY=b.y+b.height-L/2,f[k].textAlign="center",f[k].textBaseline="bottom"}f[k].textPosition="specific",f[k].textColor=f[k].textColor||"#fff"}}return this.deepQuery([d,U,this.option],"calculable")&&(this.setCalculable(m),m.draggable=!0),o.pack(m,V[e],e,V[e].data[t],t,i),m},getMarkCoord:function(e,t){var i,n,a=this.series[e],o=this.xMarkMap[e],r=this.component.xAxis.getAxis(a.xAxisIndex),s=this.component.yAxis.getAxis(a.yAxisIndex);if(!t.type||"max"!==t.type&&"min"!==t.type&&"average"!==t.type)if(o.isHorizontal){i="string"==typeof t.xAxis&&r.getIndexByName?r.getIndexByName(t.xAxis):t.xAxis||0;var l=o[i];l=null!=l?l:"string"!=typeof t.xAxis&&r.getCoordByIndex?r.getCoordByIndex(t.xAxis||0):r.getCoord(t.xAxis||0),n=[l,s.getCoord(t.yAxis||0)]}else{i="string"==typeof t.yAxis&&s.getIndexByName?s.getIndexByName(t.yAxis):t.yAxis||0;var h=o[i];h=null!=h?h:"string"!=typeof t.yAxis&&s.getCoordByIndex?s.getCoordByIndex(t.yAxis||0):s.getCoord(t.yAxis||0),n=[r.getCoord(t.xAxis||0),h]}else{var m=null!=t.valueIndex?t.valueIndex:null!=o.maxX0?"1":"";n=[o[t.type+"X"+m],o[t.type+"Y"+m],o[t.type+"Line"+m],o[t.type+m]]}return n},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(e,t){function i(){c--,0===c&&t&&t()}for(var n=this.series,a={},r=0,s=e.length;s>r;r++)a[e[r][0]]=e[r];for(var l,h,m,V,U,d,p,c=0,r=this.shapeList.length-1;r>=0;r--)if(d=o.get(this.shapeList[r],"seriesIndex"),a[d]&&!a[d][3]&&"rectangle"===this.shapeList[r].type){if(p=o.get(this.shapeList[r],"dataIndex"),U=n[d],a[d][2]&&p===U.data.length-1){this.zr.delShape(this.shapeList[r].id);continue}if(!a[d][2]&&0===p){this.zr.delShape(this.shapeList[r].id);continue}"horizontal"===this.shapeList[r]._orient?(V=this.component.yAxis.getAxis(U.yAxisIndex||0).getGap(),m=a[d][2]?-V:V,l=0):(h=this.component.xAxis.getAxis(U.xAxisIndex||0).getGap(),l=a[d][2]?h:-h,m=0),this.shapeList[r].position=[0,0],c++,this.zr.animate(this.shapeList[r].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[l,m]}).done(i).start()}c||t&&t()}},r.inherits(t,i),e("../chart").define("bar",t),t}),i("echarts/chart/scatter",["require","./base","../util/shape/Symbol","../component/axis","../component/grid","../component/dataZoom","../component/dataRange","../config","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../util/shape/Symbol");e("../component/axis"),e("../component/grid"),e("../component/dataZoom"),e("../component/dataRange");var a=e("../config");a.scatter={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbolSize:4,large:!1,largeThreshold:2e3,itemStyle:{normal:{label:{show:!1}},emphasis:{label:{show:!1}}}};var o=e("zrender/tool/util"),r=e("zrender/tool/color");return t.prototype={type:a.CHART_TYPE_SCATTER,_buildShape:function(){var e=this.series;this._sIndex2ColorMap={},this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this.selectedMap={},this.xMarkMap={};for(var t,i,n,o,s=this.component.legend,l=[],h=0,m=e.length;m>h;h++)if(t=e[h],i=t.name,t.type===a.CHART_TYPE_SCATTER){if(e[h]=this.reformOption(e[h]),this.legendHoverLink=e[h].legendHoverLink||this.legendHoverLink,this._sIndex2ShapeMap[h]=this.query(t,"symbol")||this._symbol[h%this._symbol.length],s){if(this.selectedMap[i]=s.isSelected(i),this._sIndex2ColorMap[h]=r.alpha(s.getColor(i),.5),n=s.getItemShape(i)){var o=this._sIndex2ShapeMap[h];n.style.brushType=o.match("empty")?"stroke":"both",o=o.replace("empty","").toLowerCase(),o.match("rectangle")&&(n.style.x+=Math.round((n.style.width-n.style.height)/2),n.style.width=n.style.height),o.match("star")&&(n.style.n=o.replace("star","")-0||5,o="star"),o.match("image")&&(n.style.image=o.replace(new RegExp("^image:\\/\\/"),""),n.style.x+=Math.round((n.style.width-n.style.height)/2),n.style.width=n.style.height,o="image"),n.style.iconType=o,s.setItemShape(i,n)}}else this.selectedMap[i]=!0,this._sIndex2ColorMap[h]=r.alpha(this.zr.getColor(h),.5);this.selectedMap[i]&&l.push(h)}this._buildSeries(l),this.addShapeList()},_buildSeries:function(e){if(0!==e.length){for(var t,i,n,a,o,r,s,l,h=this.series,m={},V=0,U=e.length;U>V;V++)if(t=e[V],i=h[t],0!==i.data.length){o=this.component.xAxis.getAxis(i.xAxisIndex||0),r=this.component.yAxis.getAxis(i.yAxisIndex||0),m[t]=[];for(var d=0,p=i.data.length;p>d;d++)n=i.data[d],a=this.getDataFromOption(n,"-"),"-"===a||a.length<2||(s=o.getCoord(a[0]),l=r.getCoord(a[1]),m[t].push([s,l,d,n.name||""]));this.xMarkMap[t]=this._markMap(o,r,i.data,m[t]),this.buildMark(t)}this._buildPointList(m)}},_markMap:function(e,t,i,n){for(var a,o={min0:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,sum0:0,counter0:0,average0:0,min1:Number.POSITIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum1:0,counter1:0,average1:0},r=0,s=n.length;s>r;r++)a=i[n[r][2]].value||i[n[r][2]],o.min0>a[0]&&(o.min0=a[0],o.minY0=n[r][1],o.minX0=n[r][0]),o.max0<a[0]&&(o.max0=a[0],o.maxY0=n[r][1],o.maxX0=n[r][0]),o.sum0+=a[0],o.counter0++,o.min1>a[1]&&(o.min1=a[1],o.minY1=n[r][1],o.minX1=n[r][0]),o.max1<a[1]&&(o.max1=a[1],o.maxY1=n[r][1],o.maxX1=n[r][0]),o.sum1+=a[1],o.counter1++;var l=this.component.grid.getX(),h=this.component.grid.getXend(),m=this.component.grid.getY(),V=this.component.grid.getYend();o.average0=o.sum0/o.counter0;var U=e.getCoord(o.average0);o.averageLine0=[[U,V],[U,m]],o.minLine0=[[o.minX0,V],[o.minX0,m]],o.maxLine0=[[o.maxX0,V],[o.maxX0,m]],o.average1=o.sum1/o.counter1;var d=t.getCoord(o.average1);return o.averageLine1=[[l,d],[h,d]],o.minLine1=[[l,o.minY1],[h,o.minY1]],o.maxLine1=[[l,o.maxY1],[h,o.maxY1]],o},_buildPointList:function(e){var t,i,n,a,o=this.series;for(var r in e)if(t=o[r],i=e[r],t.large&&t.data.length>t.largeThreshold)this.shapeList.push(this._getLargeSymbol(t,i,this.getItemStyleColor(this.query(t,"itemStyle.normal.color"),r,-1)||this._sIndex2ColorMap[r]));else for(var s=0,l=i.length;l>s;s++)n=i[s],a=this._getSymbol(r,n[2],n[3],n[0],n[1]),a&&this.shapeList.push(a)},_getSymbol:function(e,t,i,n,a){var o,r=this.series,s=r[e],l=s.data[t],h=this.component.dataRange;if(h){if(o=isNaN(l[2])?this._sIndex2ColorMap[e]:h.getColor(l[2]),!o)return null}else o=this._sIndex2ColorMap[e];var m=this.getSymbolShape(s,e,l,t,i,n,a,this._sIndex2ShapeMap[e],o,"rgba(0,0,0,0)","vertical");return m.zlevel=s.zlevel,m.z=s.z,m._main=!0,m},_getLargeSymbol:function(e,t,i){return new n({zlevel:e.zlevel,z:e.z,_main:!0,hoverable:!1,style:{pointList:t,color:i,strokeColor:i},highlightStyle:{pointList:[]}})},getMarkCoord:function(e,t){var i,n=this.series[e],a=this.xMarkMap[e],o=this.component.xAxis.getAxis(n.xAxisIndex),r=this.component.yAxis.getAxis(n.yAxisIndex);if(!t.type||"max"!==t.type&&"min"!==t.type&&"average"!==t.type)i=["string"!=typeof t.xAxis&&o.getCoordByIndex?o.getCoordByIndex(t.xAxis||0):o.getCoord(t.xAxis||0),"string"!=typeof t.yAxis&&r.getCoordByIndex?r.getCoordByIndex(t.yAxis||0):r.getCoord(t.yAxis||0)];else{var s=null!=t.valueIndex?t.valueIndex:1;i=[a[t.type+"X"+s],a[t.type+"Y"+s],a[t.type+"Line"+s],a[t.type+s]]}return i},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},ondataRange:function(e,t){this.component.dataRange&&(this.refresh(),t.needRefresh=!0)}},o.inherits(t,i),e("../chart").define("scatter",t),t}),i("echarts/component/dataRange",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../util/shape/HandlePolygon","../config","zrender/tool/util","zrender/tool/event","zrender/tool/area","zrender/tool/color","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var s=this;s._ondrift=function(e,t){return s.__ondrift(this,e,t)},s._ondragend=function(){return s.__ondragend()},s._dataRangeSelected=function(e){return s.__dataRangeSelected(e)},s._dispatchHoverLink=function(e){return s.__dispatchHoverLink(e)},s._onhoverlink=function(e){return s.__onhoverlink(e);
    +
    +},this._selectedMap={},this._range={},this.refresh(a),t.bind(r.EVENT.HOVER,this._onhoverlink)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Rectangle"),o=e("../util/shape/HandlePolygon"),r=e("../config");r.dataRange={zlevel:0,z:4,show:!0,orient:"vertical",x:"left",y:"bottom",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,precision:0,splitNumber:5,splitList:null,calculable:!1,selectedMode:!0,hoverLink:!0,realtime:!0,color:["#006edd","#e0ffff"],textStyle:{color:"#333"}};var s=e("zrender/tool/util"),l=e("zrender/tool/event"),h=e("zrender/tool/area"),m=e("zrender/tool/color");return t.prototype={type:r.COMPONENT_TYPE_DATARANGE,_textGap:10,_buildShape:function(){if(this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._isContinuity()?this._buildGradient():this._buildItem(),this.dataRangeOption.show)for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e]);this._syncShapeFromRange()},_buildItem:function(){var e,t,i,o,r=this._valueTextList,s=r.length,l=this.getFont(this.dataRangeOption.textStyle),m=this._itemGroupLocation.x,V=this._itemGroupLocation.y,U=this.dataRangeOption.itemWidth,d=this.dataRangeOption.itemHeight,p=this.dataRangeOption.itemGap,c=h.getTextHeight("国",l);"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(m=this._itemGroupLocation.x+this._itemGroupLocation.width-U);var u=!0;this.dataRangeOption.text&&(u=!1,this.dataRangeOption.text[0]&&(i=this._getTextShape(m,V,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?m+=h.getTextWidth(this.dataRangeOption.text[0],l)+this._textGap:(V+=c+this._textGap,i.style.y+=c/2+this._textGap,i.style.textBaseline="bottom"),this.shapeList.push(new n(i))));for(var y=0;s>y;y++)e=r[y],o=this.getColorByIndex(y),t=this._getItemShape(m,V,U,d,this._selectedMap[y]?o:"#ccc"),t._idx=y,t.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(t.clickable=!0,t.onclick=this._dataRangeSelected),this.shapeList.push(new a(t)),u&&(i={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:m+U+5,y:V,color:this._selectedMap[y]?this.dataRangeOption.textStyle.color:"#ccc",text:r[y],textFont:l,textBaseline:"top"},highlightStyle:{brushType:"fill"}},"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(i.style.x-=U+10,i.style.textAlign="right"),i._idx=y,i.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(i.clickable=!0,i.onclick=this._dataRangeSelected),this.shapeList.push(new n(i))),"horizontal"==this.dataRangeOption.orient?m+=U+(u?5:0)+(u?h.getTextWidth(e,l):0)+p:V+=d+p;!u&&this.dataRangeOption.text[1]&&("horizontal"==this.dataRangeOption.orient?m=m-p+this._textGap:V=V-p+this._textGap,i=this._getTextShape(m,V,this.dataRangeOption.text[1]),"horizontal"!=this.dataRangeOption.orient&&(i.style.y-=5,i.style.textBaseline="top"),this.shapeList.push(new n(i)))},_buildGradient:function(){var t,i,o=this.getFont(this.dataRangeOption.textStyle),r=this._itemGroupLocation.x,s=this._itemGroupLocation.y,l=this.dataRangeOption.itemWidth,m=this.dataRangeOption.itemHeight,V=h.getTextHeight("国",o),U=10,d=!0;this.dataRangeOption.text&&(d=!1,this.dataRangeOption.text[0]&&(i=this._getTextShape(r,s,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?r+=h.getTextWidth(this.dataRangeOption.text[0],o)+this._textGap:(s+=V+this._textGap,i.style.y+=V/2+this._textGap,i.style.textBaseline="bottom"),this.shapeList.push(new n(i))));for(var p=e("zrender/tool/color"),c=1/(this.dataRangeOption.color.length-1),u=[],y=0,g=this.dataRangeOption.color.length;g>y;y++)u.push([y*c,this.dataRangeOption.color[y]]);"horizontal"==this.dataRangeOption.orient?(t={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:r,y:s,width:l*U,height:m,color:p.getLinearGradient(r,s,r+l*U,s,u)},hoverable:!1},r+=l*U+this._textGap):(t={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:r,y:s,width:l,height:m*U,color:p.getLinearGradient(r,s,r,s+m*U,u)},hoverable:!1},s+=m*U+this._textGap),this.shapeList.push(new a(t)),this._calculableLocation=t.style,this.dataRangeOption.calculable&&(this._buildFiller(),this._bulidMask(),this._bulidHandle()),this._buildIndicator(),!d&&this.dataRangeOption.text[1]&&(i=this._getTextShape(r,s,this.dataRangeOption.text[1]),this.shapeList.push(new n(i)))},_buildIndicator:function(){var e,t,i=this._calculableLocation.x,n=this._calculableLocation.y,a=this._calculableLocation.width,r=this._calculableLocation.height,s=5;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(e=[[i,n+r],[i-s,n+r+s],[i+s,n+r+s]],t="bottom"):(e=[[i,n],[i-s,n-s],[i+s,n-s]],t="top"):"right"!=this.dataRangeOption.x?(e=[[i+a,n],[i+a+s,n-s],[i+a+s,n+s]],t="right"):(e=[[i,n],[i-s,n-s],[i-s,n+s]],t="left"),this._indicatorShape={style:{pointList:e,color:"#fff",__rect:{x:Math.min(e[0][0],e[1][0]),y:Math.min(e[0][1],e[1][1]),width:s*("horizontal"==this.dataRangeOption.orient?2:1),height:s*("horizontal"==this.dataRangeOption.orient?1:2)}},highlightStyle:{brushType:"fill",textPosition:t,textColor:this.dataRangeOption.textStyle.color},hoverable:!1},this._indicatorShape=new o(this._indicatorShape)},_buildFiller:function(){this._fillerShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:this._calculableLocation.x,y:this._calculableLocation.y,width:this._calculableLocation.width,height:this._calculableLocation.height,color:"rgba(255,255,255,0)"},highlightStyle:{strokeColor:"rgba(255,255,255,0.5)",lineWidth:1},draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,onmousemove:this._dispatchHoverLink,_type:"filler"},this._fillerShape=new a(this._fillerShape),this.shapeList.push(this._fillerShape)},_bulidHandle:function(){var e,t,i,n,a,r,s,l,m=this._calculableLocation.x,V=this._calculableLocation.y,U=this._calculableLocation.width,d=this._calculableLocation.height,p=this.getFont(this.dataRangeOption.textStyle),c=h.getTextHeight("国",p),u=Math.max(h.getTextWidth(this._textFormat(this.dataRangeOption.max),p),h.getTextWidth(this._textFormat(this.dataRangeOption.min),p))+2;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(e=[[m,V],[m,V+d+c],[m-c,V+d+c],[m-1,V+d],[m-1,V]],t=m-u/2-c,i=V+d+c/2+2,n={x:m-u-c,y:V+d,width:u+c,height:c},a=[[m+U,V],[m+U,V+d+c],[m+U+c,V+d+c],[m+U+1,V+d],[m+U+1,V]],r=m+U+u/2+c,s=i,l={x:m+U,y:V+d,width:u+c,height:c}):(e=[[m,V+d],[m,V-c],[m-c,V-c],[m-1,V],[m-1,V+d]],t=m-u/2-c,i=V-c/2-2,n={x:m-u-c,y:V-c,width:u+c,height:c},a=[[m+U,V+d],[m+U,V-c],[m+U+c,V-c],[m+U+1,V],[m+U+1,V+d]],r=m+U+u/2+c,s=i,l={x:m+U,y:V-c,width:u+c,height:c}):(u+=c,"right"!=this.dataRangeOption.x?(e=[[m,V],[m+U+c,V],[m+U+c,V-c],[m+U,V-1],[m,V-1]],t=m+U+u/2+c/2,i=V-c/2,n={x:m+U,y:V-c,width:u+c,height:c},a=[[m,V+d],[m+U+c,V+d],[m+U+c,V+c+d],[m+U,V+1+d],[m,V+d+1]],r=t,s=V+d+c/2,l={x:m+U,y:V+d,width:u+c,height:c}):(e=[[m+U,V],[m-c,V],[m-c,V-c],[m,V-1],[m+U,V-1]],t=m-u/2-c/2,i=V-c/2,n={x:m-u-c,y:V-c,width:u+c,height:c},a=[[m+U,V+d],[m-c,V+d],[m-c,V+c+d],[m,V+1+d],[m+U,V+d+1]],r=t,s=V+d+c/2,l={x:m-u-c,y:V+d,width:u+c,height:c})),this._startShape={style:{pointList:e,text:this._textFormat(this.dataRangeOption.max),textX:t,textY:i,textFont:p,color:this.getColor(this.dataRangeOption.max),rect:n,x:e[0][0],y:e[0][1],_x:e[0][0],_y:e[0][1]}},this._startShape.highlightStyle={strokeColor:this._startShape.style.color,lineWidth:1},this._endShape={style:{pointList:a,text:this._textFormat(this.dataRangeOption.min),textX:r,textY:s,textFont:p,color:this.getColor(this.dataRangeOption.min),rect:l,x:a[0][0],y:a[0][1],_x:a[0][0],_y:a[0][1]}},this._endShape.highlightStyle={strokeColor:this._endShape.style.color,lineWidth:1},this._startShape.zlevel=this._endShape.zlevel=this.getZlevelBase(),this._startShape.z=this._endShape.z=this.getZBase()+1,this._startShape.draggable=this._endShape.draggable=!0,this._startShape.ondrift=this._endShape.ondrift=this._ondrift,this._startShape.ondragend=this._endShape.ondragend=this._ondragend,this._startShape.style.textColor=this._endShape.style.textColor=this.dataRangeOption.textStyle.color,this._startShape.style.textAlign=this._endShape.style.textAlign="center",this._startShape.style.textPosition=this._endShape.style.textPosition="specific",this._startShape.style.textBaseline=this._endShape.style.textBaseline="middle",this._startShape.style.width=this._endShape.style.width=0,this._startShape.style.height=this._endShape.style.height=0,this._startShape.style.textPosition=this._endShape.style.textPosition="specific",this._startShape=new o(this._startShape),this._endShape=new o(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_bulidMask:function(){var e=this._calculableLocation.x,t=this._calculableLocation.y,i=this._calculableLocation.width,n=this._calculableLocation.height;this._startMask={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:e,y:t,width:"horizontal"==this.dataRangeOption.orient?0:i,height:"horizontal"==this.dataRangeOption.orient?n:0,color:"#ccc"},hoverable:!1},this._endMask={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:"horizontal"==this.dataRangeOption.orient?e+i:e,y:"horizontal"==this.dataRangeOption.orient?t:t+n,width:"horizontal"==this.dataRangeOption.orient?0:i,height:"horizontal"==this.dataRangeOption.orient?n:0,color:"#ccc"},hoverable:!1},this._startMask=new a(this._startMask),this._endMask=new a(this._endMask),this.shapeList.push(this._startMask),this.shapeList.push(this._endMask)},_buildBackground:function(){var e=this.reformCssArray(this.dataRangeOption.padding);this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.dataRangeOption.borderWidth?"fill":"both",color:this.dataRangeOption.backgroundColor,strokeColor:this.dataRangeOption.borderColor,lineWidth:this.dataRangeOption.borderWidth}}))},_getItemGroupLocation:function(){var e=this._valueTextList,t=e.length,i=this.dataRangeOption.itemGap,n=this.dataRangeOption.itemWidth,a=this.dataRangeOption.itemHeight,o=0,r=0,s=this.getFont(this.dataRangeOption.textStyle),l=h.getTextHeight("国",s),m=10;if("horizontal"==this.dataRangeOption.orient){if(this.dataRangeOption.text||this._isContinuity())o=(this._isContinuity()?n*m+i:t*(n+i))+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[0]?h.getTextWidth(this.dataRangeOption.text[0],s)+this._textGap:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?h.getTextWidth(this.dataRangeOption.text[1],s)+this._textGap:0);else{n+=5;for(var V=0;t>V;V++)o+=n+h.getTextWidth(e[V],s)+i}o-=i,r=Math.max(l,a)}else{var U;if(this.dataRangeOption.text||this._isContinuity())r=(this._isContinuity()?a*m+i:t*(a+i))+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[0]?this._textGap+l:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?this._textGap+l:0),U=Math.max(h.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[0]||"",s),h.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[1]||"",s)),o=Math.max(n,U);else{r=(a+i)*t,n+=5,U=0;for(var V=0;t>V;V++)U=Math.max(U,h.getTextWidth(e[V],s));o=n+U}r-=i}var d,p=this.reformCssArray(this.dataRangeOption.padding),c=this.zr.getWidth();switch(this.dataRangeOption.x){case"center":d=Math.floor((c-o)/2);break;case"left":d=p[3]+this.dataRangeOption.borderWidth;break;case"right":d=c-o-p[1]-this.dataRangeOption.borderWidth;break;default:d=this.parsePercent(this.dataRangeOption.x,c),d=isNaN(d)?0:d}var u,y=this.zr.getHeight();switch(this.dataRangeOption.y){case"top":u=p[0]+this.dataRangeOption.borderWidth;break;case"bottom":u=y-r-p[2]-this.dataRangeOption.borderWidth;break;case"center":u=Math.floor((y-r)/2);break;default:u=this.parsePercent(this.dataRangeOption.y,y),u=isNaN(u)?0:u}if(this.dataRangeOption.calculable){var g=Math.max(h.getTextWidth(this.dataRangeOption.max,s),h.getTextWidth(this.dataRangeOption.min,s))+l;"horizontal"==this.dataRangeOption.orient?(g>d&&(d=g),d+o+g>c&&(d-=g)):(l>u&&(u=l),u+r+l>y&&(u-=l))}return{x:d,y:u,width:o,height:r}},_getTextShape:function(e,t,i){return{zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:"horizontal"==this.dataRangeOption.orient?e:this._itemGroupLocation.x+this._itemGroupLocation.width/2,y:"horizontal"==this.dataRangeOption.orient?this._itemGroupLocation.y+this._itemGroupLocation.height/2:t,color:this.dataRangeOption.textStyle.color,text:i,textFont:this.getFont(this.dataRangeOption.textStyle),textBaseline:"horizontal"==this.dataRangeOption.orient?"middle":"top",textAlign:"horizontal"==this.dataRangeOption.orient?"left":"center"},hoverable:!1}},_getItemShape:function(e,t,i,n,a){return{zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:e,y:t+1,width:i,height:n-2,color:a},highlightStyle:{strokeColor:a,lineWidth:1}}},__ondrift:function(e,t,i){var n=this._calculableLocation.x,a=this._calculableLocation.y,o=this._calculableLocation.width,r=this._calculableLocation.height;return"horizontal"==this.dataRangeOption.orient?e.style.x+t<=n?e.style.x=n:e.style.x+t+e.style.width>=n+o?e.style.x=n+o-e.style.width:e.style.x+=t:e.style.y+i<=a?e.style.y=a:e.style.y+i+e.style.height>=a+r?e.style.y=a+r-e.style.height:e.style.y+=i,"filler"==e._type?this._syncHandleShape():this._syncFillerShape(e),this.dataRangeOption.realtime&&this._dispatchDataRange(),!0},__ondragend:function(){this.isDragend=!0},ondragend:function(e,t){this.isDragend&&e.target&&(t.dragOut=!0,t.dragIn=!0,this.dataRangeOption.realtime||this._dispatchDataRange(),t.needRefresh=!1,this.isDragend=!1)},_syncShapeFromRange:function(){var e=this.dataRangeOption.range||{},t=e.start,i=e.end;if(t>i&&(t=[i,i=t][0]),this._range.end=null!=t?t:null!=this._range.end?this._range.end:0,this._range.start=null!=i?i:null!=this._range.start?this._range.start:100,100!=this._range.start||0!==this._range.end){if("horizontal"==this.dataRangeOption.orient){var n=this._fillerShape.style.width;this._fillerShape.style.x+=n*(100-this._range.start)/100,this._fillerShape.style.width=n*(this._range.start-this._range.end)/100}else{var a=this._fillerShape.style.height;this._fillerShape.style.y+=a*(100-this._range.start)/100,this._fillerShape.style.height=a*(this._range.start-this._range.end)/100}this.zr.modShape(this._fillerShape.id),this._syncHandleShape()}},_syncHandleShape:function(){var e=this._calculableLocation.x,t=this._calculableLocation.y,i=this._calculableLocation.width,n=this._calculableLocation.height;"horizontal"==this.dataRangeOption.orient?(this._startShape.style.x=this._fillerShape.style.x,this._startMask.style.width=this._startShape.style.x-e,this._endShape.style.x=this._fillerShape.style.x+this._fillerShape.style.width,this._endMask.style.x=this._endShape.style.x,this._endMask.style.width=e+i-this._endShape.style.x,this._range.start=Math.ceil(100-(this._startShape.style.x-e)/i*100),this._range.end=Math.floor(100-(this._endShape.style.x-e)/i*100)):(this._startShape.style.y=this._fillerShape.style.y,this._startMask.style.height=this._startShape.style.y-t,this._endShape.style.y=this._fillerShape.style.y+this._fillerShape.style.height,this._endMask.style.y=this._endShape.style.y,this._endMask.style.height=t+n-this._endShape.style.y,this._range.start=Math.ceil(100-(this._startShape.style.y-t)/n*100),this._range.end=Math.floor(100-(this._endShape.style.y-t)/n*100)),this._syncShape()},_syncFillerShape:function(e){var t,i,n=this._calculableLocation.x,a=this._calculableLocation.y,o=this._calculableLocation.width,r=this._calculableLocation.height;"horizontal"==this.dataRangeOption.orient?(t=this._startShape.style.x,i=this._endShape.style.x,e.id==this._startShape.id&&t>=i?(i=t,this._endShape.style.x=t):e.id==this._endShape.id&&t>=i&&(t=i,this._startShape.style.x=t),this._fillerShape.style.x=t,this._fillerShape.style.width=i-t,this._startMask.style.width=t-n,this._endMask.style.x=i,this._endMask.style.width=n+o-i,this._range.start=Math.ceil(100-(t-n)/o*100),this._range.end=Math.floor(100-(i-n)/o*100)):(t=this._startShape.style.y,i=this._endShape.style.y,e.id==this._startShape.id&&t>=i?(i=t,this._endShape.style.y=t):e.id==this._endShape.id&&t>=i&&(t=i,this._startShape.style.y=t),this._fillerShape.style.y=t,this._fillerShape.style.height=i-t,this._startMask.style.height=t-a,this._endMask.style.y=i,this._endMask.style.height=a+r-i,this._range.start=Math.ceil(100-(t-a)/r*100),this._range.end=Math.floor(100-(i-a)/r*100)),this._syncShape()},_syncShape:function(){this._startShape.position=[this._startShape.style.x-this._startShape.style._x,this._startShape.style.y-this._startShape.style._y],this._startShape.style.text=this._textFormat(this._gap*this._range.start+this.dataRangeOption.min),this._startShape.style.color=this._startShape.highlightStyle.strokeColor=this.getColor(this._gap*this._range.start+this.dataRangeOption.min),this._endShape.position=[this._endShape.style.x-this._endShape.style._x,this._endShape.style.y-this._endShape.style._y],this._endShape.style.text=this._textFormat(this._gap*this._range.end+this.dataRangeOption.min),this._endShape.style.color=this._endShape.highlightStyle.strokeColor=this.getColor(this._gap*this._range.end+this.dataRangeOption.min),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._startMask.id),this.zr.modShape(this._endMask.id),this.zr.modShape(this._fillerShape.id),this.zr.refreshNextFrame()},_dispatchDataRange:function(){this.messageCenter.dispatch(r.EVENT.DATA_RANGE,null,{range:{start:this._range.end,end:this._range.start}},this.myChart)},__dataRangeSelected:function(e){if("single"===this.dataRangeOption.selectedMode)for(var t in this._selectedMap)this._selectedMap[t]=!1;var i=e.target._idx;this._selectedMap[i]=!this._selectedMap[i];var n,a;this._useCustomizedSplit()?(n=this._splitList[i].max,a=this._splitList[i].min):(n=(this._colorList.length-i)*this._gap+this.dataRangeOption.min,a=n-this._gap),this.messageCenter.dispatch(r.EVENT.DATA_RANGE_SELECTED,e.event,{selected:this._selectedMap,target:i,valueMax:n,valueMin:a},this.myChart),this.messageCenter.dispatch(r.EVENT.REFRESH,null,null,this.myChart)},__dispatchHoverLink:function(e){var t,i;if(this.dataRangeOption.calculable){var n,a=this.dataRangeOption.max-this.dataRangeOption.min;n="horizontal"==this.dataRangeOption.orient?(1-(l.getX(e.event)-this._calculableLocation.x)/this._calculableLocation.width)*a:(1-(l.getY(e.event)-this._calculableLocation.y)/this._calculableLocation.height)*a,t=n-.05*a,i=n+.05*a}else if(this._useCustomizedSplit()){var o=e.target._idx;i=this._splitList[o].max,t=this._splitList[o].min}else{var o=e.target._idx;i=(this._colorList.length-o)*this._gap+this.dataRangeOption.min,t=i-this._gap}this.messageCenter.dispatch(r.EVENT.DATA_RANGE_HOVERLINK,e.event,{valueMin:t,valueMax:i},this.myChart)},__onhoverlink:function(e){if(this.dataRangeOption.show&&this.dataRangeOption.hoverLink&&this._indicatorShape&&e&&null!=e.seriesIndex&&null!=e.dataIndex){var t=e.value;if(""===t||isNaN(t))return;t<this.dataRangeOption.min?t=this.dataRangeOption.min:t>this.dataRangeOption.max&&(t=this.dataRangeOption.max),this._indicatorShape.position="horizontal"==this.dataRangeOption.orient?[(this.dataRangeOption.max-t)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._calculableLocation.width,0]:[0,(this.dataRangeOption.max-t)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._calculableLocation.height],this._indicatorShape.style.text=this._textFormat(e.value),this._indicatorShape.style.color=this.getColor(t),this.zr.addHoverShape(this._indicatorShape)}},_textFormat:function(e,t){var i=this.dataRangeOption;if(e!==-Number.MAX_VALUE&&(e=(+e).toFixed(i.precision)),null!=t&&t!==Number.MAX_VALUE&&(t=(+t).toFixed(i.precision)),i.formatter){if("string"==typeof i.formatter)return i.formatter.replace("{value}",e===-Number.MAX_VALUE?"min":e).replace("{value2}",t===Number.MAX_VALUE?"max":t);if("function"==typeof i.formatter)return i.formatter.call(this.myChart,e,t)}return null==t?e:e===-Number.MAX_VALUE?"< "+t:t===Number.MAX_VALUE?"> "+e:e+" - "+t},_isContinuity:function(){var e=this.dataRangeOption;return!(e.splitList?e.splitList.length>0:e.splitNumber>0)||e.calculable},_useCustomizedSplit:function(){var e=this.dataRangeOption;return e.splitList&&e.splitList.length>0},_buildColorList:function(e){if(this._colorList=m.getGradientColors(this.dataRangeOption.color,Math.max((e-this.dataRangeOption.color.length)/(this.dataRangeOption.color.length-1),0)+1),this._colorList.length>e){for(var t=this._colorList.length,i=[this._colorList[0]],n=t/(e-1),a=1;e-1>a;a++)i.push(this._colorList[Math.floor(a*n)]);i.push(this._colorList[t-1]),this._colorList=i}if(this._useCustomizedSplit())for(var o=this._splitList,a=0,t=o.length;t>a;a++)o[a].color&&(this._colorList[a]=o[a].color)},_buildGap:function(e){if(!this._useCustomizedSplit()){var t=this.dataRangeOption.precision;for(this._gap=(this.dataRangeOption.max-this.dataRangeOption.min)/e;this._gap.toFixed(t)-0!=this._gap&&5>t;)t++;this.dataRangeOption.precision=t,this._gap=((this.dataRangeOption.max-this.dataRangeOption.min)/e).toFixed(t)-0}},_buildDataList:function(e){for(var t=this._valueTextList=[],i=this.dataRangeOption,n=this._useCustomizedSplit(),a=0;e>a;a++){this._selectedMap[a]=!0;var o="";if(n){var r=this._splitList[e-1-a];o=null!=r.label?r.label:null!=r.single?this._textFormat(r.single):this._textFormat(r.min,r.max)}else o=this._textFormat(a*this._gap+i.min,(a+1)*this._gap+i.min);t.unshift(o)}},_buildSplitList:function(){if(this._useCustomizedSplit())for(var e=this.dataRangeOption.splitList,t=this._splitList=[],i=0,n=e.length;n>i;i++){var a=e[i];if(!a||null==a.start&&null==a.end)throw new Error("Empty item exists in splitList!");var o={label:a.label,color:a.color};o.min=a.start,o.max=a.end,o.min>o.max&&(o.min=[o.max,o.max=o.min][0]),o.min===o.max&&(o.single=o.max),null==o.min&&(o.min=-Number.MAX_VALUE),null==o.max&&(o.max=Number.MAX_VALUE),t.push(o)}},refresh:function(e){if(e){this.option=e,this.option.dataRange=this.reformOption(this.option.dataRange);var t=this.dataRangeOption=this.option.dataRange;if(!this._useCustomizedSplit()&&(null==t.min||null==t.max))throw new Error("option.dataRange.min or option.dataRange.max has not been defined.");this.myChart.canvasSupported||(t.realtime=!1);var i=this._isContinuity()?100:this._useCustomizedSplit()?t.splitList.length:t.splitNumber;this._buildSplitList(),this._buildColorList(i),this._buildGap(i),this._buildDataList(i)}this.clear(),this._buildShape()},getColor:function(e){if(isNaN(e))return null;var t;if(this._useCustomizedSplit()){for(var i=this._splitList,n=0,a=i.length;a>n;n++)if(i[n].min<=e&&i[n].max>=e){t=n;break}}else{if(this.dataRangeOption.min==this.dataRangeOption.max)return this._colorList[0];if(e<this.dataRangeOption.min?e=this.dataRangeOption.min:e>this.dataRangeOption.max&&(e=this.dataRangeOption.max),this.dataRangeOption.calculable&&(e-(this._gap*this._range.start+this.dataRangeOption.min)>5e-5||e-(this._gap*this._range.end+this.dataRangeOption.min)<-5e-5))return null;t=this._colorList.length-Math.ceil((e-this.dataRangeOption.min)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._colorList.length),t==this._colorList.length&&t--}return this._selectedMap[t]?this._colorList[t]:null},getColorByIndex:function(e){return e>=this._colorList.length?e=this._colorList.length-1:0>e&&(e=0),this._colorList[e]},onbeforDispose:function(){this.messageCenter.unbind(r.EVENT.HOVER,this._onhoverlink)}},s.inherits(t,i),e("../component").define("dataRange",t),t}),i("echarts/util/shape/HandlePolygon",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/Polygon"),a=e("zrender/tool/util");return t.prototype={type:"handle-polygon",buildPath:function(e,t){n.prototype.buildPath(e,t)},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);e=i[0],t=i[1];var n=this.style.rect;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height?!0:!1}},a.inherits(t,i),t}),i("echarts/chart/k",["require","./base","../util/shape/Candle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../util/shape/Candle");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var a=e("../config");a.k={zlevel:0,z:2,clickable:!0,hoverable:!0,legendHoverLink:!1,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"#fff",color0:"#00aa11",lineStyle:{width:1,color:"#ff3200",color0:"#00aa11"},label:{show:!1}},emphasis:{label:{show:!1}}}};var o=e("../util/ecData"),r=e("zrender/tool/util");return t.prototype={type:a.CHART_TYPE_K,_buildShape:function(){var e=this.series;this.selectedMap={};for(var t,i={top:[],bottom:[]},n=0,o=e.length;o>n;n++)e[n].type===a.CHART_TYPE_K&&(e[n]=this.reformOption(e[n]),this.legendHoverLink=e[n].legendHoverLink||this.legendHoverLink,t=this.component.xAxis.getAxis(e[n].xAxisIndex),t.type===a.COMPONENT_TYPE_AXIS_CATEGORY&&i[t.getPosition()].push(n));for(var r in i)i[r].length>0&&this._buildSinglePosition(r,i[r]);this.addShapeList()},_buildSinglePosition:function(e,t){var i=this._mapData(t),n=i.locationMap,a=i.maxDataLength;if(0!==a&&0!==n.length){this._buildHorizontal(t,a,n);for(var o=0,r=t.length;r>o;o++)this.buildMark(t[o])}},_mapData:function(e){for(var t,i,n=this.series,a=this.component.legend,o=[],r=0,s=0,l=e.length;l>s;s++)t=n[e[s]],i=t.name,this.selectedMap[i]=a?a.isSelected(i):!0,this.selectedMap[i]&&o.push(e[s]),r=Math.max(r,t.data.length);return{locationMap:o,maxDataLength:r}},_buildHorizontal:function(e,t,i){for(var n,a,o,r,s,l,h,m,V,U,d=this.series,p={},c=0,u=i.length;u>c;c++){n=i[c],a=d[n],o=a.xAxisIndex||0,r=this.component.xAxis.getAxis(o),h=a.barWidth||Math.floor(r.getGap()/2),U=a.barMaxWidth,U&&h>U&&(h=U),s=a.yAxisIndex||0,l=this.component.yAxis.getAxis(s),p[n]=[];for(var y=0,g=t;g>y&&null!=r.getNameByIndex(y);y++)m=a.data[y],V=this.getDataFromOption(m,"-"),"-"!==V&&4==V.length&&p[n].push([r.getCoordByIndex(y),h,l.getCoord(V[0]),l.getCoord(V[1]),l.getCoord(V[2]),l.getCoord(V[3]),y,r.getNameByIndex(y)])}this._buildKLine(e,p)},_buildKLine:function(e,t){for(var i,n,o,r,s,l,h,m,V,U,d,p,c,u,y,g,b,f=this.series,k=0,x=e.length;x>k;k++)if(b=e[k],d=f[b],u=t[b],this._isLarge(u)&&(u=this._getLargePointList(u)),d.type===a.CHART_TYPE_K&&null!=u){p=d,i=this.query(p,"itemStyle.normal.lineStyle.width"),n=this.query(p,"itemStyle.normal.lineStyle.color"),o=this.query(p,"itemStyle.normal.lineStyle.color0"),r=this.query(p,"itemStyle.normal.color"),s=this.query(p,"itemStyle.normal.color0"),l=this.query(p,"itemStyle.emphasis.lineStyle.width"),h=this.query(p,"itemStyle.emphasis.lineStyle.color"),m=this.query(p,"itemStyle.emphasis.lineStyle.color0"),V=this.query(p,"itemStyle.emphasis.color"),U=this.query(p,"itemStyle.emphasis.color0");for(var _=0,L=u.length;L>_;_++)y=u[_],c=d.data[y[6]],p=c,g=y[3]<y[2],this.shapeList.push(this._getCandle(b,y[6],y[7],y[0],y[1],y[2],y[3],y[4],y[5],g?this.query(p,"itemStyle.normal.color")||r:this.query(p,"itemStyle.normal.color0")||s,this.query(p,"itemStyle.normal.lineStyle.width")||i,g?this.query(p,"itemStyle.normal.lineStyle.color")||n:this.query(p,"itemStyle.normal.lineStyle.color0")||o,g?this.query(p,"itemStyle.emphasis.color")||V||r:this.query(p,"itemStyle.emphasis.color0")||U||s,this.query(p,"itemStyle.emphasis.lineStyle.width")||l||i,g?this.query(p,"itemStyle.emphasis.lineStyle.color")||h||n:this.query(p,"itemStyle.emphasis.lineStyle.color0")||m||o))}},_isLarge:function(e){return e[0][1]<.5},_getLargePointList:function(e){for(var t=this.component.grid.getWidth(),i=e.length,n=[],a=0;t>a;a++)n[a]=e[Math.floor(i/t*a)];return n},_getCandle:function(e,t,i,a,r,s,l,h,m,V,U,d,p,c,u){var y=this.series,g=y[e],b=g.data[t],f=[b,g],k={zlevel:g.zlevel,z:g.z,clickable:this.deepQuery(f,"clickable"),hoverable:this.deepQuery(f,"hoverable"),style:{x:a,y:[s,l,h,m],width:r,color:V,strokeColor:d,lineWidth:U,brushType:"both"},highlightStyle:{color:p,strokeColor:u,lineWidth:c},_seriesIndex:e};return k=this.addLabel(k,g,b,i),o.pack(k,g,e,b,t,i),k=new n(k)},getMarkCoord:function(e,t){var i=this.series[e],n=this.component.xAxis.getAxis(i.xAxisIndex),a=this.component.yAxis.getAxis(i.yAxisIndex);return["string"!=typeof t.xAxis&&n.getCoordByIndex?n.getCoordByIndex(t.xAxis||0):n.getCoord(t.xAxis||0),"string"!=typeof t.yAxis&&a.getCoordByIndex?a.getCoordByIndex(t.yAxis||0):a.getCoord(t.yAxis||0)]},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(e,t){function i(){p--,0===p&&t&&t()}for(var n=this.series,a={},r=0,s=e.length;s>r;r++)a[e[r][0]]=e[r];for(var l,h,m,V,U,d,p=0,r=0,s=this.shapeList.length;s>r;r++)if(U=this.shapeList[r]._seriesIndex,a[U]&&!a[U][3]&&"candle"===this.shapeList[r].type){if(d=o.get(this.shapeList[r],"dataIndex"),V=n[U],a[U][2]&&d===V.data.length-1){this.zr.delShape(this.shapeList[r].id);continue}if(!a[U][2]&&0===d){this.zr.delShape(this.shapeList[r].id);continue}h=this.component.xAxis.getAxis(V.xAxisIndex||0).getGap(),l=a[U][2]?h:-h,m=0,p++,this.zr.animate(this.shapeList[r].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[l,m]}).done(i).start()}p||t&&t()}},r.inherits(t,i),e("../chart").define("k",t),t}),i("echarts/chart/pie",["require","./base","zrender/shape/Text","zrender/shape/Ring","zrender/shape/Circle","zrender/shape/Sector","zrender/shape/Polyline","../config","../util/ecData","zrender/tool/util","zrender/tool/math","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r.shapeHandler.onmouseover=function(e){var t=e.target,i=h.get(t,"seriesIndex"),n=h.get(t,"dataIndex"),a=h.get(t,"special"),o=[t.style.x,t.style.y],s=t.style.startAngle,l=t.style.endAngle,m=((l+s)/2+360)%360,V=t.highlightStyle.color,U=r.getLabel(i,n,a,o,m,V,!0);U&&r.zr.addHoverShape(U);var d=r.getLabelLine(i,n,o,t.style.r0,t.style.r,m,V,!0);d&&r.zr.addHoverShape(d)},this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Ring"),o=e("zrender/shape/Circle"),r=e("zrender/shape/Sector"),s=e("zrender/shape/Polyline"),l=e("../config");l.pie={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockWise:!0,startAngle:90,minAngle:0,selectedOffset:10,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!1},labelLine:{show:!1,length:20,lineStyle:{width:1,type:"solid"}}}}};var h=e("../util/ecData"),m=e("zrender/tool/util"),V=e("zrender/tool/math"),U=e("zrender/tool/color");return t.prototype={type:l.CHART_TYPE_PIE,_buildShape:function(){var e=this.series,t=this.component.legend;this.selectedMap={},this._selected={};var i,n,r;this._selectedMode=!1;for(var s,m=0,V=e.length;V>m;m++)if(e[m].type===l.CHART_TYPE_PIE){if(e[m]=this.reformOption(e[m]),this.legendHoverLink=e[m].legendHoverLink||this.legendHoverLink,s=e[m].name||"",this.selectedMap[s]=t?t.isSelected(s):!0,!this.selectedMap[s])continue;i=this.parseCenter(this.zr,e[m].center),n=this.parseRadius(this.zr,e[m].radius),this._selectedMode=this._selectedMode||e[m].selectedMode,this._selected[m]=[],this.deepQuery([e[m],this.option],"calculable")&&(r={zlevel:e[m].zlevel,z:e[m].z,hoverable:!1,style:{x:i[0],y:i[1],r0:n[0]<=10?0:n[0]-10,r:n[1]+10,brushType:"stroke",lineWidth:1,strokeColor:e[m].calculableHolderColor||this.ecTheme.calculableHolderColor||l.calculableHolderColor}},h.pack(r,e[m],m,void 0,-1),this.setCalculable(r),r=n[0]<=10?new o(r):new a(r),this.shapeList.push(r)),this._buildSinglePie(m),this.buildMark(m)}this.addShapeList()},_buildSinglePie:function(e){for(var t,i=this.series,n=i[e],a=n.data,o=this.component.legend,r=0,s=0,l=0,h=Number.NEGATIVE_INFINITY,m=[],V=0,U=a.length;U>V;V++)t=a[V].name,
    +this.selectedMap[t]=o?o.isSelected(t):!0,this.selectedMap[t]&&!isNaN(a[V].value)&&(0!==+a[V].value?r++:s++,l+=+a[V].value,h=Math.max(h,+a[V].value));if(0!==l){for(var d,p,c,u,y,g,b=100,f=n.clockWise,k=(n.startAngle.toFixed(2)-0+360)%360,x=n.minAngle||.01,_=360-x*r-.01*s,L=n.roseType,V=0,U=a.length;U>V;V++)if(t=a[V].name,this.selectedMap[t]&&!isNaN(a[V].value)){if(p=o?o.getColor(t):this.zr.getColor(V),b=a[V].value/l,d="area"!=L?f?k-b*_-(0!==b?x:.01):b*_+k+(0!==b?x:.01):f?k-360/U:360/U+k,d=d.toFixed(2)-0,b=(100*b).toFixed(2),c=this.parseCenter(this.zr,n.center),u=this.parseRadius(this.zr,n.radius),y=+u[0],g=+u[1],"radius"===L?g=a[V].value/h*(g-y)*.8+.2*(g-y)+y:"area"===L&&(g=Math.sqrt(a[V].value/h)*(g-y)+y),f){var W;W=k,k=d,d=W}this._buildItem(m,e,V,b,a[V].selected,c,y,g,k,d,p),f||(k=d)}this._autoLabelLayout(m,c,g);for(var V=0,U=m.length;U>V;V++)this.shapeList.push(m[V]);m=null}},_buildItem:function(e,t,i,n,a,o,r,s,l,m,V){var U=this.series,d=((m+l)/2+360)%360,p=this.getSector(t,i,n,a,o,r,s,l,m,V);h.pack(p,U[t],t,U[t].data[i],i,U[t].data[i].name,n),e.push(p);var c=this.getLabel(t,i,n,o,d,V,!1),u=this.getLabelLine(t,i,o,r,s,d,V,!1);u&&(h.pack(u,U[t],t,U[t].data[i],i,U[t].data[i].name,n),e.push(u)),c&&(h.pack(c,U[t],t,U[t].data[i],i,U[t].data[i].name,n),c._labelLine=u,e.push(c))},getSector:function(e,t,i,n,a,o,s,l,h,m){var d=this.series,p=d[e],c=p.data[t],u=[c,p],y=this.deepMerge(u,"itemStyle.normal")||{},g=this.deepMerge(u,"itemStyle.emphasis")||{},b=this.getItemStyleColor(y.color,e,t,c)||m,f=this.getItemStyleColor(g.color,e,t,c)||("string"==typeof b?U.lift(b,-.2):b),k={zlevel:p.zlevel,z:p.z,clickable:this.deepQuery(u,"clickable"),style:{x:a[0],y:a[1],r0:o,r:s,startAngle:l,endAngle:h,brushType:"both",color:b,lineWidth:y.borderWidth,strokeColor:y.borderColor,lineJoin:"round"},highlightStyle:{color:f,lineWidth:g.borderWidth,strokeColor:g.borderColor,lineJoin:"round"},_seriesIndex:e,_dataIndex:t};if(n){var x=((k.style.startAngle+k.style.endAngle)/2).toFixed(2)-0;k.style._hasSelected=!0,k.style._x=k.style.x,k.style._y=k.style.y;var _=this.query(p,"selectedOffset");k.style.x+=V.cos(x,!0)*_,k.style.y-=V.sin(x,!0)*_,this._selected[e][t]=!0}else this._selected[e][t]=!1;return this._selectedMode&&(k.onclick=this.shapeHandler.onclick),this.deepQuery([c,p,this.option],"calculable")&&(this.setCalculable(k),k.draggable=!0),(this._needLabel(p,c,!0)||this._needLabelLine(p,c,!0))&&(k.onmouseover=this.shapeHandler.onmouseover),k=new r(k)},getLabel:function(e,t,i,a,o,r,s){var l=this.series,h=l[e],U=h.data[t];if(this._needLabel(h,U,s)){var d,p,c,u=s?"emphasis":"normal",y=m.merge(m.clone(U.itemStyle)||{},h.itemStyle),g=y[u].label,b=g.textStyle||{},f=a[0],k=a[1],x=this.parseRadius(this.zr,h.radius),_="middle";g.position=g.position||y.normal.label.position,"center"===g.position?(d=f,p=k,c="center"):"inner"===g.position||"inside"===g.position?(x=(x[0]+x[1])*(g.distance||.5),d=Math.round(f+x*V.cos(o,!0)),p=Math.round(k-x*V.sin(o,!0)),r="#fff",c="center"):(x=x[1]- -y[u].labelLine.length,d=Math.round(f+x*V.cos(o,!0)),p=Math.round(k-x*V.sin(o,!0)),c=o>=90&&270>=o?"right":"left"),"center"!=g.position&&"inner"!=g.position&&"inside"!=g.position&&(d+="left"===c?20:-20),U.__labelX=d-("left"===c?5:-5),U.__labelY=p;var L=new n({zlevel:h.zlevel,z:h.z+1,hoverable:!1,style:{x:d,y:p,color:b.color||r,text:this.getLabelText(e,t,i,u),textAlign:b.align||c,textBaseline:b.baseline||_,textFont:this.getFont(b)},highlightStyle:{brushType:"fill"}});return L._radius=x,L._labelPosition=g.position||"outer",L._rect=L.getRect(L.style),L._seriesIndex=e,L._dataIndex=t,L}},getLabelText:function(e,t,i,n){var a=this.series,o=a[e],r=o.data[t],s=this.deepQuery([r,o],"itemStyle."+n+".label.formatter");return s?"function"==typeof s?s.call(this.myChart,{seriesIndex:e,seriesName:o.name||"",series:o,dataIndex:t,data:r,name:r.name,value:r.value,percent:i}):"string"==typeof s?(s=s.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}"),s=s.replace("{a0}",o.name).replace("{b0}",r.name).replace("{c0}",r.value).replace("{d0}",i)):void 0:r.name},getLabelLine:function(e,t,i,n,a,o,r,l){var h=this.series,U=h[e],d=U.data[t];if(this._needLabelLine(U,d,l)){var p=l?"emphasis":"normal",c=m.merge(m.clone(d.itemStyle)||{},U.itemStyle),u=c[p].labelLine,y=u.lineStyle||{},g=i[0],b=i[1],f=a,k=this.parseRadius(this.zr,U.radius)[1]- -u.length,x=V.cos(o,!0),_=V.sin(o,!0);return new s({zlevel:U.zlevel,z:U.z+1,hoverable:!1,style:{pointList:[[g+f*x,b-f*_],[g+k*x,b-k*_],[d.__labelX,d.__labelY]],strokeColor:y.color||r,lineType:y.type,lineWidth:y.width},_seriesIndex:e,_dataIndex:t})}},_needLabel:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".label.show")},_needLabelLine:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".labelLine.show")},_autoLabelLayout:function(e,t,i){for(var n=[],a=[],o=0,r=e.length;r>o;o++)("outer"===e[o]._labelPosition||"outside"===e[o]._labelPosition)&&(e[o]._rect._y=e[o]._rect.y,e[o]._rect.x<t[0]?n.push(e[o]):a.push(e[o]));this._layoutCalculate(n,t,i,-1),this._layoutCalculate(a,t,i,1)},_layoutCalculate:function(e,t,i,n){function a(t,i,n){for(var a=t;i>a;a++)if(e[a]._rect.y+=n,e[a].style.y+=n,e[a]._labelLine&&(e[a]._labelLine.style.pointList[1][1]+=n,e[a]._labelLine.style.pointList[2][1]+=n),a>t&&i>a+1&&e[a+1]._rect.y>e[a]._rect.y+e[a]._rect.height)return void o(a,n/2);o(i-1,n/2)}function o(t,i){for(var n=t;n>=0&&(e[n]._rect.y-=i,e[n].style.y-=i,e[n]._labelLine&&(e[n]._labelLine.style.pointList[1][1]-=i,e[n]._labelLine.style.pointList[2][1]-=i),!(n>0&&e[n]._rect.y>e[n-1]._rect.y+e[n-1]._rect.height));n--);}function r(e,t,i,n,a){for(var o,r,s,l=i[0],h=i[1],m=a>0?t?Number.MAX_VALUE:0:t?Number.MAX_VALUE:0,V=0,U=e.length;U>V;V++)r=Math.abs(e[V]._rect.y-h),s=e[V]._radius-n,o=n+s>r?Math.sqrt((n+s+20)*(n+s+20)-Math.pow(e[V]._rect.y-h,2)):Math.abs(e[V]._rect.x+(a>0?0:e[V]._rect.width)-l),t&&o>=m&&(o=m-10),!t&&m>=o&&(o=m+10),e[V]._rect.x=e[V].style.x=l+o*a,e[V]._labelLine&&(e[V]._labelLine.style.pointList[2][0]=l+(o-5)*a,e[V]._labelLine.style.pointList[1][0]=l+(o-20)*a),m=o}e.sort(function(e,t){return e._rect.y-t._rect.y});for(var s,l=0,h=e.length,m=[],V=[],U=0;h>U;U++)s=e[U]._rect.y-l,0>s&&a(U,h,-s,n),l=e[U]._rect.y+e[U]._rect.height;this.zr.getHeight()-l<0&&o(h-1,l-this.zr.getHeight());for(var U=0;h>U;U++)e[U]._rect.y>=t[1]?V.push(e[U]):m.push(e[U]);r(V,!0,t,i,n),r(m,!1,t,i,n)},reformOption:function(e){var t=m.merge;return e=t(t(e||{},m.clone(this.ecTheme.pie||{})),m.clone(l.pie)),e.itemStyle.normal.label.textStyle=this.getTextStyle(e.itemStyle.normal.label.textStyle),e.itemStyle.emphasis.label.textStyle=this.getTextStyle(e.itemStyle.emphasis.label.textStyle),this.z=e.z,this.zlevel=e.zlevel,e},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(e,t){function i(){s--,0===s&&t&&t()}for(var n=this.series,a={},o=0,r=e.length;r>o;o++)a[e[o][0]]=e[o];var s=0,h={},m={},V={},U=this.shapeList;this.shapeList=[];for(var d,p,c,u={},o=0,r=e.length;r>o;o++)d=e[o][0],p=e[o][2],c=e[o][3],n[d]&&n[d].type===l.CHART_TYPE_PIE&&(p?(c||(h[d+"_"+n[d].data.length]="delete"),u[d]=1):c?u[d]=0:(h[d+"_-1"]="delete",u[d]=-1),this._buildSinglePie(d));for(var y,g,o=0,r=this.shapeList.length;r>o;o++)switch(d=this.shapeList[o]._seriesIndex,y=this.shapeList[o]._dataIndex,g=d+"_"+y,this.shapeList[o].type){case"sector":h[g]=this.shapeList[o];break;case"text":m[g]=this.shapeList[o];break;case"polyline":V[g]=this.shapeList[o]}this.shapeList=[];for(var b,o=0,r=U.length;r>o;o++)if(d=U[o]._seriesIndex,a[d]){if(y=U[o]._dataIndex+u[d],g=d+"_"+y,b=h[g],!b)continue;if("sector"===U[o].type)"delete"!=b?(s++,this.zr.animate(U[o].id,"style").when(400,{startAngle:b.style.startAngle,endAngle:b.style.endAngle}).done(i).start()):(s++,this.zr.animate(U[o].id,"style").when(400,u[d]<0?{startAngle:U[o].style.startAngle}:{endAngle:U[o].style.endAngle}).done(i).start());else if("text"===U[o].type||"polyline"===U[o].type)if("delete"===b)this.zr.delShape(U[o].id);else switch(U[o].type){case"text":s++,b=m[g],this.zr.animate(U[o].id,"style").when(400,{x:b.style.x,y:b.style.y}).done(i).start();break;case"polyline":s++,b=V[g],this.zr.animate(U[o].id,"style").when(400,{pointList:b.style.pointList}).done(i).start()}}this.shapeList=U,s||t&&t()},onclick:function(e){var t=this.series;if(this.isClick&&e.target){this.isClick=!1;for(var i,n=e.target,a=n.style,o=h.get(n,"seriesIndex"),r=h.get(n,"dataIndex"),s=0,m=this.shapeList.length;m>s;s++)if(this.shapeList[s].id===n.id){if(o=h.get(n,"seriesIndex"),r=h.get(n,"dataIndex"),a._hasSelected)n.style.x=n.style._x,n.style.y=n.style._y,n.style._hasSelected=!1,this._selected[o][r]=!1;else{var U=((a.startAngle+a.endAngle)/2).toFixed(2)-0;n.style._hasSelected=!0,this._selected[o][r]=!0,n.style._x=n.style.x,n.style._y=n.style.y,i=this.query(t[o],"selectedOffset"),n.style.x+=V.cos(U,!0)*i,n.style.y-=V.sin(U,!0)*i}this.zr.modShape(n.id)}else this.shapeList[s].style._hasSelected&&"single"===this._selectedMode&&(o=h.get(this.shapeList[s],"seriesIndex"),r=h.get(this.shapeList[s],"dataIndex"),this.shapeList[s].style.x=this.shapeList[s].style._x,this.shapeList[s].style.y=this.shapeList[s].style._y,this.shapeList[s].style._hasSelected=!1,this._selected[o][r]=!1,this.zr.modShape(this.shapeList[s].id));this.messageCenter.dispatch(l.EVENT.PIE_SELECTED,e.event,{selected:this._selected,target:h.get(n,"name")},this.myChart),this.zr.refreshNextFrame()}}},m.inherits(t,i),e("../chart").define("pie",t),t}),i("echarts/chart/radar",["require","./base","zrender/shape/Polygon","../component/polar","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../util/accMath","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Polygon");e("../component/polar");var a=e("../config");a.radar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,polarIndex:0,itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid"}},emphasis:{label:{show:!1}}},symbolSize:2};var o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/color");return t.prototype={type:a.CHART_TYPE_RADAR,_buildShape:function(){this.selectedMap={},this._symbol=this.option.symbolList,this._queryTarget,this._dropBoxList=[],this._radarDataCounter=0;for(var e,t=this.series,i=this.component.legend,n=0,o=t.length;o>n;n++)t[n].type===a.CHART_TYPE_RADAR&&(this.serie=this.reformOption(t[n]),this.legendHoverLink=t[n].legendHoverLink||this.legendHoverLink,e=this.serie.name||"",this.selectedMap[e]=i?i.isSelected(e):!0,this.selectedMap[e]&&(this._queryTarget=[this.serie,this.option],this.deepQuery(this._queryTarget,"calculable")&&this._addDropBox(n),this._buildSingleRadar(n),this.buildMark(n)));this.addShapeList()},_buildSingleRadar:function(e){for(var t,i,n,a,o=this.component.legend,r=this.serie.data,s=this.deepQuery(this._queryTarget,"calculable"),l=0;l<r.length;l++)n=r[l].name||"",this.selectedMap[n]=o?o.isSelected(n):!0,this.selectedMap[n]&&(o?(i=o.getColor(n),t=o.getItemShape(n),t&&(t.style.brushType=this.deepQuery([r[l],this.serie],"itemStyle.normal.areaStyle")?"both":"stroke",o.setItemShape(n,t))):i=this.zr.getColor(l),a=this._getPointList(this.serie.polarIndex,r[l]),this._addSymbol(a,i,l,e,this.serie.polarIndex),this._addDataShape(a,i,r[l],e,l,s),this._radarDataCounter++)},_getPointList:function(e,t){for(var i,n,a=[],o=this.component.polar,r=0,s=t.value.length;s>r;r++)n=this.getDataFromOption(t.value[r]),i="-"!=n?o.getVector(e,r,n):!1,i&&a.push(i);return a},_addSymbol:function(e,t,i,n,a){for(var r,s=this.series,l=this.component.polar,h=0,m=e.length;m>h;h++)r=this.getSymbolShape(this.deepMerge([s[n].data[i],s[n]]),n,s[n].data[i].value[h],h,l.getIndicatorText(a,h),e[h][0],e[h][1],this._symbol[this._radarDataCounter%this._symbol.length],t,"#fff","vertical"),r.zlevel=this.getZlevelBase(),r.z=this.getZBase()+1,o.set(r,"data",s[n].data[i]),o.set(r,"value",s[n].data[i].value),o.set(r,"dataIndex",i),o.set(r,"special",h),this.shapeList.push(r)},_addDataShape:function(e,t,i,a,r,l){var h=this.series,m=[i,this.serie],V=this.getItemStyleColor(this.deepQuery(m,"itemStyle.normal.color"),a,r,i),U=this.deepQuery(m,"itemStyle.normal.lineStyle.width"),d=this.deepQuery(m,"itemStyle.normal.lineStyle.type"),p=this.deepQuery(m,"itemStyle.normal.areaStyle.color"),c=this.deepQuery(m,"itemStyle.normal.areaStyle"),u={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:e,brushType:c?"both":"stroke",color:p||V||("string"==typeof t?s.alpha(t,.5):t),strokeColor:V||t,lineWidth:U,lineType:d},highlightStyle:{brushType:this.deepQuery(m,"itemStyle.emphasis.areaStyle")||c?"both":"stroke",color:this.deepQuery(m,"itemStyle.emphasis.areaStyle.color")||p||V||("string"==typeof t?s.alpha(t,.5):t),strokeColor:this.getItemStyleColor(this.deepQuery(m,"itemStyle.emphasis.color"),a,r,i)||V||t,lineWidth:this.deepQuery(m,"itemStyle.emphasis.lineStyle.width")||U,lineType:this.deepQuery(m,"itemStyle.emphasis.lineStyle.type")||d}};o.pack(u,h[a],a,i,r,i.name,this.component.polar.getIndicator(h[a].polarIndex)),l&&(u.draggable=!0,this.setCalculable(u)),u=new n(u),this.shapeList.push(u)},_addDropBox:function(e){var t=this.series,i=this.deepQuery(this._queryTarget,"polarIndex");if(!this._dropBoxList[i]){var n=this.component.polar.getDropBox(i);n.zlevel=this.getZlevelBase(),n.z=this.getZBase(),this.setCalculable(n),o.pack(n,t,e,void 0,-1),this.shapeList.push(n),this._dropBoxList[i]=!0}},ondragend:function(e,t){var i=this.series;if(this.isDragend&&e.target){var n=e.target,a=o.get(n,"seriesIndex"),r=o.get(n,"dataIndex");this.component.legend&&this.component.legend.del(i[a].data[r].name),i[a].data.splice(r,1),t.dragOut=!0,t.needRefresh=!0,this.isDragend=!1}},ondrop:function(t,i){var n=this.series;if(this.isDrop&&t.target){var a,r,s=t.target,l=t.dragged,h=o.get(s,"seriesIndex"),m=o.get(s,"dataIndex"),V=this.component.legend;if(-1===m)a={value:o.get(l,"value"),name:o.get(l,"name")},n[h].data.push(a),V&&V.add(a.name,l.style.color||l.style.strokeColor);else{var U=e("../util/accMath");a=n[h].data[m],V&&V.del(a.name),a.name+=this.option.nameConnector+o.get(l,"name"),r=o.get(l,"value");for(var d=0;d<r.length;d++)a.value[d]=U.accAdd(a.value[d],r[d]);V&&V.add(a.name,l.style.color||l.style.strokeColor)}i.dragIn=i.dragIn||!0,this.isDrop=!1}},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},r.inherits(t,i),e("../chart").define("radar",t),t}),i("echarts/component/polar",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","zrender/shape/Circle","zrender/shape/Ring","../config","zrender/tool/util","../util/coordinates","../util/accMath","../util/smartSteps","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Polygon"),r=e("zrender/shape/Circle"),s=e("zrender/shape/Ring"),l=e("../config");l.polar={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,boundaryGap:[0,0],splitNumber:5,name:{show:!0,textStyle:{color:"#333"}},axisLine:{show:!0,lineStyle:{color:"#ccc",width:1,type:"solid"}},axisLabel:{show:!1,textStyle:{color:"#333"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},splitLine:{show:!0,lineStyle:{width:1,color:"#ccc"}},type:"polygon"};var h=e("zrender/tool/util"),m=e("../util/coordinates");return t.prototype={type:l.COMPONENT_TYPE_POLAR,_buildShape:function(){for(var e=0;e<this.polar.length;e++)this._index=e,this.reformOption(this.polar[e]),this._queryTarget=[this.polar[e],this.option],this._createVector(e),this._buildSpiderWeb(e),this._buildText(e),this._adjustIndicatorValue(e),this._addAxisLabel(e);for(var e=0;e<this.shapeList.length;e++)this.zr.addShape(this.shapeList[e])},_createVector:function(e){for(var t,i=this.polar[e],n=this.deepQuery(this._queryTarget,"indicator"),a=n.length,o=i.startAngle,r=2*Math.PI/a,s=this._getRadius(),l=i.__ecIndicator=[],h=0;a>h;h++)t=m.polar2cartesian(s,o*Math.PI/180+r*h),l.push({vector:[t[1],-t[0]]})},_getRadius:function(){var e=this.polar[this._index];return this.parsePercent(e.radius,Math.min(this.zr.getWidth(),this.zr.getHeight())/2)},_buildSpiderWeb:function(e){var t=this.polar[e],i=t.__ecIndicator,n=t.splitArea,a=t.splitLine,o=this.getCenter(e),r=t.splitNumber,s=a.lineStyle.color,l=a.lineStyle.width,h=a.show,m=this.deepQuery(this._queryTarget,"axisLine");this._addArea(i,r,o,n,s,l,h),m.show&&this._addLine(i,o,m)},_addAxisLabel:function(t){for(var i,a,o,r,a,s,l,m,V,U,d=e("../util/accMath"),p=this.polar[t],c=this.deepQuery(this._queryTarget,"indicator"),u=p.__ecIndicator,y=this.deepQuery(this._queryTarget,"splitNumber"),g=this.getCenter(t),b=0;b<c.length;b++)if(i=this.deepQuery([c[b],p,this.option],"axisLabel"),i.show){var f=this.deepQuery([i,p,this.option],"textStyle"),k=this.deepQuery([i,p],"formatter");if(o={},o.textFont=this.getFont(f),o.color=f.color,o=h.merge(o,i),o.lineWidth=o.width,a=u[b].vector,s=u[b].value,m=b/c.length*2*Math.PI,V=i.offset||10,U=i.interval||0,!s)return;for(var x=1;y>=x;x+=U+1)r=h.merge({},o),l=d.accAdd(s.min,d.accMul(s.step,x)),l="function"==typeof k?k(l):"string"==typeof k?k.replace("{a}","{a0}").replace("{a0}",l):this.numAddCommas(l),r.text=l,r.x=x*a[0]/y+Math.cos(m)*V+g[0],r.y=x*a[1]/y+Math.sin(m)*V+g[1],this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:r,draggable:!1,hoverable:!1}))}},_buildText:function(e){for(var t,i,a,o,r,s,l,h=this.polar[e],m=h.__ecIndicator,V=this.deepQuery(this._queryTarget,"indicator"),U=this.getCenter(e),d=0,p=0,c=0;c<V.length;c++)o=this.deepQuery([V[c],h,this.option],"name"),o.show&&(l=this.deepQuery([o,h,this.option],"textStyle"),i={},i.textFont=this.getFont(l),i.color=l.color,i.text="function"==typeof o.formatter?o.formatter.call(this.myChart,V[c].text,c):"string"==typeof o.formatter?o.formatter.replace("{value}",V[c].text):V[c].text,m[c].text=i.text,t=m[c].vector,a=Math.round(t[0])>0?"left":Math.round(t[0])<0?"right":"center",null==o.margin?t=this._mapVector(t,U,1.1):(s=o.margin,d=t[0]>0?s:-s,p=t[1]>0?s:-s,d=0===t[0]?0:d,p=0===t[1]?0:p,t=this._mapVector(t,U,1)),i.textAlign=a,i.x=t[0]+d,i.y=t[1]+p,r=o.rotate?[o.rotate/180*Math.PI,t[0],t[1]]:[0,0,0],this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:i,draggable:!1,hoverable:!1,rotation:r})))},getIndicatorText:function(e,t){return this.polar[e]&&this.polar[e].__ecIndicator[t]&&this.polar[e].__ecIndicator[t].text},getDropBox:function(e){var t,i,e=e||0,n=this.polar[e],a=this.getCenter(e),o=n.__ecIndicator,r=o.length,s=[],l=n.type;if("polygon"==l){for(var h=0;r>h;h++)t=o[h].vector,s.push(this._mapVector(t,a,1.2));i=this._getShape(s,"fill","rgba(0,0,0,0)","",1)}else"circle"==l&&(i=this._getCircle("",1,1.2,a,"fill","rgba(0,0,0,0)"));return i},_addArea:function(e,t,i,n,a,o,r){for(var s,l,h,m,V=this.deepQuery(this._queryTarget,"type"),U=0;t>U;U++)l=(t-U)/t,r&&("polygon"==V?(m=this._getPointList(e,l,i),s=this._getShape(m,"stroke","",a,o)):"circle"==V&&(s=this._getCircle(a,o,l,i,"stroke")),this.shapeList.push(s)),n.show&&(h=(t-U-1)/t,this._addSplitArea(e,n,l,h,i,U))},_getCircle:function(e,t,i,n,a,o){var s=this._getRadius();return new r({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:n[0],y:n[1],r:s*i,brushType:a,strokeColor:e,lineWidth:t,color:o},hoverable:!1,draggable:!1})},_getRing:function(e,t,i,n){var a=this._getRadius();return new s({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:n[0],y:n[1],r:t*a,r0:i*a,color:e,brushType:"fill"},hoverable:!1,draggable:!1})},_getPointList:function(e,t,i){for(var n,a=[],o=e.length,r=0;o>r;r++)n=e[r].vector,a.push(this._mapVector(n,i,t));return a},_getShape:function(e,t,i,n,a){return new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:e,brushType:t,color:i,strokeColor:n,lineWidth:a},hoverable:!1,draggable:!1})},_addSplitArea:function(e,t,i,n,a,o){var r,s,l,h,m,V=e.length,U=t.areaStyle.color,d=[],V=e.length,p=this.deepQuery(this._queryTarget,"type");if("string"==typeof U&&(U=[U]),s=U.length,r=U[o%s],"polygon"==p)for(var c=0;V>c;c++)d=[],l=e[c].vector,h=e[(c+1)%V].vector,d.push(this._mapVector(l,a,i)),d.push(this._mapVector(l,a,n)),d.push(this._mapVector(h,a,n)),d.push(this._mapVector(h,a,i)),m=this._getShape(d,"fill",r,"",1),this.shapeList.push(m);else"circle"==p&&(m=this._getRing(r,i,n,a),this.shapeList.push(m))},_mapVector:function(e,t,i){return[e[0]*i+t[0],e[1]*i+t[1]]},getCenter:function(e){var e=e||0;return this.parseCenter(this.zr,this.polar[e].center)},_addLine:function(e,t,i){for(var n,a,o=e.length,r=i.lineStyle,s=r.color,l=r.width,h=r.type,m=0;o>m;m++)a=e[m].vector,n=this._getLine(t[0],t[1],a[0]+t[0],a[1]+t[1],s,l,h),this.shapeList.push(n)},_getLine:function(e,t,i,n,o,r,s){return new a({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:e,yStart:t,xEnd:i,yEnd:n,strokeColor:o,lineWidth:r,lineType:s},hoverable:!1})},_adjustIndicatorValue:function(t){for(var i,n,a,o=this.polar[t],r=this.deepQuery(this._queryTarget,"indicator"),s=r.length,l=o.__ecIndicator,h=this._getSeriesData(t),m=o.boundaryGap,V=o.splitNumber,U=o.scale,d=e("../util/smartSteps"),p=0;s>p;p++){if("number"==typeof r[p].max)i=r[p].max,n=r[p].min||0,a={max:i,min:n};else{var c=this._findValue(h,p,V,m);n=c.min,i=c.max}!U&&n>=0&&i>=0&&(n=0),!U&&0>=n&&0>=i&&(i=0);var u=d(n,i,V,a);l[p].value={min:u.min,max:u.max,step:u.step}}},_getSeriesData:function(e){for(var t,i,n,a=[],o=this.component.legend,r=0;r<this.series.length;r++)if(t=this.series[r],t.type==l.CHART_TYPE_RADAR){i=t.data||[];for(var s=0;s<i.length;s++)n=this.deepQuery([i[s],t,this.option],"polarIndex")||0,n!=e||o&&!o.isSelected(i[s].name)||a.push(i[s])}return a},_findValue:function(e,t,i,n){function a(e){(e>o||void 0===o)&&(o=e),(r>e||void 0===r)&&(r=e)}var o,r,s;if(e&&0!==e.length){if(1==e.length&&(r=0),1!=e.length)for(var l=0;l<e.length;l++)a(this.getDataFromOption(e[l].value[t]));else{s=e[0];for(var l=0;l<s.value.length;l++)a(this.getDataFromOption(s.value[l]))}var h=Math.abs(o-r);return r-=Math.abs(h*n[0]),o+=Math.abs(h*n[1]),r===o&&(0===o?o=1:o>0?r=o/i:o/=i),{max:o,min:r}}},getVector:function(e,t,i){e=e||0,t=t||0;var n=this.polar[e].__ecIndicator;if(!(t>=n.length)){var a,o=this.polar[e].__ecIndicator[t],r=this.getCenter(e),s=o.vector,l=o.value.max,h=o.value.min;if("undefined"==typeof i)return r;switch(i){case"min":i=h;break;case"max":i=l;break;case"center":i=(l+h)/2}return a=l!=h?(i-h)/(l-h):.5,this._mapVector(s,r,a)}},isInside:function(e){var t=this.getNearestIndex(e);return t?t.polarIndex:-1},getNearestIndex:function(e){for(var t,i,n,a,o,r,s,l,h,V=0;V<this.polar.length;V++){if(t=this.polar[V],i=this.getCenter(V),e[0]==i[0]&&e[1]==i[1])return{polarIndex:V,valueIndex:0};if(n=this._getRadius(),o=t.startAngle,r=t.indicator,s=r.length,l=2*Math.PI/s,a=m.cartesian2polar(e[0]-i[0],i[1]-e[1]),e[0]-i[0]<0&&(a[1]+=Math.PI),a[1]<0&&(a[1]+=2*Math.PI),h=a[1]-o/180*Math.PI+2*Math.PI,Math.abs(Math.cos(h%(l/2)))*n>a[0])return{polarIndex:V,valueIndex:Math.floor((h+l/2)/l)%s}}},getIndicator:function(e){var e=e||0;return this.polar[e].indicator},refresh:function(e){e&&(this.option=e,this.polar=this.option.polar,this.series=this.option.series),this.clear(),this._buildShape()}},h.inherits(t,i),e("../component").define("polar",t),t}),i("echarts/util/coordinates",["require","zrender/tool/math"],function(e){function t(e,t){return[e*n.sin(t),e*n.cos(t)]}function i(e,t){return[Math.sqrt(e*e+t*t),Math.atan(t/e)]}var n=e("zrender/tool/math");return{polar2cartesian:t,cartesian2polar:i}}),i("echarts/chart/chord",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Sector","../util/shape/Ribbon","../util/shape/Icon","zrender/shape/BezierCurve","../config","../util/ecData","zrender/tool/util","zrender/tool/vector","../data/Graph","../layout/Chord","../chart"],function(e){"use strict";function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.scaleLineLength=4,this.scaleUnitAngle=4,this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Sector"),r=e("../util/shape/Ribbon"),s=e("../util/shape/Icon"),l=e("zrender/shape/BezierCurve"),h=e("../config");h.chord={zlevel:0,z:2,clickable:!0,radius:["65%","75%"],center:["50%","50%"],padding:2,sort:"none",sortSub:"none",startAngle:90,clockWise:!0,ribbonType:!0,minRadius:10,maxRadius:20,symbol:"circle",showScale:!1,showScaleText:!1,itemStyle:{normal:{borderWidth:0,borderColor:"#000",label:{show:!0,rotate:!1,distance:5},chordStyle:{width:1,color:"black",borderWidth:1,borderColor:"#999",opacity:.5}},emphasis:{borderWidth:0,borderColor:"#000",chordStyle:{width:1,color:"black",borderWidth:1,borderColor:"#999"}}}};var m=e("../util/ecData"),V=e("zrender/tool/util"),U=e("zrender/tool/vector"),d=e("../data/Graph"),p=e("../layout/Chord");return t.prototype={type:h.CHART_TYPE_CHORD,_init:function(){var e=this.series;this.selectedMap={};for(var t={},i={},n=0,a=e.length;a>n;n++)if(e[n].type===this.type){var o=this.isSelected(e[n].name);this.selectedMap[e[n].name]=o,o&&this.buildMark(n),this.reformOption(e[n]),t[e[n].name]=e[n]}for(var n=0,a=e.length;a>n;n++)if(e[n].type===this.type)if(e[n].insertToSerie){var r=t[e[n].insertToSerie];e[n]._referenceSerie=r}else i[e[n].name]=[e[n]];for(var n=0,a=e.length;a>n;n++)if(e[n].type===this.type&&e[n].insertToSerie){for(var s=e[n]._referenceSerie;s&&s._referenceSerie;)s=s._referenceSerie;i[s.name]&&this.selectedMap[e[n].name]&&i[s.name].push(e[n])}for(var l in i)this._buildChords(i[l]);this.addShapeList()},_getNodeCategory:function(e,t){return e.categories&&e.categories[t.category||0]},_getNodeQueryTarget:function(e,t){var i=this._getNodeCategory(e,t);return[t,i,e]},_getEdgeQueryTarget:function(e,t,i){return i=i||"normal",[t.itemStyle&&t.itemStyle[i],e.itemStyle[i].chordStyle]},_buildChords:function(e){for(var t=[],i=e[0],n=function(e){return e.layout.size>0},a=function(e){return function(t){return e.getEdge(t.node2,t.node1)}},o=0;o<e.length;o++){var r=e[o];if(this.selectedMap[r.name]){var s;r.matrix?s=this._getSerieGraphFromDataMatrix(r,i):r.links&&(s=this._getSerieGraphFromNodeLinks(r,i)),s.filterNode(n,this),r.ribbonType&&s.filterEdge(a(s)),t.push(s),s.__serie=r}}if(t.length){var l=t[0];if(!i.ribbonType){var h=i.minRadius,m=i.maxRadius,V=1/0,U=-(1/0);l.eachNode(function(e){U=Math.max(e.layout.size,U),V=Math.min(e.layout.size,V)});var d=(m-h)/(U-V);l.eachNode(function(e){var t=this._getNodeQueryTarget(i,e),n=this.query(t,"symbolSize");e.layout.size=U===V?n||V:n||(e.layout.size-V)*d+h},this)}var c=new p;c.clockWise=i.clockWise,c.startAngle=i.startAngle*Math.PI/180,c.clockWise||(c.startAngle=-c.startAngle),c.padding=i.padding*Math.PI/180,c.sort=i.sort,c.sortSub=i.sortSub,c.directed=i.ribbonType,c.run(t);var u=this.query(i,"itemStyle.normal.label.show");if(i.ribbonType){this._buildSectors(i,0,l,i,t),u&&this._buildLabels(i,0,l,i,t);for(var o=0,y=0;o<e.length;o++)this.selectedMap[e[o].name]&&this._buildRibbons(e,o,t[y++],i);i.showScale&&this._buildScales(i,0,l)}else{this._buildNodeIcons(i,0,l,i,t),u&&this._buildLabels(i,0,l,i,t);for(var o=0,y=0;o<e.length;o++)this.selectedMap[e[o].name]&&this._buildEdgeCurves(e,o,t[y++],i,l)}this._initHoverHandler(e,t)}},_getSerieGraphFromDataMatrix:function(e,t){for(var i=[],n=0,a=[],o=0;o<e.matrix.length;o++)a[o]=e.matrix[o].slice();for(var r=e.data||e.nodes,o=0;o<r.length;o++){var s={},l=r[o];l.rawIndex=o;for(var h in l)"name"===h?s.id=l.name:s[h]=l[h];var m=this._getNodeCategory(t,l),V=m?m.name:l.name;if(this.selectedMap[V]=this.isSelected(V),this.selectedMap[V])i.push(s),n++;else{a.splice(n,1);for(var U=0;U<a.length;U++)a[U].splice(n,1)}}var p=d.fromMatrix(i,a,!0);return p.eachNode(function(e){e.layout={size:e.data.outValue},e.rawIndex=e.data.rawIndex}),p.eachEdge(function(e){e.layout={weight:e.data.weight}}),p},_getSerieGraphFromNodeLinks:function(e,t){for(var i=new d(!0),n=e.data||e.nodes,a=0,o=n.length;o>a;a++){var r=n[a];if(r&&!r.ignore){var s=this._getNodeCategory(t,r),l=s?s.name:r.name;if(this.selectedMap[l]=this.isSelected(l),this.selectedMap[l]){var h=i.addNode(r.name,r);h.rawIndex=a}}}for(var a=0,o=e.links.length;o>a;a++){var m=e.links[a],V=m.source,U=m.target;"number"==typeof V&&(V=n[V],V&&(V=V.name)),"number"==typeof U&&(U=n[U],U&&(U=U.name));var p=i.addEdge(V,U,m);p&&(p.rawIndex=a)}return i.eachNode(function(e){var i=e.data.value;if(null==i)if(i=0,t.ribbonType)for(var n=0;n<e.outEdges.length;n++)i+=e.outEdges[n].data.weight||0;else for(var n=0;n<e.edges.length;n++)i+=e.edges[n].data.weight||0;e.layout={size:i}}),i.eachEdge(function(e){e.layout={weight:null==e.data.weight?1:e.data.weight}}),i},_initHoverHandler:function(e,t){var i=e[0],n=t[0],a=this;n.eachNode(function(e){e.shape.onmouseover=function(){n.eachNode(function(e){e.shape.style.opacity=.1,e.labelShape&&(e.labelShape.style.opacity=.1,e.labelShape.modSelf()),e.shape.modSelf()});for(var i=0;i<t.length;i++)for(var o=0;o<t[i].edges.length;o++){var r=t[i].edges[o],s=a._getEdgeQueryTarget(t[i].__serie,r.data);r.shape.style.opacity=.1*a.deepQuery(s,"opacity"),r.shape.modSelf()}e.shape.style.opacity=1,e.labelShape&&(e.labelShape.style.opacity=1);for(var i=0;i<t.length;i++){var l=t[i].getNodeById(e.id);if(l)for(var o=0;o<l.outEdges.length;o++){var r=l.outEdges[o],s=a._getEdgeQueryTarget(t[i].__serie,r.data);r.shape.style.opacity=a.deepQuery(s,"opacity");var h=t[0].getNodeById(r.node2.id);h&&(h.shape&&(h.shape.style.opacity=1),h.labelShape&&(h.labelShape.style.opacity=1))}}a.zr.refreshNextFrame()},e.shape.onmouseout=function(){n.eachNode(function(e){e.shape.style.opacity=1,e.labelShape&&(e.labelShape.style.opacity=1,e.labelShape.modSelf()),e.shape.modSelf()});for(var e=0;e<t.length;e++)for(var o=0;o<t[e].edges.length;o++){var r=t[e].edges[o],s=[r.data,i];r.shape.style.opacity=a.deepQuery(s,"itemStyle.normal.chordStyle.opacity"),r.shape.modSelf()}a.zr.refreshNextFrame()}})},_buildSectors:function(e,t,i,n){var a=this.parseCenter(this.zr,n.center),r=this.parseRadius(this.zr,n.radius),s=n.clockWise,l=s?1:-1;i.eachNode(function(i){var h=this._getNodeCategory(n,i.data),V=this.getColor(h?h.name:i.id),U=i.layout.startAngle/Math.PI*180*l,d=i.layout.endAngle/Math.PI*180*l,p=new o({zlevel:e.zlevel,z:e.z,style:{x:a[0],y:a[1],r0:r[0],r:r[1],startAngle:U,endAngle:d,brushType:"fill",opacity:1,color:V,clockWise:s},clickable:n.clickable,highlightStyle:{brushType:"fill"}});p.style.lineWidth=this.deepQuery([i.data,n],"itemStyle.normal.borderWidth"),p.highlightStyle.lineWidth=this.deepQuery([i.data,n],"itemStyle.emphasis.borderWidth"),p.style.strokeColor=this.deepQuery([i.data,n],"itemStyle.normal.borderColor"),p.highlightStyle.strokeColor=this.deepQuery([i.data,n],"itemStyle.emphasis.borderColor"),p.style.lineWidth>0&&(p.style.brushType="both"),p.highlightStyle.lineWidth>0&&(p.highlightStyle.brushType="both"),m.pack(p,e,t,i.data,i.rawIndex,i.id,i.category),this.shapeList.push(p),i.shape=p},this)},_buildNodeIcons:function(e,t,i,n){var a=this.parseCenter(this.zr,n.center),o=this.parseRadius(this.zr,n.radius),r=o[1];i.eachNode(function(i){var o=i.layout.startAngle,l=i.layout.endAngle,h=(o+l)/2,V=r*Math.cos(h),U=r*Math.sin(h),d=this._getNodeQueryTarget(n,i.data),p=this._getNodeCategory(n,i.data),c=this.deepQuery(d,"itemStyle.normal.color");c||(c=this.getColor(p?p.name:i.id));var u=new s({zlevel:e.zlevel,z:e.z+1,style:{x:-i.layout.size,y:-i.layout.size,width:2*i.layout.size,height:2*i.layout.size,iconType:this.deepQuery(d,"symbol"),color:c,brushType:"both",lineWidth:this.deepQuery(d,"itemStyle.normal.borderWidth"),strokeColor:this.deepQuery(d,"itemStyle.normal.borderColor")},highlightStyle:{color:this.deepQuery(d,"itemStyle.emphasis.color"),lineWidth:this.deepQuery(d,"itemStyle.emphasis.borderWidth"),strokeColor:this.deepQuery(d,"itemStyle.emphasis.borderColor")},clickable:n.clickable,position:[V+a[0],U+a[1]]});m.pack(u,e,t,i.data,i.rawIndex,i.id,i.category),this.shapeList.push(u),i.shape=u},this)},_buildLabels:function(e,t,i,a){var o=this.query(a,"itemStyle.normal.label.rotate"),r=this.query(a,"itemStyle.normal.label.distance"),s=this.parseCenter(this.zr,a.center),l=this.parseRadius(this.zr,a.radius),h=a.clockWise,m=h?1:-1;
    +
    +i.eachNode(function(t){var i=t.layout.startAngle/Math.PI*180*m,h=t.layout.endAngle/Math.PI*180*m,V=(i*-m+h*-m)/2;V%=360,0>V&&(V+=360);var d=90>=V||V>=270;V=V*Math.PI/180;var p=[Math.cos(V),-Math.sin(V)],c=0;c=a.ribbonType?a.showScaleText?35+r:r:r+t.layout.size;var u=U.scale([],p,l[1]+c);U.add(u,u,s);var y={zlevel:e.zlevel,z:e.z+1,hoverable:!1,style:{text:null==t.data.label?t.id:t.data.label,textAlign:d?"left":"right"}};o?(y.rotation=d?V:Math.PI+V,y.style.x=d?l[1]+c:-l[1]-c,y.style.y=0,y.position=s.slice()):(y.style.x=u[0],y.style.y=u[1]),y.style.color=this.deepQuery([t.data,a],"itemStyle.normal.label.textStyle.color")||"#000000",y.style.textFont=this.getFont(this.deepQuery([t.data,a],"itemStyle.normal.label.textStyle")),y=new n(y),this.shapeList.push(y),t.labelShape=y},this)},_buildRibbons:function(e,t,i,n){var a=e[t],o=this.parseCenter(this.zr,n.center),s=this.parseRadius(this.zr,n.radius);i.eachEdge(function(l,h){var V,U=i.getEdge(l.node2,l.node1);if(U&&!l.shape){if(U.shape)return void(l.shape=U.shape);var d=l.layout.startAngle/Math.PI*180,p=l.layout.endAngle/Math.PI*180,c=U.layout.startAngle/Math.PI*180,u=U.layout.endAngle/Math.PI*180;V=this.getColor(1===e.length?l.layout.weight<=U.layout.weight?l.node1.id:l.node2.id:a.name);var y,g,b=this._getEdgeQueryTarget(a,l.data),f=this._getEdgeQueryTarget(a,l.data,"emphasis"),k=new r({zlevel:a.zlevel,z:a.z,style:{x:o[0],y:o[1],r:s[0],source0:d,source1:p,target0:c,target1:u,brushType:"both",opacity:this.deepQuery(b,"opacity"),color:V,lineWidth:this.deepQuery(b,"borderWidth"),strokeColor:this.deepQuery(b,"borderColor"),clockWise:n.clockWise},clickable:n.clickable,highlightStyle:{brushType:"both",opacity:this.deepQuery(f,"opacity"),lineWidth:this.deepQuery(f,"borderWidth"),strokeColor:this.deepQuery(f,"borderColor")}});l.layout.weight<=U.layout.weight?(y=U.node1,g=U.node2):(y=l.node1,g=l.node2),m.pack(k,a,t,l.data,null==l.rawIndex?h:l.rawIndex,l.data.name||y.id+"-"+g.id,y.id,g.id),this.shapeList.push(k),l.shape=k}},this)},_buildEdgeCurves:function(e,t,i,n,a){var o=e[t],r=this.parseCenter(this.zr,n.center);i.eachEdge(function(e,i){var n=a.getNodeById(e.node1.id),s=a.getNodeById(e.node2.id),h=n.shape,V=s.shape,U=this._getEdgeQueryTarget(o,e.data),d=this._getEdgeQueryTarget(o,e.data,"emphasis"),p=new l({zlevel:o.zlevel,z:o.z,style:{xStart:h.position[0],yStart:h.position[1],xEnd:V.position[0],yEnd:V.position[1],cpX1:r[0],cpY1:r[1],lineWidth:this.deepQuery(U,"width"),strokeColor:this.deepQuery(U,"color"),opacity:this.deepQuery(U,"opacity")},highlightStyle:{lineWidth:this.deepQuery(d,"width"),strokeColor:this.deepQuery(d,"color"),opacity:this.deepQuery(d,"opacity")}});m.pack(p,o,t,e.data,null==e.rawIndex?i:e.rawIndex,e.data.name||e.node1.id+"-"+e.node2.id,e.node1.id,e.node2.id),this.shapeList.push(p),e.shape=p},this)},_buildScales:function(e,t,i){var o,r,s=e.clockWise,l=this.parseCenter(this.zr,e.center),h=this.parseRadius(this.zr,e.radius),m=s?1:-1,V=0,d=-(1/0);e.showScaleText&&(i.eachNode(function(e){var t=e.data.value;t>d&&(d=t),V+=t}),d>1e10?(o="b",r=1e-9):d>1e7?(o="m",r=1e-6):d>1e4?(o="k",r=.001):(o="",r=1));var p=V/(360-e.padding);i.eachNode(function(t){for(var i=t.layout.startAngle/Math.PI*180,V=t.layout.endAngle/Math.PI*180,d=i;;){if(s&&d>V||!s&&V>d)break;var c=d/180*Math.PI,u=[Math.cos(c),Math.sin(c)],y=U.scale([],u,h[1]+1);U.add(y,y,l);var g=U.scale([],u,h[1]+this.scaleLineLength);U.add(g,g,l);var b=new a({zlevel:e.zlevel,z:e.z-1,hoverable:!1,style:{xStart:y[0],yStart:y[1],xEnd:g[0],yEnd:g[1],lineCap:"round",brushType:"stroke",strokeColor:"#666",lineWidth:1}});this.shapeList.push(b),d+=m*this.scaleUnitAngle}if(e.showScaleText)for(var f=i,k=5*p*this.scaleUnitAngle,x=0;;){if(s&&f>V||!s&&V>f)break;var c=f;c%=360,0>c&&(c+=360);var _=90>=c||c>=270,L=new n({zlevel:e.zlevel,z:e.z-1,hoverable:!1,style:{x:_?h[1]+this.scaleLineLength+4:-h[1]-this.scaleLineLength-4,y:0,text:Math.round(10*x)/10+o,textAlign:_?"left":"right"},position:l.slice(),rotation:_?[-c/180*Math.PI,0,0]:[-(c+180)/180*Math.PI,0,0]});this.shapeList.push(L),x+=k*r,f+=m*this.scaleUnitAngle*5}},this)},refresh:function(e){if(e&&(this.option=e,this.series=e.series),this.legend=this.component.legend,this.legend)this.getColor=function(e){return this.legend.getColor(e)},this.isSelected=function(e){return this.legend.isSelected(e)};else{var t={},i=0;this.getColor=function(e){return t[e]?t[e]:(t[e]||(t[e]=this.zr.getColor(i++)),t[e])},this.isSelected=function(){return!0}}this.backupShapeList(),this._init()},reformOption:function(e){var t=V.merge;e=t(t(e||{},this.ecTheme.chord),h.chord),e.itemStyle.normal.label.textStyle=this.getTextStyle(e.itemStyle.normal.label.textStyle),this.z=e.z,this.zlevel=e.zlevel}},V.inherits(t,i),e("../chart").define("chord",t),t}),i("echarts/util/shape/Ribbon",["require","zrender/shape/Base","zrender/shape/util/PathProxy","zrender/tool/util","zrender/tool/area"],function(e){function t(e){i.call(this,e),this._pathProxy=new n}var i=e("zrender/shape/Base"),n=e("zrender/shape/util/PathProxy"),a=e("zrender/tool/util"),o=e("zrender/tool/area");return t.prototype={type:"ribbon",buildPath:function(e,t){var i=t.clockWise||!1,n=this._pathProxy;n.begin(e);var a=t.x,o=t.y,r=t.r,s=t.source0/180*Math.PI,l=t.source1/180*Math.PI,h=t.target0/180*Math.PI,m=t.target1/180*Math.PI,V=a+Math.cos(s)*r,U=o+Math.sin(s)*r,d=a+Math.cos(l)*r,p=o+Math.sin(l)*r,c=a+Math.cos(h)*r,u=o+Math.sin(h)*r,y=a+Math.cos(m)*r,g=o+Math.sin(m)*r;n.moveTo(V,U),n.arc(a,o,t.r,s,l,!i),n.bezierCurveTo(.7*(a-d)+d,.7*(o-p)+p,.7*(a-c)+c,.7*(o-u)+u,c,u),(t.source0!==t.target0||t.source1!==t.target1)&&(n.arc(a,o,t.r,h,m,!i),n.bezierCurveTo(.7*(a-y)+y,.7*(o-g)+g,.7*(a-V)+V,.7*(o-U)+U,V,U))},getRect:function(e){return e.__rect?e.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,e),this._pathProxy.fastBoundingRect())},isCover:function(e,t){var i=this.getRect(this.style);return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height?o.isInsidePath(this._pathProxy.pathCommands,0,"fill",e,t):void 0}},a.inherits(t,i),t}),i("echarts/data/Graph",["require","zrender/tool/util"],function(e){var t=e("zrender/tool/util"),i=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={}};i.prototype.isDirected=function(){return this._directed},i.prototype.addNode=function(e,t){if(this._nodesMap[e])return this._nodesMap[e];var n=new i.Node(e,t);return this.nodes.push(n),this._nodesMap[e]=n,n},i.prototype.getNodeById=function(e){return this._nodesMap[e]},i.prototype.addEdge=function(e,t,n){if("string"==typeof e&&(e=this._nodesMap[e]),"string"==typeof t&&(t=this._nodesMap[t]),e&&t){var a=e.id+"-"+t.id;if(this._edgesMap[a])return this._edgesMap[a];var o=new i.Edge(e,t,n);return this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),this._edgesMap[a]=o,o}},i.prototype.removeEdge=function(e){var i=e.node1,n=e.node2,a=i.id+"-"+n.id;this._directed&&(i.outEdges.splice(t.indexOf(i.outEdges,e),1),n.inEdges.splice(t.indexOf(n.inEdges,e),1)),i.edges.splice(t.indexOf(i.edges,e),1),i!==n&&n.edges.splice(t.indexOf(n.edges,e),1),delete this._edgesMap[a],this.edges.splice(t.indexOf(this.edges,e),1)},i.prototype.getEdge=function(e,t){return"string"!=typeof e&&(e=e.id),"string"!=typeof t&&(t=t.id),this._directed?this._edgesMap[e+"-"+t]:this._edgesMap[e+"-"+t]||this._edgesMap[t+"-"+e]},i.prototype.removeNode=function(e){if("string"!=typeof e||(e=this._nodesMap[e])){delete this._nodesMap[e.id],this.nodes.splice(t.indexOf(this.nodes,e),1);for(var i=0;i<this.edges.length;){var n=this.edges[i];n.node1===e||n.node2===e?this.removeEdge(n):i++}}},i.prototype.filterNode=function(e,t){for(var i=this.nodes.length,n=0;i>n;)e.call(t,this.nodes[n],n)?n++:(this.removeNode(this.nodes[n]),i--)},i.prototype.filterEdge=function(e,t){for(var i=this.edges.length,n=0;i>n;)e.call(t,this.edges[n],n)?n++:(this.removeEdge(this.edges[n]),i--)},i.prototype.eachNode=function(e,t){for(var i=this.nodes.length,n=0;i>n;n++)this.nodes[n]&&e.call(t,this.nodes[n],n)},i.prototype.eachEdge=function(e,t){for(var i=this.edges.length,n=0;i>n;n++)this.edges[n]&&e.call(t,this.edges[n],n)},i.prototype.clear=function(){this.nodes.length=0,this.edges.length=0,this._nodesMap={},this._edgesMap={}},i.prototype.breadthFirstTraverse=function(e,t,i,n){if("string"==typeof t&&(t=this._nodesMap[t]),t){var a="edges";"out"===i?a="outEdges":"in"===i&&(a="inEdges");for(var o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var r=[t];r.length;)for(var s=r.shift(),l=s[a],o=0;o<l.length;o++){var h=l[o],m=h.node1===s?h.node2:h.node1;if(!m.__visited){if(e.call(m,m,s))return;r.push(m),m.__visited=!0}}}},i.prototype.clone=function(){for(var e=new i(this._directed),t=0;t<this.nodes.length;t++)e.addNode(this.nodes[t].id,this.nodes[t].data);for(var t=0;t<this.edges.length;t++){var n=this.edges[t];e.addEdge(n.node1.id,n.node2.id,n.data)}return e};var n=function(e,t){this.id=e,this.data=t||null,this.inEdges=[],this.outEdges=[],this.edges=[]};n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length};var a=function(e,t,i){this.node1=e,this.node2=t,this.data=i||null};return i.Node=n,i.Edge=a,i.fromMatrix=function(e,t,n){if(t&&t.length&&t[0].length===t.length&&e.length===t.length){for(var a=t.length,o=new i(n),r=0;a>r;r++){var s=o.addNode(e[r].id,e[r]);s.data.value=0,n&&(s.data.outValue=s.data.inValue=0)}for(var r=0;a>r;r++)for(var l=0;a>l;l++){var h=t[r][l];n&&(o.nodes[r].data.outValue+=h,o.nodes[l].data.inValue+=h),o.nodes[r].data.value+=h,o.nodes[l].data.value+=h}for(var r=0;a>r;r++)for(var l=r;a>l;l++){var h=t[r][l];if(0!==h){var m=o.nodes[r],V=o.nodes[l],U=o.addEdge(m,V,{});if(U.data.weight=h,r!==l&&n&&t[l][r]){var d=o.addEdge(V,m,{});d.data.weight=t[l][r]}}}return o}},i}),i("echarts/layout/Chord",["require"],function(){var e=function(e){e=e||{},this.sort=e.sort||null,this.sortSub=e.sortSub||null,this.padding=.05,this.startAngle=e.startAngle||0,this.clockWise=null==e.clockWise?!1:e.clockWise,this.center=e.center||[0,0],this.directed=!0};e.prototype.run=function(e){e instanceof Array||(e=[e]);var n=e.length;if(n){for(var a=e[0],o=a.nodes.length,r=[],s=0,l=0;o>l;l++){var h=a.nodes[l],m={size:0,subGroups:[],node:h};r.push(m);for(var V=0,U=0;U<e.length;U++){var d=e[U],p=d.getNodeById(h.id);if(p){m.size+=p.layout.size;for(var c=this.directed?p.outEdges:p.edges,u=0;u<c.length;u++){var y=c[u],g=y.layout.weight;m.subGroups.push({weight:g,edge:y,graph:d}),V+=g}}}s+=m.size;for(var b=m.size/V,u=0;u<m.subGroups.length;u++)m.subGroups[u].weight*=b;"ascending"===this.sortSub?m.subGroups.sort(t):"descending"===this.sort&&(m.subGroups.sort(t),m.subGroups.reverse())}"ascending"===this.sort?r.sort(i):"descending"===this.sort&&(r.sort(i),r.reverse());for(var b=(2*Math.PI-this.padding*o)/s,f=this.startAngle,k=this.clockWise?1:-1,l=0;o>l;l++){var m=r[l];m.node.layout.startAngle=f,m.node.layout.endAngle=f+k*m.size*b,m.node.layout.subGroups=[];for(var u=0;u<m.subGroups.length;u++){var x=m.subGroups[u];x.edge.layout.startAngle=f,f+=k*x.weight*b,x.edge.layout.endAngle=f}f=m.node.layout.endAngle+k*this.padding}}};var t=function(e,t){return e.weight-t.weight},i=function(e,t){return e.size-t.size};return e}),i("echarts/chart/force",["require","./base","../data/Graph","../layout/Force","zrender/shape/Line","zrender/shape/BezierCurve","zrender/shape/Image","../util/shape/Icon","../config","../util/ecData","zrender/tool/util","zrender/config","zrender/tool/vector","../chart"],function(e){"use strict";function t(e,t,o,h,m){var V=this;r.call(this,e,t,o,h,m),this.__nodePositionMap={},this._graph=new s(!0),this._layout=new l,this._layout.onupdate=function(){V._step()},this._steps=1,this.ondragstart=function(){i.apply(V,arguments)},this.ondragend=function(){a.apply(V,arguments)},this.ondrop=function(){},this.shapeHandler.ondragstart=function(){V.isDragstart=!0},this.onmousemove=function(){n.apply(V,arguments)},this.refresh(h)}function i(e){if(this.isDragstart&&e.target){var t=e.target;t.fixed=!0,this.isDragstart=!1,this.zr.on(u.EVENT.MOUSEMOVE,this.onmousemove)}}function n(){this._layout.temperature=.8,this._step()}function a(e,t){if(this.isDragend&&e.target){var i=e.target;i.fixed=!1,t.dragIn=!0,t.needRefresh=!1,this.isDragend=!1,this.zr.un(u.EVENT.MOUSEMOVE,this.onmousemove)}}function o(e,t,i){var n=y.create();return n[0]=(Math.random()-.5)*i+e,n[1]=(Math.random()-.5)*i+t,n}var r=e("./base"),s=e("../data/Graph"),l=e("../layout/Force"),h=e("zrender/shape/Line"),m=e("zrender/shape/BezierCurve"),V=e("zrender/shape/Image"),U=e("../util/shape/Icon"),d=e("../config");d.force={zlevel:1,z:2,center:["50%","50%"],size:"100%",preventOverlap:!1,coolDown:.99,minRadius:10,maxRadius:20,ratioScaling:!1,large:!1,useWorker:!1,steps:1,scaling:1,gravity:1,symbol:"circle",symbolSize:0,linkSymbol:null,linkSymbolSize:[10,15],draggable:!0,clickable:!0,roam:!1,itemStyle:{normal:{label:{show:!1,position:"inside"},nodeStyle:{brushType:"both",borderColor:"#5182ab",borderWidth:1},linkStyle:{color:"#5182ab",width:1,type:"line"}},emphasis:{label:{show:!1},nodeStyle:{},linkStyle:{opacity:0}}}};var p=e("../util/ecData"),c=e("zrender/tool/util"),u=e("zrender/config"),y=e("zrender/tool/vector");return t.prototype={constructor:t,type:d.CHART_TYPE_FORCE,_init:function(){this.selectedMap={};var e,t=this.component.legend,i=this.series;this.clear();for(var n=0,a=i.length;a>n;n++){var o=i[n];if(o.type===d.CHART_TYPE_FORCE){if(i[n]=this.reformOption(i[n]),e=i[n].name||"",this.selectedMap[e]=t?t.isSelected(e):!0,!this.selectedMap[e])continue;this.buildMark(n),this._initSerie(o,n);break}}this.animationEffect()},_getNodeCategory:function(e,t){return e.categories&&e.categories[t.category||0]},_getNodeQueryTarget:function(e,t,i){i=i||"normal";var n=this._getNodeCategory(e,t)||{};return[t.itemStyle&&t.itemStyle[i],n&&n.itemStyle&&n.itemStyle[i],e.itemStyle[i].nodeStyle]},_getEdgeQueryTarget:function(e,t,i){return i=i||"normal",[t.itemStyle&&t.itemStyle[i],e.itemStyle[i].linkStyle]},_initSerie:function(e,t){this._temperature=1,e.matrix?this._graph=this._getSerieGraphFromDataMatrix(e):e.links&&(this._graph=this._getSerieGraphFromNodeLinks(e)),this._buildLinkShapes(e,t),this._buildNodeShapes(e,t);var i=e.roam===!0||"move"===e.roam,n=e.roam===!0||"scale"===e.roam;this.zr.modLayer(this.getZlevelBase(),{panable:i,zoomable:n}),(this.query("markPoint.effect.show")||this.query("markLine.effect.show"))&&this.zr.modLayer(d.EFFECT_ZLEVEL,{panable:i,zoomable:n}),this._initLayout(e),this._step()},_getSerieGraphFromDataMatrix:function(e){for(var t=[],i=0,n=[],a=0;a<e.matrix.length;a++)n[a]=e.matrix[a].slice();for(var o=e.data||e.nodes,a=0;a<o.length;a++){var r={},l=o[a];for(var h in l)"name"===h?r.id=l.name:r[h]=l[h];var m=this._getNodeCategory(e,l),V=m?m.name:l.name;if(this.selectedMap[V]=this.isSelected(V),this.selectedMap[V])t.push(r),i++;else{n.splice(i,1);for(var U=0;U<n.length;U++)n[U].splice(i,1)}}var d=s.fromMatrix(t,n,!0);return d.eachNode(function(e,t){e.layout={size:e.data.value,mass:0},e.rawIndex=t}),d.eachEdge(function(e){e.layout={weight:e.data.weight}}),d},_getSerieGraphFromNodeLinks:function(e){for(var t=new s(!0),i=e.data||e.nodes,n=0,a=i.length;a>n;n++){var o=i[n];if(o&&!o.ignore){var r=this._getNodeCategory(e,o),l=r?r.name:o.name;if(this.selectedMap[l]=this.isSelected(l),this.selectedMap[l]){var h=t.addNode(o.name,o);h.rawIndex=n}}}for(var n=0,a=e.links.length;a>n;n++){var m=e.links[n],V=m.source,U=m.target;"number"==typeof V&&(V=i[V],V&&(V=V.name)),"number"==typeof U&&(U=i[U],U&&(U=U.name));var d=t.addEdge(V,U,m);d&&(d.rawIndex=n)}return t.eachNode(function(e){var t=e.data.value;if(null==t){t=0;for(var i=0;i<e.edges.length;i++)t+=e.edges[i].data.weight||0}e.layout={size:t,mass:0}}),t.eachEdge(function(e){e.layout={weight:null==e.data.weight?1:e.data.weight}}),t},_initLayout:function(e){var t=this._graph,i=t.nodes.length,n=this.query(e,"minRadius"),a=this.query(e,"maxRadius");this._steps=e.steps||1;var r=this._layout;r.center=this.parseCenter(this.zr,e.center),r.width=this.parsePercent(e.size,this.zr.getWidth()),r.height=this.parsePercent(e.size,this.zr.getHeight()),r.large=e.large,r.scaling=e.scaling,r.ratioScaling=e.ratioScaling,r.gravity=e.gravity,r.temperature=1,r.coolDown=e.coolDown,r.preventNodeEdgeOverlap=e.preventOverlap,r.preventNodeOverlap=e.preventOverlap;for(var s=1/0,l=-(1/0),h=0;i>h;h++){var m=t.nodes[h];l=Math.max(m.layout.size,l),s=Math.min(m.layout.size,s)}for(var V=l-s,h=0;i>h;h++){var m=t.nodes[h];V>0?(m.layout.size=(m.layout.size-s)*(a-n)/V+n,m.layout.mass=m.layout.size/a):(m.layout.size=(a-n)/2,m.layout.mass=.5)}for(var h=0;i>h;h++){var m=t.nodes[h];if("undefined"!=typeof this.__nodePositionMap[m.id])m.layout.position=y.create(),y.copy(m.layout.position,this.__nodePositionMap[m.id]);else if("undefined"!=typeof m.data.initial)m.layout.position=y.create(),y.copy(m.layout.position,m.data.initial);else{var U=this._layout.center,d=Math.min(this._layout.width,this._layout.height);m.layout.position=o(U[0],U[1],.8*d)}var p=m.shape.style,c=m.layout.size;p.width=p.width||2*c,p.height=p.height||2*c,p.x=-p.width/2,p.y=-p.height/2,y.copy(m.shape.position,m.layout.position)}i=t.edges.length,l=-(1/0);for(var h=0;i>h;h++){var u=t.edges[h];u.layout.weight>l&&(l=u.layout.weight)}for(var h=0;i>h;h++){var u=t.edges[h];u.layout.weight/=l}this._layout.init(t,e.useWorker)},_buildNodeShapes:function(e,t){var i=this._graph,n=this.query(e,"categories");i.eachNode(function(i){var a=this._getNodeCategory(e,i.data),o=[i.data,a,e],r=this._getNodeQueryTarget(e,i.data),s=this._getNodeQueryTarget(e,i.data,"emphasis"),l=new U({style:{x:0,y:0,color:this.deepQuery(r,"color"),brushType:"both",strokeColor:this.deepQuery(r,"strokeColor")||this.deepQuery(r,"borderColor"),lineWidth:this.deepQuery(r,"lineWidth")||this.deepQuery(r,"borderWidth")},highlightStyle:{color:this.deepQuery(s,"color"),strokeColor:this.deepQuery(s,"strokeColor")||this.deepQuery(s,"borderColor"),lineWidth:this.deepQuery(s,"lineWidth")||this.deepQuery(s,"borderWidth")},clickable:e.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()});l.style.color||(l.style.color=this.getColor(a?a.name:i.id)),l.style.iconType=this.deepQuery(o,"symbol");var h=this.deepQuery(o,"symbolSize")||0;"number"==typeof h&&(h=[h,h]),l.style.width=2*h[0],l.style.height=2*h[1],l.style.iconType.match("image")&&(l.style.image=l.style.iconType.replace(new RegExp("^image:\\/\\/"),""),l=new V({style:l.style,highlightStyle:l.highlightStyle,clickable:l.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()})),this.deepQuery(o,"itemStyle.normal.label.show")&&(l.style.text=null==i.data.label?i.id:i.data.label,l.style.textPosition=this.deepQuery(o,"itemStyle.normal.label.position"),l.style.textColor=this.deepQuery(o,"itemStyle.normal.label.textStyle.color"),l.style.textFont=this.getFont(this.deepQuery(o,"itemStyle.normal.label.textStyle")||{})),this.deepQuery(o,"itemStyle.emphasis.label.show")&&(l.highlightStyle.textPosition=this.deepQuery(o,"itemStyle.emphasis.label.position"),l.highlightStyle.textColor=this.deepQuery(o,"itemStyle.emphasis.label.textStyle.color"),l.highlightStyle.textFont=this.getFont(this.deepQuery(o,"itemStyle.emphasis.label.textStyle")||{})),this.deepQuery(o,"draggable")&&(this.setCalculable(l),l.dragEnableTime=0,l.draggable=!0,l.ondragstart=this.shapeHandler.ondragstart,l.ondragover=null);var m="";if("undefined"!=typeof i.category){var a=n[i.category];m=a&&a.name||""}p.pack(l,e,t,i.data,i.rawIndex,i.data.name||"",i.category),this.shapeList.push(l),this.zr.addShape(l),i.shape=l},this)},_buildLinkShapes:function(e,t){for(var i=this._graph,n=i.edges.length,a=0;n>a;a++){var o=i.edges[a],r=o.data,s=o.node1,l=o.node2,V=i.getEdge(l,s),d=this._getEdgeQueryTarget(e,r),u=this.deepQuery(d,"type");e.linkSymbol&&"none"!==e.linkSymbol&&(u="line");var y="line"===u?h:m,g=new y({style:{xStart:0,yStart:0,xEnd:0,yEnd:0},clickable:this.query(e,"clickable"),highlightStyle:{},zlevel:this.getZlevelBase(),z:this.getZBase()});if(V&&V.shape&&(g.style.offset=4,V.shape.style.offset=4),c.merge(g.style,this.query(e,"itemStyle.normal.linkStyle"),!0),c.merge(g.highlightStyle,this.query(e,"itemStyle.emphasis.linkStyle"),!0),"undefined"!=typeof r.itemStyle&&(r.itemStyle.normal&&c.merge(g.style,r.itemStyle.normal,!0),r.itemStyle.emphasis&&c.merge(g.highlightStyle,r.itemStyle.emphasis,!0)),g.style.lineWidth=g.style.lineWidth||g.style.width,g.style.strokeColor=g.style.strokeColor||g.style.color,g.highlightStyle.lineWidth=g.highlightStyle.lineWidth||g.highlightStyle.width,g.highlightStyle.strokeColor=g.highlightStyle.strokeColor||g.highlightStyle.color,p.pack(g,e,t,o.data,null==o.rawIndex?a:o.rawIndex,o.data.name||s.id+" - "+l.id,s.id,l.id),this.shapeList.push(g),this.zr.addShape(g),o.shape=g,e.linkSymbol&&"none"!==e.linkSymbol){var b=new U({style:{x:-5,y:0,width:e.linkSymbolSize[0],height:e.linkSymbolSize[1],iconType:e.linkSymbol,brushType:"fill",color:g.style.strokeColor},highlightStyle:{brushType:"fill"},position:[0,0],rotation:0,zlevel:this.getZlevelBase(),z:this.getZBase()});g._symbolShape=b,this.shapeList.push(b),this.zr.addShape(b)}}},_updateLinkShapes:function(){for(var e=y.create(),t=y.create(),i=y.create(),n=y.create(),a=this._graph.edges,o=0,r=a.length;r>o;o++){var s=a[o],l=s.node1.shape,h=s.node2.shape;y.copy(i,l.position),y.copy(n,h.position);var m=s.shape.style;if(y.sub(e,i,n),y.normalize(e,e),m.offset?(t[0]=e[1],t[1]=-e[0],y.scaleAndAdd(i,i,t,m.offset),y.scaleAndAdd(n,n,t,m.offset)):"bezier-curve"===s.shape.type&&(m.cpX1=(i[0]+n[0])/2-(n[1]-i[1])/4,m.cpY1=(i[1]+n[1])/2-(i[0]-n[0])/4),m.xStart=i[0],m.yStart=i[1],m.xEnd=n[0],m.yEnd=n[1],s.shape.modSelf(),s.shape._symbolShape){var V=s.shape._symbolShape;y.copy(V.position,n),y.scaleAndAdd(V.position,V.position,e,h.style.width/2+2);var U=Math.atan2(e[1],e[0]);V.rotation=Math.PI/2-U,V.modSelf()}}},_syncNodePositions:function(){for(var e=this._graph,t=0;t<e.nodes.length;t++){var i=e.nodes[t],n=i.layout.position,a=i.data,o=i.shape,r=o.fixed||a.fixX,s=o.fixed||a.fixY;r===!0?r=1:isNaN(r)&&(r=0),s===!0?s=1:isNaN(s)&&(s=0),o.position[0]+=(n[0]-o.position[0])*(1-r),o.position[1]+=(n[1]-o.position[1])*(1-s),y.copy(n,o.position);var l=a.name;if(l){var h=this.__nodePositionMap[l];h||(h=this.__nodePositionMap[l]=y.create()),y.copy(h,n)}o.modSelf()}},_step:function(){this._syncNodePositions(),this._updateLinkShapes(),this.zr.refreshNextFrame(),this._layout.temperature>.01?this._layout.step(this._steps):this.messageCenter.dispatch(d.EVENT.FORCE_LAYOUT_END,{},{},this.myChart)},refresh:function(e){if(e&&(this.option=e,this.series=this.option.series),this.legend=this.component.legend,this.legend)this.getColor=function(e){return this.legend.getColor(e)},this.isSelected=function(e){return this.legend.isSelected(e)};else{var t={},i=0;this.getColor=function(e){return t[e]?t[e]:(t[e]||(t[e]=this.zr.getColor(i++)),t[e])},this.isSelected=function(){return!0}}this._init()},dispose:function(){this.clear(),this.shapeList=null,this.effectList=null,this._layout.dispose(),this._layout=null,this.__nodePositionMap={}},getPosition:function(){var e=[];return this._graph.eachNode(function(t){t.layout&&e.push({name:t.data.name,position:Array.prototype.slice.call(t.layout.position)})}),e}},c.inherits(t,r),e("../chart").define("force",t),t}),i("echarts/layout/Force",["require","./forceLayoutWorker","zrender/tool/vector"],function(e){function t(){if("undefined"!=typeof Worker&&"undefined"!=typeof Blob)try{var e=new Blob([n.getWorkerCode()]);i=window.URL.createObjectURL(e)}catch(t){i=""}return i}var i,n=e("./forceLayoutWorker"),a=e("zrender/tool/vector"),o=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},r="undefined"==typeof Float32Array?Array:Float32Array,s=function(e){"undefined"==typeof i&&t(),e=e||{},this.width=e.width||500,this.height=e.height||500,this.center=e.center||[this.width/2,this.height/2],this.ratioScaling=e.ratioScaling||!1,this.scaling=e.scaling||1,this.gravity="undefined"!=typeof e.gravity?e.gravity:1,this.large=e.large||!1,this.preventNodeOverlap=e.preventNodeOverlap||!1,this.preventNodeEdgeOverlap=e.preventNodeEdgeOverlap||!1,this.maxSpeedIncrease=e.maxSpeedIncrease||1,this.onupdate=e.onupdate||function(){},this.temperature=e.temperature||1,this.coolDown=e.coolDown||.99,this._layout=null,this._layoutWorker=null;var n=this,a=this._$onupdate;this._$onupdate=function(e){a.call(n,e)}};return s.prototype.updateConfig=function(){var e=this.width,t=this.height,i=Math.min(e,t),n={center:this.center,width:this.ratioScaling?e:i,height:this.ratioScaling?t:i,scaling:this.scaling||1,gravity:this.gravity||1,barnesHutOptimize:this.large,preventNodeOverlap:this.preventNodeOverlap,preventNodeEdgeOverlap:this.preventNodeEdgeOverlap,maxSpeedIncrease:this.maxSpeedIncrease};if(this._layoutWorker)this._layoutWorker.postMessage({cmd:"updateConfig",config:n});else for(var a in n)this._layout[a]=n[a]},s.prototype.init=function(e,t){if(this._layoutWorker&&(this._layoutWorker.terminate(),this._layoutWorker=null),i&&t)try{this._layoutWorker||(this._layoutWorker=new Worker(i),this._layoutWorker.onmessage=this._$onupdate),this._layout=null}catch(a){this._layoutWorker=null,this._layout||(this._layout=new n)}else this._layout||(this._layout=new n);this.temperature=1,this.graph=e;for(var o=e.nodes.length,s=new r(2*o),l=new r(o),h=new r(o),m=0;o>m;m++){var V=e.nodes[m];s[2*m]=V.layout.position[0],s[2*m+1]=V.layout.position[1],l[m]="undefined"==typeof V.layout.mass?1:V.layout.mass,h[m]="undefined"==typeof V.layout.size?1:V.layout.size,V.layout.__index=m}o=e.edges.length;for(var U=new r(2*o),d=new r(o),m=0;o>m;m++){var p=e.edges[m];U[2*m]=p.node1.layout.__index,U[2*m+1]=p.node2.layout.__index,d[m]=p.layout.weight||1}this._layoutWorker?this._layoutWorker.postMessage({cmd:"init",nodesPosition:s,nodesMass:l,nodesSize:h,edges:U,edgesWeight:d}):(this._layout.initNodes(s,l,h),this._layout.initEdges(U,d)),this.updateConfig()},s.prototype.step=function(e){var t=this.graph.nodes;if(this._layoutWorker){for(var i=new r(2*t.length),n=0;n<t.length;n++){var s=t[n];i[2*n]=s.layout.position[0],i[2*n+1]=s.layout.position[1]}this._layoutWorker.postMessage(i.buffer,[i.buffer]),this._layoutWorker.postMessage({cmd:"update",steps:e,temperature:this.temperature,coolDown:this.coolDown});for(var n=0;e>n;n++)this.temperature*=this.coolDown}else{o(this._$onupdate);for(var n=0;n<t.length;n++){var s=t[n];a.copy(this._layout.nodes[n].position,s.layout.position)}for(var n=0;e>n;n++)this._layout.temperature=this.temperature,this._layout.update(),this.temperature*=this.coolDown}},s.prototype._$onupdate=function(e){if(this._layoutWorker){for(var t=new Float32Array(e.data),i=0;i<this.graph.nodes.length;i++){var n=this.graph.nodes[i];n.layout.position[0]=t[2*i],n.layout.position[1]=t[2*i+1]}this.onupdate&&this.onupdate()}else if(this._layout){for(var i=0;i<this.graph.nodes.length;i++){var n=this.graph.nodes[i];a.copy(n.layout.position,this._layout.nodes[i].position)}this.onupdate&&this.onupdate()}},s.prototype.dispose=function(){this._layoutWorker&&this._layoutWorker.terminate(),this._layoutWorker=null,this._layout=null},s}),i("echarts/layout/forceLayoutWorker",["require","zrender/tool/vector"],function o(e){"use strict";function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new l(4),this.size=0}function i(){this.position=r.create(),this.force=r.create(),this.forcePrev=r.create(),this.speed=r.create(),this.speedPrev=r.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function n(e,t){this.node1=e,this.node2=t,this.weight=1}function a(){this.barnesHutOptimize=!1,this.barnesHutTheta=1.5,this.repulsionByDegree=!1,this.preventNodeOverlap=!1,this.preventNodeEdgeOverlap=!1,this.strongGravity=!0,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.center=[0,0],this.width=500,this.height=500,this.maxSpeedIncrease=1,this.nodes=[],this.edges=[],this.bbox=new l(4),this._rootRegion=new t,this._rootRegion.centerOfMass=r.create(),this._massArr=null,this._k=0}var r,s="undefined"==typeof window&&"undefined"==typeof e;r=s?{create:function(e,t){var i=new Float32Array(2);return i[0]=e||0,i[1]=t||0,i},dist:function(e,t){var i=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(i*i+n*n)},len:function(e){var t=e[0],i=e[1];return Math.sqrt(t*t+i*i)},scaleAndAdd:function(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e},scale:function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e},add:function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e},sub:function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},normalize:function(e,t){var i=t[0],n=t[1],a=i*i+n*n;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a),e},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},set:function(e,t,i){return e[0]=t,e[1]=i,e}}:e("zrender/tool/vector");var l="undefined"==typeof Float32Array?Array:Float32Array;if(t.prototype.beforeUpdate=function(){for(var e=0;e<this.nSubRegions;e++)this.subRegions[e].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},t.prototype.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var e=0;e<this.nSubRegions;e++)this.subRegions[e].afterUpdate()},t.prototype.addNode=function(e){if(0===this.nSubRegions){if(null==this.node)return void(this.node=e);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion(e),this._updateCenterOfMass(e)},t.prototype.findSubRegion=function(e,t){for(var i=0;i<this.nSubRegions;i++){var n=this.subRegions[i];if(n.contain(e,t))return n}},t.prototype.contain=function(e,t){return this.bbox[0]<=e&&this.bbox[2]>=e&&this.bbox[1]<=t&&this.bbox[3]>=t},t.prototype.setBBox=function(e,t,i,n){this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=i,this.bbox[3]=n,this.size=(i-e+n-t)/2},t.prototype._newSubRegion=function(){var e=this.subRegions[this.nSubRegions];return e||(e=new t,this.subRegions[this.nSubRegions]=e),this.nSubRegions++,e},t.prototype._addNodeToSubRegion=function(e){var t=this.findSubRegion(e.position[0],e.position[1]),i=this.bbox;if(!t){var n=(i[0]+i[2])/2,a=(i[1]+i[3])/2,o=(i[2]-i[0])/2,r=(i[3]-i[1])/2,s=e.position[0]>=n?1:0,l=e.position[1]>=a?1:0,t=this._newSubRegion();t.setBBox(s*o+i[0],l*r+i[1],(s+1)*o+i[0],(l+1)*r+i[1])}t.addNode(e)},t.prototype._updateCenterOfMass=function(e){null==this.centerOfMass&&(this.centerOfMass=r.create());var t=this.centerOfMass[0]*this.mass,i=this.centerOfMass[1]*this.mass;t+=e.position[0]*e.mass,i+=e.position[1]*e.mass,this.mass+=e.mass,this.centerOfMass[0]=t/this.mass,this.centerOfMass[1]=i/this.mass},a.prototype.nodeToNodeRepulsionFactor=function(e,t,i){return i*i*e/t},a.prototype.edgeToNodeRepulsionFactor=function(e,t,i){return i*e/t},a.prototype.attractionFactor=function(e,t,i){return e*t/i},a.prototype.initNodes=function(e,t,n){this.temperature=1;var a=e.length/2;this.nodes.length=0;for(var o="undefined"!=typeof n,r=0;a>r;r++){var s=new i;s.position[0]=e[2*r],s.position[1]=e[2*r+1],s.mass=t[r],o&&(s.size=n[r]),this.nodes.push(s)}this._massArr=t,o&&(this._sizeArr=n)},a.prototype.initEdges=function(e,t){var i=e.length/2;this.edges.length=0;for(var a="undefined"!=typeof t,o=0;i>o;o++){var r=e[2*o],s=e[2*o+1],l=this.nodes[r],h=this.nodes[s];if(l&&h){l.outDegree++,h.inDegree++;var m=new n(l,h);a&&(m.weight=t[o]),this.edges.push(m)}}},a.prototype.update=function(){var e=this.nodes.length;if(this.updateBBox(),this._k=.4*this.scaling*Math.sqrt(this.width*this.height/e),this.barnesHutOptimize){this._rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this._rootRegion.beforeUpdate();for(var t=0;e>t;t++)this._rootRegion.addNode(this.nodes[t]);this._rootRegion.afterUpdate()}else{var i=0,n=this._rootRegion.centerOfMass;r.set(n,0,0);for(var t=0;e>t;t++){var a=this.nodes[t];i+=a.mass,r.scaleAndAdd(n,n,a.position,a.mass);
    +
    +}i>0&&r.scale(n,n,1/i)}this.updateForce(),this.updatePosition()},a.prototype.updateForce=function(){for(var e=this.nodes.length,t=0;e>t;t++){var i=this.nodes[t];r.copy(i.forcePrev,i.force),r.copy(i.speedPrev,i.speed),r.set(i.force,0,0)}this.updateNodeNodeForce(),this.gravity>0&&this.updateGravityForce(),this.updateEdgeForce(),this.preventNodeEdgeOverlap&&this.updateNodeEdgeForce()},a.prototype.updatePosition=function(){for(var e=this.nodes.length,t=r.create(),i=0;e>i;i++){var n=this.nodes[i],a=n.speed;r.scale(n.force,n.force,1/30);var o=r.len(n.force)+.1,s=Math.min(o,500)/o;r.scale(n.force,n.force,s),r.add(a,a,n.force),r.scale(a,a,this.temperature),r.sub(t,a,n.speedPrev);var l=r.len(t);if(l>0){r.scale(t,t,1/l);var h=r.len(n.speedPrev);h>0&&(l=Math.min(l/h,this.maxSpeedIncrease)*h,r.scaleAndAdd(a,n.speedPrev,t,l))}var m=r.len(a),s=Math.min(m,100)/(m+.1);r.scale(a,a,s),r.add(n.position,n.position,a)}},a.prototype.updateNodeNodeForce=function(){for(var e=this.nodes.length,t=0;e>t;t++){var i=this.nodes[t];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this._rootRegion,i);else for(var n=t+1;e>n;n++){var a=this.nodes[n];this.applyNodeToNodeRepulsion(i,a,!1)}}},a.prototype.updateGravityForce=function(){for(var e=0;e<this.nodes.length;e++)this.applyNodeGravity(this.nodes[e])},a.prototype.updateEdgeForce=function(){for(var e=0;e<this.edges.length;e++)this.applyEdgeAttraction(this.edges[e])},a.prototype.updateNodeEdgeForce=function(){for(var e=0;e<this.nodes.length;e++)for(var t=0;t<this.edges.length;t++)this.applyEdgeToNodeRepulsion(this.edges[t],this.nodes[e])},a.prototype.applyRegionToNodeRepulsion=function(){var e=r.create();return function(t,i){if(t.node)this.applyNodeToNodeRepulsion(t.node,i,!0);else{if(0===t.mass&&0===i.mass)return;r.sub(e,i.position,t.centerOfMass);var n=e[0]*e[0]+e[1]*e[1];if(n>this.barnesHutTheta*t.size*t.size){var a=this._k*this._k*(i.mass+t.mass)/(n+1);r.scaleAndAdd(i.force,i.force,e,2*a)}else for(var o=0;o<t.nSubRegions;o++)this.applyRegionToNodeRepulsion(t.subRegions[o],i)}}}(),a.prototype.applyNodeToNodeRepulsion=function(){var e=r.create();return function(t,i,n){if(t!==i&&(0!==t.mass||0!==i.mass)){r.sub(e,t.position,i.position);var a=e[0]*e[0]+e[1]*e[1];if(0!==a){var o,s=t.mass+i.mass,l=Math.sqrt(a);r.scale(e,e,1/l),this.preventNodeOverlap?(l=l-t.size-i.size,l>0?o=this.nodeToNodeRepulsionFactor(s,l,this._k):0>=l&&(o=this._k*this._k*10*s)):o=this.nodeToNodeRepulsionFactor(s,l,this._k),n||r.scaleAndAdd(t.force,t.force,e,2*o),r.scaleAndAdd(i.force,i.force,e,2*-o)}}}}(),a.prototype.applyEdgeAttraction=function(){var e=r.create();return function(t){var i=t.node1,n=t.node2;r.sub(e,i.position,n.position);var a,o=r.len(e);a=0===this.edgeWeightInfluence?1:1==this.edgeWeightInfluence?t.weight:Math.pow(t.weight,this.edgeWeightInfluence);var s;if(!(this.preventOverlap&&(o=o-i.size-n.size,0>=o))){var s=this.attractionFactor(a,o,this._k);r.scaleAndAdd(i.force,i.force,e,-s),r.scaleAndAdd(n.force,n.force,e,s)}}}(),a.prototype.applyNodeGravity=function(){var e=r.create();return function(t){r.sub(e,this.center,t.position),this.width>this.height?e[1]*=this.width/this.height:e[0]*=this.height/this.width;var i=r.len(e)/100;this.strongGravity?r.scaleAndAdd(t.force,t.force,e,i*this.gravity*t.mass):r.scaleAndAdd(t.force,t.force,e,this.gravity*t.mass/(i+1))}}(),a.prototype.applyEdgeToNodeRepulsion=function(){var e=r.create(),t=r.create(),i=r.create();return function(n,a){var o=n.node1,s=n.node2;if(o!==a&&s!==a){r.sub(e,s.position,o.position),r.sub(t,a.position,o.position);var l=r.len(e);r.scale(e,e,1/l);var h=r.dot(e,t);if(!(0>h||h>l)){r.scaleAndAdd(i,o.position,e,h);var m=r.dist(i,a.position)-a.size,V=this.edgeToNodeRepulsionFactor(a.mass,Math.max(m,.1),100);r.sub(e,a.position,i),r.normalize(e,e),r.scaleAndAdd(a.force,a.force,e,V),r.scaleAndAdd(o.force,o.force,e,-V),r.scaleAndAdd(s.force,s.force,e,-V)}}}}(),a.prototype.updateBBox=function(){for(var e=1/0,t=1/0,i=-(1/0),n=-(1/0),a=0;a<this.nodes.length;a++){var o=this.nodes[a].position;e=Math.min(e,o[0]),t=Math.min(t,o[1]),i=Math.max(i,o[0]),n=Math.max(n,o[1])}this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=i,this.bbox[3]=n},a.getWorkerCode=function(){var e=o.toString();return e.slice(e.indexOf("{")+1,e.lastIndexOf("return"))},s){var h=null;self.onmessage=function(e){if(e.data instanceof ArrayBuffer){if(!h)return;for(var t=new Float32Array(e.data),i=t.length/2,n=0;i>n;n++){var o=h.nodes[n];o.position[0]=t[2*n],o.position[1]=t[2*n+1]}}else switch(e.data.cmd){case"init":h||(h=new a),h.initNodes(e.data.nodesPosition,e.data.nodesMass,e.data.nodesSize),h.initEdges(e.data.edges,e.data.edgesWeight);break;case"updateConfig":if(h)for(var r in e.data.config)h[r]=e.data.config[r];break;case"update":var s=e.data.steps;if(h){var i=h.nodes.length,t=new Float32Array(2*i);h.temperature=e.data.temperature;for(var n=0;s>n;n++)h.update(),h.temperature*=e.data.coolDown;for(var n=0;i>n;n++){var o=h.nodes[n];t[2*n]=o.position[0],t[2*n+1]=o.position[1]}self.postMessage(t.buffer,[t.buffer])}else{var l=new Float32Array;self.postMessage(l.buffer,[l.buffer])}}}}return a}),i("echarts/chart/map",["require","./base","zrender/shape/Text","zrender/shape/Path","zrender/shape/Circle","zrender/shape/Rectangle","zrender/shape/Line","zrender/shape/Polygon","zrender/shape/Ellipse","zrender/shape/Image","../component/dataRange","../component/roamController","../layer/heatmap","../config","../util/ecData","zrender/tool/util","zrender/config","zrender/tool/event","../util/mapData/params","../util/mapData/textFixed","../util/mapData/geoCoord","../util/projection/svg","../util/projection/normal","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r._onmousewheel=function(e){return r.__onmousewheel(e)},r._onmousedown=function(e){return r.__onmousedown(e)},r._onmousemove=function(e){return r.__onmousemove(e)},r._onmouseup=function(e){return r.__onmouseup(e)},r._onroamcontroller=function(e){return r.__onroamcontroller(e)},r._ondrhoverlink=function(e){return r.__ondrhoverlink(e)},this._isAlive=!0,this._selectedMode={},this._activeMapType={},this._clickable={},this._hoverable={},this._showLegendSymbol={},this._selected={},this._mapTypeMap={},this._mapDataMap={},this._nameMap={},this._specialArea={},this._refreshDelayTicket,this._mapDataRequireCounter,this._markAnimation=!1,this._hoverLinkMap={},this._roamMap={},this._scaleLimitMap={},this._mx,this._my,this._mousedown,this._justMove,this._curMapType,this.refresh(a),this.zr.on(c.EVENT.MOUSEWHEEL,this._onmousewheel),this.zr.on(c.EVENT.MOUSEDOWN,this._onmousedown),t.bind(U.EVENT.ROAMCONTROLLER,this._onroamcontroller),t.bind(U.EVENT.DATA_RANGE_HOVERLINK,this._ondrhoverlink)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Path"),o=e("zrender/shape/Circle"),r=e("zrender/shape/Rectangle"),s=e("zrender/shape/Line"),l=e("zrender/shape/Polygon"),h=e("zrender/shape/Ellipse"),m=e("zrender/shape/Image");e("../component/dataRange"),e("../component/roamController");var V=e("../layer/heatmap"),U=e("../config");U.map={zlevel:0,z:2,mapType:"china",showLegendSymbol:!0,dataRangeHoverLink:!0,hoverable:!0,clickable:!0,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,areaStyle:{color:"#ccc"},label:{show:!1,textStyle:{color:"rgb(139,69,19)"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,areaStyle:{color:"rgba(255,215,0,0.8)"},label:{show:!1,textStyle:{color:"rgb(100,0,0)"}}}}};var d=e("../util/ecData"),p=e("zrender/tool/util"),c=e("zrender/config"),u=e("zrender/tool/event"),y=e("../util/mapData/params").params,g=e("../util/mapData/textFixed"),b=e("../util/mapData/geoCoord");return t.prototype={type:U.CHART_TYPE_MAP,_buildShape:function(){var e=this.series;this.selectedMap={},this._activeMapType={};for(var t,i,n,a,o=this.component.legend,r={},s={},l={},h={},m=0,V=e.length;V>m;m++)if(e[m].type==U.CHART_TYPE_MAP&&(e[m]=this.reformOption(e[m]),i=e[m].mapType,s[i]=s[i]||{},s[i][m]=!0,l[i]=l[i]||e[m].mapValuePrecision,this._scaleLimitMap[i]=this._scaleLimitMap[i]||{},e[m].scaleLimit&&p.merge(this._scaleLimitMap[i],e[m].scaleLimit,!0),this._roamMap[i]=e[m].roam||this._roamMap[i],(null==this._hoverLinkMap[i]||this._hoverLinkMap[i])&&(this._hoverLinkMap[i]=e[m].dataRangeHoverLink),this._nameMap[i]=this._nameMap[i]||{},e[m].nameMap&&p.merge(this._nameMap[i],e[m].nameMap,!0),this._activeMapType[i]=!0,e[m].textFixed&&p.merge(g,e[m].textFixed,!0),e[m].geoCoord&&p.merge(b,e[m].geoCoord,!0),this._selectedMode[i]=this._selectedMode[i]||e[m].selectedMode,(null==this._hoverable[i]||this._hoverable[i])&&(this._hoverable[i]=e[m].hoverable),(null==this._clickable[i]||this._clickable[i])&&(this._clickable[i]=e[m].clickable),(null==this._showLegendSymbol[i]||this._showLegendSymbol[i])&&(this._showLegendSymbol[i]=e[m].showLegendSymbol),h[i]=h[i]||e[m].mapValueCalculation,t=e[m].name,this.selectedMap[t]=o?o.isSelected(t):!0,this.selectedMap[t])){r[i]=r[i]||{},n=e[m].data;for(var d=0,c=n.length;c>d;d++){a=this._nameChange(i,n[d].name),r[i][a]=r[i][a]||{seriesIndex:[],valueMap:{},precision:0};for(var u in n[d])"value"!=u?r[i][a][u]=n[d][u]:isNaN(n[d].value)||(null==r[i][a].value&&(r[i][a].value=0),r[i][a].precision=Math.max(this.getPrecision(+n[d].value),r[i][a].precision),r[i][a].value+=+n[d].value,r[i][a].valueMap[m]=+n[d].value);r[i][a].seriesIndex.push(m)}}this._mapDataRequireCounter=0;for(var f in r)this._mapDataRequireCounter++;this._clearSelected(),0===this._mapDataRequireCounter&&(this.clear(),this.zr&&this.zr.delShape(this.lastShapeList),this.lastShapeList=[]);for(var f in r){for(var c in r[f]){"average"==h[f]&&(r[f][c].value/=r[f][c].seriesIndex.length);var k=r[f][c].value;null!=k&&(r[f][c].value=k.toFixed(null==l[f]?r[f][c].precision:l[f])-0)}this._mapDataMap[f]=this._mapDataMap[f]||{},this._mapDataMap[f].mapData?this._mapDataCallback(f,r[f],s[f])(this._mapDataMap[f].mapData):y[f.replace(/\|.*/,"")].getGeoJson&&(this._specialArea[f]=y[f.replace(/\|.*/,"")].specialArea||this._specialArea[f],y[f.replace(/\|.*/,"")].getGeoJson(this._mapDataCallback(f,r[f],s[f])))}},_mapDataCallback:function(t,i,n){var a=this;return function(o){a._isAlive&&null!=a._activeMapType[t]&&(-1!=t.indexOf("|")&&(o=a._getSubMapData(t,o)),a._mapDataMap[t].mapData=o,o.firstChild?(a._mapDataMap[t].rate=1,a._mapDataMap[t].projection=e("../util/projection/svg")):(a._mapDataMap[t].rate=.75,a._mapDataMap[t].projection=e("../util/projection/normal")),a._buildMap(t,a._getProjectionData(t,o,n),i,n),a._buildMark(t,n),--a._mapDataRequireCounter<=0&&(a.addShapeList(),a.zr.refreshNextFrame()),a._buildHeatmap(t))}},_clearSelected:function(){for(var e in this._selected)this._activeMapType[this._mapTypeMap[e]]||(delete this._selected[e],delete this._mapTypeMap[e])},_getSubMapData:function(e,t){for(var i=e.replace(/^.*\|/,""),n=t.features,a=0,o=n.length;o>a;a++)if(n[a].properties&&n[a].properties.name==i){n=n[a],"United States of America"==i&&n.geometry.coordinates.length>1&&(n={geometry:{coordinates:n.geometry.coordinates.slice(5,6),type:n.geometry.type},id:n.id,properties:n.properties,type:n.type});break}return{type:"FeatureCollection",features:[n]}},_getProjectionData:function(e,t,i){var n,a=this._mapDataMap[e].projection,o=[],r=this._mapDataMap[e].bbox||a.getBbox(t,this._specialArea[e]);n=this._mapDataMap[e].hasRoam?this._mapDataMap[e].transform:this._getTransform(r,i,this._mapDataMap[e].rate);var s,l=this._mapDataMap[e].lastTransform||{scale:{}};n.left!=l.left||n.top!=l.top||n.scale.x!=l.scale.x||n.scale.y!=l.scale.y?(s=a.geoJson2Path(t,n,this._specialArea[e]),l=p.clone(n)):(n=this._mapDataMap[e].transform,s=this._mapDataMap[e].pathArray),this._mapDataMap[e].bbox=r,this._mapDataMap[e].transform=n,this._mapDataMap[e].lastTransform=l,this._mapDataMap[e].pathArray=s;for(var h=[n.left,n.top],m=0,V=s.length;V>m;m++)o.push(this._getSingleProvince(e,s[m],h));if(this._specialArea[e])for(var U in this._specialArea[e])o.push(this._getSpecialProjectionData(e,t,U,this._specialArea[e][U],h));if("china"==e){var d=this.geo2pos(e,b["南海诸岛"]||y["南海诸岛"].textCoord),c=n.scale.x/10.5,u=[32*c+d[0],83*c+d[1]];g["南海诸岛"]&&(u[0]+=g["南海诸岛"][0],u[1]+=g["南海诸岛"][1]),o.push({name:this._nameChange(e,"南海诸岛"),path:y["南海诸岛"].getPath(d,c),position:h,textX:u[0],textY:u[1]})}return o},_getSpecialProjectionData:function(t,i,n,a,o){i=this._getSubMapData("x|"+n,i);var r=e("../util/projection/normal"),s=r.getBbox(i),l=this.geo2pos(t,[a.left,a.top]),h=this.geo2pos(t,[a.left+a.width,a.top+a.height]),m=Math.abs(h[0]-l[0]),V=Math.abs(h[1]-l[1]),U=s.width,d=s.height,p=m/.75/U,c=V/d;p>c?(p=.75*c,m=U*p):(c=p,p=.75*c,V=d*c);var u={OffsetLeft:l[0],OffsetTop:l[1],scale:{x:p,y:c}},y=r.geoJson2Path(i,u);return this._getSingleProvince(t,y[0],o)},_getSingleProvince:function(e,t,i){var n,a=t.properties.name,o=g[a]||[0,0];if(b[a])n=this.geo2pos(e,b[a]);else if(t.cp)n=[t.cp[0]+o[0],t.cp[1]+o[1]];else{var r=this._mapDataMap[e].bbox;n=this.geo2pos(e,[r.left+r.width/2,r.top+r.height/2]),n[0]+=o[0],n[1]+=o[1]}return t.name=this._nameChange(e,a),t.position=i,t.textX=n[0],t.textY=n[1],t},_getTransform:function(e,t,i){var n,a,o,r,s,l,h,m=this.series,V=this.zr.getWidth(),U=this.zr.getHeight(),d=Math.round(.02*Math.min(V,U));for(var p in t)n=m[p].mapLocation||{},o=n.x||o,s=n.y||s,l=n.width||l,h=n.height||h;a=this.parsePercent(o,V),a=isNaN(a)?d:a,r=this.parsePercent(s,U),r=isNaN(r)?d:r,l=null==l?V-a-2*d:this.parsePercent(l,V),h=null==h?U-r-2*d:this.parsePercent(h,U);var c=e.width,u=e.height,y=l/i/c,g=h/u;if(y>g?(y=g*i,l=c*y):(g=y,y=g*i,h=u*g),isNaN(o))switch(o=o||"center",o+""){case"center":a=Math.floor((V-l)/2);break;case"right":a=V-l}if(isNaN(s))switch(s=s||"center",s+""){case"center":r=Math.floor((U-h)/2);break;case"bottom":r=U-h}return{left:a,top:r,width:l,height:h,baseScale:1,scale:{x:y,y:g}}},_buildMap:function(e,t,i,m){for(var V,c,u,y,g,b,f,k,x,_,L,W=this.series,X=this.component.legend,v=this.component.dataRange,w=0,K=t.length;K>w;w++){if(k=p.clone(t[w]),x={name:k.name,path:k.path,position:p.clone(k.position)},c=k.name,u=i[c]){g=[u],V="";for(var I=0,J=u.seriesIndex.length;J>I;I++){var C=W[u.seriesIndex[I]];g.push(C),V+=C.name+" ",X&&this._showLegendSymbol[e]&&X.hasColor(C.name)&&this.shapeList.push(new o({zlevel:C.zlevel,z:C.z+1,position:p.clone(k.position),_mapType:e,style:{x:k.textX+3+7*I,y:k.textY-10,r:3,color:X.getColor(C.name)},hoverable:!1}))}y=u.value}else{u={name:c,value:"-"},V="",g=[];for(var S in m)g.push(W[S]);y="-"}switch(this.ecTheme.map&&g.push(this.ecTheme.map),g.push(U.map),b=v&&!isNaN(y)?v.getColor(y):null,k.color=k.color||b||this.getItemStyleColor(this.deepQuery(g,"itemStyle.normal.color"),u.seriesIndex,-1,u)||this.deepQuery(g,"itemStyle.normal.areaStyle.color"),k.strokeColor=k.strokeColor||this.deepQuery(g,"itemStyle.normal.borderColor"),k.lineWidth=k.lineWidth||this.deepQuery(g,"itemStyle.normal.borderWidth"),x.color=this.getItemStyleColor(this.deepQuery(g,"itemStyle.emphasis.color"),u.seriesIndex,-1,u)||this.deepQuery(g,"itemStyle.emphasis.areaStyle.color")||k.color,x.strokeColor=this.deepQuery(g,"itemStyle.emphasis.borderColor")||k.strokeColor,x.lineWidth=this.deepQuery(g,"itemStyle.emphasis.borderWidth")||k.lineWidth,k.brushType=x.brushType=k.brushType||"both",k.lineJoin=x.lineJoin="round",k._name=x._name=c,f=this.deepQuery(g,"itemStyle.normal.label.textStyle"),L={zlevel:this.getZlevelBase(),z:this.getZBase()+1,position:p.clone(k.position),_mapType:e,_geo:this.pos2geo(e,[k.textX,k.textY]),style:{brushType:"fill",x:k.textX,y:k.textY,text:this.getLabelText(c,y,g,"normal"),_name:c,textAlign:"center",color:this.deepQuery(g,"itemStyle.normal.label.show")?this.deepQuery(g,"itemStyle.normal.label.textStyle.color"):"rgba(0,0,0,0)",textFont:this.getFont(f)}},L._style=p.clone(L.style),L.highlightStyle=p.clone(L.style),this.deepQuery(g,"itemStyle.emphasis.label.show")?(L.highlightStyle.text=this.getLabelText(c,y,g,"emphasis"),L.highlightStyle.color=this.deepQuery(g,"itemStyle.emphasis.label.textStyle.color")||L.style.color,f=this.deepQuery(g,"itemStyle.emphasis.label.textStyle")||f,L.highlightStyle.textFont=this.getFont(f)):L.highlightStyle.color="rgba(0,0,0,0)",_={zlevel:this.getZlevelBase(),z:this.getZBase(),position:p.clone(k.position),style:k,highlightStyle:x,_style:p.clone(k),_mapType:e},null!=k.scale&&(_.scale=p.clone(k.scale)),L=new n(L),_.style.shapeType){case"rectangle":_=new r(_);break;case"line":_=new s(_);break;case"circle":_=new o(_);break;case"polygon":_=new l(_);break;case"ellipse":_=new h(_);break;default:_=new a(_),_.buildPathArray&&(_.style.pathArray=_.buildPathArray(_.style.path))}(this._selectedMode[e]&&this._selected[c]&&u.selected!==!1||u.selected===!0)&&(L.style=L.highlightStyle,_.style=_.highlightStyle),L.clickable=_.clickable=this._clickable[e]&&(null==u.clickable||u.clickable),this._selectedMode[e]&&(this._selected[c]=null!=this._selected[c]?this._selected[c]:u.selected,this._mapTypeMap[c]=e,(null==u.selectable||u.selectable)&&(_.clickable=L.clickable=!0,_.onclick=L.onclick=this.shapeHandler.onclick)),this._hoverable[e]&&(null==u.hoverable||u.hoverable)?(L.hoverable=_.hoverable=!0,_.hoverConnect=L.id,L.hoverConnect=_.id):L.hoverable=_.hoverable=!1,d.pack(L,{name:V,tooltip:this.deepQuery(g,"tooltip")},0,u,0,c),this.shapeList.push(L),d.pack(_,{name:V,tooltip:this.deepQuery(g,"tooltip")},0,u,0,c),this.shapeList.push(_)}},_buildMark:function(e,t){this._seriesIndexToMapType=this._seriesIndexToMapType||{},this.markAttachStyle=this.markAttachStyle||{};var i=[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top];"none"==e&&(i=[0,0]);for(var n in t)this._seriesIndexToMapType[n]=e,this.markAttachStyle[n]={position:i,_mapType:e},this.buildMark(n)},_buildHeatmap:function(e){for(var t=this.series,i=0,n=t.length;n>i;i++)if(t[i].heatmap){var a=t[i].heatmap.data;if(t[i].heatmap.needsTransform===!1){for(var o=[],r=0,s=a.length;s>r;++r)o.push([a[r][3],a[r][4],a[r][2]]);var l=[0,0]}else{var h=t[i].heatmap._geoData;if(void 0===h){t[i].heatmap._geoData=[];for(var r=0,s=a.length;s>r;++r)t[i].heatmap._geoData[r]=a[r];h=t[i].heatmap._geoData}for(var s=a.length,U=0;s>U;++U)a[U]=this.geo2pos(e,[h[U][0],h[U][1]]);var l=[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top]}var d=new V(t[i].heatmap),p=d.getCanvas(a[0][3]?o:a,this.zr.getWidth(),this.zr.getHeight()),c=new m({zlevel:this.getZlevelBase(),z:this.getZBase()+1,position:l,scale:[1,1],hoverable:!1,style:{x:0,y:0,image:p,width:p.width,height:p.height}});c.type="heatmap",c._mapType=e,this.shapeList.push(c),this.zr.addShape(c)}},getMarkCoord:function(e,t){return t.geoCoord||b[t.name]?this.geo2pos(this._seriesIndexToMapType[e],t.geoCoord||b[t.name]):[0,0]},getMarkGeo:function(e){return e.geoCoord||b[e.name]},_nameChange:function(e,t){return this._nameMap[e][t]||t},getLabelText:function(e,t,i,n){var a=this.deepQuery(i,"itemStyle."+n+".label.formatter");return a?"function"==typeof a?a.call(this.myChart,e,t):"string"==typeof a?(a=a.replace("{a}","{a0}").replace("{b}","{b0}"),a=a.replace("{a0}",e).replace("{b0}",t)):void 0:e},_findMapTypeByPos:function(e,t){var i,n,a,o,r;for(var s in this._mapDataMap)if(i=this._mapDataMap[s].transform,i&&this._roamMap[s]&&this._activeMapType[s]&&(n=i.left,a=i.top,o=i.width,r=i.height,e>=n&&n+o>=e&&t>=a&&a+r>=t))return s},__onmousewheel:function(e){function t(e,t){for(var i=0;i<e.pointList.length;i++){var n=e.pointList[i];n[0]*=t,n[1]*=t}var a=e.controlPointList;if(a)for(var i=0;i<a.length;i++){var n=a[i];n[0]*=t,n[1]*=t}}function i(e,t){e.xStart*=t,e.yStart*=t,e.xEnd*=t,e.yEnd*=t,null!=e.cpX1&&(e.cpX1*=t,e.cpY1*=t)}if(!(this.shapeList.length<=0)){for(var n=0,a=this.shapeList.length;a>n;n++){var o=this.shapeList[n];if(o.__animating)return}var r,s,l=e.event,h=u.getX(l),m=u.getY(l),V=u.getDelta(l),d=e.mapTypeControl;d||(d={},s=this._findMapTypeByPos(h,m),s&&this._roamMap[s]&&"move"!=this._roamMap[s]&&(d[s]=!0));var p=!1;for(s in d)if(d[s]){p=!0;var c=this._mapDataMap[s].transform,y=c.left,g=c.top,b=c.width,f=c.height,k=this.pos2geo(s,[h-y,m-g]);if(V>0){if(r=1.2,null!=this._scaleLimitMap[s].max&&c.baseScale>=this._scaleLimitMap[s].max)continue}else if(r=1/1.2,null!=this._scaleLimitMap[s].min&&c.baseScale<=this._scaleLimitMap[s].min)continue;c.baseScale*=r,c.scale.x*=r,c.scale.y*=r,c.width=b*r,c.height=f*r,this._mapDataMap[s].hasRoam=!0,this._mapDataMap[s].transform=c,k=this.geo2pos(s,k),c.left-=k[0]-(h-y),c.top-=k[1]-(m-g),this._mapDataMap[s].transform=c,this.clearEffectShape(!0);for(var n=0,a=this.shapeList.length;a>n;n++){var o=this.shapeList[n];if(o._mapType==s){var x=o.type,_=o.style;switch(o.position[0]=c.left,o.position[1]=c.top,x){case"path":case"symbol":case"circle":case"rectangle":case"polygon":case"line":case"ellipse":case"heatmap":o.scale[0]*=r,o.scale[1]*=r;break;case"mark-line":i(_,r);break;case"polyline":t(_,r);break;case"shape-bundle":for(var L=0;L<_.shapeList.length;L++){var W=_.shapeList[L];"mark-line"==W.type?i(W.style,r):"polyline"==W.type&&t(W.style,r)}break;case"icon":case"image":k=this.geo2pos(s,o._geo),_.x=_._x=k[0]-_.width/2,_.y=_._y=k[1]-_.height/2;break;default:k=this.geo2pos(s,o._geo),_.x=k[0],_.y=k[1],"text"==x&&(o._style.x=o.highlightStyle.x=k[0],o._style.y=o.highlightStyle.y=k[1])}this.zr.modShape(o.id)}}}if(p){u.stop(l),this.zr.refreshNextFrame();var X=this;clearTimeout(this._refreshDelayTicket),this._refreshDelayTicket=setTimeout(function(){X&&X.shapeList&&X.animationEffect()},100),this.messageCenter.dispatch(U.EVENT.MAP_ROAM,e.event,{type:"scale"},this.myChart)}}},__onmousedown:function(e){if(!(this.shapeList.length<=0)){var t=e.target;if(!t||!t.draggable){var i=e.event,n=u.getX(i),a=u.getY(i),o=this._findMapTypeByPos(n,a);if(o&&this._roamMap[o]&&"scale"!=this._roamMap[o]){this._mousedown=!0,this._mx=n,this._my=a,this._curMapType=o,this.zr.on(c.EVENT.MOUSEUP,this._onmouseup);var r=this;setTimeout(function(){r.zr.on(c.EVENT.MOUSEMOVE,r._onmousemove)},100)}}}},__onmousemove:function(e){if(this._mousedown&&this._isAlive){var t=e.event,i=u.getX(t),n=u.getY(t),a=this._mapDataMap[this._curMapType].transform;a.hasRoam=!0,a.left-=this._mx-i,a.top-=this._my-n,this._mx=i,this._my=n,this._mapDataMap[this._curMapType].transform=a;for(var o=0,r=this.shapeList.length;r>o;o++)this.shapeList[o]._mapType==this._curMapType&&(this.shapeList[o].position[0]=a.left,this.shapeList[o].position[1]=a.top,this.zr.modShape(this.shapeList[o].id));this.messageCenter.dispatch(U.EVENT.MAP_ROAM,e.event,{type:"move"},this.myChart),this.clearEffectShape(!0),this.zr.refreshNextFrame(),this._justMove=!0,u.stop(t)}},__onmouseup:function(e){var t=e.event;this._mx=u.getX(t),this._my=u.getY(t),this._mousedown=!1;var i=this;setTimeout(function(){i._justMove&&i.animationEffect(),i._justMove=!1,i.zr.un(c.EVENT.MOUSEMOVE,i._onmousemove),i.zr.un(c.EVENT.MOUSEUP,i._onmouseup)},120)},__onroamcontroller:function(e){var t=e.event;t.zrenderX=this.zr.getWidth()/2,t.zrenderY=this.zr.getHeight()/2;var i=e.mapTypeControl,n=0,a=0,o=e.step;switch(e.roamType){case"scaleUp":return t.zrenderDelta=1,void this.__onmousewheel({event:t,mapTypeControl:i});case"scaleDown":return t.zrenderDelta=-1,void this.__onmousewheel({event:t,mapTypeControl:i});case"up":n=-o;break;case"down":n=o;break;case"left":a=-o;break;case"right":a=o}var r,s;for(s in i)this._mapDataMap[s]&&this._activeMapType[s]&&(r=this._mapDataMap[s].transform,r.hasRoam=!0,r.left-=a,r.top-=n,this._mapDataMap[s].transform=r);for(var l=0,h=this.shapeList.length;h>l;l++)s=this.shapeList[l]._mapType,i[s]&&this._activeMapType[s]&&(r=this._mapDataMap[s].transform,this.shapeList[l].position[0]=r.left,this.shapeList[l].position[1]=r.top,this.zr.modShape(this.shapeList[l].id));this.messageCenter.dispatch(U.EVENT.MAP_ROAM,e.event,{type:"move"},this.myChart),this.clearEffectShape(!0),this.zr.refreshNextFrame(),clearTimeout(this.dircetionTimer);var m=this;this.dircetionTimer=setTimeout(function(){m.animationEffect()},150)},__ondrhoverlink:function(e){for(var t,i,n=0,a=this.shapeList.length;a>n;n++)t=this.shapeList[n]._mapType,this._hoverLinkMap[t]&&this._activeMapType[t]&&(i=d.get(this.shapeList[n],"value"),null!=i&&i>=e.valueMin&&i<=e.valueMax&&this.zr.addHoverShape(this.shapeList[n]))},onclick:function(e){if(this.isClick&&e.target&&!this._justMove&&"icon"!=e.target.type){this.isClick=!1;var t=e.target,i=t.style._name,n=this.shapeList.length,a=t._mapType||"";if("single"==this._selectedMode[a])for(var o in this._selected)if(this._selected[o]&&this._mapTypeMap[o]==a){for(var r=0;n>r;r++)this.shapeList[r].style._name==o&&this.shapeList[r]._mapType==a&&(this.shapeList[r].style=this.shapeList[r]._style,this.zr.modShape(this.shapeList[r].id));o!=i&&(this._selected[o]=!1)}this._selected[i]=!this._selected[i];for(var r=0;n>r;r++)this.shapeList[r].style._name==i&&this.shapeList[r]._mapType==a&&(this.shapeList[r].style=this._selected[i]?this.shapeList[r].highlightStyle:this.shapeList[r]._style,this.zr.modShape(this.shapeList[r].id));this.messageCenter.dispatch(U.EVENT.MAP_SELECTED,e.event,{selected:this._selected,target:i},this.myChart),this.zr.refreshNextFrame();var s=this;setTimeout(function(){s.zr.trigger(c.EVENT.MOUSEMOVE,e.event)},100)}},refresh:function(e){e&&(this.option=e,this.series=e.series),this._mapDataRequireCounter>0?this.clear():this.backupShapeList(),this._buildShape(),this.zr.refreshHover()},ondataRange:function(e,t){this.component.dataRange&&(this.refresh(),t.needRefresh=!0)},pos2geo:function(e,t){return this._mapDataMap[e].transform?this._mapDataMap[e].projection.pos2geo(this._mapDataMap[e].transform,t):null},getGeoByPos:function(e,t){if(!this._mapDataMap[e].transform)return null;var i=[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top];return t instanceof Array?(t[0]-=i[0],t[1]-=i[1]):(t.x-=i[0],t.y-=i[1]),this.pos2geo(e,t)},geo2pos:function(e,t){return this._mapDataMap[e].transform?this._mapDataMap[e].projection.geo2pos(this._mapDataMap[e].transform,t):null},getPosByGeo:function(e,t){if(!this._mapDataMap[e].transform)return null;var i=this.geo2pos(e,t);return i[0]+=this._mapDataMap[e].transform.left,i[1]+=this._mapDataMap[e].transform.top,i},getMapPosition:function(e){return this._mapDataMap[e].transform?[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top]:null},onbeforDispose:function(){this._isAlive=!1,this.zr.un(c.EVENT.MOUSEWHEEL,this._onmousewheel),this.zr.un(c.EVENT.MOUSEDOWN,this._onmousedown),this.messageCenter.unbind(U.EVENT.ROAMCONTROLLER,this._onroamcontroller),this.messageCenter.unbind(U.EVENT.DATA_RANGE_HOVERLINK,this._ondrhoverlink)}},p.inherits(t,i),e("../chart").define("map",t),t}),i("zrender/shape/Path",["require","./Base","./util/PathProxy","../tool/util"],function(e){var t=e("./Base"),i=e("./util/PathProxy"),n=i.PathSegment,a=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},o=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(a(e)*a(t))},r=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(o(e,t))},s=function(e){t.call(this,e)};return s.prototype={type:"path",buildPathArray:function(e,t,i){if(!e)return[];t=t||0,i=i||0;var a=e,o=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];a=a.replace(/-/g," -"),a=a.replace(/  /g," "),a=a.replace(/ /g,","),a=a.replace(/,,/g,",");var r;for(r=0;r<o.length;r++)a=a.replace(new RegExp(o[r],"g"),"|"+o[r]);var s=a.split("|"),l=[],h=0,m=0;for(r=1;r<s.length;r++){var V=s[r],U=V.charAt(0);V=V.slice(1),V=V.replace(new RegExp("e,-","g"),"e-");var d=V.split(",");d.length>0&&""===d[0]&&d.shift();for(var p=0;p<d.length;p++)d[p]=parseFloat(d[p]);for(;d.length>0&&!isNaN(d[0]);){var c,u,y,g,b,f,k,x,_=null,L=[],W=h,X=m;switch(U){case"l":h+=d.shift(),m+=d.shift(),_="L",L.push(h,m);break;case"L":h=d.shift(),m=d.shift(),L.push(h,m);break;case"m":h+=d.shift(),m+=d.shift(),_="M",L.push(h,m),U="l";break;case"M":h=d.shift(),m=d.shift(),_="M",L.push(h,m),U="L";break;case"h":h+=d.shift(),_="L",L.push(h,m);break;case"H":h=d.shift(),_="L",L.push(h,m);break;case"v":m+=d.shift(),_="L",L.push(h,m);break;case"V":m=d.shift(),_="L",L.push(h,m);break;case"C":L.push(d.shift(),d.shift(),d.shift(),d.shift()),h=d.shift(),m=d.shift(),L.push(h,m);break;case"c":L.push(h+d.shift(),m+d.shift(),h+d.shift(),m+d.shift()),h+=d.shift(),m+=d.shift(),_="C",L.push(h,m);break;case"S":c=h,u=m,y=l[l.length-1],"C"===y.command&&(c=h+(h-y.points[2]),u=m+(m-y.points[3])),L.push(c,u,d.shift(),d.shift()),h=d.shift(),m=d.shift(),_="C",L.push(h,m);break;case"s":c=h,u=m,y=l[l.length-1],"C"===y.command&&(c=h+(h-y.points[2]),u=m+(m-y.points[3])),L.push(c,u,h+d.shift(),m+d.shift()),h+=d.shift(),m+=d.shift(),_="C",L.push(h,m);break;case"Q":L.push(d.shift(),d.shift()),h=d.shift(),m=d.shift(),L.push(h,m);break;case"q":L.push(h+d.shift(),m+d.shift()),h+=d.shift(),m+=d.shift(),_="Q",L.push(h,m);break;case"T":c=h,u=m,y=l[l.length-1],"Q"===y.command&&(c=h+(h-y.points[0]),u=m+(m-y.points[1])),h=d.shift(),m=d.shift(),_="Q",L.push(c,u,h,m);break;case"t":c=h,u=m,y=l[l.length-1],"Q"===y.command&&(c=h+(h-y.points[0]),u=m+(m-y.points[1])),h+=d.shift(),m+=d.shift(),_="Q",L.push(c,u,h,m);break;case"A":g=d.shift(),b=d.shift(),f=d.shift(),k=d.shift(),x=d.shift(),W=h,X=m,h=d.shift(),m=d.shift(),_="A",L=this._convertPoint(W,X,h,m,k,x,g,b,f);break;case"a":g=d.shift(),b=d.shift(),f=d.shift(),k=d.shift(),x=d.shift(),W=h,X=m,h+=d.shift(),m+=d.shift(),_="A",L=this._convertPoint(W,X,h,m,k,x,g,b,f)}for(var v=0,w=L.length;w>v;v+=2)L[v]+=t,L[v+1]+=i;l.push(new n(_||U,L))}("z"===U||"Z"===U)&&l.push(new n("z",[]))}return l},_convertPoint:function(e,t,i,n,a,s,l,h,m){var V=m*(Math.PI/180),U=Math.cos(V)*(e-i)/2+Math.sin(V)*(t-n)/2,d=-1*Math.sin(V)*(e-i)/2+Math.cos(V)*(t-n)/2,p=U*U/(l*l)+d*d/(h*h);p>1&&(l*=Math.sqrt(p),h*=Math.sqrt(p));var c=Math.sqrt((l*l*h*h-l*l*d*d-h*h*U*U)/(l*l*d*d+h*h*U*U));a===s&&(c*=-1),isNaN(c)&&(c=0);var u=c*l*d/h,y=c*-h*U/l,g=(e+i)/2+Math.cos(V)*u-Math.sin(V)*y,b=(t+n)/2+Math.sin(V)*u+Math.cos(V)*y,f=r([1,0],[(U-u)/l,(d-y)/h]),k=[(U-u)/l,(d-y)/h],x=[(-1*U-u)/l,(-1*d-y)/h],_=r(k,x);return o(k,x)<=-1&&(_=Math.PI),o(k,x)>=1&&(_=0),0===s&&_>0&&(_-=2*Math.PI),1===s&&0>_&&(_+=2*Math.PI),[g,b,l,h,f,_,V,s]},buildPath:function(e,t){var i=t.path,n=t.x||0,a=t.y||0;t.pathArray=t.pathArray||this.buildPathArray(i,n,a);for(var o=t.pathArray,r=t.pointList=[],s=[],l=0,h=o.length;h>l;l++){"M"==o[l].command.toUpperCase()&&(s.length>0&&r.push(s),s=[]);for(var m=o[l].points,V=0,U=m.length;U>V;V+=2)s.push([m[V],m[V+1]])}s.length>0&&r.push(s);for(var l=0,h=o.length;h>l;l++){var d=o[l].command,m=o[l].points;switch(d){case"L":e.lineTo(m[0],m[1]);break;case"M":e.moveTo(m[0],m[1]);break;case"C":e.bezierCurveTo(m[0],m[1],m[2],m[3],m[4],m[5]);break;case"Q":e.quadraticCurveTo(m[0],m[1],m[2],m[3]);break;case"A":var p=m[0],c=m[1],u=m[2],y=m[3],g=m[4],b=m[5],f=m[6],k=m[7],x=u>y?u:y,_=u>y?1:u/y,L=u>y?y/u:1;e.translate(p,c),e.rotate(f),e.scale(_,L),e.arc(0,0,x,g,g+b,1-k),e.scale(1/_,1/L),e.rotate(-f),e.translate(-p,-c);break;case"z":e.closePath()}}},getRect:function(e){if(e.__rect)return e.__rect;var t;t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0;for(var i=Number.MAX_VALUE,n=Number.MIN_VALUE,a=Number.MAX_VALUE,o=Number.MIN_VALUE,r=e.x||0,s=e.y||0,l=e.pathArray||this.buildPathArray(e.path),h=0;h<l.length;h++)for(var m=l[h].points,V=0;V<m.length;V++)V%2===0?(m[V]+r<i&&(i=m[V]),m[V]+r>n&&(n=m[V])):(m[V]+s<a&&(a=m[V]),m[V]+s>o&&(o=m[V]));var U;return U=i===Number.MAX_VALUE||n===Number.MIN_VALUE||a===Number.MAX_VALUE||o===Number.MIN_VALUE?{x:0,y:0,width:0,height:0}:{x:Math.round(i-t/2),y:Math.round(a-t/2),width:n-i+t,height:o-a+t},e.__rect=U,U}},e("../tool/util").inherits(s,t),s}),i("zrender/shape/Ellipse",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"ellipse",buildPath:function(e,t){var i=.5522848,n=t.x,a=t.y,o=t.a,r=t.b,s=o*i,l=r*i;e.moveTo(n-o,a),e.bezierCurveTo(n-o,a-l,n-s,a-r,n,a-r),e.bezierCurveTo(n+s,a-r,n+o,a-l,n+o,a),e.bezierCurveTo(n+o,a+l,n+s,a+r,n,a+r),e.bezierCurveTo(n-s,a+r,n-o,a+l,n-o,a),e.closePath()},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.a-t/2),
    +y:Math.round(e.y-e.b-t/2),width:2*e.a+t,height:2*e.b+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("echarts/component/roamController",["require","./base","zrender/shape/Rectangle","zrender/shape/Sector","zrender/shape/Circle","../config","zrender/tool/util","zrender/tool/color","zrender/tool/event","../component"],function(e){function t(e,t,n,a,o){if(this.rcOption={},a.roamController&&a.roamController.show){if(!a.roamController.mapTypeControl)return void console.error("option.roamController.mapTypeControl has not been defined.");i.call(this,e,t,n,a,o),this.rcOption=a.roamController;var r=this;this._drictionMouseDown=function(e){return r.__drictionMouseDown(e)},this._drictionMouseUp=function(e){return r.__drictionMouseUp(e)},this._drictionMouseMove=function(e){return r.__drictionMouseMove(e)},this._drictionMouseOut=function(e){return r.__drictionMouseOut(e)},this._scaleHandler=function(e){return r.__scaleHandler(e)},this.refresh(a)}}var i=e("./base"),n=e("zrender/shape/Rectangle"),a=e("zrender/shape/Sector"),o=e("zrender/shape/Circle"),r=e("../config");r.roamController={zlevel:0,z:4,show:!0,x:"left",y:"top",width:80,height:120,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,handleColor:"#6495ed",fillerColor:"#fff",step:15,mapTypeControl:null};var s=e("zrender/tool/util"),l=e("zrender/tool/color"),h=e("zrender/tool/event");return t.prototype={type:r.COMPONENT_TYPE_ROAMCONTROLLER,_buildShape:function(){if(this.rcOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildItem:function(){this.shapeList.push(this._getDirectionShape("up")),this.shapeList.push(this._getDirectionShape("down")),this.shapeList.push(this._getDirectionShape("left")),this.shapeList.push(this._getDirectionShape("right")),this.shapeList.push(this._getScaleShape("scaleUp")),this.shapeList.push(this._getScaleShape("scaleDown"))},_getDirectionShape:function(e){var t=this._itemGroupLocation.r,i=this._itemGroupLocation.x+t,n=this._itemGroupLocation.y+t,o={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:i,y:n,r:t,startAngle:-45,endAngle:45,color:this.rcOption.handleColor,text:">",textX:i+t/2+4,textY:n-.5,textAlign:"center",textBaseline:"middle",textPosition:"specific",textColor:this.rcOption.fillerColor,textFont:Math.floor(t/2)+"px arial"},highlightStyle:{color:l.lift(this.rcOption.handleColor,-.2),brushType:"fill"},clickable:!0};switch(e){case"up":o.rotation=[Math.PI/2,i,n];break;case"left":o.rotation=[Math.PI,i,n];break;case"down":o.rotation=[-Math.PI/2,i,n]}return o=new a(o),o._roamType=e,o.onmousedown=this._drictionMouseDown,o.onmouseup=this._drictionMouseUp,o.onmousemove=this._drictionMouseMove,o.onmouseout=this._drictionMouseOut,o},_getScaleShape:function(e){var t=this._itemGroupLocation.width,i=this._itemGroupLocation.height-t;i=0>i?20:i;var n=Math.min(t/2-5,i)/2,a=this._itemGroupLocation.x+("scaleDown"===e?t-n:n),r=this._itemGroupLocation.y+this._itemGroupLocation.height-n,s={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:a,y:r,r:n,color:this.rcOption.handleColor,text:"scaleDown"===e?"-":"+",textX:a,textY:r-2,textAlign:"center",textBaseline:"middle",textPosition:"specific",textColor:this.rcOption.fillerColor,textFont:Math.floor(n)+"px verdana"},highlightStyle:{color:l.lift(this.rcOption.handleColor,-.2),brushType:"fill"},clickable:!0};return s=new o(s),s._roamType=e,s.onmousedown=this._scaleHandler,s},_buildBackground:function(){var e=this.reformCssArray(this.rcOption.padding);this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.rcOption.borderWidth?"fill":"both",color:this.rcOption.backgroundColor,strokeColor:this.rcOption.borderColor,lineWidth:this.rcOption.borderWidth}}))},_getItemGroupLocation:function(){var e,t=this.reformCssArray(this.rcOption.padding),i=this.rcOption.width,n=this.rcOption.height,a=this.zr.getWidth(),o=this.zr.getHeight();switch(this.rcOption.x){case"center":e=Math.floor((a-i)/2);break;case"left":e=t[3]+this.rcOption.borderWidth;break;case"right":e=a-i-t[1]-t[3]-2*this.rcOption.borderWidth;break;default:e=this.parsePercent(this.rcOption.x,a)}var r;switch(this.rcOption.y){case"top":r=t[0]+this.rcOption.borderWidth;break;case"bottom":r=o-n-t[0]-t[2]-2*this.rcOption.borderWidth;break;case"center":r=Math.floor((o-n)/2);break;default:r=this.parsePercent(this.rcOption.y,o)}return{x:e,y:r,r:i/2,width:i,height:n}},__drictionMouseDown:function(e){this.mousedown=!0,this._drictionHandlerOn(e)},__drictionMouseUp:function(e){this.mousedown=!1,this._drictionHandlerOff(e)},__drictionMouseMove:function(e){this.mousedown&&this._drictionHandlerOn(e)},__drictionMouseOut:function(e){this._drictionHandlerOff(e)},_drictionHandlerOn:function(e){this._dispatchEvent(e.event,e.target._roamType),clearInterval(this.dircetionTimer);var t=this;this.dircetionTimer=setInterval(function(){t._dispatchEvent(e.event,e.target._roamType)},100),h.stop(e.event)},_drictionHandlerOff:function(){clearInterval(this.dircetionTimer)},__scaleHandler:function(e){this._dispatchEvent(e.event,e.target._roamType),h.stop(e.event)},_dispatchEvent:function(e,t){this.messageCenter.dispatch(r.EVENT.ROAMCONTROLLER,e,{roamType:t,mapTypeControl:this.rcOption.mapTypeControl,step:this.rcOption.step},this.myChart)},refresh:function(e){e&&(this.option=e||this.option,this.option.roamController=this.reformOption(this.option.roamController),this.rcOption=this.option.roamController),this.clear(),this._buildShape()}},s.inherits(t,i),e("../component").define("roamController",t),t}),i("echarts/layer/heatmap",["require"],function(){function e(e){if(this.option=e,e)for(var i in t)this.option[i]=void 0!==e[i]?e[i]:t[i];else this.option=t}var t={blurSize:30,gradientColors:["blue","cyan","lime","yellow","red"],minAlpha:.05,valueScale:1,opacity:1},i=20,n=256;return e.prototype={getCanvas:function(e,t,a){var o=this._getBrush(),r=this._getGradient(),s=i+this.option.blurSize,l=document.createElement("canvas");l.width=t,l.height=a;for(var h=l.getContext("2d"),m=e.length,V=0;m>V;++V){var U=e[V],d=U[0],p=U[1],c=U[2],u=Math.min(1,Math.max(c*this.option.valueScale||this.option.minAlpha,this.option.minAlpha));h.globalAlpha=u,h.drawImage(o,d-s,p-s)}for(var y=h.getImageData(0,0,l.width,l.height),g=y.data,m=g.length/4;m--;){var b=4*m+3,u=g[b]/256,f=Math.floor(u*(n-1));g[b-3]=r[4*f],g[b-2]=r[4*f+1],g[b-1]=r[4*f+2],g[b]*=this.option.opacity}return h.putImageData(y,0,0),l},_getBrush:function(){if(!this._brushCanvas){this._brushCanvas=document.createElement("canvas");var e=i+this.option.blurSize,t=2*e;this._brushCanvas.width=t,this._brushCanvas.height=t;var n=this._brushCanvas.getContext("2d");n.shadowOffsetX=t,n.shadowBlur=this.option.blurSize,n.shadowColor="black",n.beginPath(),n.arc(-e,e,i,0,2*Math.PI,!0),n.closePath(),n.fill()}return this._brushCanvas},_getGradient:function(){if(!this._gradientPixels){var e=n,t=document.createElement("canvas");t.width=1,t.height=e;for(var i=t.getContext("2d"),a=i.createLinearGradient(0,0,0,e),o=this.option.gradientColors.length,r=0;o>r;++r)"string"==typeof this.option.gradientColors[r]?a.addColorStop((r+1)/o,this.option.gradientColors[r]):a.addColorStop(this.option.gradientColors[r].offset,this.option.gradientColors[r].color);i.fillStyle=a,i.fillRect(0,0,1,e),this._gradientPixels=i.getImageData(0,0,1,e).data}return this._gradientPixels}},e}),i("echarts/util/mapData/params",["require"],function(e){function t(e){if(!e.UTF8Encoding)return e;for(var t=e.features,n=0;n<t.length;n++)for(var a=t[n],o=a.geometry.coordinates,r=a.geometry.encodeOffsets,s=0;s<o.length;s++){var l=o[s];if("Polygon"===a.geometry.type)o[s]=i(l,r[s]);else if("MultiPolygon"===a.geometry.type)for(var h=0;h<l.length;h++){var m=l[h];l[h]=i(m,r[s][h])}}return e.UTF8Encoding=!1,e}function i(e,t){for(var i=[],n=t[0],a=t[1],o=0;o<e.length;o+=2){var r=e.charCodeAt(o)-64,s=e.charCodeAt(o+1)-64;r=r>>1^-(1&r),s=s>>1^-(1&s),r+=n,s+=a,n=r,a=s,i.push([r/1024,s/1024])}return i}var n={none:{getGeoJson:function(e){e({type:"FeatureCollection",features:[{type:"Feature",geometry:{coordinates:[],encodeOffsets:[],type:"Polygon"},properties:{}}]})}},world:{getGeoJson:function(i){e(["./geoJson/world_geo"],function(e){i(t(e))})}},china:{getGeoJson:function(i){e(["./geoJson/china_geo"],function(e){i(t(e))})}},"南海诸岛":{textCoord:[126,25],getPath:function(e,t){for(var i=[[[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]]],n="",a=e[0],o=e[1],r=0,s=i.length;s>r;r++){n+="M "+((i[r][0][0]*t+a).toFixed(2)-0)+" "+((i[r][0][1]*t+o).toFixed(2)-0)+" ";for(var l=1,h=i[r].length;h>l;l++)n+="L "+((i[r][l][0]*t+a).toFixed(2)-0)+" "+((i[r][l][1]*t+o).toFixed(2)-0)+" "}return n+" Z"}},"新疆":{getGeoJson:function(i){e(["./geoJson/xin_jiang_geo"],function(e){i(t(e))})}},"西藏":{getGeoJson:function(i){e(["./geoJson/xi_zang_geo"],function(e){i(t(e))})}},"内蒙古":{getGeoJson:function(i){e(["./geoJson/nei_meng_gu_geo"],function(e){i(t(e))})}},"青海":{getGeoJson:function(i){e(["./geoJson/qing_hai_geo"],function(e){i(t(e))})}},"四川":{getGeoJson:function(i){e(["./geoJson/si_chuan_geo"],function(e){i(t(e))})}},"黑龙江":{getGeoJson:function(i){e(["./geoJson/hei_long_jiang_geo"],function(e){i(t(e))})}},"甘肃":{getGeoJson:function(i){e(["./geoJson/gan_su_geo"],function(e){i(t(e))})}},"云南":{getGeoJson:function(i){e(["./geoJson/yun_nan_geo"],function(e){i(t(e))})}},"广西":{getGeoJson:function(i){e(["./geoJson/guang_xi_geo"],function(e){i(t(e))})}},"湖南":{getGeoJson:function(i){e(["./geoJson/hu_nan_geo"],function(e){i(t(e))})}},"陕西":{getGeoJson:function(i){e(["./geoJson/shan_xi_1_geo"],function(e){i(t(e))})}},"广东":{getGeoJson:function(i){e(["./geoJson/guang_dong_geo"],function(e){i(t(e))})}},"吉林":{getGeoJson:function(i){e(["./geoJson/ji_lin_geo"],function(e){i(t(e))})}},"河北":{getGeoJson:function(i){e(["./geoJson/he_bei_geo"],function(e){i(t(e))})}},"湖北":{getGeoJson:function(i){e(["./geoJson/hu_bei_geo"],function(e){i(t(e))})}},"贵州":{getGeoJson:function(i){e(["./geoJson/gui_zhou_geo"],function(e){i(t(e))})}},"山东":{getGeoJson:function(i){e(["./geoJson/shan_dong_geo"],function(e){i(t(e))})}},"江西":{getGeoJson:function(i){e(["./geoJson/jiang_xi_geo"],function(e){i(t(e))})}},"河南":{getGeoJson:function(i){e(["./geoJson/he_nan_geo"],function(e){i(t(e))})}},"辽宁":{getGeoJson:function(i){e(["./geoJson/liao_ning_geo"],function(e){i(t(e))})}},"山西":{getGeoJson:function(i){e(["./geoJson/shan_xi_2_geo"],function(e){i(t(e))})}},"安徽":{getGeoJson:function(i){e(["./geoJson/an_hui_geo"],function(e){i(t(e))})}},"福建":{getGeoJson:function(i){e(["./geoJson/fu_jian_geo"],function(e){i(t(e))})}},"浙江":{getGeoJson:function(i){e(["./geoJson/zhe_jiang_geo"],function(e){i(t(e))})}},"江苏":{getGeoJson:function(i){e(["./geoJson/jiang_su_geo"],function(e){i(t(e))})}},"重庆":{getGeoJson:function(i){e(["./geoJson/chong_qing_geo"],function(e){i(t(e))})}},"宁夏":{getGeoJson:function(i){e(["./geoJson/ning_xia_geo"],function(e){i(t(e))})}},"海南":{getGeoJson:function(i){e(["./geoJson/hai_nan_geo"],function(e){i(t(e))})}},"台湾":{getGeoJson:function(i){e(["./geoJson/tai_wan_geo"],function(e){i(t(e))})}},"北京":{getGeoJson:function(i){e(["./geoJson/bei_jing_geo"],function(e){i(t(e))})}},"天津":{getGeoJson:function(i){e(["./geoJson/tian_jin_geo"],function(e){i(t(e))})}},"上海":{getGeoJson:function(i){e(["./geoJson/shang_hai_geo"],function(e){i(t(e))})}},"香港":{getGeoJson:function(i){e(["./geoJson/xiang_gang_geo"],function(e){i(t(e))})}},"澳门":{getGeoJson:function(i){e(["./geoJson/ao_men_geo"],function(e){i(t(e))})}}};return{decode:t,params:n}}),i("echarts/util/mapData/textFixed",[],function(){return{"广东":[0,-10],"香港":[10,10],"澳门":[-10,18],"黑龙江":[0,20],"天津":[5,5],"深圳市":[-35,0],"红河哈尼族彝族自治州":[0,20],"楚雄彝族自治州":[-5,15],"石河子市":[-5,5],"五家渠市":[0,-10],"昌吉回族自治州":[10,10],"昌江黎族自治县":[0,20],"陵水黎族自治县":[0,20],"东方市":[0,20],"渭南市":[0,20]}}),i("echarts/util/mapData/geoCoord",[],function(){return{Russia:[100,60],"United States of America":[-99,38]}}),i("echarts/util/projection/svg",["require","zrender/shape/Path"],function(e){function t(e){return parseFloat(e||0)}function i(e){for(var i=e.firstChild;"svg"!=i.nodeName.toLowerCase()||1!=i.nodeType;)i=i.nextSibling;var n=t(i.getAttribute("x")),a=t(i.getAttribute("y")),o=t(i.getAttribute("width")),r=t(i.getAttribute("height"));return{left:n,top:a,width:o,height:r}}function n(e,t){function i(e){var t=e.tagName;if(m[t]){var o=m[t](e,n);o&&(o.scale=n,o.properties={name:e.getAttribute("name")||""},o.id=e.id,s(o,e),a.push(o))}for(var r=e.childNodes,l=0,h=r.length;h>l;l++)i(r[l])}var n=[t.scale.x,t.scale.y],a=[];return i(e),a}function a(e,t){var i=t instanceof Array?[1*t[0],1*t[1]]:[1*t.x,1*t.y];return[i[0]/e.scale.x,i[1]/e.scale.y]}function o(e,t){var i=t instanceof Array?[1*t[0],1*t[1]]:[1*t.x,1*t.y];return[i[0]*e.scale.x,i[1]*e.scale.y]}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s(e,t){var i=t.getAttribute("fill"),n=t.getAttribute("stroke"),a=t.getAttribute("stroke-width"),o=t.getAttribute("opacity");i&&"none"!=i?(e.color=i,n?(e.brushType="both",e.strokeColor=n):e.brushType="fill"):n&&"none"!=n&&(e.strokeColor=n,e.brushType="stroke"),a&&"none"!=a&&(e.lineWidth=parseFloat(a)),o&&"none"!=o&&(e.opacity=parseFloat(o))}function l(e){for(var t=r(e).replace(/,/g," ").split(/\s+/),i=[],n=0;n<t.length;){var a=parseFloat(t[n++]),o=parseFloat(t[n++]);i.push([a,o])}return i}var h=e("zrender/shape/Path"),m={path:function(e,t){var i=e.getAttribute("d"),n=h.prototype.getRect({path:i});return{shapeType:"path",path:i,cp:[(n.x+n.width/2)*t[0],(n.y+n.height/2)*t[1]]}},rect:function(e,i){var n=t(e.getAttribute("x")),a=t(e.getAttribute("y")),o=t(e.getAttribute("width")),r=t(e.getAttribute("height"));return{shapeType:"rectangle",x:n,y:a,width:o,height:r,cp:[(n+o/2)*i[0],(a+r/2)*i[1]]}},line:function(e,i){var n=t(e.getAttribute("x1")),a=t(e.getAttribute("y1")),o=t(e.getAttribute("x2")),r=t(e.getAttribute("y2"));return{shapeType:"line",xStart:n,yStart:a,xEnd:o,yEnd:r,cp:[.5*(n+o)*i[0],.5*(a+r)*i[1]]}},circle:function(e,i){var n=t(e.getAttribute("cx")),a=t(e.getAttribute("cy")),o=t(e.getAttribute("r"));return{shapeType:"circle",x:n,y:a,r:o,cp:[n*i[0],a*i[1]]}},ellipse:function(e,t){var i=parseFloat(e.getAttribute("cx")||0),n=parseFloat(e.getAttribute("cy")||0),a=parseFloat(e.getAttribute("rx")||0),o=parseFloat(e.getAttribute("ry")||0);return{shapeType:"ellipse",x:i,y:n,a:a,b:o,cp:[i*t[0],n*t[1]]}},polygon:function(e,t){var i=e.getAttribute("points"),n=[1/0,1/0],a=[-(1/0),-(1/0)];if(i){i=l(i);for(var o=0;o<i.length;o++){var r=i[o];n[0]=Math.min(r[0],n[0]),n[1]=Math.min(r[1],n[1]),a[0]=Math.max(r[0],a[0]),a[1]=Math.max(r[1],a[1])}return{shapeType:"polygon",pointList:i,cp:[(n[0]+a[0])/2*t[0],(n[1]+a[1])/2*t[0]]}}},polyline:function(e,t){var i=m.polygon(e,t);return i}};return{getBbox:i,geoJson2Path:n,pos2geo:a,geo2pos:o}}),i("echarts/util/projection/normal",[],function(){function e(e,i){return i=i||{},e.srcSize||t(e,i),e.srcSize}function t(e,t){t=t||{},r.xmin=360,r.xmax=-360,r.ymin=180,r.ymax=-180;for(var i,n,a=e.features,o=0,s=a.length;s>o;o++)if(n=a[o],!n.properties.name||!t[n.properties.name])switch(n.type){case"Feature":r[n.geometry.type](n.geometry.coordinates);break;case"GeometryCollection":i=n.geometries;for(var l=0,h=i.length;h>l;l++)r[i[l].type](i[l].coordinates)}return e.srcSize={left:1*r.xmin.toFixed(4),top:1*r.ymin.toFixed(4),width:1*(r.xmax-r.xmin).toFixed(4),height:1*(r.ymax-r.ymin).toFixed(4)},e}function i(e,i,n){function a(e,t){c=e.type,u=e.coordinates,o._bbox={xmin:360,xmax:-360,ymin:180,ymax:-180},y=o[c](u),m.push({path:y,cp:o.makePoint(t.properties.cp?t.properties.cp:[(o._bbox.xmin+o._bbox.xmax)/2,(o._bbox.ymin+o._bbox.ymax)/2]),properties:t.properties,id:t.id})}n=n||{},o.scale=null,o.offset=null,e.srcSize||t(e,n),i.offset={x:e.srcSize.left,y:e.srcSize.top,left:i.OffsetLeft||0,top:i.OffsetTop||0},o.scale=i.scale,o.offset=i.offset;for(var r,s,l,h=e.features,m=[],V=0,U=h.length;U>V;V++)if(l=h[V],!l.properties.name||!n[l.properties.name])if("Feature"==l.type)a(l.geometry,l);else if("GeometryCollection"==l.type){r=l.geometries;for(var d=0,p=r.length;p>d;d++)s=r[d],a(s,s)}var c,u,y;return m}function n(e,t){var i,n;return t instanceof Array?(i=1*t[0],n=1*t[1]):(i=1*t.x,n=1*t.y),i=i/e.scale.x+e.offset.x-168.5,i=i>180?i-360:i,n=90-(n/e.scale.y+e.offset.y),[i,n]}function a(e,t){return o.offset=e.offset,o.scale=e.scale,o.makePoint(t instanceof Array?[1*t[0],1*t[1]]:[1*t.x,1*t.y])}var o={formatPoint:function(e){return[(e[0]<-168.5&&e[1]>63.8?e[0]+360:e[0])+168.5,90-e[1]]},makePoint:function(e){var t=this,i=t.formatPoint(e);t._bbox.xmin>e[0]&&(t._bbox.xmin=e[0]),t._bbox.xmax<e[0]&&(t._bbox.xmax=e[0]),t._bbox.ymin>e[1]&&(t._bbox.ymin=e[1]),t._bbox.ymax<e[1]&&(t._bbox.ymax=e[1]);var n=(i[0]-o.offset.x)*o.scale.x+o.offset.left,a=(i[1]-o.offset.y)*o.scale.y+o.offset.top;return[n,a]},Point:function(e){return e=this.makePoint(e),e.join(",")},LineString:function(e){for(var t,i="",n=0,a=e.length;a>n;n++)t=o.makePoint(e[n]),i=0===n?"M"+t.join(","):i+"L"+t.join(",");return i},Polygon:function(e){for(var t="",i=0,n=e.length;n>i;i++)t=t+o.LineString(e[i])+"z";return t},MultiPoint:function(e){for(var t=[],i=0,n=e.length;n>i;i++)t.push(o.Point(e[i]));return t},MultiLineString:function(e){for(var t="",i=0,n=e.length;n>i;i++)t+=o.LineString(e[i]);return t},MultiPolygon:function(e){for(var t="",i=0,n=e.length;n>i;i++)t+=o.Polygon(e[i]);return t}},r={formatPoint:o.formatPoint,makePoint:function(e){var t=this,i=t.formatPoint(e),n=i[0],a=i[1];t.xmin>n&&(t.xmin=n),t.xmax<n&&(t.xmax=n),t.ymin>a&&(t.ymin=a),t.ymax<a&&(t.ymax=a)},Point:function(e){this.makePoint(e)},LineString:function(e){for(var t=0,i=e.length;i>t;t++)this.makePoint(e[t])},Polygon:function(e){for(var t=0,i=e.length;i>t;t++)this.LineString(e[t])},MultiPoint:function(e){for(var t=0,i=e.length;i>t;t++)this.Point(e[t])},MultiLineString:function(e){for(var t=0,i=e.length;i>t;t++)this.LineString(e[t])},MultiPolygon:function(e){for(var t=0,i=e.length;i>t;t++)this.Polygon(e[t])}};return{getBbox:e,geoJson2Path:i,pos2geo:n,geo2pos:a}}),i("echarts/util/mapData/geoJson/an_hui_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3415",properties:{name:"六安市",cp:[116.3123,31.8329],childNum:6},geometry:{type:"Polygon",coordinates:["@@„„nJ‚UXUVƒ°U„ÑnU@mlLVaVln@@bn@VU@xlb@lšLnKlšƒVI„JšUVxnI@lVL@b„ްVX@˜b„x„nVVUnVVnU‚›@kX@VwV@„al¥UUnUWa@ƒ@wĸU„LU¥lKUa@aUI@alLVaUƒ¯anƒWkUKm@XV@VaXlW@aU_UWVUƒI¯@ma¯W¯™™I@UU@WWU@U@@UU@VkV@@WUUm@UaU@„lK@IUK„L@KWmXUWaXI@ƒ@a@a@U@U@KV¥lw„k°b²JVIVKlV@UX„la„Ul`œUVLVVVUšJ„U@Lnm@_VK@KUIW@™J@Xk@WW@U—ƒmm™XmWk@kK@aUUƒVmmkUwUmWL™@WmU@™UJmUULkKWakLWVkIƒlƒwULƒW@X°lUJ@°ULƒWV—wmJ@bmb¯Vkm@@WkWm¯wƒL@lkXƒWmXym¯UImJUbkV™@Vn¯„@V@lUbƒ@mk@maUxmlUbULWn@J—LmKUkWKkwUKƒbm„X„WxkVUKmLkVV@JUUWL@xkJUUƒV@X@VVlUbVX@xk¤šx‚¼œxWxn„‚nn@Þ¼„JVb°aVn„@šmlnXU„JlbVlkz@‚lUŽlXJmxVxXnWxXÈWlUŽ@šUxU@VX@xUL@šUÆmLnV@lWXk@@JlbXblnlJ"],encodeOffsets:[[118710,33351]]}},{type:"Feature",id:"3408",properties:{name:"安庆市",cp:[116.7517,30.5255],childNum:9},geometry:{type:"Polygon",coordinates:["@@n°‚znW„XlW@k„K°xXn‚l@Xn@l‚°Una@anI˜xXU„ŽVK@¯VIkW¯X@‚„VK„x„klJXUlKXblLVKnVVIšŽV@Xn‚@šŽXKVnVxlŽnn„UlmV@²óUkV™lW„b„lƒšƒn@VVVIn@lw@WVIXblV„@Èx‚aUaVIVVnKVLšK„ƒln@b²K@»U£ƒÑķƒġÝÅb™K™a@Im@ۍ„@kWÓkkmKÅnóJƒUÅ£›W@w„ĕ@wĉţ¯¯ƒUkK±l¯Uƒ¥UÑkÝUķ»Ý¥¯™JƒIUŽVbUl¯ÈV¼VJU¼Vb@bkLUl@„VJ@bUXǚ@lkVmXmKkLVxš‚Ž„VƒL@VkVVVlzW˜kbmLUUUbVbUV™šlÒnJlUnLllUL@bU„Vx„l‚LXVƦÈVU¦WJ"],encodeOffsets:[[118834,31759]]}},{type:"Feature",id:"3411",properties:{name:"滁州市",cp:[118.1909,32.536],childNum:7},geometry:{type:"Polygon",coordinates:["@@š„@`nnl@„xšK@X°KXV˜IXVlbXVWnX‚lL@šÈ»‚LVan@VJ„êVVn@‚X@laÞbVaƒyn@„_‚xnWVXnWl@VnUVkI@l‚nXKVLVV@V@kW@LlVô„@J@bVnnKnkVa@»lç@ƒnwšKma™UUUVњ@n™mWXalI@alVn@VwUaVU„@„nlaôJnU„VVXlJšaXXVK@UšV@VWx@nXVWšXVšUlLUbV‚ULVVnUVbUbVbš@@a„KÆnnKVK@U@UU@@a„@Vƒ°¯ÈJVIlķ@aa˜UaVKU_@mkxUI@aƒUlyU@@™wkKWmUbUnUVWbkJW_J@bƒn@Vm@@KULk@V@@bVbÅm@LW@UVVbkK@UkKWL@VULUKWIUJUbkK@_WVXU›Jka@XƒVa@kšy@aVIUUW@@m„UlLœKWÑUKVan@UkVmmIXKƒaVaUwVU@UmykU¯@±UUL@WUIVUU@KkIWaƒaU@kUUaǃUó»mKƒk¯@y@kWK@bkI¯`mn™l¯XWlkVUzUJlbUbVJl@nnm„@VULV`XnWƗbmUUn™JmUknƒJ¯km@ƒyk@kU›xL@VUbmnn¤lX@`™z@JmaULUVl@Xn@xllkXWa—aW@UVmUbƒ@mVXšWxXbWbUŽƒÒnVVnVVUL"],encodeOffsets:[[120004,33520]]}},{type:"Feature",id:"3418",properties:{name:"宣城市",cp:[118.8062,30.6244],childNum:7},geometry:{type:"Polygon",coordinates:["@@Vb@„XL˜JXxlIXxlVlV@I²¤šnlUnVšU@VULWVUJ@Lnb@lV@UnV@@VVVlLnbnJ‚UVkUUVWn@@anUVnVJVIV‚@@nUJVbUb‚„@VUbVK@bn@VbnIlxkllXVlXKWUXUlL°¤UVVb@bš„UlkXW‚ƒxXz@‚„Ila„UlƒnUlJVInVÆJ„U„LVUnV„K°@VnlVnxV@XLlK@wVL@KnUlJXU˜bnKVLX„lUw@VWlLXKm@@a„@VLnmlIVVnKn@škVašVlwk@@a@k@ƒVIUa™@maUa@wna@kmWƒ™UUmVUIVǗ@aƒKm™aƒ™kU™J@InmUUaVa„k‚lX@Vk@m@VU@wnK@alKVUkUkKƒbmUkmƒ@U£WVk@@UÝbbƒaÇx@b@WVUa¯ƒ@wVwUUV@VwnK@KWaŁ@KšIUyUI@WmXó™UbWaKm™@km@IUyƒIUaWKƒx@zUKUL@llVUnkLVVkJWX@VUKUVƒIkVWakb@VWb@n@JkXUlmL@xkL@`VxšLUÈUJ@Vm@@bmIUlUL@VUVVbknm@mKUw™KVÈ@J@LV±kkJUIƒl"],encodeOffsets:[[120803,31247]]}},{type:"Feature",id:"3412",properties:{name:"阜阳市",cp:[115.7629,32.9919],childNum:6},geometry:{type:"Polygon",coordinates:["@@V™nƒš@ša„k°aš±@‚¥@UUI@aUmlwUUx›b@¥XU@mmI@a@Kn@@_W@@W„I@mšUVVXUl@XaV@‚K@I@a„LX@aVI°K@KVL„UUw‚yXkšK@kšKÆbXnlK@k@a„JlU@w@U@»@aXKWƒn_‚JXkVKnƒ@°LlKXƒW@¯Uƒ@aUK@kmJUw™VƒIUJ™„kŽmL™K@kka@wUVm@@am@UkUbkK@nmVƒÒ¯VU„WVVmIƒƒULk@ƒƒma@kkKƒƒ@nUbUamU™`UUVUkKVkkƒW@@bkmƒnƒmUXVKXVƒL@VƒbU„m‚™bVXJ@nmKÅI@KWKUXVJUL@VUKUX@KUKWL@LUJmaXXm@kVVV@L@VUL@VlK@L@V@LUK@VUb@UUU@°@nVxU`‚Lkn@`@XVJ@X™Vm„k@UKmV¯LVVn±Wm@Ub@JlLUl„@VLk„@lmVVn@bnV@V°IV™šaVJXI°K°V@XXVlVVU„nšKVlUš„bWXnV@bV`U„„@@m@@‚ƒ@nxmn@bXVlL@¤nb„Ul¦šVVUnJVU„Vl@@bÞL"],encodeOffsets:[[118418,34392]]}},{type:"Feature",id:"3413",properties:{name:"宿州市",cp:[117.5208,33.6841],childNum:5},geometry:{type:"Polygon",coordinates:["@@@UWU@bkW@aWU@aUIkWV™lLXb„lVIUVV@‚mn@V_n@VaUK@I‚@UašanJVU„@lV„UVnnKVVlaUa„I@wnK‚Lnll@nVlk@wVKXkl@@b„bUJ@V‚U@U„UUyVk@aVUXwlWXX‚WU¹@aU™@WUI@mlUšn„J@Il@šaXbV@VKl@XxVL@W„IšJlb„@„al@„IUUm@@aVK@¥¯—@mUķ¯bWƒk£Vm@akm@VaÅ@UVWaƒ@UJWkƒJ—UƒbWbU@UlƒXk@ƒamV@K¯nk@ƒlU@Uxmz@bU`ÇbUbÅVm£U@Ww™x@akLUK@UlakwUJWVkLmaUal@n_ƒmVUnKVUUmÅXWa™@kJmx@XUJ@bVLXxl@VVUVV„UbkLWbU@@lUVV„VVX„›K@XkJ@nU@@bV@VxUVlb„U@xXLWŽn@UxVbVĊ„V@b@XV`mnkJ@kUKmbƒaU@VbnbÆx@XU@@`k@@bl„™@@bkL@WƒakXWaU@Vmkx@XWW@@wUUUbƒJ™U¯V™@¯ÞU@WxXŽlL@bkb@ŽlVlnb™JW@kkU@mbkaWJ—IVlmz¯`UnU@mb™@@„ƒ`@bkVlœnV@b@šV@„aVxn@Vx‚KXnl@nbVK„bVK@a„_V@Vƒ„w@W„LlwnK@UmIU@VWš@šUÈ@lKnal„wš@@V°@šaUmlUUw@„ƒV@@UXK"],encodeOffsets:[[119836,35061]]}},{type:"Feature",id:"3410",properties:{name:"黄山市",cp:[118.0481,29.9542],childNum:5},geometry:{type:"Polygon",coordinates:["@@lXnlWX@VUJVnUJVzXJVx„kVJlI²l‚U@K@IUǚLVxnLn@lmUaVU@UVKVknJ@an@@UVIVǙKUw@_lK@wnKVklW@I@mXa@UlaXblU„JVUVL@UXWlIUUlKVmkU@kVKVL@y„wXLVb„JVz@Jlnš@nŽ‚LXbVaôšnW@la@UVWUa@@a@mk@WIk@VwUa¯¥m@UUVK@ImK@aX£ƒkK›ÅV™a™™ƒ_@±ƒakXWW—LƒƒƒnU@@a@¯mK@L™JUWwUV™VmbXX@lWLn`mzUJUb™Lƒ„k@makVWmkX™ambkKknƒaƒ@ƒaƒb@‚U@Unm@—ƒWVƒ@VbUbUJWIk@@lmL@°UVUVm„nš™@@kmWkb@xƒ_m@@aU@b@JlŽUz™lWxXn„@‚b²@l`„IVl„UlL@VšK„nVbUl@VlIn@@b„bVWUk‚@@bX@Valb@bnb°Vn@„xVKlbVnV@V‚x„L@ln@UXVV‚L˜"],encodeOffsets:[[120747,31095]]}},{type:"Feature",id:"3414",properties:{name:"巢湖市",cp:[117.7734,31.4978],childNum:5},geometry:{type:"Polygon",coordinates:["@@VV@blL@ŽXlWnnšnŽ˜„@VXXl@@WšIX@VJ@LšxŎxlnšŽ@bXJVblX@VVbUVn@VbUVlb@LnJVbVLV‚XLšÒVL„ÒšV„bVIVylUXk°Wšknm°_lJ@aXL@l‚z°@„lnLô¼V‚È„VUUaVKU@WW@@UUa@knmVLlaV@„a@kšak±@UmwkKmk™lj™ÝUUkL@mlIVmnÝWkkUÝ@KƑĉ™a@»ƒmma@mX™¤¯Uƒw@ƒ@UU@bU±±L@akmƒ„™LUKmLUUUJVbbÇwƒ@kUWaUJ@Xkxm@UJUUm@™„k„ƒ‚ƒakXUšVl±ôU@kn"],encodeOffsets:[[119847,32007]]}},{type:"Feature",id:"3416",properties:{name:"亳州市",cp:[116.1914,33.4698],childNum:4},geometry:{type:"Polygon",coordinates:["@@lU@Un@@anUlw@KVmUwlaX_lKna@KU@@kWKUU@ankW™XK˜@@V²VVIÈU@al@VaÈamK@wU™@klaUƒV@XƒVUU»WUUbkmUkVmk@aÈw@mWU@VkIkVWKUÑķXȭºU¯lƒ@kkLWmÅa™L@l™LWlzVxƒVUK@L¯LUJ@bWƒK@b@JLU@Wbk@WVUU™V@nƒJ@XX@@`m@@L@bnJ@nWV@¦œa‚wVVkxVn@bVJ@V¦@Ž™²¯bƒl™b™@m„UšUŽƒŽ@¼ƒ¦Xb‚UV`@nnxUxWLkUkVWKkV@XV@@VVL@VX„@lVV@L@blL@`šL@xXKVL‚@„VnUš@lwnU@ml@XnV@@UVW°LnalƒUI@aUK@a‚a@U„kXW@I@mWL@UXK@UVW@U‚@@k„Wn‚@@V„@XblaVxšL@bVKXb„IlJ"],encodeOffsets:[[119183,34594]]}},{type:"Feature",id:"3417",properties:{name:"池州市",cp:[117.3889,30.2014],childNum:4},geometry:{type:"Polygon",coordinates:["@@„V°°ĊŤ@xƒĖ@xœXƤ„VôIÆmnLllXÔ@lƒÜŽn@@JšbšLÆaĢÞĸ„°VVUUKVanK@UV@VL„VVn„ln@‚xnklxXamk@WV@Xa˜@naVk„Klk™@mkUWwkJWw—IWK@ƒUaUwWIUyVIUmVI@UXWmkkW‚—KUUVWm@@kƒKw@U‚UUmkaULƒwm@¯Uma@akaUbW@@a@VlUXƒa@am@kJ@UVkUaƒm™L@UkKƒVUkƒJk_±@aƒ@WmXwÇkkaVaUa±ƒœwV@VkƒwnyUaW@UU¯amLk@m™@kmmU™™¯K@L@lUX¯ƒWlkXƒŽVb„bƒVUL@J@LVKnlJXnlb@`nXlalV@bnL@Vnb˜¼@lXbWlkL™K@zUJmIUxUVUVmX","@@llUL@VlxšL@a@UƒwXa¯@"],encodeOffsets:[[119543,30781],[120061,31152]]}},{type:"Feature",id:"3401",properties:{name:"合肥市",cp:[117.29,32.0581],childNum:4},geometry:{type:"Polygon",coordinates:["@@„L„xV‚ĊLÞkšVlVVXaWaXwW™nU„@‚anVVUX@˜bXblWkk@wWmk@VUVKnb@Išy@_kWm£nmVa@U‚KœwlVl@„zn@°l„IlmnVšIVmnV˜aXÅWmU_VK@Unƒmmk@UIVakaƒa™UƒÑUK™ÑWKUUKUamI@KkaVUUam@VUUa@UkWUaWI@a™kmōw™wUL@`mn@KƒV™IUVUUUK›Vk_ƒVkbWƒ@VkUULUJ±I¯aƒlkxU¦@L@V@V@b@b@„WJXbWVXn@LƒKVL@JkLƒŽV@Vbn@VV@XU@UlV@@VV@V@XXV@@VšJ°š°Xnb°@„JUVVXV`@bkXWŽUbU@WŽn@VLXlm„°bV„UbkK@bVJ@bVbkLV¦ƒKķV@x@„XbmVVVk¦"],encodeOffsets:[[119678,33323]]}},{type:"Feature",id:"3403",properties:{name:"蚌埠市",cp:[117.4109,33.1073],childNum:4},geometry:{type:"Polygon",coordinates:["@@VÒXLlUlJ@UXV@nÇx@bnlUVllnVaXVV¼UVW„U@V„²wVV@Vl@„VnwlIš@XbÆWVnUVmLUV„nm`k@VbnblKXUVIlxkb@VVLlK@bšwXxV@n¤ÆUVaÈaV_@anyVwV@„kl@°m@LnU„bl@„WVkV@Xa„a˜V„IXl‚IV‚„@XbVUÆ@XKWwUkmW@_UmnIlJXkWKXmV@‚w@_XV@Kl@kU@KlX@@UUUUKWLm@klJVUUmk@mXUWmXwƒ`m@„zUbÝakbW@m@UUƒéUIm@UbKǼ@™kKWXmWUkaWU—JWU¯L@W™Lƒwk@mm@_™ƒÅl™UVkmWUnV@VWLUb™bƑĬ¯l"],encodeOffsets:[[119543,33722]]}},{type:"Feature",id:"3402",properties:{name:"芜湖市",cp:[118.3557,31.0858],childNum:4},geometry:{type:"Polygon",coordinates:["@@„bVaV@XllLXU°ŽlL@V@VUnVl¯Ikš›VUVU@@b@lUXUWmb„n@¼šbƒĊ‚LÞ@lVXlmÞUnkJ@nlKVVšÞXklWVaVI@aUKn»lL@Kn@‚XXwlm@mn°@„V@Wy„wXlWVk™ƒ@aUaVU¯£kKWVXVWLUkkWlkkwmJUam@@aULVa@UƒVaUaVI@m‚@UUJUIUmmV@bm@UXVVUlVmImakKUU@UU@VmU@@kma@KVIXUVK@U™VmUkV™m±£@JkU@nlšk‚ƒLUlmb—@WbU@@XnlWb"],encodeOffsets:[[120814,31585]]}},{type:"Feature",id:"3406",properties:{name:"淮北市",cp:[116.6968,33.6896],childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@lnnK@¦n@@V‚V„@@VV@nIV„V@VW²a@b@bVnUVVV@V™z@lš@°UšV„IVaVV@x@ŽXX@WlwUnV@XblW„b@XlK@aš@kƒ@al@@_V@@WÅwmaUaV@„bnaVL@llInmU_@W@aƒUUĉUaVwm@XWK@wƒVkaVUUwU@@aV@@mlI@WœLWƒUUUƒVU@kV@XalKVaUƒVUUUk@WwUK@aVI@WƒUk@@UUU±xkb@lVš@xnLÇbUbk@@bÇVUJ±U@U—@WLXšml@bVVXL@lV@@LmbkLW`kbVxUn@LkxmV@bm@@VkV"],["@@VVVkV@¥@UV@U@VUUJƒkWakKUšlXVJ@bXV@blX@aXV@V"]],encodeOffsets:[[[119183,34594]],[[119836,35061]]]}},{type:"Feature",id:"3404",properties:{name:"淮南市",cp:[116.7847,32.7722],childNum:2},geometry:{type:"Polygon",coordinates:["@@°kƒīšaVaXK@U‚UVmnXUlšVÆkVKUUUmmU„ÑkU™UÝlĉKUƒwƒKƒbU@UxW@@lœmVUUVmUUƒmƒw—aW„kL¯K@Žm„ULWlIm`X„WL@b@¼@V@xkVƒI@b@l@lk„V°Ȯ¹ĸW"],encodeOffsets:[[119543,33722]]}},{type:"Feature",id:"3405",properties:{name:"马鞍山市",cp:[118.6304,31.5363],childNum:2},geometry:{type:"Polygon",coordinates:["@@šNJnllLnxV@laXLVKma„aXbVI„bVKVVVIVyn@n_ƒƒW@@ƒ„UnJlUVVXlLnaUWlV@VV„IXW@_W@XK@K@UVUUwVamÑXmmwƒw™KUnUK™çU@ƒJƒU¯@mŽ@nknWxWm@@LkKm¼VL@bUJUbkXWl"],encodeOffsets:[[121219,32288]]}},{type:"Feature",id:"3407",properties:{name:"铜陵市",cp:[117.9382,30.9375],childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@„ÒV¤@¼V²@aVV@Ž@„„x°Vš£nW‚@nbnaVXVW@k@aV@VUœUl™°JUkVm@U@UkK¯WVkKWkU@Ubƒakwmlwm@ƒkUmƒUUKU@@VmLUbVLUV¯U"],["@@LllUL@VlxšL@a@UƒwXamK"]],encodeOffsets:[[[120522,31529]],[[120094,31146]]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/ao_men_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"8200",properties:{name:"澳门",cp:[113.5715,22.1583],childNum:1},geometry:{type:"Polygon",coordinates:["@@HQFMDIDGBI@E@EEKEGCEIGGEKEMGSEU@CBEDAJAP@F@LBT@JCHMPOdADCFADAB@LFLDFFP@DAB@@AF@D@B@@FBD@FADHBBHAD@FAJ@JEDCJI`gFIJW"],encodeOffsets:[[116325,22699]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/bei_jing_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"110228",properties:{name:"密云县",cp:[117.0923,40.5121],childNum:1},geometry:{type:"Polygon",coordinates:["@@vIHZDZQtDLNMXIbHRCXXITbJ@H`LGPRDDJNCLHTOCWFGvGBUJMKGFO^IHWXITQCI’Y^AXGfRˆDXF`DJOLB~G\\DZIHHpErUVMhHb]\\M†BVF@FTP`@zTbD\\@~M\\K`H^EVODWICAakAQXoIcCOCIgGYNWFWNGGKKGaJEGMEIKYJUT_J_Go@_SyQaSFMEGTcYOQLIIi@EKAUPCV[EEXQCW|aMUMAaYCYNIDGGACIMGGSKDQGaF_C[GaB@GOIiOKAYL“mI@CN]F[SWWAcKKI@HMUimEKbeYQYISNUOcBKPIFBNgvDPGZYFSf]CMSIWGEUFgDIQ[MeDMJS@RR@LphFPCHaBAJKF@J]IBJO@HlO@@RKAMPJHCNDJTHFP@ZGNANBRFH@J_fM^ONJNF\\VTDJHDON@XRND\\XRCPVETCLBVKDFJINHRGPRV@\\CLJN@VbXbLVT"],encodeOffsets:[[119561,41684]]}},{type:"Feature",id:"110116",properties:{name:"怀柔区",cp:[116.6377,40.6219],childNum:1},geometry:{type:"Polygon",coordinates:["@@JHTVHXCHPfnDJGHNDJSB[JSBGVSAOH@PMPuDEHHXZN@PHF@ZLJ@LHVYJA\\OFWP]BMtMBSRGV[JeVAPQVIFENMD¡–@^NV\\JH@NNL@NM\\kTQ\\I^FNIpBHGTBFFAZQfKDIXQTLXFXNNVMVHRGpCFLlRLEVBBH`IVO\\G`RDPAXLXBXORHZEHTDLLN@VGTMrQNFPeASKG@GMOAKBYMK@GTUHUXSHMVDNMOUEOZMJML@^KRACMZEZMRQLUHE@OFENPR@DI\\ChMHIDG\\GJMDWHCKGMDCIQCHO_K@GaIJSWWQDaGWJMNCKRsCYGYuJUSaKaW@UIMDK@[QUHOGQJMEILCAUDKFSOUQD[WMC‚Q@WPMGCCIUSE[IMPMN]`e@IEGAQBMHM@YEOSGCIDMIGNOLB@QP@GkP@AI^J@ILEBIbADGEOog@KQQWSekWQQUOFKZLF@PUNmIaHIUeBCTSHENcJa@_IWSaGu`GLSBKJQFOXGDXVQVOBIHcDSJWBEFGTMH[^mLaXcHiKElTRKtFXZ`MHMPCNRDxZˆB\\ICIHK@KŽHbIVFZ@BPnGTGbDXRDJaZKRiGEFSFEJhjFNZFjn"],encodeOffsets:[[119314,41552]]}},{type:"Feature",id:"110111",properties:{name:"房山区",cp:[115.8453,39.7163],childNum:1},geometry:{type:"Polygon",coordinates:["@@h@bl@HRJDZ``TA\\VVD^H`\\pF\\JŒ`JGv@ZO\\GPSTEjPTR`FnEbDTDHEhLFMTK@ETSPULKEI@OVISKSJACEQNQbV˜IXGDIN@dMB[IIBcN]ZHNLP@XOWCFWŠCNRHTpATD@^NVNLED@Rh@jCEF}E[OOHUEW]W@QGGDIQSH_MmFmCUT_K]i@MHCMW—FCF‹E{BMHMPOHKS]CFNGBELDH_@BcAKOACESAOBELaXAROB@FODMEDWJAG[aE@UM@DImEWJMC@OeCA{aE[@{L@MINUCQXKfUJORCHqJBF@TCXWNQX]M[EAJO@@KMBQJIC]EWMCCUBEBFHKDOTMBGNGF]MWDBRDdMDQVyE@LPVHDCP@JVVMTG~HNSH[CmRUvHPHBbA\\PTNRC\\YNJ€PRARPJDDR"],encodeOffsets:[[118343,40770]]}},{type:"Feature",id:"110229",properties:{name:"延庆县",cp:[116.1543,40.5286],childNum:1},geometry:{type:"Polygon",coordinates:["@@^AXOPEB[ZIGU@KKI@YGE@OYMGWFGvCNO@OPGTBHUTA\\ITACIGMIHmCOeDGGWSUIGimYEEMgiFITEFEjHLQbYCIWQaCSHmHAOY@UEaJG@LGLDJ[J‡AwYQCDMNONGY_EWLsSQFkMO[NWAIGaIYL@HMBOKiOQDWEUDMQSF_QIUBWdg@[NaAKQ@M]OQ@WhgLUMMFYQDIRCEUZOOCIOJ[KIUMKL@HIDKVEBM`HJAJSJUdBLGNEdMBMO[BYEWJSNKNaD]PE\\SjOT_RQVEZPpƒNQXfŠNA~lNG`@PNLp¼RFLfbdKbATUh@FSNWjGFZVLFHVA~X¨PPROfFJbNJPLFbENJPrEFNPFRHDDJdENJLVEPBJTVTHGHFRFH@PXP\\ORQHW\\BjWFDERLPPBbB\\E`B\\D\\L`@F]FCnJ^AZL"],encodeOffsets:[[119262,41751]]}},{type:"Feature",id:"110109",properties:{name:"门头沟区",cp:[115.8,39.9957],childNum:1},geometry:{type:"Polygon",coordinates:["@@V@XMnGPY²‰JQNEhH\\AZMPDVTTDZCPiJkHSHCjIdFtEHITCNITQEKUAMCEIKCECABYESKFWAKBEIIHABGDCKCAIHMHALKEI\\CFIBILIJQZS]BBEECS@E@@C]COKI@CABAAEEDMGƒCH]A[M@CJWH—JaUMRFRBDTITLUJ@PFJKLOVST@FSLENgKGFSCaCmF_ESQiOSFOT[HYPu@IH‹_[IoE_[]GUC[USB__CYQI@Gakg@qZeHQNMNV\\FVLPgJAFJPRLCH[XcPELUT[JiV_EELFTADBXRTRLJC@fHXHHbPd`fR@NfT`@TLplHMpCEJHJBVLFŽ@JT‚VnG^KXDXHNVGRLRXFJVdDHSNWLGfEzA"],encodeOffsets:[[118635,41113]]}},{type:"Feature",id:"110114",properties:{name:"昌平区",cp:[116.1777,40.2134],childNum:1},geometry:{type:"Polygon",coordinates:["@@VNLJI\\JPPDYPFVQDCJZRNEVNhKXgR@^P@NLRbB\\Mh@XcVARJE`RTCNFV€XRCjPPLNA@GZKbJJHXB\\MNPjLdGbWnK\\]NGHSFEXATIdCJGPARUWUHCPWRELITAHKv_E@iYCaW_BQ\\Y@QIO@QDCIGZCEMWGFMFAFgHEDOCSqKCCFGAMKEAC@ODGCGs@WH@KQA@EE@CE@GEA@EH@GGUEEJEAYD@JM@@DAA@FHD@FTJEHUC@JUBKCKG@G[CIIQReAYhO@OXGDO@@FF@IHJFCPEBACBIAAKDOABXARHPNEHGbQAAKQFGIAM[C@WHKaGiCEGOA‹HUKCIokSCUSOCYN[BgGMFIR±ŠOZmHWNU@ShbbXDHVXXGJ^lZ@PZ\\Nb@\\FHJAD"],
    +encodeOffsets:[[118750,41232]]}},{type:"Feature",id:"110115",properties:{name:"大兴区",cp:[116.4716,39.6352],childNum:1},geometry:{type:"Polygon",coordinates:["@@F\\E~DFN@BDFEpHFCHBBEGCDCJBHUDSBB@ELCPbF@B\\J@BJVAFJ\\ADKTCBGECFMT@BMN@@FH@DaNBEnvB@FPBATK@FHEFIAKFBFL@@PKBFJHC@FXBRAFCDMPDTOL@JIVFDHH@DDH@BGRFCDLD@N^@@CNA@KNOAEBCECFEGCFGMGFIPMOEJOLBADBBHGG@GCHIECY@INC@DMGS\\AIOZAAEYA@GT@KKMBEETCGMVINFxA@MJADB@FlA@HJA@NND@DFA@DVAZBBOFKH_JA@K^GBC@EFE„G@gAENMXKJigC@IbSJMqGOP£RGSMGE@kbQFDPEFiBSGGSBK]I{CDWCIDOic[C_G@SuSO@EWKCO@MNY@\\uZOPENQD[LKESSKGBKEG@EJGAGHoH¥CqhifeJkX_XFFGHFNEDFPENKHM^IFIVL^S`DVEnNnG`RTCJHH@R^XFXGVPP"],encodeOffsets:[[119042,40704]]}},{type:"Feature",id:"110113",properties:{name:"顺义区",cp:[116.7242,40.1619],childNum:1},geometry:{type:"Polygon",coordinates:["@@EhEBENXHFNYDJHCD@RJP@R[ZARX`DbjZF@bHXT`Jb@dIFMTGDSfAJVbGnJVM@OKELYPERVXRflXTT@NIfC\\NJRhCVEHFJXNT^DTeZEHYCOhuAMJELOdAVPTMOWBWNMNEJgl]@WGUFIC[T{EEDEHGCIGMI@SECUQI[D{A{GQESPUH]CsiMCmHUeoHENcAaDGCMDGMQCACCBaCGLMAHB@DIEQLOAAEEJ@CW@CDINGAAGKQOCgV@LG@BEGDKNeREFBNCFIDOPKD[@YRW@GFWDAFE@EHDDrLDTCPGF","@@KrJEH[\\B@FF@CHFBHUN‹AJKADGECBCMAG^E@EbI@BEGP"],encodeOffsets:[[119283,41084],[119377,41046]]}},{type:"Feature",id:"110117",properties:{name:"平谷区",cp:[117.1706,40.2052],childNum:1},geometry:{type:"Polygon",coordinates:["@@ZJZRafFLjn€VGNJ@LLBdXX\\T^EDMJ@”nZKLBjPPJ@HbA\\H`DbERHLCFK^BZaFWXQLAGMHa\\OLO@SBIpBdCLƒVQfElO@GSAKEDQTC@GEBKG@ORIJBDAPDFA@CaOq@GGQAAEJK@KMUGAAGEAa@MGMBGCGSIIW@WSUCMDOJeWOM@IUF{WMWaDIMgIoRoCOKeEOEAG_I[cg@wLIFENQFDVTFJ@HNDJGHCFFFS|D\\EJHV@Xk^IhMFMNAXPX"],encodeOffsets:[[119748,41190]]}},{type:"Feature",id:"110112",properties:{name:"通州区",cp:[116.7297,39.8131],childNum:1},geometry:{type:"Polygon",coordinates:["@@FDAJTGDNDCTDDEDBBE@DT@@EHCDGJ@EIZ@@FDBR@ATFBBVFFE@@HNA\\VE@CLIFNJFNJBCP]A@LJFA@HJEDD\\C@DBCHLAEPF@@DH@APHAERDF\\GIxDTM@CFLBBFJ@CNUPMHECGDBF]BMFPDLRBHHBJMDCX@@DFIBFPBRKJF@CGANBHKbDDABDRDHNNCHDbCdBFMpGHiOYMefKJMC}HWAUNW\\NNBNA„kNU|]HMTMN@MZBLFFF@RIRUT‘BMFIEGaAGGAOIIUGTSFcYKS@MSLYPKRUBU]EWDOI]CKGASgW@MTWKIMCS@uMAKKADMECGAKVUTSDy@IjWLMNBF@hƒHEF@FAD]H@LIBG`ELAPYAUB@CEB@CMC@MIB@GkB@ECAIB@NwBMEUJHNSDFFNALLS@@HZBBFYBJP[BHTCND@JMZ@FDGJHDH@GHAABCKAIPPFONEJNHEHHDEFFDADBFMP@L"],encodeOffsets:[[119329,40782]]}},{type:"Feature",id:"110105",properties:{name:"朝阳区",cp:[116.4977,39.949],childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@bFGHBHFBFIVFHHG@@FFB@HDFF@@FRB@LXGt@DHCH@PBDLFBNF@BEXCHEX@ZQ\\@LCPOJCDEAMFEfQLMHCAFH@@KhUNE^AAEHCFDNGVODMI@AEKADEN@CSJw[HCEFQGBBOG@@CE@FOKBDGCAD@C[FCGIB@IE@K^BDOIAEMMIJEDKF@[UMB@GF@EEAUEABSQ@CA@EY@FJI@CHGD@FS@@CAFCACFSCCDCMSHBIECMB@D]@@MKCDCQEAHG@CCG@CGUEIJK@SPOCCNEDQBDNDB@DJCDLFCBBALJB@BVGPBKVO@KHCCCD@FE@BNA@FNCTDDJA@FGB@NBDW@CL@hT@@ZHHQDDDAFSAANBC@HG@EFS@@DE@@PCB@Ue@CADNJB@FCBWA@LI^ix@FIHrH"],["@@HUN‹AJKADGECBCMAG^E@EbI@BEGPKrJEH[\\B@FF@CHFB"]],encodeOffsets:[[[119169,40992]],[[119398,41063]]]}},{type:"Feature",id:"110108",properties:{name:"海淀区",cp:[116.2202,40.0239],childNum:1},geometry:{type:"Polygon",coordinates:["@@plDJVLŒGPBFHjDbHGL@X\\DBNHJREBLRBHaFGŽMGOBQAWPBLCBBAJBDFADOIEJGE@@EP@HCPWP@ZgfBRQJJ\\D@HLHLDVA@IVDFGSI@EGC@EBB@CN@@IZCAGHGaEqGJG@EjwJ]@K@GSA@e_I@NE@CA@Kg@KC@ENCFƒAKQAW@WIMK@V‹@I@@F@^EDFB@HcIaDYCBRRDCHD@EFLN@FE@CJUPEJOJMTBPEDIFCMIAKNOGMRFJNDVBFLSRMJSDGJsFcEiJGDGTIlOjYD"],encodeOffsets:[[118834,41050]]}},{type:"Feature",id:"110106",properties:{name:"丰台区",cp:[116.2683,39.8309],childNum:1},geometry:{type:"Polygon",coordinates:["@@hMN@NFTQCFRCBJFA@HJ@@HJ@HJ\\FTACDŒ@@UNLXJX@@MA@@IECAQlDFEHBDI~D@GXCFMVDFCH@@NF@ANJC@FnAB@AMF@@EDCDDLGP@LUOAUH@AIABKAAEDCKID@CCACMWA@EGDEILA@OK@AELEJBFEEGL@BSOA@EuAFmMACbG@@EM@ANS@ENFDAHSDCL[BEIUBAII@A[E@OaKD@FAACTGVIACDHDAFGAEDoGEFACM@i€g@@QFCMKMU@]SCoBGSMQ‰DEXXDWPO@MKYGM^AdJJA\\cNB\\G^„DNHFCBFABDBJ@PL^D@DF@T@FDAF^A"],encodeOffsets:[[118958,40846]]}},{type:"Feature",id:"110107",properties:{name:"石景山区",cp:[116.1887,39.9346],childNum:1},geometry:{type:"Polygon",coordinates:["@@NQPHLMJBDNJEFCAONSPIFIVODIF@@EKMFEC@DGQCAQZDbCdJ@GEAFC@]@EJ@DCSB[EGII@@GI@@GEBAIQDDESRMEM@gNYTIRKJAJEJ[DFJKLGBGNBJLDCDAHGBJJAFBLEXTLZFBAFDLD"],encodeOffsets:[[118940,40953]]}},{type:"Feature",id:"110102",properties:{name:"西城区",cp:[116.3631,39.9353],childNum:1},geometry:{type:"Polygon",coordinates:["@@XBDA@EIACM@IJAD]BC@SFABISAD]H@@OAEDQEW@BLE„MD@FLDh@@LDBF@@M`J@fTB@H"],encodeOffsets:[[119175,40932]]}},{type:"Feature",id:"110101",properties:{name:"东城区",cp:[116.418,39.9367],childNum:1},geometry:{type:"Polygon",coordinates:["@@DBf@@VDA@OF@@CT@FEH@@GADBMTBBECCRCGG@YS@@gDK@A‘C@PG@C^TBAJEB@TADC^IB@J"],encodeOffsets:[[119182,40921]]}},{type:"Feature",id:"110104",properties:{name:"宣武区",cp:[116.3603,39.8852],childNum:1},geometry:{type:"Polygon",coordinates:["@@RBX@RFFCŽBFU@aK@WA}CCJGAEFkCBRFD@JB@@N"],encodeOffsets:[[119118,40855]]}},{type:"Feature",id:"110103",properties:{name:"崇文区",cp:[116.4166,39.8811],childNum:1},geometry:{type:"Polygon",coordinates:["@@XBL@@bEV’D@BX@AC@MHA@EIBCCDSEMmB@EIDBME@@MG@EDUCENWD@H"],encodeOffsets:[[119175,40829]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/china_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"xin_jiang",properties:{name:"新疆",cp:[84.9023,41.748],childNum:18},geometry:{type:"Polygon",coordinates:["@@@›ρȁôƧƦóəʵסʵóƪԫʵѵͩƧͩړ›υࡓɛʵ@ȃ@óᇑѵƨɝɚôóНѺͩɜ̏ԭʵôƧɞñ@υƩ—݇ȂóƩƧ@ѵȂυœƥŌਗ—॥ɛóʵѵƧѹ˜݇̍ࢯ˜əɞυ˜ρͩ̏óਙƨƧŋôōóš̍ͩóʵן›óŋړͪƧѶ@ɜԭ—ԫƦɛȄ̍›ɝȄöςƩȂ̏œñȀ̏œƩóóŎə˜@Ő̎@ɞȀɝŎôƨóנѵȄƧ@óŏɝœóɜôŎ̍ͨςŎ@ƨóôƨɞ݈ʶóƨφó̎Ȁƨ̍ԮòѸԮמ@ѺȀ@ƪၬֆòȂñ̐òȂɜ˜óƨ̒Ŏ̑߼@φρȀ@Ő๐ς̎Ƨφ@ɝφڔ೦Ԯǿࢰ@ƦŏԮƨƨȄƧ۬ɜʶڔŐɚɚóŐôƨ߼˜ôƧƧó̐ƥóŏѺǿƦȁφƧς˜ƨƧ̒@ɜƥƦυ̐ɛƪͩƩəƪʷ̑ə@ȃƨʵנŋྸōਚԭԪ—@ɝƨŋ̒օςʵôƧ"],encodeOffsets:[[98730,43786]]}},{type:"Feature",id:"xi_zang",properties:{name:"西藏",cp:[88.7695,31.6846],childNum:7},geometry:{type:"Polygon",coordinates:["@@ôŌנœôʶ̎ͪô™óŎƨŌਚƧ̐ôςͪφ—ɚɝࢰ—݈̎Ѻ—Ѷƨôʶ०ɜਘ˜Ʀŋφ›Ѷȁ̍—ôŏɚŋ@̑ə—@ŏò̍ɜ›óƥôʷƧ̍φѹԪ̍ע@Ѹʷɜ@ôñנ@Ѷɛɞô̐ŏѶƨѸƧƥōƦœôŏô—@ƧôƩ̒ŋƨŌƦǿô̎ɜȁ̒—óʶѶôôО̒›ςƥɜНφσɛȁ̎υƨఱƧŏ@ʵƥœ@ŌóóóͩƨƧóŋ̑õóɞóɝԩͪɝρôƧ̍ƧѹͨڑŎ̑ōóƧࢭͩ̏ѵɝóఱóóԪυô@̒ƥŌ̏Ƨ̑Ȅ݇ŎƧ›ѵӏ@ɛõŏɛȄôӒƧŌѵǿɝ˜Ƨŋԫ@̏ʴƥ@óǿ̑Ȁóǿ̍ςóóυô@ʶɛñρƦƩŐó̎óœѵó̑ͪࢯОóɜן˜Ƨ̏ƥȄ߻̎̏̐ןŎɝɜöɞƩȀôöɛȀóͪ̐ƨƪ̍̎ȂƥԪυО@φɞ˜ôƪ"],encodeOffsets:[[80911,35146]]}},{type:"Feature",id:"nei_meng_gu",properties:{name:"内蒙古",cp:[117.5977,44.3408],childNum:12},geometry:{type:"Polygon",coordinates:["@@ኊȁ૊ö߼ƩɜɛנñԮɛѶóԮô@ȁѸóמ̎ගѺၬ@߼ʶԮӒ߼̎@ŐѹӒ̒Ԫƨöග̑ѶȄ̒ς।œѶɚöɞɜʴڔôôȂ̎—ѺȀς—ƨ˜ƪóԪ—ɜôɛОਕڔԭ˜ѵ̍ѹȂԫ›ɛƥ̍Ȃóɜ̎ô@ʶ݊ੲࢮʵږͪנƨôȂƧ˜̐ͪ@ŐƦƨφԬѶɜôƦ@ŐƧôôƦəŐ̏›@ŐڒѶԬô̐ʳԩНςōôŏɞ@ƨȂѶəóƧ̒ػ̎ó̐Őנóƨô̒@ƨɚɚ@עԫɛɛ@ȁυͩƥʳòևρ—̑ࡗƧͪ༃ॣԮփ̎Ʀ@ôô@ôō@š@ȁѵóƨ̍υȃóʵɛƨƥóυȂóəƪ›̐ρƧͩɜԭڔȄ̎عƧȁ̐ŏó̍ɛ›ƥƧ̑óρŐ@Ƨ̏˜ɝəɛ˜߻ͩ̍ͩɝО̍ƪƧóóӓƨóƧʳ݇@ɝςƪœ@ʴƩ—ƧƦôƨɛȄə›Ƨŋυ›óͩѵ@ɝǿóŌן̍ɛ˜óО̍œ̑̏ôȁ̍ŏòȁñóƦͩ@ǿə@ɛƧ̑˜ρȁυô̍օѹœóȃə™@ȂσʵѷƪòƩ̍—ôó߻ۯôʳƧ™óšõʵѵóѹɜ̍ȂѹôɛŌφֈƩͨρóυӑóޟఱ̑݇ͪóƪƨŌóȄڔԬƩςםñ̑ȃѵŐԭŏƨȁɛǿρôõɚɛóƧОə@ѹ̐ѵöԪͨôͪɛ̒ןŏƧƥóôƥƧɛŌôóɝó@̒݇Ӓ̒Ō@Ŏԭࢰ"],encodeOffsets:[[99540,43830]]}},{type:"Feature",id:"qing_hai",properties:{name:"青海",cp:[96.2402,35.4199],childNum:8},geometry:{type:"Polygon",coordinates:["@@ƨ@ôƪ݈ȁƪ˜@φɝòóƨԮʶɛ̐ѹͪôОəóƧɞᇒѶ@ôږô@ǿѶ›ƪȁςœɜͩφ˜ςŋɞôѶɛƨŌɞ—@ɚςŐñԪॢͩƨȂɞóƨŐ̎ŏעӏ̎óƧƦôœ̒ȁɜ›ςͩ̒œɚɛƨôƨɝφɛóȁƨŋóóɚͩƨóóƩ@ƧəŋƦƩ̍@ƧƧôǿυ̑@ȁɞǿõŏρƥסɚƧóτԫɞœôƧƦ@ñȃòñƥóυôôѹѵ—@ŏ̏Ȅɝó@ȂəŌóəѹƦ@Ő̍Ōυ݈ԩŐƧóôƧ̑›ôʵɞƧ̑ѵôƩɞƧ̑œóНѵóôʵ̑˜ɛȂó̍ƥȀƧŋ̑Ōóƪ@ƨó˜óŐƥ›ƦŎѷƨѵƧ̏Őɝóѵɜן@óòɛ@ѷʸס@ԩ̎υѺƨ̎óʸôƦɛœñ̎@Őɚ˜@̒əŌóŐ̎˜"],encodeOffsets:[[91890,36945]]}},{type:"Feature",id:"si_chuan",properties:{name:"四川",cp:[102.9199,30.1904],childNum:21},geometry:{type:"Polygon",coordinates:["@@ô˜ôŋó̑Ԯ̒ɛОמͪƨōöͫ߼ƥôȃƨóóñôƧóƧôōڔŏƨŐ@Ŏô˜òƥѺŎ@ōɜóנ˜ôǿô›ƦôԮ̍ɜôɚ›Ƨ—ñɛɚȁ̍Ƨɛևυ@óóôŋρԭɝ@Ƨʸ̍ŏυɜƧƧóƧƨȁρ̍ƨȃɚ—ôʵφóô̑̏Ȃ̑ʵɜʵɞ@ƨʳסƩóŎə—óɜƧôƩƧρ˜óôôô@ŎƧƨƨƪѹ˜ó̍̍Ʃ@̏ѹНôޟ̍Ʃóƪυɝɛ—əƨôŎɛȀ@Ȃ@ñɝʶ@Ōρנ̏—õóɛͨƨȂѵОɛʵ@̏ƩŐó߼Ƨల̍φɜȂυτɛОρƦɝƨóƪ̒Ѷɝƨóʶ̒œóƨƨôԪŏφ݇̎ŋ@ŏѺƥôɚɚŋ@ȁɞô̐ȃ@ŐѶ˜óѺφóƦôñòòȄ"],encodeOffsets:[[104220,34336]]}},{type:"Feature",id:"hei_long_jiang",properties:{name:"黑龙江",cp:[128.1445,48.5156],childNum:13},geometry:{type:"Polygon",coordinates:["@@ᇔȂਚНƨŐѶŏöƥςŏñƧƦóƨȁ@óƨ—óȁφӑóóƨ˜óǿ̎̑ôНɞ—ó̑ɜə߼›̎ǿ̒ôڒӑφ@Ƨȁ̎̏ƥƩ̎ρశ˜ôȂςƨφ@נɞ݈˜̑ƥƧɛƨʵƧȃƥ@Ƨƥ@ŏ̑ԩôɝρρóɛƧ›ƩͩƧó߻ʸ̍ʷѹƥɞڕõ̍öɝυ—̍ȂƧ̐̑ŏóƨñŋѹóóȁ̍›̏Ԭõʸ̏ŏ@ǿ̍@ƧОυ@ñƨòȀƥŎ̑ŐѵóɛŌóȂԫōƧŎѹñ̍ʶóОן@Ƨ̎Ѷô@Ȃ@™óŎó@@ó̍ƥԭք༄।ƨͩ̒ࡘς˜ñֈƦʴφͪ@ȂɜɜסԬə@Ƨə̑@Ƨóןô̏ŏ̍ô̑ؼôƨѵɚƧȁɝ@óŐρŎԪО̏ʴ"],encodeOffsets:[[124380,54630]]}},{type:"Feature",id:"gan_su",properties:{name:"甘肃",cp:[95.7129,40.166],childNum:14},geometry:{type:"Polygon",coordinates:["@@ڔôԮࢯ@ō̑ŋ݈ӑ@̑ɞôóôɜŋƦƨôóƨƦנŐɜ̑óͩԩͧѶõѺ̏ɚ@ƨНɜôöəςóɜȀƧȂԮŐѶŏ̒ȄמòƪρړԫôȃƧŋôƩ݈ͩɚ@@ǿɜ@φͩóŏɜӑƧōôǿ̎›ôƥƪóõ›ö@ô—ƨ˜ôƧƦôó̒ɜ@ɞŌõʶ̏Ő@ȀóôƨȂ@ʶע@@ƥ୾ӑó̑óŋôʵóɛړ@@ƩöóƩóρ—ɛƨ̑@óʷƥƥ̎ɛƧ›ôōƧǿôͩѵôɝȃɞȁõƧρóó—@ōƧŏړŐóŎôƨóƨôòƧôóȄ߻ƦõͬƧŎםͩɜНԭ̑ô̒óŌó—ƥ@óƨɝ›σԬƨôעəςƦöŐɝȀ@Ȃφ̒óȀƨƨ̎@ƥƪɚŌ@ƨôƪƧôəͪôôƧŌôȂυɜƧɞƧóəɜ̑›ρͪɛœ̑Ȃó›ƨƥ̍ôסӐ̍ŐƧŏɝôƧȁॡͪòԩρŏ@əɝ˜ƧŋѵɜɝóρŌυ—ɛͪρ›ƩȂѵœ@Ȁڕó@ȄɜʶφࡔڔœƨͪѶͪԬʶôƩעʶɚʶƥôóƨςȂ"],encodeOffsets:[[98730,43740]]}},{type:"Feature",id:"yun_nan",properties:{name:"云南",cp:[101.8652,25.1807],childNum:16},geometry:{type:"Polygon",coordinates:["@@ôɞôɝ̒öôŌƧƨôͪôô@ŋƦ›@ʶƨŐô߻ƪŏ@̐ɜʶѶНƧȁɜͧöô̐˜ςן@ŋɞʵ@ò@ȁɜǿóōɚƧɜ˜φɞôƩ̎ƪóޠѺО@̐̎ƪô̎Ѻ—ƧƩƨƧ@ōóóôóς—ƪƨƨóôɛó̑ԭ—ƥŌɛǿɝƨɛͩô›@ǿƨȁѺŌɚɛ̍ןѶНɛƧôóƥȁƦͩôŎɞ—ƨ̑ɜ—òôφ@ƨʵ@ɛѹōóȃəƨυǿóʵρƧƧŌƩɛ̏ȄñƧƧȀɝ̍ԩʶƧ̑υ—óŌƥʳɚӑóНƥô̑›óӒѵʵѹœƧӐןôƪφõŌƪ̒ԫŌƧؼƨƨס›ρȁƧœƨȂóʶó@@ʴƨôôφ̎Ŏ@Ȁƨ—ƪɚƨœóƨôôôςóޤƧŌƩŋƧԪ"],encodeOffsets:[[100530,28800]]}},{type:"Feature",id:"guang_xi",properties:{name:"广西",cp:[108.2813,23.6426],childNum:14},geometry:{type:"Polygon",coordinates:["@@ƦŋѺ̎ڔʵƨŐ@ƦמȄƪôóȂɜŌɚͩɜ@öóɜôôȂƦôɜȁ@ɞφ›óȄ̎›ƨʶɞŋƨʴɚǿ̐̎Ԭ@ôñ@̏ƨ›ρ۫ô›ɚƨƨНƪŐ̎›ƥóƦʵƥŋ@ȃóƥƧ@@ŏɝǿôυƧȁѵɛ@əóŏ̑@@ə̍›óƧó—@ȁƩ˜ρóòНƥô@Ӓ̑@óŎ̍ƥσŎυ@̍ƨ@Ō̑ôóͪƨ̒óŌړœ̏Ŏ@ŌôȄѺŎ@ɜƧʶυ@ñóɛ˜Ƨ̒ɝ˜óōƥͪ"],encodeOffsets:[[107011,25335]]}},{type:"Feature",id:"hu_nan",properties:{name:"湖南",cp:[111.5332,27.3779],childNum:14},geometry:{type:"Polygon",coordinates:["@@@քɜОƨ@öŐמóƪôƩɚ̒Ő߼ȁςͩɜòƪ—ɜȀò—ñɝò—Ѻͪ@ŏƨŋóɝôǿƨ™ɚȃóəƨȃѵͩó̍@ȃƨóóƥƨƧ@ʵƦ›óͩɜ—ɛóñԭɛōυȂ̍ƧƦō@ɛƥ—ɛȀ̑œóʷóō̍œƩŏƧОəƧóœς۬Ƨœ@̐óòԫ@̏̍əȀƧʳɝŌóɞƧ˜ƨɜóŐƨò@ȄƧŌρŋóôԪОóʶ@̎óȄ"],encodeOffsets:[[111870,29161]]}},{type:"Feature",id:"shan_xi_1",properties:{name:"陕西",cp:[109.5996,35.6396],childNum:10},geometry:{type:"Polygon",coordinates:["@@ςôöƨɝȂɞȄѶóóͪƨȀóŎƨœ̍ɜƦƦôʸ̒@ɜƧς˜ƪôõô@ƪڔ@ôɜóʶôŌô̒୽Ӓ@Ʀ@Ѻ̎ɜѺɛѶôöʶô™ƨšóʴ߼۰óô̎˜ñƪѸƩτʶ@ȁòŋəѹóǿ̑ʵ@ȁ̒ʷυփô݉ôН̏ط@ȁƨóô̏ƪõ@ʳ̐ʵ@ɝɛŋƩŌɛóןôƧŋ̒ó@ŏ̐ƥ@ŏυ@ƧƧôן̏@ƥȂѹɜəœɛóԭ̎ƥóóœóȀן—ɛô@ŎѹōñƦ"],encodeOffsets:[[108001,33705]]}},{type:"Feature",id:"guang_dong",properties:{name:"广东",cp:[113.4668,22.8076],childNum:21},geometry:{type:"Polygon",coordinates:["@@@Ȃô˜ôƨ̎œ@ɚ̒@ôŐ@ɚѶɜƨȂóφɞȀ@Őƨ@ôƦ@ȄƦŌƥʶƦôôŎôʸ̒›ɜǿƦ˜@ɜƥŎ̎ƨφȁɜŎòƥԮŎƨōóŏɛƧɝəɞƧ߼ɜςȃñȄƦŎ̒ōôòƨəƨ˜ɚН@əƨ̏ƪʵυŌəɛóəԭŏəœóŏѹœρʵɝƦ̏™ƥʳѶ›öō̑óóŋρȀυƧƥɛѹōƧôן—ɛŏѵ@óŋôʵɝ›ƪԩõ@Ƨō̍@Ƨ@@ƦɝԮƪО@@","@@X¯aWĀ„@l"],encodeOffsets:[[112411,21916],[116325,22697]]}},{type:"Feature",id:"ji_lin",properties:{name:"吉林",cp:[126.4746,43.5938],childNum:9},geometry:{type:"Polygon",coordinates:["@@נ@ôН̎ʵѺòƨōԬŎôȁɜŋѶô̒ŏƦōñǿòƧφ@ƨН̎@@Ȁ̐Őöʷ̐ԫ̎œôȂѺôòŌôƧ̒Őƨ̏̎ȁφ˜@ŋƩͩםȃƨ—@ȁ̑ʶ@Ōóôɛœƥѹ̑—συ݇@ɜρƧȃࢯƨôœəȂɛōƩɛ̏υρóõœƪʴυφ@ʶôŌóœρք@ɜƧ@ɝǿƧͪρȀƩó̏ŐƨȂ̍غړȃɛԮƨͪ̏ςƩœôɚφȁƦôɜƧôʶφȄ"],encodeOffsets:[[126181,47341]]}},{type:"Feature",id:"he_bei",properties:{name:"河北",cp:[115.4004,37.9688],childNum:11},geometry:{type:"MultiPolygon",coordinates:[["@@Ʃ̒̏ŌѺ̒Ʃ˜óȄƧŌƥͪòôñȂ̎ŐóȂ̒̐̎›ôНɜ—נ̎ôŋɞȀѶ@ôͪφœƨŌɚœɜȃóƧƨƥƪ˜@ʳƩ›ɞρ݈@υНφʵɜ˜ƦρƨƧ̍ɝóɛѹ̍ρŏ̑ôóƨ@œƧƦôƨɛ@ƥƨ@ȂƦ@@ôəŐƧʶƨŌυœ̍̎ɛŋôōɝ@óƧ̍›ƦʵѵʳôʵɜŏςôƪŋƨŌɚ@ôНƥƧ@ōѸɛ̐ô̎ʵѵНԭ@̍̍Ƨò@ȁɝ@əρυͩƪ̏ƩõƧŎƧōóšॡȄɛʶɜȀ@ɞςѶƧœƥςɛŐ@ɚɜɜ@Ŏôôςœƪς"],["@@õə@Ƨɛ˜@ŐóƦφô"]],encodeOffsets:[[[117271,40455]],[[120061,41040]]]}},{type:"Feature",id:"hu_bei",properties:{name:"湖北",cp:[112.2363,31.1572],childNum:17},geometry:{type:"Polygon",coordinates:["@@ñȄυƦöŐƩ˜óנƨƨφ@@Ő̏Ʀ@Ő̑ôƨŌנóɜôƪŋɜŌѶօڔə݈òɞōɜŎôӏƦóƨô̒óôȃƨó̎ŐôƧƪ@ƨȁςƧə̑̎Н@̍Ƨŏρôԭͩԫ—̍ʵƧšóȀôɞƧŌ@Őѹͩñ˜òɞñ˜ɛǿƩ˜ɛñρͪ߻Ȃ̑ŏƪəƩóםôõŏƧ@ɛНƥȄó›̑ѺƧ›ôφóƨƨƦƪóɜŐôóòôƨóφ̐ƨóƦ̎"],encodeOffsets:[[112860,31905]]}},{type:"Feature",id:"gui_zhou",properties:{name:"贵州",cp:[106.6113,26.9385],childNum:9},geometry:{type:"Polygon",coordinates:["@@ɜȀƦŋԮ˜ô̒ɚ˜ôōעƪƧʴɝ@ɛʶ̒ʶ̐ȁƦœóȂô@ôŏ@ōô—ƨʶѸô@ʶƨ˜ɞó@ōτöòυƨ@@əƨô@ɛ̒@Ʀɜôȃ@̍ôʵԩНôóςŌƨŋ@ȃƧñôŏƧɛƨ—ôɝƧʵ̍œôȃυœ@ɝɛȂƥóóȁɛóõôɛ@əͪɛŋôȁƩóםȃ@ƥƧŏړʶѹ̍ƥŌƦȂóôɜƨѵО̎נəɜѹŋƧȂ@ȀóœɜͪɞƧ"],encodeOffsets:[[106651,27901]]}},{type:"Feature",id:"shan_dong",properties:{name:"山东",cp:[118.7402,36.4307],childNum:17},geometry:{type:"Polygon",coordinates:["@@Ʃ̐φͪɚςɞ@@Ȃƨñ̎̎Ԯ@ѶОƨƧڔ@φН̑ŋ@Ʃ̒ǿ̎@ƨɜԬςôʶ̐ʶöԫƨƧנƥɜŎôō̎@ôŏóρƧŏԫôóƧԩó@ƥɜƧԭóƨʵɛƨ߻ӑɜНԩ˜óô̑óƧʳə™óɛƧ@õȀƧœ̍ȃɛŐóŏυО̍—óɝƩ—ԩ@ƧɚԫȄɚʶƨ˜ɞʶԪ̐ړɛƪ̒"],encodeOffsets:[[118261,37036]]}},{type:"Feature",id:"jiang_xi",properties:{name:"江西",cp:[116.0156,27.29],childNum:11},geometry:{type:"Polygon",coordinates:["@@ƧȄôɚəȄ̎ʶԬ˜ԮͪςóƨŐƪ›τɞƦōƥƧ@ŏςôóŐôô̒ʷѶ—ƪƩƩǿ@ō̒ɛôυ@—Ƨȁѹɛəƨѹ̑ƨ̏óƥѵʷô̍ɛȁôŏɝǿƧԫƧ›ôʳƥōòȃρȄ߻ɛɝƨɞɚɜƨôŐƧŎԭōñƦòԮɜôɛ˜ôͪƥœ@ʶƧƨôƦƧô@Ȅô̎Ѷͪ"],encodeOffsets:[[117e3,29025]]}},{type:"Feature",id:"he_nan",properties:{name:"河南",cp:[113.4668,33.8818],childNum:17},geometry:{type:"Polygon",coordinates:["@@φ˜̎ƪ̐˜ɞȄɚ@@Ȃעó̎ŌѺ̒ôֆॢȃô™ƨŎƨōƪöƩ̑ڔɜԩ̏ɝʵƧ—əʵԬȃƨəԪ@@Ƨ̒ŏô̍υȁƧɚ̍ôóŋ@ɝƧŋõ̑σ—@ŏɜŋôɝ̒ƧɚôôطρóóɛƩ@óƨ̍ŏƧôóȄ̑ôƧóƥôóӐɛōɝŎ݇ñړɚѵֆ@ɞ̏ʶ@ʴƩöó̐"],encodeOffsets:[[113040,35416]]}},{type:"Feature",id:"liao_ning",properties:{name:"辽宁",cp:[122.3438,41.0889],childNum:14},geometry:{type:"Polygon",coordinates:["@@ƨʴƧôôӔƨô̎ƩɞН̎ͪ߼ͪɜ—ɞɚ̐—@ƨςŏ̒ôƦƨɜœô̎ƪôςǿƨͩɞȀƨ@@ɛςփô›óŋ@ʵφυƩʳö›॥փρѹס@əɛ@ͩࢯ@ѹʵρ—ƩʶφȀƧ݈̒۬óʸɝŎѵ@ԭԫןɛƧƨƥςɛ—υʶφО"],encodeOffsets:[[122131,42301]]}},{type:"Feature",id:"shan_xi_2",properties:{name:"山西",cp:[112.4121,37.6611],childNum:11},geometry:{type:"Polygon",coordinates:["@@ɚѺñŌɚšôȄѺ›̎ֆφóςȂ̒—ɜƨɚ@@Ȁƨŋôȃƪ—ѹ̑̐ŋƪ̑Ʃρρ›óó@ōɛɛ@əɜŏƦρƨ›ρѵ@ɝɛǿɜʵóօѹ̑̍ŋסô@ȁə@ɝȃ̏—̍Ʃυ—Ƨô@Ȃ̐ظóОó݊φք̑ʸ@Ȃ̒ʶôȀ"],encodeOffsets:[[113581,39645]]}},{type:"Feature",id:"an_hui",properties:{name:"安徽",cp:[117.2461,32.0361],childNum:17},geometry:{type:"Polygon",coordinates:["@@ó̎̑Ő@ƨƪ˜Ѷǿɜ̑φ—Ʀʵ̐˜Ƨѵôóƪôôυς—ƨȂɞŏ@̍ԫôò̑ƥ—óȃѶͩƧƥôŏѺœôŏƦ—@›ƥͩƧ—ôȁυó@̑ƧɛѵʵƩƪѵ˜̑ʸóóôŏρó@ŐƦƨƥŎσɝƩœ@̎̍Оɚ̒ρƨƧȂôɜςôóظəó̑ƨóɞɛŌ@Őτ˜ö̒ƨŌ@ɞôŌ̎óƨəφȂ"],encodeOffsets:[[119431,34741]]}},{type:"Feature",id:"fu_jian",properties:{name:"福建",cp:[118.3008,25.9277],childNum:9},geometry:{type:"Polygon",coordinates:["@@̎›óȁƨӑ̒—̎ɚƨͩφŐƨɝ̎ŋóŏρ—@ōƨ›òʳəóƨō̏˜õɛƧ@ƨѵƧōəŏóŋƧô̑ɝɛʳƥ@@óɛõ@Ƨ̑ƧóȁəƧ̑—Ƨ̐@ɚəОƧ—Ƨɚóñ̑ŎóʴƨœƨԬɞȀóŐɜȂó̎ѶʸôƦƧ̐Ѻ̒ɚƧѺɜƨȂ"],encodeOffsets:[[121321,28981]]}},{type:"Feature",id:"zhe_jiang",properties:{name:"浙江",cp:[120.498,29.0918],childNum:11},geometry:{type:"Polygon",coordinates:["@@Ѷʶƨɜ@̒φôóȂƨ˜Ʀͪ@œ̐˜Ѹ̍τȂ̒̑נŐמôƪƧôӑ̑›@ƥρͩƨօ̏@@υɝó@ŋɛ@ôƩəóƧѵυó@ƩɜŋƧ@̍ŌƧɞυŏƧͪ̍ə̑˜ƧӒôȂ̍œ@˜óφ̑ɜ@ŎƪȀ"],encodeOffsets:[[121051,30105]]}},{type:"Feature",id:"jiang_su",properties:{name:"江苏",cp:[120.0586,32.915],childNum:13},geometry:{type:"Polygon",coordinates:["@@ôɞ̎˜φНôŐɜŏ̎Ȅƨ›öǿƨ@ôɜɚšƨʴ̒ôôó@Ƨ̎əԮȃԪૉöͩ̐ƧòʵφƧôʵ@óړɜóŏɜǿƧ›ɝρσȁѷ̎̏—ƥ˜óŐѹ›óŐƨƦѵͪôȄƦ˜ñ̒Ԭó@̎ɝŐƧȁρ˜óφƩóóôƨѶ̏—ƥʶυ˜ɛ̒ѵȀ"],encodeOffsets:[[119161,35460]]}},{type:"Feature",id:"chong_qing",properties:{name:"重庆",cp:[107.7539,30.1904],childNum:40},geometry:{type:"Polygon",coordinates:["@@əȂòɜƨ˜ѺɛƦȁ̐@ƪ—õŏφƥòȃƥ̍Ƨôυ̏ƧôñóóôɛŏƩôƧƥôƧóυƨœ̒ѹôœƦȃ@փƥɛ̑@@ɜƧó@ɚƧ@ñφσõ@ŎɝôƧ—@ʵѷóƧʵó˜@ŎóŐó@ôȁƥ›ó̒υôóʶə˜ƧȄς̎ƧȂôƨƨƨφɛ̎Őƨʷɞ@ςԮóŌôôφ@ɜֈ̎ƨ"],encodeOffsets:[[111150,32446]]}},{type:"Feature",id:"ning_xia",properties:{name:"宁夏",cp:[105.9961,37.3096],childNum:5},geometry:{type:"Polygon",coordinates:["@@ల̒ôޠφӒςôƪͧυևɜŋѺó̎ȁ̍ɛ@ѹס@@ʵƧȁôó@ǿ̐ŏöʵɝŋɛ@ô̑ƥóóƨƧ—ó˜ôœó@ƩôóƦ̍œóȀƨŎɛӒôŐυͪɛ@@Ȁə@"],encodeOffsets:[[106831,38340]]}},{type:"Feature",id:"hai_nan",properties:{name:"海南",cp:[109.9512,19.2041],childNum:18},geometry:{type:"Polygon",coordinates:["@@φɜƦʶ̐ôφô̎@ƨŎö@τʵƦ˜ԩ۫õН̏óƥȃƧ@Ʃəםƨ̑Ʀ@ޤ"],encodeOffsets:[[111240,19846]]}},{type:"Feature",id:"tai_wan",properties:{name:"台湾",cp:[121.0254,23.5986],childNum:1},geometry:{type:"Polygon",coordinates:["@@ô—ƩɝöƧɝѵəޣ̏ρƩԭóōóͪρɞƧОôԪ݈ଦѶɜ̒ɛ"],encodeOffsets:[[124831,25650]]}},{type:"Feature",id:"bei_jing",properties:{name:"北京",cp:[116.4551,40.2539],childNum:19},geometry:{type:"Polygon",coordinates:["@@óóó›υóôƥ@ŏóóə@ƧŋƩŌρóɛŐóʶѶʴƥʶ̎œôƨɞ@óŎɜŌ̎̍φ›Ƨŋƨʵ"],encodeOffsets:[[120241,41176]]}},{type:"Feature",id:"tian_jin",properties:{name:"天津",cp:[117.4219,39.4189],childNum:18},geometry:{type:"Polygon",coordinates:["@@ôôɜ—@ƨöɚôœôôɚŏ@óƥ@@ȁƦƧɜ@óƧƨƥ@›ƧóəН̏óѷɜ@ŎƦƨóО"],encodeOffsets:[[119610,40545]]}},{type:"Feature",id:"shang_hai",properties:{name:"上海",cp:[121.4648,31.2891],childNum:19},geometry:{type:"Polygon",coordinates:["@@ɞςƨœɛȀôŐڔɛóυô̍ןŏ̑̒"],encodeOffsets:[[123840,31771]]}},{type:"Feature",id:"xiang_gang",properties:{name:"香港",cp:[114.2578,22.3242],childNum:1},geometry:{type:"Polygon",coordinates:["@@óɛƩ@ρ@óœôȀɚŎƨ@ö@@ōƨ@"],encodeOffsets:[[117361,22950]]}},{type:"Feature",id:"ao_men",properties:{name:"澳门",cp:[113.5547,22.1484],childNum:1},geometry:{type:"Polygon",coordinates:["@@X¯aWĀ„@l"],encodeOffsets:[[116325,22697]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/chong_qing_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"500242",properties:{name:"酉阳土家族苗族自治县",cp:[108.8196,28.8666],childNum:1},geometry:{type:"Polygon",coordinates:["@@XJ°œlJX@lbl@XbV@VLnJlxnbšƒUU@IVK@lVIVwnJlU@n@J@L@Jn@l_nWVLVln@@blLšmV@@xœÔ‚`nœ™xV‚ÈLlx„LVxVVšƒV_U»VWn_m¥XwVmnX°ƒlmUUVwÞaVƒk@a@mmIUa@™mwk@™ƒm@@U¯a@UV@@K™@ykkmwkV@kU@ƒÑƒVkKWLÅamaUm@kyU@WkU@Ua™IUašVaUUmUUa@aVLXKWa¯UUbmJXnWnX`l@@xkzWÆ@V„LU¦‚x@b@JkIkJ@LmbUamJwm@óxƒnk@V„@x„ŽVnUVmVUVŽUbVlUbkXWŽ"],encodeOffsets:[[110914,29695]]}},{type:"Feature",id:"500236",properties:{name:"奉节县",cp:[109.3909,30.9265],childNum:1},geometry:{type:"Polygon",coordinates:["@@WVXb‚UnK@x@b‚²kxmKkl¯_ƒVV°™VU@bnKVVV@@nkŽ@n›bn‚@š°@VLČUš@°WV@V™nU@InKVl@nU„b˜KnX„WlknLlKUwnalLša„VlUXmWk@UU@UWWIUyķ¹XaWW@X™ƒKUIVm„U@W@UVU@KV@n»VkUkÇmUmVIUmULUbm@ƒwUaƒKkkm¯ÑUL@bWVnx@VmxUI@„klmkkK@aƒK@IlJ@I¯ƒk@mak@mnkJVL@bV@Ub„„W`UUUV™I@VƒU@VVbUJVLUVVbUX„VVxk¦VJUnVxnVVUšJV@Ubl@@bXV@L"],encodeOffsets:[[111781,31658]]}},{type:"Feature",id:"500238",properties:{name:"巫溪县",cp:[109.3359,31.4813],childNum:1},geometry:{type:"Polygon",coordinates:["@@nLWbX‚VLVU„V@KšIVl@b„@lbšU„VnU@JÆU@V@n°KĢUl@VbÞKšVš@„_„V‚KXU‚U@KXƒ@wlkkU@mWKUU@UôJ@XV@œaVmÞIVaVLƒƒ@»kmƒ@ƒUkL™U@aU@WWƒLUUU™™KkbƒwWa@KU@kaƒXmW—LƒamVk@UmL@JmVUšU@¯X™@ċVUK¯@ÅnWK™LkKULWK@UXK@wW@™LkV@bVLƒlXn›`¯xU„°LnŽlV@n°Lnl"],encodeOffsets:[[111488,32361]]}},{type:"Feature",id:"500234",properties:{name:"开县",cp:[108.4131,31.2561],childNum:1},geometry:{type:"Polygon",coordinates:["@@n@na‚I„wš@@VVK„LVbVxnVÆUnanKWXamKmk¯K@mkUm¯KVƒ°w@Wm@UIUUlKUU@a¯KWanwmUXamKkUWUnU@KƒkUwWKXaWLUWkImaUUUƒƒKka±k@lƒ¯w™wmbUƒ™ƒkXm@UJkIW‚XXƒbƒmƒ„UJ™XUV@°šKlšlVXV@xmbnV@blV@VšœU`UL@V™a@bULlb°VXbܚ@V@bƒL@J„xnLVb@lVb@V@@z˜bXWšX„KVLV‚š@@bUVVL@b„„lVna@ll@„zl@@J"],encodeOffsets:[[111150,32434]]}},{type:"Feature",id:"500243",properties:{name:"彭水苗族土家族自治县",cp:[108.2043,29.3994],childNum:1},geometry:{type:"Polygon",coordinates:["@@„Jlb@nVV@bXb@ÆlL„Ul`nVKU¼VxkbW„nlUxlXX‚@°°WnnJ@VUn@J„k°L@VlV@nUJ„x@bVVVz@VnLla„KnalVlIUŽ„¼@nV@@anKUwVal@UlJœƒlI@akU@UWXKVI‚¯Uak@@KmkXWÜkXWykIWwXw@laXamkVUUym_XmlkkmmakwmIUKU@Wak@kaW@kI¯›WIk¦VŽƒUUƒmaUV@XkVUV±aUb¯b¯¥m@@ImJ—@mƒmL@kUKUkkJƒbV¦"],encodeOffsets:[[110408,29729]]}},{type:"Feature",id:"500235",properties:{name:"云阳县",cp:[108.8306,31.0089],childNum:1},geometry:{type:"Polygon",coordinates:["@@lb„LV„VVnblJVXXKWbXLVx„l@LmVXVVl‚nLWbnVmxXb°L@bVVkLVVVJn@@X‚‚œ_Wm„kUK@alUšKX@@xWL@VXLVKlLšKXLÆm@™mœa@ml@mU@UUmL@aVšUU¯„U°`lknLlw±@a@wmLVWaXU@KWU@ak@VaU@™IUVmUUwVmUIl¥UwƒUVWUaVUUKVIUa@UUUUJƒUUm™kƒ„nl@„@VWV@L¯aUb™Ulxƒ@@b@VULUx@VUxVV™U@bU@mxU„U@mUVŽklkkƒ@WxknlxK@amLƒKU„K"],encodeOffsets:[[111016,31742]]}},{type:"Feature",id:"500101",properties:{name:"万州区",cp:[108.3911,30.6958],childNum:1},geometry:{type:"Polygon",coordinates:["@@ĸĊVI„ƒ„n„aWWXlJVIn@lWš„V„našx°xk„l@²Ž‚LVƒ„LnK@b‚LkwlmXw„@lllkUnVV@VƒnwV@@ašVUUVw@UVwVK@U@a„@kwšVVa°b@KXU@U@ƒmk„ƒÇсaml™kUVmn@VULU˜m@kUVkUaƒwUWm@Uw¯„mKUUmVUUULUKU„W@XbWVkaWwkUU™ƒ™k@maUbmbVlk¦ƒxUVUIWVU„kJVVkL@UmJ™UUVU@lLUVU„lx„@@VbƒJ™U™L¯¤@Vƒ„"],encodeOffsets:[[110464,31551]]}},{type:"Feature",id:"500229",properties:{name:"城口县",cp:[108.7756,31.9098],childNum:1},geometry:{type:"Polygon",coordinates:["@@VK@w¯L@m@UÅV@ImVƒU™Vkaƒ@@aUk™J@LƒUUVUKmLmbÅVmUUwUaƒKUL@U™@ƒxJmbm@nVJ@X@VkV‚n™lƒLXx™@ƒb@bUVƒLU`UnƒbU@@ŽmVVX@JX@VLVVšklV—„‚`@bUL@V„LVKn@‚U@„UJkn@lmLmK@X@Jn@mb„nÞWVXnJ‚k„KČÑÆ@VK@knaÜmXlUČW°kôÇÆ@a@yÞ_VmƒUnU@K"],encodeOffsets:[[111893,32513]]}},{type:"Feature",id:"500116",properties:{name:"江津区",cp:[106.2158,28.9874],childNum:1},geometry:{type:"Polygon",coordinates:["@@„InWUUlU@LVašlX@°²lÒXxlK@Ul@@Un@UaVJ@I@W@UƒUUVUwVIUKUa‚UUVwn@Üx@XUlnn‚bœJ@¥VklKUUlk@ynU@kVƒUUVWnI@¥V£VWVIUKU@UVƒa@n@Vm@@nlUaVkUwƒJ@blLkLW@XWmXkmmLn™@m@U@UVm@™„UVUUlakUVa„ƒVkV@@wnaWUk@VwkƒlmVIkUUxmJ@U„™@KƒIkx±V@IUm@K@IUKkbWKUbn„m„@bmVnbmb@xkxUJ@ULW`@bX@WVXL@Vƒš¯„mk¯@UJ@VmLUaWnX@WJ@nkKkxW@UIV@@KkImmkK@UW@XaWIU@U‚ƒIkbWb„xXŽlLVbnV@bWlX@VxVLnl@nÆÞVÜ"],encodeOffsets:[[108585,30032]]}},{type:"Feature",id:"500240",properties:{name:"石柱土家族自治县",cp:[108.2813,30.1025],childNum:1},geometry:{type:"Polygon",coordinates:["@@„š@kl@š¼UbmVXJ@bV@nxVIVJULVVk@@LWbnJVU@bVbUJ@blLXnWV—@mbnV‚@V„„bn@VJVLnaVanbl@„šVšlVXxlbXUWaX@VƒUUVwUUVm@I@WmI@a„mlLœ™lK@alwnUV@kóVaƒÝk@UlbVK@™VU»VUUVWUƒ@U`ULkwm@@KmU@knKƒ»VkJkUmbƒLkbmK@UUyUU@aƒwm@@XXJ@VVLVVUbVnUJVX@K„„k`WXXJWXUbmW@bkL™Um`Xnƒb@JVL@LU@™°VVXKVnUxVLUbmJ"],encodeOffsets:[[110588,30769]]}},{type:"Feature",id:"500237",properties:{name:"巫山县",cp:[109.8853,31.1188],childNum:1},geometry:{type:"Polygon",coordinates:["@@kVƒU™bkKmbVxkLmKkllbV@@LXb„xlašLVšVV„KXXV@@bšVlK„V„@ln@¼°KXa„U@Ulw°JXalIUa„ÝWXW@kVU@ƒVUVWUUUamUw@aVamwn@VUUƒlLXWm£@wÇĉkKklmLUÒ¯ƒWn™@ğ±kwmaWm¼U@@LUV@V@XƒVUnVJ„LWš@‚XXWbĸºVzXJVXV@@VXlWn"],encodeOffsets:[[112399,31917]]}},{type:"Feature",id:"500102",properties:{name:"涪陵区",cp:[107.3364,29.6796],childNum:1},geometry:{type:"Polygon",coordinates:["@@nèVblĖVVnLšŽ„@šx‚V„n@nšJ@L„UVVX@lbUJV@@nn@VVVK@z„˜V@nzVJVUlmX@@_VVVbnaVal@@knW@wnaƒVK@aVI„J@£kUVW@‚wXUVJ„amƒ@Ikƒƒƒƒ_X¥ƒ@WwkKkwmŽ™šƒkUxƒnÅmm¥™WV@Um@UlVL@JU@@Xƒ@UVkKVk™KVk™Kkb@bmJVXU„VVUbU@@`W_UV¯b"],encodeOffsets:[[109508,30207]]}},{type:"Feature",id:"500230",properties:{name:"丰都县",cp:[107.8418,29.9048],childNum:1},geometry:{type:"Polygon",coordinates:["@@Þè@XUK@LlV@blbUJ@„„V@bnV‚@VVVXU@ƒlbXal@VXnKV@maXUރ@amk@aVKXV‚anbš£°mnIVaUKVwUmWLUUš¯V@@KUK@I„aWmn_šVlK@anXVaXWWIXWl_ƒƒ@LUWVIUmVaUUUK@UWI@Wn@VI@mkU@U¯Kƒl@ImVÅLƒwU¤óbUU@wWXkmm@LU@@VUIWVUL@JUnƒaƒx@Jn„ƒbUIWVx@ŽUXlV@¤ƒIUJ@bUL„Žmb@xmX@lk@UbmbUaUU@`W@kn"],encodeOffsets:[[110048,30713]]}},{type:"Feature",id:"500232",properties:{name:"武隆县",cp:[107.655,29.35],childNum:1},geometry:{type:"Polygon",coordinates:["@@l„„w„bVm@IVKXUVJ@UV@@KnnWlX@xVVôaV£„xÆKnUVm@UmIXm¯¯@WkWVwmkXƒlaUwV»ULmk_ƒVkK@ÅWa@aUU@mkaƒIƒb@‚n¼ƒnm‚_@mmK@UƒLUVVmI@aUJ@XWJ@U`UIkm±kk@@lULmUmKUnVšnlUVmI@VkVlx™bkIƒVmLUxkKUŽ‚Xš‚n¦Æn„mVw„lš™nlxlLXx„@W¦„`„„"],encodeOffsets:[[110262,30291]]}},{type:"Feature",id:"500119",properties:{name:"南川区",cp:[107.1716,29.1302],childNum:1},geometry:{type:"Polygon",coordinates:["@@VšUbVJVUn@VLX@WVXVVI@VUVWxU@mš@ĊX@@¼V°aVUX`@_V@VaUUVƒUWnI@alašLUlšLUllLVU„@@WV@@IUKVkn@@VlLVwnK„UlJšakwlU@UnJVUmkU™VmXa@wVK@UUw™@VƒVI@akƒ@alInwlKXUmaUW@wWLk™™KVak_ÇaUƒƒV@šXbƒLVxUlWIk@UK@V™@ƒkU@VbUVUlVnƒLUV@lVXmxkV@L@V@Vk@WbUwmL@JUI@xVxkx"],encodeOffsets:[[109463,29830]]}},{type:"Feature",id:"500241",properties:{name:"秀山土家族苗族自治县",cp:[109.0173,28.5205],childNum:1},geometry:{type:"Polygon",coordinates:["@@XlV@lzn@VŽnbÆbXKlL„U„ÒV@@llUnxll@zšŽ@LU@@V°b@Vn@š„l@VÑUƒnK@UšU@aUaƒkVm@K¯wƒklmnn„Ul`nI@almkIUwmWVkUaƒkkJmUUa@K@aU@@_m@@wUyVUUa@Umƒ@awl@Wka±„UkUykIWV™b@bUVk@›aU@UXU‚UIWakUWmUxUV@nUVWbšŽ@XXVVŽmXXŽ@VƒbVLkVWx"],encodeOffsets:[[111330,29183]]}},{type:"Feature",id:"500114",properties:{name:"黔江区",cp:[108.7207,29.4708],childNum:1},geometry:{type:"Polygon",coordinates:["@@VX@V@LV@VJUL@lVnnxlb@VXV‚XV@@W„@UIVK@kUKna@£VWUaVUUalIVJVIUW„_lm@bXKV@mn@J„UUw@KnIVll@VanLVmUkVKXLVKUIVamw@UaU_lw„KlwUWV_Ua@aUa@KUšwm›_›Ó@wU@™nkK@am@UkUKmXk`m@@I@K@I@mkVmIUxUJ@kUL@JVV™„lnklWnn`VzUVnlWbkb@WxXxlJXzWŽÛlWXnl@Ll@Vb°UJWLX@VlV@bkJ"],encodeOffsets:[[111106,30420]]}},{type:"Feature",id:"500117",properties:{name:"合川区",cp:[106.3257,30.108],childNum:1},geometry:{type:"Polygon",coordinates:["@@XKVXlK„ƒVL@UnV@aValXXK„U@WVwUaVU@IV@@aVW„L@U@anVV@@bVK@UVL@bnJWL@VnUnb˜@@JnIlVl‚@@bXIWbn@UKVLVKXLlaV@VVnK@bVL„m„IVƒ@KmknUUWVI@aVJ@_„WU_VmUwƒU@K™ƒVak@am¯mJU_UJUkU@WkIV`UI@JV@LmmU@@mƒbUzś™@„VK@nUKƒ„ƒb™akb@UWK@bkVVbV„Û@@`ƒXk@WŽ@n@lXL@bmb@VVJUn@JnUlnUlmX@`XLlbkJW@kzlb@`@b@b"],encodeOffsets:[[108529,31101]]}},{type:"Feature",id:"500222",properties:{name:"綦江县",cp:[106.6553,28.8171],childNum:1},geometry:{type:"Polygon",coordinates:["@@@¦‚@X„lVX@@UVKl„VUX@lanVlUVbXWVXVƒ„VVUnKVUlwUwU@UJ@nmVkUV™lwXam@VaUUUw@W@kk»mV@UmKkwVKVUU@@LUKVI@mV@XVWxnXVKUUUK@wWU@UUWnUlLXa‚mUI„am@wI@K@amIm‚UUkI@m‚akUkKWUUanƒ@wƒamLVxk@UVmUUL@Vm@kV@I@ak@@bWVXJlLVbVL@š@bn@@`Un„@WbUKULWVXbƒ@UVmbX„WVƒb@bVmxUKUƒV@šUn@V@V@nmšnKlnnWWXX@lKkK@a„IVxUlVb‚k@mn@@U@m„bVUV@VLUJUXU¤"],encodeOffsets:[[109137,29779]]}},{type:"Feature",id:"500233",properties:{name:"忠县",cp:[107.8967,30.3223],childNum:1},geometry:{type:"Polygon",coordinates:["@@VLÞĊ„U@Wš@¼V‚„@lk@w²mlšVUœ„llšVnI@VlKUUlIVƒXUVJVU„wl¥UkUKUIm@ƒaUƒ@mUna˜@XUWmkK@aVIUa@aUVmIXa@Kl@UUVKUIUJmwU@@aWInUVa™»k@@lƒ™¯n™¤mabWUUL@bnl@b݄WVnbU@mLUWk@Wbka@„WVUU@UmUmVkUULV„lVUx„l@L@VƒbÈÒlb"],encodeOffsets:[[110239,31146]]}},{type:"Feature",id:"500228",properties:{name:"梁平县",cp:[107.7429,30.6519],childNum:1},geometry:{type:"Polygon",coordinates:["@@XLV@VV@b°°nšƒnkb@bƒšnJWVXblIUVšxWnUJnVVLVU„JlUnLVK@UnUVJš²nKVbVKla@aXlJ„k„Klb„ƒ@U°£šKšV„IUa@ƒ@kwVƒVUkKV@VUkk›ƒUVk™±n@xklƒ@U@»™‚@XƒVÝĉUJnxWb@UX›KkVUbUKWUkVmkkLU`›b"],encodeOffsets:[[109980,31247]]}},{type:"Feature",id:"500113",properties:{name:"巴南区",cp:[106.7322,29.4214],childNum:1},geometry:{type:"Polygon",coordinates:["@@nxnVlJlUXLƒ¦@x@Vl@nKVVX@V_V@@KlVXU„@lKlxXIl@ÈĊ@Vl@n_VJlŽnVlnb„²VVVJVVmUUkĕUamçU@»W@@ĉn™V@XwVU@UUJWUXUW@UKm@UVUIVaU™UVmLUVƒUU„UWWXUakVmUkbW@UVkƒUL@VW@kUWƒ@mJUXVVU„@lmV@zklVVkLUl@¦›I"],encodeOffsets:[[108990,30061]]}},{type:"Feature",id:"500223",properties:{name:"潼南县",cp:[105.7764,30.1135],childNum:1},geometry:{type:"Polygon",coordinates:["@@@a@a@_kalyX@lIkaWK@_nWVkkmmV@IVmUI@Una@aWK@k@mkbWaknmJUk@mk@@kUal@Uaš@Wa@aXLlwUKlkkƒ@KmI@VUJ@Lk@@VUUmL@amJU£kKUaWakLmU@bVVUbnbWV@xkL@bUb‚xUxVbXJVbUVWIUVU@kLWxkKWV@n¯VUbU@@VVX@VmaUL@VUK@VVbn@lVnI‚@@lnLULm@Ub@Žl@na„@lK@XVVkJ@b@zl@@VnV@bVb@J@bnXV`lXXmVI@W@InbV@@aVKUblKVLUanLlmnLlK"],encodeOffsets:[[108529,31101]]}},{type:"Feature",id:"500118",properties:{name:"永川区",cp:[105.8643,29.2566],childNum:1},geometry:{type:"Polygon",coordinates:["@@@b܄nWVLX„lxV„VxXxlVn@@bVblK@a@UnLVJV@@UnLVU@VXaVKVXš@n`WUÿ@IUKlaUUUkWyUÛÅÝ@mmkUKUwW@Xk@amUUakKWƒwXaƒK@VVLklƒXVlkxV„UL@bm@Vxn`ƒIVxUVkLVšUšl@@lkXmmƒVUn@VV@Xb"],encodeOffsets:[[108192,30038]]}},{type:"Feature",id:"500231",properties:{name:"垫江县",cp:[107.4573,30.2454],childNum:1},geometry:{type:"Polygon",coordinates:["@@šĊ°¤nҘ¼œaV_lKnllUXVVLValUœLVW‚@XamwVIUKkaÇфa@U@KƒkVwkUUƒVKlVnU@aƒU@ƒVIka@akU@KVL@WÝçUV@Vmbů@L™KƒnnJW„ƒVkxlL@VX@VxmnXVWxUb@bkn"],encodeOffsets:[[109812,30961]]}},{type:"Feature",id:"500112",properties:{name:"渝北区",cp:[106.7212,29.8499],childNum:1},geometry:{type:"Polygon",coordinates:["@@@bVVXL‚a@lnbWn@L„@XVlK@VVLUVlbkLUKVVVL@VšnX‚VL@VV@UbVb@x@¦UxVb@bUJƒL@L„VVxlK@™nk@U@W„UVLlKXV„@VblU@UUKVU@wn@VJVanLlkX@VaVK™¯@a@U@U@ƒVaUK„kUUƒ±maUkm@UUkbm@@Vk@@JƒwU@Ub@I@JmwUL@aƒ@@KkVÇLkƒWkƒ@kUU@@xUVmKUnllUb"],encodeOffsets:[[109013,30381]]}},{type:"Feature",id:"500115",properties:{name:"长寿区",cp:[107.1606,29.9762],childNum:1},geometry:{type:"Polygon",coordinates:["@@VVšU„bX‚lX„¥l@XnVmlxUx„@@blVnnôĀlm@aVaXwWUnmUwW@@UkKlw„UXƒmI„mšL@Kưna@UUImyU@ƒ—@yULUUm@@mU@VIkaW@UUƒV@K™I@mƒmU™wƒ@™mKUnU‚UIƒlVLUb@„@V@V@bš°ULUbW@klmKUbUIm@@xUVVL"],encodeOffsets:[[109429,30747]]}},{type:"Feature",id:"500225",properties:{name:"大足县",cp:[105.7544,29.6136],childNum:1},geometry:{type:"Polygon",coordinates:["@@XUmaVaUU@anVlKXbValU@aV@@IXKš@@bV@VxVK@UXLlUšJXa@_‚@@aVK—ÅWVkwWaƒƒwUa@am@kUWLU@kWmX@ykI@W@UV@na@LlLV@UƒkwWƒUKmXX`mIVl@bXLWVkbkkƒx@`VXm@@J@U@UUKUxk@WbUIVl@VXLW„ƒJUkUlUImxXlmb@X@VUJUnVbšW@UV@@VVX@bnW@LVxUnlJUV@n„@VxVIn@l`„UVVVL"],encodeOffsets:[[108270,30578]]}},{type:"Feature",id:"500224",properties:{name:"铜梁县",cp:[106.0291,29.8059],childNum:1},geometry:{type:"Polygon",coordinates:["@@VblLV¤nI@bnKVV@Ul@@KVI@UnJ@Ll„klVLkxWK@bXb™@Vbk@Vb@ll@@nVlnIlmXblaXl@„W@_Ü@UƒUalU@aXL@Vlašb„a„ƒVL@mUL@ƒUUƒƒÇXUW›X_WaƒƒUƒ»m_™@UWULWb@UUVmK@VU@UImK@V@bkL„x‚„XblxXU˜ÆUL@b@@`Wb™IkVWK@VULUwU@@a™@WL@JU@@bkVUb"],encodeOffsets:[[108316,30527]]}},{type:"Feature",id:"500226",properties:{name:"荣昌县",cp:[105.5127,29.4708],childNum:1},geometry:{type:"Polygon",coordinates:["@@VI@U@WnaWknwVJVkVl„IXƒWK@UUkVJXal@VwVL@V@V@In@UW@_„wlllaXUWK@aUknJW_ۃ@aWaU@@UVm„UUaUImJVnÅUmVUm`kUUVWLnVU@VVmXƒK@„nxmŽULkx™ImJ@nU`@X@Vkn@`@nlV@nVJVaX„VLnK@bVV@nV@lbXWš@"],encodeOffsets:[[108012,30392]]}},{type:"Feature",id:"500227",properties:{name:"璧山县",cp:[106.2048,29.5807],childNum:1},geometry:{type:"Polygon",coordinates:["@@XzVlVVkbVL@JVĀXŽ‚¼V„„„XbW`XœWVȎ„„VVšŽVkV@@UXa@alK@IƒƒU@UKWUyUI@wVUUWVak@VUkƒW¹@WXI@yVIUK@kWwkѯ±W@™kUb@KkVVVmXƒJ"],encodeOffsets:[[108585,30032]]}},{type:"Feature",id:"500109",properties:{name:"北碚区",cp:[106.5674,29.8883],childNum:1},geometry:{type:"Polygon",coordinates:["@@X‚VLV@„„@JkL@bWb@VU@UlƜVy„a@nV@nn@KU@IVJU_lJXV@VlVIV`nIn°@b‚lUbš„„KVI@aUaVw@¥@wUaVaU@@UUKW™m@UUKUUVLlKkaVUUK@UkLWUƒ@@KXmma@kbWKUU@aUamLnÞ@VWLk@@Wm@ULU@@U™KUVWI"],encodeOffsets:[[108855,30449]]}},{type:"Feature",id:"500110",properties:{name:"万盛区",cp:[106.908,28.9325],childNum:1},geometry:{type:"Polygon",coordinates:["@@VIV@@wVJ@InKVxXal@@U@U@KlUnwUW@kVU„KUmVkUa@I@KW@@bk@@mƒU@m@k@a@aƒIUxmJk@ƒwULƒwkKmVVX@VXV@xVLVVULmWXwWUU@@nUJVL@KV@UVULlxnL@VnUl¼@l@XVxVVUbn@WbkxUšlVnU@m"],encodeOffsets:[[109452,29779]]}},{type:"Feature",id:"500107",properties:{name:"九龙坡区",cp:[106.3586,29.4049],childNum:1},geometry:{type:"Polygon",coordinates:["@@XK‚L@Vš@XbV@lW@UV@@VXIV@U™VKlL@KnnJ@VV@VU@I„@@mVUVWUUmL@V¯LUK@UV@UU@a@U@yU@WLUK@X@KUVmL@ƒ@aXI@w@ammVk@WÛwm@UxVVVbVLUJVxVU„V@V@X@JUIVbm@@Vk@@VkL@lVLUJ@zWJ@X"],encodeOffsets:[[108799,30241]]}},{type:"Feature",id:"500106",properties:{name:"沙坪坝区",cp:[106.3696,29.6191],childNum:1},geometry:{type:"Polygon",coordinates:["@@Xºl„UVl@UbVXUV@xVJVzXJVUšL@VV@VKn@@Xl@XK@UmÝnKVbVakkVm@k„ƒUK@UmIm@LkKULVšU@WJ@UU@@VkXU@Wa™@@UKWL"],encodeOffsets:[[108799,30241]]}},{type:"Feature",id:"500108",properties:{name:"南岸区",cp:[106.6663,29.5367],childNum:1},geometry:{type:"Polygon",coordinates:["@@VV„JVL@bUVVnl`XIlwXJlw°nnl‚IXW@UÇĉk@WJkwkLƒ@WVkU@LU@U`W@UXUV@n"],encodeOffsets:[[109092,30241]]}},{type:"Feature",id:"500105",properties:{name:"江北区",cp:[106.8311,29.6191],childNum:1},geometry:{type:"Polygon",coordinates:["@@nLVU@wV@lV„@Xll„ÈKlU@L„@@bVKnx@I@JVaV@„x@Il@@Un@laVVn@mkUIm`k@WXJmk¯mkxWIkxWJk_UmVUUKƒ@UU™@ƒ„@l"],encodeOffsets:[[109013,30319]]}},{type:"Feature",id:"500104",properties:{name:"大渡口区",cp:[106.4905,29.4214],childNum:1},geometry:{type:"Polygon",coordinates:["@@k@@U@w„¥WKkVkImUmwa@b@xWJ@b@„nKVU@L@WVLXKV@@z@V@bVVU@@VVL°K@U"],encodeOffsets:[[109080,30190]]}},{type:"Feature",id:"500111",properties:{name:"双桥区",cp:[105.7874,29.4928],childNum:1},geometry:{type:"Polygon",coordinates:["@@WwUwU@kK@KmbU@@V@XlJ@znWlXV@XK"],encodeOffsets:[[108372,30235]]}},{type:"Feature",id:"500103",properties:{name:"渝中区",cp:[106.5344,29.5477],childNum:1},geometry:{type:"Polygon",coordinates:["@@VLš@VV„@VL@aUKƒIUUƒ@@JUVU@"],encodeOffsets:[[109036,30257]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/fu_jian_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3507",properties:{name:"南平市",cp:[118.136,27.2845],childNum:10},geometry:{type:"Polygon",coordinates:["@@@knyƒk@ƒKU¥šwV@nkƒWƒzUmk@@lKUa@aVI@UƒKUamKUUVaUI‚@Xƒ@UV@K±IUVVlUbUbUL@KWUXmWk@KkXmmkŃKUƒ™a@amUƒbkUkKWUnwUƒÇwV™UUƒÝUKV£U™@ƒnKWwXLVKm¥@wUXkmWk@ƒ@wX@lU„@šyVImaXwVƒƒ@kŽƒnU@mbk@mlUXƒmU@mV@n@bnW@bUIWJ—ImVUKWbUK@nkKƒaU@W_VUUmWmL@UU@™bUWUL@V@bmVUz@`mUUVVbXL@V™L@lmLUxmVamXkW@xWbU„VbUxkU±@ÅUmmkLUbW@@`kLknVlV@lbXxlVUXVV™ŽU„U@UbWŽkIWVUUUJkI@llbUxVL@V™VƒUU°ULUmWXUV@VULWb@™xm@UaVLVKUa@ƒw@V›bkmVambUUm@@VkK@„@b„xlxX@‚„n¤@Xƒ@@lkLWV@Žn„V„kb@bWJXLWx@nkxmm™bXn@VWVUn@VnJ@bVXl@„™VJXnWbX`lL„UlJVI@Žœ@VXV@Vl@bn@@Æmn@VšxXU@mVIlxšVššnI„l@nVJ‚aXI@mlU@aXkVm°klmnVV_naš°@V@xܦXK„V‚nnUlVXbVK‚LXKV@naV@@VVl@@lXblXšWnLlbVK²nš@@‚VLUnlV@lƒXxô°‚V@UnaUUlKXLVUVVUbVVlUnJVX„@VW@an@lb„@nl@VU@anƒšUVW@kƒaUm@InVVKVU@kUW@Uam@km@kVa@a@™nwšU@WlI@mVI@WXaW_nƒ@™nƒlkkW@U‚¥@kV@Uw@wUƒ@@IXK‚¥VIn@nU@`@Xl@VV„LnašW‚bVaUwnU„@VIšKlV"],encodeOffsets:[[122119,28086]]}},{type:"Feature",id:"3504",properties:{name:"三明市",cp:[117.5317,26.3013],childNum:11},geometry:{type:"Polygon",coordinates:["@@lL@Un@VVna‚bnUlœa@U‚x@„VbULUKVbn@šw‚@XaVK@UVUXWVnVKV¯„VšU@UUKVwka@klJVIVVXUlJXVaV@VƒšUUVWkUWwkaU@UklmlK@_X@ValKnnÆV²@lVVwUaVƒXa@wlXnW‚bnUVwnK@kšK@UWKUaVUnV@_VynU@a@UVKVXšaV@@VnKnXVV‚UX`V@„blL@mVLXaVLnU˜JXIVJ@amX@a@mnUV@„nVWnkl@naV@„ml„@@KmKUam@UU@ƒ@UlKU™Vk™U™K@aVaUwV™U¥UIkJ@wmI@‚mbkwkVW@UXƒKULU`™IVKUa@LƒkkVmUU@WlULUWÅU@I@ƒWW™nU@@w@a@ƒUam_XyVIVWkkƒ@mwVKXUV@nw˜VXkWƒÅ™U@ƒaƒU¯KUnƒK@ƒ¯šmUƒLXŽVLnWVbVbUVm@Ub¯¼W@amƒ`kb™amLUUUƒ™aUXV`@x@XmJ@n@L@xkJUU@kU@mWm@kUUwUUVWl@VUkIƒy@kkaVUUm™IWVXbWxU@k„mVkK@nWVX¦WxU@@bkx@VU@WŽk@™kUbmJUUmkUW@_kKWKƒ@knV¤kIUKWLUbV‚@Wbk@@VWL@VkI@lUXVxUVU@@mWIƒV@a¯nUaƒaUV@„ƒJ™b@bÞ°VbUš@X™aUVmL@‚VXblŽnV„°˜n@Vnx„@VUUUlK@InJVb@„Vlnn@V™L@VWJU„x@XlJUVVVl@LUUUJ@Lƒ„@lUL°¦k˜V„VnV@„xV„„l@blLnlšLVaXll@šnVUn@‚xn@nml°‚X@lb"],
    +encodeOffsets:[[119858,27754]]}},{type:"Feature",id:"3508",properties:{name:"龙岩市",cp:[116.8066,25.2026],childNum:7},geometry:{type:"Polygon",coordinates:["@@ša„I@ƒVU„bVb°m@b„UXJ@nV@VUUwVW@klJ@UXK@Ul@Xa‚@UVaXKVLlJU£lm„@XLlL@`VXnlVVnIVašll@XV@@Ulw@aV@XwW¥XU@mlLnUlƒV@XwWaXUšJVnUVlb@l„zlJUVk@UXVVVxlVn@nXV@@lVVlI@w@K@mnI@W@wU_VWšbV„VVnKšbla„_n‚bX@°»Van@VUUaUamXUKW„K@a@Ukƒ@wWkXƒWW@wUU™Kw@_lyƒwUkU@@Uƒ@kamVmƒXašUVUka@Wk@»UUUVƒKkbWU™VUbk@mkƒxkƒƒKnIVUmW@kUKmXUmVaU@kU@m@KUWVkIWJ@ŽU@UI@wUUUa@KW»nU@mVkUmm@XwWU@ƒUUmL@ƒw@mnƒVUU@aWak@@amxU@UxULWVXbVLU`mbUImVU„ƒbn‚V@@bVn@bnVWxLmyUbƒIUKƒ@aƒVm™akbV‚UXW„UlKWbkV@„WLUlk@@nšbƒb@lkKmU@ƒUIWJkw¯UUVVxm@@XkbWx—›XKƒlUzWJkUUL@bmKkVƒ@@VUIUlWV@X„K@VkbWx°xUb@LUbk@@VWb@LXJ@VWXU@@bUVV„VVn@VVlLn„@l„@‚xk¦Vx@bVJXbƒn@JlnXxV@@„nJ@X@V@lmx„bUn@xVL@VVKlL@l„„nLVaVL@xkl@LƒxVl°š„X„WVX„Vl„œJWnxlJ"],encodeOffsets:[[119194,26657]]}},{type:"Feature",id:"3509",properties:{name:"宁德市",cp:[119.6521,26.9824],childNum:9},geometry:{type:"Polygon",coordinates:["@@@LVKVaVaUkVU²J@LVU„@@W‚VJUbVVnLVb„L@VUJ@bVbkL@Žl@Vn„y„XmlU@™xV¦„L@Ž„lmz@lnL@bVVšbVb@l„nšKVk„Vl¤@zXV@šl@XJVLVKnXVK‚VnU@wUm@šKUƒ@UlVlw@U@U@ƒUaUKlU@kXKlmXIWKXaVIVUVK@KU@@k„JVUnLVJUL@V‚IVa@VnLšKUnl`Vb„V„V@š‚Vbn@Vzn@lKnVlI„VVKUalkXJl@XXVWVLVUUmVU@Unm„£lK@Uk@WUXK@U@WVwVkšƒĠkĢǰaUÅUwmaţƒɱUÇa™w„±V¹XalKôx„@„UVaÜʓͿVóbÅLƒJm„¯Vk¦ƒŽk@mamXkKUƒUL›akbk@mV@LkJWb@Vk„mXk@UVmaUV@amLUKUamI@KUaU@WbU@UUUƒUIWJUkm@šƒw™Kk„VJm@kxǁVƒUK@mUVUkmlkkVm@amwƒLVWU@UbVLkšUbƒ@VƒmK@XaVWU_VJnwV@@kUmWakxƒ@kwWakIWxnbUJ™zƒ@kVW@@x@„XllnVW@xn¦ULWKXxmL@„VšU¤VL„ÞVVUšÈxV„mxXVlLlV„anV@bšbV„„LlÆnnlW@LXlWnXV"],encodeOffsets:[[121816,27816]]}},{type:"Feature",id:"3501",properties:{name:"福州市",cp:[119.4543,25.9222],childNum:9},geometry:{type:"Polygon",coordinates:["@@lxna@nJ@xlIVJV¦UšVxUb@bšLšVUlVškL@V@„VVn@Vb‚Ln‚@LU„lJXblx„@lwXbVn@lU@mxUIV`UXWb@‚nLU„„@Val™UKVaV@UX„Knx‚bn@lUkllnUVnV‚@VLU„È‚lwn@UIlƒšL„x‚™n@VlXIVJV„VVV@XaV@Vb@LnJVbVLnK@bVUnbVUl@nWlƒ@UXalI@KnUl@laœbVKV„lLnWnbl@„l¥°Unƒ„IÆKôa΀U„a@UUwÇWǓIUWUÅVkƨm@ƒ@£@KmLU¤ULˣJ™kUƒVǟUUķ@ĉVƒKUk@Ѱwôǚç@īšé@Åţ¥mīÛkm¼Å@ƒVķVó°ō¦U°ƒn@bVJXVVL@bUŽƒakLmx@xmxXzW`XbWnXV@bWLÛ@™aƒ@ƒaXbWVkaÝwU@mlWKkLWWkLUKULW@kVmVUU݁UamV—¤›n@xUVUzkJV¦lJU„"],encodeOffsets:[[121253,26511]]}},{type:"Feature",id:"3506",properties:{name:"漳州市",cp:[117.5757,24.3732],childNum:10},geometry:{type:"Polygon",coordinates:["@@@bl@Xb@bVVUŽm„@n„x‚@nKVV@„XVWxn@VnUl@nmVX¼@LVbVV@xVJV@@XIlJXU‚V@Ln‚@lVV@UbVnnWVL@lnXUVmJ„Ll„„wnll@VašUXVla„LVUVV@¼Xl@lbUV™VWbn„nUlb„@@VV@„aVUšmlUašUny@kU@Wkk@WaUVk@@ammk@@U@UlU@aUa@wl@šmXLllnL‚U@anVnU@L@VVV@KlXnWVnVanUšw@w@wm›nÅ@wƒaUam@Uk„mUl@@a„a@U@¥škôK‚wȯ°w@ŻkwǕaK›ÑÛk@ĕōřċ£ĵƒUKW»kÅŻLU@Ulġw@¤Vz™VUbkKUbmLmlULU¼UxmbXl@bWVƒb@bUnV‚UšVbULU@@VkbVL@`U@WX@ŽXV@b°„@b¯š@¤@Xm@@b@`U„VVUL"],encodeOffsets:[[119712,24953]]}},{type:"Feature",id:"3505",properties:{name:"泉州市",cp:[118.3228,25.1147],childNum:9},geometry:{type:"Polygon",coordinates:["@@Vl„xkz@`‚xšLVV@xXXW„Xl@xl„@V@bnV°™@„„LVm°L„V„bV@ƚX„Wl—UmxU@WVULnx„@llUXUJWzn`Vb@„@b@xV@šmXX@„@JÆVVXVKXkV@nVlU„l@KVbULšJV_VK„LVWX@lUVƒkIU¥lIVyVU@wœm˜£nUVWU@aƒm@UmWw@UX@@am™VUn@@aUUlUVanaWUXWmUnkšK@VšUlVVUUwš@XLWWX™ma@knm‚bVb„VXbVL‚@XJlInlšL„w˜mXóšw@çV»ÇçŋaķƧóƅóKġ°nÅUķƑUÇW@—¯xǰöÆlV„n@llšaš@„Lšbƒ`™@™„VšXVƒVx@V@bULVJUk‚Ç@ƒ¼ƒXUKk@mmULkaWbk@ƒx@UkL@a@K@U@UmKmbU@kV@UmVUbUmmXkW@LUU@U@KmVmU@bVmKkkWK™nk@@xVb@bkV@V@Vl@nn@bl@VUXbl@XlV@@lmz™VVbkŽ™nUVƒb"],encodeOffsets:[[120398,25797]]}},{type:"Feature",id:"3503",properties:{name:"莆田市",cp:[119.0918,25.3455],childNum:2},geometry:{type:"Polygon",coordinates:["@@VbނVVnUlUX@VKVLlKXXlKXL‚‚nkV@ÞxlbXUWa„b„@šbÜ@XK@aWUXmWaX_Wynw@wnwlK„bV@aUKWUUI@a„mV¯Ŏ¥ô¯ĸU„UÆ@n»¯aƿé@ţ¯nĉĬÝK™óó@™ÑU¼@è™xWô—nƒx™KmkkJWI@UKWaƒUUaamn@lnbWšXXWK™@VxUVkU™V@U™LmlnVWXXVmbUbkVVV@bm@UVnš@bW@@VXx‚n@V„n@bV‚UX"],encodeOffsets:[[121388,26264]]}},{type:"Feature",id:"3502",properties:{name:"厦门市",cp:[118.1689,24.6478],childNum:1},geometry:{type:"Polygon",coordinates:["@@@VlUV@nanL@V@V@L@blK@V„wl@XalbVKnnl@VL„W„»È@lVUIVK@a@UUw„WUU™šƒš@„_™aƒK™@™bkkm@UƒkõŁxóL™l@¦@Vƒb@bk@VŽƒnVln@Vb„b@xmÆnœ@x@x™x"],encodeOffsets:[[120747,25465]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/gan_su_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6209",properties:{name:"酒泉市",cp:[96.2622,40.4517],childNum:8},geometry:{type:"Polygon",coordinates:["@@ÇnÅaĉ@ƒU¯¥›UŹ‚ƒ£™WUýUU±JkkUw‚yÞIČxĊĕĊ¯š¥ÆUkţ™UÅÓ±¼™IUx¯UƒÒƑ‚ݐŰƒKÝnğ°ÅU@Žƒ@Vn@þš¼¯šWnŎ°XLWlnVnbWnƒVXxmbƒa—bóUƒlǕUUa™IUmlU™ƒš¥™kƒ¥ĉwkkƒÝɛa@¯™™U¯°mVƒkVnKlƒōÑÇÑU@kl™UġŽkUŻnUW™@š¯ƒk»šmWV£UKnUƒmUw‚w@ƒUIVaX™šwm»Èmmwn¯ċ™¯LĉŽUƒJUalka±Va@U‚k@ƒÛф¯WmnUaɝ¤Ûmƒn¯m±x@wóxÛLġÒUx¯VƒÈ™JUbóz݃ÇKĉ¯ōlÝUŎWl¯nťbÝ@¯ǩLġmV@ƯĢkÆm™ĊkVťLɃmÝXó°@„ĢbVŽóVݦɱ@Ƨaġ„UV„ĠÇÈV¼UVţwmbJÇwˋa™XmǯKkkmŽƒbXšm¼V¼Ǭڲ¤ôŰÆƴô̐ŤǪnɆӨ¼ɆLÆłUĊšxŎƞȘǔˎǬǪnƨŮǬö°»šġ„„ÞÜÆĸÒĊ„ǀbƾèôÈ@¼¯þŤĸƧ°Vb@lÈĊ‚šʠń̐„ȘKǀŽֲॗţÿǕý@ʊǓƨóÆÑǖŃôw@΋ʈƆÅÈVVĊV„óĊÅ@ÞƒĬV@Þīš@°Ž„V@ĸ̃°XτƜĠ@ÈaÜ¥Őƅ‚™nğóĕVġUůƿŋ—ĕƒa±V—UťÇğÑ"],encodeOffsets:[[101892,40821]]}},{type:"Feature",id:"6207",properties:{name:"张掖市",cp:[99.7998,38.7433],childNum:9},geometry:{type:"Polygon",coordinates:["@@ÈÒŎÒk„mLUŽlŽU„¯nV°šš@°ɜb„ÞĠaÈ»ĸl‚š„LVUÈ@Ċ@ýUm„@@ÆVĠ¯Þm„LƯޏƒ„ѰVVwšJ²»ÆÔšVlŤÅV™¦ĉ°ĉĖċwÝJzVxll²IVVVþšX„¤źœV°¦„VĊ@ÆbÈmǔLĸĠ¯Ģaô¯ĸmÆÛUƒlÇĸk°XyĊUǔV„ǩnmV»ƒa@ýnK°n@l¥@»ż„Ċ¤m皃@£ČU@mƒmVkÞUƐ±²¹°‚ĠwÅƑŃU¯™›V¯aÈŁšƒÇ»™ġn_°xŎKlxœklx„@Þw‚„„@Æm²b‚DzLlkšWXať¯ĊaœÑšK±w@wƒUÅçV±Uk™@@„¯š¯xƒU™±±UU°ōxVxÅÔō°ó¯UÝ¦óbÝþƒ@ĉÈóUV‚Ux„„@VŽUVÝwÅÈǎóVkk¯JǐkmmL@„™KÇx@bkš™@U°ķ²ó`ƒš™šmn¯°ƒUwlÅkUƒ`™¦ɛô™Žķz@ŽÅnǰU¼¯KmVk²ƒJƒ¼ƏÞķôš¤ULƒ@mnğ`™šÇnUxÇ@Ûÿ™U@ƒƒkŻŽ@x@móJkŃ¥VŹĉóÒĉlċ°ķ„Uƽ܃@›x"],encodeOffsets:[[99720,40090]]}},{type:"Feature",id:"6230",properties:{name:"甘南藏族自治州",cp:[102.9199,34.6893],childNum:9},geometry:{type:"Polygon",coordinates:["@@ލš™nKlnšwX¥WÝXk˜xÞUnƒ°aĊVnUUKlÞĶWXnĠ¥ô»„™@nmVL@¤°™Vz„JšanU@aÆwna@k›ƒU¯šyX_›aĉb™ƒ„wƒéXkWwÅaš¯V¥mƒ¯UƒƒI@ƒš@„mšb°aÈçšUš¥@»‚knwɜƇ°I°ÑÈmVU™¯Xa@w‚W@wšV¯Č¥l¯Uwnm@k˜aUaóKkk@™Ça™b@ށÒWa¯IÇxÛam¼™VUƒxÒl‚@zÝÒ¯bÝaĉVĉwDށW›zJ™mJn²mܯUƒ¯ĉ@ġ¤Åb@²nšmlƒ@@Ž„„U„ƒLVxšV™„U¼Ålma™b@ƒ°™l@WIUƒ¯@mƒ™@™™ó„™„@U›zţyƒXÇU™ÇVUUVLkbWakVWmUbkkƒKUÆ»nƒ°Knk@aƒUVmšnk»l¯Ģ›lw@_kKVU@ƒnaƒ@lUk@¯¥mV@kmbW™b¯Åõa@mkU@kƒÇŽkU@›`@™óó—bl¼Uxƒn„¼šlVȄx@blVkVVnƒ`XÈġÈ@ǃK£ÝJmUUnUĖmlU„mKUn™VÅaUw›Uĉ`¯n¯wW¼nxVŽ™š@bĉnƒ‚kIċŘkXUŽ±Ò™xšÈ@ŽX°`l„œV˜IȯĊV„ƒšVVan@VašUVażVmšblkÈW„ƒWIXa„alL@wVb„„V„¦lL@lĠ™n҄U‚nk‚šL@ÆÞkšÞšK‚bñþW¦Û„ċVƒ„ULUºkÈlŎUxÆxÞUUxšÒ‚x„@XbšL@lÆ@„ÒlXVln@„bm¼ƒJ@„Ån„šƒx@bnšĠm„xVXmbÈè@ŽĊ£ČW˜w"],encodeOffsets:[[105210,36349]]}},{type:"Feature",id:"6206",properties:{name:"武威市",cp:[103.0188,38.1061],childNum:4},geometry:{type:"Polygon",coordinates:["@@±¯¥@klwU»ƒƒÞÝmwKm¯™™ç@™kVÇUL¯lVUKġ„ġm@a@U„@X£°l°LŎÇ@aōVÝw™ÔƒKUŽÅš„WJ¯lm@ÛVWa™@klĉUmaƒLUanaƒ™ƒk¯J„™™±KkXóÜÅxƒ²Ç‚@„„nUÒĊb°@™ÆkL™Ž™XÇÆ@xÝn—xWxţ„¯¤ƒI@Æn„ƒVV„VlU²Æè„V@x²x™L›ÒĉbŦ°Wb™Xklބš@l¤šXĊ`„wl@ĢÈŎm@bšnV‚Ubƒ„@șÆÛLƒèǚUÒŦlĸ™`°ĮʟÆǓbĉôϚĊƚĢnŤé΀ÑĸĀĊ¦„@@l°lœ¦Ȯ¦ɆÞĊKŤ™ĵĸů„»mفyġ™ķŭ@Çɱȭ¯mƧUĊķnŁŻ»UaU™˜ƛɞÝƨů"],encodeOffsets:[[106336,38543]]}},{type:"Feature",id:"6212",properties:{name:"陇南市",cp:[105.304,33.5632],childNum:9},geometry:{type:"Polygon",coordinates:["@@šÈÞ@l`UmVƒ¼œŽ‚@nnÆwVlnVVa„LVƒÈ_‚ÿރ@n„a„xÆ@„lš_š@VxnK@llLnxmÈŎJnbUxšI°Žl@n¦‚lÈIlmX¥„k°@šk‚J„k²é˜@klaUaVaU@@ÝnIWnmnx‚k„ºÞ„„aV™°„V@nw‚KšxôbÞ£šVšU„bšþšLn»mƒVw„IšJ°Ž@„nb@°°I„ġUkÇKVƒ™™@ů»lƒ„Lnmƒ£@anK@Ñ܍n@»mL@£™yk„UUmbUÞÝ@kyÇbó»™XUxƒWVzb±mÝbXaƒwUamL¯»@wUKVwm¯ĵJ°ÅUWVk„KVk°wÈVšVуlUšƒ¥škmVamknƒUw¯¯ƒbċ¥ÅKƒk™Kk„™VċVk£kKVw‚Ñ„a@kóyÛ¯ÇVk™ów›š—Xō¥Ç¼ów™Ž¯U±‚k„ƒ@x›IĉÒÅVmÈnšÜ@n°„bUbÝV‚ŽUnnJ¯Į@‚m¦nV܃@„„L°JXb‚Ñ@šaÈb@šllôLVb—b@lmnVxk°ċ¦U°™Ž@xX@xWbš°UVÇn¯Ò¯Jɛƈmxl@¼"],encodeOffsets:[[106527,34943]]}},{type:"Feature",id:"6210",properties:{name:"庆阳市",cp:[107.5342,36.2],childNum:8},geometry:{type:"Polygon",coordinates:["@@kw‚ĉ—»VamƒƒV¯wƒIóVkl¯™Km™Vō¯ÝWkL@bÝKō¦@Ž™„@š™Lx›@b@l™a@km@@l¯nm@UaÅ@ƒ„óWUXm¥™nƒw`@UUxķôǰğ¦@„VJš_n‚‚IVŽnalxkX„JWn¯šnVƒLšxl¤nnVbklVX@xnxmV@bUK@nm@@xƒV—°±aÅnƒŽkUWnUaƒx@m™n@ƒ¯LƒššmUĀlU@lV@blLUblxklkIÇx¯°‚UXbšaVŽUnšV@°‚LUlnbšX@`°nVmbnÆmV‚kLmK™¦UŽ@X„y@kl@U„°K@¼XbW„ƒš@b„WnLVa„VšƒVz@xlVČ¥lbUxލlV„U@nÆWôn²™VJlU„Ƨ„LnmÜLXa˜n@mœw@wlUlV²mšblwšVȃlLލ„±@lVnUlxnkma@mškšJ@kXV‚U@mn@š¼VXUƒVƒlLnmVbôaVnWV»ÈUl°È¯ÆIn›ÆU@kk»mKkÆġk¯@»mƒk—¯@óÇlÇ@—Vykkl™Uml¯Þ™@w"],encodeOffsets:[[111229,36383]]}},{type:"Feature",id:"6204",properties:{name:"白银市",cp:[104.8645,36.5076],childNum:6},geometry:{type:"Polygon",coordinates:["@@VKUȚl@šè°šnŽ‚LnxÝބ„V¼kx@l‚¦²°ĊóĠ„™Ċ»š@ÈxšaĊxlwÈVŤa@¯²aÇ£ƒJk£lƒnUÞ@°šô™@y„wl»lIX¥Ǫnw@ÑÞWla„ÅlL@ƒUwĉakƒl@ƒš¯mwna°J„V¯nUVÓÞÑm£²óWaUƒÇ@óÝUçV»ÈkkW@¯‚xV@XlK@wX@Vmm_@wÈݙKU¯ÇwVwÅK¯VƒkƒJ™™™XkWVaƒImޝUk„ÇlVšœĀV°mxóšk„@¼ó„WxĉÜU@Ub‚zÛJÇk@‚ÆnVlԙ@kŽ„x™ô@ĬWL¯ƒƒK@aÛImm™@ƒIUaƒ@™™UŽÇêU¤VÒÇx¯ÒV„šš™lk@Wbĉ¦UbkWV_‚y¯Lƒaó„kŽ@b@nmbkx„°"],encodeOffsets:[[106077,37885]]}},{type:"Feature",id:"6211",properties:{name:"定西市",cp:[104.5569,35.0848],childNum:7},geometry:{type:"Polygon",coordinates:["@@„a‚V²wVJV_@„LlanÅllŦçÜӚ_šlnƒWaôk„xUš„bmV@È°lèšnk°l¦„`@nnL‚@ÈlÜIyVaV@ĊÛXwôƒ@»lƒô™nwU¯›ÿU™Èklƒ°Vn„JUblXšWšš„I„l°U„ƒVƒš—@aVVVmnL@„lƒ„UUw‚mkƒš£„bV¥VUVwۂƒlaÇÝރmk£ƒLUy¯L@WlkKW_XaWƒ—mƒ„ġU@a™k™‚ƒakXkmVwmŹVƒU™b™WƒónmwnWW£„KÈnV¥ƒ¥„ƒÆ_k™lW„bU¯„V°aôbnaVwmaōInÇmwkK@kmLUw™@™`ƒkÅ@ƒwƒb@m݄ĀÇ`U„ƒKUbmUUkÅxmm@›„»nUVk_Ý@™Ç™¦™VÇè¯b™aƒn™@@„„JV„°Žn„U¦™°ÆbXxWl„êƒxš„ĊaœbW`™zV°œ„@lmbÅx@bmV™bƒI™`™¦@ÒUVUI@ƃL@bš¼@ššŽ@„šlmxnL„°ULƒŽƒÞğޛ°kLUŽƒL™°™xVŽ„n„KVƒl@šzX@"],encodeOffsets:[[106122,36794]]}},{type:"Feature",id:"6205",properties:{name:"天水市",cp:[105.6445,34.6289],childNum:6},geometry:{type:"Polygon",coordinates:["@@UyȍVƒVUnn@ƒVU„`UblzšJnk‚@Vb„KU„°l„wš„„W°„nkVŽ‚UÈlš£°V@n¥šV„kl™kU˜±U„ƒn™ƒlw¯UkwmKUlmkUmnkym@ō@U„mWÈU°l°anlJškUKlU„¯Èm@kmWV»kkÝLUWUx±b™@¯ma@ƒ¯™IƒJUxn„m¼™K™ýƒa™V™Uݤóa™wLmxU@¯ƒUšƒb݃ƒ¹lmwmnXŽmJ@ÞV@UbVbkblŽ—@±êƒlI™l¯@ƒlW¦knÇJkm¥k@¯™Jmbóa¯bƒUV°ƒakXlšÅ`ƒ„„¦U¦ÇmƒLX¤mXnxm‚„ôšXša„VźUnŽUxlnlW„bššl@bĢV„ƒ˜nX„WbX`lLXk@ްKVz„Kl¤„nÞ݂Èkb„‚܁"],encodeOffsets:[[108180,35984]]}},{type:"Feature",id:"6201",properties:{name:"兰州市",cp:[103.5901,36.3043],childNum:5},geometry:{type:"MultiPolygon",coordinates:[["@@lW²LššƒŽ°I„l„šmbVb„KnbĊVlkš@XbÜU@Žkn°‚XIƒÆ™V„LšÓÞxŎUlôƒ„b°KzU`lXVaĊ¥Xal@šk™™Uƒ°ÑÈwUтV£ÈéVšš„@Vb„Jš@nnÜJ@b„L°„XK@īšóƒwlš@kÓmUÅmK@mƒ_k¥l¯™mkçǯ@nUƒaV™ƒwólXbm„™k™`ÛÔťèkkmÆkbƒK@U`UI±xUƒbWlX„mbVbÅÒólkƒƒIWJkšƒ@ƒz—Kݼ™@™xUx󎃄¯LWb@ŽÅ҄„±¦U`nbťĀUšVb„LšŽ„U"],["@@ƒ¯lwna@mōȯK¯kW¤ƒ@@V@bĢñVLU‚°k"]],encodeOffsets:[[[105188,37649]],[[106077,37885]]]}},{type:"Feature",id:"6208",properties:{name:"平凉市",cp:[107.0728,35.321],childNum:7},geometry:{type:"Polygon",coordinates:["@@ÆLUxÈxV°šLÇÞ@xn`Ü@X@nĊŽÆwnJmwUx‚aUkšw@V@w„aVmlLXÝl@X‚VĢmV°@nl@UUUWK@w„ÿVI²Òlmš@nÝĊýVV@nšJ°„„šUłm@kV¼nK›ĢȤôK„blnKllVk²aĠ¥È¯ĸóVw@V‚_„xšmn¦VWôX„ƒÆ@Vbn@°m@kn@@lšb@k‚aœ@‚wšK@™šƒ@UlKVaƒWX™W²¹lӄw@_°›n@@_lKōķW™@ŽmLUWƒn™»Û@›l_Ç`ƒÛmm°ÅbWb@š—VWbƒUUKDŽÅaġlmkUġlƒ»—Lƒl™Um¦@ޝU™¤ÇkVUml¯ƒƒX™ƒƒx¯kVƒƒLUa@ml™IkyVaƒ_UV@„mmUVU„ÇŽVzUxUVU¦ƒa™¤l„nVxƒVk„@ƒmKUnUU@b™˜U„ƒ„","@@@Žż@™mlkƒġk"],encodeOffsets:[[107877,36338],[108439,36265]]}},{type:"Feature",id:"6229",properties:{name:"临夏回族自治州",cp:[103.2715,35.5737],childNum:8},geometry:{type:"Polygon",coordinates:["@@š@ż»˜L„y„@l™XI„Jl„ôkÆÑUanaWƒXkW@™yk@U„ƒLƒmUšwš¯„KVlKœ¯Ġ݄݄VKƒ¯mKnw™k@ƒ™@™™»@a„K@ÅVJVU@њ¥š_Uy¯š@£UKmn@‚ƒšó¼ğ¦WmĵXݎkŽVLmVĉU¯bm„ÝV—wWlXÞW¦™xkmmL™šÝŽœ„±U@Vގ™š@„ÅÈW°X„ܼƨyUĮnŽWŽnXÝxUx°lVXJlôV"],encodeOffsets:[[105548,37075]]}},{type:"Feature",id:"6203",properties:{name:"金昌市",cp:[102.074,38.5126],childNum:2},geometry:{type:"Polygon",coordinates:["@@šĢȼ™„Çł°bœU°šV‚ƒń‚ÆǖŰnšÆ„ōĬǔaʠůĭš_kķÆ¥VÑș„çÜKšÅ@DŽƒVaU™m@aōnġÇk@ƒxĉ_™Wk£™@݃±KÈ±aÅnƒ@ƒÝxƒ@kw›lkwōL¯wm`"],encodeOffsets:[[103849,38970]]}},{type:"Feature",id:"6202",properties:{name:"嘉峪关市",cp:[98.1738,39.8035],childNum:1},geometry:{type:"Polygon",coordinates:["@@llĊx„¦šl™¦š„kVVnšJVbǖV„kôV˜a„bnaWw„UXmmamUXkWKō¯Xm°™™»ĉÇ@UVƒK™ķkǼğb"],encodeOffsets:[[100182,40664]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/guang_dong_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4418",properties:{name:"清远市",cp:[112.9175,24.3292],childNum:8},geometry:{type:"Polygon",coordinates:["@@lǯkÿƒaV¯™VaÈU„¥ÆÇ„Ilxšmnb‚Uœxl™„Uôl°kš„„Wl„š@ô™VwUanUl@„xVkšaX¥‚kU»„aš¯±@kka@ƒUwmUkwƒJk™˜„±k@ƒ™™L@ÝWUwV݃—xÇU¯ŽÇX@m™Åƒ@@yĉ£VmUwȗ»ÇšUn„lUnWU¯`Ukƒ@@„™x„Ž@bÇxX¼ƒVVš¯LšĀk‚ÝLƒ„¯@VŽƒĀ¯lnĊW¦kVÇôkUDŽUK@ţ™U@a™™ó܃UU»ƒ@™¦k@Vx„KVb„n‚š@„Æ™„l„@xšƒbWšnlU„lxÈlV„ȰƄ@¼™„@x„šWxœŎ‚V„šK°„š¥ššnƒÆkŎ@ÈÑm™„K@¥šk@™ô@„nôV"],encodeOffsets:[[115707,25527]]}},{type:"Feature",id:"4402",properties:{name:"韶关市",cp:[113.7964,24.7028],childNum:8},geometry:{type:"Polygon",coordinates:["@@W™Xk±Ñ@ƒUw™mUwĉwlmn@Æwn£mkIš¥ÇÅ@¥šaƒón£nWWwš£V`Þ@šnVml@xô¼„IV¥ƒkUmkamUkVWwÛ»móƒ£UVÅKmn@x™@kbmm¯a™Xka›VĉaUb݃ƒ²—‚lš„IlxnVVx@„lb@l²™°ƒbV¼lW¦™bUlƒwk@mVVbUxóš™@kƒƒX™ƒ¯lókƒVkš›wVma™nkwƒJÅȃ¦ÇVUbšŽU°„bl°ŽkÈ@x™¦ÆÜ™°@„°„¦óa™VUôlUlbXl@nÜV„„nKlŽnIVÞ°Wš„°U@bnm@¥šIVƒ²Ulƒ°VnalzXyl_Vyƒ¦lƒœLlxš„@ŽÞbšKm„knVWanwƒÑVwČº˜@n_ÞV„aVŽÜIœl@„˜KȚ„VJ@aš£È@˜™@km™„aV¯W@_ƒa¯KmbkÇkLmwƒ@Å¥"],encodeOffsets:[[117147,25549]]}},{type:"Feature",id:"4408",properties:{name:"湛江市",cp:[110.3577,20.9894],childNum:6},geometry:{type:"Polygon",coordinates:["@@@ƒkXƒ™@a„UUċlk„Jƒk„™@wVJXUWk°W@nKnwlUlš²ƒ„blU@‚lI„l@„XbW„šxnm@lW@w„wU‚JX¯VU°`ŎóˋkÝÝkÅ@ÇmğÈřmw™aĵV›xUہ»°™ĠǷnýmóX¥ɅĵҏÇ@°²ĊU˱ĮU¤Ç°™Ā¯ɐnżUĊĊĬV@脎@ԃÒU¼l¤nƒĠb„êVĠ°Èy„zVaV‚nUÆL„ašbVl„wÆ@"],encodeOffsets:[[113040,22416]]}},{type:"Feature",id:"4414",properties:{name:"梅州市",cp:[116.1255,24.1534],childNum:8},geometry:{type:"Polygon",coordinates:["@@„‚nԚlW¼x‚¦@lœVl™lLkè„a@zš¤ƒĖ„¼UxlnUKUbÝlU¼lb@„Vx„V„klJÈwV¯š@ĠlÛ˚nƒbkšÆźÞƒUÈôklmšL„¥‚LœW˜„„™nKUkVa°V„x@IVV@x°bUk„a™a@mV@„@y„w‚L„ÑUwVUšV„‚„U‚bÞVVann‚@XwÇÿš¯²aVamkXaÆ»@»nw@¥›UXaƒkbWa¯KUw@¥m@kwmLU»UU™J@kmU@UUWUƒ@ƒyƒanwmçÛl¯ƒŽ¯UƒmKUmƒwVkmÝXbW@XWÝbƒk¯@±‚w@»U@W¯Å@ƒÇ¥UƒU@ƒƒ™IU™ƒakJƒĀ„ꃰšþƒXkamŽ@Žƒ_J°m‚@X"],encodeOffsets:[[118125,24419]]}},{type:"Feature",id:"4416",properties:{name:"河源市",cp:[114.917,23.9722],childNum:6},geometry:{type:"Polygon",coordinates:["@@°VlmX¹laĢÒlm„@„„šV𣂂@¦Ģklynn¼lW°z„W„„°VbÈV@lÆbnn‚JškX„šVÆašÅ„W@™ƒUUw@ƒkaV»ÞkVaVLkmVwƒ»„ĕ™£@yƒblçkKkš›U@k¥‚wX»™kmӃ@Wn¯‚I„`@nlb„W™ý„¯ƒé„ÿlI@™XUmWUwƒ@@UJU„Ç„mKUV@x™„ţk¯¯LWƒƒnUxK@ű»Vwa¯š@¤WX@ŽÛ¦@¤ÇIȼWxXŽƒ@Wx—w›ŽUnVbÅèmVa±²UWl@Žk„lȄ¤nôܼXxlUnVlbVn„lU¦ƒJó»@wnkmU™‚Ý@U_™¤XxmXm¤„ô™b@¦Èƙ¦lJn"],encodeOffsets:[[117057,25167]]}},{type:"Feature",id:"4412",properties:{name:"肇庆市",cp:[112.1265,23.5822],childNum:7},geometry:{type:"Polygon",coordinates:["@@l@š¥„@V¼„Vôۚš@bšV@ŤVLȃlVÈólUX¥mĉ°k„ÿU°@„ƒÞKl™ÿ°KU™„UW»Èw@aƒšw@ƒ„@nm@w›£kÓVUVn„Kš™k¥™£Vamƒ@nkKkbÆǫma—kmLU¥™UmƒÛwmVU™mUƒJ—ÇaUxÇIn`mb@Þ¯b@„nJ@nl„U‚V„lVU„L›W¯—Û`Ç_¯`mš¯I™bĉWċzx±J™x𐝯Uƒƒ_k@™šƒJ@Umb„šXôlLš˜n¦@¼ĊxlUXŽ˜xUbL‚Ġ„UnVĊwlšUš„b@lW„X„‚m²˜@ÞWxXš‚Unb"],encodeOffsets:[[114627,24818]]}},{type:"Feature",id:"4413",properties:{name:"惠州市",cp:[114.6204,23.1647],childNum:4},geometry:{type:"Polygon",coordinates:["@@lbšW°bnnlaš@@wnmÆLVUkÇlƒ@Xk‚V²±‚bnUÆçUaVmœ˜xXw„@WXwÇ»ÈJ@£Ü¥@XW@£°™‚bUx²¼@ƂLVw„mX„°K°Ťlšƒ@wVUnLȃVƒVIky±wkƒKU¯ƒÅkƒ™XġÑۃlwUwlm@m„nKWašÅm›¯óÇmğb¯alĉUwķbmb@lÞÒVn—šmĀŹ@VŽƒbVŽUnmakLm`@xĉkklVÔVJVn—lV„UnmJmaLUbl‚™zmŽkL™a™‚ō@@zš‚V¦UŽV²kJ„nÜU@˜VXUށL@„lJƒL@bݤUnVŽ—b@xVnlK²„Vx°V„xlI„lkVl²k¤@n"],encodeOffsets:[[116776,24492]]}},{type:"Feature",id:"4409",properties:{name:"茂名市",cp:[111.0059,22.0221],childNum:5},geometry:{type:"Polygon",coordinates:["@@‚LnÇlk„KnkÆL„ƒUm™ÈxlUœJló°n@ššanŽš„„a@ƒ˜@X_@mÝóóU@a™aU¯mL¯ƒƒkV¯™ÇVwkw@V±Ŏ£@™™@šalw±Vk@m„Åm¯™ÿŃƧIÇ`ōô¯_UVW°IV‚ƒx@xkX@Žmn™wXƒWa@ƒƒkkJ@kVƒa±„k™kVmxmL@‚¯XXlWVUI@xƒš„lƒIklVȃV@b„šlW@„@nUxVblVxkôlx™n„‚y„šnIƻư„aXwlK„bVnƒŽXb‚L„¤„k‚L—èƒVV¼ƒŽ²IlĠVX„ynz°KVx°@VlœLlblKœš"],encodeOffsets:[[113761,23237]]}},{type:"Feature",id:"4407",properties:{name:"江门市",cp:[112.6318,22.1484],childNum:5},geometry:{type:"Polygon",coordinates:["@@lUXx°JWnnƚXVš„W„X@„šºVLV¯nU‚Vnb™ô„x‚aXmW™XIšŽUb°xlK„l¯œK˜xXÞ°ŽšXÈ¥Ü@„ĉޏU™‚çš»nóƒVma—x‚¯UÅU¥Ý¯@ƒƒç@ș@çĉÅUmU籃ĉKÝxÝ_ÅJƒk¯»ó¯nmèkǀšŽWxœ¼mnUÜġ°@¦@ƒxƒLkŽÇaVnUxV„™šVlnIlbnÆÆKX¦"],encodeOffsets:[[114852,22928]]}},{type:"Feature",id:"4417",properties:{name:"阳江市",cp:[111.8298,22.0715],childNum:4},geometry:{type:"Polygon",coordinates:["@@°„nKV°šb@bôVÞô@n„VlÒôÆUnlnn@lmkmVkƒaÈkÆÆ„™k¥‚ÅÞ»ÆKXkW¥ÅLmÅkamJUkš™UƒVwUmÈbl„K„w‚@@¥Ģ¯VÛnm›»Xw™lƿ™@kbW™—aʵ@óL›l¯ƽ@™ƒƒLn°ƒÆ@nUl‚²kx™b@‚š@šō¤U²@ŽlxUxšÈU°lŽ„"],encodeOffsets:[[114053,22782]]}},{type:"Feature",id:"4453",properties:{name:"云浮市",cp:[111.7859,22.8516],childNum:5},geometry:{type:"Polygon",coordinates:["@@@V„Iš™l@„`V„°Å™šw²I‚wČyĊXša°Jn™°_È`Ü_°˜œX‚KVƒkUUƒVkƒ@mmI@ƒ°a@Ýnam_ÈJVwlĉX@„šlUšómaUmVU°UK™¹@ƒƒWƒXU™™WmÅXm¯IWwkVWlÅLݼÆl¦ƒšÅÅÇl„bUllnknm@kmVmóÅkуUW`—@@„ƒb™ƒm™b@™¯mkô›IkVÇwnš„VƒÅKmlƒLklmȁKƒšVĊK°²„`n˜¤n„U„bWl„xVx™LUx@°nXm`VklVxmnnx"],encodeOffsets:[[114053,23873]]}},{type:"Feature",id:"4401",properties:{name:"广州市",cp:[113.5107,23.2196],childNum:13},geometry:{type:"Polygon",coordinates:["@@Ș¼VxUnĊ¤@z„@šÆ@nÈW°ÈV˜w„ŽUÞVxÞX@ŽšK„šl@ބVaĊbœU@ml£k±lUƒkkJƒw¯UUw±ƒkLUm@w˜aUVmÞ£@a„KkI@ƒ‚KVUW@—ÛVƒmlIU±VU¥™@yğzƧǃƒšƽĠřšÅnī±m@ƒ²¯lƒ°@nÝÆóUll@XnÝVU¦mVV°—„V¼™Jƒn„b@°mbn„ƒ‚@²¯‚¯wVwƒ@@nmxX¤¯L@ŽVLU„m@@l"],encodeOffsets:[[115673,24019]]}},{type:"Feature",id:"4415",properties:{name:"汕尾市",cp:[115.5762,23.0438],childNum:4},geometry:{type:"Polygon",coordinates:["@@@‚„@VxnXWV@š„bVššJ„„V@ÞÅU¥Ċxš£UWU‚wÅUU¥WVUkĊÇnkV`°LV™„wƒƒnU@™„ƒlbĊ¯„Vnalšš@@çkUÝ¥ġaó¯ÅaÅLŻÆUýmy¯ó@ĉÆó„ȯw™ÆXbmLƒ‚@nknVxkx܄ĢҚW„Æl„V°„Ll‚²xlz"],encodeOffsets:[[118193,23806]]}},{type:"Feature",id:"4452",properties:{name:"揭阳市",cp:[116.1255,23.313],childNum:5},geometry:{type:"Polygon",coordinates:["@@V„Ȧ„Æ@X°V@@¼‚x²°@„lÞaWXX@‚aÞWlnUŽ„xVnnL„‚°V„@k‚mĢl@„ak™@mlk°aXƒ±„nwm±™²¯JV²@ƒwW˜—_mƒa„V»ƒU@m¯ĉUф™šJl™„ašbVn„lĸLlƅÛDZwÝ@ĉxó@è™@k™mbƒUĉ°kaƒ„@šmV„„ƒxUš¯KU_mlĉÈVlXUV¦ÆVxVŽVX™¤ĉwV¦ÝÆ"],encodeOffsets:[[118384,24036]]}},{type:"Feature",id:"4404",properties:{name:"珠海市",cp:[113.7305,22.1155],childNum:1},geometry:{type:"Polygon",coordinates:["@@„è@„Þ°V¦VƁ°˜wnb„UÆ»nçÆ@nxܤ²llU°VnÈJސ°UôéšķUklƒô£VVˌKÞV°£n¥ƒ£ȗ™Ýy¯¯mÅkw¯bÇĔğ@Ýn¯ĊƒVğōŁŻƒķJ@Ț","@@X¯kmèVbnJ‚™"],encodeOffsets:[[115774,22602],[116325,22697]]}},{type:"Feature",id:"4406",properties:{name:"佛山市",cp:[112.8955,23.1097],childNum:1},geometry:{type:"Polygon",coordinates:["@@Èb˜Ž„InVVšnUÜxn„šVV¦nK˜lnbÅǬlalL@mn„Ubš¤l¦™šƒLUmUVlԜ¤@xmnVl°_XVVmƒkVmș@kn@VƒUK@°KW£nw@m„@Ux°x°@±„mƒna@¯ƒa„mšIU»˜ƒU¯nUV¥ÞUWmk@Vk¯™Ukn›ÑWݐƒĊÛ@Ǧ™W¯Wݗw›Lk°ƒkL¯wVa™WJXšWnbƒwkVƒ™W@kĊ"],encodeOffsets:[[115088,23316]]}},{type:"Feature",id:"4451",properties:{name:"潮州市",cp:[116.7847,23.8293],childNum:3},geometry:{type:"Polygon",coordinates:["@@°ŽÜknèmx„b„z„@V‚VX@VnV@lšIVVV¼nKlxn@@¦Vx°LXbla„ŽWbœV°£¯™W@nW@™‚aUñVœwWš»@¥ŤÅUÝǓÝóV@ńǎkUVmƒIUwÅVWÇX¹›—@W„¯bkl@nlšƒb@‚kġށn@l"],encodeOffsets:[[119161,24306]]}},{type:"Feature",id:"4405",properties:{name:"汕头市",cp:[117.1692,23.3405],childNum:2},geometry:{type:"Polygon",coordinates:["@@‚@U±°Iš±n²mx²ƒ˜@œWºXÈÆUVx„JUnlVȍ@ŃôUǔÞVçn»VyĢÛVm@»kaÝUǼóšÛÈķKċ¥X„¥Wwğk™ƒ¯@ƒwķKƒkUm™aƒbkš™IƒšVÒ°Ċ@n„VU¼ƒ‚„bn˜`X—„x"],encodeOffsets:[[119251,24059]]}},{type:"Feature",id:"4403",properties:{name:"深圳市",cp:[114.5435,22.5439],childNum:1},geometry:{type:"Polygon",coordinates:["@@ÞLš„@xšbV„šVšK°™X°Kô¥Vw@anU„胐š‚lkĊl@wn_lKnbVmU„aUź@nÿ˜™UmÝѯUƒbk„@ÆkxŻ@™aÇX—wƒJƒƒ¯LķÝUĕ™ó™ĸóêWº@b²nmĬ™Æ"],encodeOffsets:[[116404,23265]]}},{type:"Feature",id:"4419",properties:{name:"东莞市",cp:[113.8953,22.901],childNum:1},geometry:{type:"Polygon",coordinates:["@@Ŏ@ššblKnšykVa‚KnbnIVmUƒ˜kUmUIUә„ƒçmV@bUxó¦¯LW‚¯š™L™UUƒ™a@w™ƒÝKğŚ™ƾ„„ƨÈĠy"],encodeOffsets:[[116573,23670]]}},{type:"Feature",id:"4420",properties:{name:"中山市",cp:[113.4229,22.478],childNum:1},geometry:{type:"Polygon",coordinates:["@@‚XœÒlmšV°ôÞÅ@m„¯°k„±‚@@aX¹¯VݏÇIUmV¯kk‚±Û£mw@‚Őmèżmô™¼èVš"],encodeOffsets:[[115887,23209]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/guang_xi_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4510",properties:{name:"百色市",cp:[106.6003,23.9227],childNum:12},geometry:{type:"Polygon",coordinates:["@@lklWXL@VšI‚l@XnJn@VUUalk@mK@kny@UlU@a°™„ƒUU@VmaU@Ua@UWw@ƒn@KmLm@alkšmnI‚m@an@VIUamWÅImwU@@a@K„X@JVL„UVmUaVkUa@m„@@Ulmkk°ƒUaVUlKXbVwVIkaVmUk@KVk@a„aW¯m@w„¥laœX@KmaškVmnUl@nxVKšInU@yVaVIV@na°KlxX@@_lmXšUV`VIV™V@„n@lšbn@@WUkValK@²yl@„„VUV@@K°L@KU@@UVaXIVVV@naVkVa@K@UUK@UUa™LWa—w@m@K@UVVƒ@mVUUVKnL„mVL„K‚bVK@UUIk›mI@mUIVK@IUK@VkLƒ@WU@mU@WmUk@ƒI@VƒJk@WwX_@amK@UUWkIƒ„ƒK@LVb@mVmakL@J@bU@Ux@xƒbmI@`ƒIwm@UbmKUaUWa¯UkJWV@XƒJUU¯LUmV@ma@kkamKwƒLUUmWVkkm@aVUUkVKnVVUmXK@UW@km@Ukkm@@W@U™kUy@I@aUUmbƒ¤U@kUmL@bmJU@Ua@wkLWWkL@Uƒ@VaU@ƒLUakKWbkUWVkKkLVLUV@JVbƒz@Vƒ„@ƒVmUU@kVmK¯@VƒU_™VWakVmIUKUaU@@bml@XU@@V@LmKUV„mVUKƒƒKƒbkaUXƒKUL@x@V@l@„mxU¦„V@ŽlL@V@Ln@@VV@„nlKUaV@nLUbmJnL@VWLkbmV„@@L„W‚„XLlx„VVIVV@x@V²blUVm„LVUœK@kWWXUlV@Xl`„LX„l@@VšŽƒn@VnbVš@lVUVUÈVbš@@`UXU`l@@XUVm@kš@xmVknUJVXUbmKULmbx@VlJ@LVbkKUbVLÇUUVƒUVmU@VaUkUKƒVUwmLkUUVVlƒbka™XmwƒKUšVVU@@V±Uk@VWUUm»XamU™bƒKk™`ƒ„™U@UnWW_kKmbUVUVmnUV@„nJVUlšUbU@UV@n@JmI@VmbnVUXlx¯ŽkKmnVV@L@V™bkV™Umm™@Ub¯LmlUƒL@VWLkmkLmmn£WmnKU_mW™š™bnbmxƒ@U¦UJU„@Xmlk¦@‚mnUUm@@Jn@lV„ÔVJnIVW„I@a„ƒÆK@I@aVK„IlŽÞnnl@nl`nbÆX²l@xV„@llbVn²ŽVVl@nn„V@IlW@Un@@kVa°KšnÈmVaVXUlaVƒÈU„VlwôUlynIVašan@lVXb‚Iš@n¥la@Kš_n‚@bÆx@XnJV„nKVz@`VXVšU`@bƒ¦UV@VšIlx„UnV‚K„XÈbšVllšbVbnVn@"],encodeOffsets:[[109126,25684]]}},{type:"Feature",id:"4512",properties:{name:"河池市",cp:[107.8638,24.5819],childNum:11},geometry:{type:"Polygon",coordinates:["@@lLVl„bVV@nXVlI@JVX„mšn„W°b„IVV@‚ln„@nalVUb„nW‚@kVkÒlbVKn²°bUŽlV²@˜X@`nb„aUI@ƒ°wlU@aXJVI@aVK@wUamIXm‚@XUV@@bV@Vm„ImnUUwVaVKXU‚nVK@akƒVwV@nL@UV`n@@X‚lnIUJl@X¦˜V@aUIVm@anƒV@UwnL@VlbVL@KVVXUWƒ„wUUVUka@UVJnUlbnalbVVn@°„„LV`Þ@šXVxV@@bVlUVVbXnWlXnmlš@XXWVXJmbUI@V„llUVkn@@VWV@Vnb„@VXUJVnn`lLVk„a„»lVšLnw@WV@lInw@WnU@U@m‚knUVó„K‚wUmUXUƒU@@wVJVIl@XKVVVbVI„J@Un@lŽVLnm„b@U@Ul@nUš°VUVJnnVJV@„@mVU@ƒ@wkUVwkKWk™yUUkU@alkÈ@lJ@x„Ilƒ@UUWVkUw@Kn@@kmaƒVUl™UUL™ÇƒUUKl@UUmL@aXU@mlUUwmKkUUVKVUƒaƒKUnK@U@Vl@XUWU„KlwX@šb@K‚@XkV@UwWJka@aUwmV@U™@@U@wUm@»kLWVkIWŽXnmV@VkbmKƒLUbk™Va@aƒa@@aVU@aVak£@ƒ±UkVU¯V™UUƒJVƒUIƒ@kxmUmWUbL›w@K@aU@@aVU@Kma@aka@_VWkk@UWVUKULWKULUš@KUnƒwVaUKƒxU@UmaƒL—m@kVmVa@UkƒmI@ƒ@KmIkxU@@K™U@mmakI@VƒLkmWkkJ™_U‚@V@L@n˜xXbšKVb@VVL@V@LUbUlmbU@UUWJUb@VV@@L¯K@LU@UVƒƒk@±z@‚kLUbVl@Xm@™akm@ƒU@UšUJU_™VWŽkn@`W@kw¯LmbU@UJUb@zmV™JULmwk@mVUn™lnb@L›Wkbƒ¦@x°nXŽƒb@bUl@LVlUnlbUJUxWakLUVVb¯„llkn@Vƒ@@nVbUlVbUnƒVUK@IƒW@L@bV@nxÆJnXVbUJm@@bnmJ™nkl@b‚nnK@L„m‚@Xx@VVbV@nb@UVVƒ„¯š@bkV@Vmz@lnLl@kŽVbUVm@mI@Wk™J@UWKkXkl"],encodeOffsets:[[109126,25684]]}},{type:"Feature",id:"4503",properties:{name:"桂林市",cp:[110.5554,25.318],childNum:13},geometry:{type:"Polygon",coordinates:["@@nU@J‚X@`XLm¦Vb`lšVXXWš@VblČnVšŽlanLnmVLšK@_Vaƒ¥@kUa„@VmVb„aV@XVVzlVVK@knKVmX£VKšLlbnš@b@llL@xĊôXaV@°È@¤„bn„V@@Wl_„V„U@W„nVamw„wVbn@„K‚VšLX@VmVUxlV@šnVV_nK@m‚I@Wn@@IšUĊ@@wVWX@@I°VVm@wmU@m@IUƒV™kƒlkUmmkÅV@@aV@@Wn_UKla@kšaV„šlVanb@k„@@KlVn@@aV@nIWW™UUaVU@™kKmwU@UImKk@UU@w@W@‚™k@™UkWƒ@mk_W@Ua@a™ƒƒ@—¯ƒmV£@mƒUUam@—kWakƒVama@UUm@nw@alaUmnUlVlIœV‚™šLVyk£Vm@k@UUJkƒK@kmKUw™KkWK@UXImyVwnI@m‚ƒkUlkUKkUVmƒw@kkJWUÈm@_k@@aƒaW@U„UJUwU@@IWKkƒmUUV@nVl@bVb@bU‚UXƒakw@ƒWUkbkKƒbm@™xUlkLm@@wmKUX@‚™UaVW™XVmU@@UUUƒxkmWXkKkUWaUaUb™L@`UL@LV`UXmK@VmakLVbkL‚xUJUIVbUVVb¯KƒV@Xnl@lVXbmÒnV@L@VWKkVUIWJkIƒŽUamUUbm@U„kU@JUbW@X„WxUam@kbVVUnUJmUUV@bƒU@UUV™@ƒVk@ƒbƒmULV¦U@V„U`VLUL@xVbn@UJ@nWJXXVŽVV@bkxVbUx‚Lšš@x„¦@šU‚lXUVVlULV@@šnŽU„ƒb@xl„nJVnlVknUlVUbmŽU@ƒbVš„x"],encodeOffsets:[[112399,26500]]}},{type:"Feature",id:"4501",properties:{name:"南宁市",cp:[108.479,23.1152],childNum:7},geometry:{type:"Polygon",coordinates:["@@lKnbnU‚@Ua@K„L„ƒlJVX@VnL@bW`Xxl@„I@U„Jl@nV@X‚V@nXV„@lK@UVL@JULVJ@nnJlœVJ@VULaƒLUKƒnmKULVVUŽ@nU„š`lIXlln„K@UlJnb@nšV@LV@lwnJ@L@„nJl„@VUbUn@l˜n„KnbVŽV@„wVLUb„xVm@LV™VKXLVKVLXU@VllUX@`lb@bnb‚L@ŽUV@bV@@b@Lœx‚KVanXVƒUUmVUUUaVUky‚UUa„ImK@mUUVUkKU_@W@UVVVIUW„UVaVU@UUKnƒ@k@al@ll@bnL@b„VUV˜X@Vœ@@b‚Knblmn@V_@aUalL@a@akK@kVKUKlwUUnV¥VmU_VWVIVaX@Va„alńK@LVJnalL@LnK„wlVUw‚mX@VXšƒlLUVnblaUmVUVwXU@Wm¯Va@ÞKnw@w™mšk„»‚UVW²a@_mW@U@I„y„LVUUKW@@™„LX@VUV@@yVU@UV@nwUUmJka@IU@ƒmƒVkaW@UwUX@`ƒ@kLWUk@mƒkUUm@k‚UUWkUƒkWxk@@VƒK@nV@UVaƒUUJmIkVƒ@UamLUbkVmamLka™@ƒ‚kmL¯WI@wJmwƒx@akU@aUKmbkaW_nW@_U@Wm@a@wkwUKmƒk@ƒbkb›w@mKUkkU@J@bW@kVWz@bVUa›VUx@„ULkJWbXVVXƒ`@œmJUVU@@Lk@WbU@UJlnXlm„Vx@Ln@‚b@K„LX„WJUUW@kƒaUVUbmV@nnV@n@lVLƒVmLX‚mXkV±@kxÅL›šUbJWIÅJ@I‚mXalkUamKkškL±aVwKƒUU@mÞnbWJX„m„@lbmKULWUUVkaƒbnn@Vl@VVV@VƒbVbnLWLXJWxXLV@@VV"],encodeOffsets:[[109958,23806]]}},{type:"Feature",id:"4502",properties:{name:"柳州市",cp:[109.3799,24.9774],childNum:7},geometry:{type:"Polygon",coordinates:["@@ƒwU™„aV@nVaUVklmkUUmmIkƒ@w„aVƒm@™U@VKUkVUkWV@™ƒ¥@w™™KVwUalw@aUUUWWXI@mVIm@Ua@wVKUKV_UƒV@U¥VK„n„al@„Uš@VU@V„V@aVUnVVIVmUUlan@VbXwWƒX@Va@IlVVƒn@VanVVb„lJXIVJlUXL@U@KmUnÑWakU@mkƒJUI@mk™@wUmmUV@JXaWIXWmaUIƒJƒkk@W„nJ@„ƒaUak@›kkJ@kUKU_ƒ@myUóWUkm¥kUmL@KUKm@k_UmVa@ƒk@@UmU@mm_—JWIUVUŽWLUlbVUJÇVUIVwƒKUVk@mU@n@lUL@Km@@l@L™VƒzJmUU¤m@UbV²U`U@@¼Vn@x@Vš@@VnUVx@blbXIVxU@Wl@@L™aW@kxƒLXVWVk@@U@VmLVŽ„L„bUVULVV‚lnLVxkV@nWV@bnKVVk@VL„VšÈVKšVVk„Unb@lm@@LVxUlVX@Vk„ƒJ@wkIÇ@kl@blVVVšzXllLUxlV@x@„UV@nƒ‚U@UImmUIUV™¯mVk@@V@VƒamnUKkm@@VƒIUJUaUUWLk@UJUI@xV@V„VWVnxƒLUômVV„@VkVVVUnV@UVkL@VVV@bVxla@bkXVJVn„`nU@bƒb@bVL@VnJ@„l@šV„aU@@_lW@UUU@Unƒlll@XLl@@UX@°bVWVanLlknVV@VVX@VVƒnUŽVLmbXJ@nllXX@`VXƒlmaXVWk@Wkƒw—J@„VL@J‚bnU@bn@@bVKUnVJVIVVVL²a@bV@@Vl@nUVakalmš„UL@VUL@V‚a@mXl@nK@UlK„L@Vl@@nkllb@š„Vnn@‚šnV„™V°l„šVInwlKXxlU°Žn@@ƒ‚I@UnVlakUJWkUK@anUWK@_ÞJ@U"],encodeOffsets:[[112399,26500]]}},{type:"Feature",id:"4514",properties:{name:"崇左市",cp:[107.3364,22.4725],childNum:7},geometry:{type:"Polygon",coordinates:["@@@JVzšl@V@Xn@ll@VlnX@@VWLnŽUVmUULVlUV@blnUlnXVV„K‚xnLlb@lnbU@Vn°KVV„I@WXUlI°VXb‚VVbnLVan@‚x„J@_nJ„a@wVwV@@a@IU@UU@WKXwWIXKmKUa„a@U‚UUUk@@Umm„albVUXVVKnL‚a@knƒWƒXImanÝV@„V‚LUx²blKl™nLVbklWbn@JÆIXJ‚IVaœ™ÆKlw²@lUnWWnK„UUK@k@mmU@mnUVaVU„b@lVXVXIWƒƒK@Lam@@KUwnƒWkkmVIV@Xal@@KV@VUnI@›„_UWWUkam@kkm@ka@mƒk@wkJWIUU@WXkW™XkWWLUUƒ@UakLƒW™XV±VIVWUU@anUWaUK@IU@Vak@@UUKWaƒ@m@ak@@wUkla@mUaUklakwVƒ¯¯@WWUkLkKmaƒ™kLUnV`UxWX@Jkn@bmlƒakkk@ƒb@l¯bm„ƒbJ›b@VXn„bVV@„ƒbƒJUkkKWVU@mœÛVUUW@UVUJWXkVkKmUL@WW@U„Vl@XXKW„XJ@XVlmbUxnnm@UlVnV@XVm¦VJb@šmLkKÇbXblVkn@l@bWnX`V@@IVV@ŽV„V°n@@_naÆVVbUVVbUJnzlVUl‚XkV@Vlx@X„VnxƒbƒKUK@b¯VVUV™L"],encodeOffsets:[[109227,23440]]}},{type:"Feature",id:"4513",properties:{name:"来宾市",cp:[109.7095,23.8403],childNum:6},geometry:{type:"Polygon",coordinates:["@@nVlw„@VJU„„IVVUšV°lU²V@„l¤Ub@bUV@b‚@„b@bUblšVa„KnLla@UnUWmXlJXUlKV@V_U±Van@V£nV‚I„yšU@K@kn@@LVK@k@mnVl@VU„LUxVJÈUVIU‚aVkXKVVUXJ˜In`@nnV@Vl@@„UbVnl`n@VL@LnKlVn¦VlôXV‚nz„@V`VL@llIœll@Vb„b@ƒmIXƒl@„l„IVJnbWXXJWb@IU‚nVVn@xlš@nVJ„I@W„U°LUaVUUaVJVIwlKUalKnb@UnLVWU_@KVK@_šKVa„@VKU¯VLVKn@la„aUkU@maVU„J@k™@Um@XmbkyVaUIUU@KV@laVn@KXKWUkUk@ƒaW™UUVw@aXKmƒVaUUkšmIƒlUU@wUa™xUmmU™¯™U@WƒLUmVIUym@UVmUa@wmw@çm@aWLU„™JUIUamKmL@™aƒx¯¥ƒkU¥U@±„k„UVmKU_mJUbkKm„ƒLÅǙ_@WWUXUmaVUkK™„UWW@nVxkUƒxmL@KkKmbUI@KƒLkƃbUbW@UbUJUXV`UnU¦mŽVVkxVLUL@llL@b@bkKVb@bU`m@knmaL@a›@@U—WVUƒU@amK@akkk@@b@lm„VL@VUVUbƒVVXUJUU@V@XV`lLUVVV@nnLƒJVbVlzUVVbVVnUVVU„"],encodeOffsets:[[111083,24599]]}},{type:"Feature",id:"4509",properties:{name:"玉林市",cp:[110.2148,22.3792],childNum:6},geometry:{type:"Polygon",coordinates:["@@VJUXVVXlWX@V™xVnX@@`ššULWŽUXÅbWK@mULUUmJ@n¯b@l@VULVx„x‚XU`VXXJVI„V@nm`@nUŽVXn@lWVn@b@Jn@nU@Lm`@Xn@WJƒ¦U@@VnL„lV@@Xl`nIlJnkVL„w@KVK@UšaVL@bVKX™lUUKVK@I„VšL„a@U@WšLUlVL@bU@@blb@VlbUxVbXUVJ@xVL„U„lV@VU„bVLnKl„XJ@L‚b@an@VanL@`VLšKV_UWl@U_„a@WVInlVUUUVm@I@W@wVakIWm@U@ƒXwlaVbnI@ƒm»Va@aXaVLšU„»@aVa@k™KkL@KmU@WƒzUK@wU@VWUUVUUKUa@mKmbUK@_nWVaUkVaUaVUVLXKVƒVUVmVI@UkKkLm`UkW@UwWW_„UaU@WakXmK@xUXƒJkƒUUWUk@Wl—mJ@km@@aUKzmyVk„a@kkWVUU¯lmU@@w‚kkmV@Vk@mÅIƒ‚Ukƒaƒ@Ub@m@UUU`mUbWaWmb™X™XKWIXUWm@љ@y@UkIUJUUWLUWƒL@UkVUxW@kaWbKWnXxW¦n„m`XLVlUbVbUx™I@JmLUKUb@VW@@bkL@b@VlU@xkš@L@lƒxXxWXX°V@VVVbUVV@UVVbULVnVJUb²b‚aUb@VVVVInlV@VnXaVUšlI„VUb"],encodeOffsets:[[112478,22872]]}},{type:"Feature",id:"4504",properties:{name:"梧州市",cp:[110.9949,23.5052],childNum:6},geometry:{type:"Polygon",coordinates:["@@VbXblVlLXWln„wVV@VV@UnšWUXVbš‚@VWXa@kVK„UaVaVkšUlyX@Vaƒ—VmUwUaVU@UÈymI@aU°@š™nWV@VaVaw@IV@VmnLVK@kmmna@™„™VbVI@aV@XbW`U„„LUVVx„@VbUV@bl@VLXblJn¦lL„°°@n™@K@UlLnK„a°LWbnJ„¦UÒV„UllLlVnKnbWnn„V`„w‚@@Xa±™n™l@XKV_„WVkVa@kVyUa@wU£UW@UIVW‚@@a—wWaX_WKkVmUULmak@UJUI@±m»™—k@m»VyUIm™nmmwnkUmVaVIUn_mW@»Vk„@VwkmmUXa@IƒaVm—mƒ@Wm_U@mIUWóLmUk@laXmmkUK@UmKULUUmWULƒ@VakU™@Ub@bƒ¼™VUKWb@bUbn¼@„mJUakbWx@„@VXnlJUb@x@X@JUnVVUVmkUJ@XƒbV`k@VXU`™LUK@_mKUbm@@b@„U`@nlV@b„UnbVbn@@`VbUbVV¯bm@@mJXb@bVnUllVXUlbUl@LU¦VVmŽkLVb@b™l@V@XlK@V@nUJUz„°mށwmLmlXbWVU@UUUlƒIU@VVmV@@¦‚bXbWxX„WlXVWL@LUmkbU@@LVVVJUblzna@WVnš@@lƒIUVnbV@Vlƒbkbm@ULUKV°ULƒ@"],encodeOffsets:[[112973,24863]]}},{type:"Feature",id:"4511",properties:{name:"贺州市",cp:[111.3135,24.4006],childNum:4},geometry:{type:"Polygon",coordinates:["@@nL@xn@lKVkšwn@„alLlaXV@„lx„bVWV@aUa@aUk@mVUnVl„XL@JV@VxVIVƒX@„b@bl@@`ÇnXVlI@l„xUnlVVLkllV„@nmJUxnzWJ@VXLlŽšLVxnL@l„LlŽVI@V@lUnl¤Uz™Kš@„Vl@š„L‚l„Lnš‚b@VnVVU@k„a‚Knxn@VkVJ@ńUlakmWIUaVanm@_UK@UVWUa@klXam™U@Vmƒ™VIXW„@lUVknVlKVLXŽVXšW@b@VlšnnVL@KXL‚Kn@lb@UnW°@Va„X„WVb°aVa@I¯aUkUaVKVwƒaXk@a„a‚™@wkm@alanUVw@alK@Umkw@UƒaUmU@WXUaUK@UW@UaVWI@¥Xa@w@WWšVƒXwƒU@mKUXUWVU@a¯kl@akU@UULmK¯VUVW@U_m`U@@xVbUz@lUbUlƒXU`WLk@mš²šWb@ށ@ƒxU_mƒXmmamLkUkKVkUƒVу¥mIXa¯KƒbmLkK@V@Lmš¯@ƒ¯kKm¥kIWaUKk@@aVUUaƒ@UwVUƒKVƒX_WaU@@bUJUaƒš@šmbnn@lULmKUnU@@J‚xUbUbU@mX™š¯@VŽ@bnJÇz@VUVVbVxUn„˜UbW@kz™VUlUbVbƒŽUL@lWb"],encodeOffsets:[[113220,24947]]}},{type:"Feature",id:"4507",properties:{name:"钦州市",cp:[109.0283,22.0935],childNum:3},geometry:{type:"Polygon",coordinates:["@@@IlVVlnL‚@œxla„al@n„VLlx@x@bXnV@@`mXX`lbnaVL@blV@b„wnx‚I@xXJ°nK‚l„š@lbnKnblUVanKVb„@lUnJVI„VUb@V‚U@m„L@Ul@Xw„llVVXV@lVnlVn„l@XVlK„@@_VWVxX@lb„U„nV@@JlbnIlmnVV@UwVK@U@k°a@mnIVVVK@nXLÆaVWXVK™™@_W@Umšw@UXWWkUUVWUIVaƒUkJ™UVWbUmU@mkUJUU@UVab±aVaUIUmVKUaVUU@VUUaUUU@W¯XWWw„w@k@Kl™@wkV@U@alK@aX@@UmIUWUIƒ@mmkXU`U_WJUnUJmUk@@amLU@UVW@UkU@@VƒbUWVUk@@wmKkUWLUWX@JmIƒlUkkKWKkLWU@UKWa@bU@@a@_UKWƒUUUmJmw@nV_@ġğKóLmbU¼VÆ@xUXƒ@Um@wklVnUn›lkaUV@„lV²WVklWXXbWlkVkIm`UUƒLƒUU@UWƒx@XU@@lWLU@kbUbV`UXllUV@bmb@LnKVbULm‚šnVVIV`X@"],encodeOffsets:[[110881,22742]]}},{type:"Feature",id:"4508",properties:{name:"贵港市",cp:[109.9402,23.3459],childNum:3},geometry:{type:"Polygon",coordinates:["@@n@VzUJ‚nVŽ„K@XšVš°nVVnšwVb@xVV„knJl™VVUbn„WL@bUxVVXš„bl@lVXkWƒXwWaa@¥‚@nUUUV@„JVkVVV@XUWanknK‚xnƒ¯VyVI@m@UkL@W@Ušk@aUalKnUUV¥@KVkkaWVkUVkUm@aWanI@n@°aUUVaUa@_m@UamaƒV@akU@mV_@ƒa@KWIkƒmLUKƒaUVU@ƒkƒVUK@wUIWVUaVwka@Uka@aV@@aUKVk™K@X@Vƒb™KƒU@JULVLkVWšUL@aUK™b@VUL@LƒxUKmlkImJk_@WU@ƒkmK@UV@„¥XIm@@Wn_@KmVm@@I@aUmkXm@UWV@mn_@mƒUUJWIUWV_WƒwU@mUknVVmxU@@VUV@zU@UVW@ƒK@šX@VLUVƒKƒz@J@VnX@`±bUXVƒ¼™lšn@xmxÝL@‚Ubn°@XWVUxUVVnkbWVXV@Xš`ÆÈ„KnƒlLVanIV`nLVUlƒ²ƒV@V¦„l°¦„w‚b@šnKnLVbVJšIVƒXK@b‚n@ènx@xVbUnV‚"],encodeOffsets:[[112568,24255]]}},{type:"Feature",id:"4506",properties:{name:"防城港市",cp:[108.0505,21.9287],childNum:3},geometry:{type:"Polygon",coordinates:["@@XV@X°°U„lxkbVlVb@nkbVl@xl@@b@n„‚XbVL@Vl@UbV@@JVLXbmV@bVVUXUJU²šW„XlKVb„@VVXKlXšWlXXWV@VXJlI@x„l@nlbn@lln@lbXalIVK@ƒVwœUVb‚U@aXylUX@@aW@U_UJmU™nVKUamL@Kna@aVUkkVWU_ValaV@XK@kV@@W„wVXV@„V„KVVn_lJlUXkWaXWlkXU‚±kU@ƒVUlbœkVmUmlk™¯Ý™™W@mb@¦VxULm™kJUU@ma¯wƒmkX@VóJ±bUVUXÝWk™lWXXlƒxUaƒbƒIğ™Ç@U@mVUKkkm@UJm@XnWV@x"],encodeOffsets:[[110070,22174]]}},{type:"Feature",id:"4505",properties:{name:"北海市",cp:[109.314,21.6211],childNum:2},geometry:{type:"Polygon",coordinates:["@@VaVLnK@IšJVwUaVaUkWKn_mƒX¥WwXm‚LXalbU£UyV„Å@ݙwm@™°l›LÅUƒmk™mwÛaƑLÝUUm@ȣƃV_„Ó@£UƒƒUVƒ„™¼U°W̄™ÞVbXbôx@b@bmV@ǃ™UÝ@@ĢU`m@ŽnxnIVV‚VX„VL@`@bV@@aXbVL‚@XVlKXLlLVl„knJ@I‚WVXXKlVnL@xl@UVVX„a@UV@VlX@VUV@nK@bl@nVVIVmXIV`V_lWnn„@VJVXnJ"],encodeOffsets:[[112242,22444]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/gui_zhou_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5203",properties:{name:"遵义市",cp:[106.908,28.1744],childNum:14},geometry:{type:"MultiPolygon",coordinates:[["@@@UnUlJn„w‚JU°VL@bnVšU„wlJ@XƒŽXVlU@klVUJknl„UllL@bUJ@xULUlƒ„UblVkblbnw‚UXmla@„wV@VK@L@UXaVKVLXWƒUVa@U@Im@@W@£UKUakKWIXU@al@@llUnL@W@Un@@VlUV@VIUanKl@Xb@lmxVb@b°bb@nlJVVnnJ@b@L‚V@ln„@LmV@Vx@blnVK„nlJXIlw„J@҄b@nlK@Un@UL@VVVVUUUVK„l„@VUVL„J@UVUUw„@Wm@™„UV„ÈVlbUb@JšLlŽX@@x„„ƒLmŽk@@nlx@bUJUzVJ„@@LVxUV@bWxnLnVVK@_‚K²xVbV@n¥@aVI@b„@l@Va„Knb@n‚`n„mmý„W@ƒU_šwV@VlVV@Vn@n„˜@nI@Jn@°¦VaUU@™„mVVWVaUńU@aVKnƒVbVUmmU@a@kUw™m@aUUmUUJ¯lakU‚aXaWUUaVƒkk„amkmUnVlULƒVlJ@XU@UJWUUw„k@aU@WbkWƒL@U@WU@@XUKmV@aUVwUĕUJUamUUVUÑm™nIVJ@kl@XalJVn@KVLœ¥@UWIXWmU@mVUKnUWLUKUaWUUKVU@U@anUny@UlUkK@w@a@aVUƒ»UkVw@Wmk—JƒÅmUUVmwXalLXWWUnam@XkƒJ@UVU@U@W„@@U@I@Wl@Ènlw@KXLWb„lVUkalKUU„VVaV@@wnIlaUmkUƒKWU@KkUkLWaƒKUUWUn@VƒK@LnnWJUIƒVkUWVnV@V™@@XƒK@VUIUJ@IWJkX@VVJ™IƒVkK@I@UVaUWk@m„@wnUWKk@mxk@@„lV@b„xmb@x@VUmLkUƒJ@nVV@b@VkLVbU`¯I›l@™U_UW@UU@™™ƒK¯wm@™xƒL¯¥kIƒ™ƒ‚@bkbƒ@Ua@ƒm@kkW@XVbmV@ŽkV@bWbUbV@„¦ƒxXlmVk@ƒ¦™bkaWL@KUImK@wUK@VUI™b@bmK@LÅy@akXW@kbWlXblL@ŽULUbƒ`@U™kUymX¯@mšUJUUJƒL@Lm@@WX@lU„VlšXll„@l@Èk°V°Ž„X@VU@UVll@XUJVXUVm@@VXLWlnV@Xƒšk@mVULnxV@@bm‚kL@VWLUbU@UVm@ƒb@ķ¥UnmJ@UUVƒkkJUšlÔU`UIW@ƒ°kLUlUI@WVI™U@mWKkXk@ƒ‚WU@bXšW„@J@xX@l@LVl@xšLVxXX@x‚KnxVknb‚KVV@U„L„WlXU`@nUlšX@llVXšVU„KlkUKlI@anKVLXKVaUIVWV_VK@VnLlU„»VKVL„m"],["@@@KlKkUUVVX"]],
    +encodeOffsets:[[[108799,29239]],[[110532,27822]]]}},{type:"Feature",id:"5226",properties:{name:"黔东南苗族侗族自治州",cp:[108.4241,26.4166],childNum:17},geometry:{type:"MultiPolygon",coordinates:[["@@VV@XkV@bUbWJU¼Vb@Vnb@bš„@J@bƒL@LV@UVƒlUI@a™KULVb@bkJmx„šlLVxknVJk„‚xnKmnnL@bn`WIXlWLU@UxVbUVmKV„XI@JVIVJ@U„L@Wš@@UmUXUlV„UVJXImm@K„L@UVmVXV‚„LXblKlV@LXV„LlVVnkbmJ@xnXl@šbXa‚@Vana„ÒšL„m‚VnIl‚Þ¦°k@b„@@lV„nJlUnš‚VX_„@lVlK„šV„UUxVLVWVIXJšUlnnWlI@KUaUUVKn@VaVXV@na@ƒmw¯@mUkJUamI@lk@@am@@I„ƒUmVImUUw˜™@anUVaUU@LU@WaWUXWW„wV@VwnU@L@ynbl@@X@a„J@nW@@Vn@„lVLlxnI„lš@@UWKUƒnIlJXIVllIVVš¼XK@aVI„V‚@@bn@VKXLVKVVVInw„J@UWI@mX@WKnI@KmU„UVJUL@V„KW@@k„@aU@@W@InJWUXwWI@Wƒ@¯wkaVaUIl@nŽValIXWWI@UUm@anwWkXWWIUbk@UJmIUamKVUUUVVama¯VkIVVUlKnXVwX@@WVaUUVa@IlƒaVmƒkna›wk™UU@ƒU@mUVƒšUVwœl°LVbnJVU™¯la@mX@@UWKXU@aV_V@@JlkUƒ¯@V™nK@km¯k„U@ƒWUW@mmƒU@™kmlU@wkL@WƒUkL@VmLƒJ@b@V@bknUUVK@UVKUK@Uk@Wa@LUVVnUbmVk@@UU@@aƒV¯K@U@UU@WmUL@aU@WV—w@ƒ˜I„xXll@UX‚K@KXXVJna@wWaƒ£naUKV„m@UU@mUmalm@@XkVm@U@VƒLmWU@kkWxU@@bVV@VkXVlƒVƒ@UUk@@ƒmI@KUw„m@UmVƒUUwU@lwkV@IUa@mUaVIVKVa@w@U@™UJkb@n@bmJ@XmlVUxWXkJmUkUUVW™xUlU@ƒaULUšmbU@@‚WXkmƒL@xUV@nUxÇm@„XLWbnlƒnV‚nnUV˜U‚nVVz„@lbUVVlULVb@V@nUJkwm@Ux@bWbUK@UULka›JbƒU™U@U@lUK@XUJmn™J@bU@UwWa™x@zkJWnUJUUVšVV@bXn@xVb@J™L™m@X™w@`@bkb@VmXUV¯L@mW@@n@V@‚ƒL@K—IW@@aƒaUx¯@U„m@XbW@@L„V@bnVWVkKUzlV@bÆa@lnI@VV@@LnVVKUaV_VJVbnU@bn@‚‚nX@yVIVxXKVLlUVaXU°J","@@@KlKkUUVVX"],["@@UUVUkUmV@ln@VXVK@K"]],encodeOffsets:[[[110318,27214],[110532,27822]],[[112219,27394]]]}},{type:"Feature",id:"5224",properties:{name:"毕节地区",cp:[105.1611,27.0648],childNum:8},geometry:{type:"Polygon",coordinates:["@@UkVƒ@k‚W@Xn@@K„KVIVVIn™°@nWVzšl@V„_VaVK@kKWaXklaX@lW@bÆz@KnL@ašaVJ@UVL@xnLVJ@LXKlbša„¥l@nUWk„wƒ¥U@VaXa@amLkUƒKmƒ¯kƒmkIUaƒKUIWƒkKm@anw@mlwXIƒmƒUk¯@a@amUƒ`kkKWVkxmUUak_mJmw@w„mXUW¯X›_@WnI@aVwkWWýŃU@WLkU™aUbVV@lUVVnm@kUmV¯™kK™LƒwmVUUaWV™aaWw¯wƒÈ@VULUVUUƒK@nWJkI™l@Umxnbm@kbUJƒa¯bUbVxmLUV™aU@VUUWxkVVV@bUV@XWbnlUbƒbUJlbUV¯b@z„`WbXnmbƒaƒwUwVWUƒbUxmbU@Uam™@Vƒk™VaƒwVaUƒWI@mUKóz@lUlÅ@WIƒb@xXxml@XklULWKUmwUa¯KUXWJkaULmKkLWbkKUVƒImƒƒWa@kUaULƒW¯LƒK¯@kbƒL@b™x@J@bmnnlUšlzU`U@@Uƒb@„m‚n¦°bU„Vx@bkVm¼mx@mk™mVV@bkxVn„aVV@bU@mL@b²`lIVV@lXLlš„bVxn@@bl@XllIVšnbVšn°°wlbXw@mVa°lVnU@mš™VLVbn@@b„@@WVnUV@Xlxn`VznJVb@L@bV`V@šUnwšU„@WUXKV@UUlmUUlaXalLšm„bšIVbnJVIlVVaUUnWVXn‚VL‚k@ƒnWnblnlb²x„xVKVXlVXLVW„LlUVJna@wVL„¼@JVX@`@nnx@nWJU@Vx@XXKšŽUblxUš°„LVKVVlL@KnbVUnJ„IlUšƒnKl£VW„x„IlJ@nšVÞUVVnb‚VX@V_°lnK","@@@UmWUwkU@Um@@VkL@V@„„‚V„VkV@nbVa@ƒ"],encodeOffsets:[[108552,28412],[107213,27445]]}},{type:"Feature",id:"5227",properties:{name:"黔南布依族苗族自治州",cp:[107.2485,25.8398],childNum:12},geometry:{type:"Polygon",coordinates:["@@‚V@IöalK@UV@@KUaVIVVœLlaVbVWnX@‚@LnUlxl@naVLXVVaVU„J@lUUanWWI„@VlV@Xbƒb@V„n@VmVVbk@kU@V›V@X„J@zn`ULW@kK@_WVUK@LUb@Jlxn@nnWlU@@b„x@XVVU@UbVb‚@n`VI@VVLUlUIUV@KmL@VV@XIV@@lVLVmXV„@WLXLW@U`šnkb@Vl@UL@VVV„L„llX@`lIXb„J˜IXW„L‚aVL@ŽXXW‚Ģ™b@bmK@L@°@Vnxmxšn„K@xVn@VkL@V™Lƒakbl`VnnxVnUlššV@@VVXV`@šœk°JV_UalK@U@aUU@m„IlVnK‚V@U@wnaƒw@akU@ƒl@nwl@XLmV@xnƒl@VXUb@V@JlL„UšJUI@UlWUƒnLVUUaVwV@XKWkXJm_@amKnmmLwlƒUIlmUwkKƒ™nwlI@aUaVKšL@bVJ„kVUU@@K„K@a@I™ƒ@ama@UUaV»XIVa@alU@WUU¯IWVUbkVUKWLUwUJ@zmWm@@amVUaUIU`VbULmU@KU@@UmJ@kÅb@akUVylLXUmU@aƒU@KX@Wan@Vƒ°@Vw„b@bX@˜J@L„K@@U@mX@@n°KVUnW@Ula@a@_šx@WšnšK@IUa@wWm@aUUU™VVVIXmlI@yšwXbVxV@@ašInmVI@WVL@k@VšV„V‚aœIlbVK@VVLXa@aVwn@lxVI@m@UUaVKUkVUkaƒ@UymUV—VUmmU„mmkXaWK@ƒÈnVw@mVU@w„KlnXW@V@naV™VKUk@KVIUWƒ@mk@KXU@Um@@lVƒk@UVJna@UWaƒL@a@ƒXa@kmmVUUk@mkkƒamJ—ImJUUmIm±aUUkambkamVUU@VlbUbVVƒxX„WVUU@VUakU@UmUV‚U@mnUVVnUbVJ@b—UW¥kLVamVkUaWJU_UVWKk@@nl„UVVJUXm@Vm@UnVlmbnmJUbULU@@UUKWVIWxnJVb@xUL@bUJWIkxƒbkb@xVJƒbmU@kW±LkKUkVa@a¯am¥ULkalÑlKXUWƒXƒaVakImVƒ@ka@UUƒJ¯aƒX™mmb—KWU@wUUƒaUa™KmU@UXlWb—¼WLUKUb°„UlVbkbVL@VƒšƒJ@nVlUbUXmJ@VX@lbUbU@@bWb@VnLVJ@bVVUz„ŽVL@lnL@b™VVVULmKUk™Jkbm@ƒxVb@V—kƒKVnnV@b@ŽWXU‚„nV„l‚VVXVJUXlVXbWV@VU@Ubk@@KWbUUmL@JnXV°XJ@_‚`UbkXVVlÆkbƒ@VLXVV@‚V@k„KXX@`V@@n"],encodeOffsets:[[108912,26905]]}},{type:"Feature",id:"5222",properties:{name:"铜仁地区",cp:[108.6218,28.0096],childNum:10},geometry:{type:"Polygon",coordinates:["@@°a@aÈbVUlU@aVKnVV„VUlyX¹lWVa@U™VƒnUVU@m™@mUl@„mÞw„@‚xnIVbna@KVI‚J@kwV¥ƒUXÇVkVW@kkKWU@aXUWmnIVa°VXbmL@VVbnVVVUb™VbšJVbVKXkVKVanU@aWnWUWa@U™nk@mVIVK@wXxlLXbVJVlKœbl@VI@mšaXalVV„VbX@@ašalnkx@b@V‚b@Vnx@bVVUXn¤WXn@Vl@Vlzn@š`@I@KUU@ƒV£namVkXa@aVK‚nnU@anVlKƒa@UUU@amk@»kƒU¯@aš„VWnkWmkImU@akaVm@»VUV@UKnkW¯XWlkUKnIWaš@nmlIXmWUnwUwWm@wULmaUJkIUaƒaWa—klwkwmJmU@bkJ@XUJ¯W@XbWbUKUkWJUUVKnn@UmmXUWa@mU@@UI@WmXVykwm@kaULWwU@¯ƒlKUUVU@mU@UkmaUbmV@b—š‚xVnVUJVnƒ„@Jn@@bl@@knJVblInV°@nx@„mbU@UWUbm@ULVVVb@LkJmXkm™VWIUJUXUKVwƒV™UƒŽkLkUƒ@W`Um™kVmIUƒ@kƒ@@a¯lÝ¥kmJUƒn™KƒÑmbUb@Wb™ak@mWU@UbƒUVVkLlbUVƒkXaWK@LkxÇmk@@X@J@Vƒ@@X@VUV@V„IWln@mbXVWXkKWbnxVUnV„ƘInl@XUxVl„¼UV@b@b@xlLkV@VmzmV@b@VUVVLXVVbVLXKmVVLU‚@nnVWXXJ@V›¦UK@LUmkIWbk@@lUImJnšVÒVUnVVbVIVĖUxV‚@bnUVL@WV@@X@V„KlXXaV@@bƒlVxXVVIV@@WkI„UVKUkVmlnnŽƒbllU„VbXVWbblVkb°ŽVInVVV@bšnVx@l@bnVVnUŽUam„UL@bƒVVÆUbUXU‚ƒn@šVVUb"],encodeOffsets:[[110667,29785]]}},{type:"Feature",id:"5223",properties:{name:"黔西南布依族苗族自治州",cp:[105.5347,25.3949],childNum:8},geometry:{type:"Polygon",coordinates:["@@VL@Vl@@IXW@kVUVbnW@XlKVVnU„VlL@b„aVbƒb@xX‚°ÔUxV@kbm@VxkxWJœ„V¦ƒŽ@ÈnšVKšxWXJmV@n„Ò@xVbn@@blLk`VX@bššla²JVUlnn@U±lw@wnw@mlwVIX@@m@klKnk‚a„KnwmmXkƍVm„Uš¥l@nb°n@„aVwVmVIVnI@a„¯@mšU°ƒl@@VnI@JV@UV@b@IUbVJmXöºƒzllUbVa@aXUl@„U@llLnKVaUa@UmK@UšwV„bnKV@VwVK@UXƒV@Vbn@‚w@U„WnX‚@„a@m„I„™@UUKlaUaVk¯ƒVaVLXK˜»XaWk¯mƒkğwmW@mIƒVkwƒJUIšÇVwU™UkVKkƒm@UkmU@WÅwm£Vƒ„m¤¯IkJWa™_™lUbmJzÝJk„ƒUÇVU„ƒ‚@bU„Ýn™m¯LUb@`mL@VkL@VƒUmmk@UU±Umka@kUƒ@ķymUkk@mmkÝmUaUakImV@V@VÅLƒ¦ƒJUXmJXšWb@n°Æœx‚¼nV@LlbUŽUbmL¯@ÞbV¤nbVx@bUVlblIœ™@KVVUnVJUn@VlLUlmLUUUxmK@I@@VW@@bU@UJmUkLVVUl@b@V"],encodeOffsets:[[107157,25965]]}},{type:"Feature",id:"5202",properties:{name:"六盘水市",cp:[104.7546,26.0925],childNum:5},geometry:{type:"MultiPolygon",coordinates:[["@@ôyVL@nXJV„Ub„x‚bUŽlšU„@ŽšnŽVbV@naVw„a‚VUXVx„x„bnaWmXaƒ_@y°aVUkaVI„aVamkXa@WVU@aUUlUXwVV@UVšbVUnKUwVa°a„bVIlan@manw@VšklJXI@m„LVVVUVK@U„ǃk@KUa@UkaVU@UVWV_XWVXVWlLXKlLXaÆKšwVL@akKm@Uwƒ@@XUVk@VUI@wWK@aUV™I@UkK@ƒmL™Wƒ@kImJƒUÅVmkXUW@UJkx@nmx@xkxV²m@kmUV±Ikb™™@aUWl_kK@am@Ua@wƒÑ@mnUWIX™wULm™@DŽU¥›ƒXIlwUwn@laU@Vw¯ÓW@w„aUaƒb@akKƒUmVUUkL@WmXUaUV@lWX@Jk@@UUKULmLUJmzkKmVX°VšUnWKUL™ƒƒL@mU@UnVJ@b@„UV@Xƒ`m_@l@@bmbXJmnnš@°˜wnn@ŽVLX@V‚@nVl@nk@@b‚l@nn°WlXzW`XXVKnUlxVbUb@‚V„Xb@Ž‚VxÈbVlnbmn@ŽkVUL@„ƒŽmLUVVL"],["@@@ƒ@UmWUwkU@Um@@VkL@V@„„‚@„V@VkV@nbVa"]],encodeOffsets:[[[107089,27181]],[[107213,27479]]]}},{type:"Feature",id:"5204",properties:{name:"安顺市",cp:[105.9082,25.9882],childNum:6},geometry:{type:"Polygon",coordinates:["@@lL@bUK™xÅLWbkKWLkKUXUWWXU`UX@VUVlb@VVb@L„l°xXx‚bšbXUVb‚VnU„xšKlL°šnUlVn@UmVU@kUUVašblVXKV@ƄXþlXUxnU@mVK@_@ml@UU„@šblU@KnLVyUw„@@UmkšWVw@UVK@VXzVK@n„VVUUW@kVJnlaš@nKW™kaWL@U—™õb@JU@mU@@_WWƒL@lUU@WUUK„@lakÅUUlWVa_@`WIU¯mW@InKVVXa@Ll@VaV@@UXUWakUVWUIUW‚UkUƒƒmVXW@@amUUm„L˜l@UUa„wn@lašIVlnLVKUUšU@amK@kUKƒVyUU@aUImK@UXa@aV@VakaW@@UnIVWVaUkƒb@mWƒX@Vxm@UaU@W„@VULUxU@mLƒaUŽ™x@VnL@VVbUbmLkK@kƒVk@WV@bUbVakk„yõ¹nWUIVa@J@aVUU@@ImJ@Uk@¯„™V@nƒ°@bmJUUJUnUxƒbm@¯Žmak@™¦ƒVUnŎWlnnmxƒLbmlkL@l@nWVnlÆU„VnIlJ„@šXnK@„lL@VšJVU@bXL@xVJUl@VU@W„@Vxn@"],encodeOffsets:[[108237,26792]]}},{type:"Feature",id:"5201",properties:{name:"贵阳市",cp:[106.6992,26.7682],childNum:5},geometry:{type:"Polygon",coordinates:["@@nŽlLX„VJ„LVblJ„n°ln„„LlVnKlU@nUUa@WlX@l„n@‚Vb„@la@a„„šlJ°¦„Kšwn@°x„LVkUmmwUmk_la„bšK@UlK@UUm@wƒL™mnwmw@U@¯@KnL@aša‚ġXWW@UKbƒKWX—JƒIWakJ@_kWƒkƒKUU@UVKk@@Ula™mV_X@WKXKƒ@WUUnUK@kU@WJU@@UnK@LVUVJVkUK@UUJm_@UaVaV@UU@Wƒw@aV@Xkmmm@kw@IVa@KVLXU@`lLX@VKm_@yƒI@WœU@UlVl@UanU@Uƒm@U„aWaU@Ukƒ@XJmXVbkV@ŽƒIUVUbWUUKmbk@kwmV@K@mWUXUakb›KUUUJVb@LU@@VkL˜š@VXKlbXšmL™@kbm‚UI@lVXUVƒU@mULWy@UUL@VUx™Xnl@Vƒ@VxUzmK@LkV™aƒ@VVk@@n@`UL@nmV@bmJ@Xœ`WX°WVƒn@xnxnIl`VbnVlwXUlLl‚„_nV@b@bl°„V„nWJkx@nmx@b"],encodeOffsets:[[108945,27760]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hai_nan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"469003",properties:{name:"儋州市",cp:[109.3291,19.5653],childNum:1},geometry:{type:"Polygon",coordinates:["@@஼jpnr’``ŽpRVHʘ̤žZt^JÖA˜[†CâlTébQhRPOhMBcRSQiROE[FYdGNOEIH]MgEAMLLIAG_WMCSL@ED]PCLYC[ZIHgjSxJTMbHNEFCMEE_HSDFHSLECRNSFDRICHNADGPI\\RZGIJTIAHLDQOHG`GTNCOIC@eIGDWHIS[kiE[FMbECZS@KKS[FDWsCeRuU_DUQNOE[LKGUBM¨EDQP@HWHGDImXƒCog_~‹I_fGDG|QDUWKBC\\ore|}[KLsISBHVXHCN`lNdQLOnFJSXcUEJMCKSHOUMDIm_‹DI`kNDIGEYFM\\YPEEIPMSGLIKOVAU_EBGQ@CIk`WGGDUM_XcIOLCJphHT_NCISG_R@V]\\OjSGAQSAKF]@q^mGFKSW^cQUC[]T}SGD@^_ˆaRUTO@OHATŸ”"],encodeOffsets:[[111506,20018]]}},{type:"Feature",id:"469005",properties:{name:"文昌市",cp:[110.8905,19.7823],childNum:1},geometry:{type:"Polygon",coordinates:["@@€hIJ¤Ī¯LQDaFßL[VQìw€G‚F~Z^Ab[€¹ZYöpFº lN®D´INQQk]U‘[GSU©S_­c‹}aoSiA£cŁ¡©EiQeU­qWoESKSSOmwŸćõWkàmJMAAMMCWHGoM]gA[FGZLZCTURFNBncVOXCdGB@TSbk\\gDOKMNKWQHIvXDJ\\VDTXPERHJMFNj@OwX@LOTGzL^GHN^@RPHPE^KTDhhtBjZL[Pg@MNGLEdHV[HbRb@JHEV_NKLBRTPZhERHJcH^HDRlZJOPGdDJPOpXTETaV[GOZXTARQTRLBLWDa^QAF`ENUPBP…\\Eji`yºEvåà"],encodeOffsets:[[113115,20665]]}},{type:"Feature",id:"469033",properties:{name:"乐东黎族自治县",cp:[109.0283,18.6301],childNum:1},geometry:{type:"Polygon",coordinates:["@@ªVLP`@PEdNRAHOPEAKHEVL`GZBJfvdTAXNNTZJFPrHHNpKTD\\ILHbEVd^J‚OHLh@NNBnHP`\\xH@NBRLJTlŽNv_^CTLd@bNDVFbxdFV€UPBTKOGEOUO@OEBXQP[H_EI\\EbeYa@UO_J‹MEJ_IEDKJUGMDcNUd_FMTEJSGoZ]EIYGO[YW‘gEQ]a@WHEDQKUSDUGAbYBUpSCYNiWqOSQEoF[UcQISWWNMSDe_cLQ_UBiKQOOASQAWgS­ā]ZaŽSPÝZ]XMXSŒ[^oVËNgNKlE RôEø"],encodeOffsets:[[111263,19164]]}},{type:"Feature",id:"4602",properties:{name:"三亚市",cp:[109.3716,18.3698],childNum:1},geometry:{type:"Polygon",coordinates:["@@®ĂhTBXTRPBRPjLVAR`dKf`TC‚NXMTXRJVdE\\FpTRrPjXZMTDVoZABaVHTCLVCRGF@X^bFR’hZXP\\ZHHMA[^wBWXJlW¤EJ[bCTOF‹WWMm@ILMGWQ@DQ^QNWFSHEbF`OXNbO„VNKTEPDTLTCCVTREfvfEHNbRAENH^RJXCFHNFRpVGHWISDOTMVCZeGamaLoLÛD¹¹ėgsia{OųE—Tt‰lɂwr}jŸR±E{L}j]HąKÃT[P"],encodeOffsets:[[111547,18737]]}},{type:"Feature",id:"469036",properties:{name:"琼中黎族苗族自治县",cp:[109.8413,19.0736],childNum:1},geometry:{type:"Polygon",coordinates:["@@bRFnHNbHŒgN@NPEnbXP@bND`NT\\@\\QZb@`@J]V@XhžDpW„nCJGHGXO@CR§FANHVKLF\\MPVR`CvVfQtDPKpGHG@S`WJP~^dSTHWX\\RHTFACQTIAUPOU@MG__IaYSFQK‘NSbORHXCZeTFJg„B`YBMNMFi~IVDV[tGJWXGDQRGF]ˆJrALgESLSAYDGIaFeXQLS\\MKSLSQYJY}eKO[EHiGSaK[Yw[bmdURgEK^_kcSGEOHKIAS]aFSU@Y]IWFUTYlkP_CUOUEkmYbSQK@EMWUuAU\\M@EpK^_ZMDQ^OXwC_ZODBrERURGVVZ\\DTXcFWNIAWJWAYUUFYEWLQQaCIZeDM`cLKRGpanJZQd"],encodeOffsets:[[112153,19488]]}},{type:"Feature",id:"469007",properties:{name:"东方市",cp:[108.8498,19.0414],childNum:1},geometry:{type:"Polygon",coordinates:["@@ºŸx‹JYZQ”IŠYXLl@dR\\WZEn]bA\\S~F`KXaDeTiNO^EEKWEDQXITBXaWaDQMUJOIaTWf@NJV@dSxGZ‰Fu_@WMKAUˆ}AQ@MwG_[GOAmMMg@GKP]IUcaFKG[JSCoLGMqGEOYIMSWMSBucIeYA_HUKGFBLOFGPQBcMOF_@KO©UAtERadwZQ\\@ÊJÒgòUĪRlR°KĮVŽLJ"],encodeOffsets:[[111208,19833]]}},{type:"Feature",id:"4601",properties:{name:"海口市",cp:[110.3893,19.8516],childNum:1},geometry:{type:"Polygon",coordinates:["@@ńZƂt̬æßFuz¹j_Fi†[AOVOFME_RBb]XCAKQKRSBQWSPY\\HbUFSWSPoIOcCOHIPkYCQ]GdGGIFQYgSOAQLK`MFUIGa@aQ\\GGUFcHKNMh@\\OYKAigsCgLSF]GOQO]@GM]HyKSHKPW@Pxi@EMINYREXWRQ@MQcFGWIAwXGRH\\yDI`KJIdOCGRNPNtd\\UTMbQYi@]JeYOWaL[EcICMUJqWGDNZEXGJWFEXNbZRELFV]XQbAZFrYVUBCLNFCHmJaMIDDHXHEhQNXZ_TARFHVB@DTQIRR@YHAJVnAbKFUEMLd\\c^ÍÞ"],encodeOffsets:[[112711,20572]]}},{type:"Feature",id:"469006",properties:{name:"万宁市",cp:[110.3137,18.8388],childNum:1},geometry:{type:"Polygon",coordinates:["@@^J@ZTVbET^JBGLFPTHld]`FLQhcVanx\\\\ZbLHTGj\\FLP~fIZRZPVTQFSVAFJE^NDLEE[~LjsxVTG\\NZZNGlLRRGLJTV@hPZANN^@T\\NEPPbDZXO`d^HSvcJDIV\\XZAJUFCLNP@PQ¤@[ïKLÑIÏ]ÇE±I{uƒ­YśUćFcYUmsVeBSVgB[RO@aYYPO^]@UVaNeDShMLG\\EfFVE\\F`"],encodeOffsets:[[112657,19182]]}},{type:"Feature",id:"469027",properties:{name:"澄迈县",cp:[109.9937,19.7314],childNum:1},geometry:{type:"Polygon",coordinates:["@@T\\GJCXJH@fJDDPNCNJENN^NLHBNSx@DDYbBLLDRbjZTj@`XXTlG^Xr@PJLW\\WLTlWR@HDJTD@X_PO@STMDNTMVV@NLDM`M\\XM\\JNBH[PYZ‡úYzŸ`Ċ\\ÎÝd]c[NKVFLEBaUmBIZGQ@JQSR@CUAEGBQ`SWYRMFgWGCGJCbNnIDGMEDKVAZUEqBYRa^WEUFKYQMaFWXEHIFWMYHCrXVIIiaK@aMCUYNSIISTwXALKH@XWXIEIJQCG[IEQDE_XSBaa[AIPW@]RS[FWS[CD]PEBYNGFSaSyJG]@ugEUDQlGHiBKHUIoNSKqHFaPMICK]UUHIPDJMuCA[SCPIDIOILGAEmU[POPBVSJDREBGS[QXWSGcT}]IO_X@TGHoHOLCX\\ELT@LYTD‚aFENF\\lj"],encodeOffsets:[[112385,19987]]}},{type:"Feature",id:"469030",properties:{name:"白沙黎族自治县",cp:[109.3703,19.211],childNum:1},geometry:{type:"Polygon",coordinates:["@@D\\RV]dTXELnHr]^@LETBBRTHPi^[@U`QTHDJ`MGSogDIPKdJ`WVNHCXHl_DJR@AH`FBVPUJLHKNTJOFFZON[ZEHFCJlMJ_ŒCn`CJVNGPLTNDFIdVTWEIPmRKMc_kDMWGGUTAtJLK~\\f{pqD[LAVXRCH{HC`eŒJ`}@W^U@I@_Ya[R[@MSC_aMO@aWFmMOM@‹haGGMEmaQ[@MESHaIQJQ……MckBIw[AOSKKAMPSDSLOAV_@@`KJRbKRDfMdHZERgAWVsDMTUHqOUr@VQXTT@Tƒfg‚L^NH\\@heTCZaESNObHPƒHeZF\\X^ElM^F^"],encodeOffsets:[[111665,19890]]}},{type:"Feature",id:"469002",properties:{name:"琼海市",cp:[110.4208,19.224],childNum:1},geometry:{type:"Polygon",coordinates:["@@TP\\pATHTGlZDJGAQjE\\Rb@jVBDCN`JZ[NCNHNXbULPrP\\KNbMTLjJJRFP`“pNLZz^FLRHjVPZ@hxVKbHBHMNNJFRlLzGPnNHhIrHHADcPWdUAmEMVQDSKYHY\\EhBN^HpXGNDBNNBnIß‹Å_g{³So]ã@ORO@KMEDIVYB[WJUICudGTc]P_YWaCOOMFS[]@MMYBgOU@ISHKQQkKMHYY[MSHwUit}KF\\KFMCF]EIUBETSROUKTLT[NKTWREfJbCHBZKTFTKh"],encodeOffsets:[[112763,19595]]}},{type:"Feature",id:"469031",properties:{name:"昌江黎族自治县",cp:[109.0407,19.2137],childNum:1},geometry:{type:"Polygon",coordinates:["@@`ZĤd–`òüˆ˜ “BSPGP@VSbQ`‡@]HC~T^SE]N]FkW]E[fY„GGOPaTMbFDYfS@g[MGK]h„e@SSSRW@UVqrPVGNStCXUhBFQGYNcCeLQQaLI@_`@EUwcEaCUaMc@SK]Du`MSkKI‡~BVNL@X`‚EvYŠwHcTU@MIe@SXJbIPNVCRXbWbSAWJCRXFFL]FMPSjCfWb_L}E[TaBm^YF[XcQk@WK‰Z“JYRIZwŒ¹ "],encodeOffsets:[[111208,19833]]}},{type:"Feature",id:"469028",properties:{name:"临高县",cp:[109.6957,19.8063],childNum:1},geometry:{type:"Polygon",coordinates:["@@jD`hNd\\^dZädĒH´Op@ˆùZY\\OAGIMN[[W_NCNMKU@NUMSNCTSP@`O@WSCCI@GXQSkXKX[IK@OWqH]SkWW@_SiiYQaKCAKZaCCw@MTGAMKM]FMMIMDSM_HGHRPKCBGSJJIYH[QOJCHMBDGQJECMTDQKFGTCEGTF`NFEDMFaGSNwIiTGhYJD\\KZODC^@FTKND`XBHKJNKFBNhG^FJMPcHEZF\\QPRjQTAdgNOPgQaRSê"],encodeOffsets:[[112122,20431]]}},{type:"Feature",id:"469034",properties:{name:"陵水黎族自治县",cp:[109.9924,18.5415],childNum:1},geometry:{type:"Polygon",coordinates:["@@R]NC`YL]FoN@V[vBXVFNL@TRZalnVFVP`DlOZkVSXEE_F[EUFeH[NKTgfCbMVU^@P]ZObZP@\\QhATUfAtUasñiāEoI]eYǯ@aKmaeƒWuCºKÜKpnbHbYfUDSNCPJTRAHJTDJSfDNLHXC``VBNGTYCQDIXMDSP@xLNEFRNXBIpVNLXah@RgF@`qOML@LJNSPLbaHAh@Jdj"],encodeOffsets:[[112409,19261]]}},{type:"Feature",id:"469026",properties:{name:"屯昌县",cp:[110.0377,19.362],childNum:1},geometry:{type:"Polygon",coordinates:["@@\\OnVBFKHPJCJOJTDB\\vDINOCGJVVL^JDONEbrGTLpMVJLGjAHGRkVChF@vH^zIbTETMHAZOFC^\\DXT\\EffAP\\PdAV@UIYfS|S@YPICMeM@sC[_A]VQEwyHSMuNcAUlQJMVGMS@mVBZPFO\\CSFQK[LqDMACiUa@[QiFBRIHYCHkGSBS[oSOqB‡IE^QHCRWHIXsHU\\UC}JEjMNAN_ZƒAIhSEYfWDQGaPMTL’ERZTJb``NHV@"],encodeOffsets:[[112513,19852]]}},{type:"Feature",id:"469025",properties:{name:"定安县",cp:[110.3384,19.4698],childNum:1},geometry:{type:"Polygon",coordinates:["@@JjDNdJ\\FbKPXfZ^Ij@RZNaVSc[MsMOHQPDJcLIJ_zCG[HQxWJBHXdENRR@XQFWZQQGOFSWUCI[WCJuRGLXNMPLhCl[Ta@SqGgJMGOmyHkKEQMINMAGaGULgwY@UOGiKQ]EYyMK”oO_QEIIKiNSMa[LqOKOaVMWMGMDY\\_IKrL\\ERT[DEPYOUA@nNTUHINkRBVMdNvGTxzRF^U`BD\\@tfNDNOJ@Z{TeTJZ@VU€cB[OBOeeQT@^OXBJb\\AbWTF`RCJFH\\RDJIJFXW@WLGBKxWTSJJMTVZND@bbL"],encodeOffsets:[[112903,20139]]}},{type:"Feature",id:"469035",properties:{name:"保亭黎族苗族自治县",cp:[109.6284,18.6108],childNum:1},geometry:{type:"Polygon",coordinates:["@@FJp@fxpQ\\ApN\\GNPNBM`HLMrXLXj\\PEHnI@WUCEM\\GTc\\GZYHTPBHRCPTd€H\\K\\@HXi–BJILJJAVNTOZJNtFPC`YxDPWci@IBgbGKaTOIM@KNKrP@_hE@QbgKWUMJoWAQMFEKM@wTONCJWRCZDHSAM_UD_GWMKeCITSCGIQBGXUHQoMEEGWDQIG]FMQBMaFGueFeSQDUSDSKOCSFMLƒUaPWM_PaEGFETMX]RCRR@HXKN@JNnXXEŒSPaDI\\£FkXWIAX]xB\\GN"],encodeOffsets:[[112031,19071]]}},{type:"Feature",id:"469001",properties:{name:"五指山市",cp:[109.5282,18.8299],childNum:1},geometry:{type:"Polygon",coordinates:["@@TCNOLBTLBPx\\AJdl†NR†RIbJTGNF\\@RcIYbmHoLQdKN_fCJYbDRRXKZFVEZVXBXIJBXMdESW[CUYHUVQFQAqsEIMPYMSBUIIJKAIj•GW[@[LGScDOGQOAGSYZ[HSd[HFNVD@XmJFG[OWiWKNqGKN_MAMO[HoM[BoRewo@Y^HpITSFENc`MVCdHNIVCLJFI`NFIŒP`@VZbaf[FFJG`O\\WRFA@PVPFPPH"],encodeOffsets:[[111973,19401]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hei_long_jiang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"2311",properties:{name:"黑河市",cp:[127.1448,49.2957],childNum:6},geometry:{type:"Polygon",coordinates:["@@VÈÞ@Žkx˜nXްVÈa°V@kôw„b‚š„JVškXlVUx„„@ŽlL@xkVV°ƒ„VbxlVUnVxk@ƒ„ƒKkŽVb„Il„@°kVl„@„™lÆnkll@@V„VXƒŽš@V„²bUlƒVlV„U„VÇn@nkJšŽlkVbœ@›x²V@n°VUnlKU„n`@n°bWLnVUblVUVVbknV`°kkŽl@@V°@nz„J@XšxlWXb°n@bƒĠlbXb™bVbƒJ@Všb„a@„„@lbUbšVmnœ@lšVmnIW‚œ@WbÞ@„n@x°@š„ĢaƐéϚnœ„‚lȝĠŻÈwm@ôçU™mm£Xy°UV™›@wÈ£Ǫ¯kõÝçUњ™Uķ‚ƒĢkVфÆšÞU°nŎ¥ČUĊx°m°¦żVƐœx°ƒÇ£@y„UônރÆ@Èĉ°Kô¦šW„kWU—bÇ»@™ÈĕWÇÈ£ŤU@›n£ÆUUKVamanwŃmÝJ¯k@JƒIkaVaUUÇbkaÆÑkWmÝUۙ™Ý@™ƒwnU±ƒ@kkV¯KUkƒJƒ¼U¦ƒšÅ@ówķaķůV¥Uaó@Åwmƒƒ_kVƒwĉ‚ĉmmn_V»™a@U™ƒVwķóƒ‚U¦LǫéóXÇmōLǓÇķxÝkƒƒĉ™kmakbUͰ@W¼„@bƒšÈÆ@Ė™L„l@„°J¯„mkl¯L݃±L—amJ@¼ƒ„™VƧUó„™UX˜ċb¯ńVbkÆÝI@llx„k°V²šV@Uxގ˜L@b„@b™`ƒšÇzkókݤ@ğ¯Wƒ™LĉǙLmmnċVkbUaƒL@ޝ„‚bU°ğL݂Ý@"],encodeOffsets:[[127744,50102]]}},{type:"Feature",id:"2327",properties:{name:"大兴安岭地区",cp:[124.1016,52.2345],childNum:3},geometry:{type:"Polygon",coordinates:["@@k›ƒϙmƏêġb™ƒ¯@@wƒmÝ@XV@IlŽl@bUxl¯VlV™bV@ULVlUV™_kx™VVV™ÈÝJ@„¯šU„™lm¯x@xóÒĉ¼m„¯Wƒxţ@Uz¯ƒWwnUwťƒ@knƒWƒ£óVƒUUwğyó¦WI—Vmm™I@±kwÇ@@bƒ@ĉ¼ó@¯wó@¯aó¼›KՃaUwmWUwÅI@aƒKó@Ua™LƒaƒVÅwō¼UUÝl±I—¤VxÇx@zkJmnn‚mbnz™xlŽƒl¯ČkJl™°@„kb„Žmx@x™@kêmVnŽWxôXšxU°„bWLóJnÇWĵ„V¦™ŽƒUUb™b™ÆġK™šk¯™VU±aXmċÑUwĉKġ„k„™ŽVxk„ÇKkbƒIƒ‚ÛXWl¯bƒŽ™X¯K™bĊš„„ÞVƚnŽĸ²lxUްn°òÈb‚¦—xVbƒŽƒ@¯„Vx@¯VķÞČlĊ°KĸŽȘI°¤ČIôŽò»ƨnȰKǬ¦ôWŎÈƨwlƒnKVXmbX`lbšwkVW‚XXŽ„L°a„ƾaĊ£nƒ°@°¥ŎzÞ¥‚»œalwôkƒJ„a@ĶK„£„bU°ĊxźVÈUĠ¥ƨ™VI@XU°x°Ln¥šw°UmwXm݁V¥Ģް@nU@mÆ£š¯lKœšÜw@aÅU‚¥UaÝIkmV²‚nn@Ķ»@Uk¥VKÞ@ÞÛ@ƒkVmĢa@_ƒJómƒǖ¯Æw—óÇa@alƒUwšwĢřšk@wÆWXUWXƒWa™m@_ƒ»ÇéXaĸwVa@ÝKkUWkX‚kšKXxƒn@lĊV@¯m¯nřÆwš¥"],encodeOffsets:[[130084,52206]]}},{type:"Feature",id:"2301",properties:{name:"哈尔滨市",cp:[127.9688,45.368],childNum:11},geometry:{type:"Polygon",coordinates:["@@°`„_šJlUšŽ@„„@V¦°JUšŽnLôlnŤ@@šÈaUÒVbkbl¤ƒzk°ÇVÛô°IlVUVôU„xÆU„Ž@bźĀ„º@¦šb@l²‚UVlœ@°ÒĠxšnXxÆVô¼Þ@Üx²KލlƒVѰUȰôlwô@²ƒĸ°„lanV@„šVŎUll@bÈnÜm„wĢ@la@ÝÞb°UXb˜lŎ²ÆškšV‚I@ŽnJnĠްknƒÜbĢwna@a˜kÞKƒĀ„a‚™œ‚‚IVbU¥wĠwkô˜xnLƒċVçkaUƒ±IUmnġW„°WôĉšalƒÞÅĵ¯@W¹XÝaƒb¯a±X¯ºLƒaVƒmkLóƒƒbkaƒVUKVkkKV_@aÝykk±L@ƒÅU@yV_™aU¥ówÇx™@UkVƒn@lƒkÅlwšWVwUkĉmkklW@šašbVwnWWƒ—wWL™™@Ušƒ™UƒÇLšÇmƒ„@wƒJĉƒL¥@ƒÝ_@a¯y„UWw¯ƒ¯Uġx¯aÝXVmaU£ó±›¯nwƒa¯óÅVƒXman™„Uƒ›lUXkWa@mkI„›ğaƒm™IklÇU™„kĊƒƒzkKƒš„lU„ōĬlš™„@ŽnX°@llUxʲmKĉVWwk@UbUK@bmVmI—ƒVmwaWxXlWȁšmºšÞÆbUxV@ĵńWÆĉLkWUbƒaWzkbĉ`U„±LklōwUVÝ£™UW`Uwk@mk¯VkaõVX@WbL™K@XƧºWzxƒK@lmX@bkVVÆk¼Vbk@Vn"],encodeOffsets:[[128712,46604]]}},{type:"Feature",id:"2302",properties:{name:"齐齐哈尔市",cp:[124.541,47.5818],childNum:11},geometry:{type:"Polygon",coordinates:["@@Þ@ށĠKV¯a°ƒ@„KVblaČU‚mnnšKĊȚKX„°ŽĠ@Þ£ôllÈy„™š_@a‚ƒ@a—KݍVwU@±™¯Uƒlkw@kÞJlÅUa°ŃČaW—šVôƒƨVšU„ƒ@»nI˜b²Kބ°Klkn°ƒ¯I@ƒƒkšK@ĕÇń™@aƒX»¯@VĵlaÿVamI@aÅÝउýƒĊȗJƒôȁÅkmƑۃ@kxġ@@l™aVk¯»ƒīŹaƒkƒ¥Å¯™JUaWU@@w™aƒ»„KUkÆkUm„UmwÛ±±UUbUŽUXƒwWwÆÝk™lkUanaWwnKl™kal¯ka™ƽa›kÅx™a¯@™amb¯V™lÇwÛĀ™V@x™šmêVƜVV‚aôV„wÈx@šˌx„¦VÞ¯VšlmX@‚ƒL@¯Ua¯LmV@„„°X„ċK™V™ƒ@UƒÈ@‚¥@w—ƒġIU™km¥Źwƒ¦¯lmn@°kxVV@¦óam„n¦l@nx™lĉVóšmx™n™ÒĉĀĊ¼„þ„šǔêÞ°ˌĠÞÒ°ĀɲĀƨźˤȤƨĊ°w@£nymwnkUUV¥ôÑVmkÆmUUVa™mVIkmô„lxkXÞþƒbl„ƒl@kV„ƆƒV„xV@š¼VÒ@šŽUŽšnnނJ"],encodeOffsets:[[127744,50102]]}},{type:"Feature",id:"2310",properties:{name:"牡丹江市",cp:[129.7815,44.7089],childNum:7},geometry:{type:"Polygon",coordinates:["@@U`lLUlVL„Ulb„aô„lKnŽU„„b‚K°¹²W°b„aÞb˜knyUlUkamř²L@m°@lšmš²n`ôÅlK„x„ÜKnxV@„l@œƒ›ÅXyW_k@™wm™ŹĕmƒX™»‚ƒÛ™l°ƒôšÈ„»š—ô˜ô_WW@Uœal»šwU@@wšUVƒš@VƒXI@w‚Ģ͑ÞȻ›aU_@mUkly@¯óV»XmWUXUWmnm¥nUUaWLk»Æ²IÇa™wÅaݰ¯nUa±a™ƒ™@¦õÆğ„@„™@Åb›xU܁nÇłlb¯¦„ôó»mƒ—@±ƒUk@Wwƒa¯xU„V°ƒxXbǎŁUV™™ƒK@¹ƒKUaȯ@ōݙXƒal™ƒlÛkalÇUǫÇńÇakbÝƆ¯nlš¯Ž@¼™VUx@x¯W¼™Æ¯šmĖ„Ĭ¯ČƒVk‚ķÅmxœ°ô²V¤‚bUnÞW°bĢw°V°„XxƒV°z@bÞ`@„‚¦„KĊŽ„I@xƒŽn„™ÈÈK‚„šV™„@VššXK˜xX„mXUx™a™b@‚kXllĊnVlUx™XkxlÆk„m@U„Vlš@ÈwôxV¦šbU`@zÆV@„²KllÞz@b"],encodeOffsets:[[132672,46936]]}},{type:"Feature",id:"2312",properties:{name:"绥化市",cp:[126.7163,46.8018],childNum:10},geometry:{type:"Polygon",coordinates:["@@ऊþÆÞ@bnJUb‚ĀnblŽĊš„„ÞlĸwǔÈŎKÈnôWǬê‚KV¥„ĸôUxš„@VšbU¼m`nnĊŽĊ„xlUšmkaVÿšLšwš@°»UmbKmݙUšwUmVknKUUl¯ƒKU™ƒUȃ‚™nK@ĠkX±lX„°„L@¯¥@wV_m›ĵ¯Ww™L¯ƒUkōƒÇVU™l›w—V󁱃¯aƒVka°wVk°mÞ¯Ŧřƙl™²™Ŏk™U@ƒmUkb¯ƒķޱ„ó@kxȯó¯VUÒk„ÝŽ±LÛwÝ@ó»ÅUWw™mğw¯Ñ›@UkV±@k™a@¥ƒ¹Źÿ@aƒÅVƒwóVVUkU¯JÜóÈUl¯„yk£laUaVÑÇb@™ţ@kmómK™V¯IU¥ƒ@@ƒ™kV™Iƒ`@ô™¼„blU„lƒ™bÈb@xÇKkĢɳaÅɆō@ƒŽVƒK@z™@@¥ÆKnÜ@@aۏUw›wnU‚ķ@ƒ_ƒV°Ž@„klVššnULVVÞbVl@°™@nx™n°LŚÆlV„ȃmU²@VmĠLƒx„n¯xkWƒzšJ‚wnLmbXbW°šÆ‚™²™@™Žšx@JVx„L‚Ā²Æ°I¯º‚È@ÒnÈ"],encodeOffsets:[[128352,48421]]}},{type:"Feature",id:"2307",properties:{name:"伊春市",cp:[129.1992,47.9608],childNum:3},geometry:{type:"Polygon",coordinates:["@@ƒKƒ¯kWW²ğl@ŽmLšÇ„„VVš„Lk°VVmLUlVn™xšVnނLnaVޝ¼™@™x™KUĀlb™n„`n„Æxô@VbU¦ĸŰĸbôxÆ@„™V¥„»„IVl°LUŽll@²„mV„x@ššÞܚÞVnŽlXÅÒlbÈaVVUblb„J@I°lÞIn‚Æ„mxnbUbVLÅVm¤@œţVǤXÈÇĖ@šÈ¼˜aXVÜaXbWŽnzŎašř„KôbšUlw@¯naÆKnUU¯Üa@mkkVUĊm„™żÝ‚ǖŽ‚K„™°L²lÆI@ƒ¯¥ĉƛVaÞk@ÝVaĠlnUVwƒœómaƒ@™wĉ@™a™VƒxamX@aƒ@UaÅLƒaVWƒ_nWm£nWm_ÅV¯ƒm@m„󤁚ݦƒ¯ÅalmX£ƒ™VWUŚw™mÇ@@IV™„WUw@ašI@„k@wŎ»Wƒ„ƒ™ÅVaœK›Ika@¥lUkUlwÅwVyÈwWU@a¯U°m—Ç@UçƒaVa¯mV»ÅwÝUlƒUk™V@k„mUk‚X£šw°@@ǃaÝIƒƒam™Ûam„¯lğmmI@J™U™l±ÅōŽ—kWa¯VÝa@Þkbġ@ƒxÛnÇm@akkōVōl±škšÅšťŚÝ°¯nUl¯xlb„U°b²„ô‚˜Uœxšk‚VÈUŎ„Vl°„šKXxͰnœU`@x°¦@"],encodeOffsets:[[131637,48556]]}},{type:"Feature",id:"2308",properties:{name:"佳木斯市",cp:[133.0005,47.5763],childNum:7},geometry:{type:"Polygon",coordinates:["@@nš„b‚„ÞJ„b@ȯ@™xW¤Vlƒn@lšUVlk„ÞVÆxU¼°nUb„bVèÈ@˜ŽnIn‚@šĢmlUw°™żƒ‚VUn@lnL@VôbšwĊ‚lœ„JķĸĢl„wôwƨxVVUƒŦšxšLź™Èš°`nnĠwŎJސĶwôJ„@¤Xn܄ĸlšn°¼È°lŽ„„Uš‚b„xš@„l@ÞÞÈm°„lôwšL°¼ĸ‚°Þ²nĠ@ôwÞ`ŤI„V„ÒĠU„„@„VJĸbƄ²@°ŽĊKšœ„JĶa̐Ȱ@ô¥°nš¤‚bČUš@Vx„mUw@a݁ţƒÇ™ķƒ@ĕķīU¯²@ÆmVÑô¯X¥ċç@™ĉ»U¥ÝţKWVÅkUVÝŎUmǍÝx¯aķxÛUóL¯a±óōb¯™ƒÑŃVÿƒ_Åķ„a@UƒK@wm@Van@UmmLVa—@VImmXUWƒÝUřƒKUwÝUUƒkVƒk@l¯X›‚Å_ƒJ¯k™Jm„ÅLƒa@¥U@¯Vƒz¯@ƒ`@¼šmxƥšŏKÛk@±laÛ@@Xm@™ƒ@xƽ@WŎnšˣĕÅ@@aÅ@@nÝbǏ¯@ƒ_U›kUWƒkb™wÝU@ç„Wlw@anIƒ¯lyœX°m°VšašÛšm@„mVwÞK°ƒšXlaXmm_ƒ@UƒkwÝK@ƒVI™ƒXmV»ƒI@aƒ¯ğW™bġaU_¯JU¯ġŽƒ„ĉ„k„ō`±nÝÆk„™bóĊ¯Xƒ‚ĢX‚mVn²JV„lbUè„ČmK—wlóğx‚xV¦UaJ›šƒbƑÿÝL—l@bmbġx"],encodeOffsets:[[132615,47740]]}},{type:"Feature",id:"2303",properties:{name:"鸡西市",cp:[132.7917,45.7361],childNum:4},geometry:{type:"Polygon",coordinates:["@@‚LšKVVnkšbVšÈb‚²U°VnklVlaÈL@anU°ÜmXV`œnôLƒèšxlŽšLX„˜L²ašVVmÈX@ķ˜lnU„Èl`ȹš@ŤŽ°U@x„KnnV„mlnnUl‚lVnnaŎwlVÞ҄@n¦šLVްlšwVk„Lšaގl„n҄š@xmLÞ¤Wnœ¼‚WÈLVVUxlÈô„„WVaU_VKšKXUÆbn™‚nôK„bÞw°bÆWXamVwœK˜™Uw¯WUk„UlJUwVUa™@@kmyzm›ĉw@kVwškƒW¯ÅKU_Vmƒƒ™xU@aW@@kK@w„a@Kƒ@@kVUƒaky°_Vm™kna¯K@™ƒL™wġk@@IÇóX™ƒwVakmV@mwXUWanƒlĉ@ǙUw™KƒƒóšܛNJۄm°@›w—Å@ƒ±b¯Wƒ¹„WVwŹĕ¯kVmōb¯w@aƒwmV™UUb™V™IkaVwķ™xk¼›b@VXXó`󗙘ƒ¼Çó™¯„kŽÜš„š¼WŽn„źĖnššxl@X`WzœÆ"],encodeOffsets:[[133921,46716]]}},{type:"Feature",id:"2305",properties:{name:"双鸭山市",cp:[133.5938,46.7523],childNum:5},geometry:{type:"Polygon",coordinates:["@@™UƒƒUwó™mÑÞÑUÝÝUkmmŃyV¯ī„¥ƒUÿĉ¯mÇkaWbÅX¯aÝxƒaóLmmšÅaWV™LULV`UbƒXóƒkÇVwUUÇKX›»XmÝ£nK@wƒ™mÑkƒÝ™bƒKUl™x¯kU™Km¥ƒ@ÝÑkUōxmbUmkVkmmnkUƒmmƒL@w¯Vţ™@Ǻk_ƒÇmV—k@ĸVx‚VȰlLkllšUbōwƒnVW¼nlUx¯XmWUnÝ@™xÝUó¼¯J@LVbkJWnkb™W¯„ÝLUxƒn@‚™n™Ü™b¯U¯n›Wkz„°mJ@bkxƒX@èÞVšxlaX„lVVœ„`°@ȐÞa@mÆ@@bÆ@ˤĖm™Xōƾ@@wš„n@@WÜ@kb@²ÜlŐLƦ™nw™@»„_°@„y°UV@@¦„bÆKnƒšI°l„IÆ`œ°W@k„llUV„ÞVVx„LƚÞVX„WVnnUJ˜@UbnKVnm@Ubn@@x„L@VƒbÆĸ„`UĀÆ„„Ò°šŎa²ô°bôKÜVĸw°bÞwȎVnÞōVUÆlXU"],encodeOffsets:[[137577,48578]]}},{type:"Feature",id:"2306",properties:{name:"大庆市",cp:[124.7717,46.4282],childNum:5},geometry:{type:"Polygon",coordinates:["@@mÇ@сǰ¹¯J±ÅÿƒKUw‚I@™wšš@š±Å‚™X¯WanamKx™I„ylX°wƒm„wğKUn±@nVDŽUƒÅkƙ¯Kšmmwš@@¯UkÝaUUVK™mU™lk@ƒ¯„U„`ĸ@V‚mœxVxܐ@bÛ@m‚ÅL@¦š@@y„L‚U„Ŏ@ÆɅɴblġÈL@wÇaša„ƒkkVƒaš»@ó¯_ÝJ™wÇaÅXny›U¯¥Å„@w™bÝa™Lmm@@ƒVUŽlbğVmš™¯Xƒm_ƒ`¯_Ux™m™L™a¯b@mƒaó¦Çk™¤V„@bóJknVx™VXx±aƒLUbVxkLVlLWlƒ@nX@VÅbWlÈnƒx„bWšÅbmŽ@xœbml°b™„XbW„XVmnn`ƒLmšnbmb@šk@mwU@@š¯Jlbk°lbkšmLXxmbVbkllšÅނxX„xVWVVa²VܲnxƒVVnÅlVlƒL„¼šb@xV@XŽVbšIư„¦„lźb„Ĭ°¼Ulšb@kĢ@lw„@ƒÜlnȂƄóȘI„ĉ"],encodeOffsets:[[128352,48421]]}},{type:"Feature",id:"2304",properties:{name:"鹤岗市",cp:[130.4407,47.7081],childNum:3},geometry:{type:"Polygon",coordinates:["@@Þ¥‚™ô£nƒn@°„ÆUn`mXn¤mX„`UX„bÆKVb„@@bnW‚b„wšUšbĊ@šx„@nbšWVmƒ_mm@ó»Um„ŘWXkĠ»²¯‚¯nķšwŎ@ĊšŎK°bĸUnјKȦĠÈbÆknJššÆUĢV°IšŽšVƾƒwaV™ƒƒkÇ¯¯»™mķkۃWm@£ƒóIĵxݏōIğxmm¯_Ç™Źš™K™wťŽ„UVUŽƧwóxƒxġkĸķƒIk›ĉ™xóa@UmK@kVmUŻ„¯šVxkŽġn™‚@mmJ¯n°V@bXVÇxUzÆxkxlVkV@¦lbœJ›LUbšÆƒ„X„ō¼@xƒl@™J@bVxƒXUš@JÈ@šn™xVÆUXš‚„W¤knÆb„°"],encodeOffsets:[[132998,49478]]}},{type:"Feature",id:"2309",properties:{name:"七台河市",cp:[131.2756,45.9558],childNum:2},geometry:{type:"Polygon",coordinates:["@@²mŎ_lƒĊƒ„ƒĢV°°IV`ĢbšaĠX„°@b„JU¼Wnš„UJ@„ÞLlxV„„@n`lIUa@K°Iô»ÞVšwÞ@VmnX°WVwmkX»‚U„mŎxVak™lkkKǯUUwÇWUn™U±b—KWƒ™Kk™w„çóK›mU_nW¯ÛmV@bÇKkbkUml¯U±VÇaU™™amlUU™LK›„k@ƒU@mwÛLƒŽƒwkLóÆm_™±™nkޝ@@n±KnŚlbkVV‚mz—lWXº@Ķ°"],encodeOffsets:[[133369,47228]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/he_bei_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"1308",properties:{name:"承德市",cp:[117.5757,41.4075],childNum:11},geometry:{type:"Polygon",coordinates:["@@lLnlmxn„„IVVlUnb@VVxXJWL@LގVnnV„J˜_@wkmšK„b‚x„wXk˜WXXšKlb²K@nVVVb„L@WlU²„lKVnUJVz@VVb@lżmVUVnbôaVX@°Ub@lWbXš@b@bVb°x„@VxÈLVlšaÆ@Þb²k°@lVUŽ@Xn@VW‚LXb@¤VXšKVVVLnm°_ƨ¤@aUIVa„alkX›°k„™V@„alwUVy„U@k󙰃na°UVUUmUÆw@mkLVUƒWVI„WšLnn@xlVnK„myU@ƒU°UXaV@U¥ƒU@Uƙ@aVUkWU¯ƒaU@WLUV@bkbmKULmKkUVUkmVIUwlWV²™Uml°U@W„LUwVm@UUK@_ƒKUUÜaXw@ƒVKUU@mVIUUlmnIVVVbÈVlKnbVKš@nI˜@nVnwVLVK„K„„˜Vnb@aUIVW@In™°@lVnIš@lWĢ@°UVL@b„@VyUUƒa@w@WUnU@Wǯ™K@UkkJWaÛbmk@mVaÞU@amkWƒ@mXUKkÿƒ£@a„kl@Um°UXwla„al@nmlXnW°znW@aƒwV™@ƒakbĉ¥VmU@ƒIƒVƒUƒJkUmWU™KbmkUaƒKkUVU@KV@@klw—™WaU@kmƒXVènbmlUUƒKƒX¯JkbƒI@JmIUWU@ƒLml@XkJ@U™kƒK@aVKwWa—IWwƒmUƒ@mU@J@UaċU™aUUƒVkI±ƒk@UUƒ@UbVVm@UVKƒLƒlkIWaULUWƒXUJU„ƒ@WbUb@lkXUxm@@JVn@J@b„nƒb@Vkx@bšLU‚Æn„JšaVXnKVVmzX‚°V@_lJXxWXƒK¯bÅamUƒ@lUI›bñJ@LÇKkIÇ`kxWL@„ƒ@@bUVUb¯xWKk„Å„VlULW@ƒŽn¦Ul@I™lmUUUVm@kWƒnkKma¯XUKWmnwVwÝL„mŽ™VUbUVWb@Lnxm„xVŽmbXx›¦@„nb@`™„ƒVƒ@kbƒLU„mVUlkbVXkºmnm@@xk¦šbĢÜlš"],encodeOffsets:[[118868,42784]]}},{type:"Feature",id:"1307",properties:{name:"张家口市",cp:[115.1477,40.8527],childNum:15},geometry:{type:"Polygon",coordinates:["@@k™ġۙal¥@wn@nml¹UWlaVknUVƒ„Kla„@„Ušƒ@_ma@ƒœ¥WwnaU‚wnƒmw@KXaVUVašUnmWUk°™lƒnUVUXWVw™IWVóKUI@WXƒxUU@mma@kUKWLkw@yk@ƒaVkUUċaUU@Wk@Unm@UVmLm±IUƒkJ™kWƒ@a„I@m@U„ƒVƒ„Ula„@VXVƒXmVwnkWKƒKU_k@m¥ƒmX_™JmnU@km@U@KmU™VƒU@U™@Umk@@LƒmW@Û£Wƒka@wk™@aƒI@mmk@mUa@UmUƒIƒwW@aWUƒbU@kbÇ@kwƒ@makVUk™U@aƒm@aU@mxkUƒbƒKUXUƒ±KXVWLUK@wkU@V™@WXUa@WbUxƒJIƒŽ@¦VèVVX@±ê¯KUIƒ`¯UULVx@Vƒ@UKƒIƒVkLmVkKmš@nUJÝbkIUJVXšVVxVbU„VJ„Un™°bV„mlU°„XnK@Ul@lVÈVUXšx@W„@VXšV‚KÞb„n@VnbV„m`ƒUx™kW@UVkL™Km¼@lUnUJVnV„XV@Vm@@LV„klƒIkl@VƒWlŽULWKUL@mJ„@blbUVUlmzUJUxm@UUbċÜk@Ub@VšLVV„¦ôbVŽmšUKUkU@m„„@VlVn¼WbUJ¯@@„°šnIllÈl˜@nXšWlLœk‚J@bkxlxkxlXUlklJƒšXL@bW„n`@nƎXxlL@xl@Xb‚LœKlVlIXblVUbUJW@lX@VL@VVŽšXšJšw„n@WnL°K„bVbl@VI@K„@U@nmVmV@XUWI@aXm@™VUUkWmn@lmUUk@mUmK@UnwVĉ@ƒƒmU_V@XJôVVUšLVUn@šllUnJl_n@šml@XŽlLlw²LVJUL@VmbVblVXmVnlš@Ť¦„nn@܎@bšl„@@XV`„Unb@VlLVb²J‚Xn¥ÆÑ@¥Þ@"],encodeOffsets:[[118868,42784]]}},{type:"Feature",id:"1306",properties:{name:"保定市",cp:[115.0488,39.0948],childNum:23},geometry:{type:"Polygon",coordinates:["@@VbXWš@@UlV@xVLXKWU²LV„VW„L„alVnwV@@b„n@bšVVllUnb„@lxÈ@laV@„aXV@b‚X„x„J‚nV@VVb@nnl@n„J@blšl@„ašƒU_VWUwVUškUm™Ukb±mVwœU@VIUW@UWk„@VU@ynL„m@IV@‚bnK„LVaVmnIlaXwV@@WVL°@@xnX„@V`V@VbUVVLVKnwnL@ll@@_V@VVnaÆ@œKVXÆ@nƒ@wƒKmU—™Wm@km@kÜKXU@ÑW±nIUwVƒ„Kla@I°wU±kškmm¯mƒ_ƒJnƒaƒwW@IVaUama@wƒUƒmU@mVw@aXk@mWa@£km@aƒ_kVmUnWW@¯bƒkUmk@ƒVÇm@@kUU™KUU™@UVUamVUaWIkb@xU@@amUkKƒVkam@@kVUkUWmKmUkLUb@xmJƒ™U@UImVÛVmnUwƒJƒU@VƒX@UWm@Ub°¦UšmxklmX@`ULU@@UW@@xkn¯@makV™UmxUb™°ƒlUšƒbUbƒnUJƒUUVƒa™LkbUU›JUU@mUUUƒJkaƒ@™xUIWJƒUnƒJ@V™zƒ@kb@`@bln@l™bƒŽ@X@š@š„@Xl‚bnbVb„@„„VJlInlšbVw@U„K„l@lbnan@Vb‚JôLn‚UzlV@lÈLVbVK@LVx—VWXX`WxXz‚bV`UXV¤nx@„bVlVnVlUL"],encodeOffsets:[[117304,40512]]}},{type:"Feature",id:"1302",properties:{name:"唐山市",cp:[118.4766,39.6826],childNum:11},geometry:{type:"Polygon",coordinates:["@@„@VVl@²„lJ„UVVšbČVVb‚@@InV„@‚V„nXx˜JXb‚xUL@b„Lšl@VlI@Wnk„KV@VXnJ@I„Jla°I„W„LVVnkmaUç„WVkôaܯ„@nV°wnJlaV@VUnUUaW¯wXWWwna@£UaWKU¯ƒ¯@aVUkKUamUUƒn»‚an™„IVwUWlkš@„LlWVakU@K„_lƒšbÞU°@šy°n„@„KÈkWW™ţ¥ĉōƒkġWUw¯£¯ƒÇwţwƒ@kK@kƒ¥ÝwÅbǤېťV™lW°@ĸ™x@VVVULVLkl@V@Xƒ`Ub@Xm@UWbƒk@ÆVbnLWV@lnXUbl‚@X¯lmU™VkKWLkK@_UK@U@UmmUxmVXLWVULkU@`W@ULUK@XlJXzV@@xml@VU@UX@Kk@WbUK@Xn`ƒXmJnšmškxUVbUVlVVxUbV@nKlL„kVKÞbVKXI°KVšmVUIUKULVxVJVLkV@Vƒ@UbU@WUU@UbUK@b@nƒV@VkLmb@b"],encodeOffsets:[[120398,41159]]}},{type:"Feature",id:"1309",properties:{name:"沧州市",cp:[116.8286,38.2104],childNum:15},geometry:{type:"Polygon",coordinates:["@@@ln@UȄŽl@Vn„l°aX@mXnVlU„`@bln@¤Xb@nWl@bUx@nnV‚„„V@xnbVbUb@J‚X„x„b‚mXa@k„UVwlW„k„KôVm@w™kkK@kl»Èƒm™VKXkla°@XVV@VI@ml@@Vn@VX@V@J„@VxUzVVšš²blVk¦@šĠ@@»š@VK@VÈLlK@XnJ@alIUl„a„VVbš@„n@a„U@WUIV@mUn@mKXml@lL@LnWšb@XV@@a„VVb„V„@VV„IVWÈb˜IÈ»ƒǟlWšaVUÅUƒƒ™Um@kVU™WVkaUwmaóUƒJUU¯ÑU¥mk™¯UaƒKÅnÇyóXmWÛX¯aċbÛa›J—W™ÝU¯»ƒaóóUm@IƒšVVl@bƒLUJWLX@@xšXUxl¤V@V„nVUV„XVbVš@Ž„@@VVn„°VŽ@ţU¯VƒUmƒUWV@mUXƒaƒbUKUwUaÇKn„ƒVk¦Wb@VnLmV@bkV@n„xW`Å_UVƒV@bƒUklVX@VmlUƒx@VVL@x—VWVL@VW@UUm@"],encodeOffsets:[[118485,39280]]}},{type:"Feature",id:"1301",properties:{name:"石家庄市",cp:[114.4995,38.1006],childNum:19},geometry:{type:"Polygon",coordinates:["@@la„@šy@U„I‚m„VXIVJšw„@lb„IVVnV‚@VVœIVVlašK„bVU„VVI„mVa„aV™„kš¯VanwšVlUnb°@lm@wX@@VV@VK@_nWlknwV™¯¥Van@VX‚@„W@U„V„IVxnmÜUnUVJV@„šnI@wValKnV@k‚mU£na@mVk°K„LVa@UU@UƒmknWWkXU@aWW@@km@UaU@@klK@UkaWaUnamm@U„a¯wWU@UkƒL@ŽUn@x™V™lUXVJUb™LmU@aUWUkmKkLUUm@mW—XƒaƒmmkkWUm@@U¯JUUm™kU¯@mKĉxÝwÝ¥LƒUóŽmwkUUUWVkKm™kKmLX„lxVLVxXJ@nVJnz@VWL@`nX@šƒxƒ@kVUUmJmIXx„JV„ƒnUVƒ@UVV„@LUšƒ`UXVVƒ„ƒlXL@l@b@VmX@b™xn°™UƒbkKWLXlW@@bƒK„mKULmakLUlmb@šXb@xmXU`V„b@`lLx@nWVXL@‚°WlXnlb„KVK„XVb@˜X@l_lJ@V@XnŽ„I"],encodeOffsets:[[116562,39691]]}},{type:"Feature",id:"1305",properties:{name:"邢台市",cp:[114.8071,37.2821],childNum:18},geometry:{type:"Polygon",coordinates:["@@nKlLnšlLXUVVlVnxô„V‚KÞ¦ÞxĊwnL°@lVnšVV°I@Vn@V‚lXnl„n„b˜WnXn@VVlKnLVlVX@bnVšKVaUIVWškšU@wVm@¯@U¥VmU_°lšK„k‚w@LX‚Va„U@wšUƒUUKlUóW@UVUœUlƒ°K„wlKU_na„KVnlKkkšWWa@IœJVa@IlJnU@„KVUUmVlaXUl@lm@kXWÝÑnkƒ™±™k@wğ›@@U@mKĉLmVJ@zmlnŽWLUÝJU_ƒ@@šmJkXUVlbklÝ@Ýa™b¯@¯±JÅwġaUU@ƒkU™@mVI±bUKƒL™WUXƒJkaƒLóKULWbUVkKmnk@@bmLUŽƒl@b@mnmJkUULƒaƒbnŽmn@lVV@¦n@„l@b‚znx@`Vz@b„xnV@xl„lbnKVx"],encodeOffsets:[[116764,38346]]}},{type:"Feature",id:"1304",properties:{name:"邯郸市",cp:[114.4775,36.535],childNum:18},geometry:{type:"Polygon",coordinates:["@@„bVKlVnInm‚@@a„kVnK@al@nmlLVUXaVKôL„Klb„IVWšX„KVL²a‚JnUš@lV@„VVĢbÆx²I°Ž°@šaÞbÞ@lkkaVUlWnI@™„@V`ÞI‚VXKmnk@y‚InUĊKƒÇkUUamUUkƒƒ@aU@U™ƒk@WUwVkVJVkkw°a@„mK@UX@VV„LVW@wšwVa@¯Xm@@lUIWaU@UWkXWmU@UwmUkKmn@lkVƒ²™VƒaULUVmJUUUwƒLma@™UmkIUm›L—mVšmx@b™LUamKÅL@VmbkU¯KÝamzkJUb±Vkb™L@lU@WIkJƒzkKmKƒnUalWkkKW@@nkbk@WW¯XUVUJ@XlJ@Xƒ@XlWLkUƒ`VUnaWa„UV@UVIƒaUxUUmVƒK@I@W@DŽU@@U@bƒ‚@nmKXmx™@UxkVWUX„@`VLlL@`™zX‚Ýb@b‚„@VUVkIUJVz°KVlnLlKnL„xlLVVUVlXUJ@nn‚„I@mVUlbn@@Žm„@bV„nV"],encodeOffsets:[[116528,37885]]}},{type:"Feature",id:"1303",properties:{name:"秦皇岛市",cp:[119.2126,40.0232],childNum:5},geometry:{type:"Polygon",coordinates:["@@lnV@Xb˜škx@lU@@LUVlV„LVbnl‚ašLXVVn‚l„I„V„U„JV@UnĊ¦la„bš@nJ°UmƒV@„wn@VU„JVI°bnWlXnWVLVK²b‚akk„lI@aUaVƒUwVUUalaVwnUVak¥šX@W‚kœLVÓm„mUK@_lWš@n_UK@alÅ@ğÅƑŃݍmƒ@їţÇlƒLƒ@¯m™z¯@ÝV™ak„ƒ`@LlVUbkXƒK™@klVXUxƒJmšbm¼V„nVVblLUV@b„°V°XLVb@¤mbXxWX°xXŽVbmVUVU@kbmI¯xmUƒ@Û°óbUl"],encodeOffsets:[[121411,41254]]}},{type:"Feature",id:"1311",properties:{name:"衡水市",cp:[115.8838,37.7161],childNum:11},geometry:{type:"Polygon",coordinates:["@@„KVlV@X°xƒb@VnnmbVŽXblb@VkL@lV@Vbn@@l‚@XX@bWVXlmXnlV„V@@VUbƒK¯LUl@nmbV¤n@l‚LXnlVUV@ln@lb„UlLnV@bV@@wlaXJVbnUVbVUš@VVšLVVn@VVX@@U‚KXU˜U@wUK@U„wVnk@UUWlk„V@a„UVUÆ`X_ƒw@mlU@anUmK@UXal¥„UmƒÈLVbVxVL„a„bVW@nXU‚Vn„„V°UŤV@Uƒ¯Um@Uƒ@@U™UaƒWVUmUUƒU@k£Vw™W@wW@XKƒIUa@wU@@al@UK@_mKXKƒbUU@aVKmš@Xmƒƒ±@kbÇakLğVaUw@a@ƒmkUJƒk@ykw@£ƒWX@lknk@WVkbUŽVnUVƒL@‚mVkI@JUb›I@JXb™XllkLUmƒLmbV`kLƒx¯Lk„›VUV@VôXkVVL„V™V@xƒVUbW@Kxƒl™L¯kV`UnV¦°@"],encodeOffsets:[[118024,38549]]}},{type:"Feature",id:"1310",properties:{name:"廊坊市",cp:[116.521,39.0509],childNum:9},geometry:{type:"MultiPolygon",coordinates:[["@@la„Ušš@šUnL@VWbklWxnIVV„V@X„JlbUlšXVbn@@K„mV@@X°WVInJmn²@lmVbnL@amKV_kwlmX@@LVamaXaƒaVU@UnJVanLlUkaW@UaVakK@IlKUU@an@ln@alKUƒkIVa@a@klaUKUV@UkUV¯šKVƒV@kUmƒU@@a¯ImJUU@VV@UL@Uƒ@@WXUWa@Ukwm™@ƒX@@w@al@@aVIUmVUUUVWUknK@I@™l¥kU±a™™UUVyUwƒ@@I@UUWm@@Uk@@nUJU@WU¯@kbWlULnšÇ„k¼@llLšl@xUnóŽƒLƒlkXUxƒV@lWb„I„`°nnn™llŽV²¯x@JkbƒLU„VxmJX²@ÒWVÛL@lln@‚Xn˜šnV„L"],["@@@kX@Valaa@KWI@UXW@WanaUIW@UaUKķŽk_W@UVUKUš@bƒ@UamxVXnJUbWVXLVbn@W°kb@U@Wó¼mIU¼k`V„@bVbl@„lX@lUôVlUœIV`lX„Vn@lUlVn@„l@UVaƒIUWl£Um™VWU@@UUKlUUUnƒVL@KšUnLVWUa›@™U"]],encodeOffsets:[[[119037,40467]],[[119970,40776]]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/he_nan_geo",[],function(){
    +return{type:"FeatureCollection",features:[{type:"Feature",id:"4113",properties:{name:"南阳市",cp:[112.4011,33.0359],childNum:12},geometry:{type:"Polygon",coordinates:["@@lKl@nVV@„bn„@VVnm‚nL‚LXx@š„‚VLlKVU„IXWÜ@șlbl@XUĊUlwnW„LÞw‚m@ÞUVmnVl@nX‚JXLm@VnnJla„I@VkxVb„@VŽln„J@knKVn„@°aVanal@XK°b„‚@š¯VJXIš„VK@al@nV„k‚@nK„a‚b„@XL@blVVKVLXK„@VaVI°mVaX@V_@a@yUkVw„VšIVašJ°™@anIlaV@nKnXÆm@wUUV±UUWUKnaWwXUWmٝVƒam@kakImƒUKƒ»lan@VXXa˜W@@UlUUa@a@UlwUƒV@Xal@@anIVaUK@V™XmwVmUmV„LXl‚@nalLnal@„šnKlkV@@UnJ‚UXnl@nVl¦V@@VnJ@nUVVVVIn@Va„JƗn@@K@m„kƒa@kmWVaUI@a@™k@@aUL@mmaVIUKUVƒ@@IU@mƒUmmL@K@UUUU@mW@@nU@ğ»mVmbk@klW@UXnV@LƒJm„™lUnUJ™UUUWƒƒ@UnkKƒxmLa@ƒ@@lUU™bmUVWk@@nkUmam@UakJU_ƒVm@ÅlÇLUVmVUwULƒKU@ƒk@UƒVUlU@@Uƒ@UaUUWaŎƒzJƒaWLkl™b@bmL@„kKƒabWŽUVƒ_@mV@b¯JmXUbUK™¤ÇLUU@b@JkLWmkUWIkJ@VmX@JUbVXU`¯VV¯blK@LXKl„UV@Um@@Uk@kxWŽkbƒL@KkbmL@‚UXmaU@@l@x@blX@xUJ@bULUlULÇ@@VšnU`W@@nÛ¼U@@VmKUkm@VVX@@xǚ@bUbVb@VX@@x‚LUb@lƒ¼XLlbUlVVU„Ub@n"],encodeOffsets:[[113671,34364]]}},{type:"Feature",id:"4115",properties:{name:"信阳市",cp:[114.8291,32.0197],childNum:9},geometry:{type:"Polygon",coordinates:["@@VllInJlknJVkVU@mXlUÞ`VnV™VU@U@y„@nXlKV„nJVkXKWaXI‚b@yVk„VUkVwn@‚K@nW@k„KlUXVVUlbnUV`n@V_V@llX@@V„b@bV@@nlVUb¯‚WLnbmb@ŽnLnK˜b„U„bVWnLlaX@VVUX@Vln@`kL@ll@VXVJÈIVl@XÞJ°Una„LlylU@UXKlnn@lanLWWnbVI@KXKVL@LVWVL@UVKUIVWX@@XÆJ@In`@lJVI@a„WšÛnK@UlK@UU@VK„nlm„nXal„UllLUbVVšknJ@nV@Vm@a„l@@xnV„„lJVUU@™w@aƒk„@XW@_mWnUlŁUmVKV@VXwW»XƒWaUwnkWUkVUƒU@@@WlaUkkaƒIWVkm¯xmIUmƒLUVƒaUIó»m@mmwXk@a›mk¯¯l™@wƒmkLmmU@UbkUWJ@XUbƒJ@b@l@znÆmK@Xk@Ub@lm@ƒI@akmVKUUVUkU@U±JUbkƒ@IWmkxƒa@UUV™UWVkIUaW@UlLWn@VkJƒI@VkK@L@bmKƒkJmUUaUKWXk¼VxnJ@„V@@VULV¼ƒ@@UkaUlWL@U@W@IkKmL@KULUWULWKUXUJmIƒb—KƒŽƒ²UW™nWKUUkLUƒmUUam@UU™@ƒmUL@xkV@„VV@bmV@Vk@mwkUƒVUx@mbX‚ÇnVb„‚UL¯šWŽnUVLVb@xnlWnU@UVUVVUbVVlVkn@llVUXUWUXVbUJ@bmLUJnb@nVK@bl@@š@bVJUbnX@l„b"],encodeOffsets:[[116551,33385]]}},{type:"Feature",id:"4103",properties:{name:"洛阳市",cp:[112.0605,34.3158],childNum:11},geometry:{type:"Polygon",coordinates:["@@VVUllLXl@LWn@J„@bƒKUVmnL@`VblLnbV@„b@JmL@LnV@VV@¯„VJVnXL˜@nm@aÞ@‚a„k@m„IšmVbXL‚ynLšk°@°aVJnUV@UVVXk@WJ@VXLlUnJVnnƒ°U@»°U„wl@šb„WmUXƒÆ@VLXU@m@U„a@I›mkb™a@naWW@_@WXUV@@U‚ƒ²@„K@I±U@¥kKWLóLlƒa@£Um@kWKXU@mlLXUVKUU±J¯_@`UL¯Wmk@Wa„kkƒlUnƒVUVaU@KUU@mmK@_ƒa@KX@VaUIm±™k„aVKVUkw™@kaƒƒW@kbkL±UUaƒK@UUKVak£ƒ@UmmL@lƒIkmUƒ@Ualw@UƒJkbmIUmn@WKImWk@mUUnÝV@ށnÝxƒKmXkxĉVWVk@kaċšÛ@WXƒJUV@zŽm„VWnbUbVbšLlUnŽ‚lUÒnWV—VWnk@@Vm@kxm@Un™l@Ll@@V@šXnƒškJV„šV@nlVXx˜U@l„n@aš@VLnWĊ¦nxš@lbVKXLl@ރVLƒ„XJl@XXl`lIXVl@Xl‚XUVšK„wV@lanx„zUbVJ@VVX@b"],encodeOffsets:[[114683,35551]]}},{type:"Feature",id:"4117",properties:{name:"驻马店市",cp:[114.1589,32.9041],childNum:10},geometry:{type:"Polygon",coordinates:["@@n@„b°UƂXnVlnLÜ@VLœm@n˜@na@J„„m@k„@lVšVxXX@„V`lLV„XVV@VVÞLVV°„²@lašbnxV@@b„Lšmlm„_VWnIWUna@lšLšbnV°ƒVL@KšV„LVUVaVLXK@mÆXna@wVm„a‚@Xw@KlL@a„@Va@wUkaWnIVƒla@Kn@Vn@VUl@nKVn„J@LnK@aVkVUUWƒ@VakUVanI‚²X‚W@UUU°KnUVLl@XaVK@ašU@KUI@W@_lm@KkLUKV_Uƒ@»@UVJ@XV@@mVL@K@U@Kk@VwUUm@kmWL@VkVkzƒKmb¯VÝI@WUkÇJUIUWk@@klK@_km@UVWUUW@kbmKUXƒaƒV—amLmK@namaXK°VakU@mU@@aƒa@UW@kkU@U`m@U_mVkaUVWUkVƒL@lmX@ށLm@UxVlƒUUl@zaWJXbWLUlmIUƒkLmWƒ@@z@VUVUšUmÝ_kVWŽ@nUVUlmIklmIkJUkƒl@n@Lm@؃IUbm@UJUUVU@mmI@UU@k¥mUk@WmVmI@VU@klmLƒ™k@mbkKmb@WkƒKUŽVnUnnxšW@UVLUbmJ@bk@WbU@V„kx@V@bVbkV@V‚@‚—XWbUWm@kb„¼VLn„lJlb"],encodeOffsets:[[115920,33863]]}},{type:"Feature",id:"4116",properties:{name:"周口市",cp:[114.873,33.6951],childNum:10},geometry:{type:"Polygon",coordinates:["@@lšnb@xlJ@UnLlKXUlJl_„KnV@xVL@bkbVVUè@šWb@„Ubmš„ŽkšVšmbX„VJnUl@„a°@@b„LVbƒlXx˜InmnLVw‚anJÆw²IlmnXVl°VVbÈaVb„@lkn@VWnLlUVmÞUUklƒkƒVkUaVaVaUw™K@kkaVWmw„_„‚l@nU„VVb@b„aV@VV@zXJl@@kl@šlœk°WVnÆbnbUšVJ„Iš@VKVm@k™K@_kK@a@aU@@wW@@k@aUW@IUWVUnLlUlVXKVwmk@W@—VWa„¥@k@lnƒUIÇKUaU@ƒUUVmIUV™Uk¥ƒVma@¯k@Wanwmƒ„@@n@@m@UIVƒkUVamUXWƒaV™U_™@ƒmUVUImW@aUIĉK@VmI™b@lU@@n™JƒkU™@KƒIUmmLk@UVm@UŽm@@LkbU„mJXlbV‚@xUbƒ@@bkK@LWx@ƒbUn@xmbÅW@nWLUKUbUVƒK™U@LUK¯„mU@šVV@xULUŽVL@bU`WšUz¯aUamKUaƒ@@xkX@x"],encodeOffsets:[[116832,34527]]}},{type:"Feature",id:"4114",properties:{name:"商丘市",cp:[115.741,34.2828],childNum:8},geometry:{type:"Polygon",coordinates:["@@XVl@lLȃ„@VkV@V»UanƒWX@VaÆÇô@ÈaVX@xVJXUÞU‚aVLĸbXKl„V@šm°Vn_ny˜XX»mUk¥lK@a„_@yšInaVKVa°_@WXI@ƒ@K‚VnIlbnaV@„l„@‚a@_w@ƒlwUKm™Xa@UV@š»Vƒšw@kUKVUUm@w±VUXUKUwmJUUƒ@km@@±mXkmUI™@mm™KUwkbWakLWaUIkJmŽƒX@l@@VUX@JWbX@VbULWbƒlUVULknlV@bVJk„mb¯KknWmk@@nmVkx™@ƒVmU¯KUnUL™@ƒJUIV™maÅaUm¯X›l™kk@@lk@WI@yUUU@ƒb@aUaƒUmVk@ƒƒ`nxUXlb@lšLVxUbUbVbUll„k„VlÝVUnkVmKUXm@klƒ@ƒnUx@xnxƒn@`VX@V²x@V@b@„Wl@zU`VUVVb„L@Vƒb™W@bkXllkLWV@V„@VVÈwlVœ@@X˜K²Llb„WnnÆL@VnJWn"],encodeOffsets:[[118024,35680]]}},{type:"Feature",id:"4112",properties:{name:"三门峡市",cp:[110.8301,34.3158],childNum:6},geometry:{type:"Polygon",coordinates:["@@WKUmUI°ƒU@@UmU@KnK@IƒaU@makKUa@_‚KnmVU„L@a‚ƒ@IXm@KWkkKVkUU@aUW@UUIVaƒymwkbU@ƒx™LVUWWkk@WUkJk_WWk@WI„ƒUK݄k@WKULka™@mwĉ¥mXUK™@@bƒm@k—VWwkU@m™UUƒlI„™Wm@™@Uk@@KškVmn@lwn@@Ul@Xm˜UXUmVсkmkV™KUaVamaUXnƒ‚@ykLUKƒ@™WwKmKnUm@UmƒƒaU@mUk@kL@lƒxċxUnkVmnXxWb@`kzWJ@V—LmVUn™lmUL@lW@Ub@VšXUbš`VLUbUJ@nmnUlUUm@@bUJlnU„š‚U@lxkbƒ@@XƒJUnƒ@kb¯VVVmlXXlJlzn@VlkVW@bkK™bmškŽUbVb„lƒXVxšKÈnšwÞlĊKlšVnKlwX@lL@xlUnVn„@šl@lmX@ƄÈb°¼ÈwVJlx„_°xšašlšUÈxlUnbVxnL@lllšbm„n@nb‚@@V„L@V„@@„VLšJnIVVlKnV„_"],encodeOffsets:[[114661,35911]]}},{type:"Feature",id:"4107",properties:{name:"新乡市",cp:[114.2029,35.3595],childNum:9},geometry:{type:"Polygon",coordinates:["@@XVlL„K°bUblbUbšl@nX@W„XVVKVkš@@Žmb@„Ubn„W`kL„LƒV@VVLnKlVXIlVš@@a„@l£nWlƒkVa„@°bnUlLVlna‚bnUVUXKlU@ƒ@lk@a„I°y„@ôkUU@wšmôšnkWakml™UkVmkUlmUUm@nkUKWanamU„LXW@U‚VnUln„`l„œblL°KXV@ĠJ@L°„šJšUVw„anK@UUImmƒkK@¯±Um@IVmUmmÅnWaUK¯aUk„w@W±kVƒx™U™VƒwƒnÅJUIWaÝJóI—bm`ÝbÅImJUI¯¥¯@mU¯UƒJmnUVóUkl±V@zXl„bWVXL@bm„mº@@XmJUXU°llk„@nWJk@U„@¦U`m¯ŽWx"],encodeOffsets:[[116100,36349]]}},{type:"Feature",id:"4104",properties:{name:"平顶山市",cp:[112.9724,33.739],childNum:8},geometry:{type:"Polygon",coordinates:["@@l¤UbVL@V„LVb²VlKlaX@„„lbš@lxUVULƒbšln²VJUbW@@L„b@`nL@nVV@LVŽUbUVm„kVl„ƒlXbl@Xn°ŽVK@_°`²IVVV@VUVJnInaWK@Uš@„K„LÆ@nmlXXWVUUw@klKVa@knyVkVanI‚JXUl@XbVUl@@aša@mXk‚bnK@UlK@UUUVaXaWmkUm¥n—WmXaWaœkl@VmÞb„KVL@aVI@mUwVm„@KōméUL™KVaUk@kUK@U˜WXI@VlKXU‚@VVnInVV@VLlK@UUƒkKU_@ƒWWUwU™@klƒn@ƒƒ@Imb—@@m›nUKÛ@mKUkWVXxmbVLXŽVVU²VV@xÅnmWmLU@kbmJ@b¯š™IUb™JƒUUxVl@z@bU`W@Ub¯nUJUbƒ@WLUKULkU@aWKƒ@aƒbmL@ƒlmUk@@bUL™ƒWJUI™°@ƒŽ¯aWLk@mbUb¯b"],encodeOffsets:[[114942,34527]]}},{type:"Feature",id:"4101",properties:{name:"郑州市",cp:[113.4668,34.6234],childNum:8},geometry:{type:"Polygon",coordinates:["@@@nWVUKÅ@W„nVnI‚ŽV@œkƂšwV@šnn@lxÞlnôJ˜zXJl@nalUČVlƒl@²UlkôVVUnm„I°VnV°@°¦VJnIÆJÞan_VmU@ama™@kU˜¥kaUklw@UIV¥kVUI@ƒmmUÅmUlƒwVU@amU—JWbUakVƒ—Vé¯Im`ƒk—@ƒwVWmLkU¯ŽƒXkWmLmx@UUƒbm@@x™J@LbW@UUVWUkVKƒ@ka™IUamKUkkmmLƒUkJUVWXkWmnÅ@ƒKƒL™@@VXLmbmJUIUVU@ULWVkK@nWVXL@lVn@¤„b‚kôKXKlL@¦²V@JƒL±@„@VU@WV@X@`XXmb@Žšblaœn@Jƒb@V"],encodeOffsets:[[115617,35584]]}},{type:"Feature",id:"4105",properties:{name:"安阳市",cp:[114.5325,36.0022],childNum:6},geometry:{type:"Polygon",coordinates:["@@°kVaV¥kVmUkWkWVkVKUwkkmKUU@a„wWWXWakKWkXmlašIVmX¥ƒU@a„@WnK@kƒƒ™V™I¯ƒ@KğI@WU¯LkK›akƒƒ_kmmVU@VWXƒKnVmbXbVLmln@VVknlVUnVlkšlnXbmlmlXblnÈlWbn@@nšK@V„L„bVV°VVzšlnš@V™xƒI™b™ŽU@WLUa¯V™UkWõ@¯kkmxk¼l‚„XUlVbVLnlULmU@lƒLkVUlƒX@xW@¯mUƒ@UmIUW™L@aXa˜kU™¯anƒWk°@k™kKmmUIWaambUkkKmV¯aƒ@UblŽk„mXk¤ƒ@@b™@UbULWVnb@lUVVnmšnVVU„J@bWXX@WJkL@blVU°UV@XlWnXUbW@UVkVšVWbnLUJWLUK@Lnn@blVU‚„nUblxVUVJXU„a˜@Ub„LnUVV@mVIVVn@UbV@‚XbmbUV„_lVXUWanJVI@WkI@WVIVU°WXXl@la@mX@lLXl‚kVbœm‚X„ylIXJV@@kšKla²UVa„IVyÞb°LlVna@UÆKnLVbšK@anwU™"],encodeOffsets:[[117676,36917]]}},{type:"Feature",id:"4102",properties:{name:"开封市",cp:[114.5764,34.6124],childNum:6},geometry:{type:"Polygon",coordinates:["@@lUVbXa˜InV@bUV„x‚knVVÆnn@„VJlUU¦VJ@kxVllb—¦lVš@nb@bVŽUn˜aôJÞIXbVJÆI„m„xšUšV„w‚U²l@XƒxVl°bVLXb‚`XklUnmVblLœ@lmšx°LVK@UXIVašWlL@Ukƒ°KkVaVUXmmI@UÅKmmƒXka±K—L@W›@kUÇxUUƒ@@UXUlKkklW@ašX„a@UƒKUaVUUV_@yXk@ƒ@a@U±w@UUW@_„mmw@wVw„mUaÇbUa¯UUkmWkn±JÅxmIbUxmKmn—JWw„kUaƒK@a¯@ƒbk@mVUIWƒ—Lmwm@Ua@WJUb@LUl™@UUmLUbWJ@VL@VmXWWzUJUꄘ"],encodeOffsets:[[116641,35280]]}},{type:"Feature",id:"4108",properties:{name:"焦作市",cp:[112.8406,35.1508],childNum:8},geometry:{type:"Polygon",coordinates:["@@V@VL@x@bXŽWV@XkššlUŽWX@J„@nI@KlL„KšUVaV@œJlL@KUk@KÞL‚l²_‚@nWlL„UVVš@nLWVUJVn@anV@a„wÞUVLVx„b„@lW„@lbXn‚Vn@@¼šL°mšKVn@bnl@nVK@blb„L„W„U@VWLXV@nlKn@lVVbXw°nV_@¥Vƒl@XI@mlƒkkV¯VWnI@W‚@n¹nƒ@aWKXUƒaWk@yk@k„ċUkVmbk@WI—yóImÝkkwm@™mU@™xŁ›lU@mJƒX™ak@ƒx¯V@¼¯Vm„UmmIkVWK@UXIl@UWVUU@mVUI¯b¯@™lmKzWKUa™nƒJ@nƒlbÝ@@b"],encodeOffsets:[[114728,35888]]}},{type:"Feature",id:"4110",properties:{name:"许昌市",cp:[113.6975,34.0466],childNum:6},geometry:{type:"Polygon",coordinates:["@@lI„VnKlnVlnLVbšJlb„@ULVlUXVVX@‚a@KšI@wn@„aVV‚@nwnKlX„W°lVnKUX„x˜@„ln_°JVIXy‚XnW@U‚K@UXIVanKVVš@Vk@KVaXI‚@Vbn@nx˜KnaU™l™ƒn™Va@ƒXa@™VçUUla@aUK@wmUƒLk`kIWVkLmK@V@XUlƒn@JXV@nm„™bU‚óIƒmUa±@@ÑóVUUk@UlKVU@akWVUUlUUaUK@UUKWbUkÅJ@XWaƒ@XbmJ@nUJ@bUKƒLÝaUnk@›lXbWbXnm˜n¦lVXnWbUbVV@VkL@VmLaWl@n™b@bk@UVWak@WVImJUbUlmz@lUbkL@lVx"],encodeOffsets:[[115797,35089]]}},{type:"Feature",id:"4109",properties:{name:"濮阳市",cp:[115.1917,35.799],childNum:6},geometry:{type:"Polygon",coordinates:["@@lLXbW‚XXƒx@bVVnLllVxULUl‚XXlVlUnlŽU¦Ub¯l˜nœK@V‚bVb@šXbVL„KVxVVnIlašb„a„¥lU@wnalLnVVlVLXnlWVXn@@lVI@WnU@mƒÅW¥—aW_k@WwXy@kmƒ@wU„mš„š¦šlUxVLV@UwšJ°xš@VX„@Vb„@š`VX@VX@llšIVbnJlI„bšV„l„˜J@ƒmѯLóa@ƒƒKUa„k™ƒ™Xƒ@UK@wU@ƒlWUUݯImW¯aƒLUKU@ƒkƒ»k@mƒwƒa@UnKWI@ƒUU@akVWK—k@a±ƒbóUWKXUmk™KUmLƒbUx„„@lmLXŽƒ@@b„VW¦Un™JkbWnXl"],encodeOffsets:[[117642,36501]]}},{type:"Feature",id:"4111",properties:{name:"漯河市",cp:[113.8733,33.6951],childNum:3},geometry:{type:"Polygon",coordinates:["@@@Lƒ‚UnVxnIWa„@Xb@WÆIVlXaVL@VVLVbkVVŽUVlX@bUVkLV‚l@VVôU@Ò²@Vb„nôJVšanƒ@mWU@I„mVk@WkI@wmak™@wlW@w„@VbnLVb°bVyX™V_@aUKVVK@wUU@™™a™K@kmbXVmJUXƒ`kn™nƒK@aU@mw™akb±@¯ƒUUÝKUUU@WU@VkLUKU@mUmJUU@WVkL@UWJ—X@VVL@lVlUbšLVKnêÆŽ"],encodeOffsets:[[116348,34431]]}},{type:"Feature",id:"4106",properties:{name:"鹤壁市",cp:[114.3787,35.744],childNum:3},geometry:{type:"Polygon",coordinates:["@@ó™™n@xVVólƒ@¯zƒJ@bkl@@„kVWLUVmVXbVJnnlLlš¯@Xlm„°bVš—lWb@bšKVXnJ@VV„°nX@@w„WVklU„K@knVVKmkUKUaVkƒWkl»nwlްlö@lXšV°UVbXKV@šša„Jšw@Um™™kUy¯UUUƒaƒK@U™L@mm@XaÇkkmWank"],encodeOffsets:[[117158,36338]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hu_bei_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4228",properties:{name:"恩施土家族苗族自治州",cp:[109.5007,30.2563],childNum:8},geometry:{type:"Polygon",coordinates:["@@VK‚bX@lbUVnL°„@VlVnUl@VUX@„aVƒmaXƒlašUUU@wmaVUn@Vƒnmmk@m™U@kna™aU¥Vam™X_@WƒU™mW@_kƒVaVKnL‚lœ@VVal@k¥@kUW@kUKVUlUVсW@kÇaU»ValmkUVUVak™@aƒV¯_@W‚UkmVUlU@aœƒƒalI@akkVWUaWXUWwœWVbÆ@„„l„alIVK@U™m@UU„W@al²a‚¯UağÇm@ƒbkk@wƒ@@W™aULmxƒIU‚™ƒb¯@U`UX™JmL¯aƒKX›WUL@aknmK™@aWUXaWm@I@UÅmVU@™™aUV@b™VƒI@WkU›bXkm@VakwUKULWKXmJ@XUK@ƒmL@KUwVaUI@KU@mmn™mXka@»V@@UUaƒw¯yVk@ƒUUVmmkÛÈU@mWUnmx„šmlUbV¦UlbWVUL@UUƒ™IUmÇKV„VbUVVxkn™LUxV`VX@š„„kJVVUXWaUVVlUnmKUbkI@WULmK@L@LVlƒLnmUIWV@aknƒ`VXUJIVlUVVbUX@¤mbnLm‚m@UXk@mm@Ukaƒ¥@kV@@KkU@aUKWbkLWVkIVŽk@UbVlmX@bU@@mmL@bn`@Ln@llVLVk„@XVVU@`VXUš‚¼k`VULka@VllVIn¤VU@@bl܃bkx@bkL›škKƒn@bn@@b@JUnV`UnVbVKlVXUlbn@°ƒVx„@@b„nVbUllVn@V—VK@UnW@UVUšlnk‚VÈޚxVb„VVI„xVaÆ@@aka@UVaU@@a„k@Wl@nbVIƎ@Jk@„L@VlXnlla@VJnw@UmwXU@aVK°ÒnllnLlb„xnKVaV@l¦²nVl@llL„x@XVVœ‚͐š@našx@U@al™XUVa‚LÈþV°XxWXkK@šmLnlUb@b‚xnLVlVVkb@UJ@xWXXš"],encodeOffsets:[[112816,32052]]}},{type:"Feature",id:"4203",properties:{name:"十堰市",cp:[110.5115,32.3877],childNum:9},geometry:{type:"MultiPolygon",coordinates:[["@@@a@w@kV@nbVK@ƒnUla„@la„Ål@nlVakwWX@WkLšaVmšwV@anK@UlIXmWkk@@mmLkWlwk@U_mKXwWK@U¯K@UU@ƒVUa™kmƒkI™yUUVUmanU@mlwkƒ@_mWXaƒUWU@ǃ@U@aUaVwUKUIƒVkK@UWIXƒmaV@k@Vm@UnwlƒUamk@V@„ULUamxUJkU@Iƒ`WkkK¯XWak@@W@IUV™LWJkXkaÇVUKƒ@kUmbmUUƒUKƒbkKWUkI@ƒkKÝ@@aƒUm»nI@mƒU@UnWV_@aUmWbkLUl¯b@a›kkk@WkkJm_k@UV±@J@b›nU@@WÝIUJVbXL@nlJkx@„Wn@VkJmb—LmUƒ`VbUL@xVn„@XVƒŽ@„mVVnnJVbU„ƒx@„V„nVUbVVƒx@šn„™bUK@bƒ„@bƒJ„šm²„VU‚lbXzVJV„„JVbn@@Xmb@V@bVJÈ@‚Vnkn@°aVVV@šX„KnalLVmšUnnVKVlnLWlXX„Klk°š™šXŽWškLUVVV@nU@ml¯nmbk@W`Å@mb—LWm¯UƒxnêVèk@mbƒVƒnUK™@kKmXk@@JUI›lÛLllnbVnlJ@LULnlÆaVLnŽV@nkVJ„@lkô@²bÆm°w„L„WV@VXšKšVXI@W°ÆVšK„b°U„JVIVV„¦XKVL@l‚InaVÝnUl@@bX@‚™nmVL@lVL„lVLVUnbVW@xXn˜bœU°¤V@š™„a@kWKUUn@VlnL@UV@Ü»@mX@V_ƒakaÞ@VK‚¯@kkW"],["@@mUkUUm@nllVKXXVK"]],encodeOffsets:[[[113918,33739]],[[113817,32811]]]}},{type:"Feature",id:"4205",properties:{name:"宜昌市",cp:[111.1707,30.7617],childNum:9},geometry:{type:"Polygon",coordinates:["@@°`„U@blšUbUVlVkn‚ŽUbV¼Èb@l‚XUÒkVUVVL@lVX@ll¦k@UbU‚›@kmKULUbl„@`nXšŽ„V@XW`nšUbV¦šbmb@lšV@nnlmnU„m@UVnb@xVV™VkbW„nb‚VnVa@an@UaVU‚JXnWlXX@l„¦@ŽlKÆX„bX‚V@VV„@°¯°xXx‚XV@nV°UVWU_VWXkmaVnWVkn@lln@lb@UVLXWlnX@˜aXUmaVK@UXU„U@WVI‚W„XXV‚U@¥VKœ@‚Uގ„„‚a²LlV@kV@UanKma@UVUnK@UVLXyVL‚knJ@UV@@UXKWUXaV@Vb@mVLnKW„m@aUUm@@UkK@Ula„LXKWaXI@alKlmUk@wVKXL@m@WWn@UVa@K@wna@aW_XWWkXbVW@k@U¯WWwka@UUaVIVƒkU@m±@U@@wVKkaš_@VV@XUVwU¥‚šyUkm@V±ÈUKk»ÇL„m˜mLk@ó£kmWwƒm@U„IkWKXwWU@ƒkLƒwkbmaƒbkK@VƒLkmWIUKkUUƒÇIǫJ™XÅJULVŽÇLUVƒ@UK™@kI@WVI@UaƒWmXVVUL`±kÅLmKkƒƒkƒÅ@Ua›XXxWVXŽVbUXll@bkJ„b›„@bkVUVlnV@X"],encodeOffsets:[[112906,30961]]}},{type:"Feature",id:"4206",properties:{name:"襄樊市",cp:[111.9397,31.9263],childNum:7},geometry:{type:"Polygon",coordinates:["@@@Xl@Xb°WlLXl„_@JlVVInwVbVK@ƒ@UnlVbk„mx@VUnl@U@nbW„XJ@VlL„UVJVLUxVb@b@VȄ‚@XV„VWbnX@`l„kx@nmVnbUVVVšzlJn„šlVb„UV@@V°L@VXLWxnLV`l@kxlXnK@nl@XlWn„`Xnl@@UVa@VÈKš£VLVanW°U@UVU„@„`VIn‚mV@„nV@Xa@aVW@UšalkXKšblI„yƍXnlJXbl@@VV@nklU@`„nVK„LVKVb@V„U@UÈK„UVKšIlUX@V`lIVbn@nblVVmV@@XXJšUVV@knKVn@`@X‚VnK„wlLVmUUU@ƒU@aXL@WlU@UUW@UmU@KkLWaXkWmXUWm@U@ƒnk@UmK@U@UaUVUUKV_@al@namWUI@KUƒK@aV@WUIƒbƒ¥ULUJkIm™ƒK@U@K™V@U@a@UkU@K@wVaUwlU@mUƒULmKUkV@@anIWmUK@I¯„mKkl@LUb±lUakLmk@WwUKÝVUIm`¯n@Uk@makJU_@ƒƒJma¯ImwUVkKƒb™aUÅ@wWaU@VU@mXIVmmUkJkwm@mIlUKWzUK@VmLUV@VnbmLVbU@@lkU±KbƒƒÝV›@UL@¦VWUƒWXUJ@XƒVWV@VULnbWV—bW@kmWXUK@Vkam@kkm@UlmXUŽnbWlUXV`UX¯VmUU@Ul@Lll@nnJ@LƒnWmbmš@b™`ƒš","@@kUUm@nllVKXXVKmU"],encodeOffsets:[[113423,32597],[113794,32800]]}},{type:"Feature",id:"4211",properties:{name:"黄冈市",cp:[115.2686,30.6628],childNum:10},geometry:{type:"Polygon",coordinates:["@@VVUnWVXnVJ@„‚U@V@VXŽV@@IVJUnŽ@V@L@KlIVlVanLVbnVlI„ƒn@@a@Kl@@I„JlI@aXU@KlK„kVblJXU„VlU@V„bVkVKXn@VlxVa²I@VlVUxln@bšJXklaVWnLmÅ@y@k@ašI@W@aXIlVVaV@nnlKnLVW@IUa@a@K„UVVlI@wXKVV@IUƒla„@lUXwWƒnƒnalLlxXLll°@XwVKVaXIl™nb˜@nln@Va@U@k°ƒUmÆUVaXI„JV¯ÇUmmkU@WaKmakVm@U@aVKkkmKkVmIkǰ£@aUUVaVVnKlkX‚mkƒ@ƒlUVaX@@Um@‚™UmlUXV„UVU@w‚K²¥Ua@I@UV™l@U™V±UIUǰ»VkUmVI@a@U™m™ĉ™¯V±bŹĖğaÇL¯lmŽkX@‚óĀ@ŽmšÝêb±WkLƒn@xXx@Ž@b@V@LW@UbƒlţXƒ`kxWnXô¯¦ÆV@L@JVLƒxkK@V@bkz°l‚lXz@J„UlVla@XUV„bVKXnW`XXV@laVV@V„X@V¯xƒx@xULVbUJ@n@LU@VmmakbUK@b™IWWUUVkUmkLm@VJkb@nUJƒ@`V@kX™aUaVmmLkUmJ@Uk@U„±lkzmJUb@b„VUxVXU¤ƒL@JƒX@VlL@JkLUVU@mnUl„¦@V"],encodeOffsets:[[117181,32063]]}},{type:"Feature",id:"4210",properties:{name:"荆州市",cp:[113.291,30.0092],childNum:7},geometry:{type:"Polygon",coordinates:["@@ÈJV„lVVLXJln„K@UlL„anbla„xlK@„XVWxXLlƒJ@V„nXxlnô¤l@nKn—‚ƒÈKl¼VL²Ç‚Un@Vl™zŽV¦UxWVU@@U™`lbUL@xV@²@@nlVU„UJVb@VlbXx°XVWX_VKUwVKVa@UVKUUVk@KnblaUU@wnWl@UX@lÆ@@a„IVmUk„™šxVJ„U„bܙ@Uk@WWnk@Vƒ„™Vm@I@m@Un@m™XUlVlUnJ@knJVU°@@aÆLX@ƒllL@¦nJV@XblLVa²U@UlWš@VX@`@LV@@bXJlIXml_lJœU°b„KÆLnVVl‚@ö—Vƒ‚mXaVIĢllUlVnLVlX@@b‚ašnnxšV„L‚bn@°ÆXmmkĉƒ¯w±™™™Uċ@KÝÅƧŃÝ癙Uw¯ƒm™¯k@W‚kV@¯UIUJW¼kb™Uƒwk@W`@¦Uônb@VƚlÈ@VU@ƒƒ£UWWnUÆUnmJkUÇ£VWUI@aUU@WkI@Uƒa@JW@k£kaWVUKmnkKƒb™kkVWb—VmUUmwU@kk›@UakUUa@V@nlx@lUb±lUbnnWLUyk@UamœUK™@mlk@Wb@VXL@x@xWI@a¯Ž¯V@bVn@LkKmL@`XmKmVU@@bkL@V±bk@Uaƒa™L™KUVƒIƒ„™W™XamVVbUK@b@Lm@UWkxULWVUnm@UlUX"],encodeOffsets:[[113918,30764]]}},{type:"Feature",id:"4208",properties:{name:"荆门市",cp:[112.6758,30.9979],childNum:4},geometry:{type:"Polygon",coordinates:["@@n@lxlInVUnWJ@nUVV@Xb@xVƚb„alLVUnx°Jnb„I@„V`lInbl@@V°mn_VJÞUVLXx‚@nllKVb²kVa@KlknL°ƒ@JVLXnmJ@bU@VlnLVKV„@nX@lUšKVaXal@VKn@¥°L@Unw˜bnašV@KV@VUX@lVXI@KW@@IXWV@laVL„„KlaXUVVnkVWV@lwXblIXWVkVmšaU£VaUmVIkU@y@WakKUamU@UUK@kmK@w@@mK@LƒV¯™U@WwkmULƒamVVUU@ƒƒIƒbUKUa™kmƒm@UakLmxU@UÒWlULţÿmwkIUm@a‚kÈblW@UVƒUUk@JW@XkWWUkUKUIlw@aUWknWUUmnIWƒ™aUwVaۚƒaƒVUI™wƒšVlUnƒJ@bÅ@@kVWk@mX@xVVkbma@LUlVVUL@VUbULVxULW`UX@V@lUXWaXlWXX`@bmb@x@LUb@VmŽXX@‚@nWKUL@xVlknkL@bWJXbWLƒKkb@VlL@Vn@VV@bƒnX‚mLUK@nUaU@WbXVWL@VU@@V"],encodeOffsets:[[114548,31984]]}},{type:"Feature",id:"4212",properties:{name:"咸宁市",cp:[114.2578,29.6631],childNum:6},geometry:{type:"Polygon",coordinates:["@@ÞÆ‚LČ@šV‚š²š°xĊ„nlWnŎ¯m@aƒK@„„°‚n„Jšwn™VIUaÆJšÅ@wšwV™XW@aV_l@²V°lĊwlaXLšwlUkalVVaX@lVXI@a˜UXJ@U°UU¥VIVKVklanLVa@VÈIVV@nk@aVa@mV_@a„K@klKUa@UnKWk@@lU@@UW@@nUWUwmaVIXƒ„lV@mLXblJ@kV@kk@KU@WƒkUWVÅwkLmW@UmL@lUL™KULƒak@maUUÝwUJƒIb›KUUƒ@š™aWK@kUWVkUwVw@™mÝ@™I@wkW@a›ww@LU¥™kƒJ@nVJƒIkVVnkV›UkyUIUl@xWUkaW@@°kz„ŽWxkLUWmzk@@bVVVš„b@‚@XlVœ@Vl@bVbUn™`Wn—@Wb„VVI@`„LVbXLV`mnU@@lƒL@LUŽƒak@ƒLk@WbUJn¦@lVb@xVb@n"],encodeOffsets:[[116303,30567]]}},{type:"Feature",id:"4213",properties:{name:"随州市",cp:[113.4338,31.8768],childNum:2},geometry:{type:"Polygon",coordinates:["@@„@nš`lw„k„ƒ„UmUVWX@lk„@VanUĠ¼V@@mX@@nVV‚VXLmJVLnK@b„V@@J„@VUn@VaVUUUVWVLV@@Kk_@almaVkUU@WVƒVUVLXmmk@wUaUKUV@°™@kmaUaÈmW„mUƒVklaX@lVnxl@@UnaUk@ƒVUVwVK„nš@VVn@VbVJUknUmmVmk_Vw„KUUm™Vak¥@UVKVIkW@UmIVWkIVƒkmmLkwmVUƒ@LƒUU@VVXL@JmLUbmK@UUKmkKUUmVUaUnÇlk¯™mJUnmLUaUJUaWL@UkJ™ƒUƒ@ƒaklkU@¯@KWLUmUUWVkbƒLƒŽUKkbU@WX@JX@@LWJkUW@UVU@@L™Umb—amx@V¯K@¦mŽULk@WbUb™LkVW@kVVxUb@x@LlV@V@b@VšU@L@V„LnšlJVIVK„¦„aVJ@XUŽ@b„LV‚@LVJnXmbk@@bU`VLUVV‚b@V@VnL@Vml@„@VXnWVXnWlXblK@LnV@VVX@VkV@XWK@b„VV@VV"],encodeOffsets:[[115830,33154]]}},{type:"Feature",id:"4209",properties:{name:"孝感市",cp:[113.9502,31.1188],childNum:7},geometry:{type:"Polygon",coordinates:["@@VnXK@L@°lVlk„b„@„VšlI@VXKVbVIVbnKVmnI°šlŽÈkVmVbnUVVlLnVL@VnLVanK@IWKUUV@„V@KV„nUlxnKlnU„lJUXnJ@VlXUJUL@Vl¦UbnšVVƒLUxl`UnnnmVVlnVK„bšmVX@a°Ý°LšaXJV@VUnKVXVK@LnKlLUbVVX@VwVJVn„@@UU¥V@@UUK@ƒmaUVUkkJ@L@K@UmVUI@JU@W@U@UV@ƒUIWmXUVmUUÇ@UVmIlmnmakK@akaW@UwVUkKVnUlKVwk™ƒVU_WKUkVW@UXaWkUa@w@VU@XaW±@IkbƒKƒb¯L@WƒXkWƒ@UakL@UV@UmVUmL@UXWVL@ašUƒVUUUVU@yUUƒIUa@wUKWVU@kƒ™™Wk¯UkwVKƒLUx™K@nVxUlUUWVUmw@wƒUUyXWlX¦WbUV@„U‚@blbUVVbXXƒl@lVL@bk@lxkVVnVx™¦ƒ`UnkL@V@L@Ž‚@@xnL@lVL@VnVVblLXb@‚@zlVUJVnUbV¤™bUnUlWXkJWakxU@UXml"],encodeOffsets:[[116033,32091]]}},{type:"Feature",id:"4201",properties:{name:"武汉市",cp:[114.3896,30.6628],childNum:1},geometry:{type:"Polygon",coordinates:["@@nbnm‚knJVUÈ@@Uƒ¥VknmV@VUlK@IkK@U„W@I„KV£UWVwƒU@aVanIly²kVƒl@@VnIlVnKUnVbšblWU@@_„‚VI@mlaUIn@lKVnUlVVXXšJ@aVLlanbUnV@@K@mVIUaVK@w„w°w@UƒW@UUUkbU@WWX_WmULƒaVU@WkbkUƒV@IWyk¯kly@a@UlL„wUK@I@KÅUW@ѱUm@wl¥kaƒ@@_Vw@ķƒa@akw@ƒkKW£XVUVwVwUaU@VUU™™xWKkbĉx¯k±Uk@U`@bWXUš™x@x™ÆÅIVbUJmš™xƒImƒ¯@ƒ™Umx™nUVVbnJV„@Lƒ@@ŽkV@bVnƒ@UVULlx°VXlššl„V@XUVL@xVb„JVV@zUVVVUV„™V@bUKWX@VnKUVVnU@@VlKVb„@lX„W@X°K„a„Lla@JX²Wb@ŽUV@@xVbXlWb@VUXVlXLV`Uš„lŽUxkLmVUŽlLUVVxX@lb@blL"],encodeOffsets:[[117e3,32097]]}},{type:"Feature",id:"4202",properties:{name:"黄石市",cp:[115.0159,29.9213],childNum:3},geometry:{type:"Polygon",coordinates:["@@VšUVV@VbUx„aWUœblUVmnKlX@bXJVIlVUxVVVIU‚zlx¯š@‚VbnL@x‚x@UVaXK„b˜@Xk‚WU_Vm²klW„XVK„Žl@nXV@@w„mlK²X‚aÞén™@ôÿ@lWn°kUKmmUљUmm@ƒwkImWU@UakL@bVLUVċ@™bUK@alIXKWK@™nXnKmkUVwƒ@¯b@L„lUL±W™n@KULUaW@kL@lƒL@bU`@nUb@bmlU@UÇJ@UUbmKkblŽUULUJV¦¯V@VWI—V@bWJkUW@UbkUlbkV"],encodeOffsets:[[117282,30685]]}},{type:"Feature",id:"429021",properties:{name:"神农架林区",cp:[110.4565,31.5802],childNum:1},geometry:{type:"Polygon",coordinates:["@@n`lIXll@lœl@b°aVklKXaVn@bU`mX@V„V@nmJn¼„V@bÞ@lL@„lJXVlL„aVLV„nVnalV„@VLÈUlblWXIšKVU@J„™š_‚@an™na‚X„m@KmI@mkk@KVkWWw¯w¯°ƒ@UUU@WƒaÅWkL@ƒ¥@kWWXkWmIUVVbm@@bUbmUU„ƒbW@UVk@mVkU@U¯ƒmKVUkaW@aULƒÆVbƒb@VÅ@Un@VƒLWl¯Lš„"],encodeOffsets:[[112624,32266]]}},{type:"Feature",id:"429006",properties:{name:"天门市",cp:[113.0273,30.6409],childNum:1},geometry:{type:"Polygon",coordinates:["@@@K@UlKVm„_š¥UwUmlUkwl@@aUK@k„kWWUaVUka@aV@ƒVUXaW¥Xk@WWIklm@ÅxmI™VÝUkxkaƒ„@bWJaUL@„W@™l¯UULU‚ƒbƒkV™Ua¯bm¤UnÇUkmUšUx˜b@VkXÇal@bVnlJnxŤĀVKXkVÑV@nwlKVbn@n„šlVbVL„a„J@„VV‚UnU„bVKlnXxV@°š„U@KnL"],encodeOffsets:[[116056,31636]]}},{type:"Feature",id:"429004",properties:{name:"仙桃市",cp:[113.3789,30.3003],childNum:1},geometry:{type:"Polygon",coordinates:["@@VK°VškX@@ƒVK‚bXI@a„ƒlblwÞVšUnJÆwn@lkXJ@X‚WVz„V@xnx‚VXUVVVkUw@mšLVw„KVU„@Um@alU@„@@KUƒmIUaVUšmnwmw™mb@aW@UkmKkUkVġkUJWbnU„õ˜@UkmUÅKƒL¯a›VkIk`WnkJƒ@xVLUVVbUbk@WlXbm„VxnxUblbUV™@@VUV@nVL"],encodeOffsets:[[115662,31259]]}},{type:"Feature",id:"429005",properties:{name:"潜江市",cp:[112.7637,30.3607],childNum:1},geometry:{type:"Polygon",coordinates:["@@UbVxšbX„mJVnXVlmVX@bkxVJVLVlXXWlX@@IVl„V‚U—aVwV™lnÈVVmn£°aVbUš„l„aVUK@mVU@Uš@VUkaVamwUwnƒWaXkl@VaUaVUUK@w„WI@aU@@K@_UW™@kX@V±VUbkKWaU@mI@¥kK„kW@ÅK@b¯@UVmI@lmIkVkUWVnšm@@V@n@JUnƒšU„@ŽmlXXl@@V"],encodeOffsets:[[115234,31118]]}},{type:"Feature",id:"4207",properties:{name:"鄂州市",cp:[114.7302,30.4102],childNum:1},geometry:{type:"Polygon",coordinates:["@@°¥WóXmlw„_ŤW„kVaX@@K@U@a@WwU@mWk@ƒULƒWkX±lUnV`XWl—@ƒaWLUb@Vw@wmKUa@°™kw‚yVUJUUVwkUUJWI@akWmLUnkV›aXVƒbUxUVWX¤lL@„lx@b„b@ĸUx@`„@lbk¦@x‚n²VƄX@"],encodeOffsets:[[117541,31349]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hu_nan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4312",properties:{name:"怀化市",cp:[109.9512,27.4438],childNum:12},geometry:{type:"Polygon",coordinates:["@@@n„‚@b@XnJ@k°x@aVUnl‚UXnV@@VnJWUJV„nIVV°ŽUbVVVL@޲LUVa°V@aV@nm‚UXblLXWVXVmVLVK@an_„`@X@l°„VlXXW`nX@Jmn@b„@nV@Lm`„bUb‚n@VUVl@nIVbUlƒV@LkJUnVV@xVblVUbU@ƒzUKU@mx@xUnn@@WV@lbUb@šnVWXX‚V@VIV@VUnJ@VUz@JWbXllI@VXVVL@ŽVn@„„Wlb@„Žl„XVlL„aV@VJ@XX`„kVwVl@bk„‚bUŽlVXIlƒnLVa„mVwV@@nV@XaVJVbX@lwV@n„@nV@VWnIVVUŽÆ@Xx‚a@I„UUKmk@mVƒ„IXmWUš™VJnUVU@anaVwk™›U@UXa@W™@m_@a¯@@K@UVƒ„bnK@blIlbXa@WW_n@VƒU@¯bmyƒUkUJÇÅ@WU@kWKÅwƒnm°KVkmankVWnXVWV@UƒƒwXkV@mƒ„UlLnaƒVaX@VUn@VnVK@xlnXWšU@a™@@klak™Vw™mUaV@™wmIÛ`m—@mVUXmlIXƒV‚I@K@aU@UaV_UK@wkUmmUKWXŽmVkUƒL@mƒƒU_nK‚™@aVU@Ukak»@U™™@ymUƒ„¯™ƒUUƒVKkam@™nka@ƒmwkLWb¯mkaƒ_VaVKUƒ™IUw@kKmU@WK@UnƒmaULkU@wUalWV¹U@@WUI@WU@‚_@W@U@mƒU@WbbUK@Um@@UmbUwWWkk@WU„a@anUUwlWUwUU@wlJVUnnV@@mnI@m‚K@U@w„a@wUm@_mƒVUUaVUkƒƒƒ_kċUk™VWLƒ@mlU@kn¥W@UwUWV@VÝU@lXLWVUbVLXlVIl‚knmU@VUJk@@„ƒ@™kVmwmVkxU@@XmVUb@xnKVLl@VxUxkIU`@bWVXX@JWL@bkb„¤@bmUUU¯Kƒkmb@V™VU„VVn@@„Vb@`lnœxmb„lUn‚bk„@xU„mV@bmWbUV@VJ„Il@nVUb‚K@nn@VbnJVIlJVkXJ@X@lmx@bnnWVXJWXU@UlU@mk@@llb°x„IUbnJ@VWbXVmI@JVX@bk‚@bWL@JUXUK@U@Uƒ`n@@Xm@XVW@@nX@@`ƒImxU@@JUI@KƒLmK@UÅUUV@VW@™¯kUU@UamVUUmJ@n„xmLKƒkmJkwkKm_mKXU@aƒU@b@Wk@ma@zUJVUmbUlU@™xnXlWlXXblK„¤V@@nUVVLkVš„l@Xb@VVK‚nXKVx@znW@X‚@@lVK@X@JXbWbnn@JUamLVVXIVxnK@aWUX@˜x@VnI@WlI@anV„IVxk‚l@lbXXšxVVVJVInbV@@ln¦ml@XXVWbkJWb","@@XLVKVXVKUa@UUUmV@l"],encodeOffsets:[[112050,28384],[112174,27394]]}},{type:"Feature",id:"4311",properties:{name:"永州市",cp:[111.709,25.752],childNum:10},geometry:{type:"Polygon",coordinates:["@@lxUXV‚lXUVnlVĢ„JVbUXVJV@XUW¯„VIUK@klW@Un@„nl@V`XUVL@l@šVx@„XXW`UnUbšxUlVnUšV„lb@VnJšUVVVInJlUšVnwVklKnw„LVJVšV@nIV@nbVa@KVVVUUa„KV_nVVJ@_VW„nV@n¥lI@anƒl¥X_VKlwVlULUVVVš@šU@VXL˜ƒ@IUmn@VU@wmKXUWU@m²šl@VIXWWkWUkWlkIVamUXamUnmWUU@@Un™lK@XJl@kVUk@mWKXkl@@aVU@UVWUUVa„In`VUVLnw@U@K@Uƒƒ@w@UVmUUƒ™°K@UnV@bV@Xk@KVm@amk„aU£VWUUmUUwm`UbULka›KXU@kVmU™@aV_UWVIn@˜y„XXK@klmV„V_kWVUn@WUU@UƒmaU@™wnwWanUmmXkƒam@UakLmK@b™xUUUU@Km¥Vaƒ¯@ƒkUaVUlm„UU@mUUÇmUk™Uyƒb™bUa™XUWWbÅLmL@V™aL@WWXUKmmk@a@UUK™XW¥kU@VƒUkxmVkUWbUJnVJ@nVJXzWxkŽ@lVbUX@VVL@`mbUnšŽUn™VV¼k@Ulm@mwLƒb@lmLUK@UamƒWkƒK@£Ua@ƒ›UkJkUmbVlkX@bWbUŽVŽnnUVl„@bšbVK@VX@lb„V@nU¤šx‚²„Knblb@x„V„ô@šlŽ@b@l@XWxnVl@„VV@XLVl‚LUŽUXV`šbXXmJU@@bm@UUkLW@UlUKWUUb™wUm™L@nklVVmVXXm@@bUKlÆn„‚XkllVUVVL@nUbV‚@V@nnV@xUn¯U@JW@UX@xĉ@™`m@@LV@b"],encodeOffsets:[[113671,26989]]}},{type:"Feature",id:"4305",properties:{name:"邵阳市",cp:[110.9619,26.8121],childNum:10},geometry:{type:"Polygon",coordinates:["@@XIlJšI„VVK@n@VVVKnLVwVmnLVK@U„@šw„J@wVIƚ°X@ÜȄUÈxll@kn@VwVaXJWXn@@WVL@UUKVKV_U@@aVK„x@U„aV@lk„@XylbUaV_šVnal@W„U@a„I@aV@@aVUl@Xm‚UXWaXml@@kk@ma@V_UnUV™UUWJUa@kkaWLUmk@@LUVWUkJWkK@¼UnWJƒIkV@b@JUIm@Ul™V™m@Uw@a@kWƒXWKUknW@ƒWUU@k™mx™UkVmIUJUU™VmI@UkaUƒV™UmVk™wVaVmX_WW@ƒUw@™@kUKWVU_k@ƒmm@@VkX@lVLUJƒX°WVU@UIVWUaƒIUġmkVUkWUVWkwWXk`mI@¥kUVƒUƒUn±@m›XkWknV„UVmmU@@XƒVƒUk`@Xƒƒƒk@¥¯»mbĉó@mkU@kU™ƒƒ™KmX@˜UnmL@lULkKUƒWUU@ƒbUaUnƒ@Vb@l„¦Ub@l™@UKmnƒKUnl„UVVbUVn„@`Vn@xƒb@x@VL@nmJ@nU@mmUVkI@xVVVxkXVxmV@bƒbXVl@Xl‚XVxna@Vn@@VVL‚aXaV@n„‚@@V@X`V@@XVJ@XV@UºkXVb@xlVVKnbm„@VXLV@n‚lL@VxšJV„ULUb„`lb°nXalKnx@„lbšmn@lbULV„„V°š„ƒnV@zšš@Vl¼lb@VUV@bšmLV`„„@n„KlVnU‚XWVLnnlV@xVLU`VbV@"],encodeOffsets:[[113535,28322]]}},{type:"Feature",id:"4310",properties:{name:"郴州市",cp:[113.2361,25.8673],childNum:10},geometry:{type:"Polygon",coordinates:["@@²zVaVlnVl@nšVk„Jl_XJlIVmnL@mV@VXn@lV@‚XzV@lyV¯²U@UlJ@XVKnVVIXl@UVLV`@n@J„I@mlI„KVLnUlVUVVLXašKVLl@nb@ŽW„XV°KUnVV„L@xVJ„L@b@LUVVVU„˜VXbmbVbn@@lUbm@x@XVVVŽ@@˜@bkImx@Vm@Xbƒb@l°XU¤„a‚L„mnL@bl@@™VUX@VxnV˜anLnƒWƒ¥XKVwnUWXmVIUWÆLVx„L„w@wVmlU@¥XƒWUkwlÇn_Uw„WV@VU°wnU—ƒy@aVškVlnL@lVn„w@VlJ@b„X„x@bVKnb@U@WVUl@@Vnbl@XLlK@aVLVKnxÞn@a„LlmUaVU™ƒm@ÅknUmaUKmVk@m™kk@UlWUkVm@w@kUU@W™U¯™¥@w„Ç@aVIlUV@kUWU@UUm»@k@mKVkUKUwƒaUaUa›@k„kUWJkImaU@UK™@maUzk`@zƒy@XmJkL@UUJmUkV@z›@kŽkVmK@¦UbWL@a@UbmKmwUK™Xk›VUUkmVkw@UUKmL@WUIWa—JW_k@@WmI@mk@WkWULUUVKUUVm@šU„bš@‚nUǃ@U@w„™V@Ua@aƒL@ak„›l@k™UƒJƒwó@@L@V@„™`@œƒJ@xnn™šmV@bkJmUó@ƒn—JW„UUmƒU@UV@Lk„WlnnmVXbmxšxV@nbV„V@XVm@UVlXU`ƒUŽkn@lWLƒW—zm@UJVXU`@bVšUn@lWVœLlbVKVan_VxnVVVUXV¤ƒbnl@bUn@LWlU@@amU@V¯L„šVVUn@V@x„„@V@L@VmxUKUVm_ƒJUbVV"],encodeOffsets:[[114930,26747]]}},{type:"Feature",id:"4307",properties:{name:"常德市",cp:[111.4014,29.2676],childNum:8},geometry:{type:"Polygon",coordinates:["@@l™U™mkUwUyV™@VW@¯Va—VmUU@KVUVUVLnaWƒnkUÓV_@mVU@݄w@ƒka@kVmƒUmK@IkaUamKkXWaUW@WUk„™@@KVU@aU@™L@J@XÇVUKVak_mWkLWakVUbmLUUmlUVKUU@kUWW@UImJ@xkLkKm@@Xƒ@ó݃@UUk@UKƒV™ƒULƒKƒXkWWbkaƒIUƒWU@mUk@WLaUJġ™ƒ@@XÈÆVIl‚„Vnz°aV@U„m@X`@XWbkakJ@amLƒaU„@V@L°@@bn`š@@XWb@VœVlšUxmb@bUVmVUI™šXVWnƒJU„@nnlVLƒV@JbWzk`m@UVK²V‚x„k„LVl„@Vn@V„„°xVKVkœVVlUblx@bU„‚Æœ@@nVnUll„kx@VW@@VkLWxUL@bÝ@kKkVõV@bkXVVUVƒ@ƒVkUkV›LkV™a™@@™ƒ¯xUxmX@JVb°WXkK@Vm@k„Vb™bn¤‚xUXkJƒblxnXÆK²l‚_@Wnašn@ŽUL@b‚JnIlV„@lUœ@@¯ô@lWȂIVKVm„U@aXaV@lwVXn@@K@UVKUUnU‚bn@lWšX„ƒlJnUšLšKV@„„l@²a@UlK@aV@naVX„WV_nKlL@KUm@a°U°@VXL@a@wWmXal@„k„@VLn›V@@bl@VnX@mwVa²aVU@mk@"],encodeOffsets:[[114976,30201]]}},{type:"Feature",id:"4331",properties:{name:"湘西土家族苗族自治州",cp:[109.7864,28.6743],childNum:8},geometry:{type:"Polygon",coordinates:["@@@KšL@wnK±nƒnm‚—@WUk„ƒÜÈn@n»@mVamk„mšU„„l@V™nmmU@wUan¯VKšLn„VWlInyWUœI@WWk@KXU˜n@mnUmU@WœƒmkV@ƒkXašaVaUm‚Ikƒƒ@kaƒX@ƒUm@UKWU@UkJWkXa@IVy@UmIUVU@UJU@WXWmU@™VakaU@@Xm@Vm@wnwV@VL„yV@VakUUa@wUUVmlI@K„UVkUamJk@VU@UmVaƒan_@KmUƒ@@anm@ImWX_WWUk¯ƒ@k@Wƒ_m`@bULUKUnUWWXkKWaVmnU@@b¯UUbVޱK@UKUUVa¯UUmJUƒVIXmI@UU@WmVmkUV@b¯w@lmI@W@aƒ@m¯LXbmJVLklWL@V@XXŽmbVVU@@VU²Ul@VlX@bš`Xx›zUmkUVÒlŽ@bXLWxXVlš@V„bkLma@nmVmULVbmVUb@lnzmbUÒVl@°nLV„lJkn@bmJk_ƒVmmkblxÈx@LUb„xVb@V™n@JmLVŽUš@„nV@¦VbnJ@lVVbkx™bm@UxVLV@n`UnVVV„kl°z„xVb@VU@@ÆlXnWm¦nbVK@XVVUVVl@X„KUV@nVL@WnIWŽXLVKVLlxUbVKXVWbn@@UnKVLVb„JšU@aVU°b"],encodeOffsets:[[112354,30325]]}},{type:"Feature",id:"4304",properties:{name:"衡阳市",cp:[112.4121,26.7902],childNum:9},geometry:{type:"Polygon",coordinates:["@@lšV@XV@„mXVlXL„W‚X@l@bVxn@šŽšUVkn@VJ@I@alU„JXIVm@»‚LXllIXVVU@Kl@VnXKlb@lVbXIVVUšmVVU`@nbl@@lXLVVVKVbnXWJ@VXbWxXb„Ul™VK„¦nLVVUVVbšb„K@U˜LnK@Un@VxlUV`UnnL@VVL@JV@VUnxnKVbV@@VšIVUnJUVUl@nW„XllIUa„KVbÞLV¼²`V@VIUwlaVmXa@IWanK@U@m„kVƒVUVaX@lšnaVLÈ@‚¥@kkJUWJUaƒXkaUm‚wVXJ@_lWUU@¥n_‚KkamUK„™@amKƒnKƒbV£¯W@k„aWan@@UnwlJ@a@—@UUU@W‚wn@Va@km@UanaWa—UVƒUUVU@K@aƒKUI@wƒKUUVm¯LWUXƒ@mak@UK™LWbUKVUkUmVUKƒLkJ@nƒJ@I@mU_UK@VWkUJmUUL@WkI@V±VU°kzU@Wy@kUm@UWU@@nmKUnkJWIk`ƒIUlm™k@mUUkUb±yUX@VUV@bk@WlXL@nVlUl‚k@WI@ŽkLmš@VV@XVmnnVWbnVUblJXkVl‚XXlWXUJk@±™@nXVWVnL@xUVm@Vn@J—„WK@U™V™@UUVUVKUkkxULW`k¦m„@bkJm¦U@ƒmUX@`UImUU`ƒLVbUVUU@LUbmaU@mJU@U™UIƒKmxkLUl"],encodeOffsets:[[114222,27484]]}},{type:"Feature",id:"4306",properties:{name:"岳阳市",cp:[113.2361,29.1357],childNum:7},geometry:{type:"Polygon",coordinates:["@@@wUklmUUmU@@UVm@wUaV_mmUKmwkIkJmUUnm@™™@UUƒbUKUƒmÛamm¯xVLkbÇÆƒUƒVUzkVUlƒUUKWLX¦W@ƒVUUUaƒKUbmLKm„@akU@aƒmVaUUVIVWkk@wkƒƒ@@xmLlmÅwmbVlXlÝIWVkK@kkVƒL@VWKU@Ublnaƒƒm@b@bšnW`@XUJk@UUWKƒk@UKƒnn‚@xmLUVm@kbVbV„nV@V„b‚@KnV„LWšXŽÆV̦VblŽš„n„UJWz@ƙVóUVbkV™aÅx@¦lVUbVVknWKƒ„k@ƒwƒK™VU„Å„ƒl@zkb@`m_mJ@xX„mbVbœ@llV@n„@llbXL˜UXalUšl„alVnwnLVKlšVbX@@I„V@blJ@bVL@VVVUXȤ‚VnkVÑXmlbnš‚„VKkÑř@UmaVç@±XUlI„xlV„@VaX¯lUVVUšVJn—V@°°nް„Vxĸł°¦šb²¦lJ@U@aUK@kUm@_m±VIXal@„Kl@„bV@K„K@k„m@UmUUaƒK@_UJƒaXU˜@Xmš_VmUk@WUk›@kU@a@m@UƒaUUU@al@ny‚XXWWwkly@¯n@@bnV@k@mVI‚„œVlUUmlU„JUw„I‚bXƒVaUal@K„b@ƒVKVkXVl@VkUU@ylUœVVaVL"],encodeOffsets:[[116888,29526]]}},{type:"Feature",id:"4309",properties:{name:"益阳市",cp:[111.731,28.3832],childNum:5},geometry:{type:"Polygon",coordinates:["@@„ŽÆxXL@l‚V„@̚VI‚bXKl@nVV@„XVŽ„JlbXalX„W„LVKš„„UVLl@VV„@ôބ@@Wn@lLlK@wnIVJX@VX@lVVUL‚VnkVVnKValUXblKnXl`UbVLÈU@W@IšKV@@bUV@Lš@lƒXV‚@VXXblWnLVblb@JnL„VUn@llb@„ƒx@ÞUV@nU`VÔmlX„mbUKUVUV@LVVUn˜ŽUb@°UXš@U‚VzVxnlVškšVnlVnaWƒ@wnIn`@_la@y„kƃVƒšU„L„xl@„ƒXLlmUUVakU@¥ÆwšblUUaôVšU@ÅXyVImƒ™ƒkUaġ¥ÅUWX™ƒKmU@Lƒa@UmUUƒUalan@VUnK@wm„m‚L@V„lXLVVl@VI@WX_™m@a™¯mKUkwW¥UK@_UWWLUVkUWL@WUIkVƒU@JƒwkLUUmJVI@WkXm@VmkKUIU@mmm_@VUV™@™„kJċwUU@KUWkkW@IWW@km@klwkWVkkU™V¯m@kWLU`mIkmkXm@@`@L@xUKWkU@VL@JUU@mbUKVa¯WVnL@`lXUVkU@xW@UbUWVU@UJ@„lnU@m‚nÈmVƒa@bUL™wUb™@@VkxmUUƒ™UV›K@IƒUƒmk@akm@wmIƒŽkK@b™VWXkm@wULUmm@UVW@Ub„mbkKƒVn„U@Wl„xV„U@UXmWUXmlnbUl¯Lmn"],encodeOffsets:[[113378,28981]]}},{type:"Feature",id:"4301",properties:{name:"长沙市",cp:[113.0823,28.2568],childNum:5},geometry:{type:"Polygon",coordinates:["@@lVUllXkx@lln@‚XX@JlXXl‚V@LVVČxlIšƒš@VU@Un`nnV@VJlLUnn@lW@XUJnIVVlK„x@I„VlUVJ@XXKlVVUXKVX@`VLX¦lxVŽnLš°‚an@„„‚bkmVaV@XL@U„KlU@llLXUÞJWkUknaÆxnŽ‚knK@w„@l„@xllUXUJVVUb„n@blV@bnƒ‚LnKVa„LVbVV„UX@W¥XKVL„VVklUVy„U„VÈÅlaUK°wnnÜbn‚V„VL„aVVš@šn@VmnVlIlJna„@Valkn@na@amwm@„UXw˜K@aUUVUUaVa—wWK@kU@UaW@kKUUƒƒ@k™W¯XWan@k„™mmÅ@@I@U@KmLkaVUƒKkLWVUƒk@UVmU@am@kkk¥ƒUƒVUK™„maUb@ŽUb™I@aƒKkkWm@W¯K¯b@VmaULVxUXlVk@UxVJVbUb@xULƒ@ULWW—LƒĕmxVVL@šVb™KUwƒaŲWwX@@WƒUWLU@VbkV@aU@@VUnmJ@VUn@VƒLUK@U‚mUIk@UÇmU@@UW@J@LƒbUmVI@aUmW@@bkXUx@lmLUbm@UbkJ@V@XmlUbkKm@ma@kUaVU@aUK@mImJUIkVƒUƒVUakbWwka@UWKkLUamKUXm`Å_U˜ƒULmaU@@lUV@X"],encodeOffsets:[[114582,28694]]}},{type:"Feature",id:"4302",properties:{name:"株洲市",cp:[113.5327,27.0319],childNum:6},geometry:{type:"Polygon",coordinates:["@@X‚‚Unw„Ė˜KXXVK„@VK@wVaUaUIVwl@kUVWUwVKnb@U°a°LXŽ‚@Xnll„L@bšJVa@VanbšƒVL„U„V@al@@UV¯ÅÇ@Ummk™w@¯ƒyVwnUVVVUkmWV—nKVUƒa@WXkVKn@lUVU„VVVXIlV°VnI@VlKnV@mwVm@LXKWkU¥wWwƒƒ@k@m„X@KX¯V@VUVa@VnKWkœƒV@VUkm@aWa@wkUWwkmV£VÿXUVL@mVIXaò@nW@ašUš@@am™@aUU„UmXmWUk@ƒƒnUW@_maVm™wUkamaUL@aƒwƒW@akI@UƒxUm@kmKUk™lUŽ@b„zV˜m¯xUVU@ƒXVxm`kÈlxXVW„@¦kVUn@xƒxƒKUwÅKVXUJWnXŽmVUxWL„¦XŽm„mK—bmUUwW@UV@šk@ƒšVLnŽlbLm`@¦VVkX@`WIUށxVnlb„WVbXIV‚lI@l¦Ç@UKmbk™W@UbUVU„ƒl@n@VmLXb@JWbUnkbVxUJUxWXXlWL@V@V@XXJWx„zUVVVVKnXW`@bkIUl‚„nLVJUbUIWVXlWV@XklVbnn@xlš"],encodeOffsets:[[115774,28587]]}},{type:"Feature",id:"4308",properties:{name:"张家界市",cp:[110.5115,29.328],childNum:3},geometry:{type:"Polygon",coordinates:["@@@InWVw°wš„@š@šblUœKlUlV„U„@VUUUlW@aöUlUlLÞ@@aVKXwlK@UX@@UlwkƒVkUm@m›@ÅVƒ@akwVaUk›UUlUL¯wƒƒ@UUmƒ@UkƒKƒlw±UULVn@l_XyWwÅ@VUUmJUXU@@mmƒU@kxW@UaUIWbU@@mU@UxƒnUbmKk„WJkUValƒ@aUkUxƒlW_@WUIU@ƒbkKWUJVnUb™bWb„lU@nl›„@XnVmV@n—mWV@LXl@X›JXVmzkJUXmƒ™KULm°Vb@xnVmnUšk@ƒƒ™VƒnnlUb@nm¼m@Ûǃ„Vl@X˜mnm„²ŽmL@x™K@LUl@nULÆx@V@VXVWbXX˜l„@nLlm@bVKœX‚W„L°bnUš@VaVUš@šmšVw„JnwVK°zn@V‚Vb„a„@Ċ¼"],encodeOffsets:[[113288,30471]]}},{type:"Feature",id:"4313",properties:{name:"娄底市",cp:[111.6431,27.7185],childNum:5},geometry:{type:"Polygon",coordinates:["@@lL„nJ@xln@bnlV„‚„@JœLVUšŽV„nVlw@Uš@VašxVK@a„bnUmÇnV@km@ƒ‚I@VUVVXVaX@@wlVVUkW@_mKXU°‚UbVLnaV@‚V@IUKV@XlVL@w@K@_n@lWlnnJV_XK@l°nšU@WVU@kV@nbVK„V—lƒ@nLlƒ„LXU@ƒlmkw@nW@UKVa¯IVn@@aVUUKl@nXVKVn²a˜ŽXblKnLlmVI@KUU@akLUaVa‚UXm@aƒ@wVUVKnLnWlXl‚n@@U@anUVm@U‚Inm@IUK@UmKVmU_kVUwm@@VmL—K@VƒL™aUaVUUUmKƒ¥ULkšƒVWaXwWa@UXImWUaULUUWKk@WnXbWށVWnk@UV@bU@@bƒJ@bƒV@XkŽmb™UU`VbkaWzƒ@klU@ƒb@VƒwUL@bV@U`ULVL@VUK@Xm@XWWIUbUxm@@lkkÇwƒVÛÇW@¯Å™UJ@xƒI™xƒ@@VULmKUnUxmKULUUm@@‚ULƒU™JkIWJ@b@LJUW„kJWnUV@nn˜Ü_nJšxU@VbšnUxlškb@lš@"],encodeOffsets:[[113682,28699]]}},{type:"Feature",id:"4303",properties:{name:"湘潭市",cp:[112.5439,27.7075],childNum:4},geometry:{type:"Polygon",coordinates:["@@Æ`n_VWnLVblKXL@VlbXxlaVb„U„VlUVJnInJ‚@VL@bUVVb@lnbn@lLVank@W@UlIVan@VanK@kVwlW@aX@Vn@bUJVn„a@K‚IX@@VV@nŽVÈl@VJn@VVL„K@UVm@UnIVm@UV@@blUUaV@XK„V@XW@XxƱ„bVxšLUa@™UKWk™@wmmUalk@WXUWkXUVJVaUImKƒVklJ@aX_mWULUUVUƒyXwWI@W@U@UXKWkXWVwU@±_U»ÝKUaƒLVbkJkƒWmXk@UVVŽmIUV™J@UU@UamLmwUVU@mnJ@VUnmV@b@Vm@kkWmXmKULUV@x„Ž@bWnVUbVblK@bVV@LUJknmKkLWa—±bUmULmWk@VLUV@bm@U°JUbVLX@@mlxkn@„WVƒKk„mK@k„"],encodeOffsets:[[114683,28576]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/jiang_su_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3209",properties:{name:"盐城市",cp:[120.2234,33.5577],childNum:8},geometry:{type:"Polygon",coordinates:["@@„n@‚°ĀÞ°@¦ULWKkx@bkLWb@lUlVXXJVbƒnUKmxXV@bm@@Xš‚„LޚܦXlVnš‚mzVJ@n@‚²ÞôkƃÞaȰĉ‚wnljÜó„éVÛnĊīČlj‚ĉ@ō@KÞUlU@ƒkklÇÈњÑlġXɛ@UġƒƒaU@U_ƒW@n™@kaUL@VW@kKmkUV@bkbWW@bkzma@ƒJWI@KUKULƒ@U¦™`@XUJ™U@KmXƒw¯KXkmy@aUIWJXXmV@K¯UU@@bVL@¤VLXbV@@JVXVK@„„JVn@bkKmakVVXUVVVlI@`U@nzVVƒb@¤n@@UlKXLVVšI@V@nV@V‚@ÈUx@šóVōšƒkÅWó@mU@bk@Ýwk@WbXxm@@J@zV@kVƒbV‚nLWVUX™WUXUŽWLUށ@Wl°z@VkxU@UVWIxWJkbƒĬ„nW@@bUl"],
    +encodeOffsets:[[122344,34504]]}},{type:"Feature",id:"3203",properties:{name:"徐州市",cp:[117.5208,34.3268],childNum:7},geometry:{type:"Polygon",coordinates:["@@XKVX@WnIVx@K°Lnll@@I°K„nVašU°x²mlxš@VanU@aƒk@akmV@@w™@Ua@aUwVwUw@w›@UK@£kaĉlóIÇVkޱ@@kUKmVkIkxW@Ua¯UUm@UVI@WVI„JV@ƒ@Um@Uana„U@m‚I@J@XV@XaVlkXƒVaUUWLUyVIXmWak@ƒXkJókƒJUL@KWkk@ULU@Wa™lUIkJmI™mk„VbVš@lV°kXUKWKULU„mb@VUlVnƒb@VV@IVKUUmU@ak@@bmV@xklƒUƒU@UKmV@nƒJVbkXƒKUamLUJ¯UUVmI™bVV—Ll`@LƒLU`m@kXUVU@V„lxUK@xkIWbUKƒx@V‚kVVn™b¯@@U™@ƒxk‚mbkLÇK™b™@@XnJ@LmVklƒ@@XƒlUƒVkxƒakVVb@bVnUbU@@x˜VUšVb@š„ŽnIĊ`šXVVôJš_„K@xlU²Klk„U„@VaVVÈm@kVUVmnamUUaVƒXIVJ„@‚ç@¥nkVLn›„@@XVK@VUX@JVUV@UnVJVLUJVLUVlšnI„b‚KnU@m°™VanI@anV‚KVL„an„lK„blš„KÞk@¦@¤@„VKnLVK„L„KVzlWšLX@VmV@VbnU°@Ualk™˜WXLVU„KWkUUWšƒ@£Wa"],encodeOffsets:[[121005,35213]]}},{type:"Feature",id:"3206",properties:{name:"南通市",cp:[121.1023,32.1625],childNum:7},geometry:{type:"Polygon",coordinates:["@@VJ@bnzWl°L„xnW@LšVVI@Wš_V¥„@VKVL@LXJ„I‚@nbly@aXXla@aVUnllLX@@UVKlbš@@m„XV`V@„bĢ„lkČÇÆƒȘ¯šwnĕVĉVÿšUƒUĠƒŦğlXÑVǵ@±ōLʵ˝lÇbÝÞ¯xk@Çkķé™n¯@ğŽġƴǫ@kVVlUbƒL@xULǂóLUl¤@nkVV°VLkxVb@l™aUXUKWĖklVX@¤UšƒUkb"],encodeOffsets:[[123087,33385]]}},{type:"Feature",id:"3208",properties:{name:"淮安市",cp:[118.927,33.4039],childNum:5},geometry:{type:"Polygon",coordinates:["@@šnźUôÒɴ胚l¦nĖV‚kbmš„X@xVlVL@xUb@bUJVnUx‚šœ„lKVLÈx‚m„zXV@lW@XV‚b@bȚVxnb‚ƒVIXa°L„aÆVVaXUlK@aXIƄVlXKVUlIXalK@alwXLVK@¥Ý¯¯ÿ@ƒmVk@aX@ƒm„īlaXI‚wXJVUV@lw@U¯yb›UaƒUġUÅaUKVknaġm@kUm@wÆIV±nLÆw„ÇnUUkƒ@ƅÝU¯JÝI¯¦Ul@bƒ@@VVL@l@LƒLÅmƒL@b™@UaVaUWmLUKV¹KƒLWKX¥WI@mXk@UmaUVUU@VmL@W™bkIUWƒUmVóIkbmm™@UbVLUxmJkU@bkJWbnXU`Wz™KUÞÈlVb™Lmx@„kè@Æ"],encodeOffsets:[[121062,33975]]}},{type:"Feature",id:"3205",properties:{name:"苏州市",cp:[120.6519,31.3989],childNum:6},geometry:{type:"Polygon",coordinates:["@@ôèĊVnX°¤²„lxƒÈÜ@²x@J@b@X‚`nIUƙUUV@bl@VVnL@L@xƒJ@X@blJXnW@@`XbW„kVƒ@UbVxƒXUxkV@LóxVbUVWš²šVJĸklUǬ@ĢƳĠ°@šmƒī°»ÈÇ¥ULUU±a@bU@¯ƒU@KnImUVWUk™mXUVU@lIVaUUVWKUbUkWKU¥n£WakJUkUL›K¯L™KkƒVIn@VaUƒVUUƒ›UkVk@ƒU@amUkJƒ@UUlwX¥W@@UkVmk@JUakL›@kk¯ÝmJUn@nmVXlmbVVkn@„UJ@±WUxV¯a¯KōbżÇxUxƒšUUlWL"],encodeOffsets:[[122794,31917]]}},{type:"Feature",id:"3213",properties:{name:"宿迁市",cp:[118.5535,33.7775],childNum:4},geometry:{type:"Polygon",coordinates:["@@XbWnUJVzXKVVUbW„klUWbU@@W@IJ@nƒVmbVbn@@V@„UŽƒIUJ@XUJ@VVn°VVbX@lwlJnUVL@l²@lÈUôJĊklb@¤VLœ@@xVxUxVx@bVbš@@xU@ln„mnX˜mXLVmV@X@lxVnVJôL„LXa‚x@b„@@KVL@bn@@m@™@alLUUVaU¥nIV±‚I@mXI@aWWXU@LlUXWW_XWmaUwǙ@aaWUX@@kWUƒynÇwUKkL›ƒ™VwUmVI@aVa@wUKUk@wƒWn™laUmĕk¥„™ɳçóÑŹV™mmzkVmm@a@Ióƒk@@LWU@`—„WbXLWlkImJVn@`nXVbXŽmL@Vn@‚l@nUVl°Xx°U@LVĠ@z°˜@¦UV@Xn@VJmV"],encodeOffsets:[[121005,34560]]}},{type:"Feature",id:"3207",properties:{name:"连云港市",cp:[119.1248,34.552],childNum:5},geometry:{type:"Polygon",coordinates:["@@@‚lzXxmÆV„„@@¦„@l`XnlKšXXm‚KnLla„b„@„xmbm@kL@V@Vl@@VUXšJX„mbš@@„°Æ@èÈzlW°XĢJlÈ`lInbšWV_@mš™@UUķnƒôw°ÆmnaVƒVÛVmĸ»Ģw±Ý@@mUIny™UmWkۥݙƒK™@Wn@@aWUnwVL„mUaWIUWVk@kkJUVWLUkŃWJ@bkLWVUbÅUƒb¯KWbUJ„WXX`WXkV@KWVXX@bWJ@nJU²mJV¦UbVVkK@b@š@nm@@aUK@Lƒ@@awWbƒKóKUIUmkwW@U@UnWK—nmWƒn@b„l@bmVUb™@kw±n¯w™VUb"],encodeOffsets:[[121253,35264]]}},{type:"Feature",id:"3210",properties:{name:"扬州市",cp:[119.4653,32.8162],childNum:5},geometry:{type:"Polygon",coordinates:["@@VUXblVVV„b@xV@kz„V@l‚wVLUbVV@VU@VbUbl‚b@nkͰIÞV@Ɔ„VlmVƒÈÅxmKU²ÅJ@xVn@lĢnmbUlVLÆbĢV„V‚bœV‚aXk‚@VXKVVWšXVWXUmKU„aWaU@™¥@£XW‚UUV@@ynam_VWkUVUna@ÆV@mnkWmXkWU„W@k„@@akklƒlWUI@UnKl¥™I@VVma@a@I@U@a@anK@UmK@ÅVUnJl™kI@aVwka@mVIUW@UWL@WÅbmIƒƒULka™UWƒUxkLUKWlXL@VƒImƒÅVƒU™mĉL™Uól¯I±l@ÒUbVbUVVXUJUnVV@lnbl@"],encodeOffsets:[[121928,33244]]}},{type:"Feature",id:"3201",properties:{name:"南京市",cp:[118.8062,31.9208],childNum:3},geometry:{type:"Polygon",coordinates:["@@k@ma@kUUVmVIUWVUUaVa@Ѳk°Jôk@Wmk¯KmX¯aUakKƒƒWU„@XU‚LXaV@@mUaVUUl@VmkaUXm@ƒWUUna°IlmV™m™IUW‚@Uk@@aV@VVX@„V‚I°»nm„U@VKVan@m»UaU@U_@WlIUa™aVaUala@¯n@‚ƒkaUkUUWKU@mwkUUmmL@K@ƒLmUUVƒKƒVÅImU—JƒƒVkVVLšèVLVU@W„L„V„š@nVÜULVŽUL@bW@XbWbkJƒUUVUxVXmVk@WUUkVmIƒV@„nbnVWbƒJU„kUULƒa@Jma@XkK@VVL@L@JƒLUVU@V¼ƒnXlƒbm@kbUKmn@lVb@VXXV‚UV@b@LVbÆxXbl@@lV@U„VV@XVK²VlIš`„UbVbUlVVn@WXn@@VUV@„@KmbVLXқLkKƒV@nX@VVUV@b™nVllbšmnb„IWVXU@`lLlknVnmlLlbUmVInK°nUƒU@l@VU@Vn@„ƒ@alI„`VIXaVaVa"],encodeOffsets:[[121928,33244]]}},{type:"Feature",id:"3212",properties:{name:"泰州市",cp:[120.0586,32.5525],childNum:5},geometry:{type:"Polygon",coordinates:["@@lUU@@y@In@WwXal@Þxl@@anVô@ÆX„lŎ™ôU@™Vw@ÇUU@@m@U™JUUWKkL@Vm@@£„aUUmyV@@_kJUUVUUWlUnblL@aUmƒI@ƒULUW@IU@WaUK@£UK@aV@°V@LnUWWXIla„VV™@£UWlkXĕVLVWšb@kUalwUKU¯lU@mk£VôKȁVK@w„KVaUkķlUI±™ğ¥ÝUʚ™Ž¯ôm¦ƒĸ™‚@XXK@VVXUJ@nlbUx@blJkšmIUV@ÆnL@VmL@b@b@V@J@bnb‚U@UšJk¦mL@VVJkXk„ll@bƒ@@lƒXXVWlXnml@nÅU@ŽmbUVlVUXn`mb@zU@V‚VWX@¤š¦V@Xb"],encodeOffsets:[[122592,34015]]}},{type:"Feature",id:"3202",properties:{name:"无锡市",cp:[120.3442,31.5527],childNum:3},geometry:{type:"Polygon",coordinates:["@@nLƒÒlxUVkL™am@™ƒkVWUULUxVVVbUV@bVLU‚nnź™ÞVĠ¦X™VUUaôw@KlUVw„WUwVa„@lUXƒWa@_X@WmkI@a@W„I@w@KmKUUk@@aVUšVVÅmJ_@W@a@I±wÛ@ƑÇkw±ƒ¯£mWĉUóçƒK¯VkUWK@XkV¯UWabƒmUa™UUb™lln@b@xƒbXŽWX`@„VxUblL@bn@Vb@`m@XbWnn@l¤„n@xnVlU„™VLÆWœkV@VbÞJ‚_nƒl@nKVU@aU™U@mVk°WVLUV¯bVXŽ˜bXlVn@VmL@x—V@bl„š‚@œnW@X@VVJ@²VJVU"],encodeOffsets:[[123064,32513]]}},{type:"Feature",id:"3204",properties:{name:"常州市",cp:[119.4543,31.5582],childNum:3},geometry:{type:"Polygon",coordinates:["@@„L˜ŽnxUbVVƒL@xnnW‚nn@VVXn@‚yœImx„„°ƒšL„a‚¥n@VkšKVw„W@nX„VJ@b‚@UVn„ƒ@UnUV@L‚b@`VLklVÞn„Æ@VaXLl™ÈJšmmVUK@aVUUaUUVwVKXVlUš„n@šblKVUkw„ÑmKUVUI@±UI@U@WmX@›™kƒ@a˜U@wnK@UUmWk—aWU°aVUUK¯XUl@nVŽVš@bUVmLk@m„`ÝIUaU@›lÅXUKƒškVmU@wƒmk£m@XmWan@@_Uam@@akKVaUw@ƒW_XW„a@w@akmm@mL@UJmnUKƒ@@XnJWLkKUb@„Vxk„WƒL—aWVUImVULUK@L@lkLVVVllb„m@@°kbVbUbšbVbkJ@XV`V@Vbn¼"],encodeOffsets:[[122097,32389]]}},{type:"Feature",id:"3211",properties:{name:"镇江市",cp:[119.4763,31.9702],childNum:4},geometry:{type:"Polygon",coordinates:["@@šVĊKšn„VÆUn„„J@UWKXkVLlKVwX„šVlbVK„„nJÆaš„ķn¥°óÇIkšWKUbÅ@mƒUÝlkUK@_a@KVUVm„@mƒVU@@aUIWƒ@mƒXUx™LUlm@¦ƒb™K¯„ƒƒnw›Jzm@UW@UmmXmm@w„KUUVamw—ƒKm@UbUL@ŽƒVmn¯¼JƒUW@UUU@@bl@@VŽVXšJšnnU‚‚k¯JmbVV„Xn@VWlbUnk@VVUŽVb@nU@WbKWVƒ@XV„„lLVb°bnW°Lnl@X"],encodeOffsets:[[122097,32997]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/jiang_xi_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3607",properties:{name:"赣州市",cp:[115.2795,25.8124],childNum:18},geometry:{type:"Polygon",coordinates:["@@„`l@Èbln„@„KVLl@„V@bȎlnšKXkVlVL@„lJnb„¦VKVVnX„W@w°@VU„mln„UV`šU„bVUV@„xnKVI°KXKVkVL@al@Xa„LVlULWV™VVL@b„x@VXVmb@x@V™VV@nn¤„šlb°b°KXXWbX`lbXx‚z@x„`VIVUnK„L‚x„WXLVKVbVLVU@wnW°b„@nalX„‚mXVJn@U²mKkVl„U@@xlnœaVmlKnœ@JVLlŽnVššl@XXÆèVlUX@xVLXVšb°W@wnUWmXk@K‚LVwUmUkUKUw@wVaVK@kƒ@WnkUKWkwlmXL@KVUlLVKXmWU„L@ašL@malaVk@aa‚ašƒnXš@VVUblb„Jn˜ƒXa„V‚wn£„K@UWmUk@ƒUaWIV@b™JW@KmmU@aUUUkmKkVKlUU™nKVU„lVaV£Å¥WUUK@UkUUw@m@mIkƒƒUUWƒLƒK¯Uw°¯@wUKUbƒKmƒ@kkKUL@UUKV¥U@manw@k@U@Wm@@U@Wwkm„wWaUU@UUmV¯kwƒ@@kmƒkKkUW@UK@ÅV@XWWkXa@Ul@Va@KVaUUU@ƒaXwla@UkVWaXk@K@lmkUmV@Vmbk@ƒ»XIƒ¥VUkƒVUVU@anKVUƒKUalU@wX@˜™@a@K—@ÝwƒL@ŽUnÇlUIkJmn@ŽƒbVVb@VmnkLƒV¯U@ƒ±l—IWmƒ@kaUI@aÇU@K@KUIkbWbƒJUIUyƒX¯ƒUbU@méUUmUk„WK—xWIkJm@V¥U_UJUwmVkšƒUU@ƒƒƒ@knƒwm@UmkWJkL@n@VW@@‚U@knm@kUml@xÅxƒ@@XUJlb„@VX„JVxn@lbV„@lULnV@VlnV@bWV@bXL@lVLVb„V@blLn@Vl„K@xln@bX@lašLVbnKUVVb„KlXVVkxƒV@nnVUb‚lV@@z—°WWkbƒIk‚WL@LUJ@bUI@b™`@UmI@mkK¯XW™™mUV¯@UUVUUam@@VULWUJƒIm`IUJ›KUkW@Uxn‚WbnnmlXbmIUVmV@Vnb@V™LUKWLnÒVVV@V„UL@„kJUV@bƒÈ@ŽšV°šŽ@XVV@l@xUz"],encodeOffsets:[[116753,26596]]}},{type:"Feature",id:"3608",properties:{name:"吉安市",cp:[114.884,26.9659],childNum:12},geometry:{type:"Polygon",coordinates:["@@lxnb@V@bV@ln@‚n„‚lInš@blVXK‚nk¼@VUKWL@b™L@`UXU`ƒ@V¦XLĠ@lJ„¦@„nV@l°nn@‚mVXnaš@nb‚K„n@l„IVƒš@VanJ@_lKVVnš„L@L‚K@Vn@VbšUVanKlLnbnJVbšnWVnVVanI@‚Vb@L„bVKVanXVbVJVU@aXLll„bôlƼXxVLVK@Xn@ƒxnVVVmb@LnVVKVXV@@mnaVXUVnV˜K@_UaUmšwnKV_‚anKVLš»„K@¯ÝU@›™U@kWlUn™lknK‚VnaUkma@ƒUIUwl»Åw@ƒVwV@n™‚n@ÈXlKVmna@kVw@anm‚@n_WWk@™™mUkUK@Im›kLUn›bkm@wV@kƒlUnLV±m@UInWƒkWmbƒ@¯amX@xUVUKUaULWKƒXwƒKmLUVUJƒ_@wyWwkaW_XaWW¯L¯akaƒ™m£@mUUš@U@wnaWU@Uƒw@aUKšUXUVKUkƒKWbk@@bUKUlWL¯LUJmLƒwU@UVƒa™VU_ƒVkmƒnUV¯@@xƒXmWUUULƒ¥makI@ƒUKUkWl™LkmǍ@aƒUk@UKƒLƒ@kmÇak@ƒ_VlkL@`lbnšlLVanLnbmVÆln@škJlbknmKUbÝmmwULUK@bkLWKULUUma@Kk@UV@L@llbVzšxUxnl@bVLmŽšŽ@IVJXœVlƒLV`@bn²@J™@™V@Xmbñ@WbUJ@bm@@LUĬU‚„¦lV@xXb@blnUV"],encodeOffsets:[[116652,27608]]}},{type:"Feature",id:"3611",properties:{name:"上饶市",cp:[117.8613,28.7292],childNum:12},geometry:{type:"Polygon",coordinates:["@@„„@„V‚š„„I°`nm¤²@bVJUVVXUl@Vmb@xV@XbmVVœ@lkLmbn`VbnU‚@Va„UnbVllUXV„a@w°VW@_VWšLššnVlbšLVbnl„KšnVK@IUW@_@am@™‚ÑUólK@U@WU@VwU@UI@aUU‚aXƒƒ@kwmJV@yX@k‚anƒƒ@mkwVmmI@aUU@aUUW@kVkV@@anKš»„XVWnIVUl`@_„W@wlUœV@UWKnU‚bnްInJl„UV@VnI‚b„Wn@VklL@l@Vn²m@U`kI@bWJƒnV@°VXnJm„XVmx@VVL@bkLmWULUmU@ƒbWXb@llnX@‚xkxVV„nVV@¤nL‚nVxnJVXX@˜ššbn`VI„b„@„blmlLnaV@„blWXnlUnbl@„ƒšKVanUVmm_XK@kWWnašU@UnaWUXa›ƒXamUkKmXUWƒLX¯WakKm™nUWwXa@KW_„aXWW_@WnIVl@XU‚LnWVknK@ImyUUÆbXK„Û@W@IÆUnƒVÝlkVK@mUIVwkUVaUm@aVIVyXIƒaÈwmmk@UnanVUmÅaó»lwšW@kkUVmUK@WKLƒUmWULkamK™Lk@Wa@wk@UU@U@mbUIWVKUXWmkUmVm›U@LkakKƒw@w@U™¯ƒ‚ƒUUn¯l@bmn@xkJWxkL@VkI@mƒkmJUI@V@b@VVxnbWlkÈkVƒLƒbkKmVƒL@V@²nxW‚kLUL@xlKVx„bXmVnšWJ@ޙ°@n™xUKUw±`UImVmnU@kalm@akwƒU@UUJmxU@@Uƒ@kU@Um@@Kn™ƒVm@k™KmkU@@WUnkLWxkVUwmKmLkU™bmKUbVŽ@xUnkJ@n±ŽšUxVXUšWJ@LUb™lUnm@ƒW@nknUJUVm@kXllknVbÆK„VVbš¼V„@šUl"],encodeOffsets:[[119194,29751]]}},{type:"Feature",id:"3604",properties:{name:"九江市",cp:[115.4224,29.3774],childNum:12},geometry:{type:"Polygon",coordinates:["@@WUkVUkmaƒVUb@mVUam_nalK@kU›nUWaU@@wna@UVkUWVUUI@a‚±n£m¯_ƒJ™ƒU@ƒƒƒĉ¦Ul@UV™Km™mLlm@ğ¹m`Uk¯@@UVK¯™@UUK@amkmKkVVUa@UkUƒKƒŽUa™L@VVXUJ™@ƒnƒ@™š™WUbƒnVb¯V@LÅlÝIƒJÅkݙm@Ua™WUU@UmUXmmwVUUKWUX±mUam@kWƒzUaVmÇw@aÅLmKXƒ‚UWKkL@W¯IƒwVw™lkUƒJ@Um@ÛÈWށKUxWkƒaUU@KkLVl@„UKUX±KUb@nVVUbUVmaUlUL@„ƒaUL@‚@nUlWzX`@„V@lx²„@Vlb@bšVÞ@°nl@UxVL@lUbVV@n²xVUVmnUÞb‚a„J@IšV°xnbl@nbÆ@VwnK@VnXlK°xnUlVX„V@Vl@L@lk@W_XK@KƒkWxUL@J„nVx@aX@VVUa˜IXlmL@bVVX@VbnK‚a²XVWƒk°a„@UnV¤nbmLmW@XbmJUbVL„aÞK„L@K@U@aVKlbV@nXlJœxV@VnšŽVȚ„ÞKôbźĕČmV@ĊšŽ²xÆIšV@Þ¦ĸ¼ÞVlŽVÞnxln°Jœk‚LXWVUVUVwnJVI@yn@lXlaXmWI@w—»ma@UmK@akKkXmW@_kaWakKWk@@K@IšWƒkUa„ƒ"],encodeOffsets:[[119487,30319]]}},{type:"Feature",id:"3610",properties:{name:"抚州市",cp:[116.4441,27.4933],childNum:11},geometry:{type:"Polygon",coordinates:["@@°V°UnÜ@n@lnLlV@bšV°L„lnLllVzVVXlV„V@@L@xX@WlX„m@UVƒL@V@n„°škVmVUnKlaXxVbšnlU@lVVnaVI@aX@V„šJš@V„@b„b@šVbš‚@X@lUL@Ž@VlIVm@wUVanLšalVnKnLVxlUXwlKVm@k@Una@mWIXKWUÛVƒk@a@UVWn@@kl@@W„XlW@_Um@UVK@a„LnalInWV@@xnI@¥‚K„—šm@kKmƒnk@mlI„¤laXbVblknV@U‚KXVlUXa‚@@Unw@±mU@ak_±a@ƒUJUIƒVKW_Xa@aWU™šK@mmUVa@IXa@UWmšannlmX¯WKXwVUVwƒ@XUlK@klJXa@kƒkmm@Uwƒw@¯ƒW¯kw@WmbULƒaUUU@mVUU™WmkUb™KmkkK@aƒkUƒ¯¥Uƒl—ƒm@akU@mš@KVIVV@KUkUVUkaƒUWb—„mƒIkaVaUU™@mW™„b‚b@bUlkb‚b@n™K@bƒKXVWnULkKUV@LWKknlxXŽVLml@X„Ž@lULUb@xVxVLVlVnUxK@LWlXnmV@x¯X™aWUUK@wVWUkÅçm`@mn@bUx@lmbUnkLÇWm@mšU@Ux@„Æxk¼VxVJ@„nbVlmbUmLklmškVlX@‚VœšV@°Þ"],encodeOffsets:[[118508,28396]]}},{type:"Feature",id:"3609",properties:{name:"宜春市",cp:[115.0159,28.3228],childNum:10},geometry:{type:"Polygon",coordinates:["@@@VlbnK@b@JšLlUnx±ĀXxÆW„X@lš@V„@@blJ@nX@˜xUbVVUbVV@b—VmnmJœ„@bmbm@klUbƒLmbœš@lVb@xUX@bVVVbV¤@LVV„bXlVw‚LXÜÇn@@V„IlVškUx„x°J@XlKXLV„‚WnLÆK@bÈxUnVb„ylXn@Vbn‚W²XV‚LVVUŽnxWnnV@VVVšXVbn@ޚÆl„IÞJÆk@K°UUa„mVa@UUUš»@wV@VƒkkUKUVW£U@UmW@@aXkVUnVlKVV„UUkVmU™@kWaUanU„VVamIX¥W@@aUaUVW@_mW@UnIVVn@VbVm@bVL@anKVUkƒWK„UXV‚Ikx‚@na„bVK„b@nVJ„_V›@Vw„‚VUVVXUlUUaV@X@VblašbnKlkVaXaƒ¯@m@U„KVUn@WƒXkW@@w@KU@UƒWkUUUykkmKƒk¯K™U@akUmK@k@mmÛ¯V¯U@‚ƒL™¼UKmLbU`mL™xVnVb@`—LmUVUUWmb@nU@UWULmU@KnaUUmU„wmJ¯IUJWIkVkaWVUIUlWaUIUVkKmbUIƒÒlVUnnŽ@VlLUJ@bUX¯@ƒaWVUKUXƒKUbm@UwKWa@a@VkUWn™@Uak@mbX„WJXbm@mL—aWVk@™wƒL@WmanU@knwWmkaWL—KWUXaƒU@¥l„UVVVbnwƒ¥nKV™»@aUk@a@UƒJ@kƒmLma™@mbUWnm@ULǺ@LXnmxUŽm@UbkbW@@akLmWk@UXmJmUkV@VUXVlULmKUxkL@lmXnJ@X‚l°Vnb@bU@WbKUX@VmKUX"],encodeOffsets:[[116652,28666]]}},{type:"Feature",id:"3601",properties:{name:"南昌市",cp:[116.0046,28.6633],childNum:6},geometry:{type:"Polygon",coordinates:["@@šXš™„@„mš@VIUW@UšKVb„„LlV@VVbUŽlUnLnl@bVL@V°šUL@V°@Vln_Ġºn@‚knKnššLVU@VkĊ¥Vk@™Uƒ™»UaƒUÅLUalmkklWn@VUVIlm@m„Xn@VmškVa@KXIV™UWVw‚™²@m@U@VK@k@W™Ua@™ƒa@aUƒ™@™IUƒW@@bUJmbUU@kkV™mUaWwkbmLUVUn™lWbUbklmL™akbUaW@U@VbkVWVUUUVƒUx@‚Uœƒ`UI@mƒaULƒamb@lwJWUƒVXLl„UVmL@bUK@aUnUam@UUmJ@VnX@`UXVŽVb@bX@W¦nJUbƒUmVVbXb@lVšUnVlƒVUUkLmUUVWl@bX@VnV@X¤VUVLllU„U@@x™¼VV@V"],encodeOffsets:[[118249,29700]]}},{type:"Feature",id:"3602",properties:{name:"景德镇市",cp:[117.334,29.3225],childNum:3},geometry:{type:"Polygon",coordinates:["@@VVX@Vbmz„xUlU@mbmL@V²xVbUVVblbX@šVškVykValKVI@bn@n`lVWnX@l„L@™WKnƒVIVa@¯nK@alIXJVIVWUw‚ƒn@nU˜„nK@alI@a@anKm_™a—™W@UWmIUwmmK@£UUƒmUUlwwW@km@kWaX„aV@VnVKnXlK@aUK@UnwWUnƒmIUW@¯mU„XI@alJV_n@m±@U@kkKUlm@ƒXamJ@UVUkƒmI¯JmamVXL@V›UkV@xƒX@`k_UVmJUXƒW™¼mL@bU@UllX@VV@bVV@bnJUnlx@n„Žm„b@lWŽ@zU‚nIlx„@W„bVV@bVJV@UxV@@X@VkLVôÒ‚šn@@b@`VX@J"],encodeOffsets:[[119903,30409]]}},{type:"Feature",id:"3603",properties:{name:"萍乡市",cp:[113.9282,27.4823],childNum:4},geometry:{type:"Polygon",coordinates:["@@VWnL@UVW‚LXaV@@ama¯Uk@WmInW@klKVwnLVKUkVW@UlUnVnIVWl@nXlK@bX@laVan@VnwWm@KȹVK¯m@kmU@ƒƒ¥kIğ@WKU¥„@V_VW@_šK@aXKVL@Ul»mWLkU@am™kJƒm@kmU@@a@UmakwU@›„Xlƒ@VXk`UIW¼kWWX@‚œ@l‚xV¦XlW@Ubn„@ŽmUkL@UmJ¯UkUWVUaƒUlm@UXWl„nUJ@LmLU˜nXll@bUVUUmVUn„Ž@¦šxlŽnn@VÆÈU°kbV„VxllnL@VnVVUl@V„„anL"],encodeOffsets:[[116652,28666]]}},{type:"Feature",id:"3606",properties:{name:"鹰潭市",cp:[117.0813,28.2349],childNum:3},geometry:{type:"Polygon",coordinates:["@@@XV@nlšL@lUnš„mŽ@Ln@@VlV„@@VV@nwVI@V„Vlx@bknlbV@nmnUVJ‚_²‚VxVLšw@mš¯@ÝXIm™nUWƒaUwkL@wVKlKXmw@±@U„KnUlL„a„KlUlÇXkmaUw@U@a@Uƒ™UkwUJ@zWJ™w@WbkVWUL@VmUklUaWakbƒ£kJ@nmln„lL@Ž™nƒ˜L@¦mJ@wU@mXkJmbƒK@bUL@VVn@`kXƒW@Xk@@lm@UX@V@b„lÜUXVWLXJ@nmb@V@l"],encodeOffsets:[[119599,29025]]}},{type:"Feature",id:"3605",properties:{name:"新余市",cp:[114.95,27.8174],childNum:2},geometry:{type:"Polygon",coordinates:["@@m@@WULUKWwÅ»ókƒakkWK@bUVUIUamWUbULƒa@KUa@mJUbmUXU™mUamImakKmLUb™VUam@@UL@KƒKm™UUkL@`mIUb™@U„@V@bVl@bš¼UŽmL„¦mxUaUUƒVkŽ@¦„VWbXV˜LXKlbXnmx@lmVnb@X„Kšxl@XU˜bnKn@WaXIWƒnal@Vbš@XmlV@U@bXb‚LVxn@Va„LVWVLXU„b°@VW@aVIkK@UmVmkU„ÑVJnalLVUVJXbVkVJXUlblUXJVI°JnI"],encodeOffsets:[[118182,28542]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/ji_lin_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"2224",properties:{name:"延边朝鲜族自治州",cp:[129.397,43.2587],childNum:8},geometry:{type:"Polygon",coordinates:["@@Wxĵ„mš@„ó¤VX@@xܼƨš²xWxƒV„V@„XVƒ„„„ƒbWšXllaÞU°Ċ„@ô¼„LôÝWanV¥ƒÑnĉ°¥šÅX¥°¯@w°w@»°k£°mÈŹ‚mÈbƃŎ¦„K°z@Žkxl¦UbU¤šššklV„KŤÞȰ@@bšV@nVVUlÞ¦lUllœVlU°ÑU¯Vƒ°w„bXxl@V޲„˜@n„ô¼ƒó°™kmVk²ĕ‚w@wV™ÞÞ@@Ġƒö»˜¯œ@‚„šbnb°mÞ¯°V°„ÈJmX¥mam™UřƒUƒlaU¯™ƒ@w™Kk—l±n@@wƒkÝVUUl±¯I¯b™a™lƒ@™kLmakbƒ@ġƒŹé°™Þb°šékƒƒLm™„wX™‚aÅb@bVlƒbVb—ÒVbUb›UUanwƒakbVŽUV›ak„¯„UŽƒLmxV°UxnôŻX@J„Xkl‚bkbĉaƒbƒWU„ƒ@ƒk„WUU¯@@klmƒ@@™Å@aƒwWXlKkI@WbUaVIUanUƒƒ@ĕƒ¯K™„mUnWUwm@£ċèkUmbUmm@@nkJUalwk@@nmWUan_óaWmnw±KœIƒwl@UmƒI@an@@mlUÅmV_™KUkƒ@U`@_ƒKUmU™@U¯™mmb¯@kb™ImV¯ƒƒLkbƒKƒƒÛ@ÇnɱJóaÝĢkb@„›x—ÒÇllœ@‚޲V‚„ÆUVV„UÇ°X„óxlV¯„lV@bƒV@n—x›@—¤@„șŎnxV¼knšJ‚nšKX°˜¦UlnVbUbÆVnÞWVX¦llšb@l°œVJôÒnLVbšbXŽ"],encodeOffsets:[[131086,44798]]}},{type:"Feature",id:"2202",properties:{name:"吉林市",cp:[126.8372,43.6047],childNum:6},geometry:{type:"Polygon",coordinates:["@@ôl‚zšaÈV°„šK@„mŽ—LWl™nšVxUV‚È@ŽÝĬUÈn‚ôLša‚„²VmĀkV@„ĠĊnU@b„V@b˜@nl°UVnÞaôJ@bš™V„¦mlkššbmVXx¯@Vxm„nbƒ„šbÈK‚V@bÈL„wĠyônšmnbÜ@nn„V˜x@n²K‚„„J@k„al@nxÞU„Lź±Vwkw¯LWWUš™kŎīVwƒw„°y„Vĕ°wÈVlkÛ»@wW@Uô£@ƒn™ĶƒXwW™aUamKóÑUI¯›@k™akkW¥XUmÝÅUVaUa‚mVk—¥W¯™Lm™IlmU»mwȚō@ƒ˜£kJUÇk@am¯y¯UVwƒa@wġx¦ƒKƒƒ¯X°Ċ¯¦U°ċWULÅa±b¯@UkÅWmVƒ™ƒkIUlóŽċ¹™`óIƒlX„WŽXxmbUƒLݏƒbƧ@ƒx¯bƒÈ—l@xƒš¯zƒaݤ@nšm„VWb²bmn¯J¯Ò@n„š"],encodeOffsets:[[128701,44303]]}},{type:"Feature",id:"2208",properties:{name:"白城市",cp:[123.0029,45.2637],childNum:5},geometry:{type:"Polygon",coordinates:["@@ó™ǩŁ@WlwUaƑwÛÅÇéĉamKƒōÇ@Iƒ™ôġVƒȁÑŹçƒ™ÝUƧċĉwóóÝ@Ƒ»ğL¯ll²@ƆÅV@¦m‚Åb@nmlU²VxšlUn™@VbnW„bÇbk҃š„n@èlnlšU҄ްLšx@¼ĉb@҄šUŽċxՃènLVxƒÒƒbÅJ±a@_ÅJÅnƒŽVb„Kl„nUÜĊ@„Uš™xXVÆn„mšVššJÞ¯V™ĠwšƒXw°xWL„x„KV¦ôU„wVÝǬóÞޙ¼‚‚„ÞkŽVôȘxބU„lVn¦ÞšĊa°w„b°@šbÆw„lŤL²`„z°@V@@™nJVnl@@¥nUmmn„@mwnmmUnk@mlwUaƒLnƒ›wn¯°anƒWakI„ƒÇmXwÆamUXUlJXa‚UUklKUknmÞV@‚K@VWÞ@VkUwVƒ"],encodeOffsets:[[127350,46553]]}},{type:"Feature",id:"2207",properties:{name:"松原市",cp:[124.0906,44.7198],childNum:5},geometry:{type:"Polygon",coordinates:["@@„šźèȂÒU„óĢ„š@JŎȄ‚‚LnŽĊbÈêÜÆƒxVbkx@XǪłôš„kÞ`„šW„b@n°ašbšKšnVw°`š_X`W„š¦„ĊIkmVšakw‚K„x°UÞb„U@lšƒl@°¦œVW„šaÞbšxÞI@mVI@ƒVkŚUWK„¥nL‚a@ƒ„@ȍ„@°ƒÆ@nU@KÞalkUwVékUWw„™kU›VkkƒJk¯@»ókƒV¯ÆÇI@bĉô¯@™ķw¯nmmÅL¯wƒVƒUÞy@UówÇLkmm@@UóxkkĉmL¯wVwkWWX™mLõm@kűV_ƒƒô»ÛƒÆ¯@™Va™VšaĠVlmğwķUóÝƽ£ÇJkbǫaƽLW@nxݤkzƒy¯XɅm@VšôÇX¯Ė¯ºÝnUŽnLVlUÔmV"],encodeOffsets:[[126068,45580]]}},{type:"Feature",id:"2201",properties:{name:"长春市",cp:[125.8154,44.2584],childNum:5},geometry:{type:"Polygon",coordinates:["@@„U°xÆKnn°mĸxš°@Ċó@aÈJ°Å„Uôl@¼l°„IllœUlVƒšXxlVUêVxkllnÈUVll@Vx²IÞ¤VUlVnIôlރlwô_„›„bVaĶLXÅÞÇ@K˜¯@wÛaƒçn¥š¯WXyW¯XwƒUmmÛ@ma™nómğzƒxÇK@aUÇL™a„ƒmanƒUw°@WwnU™al™nkƒ¥šU™@aóIÝbUm¯Vmk—@@aƒU@amVğĉ@ƒlUnÿ±Uƒ™bóKmVÇÞī@ÇVUUw‚™šmXk˜Kn@ƒ™L¯ƒÇU™byókōè@b‚n@lÝX@x¯ô@ƙUV_maXm@aóƒJWxnX@ŽVVnĖVnUJ@nōÆÇ¼V¼kxƒLklÝw@xƒx@zV`ÅbmxU±xU„nnm‚kn‚ŽğU™bUŽ‚šUb@šÅ°Ü„󼄄U`Ʋ@lön‚KšnXWlXUx°xnKĊllôw@Vn@lnÈKôx@VÝz„V"],encodeOffsets:[[128262,45940]]}},{type:"Feature",id:"2206",properties:{name:"白山市",cp:[127.2217,42.0941],childNum:5},geometry:{type:"Polygon",coordinates:["@@Ušl¦kÒÆ°„IlÒU¤ôz„¼lJš„U„n‚ÆXVl°@²aÆbVKČXV¯°¥¯ĉ°W„„„L‚¥Ģw@x„bUx°V°zn‚‚b@ÈlVŽlIœ@˜w@m„U@akU°ƒkUôwWƒÈ¯VUƒVUƒÅ±U›@kÈk˜Ñœw@ƒlaÞġƒUÞ£@ƅ‚KnÑ̝@W‚aUaVUVkkw@a¯@¯™Ý™ƒVXnW@@WkXmK@xkKUb@bW@Uw¯„mmb@WKUbmUbUaWbƒJĉIVW@I—l±LkšmU™bUm™@ƒnkKWa¯n™@„`Ubma™„ĉL@bƚ—@W`ƒL@n¯‚Xb‚@kb@x™Lƒ„™@V‚kL±™™mlUIU¥mL@lÅx@_laƒƒ@U—aƒV@kmmƒK„£ƒƒLƒƒmKUnÅKVbmXVlèĉUUbml„ĢŤƒIlޝbǦœl‚@ô¼Ģ„@x°„l¤„n„a„l@x™b"],encodeOffsets:[[129567,43262]]}},{type:"Feature",id:"2205",properties:{name:"通化市",cp:[125.9583,41.8579],childNum:7},geometry:{type:"Polygon",coordinates:["@@ÆlXnĠx̰lȰš„K„°kXm‚@¦Vbk„ŤJšnݤk„VÞVVkȄb°y„™@w˜k„ǰa„wƨ@„aސ„K‚VnaWwXWƒ„kôJš_ČºôVkƒ»óyV£kуJůlÑk¥V™ša@wƒkƒbƒmk£¯ƒ@wġƒó»@›kÈ¥°ak„JÆ£ƒġnkVaĊVkçWUnUaÆLVmnL„„‚KU™±@—„m@a¯U„bmV¯m@_ƒK™™U™ƒaƒÅ™Wó¹ƒ@UanmWak@@wmI@y™@mk„JVa™@UaƒIkJ@n™@Um±kkxƒm™Ik„ƒbÇm@ްbXn„V@ްÈmlÞ¼¯XVº¯Lm„kWWXLmVVlknƒ@@lnWƙ„Vxbmšnšm„¯lÝaVȁè@¼V„„b™„ÆŽ°ÞUVšJ„„kx›I—xƒƒƒIV¤™ÒXxmn"],encodeOffsets:[[128273,43330]]}},{type:"Feature",id:"2203",properties:{name:"四平市",cp:[124.541,43.4894],childNum:5},geometry:{type:"Polygon",coordinates:["@@Ɇn°W„zlyÞ£mwX@ƾKǬblaÈIƾ¤ôÞĸVĠxnmmVƒ²w‚VnwÆaU_@y„w@wÞxlk„KlwU»È»ŎÅ@mVIUmmĕUU@mWXw„Iô‚@bWnnbU`‚šV@Űó@wÞW@km@aŎ烙@m°Ñ°Inm±aXaƒU™n@mƑšU¦@šÇޝaU£šaU™ġ¦ÅҙJōUŻókUÇ@™¥¯ak¯mUVak@@aċçÅaUƒm¦Ý`XbƄ@n`ƒI™xĊÞōÞml@šUb@Wl™_¯JkšÇUÝÆÅb@n™„llUb¯„±a@ƒ—ƒWĉJġ™Unóšm¤œxôaVnƒxôI@x„V@bmƙ„@lnLmޯޙxVb¯þ"],encodeOffsets:[[126293,45124]]}},{type:"Feature",id:"2204",properties:{name:"辽源市",cp:[125.343,42.7643],childNum:3},geometry:{type:"Polygon",coordinates:["@@żôŎVšIÆÑĢ¥Vš™bV¤°bȍ@™V¥ƒ™Þ£lÇUUUÝlƒÞ£™mţIlƒUa@¥nlWƒ¯ƒL¯™kÇġ¯ğwWmÅk¯UƒVU„„bWlXlmnƒbUx¯xVVknlŽUbV„ÇKUb@„™VnbmlnzUº±bmJUbWÈnèm҄š@X`WL"],encodeOffsets:[[127879,44168]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/liao_ning_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"2102",properties:{name:"大连市",cp:[122.2229,39.4409],childNum:5},geometry:{type:"Polygon",coordinates:["@@‚IÞmVk@wXWÜbnwlLnU„@‚nLlbXW@a‚wnbl@XL‚aš@Ċ¥@LULnJ@xVnmV@VXXV@VJkn@VÜKXXôJlb„xl@„IVbnJVLUbn‚lnVw„JVU@ƒXU‚aUUlwn@°ƒn„VKnV°_VJšwl@nwlV„IXWlIVVnK@IWmkIVaVU@WÈUlmU@U„WUalkXġŻ@kIƒ»mm™akUm›ĉUŁV»²ġVĕ@aUU؍IɃ`ȃ@kƒw@ƒUƒmwĉ™@ƒWķсIĉÇbÝLkymbIƒwÇmÛbmbU„¯ÜõÈkÆVbŎxnXVÆnšǪ¦„bš¤Uš™xÝnĉÒmĊVȄ¤Èš„bƼ„Ā„„ÆÆÞ„źb„VVbX„‚°²¤"],encodeOffsets:[[124786,41102]]}},{type:"Feature",id:"2113",properties:{name:"朝阳市",cp:[120.0696,41.4899],childNum:6},geometry:{type:"Polygon",coordinates:["@@na@UVI@m„ÑW™kaV¥UI@wl@„aÈbšm@wVašk„@@K@kƒ™@a@UUmƒUUalmU@KÇUű¯@±kUKVkUaƒaU@¥m@@¯k@WLUmkn@mmIkm@amU@wVmkU@Klk@U—m˜aXIWWUL™aULVbƒmk@UUmUk±™_Uym@mbkImaX¯WW™xWKzU@WƒkJWwkV™@Um@UbVVVVXb@VWX—@WŽ@Vkb@V™nUK±aUUlwX™ÇWKknU@mmUkƒLUVƒVUUVƒUaƒw™bkKmwnIƒ™kJ@nmbƒ`kmVkLWwUm@UUU™K@UmaUa@UUaWK@mUƒ¯Wkk¯VmUUŽ„xVXUVmL¯ymXkWUbmXUKƒVknWx¯JVnkLƒl@VVxnxlĀVL²WlX„l@bÝVUn@bnlÜaXblIVl@šš@Ȧ@VmbXV‚@@x„VVnUn@`°@VnXU@K@„VV@VmbnVn@ln@b„xƒ°Ub@bšLV`Ånƒ„W@@lUšnnWVU@Vbkl@Xl`XxV„UblŽkX@ް¦V„UVVbUlkV›@UbVbkLUxmJkXšš@b‚bœxVKÆlXX˜bnŽnala@ƒUk@U„VVklKVUXKVU°KVan@VUnLšKVL„WVaU_@mmUXa@m˜wXwVkVWXk‚k@›„k@klm@wXKl@U@KVUUUVaUƒV@„alL„xUx@b°°VnnVšxlIXJmx„LUVlV@bnX@Všb„aVx‚@XJ@b‚n@VŽVXȄl@llX@lU„Vô°°@ބVbn@‚V„k„@VW"],encodeOffsets:[[123919,43262]]}},{type:"Feature",id:"2106",properties:{name:"丹东市",cp:[124.541,40.4242],childNum:4},geometry:{type:"Polygon",coordinates:["@@lzXJ‚U@š²x‚@@Vš„@bUVmKUn„°n@lnVK„„nV@n@VlV„°WbXn@‚VzƒJ@¦@bkb‚bUl@bkbƒJ¯zƒWULWbklV„nb™¦VJ@„„K°U„kl@@W„bVn°@„Všm²U˜nX`„UÜLXmVXlKVbUVVnUbn˜ƒX@VUL@lUbWxš@²kl`n@Vlb„@nUVWVLVU@aV@²bl@ÈmšxWX„VÈU„JV„l@„„la„WnX‚KÈkÈ@Va°bÆm„@XV°IVV°UnalƒVUn@UwVU„@@VVJ„I@bl@XK@wWmXU‚UVbkJVXnJVI@mƒknwlKXL@`l@VI@UUaVKÞn„aVm@aÇ£XW„U@aÇUU@mbkKm£™@WW™ƒL@@Kk@kl›U—bWKUkUU¯UõÛƒmUUaVU„U@WU_W@kVkJƒ_WKkV@bUL™¯¯ƒ±mk¯ġƒğÑ@UmwƒKUakƒ™ƒa@a„m¥ÝƒIUWmk@w™mţ—L›KʝbȗKWĢklVbƒX@VV‚knÇV@XUVUblJXn@J"],encodeOffsets:[[126372,40967]]}},{type:"Feature",id:"2112",properties:{name:"铁岭市",cp:[124.2773,42.7423],childNum:7},geometry:{type:"Polygon",coordinates:["@@XJm@¯šmXUlnVbUJƒU@bV@UJWL@VXLmJVbkXlJXxVL@b@V@n@b@`Vbk@lxknV@VV™V@bUL@bV@@bVK@VXLWLXJ@LV@nbWJ@IUV„x@LVJUXVxVx@VV@@LXJWL@VU@@L@VnL@bVVmVX@@VVInJmbnLWVnVULVVU@VVmX@@JVz‚l@„nVVKVXރ@mk_lm„UUWV_nJlUÞÑÞVVUVƒVL„UVJ@I„Vna‚@@KV@XwWknwnKlalU„w„aĉݚwšJl_@aUaƒKUUU@WU@WXUÆ@@UVK@n@UnVVšblK@bœllb@b„bW@Xbl@UlnLl°°bš¦nKlVnI„V@UWU@WXkƒw@am@nm@aVw@I@KUaVIm±XÑlknJVnVJšaX_VaUaVKmwnkmmn@lU@U@mnašXlKUmUIVmklaUK@UlUVUW@U™kVm™a@UUU@JmUU@@bmb—KWV¯XUKm@ka@UVKVk@aUKmLkKUUÝUmbXbÇJ@k@WU_@m™™@klm@UXKVaUI@KWUXaƒÇWk™aWUkWUL±U@lUU@ƒUJƒI@V¯JmIm@@aU@Uwƒa™@UV@VkI›V¯aUkƒWkb@bVL„@@VVVUXW@Uaƒ@@b—‚ÝbUV݄@ŽƒLmUkVUbVllLUV@LššXŽWbUXm@U`@„kxlnnJlbnIllšLX„lVlUXmVK„n‚V@L"],encodeOffsets:[[126720,43572]]}},{type:"Feature",id:"2101",properties:{name:"沈阳市",cp:[123.1238,42.1216],childNum:5},geometry:{type:"Polygon",coordinates:["@@ȚĊܰ„b„L‚lÞxUbUn±‚@ÈnVÆL@xnLšlUVƒbƒxkImJkn@V±LUxkV@bšbšKVKnzVl@L°@Va„xÞUlbôxVVœ@@V±bnŽ@llXL˜ŽöXĶŽnal@nkVJVI@aU@@aVK@ašUUUU@lmkwl@Ua@_@a@m@U@aUKWwkIlWUanIWK@UXKVIU@@a„VVIUa‚mVknW°™n@WI@KUƒmULWnkVkUWƒ™KkkmJkamIkmlw@ƒV_n@VWXaW™™@KVUkKUkValUnV„K@ÞƒVUÞa˜@a„@VbX@VWUU@Uƒ@UK@ala@IkKmUUa@U@ƒVƒkk™WVwU_@KÜUXbl@V¥XUVmƒƒƒXa‚kŃlUUkIm`UIUJW@UIKmkm@UUJƒImmU@ƒVUXU`mIUbUK@LƒJUU™l@Xƒ@UbƒJ™kU@ƒŽn„m@Uam@@ƒ™aUmLKƒwƒ™mWXUK@kUaÇa@JUIUa@aƒKVUƒUXmƒUy™_@lmbkLUKWLX`‚n@bVL@JXL„‚WX@Vnb@Vm@UbnVmL@V@x@LUbVV@V@LƒUVl@mb¯U@xU@UVVV@X@VVblJ@bn„VKUn„x@llnL±¤™b@k`VXÆK@„kV@¼kl@bWIUl@VmLnbm@@JXXmb"],encodeOffsets:[[125359,43139]]}},{type:"Feature",id:"2104",properties:{name:"抚顺市",cp:[124.585,41.8579],childNum:4},geometry:{type:"Polygon",coordinates:["@@„XVl°bœUlJ@UVUš@„bVxV@@bn@nJ°I@U„J‚I„VV@V@k²VVKlXXVšb‚lÈX„ŽWbXV@LVJUbWL@Vkn@lšš@nV`@X@lÈIWanaÞVVVlLnKVL@bUlUL@Vlbn@VL°WXU˜Lna@aV@nV@IVV@VšbUnšl@V‚XnKVa@U„UnyWkXaƒaVk@ašašbnm@_WKXmWanU@alaU—l@XJVLVxX@˜wnKnVlwƒƒ™@V_@a¯¥@UkKWUaUU‚anK@IƒaU@WUaVw@klUVyUUVUUÇ@Iôbša@mnUma@kXa@UWak@Wa—l@a›@WUƒLmU@U`mIUU™`mUk@@UUK±nkJƒbUam@kwm@@a@UU@Ua@@K@ƒVK@kmKU_UKƒUUaĉWmkkL@`™LƒnmlkLkbmK@k™@Ulmb@b™„@Ž„xUVƒIUlmVXXƒxm@™JUUk@WUk@ƒakx±@¯x¯Umb™KUUVmUU¯UmVVn™WkÆ„lWb„„„ŽUnWVU¦k@WaÛV@LV`UxšXllU„@„@VVbnVlL@J"],encodeOffsets:[[126754,42992]]}},{type:"Feature",id:"2114",properties:{name:"葫芦岛市",cp:[120.1575,40.578],childNum:4},geometry:{type:"Polygon",coordinates:["@@ll°X„ŽnV‚@XLVb@VVbnb@VšLVV@VVnXxlKnU‚l„_na@mlI„šmJnxlLša„xVbU„VV„UVU„KVlnnV@lmXLšÈWŽkxVV²bVLšm@Ula@UX˜@XW@UWaUUUUVan@V‚š@lUXxlIX„V@‚yXLšw‚ŽXXW°nblJnan@Vzš`l²nVVVl@„nUaVKšbVKnXVaUaVUšyšnXK@kVK‚@X@m@m‚LXa„LWƒU¯„w@™ƒa@UVw„¥°™ó¯¯y¯ƒUǯ»›w¯Iƒm—¯Ç™UUl™¯»ţKċÑţķm¯w@mU_ómk¼VnU`±IkbVlƒnnŽU¼±Lk`@X™Wl¦UbmVUxkXVlkbllU„Vb@bkVmx@XVV@Jb±aULkKWXkWmX¯aUJmIkVm@ƒxU@n„"],encodeOffsets:[[122097,41575]]}},{type:"Feature",id:"2109",properties:{name:"阜新市",cp:[122.0032,42.2699],childNum:4},geometry:{type:"Polygon",coordinates:["@@šXnb°lš„VlnXVJ„LlVnl@zÆxnK@b„blKVLn@@V„aVLVK@L@Vl@XVVInVVKVwlUXwlKšL„ššVVb@aV@X„lUXbVW@n„lWnXKV@@V@XUVVLUVV@@bVVV@@ln@VbVUXV‚I„xVanJ@UšIVWšL@UV@@¤V@nInw˜W„k„lnIVx‚lnzUVÇJ¦VVÜLĸUnW@aV_šWĊXXa‚Knkl@nm™L™a@alUVw²K@UlmnIlJ„w„aVU™kmK@wÅKmU@DzVmVaÝwkƒKƒaÛ¯șĉķ¥ğ¥ƒ@kUWkƏī݃ƒ@@akU„K@KWIUm¯nƒU¯JmwUVmIkJÇLm@™UImJUU@aW@U@@nUb™JƒaƒbXVWn@UVmX@V@b„š@l@Lƒ@™lUb@x™nÇaƒbk@@xVJU¦lbXšƒÒ@nUJ@Vmb"],encodeOffsets:[[123919,43262]]}},{type:"Feature",id:"2107",properties:{name:"锦州市",cp:[121.6626,41.4294],childNum:5},geometry:{type:"Polygon",coordinates:["@@nJ@nlmVnXKl@@°n@@¦‚V„bVbUlVL²l°@ƲÈV@LV‚knVb„VVnnWVU‚@XmWU„a„bšIVa@mV@X@@bVVnIVJ@š‚nÈKlInJVUnx°I„V°mVnXJ@LƒLlV@b„@ބƐĬXllV„@Ġ¦ĸ¦naWW@In@manK@UVkXJ@alk@»lU@ƒÅLUWl_@ša²£‚Kkm@kƒwVmULmƒ@akIUa@U@WUUVU™aÝ@ğ›wkƒƒmĉ£UWƒ@@bÇL@m—a@_mKƒlƒXUwKƒLţÓ@UWw@K@U„I@m™U@UV¥„@°UnJ°@@_™KUwƒW@UnaWUmmI@m™ķwUaÇLóVĵwݙUUW™¯šƒ¦Ux@V„b@šƒxV°X„ƒKWbK@n@nW‚@UL@lWL™m™zUVVbUbmWXXWJ—b˜n@Vkl@LlVUn@xnV@bln"],encodeOffsets:[[123694,42391]]}},{type:"Feature",id:"2103",properties:{name:"鞍山市",cp:[123.0798,40.6055],childNum:4},geometry:{type:"Polygon",coordinates:["@@l„œxĠŽÞ@šbV@@w°Vna‚@Uk„V@K@UUUVa@K@w@UnKmUVan@@Uma@UXWƒWK@IUK@amW_XKVLlKna@kmKVak@VU„@VmšU@anIÆan@‚a„šUVnb@blLV`ÞLlU„bna‚Kn@naVU@¥°IVK@anUUKVaƒUVak™@mJƒkXƒ™UVwkƒVUUa°U@Wƒ@WlkXWlIXUlJlaœx‚IVVXLšll@nLV@lLXl„KĊzš¥maUƒlkXaVK„X°y„Ila@aVkala@a@¥„IUy@WmXaƒ¯kU@U@mmUƒƒULkmm@ƒ¯VmnLVU@a™ƒ@U@±w@™VWIkymLUUkJWXƒJkUmxk@™xUI¯`mUULmƒ¯„m@kxVVbWV@„UVƒIUx@bkšVšVVšxUbVV@V@zšJVXU‚lnk@@lkLƒlƒLUU±Jkšm@UIUVƒLUVU@™K@UƒnnV@l@Ll„ƒaUJ@zn`@nWlƒIUVUUUV±Ln‚@nmL@VUVkLVlUxVLVlÅXma™@@akLmWUX@JUnVJVkXJ@X@`WX„VUVUIlb„W@bVUVL@`Un@¦U`@bUV@z@Jm@@XV`„LUL¯J@IVKmKÅI@J™nWVnLnšVxV¤™z@bmV@VUV@bUL"],encodeOffsets:[[125123,42447]]}},{type:"Feature",id:"2105",properties:{name:"本溪市",cp:[124.1455,41.1987],childNum:3},geometry:{type:"Polygon",coordinates:["@@lb@Vn„lnVVUb@šVJ@nnJ@bmXUx@xVbkbkŽWLUxnl@Ul@„xWx@nUV@¼Ull„knkK@bmbnl‚LVJX@VIVJn_lJVVšXUmnU°VVVUnVVšLna°V°w²@lw„bl@XVl@VVšIn@„wWWnUVk„JVUƒw@šƒ@anaVkš@@lnLlalKnk„mšK@_lKnlĊXVb„VVLV`nL@lUL@„@L@‚VbV@@V@bn@lxn@Vb„alI²mVL@Vl@nVš_VVnJV_‚@nV„K‚V@Xœ‚@b˜kXbl@XblylUUkš™@Xa@UVIlK@UUWVU„Llm@UUUnKWU@K@UXm„XVa@U°KVUUWUk@ašUVKkaWkƒKUknaWa@U—@m@mk@ƒaUJk@@_WKkLmx„l@nUJmIUWlIUaVWVXn@xWLk@@aƒJUI@Uƒ@UVVxm@UVk„mb¯VUU¯JWUƒ@Ån¯aUbÇ@ÇlLmWƒXkbƒƒk@UƒƒIÇVƒUXW™wÇnk@±aU@@bUVUKUXmVƒ@kaUm@k_±l™@XwVa@kVK@U„Wm—VaUmVUUakLUWWnÛKƒVW_—m±V™nƒU¯@Umƒa@Xk@ƒl¯V"],encodeOffsets:[[126552,41839]]}},{type:"Feature",id:"2108",properties:{name:"营口市",cp:[122.4316,40.4297],childNum:4},geometry:{type:"Polygon",coordinates:["@@ĊĖÆn¤„„°Ċ¯ŎWšô„@xXb‚wnKl@nX@VUVƒKmL@VU@Ux݄@Vlb„x„U@VUb@b‚kœ`‚IUlVUn„V@@UV@@JnXlK@bš@nbÆWUkUKVwUklKVU@UnK@mm²KVUVVVU„JXk@mm_@yVI„bkƒ@K@kmU„m@VšLV@VU„KVUVJn@l™²IVV„K„klK@kl@kmVUW™I@y@UUUVa™wUUU™l™@akmmVaUKmIUaƒJk@ƒwkaóIWWÛL@UlmUIU@WW@UnUUm@wmIVK@Kĉ¦™@bWKk@max@bWXkamKƒ@mVkKmxÛaWX@xUlÝnJ"],encodeOffsets:[[124786,41102]]}},{type:"Feature",id:"2110",properties:{name:"辽阳市",cp:[123.4094,41.1383],childNum:5},geometry:{type:"Polygon",coordinates:["@@š`Vz„‚Wn„VUV„L@bVbVJ@IÈbVb@lVLXW‚n„š„x‚LnKVŽšb@„n@Vbn@mƒ„V@šl„IVa„@@WškVV„I@KVLVanJV_VW„UV@nn„JVI‚Vn@na@alLlmkƒVk@»VU@mXwƒwk@@VmkVwXKllaUa@wVwnW@amI@mUI@™VaUUkmmƒ@UkaƒL@ƒUIĉyƒLWkkKU@mKk@™kWKUUJ›wkbkIWVkJWXkl@X„‚@X¯VVbUVl„UxšVW„„lnIš@l‚Ub„VUbVLmV@bUL¯J@¦UVmbm@LmbƒakVÝKU_kK@amaVUƒ™bm@ÅbmJ@b™VUnƒ@UVl@UbnL"],encodeOffsets:[[125562,42194]]}},{type:"Feature",id:"2111",properties:{name:"盘锦市",cp:[121.9482,41.0449],childNum:3},geometry:{type:"Polygon",coordinates:["@@Vbĸx‚š@nnJVnXŽmb@V„XVxšL@`¯@mI¯Vƒ@U¦@VšV@nƒJ@V@LXx@VŤÔ„K‚LVx„W„knL@`˜b@nÈK@a„@VXĊ¤„nVK@aVU@UnU@ašyU£Uwm™mKXUšm@IÆJnLUL@J°IVKƒKU_@Wn@@I@yVU@aV_@¥Vm@_UKUV@aƒXkaVJVUƒUXW@_@WWIUlUIVm@IVW@IU@@VU@mƒUVVkJ›_l@aVa@UƒVƒwka@UރVwV@@UnK„LVU@UmWk@mLxWa@wóƒUVUIÇÆĉ¦¯¦¯xʟJ"],encodeOffsets:[[124392,41822]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/nei_meng_gu_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"1507",properties:{name:"呼伦贝尔市",cp:[120.8057,50.2185],childNum:13},geometry:{type:"Polygon",coordinates:["@@„m@Łkƒ™Žƒklƒôƒ@£kJ°ý™ɅķÑó¤ğLĉÅlÇğŁW¯¯›™ƥóÿlwkţÈéÝƛó™°ÞÅxV¤ĉĖWƒ¯lȭţυ̃ɱÿķƅˋğɱřÝţϙȍƧĊţ@¯kWKUKm¹Å@ķJU@ƧÑƧ„ō¥˹Ɔ@L@„Þ‚VLnš@VōČWJX¦@JŻbU@ţÞmVU@ȁýóbkWWLƒƒÅ™¯UWġkmóƒ±UŹôV¼ƽ¼ƒł̥ĖƽǬʉxĉŽŻȗKΕ̛ʵƨʟÞ˹»Ƨţ»Ǖō˷Ȍ±ȚʊĠUɾɜɨmÜ֞߼˸ƅȂ¯ǖKˢğÈÒǔnƾŎՂ@šĊbôô̐¼ƒ@ĊôĊŽÞĀ™xšĖƧL±ŽœŽ‚Uš°U„°ĬƒČ°ÜƒêɴȂVł°@ƒ„nxŎèƒbȄÞȌ΀Ǹl޲IlxĊl²ÒmšôĖ™Èl„ĵºm„ÈêVþ„xɛČʉÇĵVmš„ÒƒÈɆôƐŰǀĊ°ÆǬĮƾb„yĊ@ĠšƒXǀċm»ôw°Ûk¥Çm¯ç™kkÇǫţǕéX_ĶWǖīŎaÆĵĸĊ@ȚȘ‚™ĊLĢĉ„VÆĉʊÇĕóaU¥šĉ°mkŰġUĠřk°mƒÑČÿ˜ÛƒWĸ£ʠšÆxÈÞŎÞ»ʈ²ĊÇČalÒ°Ť±ĸz„ŽĊKȲm¤Ŏ@Ò°¼nyȂUźīǖƳÈē°@šÝ̓@ƒÈkl¥Ççkxk™›JXÇƒUÅ@˜£k»„óƿīÛ@lÅJl¥óý@¯ƽġƍÅan™ċ™°é¯¹"],encodeOffsets:[[128194,51014]]}},{type:"Feature",id:"1529",properties:{name:"阿拉善盟",cp:[102.019,40.1001],childNum:3},geometry:{type:"Polygon",coordinates:["@@™ƏnǟƨʫšŹɆÿ°¯ÆV²ˢ™żÿ@ÝÆŁȰ¯ȀƳĉó™™@ğkyš¹@īš›ƒwl£Źƒƒ¯Ŧé@™ÇÇxŋĉƩUUŃōL™Ç™ĵóÝnƒóç@™™ó@ġƒƱ„¥ƒç™WUçÆōƒ@é—çťK™çȭVһƽ̻aW¥ȁ£ʵNJǓƲɳޗǔlżÞmĠóĬȂɲȮ@ÈĢŮźÔnĶŻǠšŎȭœгŃċóȭţΗÆƑÞƧÅΫóȘǫɱȁġlÛkǰȁÈnšõl¯ô„ÞɛÝkĢóWĊ„zÇɼʝ@ÇÈķlUČÅÜķnέƒǓKȮŎŎb°ĢǀŌ@ȼôĬmĠğŰōĖƧbЇƧōx@ķó£Ål±ĀƧīXÝġƃêĉK°Ýʇƅ@ΌʉżÅÒϱʈ@˺ƾ֛।࡬ţશóЈèʞUš¤Ґ_޸Ƒʠɽ̦ÝɜL׈ɛϜóȂJϚÈ@ǟͪaÞ»Ȯź"],encodeOffsets:[[107764,42750]]}},{type:"Feature",id:"1525",properties:{name:"锡林郭勒盟",cp:[115.6421,44.176],childNum:12},geometry:{type:"Polygon",coordinates:["@@ʶĬĊIȘƨƨŽ@ĬÛĢșŤĉĬƒĀóšU‚ÈŚÜènŦƐȤȄłϰUƨťƾÑ܆ğɲƜǔÈèʈƲĊƞƒšɆ¯̼V˺Ò˺ȂŤVĢêU܃x„Āˌ˘ƨ„ưѢmÞżU¼ÆlŎ@ĊçŎnÈÒͪŎźƒĸU°lżwUb°°°Vš£ÞlĠĉĊLޏɆnźÞ„n¦ĊaȂīġѝIĉůl»kƒ„™Çý„¥Ŏ¯ƒén£ġљÝȭxƒÇ™@Åçķ»óƱŎ¥™çWÿmlóa£Çb™yVÅČÇV»ÝU¯™KĉýǕċţnġ¯»ÇōUm»ğƒÑ™wƏbċÇŎċwˋÈÛÿʉѰŁkw@óÇ»ĉw™¥VÑŹU™mW»ğğljVÿŤÅźī@ř¯ğnõƐ@ÞÅnŁVljóJƒwĊÑkĕÝw¯nk¥ŏaó¦ĉƒV¦Å`ğуÑÝ@mwn¯m±@óƒÛKˍƏǓ±UšÝ™a¯lƒōšșk„èƒĬގn@ŤġŰk°ċx@œĉ`Ƨĕ°@ţÒĉwmĉ@ƒƒnƒƒa„™¥ķnƒÞĉVóÆókĉŽķ@ÝkƧƧÛaƒ°Ç@ÝÈU˜óbݼ@„ÛÒV°™@V¼ˋL™ÞɅŤŹǠVÞȗŤÇĖŚōbȁƜ"],encodeOffsets:[[113817,44421]]}},{type:"Feature",id:"1506",properties:{name:"鄂尔多斯市",cp:[108.9734,39.2487],childNum:8},geometry:{type:"Polygon",coordinates:["@@ĶL²ĬVłƑkkl@Ȏ™ŘWńÈĬȗ¯™ºlz@ĠššĊôŦô„ÒĠ°kÞܚ™n@¤„UĸèĸbŌÈXŽĸLlÒĢxɲÆ¤ÈÛƾJÈݰUšÅĶ»²VW¯ĸJôšbk‚V@ôlbnĊyÈzVôašb@ĸ‚ÞUl°yǬ²Ǭm°ššk„±lbn°@È»˜JX„VŎÑÆJ@k„LšƒÆl²™Ġ²ʊůĊġ‚řóƛÞÅ@m„ƒmLUÿóĉƧ@™»L@„›`ČĸmšȗÑţů±ĉğl¯Ā™wǎƒçƧŤÛI@±ÜĉǓçō°Uwô™ǫůķƳř±bÅ£™ÓÇwnÑó@ȁƽ@™ƒÇƧĢón»ŏĕóĊ¯b„Å™™VȯÅImƒōKU„™LǓ±Ýxċ—ŋ˜V±Āȗ°™„Źl±šÛ@WÒȁŚŹНŚÅèŌô„¼°ȰɞȂVĊ"],encodeOffsets:[[109542,39983]]}},{type:"Feature",id:"1504",properties:{name:"赤峰市",cp:[118.6743,43.2642],childNum:10},geometry:{type:"Polygon",coordinates:["@@ɲŁĢljĊwƾōÞĭ°_ŎŃźȹƒUČÿl»¯ôķVÿǬƽ™ɅġÅÑǫ»̐ʟȣU™¯wVWݍÈġW»Þ¹m݃ɛŎÿŎōͩůV¹›ō™éċ™óŹÅVVĢǩʈ@Ėċ@ķšÛšV°¯xÇÅţ¥™»°Ûô™ĉʟ„¥WýČ¥™w‚灻±mnÅķ¥ˋVƒbUÒġ»ÅxğLƧ™ƒbWĖÅxš¦U°ÝVóŰlô²@š¥ÜÞÛô„V@²±`𦙄™¯Ý@„ŽÅ„VÒō¼ôš™¤V²ŹĬÇĊƑƒţxƒç¯Lk»ʟlƽýmłÝÆƏ@mö°Ġ@ŚŹĬţÆUĀĠNJĠŽX¼šnźVUҚ¦Ċxȼ@ôlx¯łʊÒÜĀˌÇČxƍČÈƐašx„ÒĠŽn¼ŎVȐ‚¼Ģ°ŤmǖČĊþšLV°ÞŽU¼ċÈUƚzÈa‚¤ôbkŽ‚nXšè"],encodeOffsets:[[122232,46328]]}},{type:"Feature",id:"1508",properties:{name:"巴彦淖尔市",cp:[107.5562,41.3196],childNum:7},geometry:{type:"Polygon",coordinates:["@@²@Ζǀݴʶհĸ„˜ƒ¦Ķ™̒Uˌ¼ӾÇƾ¼̨UÞĉ˜Ƨ—éÝ»ƒĕĉ—ƐȍœōǪakó‚ó¯a@™ôţ™aV¯Þ¯°@²él¥ĵğťwōxó¯k±š—Vó@™aóbUÇyĉzmŽkaóŽU@l™aó‚ķIX°±Uĵ¼™Æ¯VÇÞƽIÇÜÅ£ɱŽġwkÑķKWŋÇķaķçƒV@£šmۙlÝğ¯ƒÑťóǿƴȯ°Åł@ÞŻĀˡš±ŽÅU¯°ɅĀ™źƧʬmǠšƐ"],encodeOffsets:[[107764,42750]]}},{type:"Feature",id:"1505",properties:{name:"通辽市",cp:[121.4758,43.9673],childNum:8},geometry:{type:"Polygon",coordinates:["@@ôƲĸ¼Æèš@„ÈȮwƾ»ʠĢ¥VÆ@²¥@»Ŏњ¯ĊJŤ£k»ÆÇX¯̼ōšī°aX£ôƒƾȁꥄƒ™aôŤ™ĢL°ƒĸ@Ȯ¼ÈÒʈŚôVXůÆaĠƛÈKƒķšĉôÿ@ğÈĉ™»ÇVn™ĉV›wXĠݰšČÿĸwVƒ™¯¯ǵ±™ĉ‚ǫ™ÅÅm»²Ż±ƽIm¥ţÈķ@¯šƧJV»ÞUÝç¯UġºU£ţŽóaÅÅlƒƒ™Ƨī¯K¯Þ݃ğL̑ȍƽ@ōŎōĀƑɜnÞݺX¼ÇĢގUX°xVšʠȤ̏Ǭ¼ÆÒɆ̚ŽǫƾUĀóĸ°‚k¼ċĀƑVŹȺōń¯`ÝĮƽŎĉxġNJɱłō¦"],encodeOffsets:[[122097,46379]]}},{type:"Feature",id:"1509",properties:{name:"乌兰察布市",cp:[112.5769,41.77],childNum:11},geometry:{type:"Polygon",coordinates:["@@ʠǠÞĸɲȺƒÒȂƛŎaƙÈĕȘţUÝźǟɆţšÝˌKU»š@U¯ÜÑ@ƒÞ»ôaV—ÞÇÈ@„¯ÜbƨƨÞlĸ@ĊôlôÅĊU„Ýĸmš¦ƒŽ„bm„„„Ċ@n‚ĊxŤÑ@¯‚ƨĖĊ_@›Čwl¯™ƒȭL›Ý„»ƽ¯ķů„Ǔ@ÇǓbċ™ÅÅÆwÿĠÇU£óaƒ¥¯aŎğĠţkw°»¯ůlÝĵkǻݰɱƧǫaóôɱ»Çk¯ŃóƒʇŐŻ›ĉNJŻĢ„ޝÒÈUl°ƒx°n„Ò™Ĭón™Ċğ°ÇŚĉ¦ʵVƒ°°ĬÛżÇJȁńʇʹó˂ƽŎ›Æţ¦"],encodeOffsets:[[112984,43763]]}},{type:"Feature",id:"1522",properties:{name:"兴安盟",cp:[121.3879,46.1426],childNum:6},geometry:{type:"Polygon",coordinates:["@@ÆXnlŎ°@LVLĠþœxĊUȮĊnU„ĠV@żaW¯XIŎġƒ¥Ý@K@w@K@I˺ŻŎ¦ƨƒƨÒŎIÆ@X@VºnX°lŎ@ƾĉˤƒȘǷȘÑÝݚÞbVţĸÿŤxÈĖƐށêÇKnĸ¥ô@›ķÞUnÒl@UŚaƒīˋƒ¯ÑƧx@±kXřƐƏÛéV™ˋ»lō¯ĉ„ÅÇÓǫޗĖġV@ğ»›°ĵ„ÇÞǓ¼¯m˜ÛÅŃĉĠÇƾb²çƒ™šéż¯VƒƒğÞml»ōÑV痻V¯™¯šĕÆU¯y°k¯¯V»ôDŽѰa@Źk™ġKţšóŽšbƒ„ʦƽȂó„W¤¯b™Ĭ̻ŎW°ÅÈl¼ţ¤ĉI™°ōÒ@¼±¦Å@UŽġ¦ʟŽƽ¼šÞĢÒm¤„êō°ƒ¦Èþƒšl„k¼Ċ۰JĢńȁĬ„°ƒżn‚ÇbV„ݼ@¼óĸţ¤@°Ånšl"],encodeOffsets:[[122412,48482]]}},{type:"Feature",id:"1502",properties:{name:"包头市",cp:[110.3467,41.4899],childNum:5},geometry:{type:"Polygon",coordinates:["@@źxżĀǔÆǬVȘĀŤ¥œÅƾōôˁʈͳȂŃÈIÜŻ¯ī„¯ōm™¯ɱ˝ƒķÒÝIÝ»ÅV™ƒlÅôфġ™ğVmÞnnƒWçkW܁XƝÆwU»Șĕš£ĉÑ𱱚Åk™„ƒK@lÅIō҃UW‚—IǼ¯@m‚kaƒ²™l¯™ǫnǫ±¯zkŽÝVķUô™˜l²ô°ŎwŦxĶĠk¦±ê¯@ݰU°šbóŤ@š°bôlôǩb›ŎƏȎĊ˜„ĖÞ¼˜ê—ƨÝĊ"],encodeOffsets:[[112017,43465]]}},{type:"Feature",id:"1501",
    +properties:{name:"呼和浩特市",cp:[111.4124,40.4901],childNum:6},geometry:{type:"Polygon",coordinates:["@@ʶUĊ¥ÈřĠ¯šĉômšīƒÑ¯m„wk¯ÇV°ÑƒżġĊljǓɱţǓ›ƝóX¯ƒɛÒóa@nÝÆôƜŚĉĢʉŰĊҙ¤ȗĖV¼ÅxWƞۂlXXèm„ÝmUnšĠƒĢóÒkƚ„ÆUÞ¼ÞJĸѰ„ɲĕš°Ŏn"],encodeOffsets:[[114098,42312]]}},{type:"Feature",id:"1503",properties:{name:"乌海市",cp:[106.886,39.4739],childNum:1},geometry:{type:"Polygon",coordinates:["@@Ș°ÇīXњŗ@ȍlkƒlUٱīĵKō¼VŽÇôXĸ¯Ž@šťê„°ź„k¤„x™œ@Ĭ"],encodeOffsets:[[109317,40799]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/ning_xia_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6403",properties:{name:"吴忠市",cp:[106.853,37.3755],childNum:4},geometry:{type:"Polygon",coordinates:["@@nLV‚@šVLšaÞbn@@l˜š@bUVlUV„zVx™¤kÞVèšXnš‚@nm°a@UƒÑ„@VŽXnV@Va„UšŽVKUUU@@U‚@@KVa@U²@‚wXkWnk„±lLnU@UmmVKnIVWnI@UK›@UK@@UVKXkmWLWUXmlkVwUyVa@w„w@aVI„K@aVÈw„KlLVV@LnV„VVnU‚ܲ°WÈIUÆ@nÞ¼‚‚@¦™@UÞUVW@UxUxVn„b„K‚b¯ÞU`VbǬ™V@XXÆVVl°InmnUôƒ°¯‚anam£œWVX‚KXmškôaVU@ƒVak@@wmaƒn@K@UÛUWKXUƒÇƒ@UI™b@alW@akLUKV@@Ukw±Iš›nL@kmwkWmk@JUIƒůVmnnU@m@UƒK„VKlkUwkƒƒnVUKmbkI±š—KƒkmVkKƒb@U@aƒVkUmn™`kIlaUK@UUKmbUIݚUa@mUa@aƒ„m@UUULUK@bmKkbWI@WXwlkXƒWa@k@kKƒLVkkK@L@JUVmzUKlwUUnW˜£XVlKUwVU@aXI@aWaUw@W@_nam@¯‚UkWVkUWaU@nwmJkUVkWVUmUkJ@ImbUaƒ@@WÅ_mJknmak@@mƒXƒaUV@„ƒxUšƒ„@‚ƒ„@VUnkVƒ@Vn@`ULUbWLXVW@kbUJ@XW`@ƒnÅĖWJƒ@—m°@xƒxšbnUa‚w²lƒÞ°xŤIVVULۂWbšbkVVXÆ`UbVL„@kx°LlV@Vœ„WbƒJn@bl¤ULV„°@lmL@ƒƒ£U@@aUwmKULVxUVVx@„™@kU™@mK¯LÇa¯@"],encodeOffsets:[[108124,38605]]}},{type:"Feature",id:"6405",properties:{name:"中卫市",cp:[105.4028,36.9525],childNum:3},geometry:{type:"Polygon",coordinates:["@@°@Èb°KnLš@lVš@@ƒUwVUUwVKnLVx@bV@„¤@„nK@k‚¯UƒVKk£@a‚m„IXa›ƒ@UkU¯Klwƒ@UKVaÅ_UWlU™aXa܁VKUUţJ¯w„ݱkxVbmŽ™a„w@wn¯˜„@XIÆĕ„m‚@X_@WVIlaX@WUXKVaVK@_Um„@lUVm@U„ƒ@„ƒV™„w@ƒVUÛwm@@W@ImKUkU@Ua‚aXƒ@wWaUKkw@UVaUamLU™nk@»±`¯@k—W@Ua™ykbƒI„„@VWJkLWUkJƒwU@ƒn¤mL¯wm@Umƒ²XVWbnV@bmxƒVkxUblLUV@kVWKU¼ƒŽkUƒ@mn@JnV@bUnmJUn@„k‚@XlxšLVVnKlLVV@š@LkKULVbk`WL@lkXW@kVƒ@UÞUlÇX™lkaUbmV¯@@L@šƒV@bkb@xƒlW„—bƒbW@—±@UJ@IU@mVk„VxV@@l„Illœn@Vm@ƒVUbl„@JLmKÛXmVkU›KULU`@LĉwƒKUX„lVUl@Vb„JX¦̼bÞxŎxɜĖĠ„Ŏaô@"],encodeOffsets:[[108124,38605]]}},{type:"Feature",id:"6404",properties:{name:"固原市",cp:[106.1389,35.9363],childNum:6},geometry:{type:"MultiPolygon",coordinates:[["@@Vnn@°xnK‚£„mV@„xlIXVlKXI@Uƒƒ„JlašzVbX@l˜°@²_@¼mlVšnKVbUb@VlxVLXb@xW„bVbV@VlnL@J@Xn@Üx„b„W@nl@nblmnIÆ`@X„@Vbna@aVUUWVkƒ@kbWakbU@VwšW@_l@nmn@@alVlk@UkmVak@@a‚UXaƒL@¯@KVa@axWI@KnkVaVJn_lJ@„X@‚m@nVanUVb@mXLlJ„VWnLla„VVaVX@KXVVkVKlknKVa@aVU@KXb@klJUknUmƒ@K@_UW@alIUamaU¯kJma@IUK@U„@@UW@@aXLVƒVJVaXIƒKlaUkUV@ambUUJkIWJ@wUI™V@JU@UwV@@Um@™nU`@UkUmVUxWUUV@aÅb@aWXkKUUƒUUaWK@wnm@IVU@aXwm@UmVaUalk@anKUwlƒUwlkK@wmaƒUkmmIk@VmkUUbW@UVUnW@kV@xkVmbVnU‚™@UbUV@a›k@kkW@„kLW¤@„nV@VU@W_UV™UU`VLUV@IUVõVULU@UUUJ@wmkUJ@šWI@l@bkKkbVVƒbVbUL@UUJ@Vm@@L@xbVVVLVlVwX@Vb@bmUkbk@@JWIUVÅw@Km@UkWKXxWLÅ@UVUnWK@xkVW„@KULwWVXVWzXVVKVXkV›V@VUbV@U„VV@š@LXxVL@V„b‚Ž„LnKVLVxXVmb@l"],["@@@J@aƒU@LWK¯UUxVVn@Ġ„„LUW@UbUUUa@KUX"]],encodeOffsets:[[[108023,37052]],[[108541,36299]]]}},{type:"Feature",id:"6401",properties:{name:"银川市",cp:[106.3586,38.1775],childNum:4},geometry:{type:"Polygon",coordinates:["@@šUšwVK@UVWÞUšbšw„V@knV˜@@KU_VK@K„ƒn@W_XWlL@Vn@Ċw@Ulaœ@Wanamī@aƒ»ŋó@aÆÅɲÿUaV_°ÝaƒLƒaUmVwVwX@VUVݚ@@¥Ý»@mVÅÇJ¯XÛ±VUmƒUmU@KUUkKƒLÇxUŽ@bƒLUJ@bƒx@xUbVzUxklWnXV‚KnXWlUL@V@ŽVLœ@VL@ŽmJUXmJULnn@VmVkKƒ²mlXWlx±@@VUb@L@@VV@VVUL™ƒVUbU@WmUƒ@„Ò@V¯bmn@VŽƒ„@lVnUšnVWŽXVl@¦VVUn@x‚š@‚XL@¦‚lXxš„Vb"],encodeOffsets:[[108563,39803]]}},{type:"Feature",id:"6402",properties:{name:"石嘴山市",cp:[106.4795,39.0015],childNum:2},geometry:{type:"Polygon",coordinates:["@@U¯ķó±ÇÛ¯™ķmbXb›@kb@Vĉxm@@UkKWXX`m@ƒ„@LULV`@L—@mU@lƒU™x™aÝVUX@VUL™x™VkLWVšš@J„nVLXVlŽUV@zl‚VL@V@b„„n@lU²WVLlLVbUŽVxUx@xǀL˜xôҜk‚K²ŽVa‚U@wXa@W™ÈĉUa@‚bÈk„m@¯"],encodeOffsets:[[109542,39938]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/qing_hai_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6328",properties:{name:"海西蒙古族藏族自治州",cp:[94.9768,37.1118],childNum:7},geometry:{type:"MultiPolygon",coordinates:[["@@„V£°š@laœXô±źwš™ô@„Ulƒża܍n™Kƒw@U„aƒ™ša²L‚mÈLƚÈxlaUa„wÞmÜbÞUšnJ°a„kôƒ‚ÑkwÝVğwÇ@ÝkkV¯¥@ò„»„nŤ¥XImw@mVwša@Åw™mLkaW—wƒ¥l»kçƒó„»@ƒWÑĉŽğ@ĉ„™‚Ń„UwóřVómĵ»™™Ý@VǕ¯kšÝĊÅk™°ÓUklkU±šI„ÇÞkƒ±@šƽJƒ™@UġIk@W¦™VÑșÓÅnťKULnޝX›ƒ@¯mUÛ@WřmóKknōbƒxÝ@ƒŽU@kw@ÿÇLţšÝUkšmwƒŽk™lċVŚU¦™ŽƒLkUWlÅÑ@aƒ@ÅѱUóġʼƒÈĉmŻ@@wkw™Kl¯U™ġ@—„lÇU™Ó¯_ƒ‚Waĉ²Åló¼VbknƒKǎÅ@ƧĢō°Ý@ğ„W™ÅxUUm@™‚ÝXۂW„ULUè¯@mbUaƒLƒbUWġxIUJWz™a¯b™y™@ōÈóLU`ÇXUl™UĉV¯n›mÛbǕLklƒUĉVƒšóaġ„ƏbġKţnkbÝmmnÝWȭȃŽÝXţWókUÇl¯U¯‚ġUɅĀ@°¯„„š¯„VÆnmJ@ĊķnóJUbÝXUlVškL@lVxnnmb@¤Vzš`ÞÞŤ@„VnÆJV„°b„UôJkzlŽkl@²óš@ÆÇ°k˃šÇbÛU@lmb™XV˜kzƒV™ŽɅĀXˢlń„ĬŹ@›éÅ@ĉńưğbUšlŽɜ_°‚@xŦ˜škbVbƒKĢ„ŤVŎް@żÈźlĊ„ôKôb@nôxŦ„Æ@ôŽŎL@þÆb@šnnšWˌbÈx‚InaŎxlU@Ѳ±ƒğVŨƨbɲ@Þ¥ôUUķWVô¯ĊWʶnôaŤˁ@£nmnIôŽǪK°xUXô@Ŧa°m‚kXÆÞVŎkĊ°ÞLȄôyVašIlwX°UVwĢÑÜKôw@nV@œm°nmŽn„Ü‚ɞ£VbmŽXnƒ°ÜÒ@xx@V‚b²UlbkxVnšJUnVVĊ°KȚm°nxÇnn¤±¦@ŽUXVV@„lV„„bmVVȁŽVxšÒ™°šIšbźaȃšbVwš@šƒVL„™ƾÑ@ƒŦô¯ĊkôÑ"],["@@„@šƒ„@n„òVœa‚w²bVxšxÜaČVô_ĊJšIVmšL„a°@Ŏ¥XlK@ƒšk„l„KVbUb˜@nUĢn‚aÈ@lmǬ»Ġ¯œn‚mnƒƨVy™Ñǖ™Ġ»ɲInŽ‚@@ÅĢƳ@¯°™ôV„KÈbVIÇ¥¯@Ýó„™@ÑnīWKšƒk™‚k@¥š™¯™Åa™Xƒ±VÅw@±Ġ¯@»™š™n™Wmw@ƒ™@¯ƒVƒUUWçƒKĉ„a±VkkƒV¯w™x@šUJ‚x@bknÇb™mÅ@Uw±U¯¦UŽ™Kmš¯I¯Žť¼ğĊ™@ǃŹÈ¯@Ý»ÇnˡJƒbÛèÇnƒ„ÅK¯„ġĠʐW¼Ålm„@¤n²ƒŽÝb@b„š¯lƒ¯@ƒšÅ¤W„™¼nV@x„„°@Vx„@lbUblbX¼W‚œšÇ²lšUŽ@¼ŽV¦@bÇlVxUbVxÞbVšœbm¦ƒVV„"]],encodeOffsets:[[[100452,39719]],[[91980,35742]]]}},{type:"Feature",id:"6327",properties:{name:"玉树藏族自治州",cp:[93.5925,33.9368],childNum:6},geometry:{type:"Polygon",coordinates:["@@ɆÿĢV°°VÈklVôŤXÞW„ȮÇÞXnmÞnlaŤmĢLƐãôb„™ĊU„VlkǖKÜaœn°mĊUšVVkÈWV_ôKŎǚ@šz°ašbXyVI‚JĢwVX„a„KVbna°@VçVKXƒÜÞWšn@VVÆwXšĠƒÞ@Ŏ¯ƨġÆ@ȍ„LlmUaô»ÆkĊ±Xb„°`šÔV‚kȘƒĢ@Všk°šLlx@xż@Ċn„Çź»ô̲VÆÒ„@@bÆÒXklV„KšV¥Æ™ČUšk‚l„nxl™çƒ¥ċç@±m¥ƒwÅJƒ@™™™Vƒ„mÈIléÈa°U¥™™@kÞV‚K²ÑWƒ°w²Ñ‚K²ñšyƐ„ÝšVmw„»kkWĉ—JWUƒVÅwƒL™mÅ@@ƒmw„kn¥Vу»°™°@@»„¯„Lla„JônV‚UůƒU@W¯Umѯ¯k@WykU@¯„wV¥ƒkVwţƒk»šwWǜĉĶçšK„ƒÞ™ÇaĉbƒI™lUƒ@kwƒWƒXUƒ°w™±@UšKn£Wĉ—KWxƒkĕVƒšamwXw™@™„Wmnk@aƒVkƒ™bĉLƒl™Imm„wUÇ‚Wx™nÝJn@¥Æ™kwƒaXƒÜĉ™¯ÅV¯¤mkƒx¯kķܙ²VWôŹVUƒƒ@V£™¥@ƒ°wn@™m@¯@UbUôķŽmn@ÆÛ@ÇýVaUÇĊVƒ@Çlğ—¯xÝŤ™lVÈÈVƒx„ƒ¤Vx™„kK@™@ƒx@„kVƒĖġ¥kIWbXŽŎx@nƒxÅUW`ƒ_—@±ŽUa™LUxƒK¯„WbkVlb—bmŽƒLÛÆWIUwƒWkwÝV@kI›ŽéUb›UUk™V¯Km¯k@Umݐ¯m¯›m—L›Þĉ‚ÛUm™ġ£UxkKm°™Lw›šk@kšƒVm„ƒKVUk›@¯a¯Ģ™móKUU™x™ImlÅn™™ÇbXèVVU„°„@ŽšŽ@„‚xXnmš™ššŽ@¼ğ°@²ÆxU‚„²šWÆb°š™š@¦llš™„XLmĬ@҃šÞô°@ȦUJÇaƒLóU¯š@°ġƴ@Ɓ@mɱJğ¼ǕššÒUzƧ‚m„n›mğ°ǫ¼knÇ@bġmmV—@VaUaƒLƒk™l@„kLW‚ō¦¯@ƒb™KUn™JĉIó`ċUÛb™wUw±ax›bñUmƒƒ@™„ƒ@—bƒaƒbǏÅXm˜„ƒÝ„ÅôVbގ™bl„UšÞVޚ„U‚°„VUxƒ@U„V„@l`™¼nL@Ċ„LW„„¤kXķWġXUVVVķ„UbVb@°kVVxÈa‚@ȦĊbšaźJ„U@Ț„„˜Vœƒlš@XkôaWƒĢ™Þ@laĸUÆb²mÞLĠ™ÞÑôbšÒĊa„JVbm¦"],encodeOffsets:[[93285,37030]]}},{type:"Feature",id:"6326",properties:{name:"果洛藏族自治州",cp:[99.3823,34.0466],childNum:6},geometry:{type:"Polygon",coordinates:["@@ÞVŤ™ÈK@ĀlxV@„Þ@„wŎalmôLšnXÆÜ@nV‚°@œ„°WmVKŦLÆmȚԂҚUX¥l@ĢJVš@„ŽƾI@w™W°™™Ån¥›kÅÝVwôƒÈç„@lÑĊĕša„JnaÆLVw°kny°UnkÆVȍĊll¦„Vƾ@@™nUźƒÈǂIn°X„wÞKô¦VWV£„@£°ókċ±I™™am¯Va™»ČĉV¥°™@m„k„¥l@„Ċm@ašU™mwXƒ@wÆxšmĢ_„`VnÆbšKVw„@@ƒnUVğVmVVöIlŽl@@çÛmƒ£UDŽw°@VUƒ¯»m¯ƒJōĖÅLƒa@»ĉ̱`U_k`ÇçšóƒkX™lK@ƒakÝރš£WċkÝ™kxƒJݯÅw™xķxmIÅx„@k±J@ýŋš›¤UœkŽmV™°ÅÝxkwmġƒnÝVU„š¦ƒŤlmšóXk¤™UKƒç™@mVkK@klīƒ£mš¯VUbƒW¯¼ċb¯ĵam¼mVX„m@k¤ÇX‚ÇbƒUƒ„¯J¯„¯È@˜™bVXVҙ¤V¼kxݚV„@l‚V—„WxÛ¦Wš¯šmKnlŽkŽ‚šU‚@nƑUĉ„Ý@ǺۄċUĉ¥™UƒÞŏ™z±òL±Ò¯xX„±ÒLÝU@lššV¦¯‚ÇbkêÇJƒnU„šš@š„‚ÆI„xn¦‚‚@²Č脦‚è"],encodeOffsets:[[99709,36130]]}},{type:"Feature",id:"6325",properties:{name:"海南藏族自治州",cp:[100.3711,35.9418],childNum:5},geometry:{type:"Polygon",coordinates:["@@VxƒŽńƒš@ĊĠŽĊXÒ°UƾĕÞm°£nb@‚@LUUW„Ûº@nlÆǬšĠ£ÞV°UXb‚VȂǵ„éƒ@kWanm°@™x„z„K°¯ĠVšƒVƒkw™Lnm°kÞxÆa„¥@‚wnĉƏ@™œ_l›š_VwšmĸèŤÅČU@™˜Wn@ÑmKU™nğƒK@ƒ°¯UÿV£nmšLl™„UƒUÛé±óókkmƒnƒakV@ǰóÝXƒWəÞťIţxmm™VÛUVȂÓnWyȁĉkƒVš°WnkĊa„¥‚_œK°ÿWna@ƒmU¯wƒlÝIU¤UXó¥ÝLƒx¯WmJÇÈŹ„mV@šƽ@ƒUk¥ĉkċŽÅUml¯Vmz¯lUxÅKmbƒI™bĉĖk҃@Çèó„UxÆÞœlm¦šÆ¯ššX@x™Ž@Ž„²ÝlƒÈ™JV²klVl¯ÔlšĉƙްlUǖÞ@ššĶ¼nŽUôôŚ"],encodeOffsets:[[101712,37632]]}},{type:"Feature",id:"6322",properties:{name:"海北藏族自治州",cp:[100.3711,37.9138],childNum:4},geometry:{type:"Polygon",coordinates:["@@ōmġxƽUm±Lǿþġԙ@kxmWƒb¯I¯‚mIUx@bƒbŹVǎƒkĵbƒlĉI¯¥ƒUšm@ƒÆ¯È@šašóšUlƒČ»@w›œ»›wXaƒƒó°ţç݄kUƒaV¥ÅbÝw¯lmnšKlxU„™„ğU¯°ƒLƒyšw¯@mnXb‚l„@ƒêȁǶUWa¯VÝUğ¤ǫ™kÅ@mܹXƒVV@K@ma¯¤Ýnƽ˝V@„ƒ¼„ôlèk¼„¦˜xXŽlbnKšÆx@Ž™bUx@nnxWJţ¦ƒmƒ¼ñ@ް¦lUÞlÈ@ĠxÞUlxÒó„ƒl¯bmI™ŽÝVÛaÝnƒxVbkbÇwřÇKn±K™b„šƒb@V„xšLmŽÛŽŻbk„ƒVó@™šŹxó²›Wkb™@¯U¤ƒźĊ@lUX„°lÆôU„ƒlLX‚aœV°wšxUb°xÜôÈKVkÈmlwškÈKšwšK™™VUŤĉŎ»„»„Il¥na°LV»²¯Üy@w̃°ĸwlwĢw°±„_lVkš@°ƒbƒÆ¯zƒ‚„š„@l_„@̱lŚVlUaރ„LVƒnKlnȏ°IllČa˜wÞѰx„UU™@wƒVkmĠLô»„KÞýôaÞ¥ôĀÞmƁ„™‚mUƒŎV¥Èl°²°a²¥V„@@w„amm@Ñn@Æ£żƒVƒĠ£@W„¯Þƒšl@š»@Uk@"],encodeOffsets:[[105087,37992]]}},{type:"Feature",id:"6323",properties:{name:"黄南藏族自治州",cp:[101.5686,35.1178],childNum:4},geometry:{type:"Polygon",coordinates:["@@ôl²ôÜê„VƒVkš™KmnU¤V°@„„LmĠVšnLÈL@alb@al@n°Vš_XmWUÈamaVIn@n‚aV£œóVWƒ™U£°ašxÈ¥@™‚aĊwȹ@óša™ƒğbm@k„w@mƒaÆw@ƒ„In¯mmƒ@UkkWƒÑÅ@@kċÅçVkÝJÅkVykŹl¥@¯š™ĢU܃X¥òý—mmX™ÝÅlmU@£™Wly™XW»Åbƒl@aI›»k@klm@UxUUƒVƒ¼¯Xƒl™aUnķ‚ƒI@x™@¯„ƒK™„ĉUU`óšlȝô@¤ƒÞJ„k°xVŽ„n@ŽmbXޝ›L`ƒ¦ĉbml¯X™ŽUŽl„ȂĊXzm‚ȁÔU‚ÜVšUnnŤwŦJɚ݄XÞW¯ô@ÈlU„b„mln"],encodeOffsets:[[103984,36344]]}},{type:"Feature",id:"6321",properties:{name:"海东地区",cp:[102.3706,36.2988],childNum:6},geometry:{type:"Polygon",coordinates:["@@@҄bš¤ÆI°ôU¼š°UŽnnWx™š@b¯L@lUUWbXxWl„ƨnxVUllš„XVŽUŽnL@lȀý²KVnƾ‚ĢwV»ƒ@mÞ£nÆƒÞÑmL™ƒKUaVżĕƒWVk²ƒƒÆÝ@ƒXw°@„ô™@a°wóUUmIk™™aVmÞwmknyƒ¹VÿƧnŏm£X»˜™naV±„Ýw@ašb@aƒm¯„ĉVó¦kÝWKUU@WanU™b@ôǺĉxb@šÇ¦™w¯bV¤„šUX›ôU¤bmm@UJnbÇbXVWn™`¯Umk@@bka@bÇK"],encodeOffsets:[[104108,37030]]}},{type:"Feature",id:"6301",properties:{name:"西宁市",cp:[101.4038,36.8207],childNum:4},geometry:{type:"Polygon",coordinates:["@@@kmKVUƒWk™VkUmwƒƧXkWwXaVV@k°K@aš™XwmmV™¯V»¯óÅJ™£ƒamŽ—X@šċVţÆķç™nUx™`kœ›`@šÅmĊx@Žƒ¦U¦„blVރŤèô¯„„Wbœx›¼œŽ@xċ¼k„™V™ô™bÇ@Ű@„™n„V°¦ĊJ„kĶa„lȍźU„a@aVwnJ°°J„anXlwš@ĢÓ"],encodeOffsets:[[104356,38042]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shang_hai_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"310230",properties:{name:"崇明县",cp:[121.5637,31.5383],childNum:1},geometry:{type:"Polygon",coordinates:["@@uŏu»GPIV±ÐɃŜ{\\qJmC[W\\t„¾ÕjÕp‡nα|ěÔe`²„ †nZzZ~V|B^IpUbU†{bs\\a\\OvQ’Kªs†Mň£RAhQĤ‹lA`GĂA@ĥWĝO“"],encodeOffsets:[[124908,32105]]}},{type:"Feature",id:"310119",properties:{name:"南汇区",cp:[121.8755,30.954],childNum:1},geometry:{type:"Polygon",coordinates:["@@`y”ĉNǕDwǏ»ƒÖLxCdJ`HB@LBTD@CPFXANC@@PGBKNECCBB@EBFHEDDDSNKAUNBDMNqf[HcDCCcF…@EFGLEBa@ACoCCDDD@LGHD@DJFBBJED@BGAEGGFKIGDBDLBAD@FHBEF@RFDMLE@SGANFFJBANPH@@E@FJjRIACDMDOEKLFD@DbDAJI@AP@BGHFBCBGDCC@DCA@CECGH@FKCEHFJGBFDIHACEDNJDCVFBDCRKRLDLITB@CjNJI^DBCfNVDHDFKHAFGDIICDWBIF@@CFAjFJNJBBHD@CJ@AEFJ@@DH@BFBCPDBMFEQGDIFCNDHIP@HDABFACBJFHEBSZC@DP@@JDBƤ~"],encodeOffsets:[[124854,31907]]}},{type:"Feature",id:"310120",properties:{name:"奉贤区",cp:[121.5747,30.8475],childNum:1},geometry:{type:"Polygon",coordinates:["@@~T~JjZdDbLXDLCB_J@@FHFZJJIAGH@HGR@BENBLID@@LFCDF\\FpDBDb@FAHKFE†@dEDDdC\\GreNMACVMLBTMCCFCEGFAA@DAFDLMHA@OD@BMEWDOC@AS@KGAI_DcKw„ÕísƝ‘åĆctKbMBQ@EGEBEJ@@MBKL@BJB@FIBGKE@ABG@@FMFCPL@AjCD@ZOFCJIDICIlKJHNGJALH@@FPDCTJDGDBNCn"],encodeOffsets:[[124274,31722]]}},{type:"Feature",id:"310115",properties:{name:"浦东新区",cp:[121.6928,31.2561],childNum:1},geometry:{type:"Polygon",coordinates:["@@EN@JJLNHjLJNR^GRYVBNZJRBV@PDvbLNDN@LGNER@nCNQNuT_TIVFV\\Z\\XnDrI|[Ʉś²ÏJUHOƣ}CA@IO@@CYDATGFIEDAEBBAGCO@GJMCEDCJRHEFANOCADAEG@@CI@FE@BDIC@AGIAIMiEEB@DE@AJCXJDCJEHGBELGCUCeMAD]CIJiM@DSAKJKCLQDQACUECDMIFCBDJGECHAEIWCK@GLMCCGEACNKCEJG@MMBMC@@CIJUINT@JAJSTEPZZCP"],encodeOffsets:[[124383,31915]]}},{type:"Feature",id:"310116",properties:{name:"金山区",cp:[121.2657,30.8112],childNum:1},geometry:{type:"Polygon",coordinates:["@@L@BIHFN@@EE@@EFBDGDAADVDD@@EF@CA@IIsRE@GDAF@BF@CV@|FBCHBLCNHAFCADBMDCFZXHILBVEEQA@MWFARJJ@DCX@@TEFBLHAAERE@AJABRPBNK\\BrJ\\VHGND@CNADKDADQjGAGNC@GJ@FCFFHC@JF@@dLBDSFADHVG\\DTEPDDHJALIJkJDJCDIPE@YDCBiK@DONE@EH@BAF@HLJA@EIA@ALKNA@@FIFAFHR@NALadsæąyQY@ƒA±DʼnXUVI^BF@FFF@HBJEDFFGFEBSRkVEXGHFBMFIVW@GAEEFOIAIPKABGWEKFSCQLQBSEIBC\\FdBLRR@JGACFDDEF@AWB@LJJYNABBA@CUEGPaO_AIE@MYMFIGAEFECHSAAKAO\\[JEDB@E@MMA@@AGBKMGDFFCDDFEDFJF@NPBAFLHFH@EDDHBADDC@DDCDHHCDDFDABDAD@FEFOBCJ[D@HEDDNJBDDHABJIBBvGLBJAH"],encodeOffsets:[[123901,31695]]}},{type:"Feature",id:"310118",properties:{name:"青浦区",cp:[121.1751,31.1909],childNum:1},geometry:{type:"Polygon",coordinates:["@@RUNKdOFDJCbRFMLAHPLDN@JGL@@APBWYCKN@TU@SHGCEJIDIJKVIZVNM`iNY@CIE@CA@KBOEGEUFCCSADEIEFCDDDIDDHC@CKIeDCG@IG@DHWFEEGCH@@GO@@O]CNpeEQDBFME[JC]DGF@CKOA@QSB@GB@@GW@@ED@AQIJIAAFE@@DO@CFI@KNG@CDACAFEGKGBEGBDCCAIFCCLIECFI@MBCLDHGNAHSF@DMB@EEKBA@@C]DEICFG@ADBHGFKCDAKKHKD@@FHGAANGEEFCHKCECBCKG@ADKCNE\\[A[I@@mGBDQQEO@BCE@AI[AML@JGACLOAFKEMM@EQKC@CUCBCCBCHEA@FF@@FM@GEAJK@GNF@EXPH@FD@M^@HIADJCFDBER@DK@@DE@CAKFOCCBDHIBCNSB@GFC@GQEEOWFICGDUAEJIDBTAHJHEB@DIF@NE@H|HBDBEH@DKBAHEF@HEEUB@FGFGCCCE@AHOB@NH@PRLVNNFBX@RC€PbAvMtBfH@DJF@ELBFA@EH@HNED@FFB@HLC@CJ@@DJ@PIRf@HE@CFF@GPHD@DKE@FFBEFFD@DEFCA@DD@IjCRFBAHFDKD@HF@@PM@H@BlbDJDBFEF@DLXB@HCD@@IFCBIFEJD@FDC@FBALLF@PAACJERACAJCBD@EL@JD"],encodeOffsets:[[124061,32028]]}},{type:"Feature",id:"310117",properties:{name:"松江区",cp:[121.1984,31.0268],childNum:1},geometry:{type:"Polygon",coordinates:["@@@DLDFRN@FNELPBDKHB@INK\\BBJF@ADP@RFCRHA@nJ@B\\[\\MFLDBCH@DLDADFGLEDFFMHBBGH@EC@GLLLCBLDHEAGBCH@DEFJ^C@DB@LAFFA@CNE@GTMBGHKCAD@NEJFDKJDDJEDBCDHAAFLHFHBEBDDCH@LMJ@DEP@@CF@BEJBJIBRC@@FX@@HA@@HTA@RPBDLE@CHD^\\INFAERCfFMo^D@PP@@HG@HDFFXECGH@@JDHfCLJ@DGDCCCJCCEDJFCFTBDDVEHFPFLAB@NBFCFKFC@CHIACNOHWHCAAFIDD@CDAGEI@ACFMF@R@R_@GQED@EGFEQEDE_IAHKAEXCQUOQCUDEN@ZI\\DDmAMHCICDSOC@EG@BKHIGMIBCGOCSF[CUHCGEBCTKA@cE@@IGDEEEDI@@HMDBHiHCRCBCLMB@DMCGH[UqI[AMLOAAQIB@BQFBFGBAKFE@SW@CDI@QIEBNXB@FRUFKAGJYWDENCCADBBEMGKDGAAD{EU@@DAEE@CB@HQFJt@JDBE@@FC@"],encodeOffsets:[[123933,31687]]}},{type:"Feature",id:"310114",properties:{name:"嘉定区",cp:[121.2437,31.3625],childNum:1},geometry:{type:"Polygon",coordinates:["@@F@LI@IDKJADKIEJICADGACFECCJ@HKCAFOHAJI@aCBEE@ICAEB[GFGCKL@FGEIFADMLCAEJM@ELQECEIG@BE^QKKLQCA@EHBIGQ[GEHOMGGDHKH@JOECFCjCBEFDNCACMBCILGTABDLEEOEIG@GFIMM@CGKFBFCDE@@GEAGEEACIcGaHMFITIHDN[AKF@FS@OA@BK@IHM@KCGOKBENaQIDECcPMLQVFHFB@BFBKLGD@FAJOVGIACQ@A`LPCB@JEF@RU@ANS@@RCL\\HIFpRBFRBBDKLLDADJDGBFDABHBEDNF@DGBBBADKDAHC@\\JJFBDEH[DEFDH\\LX@XLBLbT@DNJLDCEL@VJABJNDHB@HBHYFBAA@GNFB@@AFB@AFABFLFBHFCL@HJBAFBLC@DN@HN"],encodeOffsets:[[124213,32254]]}},{type:"Feature",id:"310113",properties:{name:"宝山区",cp:[121.4346,31.4051],childNum:1},geometry:{type:"Polygon",coordinates:["@@ˆmÖoÖiƒ½[s[YEUJU`SCIEBCCWJY_LIICDWU@@FaBCJIB[ICH[@@CDKEE@MK@@IMCAEBCH@AMFI@SMGEFGB@FK@BHCAIFJNQD@FEBDFMBKGACG@ECWH@@CDDTOEEBGEK@GC@EE@GPHFR\\JHGA@FDBKRLL]RAFH@FJFDKR@FINBFKDCNEBFJEHK@DLEH\\HFADB@JFFDA@bIJGBEPDBGLI@DDEFBDCHDBIJJFCLIBCL@JKJE@ADHDBHJ@HIBBDFHBBAEIJ@BJFAVL¢ˆ"],encodeOffsets:[[124300,32302]]}},{type:"Feature",id:"310112",properties:{name:"闵行区",cp:[121.4992,31.0838],childNum:1},geometry:{type:"Polygon",coordinates:["@@T@@ELE\\BCMJGJSNEbGdHDJFBJAFIEIFCEWG@@gMENSFCVJFAxR~B@IH@AIiI@GE@FGEAFQPDRiV[\\DFSGMHAXHDOMCJCDETBBNVJJI@DD@ANNNH@FILDDMFBDHNDHKL@XDFGLD@EHGFD@DDB@CDDHCDAEAHG@ABOJ@BIaC@CECLKPFNCDCJBiQEIF@@@OGBMIAEEBMTHF@NKEC@QFEGA@EBCKAACHCLJHEFHHB@AFCAIEACIC@HG@KCCDC[ECEED@KC@KJMAAFQ@GHG@BHIJYIGE@EI@A`KDWCaKcCiY}I}S[CYJM@CFDVPRRVWDFžLBBG`JCFRFEFFHC@RF@HQ`Q@E@ENBDJ@HFCB@DCCEJBBGDGXMPBDGJ@DEDELEDMA@DJF@DMZ_jMNYUUJILCJIJDFGH@TSVM@DLXZ"],encodeOffsets:[[124165,32010]]}},{type:"Feature",id:"310110",properties:{name:"杨浦区",cp:[121.528,31.2966],childNum:1},geometry:{type:"Polygon",coordinates:["@@V@CXJDKJZ`XIDDFADJvSRMDM@mFQHM@KCMKMuaOCU@BDAJSX@HKJGD@PNJCJWAGT@R"],encodeOffsets:[[124402,32064]]}},{type:"Feature",id:"310107",properties:{name:"普陀区",cp:[121.3879,31.2602],childNum:1},geometry:{type:"Polygon",coordinates:["@@F@@FHDL@HFFAPFCSDC@@XGFDH@BDLHNACEFA@ERCIMJEDBAGL@@EHAFENHHJ\\ONQBQCIBC[MKACKI@GGGH@I_G@CW@[DMHCDIBMTDHN@JNHEH@FJFPKFACSBKHDJNABDMDECAFiDEDFDIPG@GLHCNH"],encodeOffsets:[[124248,32045]]}},{type:"Feature",id:"310104",properties:{name:"徐汇区",cp:[121.4333,31.1607],childNum:1},geometry:{type:"Polygon",coordinates:["@@RADL\\NCPHFfLJaJ@FWLGMGIK@IFMDOYYFOTSBI@IMSAMSACFIDNDCPWGGBHNET[CU\\QjOCERFBEHF@@HjJBJG@@J"],encodeOffsets:[[124327,31941]]}},{type:"Feature",id:"310105",properties:{name:"长宁区",cp:[121.3852,31.2115],childNum:1},geometry:{type:"Polygon",coordinates:["@@HFFB@HF@DCAELENSJADCNG\\CX@@D`H@JHGHHJ@BINBFUGEDO[MCKQB}AwQEBUIEDMTNF@hH@FXEDFJEJIB"],encodeOffsets:[[124250,31987]]}},{type:"Feature",id:"310108",properties:{name:"闸北区",cp:[121.4511,31.2794],childNum:1},geometry:{type:"Polygon",coordinates:["@@CSG@BQGODUPWTOBQAAFMECKBGEMFKEOHADDJARMR[PGI@TEJBNG@ADBFND@JL@@NFFCL@D\\@DG\\JJADI"],encodeOffsets:[[124385,32068]]}},{type:"Feature",id:"310109",properties:{name:"虹口区",cp:[121.4882,31.2788],childNum:1},geometry:{type:"Polygon",coordinates:["@@bA@E@QHSXBDIMI@OHCLI@GTWBIACQAYIOFGCENBBARSPOXCVHPARH@DT"],encodeOffsets:[[124385,32068]]}},{type:"Feature",id:"310101",properties:{name:"黄浦区",cp:[121.4868,31.219],childNum:1},geometry:{type:"Polygon",coordinates:["@@NEHFLAFDHDPEAMZUHQQ]IMKJG@EPERABHBGRUCCNGV"],encodeOffsets:[[124379,31992]]}},{type:"Feature",id:"310103",properties:{name:"卢湾区",cp:[121.4758,31.2074],childNum:1},geometry:{type:"Polygon",coordinates:["@@VDHQGABAFQFOH@LIiKKHEXI@IbAFZB"],encodeOffsets:[[124385,31974]]}},{type:"Feature",id:"310106",properties:{name:"静安区",cp:[121.4484,31.2286],childNum:1},geometry:{type:"Polygon",coordinates:["@@DLLB\\NPGLFHUDMYABEeKEVMAAJ"],encodeOffsets:[[124343,31979]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shan_dong_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3706",properties:{name:"烟台市",cp:[120.7397,37.5128],childNum:9},geometry:{type:"Polygon",coordinates:["@@ŤLšLllVń²è°xżĢĠÆl҄šŤbœ„V¤ĊXnŽlĢVĊ„Òš„ȰĊŰÞè˜L„±@џn»VUźċ²»ÆkôVɆkĊѲkŤVVwUUVmUaƒ@KkU@ƒmUmmk@UwUkmW@UVIXa@ƒmw@a™KULƒaƒx@Uk@UbWU@yULmK¯@kXƒVUwm@@JUUknWKUVƒLUbU@™wWykIƒa@w@mUI@ašUVynIWa„k„@@W„bl@@knmƒK@wnIl™°Kna@V¥ğ@ġUķ»™¥@UōJƒX¯¤k@™wmI¯‚k@mwƒak@@šlX@bUJ@VƒbknWxkLkxlŽšLVlkLmŽšb@bU@ƒbU@VbU`Vb@n„L@Žmb—U@˜VnUVmnU@mm™@kIUWVIUK›VkkUJUnmL@VmLUaVWaXamU@™™U@KUUmVƒU—JƒU™VÇwğn™mƒ@mXĉV@l¯xnô"],encodeOffsets:[[122446,38042]]}},{type:"Feature",id:"3713",properties:{name:"临沂市",cp:[118.3118,35.2936],childNum:10},geometry:{type:"Polygon",coordinates:["@@˜bXlƒl@zlV@lXXmŽkbVVlš„U@Vn@@Vmb@XšKšVX„WJ@XXl@„‚ŽÈbVLšUl`„@XXV@VVUxVbUxVbš¦„@‚WnXVJ@bnVUzl@„°Æx„U„KlU@mUUnUlUVWVUnVV@XX°V@Všll@Vk„aXVl@Ux@bmbXLlKlb@b@bUJn@@„„b@n°x°K@an@@UlLVKVbXb@bVVnK°LVa@UVa@™Xw‚KVxnLšU°@naV@UWUkWƒULmV—wÝKUUla@aó_@mƒK@aUU@ƒWUkwVm@aVI°W„@@IUw@a±¯@¥kUVUm@a‚wkw™@ƒK@kVKk@maXalI@alL„WXblaVLVU„V@LnKš@„l@w˜aXašLlnUl„LšmV@n°J@_VmnIVym£UKmI@WnIVm@anUVmÇ_kġIÅWUXÇm@U@ݯÅ@ƒ™@naWƒ™IVW@IkK@klKn@naWIƒmk@ƒaƒbkKkLWn™WkLWmk_ƒ@UaVƒUKmLUw@mn£WwUmU™ƒaóV@UkUm@UKULUwmJUX@WW@XҙzVblJXŽWXk@UVWK—X‚¤UL@xU@ƒ@ƒVUaU@@XmVkLmWkXUyÝLmKXnVŽ@n@l™x@bWLnVVn™`knULmxUl„„WLXŽVb@VƒK@z¯x¯¼Wx™KUn@bk@ƒlƒVVVz"],encodeOffsets:[[120241,36119]]}},{type:"Feature",id:"3707",properties:{name:"潍坊市",cp:[119.0918,36.524],childNum:9},geometry:{type:"Polygon",coordinates:["@@l@@UšK@Ž@L@bX@@VlL@JƒLUVnX@`ÜXn`V²mJ@bU@@n„b@l°xnnĸVƚ°@„ƒĊ£Þ@lWnÑnkʶJmó°w@kk»V@»ƒ¥k@V@kw@wVm„a˜Å„mšaô£ŎƒXI@mln„Kla@mV_UKƒ@kUkw@alW™IU»™mƒ—@WUIl±UUÅU›bkJƒ@a@wUKUaVIÆmXIWaka@m@Ul£XKVw@ƒUIƒJUkmJ™ƒVkU@a„ƒWK—ImVƒ@UxmL@bX`WXU@U`ÇkUak@@°UblXk‚mLUKmL@VULóƒƒVk@@Vlbn@Ub@ċaUJUbƒIUlVLUVVbVKX„VlVXU@mb¯@™VmKUwLWx@šUb@VUb¯KmLUU@aWaUaULkK@Vm@@b¯L¯w@mƒa@ƒm@UUU@U¦lJUXƒVƒmkb@nm„XVWŽkb™IVxUV@VUbWLXVƒLW`Ux@nk@Vn@x@VkJ@œV`mXkŽ@V„xV@lVššI@VULš˜VU„IV`°bVXXx„V@VWVnL@xV„Ub"],encodeOffsets:[[121332,37840]]}},{type:"Feature",id:"3702",properties:{name:"青岛市",cp:[120.4651,36.3373],childNum:6},geometry:{type:"Polygon",coordinates:["@@„@nU˜JXLƒ„@blVU‚š„nIVl„IVJ@„UxWLk¤@V@nlbXbWJÅnUJVbVL@x@b„ŽlIœaÆVVVk²VJ@X„˜šnV¼šJkX@blxlV„@VLU`@nkbƒLkm@nWJō„ó¤™bƒn—ƃbUn@xlxU@l@„¦@¼UŽl¼ĊUnW„@šnĠmÈxšU„V˜I„VnUVV@LšV@šnVWbXb‚UVbnK@UnKVmVIllœUVLUJVXlJš@nnV@nmVUUm@—˜Vna@ƒK@mUaV_UaV@„aV@@a™anlKUk™KklwlKXwlm„a@UVI@akW@™l@„bnxl@°nJšxl@°£„WŎIUÑn»lašmô¹Ŏ¥VaUUkƒmkġWɱIUUŹ`›@kk@ĉƨřV¥_Ç@™Ĭƒ¤ÝL¯m¯£ƽóķwUW±ī¯kōaĉĕ™kğmó°ƒbW@UKkLUaƒVmz@V@ŽUxVn"],encodeOffsets:[[122389,36580]]}},{type:"Feature",id:"3717",properties:{name:"菏泽市",cp:[115.6201,35.2057],childNum:9},geometry:{type:"Polygon",coordinates:["@@@¥šIVUÈmÞ»@UlU@Un@VW@UVmkk@aVUUKVÝ@UVknK@UV@VVnIVƒ@wnƒmwmKXaWaXI@UV@Vy²blkVKkam™U@kb@Um@VmUkmƒKmkXKWwkU@Ulƒ@UnK@UVUUm‚KXwšUVL„w‚K„U„@@Wl@@wUkV¥—@@I@W@_V@VWUw@UUa@aƒaWa—@@_mKUw™l¯amzmV—@WK™nU@kƒWLķaUKbÝVmV@UWÇbÛ@ƒX™°UbW@XŽm„Vlk²UJUbmLÇxÅWUzl‚¯Ll„@VkK™XUbWJ@bU@¯@™ƒkbƒLmKka™„@l™_WšXºVbUz@J‚n²V@¤lX„Ž„nV°šLn`WbXLôVlKVUšxXn˜lXLlU@bVV@„XJWLUVnVV@„„@n‚l„°nn‚V„KÈbVXÆJU°VnXV„kV@@xVL„@šWlb"],encodeOffsets:[[118654,36726]]}},{type:"Feature",id:"3708",properties:{name:"济宁市",cp:[116.8286,35.3375],childNum:11},geometry:{type:"Polygon",coordinates:["@@nam_nKlVLXa„Il`š_@KVVXI@m@w‚ƒ„@@k@Kšnô@n`VbV@@L„L@KVVn@VX@‚VL„Jl„š@VUUƒU@Uam@Uk„wšKWaXamkJmIUVUÈblašUnV@kVKl@@lXL°kVJ@VÈnVJUX@V‚LXl@xVLnU‚@VK„V@a„IUaV@„bĊU„x„K‚kVJXUlV„ƒ„UVašI@WUI@KlUnw„mWk@WXIWƒ™U™L@Wna@Um@@UƒVk™UUlanWW@kkU@y„kWk—aWVUlÝbUU@kƒJUIU@@ƒ™JmaókƒLKǃUUkKWLk@WbkUUaƒbmKn¯°¥V@XwV@VanaVaU_@Wlk@WÈ@VUÈVVۂm„aklKȯlLVUX@lK@aX@@kV@VmV@VwnJV_UWUwƒX™am@kW@wVUkKVIUUVmU@UV@IVK@aUL@aƒV@Lm„UKmx@ށômLkUWJ@šnXmlUxUL@Vkn›VUšU„@V™L™`Ub±LkV@kUKÇbÛ@ƒU™Wó_mJƒ@Wk@@Xƒ@ƒVLƒxUK™VWxLVnUV@VmL@Vk„@VlVXxWLnl‚Ln„VlUnn@@VlaV@nšlbULkl±aUzU@@VWJXbWbnLnxm„@xU„mJUUU@@VmLUl@VUÞVLUV@bllUn@VUXm@@VkV@VݼÇnUV™J@¦nnƒlnVlL@„Þb°KVV"],encodeOffsets:[[118834,36844]]}},{type:"Feature",id:"3714",properties:{name:"德州市",cp:[116.6858,37.2107],childNum:11},geometry:{type:"Polygon",coordinates:["@@„¤@VmbVXnVVbVJššX@Žll@z„lVInl@„@bVxUbĠ‚l@Èbla„IšxXVWb@L™@n‚ULWVXXšWWLnL@`@LUVVL@lVn„JšU@UUk‚a„™nš‚Vôô„b°¼V‚ސXš˜‚œIÜbČa˜bôW„XÞWÈzÆmnLVJ°ÈnlV²lbnW@™@UƒUV™šmnwmkkKWƒkla@mVIUKUa™aUwmn™JU@@amIk@@bVlkX@mmUklUUƒƒa@_UaUUƒV@wƒw™WkXmW@I@WUaÝU@UXaWUU@UUVW@UUUWUn¥nUVa@m@k@alU@wk™LWa@UUm@@wnmU™wla@anKn_@alK@ݙ_ƒ@@WUUUmlkaƒIƒyU@UwU_Wa¯yU_mWUwkImm@InWWUk@@UVWV—kW¯U@VƒL@b¯b@l±¦@šVV@lUbV„@škxVnUšl¼XV@b@lV@nIWxnbƒ‚™@UU™LƒxÅxm¯ƒaUƒ™wU@mUÅVÝKULm@bmKUXó@"],encodeOffsets:[[118542,37801]]}},{type:"Feature",id:"3716",properties:{name:"滨州市",cp:[117.8174,37.4963],childNum:7},geometry:{type:"Polygon",coordinates:["@@Vb@`„bV„kVlnV@nlWUk@al@nJ@bV@šInmVxšbVbVLUJ@nkb‚lX„lLnlmx™nUš„V@V@šmXn˜lbĸ@nnVx‚b@lnXV@UJ@nVxšxnxVbÆVn¯ƒĕ‚@@wÈçUÇlķVIœb‚@„Çmk@¥k@UkUK@aWakUóJW_UW@wkkWK@U@Kš@XUƒƒUkmUUalKXala@U@kkWlkÈl@kšV„mVIVmU_‚a„ƒƒwnwVW@wƒwUƒ@wU£ƒwkJWIyUI±bk‚VUJ@nmV™Ukl„Xmx@lnbW„kVƒUkLWŽƒxkKUUmUkb™J±—LÇxUKmkUmkkW™™a„mUaVkšJÆ_²KĠ@U„W@w„U‚¥nUWwK@aÝUkÅVaVK@akLWƒƒƒ¯I@bnbVx¯JW„ñšWbUL@šƒŽnV@VmbkUUV@IÇak@@bWak@WJUœJWL@bXV@„‚@„V„Jlb@zUlUŽUImšnbV‚mz@°UV@V™bV@@V@L@xLmKUnmJVX„J@VkLW@UVUL@b"],encodeOffsets:[[120083,38442]]}},{type:"Feature",id:"3715",properties:{name:"聊城市",cp:[115.9167,36.4032],childNum:8},geometry:{type:"Polygon",coordinates:["@@ô@VWnL‚an@VKÞLÆUnVV@šxV„„bn°Æw„wšKVVš@„maXwmJU@@k@aWUk»V™Umlw@™UƒVa@kUU@™²¥@k°a@a„K@U›ƒU@mmm@ów—ѱ¥¯@@w™Kmw—I›¥kU¯UmakJmIUaƒVkKUkm@VUUa™Uƒ@UaƒKUK¯@™w™UVŽUIUKVw™k™¥™wƒbVŽ@xn„@lWnXxlL@`„XlJX¦l°XxW¦@¦Ul™n@Ž™@@Um@@VXVmx@¯bllUnUJ@VULVn@b„xV‚VL@b„„VlnVVblV„ÈnVlIVJœLô„lJ@xl²„"],encodeOffsets:[[118542,37801]]}},{type:"Feature",id:"3705",properties:{name:"东营市",cp:[118.7073,37.5513],childNum:5},geometry:{type:"Polygon",coordinates:["@@ͬUǪlô@°Uœw°ōĠ¯š»Ģ炻XÇ@w™wƑa™ÇƒkwVƑ¯@řķUmm¯w@kƒa@mV@@anIU±m_ÛW@_mWVU„K@IkK@UW@@a@K@™L@Vk@±U@UV@lm@mUU@kLm„„xV¤@xV„„x@xUXmx„xƒ„bV`UnUJƒn™U@lÇkkllX@l@VkbWbkLVbnVVl„„WV™@@L@VXLll@xVXX`ôIlVXb@bVLVll@@¦nlƒÈ@›aUJkĸVÈÇè@x"],encodeOffsets:[[121005,39066]]}},{type:"Feature",id:"3701",properties:{name:"济南市",cp:[117.1582,36.8701],childNum:5},geometry:{type:"Polygon",coordinates:["@@²¦˜Òôxn@nn‚@V‚œ„°VlXU˜UX@Vl@XVmX@JnnlJVxnXV`°zXbV`VxV@„z„JlbkŽVnVV@X„@š`@ÞkL@bm`mL@bkbšxnVm@xn@VV‚@XbšKl@xkV@b@l@nUbmVm¦XVVV@VUXVVV@XVWb@VÞVVb@X@JnXlWšX„x@x„UVV@aVKVUX@lK@UƒIUWnIVmnL‚K@w@K@UU@ša@UVU@¯nyUman™VJVVk@ykaƒIƒU@@ƒWU@aXK‚IV›XIl@Xb@al@Èb@JVUlVna@UmU„@™VKXaò™Xƒ°IUwma@aU@UU@wVW@фw@a™I±`kbƒUkw™UmJ@UkmÇUUkmKknUVƒ@mJUkaWkƒa@KmKkUƒLmyXa¯_@WmImmbƒLmUkVUbUVƒJ™bƒUkkWJkUƒl™IUm™k™Lƒ›„lK@knaVmkI@mWaƒLUK™UU@@VmLUVLWK@UUUƒWUkkVmx@„Vl™¦"],encodeOffsets:[[119014,37041]]}},{type:"Feature",id:"3709",properties:{name:"泰安市",cp:[117.0264,36.0516],childNum:5},geometry:{type:"Polygon",coordinates:["@@n¼šŽW„nxšL@x°@š¥Uk@ƒnwlUVl„XVV@VXL‚KVUnK@UV@šVVL„KXb@nlJUnmb@lkLƒ‚„œšKšlVnšJ„klVXIll„Vša„IVUValUnV„K‚annnJ@X°`Wbnz„KlVnL‚Ž@L„bXl‚bVlnI„@VUU@UmVƒ@U@Uš¥@VmV@@_Ua@m°@@ƒ„kmUUm@UVmn@nX‚@@a„anJVUVL„mlIVJn@nkVLVa@KVmVLXVVLš@@U°bn@VaV@@K@aVkœbWaXUVymU@aUImWXƒ@™¥UaVwUaVwUUU@WWƒ@k_™VUKÇa@ƒƒnmxkV@LVJ@X™JUbƒVƒ„kUWVUIlƒLƒwĉVƒaU@VbƒJ@bƒUUL@mVUK@wWkK@UVWUIÇm@UUI¯lWK@kk@UL@lmU™VkbÇaUVVnJlIn‚WbXb™LƒxVln@VbV@V„UV™@kƒƒIUK@UWm@UU@LƒK@KU@Uam_ó@™m@L@lƒ@„@x@nWJUU@L™`k_ƒJWbUKkmLn`mb"],encodeOffsets:[[118834,36844]]}},{type:"Feature",id:"3710",properties:{name:"威海市",cp:[121.9482,37.1393],childNum:4},geometry:{type:"Polygon",coordinates:["@@VbUnVVUxĊ¼š¼ô@Þф¯‚WǬLŎUÆW„¹Uǃō¯ÑƒÝkţ™™ţóġ™óL™ł̥U™wm¥kÝmkkKóbÝ@U¦@‚mb¯LkšmJ@x„Lmn@lk@ƒa@Xƒ@ƒlXbmJUz™V@bVJ@n@x„blJXzšxV@Va„KVUXLlmVV@In@Vx„UlW°@nLVK@zXVVal@@V„w„bVKšL@bnx@„WbUJ@VnXVlVxl@nnnV@„lV@L„‚"],encodeOffsets:[[124842,38312]]}},{type:"Feature",id:"3711",properties:{name:"日照市",cp:[119.2786,35.5023],childNum:3},geometry:{type:"Polygon",coordinates:["@@UaVUUKVk„JVaVIČb@Vam@ka@Ul@„Uô„VK@UnKVLnKlkWVa@¯l@VbÈlV_V@XWW_@anKVwUmVw@@Uny„UVblKVLX@„aô¯ó¥mÛĊÿÈ¥š™Þ¹lUīƒ¯Kĉ¼ʟbÇV™U™ŽUŽ™XmakJUnmV@bUnmJ@XnJVLn¤UzmJUn@`¯ImŽU@™nƒKVkkm™KWb—b@xƒk™@mL@KƒUUVUKkbWaƒXkK@bkJWbnbl@UL@l„Lš@lxx@b‚nUVlV@¦²°@bVx@Jƒ@¯XUJ@bUnlxVŽ„X@‚VV@b„L@nô`@bkbVVÞL˜xnU"],encodeOffsets:[[121883,36895]]}},{type:"Feature",id:"3703",properties:{name:"淄博市",cp:[118.0371,36.6064],childNum:4},geometry:{type:"Polygon",coordinates:["@@nƒlKV@nVn@@kVU‚@²VVaUƒ@wmKXU@UƒUWwUW¯aU_ƒJUV™—VK@U™JU™@kUƒw@UlnWU_@›lI@U@wUml@@mVwX_„KWUXKVa@UVUUwšJlaXWUnƒ@mla„n„UVWkIV¥V@VVVI@a@akakLWKna@aVwk@WUƒbUlk@™k@U¯UWWU@mUUVUXkVmVVV@nkVƒLƒVÅwƒ¯k@WVXb›aUl@bV@@b@xkVVXVxkJ@nk@@ŽVLUlVb‚VXUVVUzV‚™LVbUbV„VWVkLmškJ@n±@UxU„VVkV@bƒx@ÒUX@xVVV@°J„„X„lK@bULUblÆÞV@b‚LXxmV¦ƒV@xƒXVŽğ@±LÅ`™IUlVbƒnšbXšllVnnlVLÈw˜K²ŽšIlanVVVlL„wXlK„VlUXƒma@knwƒWlkšVnU@mVIUl²aVJ‚zXJlI"],encodeOffsets:[[121129,37891]]}},{type:"Feature",id:"3704",properties:{name:"枣庄市",cp:[117.323,34.8926],childNum:2},geometry:{type:"Polygon",coordinates:["@@‚yUU„U„kl@@aVmšLXw°»°w@y„L@UUaWXKƒƒVknwVKlmš_UmmUXK@ašw@k@mUWmUL@ƒ@™@£@KƒbÝV@akw™aULmƒƒbUK™LUU@lm@—°mL@nUJVxVXU`mIUxU@UnU@@lW@@bkLW@UVkKǰkLlŽƒbnUÜÇUUVÇ@@Xkl@XV`UbmbUbU@WxU@¯¦m°nL„aVblVXal@XKlLVVȄ‚L„KôlnbšI@„V@VJ„I@lVVÞaVkXU"],encodeOffsets:[[120241,36119]]}},{type:"Feature",id:"3712",properties:{name:"莱芜市",cp:[117.6526,36.2714],childNum:1},geometry:{type:"Polygon",coordinates:["@@lmnLVlÈVln@VnIšVlx„Vla²_šJlUUUVƒVw²@@mlIn™lKXU‚UUƒVaUašKUVyUUWVUUaVkUK@l@@mlIUwUWlU@w@aU@@LU@Ubm@¯a@V™@UKWUUKUn@LUbUKmlm@UIkJƒnUKUVmIƒb@b@mWm@Un@VVnnVƒl@„¯@@nVb@`U@Un@Ž™¦@V@VU„VnV@"],encodeOffsets:[[120173,37334]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shan_xi_1_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6108",properties:{name:"榆林市",cp:[109.8743,38.205],childNum:12},geometry:{type:"Polygon",coordinates:["@@™ýVƒnIW»ƒW@»kUÇL—݃U¯¥ÇIUWWїUWwX¯mƒ@»n@ÜÈķô™@a±kȱƒw„ÑmwçċmU»ÆkkVyIm™ĉÿ@ƒÝ¹ƒWnwÇVš™Åaƒzmmĉ¦ó™kVmx™xU¼VškVm_UlVlk„°IV‚kmJa›¦k™™LmmV@XmKnšlUô›VXbƒbƒ@UaÇLğܙ™Åwƒ£mKnmċwÅ@UkƒbmaVƒƒƒn@m¯aU™Jm_k˜@kWXyl@@kÅamw™LU™Þ™ƒ™mWÅzUKƒš™Uk±@™b@nnK‚bX¤mzVšŽVxÇn„‚¯„@ÒknWƒƒVUbkķÈÑWkk@Va™™U@„mUkbƒÝÅ@Ý¥ÇbkĬ™XV`kLǍVmalUUa™nV±nwmkƒJ@Inƒ°KVw¯UnÅ@¥™ƒ™U±bUU˜±œmWbÛKWnUm`UƒVK@bmnœm‚Èż@V„L@xƒxmš„Ť°nŽ@VmK™²VlšlKk„ô@„êÜV@VXLlmš¦UššV°Ș¯²ÿ@¥š@ƁĊ˜²IšmĶnnb°b„KVƒĸLl„Þ@UȮš™Ü°IVƒÞÝސlŽœx@ŽķĀWŽ„Ux„èƐ@š°ŽXnšlĊ˰m„nƒšV„²V°ÒƦ„aބ„˜@zll@bÞšlš¼nKĊ¼óȂb²±šIǪÒ¯ĖV@„lxnVlk„JlaXwŌĉ„„@VnŽššlÆĕ„UÆLœèŌŤôxȚlUœ@šxlaUċĕXm„IWmnkšVVƒ„VW_@aÈWUUmk@ƒ¯çVm»™±W¯n¥V™mkXw±ÇVwƒ"],encodeOffsets:[[113592,39645]]}},{type:"Feature",id:"6106",properties:{name:"延安市",cp:[109.1052,36.4252],childNum:13},geometry:{type:"Polygon",coordinates:["@@@kkÇmIšmUwVkUƒƒU²WmšVkm@m`mIĢĕUƒVa@™mXƒƒÿVVkyUýšĕ@l_UmnƒW„KVkţ™™¥™aƒwğ@™@aôƒ„ƒWa„kUmƒa¯¯™a±£kx™mmxUwÝ@xmU™b¯K™wó„Ý@kmm¹Ub@lklVbmnnVUV@x›UknƧJUX@ŽƒLÇWkw™LķƧÅwWJk„ƒLkþĉxWz™JUnǚkš@Ɛk¼ÜÔÈKšè@°lșÆk¦l„n@l¼@l¯L™°UU™Vǰƒ¹—`m¼mXk‚™bUaƒV@U¯x@¦™Ç™„UUmlmUVm„nnmlkw™@@šƒ¦Å‚ÇLmx¯Iklš„@¦mưVUx¯Lm„@J„InlmxU²šmVbkV‚bUnȎlKU_šWlīÈaÞ¦Æ@„ÞlanV@ƒšVšUbl@XlÇÒĸlŽVa„UX„lm@ѰƒƒÈmUw‚U™nyW£amL@mša²@lšV„™VLÆynX„šÝšVššKnxÆb@lk@WzXŽ@ll—n`šIV‚°b@n„m„„‚Unb„aVlÆ@ČxmnnL„¤ÆxššĠÛÈKVb„@„aWaœU‚ókVm™nL@W‚UnnšKlšœ¥‚bnIlU¯JlƒUkVkn`lUU™V»šwnwlUôšĊ¥nn„yÆb"],encodeOffsets:[[113074,37862]]}},{type:"Feature",id:"6107",properties:{name:"汉中市",cp:[106.886,33.0139],childNum:11},geometry:{type:"Polygon",coordinates:["@@lKnb@n„lWb°bkxĸwVb@ł„nlŽ„ƒĊ¥šL@XŽl™ÈƒVblÈK‚b„akVwôml²`‚nœ@‚nVKœl˜k²xŎƒ°¦VU„JĊw@çnWçރVkUóÛ@¥kwš™šUmƒX¯WšÑkƒ@UymIUwlUn¥‚mUk²a°¯V»@™ÝVș„ÝċÅÅVl»@l@a°±@_kammÅb™a@ƒƒm@ż™KknõĠ—@mšƒ„¯LÅw›‚—LVxmb@¼kV™@mw¯wVakKW»X±¼¯Vkxƒb„¼WŽ@nx@x±bóakbƒ@ÝmU™@ķÓÛL™kƒVUm™k¯¤ÝLUlÝ@Ýz™š„x@x™°™™™bƒmƒX¯aUJW¯—k@bÇWƒwÛwWxƒ@XWlb@Žƒ„VŽÈUlwšLnl°VlUô¦œU°¤VšUxVXUxlbkVVlƒI„°„ÅVlU°m@k„ÇU¯xUlƒLUlVL@b™°ĠInĠ°ÈnK‚„@xÞa²n‚aUyšXUKVkšWô¼Èa‚z°JXUVÇV_„JVƒšz@Žnb"],encodeOffsets:[[109137,34392]]}},{type:"Feature",id:"6109",properties:{name:"安康市",cp:[109.1162,32.7722],childNum:10},geometry:{type:"Polygon",coordinates:["@@„bĊaƨèšwôô„¼šb°ašXVƒÞVUÞ@‚aXƒm¥kImx¯¯ƒV@anU@UÇéğL@ƒ¯¥V£mƒ@ÝÈb„K‚™„X°wČÿ˜ƒ„b@xÈblxȯĊ„„mÆUVƒ„nÈ@ƨÜLĢ¥ƒŹnƒ°Vnn˜K„aô_ȃšwU‚aXmnW‚¯kl›LXƒÇ™ō¦ÝaÅVmbğUn¥±wÅéVƒan¥ƒ„U„»°am¥„£ƒÝ@ƒ„wVw™¥nU„уUmmVwmķIÅaóVWxkblb@ból@œğÒĉ¤ċXƒ˜¯X™xk„Ç@óÆÅx@š™xķ_kmݎǣkblb@`¯²@bk‚‚@k¼ÆUČÆƒÞǚÞU@šU¼¯°±bVlnm¦kVVxnJVz@‚l„™ÒXW°n„™V™šlx@¦ôÜVUl݄Xèm@è"],encodeOffsets:[[110644,34521]]}},{type:"Feature",id:"6110",properties:{name:"商洛市",cp:[109.8083,33.761],childNum:7},geometry:{type:"Polygon",coordinates:["@@²nl‚ôbš„°aVwnKÞIš`°wšXôw°VĊ°@ŽÅš„ÞÆV„zÞK@xšŽ@a‚LŚ@b@ŽnLlƒ@šln„mnLVw„a„bVƒ‚VnbU¼„Vƒ°„bl„šbÈ@ĶŦb˜@nÇ@amIyUI@ĠVmôƒU™ƒVwkwlanJ„¯lwó¥@an°Jš_„‚@š™nóƒó@£l¥UwmašÑ@ƒUm±V_ƒJ—£›J—UW¥¯@ƒ_k¯¼mUƒVUè¯b@wmL™»ğVmağI¯¤ċIUW™XƒKĵ¦ķaƒJUb™IƒlUóVmk@WÅÅÇ@ƒmU„ÅVƒnĉƒÇ°kwÇa@wƒa—„ċxƒWšƒLÇa@Þn„U¤°¦@„ĠKÈê@VmV@b„U°°nwlJn¦W„bÝ@VŽ"],encodeOffsets:[[111454,34628]]}},{type:"Feature",id:"6103",properties:{name:"宝鸡市",cp:[107.1826,34.3433],childNum:10},geometry:{type:"Polygon",coordinates:["@@@ƒ„£@›°Išb@¯°ynʃaUƒlƒU£„Umšĵĉ@@ylUÞ@@£kWU¯WaU£¯ÇV¥ƒ@kb¯wƒn™¥ÇkUÇnUƒ@¯±›kULm›@m±_kŽónUxlŽƒbaÇLkŽUaDŽkšW@™Kĉ¦ƒ„kƒm@ŁUaķxlw¯aXaƒk@mmakL@šmšÛŽ@¼m„@l„XV`ƒn™KUš°°@²š¤UÈ@VxmôƒxKl„VV²aVw„Xla„Vlx@UVnŽÇnk°ƒVVL™lkI™šƒJÇk¯V@šknƘn@lznmlVkzVŽ„VVxš@Ux„z@x±¼VxxU„l‚kb˜@„¼Čk˜VXlĠkôV²w‚LUKlwœJ@a‚IV¥Þƒn¯Ün„‚„@nk˜l²kÆ@š°„aVbnI@™š‚Ťn"],encodeOffsets:[[110408,35815]]}},{type:"Feature",id:"6105",properties:{name:"渭南市",cp:[109.7864,35.0299],childNum:11},geometry:{type:"Polygon",coordinates:["@@@ÈôL„xUް„Þ@mŽÈnl¤nUôL‚wX`@ÞÝL™ŽUšmLô„„ŽôbVbnºlnÞ@ôƒšx°LšanV‚wÞ@Vxnwšnlw²¤šb°°„bVnƒlXbƒ„ó„@bš‚Ġ@„xšbš¦ŤšV™Xġ„£W¥ƽɽƒó@ýóƝÝ»„£X™mƅšĊkUƒ„@™™šó„kťaĵŽÇ@™akƒƒa„¯ƒUV»maUU„ƒaƒbUxmKƒnkm@™k„mK@ƒxó@¯n¯KǦ@ôÅèlxkx°nƒƾ¯KU¯WķL@VÝIUb™yWbX¼Ç°"],encodeOffsets:[[111589,35657]]}},{type:"Feature",id:"6104",properties:{name:"咸阳市",cp:[108.4131,34.8706],childNum:14},geometry:{type:"Polygon",coordinates:["@@šIXyĊwlý„KlƒXIVaķƒ™»a›£„¯aVU@a™‚wÈō‚ašL²»‚VœUln°WȯW»XašzVaÞJ@Uƒ»@¯Ýbğwly@£kÑţ±Wу@ka™IUƒƒnƒ@¯ƒómţU™b™U¯lÇIÝb@¤Ý@kV@zĊ@™ĶnƒVV¤k„V„„bmź¯z@°™a¯J@œƒ¤@„„bUx™bƒ„@`™xUÔ±ºVXœW‚„UnUJ‚L̝ÈKlblmÈXŎ°šU„°LšŽlkÞKš@Èxl_°ĶUÒkblš"],encodeOffsets:[[111229,36394]]}},{type:"Feature",id:"6101",properties:{name:"西安市",cp:[109.1162,34.2004],childNum:5},geometry:{type:"Polygon",coordinates:["@@°²@‚„mVVÈÈlš¦„m°xla„@U¦°ÈV¤XbV°lXÞaÈJ°kšVšaŤVôn°„„@„mV„šJlb„@XÒŤ²lÒ@¤kzĠxÞa@°„¼ĸK°XV‚°L„ƽ¯mlwkwÆç@óÈ¥°L°mô@„w@aƙK@b™@wÝLƒyÅUƒÝƙ@ĉ¯¯Uóx™W¯x™_ÝJmLUx¯b™ƒóak±mÝUU„™W¯b™aƒ»óó™xƧçĉbƒaĉxƒIUV¯¥ō„±w—l"],encodeOffsets:[[110206,34532]]}},{type:"Feature",id:"6102",properties:{name:"铜川市",cp:[109.0393,35.1947],childNum:2},geometry:{type:"Polygon",coordinates:["@@ÆxĸƨšKlxÈX„K@VWƨIlmœV@wVUmUnmUalk@kVaUaóaƒóƒnKV™šÞK@ÝW_xóKmVk£ÇmnÝ@¯ƒVƒwóK@ǯXkm›VU±¼™KbÇŎx‚š@bUV°bƒœ¤‚bš¼ĸ„Ub"],encodeOffsets:[[111477,36192]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shan_xi_2_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"1409",properties:{name:"忻州市",cp:[112.4561,38.8971],childNum:14},geometry:{type:"Polygon",coordinates:["@@Vx@lnbn¦WlnnUšmš°š²VšV‚VVVnUn„ºlz@l„„@Jƒ@kXWVXl@Lƒa@„ƒKUL„ŽlbnKlLnK‚LnKÆXn°šbVV@bUVl°Un@LnaVJUbW@UX²l‚@ČwlVVIšWnkÆa°„„anV‚Kn°™UW¯@™aVUVk@Un@„aV@ValwUanmWU„k@WVUUanaVwnLVl°@nk@mVU@UVK@w„LVKVU@ƒ„K@UUKVUV@@bnL„a‚V„aôšlIXmlKX_°KVV@bVV„@šzV`kblI„V„Ul‚šL@bnV@V„Ċll„„VlIXW@k„a‚U²blKšVnIlJ„albXXlWVn°JnšnL@l@XlJlaX@„X˜W²@l_VmnKšU„blU@mnkVK„¯@U@ƒma@kX¥VƒmakkƒLƒa@aƒ@WIUUVXWWnk@a°a@kkm@kUUmJm@WUUUIk`m@V—kaWWkX™KmƒXk¯ƒ@WKƒLkak@±bƒw@ƒaƒa@akaƒ@ma¯@ƒL—KÇÅkKWbkmġ™±ÅUƒLUK™VVkƒm¯LUVVbƒ„UwUW¯bm„ƒULƒxWJ—@ƒklmkUm@@KnwVkVK@akwƒ@@a¯bƒKkn›VUI™b¯mmbk@UbmKUL@xUUƒ@klmLUŽlVXI‚VVVUVUœU`mLXVWbXnW`Ų°xmށxU@mĉƒƒwU@mbU@UƒmbkVW¦kJ™@ƒX@`¯Im@UlUVVnb@bWJXnmbƒJUU™UUaƒ@UamIkaƒxƒ@@x@b"],
    +encodeOffsets:[[113614,39657]]}},{type:"Feature",id:"1411",properties:{name:"吕梁市",cp:[111.3574,37.7325],childNum:13},geometry:{type:"Polygon",coordinates:["@@@a@w„@„wlbnJVb„@VbšVVV„InaWmXI@a‚aUmVUVkn@°J@_„Wš@lIX¥lUnaV„V@naV@„xĊ„n‚V@‚wn¯wƱX_WmXaWUnKV_V›VUUUUWJkUVnKlk¯™@@kmKUaٱKkU@WmI@WUIlUUmVwXƒ‚w@ƒUlUVwœV‚@„Lnb‚W@anU@UšaVkô@l»n@na˜JnUÈLVaƃUUVm„VKVƒ²L@mU_lK@UVWkU‚a@a@U¯aUaƒÑóÑUb™„ƒKk@@aƒk¯mVaUwVƒÑkWUmK@UUKmXUWÝwUa™LUU@aWJUUU@Ua݄U@WL@VKVaVI@WnU@alIVKƒƒ@kIƒmIkJ@™m@ƒ™@@_™K@xƒ@kaW@U„@Vmn@ŽUK@mIƒJUXV¤XXWlkKƒkkK@XmJVakImJU@ó™¯LWKUV@nUVƒLkxmKkLma@kXKmmƒLƒab™LmK@V@mXVÆUxƒX@`nL„aV@@VmLUVnLlLš˜„b@„šŽ°²nx@b‚VUxlb@V¯bUV@zV‚XVĊXVx@lVn@VnnmŽUš@LlJXVƒz¯VWVXbšV@bmn™VUVk„Çþń@XVxmbUlV„Uln„W„@„Xl‚@VLXÒ@bÞJ°¦„L˜ò„@nU‚b@°„X@ŽXbmVU„V„nb@x‚x"],encodeOffsets:[[113614,39657]]}},{type:"Feature",id:"1410",properties:{name:"临汾市",cp:[111.4783,36.1615],childNum:17},geometry:{type:"Polygon",coordinates:["@@nW‚@@UnLšK‚a„b„KnnWL@lnblKnLlw„KVU@mVUXL°KôšV@nIlJUbnI@WlL„llLXkWWU£VW„InJ‚@VL@nm@UVƒX@lb„@@wšL@`‚@„šn@V@lw„@n„VmVX„WmwnUlƒœa@_lK„wVlUn°xVKVXXWlUšVVI@K@K„n°KœwlVlU@kna@V_„Wn‚m„UVm@kXml_@m„LlKXw°m@_ôJVUV@X™l@UaV@Va°I„lk»VwUkVmwUmmVn@V¯@KƒU—wmK@U¯wUVÝ@mJƒU—nWK™@@UnKVa„_lykUmKÛnm@™x@ƒUUlwVk™ƒXW@ƒa@Uƒ@@K@ƒkIV™nammVakUlƒ@wX@@kƒ™¯@ƒVVbml@„„°UbULmlVbnbÅK±VƒKVXUJWa@ULWaUU@@U@aWK@UkxUKƒLUUUJ±UkL@V±kk@kam@UV@l@LWl@n@VVUx„LlUUx@VUV™U@aƒIUl™L@°mLU‚ƒbkUUaWUUaUU@aWK—LWJ@bUL@VUVVbU@m@a@kmKmnĉlUK™XƒWUblb—xmIkƒƒU@xWb@lkšVx™LXŽmzVV@bklVVUzm˜@bk„@Vx@xlŽU„@lUbVnl@„Wxnl@n@ŽUbV„mL‚mƒb@`X@lUX@@xlnkLWaUJnnWV™Vn@l„@bULVV@l™V@XnJVX"],encodeOffsets:[[113063,37784]]}},{type:"Feature",id:"1407",properties:{name:"晋中市",cp:[112.7747,37.37],childNum:11},geometry:{type:"Polygon",coordinates:["@@@šlInJ„lJ„@‚„ULkJ@bmV@XUJUb‚L@UXKV@ރVbV@VVXI@bVVšKVbÞxVXnWVL@VnLV‚lX„ÒUŽVxUb°n„l@bl@„LšƒVaô҄ÒVb°b@VnLnnV@lmn@lb„U„V@„‚JœUVV‚Xkl@lUzmJ@xšXkl‚bUn„JVšUb„nU‚lb„V@nlLX@lakšV`Ub°š@XVJnU‚L²KlxnI@KV@lbUbVV„KnVl@„zlm@Uš@nŽšI@WUaVl@@mVU„@XkW@ƒnkVKVƒ„_Vw„y@knwVa‚@XalU„@šVnml@„X@V„L‚KVaÞbnnlJšI„mVKn„VVVInVlU„@„m@™mXK@UmyUI@mWUUakamw@wUwmLkakwVƒmK™w@wUam£y@am_ƒW@™UU@knmm„amU@WUa@knw@ƒUUUUV@nƒJm@mVUkKVUUUkKmwƒKULƒKUImV@lUn™nŽm@mbUK@°™bUnmbUmkkƒWUb@am@UXkK@a±@™V™@ĉř„V‚UXVxUVkLWl¯@@bULUlm@@nm`—XƒlWakIkm›VUbUL@Vm@kIƒ@@Kšm@—VaX‚I@W@aU@kUƒVU_™KƒbƒJkkǎ™b@nkKmL™wÅW@kVUUƒVU@WUIƒJmIXmma@_kyVaUUlkUm@ƒkU›x¯Lƒm@L@LUJ™UkVWXUWUL¯wVmUkƒxkL@`›bk„mVnxƒXUWUnmƒƒ@kxU@"],encodeOffsets:[[114087,37682]]}},{type:"Feature",id:"1408",properties:{name:"运城市",cp:[111.1487,35.2002],childNum:13},geometry:{type:"Polygon",coordinates:["@@„Vl„nJ˜wkaVa„XšWVLĊknmnL‚l@@bn‚V@UaVU@UVK@aXI˜KXL@bVVVbXVVblV„aVnK@¯šKVk„J@bšVVU@UVwkVƒKVwUUm@@Xk@K@kVUn@lbl@²l@UlK²VVIVV„KVLlw@VXL@b@VV@VŽXbVK‚@XbVIUW„L‚U²ÆLmaUankVKVaƒ¯@ƒnkUa„U°@„š‚n@@kWa„UVaXUW@IXKVw@U™ƒ„™WU@W@@UUƒU@mn@ƒ`m@UUULkUmJ™IUƒ@@UƒK@U@›anƒ™ak_@wmKUwmakV™kmK™V™k¯b™wƒ`kwUIÇx¯»ÇaŃmn@@™mƒmUkV@wkKW@kxmL™UkĉLÝk™xÝw¯lóVU„mV@ĀVVX¦W¤kz@`Vx°„²ĸ‚š@„Ul@x„êĸNJ°¤V„VlXLWnXxmV@nUl@„"],encodeOffsets:[[113232,36597]]}},{type:"Feature",id:"1402",properties:{name:"大同市",cp:[113.7854,39.8035],childNum:8},geometry:{type:"Polygon",coordinates:["@@²£šyl@Ȑ˜Ė@bĸŽĢbĸ„˜X„a‚KŤnn@ŎôllÈx„nVnÞDŽV@b‚nXllL°KšbVb@J@b—„‚„@ŽU„„xlKXLlKlXk„@Ulk„JlkUƒVKXUƒÇVIVm@_nǚLšašl‚w„VnU@UUwma@aƒaÝaLmUk@@Wƒ@U@@X™wVWÝUUUk@@VmLƒKV»nwUw™aUL@`mzƒJUIVƒUaUw™KUaVIlJôanÑlLVUn@ša„@VV„@@UUwVK°Vn_lJÆLœéW@UUUÅ@»lm@aÞIVwXW˜UUkkm@U@aƒU@mwU£VWU_kWmƒXwW_°yUkkK@UÇK@kkUVymóK—U@KWIƒbUak@mJ@bkbmLkŽ™UmƒkVU„W¦@lnb@„@Vƒ°ULml@nkVƒa™VmLUnk`±@—XƒWW@kbǦXޝ„WxI@xmbmxXlWV„„@bŎUz@J‚b@bÞb™ŽU@Wbk@ƒxk@WX¯VۙƒWÝbÝUkVUU@alI@a@akLWa™m@U¯UUmÇL@K@aU@¯VUkƒKmX@`@œkJ@nV‚Ub@lbVÆXVW„ULU`VbkLUV@XWl@bXJ˜@VbV@Vl"],encodeOffsets:[[115335,41209]]}},{type:"Feature",id:"1404",properties:{name:"长治市",cp:[112.8625,36.4746],childNum:12},geometry:{type:"Polygon",coordinates:["@@Uk™Lky@I‚JVa@mÞaWšy@_W@_WƒXVlUVwš@nw°K@m„UƒVaƒmVkU@mmmnLVUmKXa™U@IlKVUnK@UmWkX@WV_Vƒ@akU@a„KWIXyƒIUVmUn™Ua@WaXUVKVmkUWVkUƒLU@@VƒbƒKbƒIUmƒ@mbVL—x›WUUkn±V¯wƒbÅJUbmLkbmKÅKƒbVnUbƒV™KUb™KUbmLKmƒb™aƒKkUm@UŽnn‚VnxUVlUxl¼ƒk¯JUbU@Vbk@WšU@UVóI@`¯nWxkLƒK@nk`Wn@lUnƒVnm‚ƒXU`@mb@lkV@„VnklVVUblz@`nbWnnJ„IVJ@XUVV„UV@lÆXšxnKlL@mšaȍll„I„ašLV`„UlVV@@b@XJWUb@˜™n@L„@lJn@@UVKVaœUlnlJXb„k˜Wn_@mn@VkVK@a°@XklKVUUwVWUšƒĊƚ@šU²@@blLVWn@@bVa„XllVnnaVmša@¯VLnan@‚šmVm@knUVJ"],encodeOffsets:[[116269,37637]]}},{type:"Feature",id:"1406",properties:{name:"朔州市",cp:[113.0713,39.6991],childNum:5},geometry:{type:"Polygon",coordinates:["@@XXWVXVWnnlnn@èÆ¼@„„xlš„ŽV„nblšššVŽÈUVl‚š@„blnœL܃ĊmUkU@Ua‚—@WI@aXk@WVUlKUaV_VKXƒWUUÅka@VaU@mlI@›@_nW„LVl°UV@@b@LÈKVn°V@VšnXblK@b@bkJ@bVVlUÞVÞa„Xܚ°UXWl@„wl@XaV@šÝa@aa@IVyƍ@aƒƒXUWknwna@w‚JXw°ƒWÈ¥kI@W@kmKm™¯IUmkXWWkaƒbkImJ™UkL±aVƒb@lWXkJƒUkƒĉkƒ@UmU@a™KkƒVƒUkJlaU_™yƒ@UU@aUU¯LW`kLWnkJó™ƒbUƒbmK@aU@UVVL@VƒL@„UVULƒK@xUL@VUV@nml¯@UkmKUxmbVbUV@XƒlXVmnVbkxUbU@ƒbm@@VUlUVšb°@VX¯šm‚"],encodeOffsets:[[114615,40562]]}},{type:"Feature",id:"1405",properties:{name:"晋城市",cp:[112.7856,35.6342],childNum:6},geometry:{type:"Polygon",coordinates:["@@lV„Lšb„an‚LnKVašLVašL„UVaUm„aÆLnLlanKVaÆI„a°x²UlmVVœX˜wUKna„@Vn„J‚a„L„a@UV@@alUkKVKnkmmVwUk„w@ƒ™@kxWUXƒW@@mƒk@aUa@a¯aƒLkKmwkUm@kL@K@aWIXmƒVƒXƒWkUVakL@UVKƒw@aUK@UUKmLU@¯n™KUwVƒUIWJUWmka™@UXƒJƒk@UkmW@kLWKVƒx@bmI@VUaVU@a¯@UUmVKmX@±`kÝKVxUL±akL@V™bƒLkKmVƒ@XWVUbƒVXb@lm@@lW@@xk„lVUbnnmbUšlJ@„@L„@@V„b@‚WXš„UlkxVV@„šwn@ÜmnLlVkzƒ`UbmL@Vš@XL˜m„VnIÞ@VU°x@VnL˜x„V@LU°"],encodeOffsets:[[115223,36895]]}},{type:"Feature",id:"1401",properties:{name:"太原市",cp:[112.3352,37.9413],childNum:5},geometry:{type:"Polygon",coordinates:["@@„@VV@wVKnLVal@na°nšaVJœUlm„L°a@b„@lx@bULUlmx@Ln@lVkn„l˜@XI„w‚K„Vnƒ°aVXVx„ƒUaVU°K„nUlšUVL„KÆVš²Ģ‚lnXalLÈÆ˜L„KUaVkUanmWU™a@WwkUWU¯y¯Ñ@anIl@@aVU„m„I„ymUƒLUUVakaU@@LmJkw±LKmVUI@W¯™VaU_l™kbW@kK@mƒUkaVƒmVaU™ƒIVmalk™W@wnIVy@klkWUU›VI@ƒƒUƒVkam@knU@mmmK@bblVUX@VkLV`@n±KU„ULƒ‚UnVVńUbÇKmV—Imbm@k¼ó@Ul™b@VmV@bXmaƒK@›UUxkV‚V@„xW„UxVnkVVJ@XnJ@XlV²LƂVbnL@lš@°"],encodeOffsets:[[114503,39134]]}},{type:"Feature",id:"1403",properties:{name:"阳泉市",cp:[113.4778,38.0951],childNum:3},geometry:{type:"Polygon",coordinates:["@@°@nb„@lb@b„b„b‚@„x²al@lb„KXU@m‚kUWkkmUUƒVwV@XUW@™naVklKXblKnL‚ƒnLVanImaXKlL„ašV@U@KUKW„alƒXK@£WKXUV@VU„ƒUUVW„_V™@W@@K„@šƒUƒƒIWmXUmƒULƒn™JkImmÝaUbLƒK@UƒWk@mn™Uƒ@kVWb@Ubmx@lƒzUxƒ`U„ULml@„XWlƒ@UV@nk@U‚Vb@X™Jm™@@Vknƒyk@ƒzƒJƒnUV@bk@mJ@b°Ò°zXVlVXx‚@šbXVmnVbUlVb"],encodeOffsets:[[115864,39336]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/si_chuan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5133",properties:{name:"甘孜藏族自治州",cp:[99.9207,31.0803],childNum:18},geometry:{type:"Polygon",coordinates:["@@ƒaXamƒ¯wm@±°wUwV@UaVw²Kš™„U@UƒU„¥‚a„ƒ@£Þ™ôx‚Knkm™X¥™IUƒÝUwlk°V„@ƒÈ™‚KUwlkUyV¹„mšx²Xll„ÑW»š„l„w°UŎ„nƒ„„˜Jœƒl¯°V@wôIVÇn™nUllšLšVǚLô¼XW£@±„@¥k_ÇJƒkUéƒkšƒƒwXa@ƒšLlw²™Vx„b‚mš¼ÈxlLȃ„VWÞn¯mǙÑUÝlÛkwlĉmƒULmwUJ™ç@wkm@ÑlUX™ƒÑôġƒVa™ƒUф¯@wķÓkbV„mnU@@y¯IķKƒV@¹šaƒé@k„mÞU°¥@a¯@anKlblU„¥@óğç@Çw@wkla„çݱk¯±@ğÝUÛmݯwƒ@kb±¯akXWÜkXUÆÇUš¤X_Ɛw„V@¤ƒXU‚ƒbUƒŽƒIUlÇUkŽġ@™aXČmlUlèUV@„mVk¦Vxš@¦±š¯ƒƒ¯¯anlWš¯nƒƒÅw@w°KVak£m@klƒKknÇU™»óKšīlaUaV£@™™¯@ƙU™VƒÛÝÇXƒÇl—ÓlŹ„»WUğJ¯£mx™Lĵô›ºX„VlUll²bl„„lŽƒxónn°ÝšU¼mJUš¯nƒƒƒV@êĉ°Uĸ™w™@mƒ@¯kmXamѯaUwÝKU¥„mÅn¥Wmn™ƒ¹n±ƑƆÇôXê±NJnšƒ‚UôlĖkȂVÒ¯¼VnƒȮ¯ĀnƆ˜Ģ@Žk°V°¯ĢVlkšVxm¼X²™Ŏ@ŽVxknWܰU‚¯n™ÆÝœ@`„ôݲÒƒ‚Çzn‚mX@x„è°K°Å„UČĬóĖ݄ƒ˜ó¼ÅêƒÒƒbmšk@V„Ž˜„@ҁl@nĉܛê—x@Ėml՛J¯¦óxȭ°ÝmޝLĵè›Ā@Ɓ„l°żƒ‚šX@xmŽkV@z@‚„°blŽnÞ°J@bn@ƼUVƒUóŽóLƒ°X°ÝLƒxUn„°ƒĬƒn@lnL@ŽÆ@šn„KÆxnUnV˜InĬmÆnxŎ¼ĊIĢóÞ@ĊƒƨbUƒ‚mV¥lkƒ‚wnL„mšÅÆ¥Xƒ˜wU@w‚wUÞ™@alUUŚU™Vkkm°aU—°Ó°w°U„ƒ„b°aš²K˜¯œĕ˜@ÈbޏĊaš»„XVm°In„‚Ĭk¼Vb„ašJšôš£VĊan™‚k„ů™™nƒÜU@anKnĮ‚bÈmƎš»nI‚霣Ġ™"],encodeOffsets:[[103073,33295]]}},{type:"Feature",id:"5132",properties:{name:"阿坝藏族羌族自治州",cp:[102.4805,32.4536],childNum:13},geometry:{type:"Polygon",coordinates:["@@l@@þ²I@lƒ„VL°wnJ°Uĸ™Ŏè„Ilw„V°¤nĮ™¤Ý„lè„L@„ƒ„@x„l™è²ôĊ_ĊġVÈôJżīlbXšÆÈVŽkxÇVƒ„n°„¦Üb@è@nn@@°šUÈ¥WDŽ_Uala¯¯UǙkƒ»„mVwk»˜k²°VxlL@¤œ_@x‚`ȍ‚Ėöb˜š@l²alX„a@bnK°¦VK@nnWmx@nUnl@@lƒlĉk°l°UXkmW@Unš`k„ÇL„ŽW„ÛÈVxšVVlVk@l„IXb@ylXÈW˜Į„WŤzœy@šmIƒŽ²šJ‚š@nް@V„„J°a„Å@ƒŎkVǚk™aUw„KVw™™Vƒ„@nkm™@±ôkô™ĊJš¼šInÑm±nIššÞ‚XȃĊxĊUÈbÜyÈ£Vkw@kVUV™„m@ša„»ÜbÈmƒUXwÝxƒUn¥@°ġ™Å‚aœJVk™aW¯Û@W¥—UŏĶ™@¯kUƒŃ@ašI@mmanwސ‚W@œ™mw°»Uřk¹±W„xVx¯¦U°ƒzţW™w@°ÇVÑk¯@„y°aš£š@šmšnl¼„ašÝÝakwUƒ±aĉImlĵn@ƒm@kkVƒ¯Ñm™ĸ™°x„l™œ@˜ƒXVÞmlÛݙĉUÅ¥mwÅ¥VaUw›™XġċaVůÛŹlwU¯U™ó±™xÛV±¯¯n¯mċƒLmnĊm‚™@™_kJWaXmwUƒĉK™»™@mwX݃UDŽkKÇw™»nƒaUw±škx™K@„Wb„x™„„lVê„lÈIl`@¦ƒŽ@²X¤Wó»™KUșŽ™KkkmVmšUÈóJ@x¯Uk°›„—Iƒƒm„ōƒ¯Vƒxƒk™ŽX¼ƒÒkk±W™wƒnUºVzklVxLǚ@„ƒŽ¯UklVxސV„šJW¦nšmlLówݚ@¤ƒ„bƒ¦„V@VƒV™š±LUxVbU@Vx¯x@²n‚°xn„Wb„b"],encodeOffsets:[[103073,33295]]}},{type:"Feature",id:"5134",properties:{name:"凉山彝族自治州",cp:[101.9641,27.6746],childNum:17},geometry:{type:"Polygon",coordinates:["@@ĶóšKnw°¤ĠIXVƒ¼kź˜Ôk‚„ÈWŽÞȄÜUVšÅš°@šš‚@U¤Vbkb™ĬôLš¼ÈVlm„Llkn@l¤Ub¯L@xÆx„„°mX™mk°b„°°„²™@¥‚™Uwl¥nU@ƒVUkçVnkWċšbĢ@lÈVVk„J„‚V„aV„W@£ƒUƏxW`™£ÈVVÅlWXÛlW°b²la„@°xnÞVÜĠÞ²@l°Þ²ƒèkblŽ@xÈx@Ġènal£nU‚Dz@‚ÞK„nn¤@¼˜°U¼„nV‚šXU‚šbn™ĠUVbUlVš°LX„@lV„èÜUnK@_ƒyXVyUwmIU»Vƒ„kÇ¥šÿkkV¯m±n@ƒn¯ÜanVVƄz@Ž‚bœwÜb„m@wša@kƒmk»@™a@VUUó„w˜@nb°mš„XŽmnVbގVôanwšJ‚ak£lw„˜šLšÅnÝ@wl¥IÇӃ@U™™Lƒ¼kVǃÅó¯kVmmw@ƒn_‚Vn»°LÅ»@éÇçŹīVÇÝ@ÝğU™ƒaVݙ™š¯ķlŭġlƒ@óÞۂċ@¯nkUӄ—m±™IVġUwóKUn±¯—K›w»ƒKݐV„nl@„óxUwţ›£ĉƒUmŗÇ݃K™„ÝUlmKƒ£UVŽ@ÞȎW¦„Ò@Ĭšnny‚@nÒmœVŽ—¼@°Vbl@VlnUUwl™°a@„œ„@llnk°lbnKWĀnŽU„VxUŽ‚²Å‚m¦Û›ÇڃaU„Vbš@¦m`móX™Umm™xÅ@±Þn虲™U¯»m™ƒV—m@wƒU@wݚÝmLƒa@„™VÇUk„l°¯„VlkVƒ¦UšmxƒaULUèVx@„kIUxmWV¼¯VmȯšU„nl›È—@m»Å™ƒVWxÅbÅğW@kƒm@kVV¦mlnn@‚ō„l¦Åƙxkœ"],encodeOffsets:[[102466,28756]]}},{type:"Feature",id:"5107",properties:{name:"绵阳市",cp:[104.7327,31.8713],childNum:8},geometry:{type:"Polygon",coordinates:["@@„ńlV°š@Őĵ˜VX»ÆUĊќJ‚w„@È»m»š£°Kšk@ÇnÑÆš@„w°JUwnw@wšbVbš@VlźLUw„aƒ»„aUklyUUVakwWXwWƒUxkLƒmn¥mšwk™˜UX™lJ„w@aƒIk°X„¥Wƒ²l¥šaU™„IlmkklƒÈL@m°nlWU™aW—š@Vƒ„@UaV¥@ašk@Çk¹ƒK@a™K@kƒKkšÇX@VU@kx±V™èkIWwUVUkkKÇ@ƒa@wkml¯@kUWn£Wa„aVwnaV݃w¯@UaWx—n›JńUxUšma@L@„mbUށU±VVnkxUƙ„VŽm@kkKW°„X@¤ÇUkÆÇnU¦¯ŽkƒmLVwÅK@UóbÇÆVƒ¦™L@‚±êX¦mVޚkÜÝnWU—„›@kšƒŽ¯wķšnš°ÒU„lln@@„ĶmnkĊJ²bV„lxÞb™Þƒbk»™m™n™@™¤¯bƒz@Žl°UÒ¯È@ŽšxŤX„yV¯°¥Uwƒw²XlºVڝ¼nx›š@ށXݏmxnb@n™J@b"],encodeOffsets:[[106448,33694]]}},{type:"Feature",id:"5117",properties:{name:"达州市",cp:[107.6111,31.333],childNum:7},geometry:{type:"Polygon",coordinates:["@@Uxn°‚bnŽlUnÒÆƒnn@n‚¤„LnxlU„ššV@„Æl„x°XXxl`XœƒVW‚œL˜è—„±nÈbƒŽ°b@š²x°Kܼ°ĉ„V¦lJnU@¦šÞ‚JÞğ„mšLÞ»šxU„lb„VÆann„alŽ„VƍX@lnŎV„mU™maÅXƒa@aWmœ@‚£@wĉJVƒkk‚kkmƒnk@ƒmna@šal„Kš™‚J@Þwm‚ÅŃ@ambkUƒƒ@™™KUġKU@m‚ak¯±ƒ„a@aĉÑÅaVwšXlwƒ±—V¥l@@a™kƒ›@@£šmƒĉÝónWV@ށnÝÇÇx—UmbƒaVkkk@m„@m°ƒÝýXm›akÅīƒ@@ƒmb@@xmšnbƒ@mxšŽkWL@ƒ¯b@WUXmWœWKkbm@kx™Xmm@LUl„xlêóK™nUš„all™LƒlLó°m¯JVšU„K„„@x˜K²Āô¦l°"],encodeOffsets:[[109519,31917]]}},{type:"Feature",id:"5108",properties:{name:"广元市",cp:[105.6885,32.2284],childNum:5},geometry:{type:"Polygon",coordinates:["@@ÆL„Ċx°»Ŧ¦˜W„™šLȄ@xÞKܰÞnVxÅĀlÒnJ°a@w„V¯l@XWknKnw˜VȚ°XXa˜lX°VI°b„W„nšaššš¥@ƒw°™n@šyÆ@nkÞ@°¯lJn„°IÈl‚UšlXÅ@ķlUV¥VUUÝޙUUƒ@UwƒJUkĉm@ýƒƒlk™WUwVwWJk@VUK™lUkaVƒUƒmLk„m@ƒƒ@Uƒ›Ik`@„™UmlUkV¯ÇXKÝ_mm¯@Uƒ`kwmƒl¼±KV¯—¯Vk±Vk±kzma™KUnDZ™bk¦±ŽX„ƒ¦¯Wl„J@bƒxkIWš—Vlš™xnŽm¦„nlKVwX„WxXŽlxUbVVkzVlƒb„¼ƒbVxŹKUk™@Ua™a@xmxVx¯Iƒx™@ŎmÒ@șl¯L™¤n¼"],encodeOffsets:[[107146,33452]]}},{type:"Feature",id:"5118",properties:{name:"雅安市",cp:[102.6672,29.8938],childNum:8},geometry:{type:"Polygon",coordinates:["@@ln@xšèVInxVKn„‚ĊklxkÜVޚÒnÈm°nxš@š¼ĊLV„nx‚WXblIš`š@nmĉn‚KȄôÅlUÑmU„K²¹@ÇÅVÓůVýÞW„‚UVmX„ÆbnwšKUÿ‚™@UmmIUb¯¥Uwƒ™¯™Çmš™„çmanUm»UUƒl—kƒ¤ƒa¯bV™U_WĕmÇŚ±ĢUlƒUl™ÛVƒçkUƒ@WޝKU™VkUağVmš™aV™WUƒmV»—¯@»m£ƒmÝLŽ±@ÈmVk¤mb@ôƒ¦kVkamL@b°‚@b¯¦ÝVƒn@l„ê™b@º„UĸL°J@zV@nmUƒlaĸÔ@xƒ°VҚ„Ub„‚óĢ„ÒWškV@Ò"],encodeOffsets:[[104727,30797]]}},{type:"Feature",id:"5115",properties:{name:"宜宾市",cp:[104.6558,28.548],childNum:10},geometry:{type:"Polygon",coordinates:["@@VlÈnl‚XnWLX`m„²nV‚@b°xĢçlnšVm‚nn„@@„°‚UzšlV°nޘÒkxl„w„`UnVb„mšL@albÞKÈۚmܼ°@Xǚ@wmW@ńKĊL„lV„šLVŎçÞL²±‚ğkw@Uƒy@¹lKX™lKVa@w™™Č@‚w@a˜ÇU¯n™@@wġak—™aō‚ƒƒK@Å»VakUWmķwkbğ¥mL™akš™@ġރ°¯xVVÞ@VšxVš—VWx„XlxU‚™@k²WVŃULmèULVĊklĠ„VœJVx±nѝ¦mwğ@mƒƒlğkkl±@kšUk@¯±Ç™Kƒ—kxl¤b™Imx"],encodeOffsets:[[106099,29279]]}},{type:"Feature",id:"5111",properties:{name:"乐山市",cp:[103.5791,29.1742],childNum:9},geometry:{type:"Polygon",coordinates:["@@kšVŽk„ššÆkšV²UlºÈIlxƒLXèÜlU„„XU‚mkƒbVè„x°@„@¼°Knnn@m˜ÆIUbnJ@bVI°b°±@nK@mVakkƒKl¯nbšmĸ„èl@VnÈl‚UUw„wmwnm°¥„L„™lLnU@Va™ImbkƒmK„ƒƒnk@mƒb™ƒƒLV„JVUUƒ„VnkVmb@a¯JUaÆkk¥„IW¥„Klw—ÑmÝU¯™kVy¯@ƒƒ@mmn™Ukmġè¯w@aU±mnƒW_XKWmkÇmUkóbUÝUanmW™ƒ¯nma—@ƒxVôUV@šb@‚l¼„n@l™b@xƒnÛa›xa@ƒyUÅmUÛbm°@„m‚n²U°ll™ĀȦƒlU„V¼nJVxUz‚W„z@`mL"],encodeOffsets:[[105480,29993]]}},{type:"Feature",id:"5113",properties:{name:"南充市",cp:[106.2048,31.1517],childNum:7},geometry:{type:"Polygon",coordinates:["@@ȲVmšLnblyl²²UUl˜°U°²L‚»„knlx„_Vް@nnÞ`WL°ÈUŽVlnkšV@ƒl_œJV„‚@„„n@lƒnKV£™Çšƒ„UV¯šm„@laX˜U„‚UbVx„@VkôJU°Jn™@™‚wUk°wnUƒV_nJmknmm¯Vwk¯ó¥±ÿ—L@wƒƒƒLVU™kU›bX¯mykI@a±Kk¦ULmaXƒƒVm¯ƒK—z±ƒklUIVbÇJšƒkL¯™l™ƒU™ÿ™UƒlUkJƒUmŽUUkVVklKk@@a™U@„™J„²ƒxƒ¦kĬ@¼±ºXnWb—xƒU@xƒx@lšL@b„Llº@șl@bU¦Vbƒ@U„™@X˜‚bVškX¯m@nÇKk„llknƒJVš"],encodeOffsets:[[107989,32282]]}},{type:"Feature",id:"5119",properties:{name:"巴中市",cp:[107.0618,31.9977],childNum:4},geometry:{type:"Polygon",coordinates:["@@V„U„lbkVšŽVLUŽl@XI‚ŽUxVxšXkl„„@þĊnVl„IVx„@VVݚVÞUVU¦kV@ĸWÆô²š@VÞnš@Vaôb²W@‚K@XUmÑUW°¯°Ina@y„_lWn¼lLUbô¼„Kla@™nkUyô—Æx°@šn£™Ý@¥mVkIU¥Ċƒ‚¯Û»¯L±w@™¯a„Ça²m˜ƒ—ç›KX„UW›k_Ww¯WƒwÅk@ƒ™Uƒ™kVmwƒK£@mmmńmÑkVmamnnlmIU`V„m¯xVlx@šmš¯IV‚óIUlƒ@UwVaƒ—VW‚kbƒ@™nU°ƒV™„šÈU¤"],encodeOffsets:[[108957,32569]]}},{type:"Feature",id:"5105",properties:{name:"泸州市",cp:[105.4578,28.493],childNum:5},geometry:{type:"Polygon",coordinates:["@@VVXwVKn„˜wnVƒn„l@b¯xmKUbVn°°X°@blLšènV„@Vn‚l@U„LnmmUna„VV_ĶV@wnJ„„l@@kkKVólaUwnJm„wUlm@ašUaôKVnJWbޚ@VšwVLX¥VVš_Þ`šw„WƒÞŹmmnIn¥Wƒ@k„WV¯@ƒ°kI™ŽƒLk¼Ç@k¤±Xk˜™nmݯUlÅÛKWV¯kƒlUwkLƒÓ™@U—@ƒ‚w@ġXV„˜WX„š@UbVbšV›š_kÇV™lU°lnwŎ¦ÞaƯnmm¯šU„™m¥nkVmkƒl_ó¥¯UÇl¯@™ƒ™L™kƒ`¯ķLUy¯@mw—¼ķ°ġ_řU°mlšnÇVUޚ„@‚ƒš_ƒJUnV‚UXšbl˜Ģb@x@mšV°—È‚b@‚xċ@šš@xUbkLWškL@º„zV‚@lxĠ±²"],encodeOffsets:[[107674,29639]]}},{type:"Feature",id:"5101",properties:{name:"成都市",cp:[103.9526,30.7617],childNum:11},geometry:{type:"Polygon",coordinates:["@@°n°m²°ÜUšw²ŽôVš°ŽVkxÜźUŰČb‚ŽĢlaÈL„»ƒ@k„wVǂ@„ƒnÛÆ»È™UݰKl_„V°Uš`Vbn@VbÈLšaVU@ƨ»V™nIl™šUUa„±lIk±š@VnKmÅ@WaƒK¦™lVōškK™Ý@maXÇmw¯IU‚@kƒVƒwUmVIƒƒƒç—ÿƒU±ŽÅ@¯È@xƒK@wƒLUbÇKō@mÝ£@yóUóóUxkI@WlIUaƒbƒaŽVĀ™LmxÅaWƒUnVƒÝXUþưUÔÈÆ@±ºƒLnVVÒkóÆ"],encodeOffsets:[[105492,31534]]}},{type:"Feature",id:"5120",properties:{name:"资阳市",cp:[104.9744,30.1575],childNum:4},geometry:{type:"Polygon",coordinates:["@@„è„„UJVn„x„U@lV°JnxWÈnbÞ@šŽlLŎ™Ušk‚¥„LXbÆ@nŽmLU‚@zlbXmlnVynL„çšJVb‚UnómUnamU„an¥lKV_²aValWô„n@nƒ‚bVœK°¯VblW@kkƒlUnlV£°W@w„UXk°KVwƒmVkwVyVI@wkmƒVÅ_Umm@Uÿmbk£™xUaVw±V¼V¤kLWxU@Uk™bƒyƒXšómƒ°V@@zÝÒkKƒn™±U@@_VVkƒÇaVwnLWalm@@kkVVl™¦kIV`±n@w„Kƒƒk²™aƒVUUV¤™nkxmUkVWVnLUbVbƒ`kUU„mLU‚mX@`ÅbǚXbWLXŽ›n"],encodeOffsets:[[106695,31062]]}},{type:"Feature",id:"5104",properties:{name:"攀枝花市",cp:[101.6895,26.7133],childNum:3},geometry:{type:"Polygon",coordinates:["@@„b‚KÞnޙ@x„V@x˜n„Unš°¼šVš±mç²ÝÆ@šwnnšVWŽnôn_@¥‚™UaVƒ„bƙœÈ܎n¥Æ±VUwVƒmXÿmLkal¯km@k›ƒ@ƒ¯bkšVxmVUkk@Ua@¯˜»Un›mс@mz™m@īƒÑX¥Ç@ݙxU¦ƒšÅŽÇUkx@šlb„UWVX„mV@xĵ˱@@ޝxUšÆLnÆm„šx@nXL±lUUVwKWak@WxkbšÞƒŽĉbUn@‚ƒ@@xó¦„Ŏ"],encodeOffsets:[[103602,27816]]}},{type:"Feature",id:"5114",properties:{name:"眉山市",cp:[103.8098,30.0146],childNum:6},geometry:{type:"Polygon",coordinates:["@@„šVx°¦VanJVnš@„b„aVbkJ@XlJVwôôôV@zÞ¤@nƎÈLVa„K@x„L@w°ÇÆ@²„V˜ĀœmWXKWașÆa@_nWVnKVƒlV„_UaVamKXUWwnmmwœÑm£@ynUƒkWƒĉUkWVkkV±çkJmkKƒšƒK¯¦mnnxƒxVxVÇkUmk@ƒçķ™nmak°„LllUb@nmL@‚¯²¯aUJ@amIVaÅJn—m@mm¯L@»ƒŽ¯@ƒwUç„anlVƒWVƒÛkWç„KkwÇJk¹±V™UÅl™™ġV™²ÈƂnXĖV`Uš°a„b„£˜l„kVVn¼mVnbƒè™šÈn°š"],encodeOffsets:[[105683,30685]]}},{type:"Feature",id:"5116",properties:{name:"广安市",cp:[106.6333,30.4376],childNum:5},geometry:{type:"Polygon",coordinates:["@@„VlIV‚„kšVšĀ„Vkš°šlK™„ÈIUaVJlk²„˜y„Ln°„UW„nbVKl¥²L@blJnzW°œalV°Inô¯‚K„kšKkkƒbV™šmôLkéƒwVk@KnnšWlwn@laXL›ŽnXVW@X°a@„XKl™nw„@man™@w‚@na@„„@ƒw™ĕġġ™wUkUWb@mk@™¦ƒ¥mUÛb±yÅn@bml@kV@„ƒlknVbmVnlmš—bÇk¯bWyk@V_UamJ@I—@WaƒVXamIVWkUkbVaƒUUxƒ@VnkVU¼›bkKUxmK™„@WšƒxnV@n"],encodeOffsets:[[108518,31208]]}},{type:"Feature",id:"5106",properties:{name:"德阳市",cp:[104.48,31.1133],childNum:6},geometry:{type:"Polygon",coordinates:["@@nUW¥²é@šK„¥‚UÈÅôa@VÆLUxnKl„°V¥ÈmlÅÈV@£ƒWX¯lLln@UšƒVÅlwUm²U‚VVna@ƒ@KnbV™VwƃœI˜mXwWƒkIVwÝĕVUa™IƒèmKUzkmWnka@y™@l²kJƒ²Vb™VkšmJUšƧ¼@UV™bÇKUam@Ua™_¯VƒUk`¯LVÞǚżm܃„@Uȃx@l„ƒ¼ÇKkbWŽœšVxUbƦnxƦĊV"],encodeOffsets:[[106594,32457]]}},{type:"Feature",id:"5110",properties:{name:"内江市",cp:[104.8535,29.6136],childNum:4},geometry:{type:"Polygon",coordinates:["@@²èlUUllXĊVX„„lmV@zn¤›ÒnxmnXxlUnVlwšmU£VV„Ušbl±„„ƒL@x²mU_lJš¥UklU@ln@‚kXbmKUxÈbl„UU@`V@š²„mlLÞÑ@yU@„¯ôn‚™„W„zšaVlV@XwlKU£‚»—aVaUwm@mwUVUwkƒlVDzLlƒ„KV™m_@ykUmƒ@mU™çkKmxkIU‚Ý„@LUJ@n±„kº‚LXb™¼@mmIXa™@mamnkW™ƒKUƒƒxƒ_U`UklwUw™mUbƒV™²ƒakbƒmkn@`„UmҙšVxUb™I™`UƒaÝÈ"],encodeOffsets:[[106774,30342]]}},{type:"Feature",id:"5109",properties:{name:"遂宁市",cp:[105.5347,30.6683],childNum:4},geometry:{type:"Polygon",coordinates:["@@ÞĖUxlJX„Vb°@„xUÞmbUxƒbXbm¤VX@lk°ln@x„bÈ@lLVlVUXxlJšç²UlwV@@UÈWl™„L„w@w„V˜wXaWm²¹@»lī„¥„wƒ±šI@ƒšV@bl@kLUllUVVn@mmU„wX™ċbVb@VUkbmamšW@kƒa@™™k@ƒlaUa™@¯b@šmmwó@@lkXUa¯°›LU‚am„m@óƒkXUb±bU`kLm¦ƒbnVmbnVmô"],encodeOffsets:[[107595,31270]]}},{type:"Feature",id:"5103",properties:{name:"自贡市",cp:[104.6667,29.2786],childNum:3},geometry:{type:"Polygon",coordinates:["@@lIÞDŽbVŽš_šJVaUwš™nуV@_lm„nla„bš±„UVašnVxkxVlV_„`„wV„„LšlXnmnbš@WbnJ@nš»WaKl¹²ƒ@mVI@KރVlJnw@aW¯¯¯UmVanL°w@aƒk„mmU—xmƒULWxUUÝKōèU™KUƒƒkĉKƒL@ÆnX@x™‚Wȯ@Û»™nÇÜÝLka@b™KƒnUaVmƒ_ƒxkƒLX¦ƒJl¦ÅlVb°I@bnaUŽmlƒUV„UVƒIUŽ„Kš„„a@nml„„ƒŽnLl„našJUbV@"],encodeOffsets:[[106752,30347]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/tai_wan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"7100",properties:{name:"台湾",cp:[121.0295,23.6082],childNum:1},geometry:{type:"Polygon",coordinates:["@@\\sŽ@pS}aekgKSu™SsMß`¡CqZ·be@Q^o@‹gieMp‹‰]}•}Ľc_Kk…{™ù“A¡r‰[uom@эĥJiq©mʼnq¯Bq]ÙYgSåk_gwU­isTE…“‘ĕiqiUEkue_‰OSsZ‹aWKo¡­q“ycY£w}‹ĩ™ĕS§Z©S™N¥SyLÑ¡±Ks^IY‰PdƒY[Uo†Fp}´\\¬\\j]ˆe܍ò‹¤¡–ā a\\bn™U㺹Ìs¼j®[cíȈEŽĝĆ`ļf¶Š®K|VØDdKGpVnU‚FjpH—F`†B’[pMºxÖjbpÎxp€¬‚|ΟÜÒCв®‚ÜAp„ZG~€Šd˜ÞàV¨|¸€`|Œ²tx~\\~|dFf^zG€ĄŚhœdL\\hĸž¼†ŠOªP®lV`p\\]Xpll˜æ¤œCpQ|oF}fMRi†NSon_²qämœM„NM‹\\•"],encodeOffsets:[[124853,25650]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/tian_jin_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"120225",properties:{name:"蓟县",cp:[117.4672,40.004],childNum:1},geometry:{type:"Polygon",coordinates:["@@EUDAEI@WNMNCBFAHFFNACDJDPBD@@GD@DIFFHEFGDBDEQOFG@EI_KG@OcJQM]RMEKBGPG@[LaCIICBWKCEEG@WBQHCDFD@HSLEJI@IHWECFGAAEKCGDBFCBSBIDCKKHEADMJMFABKOKEQAA@IEEG@GIQAEK@OZEESMOL“lu@SLUTYFQCMG@@SQUAYKAACA@IB@BDB@B@DC@@BGAEFAA@BEGKJCC@AGAIHA@@JC@QEIP@@A@EGIDC@O@C@@@@CJCWKABFLBBEBSQGBAAMIEM@AKBcJEN@BEBCFMAEFEF@J@BG@BFABECKFG@AFQ@@F@BEB@@A@@AAAKAE@GFGDECEFEECBKIKDELDFEDYH@EIACDCHKBEB@BAAC@ADBHABKJIAIJICEDGDCD@@A@A@DHCHJHDFEFGBKRKBGIK@GIMHSBCH_BOJECCJCFKKMD@DNJEDEGC@OJCJHRUL@HRJ@H[DCNKDZHCTFDHCFFKR`TANVDFZRDLFARB@HPAPG`ILAR@TERNDFNHDLCLDDCXDYbHF@FEB@LDDVE@JPNfXPINCVDJJD@NJPAJHLXHDNANHhB@DPNLRMTBFRBHHr@`NBFEBOCCBIAQJDHCHLHFA@HSDCRLFTB@HEFLNF@PELBDJALFLTC@EPFLLP@tUHQJDfIHGTB^JTCPDLKAIBATFPADIEGECEMJ@JIAIHGECFEAGDI\\SPOXAFCL@BQTQBBTMZECYGAHA@GJAE@HCAEME@IECFKJADDBABLTHHG@ILEAMNDJCDHEBF@@JNFJELDFKTOT@JETBFFHBHEHKI@@IJEJ@XKEOUMS@AF@CEB"],encodeOffsets:[[120575,41009]]}},{type:"Feature",id:"120114",properties:{name:"武清区",cp:[117.0621,39.4121],childNum:1},geometry:{type:"Polygon",coordinates:["@@FWôµ@IFCLIB@EHNBp]AGEAKAEDMGZKFGBGME@ILGP@HEFB@BXMEAHUGC@IHCLOD@X[NWHWPKAEF[@EKIOL@EKGBNMJ@EIEHKBIC@BAKMIACCFQZCF]DB@ERAKADIHGEIBCGIIECFaGLZO@EFCNGAGDGAKL@BMG@IE@ADSDEH[JGC@CGA@BMDeK@EIACFE@@GG@FIAMM@CCGC@EM@ADE@CFMAAGHBDKIEAJG@DOGCDEKAGIS@KFCHKAEHIE]BeKNO[IFIOELC@A]GMBKVYCDDgGAICARc@MW@AQE@DGI@@AQ@@BKBAIQQYEFW@CEADIGGBCEIiMEMF_LGEKMBBDWEBGRC@E_CHYGCH_IAED@FFBQh@FGJaJ}AHRAREF@bE\\C@CT`FHC@\\BBF@BID@HGDDJ@@FAHKBARECKDAZBJIVNHCTA@EREAMLHDAFFBVFFC@RNRETHD@FOJMACH@CAB@P@DF@@FGDWE@FFSIEMKQDYCCHKb^JADOCIDGNDBdBCFJB@EC\\A@BJEA@JAAAD@HHD@LFBCFF@BERDHNhZQHMBGHOACCEBWEGD@PSJKCGEUD@CINLFGHE@AJK@HDABBHTB@F`DBFLBBHEDARCFG@ABJBAPVFE^FBGLGCFG_BMLEXGAAFE@@JNRVJHFALFBEHQJCTbNDHCF@PlFLJSXCHFHfVBTNJ\\BPJXC^FAVNFCHFB@FFH@JF@\\ABCFD\\BDMCAAJKQBGAILOEGHILECQLWFENJHADC@QxNHFJNLDFA@CBA@D˜UÂmR@FBL@BD"],encodeOffsets:[[119959,40574]]}},{type:"Feature",id:"120115",properties:{name:"宝坻区",cp:[117.4274,39.5913],childNum:1},geometry:{type:"Polygon",coordinates:["@@TZbB@JHD@DODCLM@AP@LL@BNH@ETFN@`E@DNG@CHLBCJA@AICFKDDBKA@\\N@AFNAGRBFjFFFL@DHLBLFQPcXAZMJ]GAVHAIZJFNE@JpDRRDCLFDGXA@EFF@CFFPDfEBDB@DCHCFCJDJIJBLI@I@CB@@ADBB@FALADGDC@@H@BB@FZGFCCE@@FMLALJDAFFFEFDFCB@@AHCF@L@@BBB@BB@FC@E@@R@BEL@HEFD@G@AH@AIB@@@FEFEBALDDEFAFO^IF@JCBBFPNJJ@D@PRDCEKBAXL@BIFD@T@JE@BHHJORFDI@@B@JGH@@B@BDDLIFFHCD@D@DEE@BAAAB@DAF@B@H@NGLJLMRDNMfGIEPMI@GDAKK@KIDIJ@GE@CFDN@FE@GFEPGV@TCDFKHBBF@RW@DD@@ID@TJFKIKLI@EP@IGBCLAEKLEN@KSHIGYACSD@SEAMBBMGEBMQBCMIGKFB[D@HDLPHDBC@IFITDLG@IIIFGVBNJDLN@VIRI@YIAIHIC@CLKZCBEE@JECEIHEAKGDGECBGEEM@@DA@CCCBBEGA[GEDBBoNAAH]MKiIAWKQoIIPMFQAEEDMH@FMSUYIeF@EK@BIOEKJEBICFKaKPFAFSE@LWCCFMHDDEKESBOGBKIEIODLG@CCDEQCEDWEMDIEIB@EHGEEDAEAa@@HqDEJGF[AECCFa@WCEIKAAEQB@FCAE^YDERDDJBLNABD@AJGLJF@FNIAMLH@FPKLJ@FE\\BFOLGXMXW\\C@KPGD@JHDGVFBWN@AEAGFO@KH@JNFAHEHYLNHFCLBFBBHo^MAFGA@KJED@Jó¶EX"],encodeOffsets:[[119959,40574]]}},{type:"Feature",id:"120223",properties:{name:"静海县",cp:[116.9824,38.8312],childNum:1},geometry:{type:"Polygon",coordinates:["@@NGFMDATCNDR@CCbINEHNJA@C\\EEGVE@IhE–[˜w”epc¢·²›^QEKIEKIgiQDkehY£uSDBMkUDOJDHC@GF@CAFBFEN@C‹Q@BeP@@G@HD@@MHQKi@[IGCOCESE@GMA_OcCGDu`aˆ@VZzKDkJBLNXGDqKEWE@cFEFA@ƒISIi@@KMABJGBcMuFEzGVH\\ATSEUBeALCEMG@CEBUHUCGXaBPtUBBFIBFTDFF@DDKBFNGBJPHXDDMDCLJ^mBIHIL@LR\\@LCR[@@z@NFD@LLBNb@RHDBNTPT\\F@BJF@BXCFBHHBDLFB@HODADE@@JHVXCPDHCFTLBBFNCDCCCU@@GAABEHHZHBCAEdEjFDD@GfD@DXFCHF@ERFDLBH@"],encodeOffsets:[[119688,40010]]}},{type:"Feature",id:"120221",properties:{name:"宁河县",cp:[117.6801,39.3853],childNum:1},geometry:{type:"Polygon",coordinates:["@@BFLBFJXDb@DEFD\\BHEFIrC@Gb@FBCBFFGH@FJAJFNCXFFCRDCFDDH@CKJPJFALPHTALFCFGCENDDKXF@ETEBO‚bLELJDFALIPFAJL@@FfEZJTVENG@CNFFRBNEJOpJLRBXjJNLG^BBpMAAFC\\HHBAFDADDB@@CN@FFAHFDCHLHFBJGFCFUNKJJTD\\XUXF\\^F@DDDQXXBRLRCBDFEVCDLVDpUl@LEDJHAPRFGL@CETGPBTCDDVI@CFF@GFDCCVGLKEK[Y@MECISG@BKNSCGCKWEAaEBEKNGFSECO@GGM@GYI@DÅCMLHPTF@DJHAVVNKEGDETJ^[TJNNd@NOAMFYJ@@GFANDPEJB^aOadSTQSI@MHBDIEOKCG@EEFCKCqXO@@DMFENCDDHCCGJ]AKFoDaGGHYFDHKJiCMFGC@EQ@AEHGAC@IEAATKOHGIC@IXIFEoƒGE[JCFCDHNmRADFZMF[EEBMO{GU@AOW@@]ZeHBDEHBKEfQkuIWBs‡@EC@d[@[^EDMTKCEEcI@cDAB@FCBCACmOCG{PYHeBgPwPFDDALFFFCHQGSD@BHFAR[TaFYXMASUiGFL@DQNCJI@@D@PLDN`ETEFIGMCGBCE‘~CAIFDPEHGEQPHJADFJGHCJLB"],encodeOffsets:[[120145,40295]]}},{type:"Feature",id:"120109",properties:{name:"大港区",cp:[117.3875,38.757],childNum:1},geometry:{type:"Polygon",coordinates:["@@JFFL°_`ONJKDDFIFZN xlb~yFVNRŒrdJGzDPVFBCTNND\\UR@E`F@@Ip@IWGUoawOEE@ÏDgK{İEEMFëC—b…™@—KwOCDHHKBDJCDEEEAGHOABFABMCgDLSQ@CFEB‰MgYIDQINE@AUSwSAdYEHQMEyK[KI@GRMLE@@OqOoBOnpJ@BmEAFHL^FDB[C@BBDVFAHFJENB@sNEjQAMYsUgCSBGDJH@\\LjGR@NC@@G@HO@AfR@DŒM@EFEADBE@@HGDICCPlVANTC¤vgZlfRChjLJ"],encodeOffsets:[[120065,39771]]}},{type:"Feature",id:"120107",properties:{name:"塘沽区",cp:[117.6801,38.9987],childNum:1},geometry:{type:"Polygon",coordinates:["@@|ODHnPBDADEDA@CB@ddJFFLDNSFC\\]\\@@cFDˆ@nACOMW@M@ITURBRZNHNWRQšoO•j½f‡cqŸAqeiDÿÍyÓįFL|Ch@ÐFFxPpbHVJXo@@JCTR^BPABQA]^MB@bE@@FQBFVJRH@FXtPNZSBAja@@NƒDTŽLJrQTHFXZFB`"],encodeOffsets:[[120391,40118]]}},{type:"Feature",id:"120111",properties:{name:"西青区",cp:[117.1829,39.0022],childNum:1},geometry:{type:"Polygon",coordinates:["@@@LHAHRHATh`LHNHDG`HDGZ`D@FQDAHXFACNAFLVRTBFOfHDCVBFQH@HSXHEPFB@LDBF[bDbLFKJBFLADBDjLvCPEI]FGEIGCBEUSjcFiBIVWfaHCjN^HtwBBFGPBJGjFBEGECGDONMFAP]TDHQOWCMGAMHKIJEIGQ]aDlUG]VGEGDC„{PEbBZmE@@GH@BCA@FMQCFMYMJECELCMI_P¯`]R±œ¡¸od“f—x•\\gF@JUFFH[F@DIBGMMFaJDDQ@MCSDCBENMH"],encodeOffsets:[[119688,40010]]}},{type:"Feature",id:"120113",properties:{name:"北辰区",cp:[117.1761,39.2548],childNum:1},geometry:{type:"Polygon",coordinates:["@@ROHFFGCOJEDB’}DFHANDJHFEFSM_KC@O@CJ@DIRM@CEKKA…L…FKACHoLSJSIBETDJaEIIE]E]K[MYUYQILC@GF[MGNKEK@A@BCWECAIFEFYAGFOMI[OFuDiKACBCEKIAELaKaCE\\CA@KEAFOWGGTG@ERUACDeGEPSAUQKHE`FNjNFJADHHCJFB@DEXZFRRBJLA@AR@@BJ@CHF@BRX@@NQdDBBJhHCCZDLUNA^H@BKDPFEJ\\JMPfL^AJFFGLBDGLET@HJLBCFHDCPH@BIJFCLGABHNBDEF@BCN@@FHDDDN@BNEJH@@HF@DEJB@FfLNC@AHB@DHD\\IFGTCBCF@@JNH@ALKHBHCHBDMFEP@KYbHDEJF"],encodeOffsets:[[120139,40273]]}},{type:"Feature",id:"120110",properties:{name:"东丽区",cp:[117.4013,39.1223],childNum:1},geometry:{type:"Polygon",coordinates:["@@ZV\\N^L^FJFFJIbSCAFTJTIpKDGLB†E†KLBjHTVNBZWbE\\SBQGE@ATCRHDGEEKECBECxOhOfAZGA_YEEWSGqRKIS„C@Mb@BiTAMYsOEWG@IQEURA@EF@@acUOXQRYCUDCHDTEF[SUEgAYDcVGJM`iAWDWLQRMHUHgDsDBLHJFCFDFGHBFFVEAGHCJN@RJF‡PIhBD\\FENCPWA@LFBAFHBEJUEARCDIAEDQBRNa^"],encodeOffsets:[[120048,40134]]}},{type:"Feature",id:"120108",properties:{name:"汉沽区",cp:[117.8888,39.2191],childNum:1},geometry:{type:"Polygon",coordinates:["@@LMEI\\MTABKN@FCDMH@COAcH[AoēA™M¡Wa[Meq™pQRMXMGQYQASV@J@NNXDPmBAtJXlveRLFGACFGAYf@^X@BPV@|HNPFA\\FNEEYBCnQGMDCDE\\IHFp„EFWJ@JJDGHLPBSFB@JBDGHBFR@@FHDNEjDLICGZEHGbHpCLE^BHIDDCGDCFMNE@CP@rWLDEDFFH@"],encodeOffsets:[[120859,40235]]}},{type:"Feature",id:"120112",properties:{name:"津南区",cp:[117.3958,38.9603],childNum:1},geometry:{type:"Polygon",coordinates:["@@TLv@CNHFFBHGZFETNPhCVGNGRQXKXCjBN_HIdUZChBVF\\TFECSDGVCZDRQPWdVNA^]RBBAAOQ]DSE@F_Q@[VMCSMADUECOHycI‹qMQEU}zkaŸwENRDENB@ADG@@HF@YnaAOFƒ|CDFHUHH^kVbCR^JHIFLJNGHBDNPXGRSCO^EBMNCPDHHFAFiEIHOAEH"],encodeOffsets:[[120045,39982]]}},{type:"Feature",id:"120103",properties:{name:"河西区",cp:[117.2365,39.0804],childNum:1},geometry:{type:"Polygon",coordinates:["@@d@hZNFdcLYXKRCtCMOFSYEGHEAGEDMu@SKAAsx]GMTGt"],encodeOffsets:[[119992,40041]]}},{type:"Feature",id:"120102",properties:{name:"河东区",cp:[117.2571,39.1209],childNum:1},geometry:{type:"Polygon",coordinates:["@@ZBVFFIGABEEA@KXBDOFM[EACJgˆOIE@QIMGDBHUFEEGAEHECEDGIAKQDWLKZcdQPEP@FOFBJTJ@HNORJf@DBCN"],encodeOffsets:[[120063,40098]]}},{type:"Feature",id:"120104",properties:{name:"南开区",cp:[117.1527,39.1065],childNum:1},geometry:{type:"Polygon",coordinates:["@@NMVDCG\\E^B@HlB@YEDS@C…HsNSiMGDebUXAJEjidVTAFHDFJ"],encodeOffsets:[[119940,40093]]}},{type:"Feature",id:"120105",properties:{name:"河北区",cp:[117.2145,39.1615],childNum:1},geometry:{type:"Polygon",coordinates:["@@DBXFADB@L@LFHM\\NHED@JKZRb]QMRAFCJBDCBQYADMCAe@QIMP@GSIAIPE@E[EGH@ZEF]^HJAXK@KF"],encodeOffsets:[[119980,40125]]}},{type:"Feature",id:"120106",properties:{name:"红桥区",cp:[117.1596,39.1663],childNum:1},geometry:{type:"Polygon",coordinates:["@@J\\PNHEZBFEJELEL@BWGI^]FEkA@G]A[FDHUCMNEHJ^"],encodeOffsets:[[119942,40112]]}},{type:"Feature",id:"120101",properties:{name:"和平区",cp:[117.2008,39.1189],childNum:1},geometry:{type:"Polygon",coordinates:["@@D†T@FCHG\\FFOROMEgYc@"],encodeOffsets:[[119992,40041]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/world_geo",[],function(){return{type:"FeatureCollection",offset:{x:170,y:90},features:[{type:"Feature",id:"AFG",properties:{name:"Afghanistan"},geometry:{type:"Polygon",coordinates:["@@ࡪ͇وŐǬϠڐŶӂʮǚڦ۾njƀ̚ІɣʪҴMوǯʲĹ،˒˰Nj˖ϪԈiżŬĘͺβ̈Ҕȏĝʱʪ¡ý۷ͪ˟̊ǰώĊԼϖׂ×ࢀAƬʋӧĥяƹ७ĭࣗǭӫλȤΣĪллΛ–͑ɳ̡ߛ€ͦ։՗ɅΥԕ²ԋ͡ɿ̳þٝŋğɻسDҵӇ‡܍થΓבôǝȁԇņ࠿űටіހހåզُƚßՔ˟ڢάҢιŮɲؒ΂ਸ"],encodeOffsets:[[62680,36506]]}},{type:"Feature",id:"AGO",properties:{name:"Angola"},geometry:{type:"MultiPolygon",coordinates:[["@@ȸصʌԋȘ˕͐ѯ֊æˤŠҬşŲɀɂӨԶ®ƤіHñ̡৴RfՉǞ͕ūԑÖԫ˪̷­ৃȼüκsԴŴϦ¹ĘʹĩСƨϿů̿î́ყZᦵ֤ۋպԽ໳΁᎝Š׋Ж₭—ŵÏԃϞկ~ԉƝЙDžÿՈŜ݊̂ޒªΰ˚ݶȨΆӘռːϐĘج«ӊʣ̜ɡԚȵԎ®Ǩʶͬʭ߼ǣ֚сՐĄǎΌŔʒg̎ĸៜ["],["@@ɉėɣلͼδʪƘ̀˽̩ǯƍɍλ"]],encodeOffsets:[[[16719,-6018]],[[12736,-5820]]]}},{type:"Feature",id:"ALB",properties:{name:"Albania"},geometry:{type:"Polygon",coordinates:["@@Ń˷ŢέΒȳiə˗ŧ»˙ϷСƛÐgȂү˰ñАîֶŖʼƗƂÉˌθаÂƿɨôǴɥȪďȨ̂"],encodeOffsets:[[21085,42860]]}},{type:"Feature",id:"ARE",properties:{name:"United Arab Emirates"},geometry:{type:"Polygon",coordinates:["@@Ƭ¤ŒɱڂƂ۞uԖ{ֺ֪ظՠՎԮdž˹ŖڑѕGçճƪŝϝǑE΅ʓΏuͷǝDZᡋъ͏࡚Ț"],encodeOffsets:[[52818,24828]]}},{type:"Feature",id:"ARG",properties:{name:"Argentina"},geometry:{type:"MultiPolygon",coordinates:[["@@ߗ§ѓ̔ԑx࣑@Aሞ͒ϵрؿનԋ୲ȿϙп"],["@@Ӵ؇͠ڰॠ“ƊǷ໶ോۊŷਆاࡾ͡Ŧχࠡ౧ࡒɭ़ŷڔƈނ٢ƎݐжLjфӝiڣۻҩ֟΁ॅࠃ૭ଧȽڥɣࡹT࠷ǽȇÝիËѫ੨ܙŗ׃Հν§Ч߯ઁఛ҉။ǩउĎǰԅǣػƺщԋ̏ࡱř̪͕߱ɗŜ࠳֨ʧҠˆʢѧޛʻڭԹūࡋȣ҇ߏEڃљʋؿؙࠞߦǝ˿ݭ঳Ӄձটލͧ΅Ͽ˔ࢍ֔ӡΟ¨ީƀ᎓ŒΑӪhؾ֓Ą̃̏óࢺ٤φˈՒĭьѾܔ̬૘ěӲξDŽę̈́ϵǚˢΜϛ͈ȝॺ͸Ǣƙ਀ȠࡲɤݢԊ̨ʭࠐEޚَոo۰ӒࠎDޜɓƶϭฐԬࡺÿࠀ̜ބռ߂צԺʥ͢Ǭ˔ඔࣶд̀ࢎĹɂ۬ݺશȱ"]],encodeOffsets:[[[-67072,-56524]],[[-66524,-22605]]]}},{type:"Feature",id:"ARM",properties:{name:"Armenia"},geometry:{type:"Polygon",coordinates:["@@୞ƀǨə͌ƣǛɁ҄˽ʁˋΦɫϘƏl׋̣}΃ӢHżχCʝɤǩuͧʖرȼĄФƛ̒"],encodeOffsets:[[44629,42079]]}},{type:"Feature",id:"ATF",properties:{name:"French Southern and Antarctic Lands"},geometry:{type:"Polygon",coordinates:["@@ը˃ߐĿˆDžɽϣಇÃq҂ŮΎÊǢ"],encodeOffsets:[[70590,-49792]]}},{type:"Feature",id:"AUS",properties:{name:"Australia"},geometry:{type:"MultiPolygon",coordinates:[["@@ߺ́ҜŘپNJԎÉÐঽ˽́ēگ̉ɰ׍בǧ®ԫ€ԭܘŗֈӝܸtϬռõ"],["@@̢ڇբ̈́˦ΡЖ͟đϋǴܛŸнɄĹɬܕąѥ˖֭࣬ѭצЋ֞λŋȯӔՃࣧ͜ͲȂ;ηȴźƢࢹ׬ԩϸ͋ڀڹʀڭtӏËԳА܋µݓơϵɩݡjӕǕ׻χއثЭ̫ٱ˫гʝܧ͕нɅػʼnׁªˇӕ̇व‰ޡ·ϫ͙ԕέ۟ψԥƪżѬҝǃ݁؉ܩɪӉƄӑÔ߿ʐիԮƻْțьЭ;߱ĸˢРȯزЧ׉ݝƷѮҬŶӞ͘ЬãجہܑԿ˽͏ڛٽΊ~ҀԿ،ѹ̀ǂȘઃԚןz߯Цຓāછ̝ख़˫ߡÈࢻљܯȗljѱ̳Ϳ܉qՅõݑƶ׿ğֽԁ҃ʕœуʁЗˋؕ֛Bࢽ՜ҋDŽlӖкŘƚȒ‡̠ĺאģӼѻࡖƏӒ˜ӎͭնsʚϋͰĽڄӓڔřΪτε˳ެиʑʞ͗aјеڎă˄țʦĠӠǢȸŘрęӮΎ؀Úٕ΢׀ۀˬЦΪٜ̰ϤàɴĻڎ̺ԚĤŶȀɞüҬoࢨʖҚώɊ҆ӲѐœͲvҘט܎ΠܩΦǚ̗Ј˂ТψǻĸٖҠаȮͨцƜ`ɼτĭdɂτŦОŔبϫҲӽՂMՖÿDZҦДڪϜɘſȾκӒԘ̒јıۺǂeі؛ˢ҂Ū֎ȻҀ·ۼɋʈĐԶʵӬʊ͂ñȠNJϬеɡ͉҇ͻ˿ƒĮͱʙп̗ЭÔʁڜҫ٨ˏѠ́؈ӻʂBѰɍŶʷߤ˵ֈ˼ǐҊǠόľҤʰڞŝОÔʔīӔŌنLjǠŽˬȮѾdžҦtʈ̸̾ʂЩÎՃȾķ˜Λ̨ёÚӇ‡̥"]],encodeOffsets:[[[148888,-41771]],[[147008,-14093]]]}},{type:"Feature",id:"AUT",properties:{name:"Austria"},geometry:{type:"Polygon",coordinates:["@@Û΃ӁCǎǻ˧էLJƗܽsщȏۛÞயɐȉ̊ࠧƣĭDžԗŢѕxϝƶźȴƬʪ²ьɹŤɜݎ•׸ƮЖ}ˀǣþƜšո̠ń̒ϰز˓ӀΆ̐ÚٶʱЂªϰǁãŃČ̅"],encodeOffsets:[[17388,49279]]}},{type:"Feature",id:"AZE",properties:{name:"Azerbaijan"},geometry:{type:"MultiPolygon",coordinates:[["@@ʞɣψDGŻ΄ӡֽŒщϰƃ͆Ǫv"],["@@ϊËƞɈԈͺѴѵђ׭ϺŸʸɧۗãƣٵƟ̭̍ȝvзȽ¥ԻѲ̂дʝʚ̿×যإk׌ϗƐΥɬʂˌ҃˾ǜɂ͋ƤǧɚȶƎضʍҐ¹ŘIJбҔɔŚʀ…׀ԙ"]],encodeOffsets:[[[46083,40694]],[[48511,42210]]]}},{type:"Feature",id:"BDI",properties:{name:"Burundi"},geometry:{type:"Polygon",coordinates:["@@Á০ɃϢԜßʲӎҀŸͧǸȏT˗ȹǭ͛ѫ̧̥΍Ÿ"],encodeOffsets:[[30045,-4607]]}},{type:"Feature",id:"BEL",properties:{name:"Belgium"},geometry:{type:"Polygon",coordinates:["@@؜áުǪՐοҦȝħ֧ɕĝһܿϦћßדІϷͶϷ`ũ̒ڪǔ"],encodeOffsets:[[3395,52579]]}},{type:"Feature",id:"BEN",properties:{name:"Benin"},geometry:{type:"Polygon",coordinates:["@@ۛįȹ׆žኞǛǦЮ̇̌ʱʞņѶ̀ĨǠξЪĀȀʤˮʘ̠F٘ә˩ȎӽǓͷĘɧСԳʵʳǁՉt՗µണ"],encodeOffsets:[[2757,6410]]}},{type:"Feature",id:"BFA",properties:{name:"Burkina Faso"},geometry:{type:"Polygon",coordinates:["@@ֹɐϽ‹̍Ƀϗǰƥ˦ϙǾÅӦɮΤo˴ښۢŬּɲȴОœΚǢŘɎٴϖdžˀ޼ΒҦŢɀLJՠJáСŔϣӀչ€НॺȏmֻǿʣЩÿǟν˿ħ݁lϳâ˓ƉωÖร¡qӉŘم"],encodeOffsets:[[-2895,9874]]}},{type:"Feature",id:"BGD",properties:{name:"Bangladesh"},geometry:{type:"Polygon",coordinates:["@@i׽̉ŶÆگʉѬµєDžКΕӨޟ’ü΋˃ҳΧǠũƵʃĠ͗øŽۖ̅لƜԒԫɤȆ̪Հ̼؅Ѽ֮̔ږεВ£ô׏ߞřު^Ӟƛϯ܅ϕµʷӍҢѥƎ՞ɶFѶ೯"],encodeOffsets:[[94897,22571]]}},{type:"Feature",id:"BGR",properties:{name:"Bulgaria"},geometry:{type:"Polygon",coordinates:["@@ʎΉ͚Ö٦ſ௾«иɌবȜ̩ؒӴĕѥΏ̫׹˔ӏܣŒࡥ˃Uлޅÿס̊ڧɱة|Ñ֊сːƒŢĝĴƘˌ͌ˀСδ÷̬ȸȐ"],encodeOffsets:[[23201,45297]]}},{type:"Feature",id:"BHS",properties:{name:"The Bahamas"},geometry:{type:"MultiPolygon",coordinates:[["@@ȵ£ɇӜ̿ʐǾՔʨ‘ۣ̎Jӥ"],["@@ࣷƅÏ̴Ђäֈ{~ɕ"],["@@ƟׯƷņ`ѮϓͪCĪڐϗ"]],encodeOffsets:[[[-79395,24330]],[[-79687,27218]],[[-78848,27229]]]}},{type:"Feature",id:"BIH",properties:{name:"Bosnia and Herzegovina"},geometry:{type:"Polygon",coordinates:["@@̦FȿσМ͓ūЃȡ™ƽû˙țūҥݓ͈ͅΘ͋Ȅϭ̾ǻʺЩϾǬΒ̞ȕǼǨϾnܠƓ׈\\Ϟȅ"],encodeOffsets:[[19462,45937]]}},{type:"Feature",id:"BLR",properties:{name:"Belarus"},geometry:{type:"Polygon",coordinates:["@@߼Mࣰ̈́ȚӄېːÿϔԜƚ͖ࣘࢮɁŢȻѲĴࠒȧĊЁǷɧՄս΂Ƴ»Ʊ֦Ʃʎɡ͝ǿڳˆljÿȠ˧ȸ՝ܝ¹ʵȁÃхͭĆݷ¡əȞ̿ƥ́ŨڍjफȬࡕàٱmҡɩГeϐʷϴԌǢLͰɷ͌™ϊ"],encodeOffsets:[[24048,55207]]}},{type:"Feature",id:"BLZ",properties:{name:"Belize"},geometry:{type:"Polygon",coordinates:["@@OŮĸžƴı̞ԔDŽZHūDŽGaɭƋεôŻĕ̝ÀăīщǓɟƱǓ̅ʣ@àॆPژ"],encodeOffsets:[[-91282,18236]]}},{type:"Feature",id:"BMU",properties:{name:"Bermuda"},geometry:{type:"Polygon",coordinates:["@@OEMA]NOGNG\\Q^McMOI_OK@CQSGa@WNLVWHFLJXVFGJ`ZRTDLeeWKIHGIK@@[MQNi`]VDTBHCJAPBJLVFjT^LV\\RJZRn^RH`TfJjZHHOTTFJP_NOX[EYQQKMEJOLANJH@HQHAARF@ZEPS[U_IcRQXE@EEKKOCGGCQCOGISKYGUC"],encodeOffsets:[[-66334,33083]]}},{type:"Feature",id:"BOL",properties:{name:"Bolivia"},geometry:{type:"Polygon",coordinates:["@@य़”͟گӳ؈વȲ۫ݹ؅ŗ͡୆ҋऺˆ߾ѳ΢ŏ؆ЫֲՌ࣢αۺȖ˰ƭ̶͠рh܎¤נǸ˶ܩഠزíѠnȈʪ݀;Ѷ͂સƚęؽļ͓ãࣰ֛ݫऴƑ̻ͦ֨ǕΐʑՈTӦʟšӟǐʕZγʓa͒এྖ“ūӟĜͧҞɽȤԹƫڋɯρĄӏʿǥaʶ޳јޭ^ัʓЕ݋sҋͥ৕ƉǸ"],encodeOffsets:[[-64354,-22563]]}},{type:"Feature",id:"BRA",properties:{name:"Brazil"},geometry:{type:"Polygon",coordinates:["@@૮ନॆࠄ֠΂ۼҪjڤуӞеLJǒӜŖӼBҦ̡ƴ̿Ƌ̻œį͔ýޔƿʤ֥ɪ΃ǏࢱLjÈଜʝҴˀǦăӐɰςƬڌȣԺҝɾěͨŬӠྕ”͑ঐʔbYδǏʖ™ӠӥʠՇSΏʒ֧ǖ̼ͥळƒ࣯ݬä֜Ļ͔Ěؾષƙѵ́ܿͽȇʩџmرîӃƟϡĪÈ౨ۏӷݏv҄ͅ֏¶DzΰұԞΓݴɜƶA΢ԖʎċҔɊ̈Ôϼ०ֲێNJŔŴݴŸϚᘰpθſӔύ̬LؐӀƒǚē†͐ӯĔYՀ࿖k˦̂ɸˉǐӷǂļҨѻٸÆnjʲشȞΊƐĮΤ׸ʆ¯Ǯ܅ðśՊ’֞ϓɒǀþجŅڜȿʐȤ؀žल̮͎̾ŏʂѪšȜȗʼnσ̀ŵȖϷɷ̏ƅ܏ɌыÔϳԬϿЮ¥Ģǒˆ˜ϠƦ˚ɢҬíȲŠҚçøǢƗǘĎʐͺõЈĒӔDZξǥʺɪȊ•ŘɿДÒ͒͊ʴؤӼޒ˺¢ȺҫҼ฽҈Ƒxׅمەʾʩ๤ƁŠࡃٔր੐̟ඊԡШӱƏҫ঎ʶ࿐ѹఴŽఔ۝੸व٪ʏܖ‘̦˅˸੭Ɣԗͯ൹ёշஅୡՙोثܯȿgɻءÒ༽ɹಓęօˇͧƫ૱࡛઱ƛࢁڹηȟԋ࣯Fೕ͓סύवʗ঩ڝ܅࠯ũطƔҫƽࡓȏЧחҥट๕݉ڗ֯Ͻϥߛ։ӑɷӈψЊӟֲڇҬࡹՠ̹{ࡅٰձę"],
    +encodeOffsets:[[-59008,-30941]]}},{type:"Feature",id:"BRN",properties:{name:"Brunei"},geometry:{type:"Polygon",coordinates:["@@ͬ̾܎Ң›Я·՛Б€ǭ˹ϥѦ"],encodeOffsets:[[116945,4635]]}},{type:"Feature",id:"BTN",properties:{name:"Bhutan"},geometry:{type:"Polygon",coordinates:["@@΂ˍÏԩۇ{ۿÈՇſޅ͊kǚ֌زҒɈ׸șѺqπɥ"],encodeOffsets:[[93898,28439]]}},{type:"Feature",id:"BWA",properties:{name:"Botswana"},geometry:{type:"Polygon",coordinates:["@@ǜƭ˄ӡॎइήĝD̑ʚՑٰŹ՚ϝ஑أݭع˩֓ʧ́ҙãƧГďʽ՝țہ¤БɾΟĸХșȵГЉʧпϑ׻đȇ̐üԠӽߚɧŲAរࠤˆ|Ჾش„ಖ͎̎΍՜ͤʮDӂȎưÙ͔ڣ"],encodeOffsets:[[26265,-18980]]}},{type:"Feature",id:"CAF",properties:{name:"Central African Republic"},geometry:{type:"Polygon",coordinates:["@@ۜÚƺɎƔgȾȏ੔͐Τ͠Ѭ̌ĉ̐ʂüߺ½߆ϴ؊ࣺю;ՐƜĪΫӜԿF΃ƋΓÄʻ̆ʍٖοҢͻT˗֠ѫΖεɆԋغͩƊˉˣęաpكĘ̹ïųȱ˕}ͧDzधнϥĎŗÝʥԕطǐؙĊ՗̴ۓ˸҉˓͛яùדգ²֩Ƙԅѻѯޱėʐ›Ϧϧ˔̳Ѡï̠ЇѮæʢċΞÞٴȬƴц࡜"],encodeOffsets:[[15647,7601]]}},{type:"Feature",id:"CAN",properties:{name:"Canada"},geometry:{type:"MultiPolygon",coordinates:[["@@؎œުxЯ΅̵Å੥Φȿˬ͆ʸ̎С"],["@@Хcઝ˂ޯІ̄î૆Ɂ࡮Η|Ʒ"],["@@хŝൡϢʥ̘ݩ̌Ưʈࡻư͕ҜðȚࢨǿԨŵ߄ė˺̃дЋ࠼΍Όҩ"],["@@։ܿո˴֠ǵ̏̉ݚɱϰȴ࠼ʵʹ؛טƞņѿʼԷΝ݉ϝ‹փǂǾیɻńইܯԅ†צЂ߫Ȳࣙ¹࿅~ŹʠԼ̐λɬ۸Ԓࢄ೾Զӎܲ̂϶™Njɫ҅Չ"],["@@@@@@@@߰äʥ॓ܶگͯDԑϪ̵ϮчʾƻτºˎЂŋ"],["@@͡ѳχîəʢ Î͖ʦΆkɈǣ"],["@@ঝҧץnǿɪزϲ଼SiǍ"],["@@ƼυјżӨɗं˽४ʽöЍؤÞ׶˥ݙ˃ಳȬҽϚ࠭ҁ஡ѣ˿Ӯଗăܴдņڌ˺ޔ؈å"],["@@ष¥ȿЪΦҼޖŜپɷXέħřձʛ"],["@@Է̍ଉʬۃğଫϘ݊ʼטζࢼʃԎƯʦDžԠ͍"],["@@G࡭૰ڄ৐եʡح߾֥࢚؈ؖܨ°ईஞÝఔūૼй¼зس҃פ҇ŃУ࿩חୡŻࢃʨʣуߵ۽ʓοই֩ளÇڏΡÇձ঍Ŀਉڻ࣭ु͙ڏ±উంƕϜ޻ϼّ୲ǔ༞εࡀ͋׺Ѕ੆ɳࢸΟ൶µࣴąƍܫʼࡋ،ळనߗ٨˚ҔࡺѭೢףѶഎЀ॒לҮהç֭֘܌৷لলࢤνݾ˫ಾגȘ෸ɫࡸć۠ɚ޴˵ਚӣʮ͙ຄÛ}۷˪ਜ਼ގſ،ӵ௖Ұߦऔ֌ϸٺݣબੳघ৙͵Յ૤Ӂݰӓംɏբˍͬ܃ټŏͶͅÖऻ؍́׽̏൯̗੏ۑ෇ƋᅛǮుPࢇÍ۱׽ੳω௉૗ॵޡ܌Ɛഘૄᄈ۪సČݔЫߍ֟ˊࣟ˜هતп൸ŨࡆीÎ؍ժ̥ਣսᇷԁ࠯ͽय؁ٓ֍܆ฤ۞഍ƒणĹջӆBନύʐ֛ƛ˧ɚٙىʱٹ̕ϡΥŽˏ¥čȹ໽A౥MϛƷࢵ؃Ŀßˍ͝ޗBࠛGϛƅƊǑøʯeďષлࡽſউ҅Ɂ@˷ƂĥŦnĔȂ̎ЂҦʘӺǙܴǵނ࢕ЂľƬūĺɳ@ǛƆ¥ȤǍēɥ€¾ĊȡĊćɚٵːڹ˪ࠑ͘߁̨ݧʃ˝Sਕɔڻʼnࠁʺ࡫Ɔו¾ʻƜƫҤ˳IE͓჏BᮝA᭯@ᡃ@ᠿ@៙@ᢡ@ࠛ@᠁@ᛷ@őF྽ࠜ׵δຽΐҳݖŤԨ੻ΨƧڴ৭؎iѠҲКwՌෙ՘࡭ॠՁ׾ޑϚ֣ΈѿѢࡇ˕ࠇҹݛւדπࠋɸࠟ|JⷎNᷲ༬ȭ೘Й࢘û݆ΖৰˀఢĹ఼τ൘Ⱦ־ΑظȠȊЄ׈ęෆݫ૦֬ŖّਔƐ͆ʖৰ·౼Λዸ̭ୄƛࠖÄଊэ஁зຶǷᗘIJܒƦࣆԋࣴьࡩΦժ˼৾žڦĎڴȩࡊҗरä๢ϛಬƄ௬oĭԺݞƦದ˵KߑՖڠڰuϞࡊ࣑԰কͺäघশ؎ૌƇࡘχଞॅݗЭ༠ǝ"],["@@нϿሎʬୠщॊіސ˟یࠛфΒ׭ࡰ݊Ŭ࠲Ƈश͹ՆࠉʼץථеະЉĝσൡã՚͓˱ູ̯Ƃฃɪঋ»ཅ˷ᒃű๻āҕІଫɮݙģਛږ֔ĚಘƜஈ›રƦྷȞᅗã஗jѷ̴ዎͲಗ[ืɚ۶ـגͮᖬԠ࡬Nj"],["@@݉ևಹך˸Ş૸’ٔȁ"],["@@öɵࢿ|ࣟjࣿőʑ¼ऍѾ˜̠ИÈነěชң"],["@@ڎԽޤڴᒆΈ෺ࢅůջဒʒߒͮሀыୄЏŊν༚Ȑ࢘՗᎐ܸͩ͹ߐ޻໯ϹጘչೲȁீޙೖÇʽכ้ঋਗά೓߲ઙĿŁӕࢪӥଜϯΌɟմࠩ́׿੕ɪᑏڨஎܣ࢔ԕƎ̉ᗱͲᅩӤ৳Ц̌ʂయќ௥Т`ʑᝡƅ܃˾ֆؤ཈dႸņ˫̜̊оચࠊɳϊ͕˾౿Рၳ˺՞ɆࢷԺ݋´ڏ˸҇ʛ຿ŅᵝȈᄫʚഹŴۥ̐࢞Ϧ஝Hˉ࡚٦ݨࡺ΄ᓪɢأի"],["@@৊ǯຄńɖʑ޷Е౜αƱݳ൝͗߳ê׉͎ᐡٮjˎ႖ĽएռসР"],["@@࣓عय़ŒԽ݆`кѮΨ࠰ɮც‡ྈȱళݟ৉Ǎ"],["@@ᕍЙѷςኹѺήΤ׌ؘܰւࠑԦᭊƀ஬ǧᒰ±ࠄʑࣖΝ੍ɃᏝןਫי@ν"],["@@ҙ͙௝Øৱɖ҂Ϛீɨܼ̬̍ˇ"],["@@ٞϵ€љϣس൱đࣗƈjӬ൝ÝÁٮࣜౌ˺ஂµÜŎ"],["@@̙͢ݠƘࢢ™ƪЩԝЋ᭗Žᑯη౩mŅ˜პϊ④ij୯Ʈପࠐ߈ɾᛄ˳๶ӻฺÛறߨޔ̪ࢄĭ˲Џ"],["@@ढ˓ကFܨˡȑ́८ȍՔȧଊ™௬ë೸ǼႊðീÏ࣒ͅȊ΍ԽɟభǷ੽ĸᜱŻႫcഫļᖁ˔̃ҦĹжࡇξ჋ĺঅʼ͂ΈႾÁ"],["@@ŗ٣٩̇޹£༝Ϋ഍ŹଗǼ@@ුؼႮծಆ[ସŬ"],["@@ϣy༽Âɡɼၜ]מƻĵĩ"],["@@༩ʋఝ˔ڼˎ௮Đஈſ˩ʥ"],["@@৽ǏඉBbŤࡴʦҌદǝ"],["@@కǥۃȚέ͂áΎજ‘ӪÅ৐̇ɫ̣"],["@@͜Ε൏Ĥ൩˘ሏŒߺʠ৫ȮÕ͐࿶ŕᗢ̫ٞЍ"],["@@০˕ଽʟ༇ك๥Óდņࣗ΄^̦ڔɢ໡Oए˨ՑϠ׌ώ׊ʲࡴÎοȖዜ¨੶҅මǵ൞ǃڒև"],["@@ᖢßᅮŅ໤ɫ™ɡᏅη᎙ǟݻȉᆬJጡԙേʃ෯ۇႿƓՙǡᡷěୈĿׇƭ۞бߙ˽ಛʃЋ͡୫ʣŞȏ෬lȳᖟԋᔧɴឿŻధĸཟªĿЖ༊Ȑб؆ԢÐᖤγ଩բഹLjڼ͘๰Ȩʄ̊஋͠ΥѠᘞ—ڒĝ಼̪ቃĬ᰽Á๣˸۩ͼগʘȁ˺దLjঘ‚࿲ƌం̺ਬ©ࣤɽٔҒૐƈບĢᢲ–Ҁĝ᝚ƚᆔÁᆒÁ"]],encodeOffsets:[[[-65192,47668]],[[-63289,50284]],[[-126474,49675]],[[-57481,51904]],[[-135895,55337]],[[-81168,63651]],[[-83863,64216]],[[-87205,67234]],[[-77686,68761]],[[-97943,70767]],[[-92720,71166]],[[-116907,74877]],[[-107008,75183]],[[-78172,74858]],[[-88639,74914]],[[-102764,75617]],[[-95433,74519]],[[-123351,73097]],[[-95859,76780]],[[-100864,78562]],[[-110808,78031]],[[-96956,78949]],[[-118987,79509]],[[-96092,79381]],[[-112831,79562]],[[-112295,80489]],[[-98130,79931]],[[-102461,80205]],[[-89108,81572]],[[-70144,85101]]]}},{type:"Feature",id:"CHE",properties:{name:"Switzerland"},geometry:{type:"Polygon",coordinates:["@@ƫŹȳϞƵіwá΅χƙةŀǻ͹ЏơƄһ˵Л¡αǶ˽ςБſ^ϠؚҾɈϤûɲƞ܎MǦǼ࣒ʱ"],encodeOffsets:[[9825,48666]]}},{type:"Feature",id:"CHL",properties:{name:"Chile"},geometry:{type:"MultiPolygon",coordinates:[["@@Bም࣒@Ԓw˧ͻܛʻЭ‚ӻä؏ʨ࢟ŨੑҸ࡫Ҏୃशۘǭ୼֗૜̟ѢϬ˘ֺޠΎװı"],["@@͢୅؆ŘĺɁ˿ࢍࣵг€ඓǫ˓ʦ͡ץԹջ߁̛ރĀ߿ԫࡹϮฏɔƵCޛӑࠍpۯٍշFޙʮࠏԉ̧ɣݡȟࡱƚ৿ͷǡȞॹϜ͇ˡΛ϶ǙĚ̓νǃĜӱ̫૗ѽܓĮыˇՑ٣υôࢹ̧̐֔ÄgؽΒө᎔őުſݝPЙȷݷ̣Ɖ޹Σoॅ˚१ג@@ਲ਼ӔˁՒʄӰх֒Ņ෤Φ߰ࢴٰౣʔߞݒ˸ඊत̏Ѯგ֝ɠʿ਻ՉŠ˂ல˺༒ϮָʍࠎéूΠ„Ԩപ׈എΤబȗ఼ʤۚĵਞӮਆưྺ˒ნˀሤÕ൘ǩ஄ќɌɦњЬֱŐ؅ѴΡ˅߽Ҍह"]],encodeOffsets:[[[-70281,-53899]],[[-69857,-22010]]]}},{type:"Feature",id:"CHN",properties:{name:"China"},geometry:{type:"MultiPolygon",coordinates:[["@@ԑഓΫۏѷ܂ĩخӶࠜڦَϨʡƣԓ","@@ܩЗۏʺyܢаϠࣾɾӚoȊ͍σσșӟ"],["@@ฬˍ঺ׯͼ߃౨Cܰͨ൸ʜѳݱ͙̭˽ः֡ࠇ৵ƪܝ̑ɜܙť঳ѕwLяթӺͯһಙαƀѹܩŒЍ˂ֽ׭ऑҋۃա୭ʑأϽࣝɭ҂ϴǭ͞ږ֠ѹѲܷ̓ॉ׏ԫթ࠙¡ѓϻѸ֩یƏ„ϕڔʕस׶ݚ͝լuƌѱஓɻϻҏࠇућיࣜҥͦࠝԞޓ֮٥_دՅɯȪ҃ӶʻŻۃɇڗҷ÷ؗࣧڹિޭোିޡୟۻृĩԣύ̃˘Ӈй୭сࢵŹ˻ࢱҭ·ə؎Ȧ͘ૻːЇƍࡍɔЏ΀ƄӜޏƶЙܑ̀҃ࠇīڡJ҉ȳѥūŶ॥҃x÷Ȣ}Ύ؝ʓεƸر͂ʔۤՏǎȧޜࢱƓĴাߔۮ”ۚ{٠νȨ˭ӶӭÙࣟŲ˴ΜϿԺ׳Ν۵ȸॷ՗އسڳĿοɦѹr׷Țґɇ֋رëڌԟǭওĈोȖڿτٵǔ˯ЖҽŦࡓոکʴΑȩଢ଼טࠛՒɽऐ׾ő‚іͭјĐۆࣙঠ൧ͼʝ٦ةϼƫʌųӎˆ͜ԛȔ˟ďɇިʈȔśȠߤЈ׈ǐࢸő͆՜ંIJͮ̚೜ҔŠȐãӐּɔݱฦဘͲјȈ؆ຒဠˡҲϞ¢ࡆۦĀٖ֔͢èɚו۸ѽப̿׆ڱ͕ঙ̢ηূƝଆŝ৪ԻԲġϤޟӲӿऒnჄȉ૤Ŝࠦůఔԛ৮BόʽঐҌബ̈ాŒঘ̒׾҈ך˰Ƌˤˍ͔ѴըӀùࡺǝ࠸Ѿ౲͚؞֊נʆ௠ŐڐĥĠ̘ݿזګː٥̳ࠣžӇŃɏΆר࠾Цو৚̓ஆՎQτݸࢾҲːWҪңȦۜмਰƲ૜vసʡ݈̱԰ࡏ̀α̊ԩ̶ࠕ"]],encodeOffsets:[[[124701,24980],[112988,19127]],[[130722,50955]]]}},{type:"Feature",id:"CIV",properties:{name:"Ivory Coast"},geometry:{type:"Polygon",coordinates:["@@ϣUוǒ՟Wহƥ׍ʍ̯ࠫNjvÞۖĄŀ}ͨΣΚˉÈʕɲǾώčО ʔƄB¸ξÝnjĄŜ̸ĶȹڨȗΎæ˸ǘÞŊúɸųٮOƸʖƢgʎĦžΫȞłΌŰϚǽƦ˥Ϙǯ̎ɄϾŒֺɏɠ஡Ο۷ɕेθܣ›ͧ"],encodeOffsets:[[-2924,5115]]}},{type:"Feature",id:"CMR",properties:{name:"Cameroon"},geometry:{type:"Polygon",coordinates:["@@Ľ°ӻŇԝŒЋÅ൅nŬڒ͟֊ϧƚǟϖɋŦXɶɎתЎ߸ʒRԄӮ͈bҾΉ־˲ĀΔȌͺžь҆ΊǞךDzȊŢѨɜ՚۾ٲ¬˨ĠƲͫͰ‚ˌʂ¶ͮ՟Ê֏‹֏ҜޅҷTʁÏϥČǻЅӸөμƛŠΏˆ׃ſɩх࡛ȫƳÝٳČΝåʡЈѭð̴̟џϨ˓œϥĘʏÓґڛȤڷɜ੗"],encodeOffsets:[[13390,2322]]}},{type:"Feature",id:"COD",properties:{name:"Democratic Republic of the Congo"},geometry:{type:"Polygon",coordinates:["@@»ঙͶŕˑ̗͓ɟ͍ѫǯϷ±ګț͍Oهʍɹ‹ԃŗÝýҟɄϡÂ৥ưޝċѧǘӣӤҹҒ੕ͥĒ૿ƙɣĵʇՙȊχƫষĻࡇɨƫט͝ɲƴìٟࣟR·Ҧ̳ΨٟŠȋѰԣ˅ڧŞ˫ϢՕüϽqµʾ́rϥºԳųιtȻû®ৄ˩̸ÕԬŬԒǝ͖eՊ৳Qò̢ѕG­ƣԵɁӧűȿҫŠˣş։å͏Ѱȗ˖ʋԌȷض៛\\̍ķʑh΋œşʼɊʀμƎɎ̪ǰɚđ˼͐ҜSÄʃ̼ƩӶՄӨШɆːƒ۔θࠆϬўքМĪˌt̰Ǝ̆«ӊŀݖǐԾʦ҈¸Ԕúה͜ѐҊ˔۔˷՘ؚ̳ĉظǏʦԖŘÞϦčनоͨDZ˖~ŴȲ̺ðلėբoˤĚԘۙϘķɤƖϲÅҶDzȦΫ݊֏"],encodeOffsets:[[31574,3594]]}},{type:"Feature",id:"COG",properties:{name:"Republic of the Congo"},geometry:{type:"Polygon",coordinates:["@@̿˾ʩƗͻγۏࢸٖҪ̓֌˾ɂ֦ĺäό҆Зݐ•ʴЈł֒ĝڀЉӺζ঄ȽǘسçɻѢÔξ੘ڸɛڜȣÔҒѰ޲ԆѼ֪Ɨդ±·ԓʥ҇ǏԽĿݕ¬Ӊƍ̅s̯ĩˋփЛϫѝηࠅ„ۓɅˏӧЧӵՃ̻ƪÃʄқT˻͏əĒ"],encodeOffsets:[[13308,-4895]]}},{type:"Feature",id:"COL",properties:{name:"Colombia"},geometry:{type:"Polygon",coordinates:["@@ΫȤЭ˨ʅƅ܉Ŝȱΰƽ_࠿Ӓŕʺ̼ڛтȢ̦иÊΞՆ͐Ѵ̳ȦDŽӦȏސǸɚƃ܄ͻ҄ņТ˔ÑǂʠțӶĺŬѢـהΌĚT˦ƺ܂ӖϸՊfäǪڂéڌъ͞ȊОК̖»ɚɛǍ˱գƕɇп͗ʋʓ̷Ĺ׵ɷӭѢÇņϭȄȁâ͹ij̵ˆǫȸéȨ̉ઊĄӦŃעܡͼĚ؂­ӐĪ̔ƟƱҍȇ˯ß׻ǜ֑ʆʟ†ȉэл̨ȃɠ̋ʰ࠹ǁĻǏӸɷˊ˥́࿕lZԿӰē…͏ǙĔҿƑK؏ώ̫ƀӓoηϙᘯп҂ʣpժࡤٟϾԍị̈ƤҧɝصŀӵࢤϳɐˍІ֑Њɡā"],encodeOffsets:[[-77182,-155]]}},{type:"Feature",id:"CRI",properties:{name:"Costa Rica"},geometry:{type:"Polygon",coordinates:["@@җȆǟǮĬƤ‰ȄɷȪͥǔ́ņÅʖəƮÄʑǗȩȓɸˑĊŗǞLʮŎˆʁŠȖnjŴňֆɝȖŊˊéƔǥʜÇȪDzɈҙ͖ͷЂΩ͗õLͷǪűűıƱëǟ©Ǖ"],encodeOffsets:[[-84956,8423]]}},{type:"Feature",id:"CUB",properties:{name:"Cuba"},geometry:{type:"Polygon",coordinates:["@@ܨÑڊW߄˹̭ͮ޺Ĩ̔ȡ܈ԳԺϛˢ\\ԆǟÕʁئ“ٌ΅ıȟ֑Ń֡¥׃âளą֜Ҷ΁ɔէÈ̃ʐȥӎӃ޵ɦʥǬભž̋ǐ̀ɀࠗ¨׿ѧΏ[ťȳеğΫĂѺʸǼ̤ϞȈіǎَĄȰĢ"],encodeOffsets:[[-84242,23746]]}},{type:"Feature",id:"-99",properties:{name:"Northern Cyprus"},geometry:{type:"Polygon",coordinates:["@@ÐJŨȮ؄Yކʢ֧ΧÔƿęˆLJÙűj¥iĎѾNjVɫïƿ¬"],encodeOffsets:[[33518,35984]]}},{type:"Feature",id:"CYP",properties:{name:"Cyprus"},geometry:{type:"Polygon",coordinates:["@@€ãࡱͿЩŊȟͶЎŒǀ«ɬðnjUÒ½j覎ŲiLjÚ̇"],encodeOffsets:[[34789,35900]]}},{type:"Feature",id:"CZE",properties:{name:"Czech Republic"},geometry:{type:"Polygon",coordinates:["@@ϯǂЁ©ٵʲ̏Ùҿ΅ر˔ӃΰѕȬėΠƧʠؒǾ̸Ⱦ׾ǎɂdžɜīϒĖЊ˓ؼñ¿ɳҘǧŲɒּĥĄʿز»ϮЯʡCŽƯȕ—ÅȑLJ¡wý˹ēϋbšȁ"],encodeOffsets:[[17368,49764]]}},{type:"Feature",id:"DEU",properties:{name:"Germany"},geometry:{type:"Polygon",coordinates:["@@d͗ࡔțS̗ࡢǂҾɰॊͧІˋȞёɹɣ̨̙Ⱥ҅ß́Έ՛ϑĕɛĬɁDž׽Ǎ̷ȽؑǽƨʟĘΟіȫӄί̑ϯ̟ŃŢշýƛʿǤЕ~׷ƭݍ–ţɛыɺʩ±࣑ʲǥǻ܍Nń״ьֺ௅ƸЇɘ´ςǗȐĨ֨ƗࢢԎ@Ɉ͂Ⱦޔƿ˴ǐDz۰°Ƽȃ֮вȓ̀ӈٌōՠŸ"],encodeOffsets:[[10161,56303]]}},{type:"Feature",id:"DJI",properties:{name:"Djibouti"},geometry:{type:"Polygon",coordinates:["@@ȤʹΑӏȩήɯ̱҇ȅƬȭÏҷb_ʮßɶ˴Ѐ̐ϊήñʪȴ"],encodeOffsets:[[44116,13005]]}},{type:"Feature",id:"DNK",properties:{name:"Denmark"},geometry:{type:"MultiPolygon",coordinates:[["@@ԋڹ࢟ӄŝΒ௼˨ˎу"],["@@ȵ̓ʡĞ؁؁ɮХ՟ŷًŎͽҲ}࡬Ɣɪʌʦ݌À̐ɴڮʂƒѝʟ˙ĶɽҘŵ"]],encodeOffsets:[[[12995,56945]],[[11175,57814]]]}},{type:"Feature",id:"DOM",properties:{name:"Dominican Republic"},geometry:{type:"Polygon",coordinates:["@@ŀƞپIӾɏɜtƴ̕Ҡhʡϐ‰Ю̷̯ͿЍǼϫ•ˡ¢ƱƵ͑½ŷȲˣťͳֻɏƆ§ʎjɬɍʦȲƚÞ͒óҜ"],encodeOffsets:[[-73433,20188]]}},{type:"Feature",id:"DZA",properties:{name:"Algeria"},geometry:{type:"Polygon",coordinates:["@@ᮩཽᝩ࿷இϑटćU՘ϵƌԹʊȧЀᬻᆴᬻᆴṕᎠfnj@ÊQ঺ബب࠼Ÿێɦ͎тচͪ˜جӢòϞ̶સƚƸ͜ɛDz̃ࢲ¹Ԟ́ՠ߰ҠࣦƢՌΎ߶ʰ෎Ƭർæшůߊͨ࣌P΀ȝֺ¾ǟћƄߟȡۙԭҵôمۊԃRȯԮ͹Ϊຝ˖ݏ°ϵƧۇÔϥŃҟòՇͫΗӺؓŽέ̘ҵϼƸڒϷςՃ"],encodeOffsets:[[12288,24035]]}},{type:"Feature",id:"ECU",properties:{name:"Ecuador"},geometry:{type:"Polygon",coordinates:["@@҂غǻξ͍ϵԉςǞʀƙބ̎ŴƺԼ͆զÍ΄ҢǸ׀Ͱࡀӑƾ`Ȳί܊śʆƆЮ˧άȣŞٓʽճࣷ࢟য়ͧԥܵǃ֣Ӆ΋ΙъͻĞ΍áw̮ʈȨıΔ"],encodeOffsets:[[-82229,-3486]]}},{type:"Feature",id:"EGY",properties:{name:"Egypt"},geometry:{type:"Polygon",coordinates:["@@ɽͷǹىɫѩȝƥ˩˔ϛϒ׵ஸđùΐࢯԪࡋٌವ̴ҙ˒ӃݮछǗƣ‚ճ঒ݭƨǣΏ@Ὁ@⁩@@ᶶ@Ჴʥڲɐ԰Żά̤Ж૦b߲ɝ࠲ʛϴſ٨ˊΌʊݎêװŃɮеȜ˜ڨȣټ³аɄւ෽"],encodeOffsets:[[35761,30210]]}},{type:"Feature",id:"ERI",properties:{name:"Eritrea"},geometry:{type:"Polygon",coordinates:["@@˻˖ΉӰϋ˒ɏܷ̄ͶֻXȭǬӯȡԛϢʽط঑ǬęʹβఀĊ֒ˆʴؤƐьӒӦঃɴޗҢУବߏҲӍҖӝˀ˿аʧʩȳέò"],encodeOffsets:[[43368,12844]]}},{type:"Feature",id:"ESP",properties:{name:"Spain"},geometry:{type:"Polygon",coordinates:["@@¦״΃θஒ؆ਊƱ૾NࣂƝۦªമƒͰ͛໺ϡ̨ǺीϝআŊ®ӥߓ֓ઁǯõ˱ԩү͕ہ͞ӑӟϑǹճىǗש٥੧_ߟhՃ͍̓ͅЩê̵˴ʃӚ޷žé˦̶̀Śɬ̃ʢɶրͳԌδè’ЈƎŬZپϲɪɻфөˆƝŁӹCɁЬ΃ū̥ɇ"],encodeOffsets:[[-9251,42886]]}},{type:"Feature",id:"EST",properties:{name:"Estonia"},geometry:{type:"Polygon",coordinates:["@@ĮӸ̱ŁՓ̘ñӘਫ਼ɼ੔Ũ࣮Ƒࢂ|Ŵƣׯӝʞ޵ΫˉۙDܡ̸ρļ܏Ʃ"],encodeOffsets:[[24897,59181]]}},{type:"Feature",id:"ETH",properties:{name:"Ethiopia"},geometry:{type:"Polygon",coordinates:["@@ԜϡӰȢȮǫּWܸ͵ɐ̃όˑΊӯ˼˕̏ω˳Ͽàɵ`ʭҸaȮÐȆƫǽ̴̕ҧ̴Й̛͎ᩨঽۺNᛛᡃફ™ݟףաeɯ˅ַB͹˴ލΙʝΓ֕àȃĬȟwˇT੟܌ב@˹ˢ@ҾѧƘӻࣴϥȚƧʹэЦԧÒ˸ӐҀrŲʰ[ݲʞࢠЊɾĎ΄ήٜԔи΀ࠠƆܠ঒ǫʾظ"],encodeOffsets:[[38816,15319]]}},{type:"Feature",id:"FIN",properties:{name:"Finland"},geometry:{type:"Polygon",coordinates:["@@ūיಀ֓ޡى঎ख़֡ܛݴس΅յఘֻ́ѓޭӟᅡੵໃá๑̯ൃǯӡҞ߿ˠȈࠢСݶАӪނՆ኎࣮֖Ǭē΢ୟЈ˳͜uಒ಻ֲ૩ЪԊɞतѻલ¦ࣘȭߠϊЬ؞ಬ˶઄ͯΡכ"],encodeOffsets:[[29279,70723]]}},{type:"Feature",id:"FJI",properties:{name:"Fiji"},geometry:{type:"MultiPolygon",coordinates:[["@@̂ʍƓѭԳŗҩļąτ͖̀ϤĻȼƐ"],["@@՛ǯŅ̼оǤˊ°Ӱˀ@ЧՕȷ"],["@@é­@ШǨžĽЗ"]],encodeOffsets:[[[182655,-17756]],[[183669,-17204]],[[-184235,-16897]]]}},{type:"Feature",id:"FLK",properties:{name:"Falkland Islands"},geometry:{type:"Polygon",coordinates:["@@৘Ԍ܎ȿԌʹڦϙʥ̋ଋʥϙ̌܋ϙпϚ"],encodeOffsets:[[-62668,-53094]]}},{type:"Feature",id:"FRA",properties:{name:"France"},geometry:{type:"MultiPolygon",coordinates:[["@@ˣ٭ϡǠș֢ǜ̺ը͎Ɯܛ"],["@@הЅќà݀ϥȊñʎjЈɗெƷыֹŃ׳ɱƝϣü‚ɇؙҽ]ϟВƀ˾ρ“ʁʚ̿̅ʯɐٱҖŃĩηݿӅစɬ௧˗ĩԑঅʼnिϞ̧ǹ໹Ϣͯ͜ѢԎdžူࢁࢤإю౹͒čؖઠǾථɏˇॎߌέዠپʨێܾǞŪ̑ϸ_ϸ͵"]],encodeOffsets:[[[9790,43165]],[[3675,51589]]]}},{type:"Feature",id:"GAB",properties:{name:"Gabon"},geometry:{type:"Polygon",coordinates:["@@ࡹࡔ։ۚԙࢄ‚˨ǾˎȲؔǜخ˴¶௢SOৠЌÆԞőӼňľ¯ÓνɼѡشèȾǗεঃЊӹĞٿŁ֑ʳЇݏ–҅Иãϋ֥Ĺ˽Ɂ̈́֋ٕҩ"],encodeOffsets:[[11361,-4074]]}},{type:"Feature",id:"GBR",properties:{name:"United Kingdom"},geometry:{type:"MultiPolygon",coordinates:[["@@҉ֽًǦԱ[ǦҊǥ҈۴–ࣔԳ"],["@@࣋ࣧࡦŘऄIɕۅݯݩࢄÃäĕݠ঱ֺƇԬढ़ʈͧৰDžķ՝ѓʗͲѣݱѯ૳Rෝɱϻǒ։ϿޥĪם͍ҁǘ௼ࢨݪǺOBಽƔʃͰ࢜ʺҡҐdžռఢ÷D@ŮӤ֛Ԯ_\\৵ƨȧɬ̨ϒˡɴҍЇ·߶щє̨ࢆٶھڤá০ì"]],encodeOffsets:[[[-5797,55864]],[[-3077,60043]]]}},{type:"Feature",id:"GEO",properties:{name:"Georgia"},geometry:{type:"Polygon",coordinates:["@@Ųάȿִӟ̲ҭĬ̯ʴĺIJ܄ƝఆƋଦЕƦƻԚƂ޶ǭʴ·Նșɓřвғŗıҏºصʎȵƍଢ଼ſ߳Юࣅ¡"],encodeOffsets:[[42552,42533]]}},{type:"Feature",id:"GHA",properties:{name:"Ghana"},geometry:{type:"Polygon",coordinates:["@@೉ӯҳ˽ݳʑݡʆœͨηܤɖैΠ۸ɟ஢ŗنrӊฤ¢ϊÕ˔ƊϴáÕʿΖџC؍Ąڍɂ̫ȅݳäйɢՓȈ̍"],encodeOffsets:[[1086,6072]]}},{type:"Feature",id:"GIN",properties:{name:"Guinea"},geometry:{type:"Polygon",coordinates:["@@ʃtǡͷʁJǏǴÈͶΗԨɕħǵmɳ³V̮Ƈɘ‚ʔǻΜɹ̜ڥDțǁɵoƝǷīɹ҅σρӼ͛͢ɋŊȿǖħϊūȂʓƐώЦʮeɖƘȄDƄŎï˨ĢĖd˶МU؀ȱȄlÚĤҜáŨ´¶̭ƆBɖŒƔƒɸɇάãɲǺ˖ŒȬŠǚuȈȁĴɳΆΙǣɏ˙ǴĊŀį«ʡʲʍǗÝå˷Ș΍Ⱥڧ̷ĵăśÞNj·νƃA"],encodeOffsets:[[-8641,7871]]}},{type:"Feature",id:"GMB",properties:{name:"Gambia"},geometry:{type:"Polygon",coordinates:["@@ņόࣶzȎȦˊ`ͨȷʼIˢƚǞʏεȋιdέǰ̷ȗƭQȫŝއl"],encodeOffsets:[[-17245,13468]]}},{type:"Feature",id:"GNB",properties:{name:"Guinea Bissau"},geometry:{type:"Polygon",coordinates:["@@҅ΘΝÈȕʀLŸʯǴÁǶѼƌ˦ɦĨ༈•c˵ġĕð˧ƃōȃCɕƗʭfύХ"],encodeOffsets:[[-15493,11306]]}},{type:"Feature",id:"GNQ",properties:{name:"Equatorial Guinea"},geometry:{type:"Polygon",coordinates:["@@ƿŴ़̀െmPয়௡T˳µ"],encodeOffsets:[[9721,1035]]}},{type:"Feature",id:"GRC",properties:{name:"Greece"},geometry:{type:"MultiPolygon",coordinates:[["@@Ҡ˱ٺ¶شÑqƣҜĶĿʛ௃íTƒਁǎƺΦ"],["@@ʹՁȥĥԟ|ѫĀৱɓ׌ҿяƋҳAѻўƿȁȊԅрЁ̓ǿҴϯжʑ^ӅޥɠʜѕՓĕ͈ݏ֏Yۍμ̿ڦƧ֒͝ϮљӐÉʆϸТ¼˚˘Ũjɚռö͌ȀҖgƒƦdž„ت{ڨɲע̉ކĀVмЦɝ"]],encodeOffsets:[[[24269,36562]],[[27243,42560]]]}},{type:"Feature",id:"GRL",properties:{name:"Greenland"},geometry:{type:"Polygon",coordinates:["@@ᬜԆ᱒›ੴ̴ᲈĄ䀦Ŀ㉊ڗ༅͕ộ™⭏ćшƫᲐĠᡚ́࿈ʴۦ̝इӧᒞ̺✘͚ᠼNjҾΫ⃝ױӃȕ᧑ơወ¡ছؕگկ€ध৚շಽ“൧ˇ༂ѽȢ܋࣍ýઞܡህÑঈ΁˟̑இŽ୥E੆֩\\Ϗပΐћɣଌȿ઼ԣ͈ڱກlj٫͖ਣӘ˼֭উѵᕖ•୆¯ᖯܵᗿڏឧ́ओIࢅ͓ୟࢱᅵכׅ“૧ȷ஽ȝܛԱ[כыտോڧͺٿϗ۝љࠍஅ½఍ۈဿLࠁҢ֕ࠐฝਲэոŗݮ୓ޢ̢ئ֗̒ࠪচొ̺ͨΘǬڀॡ̕қůݯţਏ˜Éְ͢҂ެ\\႔ɟ෿Քݩ˾࠷ş۫ȼम޴ԝ̺ڗ׈ৡࢼ੯͚XΚᖷӮᄻÖᖟ‘Ꮕ×ইˌวՈᕂ˄ၚ¬≹ɖ቉΄Ś͜ẊИᶎИ̪͘ᗗ̠ܺͰ᯲ז௢ĚΓϘጲɜᣚƂᣖRࣺʽᕺҨፘ̽୺áპ˙ፅҐŘή"],encodeOffsets:[[-47886,84612]]}},{type:"Feature",id:"GTM",properties:{name:"Guatemala"},geometry:{type:"Polygon",coordinates:["@@ћƦԻfϩǖҍΌrʖĮȠšƾКۆ઄Ft˸Ƌ¾ġǺ̵Ț̹ˬϜDBӂ޸BަUOڗßॅʤ@˚ƱòŰʘŃϥ͍ЉɻÏljâǑǧɇȟ½¬ıƿġ˽Ƀ}ŭ"],encodeOffsets:[[-92257,14065]]}},{type:"Feature",id:"GUF",properties:{name:"French Guiana"},geometry:{type:"Polygon",coordinates:["@@͉͑ГÑŗʀȉ–ʹɩνǦɈΪòϤƢή͛ӸáֺѪܠ˸ğؤȥࢸۿƔ·ӻޑʳأ"],encodeOffsets:[[-53817,2565]]}},{type:"Feature",id:"GUY",properties:{name:"Guyana"},geometry:{type:"Polygon",coordinates:["@@ր̯Դյzџ̈́o҈Чͪ̇Ƈݱԛɕ°ȣƹџϊ؏ːAŎӃԢܳȱ‰ҫî˙ɡϟƥ˅—ġǑЭ¦ԫЀÓϴɋьƆܐɸ̐ȕϸ˿ŶŊτțȘѩ™ْ֩ɬɲiϲԬƊȾƾ˽̸ô̬ږӲ"],encodeOffsets:[[-61192,8568]]}},{type:"Feature",id:"HND",properties:{name:"Honduras"},geometry:{type:"Polygon",coordinates:["@@ơˀʭòÐʹŗĞǣÒσij‹ŔʩƈǷǚʛìǨɈáǒÐNJЊɼϦ͎ĔȂƨʊ\\þ垦ϸùϲv˒ĢİĦˎ©ȪÉɘnǖòϨśƄkʲƿʐį̏Źɜɳ˽jśŕ̇ŋɃAȅŃǙœƛźĕ{ŇȩăRaǥ̉ɳƹıđĽʛǞǹɣǫPȟqlЭūQĿȓʽ“"],encodeOffsets:[[-89412,13297]]}},{type:"Feature",id:"HRV",properties:{name:"Croatia"},geometry:{type:"Polygon",coordinates:["@@Ȳ͗ˊʇ͓̓ϝȆׇ[ܟƔϽmǻǧ̝ȖǫΑЪϽǼʹϮ̽͌ȃ͆Ηݔ͇ġƛ߃̶ӣ̢ޑʠ۹ؤǞØϥΞe˲եƄʱγʝˮn̆Šbג…Ƹƚ˸ƍͤgGɼ̈ĒĈͺڞɠˊĻؼέۜlj̼Ų"],encodeOffsets:[[19282,47011]]}},{type:"Feature",id:"HTI",properties:{name:"Haiti"},geometry:{type:"Polygon",coordinates:["@@Ԣ™ܰƁôқÝ͑ȱƙɎʥiɫ֏ƜЅÍԡÔϽƿ҉ʾö˔ޜśيã̢ȈϧθP͎ՋžȌɶ"],encodeOffsets:[[-74946,20394]]}},{type:"Feature",id:"HUN",properties:{name:"Hungary"},geometry:{type:"Polygon",coordinates:["@@˨ըǍǼӂDÜ΄ђɋ̲ğ۸ļäǚͮ~ЦžĜÃЂŀȠȢˠ¼࣒ʭǴĒҲɭÎɣԡǭЉ֫ԕ֭کǁԽš١ə̻űۛNJػήˉļǍ˴ƗV"],encodeOffsets:[[16592,47977]]}},{type:"Feature",id:"IDN",properties:{name:"Indonesia"},geometry:{type:"MultiPolygon",coordinates:[["@@Λe૝ך޴ǒѴʭ̎ʭ»ɩ"],["@@ܙȁijĶø˸ΰԢࠨͬĐǓfʫշع"],["@@̢ɣԲèȼΥॿǛ׉őҍP̀ӚҤPɤ̖"],["@@ūұ౅ʅૣľE̬ښǪՂʥ֔Üݬ̮"],["@@ྔċȂΌ༘З̪կీƵਐӿय़͋ऍ͸ݻwࢍØ޻ưঅ͎؝ČΓŁ໕ΌƣΰޑØּߤ৶·ڴ͡ΒÛŘ̗"],["@@ѝֱćنƬ̠Ǭ˴ȒʗCЏ"],["@@̿˥ׅƸǏΰࡘ¢Ⱦˣ"],["@@̨ٝۿΌۯìӃÅׇˆȦҦਠ”ऎʕ"],["@@ɼയ࢈ԉ۰ࢼ८ԔݜBܘ̉خ̛ࣘLJbᩑbᩑݟې࡟ǜȷʇ੡}ΦۂՈɺɕࣲЕ۸࿃܆ۗêృަʛУ͑óȏ̮GκٛЮ̢ࣞ״gëɠ௵DͩԄݥƺΡдଈȰњ˜ഘ·Ƃ̹"],["@@ڭ࠭كlj߱ǐඓ¥ܽŧţٍݪݛҒϠ༪˸çϯλŪιӯ͙݉ߒ੿Ƶ˿ݲॻQտ҅ʙ̐͡Мی࠙͗ȻɶŊ͖؅ӲØࠌ֕ʭîও”றՓũίʚʌޜŽ߸ΛPʻֺΎվŤښф౎ǮΎ܎ذپʛ੖śॴ–ࠨ؎Ʀȉ"],["@@©ܽџĈŷԝΌѷɽĵ͹Ւʟ੺ǚڤ˨̨ÔҝӸóĀ΃"],["@@सާহį˫ֵšݿַ߱u࠷͕౻ŭ̚ॕϙͫԤ׳´лːৃ̟̩Оս¯ۗĬŹૺнɺЕܘŝ݀ĮުԂ֐Ɩָ֗ӅըǠ՜ÑӪъЖôߒɽۆǶњୠ͔̈̆क़ॲ@ܰƙӍݷآߓơϭ"],["@@छkۻ۰અۊέԚٍۄзؾٕ୴۪݅ʙܠ̳ڀݵՊѭܘمҺࢗऒóђզ‘ಢNjݔࠓٮ֫ҪΓߔࣙࡢ_ۺֹӠ۳٘ϥͳۉӖ̞̅sƜו̊ҵؠõФՏɁ਱‘ಟ"]],encodeOffsets:[[[123613,-10485]],[[127423,-10383]],[[120730,-8289]],[[125854,-8288]],[[111231,-6940]],[[137959,-6363]],[[130304,-3542]],[[133603,-3168]],[[137363,-1179]],[[128247,1454]],[[131777,1160]],[[120705,1872]],[[108358,-5992]]]}},{type:"Feature",id:"IND",properties:{name:"India"},geometry:{type:"Polygon",coordinates:["@@ࣚটďۅͮїѕ׽ŒɾएࠜՑ୞חՑϟ͛޻ࠀͅߊЭરһସʼnӜёٮāৠȝ۪bĪͪŋՖÞβԠǮìڋlǙކ͉Ոƀ܀Çۈ|ÐԪ΁ˎڴŀވشॸ՘۶ȷ״ΞЀԹ˳Λ࣠űÜ͇̍Ʒèԫ׷Ʋછׅ~ӓҩ۵§ХϏۗځȒࢇȏ˹ĚΣгȥѵ೰ɵEƍ՝ҡѦʸӎϖ¶ϰ܆ӝƜީ]ߝŚóאБ¤ڕζ֭̓؆ѻԿ̻ȅ̩Ԭɣƛԑ̆كžەţֱ̫Zਛǩ´ك҃ӻ௃֡ळ঩كՋ࠷ջCϭлȹݳ̝Ͻ«ʥٙǪધ®ۡΣߙI෗ѣ¡ϣٙʰˣދʃ˱֯͵ʍߑ޸ϳ୴͑ࡒ̍Јѿ߰ȻੂơՀޅ଼Α࿀ʣ੾HৰǍ޾௣ԉףĶ઱৲И̤ʝͤড܊֖֔ᇜCǗܞҽюĩ٨ջϘऒࢢঊÙ࢞ࢢՄ࡞ࠄࡈ_״ܒӠڳд֪݂̇̕Ьβ౤ȱपŰߺ۸"],encodeOffsets:[[79706,36346]]}},{type:"Feature",id:"IRL",properties:{name:"Ireland"},geometry:{type:"Polygon",coordinates:["@@ƒ׷ًݣ๯ӹ஑Ŷڼ࢚ѭࡢତڄٌϼǦ҇ǥ҉Բ\\ٌǥ"],encodeOffsets:[[-6346,55161]]}},{type:"Feature",id:"IRN",properties:{name:"Iran"},geometry:{type:"Polygon",coordinates:["@@݈njװӔ֚{τƾװýघэڤğ।ݓظ‰òۻ΁਷ɱؑκŭΫҡˠڡàՓِƙæեݿݿжѵ͸ԓߦυx݉ДƋêϯ௉ѡ̓উཌྷʪࣷȖेŊΧਐЕƪ٣ƭࡑНਇ˦ࡑ٦߳ʈ֗ߘا૪ҍƋՕ˦̻͝ҭѴS҂ˍ@Ɛ،ѝٔ਍Ң׉ߜȜپц̂ÙӬտʨխ৊ҟڨǐʼʿ६ּʈƄͅъϯ־ő̤~রئ̀Øʞʙ́гԼѱȾ¦ˈإߖǩ׎у஠ƟಾɞĄȞ"],encodeOffsets:[[55216,38092]]}},{type:"Feature",id:"IRQ",properties:{name:"Iraq"},geometry:{type:"Polygon",coordinates:["@@րʧÚӫх́țٽ׊ߛ਎ҡўٓƏ؋ˎ@TҁҮѳӿ¤֟ê؝߭༟äᛍၖఫךৡɪ͹৾ᇶ࢔͆৬āؘҢȺјԾΰž঎Ň̐ɉЖƚծ৉"],encodeOffsets:[[46511,36842]]}},{type:"Feature",id:"ISL",properties:{name:"Iceland"},geometry:{type:"Polygon",coordinates:["@@șիॊֵથٙᝓֹܣƵૉŮᚑˈࠠψᆧЪ๪ǎ—ʘᄋȜ֨նౠŰಸ֭౨Ҝ੒ʃൌ҄ආÑ"],encodeOffsets:[[-14856,68051]]}},{type:"Feature",id:"ISR",properties:{name:"Israel"},geometry:{type:"Polygon",coordinates:["@@ƥ˅̣Ŝǫ֓ɂĥɋř—ɛЄŖp͛нഉց෾ʔˢ˶ɞϼǠيŤɆzVˬCþƦɤ\\`·ŕŵhM"],encodeOffsets:[[36578,33495]]}},{type:"Feature",id:"ITA",properties:{name:"Italy"},geometry:{type:"MultiPolygon",coordinates:[["@@̟ڋŲʹǭѝٝ̈́ёĞ୩ѐŞќজûࡪĠْò"],["@@Ԍ׭ş૕ϣÂ΁˫͇ɞ‘২ȓӒҨ¥рʼ"],["@@ரɏĝЯȬΧڝŪہ̗²зĻʇˠё߀чцۛदڱچLȲȃɽǗݪ̥ؠʩܜѫĔƿƽ̛үϼܳƐΝի؈̷ıѫΗ¹҅ܛΕÝHʲǢҊǼǶ͝ӤʱшΑŀʛδգƴεͶثÆٿϜޑմ֯ӜʿࠪйĮہˤϯŕӝϵΓÕĪθҕńɏٲ̆ʰʙ̀”ʂβǵМ¢Ҽ˶ƢƃА€ǼͺتĿψƚâΆԘšĮdžࠨƤȊ̉"]],encodeOffsets:[[[15893,39149]],[[9432,42200]],[[12674,47890]]]}},{type:"Feature",id:"JAM",properties:{name:"Jamaica"},geometry:{type:"Polygon",coordinates:["@@֢÷ҀȫƔɯןeʭƗҹƊӑ̪ĶȔΜÎȒƒ"],encodeOffsets:[[-79431,18935]]}},{type:"Feature",id:"JOR",properties:{name:"Jordan"},geometry:{type:"Polygon",coordinates:["@@Ʀˆपͫ࿪ࣆͺ৽Džų၅у࠸࠿ˣƛƑ˭ٙřȩ̡εʵधƆƒŨоഊo͜Ůʚ@Ԥ"],encodeOffsets:[[36399,33172]]}},{type:"Feature",id:"JPN",properties:{name:"Japan"},geometry:{type:"MultiPolygon",coordinates:[["@@ņ˽ҿԕΉːљțɝӭշʈRЊҬԆӌīΊΜؠǹ"],["@@́ڡƤсѩף੹Ѓ๏½ணॡ͔֡“غษȃষЃঝe࡞أ֗෗իΝН͜ȶݶՏʒͿ־ߐʶѲՈࡌѢ؞ָာʤ࣎ǣࢠ๺֔Б௾ࡀӌ͜ՈਈƟा΢ՎࣀƸҞୗ}ڻޥࡍbࢁ"],["@@נǵרΤȈहఝɯ݁࠱೓ָқँण]ř࠴д٨࣌²ʖ୐ʜټন࢓٤˯"]],encodeOffsets:[[[137870,34969]],[[144360,38034]],[[147365,45235]]]}},{type:"Feature",id:"KAZ",properties:{name:"Kazakhstan"},geometry:{type:"Polygon",coordinates:["@@ӕƹ્דο׹̹KɱЊ੫‚ǡێХNÚࡆ৓ؘ෷ßডũߣݶۋ͆ಥ׼ƽðᓗӹᶽљ£יچ֧ɼॕǩχ˧±ȲȶΖDž̊অ˺ϛݮҩɆ…˜ࠊāŽؘ܎ƎܼűƲࠎƭԲ࠿£܍ȴঃσ޵ǭяƌĐўՙ֘دw܉֬ӞِʕǢڢऊࡺӣŀؘჄࣴಾtᇢ׉঺ͻࢼΠ೰j੺ѥʔʠ୼—ɂЊഷ׀߮Цƿɮ߮ɔ؅ֺϬ˼Ḯ̈ШȺᑆ̴ݰΒຢǹ˄ࢉ࢚Ȳઆ˹éҝ߮´ᑌߎ̭ˁ੶٭ሠᒑ҄ѰୄӛீɎҪƯКӟטNjΨΥ઎ŒѾԣٕ֓ۥÿ¡ࡅұϝဟˢ؅ຑїȇဗͱݲลֻɓäӏԭŬу̠ఝĖඃx̧ġ஥ΞӉǧŽӹ൩̂փşȉρ"],encodeOffsets:[[72666,43281]]}},{type:"Feature",id:"KEN",properties:{name:"Kenya"},geometry:{type:"Polygon",coordinates:["@@ӾۙיͱȹΕ̿Õšףˑ͹Ǐ֑ͷ˥஻ࡀËӤᵁႌƙĢSࢺʊ;а֌̨ؔσ॰įтЉ׎ԬԈ֬ֆѨƗ@ҽ˺ˡג@੠܋ˈSȠxȄī֖ßʞΔގΚͺ˳ָAܽ॑Xᵣ"],encodeOffsets:[[41977,-878]]}},{type:"Feature",id:"KGZ",properties:{name:"Kyrgyzstan"},geometry:{type:"Polygon",coordinates:["@@ȊςքŠ൪́žӺӊǨ஦Ν̨Ģ඄wఞĕф̟Ԯūşȏ೛ғ̙ͭઁıͅ՛ࢷŒׇǏߣЇŜȟʇȓཟŵਡ˘࣫ÝĂӜࣴƕ̮ʸٖĉ੾؂঻ѸױȽإ͂۶ծʟĊ"],encodeOffsets:[[72666,43281]]}},{type:"Feature",id:"KHM",properties:{name:"Cambodia"},geometry:{type:"Polygon",coordinates:["@@΁Ѭыࢄȣ২ՠۨઘdž߀ťۚ͡Ϟׄݖ̱Ȝ֕Ļ৕ඳ٧τԙࢥÓܫͷ۱Ū"],encodeOffsets:[[105982,10888]]}},{type:"Feature",id:"KOR",properties:{name:"South Korea"},geometry:{type:"Polygon",coordinates:["@@ܨযȺխPॷ̓ҥݽljڥΏݳïĥҚƼـχ࢔ذƚֻܘÂúϒ‡͞Ϝצ¢ΨÈŨȮ"],encodeOffsets:[[131431,39539]]}},{type:"Feature",id:"CS-KM",properties:{name:"Kosovo"},geometry:{type:"Polygon",coordinates:["@@›ǣŃPĘ́ȩĐdzɦƾȌȪÒŜ˨ư²Ţşƾ¿ŌƅƒŸǎƻŢLĥȳijij„×ȉӹŻ"],encodeOffsets:[[21261,43062]]}},{type:"Feature",id:"KWT",properties:{name:"Kuwait"},geometry:{type:"Polygon",coordinates:["@@Ǭχõȓ˔هשuȽАݟĆ؞߮֠é"],encodeOffsets:[[49126,30696]]}},{type:"Feature",id:"LAO",properties:{name:"Laos"},geometry:{type:"Polygon",coordinates:["@@˚Ϝœ܆ڹܸ¿ٕࠦھٍÎǛ̉ӯyʣƨࢯԅoݬȸࢮ֧ž³ԎηʸǴ̲ܐնøȡ҄wŵ०ѦŬӮڏϖޅਚO͚ܹ՝ɗʉ̟৔ԉۦ঳Ռ݋َ׏ɄץƵ࠿ݕ̲ϝ׃ۙ͢"],encodeOffsets:[[107745,14616]]}},{type:"Feature",id:"LBN",properties:{name:"Lebanon"},geometry:{type:"Polygon",coordinates:["@@ɣ[ýƥ˫D̘ۄмעfˆϘ§Ɛͣқ̓ȷҟ"],encodeOffsets:[[36681,34077]]}},{type:"Feature",id:"LBR",properties:{name:"Liberia"},geometry:{type:"Polygon",coordinates:["@@ɗQࡽАޅٖ܏Ң֣ըȪː¬ʔϜҘϺϺǶnɖĨΘԧÇ͵ǐdzʂIǢ͸ʄsŸʓĎНǽύʖɱˊÇΤΙ~ͧăĿÝە"],encodeOffsets:[[-7897,4470]]}},{type:"Feature",id:"LBY",properties:{name:"Libya"},geometry:{type:"Polygon",coordinates:["@@ק̷ҿҤ೧βρՄڑϸϻƷ̗ҶήӹؔͬΘñՈńҠÓϦƨۈ¯϶˕ݐШȜðΠėΒ־͔ʶːЦʌ´٦দ́ΜðۮƓ૞ϓЀݛݮǍஆΙࣆйЦɔЖϮț٠˂Ф؄ЀׂŘ଒ǣ˺ϑ̺Iˌƛ࠴ıȲˣ̣ЕżΫɏԯʦڱ@Ჳ@ᶵ@့ॱGYΙ‧ྐ‧ྒࡓҟ"],encodeOffsets:[[15208,23412]]}},{type:"Feature",id:"LKA",properties:{name:"Sri Lanka"},geometry:{type:"Polygon",coordinates:["@@ų࢓ΙʇܵȓЍڜƫீϠ഼׆ұϺסО࢓"],encodeOffsets:[[83751,7704]]}},{type:"Feature",id:"LSO",properties:{name:"Lesotho"},geometry:{type:"Polygon",coordinates:["@@̆ʩʳУƛ˛ҳſƹˍ̛ċؿ٨҄ՐҖ͢ϼǠξʵ"],encodeOffsets:[[29674,-29650]]}},{type:"Feature",id:"LTU",properties:{name:"Lithuania"},geometry:{type:"Polygon",coordinates:["@@ãɊĚɲχƄࢡƨDZ۸२ʴඬÁࠜĊŞǩ҂Ã߲СĀϓۏˏșӃ࣯̓߻NȫʶљĜ"],encodeOffsets:[[23277,55632]]}},{type:"Feature",id:"LUX",properties:{name:"Luxembourg"},geometry:{type:"Polygon",coordinates:["@@ǘȏ³ρʍiȉòĞҼɖŽ"],encodeOffsets:[[6189,51332]]}},{type:"Feature",id:"LVA",properties:{name:"Latvia"},geometry:{type:"Polygon",coordinates:["@@†نЮՆߊ˼ڜعڪhNJ٤ܐƪςĻܢ̷ۚCКȕîС˒ӷ͕ࣗԛƙ߱ТҁÄŝǪࠛĉණÂ१ʳ"],encodeOffsets:[[21562,57376]]}},{type:"Feature",id:"MAR",properties:{name:"Morocco"},geometry:{type:"Polygon",coordinates:["@@ԒΥߜÎࢊȃκU͂՟ºԝ̄ࢱɜDZƷ͛ષƙϝ̵ӡñ—ثঙ͍ͩсۍɥ࠻ŷഫاRহŷ@@@p҉Ա˓ȑϡ@̥Ŋ۹ě˛ٻʿÕЁ੕ୟ࣡ˣୋ΅ϗĵ̡ቅãaD ϶͒ɮ˞ѪÃ˶̀פҴՖ˲ƊɞӬp҂̤Բ̪֔Ւ࡬f\\ц͔ްĢڎָтɠۮۮȿਸ਼͊ܢŔѶդ֨ࡈϦخΐ֘࢈˄ԪؤI"],encodeOffsets:[[-5318,36614]]}},{type:"Feature",id:"MDA",properties:{name:"Moldova"},geometry:{type:"Polygon",coordinates:["@@ȨŮ֒ĊؤʽΊϞɥÑ˵̪ƏŨΗ̊ɇÏűƾčɝ×ӷ|ĉŜǫãÒƭɱˍƥ˽ɁĝƯϦĘΪςӝԂˉΠʹʠʯĈ"],encodeOffsets:[[27259,49379]]}},{type:"Feature",id:"MDG",properties:{name:"Madagascar"},geometry:{type:"Polygon",coordinates:["@@ɠΥȺ։Ɗঢ়ɒϽĉЗƩʙ˷ӰǁʝLjثõΥɵȗ¿܅ͧওб୅ԯཧ͑ୟϛইہȣܻΡӛɊڙ̜ɳѺÇݘ̑ڠù؂Ʈ؄ϰƢD˪Дِø՚șЈǃՌãޠ̊ҺŔՒмŒҶǤ̶Ʋτ\\ӐӎۖԮʦцŗάΦĵҪ׎fԐ˦ϔ̊ί"],encodeOffsets:[[50733,-12769]]}},{type:"Feature",id:"MEX",properties:{name:"Mexico"},geometry:{type:"Polygon",coordinates:["@@͙݅ƥ؁Õ૷ąЧƤқʺЧǚٳ֎سȞӏ͢бࢾɝΐΙ݄ɾٚĎؼưՊƠՖ΂ȨӬè۸Ƣʖ֬ɚࢶȚݔ‡ԚîȬDZ…ЙҋԁȥԝƸƥűγɁٽɅɎǭcǃY̝ԓƳIJķPŭޥV޷AAӁϛC̺˫̶șĢǹƌ½s˷ઃEЙۅŢƽĭȟqʕ्ࣞџ˘ۇɖҷÓګ́чĉץɜؿDŽ޹ϬؿŠ्ϸ۱ВɃɤҹº࡯ˈΓϦࣗӊсՌȧЦ˪ĈđʈȖɔJ̄˱Ϙùͮ˭ъ݋࠴ࡋڀУԼܝ΄ƷȴŸԲѓȞӹФȽהҍæӣѸϿФ™ˀҍو̓٠^͔؇ͬ˫™ӑɴƇͿƔЕĆف̀΋خׁƒȡŸÓŎ˽Ƭ\\ǜթʮɇǴ̕Նё˨ޯʠρɸϿ²ѷКƒͶϡ̨ϑqƭΝ̱ƫJɛԞջӎ؃РїɈ„ؚŵҖЏʺֿϒŏŇɃɖԭȰӷӦÖÚΊ³̸̼ŽϜ٩׶ӱɶ̱Հ̷վϳڦͿݲॖÞ੪ĞÿǑ౔СኀףဪPژ@DΌผ@̪̕јˇԀσ˨ѭȾҥѢʩۤʥՊڒۊhפͱфֹ̄ӯӸӏȂחɾЃپʹ׮ȁ͞|"],encodeOffsets:[[-99471,26491]]}},{type:"Feature",id:"MKD",properties:{name:"Macedonia"},geometry:{type:"Polygon",coordinates:["@@ńOœǤӺżȊ˺¶ϴbтˏÒ։DžƒƑƥҕh͋ǿջõΑȴšήń˸"],encodeOffsets:[[21085,42860]]}},{type:"Feature",id:"MLI",properties:{name:"Mali"},geometry:{type:"Polygon",coordinates:["@@˰ƶƘӶˊpזɻӄǖ͖ÇŴȈ⁚^ȈךƣļЛ⋈Л⋆౾dᬼᆳᬼᆳȨϿԺʉ϶ƋV՗ठĈFካҟ֗íԭݛƃ଩ï̳̗ա՟IȿLjҥš޻ΑDžʿٳϕŗɍΙǡНŔɱȳūֻڙۡp˳ɭΣÆӥ΋ůȝŁŽάʍĥơhƷʕ٭PɷŴʼnùʱʎ¬ʢĿİdzĉ˚Ǥɐ΅ΚijɴȇȂǙvȫş˕őɱǹΫäɷɈƓ„ɕőƅAµ̮žʾí̽͘ʀǓӔԺ"],encodeOffsets:[[-12462,14968]]}},{type:"Feature",id:"MMR",properties:{name:"Myanmar"},geometry:{type:"Polygon",coordinates:["@@ӫηץ›ϥࣥΟƳО݅ՔؗΈօ̭ܵ̃ƹȪу֖ڙĪҷ_ϵ͠ދң޵Сࡷăذʴ٠˯ӼæࣸͽѤ˛৔Ʊਗ਼εۢօуॕ׳ҽöԳȠ̂ਪǫ޾څॺļ̢ӭņ׭ۆÅڰ̊ŵj׾дȦęΤȐ˺Ž࢈ڂȑϐۘ¨ЦҪ۶}Ӕજ׆׸ƱçԬ̎ƸÛ͈ӮÚˮӵξȧ|ٟ“ۙߓۭijঽࢲƔȨޛՐǍʓۣز́ζƷ؞ʔ~΍܏յdẕӓȗ"],encodeOffsets:[[101933,20672]]}},{type:"Feature",id:"MNE",properties:{name:"Montenegro"},geometry:{type:"Polygon",coordinates:["@@ÁǀηЯÊˋǫÞɽ˞εǖĢƜŬҦ˚ȜƾüɠƟŬśˠě͌ǧçïƽȋɧó"],encodeOffsets:[[20277,43521]]}},{type:"Feature",id:"MNG",properties:{name:"Mongolia"},geometry:{type:"Polygon",coordinates:["@@ࢮƢ྄ܤ౬Єܴʳ࢚]֘Ͻ࠼‰ௐɁࠈגͿӶࢊࢊश΍ނįনɍLjؿஜΛߐƺਫ਼ŌࡆōࠖЗԚѕެT੒Ƌޜȼૈƒ௸פԌĝѰ˭ৌêХهק࠽ɐ΅ӈńࠤŽ٦̴ڬˏހוğ̗ڏĦ௟ŏןʅ؝։౱͙࠷ѽࡹǞҿúѳէˎ͓ƌˣי˯׽҇গ̑ఽ‹ഫ̇এҋϋʾ৭AఓԜࠥŰૣśჃȊऑmӱԀϣޠԱĢ৩ԼଅŞুƞ̡θ͖চׅڲன̀۷Ѿəז"],encodeOffsets:[[89858,50481]]}},{type:"Feature",id:"MOZ",properties:{name:"Mozambique"},geometry:{type:"Polygon",coordinates:["@@لæ৞ʁɖńגt̚ʦԌaऀ͜ڞӤƊϕ“࠷ľ݅ಿƨЫʣ׷͙׍՗Եޏ͉ृСॉ͓ࣕƵוׯ΋ȗí׳ЌُǔӱZʣƪ¦{ࠗƋϷȤƝűΓΗ̗ۗ˳য়ҕρ̳ðΟɊÉíѵّRïϊůϖí̠ƬपɓװГஂࢬ॔ɜ؆ŶúĨӶƉʞ˜غǐ׌E੠ѥ˒ЏÔǹȼϳǰ۫gÅ̼āװᢈۘӚЕɴüͨɅ¸͵ǯϷØסոԱʲ׌ζǰíઊΙ؈̣˖̅]ɽદɾٔ"],encodeOffsets:[[35390,-11796]]}},{type:"Feature",id:"MRT",properties:{name:"Mauritania"},geometry:{type:"Polygon",coordinates:["@@և־ԗؤ֍ɞГʚҵUЧǽйð˽ˏïҐɺаŀߊģࠨĵкČмɑЎѵδǾˬᾔMǃ௎ȴќ߀øᒸ᪂©F౞Ṗ᎟౽cМ⋅М⋇ƤĻȇי⁙]ųȇ͕ÈӃǕוɼˉoƗӵ˯Ƶ"],encodeOffsets:[[-12462,14968]]}},{type:"Feature",id:"MWI",properties:{name:"Malawi"},geometry:{type:"Polygon",coordinates:["@@ɽٓɾથ̆^̤˕Κ؇îઉεǯʱ׋շԲ×עǰϸ·ͶͧɆɳûәЖѵɔʮޮ˄̈LJۢǚڼƞɪɉ܌Ѕϐ࠘ƽǜɵ˶Ϲɾଡ"],encodeOffsets:[[35390,-11796]]}},{type:"Feature",id:"MYS",properties:{name:"Malaysia"},geometry:{type:"MultiPolygon",coordinates:[["@@àћֈĶ˞ΈȘýӸԓΜ֛¶֣ęϡĆ˿Öӻ̒ɵͤݑe˳׫Éߑخ঵ښįђӟ֚ś̡۠ҜĠؔȃΤƤƮۈρ"],["@@أ˹ܯƚॱ@̅ॗ͓̇љୟۅǵߑɾЕóөщ՛Òէǟַӆƕ֘؜˽ٮǀǜ܆άǂ৖Ǻ׾ڔЬՐϦѥǮ˺В¸՜œа٪אшڀͼHќыžιֆɻ۬ʧÑ֝͡¥ƮЧ"]],encodeOffsets:[[[103502,6354]],[[121466,4586]]]}},{type:"Feature",id:"NAM",properties:{name:"Namibia"},geometry:{type:"Polygon",coordinates:["@@رٌؖ͡ȃࠊȷ،˯ಒm৒ŅҞ͛Όѡۜѳ৘ǽՆۃࠐ»٢КdžԊƞհ}ԄϝŶÐ₮˜׌Е᎞ş໴΂یȒհµͨȍPéӁȍʭC՛͍ͣΎಕ̍سƒ{Ჽࠣ‡BយA᷋ݣѕҋÕՇDŽϗÔƗάͩɰГг"],encodeOffsets:[[16738,-29262]]}},{type:"Feature",id:"NCL",properties:{name:"New Caledonia"},geometry:{type:"Polygon",coordinates:["@@ېԵѨϭ͉ȫҥɪ׹ϚէѼ։פś˶β[Һ˹φ˷ˎɻ"],encodeOffsets:[[169759,-21585]]}},{type:"Feature",id:"NER",properties:{name:"Niger"},geometry:{type:"Polygon",coordinates:["@@nּॹȐОҿպœϤâТբ̴̘ପðݜƄîԮҠ֘Eኬஈϒᝪ࿸᮪ཾ೨αӀңר̸ȸಯ̾ɓ`ˋΔ˽ǻί͕ၻ«ધੳߋγૉΔ̵CեբmčЃʁµˋƻm֩ंȟ’ځҷٱʔҍ¸ʏşӯ~ӷΧѓq৯ѢЉȵѓb̿͆ࡅ̼ࣗıɕǻşӗʋ͹ÍݣٗӚ̟E˭ʗ"],encodeOffsets:[[2207,12227]]}},{type:"Feature",id:"NGA",properties:{name:"Nigeria"},geometry:{type:"Polygon",coordinates:["@@ࢍ̡͉¬͓ȉڥl҇Ղˡ؊שֆكYݍB¶തs՘ǂՊʶʴТԴėɨǔ͸ȍӾ˪ÎݤʌͺŠӘɖǼࣘIJࡆ̻̀ͅєaЊȶৰѡєrӸΨӰ}ʐŠҎ·ٲʓڂҸȠ‘֪ँƼnͬͯğƱ«˧۽ٱɛՙšѧDZȉǝי҅ΉŽыȋ͹ÿΓֽ˱ҽΊ͇aԃӭʑQЍ߷ɍש"],encodeOffsets:[[8705,4887]]}},{type:"Feature",id:"NIC",properties:{name:"Nicaragua"},geometry:{type:"Polygon",coordinates:["@@̃ˆϽͺȁ˲Ο˄сϜĤžƒŵÚÒʾ”ŀȔŬRkЮȠrǬOǺɤʜǝĒľƺIJ̊ɴbǦĄQňȪĖ|ƜŹǚ›ȆńɄB̈ŌŜŖ˾iïă§ȉĐ̫ȗ˹ěͷυ®ɏtϙŹĉýΫÌɛǣɋ ɩźƏȩDZʛÈƓǦˉêȕʼnօɞųŇ"],encodeOffsets:[[-87769,11355]]}},{type:"Feature",id:"NLD",properties:{name:"Netherlands"},geometry:{type:"Polygon",coordinates:["@@ۦyǀ˳Ƚޓɇ́ԍ@ƘࢡҥȞՏπީǩ؛âѠɲ݀ఆଲΘ"],encodeOffsets:[[6220,54795]]}},{type:"Feature",id:"NOR",properties:{name:"Norway"},geometry:{type:"MultiPolygon",coordinates:[["@@᥆ؙઍɣऄՅෛ͵ڵû΢לઃͰಫ˵Ы؝ߟωࣗȮ઱¥णѼԉɝԷ“ūփནƊɝҵ߭Hևױ࠿झಫ஁̨˹̇ͫ࠯bձ޿¾૟՞э˥ধֻۧυӛ֝Ԫဋঁ૫ȟ୏є̛ࣚˇ኶ޞզᕠ۶ဌࢂ໤୦፺ྴඦلᘼ੊ᇎπ൪­౮ۢ໖›ພǘ"],["@@ም΅๝Ȝ׆ɐԕˎეǚͮ̿ொȍ"],["@@᪖صᑟͥұأ݅ǁЍۡৣᅵԢނ̘ఽʐ࿕܂ٷڄᘎ̜Ң̋஦\\͊˼௾ˆ੖̋"],["@@࿮̏ఝҍ᝱ı៙ƖƫɴஹdँϬᣴɼ௞ȫࡘʤᑺȽ"]],encodeOffsets:[[[28842,72894]],[[25318,79723]],[[18690,81615]],[[26059,82338]]]}},{type:"Feature",id:"NPL",properties:{name:"Nepal"},geometry:{type:"Polygon",coordinates:["@@ÝαŌՕĩͩ۩aয়Ȟ٭ĂӛђଷŊયҼ߉Ю߿͆͜޼ՒϠΒȪڪʳࡔշҾť˰ЕٶǓۀσौȕঔć"],encodeOffsets:[[90236,28546]]}},{type:"Feature",id:"NZL",properties:{name:"New Zealand"},geometry:{type:"MultiPolygon",coordinates:[["@@Ȓ΋װ;ʐΡBΝ̹ϳչإїͷ̴З٭Yܗ̓ɣջӋࡗڇϓнʇޝlխˢࣱÐƗ̰Ҍذ੐ࠦժǀ׾͌ܜѰԎѦώظ͈ɆŰҶלϴȆΧ"],["@@،ࢫlָϜɯŲًڰ˛֨ãӒ͎юĭȯݗʯӫٛjɡʭþαūƻͅҏзֹ٭ͯƟɘΕŨӞ۔˟ҨࣛͲz̦؈̌ƚ٨Ÿլͻ֜vƪБΎڋݔΗת̸àҚұٺɑʂݡ"]],encodeOffsets:[[[177173,-41901]],[[178803,-37024]]]}},{type:"Feature",id:"OMN",properties:{name:"Oman"},geometry:{type:"MultiPolygon",coordinates:[["@@ֹ̻ϟªǩȧƉэļ֗ÿĻϯFԽ̻ćХȓǯԹP͡ɃJͻПɷҩĂ֗˳ϱ³˝טٿ൴ᠾ࠾֖၂ϩתv͸ʔΐFΆϞǒƩŞèմіHϖֵҸ̧؞ŋӼƳϜӕɨ˧̞ŃCȉ̩ԃƅɽΟˏ"],["@@ʼnƳDž˺ʔ˺ľñā΍"]],encodeOffsets:[[[60274,21621]],[[57745,26518]]]}},{type:"Feature",id:"PAK",properties:{name:"Pakistan"},geometry:{type:"Polygon",coordinates:["@@تϻʞ٥൨ͻ߹۷ऩůౣȲЫα̖݁̈֩ڴгܑӟ`׳ࠃࡇՃ࡝࢝ࢡউÚऑࢡռϗĪ٧ҾэǘܝᇛD֓֕؛Ɇʣ؀٭٘໻ǁിeஃŝ̈́ঊொѢéϰГƌw݊ߥφͷԔеѶඨѕࡀŲԈŅǞȂגóદĈ܎ҶӈشCĠɼٞŌ̴ý͢ʀ±ԌΦԖ՘Ɇͥ֊ߜɴ̢•͒мΜĩмȣΤӬμࣘǮ८ĮѐƺӨĦ"],encodeOffsets:[[76962,38025]]}},{type:"Feature",id:"PAN",properties:{name:"Panama"},geometry:{type:"Polygon",coordinates:["@@˫ʎǵҒȺɢɅÎƿˤлɸοÁǝ̇ͻɁǽ‡ĉǩВҗɯŅŧŭϷ©ơԈŋƛˡ¸ǝ͸·ÈɓİέCǻĩŶªǖìǠƲŲIJǩŲK͸͘ö̠̝iDZͲ›ĀæɴȵЮÔΨɄԜǞ˺ʤҬ·‹ĉҶ…ώơ˜ʧ̈́ɵĹūȜӵǁʟ˓ÒŅС"],encodeOffsets:[[-79750,7398]]}},{type:"Feature",id:"PER",properties:{name:"Peru"},geometry:{type:"Polygon",coordinates:["@@ɥљћɋࡅӘñΈရࡊທࣾ٫԰ΏۜƐʎ܅ાࠣ༄ߍီ΅Ϥ˃ؤٷպױͼ˖ϒПߢʼךڢՎIJΓʇȧx̭ΎâͼĝΚщӆΌDŽ֤ԦܶৠͨࣸࢠʾմŝٔɢĂ֒ЉˎЅϴɏӶࢣضĿҨɞ̤ƣԎð٠Ͻթࡣʤoрҁݳ œųۍlj॥ֱÓϻɉ̇ČғԕʍBΡɛƵΔݳҲԝDZί֐µ͆҃ݐuېӸÇ౧ϢĩӄƠܪടǷ˵£ןg܍͟пƮ̵ȕ˯β۹Ջ࣡"],encodeOffsets:[[-71260,-18001]]}},{type:"Feature",id:"PHL",properties:{name:"Philippines"},geometry:{type:"MultiPolygon",coordinates:[["@@Đ֏ºҽ˹ޑ̫ࡨϽэˎإʉϿ঩Ӧɿ؊ʰЎՑЈˁΑЃثҵƑʖ͢۾ՌʀҜ̈́̔ϝٔɰƎϒרv·ٰڼЋêхÐ̱"],["@@̟ˡˁՍ˃ʝԫ׈ǦɤɂɾĢԸҨ¸Ɖ֣جߺāߡ"],["@@ૣߕЬט؈԰Ԏ׊Ѱ࠲Ʈۅևҧѳֿ"],["@@Ԏʹ՘BgΗϳΣՕʧ‡ϸÒєŽА"],["@@ʀभ٫ɞj˭ȶԯЍȋ•עʧªƁԘӶãY͈ԣٜ߮mɴ̻"],["@@ɟܩέоѓ٘ܚ‰̡̈"],["@@ԮʉʶɖüɇƍΑ˼׻ɛۥӷ˥ƁڳȊڝѾġϊIJਾүăҙ˜ȫēϯٻЮ̵Ѵɍ̯՗ԊރůлȆ¨ΎˀɊʣȘŇ̡бӚűμߨͺˡĔೄ˜ހԘA"]],encodeOffsets:[[[129410,8617]],[[126959,10526]],[[121349,9540]],[[124809,12178]],[[128515,12455]],[[124445,13384]],[[124234,18949]]]}},{type:"Feature",id:"PNG",properties:{name:"Papua New Guinea"},geometry:{type:"MultiPolygon",coordinates:[["@@ɽčε͔ρՔǷ٘ŜĆĜʡʬȏРՑЈ˵ŝɽ"],["@@ѯçƃɽҟȱћȟѽBۏʔӑɺêʺݬũҠàŶЖŦrĆѽӐÜʂ˼Ҹ̚ġӸԌfǜƏgү˯ԡ"],["@@ݤտղࢻӖ„‘ω٬ƛʥǁࣀΝġʏ֋ÏȷɔܟĦࡕŴٷ՚ӉҦѧ݀ભπ܇ʇԡˣńإڇ˿һƖࢅ–aᩒaᩒภ׃༊ӓׄїҴхŸӵඔԱȲѽޛěȄ֕"],["@@ʿɡǁӸȝ͘ϝ˞ӍΪ؇ʚɺȮҒɻ˸ȁΜȫʹΛ͊ˏĶѧ"]],encodeOffsets:[[[159622,-6983]],[[155631,-5609]],[[150725,-7565]],[[156816,-4607]]]}},{type:"Feature",id:"POL",properties:{name:"Poland"},geometry:{type:"Polygon",coordinates:["@@·՜à̂ȹ̧҆̚ɺɤȝђָʘ಼ϴ੒˴࠼ƙÚȱ߸Yਚħ໶^њěȬʵšωɸ͋KͯԋǡʸϳfϏцܻěɽзįރۥɒϗǿ¶ߙ͔؁šЇĒӹǵч̖Ήŕ³¼ϭаر¼ăˀֻĦűɑҗǨÀɴػòЉ˔"],encodeOffsets:[[15378,52334]]}},{type:"Feature",id:"PRI",properties:{name:"Puerto Rico"},geometry:{type:"Polygon",coordinates:["@@јõưǕɋɃمLӫ‡·άŢŬیK"],encodeOffsets:[[-67873,18960]]}},{type:"Feature",id:"PRK",properties:{name:"North Korea"},geometry:{type:"Polygon",coordinates:["@@Şƥ͉ºη˵ʣ˷Ž׽ѣȅƫƧ̓ʝ֓ƏηɥηįġͰƋӈσŧȭΧÇץ¡͝ϛϑˆÁùСdžĵƿʙé‡ǀɑüɥƆɰφȤİõƶɆҒÅƎөĠЇɤۄբऒҌ־׮Ўˁܪ‹ſѺಚβͰҼժӹ"],encodeOffsets:[[133776,43413]]}},{type:"Feature",id:"PRT",properties:{name:"Portugal"},geometry:{type:"Polygon",coordinates:["@@̦Ɉ΄ŬɂЫӺDƞłӪ‡ɼуϱɩYٽƍū‘Їγçʹԋɵտ̄ʡřɫ̵̿ê˥ͷɓѷŠџġŸڂÿԬϓþȩ͈äռͰ̨ÒͼǪԎkΤǙ̠™˲"],encodeOffsets:[[-9251,42886]]}},{type:"Feature",id:"PRY",properties:{name:"Paraguay"},geometry:{type:"Polygon",coordinates:["@@ͦ৖tҌЖ݌าʔޮ]޴їbʵʞҳÇଛࢲLJ΄ǐ֦ɩǀʣþޓİ͓̼›̀ƌ̢ƳAҥŕӻǑӛƍݏށ١ړƇऻŸࡑɮࠢ౨ťψࡽ͢ਅبۉŸ໵ൌ"],encodeOffsets:[[-64189,-22783]]}},{type:"Feature",id:"QAT",properties:{name:"Qatar"},geometry:{type:"Polygon",coordinates:["@@ÇؔɨѲɰĜʬˁdӯǽӳɵÑʫǖ"],encodeOffsets:[[52030,25349]]}},{type:"Feature",id:"ROU",properties:{name:"Romania"},geometry:{type:"Polygon",coordinates:["@@δǶԴġՠGϸȳ˺źبĄɄȠΠ@ʰćʺʟˊΟӞԁ€ρėΩưϥϒƹЂƊϠƟpɏПǹʯĀɻ৥ӳĖ̪ؑফțзɋ௽¬٥ƀ͙ÕʍΊƵƦȚƘȷŀ˃ȋөʔßΌԟȢĥˌҕͤڪǂԖ֮Њ֬ԢǮ"],encodeOffsets:[[23256,49032]]}},{type:"Feature",id:"RUS",properties:{name:"Russia"},geometry:{type:"MultiPolygon",coordinates:[["@@ࡌ๫కˤԫ்ࠌࡳyוُԒսٱƻ۸Ĥࠊħ࣢Țٌš૴ӯࠜôରަϮͭϴϐŠɔ։̆ߵuࠟΎࡑ"],["@@໵]ਙĨȒτ୊˚ࢢƧψƃęɱäɉ"],["@@֦Ƚțؐᗸű࿨޻࠭λ൛ēsࠑͳǩ޽~ٗ̊ૣʖȉθ࡟Ǝॗʼnҗ̎Ǽ̸৓ȥϚЃӉΣ@„Ꮪٛᔺ࠳ïԷ"],["@@ः©ƭˌੲΖ@ַ"],["@@ળ»@ָň–܈E௒ʉïŗࡽȩ"],["@@ౡMႣĤƧ¬ߘͪੀþஞ͏ĸə"],["@@ॿͩഉø༛ͨȪ˖༨ųᑔɗ"],["@@ډرᶽzඃȣမղҎ׀૎ǂᕞ™ᴬѽ"],["@@ӹóᩣŊɟώູɦūҒ࡮Ƕ…Ҟသܒޙĺ፨݆ɩϢሤѺ᪪բ᫠ǀ෴̸࿐Ŋאͩ֟ʻᲗз᢭Џᤙߝఫࠍ೉߱Ǡۥྎۏ"],["@@ɨгސȲឤYቈЧڬ̿ȽѧङʝᕅүفʟਬşఖɃݴDŽєաτɔഊƂ᧪ƑȴϽ↲ů´ٜᄼƥഄLബѷϮ՝ӹΙੌڋ೔Ϳ߸ࢦഖϙ෢ɦྼʵؤʀൖş؅ޮૐζ䢀ձܐӿᔲٛ₎DŽာƑ۪΍Ĺؙਜʇ૴Ǥ๰vཚǑཪĢะݛਪˎڷ՞ϐώᧆɻფºᝂБ୲ν@”MKઇσઝÖݶҁԄەϲɧĮΏɑɝ༧Ǿ᚝مݛĭ౽ן௛ԧ̱ϣய׊ᔗڇϣ̸ߵΫ૱Ř˓ց৙߽Šͻड़ȋő௣ޭ‹Ϋ۱Δα฽ѕ̅ॡభȳʥ࡟ே޳ׂ̳έ௬ҵለИ୘܀ԆªϾರȊຊ੒คࡺຢڢڮஆ৷ëԍۗᒉइۍਖᓧ˷ᑃටۚԧሙɕಝēÔ؊ಯŶ਩ЭᢵƠ᪏ʟᨩ࿛ủጝ೚ŁаՃࠄȅ՞оईÃௌऍ†܍ځ࠽ë্ϛഉ్௓˯ׇଙ঑ଇॻթӹ૩ӱՉYՇФૻؙſ˩ŝƦKѐіxŦ঴ɛܚܞ̒৶Ʃ֢ࠈ˾ऄ͚̮Ѵݲ൷ʛܯͧ౧Dͻ߄হװหˎ̵ࠖ̉Ԫ̿βԯࡐ̲݇షʢ૛uਯƱۛлҤȥXҩұˑݷࢻRσஅՍ৙̈́োéѯˮԋĞ௷ףેƑޛȻੑƌޫSԙіࠕИࡅŎ੝ŋߏƹ஛ΜLJـধɎށİवΎࢉࢉ΀ӵࠇב௏ɂ࠻Š֗Ͼ࢙^ܳʴ౫Ѓྃܣࢭơ͡çѽԤઍőΧΦחnjЙӠҩưிɍୃӜ҃ѯሟᒒੵٮ̮˂ᑋߍ߭³êҞઅ˺࢙ȱ˃ࢊມǺݯΑᑅ̳Чȹḭ̇ϫ˻؆ֹ߭ɓǀɭ߭ХസֿɁЉ୻˜ʓʟ੹Ѧ೯iࢻΟহͼᇡ׊ಽsჃࣳĿؗࡹӤڡउʖǡӝُ܊֫ذx՚֗ďѝѐƋϥӽ߿Ƒ࠳ࢁކߕĉ֣ࣼফԇ͹ƝɇωÌֿԚɿ†ՅȚʳΈ޵ǮԙƁƥƼଥЖఅƌ܃ƞĹıੱ܂य़̈́ܩӴؒƈۤ۰ҹͪఌ΄uȀݯƉ‚ώѠɼ߼ÖƄ˪ȅҪ΀ѰWʚఉ˚ӭUԯЀ١ƃ੩̐lǒ̗θڟ¤éʼɀǞ՝ӈࢋąʭ¦Ƀȑ̽”ȷ՞ȟ˨NJĀڴ‡͞Ȁʍɢ֥ƪ¼Ʋ΁ƴՃվǸɨĉЂࠑȨѱijšȼࢭɂˑӸíТЙȖάˊʝ޶װӞųƤक़ҬࢡЎᅢ੶ޮӠ͂єగּΆնݳش֢ܜ঍ग़ޢي౿֔ŬךڶüොͶࢀ̈൦ԕᘨȧṺो٤ЋÆ֓टѳ൏ɡ⏷ٔ؟Ńൌ؛ÂϵÆ࡫ઌʯڂɓňРԑΰ՘͈᎖Թ۾Ȳ֣؜ዦࠖޢµ޸̋Ӫ׀۫ԄЪԊءԶᚠˑӔҹ੡ĻNҳڌ˽ಜǼȶ՚ჶАᰪܞي£ࠣԙਬĕ׼˼༾xఢΐफ़ԏॖ֌ࢡӢѪˤ២ʫ୒ʿᴾॣ֚ѰࡡѺ{ǴৣĈˢЌ҅ټ}ː༄ݾրކزǒᕮɛǬұߕڽԺˋ˒חȏଵऒԧέ֕࿫஝०ŭ̢ͮऎɎɞжܮЎөӌϼֈࣿêȫҲڢࡈણۆຒ֦șװмnѴүͧ߷࣐Ƶϥ؄ඤͦლ¬༈ӏݛ۪ċࣆศǞ፾™ᆘŌہѮংւॲx࿎иᕠŐ˪ɲᕂþیȋሴҀ໲aɶδߤΨጤΈ෸˗ଥȷበŹ"],["@@ⵙ͕ໞીےĦقÃᒈӋʟͿ"],["@@૽ōݱÛśƏঙƑ࣫ȦӐʾል~࿞ƶ౨XǢɧӘȬߊƐఞǿ͗ŷ"],["@@ᆳĿᚉʎඅ͎٣׾଩ǔᔆָᆎȎ࿌чኬ߻ȹݯ"]],encodeOffsets:[[[147096,51966]],[[23277,55632]],[[-179214,68183]],[[184320,72533]],[[-182982,72595]],[[147051,74970]],[[154350,76887]],[[148569,77377]],[[58917,72418]],[[109538,78822]],[[107598,80187]],[[52364,82481]],[[102339,80775]]]}},{type:"Feature",id:"RWA",properties:{name:"Rwanda"},geometry:{type:"Polygon",coordinates:["@@ͬӃµӵʏŁѿÆʱӍԛàþҠŘތԄʎɺȰďԈʸ"],encodeOffsets:[[31150,-1161]]}},{type:"Feature",id:"ESH",properties:{name:"Western Sahara"},geometry:{type:"Polygon",coordinates:["@@oҊŸ@@ÉeNjEౝ᪁ª‚ᒷ޿÷ȳћDŽ்ᾓNǽ˫˜΢bCቆäĶ̢ΆϘˤୌୠ࣢Ђ੖ˀÖ˜ټۺĜ̦ʼnϢ@˔ȒԲ‚"],encodeOffsets:[[-9005,27772]]}},{type:"Feature",id:"SAU",properties:{name:"Saudi Arabia"},geometry:{type:"Polygon",coordinates:["@@ʼnΪʩʨÝͲѡ̞҃۴ʁۆׇ׀ϑƐ֋ߠīא–ӾӕञϿ͠ґǨˡӖ°ȎɹѦʕȊ͝زԟڴѓ־лIžҦœ̌ļͲनƅζʶȪ̢ٚŚƒˮˤƜ࠷ࡀ၆фdžŴৢɩబיᛎၕ༠ãݠąȾЏתv͠ܥаȓƠִ̏Λ¼΍ċ˩ł˯ʎɽŐ˟ŲȵʬǕɶÒdž͍Žș࡙͐ᡌщǞDzϪש֕၁ᠽ࠽ᝑ͑޷ϙ׻ࢥϹƕɁˬ͏§߻ĎƷČॹmɫùΉɔɝЭĒΟρˋ"],encodeOffsets:[[43807,16741]]}},{type:"Feature",id:"SDN",properties:{name:"Sudan"},geometry:{type:"Polygon",coordinates:["@@śhdмĵ̀џͨĵ؄ĶبϳÌÍȇԍ©Ȭʕðԍңңл؅џđ۹Ӫͅǥđʓџǃ…ǥ࠵@řǦ؃†̡ƝɳîѝӬƟɲ؃ŗɱϵɏݣ˿ǁʳğå ̅ʎÃʼƌΔE΄ӛՀĩάZȰ̱ʜUӦǭ͖̍µĎ̰ɒΖħΐˢʴǫȞɞ԰ϨئܦÏ¥ ZΚॲH@း@Ὂ@ῼ@˔ࠗȁƳŪࡻ্̰͌ȷҠ̳ыӑأƏ˅ʳĉ֑α௿ĚͳƅܟͿࠟԓзέٛč΃Љɽʝ࢟Dij"],encodeOffsets:[[34779,9692]]}},{type:"Feature",id:"SDS",properties:{name:"South Sudan"},geometry:{type:"Polygon",coordinates:["@@Xٽűʯѿq˷ӏԨÑюХƨͳϦșӼࣳ֫օԫԇԫϭסFگȟՕȊ΋ɭ݉֐ȥάҵDZϱÆɣƕϗĸԗۚƉˊعͪɅԌΕζ֟ѬS˘ҡͼ֯͠ʴĠ̀ǂɐݤɲ϶؄ŘƠɱўӫɴí̢ƞ؄…Śǥ࠶@†ǦѠDŽĒʔ͆ǦۺөѠĒм؆ҤҤïԎȫʖԎªÎȈϴËĵاĶ؃ѠͧĶ˿cлŜg"],encodeOffsets:[[34779,9692]]}},{type:"Feature",id:"SEN",properties:{name:"Senegal"},geometry:{type:"Polygon",coordinates:["@@΍ٺн̚φDŽРמȦќ˾ːкïШǾҶVДʙ֎ɝԘأֈֽžԹǔӓ̾ɿî͗ʽŧ³қâÙģȃk׿ȲЛV༇–ɥħ˥‚ѻƋƏ٢ވkȬŞƮR̸ȘήǯκcζȌǝʐˡƙʻJͧȸˉ_ȍȥࣵy"],encodeOffsets:[[-17114,13922]]}},{type:"Feature",id:"SLB",properties:{name:"Solomon Islands"},geometry:{type:"MultiPolygon",coordinates:[["@@ɾ˿חN͉ԬԈȯǜ‰"],["@@͝mԧĎǫżÀͮֈƁ˜ǭƎə"],["@@ųƹحܰǫԈ˺@̠ڥʹЗ"],["@@–ǛڅΦҟ̠̿˪ŰĐϮȫېϭȢˉ"],["@@Ǘ³οȒ·Ί¨ƖԈΡͰ˛"]],encodeOffsets:[[[166010,-10734]],[[164713,-10109]],[[165561,-9830]],[[163713,-8537]],[[161320,-7524]]]}},{type:"Feature",id:"SLE",properties:{name:"Sierra Leone"},geometry:{type:"Polygon",coordinates:["@@ɧØ؁ͺѩ҈Ƨ̬Ĺت҆τĬɺƞǸɶpȜǂڦCɺ̛ǼˁʓƈɗṶɴ´ϹϹϛҗ«ʓȩˏ"],encodeOffsets:[[-11713,6949]]}},{type:"Feature",id:"SLV",properties:{name:"El Salvador"},geometry:{type:"Polygon",coordinates:["@@ġȡӡ^̡Ą΍ǘұÀʃǶ~Ů˾ɄǀĢ«IJȠ¾ʜëǸǙʪƇŒœτĴǤÑŘĝÏͳ"],encodeOffsets:[[-89900,13706]]}},{type:"Feature",id:"-99",properties:{name:"Somaliland"},geometry:{type:"Polygon",coordinates:["@@ϛԩד۫۹Mᩧা͍̜̳К̳ҨǾ̖̲҈˚ƹǒΏϜΗкGߊɌࣴĴ݌ʼиÆ̚ƶӎˆKaE΋Aࡑ@ѫ"],
    +encodeOffsets:[[50113,9679]]}},{type:"Feature",id:"SOM",properties:{name:"Somalia"},geometry:{type:"Polygon",coordinates:["@@ѼĎЊ˾͈FpɵýӧHѳǯ̣ʁࣥЙयԱ੷ܝ௷ܓवধ଩ࡁڹష࠯޳ٕँৱȗѷȍȣӽۚWᵤܾ॒ɰˆբfݠפબšᛜᡄה۬ϜԪ@ѬBࡒFΌLbːhϰŰ"],encodeOffsets:[[50923,11857]]}},{type:"Feature",id:"SRB",properties:{name:"Republic of Serbia"},geometry:{type:"Polygon",coordinates:["@@Ԡȡà΋Ӫʓ˄ȌȸĿșƗƶƥȷȏø̫Тγ͋ʿƗˋĞijƑšϳa˹µƒØĴĴĦȴšKǍƼƑ ŋƆƽÀšŠƯ±ś˧ȩÑèð͋Ǩ˟ĜūŜɟƠȢšŬЄЛ͔ɀτ̥Ë͔́ˉʈȱ͘٢ɚԾ™ҖͣĦˋ"],encodeOffsets:[[21376,46507]]}},{type:"Feature",id:"SUR",properties:{name:"Suriname"},geometry:{type:"Polygon",coordinates:["@@৔ǙĞưڶÔࣚɥѩܟâֹͤӽƥίóϩɉΛӓDzЇđ͹öčʏƘǗ÷ǡҙèԡܴōӄˏBωؐƺѠ¯ȤԜɖƈݲ"],encodeOffsets:[[-58518,6117]]}},{type:"Feature",id:"SVK",properties:{name:"Slovakia"},geometry:{type:"Polygon",coordinates:["@@´»ΊŖш̕ӺǶЈđ؂Ţߚ͓ɷɓǏ͹dzđ࣑ʮ˟»ȟȡЁĿěÄХŽͭ}ãǙ۷Ļ̱ĠёɌċ̆äńŢȂόa˺ĔxþLj¢ÆȒȖ˜žưʢD"],encodeOffsets:[[19306,50685]]}},{type:"Feature",id:"SVN",properties:{name:"Slovenia"},geometry:{type:"Polygon",coordinates:["@@ۜÝъȐܾtLjƘƘUǎ˳ڝɟć͹̇đHɻͣh˷ƎƷƙב†ȈúȫΨĞа"],encodeOffsets:[[14138,47626]]}},{type:"Feature",id:"SWE",properties:{name:"Sweden"},geometry:{type:"Polygon",coordinates:["@@ࠁוƀԥ೹ڭྱܡؓஃײףߦүޗॅ࢑ȝ͍තӋ޿৳ĆӅڗঃˉߐ۳॔ٓஐφӜּۨ˦ন՝ю½ૠղ߀࠰ä̧ͬ˺ಬஂࡀञֈײ߮GɞҶཔƉŬքԸ”૪Щ಼ֱv಑˴͛ฃʃ"],encodeOffsets:[[22716,67302]]}},{type:"Feature",id:"SWZ",properties:{name:"Swaziland"},geometry:{type:"Polygon",coordinates:["@@ǡύӭěԅҖS̄ɰ̀ĂʔʐÒшƵŰϕðω"],encodeOffsets:[[32842,-27375]]}},{type:"Feature",id:"SYR",properties:{name:"Syria"},geometry:{type:"Polygon",coordinates:["@@࿩ࣅऩͬgNŖŶ_ΈȸҠҜ̈́Əͤϗ¨ÿٞȶΌɤȀɤȀ°Ҹ˞Ǐऎɺ҂ƿۖFॴ̀Ґaक़žїԽҡȹĂؗͅ৫ᇵ࢓"],encodeOffsets:[[39724,34180]]}},{type:"Feature",id:"TCD",properties:{name:"Chad"},geometry:{type:"Polygon",coordinates:["@@ĎЄաnDզΓ̶δ૊ੴߌ¬ન͖ၼǼΰΓ˾_ˌ̽ɔȷರࡔҠ…ྑ…ྏ¦ ܥÐϧإɝԯǬȝˡʳĨΏɑΕč̯̎¶Ǯ͕Vӥ̲ʛYȯՏƛэͽ؉ࣹ߅ϳ߹¾ʁûĊ̏ѫ̋Σ͟੓͏ȽȐƓhƹɍۛÙƀɪ˅ׄşΐλƜӷӪǼІϦċʂÐҸSқކŒ֐É֐ͭՠ"],encodeOffsets:[[14844,13169]]}},{type:"Feature",id:"TGO",properties:{name:"Togo"},geometry:{type:"Polygon",coordinates:["@@ڱdzȇ̎ɡՔãкȆݴɁ̬ăڎD؎ΕѠÖˀ݂kŅѵʲʝ̈̋ŽЭǜǥኝȺׅ"],encodeOffsets:[[1911,6290]]}},{type:"Feature",id:"THA",properties:{name:"Thailand"},geometry:{type:"Polygon",coordinates:["@@ݭϬܗeŬڈ݉Káऋґ௯˙ݏÌ؋ն΀ދưܭҶӓԚĭѤѧ˝·ևĵßќۇςƣƭͧ͒ƝжҁӄПЌƏӳǃҲĠԾʚ߬ТࡸҤ޶͟ތ`϶ĩҸ֕ښȩф̄ƺ̮ܶ·ֆՓؘН݆ΠƴϦࣦצœӬθӔȘθʷ´ԍ֨ȷࢭpݫࢰԆʤƧӰzǜَ̊ÍٖڽÀࠥںܷ›܅˙ϛ޿ŦગDž՟ۧȤ১"],encodeOffsets:[[105047,12480]]}},{type:"Feature",id:"TJK",properties:{name:"Tajikistan"},geometry:{type:"Polygon",coordinates:["@@̭ʷࣳƖāӛ࣬Þਢ˗འŶɈާˠĐԜȓ‡͛ŴӍࡿBׁØԻϕύĉ̉ǯͩˠþ۸ʩ¢ĞʲғȐα̇ė͹Żūԇj˕ϩ˯nj؋ˑʱĺӀࡘǹض؟ȨɔφۮŸЌҬˌբ૲ȜǩϵŤɹΎv"],encodeOffsets:[[72719,41211]]}},{type:"Feature",id:"TKM",properties:{name:"Turkmenistan"},geometry:{type:"Polygon",coordinates:["@@ñۼطŠॣݔڣĠगюׯþσƽ֙|ׯӓ݇NjƻרŪ࢞ٽ˶Ɏֺ֏¸Ȇ۾ߊȵ݈ˎؓԎʉӔڱɋď؛ʿհψ˨ॖǪ֨ɻךڅњ¤ॆ\\Əцܖ̂۾ӦଆѹĜڡ͐ǣࣦžˮƳаࡽ०ׇոЃ࢞Щ૤Ϋwԥʩ€Ѕɤſ̙۽NjǙڥӁʭڏŵǫϟهŏࡩ͈"],encodeOffsets:[[62680,36506]]}},{type:"Feature",id:"TLS",properties:{name:"East Timor"},geometry:{type:"Polygon",coordinates:["@@IJȤܢȌז†ˀŀ͆Ľ̯ɫ࢕ο۳ʋeʬďǔ"],encodeOffsets:[[127968,-9106]]}},{type:"Feature",id:"TTO",properties:{name:"Trinidad and Tobago"},geometry:{type:"Polygon",coordinates:["@@ӚŊǮ‡‘صۭġƯúʒɲiͪ"],encodeOffsets:[[-63160,11019]]}},{type:"Feature",id:"TUN",properties:{name:"Tunisia"},geometry:{type:"Polygon",coordinates:["@@ΩພԭͺQȰۉԄóنԮҶȢۚƃߠǠќࣶͺךĵ}ы܊̲ÒljпЫMϱ̆ȽōܫփхDŽқѤaɄЍ͊ſ³٥Хʋʵˏֽ͓ĘΑïΟЧț"],encodeOffsets:[[9710,31035]]}},{type:"Feature",id:"TUR",properties:{name:"Turkey"},geometry:{type:"MultiPolygon",coordinates:[["@@஺͗ঐżܤõলѬࣆ¢ߴЭƜ̑ăУزȻͨʕֻʇˀ५ǏʻҠڧЕƙ̏Ɋ঍ňίŽॗŽҏbॳ̿ەEҁǀऍɹ˝ǐ¯ҷɣǿɣǿ̱Ϡ͈͂ԟí۱ȖֿәౣĥڹҊࣟ†ȗΑׇij߻҄ࣻeӽ࠶ؗҰЦٸՓВठߨಒ’Μྀٔŏ৞հ঒ʄർlุף"],["@@۫ҏ˃Ϻ\\ǦȦĦʺՂХɞࡦ˄ܤőĴ͓ܼ˓Ƶȵি±Ωʷ"]],encodeOffsets:[[[37800,42328]],[[27845,41668]]]}},{type:"Feature",id:"TZA",properties:{name:"United Republic of Tanzania"},geometry:{type:"Polygon",coordinates:["@@ƚġᵂႋÌӣ஼࠿ϱਙ¸Ӊՠ̩~ɓɳԓ¶ʭÇГ̌Ճΐ̰ࠡǿڝӣࣿ͛ԋb̙ʥבsɕŃঢ়ʂكåɽଢ˵ϺǛɶࠗƾӉʨՕƘͯƘΗɈґ੖ӣҺǗӤČѨƯޞΎ ̨̦͜ѬȺǮS˘ǷȐ·ͨʐł¶Ӷͫӄ̎Ķऄ[ႎà"],encodeOffsets:[[34718,-972]]}},{type:"Feature",id:"UGA",properties:{name:"Uganda"},geometry:{type:"Polygon",coordinates:["@@ः\\̍ĵԇʷȯĐPوȜ͎²ڬǰϸ͎Ѭ͔ɠ˒̘͵Ŗ¼চΌɮՖȉڰȠעEԬϮЊ׍İсτ९̧ؓЯ֋ʉͽTࢹႍß"],encodeOffsets:[[32631,-1052]]}},{type:"Feature",id:"UKR",properties:{name:"Ukraine"},geometry:{type:"Polygon",coordinates:["@@̾“ɄȒʮ¥ࢌĆ՞Ӈȿǝêʻڠ£̘ηkǑ੪̏٢Ƅ԰ϿӮVఊ˙XʙͿѯȆҩƃ˩߻Õџɻύڡã֑˕޽«ܣ̻¸ԹЪȭࡨ¼Ǐ̛ँơଛӟұǠȄЂࣽʘƨLjߪ˪ʑȔಯɆË̼ީĻ̷ҧٱةϟƠЁƉϑƺɂĞƦ˾ɲˎÑƮǬäĊśӸ{ɞØƽĎÐŲ̉ɈŧΘ̩ƐÒ˶ϝɦΉŽأʾ֑ĉȧŭΟ@Ƀȟاă˹ŹϷȴ՟HԳĢγǵÍɤұɮǐͺɸɔȀµɑϘބۦиİĜɾхܼДҢɪٲnࡖßबȫڎi͂ŧ̀Ʀɚȝݸ¢ͮąÄцʶȂܞº"],encodeOffsets:[[32549,53353]]}},{type:"Feature",id:"URY",properties:{name:"Uruguay"},geometry:{type:"Polygon",coordinates:["@@ղĚࡆٯ̺|ࡺ՟ڈҫӠֱχЉɸӇεՇॉұاǚғěޥΰ֫ԟҬÞլǾȈS࠸ɤࡺȾڦ"],encodeOffsets:[[-59008,-30941]]}},{type:"Feature",id:"USA",properties:{name:"United States of America"},geometry:{type:"MultiPolygon",coordinates:[["@@ũƕȽŤ|ɾƓ̨¦ĤƤƎÍǔ¸þÜe͐ƙƬñƌőɊ̍q¯͟ǵˏſ"],["@@˭ÑƟǮīèQÀĈî̘āɘŹëĵ"],["@@ĝ҉|Úĸа•"],["@@­µÓ݈ŃȒ’ɤŚêÃʐ˥"],["@@ıĉ˱ƴªÖŸĈȘijȝ"],["@@Ƭңʼƛז½࡬ƅࠂʹڼŊਖɓ˞Tݨʄ߂̧ࠒ͗ں˩ٶˏĈəȢĉ½ĉɦǎĔ¦ȣǜƅɴ@ŬĹĽƫ࢖ЁǶށǚܳʗӹЁҥȁ̍mēĦť˸Ɓɂ@ঊ҆ࡾƀસмfĐ÷ʰƉǒϜƆࠜHޘAˎ͞ŀàࢶ؄ϜƸ౦N໾BĎȺː¦Φž̖Ϣʲٺٚي˨ə֜ƜώʏAଧռӅƢ˝࣋Пࡷ̃ࢱʝѻӿƛȋSѽˤѽΒsė̬ʦȇãʇ֥ƋЗhةƥλ¥ӥ¥۫ʏఀǂʠǃ୳ʥ՗C|ĺʭɷʚǹ׽ؑ٧×Ɏȁª˟ɀǪҍȼƭ^ͅˏ͛ҿڡûʺֲѕ͎įۦljεǴՑևƀׂ˓˜ߛʊÍĖ̃ŠࡁՕدࢇʝցӱнÁэ̱ţ˭इձӁЍЅӽŻׯƪ׍ˬܗώשLεЊঅ֥—͛ȿԡʣŃЯĺƁς͋ȖѻܢϹٞű͢Ǥ֐ɽҦٻ۲͟źࡑϡƭ¦СϼՃȺोŁݗĤٙÍΏſƲɟaͽǴǓLJō̵Ů́ǃ؍€طѺܻĿ؏ȚԹÏۻȝއح࠳γҝБȕϗUׅ¨ЕDŽ˹͝{׭ȂٽʺɽЄȁטӷӐ̃ӰуֺףͲۉgՉڑۣʦѡʪȽҦ˧Ѯӿτїˈ̩̖ป@C΋ڗ@ဩOቿפ౓ТĀǒ੩ĝॕÝƙіխӚϻĴğʌһ¦̝ɪޭĊɉƌĹҢࠁࡊ۩ୠˆȚχˤٯ۴řۆ҃ҞȀۢ…ܜˍ٢͠ߊĸނĺނƱૼˇܘʓ϶ĸǐ௒˷҂ߋȺɜƇې˷ێᛸ@᠂@ࠜ@ᢢ@៚@ᡀ@ᡄ@᭰@ᮞBაAF͔˴J"],["@@࠽͋ѕɐŽЀބ̘҆Ÿ֐ÉΤʻܫЍ"],["@@ԧŽսƾԛɮࠦƞښùĂ͑"],["@@԰DžԾĒڸɛ࠲őéĝُDZٕǾ͋Ʋݍµȧôº̈́"],["@@؊ϛώnjහ»¹ȕ౾ƛࡨČᄚ˅ྤā٨ʼn૦Ǝౢʧࣲŝ@@MᷱIⷍࠠ{ࠌɵהρݜցࠈҺࡈ˖Ҁѡ֤·ޒϙՂ׽࡮य़ේ՗xՋұЙҥ͂ݍˌʃܺએںҍߎ߯Ä೷rটʌ჉ࢎߩDŽ฽̜୑í࿻ϬৃΨटǯǦ׏ҫÁঁǫ݉˱झdzťӶϚࠚࣀʶɱɂੱҵֵ֑௅ױؚСߏ׿ࣗΗࡁʱȻωಽѡ˅ϿছΫֽÞ޷ɻ࡝˹ۧ˫෹ʉſƘऀϾࠔʸࣆҠਬĨвΈ୘ԊȈǚب̒ƢْђӸॹʫ˓Ơҕ̧շюɧ̝̽м࠿ͳԩBïԄƲ̮ե̚થLJ܁ЀַȬIӈ٩Ϊ͘ӘۆҸ̚њںÖ־ƇڴМ؎ï٘ʼƻϨҹưج͖ԩWࢻǽʯȃڏȄஏĥ௷ȬΛ͸੟Ӧ୾ΘመШ۔@ŕнᄢŽڽԶਕ͌ױр߫ΨଽˈҺѲ๰‚ਗ਼ϦȨФ࡬ЎࠊĪཪώޜÉಐ҄ౚǭ"]],encodeOffsets:[[[-159275,19542]],[[-159825,21140]],[[-160520,21686]],[[-161436,21834]],[[-163169,22510]],[[-97093,50575]],[[-156678,58487]],[[-169553,61348]],[[-175853,65314]],[[-158789,72856]]]}},{type:"Feature",id:"UZB",properties:{name:"Uzbekistan"},geometry:{type:"Polygon",coordinates:["@@xԦૣά࢝ЪշЄ॥׈Яࡾ˭ƴࣥ͏ǤěڢଅѺ۽ӥܕ́Ɛхॅ[ᶾᓘӺƾïದ׻یͅߤݵঢŪ෸à৔ؗÙࡅЦMǢۍ੬ɲЉ̺Lπ׺૎הӖƺʠĉ۵խئ́ײȾ়ѷ੽؁ٕĊ΍uţɺǪ϶૱țˋաЋҫۭ ɓυؠȧǺصҿࡗهǰҳN"],encodeOffsets:[[68116,38260]]}},{type:"Feature",id:"VEN",properties:{name:"Venezuela"},geometry:{type:"Polygon",coordinates:["@@yȣӱĭ˜ϡYѭυӥ͆ڙδÆȌ؈ʻ̒§َਸ਼΀řІ̎ˆ̞ןל_մҵ˧ݮQ࣌ĔӖϕٞĻҼʾXɄਨ¼৖\\܉ʛ˼Їڦ×ِЯƆڧѬn͢ȣڕӱó̫˾̷ȽƽԫƉjϱɫɱّ֪Őʁ̭͍ऱ̽׿Žʏȣڛɀثņƿýϔɑ‘֝ŜՉ܆ï°ǭ׷ʅĭΣΉƏسȝNjʱٷÅҧѼʯ࠺ɟ̧̌Ȅюм…ȊʅʠǛ֒à׼Ȉ˰ƲҎ̓Ơӏĩ؁®ͻęסܢӥńઉăȧ̊ȷê‡ǬĴ̶áͺȃȂŅϮѡÈɸӮĺ׶ʔ̸͘ʌɈрդƖ"],encodeOffsets:[[-73043,12059]]}},{type:"Feature",id:"VNM",properties:{name:"Vietnam"},geometry:{type:"Polygon",coordinates:["@@૭ܗ۫ߍȁ׍٠ࢭ޺ળނԱԞګϪ།ŕ๓۫փ१եۇ۫਷ޱ̧ՠʀ֬دӌܬ͸ࢦÔσԚප٨ļ৖ț֖ƶࡀɃצٍאՋ݌ۥ঴৓Ԋʊ̠՞ɘ͙ܺਙPϕކӭڐҊȴڢIࠈĬܒ҄К̿ސƵƃӛАͿࡎɓ"],encodeOffsets:[[110644,22070]]}},{type:"Feature",id:"VUT",properties:{name:"Vanuatu"},geometry:{type:"MultiPolygon",coordinates:[["@@ˣō˭ςŒɤՆӗ"],["@@ƌڱɥŀǩ­ťɴi٢Дʵ"]],encodeOffsets:[[[171874,-16861]],[[171119,-15292]]]}},{type:"Feature",id:"PSE",properties:{name:"West Bank"},geometry:{type:"Polygon",coordinates:["@@@ԣŭʙЃŕ˜ɜɌŚɁĦǬ̤֔ś"],encodeOffsets:[[36399,33172]]}},{type:"Feature",id:"YEM",properties:{name:"Yemen"},geometry:{type:"Polygon",coordinates:["@@؉ɥNjύo˹࠷Οഇϻݩףυ±ʥºӭΑ՗lj۷©ɃµǿɛəÕŻɇеlˍœ׉¨ɓӬzҠƍʜǑتʋΊǚ¤đϨĸNJ™ξςˌđΠɞЮΊɓɬúॺnƸċ߼č͐¨ɂ˫ϺƖ׼ࢦ޸Ϛᝒ͒ڀ൳˞ח"],encodeOffsets:[[54384,17051]]}},{type:"Feature",id:"ZAF",properties:{name:"South Africa"},geometry:{type:"Polygon",coordinates:["@@ǏŧΣяɻћӇ׻ोࢁףԋًϣ࢛͙ѓ«ŇɷԛŰеDž࣫NJԙĹΏ¬ࡿͩܓƃԱͅϡoΣ̚˳fαϒŸśŏɦLӰ˙֞˔ƴs٤ս޼х܈AF׽તДдͪɯƘΫϘÓՈǃҌÖݤіB᷌ɨűӾߙûԟȈ̏׼ĒрϒЊʨȶДЦȚΠķВɽۂ£՞ȜĐʾƨДҚäʨ͂˪֔ݮغஒؤ΂UОƛ˲Ķ҂ċД஁ɔׯƫऩî̟чƶʏÑāʓɯ̿T̃ԆҕӮĜǢώْQȿؑıۥɑϛֵщ","@@νʶϻǟҕ҃͡Տـ٧̜ČƺˎҴƀƜ˜ʴФ̅ʪ"],encodeOffsets:[[32278,-29959],[29674,-29650]]}},{type:"Feature",id:"ZMB",properties:{name:"Zambia"},geometry:{type:"Polygon",coordinates:["@@ІϏɊ܋ƝɩǙڻLjۡ˃̇ʭޭѶɓᢇۗĂׯٍřӍͯĹ̛̅ßܵۓҭխ˳o˗ĬऱĠƯÚOêͧȎկ¶ۋȑչԾ֣یžᦶშYí̂Ű̀ƧЀĪТėʺ̂q¶ʽϾrՖûˬϡڨŝԤˆȌѯ٠ş̴ΧΈҥ٠Që࣠ɱƳח͞ɧƬļࡈƬসȉψʈ՚ɤĶ଀ƚͦđΘɇͰƗՖƗӊʧ"],encodeOffsets:[[33546,-9452]]}},{type:"Feature",id:"ZWE",properties:{name:"Zimbabwe"},geometry:{type:"Polygon",coordinates:["@@ҁČ˱ĵНƜ΁VՙϞٯźʙՒC̒έĞ्ई˃ӢǛƮ͓ڤलğ˘ī˴pҮծܶ۔̜àĺ̆ӎͰَŚÆ̻۬hϴǯǺȻАÓѦˑF੟Ǐ׋—عƊʝħӵŵùɛ؅ࢫ॓"],encodeOffsets:[[31941,-22785]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/xiang_gang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"8100",properties:{name:"香港",cp:[114.2784,22.3057],childNum:1},geometry:{type:"Polygon",coordinates:["@@™@}ScTʟ@cWuJÁ–]„l¦RLj¼BĄà˜ ŽH@TOHCTDDDHDNAT@PEHDDNJLX@BABALHFF@DKHADBBLDHHFBLEJB@GDBBFBADDB@@KFAFBBJJA@BB@@FFDDADFF@FADDDBJC@AFBD@@DDD@DAA@D@DB@DHHBFJBBFEHDFAN@DGDC@DLCBDDCFDlAFBFCBEF@BC@GDAB@FD@DZJ‚X´HĐMja@Ý`p_PCZ@lLnRGSDMFK|a\\Y}­ƒ§™Mën"],encodeOffsets:[[117078,22678]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/xin_jiang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6528",properties:{name:"巴音郭楞蒙古自治州",cp:[88.1653,39.6002],childNum:9},geometry:{type:"Polygon",coordinates:["@@˜@ÈÒĊanwŎV„™Ȯ¦ͪŃĢ„ÜōȂçČéƐżLɆóĊ‚Ċaʊٱ¯²Um»ˌmÈ»V™ʠţWÑůǓ郙ôƑƒğÆīŎī@Ƿ™wô™˺LÞ¯ƨVǪуšĢ™ȘV°wĢŽôk°¯ƒ»΀@Ȃ»ĸŽǔ@΀ƒ͔ôôLɆó̐ÝɜLɲōͪƒƨóŤK@ī@IU܃ÛmȻţǩÝ˹ÛljťǓǫō@Ɲ²¯VçōKͿŁΗÇţ»ƽ™ɅƑLÓŏÅÅɱV@ÝĊU¯ÑĊĭÞLšÞŎJ±̃XȣˌōlƒUÈ¯ŎKÆƅ°™XÑܱnŗġV¯™óaUƒƧUōŁ„Ñ™±„çɲ¥lĉkğ°ƒk¥˜ƒnğţL¯ÝÝUƽĬ΁lķ°@„ō„XÿݯV»ŹLʉÞɱŤĉó°ÝJ™¦ÝKÝ£ţܙÈĉ@ƒxǩUċƑ@ky͓¹™`U²ĉVġ»ğa¯¥ť@ĉ™‚ó@ŻÛÛJƒw¯nó¯ġWƽʩķÝɛwĉĕݼȭÞķō@ó£Å΀ƑޝôȯÞ¯Ȱ™ÆōèĉXǼó@ݚnºƒĸ„ÞVƜĸȚUʶõˀĵĖɱŎÝĖVࢰӒѢ°˘nϚVˌ™ÈmɼĵŦW¤öʊõʔ@°ÈXVŽ™ènŎȁb¯ǫĉ„±Èğ`ġwōÔğ»mVVށ„Ý¥ó@™ĸķô@ššbX„ĶmV²²`Þ_˜˜ɴbͪȰ„ÞWĸÈŌmބškɲŽÈUÆ»n¼ǬVķĸźô¯°n¦ɄǜÈ"],encodeOffsets:[[86986,44534]]}},{type:"Feature",id:"6532",properties:{name:"和田地区",cp:[81.167,36.9855],childNum:8},geometry:{type:"Polygon",coordinates:["@@ƨ¥šèź٨ΘƑᩄbUࢯÞĕɲōĶĕöʿVʵķșUƛƒÝ„ķm¹Þ™ô@È»ĊWŎçšÅ°ȯȰÝ°óƒÆͿĉ»̽çnƒmɱĵƧºóU™™ƽ@±wóL¯°̻L±Æ¯Vƴķb¯VÇ¥ğ²Ǖbk¥ÇKlÅɱġ@у™óK@™ÇaÝXğţxĉČǫķê¯K@уaŹ„ƑKƒ¼¯Vóaónġw™óÞéU™ġbóĉğÇl¹™aUóğKW„Vůn›ÇŋƑ›ķnʇ»óxĉw™çǰÅw™°ċ„XŽ™„ób±ƒkÈÇJ—ƒm²ţx@ÒݎšŦǺn„ó¼n°ÇbUÒ±¼XĸĠłƽXmwĉºƒzÈÜmnxmx²ĖmҚbnŽƧêUºĊêÆVóĖóUĉ¼ÅĬƑ°ɆƆŻŚlłÞLš¼nĠƒ¼@ޙšÞź@ŎÞ°VšɄɴжϼِ͈Ŏ„"],encodeOffsets:[[81293,39764]]}},{type:"Feature",id:"6522",properties:{name:"哈密地区",cp:[93.7793,42.9236],childNum:3},geometry:{type:"Polygon",coordinates:["@@WnŐÆĶL̦ţºź„lxÅĸƽŚ‚Ʉ—Į˜è@ô²ÞUĔƐńV°¯ĸX¦Ɛm̐bƒ»Ɇa΀šĢ™ƐLˤ™ȘÑnƒІljĸÿn¯ĶaŎ¯ĢĕȘ¯°΂œla¯¥™ǕǔwˤӱlťО̻nŻmɃĕċţUw°WUóƨÅţķ°ýV±óÅǓéʉ¯ƽكéōǖȁÝƏůǕw˹ǫȗǓƧǕVý™é@ĬţLƧôͩ„ɱŎɛK̏ÞɅôóK@²@°ōؚ¼lŦ¯ŰóƜÛlV¼ķ¼ƒ°kȰ™Ű„ĠƒǬ™ŚÝŎmˁ`@ÇÜn„"],encodeOffsets:[[93387,44539]]}},{type:"Feature",id:"6529",properties:{name:"阿克苏地区",cp:[82.9797,41.0229],childNum:10},geometry:{type:"Polygon",coordinates:["@@VƚxˌŎÞŎƒ°n„ȂÒ°²VĊ¯VğƾˍǬƨÞÞKÈÞĊVźôɆÞĢèԐôWȲŤVÞĸʶbl‚¯ôn_VÆĸlmÞnVź_ĸ¼Ȯmǖ„šéĸW°°„ĸJ„kʠ¼Æw°¤ÈƒlxɆzČºĶI²ÆǔUš°ô@Þ¦‚ƒUnUĠ¼ŎÓĢxĠ_²ÇĊƒǬ°ŽȂamōšçUÇW@¯öʓõʉX£ĶťnɻšÇUˋmϙ¯˗ӑѡᩃaΗƒœɜ°xWƴUxɃÒˣ¤Ʌwğ„ʉōóÝŹ±°ȗ@¯„ƃ²¼","@@ō™гwȁ¥Ƨ°ŹÑķV™¼ÞêĊ»‚lĵšm¦ÅW@ĀôÈźaɜxÈbÞÆĶIОŘnIÇŃÛÝĊÑĠƏ"],encodeOffsets:[[80022,41294],[83914,41474]]}},{type:"Feature",id:"6543",properties:{name:"阿勒泰地区",cp:[88.2971,47.0929],childNum:7},geometry:{type:"Polygon",coordinates:["@@ɲˣĊIÈ¥‚ÅU±Ċýkō°ƒĉƽó»ĶƽXóʵʵ™ȯƑÅȁɅ¯ĉ@ÇሗK֛@@ˤV֜ʵрƒǬVĸƑŎ@ƆϯÑóŽķ@ʇ»ķ¦έmlÈĸĊX¼WźÛÞÝѸ‚ĢČþ„ĀĊôάVö¼ĊUƨ°°èŎČUÜÆóôVôô޲êȘlˌç°`n²ǬŽĊaš™ƒÛ°±kğmm»š@°ÝɆÛÅÇVaݍVm͔ğôÝÈb‚„@„ƒ™n¯š™ÜUĢÑĊ@źīżWŤÈǖWôŁÆI²ÓƨL@ŽĊX„mmÑÆ»ȰÑkƒĶō@ý°m—¯"],encodeOffsets:[[92656,48460]]}},{type:"Feature",id:"6531",properties:{name:"喀什地区",cp:[77.168,37.8534],childNum:13},geometry:{type:"Polygon",coordinates:["@@Č@°ƒĠ„ôÓô@Ŏĉ@Ƴĸ@Ť£ĢlVôWVóřXĉŤêÞ@ƐÒĢÑlèÈV@šĠIk°ÆŘ@ÈÈĀ@ǶťÒğ@š„@ÒĉlŻ_@šƧĖÅĬōÆ@bźÞnƒƒlVœÝĬšWƼʇ„ƒÝÅ@ÇÅÈwWóĉ±ğz‚ĬČƨƂÝIĉݯbÇÑĉƒ¯ʈV°xUŰĊ¤ƪ_ôÓɚI@lȚXȮ™ŎlɴȘ՘š„¦ɲÆʈ_ɴŽźŽôÞʊŎĠƒɆxˤ£ɄÑVwXƳ¯w›ɛŹ٧™çƧ¦ōƒُ͇еϻɃɳU™Ý¯@ōÝŹš™@݄»mğ™»ÝKkŁżřɅƅƒ¯ÆīĊ»ôVôĕÅUĉéV¹ƨém™anѱĕnwmwnÇۄyĉ¹ŹlŏkĵèķmōÞġKñÔċKÅèĉzƒŽ„ômxȗÿƿI@þÅČÝKݰ@¼ÈVºš@Å̚ÆUċłn„ÝÆǕČĵJm£ÝJ¦@ĊƒxV°ƏLċ¼ǩ™@™m@ÅĢómÇÆğ¹Çš™ÆšĖÞKšx„wô¦ÆÑÆL²ÆƾŽU„ޱŚÅŻĖ@ĬŤÈñ„@ǔÇx„Èǃ","@@VÇ™ţ°ğUĠ¯mk¯ó¥ķIġÿƏbƒ„ĉa±ÒĸĀlKU„_m»nwšŽ„m@ÈŤ¦ĉbÞ°±Þżł̦°ĢŁVé"],encodeOffsets:[[76624,39196],[81507,40877]]}},{type:"Feature",id:"6542",properties:{name:"塔城地区",cp:[86.6272,45.8514],childNum:7},geometry:{type:"Polygon",coordinates:["@@ήnĸ¥ʈ¼ĸ@ôϰÒ@ƅƒōUķƑǫʶпU֛܃LګK@΋ĸ@Æ£ÞġÅĠċšLV݄»™@Å»Ýnm¯š»nŻĊ@nķŃ@¯ómóÛÝǟ¯aÝóȭ¥ƒšōUmxĉbÇї@›bUº¯X¯ÆƧbVÒĉnǕw¯°ƑŽV„—ŽÇ@kx±Uƒšɱn™ŽÅKƒ„¯ƒĠǠU°ɜL@°ƒxnĬ‚ĀŋŎÇLƒŽğšϱÞέƜkôÅĀǕłƒĸĊŤUṴ̋„¦ȂϰÜɨ°x@°żǠÆƈČVĠ»ČL°ÇšbĊÑ̐óÞlĶwބɆVÞwǬxǪţȼÜLŐĶˢ@","@@óKĵĀV͈ĉłƾNJÆŤƒzXl°ƒÆL²¼źŽôÈĢǔ™¦l„ô°ɜÞʊĠğŃm»ʵƳƑʝȗīV¥¯ĉ°Ñ@ŃÅI™»ĉmğn™ƒašƒċƨbš™Vğ—w›ġ¯@Uōa™ĉÝJğÑÆŎkŎÞĀlꃦ"],encodeOffsets:[[87593,48184],[86884,45760]]}},{type:"Feature",id:"6523",properties:{name:"昌吉回族自治州",cp:[89.6814,44.4507],childNum:7},geometry:{type:"MultiPolygon",coordinates:[["@@መL@ȰĊȂɆƒÆĊ£„ťôWÓɆbĢÅŎƒÆ¦ČÑW¥°ķU¯ƏŃVē±Ý@ó—ç˜ĭɃƾřÆķkwʃŤ¹ġ¥ĵKŏÅXmˍщwǓ¤Ƒ@wóōVķ£ɱšġôÛa±Òȁ„óèţIVŽƽ¼k¤ó¹ġJmx—»ÝUƒ²™@ÅÆƒĸǫŎ„ĊmŎǬ՘"],["@@Þô°bÞǠôÜôn@°ĸń˜Ƕkłƒ¼UޙKğȂÆÝĢŤķ@@ΌڬL܄K@ˣȂ˭lĉńW¥ĵVÆý@ŃÞēUŃȗƅ@ŹƩǕĉ»k»Ç™VğóřX™ŻKƏŽċêȁèÛŎġƒͩń"]],encodeOffsets:[[[90113,46080]],[[87638,44579]]]}},{type:"Feature",id:"6530",properties:{name:"克孜勒苏柯尔克孜自治州",cp:[74.6301,39.5233],childNum:4},geometry:{type:"Polygon",coordinates:["@@ˎǫĠƽ°UUĉ¯±ȁÑmƒ„¯Ýōˋō™wUű»ÅƑ°ƒȘ@²¯ɳʇ`ɱŃ¥՗™ɳȗōkȭšșW@kəJóÔƩ`ĉ£Vů¯wU°ʇĊ„ÈÒ°aĊÞÞJŁċƧīĠyĊ²XôÇxÈÆÆ@„ÞʈƒÅ»™XÞīU›Ƒkm„ŹÝ@aŎÅÆīƨĕ@™ż`Ċk@љƒĠ@ŦÑ@ǵÇÿ@ÇÅŗl¯ğJ@™ÇUkçġÒƏÑÝ@ţéWĊôŚUŽóXUġkţ¤ķ@@ƴōĊó@óÔğƒ¯„ċ@@Қ¤kôˣŰ͓„k»ƒKX¯ċwƧôğɐšÒôIVƙš¯UķǬķšnŽ™¼ôb°ÒȰVVÈÞ°ƒĸó¤V¼°„V°²êƒlĢ҂Uƨ¦ôȰƴĊVV¼ǖIċĊ„ÞɜéšnČW˸Ǹša„řÈw±īšçĸ¤ĊšôšwšŽĸU̦˜éǖĬ„Āô¼lÞkÒ°x°ƆÞx„šÆV²ǔ»„b°wގȘ¥°n„šŎV@°„„ʠè‚ŰȂb"],encodeOffsets:[[80269,42396]]}},{type:"Feature",id:"6521",properties:{name:"吐鲁番地区",cp:[89.6375,42.4127],childNum:3},geometry:{type:"Polygon",coordinates:["@@ôK„ĉǪa²¼lÜô@ʠê°Ĭ™ôȂƒ²ÑÜbĢóɲ™ĸ¤ŎUô@xƒŽǔ£ъxˎmƒÈÛ@‚_nĕÞōšř„ǫƒğšůlȯ„¯ĸ»U»Ükôƛ°ůkť™»Ŏŗ@¯@±͓óͿ„Ǔ@ķȁ¼Ϳ@Ƒ¼¯°ólġ¯xȗUġšƑ™ǩÒƧUݰ˹Kóššx@ǸōĬÅĬƑĠ󃄚ǔêÆ°XÒʟŤUšÇ¼ˋnn¼±V²°ȂUŌݜbʟǔɅô@żǬaҎÈ"],encodeOffsets:[[90248,44371]]}},{type:"Feature",id:"6540",properties:{name:"伊犁哈萨克自治州",cp:[82.5513,43.5498],childNum:10},geometry:{type:"MultiPolygon",coordinates:[["@@ĉ„ÆŘȁ̐mÞ¯ĀX°±¼@ƾ¯ƴ°ŎÝþŋ¦WÜÞbȂĉźUœÇmwVUȂóô@ȰÝ΀nÆJn™ƾ™ʠ™ŌLČóǪ¯œ¥ǔaǖšŌaôÝĢLšx„ƒÆLšɲm„™²VlwÈ@˜Uƒƒ°¯ǖxĊmUÑƨa°Å°WV¹œa›ÇɃÈm¥°¯ŹóĸķǫUm»Å¼ÇVɱ™l݃ŋnķÇÝX¯ƒͩÇɳa——Ý`±_U±ĵnWƒ™a@™ĸóšķ™¯ǓV±ÅĵJċ¹ɅykwDޝ£Åxʟ»ƒlķI¯ƒX¯ķ‚™êǕƒȭnķ»Ź`±„kÞ@Žš„Ýô@Þ°xšŤŎIƨÆUxōš¯²ǔĬǬlUŚ"],["@@ÞĀlꃦ¯ĸŤKޙšƒċƨbš™Vğ—w›ġ¯@ţƽJ"]],encodeOffsets:[[[82722,44337]],[[86817,45456]]]}},{type:"Feature",id:"6527",properties:{name:"博尔塔拉蒙古自治州",cp:[81.8481,44.6979],childNum:3},geometry:{type:"Polygon",coordinates:["@@ήƛϲÝĠ™„ÈKŌōÿmī„w@¯ɛKV¯ğǟ°Ƒ™wġKóÞŋbǕ™Ǔb›¦ǩ°ċôŋKʟšƽšmšÅImŽͿŽȯÞó@ȁôUVnx›ÈŹVȁĊÝabŻ£¯°l„óxȂŤĸkĊšÞyĊêĊmĢxV„ƨÈŽĠX„ŽΘÆĠÔź‚Ɇţ°LXƾŤŤb"],encodeOffsets:[[84555,46311]]}},{type:"Feature",id:"6501",properties:{name:"乌鲁木齐市",cp:[87.9236,43.5883],childNum:4},geometry:{type:"Polygon",coordinates:["@@šŽWŽôŚUĠȚl¼Ċ¼ƪǖ@źȘƆ@ýlܚXVŘޙš¦V¼kĖó҃èkĊȁˮ֜@ǫ՗nōƒĉǬō„ķÆÅš@„±ÞV˜¼nwĢIôºl£ƾ»UŤJôçšó¯īʟéó@kÛ±»ǩbƒĊóLҍÇǫb@ŻɆóʠǓ›aŋÞȁVʉłĉbĉɅô"],encodeOffsets:[[88887,44146]]}},{type:"Feature",id:"6502",properties:{name:"克拉玛依市",cp:[85.2869,45.5054],childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@ɜÞʊĊýVaŃm»ʵƳƑʝȗīV¥¯ĉ°Ñ@ŃÅI™»ĉmğn™ƒaݚţL°ķóKĵĀV͈ĉłƾNJÆŤƒzXl°ƒÆL²¼źŽôÈĢǔ™¦l„ô°"],["@@ƾIŤ@UUwōa™ĉÝJğÑÆŎkŎ"]],encodeOffsets:[[[87424,47245]],[[86817,45456]]]}},{type:"Feature",id:"659002",properties:{name:"阿拉尔市",cp:[81.2769,40.6549],childNum:1},geometry:{type:"Polygon",coordinates:["@@nIÇŃÛÝĊÑĠƏō™гwȁ¥Ƨ°ŹÑķV™¼ÞêĊ»‚lĵšm¦ÅW@ĀôÈźaɜxÈbÞÆĶIОŘ"],encodeOffsets:[[83824,41929]]}},{type:"Feature",id:"659003",properties:{name:"图木舒克市",cp:[79.1345,39.8749],childNum:1},geometry:{type:"Polygon",coordinates:["@@VéVÇ™ţ°ğUĠ¯mk¯ó¥ķIġÿƏbƒ„ĉa±ÒĸĀlKU„_m»nwšŽ„m@ÈŤ¦ĉbÞ°±Þżł̦°ĢŁ"],encodeOffsets:[[81496,40962]]}},{type:"Feature",id:"659004",properties:{name:"五家渠市",cp:[87.5391,44.3024],childNum:1},geometry:{type:"Polygon",coordinates:["@@„çôÑlĕU»™¥ÝšUŗ™WkÛ@þVńÝĔ@ńÅþĶUX¦Æƒ"],encodeOffsets:[[89674,45636]]}},{type:"Feature",id:"659001",properties:{name:"石河子市",cp:[86.0229,44.2914],childNum:1},geometry:{type:"Polygon",coordinates:["@@lŁ—ǵm‚ĉ@mż™¼n°ÞmƼš@"],encodeOffsets:[[88178,45529]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/xi_zang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5424",properties:{name:"那曲地区",cp:[88.1982,33.3215],childNum:10},geometry:{type:"Polygon",coordinates:["@@ƨʔĸbܺÞwnxźbÞ°ô@„ĶŽĸIȼĊJŎÈôUšÝƒ¤ǔLސŎ@ĢŽȘblƒôL„ÇźçȤôLš¥ÞIÞ¯Ķxʊťƨ™ƿÑĉXVķŦ¯ȂKÇǕšÑ¯IUš£¯Óƿ£VĕōÞÿÆwƒƑ„£ǖxÞĕ±ÇÝaUÑȃU¯‚UōÈ݃wWŁĵ™±Ý„óĢÿ°IÞ±mÅ̝mÿ„¥°UnÑŤĢĕĶwǬŻͪwŎ¼źÇĢ„Ġĕˎٰóƨ¼Èa‚m@¥°wǔ„ǖ°ŽƨÇŤœšġƨ„ŎŃôbÈÛŎĊ°@Ġw²ÑÞJƃÆb²ƒ°êĊUނlȲƒV„ÈKĊÒĸĉ›»ÅôťUÅǃk¯@ǂÑklǁÅl™Ģ™VÑóƒ@°@„ÛĸƒV¯ƒÇĊ™n¯Uĕšƽ¯m›¯b™È@Ò°Ĭƒbĵ›¼„‚kxķýÇJk£ÝaUÑÅóĶǟkÓʉnĉƒÝ¼Ƒ„ó»Þmn£m™Č¯@ƒȮÿV¯ĸƒ™k@Ýówƒ»ğ„ġ±ǓLō„ƒšV¼Əèķĉ™è±b@Òţ„UÑóakƒl£™Ó@¯L@™ÇlUóȁš¯aġÈÅĕÝLķ¯Ė¯@WĬ—x‚ÒÈnW°ţôU²ǓÓġ²V°¯ôƒǔÝL—ċšk™š»Ý»Ýš¯ÞƒVƒwۄÝÇōͩÈĉċ»ĉm¯£W¥ţKkóġƏW@¯±kōŽÈ›b@җšÇaƒÆ¯a™„ƒkóŽÛƒÇ¦Ýa¯šÝ™ĉ@ǻۄmƒǓxķƛ¯lVĀÅÞġb™™ÇJUÅV™ĖƑW™zō»ōšƒW™n@è¯ÞóVkwƩnkźÇބҙޯƒƒýğÇUxÆÈnè±bĉÝ»ÈуwšwÞ@m»ÈV@ýÇ°ķ™xƒa„ݯXċ¥ƒÈóW@ôkxlnxVÈóĊkŤġ¼@°¯ŰƑL̻۱ŎÝV—Þ›VƒÇÞŎÇakƞ‚š@èğŎĸżšƾ°ÒšLÞôĠKȰĖźVÈÒĠ„¤™VôšŽU„ÈþťL@ôǬÞlÜÈnÇÒUŚ™@šĊƨW°™°Xƒ‚@ČÇþ„ƴĉÒķ¦@ŽĢôWĀôłUÞĢǬ™ź°¼š@ƒôV°„bUÆnzm¤ƽĸƒÈ"],encodeOffsets:[[88133,36721]]}},{type:"Feature",id:"5425",properties:{name:"阿里地区",cp:[82.3645,32.7667],childNum:7},geometry:{type:"Polygon",coordinates:["@@„Çƾķn£myVŃaU¯„ó™@¯»šŹġǫVÝóŁXÿġó@ĸ¥ĊуƳÈý@ċ„Wš¯X¯ĉƧ‚™š@VřÈÑÇmkÛǫÝ@óŦKÇýVƒ™U󚏃£ğÇÑŹUȯĕğLÝó™K¯Ñ™ƽķŻĠō@灙lƝÈbƍÈ݂„œU˜ÝÞU²ō̼ůƒK°ů@¯UK±—ĊƧbōÇmçÈġƒóšÅób™™źóš¥kól™ç™KôĵUƒÅ„VŃķ¥nÅŏm¯¹Å‚™»@ÑǍóxÝkʇȤU¤ķb@ƒ¯ĊÇx¯ĸĉKm°šĀk¦l„„KnĬȀƾÛ¦WÆÅmNJĉ°ōUţ¤UšŎ°šŎKÞłÆ„Ǔ¦ƒÞ™‚™„ř¯bmUÝl¯Um™ğl¯£șwŎǫaÝnĉ̓k@¯™K™šō»ĉn™aÞ»ťnkml™ĸ¥UŚŻkÑťƒĉV™ôó°LôīĠU„ÿĉǕÅz±Kƒ¤„²ō¤¯Ė¯UÝ¥Vĵ™óÈťÝwķșÑk¤ó„™ƒWýĵĕ™„VĠƒV󍃎Ǔ„ķ°k±VU±ţ¦UǟÝřJVљ¥XUċUŎlÛƆǕÆȗƆ¯wŏÞÅ@™šĉl݁óŽƒÒ™nUôńlxólÝôێ±™™LÛôÝL@‚ġ¯X¯ÇUżóa󤛼XÒġŎóLk¦‚ôżĸĠ™¼™KġƆô¦„ÆƑÔĉ͝ImÒ°¦n°¯Þl˜ÝČn„ƒÒšKĠޚĕkƒlýƾťœšôI‚ĖŤÒnƜm¼¯lnżóÞ@Ůó¦™ôƽĖċŚn°Ý°ôÈUƜƒblÞóŽ@Žǖô°UÈƆ°X„þôŽô‚lѢšŽ²Ėm¦°š@¤™XŽĊblܚzkºƒĖmX„šŎWVšóÞn°lĠxȚa°»żLźƒ„b@ưXĠÝȚxĊĕŤaȚ‚°È@„„@èŤ¦Ü¼œW˜ÞkŽÈ@V°lŤkŎ±²¦ƐUšlj°aÈÑŎb̃ŎbÆ¥ÞIȘlššôVÈU‚™šb„kɲĶn„mnXb̼òƾĖŎ@̐ȂÑôÓĠĖʊšĊÔ"],encodeOffsets:[[88133,36721]]}},{type:"Feature",id:"5423",properties:{name:"日喀则地区",cp:[86.2427,29.5093],childNum:18},geometry:{type:"Polygon",coordinates:["@@ĶĖXþš„ôƒl£šÒĸÇÞxÇŦšôUĶÞ¦°V°ĕŎ£ƒ±„£²LÆyĊǖƒĀğVóĬ¯KóôUš‚ĊŦ„lҙżVÆķ¦kšlnŦmݼšbĊmŎ¼š™šL@°„lĊĵÞmǬbƍȚx°¤Ġknš°VÞkVn°aƒŚš‚š„Ýǔ¥ÅƒÝŁōL¯™ōV™Ť£ŎVĊ¯nljƏXÅÜ¥ǿƽmīƒLkƒl¥™ÿn¯ĊL°ķÈw°ĉ@ƑĸaV£ʈȣÞlôwȎ@Қ¼Æ°ºŐnmÆĸ¦UńƃV„ó͚LšèôkŰlĬ™¦Źôššôa™Æ„ôÇĢnèŎÈƨa˜ĉ²‚VLĢ»lţôĉUǂwkmlw@óôX„ÇȦ°WƒÞ„b‚wĸšÈ¯@þÇUn¼Ý@™x„xÇńÞ¼Ċ޲amçÅÇVwĠȄþ°„šÝƒÑÈÝlŹƪmlxôU°Ý@çšm„XŎ™Ŏ¼šyƒXšĕÆUVÈIššĢaÆÝUÿ°kĸƜǔwn„܃ȼĊ@ޚ°™Þbȥ܄ô„lšƒ°b„ÅÈb˜™@ќa‚ǯUU¯Vġš»ƒ™¯aV¯Ç°Å™mnÑŤçǬVǬ™±ĉ¯¥Vĕ¯Ýk£˜ō—w@±ġÛ°ÇVїƒ@ۘa@ČL™Ƴ™„ƒÇa¯¤ÝIĵ¼U¥ƿōķÅţŻókÝóĕ‚¥¯™U»Æ£X¯ġŃÛkݰV°ó¼¯èWôÞĖ„ȎƒŽkĀƧĀówm¥¯JŹÝJݙōVVŁaݐƑ@ƒ˜ğŭǂ¯_ƒ˜ĵ—›VnxŃón›ƒĵxÇĖĉVÝÈğV™Ò󃯐±Żĉ£ķÆÅL™Ljĉý˜ţۃ¯VƒnV¤ÝÈ@°ÅÞݤ™ŰğŁm¦ÝxóKƒ¥ɱÈUĠôêVôÛ¼ÇWÝçĵaō¦óĖƧlÇĢƑŽnŎDŽV¼¼‚ºÛ@m¦ƽ„ĉmm¯ÝKÛç¯bŏłĬ™bƒ¼ÅLmŽ„xť°ÅU™šÝXkŽÝmĉ¦W„¯K„ÒknÝaV„Ýè¯KɅńÝKnÞ¯¼"],encodeOffsets:[[84117,30927]]}},{type:"Feature",id:"5426",properties:{name:"林芝地区",cp:[95.4602,29.1138],childNum:7},geometry:{type:"Polygon",coordinates:["@@‚VÈłVôÈk@š°K@ŽšÔk¤l„ôbVÒŤƒ@ѲašçĸĊƐçU»„™ŎƒǔK̲Ġƒ„¼ôx@ޚlƨĬ„Ul¯ÈLV‚šÞJ„°Ünʊ„wÜbXê‚VÞ¯°ššanaU°wƼɴÑWѰmÈýÈam¥Þ£Ť@„¥ôblÞĢ„ź¥ôxÈÅmݚ™ƒĕŃV»ĉōŤōnóƒ»ÈīķIUƒĠѰġĸLÞ¯VÒÆ‚@bš¼WôÈ@V¼ôóŤKÈÑU»šwVǫżnWÒÈx™¼‚lŦ£ĊōŤx²¯@ƒÆƒU¯šçÆ@„¤°£„é°k°lšůÈó@¯ŤÇÈĉƒkkÿó¥ÝXķљÜ@ÒóŚÝ¯°ĉówÇ±¦ÅJUÒĉĀķw¯°m˝„±akxÝÅnƒ™»lуK@¯lU™¯UVѯóĊ¯mōğVǓƅƒÞƒWÝÈÛ@ƿô¯ÜġzÅþ¯ólmôʇġĊÅUͿřŏȁˋŁóÇˡōƧƒÇb™w°Ķôk¦šÒƒnUþġҙÔkǔķèó@ƒ²@ŘōńĵyƒzġaݤÅIƒ¤Ƀť¦ğѯ¤ķbóš¯ó±ŽU²°¤ČÜVnÈÆ‚„ŚŎ°ôĢ„þÆzèVĀǎĀǘƒXŹÑ¯¤ówċķk¦šłUÒġzÇ@ƒ™ÆÝx@²Þ@Ƥ„Uô¦Uš°x„U"],encodeOffsets:[[94737,30809]]}},{type:"Feature",id:"5421",properties:{name:"昌都地区",cp:[97.0203,30.7068],childNum:11},geometry:{type:"Polygon",coordinates:["@@™ŽVĖm°ĉš„ÈU°ķ„ƒÜ¯@@ô„UÒġškš‚ÆkÈlށÒ@Èl°È„VÆóŦƂœ¼‚a„ÅĢ™Ʉwnōw@¥Ŏ¦°ŹÞmVš°wnÿƒw„wÝw@¯šmÞŗ°wĠ˜ĸkÞğlĔ²¦°@„ĕĸwVóšal@nĢÇĊn°@¦šŽźUXçǔůĸVš™ÆK„ÈÝĠš²ÅĔô@lšŽÈ_m˜„zǖl„šaU¼ôwV°¯¦‚ĬÈa„l@Čǎ„¼™„nŽ˜I„xô»ɜ@ƨ¥ɆŁ„ŃǪȁkƛƨȍʊȡóĭ›@—ÈÇVƒůރĸƅmēƨť™ÅÈʉVǵ°ġVŭÅɧ°ÿnɛš£mƒķ²ŃóÑUĉ°mÇ»¯@mxUèţ°ȁÝç„ġU¯ÆÇţÈ@°Çô™Ű¯k¯lƒê¯¤ƒ£Å@™èV°Å„@„±°ţwĉŎť¤kš»ÇwXÑŻmUǬ™xV¼ÇÒţLóôU»Ç@X󙻂a@ÿŁUÑݰķK¯ĢğÒV„ĸJÇĬ„¼môţŎĊŎU¼Æ„„Ė™šnÞÇÆówʦġƒkÝóaƒ¦ţ@ݤn¦ÇbÇþ¯nXÒɳÒÅ»¯xVmb™b¯™Ý°UWéÛaƒxʉÛmƒ¯ÝI™‚UÇKk°ƒVƧīķ„U°ȭĀ@„ċ°nšm¤Ýnô¼ƒƒÞ»Ċ„ʊmlÔĵǠÆôVÒÞbl¤ÈIĸþlwƒœ»ĶŽ„a¯ī@њǰanœƾ°"],encodeOffsets:[[97302,31917]]}},{type:"Feature",id:"5422",properties:{name:"山南地区",cp:[92.2083,28.3392],childNum:12},geometry:{type:"Polygon",coordinates:["@@°ÞU˰¦²ĊôÇÜLǖĀɜŽȘŰÞLĸźêÞ@UÜUŤ°ɞ¯Ü„°WŦĀmŎ„¦ĢyVљŁl¥Čĸôx°£źÒ„Wȗ‚ÿȍUÿ‚çÅyƒýóġō¯ƒřŁmÇÛUċޝ£V±²°ôô™ĸa°£ĠÒŦ¥ɄŽ„£ÆJÞ£Ģb„yĶzŎŃ@ŗ„±ô@ĸçlǓšÓĢÑVý„m™Ñl¥ĵó‚¯̻̥™ƛǫÝһÇƧĉyţ¼ҍēVĶĉŎ°ĸmšÞVÝĸ™ÒÛaċ„ó™ŹĖƒèÈÈl¼k¤ÝX@`ސŏ¼Æō¼ÇçĉKUÝÝ£ğ¤@¦ġl¯Òġĉ¯óš™móxÝÞğVšƴċK@—b@ܘ„UÒ¯ÈĢÜ@²˜x—Ŏl¤"],encodeOffsets:[[92363,29672]]}},{type:"Feature",id:"5401",properties:{name:"拉萨市",cp:[91.1865,30.1465],childNum:8},geometry:{type:"Polygon",coordinates:["@@Ŏ²l@°‚XĢƐlôŤLX¦°¤ĊnȼÇĊŎͪÞÈ܃„x„U°Ýޙ޼™¼lšČ™˜ŽÞK„Ǔ°óU¯Ģ±ǔÔV±ŤóX¯ÇmÑ˜wXī°@°ĕĸÞKÆĖĢǰbȂ™ÇفUƒV¯wV™ó¥ƒVÅ£Ý@@±ÞwšÅ‚„È@ƒ¥nōťÿ¯Xۃɝ°ţ¯ÛVVÝ@ŹéķÝKȗůɛǕÿÛKóÈǫšǫUţèmҚn¯Æ°ÈU‚°b„š™¼UĢV°°V"],encodeOffsets:[[92059,30696]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/yun_nan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5308",properties:{name:"普洱市",cp:[100.7446,23.4229],childNum:10},geometry:{type:"Polygon",coordinates:["@@U‚ô²‚a@޲²Ķ¥œV°šĶ²bl¤kVxl‚@œ°‚ڲ@˜„„y„@ô¦¯„@xƒxVxU„VššbVšÜm¼Ŏ„„ĢmºXXWÆ@œšmŽmXU°ÅÒm¼Þx°w„@°‚XêĠ°»nV°U„l@k„@V±ôī@£‚ƒČŃÆ£„KÞý@¥‚k@y„a@—nWV„UVƒšwƒmƒ£Jƒknm@wmkn‚X„˜šX„¥mUUlUnbš¯°ŽnkƒVInlIUw°n™mk@@mlanXlanmšk@wVWUw™_@éĠašnmUaÜ£ƒmXƒ¥¯@@„óUmݯ¯ÞÝlKnxô£š»„»Ġ„J°aV„UÝÿV¥ÛbƒI@wmŽón¯yÛL@ƒWkŎmș`IWa¯K@¯mUnmaXm™bmak„¯ŽƒĢ™ÒÝm¯mV¯KÇb¯KۜWW™X@a™V™knċLUWV™kXóW@k™a@ƒób¯Uƒwmb¥UUlaU¥U£ma횃KXkƒmÝ@kwmѯk±ċbUUVakaġ¦ƒƒkL@`ƒœ™a¯xƒm™Åƒ™LUWƒ@ċnŎUV°LkL@b°°@¤š²ƒ‚šnôôk„l°kè›ÒÈzV¤È„WôôƒnV@„ƒ¦@¼Ux"],encodeOffsets:[[101903,23637]]}},{type:"Feature",id:"5325",properties:{name:"红河哈尼族彝族自治州",cp:[103.0408,23.6041],childNum:13},geometry:{type:"Polygon",coordinates:["@@°°nÞôV@ƒ°@„¦WŽ„nÛ¤Vbmn™ğb@êš`VxUX@xš„ÆÞUnn˜WÞĸ̃šÈ@ŽÇè@zÛÜWšÅêlš²„˜KnV¯ĖĊx@bk@@„°JÆ£Èbl„nnm°nlUkVUUwVm„Kn„‚nVŽÞxVLX¥laX@@xl@VzȎVmšk@b°šÈĸmŽV¦`W„XšƒbUb‚bX¼°x@ašVVkn@lþnXUlVxŤÅ„y‚IUƒka‚IŎĊ@lXx@b„z@‚ô„ƒ¥„_V@l‚n@„ôy@al_l`nmƒÈ»@kƒmXwWK™U¯»™a™Å@wƒmUÝKUa™UUƒ™wWƒ@w²»@kƃV£—mm£VKkÑV@@»nwƒ¥™ƒ@kƙnllIVlnLVakalknJšWmnaUaVÑVVލn¥m@ƒ„¯Uÿl™@™™™VçƒaXaV¯UyVLVkš@nJlšXLlŽkxlbla²Òl@nVJVkšx„KlkUaVķÝÑU@Åm¯@±™Uó°ğńķĠmU™Ñ@ǯ¯Å¼@nml@°¯¯`@w™£@¯Çƒk@ƒ»nmċ¯U»™I™Ž¯LÇĶÛn@bó°™U›šwmޝ„™Umǯa„™ƒ™ƒI@ykIƒVUޝbƒIğŽƒ¼™¼ó¤mwkLÝÞ"],encodeOffsets:[[104243,23429]]}},{type:"Feature",id:"5326",properties:{name:"文山壮族苗族自治州",cp:[104.8865,23.5712],childNum:8},geometry:{type:"Polygon",coordinates:["@@šwô„š@²¯maUmôUÆxš@Xš˜bÞInlVUVw„JVaU„K°¥„xmÞXnlKlnna°@ĊČ„ÆwUmnkl@°ƒƒ£nyn@VV@Vak™ƒ@@kÞ݄bmx°Vnw°klÞInĖÞVlKl™@Xa°„„KlV„U@šJnx‚U@ÈĢbUKlm@ak_‚wšanWUk°ƒl»„k@Wk@lwU_ƒ@UalóU¥ƒÇnƒ™kJWƒ@mVXx±bƒK@nV±a@™Åa™£ÝK²ƒWknamKknǏk¯ƒaV™™V¯ĀƒU™„™Ò¥ƒI@mm¯¯xōW@@`k@ó»ƒUU¯lm£ÅWlĵ„w@mmwÅmWU@y±U—xmwU„¯Uƒ¥Ý¥¯£m@kŽÇVUV°VbklƒL™wUlUIm‚k@±ÑkbkalwkWKk™mI™@UlUKVzU°Wb„bU蚚@škšVƒ°@„n‚m¦ÝŽUUUÒVbmbXn™‚mIkllbUbmKUkkJmkŚ@lš„„¦mx@¼U@lÒULn¤˜nU¤Å„@l±¼@xX„šxV„šVVbÞLVŽ„n@xšÆšb°¼šV"],encodeOffsets:[[106504,25037]]}},{type:"Feature",id:"5303",properties:{name:"曲靖市",cp:[103.9417,25.7025],childNum:9},geometry:{type:"Polygon",coordinates:["@@ȦlKÞĕUV¯Um¯„ÇVUnVVUƒĉn™ĊÇƾLn°°È„JÆw„@lbÞa„¦V„XJ°¯W¯„aÞJVkUša„ƒ@lKnÅmWUk¯a¯»@m±@уkkbWWX_WÓU»_l™kÑm@U»m@l@IWċn¯l@VanV„UV™UVwVx„KȄVmUē‚@„ƒn@VÝÆL„w„VVwnVlmkUVÑǰka@k™ÿÝaÞUl£™›—ċĕX±±ĉƒa@UnVnalónk@wl™UVmkÝJ—aW™™@ÅwóVVnnb±°™@óƒ™xXLWx„n@lǼn„m‚k_k`@bózƒ‚m@kU@ƒ`„¦óƒ@nWš@ÜÅXWw@ƒyƒb¦@ÒlnUb@x™lܐk‚@²Ç@Uƒ¯bmy@kV@bƒb„¦U`lLVx@b—Ll¼Þ¤@„°VVބU@WސUb›J@nnš@lnnm„šxUŽƒUUbƒK@šÇwklkUƒVWakn@ŽlbU@@„ULVxkKUn‚°¯Ò@¼™„kmƒ¦m@kl™Ȱ@lU„l¦„@Vl°wšnnþĊUÆbUx™b„ŽV„šĖU°„a‚nnašV„al@@b"],encodeOffsets:[[106099,27653]]}},{type:"Feature",id:"5323",properties:{name:"楚雄彝族自治州",cp:[101.6016,25.3619],childNum:10},geometry:{type:"Polygon",coordinates:["@@mҁXU`Wnšš™@Xl±¦š„Uxnbl°knmKUx„„ƒxVôUx°¼ôÒȄ°JlnÞKĠœW°¦ƒ„Vx²JVwš_°¥@UV@@wnymknK¯I@‚™²b°ƒš£V¥šwU‚V„¤nLškÆJÈwôô°„l»Č¯ƒġVƒUU@@ƒ°ƒƒÝXl@U»°Å„@U„¯@w±¯VmUUlm@m™„ÑnIVyUwmak£Vwm±—@Çw@nƒ@UxkwlÇnL‚mkř@±Žk™ka@kóJV¯Ç»U£lw¯™Xalbl¥¯UXƒ@a˜™UaÈL@ÇVIVƒkaU¯mm™akLWkUJ¯Umxnšƒ@ƒkUx¯xƒ„mWÅīÝkkbƒŤƒbkxWmXwWk¯wƒKkƒƒLŤċń„@¤óĬU²ƒ@@lƒk¯VmU¯¼@xV@k°l°kbUš°nm‚VnUš@°„š„UVèރÆbUÒÞnU¦›V—¼lô„@Vl"],encodeOffsets:[[103433,26196]]}},{type:"Feature",id:"5329",properties:{name:"大理白族自治州",cp:[99.9536,25.6805],childNum:12},geometry:{type:"Polygon",coordinates:["@@lbœKVIUa˜@²m@b™xôÒÜxXLmbnšl@š„„K°šš¼k„Uô‚xôlV¦nJ„Uš™Ænšm„@šx„ÆwšbXšÆôô„LUVwôK@wlmšaVwœ@WknmƒIUmlnJla@_™@kÝmKUašÑm¯Xw°aUaVl»²JV„bÆJkôͲVVk„mšbVwUó„wƒƒVwnLlmk¯maVw™ƒ²¥Wkš@™™XmV_‚WnÑUkƒ@k󘻜UV¥ÝmVÑÅa݄UçƒVƒ™@¯V™Umn¯mV™lak¯l¯U@@wğŽW鯁ƒ@¯xÝw¯š¯Jċa¯U¥mLU¤„bÞȤƒbÇLWUwmIUVW¼kbš`U„Vb¯L±ĊÛkƒÿÝKkwƒKţê™UĉþƒÈƒV¯ÞVbUްKVšk²Ý‚mI—ƒmV@kƒm™UkšVxm„¯KXÈķJU¦V°ULWxšL@môƒšb@bkx±LnVUŽVLnkÜWnwlLŃmW@kkJU_ƒV„šWĊ„Þ"],encodeOffsets:[[101408,26770]]}},{type:"Feature",id:"5309",properties:{name:"临沧市",cp:[99.613,24.0546],childNum:8},geometry:{type:"Polygon",coordinates:["@@‚xĢ„l`²X°ŽV„šx@x°Þ°KXašğUњW‚bnIl`X²°b„xl°„„šV@xVxk¦mb„l@xšXV‚ÆzX¤™Æ˜k°„kx@lźêlaX»VUnJVx‚XÈK„aÝȣƒaV£nKV¦°‚Čb°I°™n»ÆÑV¯nWn›™@ÿXÅWWn¹ƒġōƒn»‚ÛU™™aU™VƒUw„w@w°ƒó¥ƒ@ƒz—ƒ±@ř›¯@kUwlk£±aĵޝ™›Uĵ¦±±@bó±VÝ@ó¤ƒw¯I@mńóm±XޝIólƒK@š°Ullb™zkKlln@@ԙºƒUmVk²ôҙx™ŎUVóLƒb„ŽmÈnŽmbnl‚a„x@z„@Ǝ„¦kš"],encodeOffsets:[[101251,24734]]}},{type:"Feature",id:"5334",properties:{name:"迪庆藏族自治州",cp:[99.4592,27.9327],childNum:3},geometry:{type:"Polygon",coordinates:["@@W™Xwƒ™@akk@y›—k°īX¥›Uóķ¯w@n»UaVaUۃ¯ƒmV¼k‚™Þċô@n¯xÛÒm„V‚¯Ô@xƒ‚@šk™wm™Åa@ƒUa‚݁¯VŃyV„a@ÿšn»ÝVmank™mmÞÅôƒ@n£±›ğzÇmU¦™Vm„nÜmbn@°nV@xmzÅ@mºV¦k°ln¤š¼õô„n@xkƃIUxUš@Ťƒ¦VšmVkmkXW¤XzVx@ƚx™¼ƒÞ¯b@lVš™ĸގV„m¼XŽm¦V„ŽÞ@Ǝš¹Vón¥ÆKn„‚KX¯x@èĊȱłXšaÆxnlV@UÛlȻkğV¥„m²ljmÅÞĕƒƛm°„ÆmX¤mznƃŽV¦ÞVVb°bnÞWbnްl@V„È@„‚VĵĊ±@ó„InxÆw„¥@£Þ›W¯ĸ£UƒUK‚ƒk±akkkbmWmÈķ„aÆÇU—ȃÆW@wmknmU¯"],encodeOffsets:[[102702,28401]]}},{type:"Feature",id:"5306",properties:{name:"昭通市",cp:[104.0955,27.6031],childNum:11},geometry:{type:"Polygon",coordinates:["@@mƒnK@wmƒUř¥mšóXǓŏmX@Ž—VƒmL@xţ™nk@mlUšŻÒğŋ@ƒL@mmLkm™š@b™XŎW¼ka¯lÇŹ¯aÇ»™ÝÝ_@m„@@a™@UklwUm@ak@ƒb™UmbmƒbV¯™ĕUƒƒšaVwÅaĉVmý™m¯xUkƒ@k¥VƒUXƒ¤VÈm`@„—ńÇÜ@Ākn‚ĔkƞÆĠ„™Þš‚U„VôƆÞI@ŽUxƦn„l@ĊĊnxUÒ°¦Vb¯WUnWށIml@xn„Ubô¤‚¼ÈxlI„»šKVš„@ÈԂJkšU˱ÆVb@nœ„VÜVUVƒšL„wĠl„kn„Ġ@nx°¥Æ„²mUwƒ@m™mÅUl¯UњÑUm„Lll„Il±š@VkwƒW@w°@U»™kUóI°ƒ„»ĢтL„™š`nUĠ²lm„bôV@n„JUxƦX¦l@š‚ŎUƒV„@lV„KVřV£UaÞU™ƒnW@¯VU@ó™"],encodeOffsets:[[107787,28244]]}},{type:"Feature",id:"5301",properties:{name:"昆明市",cp:[102.9199,25.4663],childNum:11},geometry:{type:"Polygon",coordinates:["@@n@Vk‚VUn²°@xƒ°Vƒ@¯ÆV¼k@WŽ„Þ¯„@„@‚VVU„„Ģċ°k¼V„Ċxœ¤Ōœx°mVkƒÑȏšL‚°„x°Xœ°VmĊLVxU˰bX¦VW@kšȯlkn@„¥lnšƒ@»°Ñ¯VmlLUwVK@ƒV@ka@lmXb„UlVlkÈx@™„LVa„VV™wnƒmm@km™@mœIVaݏ@XƒVUݯU@ƒÝ£k»˜K@aUwkKV_ƒ¥„a@alU@nz°aV„È@@±lÛšk@wVakm@т¥„a„z‚@XxÆW@ÛX™@m@ƒy@aWw@kōĉJlbV„JƒzţÆUwVkmWkým@Ul™U@b¯wVºƒU™VUêšĠƒXUaUbVĊUŽWXUmkK™™WnUUU™V™ƒƒVV™Ý@kk±‚™¯ƒƒLkƒš±WkXlVklƒ@ƒwXbmLƒ›VUIVmk@Ubma@kkaVKUƒ™kmlXLWn™J¯ÒĊ°@zkºlLUŤn@@n›ô@lƁnmKkÈlxVw„@@mÈx˜@n²Uxl¤nbVxUzmJƒÒnš"],encodeOffsets:[[104828,25999]]}},{type:"Feature",id:"5307",properties:{name:"丽江市",cp:[100.448,26.955],childNum:5},geometry:{type:"Polygon",coordinates:["@@l@™„@w°ÓUnƒÜѰw@mČóšÝlU»n°„„VÜUbVbm¼@ްxôĸœVW¦¯Ĭlœ˜@zll@b„šWxXš‚a„X@ÆĠÆaXwl@XaƦn¼˜Jn@mnKW¯È»V¯°ak™VanXVwl@VyUĕVU„bÈīlaUk°ƒk¯lƒ²V˜Ukƛô@ƒ„I@mVwĊa„™ƒVaka„™ÆbUŽVLšaXIWKUw™ƒ„aWÑÅKUaVk°ƒ@Uw„ƒ¯¥›XğÝLkm¯Iǃóѯ»™aƒnUl±UĵÿlóÅIƒaU‚±Ik¼UŽVb¯bWxn°™ÒVbnLlޚ@@`kbmIkŽVn„JmnXl›@Ux™bkn@xóLUxVŽƒKóóŐW™™aÅxƒŽ™wƒ@™nÅm™šƒV™„ƒôX„ƒLlVU¤ƒb¦m¼™Ž@ƒbU‚„zUƂ°ÞVb@„Æbnššx"],encodeOffsets:[[101937,28227]]}},{type:"Feature",id:"5328",properties:{name:"西双版纳傣族自治州",cp:[100.8984,21.8628],childNum:3},geometry:{type:"Polygon",coordinates:["@@l²°ŽnÒlxÞ@„nWl„Lĸ™nbV¤V¦kbVV‚¦na„x°Vôa@„šb@lôXlWUšVXČKlmššU@bšWXXܛ°LÈa°LnU°‚ÞnšÑ„ġ°lƒnbšaƒ¯¯KWƒœó@kmK@UšĉV@k°„VV¹„a@y‚_ċl_nÓlL@anI@ƒóWl£VU—ƒl™kĕl™šKVw„U@™kVƒam¯ÅL@bƒ‚Ýk@Vn„UbÇbÝwÅ@ċ¥¯lk‚¼ÅŽ™Ò°b@¦nlUn@ŽÇV„mƁbWôU@ÝÅōm™¯ƒaU™™mk™WWw—@±ƒ™n¯U™è™a™Lƒ¯mƒL™škwƒl@°mnÈÒ¯šów@V™xƒĀU¤°Įƒ°Xl"],encodeOffsets:[[102376,22579]]}},{type:"Feature",id:"5305",properties:{name:"保山市",cp:[99.0637,24.9884],childNum:5},geometry:{type:"Polygon",coordinates:["@@X°„Il‚@¦ƒŽÈ¼m¼ÞaÞÅl„ÈxV¼šlVôÈÆlLޣȺlkUƒ‚ƒUw„¯UĕVwĊ@n¦mlnVĸIWǰLnƒUwl™šV„n@lnU˜„nJށl±U™¯LVUa°Ý„U„ÇĊýšVŤé„LlxÞL„ĀÜl²ĉ°KUaVƒ™_Źé@klw¯ƒlÅ—šW£ÅyU™W@wƒknal¥Uw@w™Uƒƒk¯ƒw¯aW±k_mJa™XVҙĠWb¯L¯Ý@w™wUƒ¯±Wk_ġƒwƒwōKmb@¤„bk°l˃ô„UJƒšVnÅlťUš¯°VbnbWxX„m„ÞššWUĀ™L™yWzÛKmbUxVKkn݃kŽVšĀċ¤Ux„@ޝŽm@ƒ¦"],encodeOffsets:[[100440,25943]]}},{type:"Feature",id:"5304",properties:{name:"玉溪市",cp:[101.9312,23.8898],childNum:9},geometry:{type:"Polygon",coordinates:["@@l„„L°xXlWxXnlw„a„ţlaÞlÆĬnX„ƒ°wVw„l„@m™nw°VVIXllKšbnnV°lbU„UJ@ÈÇKVb—š@bW„°Vk¦kaWb°škxV¤È¼U°ôI@llblš²š@‚@œó@mm@VţkKl¹@yĉ¯°ÑšIXmWKnkšlV„ULlb@lnbVal@UnVJœU‚„nKWa„x„@lkkUlW²X„™‚l„K°„šl²@lšÞUŽ„U‚„UšVšVVXmššlLVnXWVUĉVaVb„W™ğVéšU„VU¹W»aVa„aW™Xƒ‚_U¥nÇ흙@a™lUnǍUyk@@wW@kbW¦UKÝwUmmƒƒLUnVxUVVlk¯mmnƒmkÇaŤ¯I@ƒl@@aĉw°ĕmU—L±ƒk™ÆéX™ÜÛ@yÈç@™Çġ„Ýķ—XmmÝVՙƒ™lmnkbmWkb@nl@nŽmš¯VxkJmUJ„ml¯™°makVVnVƒ¦™Wƒ—Wmnl@xmn„l‚I„¤„n™xU„ƒVUŽmX@˜ƒb@zl@¦Ýþ"],encodeOffsets:[[103703,24874]]}},{type:"Feature",id:"5333",properties:{name:"怒江傈僳族自治州",cp:[99.1516,26.5594],childNum:4},geometry:{type:"Polygon",coordinates:["@@WyX£lWlnnUU™„¥@ţV™Vw„JlÅ@wƒmö󙻂£kml¯U¥n¹Æ@ny@wmU@¯mnamÛnƒšUV¥ÈnĠy²œm¤„@ÆónݚnmlnbÞU‚¥„aV£kU„KWƒ„óšƒmIU¥ókwVólƒ™»¯™ƒL™ƒk@m™naWKÛwóњw@a±n—@VbUJ›LkaƒÝXĉƒ™„UV`lI@lnXÆƑkKmxÛXmlUKVmU²Klw@a™aó„@n™KXwVKU¯V¥mUnkm¥ĉ@UxV˃°Vx„V„klmޙkKWĀkVWšnl°Lnm@°ŽUxlV@nk¦™JVȰŽVÒ@nX°@ÆlUômlnôƒ²nxmłnVV„¯x@Èm°XblVUšl°@xkXU¤WXX‚W„Xƃ„mkÅJmށw±bƒxUīkKmÅVUĖÝèV„kx@š›lX„lnk¤ƒLkŽ‚Ėk¦‚xUššL°‚¯Ė@LnK@b°xVI„¥Ua°Ñ@»nm@¹‚KŎÞÈWln²n"],encodeOffsets:[[101071,28891]]}},{type:"Feature",id:"5331",properties:{name:"德宏傣族景颇族自治州",cp:[98.1299,24.5874],childNum:5},geometry:{type:"Polygon",coordinates:["@@„¥n@°@ƒVwČ£™ÿUlÞ„lmULVwnaÜLXyšzšKVÿ™XݙnƒWƒXwmaUa°¯V™ŦŽÆkUm„™VIƒ„ókĕl¯ƒa@£nama™@¯m¯œó@óyţbġkÅm±ÛammVkƒLwU`Wk@VƒkUmŃlUUKmbkkUVUwƒ¦óް¼šbn°ô¦lºƒz@xšŽ¯„™@UްnƒšU¤ţU„°VƆ@ÈmlnzÞl°¦Æa„xUxƒLkxWƒn@‚š²ŰšW„™‚@°ÈXl°Llx"],encodeOffsets:[[100440,25943]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/zhe_jiang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3311",properties:{name:"丽水市",cp:[119.5642,28.1854],childNum:9},geometry:{type:"Polygon",coordinates:["@@@V‚bVl@Xn‚UXƒKVŽ@¦nxlUXV‚n„KVmnL‚UV@bn¤lLXK˜²„`nnlJXIVJ‚I„Vnn°KnnVll@VLXWV@UkVaVK„zV@„ƒšVVaUK@U»VUl@@WnUUƒ@wVLn@Vwl@XW°LVbn@VU‚@X„l`@XnKVbkl@XVJlUnlV„„xlL@lnXl„@VšUnV°°„@a„UVLXblWVXn@VVUV@Lš¤VLV„U‚VbnalLUUVX_laVa„WVzXKV@@a@KUmImmXama@kU@yVIUK‚aVa@kXK@aWU@VIUmW@kkVm„Uš@VwUa@K@k@Uƒ`@kUKVk@UV@VaUm²Vy@klUUWUkVmUa@_ƒKVaXa›XmƒU@mUlWkaUXƒ@mmkL@w™JƒnVVÅbWKXa™@@I@aƒJUUÇ@V„UL™W@akLmb@K@a™XXw@mƒVmUVkUy@£@aU@@VkUWm@kUKƒXUWU_mW@wkkmJUUkLWWUXƒW@IkJ@k@mW_kӃ_Ul™Lƒm@I@aUa¯m@kƒa¯LUJƒ@mVVxUb™a@LUKkXƒbm@Uak@@a@Um`ƒIUbUJ@nUVW@@LnVV@lšUbVlUX@`š@blXklW„Ušm„Xlm¦U@@V¯bml@š@nUb@llnn@VbX@lV@ŽUVULmU@JVn„bVbkb™VWxU@@nUVk@"],encodeOffsets:[[121546,28992]]}},{type:"Feature",id:"3301",properties:{name:"杭州市",cp:[119.5313,29.8773],childNum:6},geometry:{type:"Polygon",coordinates:["@@X@l„°KXXlW„b@²„`šššb‚I„šX`l@„@bWl@n@VnLUV@V„@°¦@šl@XVlU@š@xVbUb@Vkb@‚@XVJVz™J@Lޚ@VmLUxUJ@LU„Vx‚b„xXUl@VaÈw„b‚aÞa@Vl@XUVx@V@V„LlbnV„al@lb„Vnn‚LnKnL@VlbVJXalIšb@KUU@mVInJ˜„U„Vl@xUšVLnUš@UÞaV@lkV@UanK„L@UlKVUnbÆmn@@nUlVnVJl@@UXU„L@WVIVJVxVLXV@IÜKnbn@V¥V@@I@ƒƒ„y°b@UUwnk°ÆƨVlUšçXm›£aƒÇ™IkVƒ@WV@@aWIUWUIkb@WW@UnƒK@UU@kaWVkƒVIVVnU@UWVUV@VmVkKkWIkVWaULU`UImJUImm—U@ƒƒwmwUV™IUWVkUamaU@mV—kƒb@KVU@aVU@anKULVJ‚U@kÛU™JUV›kkƒVakU@ƒaVwkW@UWkXmWaULUaUK@XƒJUUmƒVU@UVƒUkJ@ImwmKU@k„@lU„W@@akKm„kamIkWl_UwVm@UkaVUUaƒ@UamakbWlkL@aUalU@mkL@U@U™lmK@XkKm@Ýakb@xƒnXbƒ`ƒnUUU@›™U@™wU@@ƒmKkkƒV¯U@lULUbVbUb@V‚a@L™ºÝb@bLmK™x@VUL@bk@mxULWl"],encodeOffsets:[[121185,30184]]}},{type:"Feature",id:"3303",properties:{name:"温州市",cp:[120.498,27.8119],childNum:9},geometry:{type:"Polygon",coordinates:["@@ll@xnXV`VX„WVL@lXnlV@UV@@b@¤VzUlnV„U@nWxšW@b@LnalK@bšXVKUƒÈ@VV„I@b@Jš@WbXLÆaUU„mšI@xlKnn„@VWlbkXV‚@n„VWnœ‚WbUb„L@`VbUnVlVXkV@lUz±‚VnUbU@@VUlVL@l„_@V@l@LVbV@XLV`VÈlxn@lU@aœaVV‚k„@XJ@nl@@LU`°LVb„L°a@a„UVy@anI@a„a‚nV@²wÜJX@VšVV°k„na@WVk„aWwU@m@™ƒkƒaUĕ™ÝšÝŤnÈa„aóI›»@±X™WkUķ@kV±kw™ƒUkWw„™UƒÝ»ÛkɳlImaUaWóXÿǬk‚UnWVmmk™KţnŏÞğl™„UlUx@XWb„V@JkXƒ°mb@VULVxUVk@@LWWk@WIkšƒUkJmUkVmI@yƒ@Ua™kLm‚U@mUUUkaVk™@mK@UlUU@UmKmbUUUJ@n@KVLUL@VkJWXX`mnULWlkL@JVLVb@°kxkU@LVŽ™V@„VLV`UL@VUX"],encodeOffsets:[[122502,28334]]}},{type:"Feature",id:"3302",properties:{name:"宁波市",cp:[121.5967,29.6466],childNum:6},geometry:{type:"Polygon",coordinates:["@@Ċ¦ĸ°‚nXÞVšKškƨƑźÿ°»n„@wô¥ÜbœU°ÆXÞWóçĉݱIUƒÈ¥@U°wÆ»²mm_@aXƒVKÞVlk@akk›̅@£X»VwƏXWa¯aȗb™KƽۃĊ™xƒLóŽk@ƒƒƒ@¯nƒKUL@xkL›ÑkWULUUmJUXVŽU@mŽUX¯@V`mbXbV@@nn¤WXšx@škJ@nVVUVl²UbÝVUVk@Wx@V@„ƒVXzmlaƒL@VlLU`„XUVVVUnl@VbnJlnUVVnƒlUKkbmnn„VxlJnxmbU@UL@KUV™X@xmb@lk@mnVVUš™è"],encodeOffsets:[[123784,30977]]}},{type:"Feature",id:"3309",properties:{name:"舟山市",cp:[122.2559,30.2234],childNum:3},geometry:{type:"Polygon",coordinates:["@@l΢ƒʠþÆVĢLĊƒǬXĊ܄XôV„ÑÆw„ƒlšƏÈóVĭVǓ@ƒĉwɛkmK@ĉXīWaĉUĵÝmƒ¯ĉƒwĉ±±nż¯x@VǦV„²JĊÞôèÝXÅW¯›VÛaó¦@xƒŽmޝ¼ŹĀ"],
    +encodeOffsets:[[124437,30983]]}},{type:"Feature",id:"3310",properties:{name:"台州市",cp:[121.1353,28.6688],childNum:7},geometry:{type:"Polygon",coordinates:["@@lV„IVWVz@bXJl@Xal@°„nLll@nVxnV„K@UJVbƒ¦°„k`UIWJXnƚ@bUJ„Xl@lb„Wn@UzVV@bVVšmVnnJVXna‚bšKUKnUVVUnVLlKVLXa„Jm£@mU@WanaU_°@VWnV@UVWnIVVVKlXœÒlK@wVK„L°m„@„„l@ô„Kšw„ĉƾůUƒl£@»UƒVk„m@ƅUƒƒaÛIŏmUk@m„w@a™£ƒWk@ţšƒIm±@ankôUlaU™Uw¯ƒōaƒbÇbţm™ÞšÞVĖ„b„l@š@n‚VXxƒbUl@XmbƒŽ¯lUUU™W@ÛI±xU@mƒb@bmJ@bUzƒV@b¯bƒKUa¯KV_@Kk@@mWIƒ@lUU›b@bkVm@kwUÇU_WKU@Ux™@ƒVUnllX@Vn‚J@UXV@bWL@lUbbVLUJ@z‚V@lnbWbnnnJVŽ@L"],encodeOffsets:[[123312,29526]]}},{type:"Feature",id:"3307",properties:{name:"金华市",cp:[120.0037,29.1028],childNum:8},geometry:{type:"Polygon",coordinates:["@@nbVb„@VbUVlb@VUnVxk`lXnJlbnƒlL@bX@Vƒ@klƒV@nLnx@JlI„V‚U@VUVn„VV„I@WVLVbVKXbWnXl@VlXUx„b@ŽlVUbl„œlVUšIÜVnalKX@@bV@@aUUlUƒwUw„@naWW„UVaUUšaVb„LlxXJVk°ƒUƒlkU¥@k„a@LVlXLVlšVWznVn@lxšJl_@WX_@mVa„a@alU@kVVna„KVLlK„b@UUaVašbnUWmXU@k@yVI@ařWmXIVJl_¯ƒ„¥UaVI@ƒLmUUw@mkkmK¯ƒk@Wbk@WI@aUyUXƒJkU@bU@WLUyƒXUbkbW`UVVkKmbUaVUƒUK™£@KVUUUm@UWkXWaUKƒV@b¯ƒ¯mU™V@UkƒmW@kkKƒwUƒmkkVUI@WlkUamL@Wk_Wƒ@UVm@Ua¯KWXk@Uxm@UK@xV„mV@Xk@UVV¼@‚VLUb™Uƒ„U@ƒyULUbVlU@@XlVUVVbƒU@lXXVW@XUVl@@VUVƒÈn@VVU„@lVa@„U„mL@`X@`WL@VUX@lUL@xlx"],encodeOffsets:[[122119,29948]]}},{type:"Feature",id:"3308",properties:{name:"衢州市",cp:[118.6853,28.8666],childNum:5},geometry:{type:"Polygon",coordinates:["@@XkVKnwl@@aVK@UšwnL‚K@aÞaš¹@Kb@UVaUaVaVK@k°V„UllnL@„V@šxV@œšV@VV„m„_Wa„m@wlaÞbn@lL@WnLšk@V@VlK@nkVVb@blKXklakw@wVK@kVW@UXK@_‚W@_nKVƒ@ƒUb@kVƒUUm@„ÇVU@Uk@VU@WUXWW@k„VUaVUkU@WWXUKk@Ukmm¯LmmƒUJUIWJkImmƒ_—±WLkKm£@aVUmKUnƒLmWUkVmw@¥U„LVWm@WUka@UmmLmm@@bUX™@@WUIm@UVUK@UVUUU™VVJmb@b„Xn‚mVƒ¼nnn¦mJUVƒL„V@VW@UzUlVnUbl`UnVl@XU@kl@bmÈUx™Vk@@J@„ƒ¼W@ÅaVVnzmVƒ„@WJk@kWJ@ƒlXbWbXxmVnšlLXb@°lKVXnWšbWV„„X„mbV@Xl‚bšI@Kn@@x@šVLlm"],encodeOffsets:[[121185,30184]]}},{type:"Feature",id:"3306",properties:{name:"绍兴市",cp:[120.564,29.7565],childNum:6},geometry:{type:"Polygon",coordinates:["@@„x@„˜VnnVJnIVJV_VKXblUXJlŽlLUŽUnU@UVVX@ŽmVUUUJl„XUlbV@@V„LVmX@@XlaVJVXXJ@b‚@XU„@lUšJ„È‚bœ¤Ō„JšçV™UUnml@@kna@wšWVU@LVKV@namwkIUwmƒnmlaVL„kUmVUkmmIUak@VmUUVUƒWV_kK@U„K‚bnkWy„U@ƒ@UXwl@VUÞUVak±VUUU@mlI@™™wXWƒIWbUKkLUKVmUUmVVL™LambUWmIUm™nUU@aUUVym@ƒXkak@ƒW@z@lWVXnmV™aUbVb@VƒakLUKƒLmbUU@lkV@bƒbUb@nW`@Xk`™Ikwm@mUXy™UUkWKUk@Kƒb@lV¦klV„¯„UlWIkwƒKUa™bVVUbƒVXXmbƒ@Vx„xkVVV@bU@@aW@kLmb@lVUIVKmL@bUV@bUV@L„a˜lnUV@nbVbUlVXšJVUnx"],encodeOffsets:[[122997,30561]]}},{type:"Feature",id:"3304",properties:{name:"嘉兴市",cp:[120.9155,30.6354],childNum:6},geometry:{type:"Polygon",coordinates:["@@@blIX@@VÜVUnn@l‚k„lKnI°Þl`²LVKVbnbVaVLUVn@W¦@VkVVb„@VI„`@blLnL‚aX@„VVb@U‚@XlVa„@@kVaUKV»U_lWXUƒƒ@alb„k@VllnLVKn@@UVIUw@y°IVVXU@VV@lw„m@wVkƾaœJ‚LkΡƧƒ™l™LÝUmW¯ķÿĉ¥ƒIŋŽWn™èkVƧU¯ÅmlVx@V¯aƒz„Ž@„@JU@U¦m@@šnVmn@V„LV‚"],encodeOffsets:[[123233,31382]]}},{type:"Feature",id:"3305",properties:{name:"湖州市",cp:[119.8608,30.7782],childNum:4},geometry:{type:"Polygon",coordinates:["@@kLlƒkm@VmÛU@UW@kJ@aUƒK@UnmmU@™maÛL@JWUUKUwUIUJ@XƒKWV@Vk@UIUmVk@mm@ÅnmaUVkL@VƒKmLVbU@klU@ÝbV™@mVUKV™@wUkVƒ—ƒmIUJ@nVV@L™akJWbUIka@UmKmLKmmƒUUVk@@nmLX`WXUV@Ž@nUl™kmlU@Ub„„ƒxVVšIlV„Žšnn„@@n˜„UҚ@„°n@@xmb@„VbnV@šš„@b@`@L@L@x@blVklVbnnV@‚aXb°VlU@W„b°U„LXWVUV™„™VwÈwÜ»ĸaĠnUVw²X@V@lVU@wlaUUVm@knUV›"],encodeOffsets:[[123379,31500]]}}],UTF8Encoding:!0}}),i("echarts/chart/gauge",["require","./base","../util/shape/GaugePointer","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","zrender/shape/Circle","zrender/shape/Sector","../config","../util/ecData","../util/accMath","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../util/shape/GaugePointer"),a=e("zrender/shape/Text"),o=e("zrender/shape/Line"),r=e("zrender/shape/Rectangle"),s=e("zrender/shape/Circle"),l=e("zrender/shape/Sector"),h=e("../config");h.gauge={zlevel:0,z:2,center:["50%","50%"],clickable:!0,legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#228b22"],[.8,"#48b"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,textStyle:{color:"auto"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{show:!0,length:"80%",width:8,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}}};var m=e("../util/ecData"),V=e("../util/accMath"),U=e("zrender/tool/util");return t.prototype={type:h.CHART_TYPE_GAUGE,_buildShape:function(){var e=this.series;this._paramsMap={},this.selectedMap={};for(var t=0,i=e.length;i>t;t++)e[t].type===h.CHART_TYPE_GAUGE&&(this.selectedMap[e[t].name]=!0,e[t]=this.reformOption(e[t]),this.legendHoverLink=e[t].legendHoverLink||this.legendHoverLink,this._buildSingleGauge(t),this.buildMark(t));this.addShapeList()},_buildSingleGauge:function(e){var t=this.series[e];this._paramsMap[e]={center:this.parseCenter(this.zr,t.center),radius:this.parseRadius(this.zr,t.radius),startAngle:t.startAngle.toFixed(2)-0,endAngle:t.endAngle.toFixed(2)-0},this._paramsMap[e].totalAngle=this._paramsMap[e].startAngle-this._paramsMap[e].endAngle,this._colorMap(e),this._buildAxisLine(e),this._buildSplitLine(e),this._buildAxisTick(e),this._buildAxisLabel(e),this._buildPointer(e),this._buildTitle(e),this._buildDetail(e)},_buildAxisLine:function(e){var t=this.series[e];if(t.axisLine.show)for(var i,n,a=t.min,o=t.max-a,r=this._paramsMap[e],s=r.center,l=r.startAngle,h=r.totalAngle,V=r.colorArray,U=t.axisLine.lineStyle,d=this.parsePercent(U.width,r.radius[1]),p=r.radius[1],c=p-d,u=l,y=0,g=V.length;g>y;y++)n=l-h*(V[y][0]-a)/o,i=this._getSector(s,c,p,n,u,V[y][1],U,t.zlevel,t.z),u=n,i._animationAdd="r",m.set(i,"seriesIndex",e),m.set(i,"dataIndex",y),this.shapeList.push(i)},_buildSplitLine:function(e){var t=this.series[e];if(t.splitLine.show)for(var i,n,a,r=this._paramsMap[e],s=t.splitNumber,l=t.min,h=t.max-l,m=t.splitLine,V=this.parsePercent(m.length,r.radius[1]),U=m.lineStyle,d=U.color,p=r.center,c=r.startAngle*Math.PI/180,u=r.totalAngle*Math.PI/180,y=r.radius[1],g=y-V,b=0;s>=b;b++)i=c-u/s*b,n=Math.sin(i),a=Math.cos(i),this.shapeList.push(new o({zlevel:t.zlevel,z:t.z+1,hoverable:!1,style:{xStart:p[0]+a*y,yStart:p[1]-n*y,xEnd:p[0]+a*g,yEnd:p[1]-n*g,strokeColor:"auto"===d?this._getColor(e,l+h/s*b):d,lineType:U.type,lineWidth:U.width,shadowColor:U.shadowColor,shadowBlur:U.shadowBlur,shadowOffsetX:U.shadowOffsetX,shadowOffsetY:U.shadowOffsetY}}))},_buildAxisTick:function(e){var t=this.series[e];if(t.axisTick.show)for(var i,n,a,r=this._paramsMap[e],s=t.splitNumber,l=t.min,h=t.max-l,m=t.axisTick,V=m.splitNumber,U=this.parsePercent(m.length,r.radius[1]),d=m.lineStyle,p=d.color,c=r.center,u=r.startAngle*Math.PI/180,y=r.totalAngle*Math.PI/180,g=r.radius[1],b=g-U,f=0,k=s*V;k>=f;f++)f%V!==0&&(i=u-y/k*f,n=Math.sin(i),a=Math.cos(i),this.shapeList.push(new o({zlevel:t.zlevel,z:t.z+1,hoverable:!1,style:{xStart:c[0]+a*g,yStart:c[1]-n*g,xEnd:c[0]+a*b,yEnd:c[1]-n*b,strokeColor:"auto"===p?this._getColor(e,l+h/k*f):p,lineType:d.type,lineWidth:d.width,shadowColor:d.shadowColor,shadowBlur:d.shadowBlur,shadowOffsetX:d.shadowOffsetX,shadowOffsetY:d.shadowOffsetY}})))},_buildAxisLabel:function(e){var t=this.series[e];if(t.axisLabel.show)for(var i,n,o,r,s=t.splitNumber,l=t.min,h=t.max-l,m=t.axisLabel.textStyle,U=this.getFont(m),d=m.color,p=this._paramsMap[e],c=p.center,u=p.startAngle,y=p.totalAngle,g=p.radius[1]-this.parsePercent(t.splitLine.length,p.radius[1])-5,b=0;s>=b;b++)r=V.accAdd(l,V.accMul(V.accDiv(h,s),b)),i=u-y/s*b,n=Math.sin(i*Math.PI/180),o=Math.cos(i*Math.PI/180),i=(i+360)%360,this.shapeList.push(new a({zlevel:t.zlevel,z:t.z+1,hoverable:!1,style:{x:c[0]+o*g,y:c[1]-n*g,color:"auto"===d?this._getColor(e,r):d,text:this._getLabelText(t.axisLabel.formatter,r),textAlign:i>=110&&250>=i?"left":70>=i||i>=290?"right":"center",textBaseline:i>=10&&170>=i?"top":i>=190&&350>=i?"bottom":"middle",textFont:U,shadowColor:m.shadowColor,shadowBlur:m.shadowBlur,shadowOffsetX:m.shadowOffsetX,shadowOffsetY:m.shadowOffsetY}}))},_buildPointer:function(e){var t=this.series[e];if(t.pointer.show){var i=t.max-t.min,a=t.pointer,o=this._paramsMap[e],r=this.parsePercent(a.length,o.radius[1]),l=this.parsePercent(a.width,o.radius[1]),h=o.center,V=this._getValue(e);V=V<t.max?V:t.max;var U=(o.startAngle-o.totalAngle/i*(V-t.min))*Math.PI/180,d="auto"===a.color?this._getColor(e,V):a.color,p=new n({zlevel:t.zlevel,z:t.z+1,clickable:this.query(t,"clickable"),style:{x:h[0],y:h[1],r:r,startAngle:o.startAngle*Math.PI/180,angle:U,color:d,width:l,shadowColor:a.shadowColor,shadowBlur:a.shadowBlur,shadowOffsetX:a.shadowOffsetX,shadowOffsetY:a.shadowOffsetY},highlightStyle:{brushType:"fill",width:l>2?2:l/2,color:"#fff"}});m.pack(p,this.series[e],e,this.series[e].data[0],0,this.series[e].data[0].name,V),this.shapeList.push(p),this.shapeList.push(new s({zlevel:t.zlevel,z:t.z+2,hoverable:!1,style:{x:h[0],y:h[1],r:a.width/2.5,color:"#fff"}}))}},_buildTitle:function(e){var t=this.series[e];if(t.title.show){var i=t.data[0],n=null!=i.name?i.name:"";if(""!==n){var o=t.title,r=o.offsetCenter,s=o.textStyle,l=s.color,h=this._paramsMap[e],m=h.center[0]+this.parsePercent(r[0],h.radius[1]),V=h.center[1]+this.parsePercent(r[1],h.radius[1]);this.shapeList.push(new a({zlevel:t.zlevel,z:t.z+(Math.abs(m-h.center[0])+Math.abs(V-h.center[1])<2*s.fontSize?2:1),hoverable:!1,style:{x:m,y:V,color:"auto"===l?this._getColor(e):l,text:n,textAlign:"center",textFont:this.getFont(s),shadowColor:s.shadowColor,shadowBlur:s.shadowBlur,shadowOffsetX:s.shadowOffsetX,shadowOffsetY:s.shadowOffsetY}}))}}},_buildDetail:function(e){var t=this.series[e];if(t.detail.show){var i=t.detail,n=i.offsetCenter,a=i.backgroundColor,o=i.textStyle,s=o.color,l=this._paramsMap[e],h=this._getValue(e),m=l.center[0]-i.width/2+this.parsePercent(n[0],l.radius[1]),V=l.center[1]+this.parsePercent(n[1],l.radius[1]);this.shapeList.push(new r({zlevel:t.zlevel,z:t.z+(Math.abs(m+i.width/2-l.center[0])+Math.abs(V+i.height/2-l.center[1])<o.fontSize?2:1),hoverable:!1,style:{x:m,y:V,width:i.width,height:i.height,brushType:"both",color:"auto"===a?this._getColor(e,h):a,lineWidth:i.borderWidth,strokeColor:i.borderColor,shadowColor:i.shadowColor,shadowBlur:i.shadowBlur,shadowOffsetX:i.shadowOffsetX,shadowOffsetY:i.shadowOffsetY,text:this._getLabelText(i.formatter,h),textFont:this.getFont(o),textPosition:"inside",textColor:"auto"===s?this._getColor(e,h):s}}))}},_getValue:function(e){return this.getDataFromOption(this.series[e].data[0])},_colorMap:function(e){var t=this.series[e],i=t.min,n=t.max-i,a=t.axisLine.lineStyle.color;a instanceof Array||(a=[[1,a]]);for(var o=[],r=0,s=a.length;s>r;r++)o.push([a[r][0]*n+i,a[r][1]]);this._paramsMap[e].colorArray=o},_getColor:function(e,t){null==t&&(t=this._getValue(e));for(var i=this._paramsMap[e].colorArray,n=0,a=i.length;a>n;n++)if(i[n][0]>=t)return i[n][1];return i[i.length-1][1]},_getSector:function(e,t,i,n,a,o,r,s,h){return new l({zlevel:s,z:h,hoverable:!1,style:{x:e[0],y:e[1],r0:t,r:i,startAngle:n,endAngle:a,brushType:"fill",color:o,shadowColor:r.shadowColor,shadowBlur:r.shadowBlur,shadowOffsetX:r.shadowOffsetX,shadowOffsetY:r.shadowOffsetY}})},_getLabelText:function(e,t){if(e){if("function"==typeof e)return e.call(this.myChart,t);if("string"==typeof e)return e.replace("{value}",t)}return t},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},U.inherits(t,i),e("../chart").define("gauge",t),t}),i("echarts/util/shape/GaugePointer",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/tool/util");return t.prototype={type:"gauge-pointer",buildPath:function(e,t){var i=t.r,n=t.width,a=t.angle,o=t.x-Math.cos(a)*n*(n>=i/3?1:2),r=t.y+Math.sin(a)*n*(n>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(o,r),e.lineTo(t.x+Math.cos(a)*n,t.y-Math.sin(a)*n),e.lineTo(t.x+Math.cos(t.angle)*i,t.y-Math.sin(t.angle)*i),e.lineTo(t.x-Math.cos(a)*n,t.y+Math.sin(a)*n),e.lineTo(o,r)},getRect:function(e){if(e.__rect)return e.__rect;var t=2*e.width,i=e.x,n=e.y,a=i+Math.cos(e.angle)*e.r,o=n-Math.sin(e.angle)*e.r;return e.__rect={x:Math.min(i,a)-t,y:Math.min(n,o)-t,width:Math.abs(i-a)+t,height:Math.abs(n-o)+t},e.__rect},isCover:e("./normalIsCover")},n.inherits(t,i),t}),i("echarts/chart/funnel",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","../config","../util/ecData","../util/number","zrender/tool/util","zrender/tool/color","zrender/tool/area","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Polygon"),r=e("../config");r.funnel={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,x:80,y:60,x2:80,y2:60,min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",itemStyle:{normal:{borderColor:"#fff",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:10,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0},labelLine:{show:!0}}}};var s=e("../util/ecData"),l=e("../util/number"),h=e("zrender/tool/util"),m=e("zrender/tool/color"),V=e("zrender/tool/area");return t.prototype={type:r.CHART_TYPE_FUNNEL,_buildShape:function(){var e=this.series,t=this.component.legend;this._paramsMap={},this._selected={},this.selectedMap={};for(var i,n=0,a=e.length;a>n;n++)if(e[n].type===r.CHART_TYPE_FUNNEL){if(e[n]=this.reformOption(e[n]),this.legendHoverLink=e[n].legendHoverLink||this.legendHoverLink,i=e[n].name||"",this.selectedMap[i]=t?t.isSelected(i):!0,!this.selectedMap[i])continue;this._buildSingleFunnel(n),this.buildMark(n)}this.addShapeList()},_buildSingleFunnel:function(e){var t=this.component.legend,i=this.series[e],n=this._mapData(e),a=this._getLocation(e);this._paramsMap[e]={location:a,data:n};for(var o,r=0,s=[],h=0,m=n.length;m>h;h++)o=n[h].name,this.selectedMap[o]=t?t.isSelected(o):!0,this.selectedMap[o]&&!isNaN(n[h].value)&&(s.push(n[h]),r++);if(0!==r){for(var V,U,d,p,c=this._buildFunnelCase(e),u=i.funnelAlign,y=i.gap,g=r>1?(a.height-(r-1)*y)/r:a.height,b=a.y,f="descending"===i.sort?this._getItemWidth(e,s[0].value):l.parsePercent(i.minSize,a.width),k="descending"===i.sort?1:0,x=a.centerX,_=[],h=0,m=s.length;m>h;h++)if(o=s[h].name,this.selectedMap[o]&&!isNaN(s[h].value)){switch(V=m-2>=h?this._getItemWidth(e,s[h+k].value):"descending"===i.sort?l.parsePercent(i.minSize,a.width):l.parsePercent(i.maxSize,a.width),u){case"left":U=a.x;break;case"right":U=a.x+a.width-f;break;default:U=x-f/2}d=this._buildItem(e,s[h]._index,t?t.getColor(o):this.zr.getColor(s[h]._index),U,b,f,V,g,u),b+=g+y,p=d.style.pointList,_.unshift([p[0][0]-10,p[0][1]]),_.push([p[1][0]+10,p[1][1]]),0===h&&(0===f?(p=_.pop(),"center"==u&&(_[0][0]+=10),"right"==u&&(_[0][0]=p[0]),_[0][1]-="center"==u?10:15,1==m&&(p=d.style.pointList)):(_[_.length-1][1]-=5,_[0][1]-=5)),f=V}c&&(_.unshift([p[3][0]-10,p[3][1]]),_.push([p[2][0]+10,p[2][1]]),0===f?(p=_.pop(),"center"==u&&(_[0][0]+=10),"right"==u&&(_[0][0]=p[0]),_[0][1]+="center"==u?10:15):(_[_.length-1][1]+=5,_[0][1]+=5),c.style.pointList=_)}},_buildFunnelCase:function(e){var t=this.series[e];if(this.deepQuery([t,this.option],"calculable")){var i=this._paramsMap[e].location,n=10,a={hoverable:!1,style:{pointListd:[[i.x-n,i.y-n],[i.x+i.width+n,i.y-n],[i.x+i.width+n,i.y+i.height+n],[i.x-n,i.y+i.height+n]],brushType:"stroke",lineWidth:1,strokeColor:t.calculableHolderColor||this.ecTheme.calculableHolderColor||r.calculableHolderColor}};return s.pack(a,t,e,void 0,-1),this.setCalculable(a),a=new o(a),this.shapeList.push(a),a}},_getLocation:function(e){var t=this.series[e],i=this.zr.getWidth(),n=this.zr.getHeight(),a=this.parsePercent(t.x,i),o=this.parsePercent(t.y,n),r=null==t.width?i-a-this.parsePercent(t.x2,i):this.parsePercent(t.width,i);return{x:a,y:o,width:r,height:null==t.height?n-o-this.parsePercent(t.y2,n):this.parsePercent(t.height,n),centerX:a+r/2}},_mapData:function(e){function t(e,t){return"-"===e.value?1:"-"===t.value?-1:t.value-e.value}function i(e,i){return-t(e,i)}for(var n=this.series[e],a=h.clone(n.data),o=0,r=a.length;r>o;o++)a[o]._index=o;return"none"!=n.sort&&a.sort("descending"===n.sort?t:i),a},_buildItem:function(e,t,i,n,a,o,r,l,h){var m=this.series,V=m[e],U=V.data[t],d=this.getPolygon(e,t,i,n,a,o,r,l,h);s.pack(d,m[e],e,m[e].data[t],t,m[e].data[t].name),this.shapeList.push(d);var p=this.getLabel(e,t,i,n,a,o,r,l,h);s.pack(p,m[e],e,m[e].data[t],t,m[e].data[t].name),this.shapeList.push(p),this._needLabel(V,U,!1)||(p.invisible=!0);var c=this.getLabelLine(e,t,i,n,a,o,r,l,h);this.shapeList.push(c),this._needLabelLine(V,U,!1)||(c.invisible=!0);var u=[],y=[];return this._needLabelLine(V,U,!0)&&(u.push(c.id),y.push(c.id)),this._needLabel(V,U,!0)&&(u.push(p.id),y.push(d.id)),d.hoverConnect=u,p.hoverConnect=y,d},_getItemWidth:function(e,t){var i=this.series[e],n=this._paramsMap[e].location,a=i.min,o=i.max,r=l.parsePercent(i.minSize,n.width),s=l.parsePercent(i.maxSize,n.width);return(t-a)*(s-r)/(o-a)+r},getPolygon:function(e,t,i,n,a,r,s,l,h){var V,U=this.series[e],d=U.data[t],p=[d,U],c=this.deepMerge(p,"itemStyle.normal")||{},u=this.deepMerge(p,"itemStyle.emphasis")||{},y=this.getItemStyleColor(c.color,e,t,d)||i,g=this.getItemStyleColor(u.color,e,t,d)||("string"==typeof y?m.lift(y,-.2):y);switch(h){case"left":V=n;break;case"right":V=n+(r-s);break;default:V=n+(r-s)/2}var b={zlevel:U.zlevel,z:U.z,clickable:this.deepQuery(p,"clickable"),style:{pointList:[[n,a],[n+r,a],[V+s,a+l],[V,a+l]],brushType:"both",color:y,lineWidth:c.borderWidth,strokeColor:c.borderColor},highlightStyle:{color:g,lineWidth:u.borderWidth,strokeColor:u.borderColor}};return this.deepQuery([d,U,this.option],"calculable")&&(this.setCalculable(b),b.draggable=!0),new o(b)},getLabel:function(e,t,i,a,o,r,s,l,U){var d,p=this.series[e],c=p.data[t],u=this._paramsMap[e].location,y=h.merge(h.clone(c.itemStyle)||{},p.itemStyle),g="normal",b=y[g].label,f=b.textStyle||{},k=y[g].labelLine.length,x=this.getLabelText(e,t,g),_=this.getFont(f),L=i;b.position=b.position||y.normal.label.position,"inner"===b.position||"inside"===b.position||"center"===b.position?(d=U,L=Math.max(r,s)/2>V.getTextWidth(x,_)?"#fff":m.reverse(i)):d="left"===b.position?"right":"left";var W={zlevel:p.zlevel,z:p.z+1,style:{x:this._getLabelPoint(b.position,a,u,r,s,k,U),y:o+l/2,color:f.color||L,text:x,textAlign:f.align||d,textBaseline:f.baseline||"middle",textFont:_}};return g="emphasis",b=y[g].label||b,f=b.textStyle||f,k=y[g].labelLine.length||k,b.position=b.position||y.normal.label.position,x=this.getLabelText(e,t,g),_=this.getFont(f),L=i,"inner"===b.position||"inside"===b.position||"center"===b.position?(d=U,L=Math.max(r,s)/2>V.getTextWidth(x,_)?"#fff":m.reverse(i)):d="left"===b.position?"right":"left",W.highlightStyle={x:this._getLabelPoint(b.position,a,u,r,s,k,U),color:f.color||L,text:x,textAlign:f.align||d,textFont:_,brushType:"fill"},new n(W)},getLabelText:function(e,t,i){var n=this.series,a=n[e],o=a.data[t],r=this.deepQuery([o,a],"itemStyle."+i+".label.formatter");return r?"function"==typeof r?r.call(this.myChart,{seriesIndex:e,seriesName:a.name||"",series:a,dataIndex:t,data:o,name:o.name,value:o.value}):"string"==typeof r?r=r.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",a.name).replace("{b0}",o.name).replace("{c0}",o.value):void 0:o.name},getLabelLine:function(e,t,i,n,o,r,s,l,m){var V=this.series[e],U=V.data[t],d=this._paramsMap[e].location,p=h.merge(h.clone(U.itemStyle)||{},V.itemStyle),c="normal",u=p[c].labelLine,y=p[c].labelLine.length,g=u.lineStyle||{},b=p[c].label;b.position=b.position||p.normal.label.position;var f={zlevel:V.zlevel,z:V.z+1,hoverable:!1,style:{xStart:this._getLabelLineStartPoint(n,d,r,s,m),yStart:o+l/2,xEnd:this._getLabelPoint(b.position,n,d,r,s,y,m),yEnd:o+l/2,strokeColor:g.color||i,lineType:g.type,lineWidth:g.width}};return c="emphasis",u=p[c].labelLine||u,y=p[c].labelLine.length||y,g=u.lineStyle||g,b=p[c].label||b,b.position=b.position,f.highlightStyle={xEnd:this._getLabelPoint(b.position,n,d,r,s,y,m),strokeColor:g.color||i,lineType:g.type,lineWidth:g.width},new a(f)},_getLabelPoint:function(e,t,i,n,a,o,r){switch(e="inner"===e||"inside"===e?"center":e){case"center":return"center"==r?t+n/2:"left"==r?t+10:t+n-10;case"left":return"auto"===o?i.x-10:"center"==r?i.centerX-Math.max(n,a)/2-o:"right"==r?t-(a>n?a-n:0)-o:i.x-o;default:return"auto"===o?i.x+i.width+10:"center"==r?i.centerX+Math.max(n,a)/2+o:"right"==r?i.x+i.width+o:t+Math.max(n,a)+o}},_getLabelLineStartPoint:function(e,t,i,n,a){return"center"==a?t.centerX:n>i?e+Math.min(i,n)/2:e+Math.max(i,n)/2},_needLabel:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".label.show")},_needLabelLine:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".labelLine.show")},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},h.inherits(t,i),e("../chart").define("funnel",t),t}),i("echarts/chart/eventRiver",["require","./base","../layout/eventRiver","zrender/shape/Polygon","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","../util/date","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r._ondragend=function(){r.isDragend=!0},this.refresh(a)}var i=e("./base"),n=e("../layout/eventRiver"),a=e("zrender/shape/Polygon");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var o=e("../config");o.eventRiver={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0,position:"inside",formatter:"{b}"}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0}}}};var r=e("../util/ecData"),s=e("../util/date"),l=e("zrender/tool/util"),h=e("zrender/tool/color");return t.prototype={type:o.CHART_TYPE_EVENTRIVER,_buildShape:function(){var e=this.series;this.selectedMap={},this._dataPreprocessing();for(var t=this.component.legend,i=[],a=0;a<e.length;a++)if(e[a].type===this.type){e[a]=this.reformOption(e[a]),this.legendHoverLink=e[a].legendHoverLink||this.legendHoverLink;var o=e[a].name||"";if(this.selectedMap[o]=t?t.isSelected(o):!0,!this.selectedMap[o])continue;this.buildMark(a),i.push(this.series[a])}n(i,this._intervalX,this.component.grid.getArea()),this._drawEventRiver(),this.addShapeList()},_dataPreprocessing:function(){for(var e,t,i=this.series,n=0,a=i.length;a>n;n++)if(i[n].type===this.type){e=this.component.xAxis.getAxis(i[n].xAxisIndex||0);for(var o=0,r=i[n].data.length;r>o;o++){t=i[n].data[o].evolution;for(var l=0,h=t.length;h>l;l++)t[l].timeScale=e.getCoord(s.getNewDate(t[l].time)-0),t[l].valueScale=Math.pow(t[l].value,.8)}}this._intervalX=Math.round(this.component.grid.getWidth()/40)},_drawEventRiver:function(){for(var e=this.series,t=0;t<e.length;t++){var i=e[t].name||"";if(e[t].type===this.type&&this.selectedMap[i])for(var n=0;n<e[t].data.length;n++)this._drawEventBubble(e[t].data[n],t,n)}},_drawEventBubble:function(e,t,i){var n=this.series,o=n[t],s=o.name||"",l=o.data[i],m=[l,o],V=this.component.legend,U=V?V.getColor(s):this.zr.getColor(t),d=this.deepMerge(m,"itemStyle.normal")||{},p=this.deepMerge(m,"itemStyle.emphasis")||{},c=this.getItemStyleColor(d.color,t,i,l)||U,u=this.getItemStyleColor(p.color,t,i,l)||("string"==typeof c?h.lift(c,-.2):c),y=this._calculateControlPoints(e),g={zlevel:o.zlevel,z:o.z,clickable:this.deepQuery(m,"clickable"),style:{pointList:y,smooth:"spline",brushType:"both",lineJoin:"round",color:c,lineWidth:d.borderWidth,strokeColor:d.borderColor},highlightStyle:{color:u,lineWidth:p.borderWidth,strokeColor:p.borderColor},draggable:"vertical",ondragend:this._ondragend};g=new a(g),this.addLabel(g,o,l,e.name),r.pack(g,n[t],t,n[t].data[i],i,n[t].data[i].name),this.shapeList.push(g)},_calculateControlPoints:function(e){var t=this._intervalX,i=e.y,n=e.evolution,a=n.length;if(!(1>a)){for(var o=[],r=[],s=0;a>s;s++)o.push(n[s].timeScale),r.push(n[s].valueScale);var l=[];l.push([o[0],i]);var s=0;for(s=0;a-1>s;s++)l.push([(o[s]+o[s+1])/2,r[s]/-2+i]);for(l.push([(o[s]+(o[s]+t))/2,r[s]/-2+i]),l.push([o[s]+t,i]),l.push([(o[s]+(o[s]+t))/2,r[s]/2+i]),s=a-1;s>0;s--)l.push([(o[s]+o[s-1])/2,r[s-1]/2+i]);return l}},ondragend:function(e,t){this.isDragend&&e.target&&(t.dragOut=!0,t.dragIn=!0,t.needRefresh=!1,this.isDragend=!1)},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},l.inherits(t,i),e("../chart").define("eventRiver",t),t}),i("echarts/layout/eventRiver",["require"],function(){function e(e,i,o){function r(e,t){var i=e.importance,n=t.importance;return i>n?-1:n>i?1:0}for(var s=4,l=0;l<e.length;l++){for(var h=0;h<e[l].data.length;h++){null==e[l].data[h].weight&&(e[l].data[h].weight=1);for(var m=0,V=0;V<e[l].data[h].evolution.length;V++)m+=e[l].data[h].evolution[V].valueScale;e[l].data[h].importance=m*e[l].data[h].weight}e[l].data.sort(r)}for(var l=0;l<e.length;l++){null==e[l].weight&&(e[l].weight=1);for(var m=0,h=0;h<e[l].data.length;h++)m+=e[l].data[h].weight;e[l].importance=m*e[l].weight}e.sort(r);for(var U=Number.MAX_VALUE,d=0,l=0;l<e.length;l++)for(var h=0;h<e[l].data.length;h++)for(var V=0;V<e[l].data[h].evolution.length;V++){var p=e[l].data[h].evolution[V].timeScale;U=Math.min(U,p),d=Math.max(d,p)}U=~~U,d=~~d;for(var c=function(){var e=d-U+1+~~i;if(0>=e)return[0];for(var t=[];e--;)t.push(0);return t}(),u=c.slice(0),y=[],g=0,b=0,l=0;l<e.length;l++)for(var h=0;h<e[l].data.length;h++){var f=e[l].data[h];f.time=[],f.value=[];for(var k,x=0,V=0;V<e[l].data[h].evolution.length;V++)k=e[l].data[h].evolution[V],f.time.push(k.timeScale),f.value.push(k.valueScale),x=Math.max(x,k.valueScale);n(f,i,U),f.y=a(u,f,function(e,t){return e.ypx[t]}),f._offset=a(c,f,function(){return s}),g=Math.max(g,f.y+x),b=Math.max(b,f._offset),y.push(f)}t(y,o,g,b)}function t(e,t,i,n){for(var a=t.height,o=n/a>.5?.5:1,r=t.y,s=(t.height-n)/i,l=0,h=e.length;h>l;l++){var m=e[l];m.y=r+s*m.y+m._offset*o,delete m.time,delete m.value,delete m.xpx,delete m.ypx,delete m._offset;for(var V=m.evolution,U=0,d=V.length;d>U;U++)V[U].valueScale*=s}}function i(e,t,i,n){if(e===i)throw new Error("x0 is equal with x1!!!");if(t===n)return function(){return t};var a=(t-n)/(e-i),o=(n*e-t*i)/(e-i);return function(e){return a*e+o}}function n(e,t,n){var a=~~t,o=e.time.length;e.xpx=[],e.ypx=[];for(var r,s=0,l=0,h=0,m=0,V=0;o>s;s++){l=~~e.time[s],m=e.value[s]/2,s===o-1?(h=l+a,V=0):(h=~~e.time[s+1],V=e.value[s+1]/2),r=i(l,m,h,V);for(var U=l;h>U;U++)e.xpx.push(U-n),e.ypx.push(r(U))}e.xpx.push(h-n),e.ypx.push(V)}function a(e,t,i){for(var n,a=0,o=t.xpx.length,r=0;o>r;r++)n=i(t,r),a=Math.max(a,n+e[t.xpx[r]]);for(r=0;o>r;r++)n=i(t,r),e[t.xpx[r]]=a+n;return a}return e}),i("echarts/chart/venn",["require","./base","zrender/shape/Text","zrender/shape/Circle","zrender/shape/Path","../config","../util/ecData","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Circle"),o=e("zrender/shape/Path"),r=e("../config");r.venn={zlevel:0,z:1,calculable:!1};var s=e("../util/ecData"),l=e("zrender/tool/util");return t.prototype={type:r.CHART_TYPE_VENN,_buildShape:function(){this.selectedMap={},this._symbol=this.option.symbolList,this._queryTarget,this._dropBoxList=[],this._vennDataCounter=0;for(var e=this.series,t=this.component.legend,i=0;i<e.length;i++)if(e[i].type===r.CHART_TYPE_VENN){e[i]=this.reformOption(e[i]);var n=e[i].name||"";if(this.selectedMap[n]=t?t.isSelected(n):!0,!this.selectedMap[n])continue;this._buildVenn(i)}this.addShapeList()},_buildVenn:function(e){var t,i,n=this.series[e],a=n.data;a[0].value>a[1].value?(t=this.zr.getHeight()/3,i=t*Math.sqrt(a[1].value)/Math.sqrt(a[0].value)):(i=this.zr.getHeight()/3,t=i*Math.sqrt(a[0].value)/Math.sqrt(a[1].value));var o=this.zr.getWidth()/2-t,r=(t+i)/2*Math.sqrt(a[2].value)/Math.sqrt((a[0].value+a[1].value)/2),s=t+i;0!==a[2].value&&(s=this._getCoincideLength(a[0].value,a[1].value,a[2].value,t,i,r,Math.abs(t-i),t+i));var l=o+s,h=this.zr.getHeight()/2;if(this._buildItem(e,0,a[0],o,h,t),this._buildItem(e,1,a[1],l,h,i),0!==a[2].value&&a[2].value!==a[0].value&&a[2].value!==a[1].value){var m=(t*t-i*i)/(2*s)+s/2,V=s/2-(t*t-i*i)/(2*s),U=Math.sqrt(t*t-m*m),d=0,p=0;a[0].value>a[1].value&&o+m>l&&(p=1),a[0].value<a[1].value&&o+V>l&&(d=1),this._buildCoincideItem(e,2,a[2],o+m,h-U,h+U,t,i,d,p)}},_getCoincideLength:function(e,t,i,n,a,o,r,s){var l=(n*n-a*a)/(2*o)+o/2,h=o/2-(n*n-a*a)/(2*o),m=Math.acos(l/n),V=Math.acos(h/a),U=n*n*Math.PI,d=m*n*n-l*n*Math.sin(m)+V*a*a-h*a*Math.sin(V),p=d/U,c=i/e,u=Math.abs(p/c);return u>.999&&1.001>u?o:.999>=u?(s=o,o=(o+r)/2,this._getCoincideLength(e,t,i,n,a,o,r,s)):(r=o,o=(o+s)/2,this._getCoincideLength(e,t,i,n,a,o,r,s))},_buildItem:function(e,t,i,n,a,o){var r=this.series,l=r[e],h=this.getCircle(e,t,i,n,a,o);if(s.pack(h,l,e,i,t,i.name),this.shapeList.push(h),l.itemStyle.normal.label.show){var m=this.getLabel(e,t,i,n,a,o);s.pack(m,l,e,l.data[t],t,l.data[t].name),this.shapeList.push(m)}},_buildCoincideItem:function(e,t,i,n,a,r,l,h,m,V){var U=this.series,d=U[e],p=[i,d],c=this.deepMerge(p,"itemStyle.normal")||{},u=this.deepMerge(p,"itemStyle.emphasis")||{},y=c.color||this.zr.getColor(t),g=u.color||this.zr.getColor(t),b="M"+n+","+a+"A"+l+","+l+",0,"+m+",1,"+n+","+r+"A"+h+","+h+",0,"+V+",1,"+n+","+a,f={color:y,path:b},k={zlevel:d.zlevel,z:d.z,style:f,highlightStyle:{color:g,lineWidth:u.borderWidth,strokeColor:u.borderColor}};k=new o(k),k.buildPathArray&&(k.style.pathArray=k.buildPathArray(f.path)),s.pack(k,U[e],0,i,t,i.name),this.shapeList.push(k)},getCircle:function(e,t,i,n,o,r){var s=this.series[e],l=[i,s],h=this.deepMerge(l,"itemStyle.normal")||{},m=this.deepMerge(l,"itemStyle.emphasis")||{},V=h.color||this.zr.getColor(t),U=m.color||this.zr.getColor(t),d={zlevel:s.zlevel,z:s.z,clickable:!0,style:{x:n,y:o,r:r,brushType:"fill",opacity:1,color:V},highlightStyle:{color:U,lineWidth:m.borderWidth,strokeColor:m.borderColor}};return this.deepQuery([i,s,this.option],"calculable")&&(this.setCalculable(d),d.draggable=!0),new a(d)},getLabel:function(e,t,i,a,o,r){var s=this.series[e],l=s.itemStyle,h=[i,s],m=this.deepMerge(h,"itemStyle.normal")||{},V="normal",U=l[V].label,d=U.textStyle||{},p=this.getLabelText(t,i,V),c=this.getFont(d),u=m.color||this.zr.getColor(t),y=d.fontSize||12,g={zlevel:s.zlevel,z:s.z,style:{x:a,y:o-r-y,color:d.color||u,text:p,textFont:c,textAlign:"center"}};return new n(g)},getLabelText:function(e,t,i){var n=this.series,a=n[0],o=this.deepQuery([t,a],"itemStyle."+i+".label.formatter");return o?"function"==typeof o?o(a.name,t.name,t.value):"string"==typeof o?(o=o.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),o=o.replace("{a0}",a.name).replace("{b0}",t.name).replace("{c0}",t.value)):void 0:t.name},refresh:function(e){e&&(this.option=e,this.series=e.series),this._buildShape()}},l.inherits(t,i),e("../chart").define("venn",t),t}),i("echarts/chart/treemap",["require","./base","zrender/tool/area","zrender/shape/Rectangle","zrender/shape/Text","zrender/shape/Line","../layout/TreeMap","../data/Tree","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a);var r=this;r._onclick=function(e){return r.__onclick(e)},r.zr.on(V.EVENT.CLICK,r._onclick)}var i=e("./base"),n=e("zrender/tool/area"),a=e("zrender/shape/Rectangle"),o=e("zrender/shape/Text"),r=e("zrender/shape/Line"),s=e("../layout/TreeMap"),l=e("../data/Tree"),h=e("../config");h.treemap={zlevel:0,z:1,calculable:!1,clickable:!0,center:["50%","50%"],size:["80%","80%"],root:"",itemStyle:{normal:{label:{
    +show:!0,x:5,y:12,textStyle:{align:"left",color:"#000",fontFamily:"Arial",fontSize:13,fontStyle:"normal",fontWeight:"normal"}},breadcrumb:{show:!0,textStyle:{}},borderWidth:1,borderColor:"#ccc",childBorderWidth:1,childBorderColor:"#ccc"},emphasis:{}}};var m=e("../util/ecData"),V=e("zrender/config"),U=(e("zrender/tool/event"),e("zrender/tool/util")),d=e("zrender/tool/color");return t.prototype={type:h.CHART_TYPE_TREEMAP,refresh:function(e){this.clear(),e&&(this.option=e,this.series=this.option.series),this._treesMap={};for(var t=this.series,i=this.component.legend,n=0;n<t.length;n++)if(t[n].type===h.CHART_TYPE_TREEMAP){t[n]=this.reformOption(t[n]);var a=t[n].name||"";if(this.selectedMap[a]=i?i.isSelected(a):!0,!this.selectedMap[a])continue;this._buildSeries(t[n],n)}},_buildSeries:function(e,t){var i=l.fromOptionData(e.name,e.data);this._treesMap[t]=i;var n=e.root&&i.getNodeById(e.root)||i.root;this._buildTreemap(n,t)},_buildTreemap:function(e,t){for(var i=this.shapeList,n=0;n<i.length;){var a=i[n];m.get(a,"seriesIndex")===t?(this.zr.delShape(i[n]),i.splice(n,1)):n++}for(var o=i.length,r=this.series[t],l=r.itemStyle,h=this.parsePercent(r.size[0],this.zr.getWidth())||400,V=this.parsePercent(r.size[1],this.zr.getHeight())||500,U=this.parseCenter(this.zr,r.center),d=U[0]-.5*h,p=U[1]-.5*V,c=h*V,u=0,y=[],g=e.children,n=0;n<g.length;n++)u+=g[n].data.value;for(var b=0;b<g.length;b++)y.push(g[b].data.value*c/u);for(var f=new s({x:d,y:p,width:h,height:V}),k=f.run(y),x=0;x<k.length;x++){var _=g[x].data,L=k[x],W=[_.itemStyle,l],X=this.deepMerge(W);X.normal.color||(X.normal.color=this.zr.getColor(x)),X.emphasis.color||(X.emphasis.color=X.normal.color),this._buildItem(_,X,L,t,x),_.children&&this._buildChildrenTreemap(_.children,X,L,t)}this.query(r,"itemStyle.normal.breadcrumb.show")&&this._buildBreadcrumb(e,t,d,p+V);for(var n=o;n<i.length;n++)this.zr.addShape(i[n])},_buildItem:function(e,t,i,n,a){var o=this.series,r=this.getRectangle(e,t,i);m.pack(r,o[n],n,e,a,e.name),this.shapeList.push(r)},getRectangle:function(e,t,i){var n=t.emphasis,o=t.normal,r=this.getLabel(t,i,e.name,e.value),s=this.option.hoverable,l={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:s,clickable:!0,style:U.merge({x:i.x,y:i.y,width:i.width,height:i.height,brushType:"both",color:o.color,lineWidth:o.borderWidth,strokeColor:o.borderColor},r.style,!0),highlightStyle:U.merge({color:n.color,lineWidth:n.borderWidth,strokeColor:n.borderColor},r.highlightStyle,!0)};return new a(l)},getLabel:function(e,t,i,a){var o=e.normal.label.textStyle,r=[e.emphasis.label.textStyle,o],s=this.deepMerge(r),l=e.normal.label.formatter,h=this.getLabelText(i,a,l),m=this.getFont(o),V=n.getTextWidth(h,m),U=n.getTextHeight(h,m),d=this.deepQuery([e.emphasis,e.normal],"label.formatter"),p=this.getLabelText(i,a,d),c=this.getFont(s),u=n.getTextWidth(h,c),y=n.getTextHeight(h,c);e.normal.label.show?(e.normal.label.x+V>t.width||e.normal.label.y+U>t.height)&&(h=""):h="",e.emphasis.label.show?(s.x+u>t.width||s.y+y>t.height)&&(p=""):p="";var g={style:{textX:t.x+e.normal.label.x,textY:t.y+e.normal.label.y,text:h,textPosition:"specific",textColor:o.color,textFont:m},highlightStyle:{textX:t.x+e.emphasis.label.x,textY:t.y+e.emphasis.label.y,text:p,textColor:s.color,textPosition:"specific"}};return g},getLabelText:function(e,t,i){return i?"function"==typeof i?i.call(this.myChart,e,t):"string"==typeof i?(i=i.replace("{b}","{b0}").replace("{c}","{c0}"),i=i.replace("{b0}",e).replace("{c0}",t)):void 0:e},_buildChildrenTreemap:function(e,t,i,n){for(var a=i.width*i.height,o=0,r=[],l=0;l<e.length;l++)o+=e[l].value;for(var h=0;h<e.length;h++)r.push(e[h].value*a/o);for(var V=new s({x:i.x,y:i.y,width:i.width,height:i.height}),U=V.run(r),d=t.normal.childBorderWidth,p=t.normal.childBorderColor,c=0;c<U.length;c++){var u=U[c],y=[];i.y.toFixed(2)!==u.y.toFixed(2)&&y.push(this._getLine(u.x,u.y,u.x+u.width,u.y,d,p)),i.x.toFixed(2)!==u.x.toFixed(2)&&y.push(this._getLine(u.x,u.y,u.x,u.y+u.height,d,p)),(i.y+i.height).toFixed(2)!==(u.y+u.height).toFixed(2)&&y.push(this._getLine(u.x,u.y+u.height,u.x+u.width,u.y+u.height,d,p)),(i.x+i.width).toFixed(2)!==(u.x+u.width).toFixed(2)&&y.push(this._getLine(u.x+u.width,u.y,u.x+u.width,u.y+u.height,d,p));for(var g=0;g<y.length;g++)m.set(y[g],"seriesIndex",n),this.shapeList.push(y[g])}},_getLine:function(e,t,i,n,a,o){var s={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:e,yStart:t,xEnd:i,yEnd:n,lineWidth:a,strokeColor:o}};return new r(s)},_buildBreadcrumb:function(e,t,i,n){for(var a=[],r=e;r;)a.unshift(r.data.name),r=r.parent;for(var s=this.series[t],l=this.query(s,"itemStyle.normal.breadcrumb.textStyle")||{},h=this.query(s,"itemStyle.emphasis.breadcrumb.textStyle")||{},V={y:n+10,textBaseline:"top",textAlign:"left",color:l.color,textFont:this.getFont(l)},p={brushType:"fill",color:h.color||d.lift(l.color,-.3),textFont:this.getFont(h)},c=0;c<a.length;c++){var u=new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:U.merge({x:i,text:a[c]+(a.length-1-c?" > ":"")},V),clickable:!0,highlightStyle:p});m.set(u,"seriesIndex",t),m.set(u,"name",a[c]),i+=u.getRect(u.style).width,this.shapeList.push(u)}},__onclick:function(e){var t=e.target;if(t){var i=m.get(t,"seriesIndex"),n=m.get(t,"name"),a=this._treesMap[i],o=a.getNodeById(n);o&&o.children.length&&this._buildTreemap(o,i)}}},U.inherits(t,i),e("../chart").define("treemap",t),t}),i("echarts/layout/TreeMap",["require"],function(){function e(e){({x:e.x,y:e.y,width:e.width,height:e.height});this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}return e.prototype.run=function(e){var t=[];return this._squarify(e,{x:this.x,y:this.y,width:this.width,height:this.height},t),t},e.prototype._squarify=function(e,t,i){var n="VERTICAL",a=t.width,o=t.height;t.width<t.height&&(n="HORIZONTAL",a=t.height,o=t.width);for(var r=this._getShapeListInAbstractRow(e,a,o),s=0;s<r.length;s++){r[s].x=0,r[s].y=0;for(var l=0;s>l;l++)r[s].y+=r[l].height}var h={};if("VERTICAL"==n){for(var m=0;m<r.length;m++)i.push({x:r[m].x+t.x,y:r[m].y+t.y,width:r[m].width,height:r[m].height});h={x:r[0].width+t.x,y:t.y,width:t.width-r[0].width,height:t.height}}else{for(var V=0;V<r.length;V++)i.push({x:r[V].y+t.x,y:r[V].x+t.y,width:r[V].height,height:r[V].width});h={x:t.x,y:t.y+r[0].width,width:t.width,height:t.height-r[0].width}}var U=e.slice(r.length);0!==U.length&&this._squarify(U,h,i)},e.prototype._getShapeListInAbstractRow=function(e,t,i){if(1===e.length)return[{width:t,height:i}];for(var n=1;n<e.length;n++){var a=this._placeFixedNumberRectangles(e.slice(0,n),t,i),o=this._placeFixedNumberRectangles(e.slice(0,n+1),t,i);if(this._isFirstBetter(a,o))return a}},e.prototype._placeFixedNumberRectangles=function(e,t,i){for(var n=e.length,a=[],o=0,r=0;r<e.length;r++)o+=e[r];for(var s=o/i,l=0;n>l;l++){var h=i*e[l]/o;a.push({width:s,height:h})}return a},e.prototype._isFirstBetter=function(e,t){var i=e[0].height/e[0].width;i=i>1?1/i:i;var n=t[0].height/t[0].width;return n=n>1?1/n:n,Math.abs(i-1)<=Math.abs(n-1)?!0:!1},e}),i("echarts/data/Tree",["require","zrender/tool/util"],function(e){function t(e,t){this.id=e,this.depth=0,this.height=0,this.children=[],this.parent=null,this.data=t||null}function i(e){this.root=new t(e)}var n=e("zrender/tool/util");return t.prototype.add=function(e){var t=this.children;e.parent!==this&&(t.push(e),e.parent=this)},t.prototype.remove=function(e){var t=this.children,i=n.indexOf(t,e);i>=0&&(t.splice(i,1),e.parent=null)},t.prototype.traverse=function(e,t){e.call(t,this);for(var i=0;i<this.children.length;i++)this.children[i].traverse(e,t)},t.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},t.prototype.getNodeById=function(e){if(this.id===e)return this;for(var t=0;t<this.children.length;t++){var i=this.children[t].getNodeById(e);if(i)return i}},i.prototype.traverse=function(e,t){this.root.traverse(e,t)},i.prototype.getSubTree=function(e){var t=this.getNodeById(e);if(t){var n=new i(t.id);return n.root=t,n}},i.prototype.getNodeById=function(e){return this.root.getNodeById(e)},i.fromOptionData=function(e,n){function a(e,i){var n=new t(e.name,e);i.add(n);var o=e.children;if(o)for(var r=0;r<o.length;r++)a(o[r],n)}var o=new i(e),r=o.root;r.data={name:e,children:n};for(var s=0;s<n.length;s++)a(n[s],r);return o.root.updateDepthAndHeight(0),o},i.fromGraph=function(e){function n(t){for(var i=e.getNodeById(t.id),a=0;a<i.outEdges.length;a++){var r=i.outEdges[a],s=o[r.node2.id];t.children.push(s),n(s)}}for(var a={},o={},r=0;r<e.nodes.length;r++){var s,l=e.nodes[r];0===l.inDegree()?(a[l.id]=new i(l.id),s=a[l.id].root):s=new t(l.id),s.data=l.data,o[l.id]=s}var h=[];for(var m in a)n(a[m].root),a[m].root.updateDepthAndHeight(0),h.push(a[m]);return h},i}),i("echarts/chart/tree",["require","./base","../util/shape/Icon","zrender/shape/Image","zrender/shape/Line","zrender/shape/BezierCurve","../layout/Tree","../data/Tree","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=.618,a=e("../util/shape/Icon"),o=e("zrender/shape/Image"),r=e("zrender/shape/Line"),s=e("zrender/shape/BezierCurve"),l=e("../layout/Tree"),h=e("../data/Tree"),m=e("../config");m.tree={zlevel:1,z:2,calculable:!1,clickable:!0,rootLocation:{},orient:"vertical",symbol:"circle",symbolSize:20,nodePadding:30,layerPadding:100,itemStyle:{normal:{label:{show:!0},lineStyle:{width:1,color:"#777",type:"curve"}},emphasis:{}}};var V=e("../util/ecData"),U=(e("zrender/config"),e("zrender/tool/event"),e("zrender/tool/util"));return t.prototype={type:m.CHART_TYPE_TREE,_buildShape:function(e,t){var i=e.data[0];this.tree=h.fromOptionData(i.name,i.children),this.tree.root.data=i,this._setTreeShape(e),this.tree.traverse(function(i){this._buildItem(i,e,t),i.children.length>0&&this._buildLink(i,e)},this);var n=e.roam===!0||"move"===e.roam,a=e.roam===!0||"scale"===e.roam;this.zr.modLayer(this.getZlevelBase(),{panable:n,zoomable:a}),(this.query("markPoint.effect.show")||this.query("markLine.effect.show"))&&this.zr.modLayer(m.EFFECT_ZLEVEL,{panable:n,zoomable:a}),this.addShapeList()},_buildItem:function(e,t,i){var n=[e.data,t],r=this.deepQuery(n,"symbol"),s=this.deepMerge(n,"itemStyle.normal")||{},l=this.deepMerge(n,"itemStyle.emphasis")||{},h=s.color||this.zr.getColor(),m=l.color||this.zr.getColor(),U=-e.layout.angle||0;e.id===this.tree.root.id&&(U=0);var d="right";Math.abs(U)>=Math.PI/2&&Math.abs(U)<3*Math.PI/2&&(U+=Math.PI,d="left");var p=[U,e.layout.position[0],e.layout.position[1]],c=new a({zlevel:this.getZlevelBase(),z:this.getZBase()+1,rotation:p,clickable:this.deepQuery(n,"clickable"),style:{x:e.layout.position[0]-.5*e.layout.width,y:e.layout.position[1]-.5*e.layout.height,width:e.layout.width,height:e.layout.height,iconType:r,color:h,brushType:"both",lineWidth:s.borderWidth,strokeColor:s.borderColor},highlightStyle:{color:m,lineWidth:l.borderWidth,strokeColor:l.borderColor}});c.style.iconType.match("image")&&(c.style.image=c.style.iconType.replace(new RegExp("^image:\\/\\/"),""),c=new o({rotation:p,style:c.style,highlightStyle:c.highlightStyle,clickable:c.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()})),this.deepQuery(n,"itemStyle.normal.label.show")&&(c.style.text=null==e.data.label?e.id:e.data.label,c.style.textPosition=this.deepQuery(n,"itemStyle.normal.label.position"),"radial"===t.orient&&"inside"!==c.style.textPosition&&(c.style.textPosition=d),c.style.textColor=this.deepQuery(n,"itemStyle.normal.label.textStyle.color"),c.style.textFont=this.getFont(this.deepQuery(n,"itemStyle.normal.label.textStyle")||{})),this.deepQuery(n,"itemStyle.emphasis.label.show")&&(c.highlightStyle.textPosition=this.deepQuery(n,"itemStyle.emphasis.label.position"),c.highlightStyle.textColor=this.deepQuery(n,"itemStyle.emphasis.label.textStyle.color"),c.highlightStyle.textFont=this.getFont(this.deepQuery(n,"itemStyle.emphasis.label.textStyle")||{})),V.pack(c,t,i,e.data,0,e.id),this.shapeList.push(c)},_buildLink:function(e,t){var i=t.itemStyle.normal.lineStyle;if("broken"===i.type)return void this._buildBrokenLine(e,i,t);for(var n=0;n<e.children.length;n++){var a=e.layout.position[0],o=e.layout.position[1],r=e.children[n].layout.position[0],s=e.children[n].layout.position[1];switch(i.type){case"curve":this._buildBezierCurve(e,e.children[n],i,t);break;case"broken":break;default:var l=this._getLine(a,o,r,s,i);this.shapeList.push(l)}}},_buildBrokenLine:function(e,t,i){var a=U.clone(t);a.type="solid";var o=[],r=e.layout.position[0],s=e.layout.position[1],l=i.orient,h=e.children[0].layout.position[1],m=r,V=s+(h-s)*(1-n),d=e.children[0].layout.position[0],p=V,c=e.children[e.children.length-1].layout.position[0],u=V;if("horizontal"===l){var y=e.children[0].layout.position[0];m=r+(y-r)*(1-n),V=s,d=m,p=e.children[0].layout.position[1],c=m,u=e.children[e.children.length-1].layout.position[1]}o.push(this._getLine(r,s,m,V,a)),o.push(this._getLine(d,p,c,u,a));for(var g=0;g<e.children.length;g++)y=e.children[g].layout.position[0],h=e.children[g].layout.position[1],"horizontal"===l?p=h:d=y,o.push(this._getLine(d,p,y,h,a));this.shapeList=this.shapeList.concat(o)},_getLine:function(e,t,i,n,a){return e===i&&(e=i=this.subPixelOptimize(e,a.width)),t===n&&(t=n=this.subPixelOptimize(t,a.width)),new r({zlevel:this.getZlevelBase(),hoverable:!1,style:U.merge({xStart:e,yStart:t,xEnd:i,yEnd:n,lineType:a.type,strokeColor:a.color,lineWidth:a.width},a,!0)})},_buildBezierCurve:function(e,t,i,a){var o=n,r=a.orient,l=e.layout.position[0],h=e.layout.position[1],m=t.layout.position[0],V=t.layout.position[1],d=l,p=(V-h)*o+h,c=m,u=(V-h)*(1-o)+h;if("horizontal"===r)d=(m-l)*o+l,p=h,c=(m-l)*(1-o)+l,u=V;else if("radial"===r)if(e.id===this.tree.root.id)d=(m-l)*o+l,p=(V-h)*o+h,c=(m-l)*(1-o)+l,u=(V-h)*(1-o)+h;else{var y=e.layout.originPosition[0],g=e.layout.originPosition[1],b=t.layout.originPosition[0],f=t.layout.originPosition[1],k=this.tree.root.layout.position[0],x=this.tree.root.layout.position[1];d=y,p=(f-g)*o+g,c=b,u=(f-g)*(1-o)+g;var _=(d-this.minX)/this.width*Math.PI*2;d=p*Math.cos(_)+k,p=p*Math.sin(_)+x,_=(c-this.minX)/this.width*Math.PI*2,c=u*Math.cos(_)+k,u=u*Math.sin(_)+x}var L=new s({zlevel:this.getZlevelBase(),hoverable:!1,style:U.merge({xStart:l,yStart:h,cpX1:d,cpY1:p,cpX2:c,cpY2:u,xEnd:m,yEnd:V,strokeColor:i.color,lineWidth:i.width},i,!0)});this.shapeList.push(L)},_setTreeShape:function(e){var t=new l({nodePadding:e.nodePadding,layerPadding:e.layerPadding});this.tree.traverse(function(t){var i=[t.data,e],n=this.deepQuery(i,"symbolSize");"number"==typeof n&&(n=[n,n]),t.layout={width:n[0],height:n[1]}},this),t.run(this.tree);var i=e.orient,n=e.rootLocation.x,a=e.rootLocation.y,o=this.zr.getWidth(),r=this.zr.getHeight();n="center"===n?.5*o:this.parsePercent(n,o),a="center"===a?.5*r:this.parsePercent(a,r),a=this.parsePercent(a,r),"horizontal"===i&&(n=isNaN(n)?10:n,a=isNaN(a)?.5*r:a),"radial"===i?(n=isNaN(n)?.5*o:n,a=isNaN(a)?.5*r:a):(n=isNaN(n)?.5*o:n,a=isNaN(a)?10:a);var s=this.tree.root.layout.position[0];if("radial"===i){var h=1/0,m=0,V=0;this.tree.traverse(function(e){m=Math.max(m,e.layout.position[0]),h=Math.min(h,e.layout.position[0]),V=Math.max(V,e.layout.width)}),this.width=m-h+2*V,this.minX=h}this.tree.traverse(function(t){var o,r;if("vertical"===i&&"inverse"===e.direction)o=t.layout.position[0]-s+n,r=a-t.layout.position[1];else if("vertical"===i)o=t.layout.position[0]-s+n,r=t.layout.position[1]+a;else if("horizontal"===i&&"inverse"===e.direction)r=t.layout.position[0]-s+a,o=n-t.layout.position[1];else if("horizontal"===i)r=t.layout.position[0]-s+a,o=t.layout.position[1]+n;else{o=t.layout.position[0],r=t.layout.position[1],t.layout.originPosition=[o,r];var l=r,m=(o-h)/this.width*Math.PI*2;o=l*Math.cos(m)+n,r=l*Math.sin(m)+a,t.layout.angle=m}t.layout.position[0]=o,t.layout.position[1]=r},this)},refresh:function(e){this.clear(),e&&(this.option=e,this.series=this.option.series);for(var t=this.series,i=this.component.legend,n=0;n<t.length;n++)if(t[n].type===m.CHART_TYPE_TREE){t[n]=this.reformOption(t[n]);var a=t[n].name||"";if(this.selectedMap[a]=i?i.isSelected(a):!0,!this.selectedMap[a])continue;this._buildSeries(t[n],n)}},_buildSeries:function(e,t){this._buildShape(e,t)}},U.inherits(t,i),e("../chart").define("tree",t),t}),i("echarts/layout/Tree",["require","zrender/tool/vector"],function(e){function t(e){e=e||{},this.nodePadding=e.nodePadding||30,this.layerPadding=e.layerPadding||100,this._layerOffsets=[],this._layers=[]}var i=e("zrender/tool/vector");return t.prototype.run=function(e){this._layerOffsets.length=0;for(var t=0;t<e.root.height+1;t++)this._layerOffsets[t]=0,this._layers[t]=[];this._updateNodeXPosition(e.root);var i=e.root;this._updateNodeYPosition(i,0,i.layout.height)},t.prototype._updateNodeXPosition=function(e){var t=1/0,n=-(1/0);e.layout.position=e.layout.position||i.create();for(var a=0;a<e.children.length;a++){var o=e.children[a];this._updateNodeXPosition(o);var r=o.layout.position[0];t>r&&(t=r),r>n&&(n=r)}e.layout.position[0]=e.children.length>0?(t+n)/2:0;var s=this._layerOffsets[e.depth]||0;if(s>e.layout.position[0]){var l=s-e.layout.position[0];this._shiftSubtree(e,l);for(var a=e.depth+1;a<e.height+e.depth;a++)this._layerOffsets[a]+=l}this._layerOffsets[e.depth]=e.layout.position[0]+e.layout.width+this.nodePadding,this._layers[e.depth].push(e)},t.prototype._shiftSubtree=function(e,t){e.layout.position[0]+=t;for(var i=0;i<e.children.length;i++)this._shiftSubtree(e.children[i],t)},t.prototype._updateNodeYPosition=function(e,t,i){e.layout.position[1]=t;for(var n=0,a=0;a<e.children.length;a++)n=Math.max(e.children[a].layout.height,n);var o=this.layerPadding;"function"==typeof o&&(o=o(e.depth));for(var a=0;a<e.children.length;a++)this._updateNodeYPosition(e.children[a],t+o+i,n)},t}),i("echarts/chart/wordCloud",["require","./base","zrender/shape/Text","../layout/WordCloud","../component/grid","../component/dataRange","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("../layout/WordCloud");e("../component/grid"),e("../component/dataRange");var o=e("../config"),r=e("../util/ecData"),s=e("zrender/tool/util"),l=e("zrender/tool/color");return o.wordCloud={zlevel:0,z:2,clickable:!0,center:["50%","50%"],size:["40%","40%"],textRotation:[0,90],textPadding:0,autoSize:{enable:!0,minSize:12},itemStyle:{normal:{textStyle:{fontSize:function(e){return e.value}}}}},t.prototype={type:o.CHART_TYPE_WORDCLOUD,refresh:function(e){e&&(this.option=e,this.series=e.series),this._init()},_init:function(){var e=this.series;this.backupShapeList();for(var t=this.component.legend,i=0;i<e.length;i++)if(e[i].type===o.CHART_TYPE_WORDCLOUD){e[i]=this.reformOption(e[i]);var n=e[i].name||"";if(this.selectedMap[n]=t?t.isSelected(n):!0,!this.selectedMap[n])continue;this.buildMark(i),this._initSerie(e[i])}},_initSerie:function(e){var t=e.itemStyle.normal.textStyle,i=[this.parsePercent(e.size[0],this.zr.getWidth())||200,this.parsePercent(e.size[1],this.zr.getHeight())||200],n=this.parseCenter(this.zr,e.center),o={size:i,wordletype:{autoSizeCal:e.autoSize},center:n,rotate:e.textRotation,padding:e.textPadding,font:t.fontFamily,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,text:function(e){return e.name},data:e.data},r=new a(o),s=this;r.end(function(e){s._buildShapes(e)}),r.start()},_buildShapes:function(e){for(var t=e.length,i=0;t>i;i++)this._buildTextShape(e[i],0,i);this.addShapeList()},_buildTextShape:function(e,t,i){var a=this.series,o=a[t],s=o.name||"",h=o.data[i],m=[h,o],V=this.component.legend,U=V?V.getColor(s):this.zr.getColor(t),d=this.deepMerge(m,"itemStyle.normal")||{},p=this.deepMerge(m,"itemStyle.emphasis")||{},c=this.getItemStyleColor(d.color,t,i,h)||U,u=this.getItemStyleColor(p.color,t,i,h)||("string"==typeof c?l.lift(c,-.2):c),y=new n({zlevel:o.zlevel,z:o.z,hoverable:!0,clickable:this.deepQuery(m,"clickable"),style:{x:0,y:0,text:e.text,color:c,textFont:[e.style,e.weight,e.size+"px",e.font].join(" "),textBaseline:"alphabetic",textAlign:"center"},highlightStyle:{brushType:p.borderWidth?"both":"fill",color:u,lineWidth:p.borderWidth||0,strokeColor:p.borderColor},position:[e.x,e.y],rotation:[-e.rotate/180*Math.PI,0,0]});r.pack(y,o,t,h,i,h.name),this.shapeList.push(y)}},s.inherits(t,i),e("../chart").define("wordCloud",t),t}),i("echarts/layout/WordCloud",["require","../layout/WordCloudRectZero","zrender/tool/util"],function(e){function t(e){this._init(e)}var i=e("../layout/WordCloudRectZero"),n=e("zrender/tool/util");return t.prototype={start:function(){function e(){p.totalArea=r,U.autoSizeCal.enable&&p._autoCalTextSize(m,r,a,o,U.autoSizeCal.minSize),V.timer&&clearInterval(V.timer),V.timer=setInterval(t,0),t()}function t(){for(var e,t=+new Date,i=m.length;+new Date-t<V.timeInterval&&++s<i&&V.timer;)e=m[s],e.x=d[0]>>1,e.y=d[1]>>1,p._cloudSprite(e,m,s),e.hasText&&p._place(n,e,h)&&(l.push(e),e.x-=d[0]>>1,e.y-=d[1]>>1);s>=i&&(p.stop(),p._fixTagPosition(l),V.endcallback(l))}var n=null,a=0,o=0,r=0,s=-1,l=[],h=null,m=this.wordsdata,V=this.defaultOption,U=V.wordletype,d=V.size,p=this,c=new i({type:U.type,width:d[0],height:d[1]});return c.calculate(function(t){n=t.initarr,a=t.maxWit,o=t.maxHit,r=t.area,h=t.imgboard,e()},this),this},_fixTagPosition:function(e){for(var t=this.defaultOption.center,i=0,n=e.length;n>i;i++)e[i].x+=t[0],e[i].y+=t[1]},stop:function(){return this.defaultOption.timer&&(clearInterval(this.defaultOption.timer),this.defaultOption.timer=null),this},end:function(e){return e&&(this.defaultOption.endcallback=e),this},_init:function(e){this.defaultOption={},this._initProperty(e),this._initMethod(e),this._initCanvas(),this._initData(e.data)},_initData:function(e){var t=this,i=t.defaultOption;this.wordsdata=e.map(function(e,n){return e.text=i.text.call(t,e,n),e.font=i.font.call(t,e,n),e.style=i.fontStyle.call(t,e,n),e.weight=i.fontWeight.call(t,e,n),e.rotate=i.rotate.call(t,e,n),e.size=~~i.fontSize.call(t,e,n),e.padding=i.padding.call(t,e,n),e}).sort(function(e,t){return t.value-e.value})},_initMethod:function(e){function t(e){return e.name}function i(){return"sans-serif"}function n(){return"normal"}function a(e){return e.value}function o(){return 0}function r(e){return function(){return e[Math.round(Math.random()*(e.length-1))]}}function s(){return 0}function l(e){var t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function h(e){var t=4,i=t*e[0]/e[1],n=0,a=0;return function(e){var o=0>e?-1:1;switch(Math.sqrt(1+4*o*e)-o&3){case 0:n+=i;break;case 1:a+=t;break;case 2:n-=i;break;default:a-=t}return[n,a]}}function m(e){return"function"==typeof e?e:function(){return e}}var V=this.defaultOption;V.text=e.text?m(e.text):t,V.font=e.font?m(e.font):i,V.fontSize=e.fontSize?m(e.fontSize):a,V.fontStyle=e.fontStyle?m(e.fontStyle):n,V.fontWeight=e.fontWeight?m(e.fontWeight):n,V.rotate=e.rotate?r(e.rotate):o,V.padding=e.padding?m(e.padding):s,V.center=e.center,V.spiral=l,V.endcallback=function(){},V.rectangularSpiral=h,V.archimedeanSpiral=l},_initProperty:function(e){var t=this.defaultOption;t.size=e.size||[256,256],t.wordletype=e.wordletype,t.words=e.words||[],t.timeInterval=1/0,t.timer=null,t.spirals={archimedean:t.archimedeanSpiral,rectangular:t.rectangularSpiral},n.merge(t,{size:[256,256],wordletype:{type:"RECT",areaPresent:.058,autoSizeCal:{enable:!0,minSize:12}}})},_initCanvas:function(){var e,t=Math.PI/180,i=64,n=2048,a=1;"undefined"!=typeof document?(e=document.createElement("canvas"),e.width=1,e.height=1,a=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2),e.width=(i<<5)/a,e.height=n/a):e=new Canvas(i<<5,n);var o=e.getContext("2d");o.fillStyle=o.strokeStyle="red",o.textAlign="center",this.defaultOption.c=o,this.defaultOption.cw=i,this.defaultOption.ch=n,this.defaultOption.ratio=a,this.defaultOption.cloudRadians=t},_cloudSprite:function(e,t,i){if(!e.sprite){var n=this.defaultOption.cw,a=this.defaultOption.ch,o=this.defaultOption.c,r=this.defaultOption.ratio,s=this.defaultOption.cloudRadians;o.clearRect(0,0,(n<<5)/r,a/r);var l=0,h=0,m=0,V=t.length;for(--i;++i<V;){e=t[i],o.save(),o.font=e.style+" "+e.weight+" "+~~((e.size+1)/r)+"px "+e.font;var U=o.measureText(e.text+"m").width*r,d=e.size<<1;if(e.rotate){var p=Math.sin(e.rotate*s),c=Math.cos(e.rotate*s),u=U*c,y=U*p,g=d*c,b=d*p;U=Math.max(Math.abs(u+b),Math.abs(u-b))+31>>5<<5,d=~~Math.max(Math.abs(y+g),Math.abs(y-g))}else U=U+31>>5<<5;if(d>m&&(m=d),l+U>=n<<5&&(l=0,h+=m,m=0),h+d>=a)break;o.translate((l+(U>>1))/r,(h+(d>>1))/r),e.rotate&&o.rotate(e.rotate*s),o.fillText(e.text,0,0),e.padding&&(o.lineWidth=2*e.padding,o.strokeText(e.text,0,0)),o.restore(),e.width=U,e.height=d,e.xoff=l,e.yoff=h,e.x1=U>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,l+=U}for(var f=o.getImageData(0,0,(n<<5)/r,a/r).data,k=[];--i>=0;)if(e=t[i],e.hasText){for(var U=e.width,x=U>>5,d=e.y1-e.y0,_=0;d*x>_;_++)k[_]=0;if(l=e.xoff,null==l)return;h=e.yoff;for(var L=0,W=-1,X=0;d>X;X++){for(var _=0;U>_;_++){var v=x*X+(_>>5),w=f[(h+X)*(n<<5)+(l+_)<<2]?1<<31-_%32:0;k[v]|=w,L|=w}L?W=X:(e.y0++,d--,X--,h++)}e.y1=e.y0+W,e.sprite=k.slice(0,(e.y1-e.y0)*x)}}},_place:function(e,t,i){function n(e,t,i){i>>=5;for(var n,a=e.sprite,o=e.width>>5,r=e.x-(o<<4),s=127&r,l=32-s,h=e.y1-e.y0,m=(e.y+e.y0)*i+(r>>5),V=0;h>V;V++){n=0;for(var U=0;o>=U;U++)if((n<<l|(o>U?(n=a[V*o+U])>>>s:0))&t[m+U])return!0;m+=i}return!1}function a(e,t){return t.row[e.y]&&t.cloumn[e.x]&&e.x>=t.row[e.y].start&&e.x<=t.row[e.y].end&&e.y>=t.cloumn[e.x].start&&e.y<=t.cloumn[e.x].end}for(var o,r,s,l=this.defaultOption.size,h=([{x:0,y:0},{x:l[0],y:l[1]}],t.x),m=t.y,V=Math.sqrt(l[0]*l[0]+l[1]*l[1]),U=this.defaultOption.spiral(l),d=Math.random()<.5?1:-1,p=-d;(o=U(p+=d))&&(r=~~o[0],s=~~o[1],!(Math.min(r,s)>V));)if(t.x=h+r,t.y=m+s,!(t.x+t.x0<0||t.y+t.y0<0||t.x+t.x1>l[0]||t.y+t.y1>l[1])&&!n(t,e,l[0])&&a(t,i)){for(var c,u=t.sprite,y=t.width>>5,g=l[0]>>5,b=t.x-(y<<4),f=127&b,k=32-f,x=t.y1-t.y0,_=(t.y+t.y0)*g+(b>>5),L=0;x>L;L++){c=0;for(var W=0;y>=W;W++)e[_+W]|=c<<k|(y>W?(c=u[L*y+W])>>>f:0);_+=g}return delete t.sprite,!0}return!1},_autoCalTextSize:function(e,t,i,n,a){function o(e){c.clearRect(0,0,(d<<5)/u,p/u),c.save(),c.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var t=c.measureText(e.text+"m").width*u,r=e.size<<1;t=t+31>>5<<5,c.restore(),e.aw=t,e.ah=r;var s,l,h;if(e.rotate){var m=Math.sin(e.rotate*y),V=Math.cos(e.rotate*y),g=t*V,b=t*m,f=r*V,k=r*m;l=Math.max(Math.abs(g+k),Math.abs(g-k))+31>>5<<5,h=~~Math.max(Math.abs(b+f),Math.abs(b-f))}return e.size<=U||e.rotate&&t*r<=e.area&&i>=l&&n>=h||t*r<=e.area&&i>=t&&n>=r?void(e.area=t*r):(s=e.rotate&&l>i&&h>n?Math.min(i/l,n/h):t>i||r>n?Math.min(i/t,n/r):Math.sqrt(e.area/(e.aw*e.ah)),e.size=~~(s*e.size),e.size<a?void(e.size=a):o(e))}function r(e,t){for(var i=e.length,n=0;i--;)n+=t(e[i]);return n}for(var s,l,h=r(e,function(e){return e.size}),m=e.length,V=.25,U=a,d=this.defaultOption.cw,p=this.defaultOption.ch,c=this.defaultOption.c,u=this.defaultOption.ratio,y=this.defaultOption.cloudRadians;m--;)s=e[m],l=s.size/h,s.areapre=V?V>l?l:V:l,s.area=t*s.areapre,s.totalarea=t,o(s)}},t}),i("echarts/layout/WordCloudRectZero",["require"],function(){function e(e){this.defaultOption={type:"RECT"},this._init(e)}return e.prototype={RECT:"_calculateRect",_init:function(e){this._initOption(e),this._initCanvas()},_initOption:function(e){for(k in e)this.defaultOption[k]=e[k]},_initCanvas:function(){var e=document.createElement("canvas");e.width=1,e.height=1;var t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);if(e.width=this.defaultOption.width,e.height=this.defaultOption.height,e.getContext)var i=e.getContext("2d");this.canvas=e,this.ctx=i,this.ratio=t},calculate:function(e,t){var i=this.defaultOption.type,n=this[i];this[n].call(this,e,t)},_calculateReturn:function(e,t,i){t.call(i,e)},_calculateRect:function(e,t){var i={},n=this.defaultOption.width>>5<<5,a=this.defaultOption.height;i.initarr=this._rectZeroArray(n*a),i.area=n*a,i.maxHit=a,i.maxWit=n,i.imgboard=this._rectBoard(n,a),this._calculateReturn(i,e,t)},_rectBoard:function(e,t){for(var i=[],n=0;t>n;n++)i.push({y:n,start:0,end:e});for(var a=[],n=0;e>n;n++)a.push({x:n,start:0,end:t});return{row:i,cloumn:a}},_rectZeroArray:function(e){for(var t=[],i=e,n=-1;++n<i;)t[n]=0;return t}},e}),i("echarts/chart/heatmap",["require","./base","../layer/heatmap","../config","../util/ecData","zrender/tool/util","zrender/tool/color","zrender/shape/Image","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../layer/heatmap"),a=e("../config"),o=(e("../util/ecData"),e("zrender/tool/util")),r=(e("zrender/tool/color"),e("zrender/shape/Image"));return a.heatmap={zlevel:0,z:2,clickable:!0},t.prototype={type:a.CHART_TYPE_HEATMAP,refresh:function(e){this.clear(),e&&(this.option=e,this.series=e.series),this._init()},_init:function(){var e=this.series;this.backupShapeList();for(var t=e.length,i=0;t>i;++i)if(e[i].type===a.CHART_TYPE_HEATMAP){e[i]=this.reformOption(e[i]);var o=new n(e[i]),s=o.getCanvas(e[i].data,this.zr.getWidth(),this.zr.getHeight()),l=new r({position:[0,0],scale:[1,1],hoverable:this.option.hoverable,style:{x:0,y:0,image:s,width:s.width,height:s.height}});this.shapeList.push(l)}this.addShapeList()}},o.inherits(t,i),e("../chart").define("heatmap",t),t});var n=t("zrender");n.tool={color:t("zrender/tool/color"),math:t("zrender/tool/math"),util:t("zrender/tool/util"),vector:t("zrender/tool/vector"),area:t("zrender/tool/area"),event:t("zrender/tool/event")},n.animation={Animation:t("zrender/animation/Animation"),Cip:t("zrender/animation/Clip"),easing:t("zrender/animation/easing")};var a=t("echarts");a.config=t("echarts/config"),a.util={mapData:{params:t("echarts/util/mapData/params")}},t("echarts/chart/line"),t("echarts/chart/bar"),t("echarts/chart/scatter"),t("echarts/chart/k"),t("echarts/chart/pie"),t("echarts/chart/radar"),t("echarts/chart/chord"),t("echarts/chart/force"),t("echarts/chart/map"),t("echarts/chart/gauge"),t("echarts/chart/funnel"),t("echarts/chart/eventRiver"),t("echarts/chart/venn"),t("echarts/chart/treemap"),t("echarts/chart/tree"),t("echarts/chart/wordCloud"),t("echarts/chart/heatmap"),e.echarts=a,e.zrender=n}(window);
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/echarts.js b/fangija-zsyf/js/echarts.js
    new file mode 100644
    index 0000000..4dfb02b
    --- /dev/null
    +++ b/fangija-zsyf/js/echarts.js
    @@ -0,0 +1,74771 @@
    +(function (global, factory) {
    +	typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
    +	typeof define === 'function' && define.amd ? define(['exports'], factory) :
    +	(factory((global.echarts = {})));
    +}(this, (function (exports) { 'use strict';
    +
    +// (1) The code `if (__DEV__) ...` can be removed by build tool.
    +// (2) If intend to use `__DEV__`, this module should be imported. Use a global
    +// variable `__DEV__` may cause that miss the declaration (see #6535), or the
    +// declaration is behind of the using position (for example in `Model.extent`,
    +// And tools like rollup can not analysis the dependency if not import).
    +
    +var dev;
    +
    +// In browser
    +if (typeof window !== 'undefined') {
    +    dev = window.__DEV__;
    +}
    +// In node
    +else if (typeof global !== 'undefined') {
    +    dev = global.__DEV__;
    +}
    +
    +if (typeof dev === 'undefined') {
    +    dev = true;
    +}
    +
    +var __DEV__ = dev;
    +
    +/**
    + * zrender: 生成唯一id
    + *
    + * @author errorrik (errorrik@gmail.com)
    + */
    +
    +var idStart = 0x0907;
    +
    +var guid = function () {
    +    return idStart++;
    +};
    +
    +/**
    + * echarts设备环境识别
    + *
    + * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
    + * @author firede[firede@firede.us]
    + * @desc thanks zepto.
    + */
    +
    +var env = {};
    +
    +if (typeof navigator === 'undefined') {
    +    // In node
    +    env = {
    +        browser: {},
    +        os: {},
    +        node: true,
    +        // Assume canvas is supported
    +        canvasSupported: true,
    +        svgSupported: true
    +    };
    +}
    +else {
    +    env = detect(navigator.userAgent);
    +}
    +
    +var env$1 = env;
    +
    +// Zepto.js
    +// (c) 2010-2013 Thomas Fuchs
    +// Zepto.js may be freely distributed under the MIT license.
    +
    +function detect(ua) {
    +    var os = {};
    +    var browser = {};
    +    // var webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/);
    +    // var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
    +    // var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
    +    // var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
    +    // var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/);
    +    // var webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/);
    +    // var touchpad = webos && ua.match(/TouchPad/);
    +    // var kindle = ua.match(/Kindle\/([\d.]+)/);
    +    // var silk = ua.match(/Silk\/([\d._]+)/);
    +    // var blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/);
    +    // var bb10 = ua.match(/(BB10).*Version\/([\d.]+)/);
    +    // var rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/);
    +    // var playbook = ua.match(/PlayBook/);
    +    // var chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/);
    +    var firefox = ua.match(/Firefox\/([\d.]+)/);
    +    // var safari = webkit && ua.match(/Mobile\//) && !chrome;
    +    // var webview = ua.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/) && !chrome;
    +    var ie = ua.match(/MSIE\s([\d.]+)/)
    +        // IE 11 Trident/7.0; rv:11.0
    +        || ua.match(/Trident\/.+?rv:(([\d.]+))/);
    +    var edge = ua.match(/Edge\/([\d.]+)/); // IE 12 and 12+
    +
    +    var weChat = (/micromessenger/i).test(ua);
    +
    +    // Todo: clean this up with a better OS/browser seperation:
    +    // - discern (more) between multiple browsers on android
    +    // - decide if kindle fire in silk mode is android or not
    +    // - Firefox on Android doesn't specify the Android version
    +    // - possibly devide in os, device and browser hashes
    +
    +    // if (browser.webkit = !!webkit) browser.version = webkit[1];
    +
    +    // if (android) os.android = true, os.version = android[2];
    +    // if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.');
    +    // if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.');
    +    // if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
    +    // if (webos) os.webos = true, os.version = webos[2];
    +    // if (touchpad) os.touchpad = true;
    +    // if (blackberry) os.blackberry = true, os.version = blackberry[2];
    +    // if (bb10) os.bb10 = true, os.version = bb10[2];
    +    // if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2];
    +    // if (playbook) browser.playbook = true;
    +    // if (kindle) os.kindle = true, os.version = kindle[1];
    +    // if (silk) browser.silk = true, browser.version = silk[1];
    +    // if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true;
    +    // if (chrome) browser.chrome = true, browser.version = chrome[1];
    +    if (firefox) {
    +        browser.firefox = true;
    +        browser.version = firefox[1];
    +    }
    +    // if (safari && (ua.match(/Safari/) || !!os.ios)) browser.safari = true;
    +    // if (webview) browser.webview = true;
    +
    +    if (ie) {
    +        browser.ie = true;
    +        browser.version = ie[1];
    +    }
    +
    +    if (edge) {
    +        browser.edge = true;
    +        browser.version = edge[1];
    +    }
    +
    +    // It is difficult to detect WeChat in Win Phone precisely, because ua can
    +    // not be set on win phone. So we do not consider Win Phone.
    +    if (weChat) {
    +        browser.weChat = true;
    +    }
    +
    +    // os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) ||
    +    //     (firefox && ua.match(/Tablet/)) || (ie && !ua.match(/Phone/) && ua.match(/Touch/)));
    +    // os.phone  = !!(!os.tablet && !os.ipod && (android || iphone || webos ||
    +    //     (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) ||
    +    //     (firefox && ua.match(/Mobile/)) || (ie && ua.match(/Touch/))));
    +
    +    return {
    +        browser: browser,
    +        os: os,
    +        node: false,
    +        // 原生canvas支持,改极端点了
    +        // canvasSupported : !(browser.ie && parseFloat(browser.version) < 9)
    +        canvasSupported: !!document.createElement('canvas').getContext,
    +        svgSupported: typeof SVGRect !== 'undefined',
    +        // @see <http://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript>
    +        // works on most browsers
    +        // IE10/11 does not support touch event, and MS Edge supports them but not by
    +        // default, so we dont check navigator.maxTouchPoints for them here.
    +        touchEventsSupported: 'ontouchstart' in window && !browser.ie && !browser.edge,
    +        // <http://caniuse.com/#search=pointer%20event>.
    +        pointerEventsSupported: 'onpointerdown' in window
    +            // Firefox supports pointer but not by default, only MS browsers are reliable on pointer
    +            // events currently. So we dont use that on other browsers unless tested sufficiently.
    +            // Although IE 10 supports pointer event, it use old style and is different from the
    +            // standard. So we exclude that. (IE 10 is hardly used on touch device)
    +            && (browser.edge || (browser.ie && browser.version >= 11))
    +    };
    +}
    +
    +/**
    + * @module zrender/core/util
    + */
    +
    +// 用于处理merge时无法遍历Date等对象的问题
    +var BUILTIN_OBJECT = {
    +    '[object Function]': 1,
    +    '[object RegExp]': 1,
    +    '[object Date]': 1,
    +    '[object Error]': 1,
    +    '[object CanvasGradient]': 1,
    +    '[object CanvasPattern]': 1,
    +    // For node-canvas
    +    '[object Image]': 1,
    +    '[object Canvas]': 1
    +};
    +
    +var TYPED_ARRAY = {
    +    '[object Int8Array]': 1,
    +    '[object Uint8Array]': 1,
    +    '[object Uint8ClampedArray]': 1,
    +    '[object Int16Array]': 1,
    +    '[object Uint16Array]': 1,
    +    '[object Int32Array]': 1,
    +    '[object Uint32Array]': 1,
    +    '[object Float32Array]': 1,
    +    '[object Float64Array]': 1
    +};
    +
    +var objToString = Object.prototype.toString;
    +
    +var arrayProto = Array.prototype;
    +var nativeForEach = arrayProto.forEach;
    +var nativeFilter = arrayProto.filter;
    +var nativeSlice = arrayProto.slice;
    +var nativeMap = arrayProto.map;
    +var nativeReduce = arrayProto.reduce;
    +
    +// Avoid assign to an exported variable, for transforming to cjs.
    +var methods = {};
    +
    +function $override(name, fn) {
    +    methods[name] = fn;
    +}
    +
    +/**
    + * Those data types can be cloned:
    + *     Plain object, Array, TypedArray, number, string, null, undefined.
    + * Those data types will be assgined using the orginal data:
    + *     BUILTIN_OBJECT
    + * Instance of user defined class will be cloned to a plain object, without
    + * properties in prototype.
    + * Other data types is not supported (not sure what will happen).
    + *
    + * Caution: do not support clone Date, for performance consideration.
    + * (There might be a large number of date in `series.data`).
    + * So date should not be modified in and out of echarts.
    + *
    + * @param {*} source
    + * @return {*} new
    + */
    +function clone(source) {
    +    if (source == null || typeof source != 'object') {
    +        return source;
    +    }
    +
    +    var result = source;
    +    var typeStr = objToString.call(source);
    +
    +    if (typeStr === '[object Array]') {
    +        result = [];
    +        for (var i = 0, len = source.length; i < len; i++) {
    +            result[i] = clone(source[i]);
    +        }
    +    }
    +    else if (TYPED_ARRAY[typeStr]) {
    +        var Ctor = source.constructor;
    +        if (source.constructor.from) {
    +            result = Ctor.from(source);
    +        }
    +        else {
    +            result = new Ctor(source.length);
    +            for (var i = 0, len = source.length; i < len; i++) {
    +                result[i] = clone(source[i]);
    +            }
    +        }
    +    }
    +    else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {
    +        result = {};
    +        for (var key in source) {
    +            if (source.hasOwnProperty(key)) {
    +                result[key] = clone(source[key]);
    +            }
    +        }
    +    }
    +
    +    return result;
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} target
    + * @param {*} source
    + * @param {boolean} [overwrite=false]
    + */
    +function merge(target, source, overwrite) {
    +    // We should escapse that source is string
    +    // and enter for ... in ...
    +    if (!isObject(source) || !isObject(target)) {
    +        return overwrite ? clone(source) : target;
    +    }
    +
    +    for (var key in source) {
    +        if (source.hasOwnProperty(key)) {
    +            var targetProp = target[key];
    +            var sourceProp = source[key];
    +
    +            if (isObject(sourceProp)
    +                && isObject(targetProp)
    +                && !isArray(sourceProp)
    +                && !isArray(targetProp)
    +                && !isDom(sourceProp)
    +                && !isDom(targetProp)
    +                && !isBuiltInObject(sourceProp)
    +                && !isBuiltInObject(targetProp)
    +                && !isPrimitive(sourceProp)
    +                && !isPrimitive(targetProp)
    +            ) {
    +                // 如果需要递归覆盖,就递归调用merge
    +                merge(targetProp, sourceProp, overwrite);
    +            }
    +            else if (overwrite || !(key in target)) {
    +                // 否则只处理overwrite为true,或者在目标对象中没有此属性的情况
    +                // NOTE,在 target[key] 不存在的时候也是直接覆盖
    +                target[key] = clone(source[key], true);
    +            }
    +        }
    +    }
    +
    +    return target;
    +}
    +
    +/**
    + * @param {Array} targetAndSources The first item is target, and the rests are source.
    + * @param {boolean} [overwrite=false]
    + * @return {*} target
    + */
    +function mergeAll(targetAndSources, overwrite) {
    +    var result = targetAndSources[0];
    +    for (var i = 1, len = targetAndSources.length; i < len; i++) {
    +        result = merge(result, targetAndSources[i], overwrite);
    +    }
    +    return result;
    +}
    +
    +/**
    + * @param {*} target
    + * @param {*} source
    + * @memberOf module:zrender/core/util
    + */
    +function extend(target, source) {
    +    for (var key in source) {
    +        if (source.hasOwnProperty(key)) {
    +            target[key] = source[key];
    +        }
    +    }
    +    return target;
    +}
    +
    +/**
    + * @param {*} target
    + * @param {*} source
    + * @param {boolean} [overlay=false]
    + * @memberOf module:zrender/core/util
    + */
    +function defaults(target, source, overlay) {
    +    for (var key in source) {
    +        if (source.hasOwnProperty(key)
    +            && (overlay ? source[key] != null : target[key] == null)
    +        ) {
    +            target[key] = source[key];
    +        }
    +    }
    +    return target;
    +}
    +
    +var createCanvas = function () {
    +    return methods.createCanvas();
    +};
    +
    +methods.createCanvas = function () {
    +    return document.createElement('canvas');
    +};
    +
    +// FIXME
    +var _ctx;
    +
    +function getContext() {
    +    if (!_ctx) {
    +        // Use util.createCanvas instead of createCanvas
    +        // because createCanvas may be overwritten in different environment
    +        _ctx = createCanvas().getContext('2d');
    +    }
    +    return _ctx;
    +}
    +
    +/**
    + * 查询数组中元素的index
    + * @memberOf module:zrender/core/util
    + */
    +function indexOf(array, value) {
    +    if (array) {
    +        if (array.indexOf) {
    +            return array.indexOf(value);
    +        }
    +        for (var i = 0, len = array.length; i < len; i++) {
    +            if (array[i] === value) {
    +                return i;
    +            }
    +        }
    +    }
    +    return -1;
    +}
    +
    +/**
    + * 构造类继承关系
    + *
    + * @memberOf module:zrender/core/util
    + * @param {Function} clazz 源类
    + * @param {Function} baseClazz 基类
    + */
    +function inherits(clazz, baseClazz) {
    +    var clazzPrototype = clazz.prototype;
    +    function F() {}
    +    F.prototype = baseClazz.prototype;
    +    clazz.prototype = new F();
    +
    +    for (var prop in clazzPrototype) {
    +        clazz.prototype[prop] = clazzPrototype[prop];
    +    }
    +    clazz.prototype.constructor = clazz;
    +    clazz.superClass = baseClazz;
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {Object|Function} target
    + * @param {Object|Function} sorce
    + * @param {boolean} overlay
    + */
    +function mixin(target, source, overlay) {
    +    target = 'prototype' in target ? target.prototype : target;
    +    source = 'prototype' in source ? source.prototype : source;
    +
    +    defaults(target, source, overlay);
    +}
    +
    +/**
    + * Consider typed array.
    + * @param {Array|TypedArray} data
    + */
    +function isArrayLike(data) {
    +    if (! data) {
    +        return;
    +    }
    +    if (typeof data == 'string') {
    +        return false;
    +    }
    +    return typeof data.length == 'number';
    +}
    +
    +/**
    + * 数组或对象遍历
    + * @memberOf module:zrender/core/util
    + * @param {Object|Array} obj
    + * @param {Function} cb
    + * @param {*} [context]
    + */
    +function each$1(obj, cb, context) {
    +    if (!(obj && cb)) {
    +        return;
    +    }
    +    if (obj.forEach && obj.forEach === nativeForEach) {
    +        obj.forEach(cb, context);
    +    }
    +    else if (obj.length === +obj.length) {
    +        for (var i = 0, len = obj.length; i < len; i++) {
    +            cb.call(context, obj[i], i, obj);
    +        }
    +    }
    +    else {
    +        for (var key in obj) {
    +            if (obj.hasOwnProperty(key)) {
    +                cb.call(context, obj[key], key, obj);
    +            }
    +        }
    +    }
    +}
    +
    +/**
    + * 数组映射
    + * @memberOf module:zrender/core/util
    + * @param {Array} obj
    + * @param {Function} cb
    + * @param {*} [context]
    + * @return {Array}
    + */
    +function map(obj, cb, context) {
    +    if (!(obj && cb)) {
    +        return;
    +    }
    +    if (obj.map && obj.map === nativeMap) {
    +        return obj.map(cb, context);
    +    }
    +    else {
    +        var result = [];
    +        for (var i = 0, len = obj.length; i < len; i++) {
    +            result.push(cb.call(context, obj[i], i, obj));
    +        }
    +        return result;
    +    }
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {Array} obj
    + * @param {Function} cb
    + * @param {Object} [memo]
    + * @param {*} [context]
    + * @return {Array}
    + */
    +function reduce(obj, cb, memo, context) {
    +    if (!(obj && cb)) {
    +        return;
    +    }
    +    if (obj.reduce && obj.reduce === nativeReduce) {
    +        return obj.reduce(cb, memo, context);
    +    }
    +    else {
    +        for (var i = 0, len = obj.length; i < len; i++) {
    +            memo = cb.call(context, memo, obj[i], i, obj);
    +        }
    +        return memo;
    +    }
    +}
    +
    +/**
    + * 数组过滤
    + * @memberOf module:zrender/core/util
    + * @param {Array} obj
    + * @param {Function} cb
    + * @param {*} [context]
    + * @return {Array}
    + */
    +function filter(obj, cb, context) {
    +    if (!(obj && cb)) {
    +        return;
    +    }
    +    if (obj.filter && obj.filter === nativeFilter) {
    +        return obj.filter(cb, context);
    +    }
    +    else {
    +        var result = [];
    +        for (var i = 0, len = obj.length; i < len; i++) {
    +            if (cb.call(context, obj[i], i, obj)) {
    +                result.push(obj[i]);
    +            }
    +        }
    +        return result;
    +    }
    +}
    +
    +/**
    + * 数组项查找
    + * @memberOf module:zrender/core/util
    + * @param {Array} obj
    + * @param {Function} cb
    + * @param {*} [context]
    + * @return {*}
    + */
    +function find(obj, cb, context) {
    +    if (!(obj && cb)) {
    +        return;
    +    }
    +    for (var i = 0, len = obj.length; i < len; i++) {
    +        if (cb.call(context, obj[i], i, obj)) {
    +            return obj[i];
    +        }
    +    }
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {Function} func
    + * @param {*} context
    + * @return {Function}
    + */
    +function bind(func, context) {
    +    var args = nativeSlice.call(arguments, 2);
    +    return function () {
    +        return func.apply(context, args.concat(nativeSlice.call(arguments)));
    +    };
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {Function} func
    + * @return {Function}
    + */
    +function curry(func) {
    +    var args = nativeSlice.call(arguments, 1);
    +    return function () {
    +        return func.apply(this, args.concat(nativeSlice.call(arguments)));
    +    };
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} value
    + * @return {boolean}
    + */
    +function isArray(value) {
    +    return objToString.call(value) === '[object Array]';
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} value
    + * @return {boolean}
    + */
    +function isFunction(value) {
    +    return typeof value === 'function';
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} value
    + * @return {boolean}
    + */
    +function isString(value) {
    +    return objToString.call(value) === '[object String]';
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} value
    + * @return {boolean}
    + */
    +function isObject(value) {
    +    // Avoid a V8 JIT bug in Chrome 19-20.
    +    // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
    +    var type = typeof value;
    +    return type === 'function' || (!!value && type == 'object');
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} value
    + * @return {boolean}
    + */
    +function isBuiltInObject(value) {
    +    return !!BUILTIN_OBJECT[objToString.call(value)];
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {*} value
    + * @return {boolean}
    + */
    +function isDom(value) {
    +    return typeof value === 'object'
    +        && typeof value.nodeType === 'number'
    +        && typeof value.ownerDocument === 'object';
    +}
    +
    +/**
    + * Whether is exactly NaN. Notice isNaN('a') returns true.
    + * @param {*} value
    + * @return {boolean}
    + */
    +function eqNaN(value) {
    +    return value !== value;
    +}
    +
    +/**
    + * If value1 is not null, then return value1, otherwise judget rest of values.
    + * Low performance.
    + * @memberOf module:zrender/core/util
    + * @return {*} Final value
    + */
    +function retrieve(values) {
    +    for (var i = 0, len = arguments.length; i < len; i++) {
    +        if (arguments[i] != null) {
    +            return arguments[i];
    +        }
    +    }
    +}
    +
    +function retrieve2(value0, value1) {
    +    return value0 != null
    +        ? value0
    +        : value1;
    +}
    +
    +function retrieve3(value0, value1, value2) {
    +    return value0 != null
    +        ? value0
    +        : value1 != null
    +        ? value1
    +        : value2;
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {Array} arr
    + * @param {number} startIndex
    + * @param {number} endIndex
    + * @return {Array}
    + */
    +function slice() {
    +    return Function.call.apply(nativeSlice, arguments);
    +}
    +
    +/**
    + * Normalize css liked array configuration
    + * e.g.
    + *  3 => [3, 3, 3, 3]
    + *  [4, 2] => [4, 2, 4, 2]
    + *  [4, 3, 2] => [4, 3, 2, 3]
    + * @param {number|Array.<number>} val
    + * @return {Array.<number>}
    + */
    +function normalizeCssArray(val) {
    +    if (typeof (val) === 'number') {
    +        return [val, val, val, val];
    +    }
    +    var len = val.length;
    +    if (len === 2) {
    +        // vertical | horizontal
    +        return [val[0], val[1], val[0], val[1]];
    +    }
    +    else if (len === 3) {
    +        // top | horizontal | bottom
    +        return [val[0], val[1], val[2], val[1]];
    +    }
    +    return val;
    +}
    +
    +/**
    + * @memberOf module:zrender/core/util
    + * @param {boolean} condition
    + * @param {string} message
    + */
    +function assert(condition, message) {
    +    if (!condition) {
    +        throw new Error(message);
    +    }
    +}
    +
    +var primitiveKey = '__ec_primitive__';
    +/**
    + * Set an object as primitive to be ignored traversing children in clone or merge
    + */
    +function setAsPrimitive(obj) {
    +    obj[primitiveKey] = true;
    +}
    +
    +function isPrimitive(obj) {
    +    return obj[primitiveKey];
    +}
    +
    +/**
    + * @constructor
    + * @param {Object} obj Only apply `ownProperty`.
    + */
    +function HashMap(obj) {
    +    obj && each$1(obj, function (value, key) {
    +        this.set(key, value);
    +    }, this);
    +}
    +
    +// Add prefix to avoid conflict with Object.prototype.
    +var HASH_MAP_PREFIX = '_ec_';
    +var HASH_MAP_PREFIX_LENGTH = 4;
    +
    +HashMap.prototype = {
    +    constructor: HashMap,
    +    // Do not provide `has` method to avoid defining what is `has`.
    +    // (We usually treat `null` and `undefined` as the same, different
    +    // from ES6 Map).
    +    get: function (key) {
    +        return this[HASH_MAP_PREFIX + key];
    +    },
    +    set: function (key, value) {
    +        this[HASH_MAP_PREFIX + key] = value;
    +        // Comparing with invocation chaining, `return value` is more commonly
    +        // used in this case: `var someVal = map.set('a', genVal());`
    +        return value;
    +    },
    +    // Although util.each can be performed on this hashMap directly, user
    +    // should not use the exposed keys, who are prefixed.
    +    each: function (cb, context) {
    +        context !== void 0 && (cb = bind(cb, context));
    +        for (var prefixedKey in this) {
    +            this.hasOwnProperty(prefixedKey)
    +                && cb(this[prefixedKey], prefixedKey.slice(HASH_MAP_PREFIX_LENGTH));
    +        }
    +    },
    +    // Do not use this method if performance sensitive.
    +    removeKey: function (key) {
    +        delete this[HASH_MAP_PREFIX + key];
    +    }
    +};
    +
    +function createHashMap(obj) {
    +    return new HashMap(obj);
    +}
    +
    +function noop() {}
    +
    +
    +var zrUtil = (Object.freeze || Object)({
    +	$override: $override,
    +	clone: clone,
    +	merge: merge,
    +	mergeAll: mergeAll,
    +	extend: extend,
    +	defaults: defaults,
    +	createCanvas: createCanvas,
    +	getContext: getContext,
    +	indexOf: indexOf,
    +	inherits: inherits,
    +	mixin: mixin,
    +	isArrayLike: isArrayLike,
    +	each: each$1,
    +	map: map,
    +	reduce: reduce,
    +	filter: filter,
    +	find: find,
    +	bind: bind,
    +	curry: curry,
    +	isArray: isArray,
    +	isFunction: isFunction,
    +	isString: isString,
    +	isObject: isObject,
    +	isBuiltInObject: isBuiltInObject,
    +	isDom: isDom,
    +	eqNaN: eqNaN,
    +	retrieve: retrieve,
    +	retrieve2: retrieve2,
    +	retrieve3: retrieve3,
    +	slice: slice,
    +	normalizeCssArray: normalizeCssArray,
    +	assert: assert,
    +	setAsPrimitive: setAsPrimitive,
    +	isPrimitive: isPrimitive,
    +	createHashMap: createHashMap,
    +	noop: noop
    +});
    +
    +var ArrayCtor = typeof Float32Array === 'undefined'
    +    ? Array
    +    : Float32Array;
    +
    +/**
    + * 创建一个向量
    + * @param {number} [x=0]
    + * @param {number} [y=0]
    + * @return {Vector2}
    + */
    +function create(x, y) {
    +    var out = new ArrayCtor(2);
    +    if (x == null) {
    +        x = 0;
    +    }
    +    if (y == null) {
    +        y = 0;
    +    }
    +    out[0] = x;
    +    out[1] = y;
    +    return out;
    +}
    +
    +/**
    + * 复制向量数据
    + * @param {Vector2} out
    + * @param {Vector2} v
    + * @return {Vector2}
    + */
    +function copy(out, v) {
    +    out[0] = v[0];
    +    out[1] = v[1];
    +    return out;
    +}
    +
    +/**
    + * 克隆一个向量
    + * @param {Vector2} v
    + * @return {Vector2}
    + */
    +function clone$1(v) {
    +    var out = new ArrayCtor(2);
    +    out[0] = v[0];
    +    out[1] = v[1];
    +    return out;
    +}
    +
    +/**
    + * 设置向量的两个项
    + * @param {Vector2} out
    + * @param {number} a
    + * @param {number} b
    + * @return {Vector2} 结果
    + */
    +function set(out, a, b) {
    +    out[0] = a;
    +    out[1] = b;
    +    return out;
    +}
    +
    +/**
    + * 向量相加
    + * @param {Vector2} out
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + */
    +function add(out, v1, v2) {
    +    out[0] = v1[0] + v2[0];
    +    out[1] = v1[1] + v2[1];
    +    return out;
    +}
    +
    +/**
    + * 向量缩放后相加
    + * @param {Vector2} out
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + * @param {number} a
    + */
    +function scaleAndAdd(out, v1, v2, a) {
    +    out[0] = v1[0] + v2[0] * a;
    +    out[1] = v1[1] + v2[1] * a;
    +    return out;
    +}
    +
    +/**
    + * 向量相减
    + * @param {Vector2} out
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + */
    +function sub(out, v1, v2) {
    +    out[0] = v1[0] - v2[0];
    +    out[1] = v1[1] - v2[1];
    +    return out;
    +}
    +
    +/**
    + * 向量长度
    + * @param {Vector2} v
    + * @return {number}
    + */
    +function len(v) {
    +    return Math.sqrt(lenSquare(v));
    +}
    +var length = len; // jshint ignore:line
    +
    +/**
    + * 向量长度平方
    + * @param {Vector2} v
    + * @return {number}
    + */
    +function lenSquare(v) {
    +    return v[0] * v[0] + v[1] * v[1];
    +}
    +var lengthSquare = lenSquare;
    +
    +/**
    + * 向量乘法
    + * @param {Vector2} out
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + */
    +function mul(out, v1, v2) {
    +    out[0] = v1[0] * v2[0];
    +    out[1] = v1[1] * v2[1];
    +    return out;
    +}
    +
    +/**
    + * 向量除法
    + * @param {Vector2} out
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + */
    +function div(out, v1, v2) {
    +    out[0] = v1[0] / v2[0];
    +    out[1] = v1[1] / v2[1];
    +    return out;
    +}
    +
    +/**
    + * 向量点乘
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + * @return {number}
    + */
    +function dot(v1, v2) {
    +    return v1[0] * v2[0] + v1[1] * v2[1];
    +}
    +
    +/**
    + * 向量缩放
    + * @param {Vector2} out
    + * @param {Vector2} v
    + * @param {number} s
    + */
    +function scale(out, v, s) {
    +    out[0] = v[0] * s;
    +    out[1] = v[1] * s;
    +    return out;
    +}
    +
    +/**
    + * 向量归一化
    + * @param {Vector2} out
    + * @param {Vector2} v
    + */
    +function normalize(out, v) {
    +    var d = len(v);
    +    if (d === 0) {
    +        out[0] = 0;
    +        out[1] = 0;
    +    }
    +    else {
    +        out[0] = v[0] / d;
    +        out[1] = v[1] / d;
    +    }
    +    return out;
    +}
    +
    +/**
    + * 计算向量间距离
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + * @return {number}
    + */
    +function distance(v1, v2) {
    +    return Math.sqrt(
    +        (v1[0] - v2[0]) * (v1[0] - v2[0])
    +        + (v1[1] - v2[1]) * (v1[1] - v2[1])
    +    );
    +}
    +var dist = distance;
    +
    +/**
    + * 向量距离平方
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + * @return {number}
    + */
    +function distanceSquare(v1, v2) {
    +    return (v1[0] - v2[0]) * (v1[0] - v2[0])
    +        + (v1[1] - v2[1]) * (v1[1] - v2[1]);
    +}
    +var distSquare = distanceSquare;
    +
    +/**
    + * 求负向量
    + * @param {Vector2} out
    + * @param {Vector2} v
    + */
    +function negate(out, v) {
    +    out[0] = -v[0];
    +    out[1] = -v[1];
    +    return out;
    +}
    +
    +/**
    + * 插值两个点
    + * @param {Vector2} out
    + * @param {Vector2} v1
    + * @param {Vector2} v2
    + * @param {number} t
    + */
    +function lerp(out, v1, v2, t) {
    +    out[0] = v1[0] + t * (v2[0] - v1[0]);
    +    out[1] = v1[1] + t * (v2[1] - v1[1]);
    +    return out;
    +}
    +
    +/**
    + * 矩阵左乘向量
    + * @param {Vector2} out
    + * @param {Vector2} v
    + * @param {Vector2} m
    + */
    +function applyTransform(out, v, m) {
    +    var x = v[0];
    +    var y = v[1];
    +    out[0] = m[0] * x + m[2] * y + m[4];
    +    out[1] = m[1] * x + m[3] * y + m[5];
    +    return out;
    +}
    +
    +/**
    + * 求两个向量最小值
    + * @param  {Vector2} out
    + * @param  {Vector2} v1
    + * @param  {Vector2} v2
    + */
    +function min(out, v1, v2) {
    +    out[0] = Math.min(v1[0], v2[0]);
    +    out[1] = Math.min(v1[1], v2[1]);
    +    return out;
    +}
    +
    +/**
    + * 求两个向量最大值
    + * @param  {Vector2} out
    + * @param  {Vector2} v1
    + * @param  {Vector2} v2
    + */
    +function max(out, v1, v2) {
    +    out[0] = Math.max(v1[0], v2[0]);
    +    out[1] = Math.max(v1[1], v2[1]);
    +    return out;
    +}
    +
    +
    +var vector = (Object.freeze || Object)({
    +	create: create,
    +	copy: copy,
    +	clone: clone$1,
    +	set: set,
    +	add: add,
    +	scaleAndAdd: scaleAndAdd,
    +	sub: sub,
    +	len: len,
    +	length: length,
    +	lenSquare: lenSquare,
    +	lengthSquare: lengthSquare,
    +	mul: mul,
    +	div: div,
    +	dot: dot,
    +	scale: scale,
    +	normalize: normalize,
    +	distance: distance,
    +	dist: dist,
    +	distanceSquare: distanceSquare,
    +	distSquare: distSquare,
    +	negate: negate,
    +	lerp: lerp,
    +	applyTransform: applyTransform,
    +	min: min,
    +	max: max
    +});
    +
    +// TODO Draggable for group
    +// FIXME Draggable on element which has parent rotation or scale
    +function Draggable() {
    +
    +    this.on('mousedown', this._dragStart, this);
    +    this.on('mousemove', this._drag, this);
    +    this.on('mouseup', this._dragEnd, this);
    +    this.on('globalout', this._dragEnd, this);
    +    // this._dropTarget = null;
    +    // this._draggingTarget = null;
    +
    +    // this._x = 0;
    +    // this._y = 0;
    +}
    +
    +Draggable.prototype = {
    +
    +    constructor: Draggable,
    +
    +    _dragStart: function (e) {
    +        var draggingTarget = e.target;
    +        if (draggingTarget && draggingTarget.draggable) {
    +            this._draggingTarget = draggingTarget;
    +            draggingTarget.dragging = true;
    +            this._x = e.offsetX;
    +            this._y = e.offsetY;
    +
    +            this.dispatchToElement(param(draggingTarget, e), 'dragstart', e.event);
    +        }
    +    },
    +
    +    _drag: function (e) {
    +        var draggingTarget = this._draggingTarget;
    +        if (draggingTarget) {
    +
    +            var x = e.offsetX;
    +            var y = e.offsetY;
    +
    +            var dx = x - this._x;
    +            var dy = y - this._y;
    +            this._x = x;
    +            this._y = y;
    +
    +            draggingTarget.drift(dx, dy, e);
    +            this.dispatchToElement(param(draggingTarget, e), 'drag', e.event);
    +
    +            var dropTarget = this.findHover(x, y, draggingTarget).target;
    +            var lastDropTarget = this._dropTarget;
    +            this._dropTarget = dropTarget;
    +
    +            if (draggingTarget !== dropTarget) {
    +                if (lastDropTarget && dropTarget !== lastDropTarget) {
    +                    this.dispatchToElement(param(lastDropTarget, e), 'dragleave', e.event);
    +                }
    +                if (dropTarget && dropTarget !== lastDropTarget) {
    +                    this.dispatchToElement(param(dropTarget, e), 'dragenter', e.event);
    +                }
    +            }
    +        }
    +    },
    +
    +    _dragEnd: function (e) {
    +        var draggingTarget = this._draggingTarget;
    +
    +        if (draggingTarget) {
    +            draggingTarget.dragging = false;
    +        }
    +
    +        this.dispatchToElement(param(draggingTarget, e), 'dragend', e.event);
    +
    +        if (this._dropTarget) {
    +            this.dispatchToElement(param(this._dropTarget, e), 'drop', e.event);
    +        }
    +
    +        this._draggingTarget = null;
    +        this._dropTarget = null;
    +    }
    +
    +};
    +
    +function param(target, e) {
    +    return {target: target, topTarget: e && e.topTarget};
    +}
    +
    +/**
    + * 事件扩展
    + * @module zrender/mixin/Eventful
    + * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + *         pissang (https://www.github.com/pissang)
    + */
    +
    +var arrySlice = Array.prototype.slice;
    +
    +/**
    + * 事件分发器
    + * @alias module:zrender/mixin/Eventful
    + * @constructor
    + */
    +var Eventful = function () {
    +    this._$handlers = {};
    +};
    +
    +Eventful.prototype = {
    +
    +    constructor: Eventful,
    +
    +    /**
    +     * 单次触发绑定,trigger后销毁
    +     *
    +     * @param {string} event 事件名
    +     * @param {Function} handler 响应函数
    +     * @param {Object} context
    +     */
    +    one: function (event, handler, context) {
    +        var _h = this._$handlers;
    +
    +        if (!handler || !event) {
    +            return this;
    +        }
    +
    +        if (!_h[event]) {
    +            _h[event] = [];
    +        }
    +
    +        for (var i = 0; i < _h[event].length; i++) {
    +            if (_h[event][i].h === handler) {
    +                return this;
    +            }
    +        }
    +
    +        _h[event].push({
    +            h: handler,
    +            one: true,
    +            ctx: context || this
    +        });
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 绑定事件
    +     * @param {string} event 事件名
    +     * @param {Function} handler 事件处理函数
    +     * @param {Object} [context]
    +     */
    +    on: function (event, handler, context) {
    +        var _h = this._$handlers;
    +
    +        if (!handler || !event) {
    +            return this;
    +        }
    +
    +        if (!_h[event]) {
    +            _h[event] = [];
    +        }
    +
    +        for (var i = 0; i < _h[event].length; i++) {
    +            if (_h[event][i].h === handler) {
    +                return this;
    +            }
    +        }
    +
    +        _h[event].push({
    +            h: handler,
    +            one: false,
    +            ctx: context || this
    +        });
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 是否绑定了事件
    +     * @param  {string}  event
    +     * @return {boolean}
    +     */
    +    isSilent: function (event) {
    +        var _h = this._$handlers;
    +        return _h[event] && _h[event].length;
    +    },
    +
    +    /**
    +     * 解绑事件
    +     * @param {string} event 事件名
    +     * @param {Function} [handler] 事件处理函数
    +     */
    +    off: function (event, handler) {
    +        var _h = this._$handlers;
    +
    +        if (!event) {
    +            this._$handlers = {};
    +            return this;
    +        }
    +
    +        if (handler) {
    +            if (_h[event]) {
    +                var newList = [];
    +                for (var i = 0, l = _h[event].length; i < l; i++) {
    +                    if (_h[event][i]['h'] != handler) {
    +                        newList.push(_h[event][i]);
    +                    }
    +                }
    +                _h[event] = newList;
    +            }
    +
    +            if (_h[event] && _h[event].length === 0) {
    +                delete _h[event];
    +            }
    +        }
    +        else {
    +            delete _h[event];
    +        }
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 事件分发
    +     *
    +     * @param {string} type 事件类型
    +     */
    +    trigger: function (type) {
    +        if (this._$handlers[type]) {
    +            var args = arguments;
    +            var argLen = args.length;
    +
    +            if (argLen > 3) {
    +                args = arrySlice.call(args, 1);
    +            }
    +
    +            var _h = this._$handlers[type];
    +            var len = _h.length;
    +            for (var i = 0; i < len;) {
    +                // Optimize advise from backbone
    +                switch (argLen) {
    +                    case 1:
    +                        _h[i]['h'].call(_h[i]['ctx']);
    +                        break;
    +                    case 2:
    +                        _h[i]['h'].call(_h[i]['ctx'], args[1]);
    +                        break;
    +                    case 3:
    +                        _h[i]['h'].call(_h[i]['ctx'], args[1], args[2]);
    +                        break;
    +                    default:
    +                        // have more than 2 given arguments
    +                        _h[i]['h'].apply(_h[i]['ctx'], args);
    +                        break;
    +                }
    +
    +                if (_h[i]['one']) {
    +                    _h.splice(i, 1);
    +                    len--;
    +                }
    +                else {
    +                    i++;
    +                }
    +            }
    +        }
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 带有context的事件分发, 最后一个参数是事件回调的context
    +     * @param {string} type 事件类型
    +     */
    +    triggerWithContext: function (type) {
    +        if (this._$handlers[type]) {
    +            var args = arguments;
    +            var argLen = args.length;
    +
    +            if (argLen > 4) {
    +                args = arrySlice.call(args, 1, args.length - 1);
    +            }
    +            var ctx = args[args.length - 1];
    +
    +            var _h = this._$handlers[type];
    +            var len = _h.length;
    +            for (var i = 0; i < len;) {
    +                // Optimize advise from backbone
    +                switch (argLen) {
    +                    case 1:
    +                        _h[i]['h'].call(ctx);
    +                        break;
    +                    case 2:
    +                        _h[i]['h'].call(ctx, args[1]);
    +                        break;
    +                    case 3:
    +                        _h[i]['h'].call(ctx, args[1], args[2]);
    +                        break;
    +                    default:
    +                        // have more than 2 given arguments
    +                        _h[i]['h'].apply(ctx, args);
    +                        break;
    +                }
    +
    +                if (_h[i]['one']) {
    +                    _h.splice(i, 1);
    +                    len--;
    +                }
    +                else {
    +                    i++;
    +                }
    +            }
    +        }
    +
    +        return this;
    +    }
    +};
    +
    +/**
    + * Handler
    + * @module zrender/Handler
    + * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + *         errorrik (errorrik@gmail.com)
    + *         pissang (shenyi.914@gmail.com)
    + */
    +
    +var SILENT = 'silent';
    +
    +function makeEventPacket(eveType, targetInfo, event) {
    +    return {
    +        type: eveType,
    +        event: event,
    +        // target can only be an element that is not silent.
    +        target: targetInfo.target,
    +        // topTarget can be a silent element.
    +        topTarget: targetInfo.topTarget,
    +        cancelBubble: false,
    +        offsetX: event.zrX,
    +        offsetY: event.zrY,
    +        gestureEvent: event.gestureEvent,
    +        pinchX: event.pinchX,
    +        pinchY: event.pinchY,
    +        pinchScale: event.pinchScale,
    +        wheelDelta: event.zrDelta,
    +        zrByTouch: event.zrByTouch,
    +        which: event.which
    +    };
    +}
    +
    +function EmptyProxy () {}
    +EmptyProxy.prototype.dispose = function () {};
    +
    +var handlerNames = [
    +    'click', 'dblclick', 'mousewheel', 'mouseout',
    +    'mouseup', 'mousedown', 'mousemove', 'contextmenu'
    +];
    +/**
    + * @alias module:zrender/Handler
    + * @constructor
    + * @extends module:zrender/mixin/Eventful
    + * @param {module:zrender/Storage} storage Storage instance.
    + * @param {module:zrender/Painter} painter Painter instance.
    + * @param {module:zrender/dom/HandlerProxy} proxy HandlerProxy instance.
    + * @param {HTMLElement} painterRoot painter.root (not painter.getViewportRoot()).
    + */
    +var Handler = function(storage, painter, proxy, painterRoot) {
    +    Eventful.call(this);
    +
    +    this.storage = storage;
    +
    +    this.painter = painter;
    +
    +    this.painterRoot = painterRoot;
    +
    +    proxy = proxy || new EmptyProxy();
    +
    +    /**
    +     * Proxy of event. can be Dom, WebGLSurface, etc.
    +     */
    +    this.proxy = proxy;
    +
    +    // Attach handler
    +    proxy.handler = this;
    +
    +    /**
    +     * {target, topTarget, x, y}
    +     * @private
    +     * @type {Object}
    +     */
    +    this._hovered = {};
    +
    +    /**
    +     * @private
    +     * @type {Date}
    +     */
    +    this._lastTouchMoment;
    +
    +    /**
    +     * @private
    +     * @type {number}
    +     */
    +    this._lastX;
    +
    +    /**
    +     * @private
    +     * @type {number}
    +     */
    +    this._lastY;
    +
    +
    +    Draggable.call(this);
    +
    +    each$1(handlerNames, function (name) {
    +        proxy.on && proxy.on(name, this[name], this);
    +    }, this);
    +};
    +
    +Handler.prototype = {
    +
    +    constructor: Handler,
    +
    +    mousemove: function (event) {
    +        var x = event.zrX;
    +        var y = event.zrY;
    +
    +        var lastHovered = this._hovered;
    +        var lastHoveredTarget = lastHovered.target;
    +
    +        // If lastHoveredTarget is removed from zr (detected by '__zr') by some API call
    +        // (like 'setOption' or 'dispatchAction') in event handlers, we should find
    +        // lastHovered again here. Otherwise 'mouseout' can not be triggered normally.
    +        // See #6198.
    +        if (lastHoveredTarget && !lastHoveredTarget.__zr) {
    +            lastHovered = this.findHover(lastHovered.x, lastHovered.y);
    +            lastHoveredTarget = lastHovered.target;
    +        }
    +
    +        var hovered = this._hovered = this.findHover(x, y);
    +        var hoveredTarget = hovered.target;
    +
    +        var proxy = this.proxy;
    +        proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default');
    +
    +        // Mouse out on previous hovered element
    +        if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {
    +            this.dispatchToElement(lastHovered, 'mouseout', event);
    +        }
    +
    +        // Mouse moving on one element
    +        this.dispatchToElement(hovered, 'mousemove', event);
    +
    +        // Mouse over on a new element
    +        if (hoveredTarget && hoveredTarget !== lastHoveredTarget) {
    +            this.dispatchToElement(hovered, 'mouseover', event);
    +        }
    +    },
    +
    +    mouseout: function (event) {
    +        this.dispatchToElement(this._hovered, 'mouseout', event);
    +
    +        // There might be some doms created by upper layer application
    +        // at the same level of painter.getViewportRoot() (e.g., tooltip
    +        // dom created by echarts), where 'globalout' event should not
    +        // be triggered when mouse enters these doms. (But 'mouseout'
    +        // should be triggered at the original hovered element as usual).
    +        var element = event.toElement || event.relatedTarget;
    +        var innerDom;
    +        do {
    +            element = element && element.parentNode;
    +        }
    +        while (element && element.nodeType != 9 && !(
    +            innerDom = element === this.painterRoot
    +        ));
    +
    +        !innerDom && this.trigger('globalout', {event: event});
    +    },
    +
    +    /**
    +     * Resize
    +     */
    +    resize: function (event) {
    +        this._hovered = {};
    +    },
    +
    +    /**
    +     * Dispatch event
    +     * @param {string} eventName
    +     * @param {event=} eventArgs
    +     */
    +    dispatch: function (eventName, eventArgs) {
    +        var handler = this[eventName];
    +        handler && handler.call(this, eventArgs);
    +    },
    +
    +    /**
    +     * Dispose
    +     */
    +    dispose: function () {
    +
    +        this.proxy.dispose();
    +
    +        this.storage =
    +        this.proxy =
    +        this.painter = null;
    +    },
    +
    +    /**
    +     * 设置默认的cursor style
    +     * @param {string} [cursorStyle='default'] 例如 crosshair
    +     */
    +    setCursorStyle: function (cursorStyle) {
    +        var proxy = this.proxy;
    +        proxy.setCursor && proxy.setCursor(cursorStyle);
    +    },
    +
    +    /**
    +     * 事件分发代理
    +     *
    +     * @private
    +     * @param {Object} targetInfo {target, topTarget} 目标图形元素
    +     * @param {string} eventName 事件名称
    +     * @param {Object} event 事件对象
    +     */
    +    dispatchToElement: function (targetInfo, eventName, event) {
    +        targetInfo = targetInfo || {};
    +        var el = targetInfo.target;
    +        if (el && el.silent) {
    +            return;
    +        }
    +        var eventHandler = 'on' + eventName;
    +        var eventPacket = makeEventPacket(eventName, targetInfo, event);
    +
    +        while (el) {
    +            el[eventHandler]
    +                && (eventPacket.cancelBubble = el[eventHandler].call(el, eventPacket));
    +
    +            el.trigger(eventName, eventPacket);
    +
    +            el = el.parent;
    +
    +            if (eventPacket.cancelBubble) {
    +                break;
    +            }
    +        }
    +
    +        if (!eventPacket.cancelBubble) {
    +            // 冒泡到顶级 zrender 对象
    +            this.trigger(eventName, eventPacket);
    +            // 分发事件到用户自定义层
    +            // 用户有可能在全局 click 事件中 dispose,所以需要判断下 painter 是否存在
    +            this.painter && this.painter.eachOtherLayer(function (layer) {
    +                if (typeof(layer[eventHandler]) == 'function') {
    +                    layer[eventHandler].call(layer, eventPacket);
    +                }
    +                if (layer.trigger) {
    +                    layer.trigger(eventName, eventPacket);
    +                }
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     * @param {number} x
    +     * @param {number} y
    +     * @param {module:zrender/graphic/Displayable} exclude
    +     * @return {model:zrender/Element}
    +     * @method
    +     */
    +    findHover: function(x, y, exclude) {
    +        var list = this.storage.getDisplayList();
    +        var out = {x: x, y: y};
    +
    +        for (var i = list.length - 1; i >= 0 ; i--) {
    +            var hoverCheckResult;
    +            if (list[i] !== exclude
    +                // getDisplayList may include ignored item in VML mode
    +                && !list[i].ignore
    +                && (hoverCheckResult = isHover(list[i], x, y))
    +            ) {
    +                !out.topTarget && (out.topTarget = list[i]);
    +                if (hoverCheckResult !== SILENT) {
    +                    out.target = list[i];
    +                    break;
    +                }
    +            }
    +        }
    +
    +        return out;
    +    }
    +};
    +
    +// Common handlers
    +each$1(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {
    +    Handler.prototype[name] = function (event) {
    +        // Find hover again to avoid click event is dispatched manually. Or click is triggered without mouseover
    +        var hovered = this.findHover(event.zrX, event.zrY);
    +        var hoveredTarget = hovered.target;
    +
    +        if (name === 'mousedown') {
    +            this._downEl = hoveredTarget;
    +            this._downPoint = [event.zrX, event.zrY];
    +            // In case click triggered before mouseup
    +            this._upEl = hoveredTarget;
    +        }
    +        else if (name === 'mosueup') {
    +            this._upEl = hoveredTarget;
    +        }
    +        else if (name === 'click') {
    +            if (this._downEl !== this._upEl
    +                // Original click event is triggered on the whole canvas element,
    +                // including the case that `mousedown` - `mousemove` - `mouseup`,
    +                // which should be filtered, otherwise it will bring trouble to
    +                // pan and zoom.
    +                || !this._downPoint
    +                // Arbitrary value
    +                || dist(this._downPoint, [event.zrX, event.zrY]) > 4
    +            ) {
    +                return;
    +            }
    +            this._downPoint = null;
    +        }
    +
    +        this.dispatchToElement(hovered, name, event);
    +    };
    +});
    +
    +function isHover(displayable, x, y) {
    +    if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {
    +        var el = displayable;
    +        var isSilent;
    +        while (el) {
    +            // If clipped by ancestor.
    +            // FIXME: If clipPath has neither stroke nor fill,
    +            // el.clipPath.contain(x, y) will always return false.
    +            if (el.clipPath && !el.clipPath.contain(x, y))  {
    +                return false;
    +            }
    +            if (el.silent) {
    +                isSilent = true;
    +            }
    +            el = el.parent;
    +        }
    +        return isSilent ? SILENT : true;
    +    }
    +
    +    return false;
    +}
    +
    +mixin(Handler, Eventful);
    +mixin(Handler, Draggable);
    +
    +/**
    + * 3x2矩阵操作类
    + * @exports zrender/tool/matrix
    + */
    +
    +var ArrayCtor$1 = typeof Float32Array === 'undefined'
    +    ? Array
    +   : Float32Array;
    +
    +/**
    + * 创建一个单位矩阵
    + * @return {Float32Array|Array.<number>}
    + */
    +function create$1() {
    +    var out = new ArrayCtor$1(6);
    +    identity(out);
    +
    +    return out;
    +}
    +
    +/**
    + * 设置矩阵为单位矩阵
    + * @param {Float32Array|Array.<number>} out
    + */
    +function identity(out) {
    +    out[0] = 1;
    +    out[1] = 0;
    +    out[2] = 0;
    +    out[3] = 1;
    +    out[4] = 0;
    +    out[5] = 0;
    +    return out;
    +}
    +
    +/**
    + * 复制矩阵
    + * @param {Float32Array|Array.<number>} out
    + * @param {Float32Array|Array.<number>} m
    + */
    +function copy$1(out, m) {
    +    out[0] = m[0];
    +    out[1] = m[1];
    +    out[2] = m[2];
    +    out[3] = m[3];
    +    out[4] = m[4];
    +    out[5] = m[5];
    +    return out;
    +}
    +
    +/**
    + * 矩阵相乘
    + * @param {Float32Array|Array.<number>} out
    + * @param {Float32Array|Array.<number>} m1
    + * @param {Float32Array|Array.<number>} m2
    + */
    +function mul$1(out, m1, m2) {
    +    // Consider matrix.mul(m, m2, m);
    +    // where out is the same as m2.
    +    // So use temp variable to escape error.
    +    var out0 = m1[0] * m2[0] + m1[2] * m2[1];
    +    var out1 = m1[1] * m2[0] + m1[3] * m2[1];
    +    var out2 = m1[0] * m2[2] + m1[2] * m2[3];
    +    var out3 = m1[1] * m2[2] + m1[3] * m2[3];
    +    var out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];
    +    var out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];
    +    out[0] = out0;
    +    out[1] = out1;
    +    out[2] = out2;
    +    out[3] = out3;
    +    out[4] = out4;
    +    out[5] = out5;
    +    return out;
    +}
    +
    +/**
    + * 平移变换
    + * @param {Float32Array|Array.<number>} out
    + * @param {Float32Array|Array.<number>} a
    + * @param {Float32Array|Array.<number>} v
    + */
    +function translate(out, a, v) {
    +    out[0] = a[0];
    +    out[1] = a[1];
    +    out[2] = a[2];
    +    out[3] = a[3];
    +    out[4] = a[4] + v[0];
    +    out[5] = a[5] + v[1];
    +    return out;
    +}
    +
    +/**
    + * 旋转变换
    + * @param {Float32Array|Array.<number>} out
    + * @param {Float32Array|Array.<number>} a
    + * @param {number} rad
    + */
    +function rotate(out, a, rad) {
    +    var aa = a[0];
    +    var ac = a[2];
    +    var atx = a[4];
    +    var ab = a[1];
    +    var ad = a[3];
    +    var aty = a[5];
    +    var st = Math.sin(rad);
    +    var ct = Math.cos(rad);
    +
    +    out[0] = aa * ct + ab * st;
    +    out[1] = -aa * st + ab * ct;
    +    out[2] = ac * ct + ad * st;
    +    out[3] = -ac * st + ct * ad;
    +    out[4] = ct * atx + st * aty;
    +    out[5] = ct * aty - st * atx;
    +    return out;
    +}
    +
    +/**
    + * 缩放变换
    + * @param {Float32Array|Array.<number>} out
    + * @param {Float32Array|Array.<number>} a
    + * @param {Float32Array|Array.<number>} v
    + */
    +function scale$1(out, a, v) {
    +    var vx = v[0];
    +    var vy = v[1];
    +    out[0] = a[0] * vx;
    +    out[1] = a[1] * vy;
    +    out[2] = a[2] * vx;
    +    out[3] = a[3] * vy;
    +    out[4] = a[4] * vx;
    +    out[5] = a[5] * vy;
    +    return out;
    +}
    +
    +/**
    + * 求逆矩阵
    + * @param {Float32Array|Array.<number>} out
    + * @param {Float32Array|Array.<number>} a
    + */
    +function invert(out, a) {
    +
    +    var aa = a[0];
    +    var ac = a[2];
    +    var atx = a[4];
    +    var ab = a[1];
    +    var ad = a[3];
    +    var aty = a[5];
    +
    +    var det = aa * ad - ab * ac;
    +    if (!det) {
    +        return null;
    +    }
    +    det = 1.0 / det;
    +
    +    out[0] = ad * det;
    +    out[1] = -ab * det;
    +    out[2] = -ac * det;
    +    out[3] = aa * det;
    +    out[4] = (ac * aty - ad * atx) * det;
    +    out[5] = (ab * atx - aa * aty) * det;
    +    return out;
    +}
    +
    +
    +var matrix = (Object.freeze || Object)({
    +	create: create$1,
    +	identity: identity,
    +	copy: copy$1,
    +	mul: mul$1,
    +	translate: translate,
    +	rotate: rotate,
    +	scale: scale$1,
    +	invert: invert
    +});
    +
    +/**
    + * 提供变换扩展
    + * @module zrender/mixin/Transformable
    + * @author pissang (https://www.github.com/pissang)
    + */
    +
    +var mIdentity = identity;
    +
    +var EPSILON = 5e-5;
    +
    +function isNotAroundZero(val) {
    +    return val > EPSILON || val < -EPSILON;
    +}
    +
    +/**
    + * @alias module:zrender/mixin/Transformable
    + * @constructor
    + */
    +var Transformable = function (opts) {
    +    opts = opts || {};
    +    // If there are no given position, rotation, scale
    +    if (!opts.position) {
    +        /**
    +         * 平移
    +         * @type {Array.<number>}
    +         * @default [0, 0]
    +         */
    +        this.position = [0, 0];
    +    }
    +    if (opts.rotation == null) {
    +        /**
    +         * 旋转
    +         * @type {Array.<number>}
    +         * @default 0
    +         */
    +        this.rotation = 0;
    +    }
    +    if (!opts.scale) {
    +        /**
    +         * 缩放
    +         * @type {Array.<number>}
    +         * @default [1, 1]
    +         */
    +        this.scale = [1, 1];
    +    }
    +    /**
    +     * 旋转和缩放的原点
    +     * @type {Array.<number>}
    +     * @default null
    +     */
    +    this.origin = this.origin || null;
    +};
    +
    +var transformableProto = Transformable.prototype;
    +transformableProto.transform = null;
    +
    +/**
    + * 判断是否需要有坐标变换
    + * 如果有坐标变换, 则从position, rotation, scale以及父节点的transform计算出自身的transform矩阵
    + */
    +transformableProto.needLocalTransform = function () {
    +    return isNotAroundZero(this.rotation)
    +        || isNotAroundZero(this.position[0])
    +        || isNotAroundZero(this.position[1])
    +        || isNotAroundZero(this.scale[0] - 1)
    +        || isNotAroundZero(this.scale[1] - 1);
    +};
    +
    +transformableProto.updateTransform = function () {
    +    var parent = this.parent;
    +    var parentHasTransform = parent && parent.transform;
    +    var needLocalTransform = this.needLocalTransform();
    +
    +    var m = this.transform;
    +    if (!(needLocalTransform || parentHasTransform)) {
    +        m && mIdentity(m);
    +        return;
    +    }
    +
    +    m = m || create$1();
    +
    +    if (needLocalTransform) {
    +        this.getLocalTransform(m);
    +    }
    +    else {
    +        mIdentity(m);
    +    }
    +
    +    // 应用父节点变换
    +    if (parentHasTransform) {
    +        if (needLocalTransform) {
    +            mul$1(m, parent.transform, m);
    +        }
    +        else {
    +            copy$1(m, parent.transform);
    +        }
    +    }
    +    // 保存这个变换矩阵
    +    this.transform = m;
    +
    +    this.invTransform = this.invTransform || create$1();
    +    invert(this.invTransform, m);
    +};
    +
    +transformableProto.getLocalTransform = function (m) {
    +    return Transformable.getLocalTransform(this, m);
    +};
    +
    +/**
    + * 将自己的transform应用到context上
    + * @param {CanvasRenderingContext2D} ctx
    + */
    +transformableProto.setTransform = function (ctx) {
    +    var m = this.transform;
    +    var dpr = ctx.dpr || 1;
    +    if (m) {
    +        ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]);
    +    }
    +    else {
    +        ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
    +    }
    +};
    +
    +transformableProto.restoreTransform = function (ctx) {
    +    var dpr = ctx.dpr || 1;
    +    ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
    +};
    +
    +var tmpTransform = [];
    +
    +/**
    + * 分解`transform`矩阵到`position`, `rotation`, `scale`
    + */
    +transformableProto.decomposeTransform = function () {
    +    if (!this.transform) {
    +        return;
    +    }
    +    var parent = this.parent;
    +    var m = this.transform;
    +    if (parent && parent.transform) {
    +        // Get local transform and decompose them to position, scale, rotation
    +        mul$1(tmpTransform, parent.invTransform, m);
    +        m = tmpTransform;
    +    }
    +    var sx = m[0] * m[0] + m[1] * m[1];
    +    var sy = m[2] * m[2] + m[3] * m[3];
    +    var position = this.position;
    +    var scale$$1 = this.scale;
    +    if (isNotAroundZero(sx - 1)) {
    +        sx = Math.sqrt(sx);
    +    }
    +    if (isNotAroundZero(sy - 1)) {
    +        sy = Math.sqrt(sy);
    +    }
    +    if (m[0] < 0) {
    +        sx = -sx;
    +    }
    +    if (m[3] < 0) {
    +        sy = -sy;
    +    }
    +    position[0] = m[4];
    +    position[1] = m[5];
    +    scale$$1[0] = sx;
    +    scale$$1[1] = sy;
    +    this.rotation = Math.atan2(-m[1] / sy, m[0] / sx);
    +};
    +
    +/**
    + * Get global scale
    + * @return {Array.<number>}
    + */
    +transformableProto.getGlobalScale = function () {
    +    var m = this.transform;
    +    if (!m) {
    +        return [1, 1];
    +    }
    +    var sx = Math.sqrt(m[0] * m[0] + m[1] * m[1]);
    +    var sy = Math.sqrt(m[2] * m[2] + m[3] * m[3]);
    +    if (m[0] < 0) {
    +        sx = -sx;
    +    }
    +    if (m[3] < 0) {
    +        sy = -sy;
    +    }
    +    return [sx, sy];
    +};
    +/**
    + * 变换坐标位置到 shape 的局部坐标空间
    + * @method
    + * @param {number} x
    + * @param {number} y
    + * @return {Array.<number>}
    + */
    +transformableProto.transformCoordToLocal = function (x, y) {
    +    var v2 = [x, y];
    +    var invTransform = this.invTransform;
    +    if (invTransform) {
    +        applyTransform(v2, v2, invTransform);
    +    }
    +    return v2;
    +};
    +
    +/**
    + * 变换局部坐标位置到全局坐标空间
    + * @method
    + * @param {number} x
    + * @param {number} y
    + * @return {Array.<number>}
    + */
    +transformableProto.transformCoordToGlobal = function (x, y) {
    +    var v2 = [x, y];
    +    var transform = this.transform;
    +    if (transform) {
    +        applyTransform(v2, v2, transform);
    +    }
    +    return v2;
    +};
    +
    +/**
    + * @static
    + * @param {Object} target
    + * @param {Array.<number>} target.origin
    + * @param {number} target.rotation
    + * @param {Array.<number>} target.position
    + * @param {Array.<number>} [m]
    + */
    +Transformable.getLocalTransform = function (target, m) {
    +    m = m || [];
    +    mIdentity(m);
    +
    +    var origin = target.origin;
    +    var scale$$1 = target.scale || [1, 1];
    +    var rotation = target.rotation || 0;
    +    var position = target.position || [0, 0];
    +
    +    if (origin) {
    +        // Translate to origin
    +        m[4] -= origin[0];
    +        m[5] -= origin[1];
    +    }
    +    scale$1(m, m, scale$$1);
    +    if (rotation) {
    +        rotate(m, m, rotation);
    +    }
    +    if (origin) {
    +        // Translate back from origin
    +        m[4] += origin[0];
    +        m[5] += origin[1];
    +    }
    +
    +    m[4] += position[0];
    +    m[5] += position[1];
    +
    +    return m;
    +};
    +
    +/**
    + * 缓动代码来自 https://github.com/sole/tween.js/blob/master/src/Tween.js
    + * @see http://sole.github.io/tween.js/examples/03_graphs.html
    + * @exports zrender/animation/easing
    + */
    +var easing = {
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    linear: function (k) {
    +        return k;
    +    },
    +
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quadraticIn: function (k) {
    +        return k * k;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quadraticOut: function (k) {
    +        return k * (2 - k);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quadraticInOut: function (k) {
    +        if ((k *= 2) < 1) {
    +            return 0.5 * k * k;
    +        }
    +        return -0.5 * (--k * (k - 2) - 1);
    +    },
    +
    +    // 三次方的缓动(t^3)
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    cubicIn: function (k) {
    +        return k * k * k;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    cubicOut: function (k) {
    +        return --k * k * k + 1;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    cubicInOut: function (k) {
    +        if ((k *= 2) < 1) {
    +            return 0.5 * k * k * k;
    +        }
    +        return 0.5 * ((k -= 2) * k * k + 2);
    +    },
    +
    +    // 四次方的缓动(t^4)
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quarticIn: function (k) {
    +        return k * k * k * k;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quarticOut: function (k) {
    +        return 1 - (--k * k * k * k);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quarticInOut: function (k) {
    +        if ((k *= 2) < 1) {
    +            return 0.5 * k * k * k * k;
    +        }
    +        return -0.5 * ((k -= 2) * k * k * k - 2);
    +    },
    +
    +    // 五次方的缓动(t^5)
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quinticIn: function (k) {
    +        return k * k * k * k * k;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quinticOut: function (k) {
    +        return --k * k * k * k * k + 1;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    quinticInOut: function (k) {
    +        if ((k *= 2) < 1) {
    +            return 0.5 * k * k * k * k * k;
    +        }
    +        return 0.5 * ((k -= 2) * k * k * k * k + 2);
    +    },
    +
    +    // 正弦曲线的缓动(sin(t))
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    sinusoidalIn: function (k) {
    +        return 1 - Math.cos(k * Math.PI / 2);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    sinusoidalOut: function (k) {
    +        return Math.sin(k * Math.PI / 2);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    sinusoidalInOut: function (k) {
    +        return 0.5 * (1 - Math.cos(Math.PI * k));
    +    },
    +
    +    // 指数曲线的缓动(2^t)
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    exponentialIn: function (k) {
    +        return k === 0 ? 0 : Math.pow(1024, k - 1);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    exponentialOut: function (k) {
    +        return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    exponentialInOut: function (k) {
    +        if (k === 0) {
    +            return 0;
    +        }
    +        if (k === 1) {
    +            return 1;
    +        }
    +        if ((k *= 2) < 1) {
    +            return 0.5 * Math.pow(1024, k - 1);
    +        }
    +        return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);
    +    },
    +
    +    // 圆形曲线的缓动(sqrt(1-t^2))
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    circularIn: function (k) {
    +        return 1 - Math.sqrt(1 - k * k);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    circularOut: function (k) {
    +        return Math.sqrt(1 - (--k * k));
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    circularInOut: function (k) {
    +        if ((k *= 2) < 1) {
    +            return -0.5 * (Math.sqrt(1 - k * k) - 1);
    +        }
    +        return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);
    +    },
    +
    +    // 创建类似于弹簧在停止前来回振荡的动画
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    elasticIn: function (k) {
    +        var s;
    +        var a = 0.1;
    +        var p = 0.4;
    +        if (k === 0) {
    +            return 0;
    +        }
    +        if (k === 1) {
    +            return 1;
    +        }
    +        if (!a || a < 1) {
    +            a = 1; s = p / 4;
    +        }
    +        else {
    +            s = p * Math.asin(1 / a) / (2 * Math.PI);
    +        }
    +        return -(a * Math.pow(2, 10 * (k -= 1)) *
    +                    Math.sin((k - s) * (2 * Math.PI) / p));
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    elasticOut: function (k) {
    +        var s;
    +        var a = 0.1;
    +        var p = 0.4;
    +        if (k === 0) {
    +            return 0;
    +        }
    +        if (k === 1) {
    +            return 1;
    +        }
    +        if (!a || a < 1) {
    +            a = 1; s = p / 4;
    +        }
    +        else {
    +            s = p * Math.asin(1 / a) / (2 * Math.PI);
    +        }
    +        return (a * Math.pow(2, -10 * k) *
    +                Math.sin((k - s) * (2 * Math.PI) / p) + 1);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    elasticInOut: function (k) {
    +        var s;
    +        var a = 0.1;
    +        var p = 0.4;
    +        if (k === 0) {
    +            return 0;
    +        }
    +        if (k === 1) {
    +            return 1;
    +        }
    +        if (!a || a < 1) {
    +            a = 1; s = p / 4;
    +        }
    +        else {
    +            s = p * Math.asin(1 / a) / (2 * Math.PI);
    +        }
    +        if ((k *= 2) < 1) {
    +            return -0.5 * (a * Math.pow(2, 10 * (k -= 1))
    +                * Math.sin((k - s) * (2 * Math.PI) / p));
    +        }
    +        return a * Math.pow(2, -10 * (k -= 1))
    +                * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;
    +
    +    },
    +
    +    // 在某一动画开始沿指示的路径进行动画处理前稍稍收回该动画的移动
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    backIn: function (k) {
    +        var s = 1.70158;
    +        return k * k * ((s + 1) * k - s);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    backOut: function (k) {
    +        var s = 1.70158;
    +        return --k * k * ((s + 1) * k + s) + 1;
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    backInOut: function (k) {
    +        var s = 1.70158 * 1.525;
    +        if ((k *= 2) < 1) {
    +            return 0.5 * (k * k * ((s + 1) * k - s));
    +        }
    +        return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
    +    },
    +
    +    // 创建弹跳效果
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    bounceIn: function (k) {
    +        return 1 - easing.bounceOut(1 - k);
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    bounceOut: function (k) {
    +        if (k < (1 / 2.75)) {
    +            return 7.5625 * k * k;
    +        }
    +        else if (k < (2 / 2.75)) {
    +            return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;
    +        }
    +        else if (k < (2.5 / 2.75)) {
    +            return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;
    +        }
    +        else {
    +            return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;
    +        }
    +    },
    +    /**
    +    * @param {number} k
    +    * @return {number}
    +    */
    +    bounceInOut: function (k) {
    +        if (k < 0.5) {
    +            return easing.bounceIn(k * 2) * 0.5;
    +        }
    +        return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;
    +    }
    +};
    +
    +/**
    + * 动画主控制器
    + * @config target 动画对象,可以是数组,如果是数组的话会批量分发onframe等事件
    + * @config life(1000) 动画时长
    + * @config delay(0) 动画延迟时间
    + * @config loop(true)
    + * @config gap(0) 循环的间隔时间
    + * @config onframe
    + * @config easing(optional)
    + * @config ondestroy(optional)
    + * @config onrestart(optional)
    + *
    + * TODO pause
    + */
    +
    +function Clip(options) {
    +
    +    this._target = options.target;
    +
    +    // 生命周期
    +    this._life = options.life || 1000;
    +    // 延时
    +    this._delay = options.delay || 0;
    +    // 开始时间
    +    // this._startTime = new Date().getTime() + this._delay;// 单位毫秒
    +    this._initialized = false;
    +
    +    // 是否循环
    +    this.loop = options.loop == null ? false : options.loop;
    +
    +    this.gap = options.gap || 0;
    +
    +    this.easing = options.easing || 'Linear';
    +
    +    this.onframe = options.onframe;
    +    this.ondestroy = options.ondestroy;
    +    this.onrestart = options.onrestart;
    +
    +    this._pausedTime = 0;
    +    this._paused = false;
    +}
    +
    +Clip.prototype = {
    +
    +    constructor: Clip,
    +
    +    step: function (globalTime, deltaTime) {
    +        // Set startTime on first step, or _startTime may has milleseconds different between clips
    +        // PENDING
    +        if (!this._initialized) {
    +            this._startTime = globalTime + this._delay;
    +            this._initialized = true;
    +        }
    +
    +        if (this._paused) {
    +            this._pausedTime += deltaTime;
    +            return;
    +        }
    +
    +        var percent = (globalTime - this._startTime - this._pausedTime) / this._life;
    +
    +        // 还没开始
    +        if (percent < 0) {
    +            return;
    +        }
    +
    +        percent = Math.min(percent, 1);
    +
    +        var easing$$1 = this.easing;
    +        var easingFunc = typeof easing$$1 == 'string' ? easing[easing$$1] : easing$$1;
    +        var schedule = typeof easingFunc === 'function'
    +            ? easingFunc(percent)
    +            : percent;
    +
    +        this.fire('frame', schedule);
    +
    +        // 结束
    +        if (percent == 1) {
    +            if (this.loop) {
    +                this.restart (globalTime);
    +                // 重新开始周期
    +                // 抛出而不是直接调用事件直到 stage.update 后再统一调用这些事件
    +                return 'restart';
    +            }
    +
    +            // 动画完成将这个控制器标识为待删除
    +            // 在Animation.update中进行批量删除
    +            this._needsRemove = true;
    +            return 'destroy';
    +        }
    +
    +        return null;
    +    },
    +
    +    restart: function (globalTime) {
    +        var remainder = (globalTime - this._startTime - this._pausedTime) % this._life;
    +        this._startTime = globalTime - remainder + this.gap;
    +        this._pausedTime = 0;
    +
    +        this._needsRemove = false;
    +    },
    +
    +    fire: function (eventType, arg) {
    +        eventType = 'on' + eventType;
    +        if (this[eventType]) {
    +            this[eventType](this._target, arg);
    +        }
    +    },
    +
    +    pause: function () {
    +        this._paused = true;
    +    },
    +
    +    resume: function () {
    +        this._paused = false;
    +    }
    +};
    +
    +// Simple LRU cache use doubly linked list
    +// @module zrender/core/LRU
    +
    +/**
    + * Simple double linked list. Compared with array, it has O(1) remove operation.
    + * @constructor
    + */
    +var LinkedList = function () {
    +
    +    /**
    +     * @type {module:zrender/core/LRU~Entry}
    +     */
    +    this.head = null;
    +
    +    /**
    +     * @type {module:zrender/core/LRU~Entry}
    +     */
    +    this.tail = null;
    +
    +    this._len = 0;
    +};
    +
    +var linkedListProto = LinkedList.prototype;
    +/**
    + * Insert a new value at the tail
    + * @param  {} val
    + * @return {module:zrender/core/LRU~Entry}
    + */
    +linkedListProto.insert = function (val) {
    +    var entry = new Entry(val);
    +    this.insertEntry(entry);
    +    return entry;
    +};
    +
    +/**
    + * Insert an entry at the tail
    + * @param  {module:zrender/core/LRU~Entry} entry
    + */
    +linkedListProto.insertEntry = function (entry) {
    +    if (!this.head) {
    +        this.head = this.tail = entry;
    +    }
    +    else {
    +        this.tail.next = entry;
    +        entry.prev = this.tail;
    +        entry.next = null;
    +        this.tail = entry;
    +    }
    +    this._len++;
    +};
    +
    +/**
    + * Remove entry.
    + * @param  {module:zrender/core/LRU~Entry} entry
    + */
    +linkedListProto.remove = function (entry) {
    +    var prev = entry.prev;
    +    var next = entry.next;
    +    if (prev) {
    +        prev.next = next;
    +    }
    +    else {
    +        // Is head
    +        this.head = next;
    +    }
    +    if (next) {
    +        next.prev = prev;
    +    }
    +    else {
    +        // Is tail
    +        this.tail = prev;
    +    }
    +    entry.next = entry.prev = null;
    +    this._len--;
    +};
    +
    +/**
    + * @return {number}
    + */
    +linkedListProto.len = function () {
    +    return this._len;
    +};
    +
    +/**
    + * Clear list
    + */
    +linkedListProto.clear = function () {
    +    this.head = this.tail = null;
    +    this._len = 0;
    +};
    +
    +/**
    + * @constructor
    + * @param {} val
    + */
    +var Entry = function (val) {
    +    /**
    +     * @type {}
    +     */
    +    this.value = val;
    +
    +    /**
    +     * @type {module:zrender/core/LRU~Entry}
    +     */
    +    this.next;
    +
    +    /**
    +     * @type {module:zrender/core/LRU~Entry}
    +     */
    +    this.prev;
    +};
    +
    +/**
    + * LRU Cache
    + * @constructor
    + * @alias module:zrender/core/LRU
    + */
    +var LRU = function (maxSize) {
    +
    +    this._list = new LinkedList();
    +
    +    this._map = {};
    +
    +    this._maxSize = maxSize || 10;
    +
    +    this._lastRemovedEntry = null;
    +};
    +
    +var LRUProto = LRU.prototype;
    +
    +/**
    + * @param  {string} key
    + * @param  {} value
    + * @return {} Removed value
    + */
    +LRUProto.put = function (key, value) {
    +    var list = this._list;
    +    var map = this._map;
    +    var removed = null;
    +    if (map[key] == null) {
    +        var len = list.len();
    +        // Reuse last removed entry
    +        var entry = this._lastRemovedEntry;
    +
    +        if (len >= this._maxSize && len > 0) {
    +            // Remove the least recently used
    +            var leastUsedEntry = list.head;
    +            list.remove(leastUsedEntry);
    +            delete map[leastUsedEntry.key];
    +
    +            removed = leastUsedEntry.value;
    +            this._lastRemovedEntry = leastUsedEntry;
    +        }
    +
    +        if (entry) {
    +            entry.value = value;
    +        }
    +        else {
    +            entry = new Entry(value);
    +        }
    +        entry.key = key;
    +        list.insertEntry(entry);
    +        map[key] = entry;
    +    }
    +
    +    return removed;
    +};
    +
    +/**
    + * @param  {string} key
    + * @return {}
    + */
    +LRUProto.get = function (key) {
    +    var entry = this._map[key];
    +    var list = this._list;
    +    if (entry != null) {
    +        // Put the latest used entry in the tail
    +        if (entry !== list.tail) {
    +            list.remove(entry);
    +            list.insertEntry(entry);
    +        }
    +
    +        return entry.value;
    +    }
    +};
    +
    +/**
    + * Clear the cache
    + */
    +LRUProto.clear = function () {
    +    this._list.clear();
    +    this._map = {};
    +};
    +
    +var kCSSColorTable = {
    +    '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]
    +};
    +
    +function clampCssByte(i) {  // Clamp to integer 0 .. 255.
    +    i = Math.round(i);  // Seems to be what Chrome does (vs truncation).
    +    return i < 0 ? 0 : i > 255 ? 255 : i;
    +}
    +
    +function clampCssAngle(i) {  // Clamp to integer 0 .. 360.
    +    i = Math.round(i);  // Seems to be what Chrome does (vs truncation).
    +    return i < 0 ? 0 : i > 360 ? 360 : i;
    +}
    +
    +function clampCssFloat(f) {  // Clamp to float 0.0 .. 1.0.
    +    return f < 0 ? 0 : f > 1 ? 1 : f;
    +}
    +
    +function parseCssInt(str) {  // int or percentage.
    +    if (str.length && str.charAt(str.length - 1) === '%') {
    +        return clampCssByte(parseFloat(str) / 100 * 255);
    +    }
    +    return clampCssByte(parseInt(str, 10));
    +}
    +
    +function parseCssFloat(str) {  // float or percentage.
    +    if (str.length && str.charAt(str.length - 1) === '%') {
    +        return clampCssFloat(parseFloat(str) / 100);
    +    }
    +    return clampCssFloat(parseFloat(str));
    +}
    +
    +function cssHueToRgb(m1, m2, h) {
    +    if (h < 0) {
    +        h += 1;
    +    }
    +    else if (h > 1) {
    +        h -= 1;
    +    }
    +
    +    if (h * 6 < 1) {
    +        return m1 + (m2 - m1) * h * 6;
    +    }
    +    if (h * 2 < 1) {
    +        return m2;
    +    }
    +    if (h * 3 < 2) {
    +        return m1 + (m2 - m1) * (2/3 - h) * 6;
    +    }
    +    return m1;
    +}
    +
    +function lerpNumber(a, b, p) {
    +    return a + (b - a) * p;
    +}
    +
    +function setRgba(out, r, g, b, a) {
    +    out[0] = r; out[1] = g; out[2] = b; out[3] = a;
    +    return out;
    +}
    +function copyRgba(out, a) {
    +    out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3];
    +    return out;
    +}
    +
    +var colorCache = new LRU(20);
    +var lastRemovedArr = null;
    +
    +function putToCache(colorStr, rgbaArr) {
    +    // Reuse removed array
    +    if (lastRemovedArr) {
    +        copyRgba(lastRemovedArr, rgbaArr);
    +    }
    +    lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice()));
    +}
    +
    +/**
    + * @param {string} colorStr
    + * @param {Array.<number>} out
    + * @return {Array.<number>}
    + * @memberOf module:zrender/util/color
    + */
    +function parse(colorStr, rgbaArr) {
    +    if (!colorStr) {
    +        return;
    +    }
    +    rgbaArr = rgbaArr || [];
    +
    +    var cached = colorCache.get(colorStr);
    +    if (cached) {
    +        return copyRgba(rgbaArr, cached);
    +    }
    +
    +    // colorStr may be not string
    +    colorStr = colorStr + '';
    +    // Remove all whitespace, not compliant, but should just be more accepting.
    +    var str = colorStr.replace(/ /g, '').toLowerCase();
    +
    +    // Color keywords (and transparent) lookup.
    +    if (str in kCSSColorTable) {
    +        copyRgba(rgbaArr, kCSSColorTable[str]);
    +        putToCache(colorStr, rgbaArr);
    +        return rgbaArr;
    +    }
    +
    +    // #abc and #abc123 syntax.
    +    if (str.charAt(0) === '#') {
    +        if (str.length === 4) {
    +            var iv = parseInt(str.substr(1), 16);  // TODO(deanm): Stricter parsing.
    +            if (!(iv >= 0 && iv <= 0xfff)) {
    +                setRgba(rgbaArr, 0, 0, 0, 1);
    +                return;  // Covers NaN.
    +            }
    +            setRgba(rgbaArr,
    +                ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),
    +                (iv & 0xf0) | ((iv & 0xf0) >> 4),
    +                (iv & 0xf) | ((iv & 0xf) << 4),
    +                1
    +            );
    +            putToCache(colorStr, rgbaArr);
    +            return rgbaArr;
    +        }
    +        else if (str.length === 7) {
    +            var iv = parseInt(str.substr(1), 16);  // TODO(deanm): Stricter parsing.
    +            if (!(iv >= 0 && iv <= 0xffffff)) {
    +                setRgba(rgbaArr, 0, 0, 0, 1);
    +                return;  // Covers NaN.
    +            }
    +            setRgba(rgbaArr,
    +                (iv & 0xff0000) >> 16,
    +                (iv & 0xff00) >> 8,
    +                iv & 0xff,
    +                1
    +            );
    +            putToCache(colorStr, rgbaArr);
    +            return rgbaArr;
    +        }
    +
    +        return;
    +    }
    +    var op = str.indexOf('('), ep = str.indexOf(')');
    +    if (op !== -1 && ep + 1 === str.length) {
    +        var fname = str.substr(0, op);
    +        var params = str.substr(op + 1, ep - (op + 1)).split(',');
    +        var alpha = 1;  // To allow case fallthrough.
    +        switch (fname) {
    +            case 'rgba':
    +                if (params.length !== 4) {
    +                    setRgba(rgbaArr, 0, 0, 0, 1);
    +                    return;
    +                }
    +                alpha = parseCssFloat(params.pop()); // jshint ignore:line
    +            // Fall through.
    +            case 'rgb':
    +                if (params.length !== 3) {
    +                    setRgba(rgbaArr, 0, 0, 0, 1);
    +                    return;
    +                }
    +                setRgba(rgbaArr,
    +                    parseCssInt(params[0]),
    +                    parseCssInt(params[1]),
    +                    parseCssInt(params[2]),
    +                    alpha
    +                );
    +                putToCache(colorStr, rgbaArr);
    +                return rgbaArr;
    +            case 'hsla':
    +                if (params.length !== 4) {
    +                    setRgba(rgbaArr, 0, 0, 0, 1);
    +                    return;
    +                }
    +                params[3] = parseCssFloat(params[3]);
    +                hsla2rgba(params, rgbaArr);
    +                putToCache(colorStr, rgbaArr);
    +                return rgbaArr;
    +            case 'hsl':
    +                if (params.length !== 3) {
    +                    setRgba(rgbaArr, 0, 0, 0, 1);
    +                    return;
    +                }
    +                hsla2rgba(params, rgbaArr);
    +                putToCache(colorStr, rgbaArr);
    +                return rgbaArr;
    +            default:
    +                return;
    +        }
    +    }
    +
    +    setRgba(rgbaArr, 0, 0, 0, 1);
    +    return;
    +}
    +
    +/**
    + * @param {Array.<number>} hsla
    + * @param {Array.<number>} rgba
    + * @return {Array.<number>} rgba
    + */
    +function hsla2rgba(hsla, rgba) {
    +    var h = (((parseFloat(hsla[0]) % 360) + 360) % 360) / 360;  // 0 .. 1
    +    // NOTE(deanm): According to the CSS spec s/l should only be
    +    // percentages, but we don't bother and let float or percentage.
    +    var s = parseCssFloat(hsla[1]);
    +    var l = parseCssFloat(hsla[2]);
    +    var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
    +    var m1 = l * 2 - m2;
    +
    +    rgba = rgba || [];
    +    setRgba(rgba,
    +        clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255),
    +        clampCssByte(cssHueToRgb(m1, m2, h) * 255),
    +        clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255),
    +        1
    +    );
    +
    +    if (hsla.length === 4) {
    +        rgba[3] = hsla[3];
    +    }
    +
    +    return rgba;
    +}
    +
    +/**
    + * @param {Array.<number>} rgba
    + * @return {Array.<number>} hsla
    + */
    +function rgba2hsla(rgba) {
    +    if (!rgba) {
    +        return;
    +    }
    +
    +    // RGB from 0 to 255
    +    var R = rgba[0] / 255;
    +    var G = rgba[1] / 255;
    +    var B = rgba[2] / 255;
    +
    +    var vMin = Math.min(R, G, B); // Min. value of RGB
    +    var vMax = Math.max(R, G, B); // Max. value of RGB
    +    var delta = vMax - vMin; // Delta RGB value
    +
    +    var L = (vMax + vMin) / 2;
    +    var H;
    +    var S;
    +    // HSL results from 0 to 1
    +    if (delta === 0) {
    +        H = 0;
    +        S = 0;
    +    }
    +    else {
    +        if (L < 0.5) {
    +            S = delta / (vMax + vMin);
    +        }
    +        else {
    +            S = delta / (2 - vMax - vMin);
    +        }
    +
    +        var deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;
    +        var deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;
    +        var deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;
    +
    +        if (R === vMax) {
    +            H = deltaB - deltaG;
    +        }
    +        else if (G === vMax) {
    +            H = (1 / 3) + deltaR - deltaB;
    +        }
    +        else if (B === vMax) {
    +            H = (2 / 3) + deltaG - deltaR;
    +        }
    +
    +        if (H < 0) {
    +            H += 1;
    +        }
    +
    +        if (H > 1) {
    +            H -= 1;
    +        }
    +    }
    +
    +    var hsla = [H * 360, S, L];
    +
    +    if (rgba[3] != null) {
    +        hsla.push(rgba[3]);
    +    }
    +
    +    return hsla;
    +}
    +
    +/**
    + * @param {string} color
    + * @param {number} level
    + * @return {string}
    + * @memberOf module:zrender/util/color
    + */
    +function lift(color, level) {
    +    var colorArr = parse(color);
    +    if (colorArr) {
    +        for (var i = 0; i < 3; i++) {
    +            if (level < 0) {
    +                colorArr[i] = colorArr[i] * (1 - level) | 0;
    +            }
    +            else {
    +                colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;
    +            }
    +        }
    +        return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');
    +    }
    +}
    +
    +/**
    + * @param {string} color
    + * @return {string}
    + * @memberOf module:zrender/util/color
    + */
    +function toHex(color) {
    +    var colorArr = parse(color);
    +    if (colorArr) {
    +        return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);
    +    }
    +}
    +
    +/**
    + * Map value to color. Faster than lerp methods because color is represented by rgba array.
    + * @param {number} normalizedValue A float between 0 and 1.
    + * @param {Array.<Array.<number>>} colors List of rgba color array
    + * @param {Array.<number>} [out] Mapped gba color array
    + * @return {Array.<number>} will be null/undefined if input illegal.
    + */
    +function fastLerp(normalizedValue, colors, out) {
    +    if (!(colors && colors.length)
    +        || !(normalizedValue >= 0 && normalizedValue <= 1)
    +    ) {
    +        return;
    +    }
    +
    +    out = out || [];
    +
    +    var value = normalizedValue * (colors.length - 1);
    +    var leftIndex = Math.floor(value);
    +    var rightIndex = Math.ceil(value);
    +    var leftColor = colors[leftIndex];
    +    var rightColor = colors[rightIndex];
    +    var dv = value - leftIndex;
    +    out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv));
    +    out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv));
    +    out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv));
    +    out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));
    +
    +    return out;
    +}
    +
    +/**
    + * @deprecated
    + */
    +var fastMapToColor = fastLerp;
    +
    +/**
    + * @param {number} normalizedValue A float between 0 and 1.
    + * @param {Array.<string>} colors Color list.
    + * @param {boolean=} fullOutput Default false.
    + * @return {(string|Object)} Result color. If fullOutput,
    + *                           return {color: ..., leftIndex: ..., rightIndex: ..., value: ...},
    + * @memberOf module:zrender/util/color
    + */
    +function lerp$1(normalizedValue, colors, fullOutput) {
    +    if (!(colors && colors.length)
    +        || !(normalizedValue >= 0 && normalizedValue <= 1)
    +    ) {
    +        return;
    +    }
    +
    +    var value = normalizedValue * (colors.length - 1);
    +    var leftIndex = Math.floor(value);
    +    var rightIndex = Math.ceil(value);
    +    var leftColor = parse(colors[leftIndex]);
    +    var rightColor = parse(colors[rightIndex]);
    +    var dv = value - leftIndex;
    +
    +    var color = stringify(
    +        [
    +            clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)),
    +            clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)),
    +            clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)),
    +            clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv))
    +        ],
    +        'rgba'
    +    );
    +
    +    return fullOutput
    +        ? {
    +            color: color,
    +            leftIndex: leftIndex,
    +            rightIndex: rightIndex,
    +            value: value
    +        }
    +        : color;
    +}
    +
    +/**
    + * @deprecated
    + */
    +var mapToColor = lerp$1;
    +
    +/**
    + * @param {string} color
    + * @param {number=} h 0 ~ 360, ignore when null.
    + * @param {number=} s 0 ~ 1, ignore when null.
    + * @param {number=} l 0 ~ 1, ignore when null.
    + * @return {string} Color string in rgba format.
    + * @memberOf module:zrender/util/color
    + */
    +function modifyHSL(color, h, s, l) {
    +    color = parse(color);
    +
    +    if (color) {
    +        color = rgba2hsla(color);
    +        h != null && (color[0] = clampCssAngle(h));
    +        s != null && (color[1] = parseCssFloat(s));
    +        l != null && (color[2] = parseCssFloat(l));
    +
    +        return stringify(hsla2rgba(color), 'rgba');
    +    }
    +}
    +
    +/**
    + * @param {string} color
    + * @param {number=} alpha 0 ~ 1
    + * @return {string} Color string in rgba format.
    + * @memberOf module:zrender/util/color
    + */
    +function modifyAlpha(color, alpha) {
    +    color = parse(color);
    +
    +    if (color && alpha != null) {
    +        color[3] = clampCssFloat(alpha);
    +        return stringify(color, 'rgba');
    +    }
    +}
    +
    +/**
    + * @param {Array.<number>} arrColor like [12,33,44,0.4]
    + * @param {string} type 'rgba', 'hsva', ...
    + * @return {string} Result color. (If input illegal, return undefined).
    + */
    +function stringify(arrColor, type) {
    +    if (!arrColor || !arrColor.length) {
    +        return;
    +    }
    +    var colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2];
    +    if (type === 'rgba' || type === 'hsva' || type === 'hsla') {
    +        colorStr += ',' + arrColor[3];
    +    }
    +    return type + '(' + colorStr + ')';
    +}
    +
    +
    +var color = (Object.freeze || Object)({
    +	parse: parse,
    +	lift: lift,
    +	toHex: toHex,
    +	fastLerp: fastLerp,
    +	fastMapToColor: fastMapToColor,
    +	lerp: lerp$1,
    +	mapToColor: mapToColor,
    +	modifyHSL: modifyHSL,
    +	modifyAlpha: modifyAlpha,
    +	stringify: stringify
    +});
    +
    +/**
    + * @module echarts/animation/Animator
    + */
    +
    +var arraySlice = Array.prototype.slice;
    +
    +function defaultGetter(target, key) {
    +    return target[key];
    +}
    +
    +function defaultSetter(target, key, value) {
    +    target[key] = value;
    +}
    +
    +/**
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} percent
    + * @return {number}
    + */
    +function interpolateNumber(p0, p1, percent) {
    +    return (p1 - p0) * percent + p0;
    +}
    +
    +/**
    + * @param  {string} p0
    + * @param  {string} p1
    + * @param  {number} percent
    + * @return {string}
    + */
    +function interpolateString(p0, p1, percent) {
    +    return percent > 0.5 ? p1 : p0;
    +}
    +
    +/**
    + * @param  {Array} p0
    + * @param  {Array} p1
    + * @param  {number} percent
    + * @param  {Array} out
    + * @param  {number} arrDim
    + */
    +function interpolateArray(p0, p1, percent, out, arrDim) {
    +    var len = p0.length;
    +    if (arrDim == 1) {
    +        for (var i = 0; i < len; i++) {
    +            out[i] = interpolateNumber(p0[i], p1[i], percent);
    +        }
    +    }
    +    else {
    +        var len2 = len && p0[0].length;
    +        for (var i = 0; i < len; i++) {
    +            for (var j = 0; j < len2; j++) {
    +                out[i][j] = interpolateNumber(
    +                    p0[i][j], p1[i][j], percent
    +                );
    +            }
    +        }
    +    }
    +}
    +
    +// arr0 is source array, arr1 is target array.
    +// Do some preprocess to avoid error happened when interpolating from arr0 to arr1
    +function fillArr(arr0, arr1, arrDim) {
    +    var arr0Len = arr0.length;
    +    var arr1Len = arr1.length;
    +    if (arr0Len !== arr1Len) {
    +        // FIXME Not work for TypedArray
    +        var isPreviousLarger = arr0Len > arr1Len;
    +        if (isPreviousLarger) {
    +            // Cut the previous
    +            arr0.length = arr1Len;
    +        }
    +        else {
    +            // Fill the previous
    +            for (var i = arr0Len; i < arr1Len; i++) {
    +                arr0.push(
    +                    arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i])
    +                );
    +            }
    +        }
    +    }
    +    // Handling NaN value
    +    var len2 = arr0[0] && arr0[0].length;
    +    for (var i = 0; i < arr0.length; i++) {
    +        if (arrDim === 1) {
    +            if (isNaN(arr0[i])) {
    +                arr0[i] = arr1[i];
    +            }
    +        }
    +        else {
    +            for (var j = 0; j < len2; j++) {
    +                if (isNaN(arr0[i][j])) {
    +                    arr0[i][j] = arr1[i][j];
    +                }
    +            }
    +        }
    +    }
    +}
    +
    +/**
    + * @param  {Array} arr0
    + * @param  {Array} arr1
    + * @param  {number} arrDim
    + * @return {boolean}
    + */
    +function isArraySame(arr0, arr1, arrDim) {
    +    if (arr0 === arr1) {
    +        return true;
    +    }
    +    var len = arr0.length;
    +    if (len !== arr1.length) {
    +        return false;
    +    }
    +    if (arrDim === 1) {
    +        for (var i = 0; i < len; i++) {
    +            if (arr0[i] !== arr1[i]) {
    +                return false;
    +            }
    +        }
    +    }
    +    else {
    +        var len2 = arr0[0].length;
    +        for (var i = 0; i < len; i++) {
    +            for (var j = 0; j < len2; j++) {
    +                if (arr0[i][j] !== arr1[i][j]) {
    +                    return false;
    +                }
    +            }
    +        }
    +    }
    +    return true;
    +}
    +
    +/**
    + * Catmull Rom interpolate array
    + * @param  {Array} p0
    + * @param  {Array} p1
    + * @param  {Array} p2
    + * @param  {Array} p3
    + * @param  {number} t
    + * @param  {number} t2
    + * @param  {number} t3
    + * @param  {Array} out
    + * @param  {number} arrDim
    + */
    +function catmullRomInterpolateArray(
    +    p0, p1, p2, p3, t, t2, t3, out, arrDim
    +) {
    +    var len = p0.length;
    +    if (arrDim == 1) {
    +        for (var i = 0; i < len; i++) {
    +            out[i] = catmullRomInterpolate(
    +                p0[i], p1[i], p2[i], p3[i], t, t2, t3
    +            );
    +        }
    +    }
    +    else {
    +        var len2 = p0[0].length;
    +        for (var i = 0; i < len; i++) {
    +            for (var j = 0; j < len2; j++) {
    +                out[i][j] = catmullRomInterpolate(
    +                    p0[i][j], p1[i][j], p2[i][j], p3[i][j],
    +                    t, t2, t3
    +                );
    +            }
    +        }
    +    }
    +}
    +
    +/**
    + * Catmull Rom interpolate number
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} p3
    + * @param  {number} t
    + * @param  {number} t2
    + * @param  {number} t3
    + * @return {number}
    + */
    +function catmullRomInterpolate(p0, p1, p2, p3, t, t2, t3) {
    +    var v0 = (p2 - p0) * 0.5;
    +    var v1 = (p3 - p1) * 0.5;
    +    return (2 * (p1 - p2) + v0 + v1) * t3
    +            + (-3 * (p1 - p2) - 2 * v0 - v1) * t2
    +            + v0 * t + p1;
    +}
    +
    +function cloneValue(value) {
    +    if (isArrayLike(value)) {
    +        var len = value.length;
    +        if (isArrayLike(value[0])) {
    +            var ret = [];
    +            for (var i = 0; i < len; i++) {
    +                ret.push(arraySlice.call(value[i]));
    +            }
    +            return ret;
    +        }
    +
    +        return arraySlice.call(value);
    +    }
    +
    +    return value;
    +}
    +
    +function rgba2String(rgba) {
    +    rgba[0] = Math.floor(rgba[0]);
    +    rgba[1] = Math.floor(rgba[1]);
    +    rgba[2] = Math.floor(rgba[2]);
    +
    +    return 'rgba(' + rgba.join(',') + ')';
    +}
    +
    +function getArrayDim(keyframes) {
    +    var lastValue = keyframes[keyframes.length - 1].value;
    +    return isArrayLike(lastValue && lastValue[0]) ? 2 : 1;
    +}
    +
    +function createTrackClip(animator, easing, oneTrackDone, keyframes, propName, forceAnimate) {
    +    var getter = animator._getter;
    +    var setter = animator._setter;
    +    var useSpline = easing === 'spline';
    +
    +    var trackLen = keyframes.length;
    +    if (!trackLen) {
    +        return;
    +    }
    +    // Guess data type
    +    var firstVal = keyframes[0].value;
    +    var isValueArray = isArrayLike(firstVal);
    +    var isValueColor = false;
    +    var isValueString = false;
    +
    +    // For vertices morphing
    +    var arrDim = isValueArray ? getArrayDim(keyframes) : 0;
    +
    +    var trackMaxTime;
    +    // Sort keyframe as ascending
    +    keyframes.sort(function(a, b) {
    +        return a.time - b.time;
    +    });
    +
    +    trackMaxTime = keyframes[trackLen - 1].time;
    +    // Percents of each keyframe
    +    var kfPercents = [];
    +    // Value of each keyframe
    +    var kfValues = [];
    +    var prevValue = keyframes[0].value;
    +    var isAllValueEqual = true;
    +    for (var i = 0; i < trackLen; i++) {
    +        kfPercents.push(keyframes[i].time / trackMaxTime);
    +        // Assume value is a color when it is a string
    +        var value = keyframes[i].value;
    +
    +        // Check if value is equal, deep check if value is array
    +        if (!((isValueArray && isArraySame(value, prevValue, arrDim))
    +            || (!isValueArray && value === prevValue))) {
    +            isAllValueEqual = false;
    +        }
    +        prevValue = value;
    +
    +        // Try converting a string to a color array
    +        if (typeof value == 'string') {
    +            var colorArray = parse(value);
    +            if (colorArray) {
    +                value = colorArray;
    +                isValueColor = true;
    +            }
    +            else {
    +                isValueString = true;
    +            }
    +        }
    +        kfValues.push(value);
    +    }
    +    if (!forceAnimate && isAllValueEqual) {
    +        return;
    +    }
    +
    +    var lastValue = kfValues[trackLen - 1];
    +    // Polyfill array and NaN value
    +    for (var i = 0; i < trackLen - 1; i++) {
    +        if (isValueArray) {
    +            fillArr(kfValues[i], lastValue, arrDim);
    +        }
    +        else {
    +            if (isNaN(kfValues[i]) && !isNaN(lastValue) && !isValueString && !isValueColor) {
    +                kfValues[i] = lastValue;
    +            }
    +        }
    +    }
    +    isValueArray && fillArr(getter(animator._target, propName), lastValue, arrDim);
    +
    +    // Cache the key of last frame to speed up when
    +    // animation playback is sequency
    +    var lastFrame = 0;
    +    var lastFramePercent = 0;
    +    var start;
    +    var w;
    +    var p0;
    +    var p1;
    +    var p2;
    +    var p3;
    +
    +    if (isValueColor) {
    +        var rgba = [0, 0, 0, 0];
    +    }
    +
    +    var onframe = function (target, percent) {
    +        // Find the range keyframes
    +        // kf1-----kf2---------current--------kf3
    +        // find kf2 and kf3 and do interpolation
    +        var frame;
    +        // In the easing function like elasticOut, percent may less than 0
    +        if (percent < 0) {
    +            frame = 0;
    +        }
    +        else if (percent < lastFramePercent) {
    +            // Start from next key
    +            // PENDING start from lastFrame ?
    +            start = Math.min(lastFrame + 1, trackLen - 1);
    +            for (frame = start; frame >= 0; frame--) {
    +                if (kfPercents[frame] <= percent) {
    +                    break;
    +                }
    +            }
    +            // PENDING really need to do this ?
    +            frame = Math.min(frame, trackLen - 2);
    +        }
    +        else {
    +            for (frame = lastFrame; frame < trackLen; frame++) {
    +                if (kfPercents[frame] > percent) {
    +                    break;
    +                }
    +            }
    +            frame = Math.min(frame - 1, trackLen - 2);
    +        }
    +        lastFrame = frame;
    +        lastFramePercent = percent;
    +
    +        var range = (kfPercents[frame + 1] - kfPercents[frame]);
    +        if (range === 0) {
    +            return;
    +        }
    +        else {
    +            w = (percent - kfPercents[frame]) / range;
    +        }
    +        if (useSpline) {
    +            p1 = kfValues[frame];
    +            p0 = kfValues[frame === 0 ? frame : frame - 1];
    +            p2 = kfValues[frame > trackLen - 2 ? trackLen - 1 : frame + 1];
    +            p3 = kfValues[frame > trackLen - 3 ? trackLen - 1 : frame + 2];
    +            if (isValueArray) {
    +                catmullRomInterpolateArray(
    +                    p0, p1, p2, p3, w, w * w, w * w * w,
    +                    getter(target, propName),
    +                    arrDim
    +                );
    +            }
    +            else {
    +                var value;
    +                if (isValueColor) {
    +                    value = catmullRomInterpolateArray(
    +                        p0, p1, p2, p3, w, w * w, w * w * w,
    +                        rgba, 1
    +                    );
    +                    value = rgba2String(rgba);
    +                }
    +                else if (isValueString) {
    +                    // String is step(0.5)
    +                    return interpolateString(p1, p2, w);
    +                }
    +                else {
    +                    value = catmullRomInterpolate(
    +                        p0, p1, p2, p3, w, w * w, w * w * w
    +                    );
    +                }
    +                setter(
    +                    target,
    +                    propName,
    +                    value
    +                );
    +            }
    +        }
    +        else {
    +            if (isValueArray) {
    +                interpolateArray(
    +                    kfValues[frame], kfValues[frame + 1], w,
    +                    getter(target, propName),
    +                    arrDim
    +                );
    +            }
    +            else {
    +                var value;
    +                if (isValueColor) {
    +                    interpolateArray(
    +                        kfValues[frame], kfValues[frame + 1], w,
    +                        rgba, 1
    +                    );
    +                    value = rgba2String(rgba);
    +                }
    +                else if (isValueString) {
    +                    // String is step(0.5)
    +                    return interpolateString(kfValues[frame], kfValues[frame + 1], w);
    +                }
    +                else {
    +                    value = interpolateNumber(kfValues[frame], kfValues[frame + 1], w);
    +                }
    +                setter(
    +                    target,
    +                    propName,
    +                    value
    +                );
    +            }
    +        }
    +    };
    +
    +    var clip = new Clip({
    +        target: animator._target,
    +        life: trackMaxTime,
    +        loop: animator._loop,
    +        delay: animator._delay,
    +        onframe: onframe,
    +        ondestroy: oneTrackDone
    +    });
    +
    +    if (easing && easing !== 'spline') {
    +        clip.easing = easing;
    +    }
    +
    +    return clip;
    +}
    +
    +/**
    + * @alias module:zrender/animation/Animator
    + * @constructor
    + * @param {Object} target
    + * @param {boolean} loop
    + * @param {Function} getter
    + * @param {Function} setter
    + */
    +var Animator = function(target, loop, getter, setter) {
    +    this._tracks = {};
    +    this._target = target;
    +
    +    this._loop = loop || false;
    +
    +    this._getter = getter || defaultGetter;
    +    this._setter = setter || defaultSetter;
    +
    +    this._clipCount = 0;
    +
    +    this._delay = 0;
    +
    +    this._doneList = [];
    +
    +    this._onframeList = [];
    +
    +    this._clipList = [];
    +};
    +
    +Animator.prototype = {
    +    /**
    +     * 设置动画关键帧
    +     * @param  {number} time 关键帧时间,单位是ms
    +     * @param  {Object} props 关键帧的属性值,key-value表示
    +     * @return {module:zrender/animation/Animator}
    +     */
    +    when: function(time /* ms */, props) {
    +        var tracks = this._tracks;
    +        for (var propName in props) {
    +            if (!props.hasOwnProperty(propName)) {
    +                continue;
    +            }
    +
    +            if (!tracks[propName]) {
    +                tracks[propName] = [];
    +                // Invalid value
    +                var value = this._getter(this._target, propName);
    +                if (value == null) {
    +                    // zrLog('Invalid property ' + propName);
    +                    continue;
    +                }
    +                // If time is 0
    +                //  Then props is given initialize value
    +                // Else
    +                //  Initialize value from current prop value
    +                if (time !== 0) {
    +                    tracks[propName].push({
    +                        time: 0,
    +                        value: cloneValue(value)
    +                    });
    +                }
    +            }
    +            tracks[propName].push({
    +                time: time,
    +                value: props[propName]
    +            });
    +        }
    +        return this;
    +    },
    +    /**
    +     * 添加动画每一帧的回调函数
    +     * @param  {Function} callback
    +     * @return {module:zrender/animation/Animator}
    +     */
    +    during: function (callback) {
    +        this._onframeList.push(callback);
    +        return this;
    +    },
    +
    +    pause: function () {
    +        for (var i = 0; i < this._clipList.length; i++) {
    +            this._clipList[i].pause();
    +        }
    +        this._paused = true;
    +    },
    +
    +    resume: function () {
    +        for (var i = 0; i < this._clipList.length; i++) {
    +            this._clipList[i].resume();
    +        }
    +        this._paused = false;
    +    },
    +
    +    isPaused: function () {
    +        return !!this._paused;
    +    },
    +
    +    _doneCallback: function () {
    +        // Clear all tracks
    +        this._tracks = {};
    +        // Clear all clips
    +        this._clipList.length = 0;
    +
    +        var doneList = this._doneList;
    +        var len = doneList.length;
    +        for (var i = 0; i < len; i++) {
    +            doneList[i].call(this);
    +        }
    +    },
    +    /**
    +     * 开始执行动画
    +     * @param  {string|Function} [easing]
    +     *         动画缓动函数,详见{@link module:zrender/animation/easing}
    +     * @param  {boolean} forceAnimate
    +     * @return {module:zrender/animation/Animator}
    +     */
    +    start: function (easing, forceAnimate) {
    +
    +        var self = this;
    +        var clipCount = 0;
    +
    +        var oneTrackDone = function() {
    +            clipCount--;
    +            if (!clipCount) {
    +                self._doneCallback();
    +            }
    +        };
    +
    +        var lastClip;
    +        for (var propName in this._tracks) {
    +            if (!this._tracks.hasOwnProperty(propName)) {
    +                continue;
    +            }
    +            var clip = createTrackClip(
    +                this, easing, oneTrackDone,
    +                this._tracks[propName], propName, forceAnimate
    +            );
    +            if (clip) {
    +                this._clipList.push(clip);
    +                clipCount++;
    +
    +                // If start after added to animation
    +                if (this.animation) {
    +                    this.animation.addClip(clip);
    +                }
    +
    +                lastClip = clip;
    +            }
    +        }
    +
    +        // Add during callback on the last clip
    +        if (lastClip) {
    +            var oldOnFrame = lastClip.onframe;
    +            lastClip.onframe = function (target, percent) {
    +                oldOnFrame(target, percent);
    +
    +                for (var i = 0; i < self._onframeList.length; i++) {
    +                    self._onframeList[i](target, percent);
    +                }
    +            };
    +        }
    +
    +        // This optimization will help the case that in the upper application
    +        // the view may be refreshed frequently, where animation will be
    +        // called repeatly but nothing changed.
    +        if (!clipCount) {
    +            this._doneCallback();
    +        }
    +        return this;
    +    },
    +    /**
    +     * 停止动画
    +     * @param {boolean} forwardToLast If move to last frame before stop
    +     */
    +    stop: function (forwardToLast) {
    +        var clipList = this._clipList;
    +        var animation = this.animation;
    +        for (var i = 0; i < clipList.length; i++) {
    +            var clip = clipList[i];
    +            if (forwardToLast) {
    +                // Move to last frame before stop
    +                clip.onframe(this._target, 1);
    +            }
    +            animation && animation.removeClip(clip);
    +        }
    +        clipList.length = 0;
    +    },
    +    /**
    +     * 设置动画延迟开始的时间
    +     * @param  {number} time 单位ms
    +     * @return {module:zrender/animation/Animator}
    +     */
    +    delay: function (time) {
    +        this._delay = time;
    +        return this;
    +    },
    +    /**
    +     * 添加动画结束的回调
    +     * @param  {Function} cb
    +     * @return {module:zrender/animation/Animator}
    +     */
    +    done: function(cb) {
    +        if (cb) {
    +            this._doneList.push(cb);
    +        }
    +        return this;
    +    },
    +
    +    /**
    +     * @return {Array.<module:zrender/animation/Clip>}
    +     */
    +    getClips: function () {
    +        return this._clipList;
    +    }
    +};
    +
    +var dpr = 1;
    +
    +// If in browser environment
    +if (typeof window !== 'undefined') {
    +    dpr = Math.max(window.devicePixelRatio || 1, 1);
    +}
    +
    +/**
    + * config默认配置项
    + * @exports zrender/config
    + * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + */
    +
    +/**
    + * debug日志选项:catchBrushException为true下有效
    + * 0 : 不生成debug数据,发布用
    + * 1 : 异常抛出,调试用
    + * 2 : 控制台输出,调试用
    + */
    +var debugMode = 0;
    +
    +// retina 屏幕优化
    +var devicePixelRatio = dpr;
    +
    +var log = function () {
    +};
    +
    +if (debugMode === 1) {
    +    log = function () {
    +        for (var k in arguments) {
    +            throw new Error(arguments[k]);
    +        }
    +    };
    +}
    +else if (debugMode > 1) {
    +    log = function () {
    +        for (var k in arguments) {
    +            console.log(arguments[k]);
    +        }
    +    };
    +}
    +
    +var zrLog = log;
    +
    +/**
    + * @alias modue:zrender/mixin/Animatable
    + * @constructor
    + */
    +var Animatable = function () {
    +
    +    /**
    +     * @type {Array.<module:zrender/animation/Animator>}
    +     * @readOnly
    +     */
    +    this.animators = [];
    +};
    +
    +Animatable.prototype = {
    +
    +    constructor: Animatable,
    +
    +    /**
    +     * 动画
    +     *
    +     * @param {string} path The path to fetch value from object, like 'a.b.c'.
    +     * @param {boolean} [loop] Whether to loop animation.
    +     * @return {module:zrender/animation/Animator}
    +     * @example:
    +     *     el.animate('style', false)
    +     *         .when(1000, {x: 10} )
    +     *         .done(function(){ // Animation done })
    +     *         .start()
    +     */
    +    animate: function (path, loop) {
    +        var target;
    +        var animatingShape = false;
    +        var el = this;
    +        var zr = this.__zr;
    +        if (path) {
    +            var pathSplitted = path.split('.');
    +            var prop = el;
    +            // If animating shape
    +            animatingShape = pathSplitted[0] === 'shape';
    +            for (var i = 0, l = pathSplitted.length; i < l; i++) {
    +                if (!prop) {
    +                    continue;
    +                }
    +                prop = prop[pathSplitted[i]];
    +            }
    +            if (prop) {
    +                target = prop;
    +            }
    +        }
    +        else {
    +            target = el;
    +        }
    +
    +        if (!target) {
    +            zrLog(
    +                'Property "'
    +                + path
    +                + '" is not existed in element '
    +                + el.id
    +            );
    +            return;
    +        }
    +
    +        var animators = el.animators;
    +
    +        var animator = new Animator(target, loop);
    +
    +        animator.during(function (target) {
    +            el.dirty(animatingShape);
    +        })
    +        .done(function () {
    +            // FIXME Animator will not be removed if use `Animator#stop` to stop animation
    +            animators.splice(indexOf(animators, animator), 1);
    +        });
    +
    +        animators.push(animator);
    +
    +        // If animate after added to the zrender
    +        if (zr) {
    +            zr.animation.addAnimator(animator);
    +        }
    +
    +        return animator;
    +    },
    +
    +    /**
    +     * 停止动画
    +     * @param {boolean} forwardToLast If move to last frame before stop
    +     */
    +    stopAnimation: function (forwardToLast) {
    +        var animators = this.animators;
    +        var len = animators.length;
    +        for (var i = 0; i < len; i++) {
    +            animators[i].stop(forwardToLast);
    +        }
    +        animators.length = 0;
    +
    +        return this;
    +    },
    +
    +    /**
    +     * Caution: this method will stop previous animation.
    +     * So do not use this method to one element twice before
    +     * animation starts, unless you know what you are doing.
    +     * @param {Object} target
    +     * @param {number} [time=500] Time in ms
    +     * @param {string} [easing='linear']
    +     * @param {number} [delay=0]
    +     * @param {Function} [callback]
    +     * @param {Function} [forceAnimate] Prevent stop animation and callback
    +     *        immediently when target values are the same as current values.
    +     *
    +     * @example
    +     *  // Animate position
    +     *  el.animateTo({
    +     *      position: [10, 10]
    +     *  }, function () { // done })
    +     *
    +     *  // Animate shape, style and position in 100ms, delayed 100ms, with cubicOut easing
    +     *  el.animateTo({
    +     *      shape: {
    +     *          width: 500
    +     *      },
    +     *      style: {
    +     *          fill: 'red'
    +     *      }
    +     *      position: [10, 10]
    +     *  }, 100, 100, 'cubicOut', function () { // done })
    +     */
    +        // TODO Return animation key
    +    animateTo: function (target, time, delay, easing, callback, forceAnimate) {
    +        // animateTo(target, time, easing, callback);
    +        if (isString(delay)) {
    +            callback = easing;
    +            easing = delay;
    +            delay = 0;
    +        }
    +        // animateTo(target, time, delay, callback);
    +        else if (isFunction(easing)) {
    +            callback = easing;
    +            easing = 'linear';
    +            delay = 0;
    +        }
    +        // animateTo(target, time, callback);
    +        else if (isFunction(delay)) {
    +            callback = delay;
    +            delay = 0;
    +        }
    +        // animateTo(target, callback)
    +        else if (isFunction(time)) {
    +            callback = time;
    +            time = 500;
    +        }
    +        // animateTo(target)
    +        else if (!time) {
    +            time = 500;
    +        }
    +        // Stop all previous animations
    +        this.stopAnimation();
    +        this._animateToShallow('', this, target, time, delay);
    +
    +        // Animators may be removed immediately after start
    +        // if there is nothing to animate
    +        var animators = this.animators.slice();
    +        var count = animators.length;
    +        function done() {
    +            count--;
    +            if (!count) {
    +                callback && callback();
    +            }
    +        }
    +
    +        // No animators. This should be checked before animators[i].start(),
    +        // because 'done' may be executed immediately if no need to animate.
    +        if (!count) {
    +            callback && callback();
    +        }
    +        // Start after all animators created
    +        // Incase any animator is done immediately when all animation properties are not changed
    +        for (var i = 0; i < animators.length; i++) {
    +            animators[i]
    +                .done(done)
    +                .start(easing, forceAnimate);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     * @param {string} path=''
    +     * @param {Object} source=this
    +     * @param {Object} target
    +     * @param {number} [time=500]
    +     * @param {number} [delay=0]
    +     *
    +     * @example
    +     *  // Animate position
    +     *  el._animateToShallow({
    +     *      position: [10, 10]
    +     *  })
    +     *
    +     *  // Animate shape, style and position in 100ms, delayed 100ms
    +     *  el._animateToShallow({
    +     *      shape: {
    +     *          width: 500
    +     *      },
    +     *      style: {
    +     *          fill: 'red'
    +     *      }
    +     *      position: [10, 10]
    +     *  }, 100, 100)
    +     */
    +    _animateToShallow: function (path, source, target, time, delay) {
    +        var objShallow = {};
    +        var propertyCount = 0;
    +        for (var name in target) {
    +            if (!target.hasOwnProperty(name)) {
    +                continue;
    +            }
    +
    +            if (source[name] != null) {
    +                if (isObject(target[name]) && !isArrayLike(target[name])) {
    +                    this._animateToShallow(
    +                        path ? path + '.' + name : name,
    +                        source[name],
    +                        target[name],
    +                        time,
    +                        delay
    +                    );
    +                }
    +                else {
    +                    objShallow[name] = target[name];
    +                    propertyCount++;
    +                }
    +            }
    +            else if (target[name] != null) {
    +                // Attr directly if not has property
    +                // FIXME, if some property not needed for element ?
    +                if (!path) {
    +                    this.attr(name, target[name]);
    +                }
    +                else {  // Shape or style
    +                    var props = {};
    +                    props[path] = {};
    +                    props[path][name] = target[name];
    +                    this.attr(props);
    +                }
    +            }
    +        }
    +
    +        if (propertyCount > 0) {
    +            this.animate(path, false)
    +                .when(time == null ? 500 : time, objShallow)
    +                .delay(delay || 0);
    +        }
    +
    +        return this;
    +    }
    +};
    +
    +/**
    + * @alias module:zrender/Element
    + * @constructor
    + * @extends {module:zrender/mixin/Animatable}
    + * @extends {module:zrender/mixin/Transformable}
    + * @extends {module:zrender/mixin/Eventful}
    + */
    +var Element = function (opts) { // jshint ignore:line
    +
    +    Transformable.call(this, opts);
    +    Eventful.call(this, opts);
    +    Animatable.call(this, opts);
    +
    +    /**
    +     * 画布元素ID
    +     * @type {string}
    +     */
    +    this.id = opts.id || guid();
    +};
    +
    +Element.prototype = {
    +
    +    /**
    +     * 元素类型
    +     * Element type
    +     * @type {string}
    +     */
    +    type: 'element',
    +
    +    /**
    +     * 元素名字
    +     * Element name
    +     * @type {string}
    +     */
    +    name: '',
    +
    +    /**
    +     * ZRender 实例对象,会在 element 添加到 zrender 实例中后自动赋值
    +     * ZRender instance will be assigned when element is associated with zrender
    +     * @name module:/zrender/Element#__zr
    +     * @type {module:zrender/ZRender}
    +     */
    +    __zr: null,
    +
    +    /**
    +     * 图形是否忽略,为true时忽略图形的绘制以及事件触发
    +     * If ignore drawing and events of the element object
    +     * @name module:/zrender/Element#ignore
    +     * @type {boolean}
    +     * @default false
    +     */
    +    ignore: false,
    +
    +    /**
    +     * 用于裁剪的路径(shape),所有 Group 内的路径在绘制时都会被这个路径裁剪
    +     * 该路径会继承被裁减对象的变换
    +     * @type {module:zrender/graphic/Path}
    +     * @see http://www.w3.org/TR/2dcontext/#clipping-region
    +     * @readOnly
    +     */
    +    clipPath: null,
    +
    +    /**
    +     * Drift element
    +     * @param  {number} dx dx on the global space
    +     * @param  {number} dy dy on the global space
    +     */
    +    drift: function (dx, dy) {
    +        switch (this.draggable) {
    +            case 'horizontal':
    +                dy = 0;
    +                break;
    +            case 'vertical':
    +                dx = 0;
    +                break;
    +        }
    +
    +        var m = this.transform;
    +        if (!m) {
    +            m = this.transform = [1, 0, 0, 1, 0, 0];
    +        }
    +        m[4] += dx;
    +        m[5] += dy;
    +
    +        this.decomposeTransform();
    +        this.dirty(false);
    +    },
    +
    +    /**
    +     * Hook before update
    +     */
    +    beforeUpdate: function () {},
    +    /**
    +     * Hook after update
    +     */
    +    afterUpdate: function () {},
    +    /**
    +     * Update each frame
    +     */
    +    update: function () {
    +        this.updateTransform();
    +    },
    +
    +    /**
    +     * @param  {Function} cb
    +     * @param  {}   context
    +     */
    +    traverse: function (cb, context) {},
    +
    +    /**
    +     * @protected
    +     */
    +    attrKV: function (key, value) {
    +        if (key === 'position' || key === 'scale' || key === 'origin') {
    +            // Copy the array
    +            if (value) {
    +                var target = this[key];
    +                if (!target) {
    +                    target = this[key] = [];
    +                }
    +                target[0] = value[0];
    +                target[1] = value[1];
    +            }
    +        }
    +        else {
    +            this[key] = value;
    +        }
    +    },
    +
    +    /**
    +     * Hide the element
    +     */
    +    hide: function () {
    +        this.ignore = true;
    +        this.__zr && this.__zr.refresh();
    +    },
    +
    +    /**
    +     * Show the element
    +     */
    +    show: function () {
    +        this.ignore = false;
    +        this.__zr && this.__zr.refresh();
    +    },
    +
    +    /**
    +     * @param {string|Object} key
    +     * @param {*} value
    +     */
    +    attr: function (key, value) {
    +        if (typeof key === 'string') {
    +            this.attrKV(key, value);
    +        }
    +        else if (isObject(key)) {
    +            for (var name in key) {
    +                if (key.hasOwnProperty(name)) {
    +                    this.attrKV(name, key[name]);
    +                }
    +            }
    +        }
    +
    +        this.dirty(false);
    +
    +        return this;
    +    },
    +
    +    /**
    +     * @param {module:zrender/graphic/Path} clipPath
    +     */
    +    setClipPath: function (clipPath) {
    +        var zr = this.__zr;
    +        if (zr) {
    +            clipPath.addSelfToZr(zr);
    +        }
    +
    +        // Remove previous clip path
    +        if (this.clipPath && this.clipPath !== clipPath) {
    +            this.removeClipPath();
    +        }
    +
    +        this.clipPath = clipPath;
    +        clipPath.__zr = zr;
    +        clipPath.__clipTarget = this;
    +
    +        this.dirty(false);
    +    },
    +
    +    /**
    +     */
    +    removeClipPath: function () {
    +        var clipPath = this.clipPath;
    +        if (clipPath) {
    +            if (clipPath.__zr) {
    +                clipPath.removeSelfFromZr(clipPath.__zr);
    +            }
    +
    +            clipPath.__zr = null;
    +            clipPath.__clipTarget = null;
    +            this.clipPath = null;
    +
    +            this.dirty(false);
    +        }
    +    },
    +
    +    /**
    +     * Add self from zrender instance.
    +     * Not recursively because it will be invoked when element added to storage.
    +     * @param {module:zrender/ZRender} zr
    +     */
    +    addSelfToZr: function (zr) {
    +        this.__zr = zr;
    +        // 添加动画
    +        var animators = this.animators;
    +        if (animators) {
    +            for (var i = 0; i < animators.length; i++) {
    +                zr.animation.addAnimator(animators[i]);
    +            }
    +        }
    +
    +        if (this.clipPath) {
    +            this.clipPath.addSelfToZr(zr);
    +        }
    +    },
    +
    +    /**
    +     * Remove self from zrender instance.
    +     * Not recursively because it will be invoked when element added to storage.
    +     * @param {module:zrender/ZRender} zr
    +     */
    +    removeSelfFromZr: function (zr) {
    +        this.__zr = null;
    +        // 移除动画
    +        var animators = this.animators;
    +        if (animators) {
    +            for (var i = 0; i < animators.length; i++) {
    +                zr.animation.removeAnimator(animators[i]);
    +            }
    +        }
    +
    +        if (this.clipPath) {
    +            this.clipPath.removeSelfFromZr(zr);
    +        }
    +    }
    +};
    +
    +mixin(Element, Animatable);
    +mixin(Element, Transformable);
    +mixin(Element, Eventful);
    +
    +/**
    + * @module echarts/core/BoundingRect
    + */
    +
    +var v2ApplyTransform = applyTransform;
    +var mathMin = Math.min;
    +var mathMax = Math.max;
    +
    +/**
    + * @alias module:echarts/core/BoundingRect
    + */
    +function BoundingRect(x, y, width, height) {
    +
    +    if (width < 0) {
    +        x = x + width;
    +        width = -width;
    +    }
    +    if (height < 0) {
    +        y = y + height;
    +        height = -height;
    +    }
    +
    +    /**
    +     * @type {number}
    +     */
    +    this.x = x;
    +    /**
    +     * @type {number}
    +     */
    +    this.y = y;
    +    /**
    +     * @type {number}
    +     */
    +    this.width = width;
    +    /**
    +     * @type {number}
    +     */
    +    this.height = height;
    +}
    +
    +BoundingRect.prototype = {
    +
    +    constructor: BoundingRect,
    +
    +    /**
    +     * @param {module:echarts/core/BoundingRect} other
    +     */
    +    union: function (other) {
    +        var x = mathMin(other.x, this.x);
    +        var y = mathMin(other.y, this.y);
    +
    +        this.width = mathMax(
    +                other.x + other.width,
    +                this.x + this.width
    +            ) - x;
    +        this.height = mathMax(
    +                other.y + other.height,
    +                this.y + this.height
    +            ) - y;
    +        this.x = x;
    +        this.y = y;
    +    },
    +
    +    /**
    +     * @param {Array.<number>} m
    +     * @methods
    +     */
    +    applyTransform: (function () {
    +        var lt = [];
    +        var rb = [];
    +        var lb = [];
    +        var rt = [];
    +        return function (m) {
    +            // In case usage like this
    +            // el.getBoundingRect().applyTransform(el.transform)
    +            // And element has no transform
    +            if (!m) {
    +                return;
    +            }
    +            lt[0] = lb[0] = this.x;
    +            lt[1] = rt[1] = this.y;
    +            rb[0] = rt[0] = this.x + this.width;
    +            rb[1] = lb[1] = this.y + this.height;
    +
    +            v2ApplyTransform(lt, lt, m);
    +            v2ApplyTransform(rb, rb, m);
    +            v2ApplyTransform(lb, lb, m);
    +            v2ApplyTransform(rt, rt, m);
    +
    +            this.x = mathMin(lt[0], rb[0], lb[0], rt[0]);
    +            this.y = mathMin(lt[1], rb[1], lb[1], rt[1]);
    +            var maxX = mathMax(lt[0], rb[0], lb[0], rt[0]);
    +            var maxY = mathMax(lt[1], rb[1], lb[1], rt[1]);
    +            this.width = maxX - this.x;
    +            this.height = maxY - this.y;
    +        };
    +    })(),
    +
    +    /**
    +     * Calculate matrix of transforming from self to target rect
    +     * @param  {module:zrender/core/BoundingRect} b
    +     * @return {Array.<number>}
    +     */
    +    calculateTransform: function (b) {
    +        var a = this;
    +        var sx = b.width / a.width;
    +        var sy = b.height / a.height;
    +
    +        var m = create$1();
    +
    +        // 矩阵右乘
    +        translate(m, m, [-a.x, -a.y]);
    +        scale$1(m, m, [sx, sy]);
    +        translate(m, m, [b.x, b.y]);
    +
    +        return m;
    +    },
    +
    +    /**
    +     * @param {(module:echarts/core/BoundingRect|Object)} b
    +     * @return {boolean}
    +     */
    +    intersect: function (b) {
    +        if (!b) {
    +            return false;
    +        }
    +
    +        if (!(b instanceof BoundingRect)) {
    +            // Normalize negative width/height.
    +            b = BoundingRect.create(b);
    +        }
    +
    +        var a = this;
    +        var ax0 = a.x;
    +        var ax1 = a.x + a.width;
    +        var ay0 = a.y;
    +        var ay1 = a.y + a.height;
    +
    +        var bx0 = b.x;
    +        var bx1 = b.x + b.width;
    +        var by0 = b.y;
    +        var by1 = b.y + b.height;
    +
    +        return ! (ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);
    +    },
    +
    +    contain: function (x, y) {
    +        var rect = this;
    +        return x >= rect.x
    +            && x <= (rect.x + rect.width)
    +            && y >= rect.y
    +            && y <= (rect.y + rect.height);
    +    },
    +
    +    /**
    +     * @return {module:echarts/core/BoundingRect}
    +     */
    +    clone: function () {
    +        return new BoundingRect(this.x, this.y, this.width, this.height);
    +    },
    +
    +    /**
    +     * Copy from another rect
    +     */
    +    copy: function (other) {
    +        this.x = other.x;
    +        this.y = other.y;
    +        this.width = other.width;
    +        this.height = other.height;
    +    },
    +
    +    plain: function () {
    +        return {
    +            x: this.x,
    +            y: this.y,
    +            width: this.width,
    +            height: this.height
    +        };
    +    }
    +};
    +
    +/**
    + * @param {Object|module:zrender/core/BoundingRect} rect
    + * @param {number} rect.x
    + * @param {number} rect.y
    + * @param {number} rect.width
    + * @param {number} rect.height
    + * @return {module:zrender/core/BoundingRect}
    + */
    +BoundingRect.create = function (rect) {
    +    return new BoundingRect(rect.x, rect.y, rect.width, rect.height);
    +};
    +
    +/**
    + * Group是一个容器,可以插入子节点,Group的变换也会被应用到子节点上
    + * @module zrender/graphic/Group
    + * @example
    + *     var Group = require('zrender/container/Group');
    + *     var Circle = require('zrender/graphic/shape/Circle');
    + *     var g = new Group();
    + *     g.position[0] = 100;
    + *     g.position[1] = 100;
    + *     g.add(new Circle({
    + *         style: {
    + *             x: 100,
    + *             y: 100,
    + *             r: 20,
    + *         }
    + *     }));
    + *     zr.add(g);
    + */
    +
    +/**
    + * @alias module:zrender/graphic/Group
    + * @constructor
    + * @extends module:zrender/mixin/Transformable
    + * @extends module:zrender/mixin/Eventful
    + */
    +var Group = function (opts) {
    +
    +    opts = opts || {};
    +
    +    Element.call(this, opts);
    +
    +    for (var key in opts) {
    +        if (opts.hasOwnProperty(key)) {
    +            this[key] = opts[key];
    +        }
    +    }
    +
    +    this._children = [];
    +
    +    this.__storage = null;
    +
    +    this.__dirty = true;
    +};
    +
    +Group.prototype = {
    +
    +    constructor: Group,
    +
    +    isGroup: true,
    +
    +    /**
    +     * @type {string}
    +     */
    +    type: 'group',
    +
    +    /**
    +     * 所有子孙元素是否响应鼠标事件
    +     * @name module:/zrender/container/Group#silent
    +     * @type {boolean}
    +     * @default false
    +     */
    +    silent: false,
    +
    +    /**
    +     * @return {Array.<module:zrender/Element>}
    +     */
    +    children: function () {
    +        return this._children.slice();
    +    },
    +
    +    /**
    +     * 获取指定 index 的儿子节点
    +     * @param  {number} idx
    +     * @return {module:zrender/Element}
    +     */
    +    childAt: function (idx) {
    +        return this._children[idx];
    +    },
    +
    +    /**
    +     * 获取指定名字的儿子节点
    +     * @param  {string} name
    +     * @return {module:zrender/Element}
    +     */
    +    childOfName: function (name) {
    +        var children = this._children;
    +        for (var i = 0; i < children.length; i++) {
    +            if (children[i].name === name) {
    +                return children[i];
    +            }
    +            }
    +    },
    +
    +    /**
    +     * @return {number}
    +     */
    +    childCount: function () {
    +        return this._children.length;
    +    },
    +
    +    /**
    +     * 添加子节点到最后
    +     * @param {module:zrender/Element} child
    +     */
    +    add: function (child) {
    +        if (child && child !== this && child.parent !== this) {
    +
    +            this._children.push(child);
    +
    +            this._doAdd(child);
    +        }
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 添加子节点在 nextSibling 之前
    +     * @param {module:zrender/Element} child
    +     * @param {module:zrender/Element} nextSibling
    +     */
    +    addBefore: function (child, nextSibling) {
    +        if (child && child !== this && child.parent !== this
    +            && nextSibling && nextSibling.parent === this) {
    +
    +            var children = this._children;
    +            var idx = children.indexOf(nextSibling);
    +
    +            if (idx >= 0) {
    +                children.splice(idx, 0, child);
    +                this._doAdd(child);
    +            }
    +        }
    +
    +        return this;
    +    },
    +
    +    _doAdd: function (child) {
    +        if (child.parent) {
    +            child.parent.remove(child);
    +        }
    +
    +        child.parent = this;
    +
    +        var storage = this.__storage;
    +        var zr = this.__zr;
    +        if (storage && storage !== child.__storage) {
    +
    +            storage.addToStorage(child);
    +
    +            if (child instanceof Group) {
    +                child.addChildrenToStorage(storage);
    +            }
    +        }
    +
    +        zr && zr.refresh();
    +    },
    +
    +    /**
    +     * 移除子节点
    +     * @param {module:zrender/Element} child
    +     */
    +    remove: function (child) {
    +        var zr = this.__zr;
    +        var storage = this.__storage;
    +        var children = this._children;
    +
    +        var idx = indexOf(children, child);
    +        if (idx < 0) {
    +            return this;
    +        }
    +        children.splice(idx, 1);
    +
    +        child.parent = null;
    +
    +        if (storage) {
    +
    +            storage.delFromStorage(child);
    +
    +            if (child instanceof Group) {
    +                child.delChildrenFromStorage(storage);
    +            }
    +        }
    +
    +        zr && zr.refresh();
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 移除所有子节点
    +     */
    +    removeAll: function () {
    +        var children = this._children;
    +        var storage = this.__storage;
    +        var child;
    +        var i;
    +        for (i = 0; i < children.length; i++) {
    +            child = children[i];
    +            if (storage) {
    +                storage.delFromStorage(child);
    +                if (child instanceof Group) {
    +                    child.delChildrenFromStorage(storage);
    +                }
    +            }
    +            child.parent = null;
    +        }
    +        children.length = 0;
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 遍历所有子节点
    +     * @param  {Function} cb
    +     * @param  {}   context
    +     */
    +    eachChild: function (cb, context) {
    +        var children = this._children;
    +        for (var i = 0; i < children.length; i++) {
    +            var child = children[i];
    +            cb.call(context, child, i);
    +        }
    +        return this;
    +    },
    +
    +    /**
    +     * 深度优先遍历所有子孙节点
    +     * @param  {Function} cb
    +     * @param  {}   context
    +     */
    +    traverse: function (cb, context) {
    +        for (var i = 0; i < this._children.length; i++) {
    +            var child = this._children[i];
    +            cb.call(context, child);
    +
    +            if (child.type === 'group') {
    +                child.traverse(cb, context);
    +            }
    +        }
    +        return this;
    +    },
    +
    +    addChildrenToStorage: function (storage) {
    +        for (var i = 0; i < this._children.length; i++) {
    +            var child = this._children[i];
    +            storage.addToStorage(child);
    +            if (child instanceof Group) {
    +                child.addChildrenToStorage(storage);
    +            }
    +        }
    +    },
    +
    +    delChildrenFromStorage: function (storage) {
    +        for (var i = 0; i < this._children.length; i++) {
    +            var child = this._children[i];
    +            storage.delFromStorage(child);
    +            if (child instanceof Group) {
    +                child.delChildrenFromStorage(storage);
    +            }
    +        }
    +    },
    +
    +    dirty: function () {
    +        this.__dirty = true;
    +        this.__zr && this.__zr.refresh();
    +        return this;
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getBoundingRect: function (includeChildren) {
    +        // TODO Caching
    +        var rect = null;
    +        var tmpRect = new BoundingRect(0, 0, 0, 0);
    +        var children = includeChildren || this._children;
    +        var tmpMat = [];
    +
    +        for (var i = 0; i < children.length; i++) {
    +            var child = children[i];
    +            if (child.ignore || child.invisible) {
    +                continue;
    +            }
    +
    +            var childRect = child.getBoundingRect();
    +            var transform = child.getLocalTransform(tmpMat);
    +            // TODO
    +            // The boundingRect cacluated by transforming original
    +            // rect may be bigger than the actual bundingRect when rotation
    +            // is used. (Consider a circle rotated aginst its center, where
    +            // the actual boundingRect should be the same as that not be
    +            // rotated.) But we can not find better approach to calculate
    +            // actual boundingRect yet, considering performance.
    +            if (transform) {
    +                tmpRect.copy(childRect);
    +                tmpRect.applyTransform(transform);
    +                rect = rect || tmpRect.clone();
    +                rect.union(tmpRect);
    +            }
    +            else {
    +                rect = rect || childRect.clone();
    +                rect.union(childRect);
    +            }
    +        }
    +        return rect || tmpRect;
    +    }
    +};
    +
    +inherits(Group, Element);
    +
    +// https://github.com/mziccard/node-timsort
    +var DEFAULT_MIN_MERGE = 32;
    +
    +var DEFAULT_MIN_GALLOPING = 7;
    +
    +function minRunLength(n) {
    +    var r = 0;
    +
    +    while (n >= DEFAULT_MIN_MERGE) {
    +        r |= n & 1;
    +        n >>= 1;
    +    }
    +
    +    return n + r;
    +}
    +
    +function makeAscendingRun(array, lo, hi, compare) {
    +    var runHi = lo + 1;
    +
    +    if (runHi === hi) {
    +        return 1;
    +    }
    +
    +    if (compare(array[runHi++], array[lo]) < 0) {
    +        while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {
    +            runHi++;
    +        }
    +
    +        reverseRun(array, lo, runHi);
    +    }
    +    else {
    +        while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {
    +            runHi++;
    +        }
    +    }
    +
    +    return runHi - lo;
    +}
    +
    +function reverseRun(array, lo, hi) {
    +    hi--;
    +
    +    while (lo < hi) {
    +        var t = array[lo];
    +        array[lo++] = array[hi];
    +        array[hi--] = t;
    +    }
    +}
    +
    +function binaryInsertionSort(array, lo, hi, start, compare) {
    +    if (start === lo) {
    +        start++;
    +    }
    +
    +    for (; start < hi; start++) {
    +        var pivot = array[start];
    +
    +        var left = lo;
    +        var right = start;
    +        var mid;
    +
    +        while (left < right) {
    +            mid = left + right >>> 1;
    +
    +            if (compare(pivot, array[mid]) < 0) {
    +                right = mid;
    +            }
    +            else {
    +                left = mid + 1;
    +            }
    +        }
    +
    +        var n = start - left;
    +
    +        switch (n) {
    +            case 3:
    +                array[left + 3] = array[left + 2];
    +
    +            case 2:
    +                array[left + 2] = array[left + 1];
    +
    +            case 1:
    +                array[left + 1] = array[left];
    +                break;
    +            default:
    +                while (n > 0) {
    +                    array[left + n] = array[left + n - 1];
    +                    n--;
    +                }
    +        }
    +
    +        array[left] = pivot;
    +    }
    +}
    +
    +function gallopLeft(value, array, start, length, hint, compare) {
    +    var lastOffset = 0;
    +    var maxOffset = 0;
    +    var offset = 1;
    +
    +    if (compare(value, array[start + hint]) > 0) {
    +        maxOffset = length - hint;
    +
    +        while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {
    +            lastOffset = offset;
    +            offset = (offset << 1) + 1;
    +
    +            if (offset <= 0) {
    +                offset = maxOffset;
    +            }
    +        }
    +
    +        if (offset > maxOffset) {
    +            offset = maxOffset;
    +        }
    +
    +        lastOffset += hint;
    +        offset += hint;
    +    }
    +    else {
    +        maxOffset = hint + 1;
    +        while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {
    +            lastOffset = offset;
    +            offset = (offset << 1) + 1;
    +
    +            if (offset <= 0) {
    +                offset = maxOffset;
    +            }
    +        }
    +        if (offset > maxOffset) {
    +            offset = maxOffset;
    +        }
    +
    +        var tmp = lastOffset;
    +        lastOffset = hint - offset;
    +        offset = hint - tmp;
    +    }
    +
    +    lastOffset++;
    +    while (lastOffset < offset) {
    +        var m = lastOffset + (offset - lastOffset >>> 1);
    +
    +        if (compare(value, array[start + m]) > 0) {
    +            lastOffset = m + 1;
    +        }
    +        else {
    +            offset = m;
    +        }
    +    }
    +    return offset;
    +}
    +
    +function gallopRight(value, array, start, length, hint, compare) {
    +    var lastOffset = 0;
    +    var maxOffset = 0;
    +    var offset = 1;
    +
    +    if (compare(value, array[start + hint]) < 0) {
    +        maxOffset = hint + 1;
    +
    +        while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {
    +            lastOffset = offset;
    +            offset = (offset << 1) + 1;
    +
    +            if (offset <= 0) {
    +                offset = maxOffset;
    +            }
    +        }
    +
    +        if (offset > maxOffset) {
    +            offset = maxOffset;
    +        }
    +
    +        var tmp = lastOffset;
    +        lastOffset = hint - offset;
    +        offset = hint - tmp;
    +    }
    +    else {
    +        maxOffset = length - hint;
    +
    +        while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {
    +            lastOffset = offset;
    +            offset = (offset << 1) + 1;
    +
    +            if (offset <= 0) {
    +                offset = maxOffset;
    +            }
    +        }
    +
    +        if (offset > maxOffset) {
    +            offset = maxOffset;
    +        }
    +
    +        lastOffset += hint;
    +        offset += hint;
    +    }
    +
    +    lastOffset++;
    +
    +    while (lastOffset < offset) {
    +        var m = lastOffset + (offset - lastOffset >>> 1);
    +
    +        if (compare(value, array[start + m]) < 0) {
    +            offset = m;
    +        }
    +        else {
    +            lastOffset = m + 1;
    +        }
    +    }
    +
    +    return offset;
    +}
    +
    +function TimSort(array, compare) {
    +    var minGallop = DEFAULT_MIN_GALLOPING;
    +    var runStart;
    +    var runLength;
    +    var stackSize = 0;
    +
    +    var tmp = [];
    +
    +    runStart = [];
    +    runLength = [];
    +
    +    function pushRun(_runStart, _runLength) {
    +        runStart[stackSize] = _runStart;
    +        runLength[stackSize] = _runLength;
    +        stackSize += 1;
    +    }
    +
    +    function mergeRuns() {
    +        while (stackSize > 1) {
    +            var n = stackSize - 2;
    +
    +            if (n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1] || n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1]) {
    +                if (runLength[n - 1] < runLength[n + 1]) {
    +                    n--;
    +                }
    +            }
    +            else if (runLength[n] > runLength[n + 1]) {
    +                break;
    +            }
    +            mergeAt(n);
    +        }
    +    }
    +
    +    function forceMergeRuns() {
    +        while (stackSize > 1) {
    +            var n = stackSize - 2;
    +
    +            if (n > 0 && runLength[n - 1] < runLength[n + 1]) {
    +                n--;
    +            }
    +
    +            mergeAt(n);
    +        }
    +    }
    +
    +    function mergeAt(i) {
    +        var start1 = runStart[i];
    +        var length1 = runLength[i];
    +        var start2 = runStart[i + 1];
    +        var length2 = runLength[i + 1];
    +
    +        runLength[i] = length1 + length2;
    +
    +        if (i === stackSize - 3) {
    +            runStart[i + 1] = runStart[i + 2];
    +            runLength[i + 1] = runLength[i + 2];
    +        }
    +
    +        stackSize--;
    +
    +        var k = gallopRight(array[start2], array, start1, length1, 0, compare);
    +        start1 += k;
    +        length1 -= k;
    +
    +        if (length1 === 0) {
    +            return;
    +        }
    +
    +        length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);
    +
    +        if (length2 === 0) {
    +            return;
    +        }
    +
    +        if (length1 <= length2) {
    +            mergeLow(start1, length1, start2, length2);
    +        }
    +        else {
    +            mergeHigh(start1, length1, start2, length2);
    +        }
    +    }
    +
    +    function mergeLow(start1, length1, start2, length2) {
    +        var i = 0;
    +
    +        for (i = 0; i < length1; i++) {
    +            tmp[i] = array[start1 + i];
    +        }
    +
    +        var cursor1 = 0;
    +        var cursor2 = start2;
    +        var dest = start1;
    +
    +        array[dest++] = array[cursor2++];
    +
    +        if (--length2 === 0) {
    +            for (i = 0; i < length1; i++) {
    +                array[dest + i] = tmp[cursor1 + i];
    +            }
    +            return;
    +        }
    +
    +        if (length1 === 1) {
    +            for (i = 0; i < length2; i++) {
    +                array[dest + i] = array[cursor2 + i];
    +            }
    +            array[dest + length2] = tmp[cursor1];
    +            return;
    +        }
    +
    +        var _minGallop = minGallop;
    +        var count1, count2, exit;
    +
    +        while (1) {
    +            count1 = 0;
    +            count2 = 0;
    +            exit = false;
    +
    +            do {
    +                if (compare(array[cursor2], tmp[cursor1]) < 0) {
    +                    array[dest++] = array[cursor2++];
    +                    count2++;
    +                    count1 = 0;
    +
    +                    if (--length2 === 0) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +                else {
    +                    array[dest++] = tmp[cursor1++];
    +                    count1++;
    +                    count2 = 0;
    +                    if (--length1 === 1) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +            } while ((count1 | count2) < _minGallop);
    +
    +            if (exit) {
    +                break;
    +            }
    +
    +            do {
    +                count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);
    +
    +                if (count1 !== 0) {
    +                    for (i = 0; i < count1; i++) {
    +                        array[dest + i] = tmp[cursor1 + i];
    +                    }
    +
    +                    dest += count1;
    +                    cursor1 += count1;
    +                    length1 -= count1;
    +                    if (length1 <= 1) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +
    +                array[dest++] = array[cursor2++];
    +
    +                if (--length2 === 0) {
    +                    exit = true;
    +                    break;
    +                }
    +
    +                count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);
    +
    +                if (count2 !== 0) {
    +                    for (i = 0; i < count2; i++) {
    +                        array[dest + i] = array[cursor2 + i];
    +                    }
    +
    +                    dest += count2;
    +                    cursor2 += count2;
    +                    length2 -= count2;
    +
    +                    if (length2 === 0) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +                array[dest++] = tmp[cursor1++];
    +
    +                if (--length1 === 1) {
    +                    exit = true;
    +                    break;
    +                }
    +
    +                _minGallop--;
    +            } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);
    +
    +            if (exit) {
    +                break;
    +            }
    +
    +            if (_minGallop < 0) {
    +                _minGallop = 0;
    +            }
    +
    +            _minGallop += 2;
    +        }
    +
    +        minGallop = _minGallop;
    +
    +        minGallop < 1 && (minGallop = 1);
    +
    +        if (length1 === 1) {
    +            for (i = 0; i < length2; i++) {
    +                array[dest + i] = array[cursor2 + i];
    +            }
    +            array[dest + length2] = tmp[cursor1];
    +        }
    +        else if (length1 === 0) {
    +            throw new Error();
    +            // throw new Error('mergeLow preconditions were not respected');
    +        }
    +        else {
    +            for (i = 0; i < length1; i++) {
    +                array[dest + i] = tmp[cursor1 + i];
    +            }
    +        }
    +    }
    +
    +    function mergeHigh (start1, length1, start2, length2) {
    +        var i = 0;
    +
    +        for (i = 0; i < length2; i++) {
    +            tmp[i] = array[start2 + i];
    +        }
    +
    +        var cursor1 = start1 + length1 - 1;
    +        var cursor2 = length2 - 1;
    +        var dest = start2 + length2 - 1;
    +        var customCursor = 0;
    +        var customDest = 0;
    +
    +        array[dest--] = array[cursor1--];
    +
    +        if (--length1 === 0) {
    +            customCursor = dest - (length2 - 1);
    +
    +            for (i = 0; i < length2; i++) {
    +                array[customCursor + i] = tmp[i];
    +            }
    +
    +            return;
    +        }
    +
    +        if (length2 === 1) {
    +            dest -= length1;
    +            cursor1 -= length1;
    +            customDest = dest + 1;
    +            customCursor = cursor1 + 1;
    +
    +            for (i = length1 - 1; i >= 0; i--) {
    +                array[customDest + i] = array[customCursor + i];
    +            }
    +
    +            array[dest] = tmp[cursor2];
    +            return;
    +        }
    +
    +        var _minGallop = minGallop;
    +
    +        while (true) {
    +            var count1 = 0;
    +            var count2 = 0;
    +            var exit = false;
    +
    +            do {
    +                if (compare(tmp[cursor2], array[cursor1]) < 0) {
    +                    array[dest--] = array[cursor1--];
    +                    count1++;
    +                    count2 = 0;
    +                    if (--length1 === 0) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +                else {
    +                    array[dest--] = tmp[cursor2--];
    +                    count2++;
    +                    count1 = 0;
    +                    if (--length2 === 1) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +            } while ((count1 | count2) < _minGallop);
    +
    +            if (exit) {
    +                break;
    +            }
    +
    +            do {
    +                count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);
    +
    +                if (count1 !== 0) {
    +                    dest -= count1;
    +                    cursor1 -= count1;
    +                    length1 -= count1;
    +                    customDest = dest + 1;
    +                    customCursor = cursor1 + 1;
    +
    +                    for (i = count1 - 1; i >= 0; i--) {
    +                        array[customDest + i] = array[customCursor + i];
    +                    }
    +
    +                    if (length1 === 0) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +
    +                array[dest--] = tmp[cursor2--];
    +
    +                if (--length2 === 1) {
    +                    exit = true;
    +                    break;
    +                }
    +
    +                count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);
    +
    +                if (count2 !== 0) {
    +                    dest -= count2;
    +                    cursor2 -= count2;
    +                    length2 -= count2;
    +                    customDest = dest + 1;
    +                    customCursor = cursor2 + 1;
    +
    +                    for (i = 0; i < count2; i++) {
    +                        array[customDest + i] = tmp[customCursor + i];
    +                    }
    +
    +                    if (length2 <= 1) {
    +                        exit = true;
    +                        break;
    +                    }
    +                }
    +
    +                array[dest--] = array[cursor1--];
    +
    +                if (--length1 === 0) {
    +                    exit = true;
    +                    break;
    +                }
    +
    +                _minGallop--;
    +            } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);
    +
    +            if (exit) {
    +                break;
    +            }
    +
    +            if (_minGallop < 0) {
    +                _minGallop = 0;
    +            }
    +
    +            _minGallop += 2;
    +        }
    +
    +        minGallop = _minGallop;
    +
    +        if (minGallop < 1) {
    +            minGallop = 1;
    +        }
    +
    +        if (length2 === 1) {
    +            dest -= length1;
    +            cursor1 -= length1;
    +            customDest = dest + 1;
    +            customCursor = cursor1 + 1;
    +
    +            for (i = length1 - 1; i >= 0; i--) {
    +                array[customDest + i] = array[customCursor + i];
    +            }
    +
    +            array[dest] = tmp[cursor2];
    +        }
    +        else if (length2 === 0) {
    +            throw new Error();
    +            // throw new Error('mergeHigh preconditions were not respected');
    +        }
    +        else {
    +            customCursor = dest - (length2 - 1);
    +            for (i = 0; i < length2; i++) {
    +                array[customCursor + i] = tmp[i];
    +            }
    +        }
    +    }
    +
    +    this.mergeRuns = mergeRuns;
    +    this.forceMergeRuns = forceMergeRuns;
    +    this.pushRun = pushRun;
    +}
    +
    +function sort(array, compare, lo, hi) {
    +    if (!lo) {
    +        lo = 0;
    +    }
    +    if (!hi) {
    +        hi = array.length;
    +    }
    +
    +    var remaining = hi - lo;
    +
    +    if (remaining < 2) {
    +        return;
    +    }
    +
    +    var runLength = 0;
    +
    +    if (remaining < DEFAULT_MIN_MERGE) {
    +        runLength = makeAscendingRun(array, lo, hi, compare);
    +        binaryInsertionSort(array, lo, hi, lo + runLength, compare);
    +        return;
    +    }
    +
    +    var ts = new TimSort(array, compare);
    +
    +    var minRun = minRunLength(remaining);
    +
    +    do {
    +        runLength = makeAscendingRun(array, lo, hi, compare);
    +        if (runLength < minRun) {
    +            var force = remaining;
    +            if (force > minRun) {
    +                force = minRun;
    +            }
    +
    +            binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);
    +            runLength = force;
    +        }
    +
    +        ts.pushRun(lo, runLength);
    +        ts.mergeRuns();
    +
    +        remaining -= runLength;
    +        lo += runLength;
    +    } while (remaining !== 0);
    +
    +    ts.forceMergeRuns();
    +}
    +
    +/**
    + * Storage内容仓库模块
    + * @module zrender/Storage
    + * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + * @author errorrik (errorrik@gmail.com)
    + * @author pissang (https://github.com/pissang/)
    + */
    +
    +// Use timsort because in most case elements are partially sorted
    +// https://jsfiddle.net/pissang/jr4x7mdm/8/
    +function shapeCompareFunc(a, b) {
    +    if (a.zlevel === b.zlevel) {
    +        if (a.z === b.z) {
    +            // if (a.z2 === b.z2) {
    +            //     // FIXME Slow has renderidx compare
    +            //     // http://stackoverflow.com/questions/20883421/sorting-in-javascript-should-every-compare-function-have-a-return-0-statement
    +            //     // https://github.com/v8/v8/blob/47cce544a31ed5577ffe2963f67acb4144ee0232/src/js/array.js#L1012
    +            //     return a.__renderidx - b.__renderidx;
    +            // }
    +            return a.z2 - b.z2;
    +        }
    +        return a.z - b.z;
    +    }
    +    return a.zlevel - b.zlevel;
    +}
    +/**
    + * 内容仓库 (M)
    + * @alias module:zrender/Storage
    + * @constructor
    + */
    +var Storage = function () { // jshint ignore:line
    +    this._roots = [];
    +
    +    this._displayList = [];
    +
    +    this._displayListLen = 0;
    +};
    +
    +Storage.prototype = {
    +
    +    constructor: Storage,
    +
    +    /**
    +     * @param  {Function} cb
    +     *
    +     */
    +    traverse: function (cb, context) {
    +        for (var i = 0; i < this._roots.length; i++) {
    +            this._roots[i].traverse(cb, context);
    +        }
    +    },
    +
    +    /**
    +     * 返回所有图形的绘制队列
    +     * @param {boolean} [update=false] 是否在返回前更新该数组
    +     * @param {boolean} [includeIgnore=false] 是否包含 ignore 的数组, 在 update 为 true 的时候有效
    +     *
    +     * 详见{@link module:zrender/graphic/Displayable.prototype.updateDisplayList}
    +     * @return {Array.<module:zrender/graphic/Displayable>}
    +     */
    +    getDisplayList: function (update, includeIgnore) {
    +        includeIgnore = includeIgnore || false;
    +        if (update) {
    +            this.updateDisplayList(includeIgnore);
    +        }
    +        return this._displayList;
    +    },
    +
    +    /**
    +     * 更新图形的绘制队列。
    +     * 每次绘制前都会调用,该方法会先深度优先遍历整个树,更新所有Group和Shape的变换并且把所有可见的Shape保存到数组中,
    +     * 最后根据绘制的优先级(zlevel > z > 插入顺序)排序得到绘制队列
    +     * @param {boolean} [includeIgnore=false] 是否包含 ignore 的数组
    +     */
    +    updateDisplayList: function (includeIgnore) {
    +        this._displayListLen = 0;
    +        var roots = this._roots;
    +        var displayList = this._displayList;
    +        for (var i = 0, len = roots.length; i < len; i++) {
    +            this._updateAndAddDisplayable(roots[i], null, includeIgnore);
    +        }
    +        displayList.length = this._displayListLen;
    +
    +        // for (var i = 0, len = displayList.length; i < len; i++) {
    +        //     displayList[i].__renderidx = i;
    +        // }
    +
    +        // displayList.sort(shapeCompareFunc);
    +        env$1.canvasSupported && sort(displayList, shapeCompareFunc);
    +    },
    +
    +    _updateAndAddDisplayable: function (el, clipPaths, includeIgnore) {
    +
    +        if (el.ignore && !includeIgnore) {
    +            return;
    +        }
    +
    +        el.beforeUpdate();
    +
    +        if (el.__dirty) {
    +
    +            el.update();
    +
    +        }
    +
    +        el.afterUpdate();
    +
    +        var userSetClipPath = el.clipPath;
    +        if (userSetClipPath) {
    +
    +            // FIXME 效率影响
    +            if (clipPaths) {
    +                clipPaths = clipPaths.slice();
    +            }
    +            else {
    +                clipPaths = [];
    +            }
    +
    +            var currentClipPath = userSetClipPath;
    +            var parentClipPath = el;
    +            // Recursively add clip path
    +            while (currentClipPath) {
    +                // clipPath 的变换是基于使用这个 clipPath 的元素
    +                currentClipPath.parent = parentClipPath;
    +                currentClipPath.updateTransform();
    +
    +                clipPaths.push(currentClipPath);
    +
    +                parentClipPath = currentClipPath;
    +                currentClipPath = currentClipPath.clipPath;
    +            }
    +        }
    +
    +        if (el.isGroup) {
    +            var children = el._children;
    +
    +            for (var i = 0; i < children.length; i++) {
    +                var child = children[i];
    +
    +                // Force to mark as dirty if group is dirty
    +                // FIXME __dirtyPath ?
    +                if (el.__dirty) {
    +                    child.__dirty = true;
    +                }
    +
    +                this._updateAndAddDisplayable(child, clipPaths, includeIgnore);
    +            }
    +
    +            // Mark group clean here
    +            el.__dirty = false;
    +
    +        }
    +        else {
    +            el.__clipPaths = clipPaths;
    +
    +            this._displayList[this._displayListLen++] = el;
    +        }
    +    },
    +
    +    /**
    +     * 添加图形(Shape)或者组(Group)到根节点
    +     * @param {module:zrender/Element} el
    +     */
    +    addRoot: function (el) {
    +        if (el.__storage === this) {
    +            return;
    +        }
    +
    +        if (el instanceof Group) {
    +            el.addChildrenToStorage(this);
    +        }
    +
    +        this.addToStorage(el);
    +        this._roots.push(el);
    +    },
    +
    +    /**
    +     * 删除指定的图形(Shape)或者组(Group)
    +     * @param {string|Array.<string>} [el] 如果为空清空整个Storage
    +     */
    +    delRoot: function (el) {
    +        if (el == null) {
    +            // 不指定el清空
    +            for (var i = 0; i < this._roots.length; i++) {
    +                var root = this._roots[i];
    +                if (root instanceof Group) {
    +                    root.delChildrenFromStorage(this);
    +                }
    +            }
    +
    +            this._roots = [];
    +            this._displayList = [];
    +            this._displayListLen = 0;
    +
    +            return;
    +        }
    +
    +        if (el instanceof Array) {
    +            for (var i = 0, l = el.length; i < l; i++) {
    +                this.delRoot(el[i]);
    +            }
    +            return;
    +        }
    +
    +
    +        var idx = indexOf(this._roots, el);
    +        if (idx >= 0) {
    +            this.delFromStorage(el);
    +            this._roots.splice(idx, 1);
    +            if (el instanceof Group) {
    +                el.delChildrenFromStorage(this);
    +            }
    +        }
    +    },
    +
    +    addToStorage: function (el) {
    +        el.__storage = this;
    +        el.dirty(false);
    +
    +        return this;
    +    },
    +
    +    delFromStorage: function (el) {
    +        if (el) {
    +            el.__storage = null;
    +        }
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 清空并且释放Storage
    +     */
    +    dispose: function () {
    +        this._renderList =
    +        this._roots = null;
    +    },
    +
    +    displayableSortFunc: shapeCompareFunc
    +};
    +
    +var STYLE_COMMON_PROPS = [
    +    ['shadowBlur', 0], ['shadowOffsetX', 0], ['shadowOffsetY', 0], ['shadowColor', '#000'],
    +    ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10]
    +];
    +
    +// var SHADOW_PROPS = STYLE_COMMON_PROPS.slice(0, 4);
    +// var LINE_PROPS = STYLE_COMMON_PROPS.slice(4);
    +
    +var Style = function (opts, host) {
    +    this.extendFrom(opts, false);
    +    this.host = host;
    +};
    +
    +function createLinearGradient(ctx, obj, rect) {
    +    var x = obj.x == null ? 0 : obj.x;
    +    var x2 = obj.x2 == null ? 1 : obj.x2;
    +    var y = obj.y == null ? 0 : obj.y;
    +    var y2 = obj.y2 == null ? 0 : obj.y2;
    +
    +    if (!obj.global) {
    +        x = x * rect.width + rect.x;
    +        x2 = x2 * rect.width + rect.x;
    +        y = y * rect.height + rect.y;
    +        y2 = y2 * rect.height + rect.y;
    +    }
    +
    +    var canvasGradient = ctx.createLinearGradient(x, y, x2, y2);
    +
    +    return canvasGradient;
    +}
    +
    +function createRadialGradient(ctx, obj, rect) {
    +    var width = rect.width;
    +    var height = rect.height;
    +    var min = Math.min(width, height);
    +
    +    var x = obj.x == null ? 0.5 : obj.x;
    +    var y = obj.y == null ? 0.5 : obj.y;
    +    var r = obj.r == null ? 0.5 : obj.r;
    +    if (!obj.global) {
    +        x = x * width + rect.x;
    +        y = y * height + rect.y;
    +        r = r * min;
    +    }
    +
    +    var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);
    +
    +    return canvasGradient;
    +}
    +
    +
    +Style.prototype = {
    +
    +    constructor: Style,
    +
    +    /**
    +     * @type {module:zrender/graphic/Displayable}
    +     */
    +    host: null,
    +
    +    /**
    +     * @type {string}
    +     */
    +    fill: '#000',
    +
    +    /**
    +     * @type {string}
    +     */
    +    stroke: null,
    +
    +    /**
    +     * @type {number}
    +     */
    +    opacity: 1,
    +
    +    /**
    +     * @type {Array.<number>}
    +     */
    +    lineDash: null,
    +
    +    /**
    +     * @type {number}
    +     */
    +    lineDashOffset: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    shadowBlur: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    shadowOffsetX: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    shadowOffsetY: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    lineWidth: 1,
    +
    +    /**
    +     * If stroke ignore scale
    +     * @type {Boolean}
    +     */
    +    strokeNoScale: false,
    +
    +    // Bounding rect text configuration
    +    // Not affected by element transform
    +    /**
    +     * @type {string}
    +     */
    +    text: null,
    +
    +    /**
    +     * If `fontSize` or `fontFamily` exists, `font` will be reset by
    +     * `fontSize`, `fontStyle`, `fontWeight`, `fontFamily`.
    +     * So do not visit it directly in upper application (like echarts),
    +     * but use `contain/text#makeFont` instead.
    +     * @type {string}
    +     */
    +    font: null,
    +
    +    /**
    +     * The same as font. Use font please.
    +     * @deprecated
    +     * @type {string}
    +     */
    +    textFont: null,
    +
    +    /**
    +     * It helps merging respectively, rather than parsing an entire font string.
    +     * @type {string}
    +     */
    +    fontStyle: null,
    +
    +    /**
    +     * It helps merging respectively, rather than parsing an entire font string.
    +     * @type {string}
    +     */
    +    fontWeight: null,
    +
    +    /**
    +     * It helps merging respectively, rather than parsing an entire font string.
    +     * Should be 12 but not '12px'.
    +     * @type {number}
    +     */
    +    fontSize: null,
    +
    +    /**
    +     * It helps merging respectively, rather than parsing an entire font string.
    +     * @type {string}
    +     */
    +    fontFamily: null,
    +
    +    /**
    +     * Reserved for special functinality, like 'hr'.
    +     * @type {string}
    +     */
    +    textTag: null,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textFill: '#000',
    +
    +    /**
    +     * @type {string}
    +     */
    +    textStroke: null,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textWidth: null,
    +
    +    /**
    +     * Only for textBackground.
    +     * @type {number}
    +     */
    +    textHeight: null,
    +
    +    /**
    +     * textStroke may be set as some color as a default
    +     * value in upper applicaion, where the default value
    +     * of textStrokeWidth should be 0 to make sure that
    +     * user can choose to do not use text stroke.
    +     * @type {number}
    +     */
    +    textStrokeWidth: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textLineHeight: null,
    +
    +    /**
    +     * 'inside', 'left', 'right', 'top', 'bottom'
    +     * [x, y]
    +     * Based on x, y of rect.
    +     * @type {string|Array.<number>}
    +     * @default 'inside'
    +     */
    +    textPosition: 'inside',
    +
    +    /**
    +     * If not specified, use the boundingRect of a `displayable`.
    +     * @type {Object}
    +     */
    +    textRect: null,
    +
    +    /**
    +     * [x, y]
    +     * @type {Array.<number>}
    +     */
    +    textOffset: null,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textAlign: null,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textVerticalAlign: null,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textDistance: 5,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textShadowColor: 'transparent',
    +
    +    /**
    +     * @type {number}
    +     */
    +    textShadowBlur: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textShadowOffsetX: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textShadowOffsetY: 0,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textBoxShadowColor: 'transparent',
    +
    +    /**
    +     * @type {number}
    +     */
    +    textBoxShadowBlur: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textBoxShadowOffsetX: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textBoxShadowOffsetY: 0,
    +
    +    /**
    +     * Whether transform text.
    +     * Only useful in Path and Image element
    +     * @type {boolean}
    +     */
    +    transformText: false,
    +
    +    /**
    +     * Text rotate around position of Path or Image
    +     * Only useful in Path and Image element and transformText is false.
    +     */
    +    textRotation: 0,
    +
    +    /**
    +     * Text origin of text rotation, like [10, 40].
    +     * Based on x, y of rect.
    +     * Useful in label rotation of circular symbol.
    +     * By default, this origin is textPosition.
    +     * Can be 'center'.
    +     * @type {string|Array.<number>}
    +     */
    +    textOrigin: null,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textBackgroundColor: null,
    +
    +    /**
    +     * @type {string}
    +     */
    +    textBorderColor: null,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textBorderWidth: 0,
    +
    +    /**
    +     * @type {number}
    +     */
    +    textBorderRadius: 0,
    +
    +    /**
    +     * Can be `2` or `[2, 4]` or `[2, 3, 4, 5]`
    +     * @type {number|Array.<number>}
    +     */
    +    textPadding: null,
    +
    +    /**
    +     * Text styles for rich text.
    +     * @type {Object}
    +     */
    +    rich: null,
    +
    +    /**
    +     * {outerWidth, outerHeight, ellipsis, placeholder}
    +     * @type {Object}
    +     */
    +    truncate: null,
    +
    +    /**
    +     * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
    +     * @type {string}
    +     */
    +    blend: null,
    +
    +    /**
    +     * @param {CanvasRenderingContext2D} ctx
    +     */
    +    bind: function (ctx, el, prevEl) {
    +        var style = this;
    +        var prevStyle = prevEl && prevEl.style;
    +        var firstDraw = !prevStyle;
    +
    +        for (var i = 0; i < STYLE_COMMON_PROPS.length; i++) {
    +            var prop = STYLE_COMMON_PROPS[i];
    +            var styleName = prop[0];
    +
    +            if (firstDraw || style[styleName] !== prevStyle[styleName]) {
    +                // FIXME Invalid property value will cause style leak from previous element.
    +                ctx[styleName] = style[styleName] || prop[1];
    +            }
    +        }
    +
    +        if ((firstDraw || style.fill !== prevStyle.fill)) {
    +            ctx.fillStyle = style.fill;
    +        }
    +        if ((firstDraw || style.stroke !== prevStyle.stroke)) {
    +            ctx.strokeStyle = style.stroke;
    +        }
    +        if ((firstDraw || style.opacity !== prevStyle.opacity)) {
    +            ctx.globalAlpha = style.opacity == null ? 1 : style.opacity;
    +        }
    +
    +        if ((firstDraw || style.blend !== prevStyle.blend)) {
    +            ctx.globalCompositeOperation = style.blend || 'source-over';
    +        }
    +        if (this.hasStroke()) {
    +            var lineWidth = style.lineWidth;
    +            ctx.lineWidth = lineWidth / (
    +                (this.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1
    +            );
    +        }
    +    },
    +
    +    hasFill: function () {
    +        var fill = this.fill;
    +        return fill != null && fill !== 'none';
    +    },
    +
    +    hasStroke: function () {
    +        var stroke = this.stroke;
    +        return stroke != null && stroke !== 'none' && this.lineWidth > 0;
    +    },
    +
    +    /**
    +     * Extend from other style
    +     * @param {zrender/graphic/Style} otherStyle
    +     * @param {boolean} overwrite true: overwrirte any way.
    +     *                            false: overwrite only when !target.hasOwnProperty
    +     *                            others: overwrite when property is not null/undefined.
    +     */
    +    extendFrom: function (otherStyle, overwrite) {
    +        if (otherStyle) {
    +            for (var name in otherStyle) {
    +                if (otherStyle.hasOwnProperty(name)
    +                    && (overwrite === true
    +                        || (
    +                            overwrite === false
    +                                ? !this.hasOwnProperty(name)
    +                                : otherStyle[name] != null
    +                        )
    +                    )
    +                ) {
    +                    this[name] = otherStyle[name];
    +                }
    +            }
    +        }
    +    },
    +
    +    /**
    +     * Batch setting style with a given object
    +     * @param {Object|string} obj
    +     * @param {*} [obj]
    +     */
    +    set: function (obj, value) {
    +        if (typeof obj === 'string') {
    +            this[obj] = value;
    +        }
    +        else {
    +            this.extendFrom(obj, true);
    +        }
    +    },
    +
    +    /**
    +     * Clone
    +     * @return {zrender/graphic/Style} [description]
    +     */
    +    clone: function () {
    +        var newStyle = new this.constructor();
    +        newStyle.extendFrom(this, true);
    +        return newStyle;
    +    },
    +
    +    getGradient: function (ctx, obj, rect) {
    +        var method = obj.type === 'radial' ? createRadialGradient : createLinearGradient;
    +        var canvasGradient = method(ctx, obj, rect);
    +        var colorStops = obj.colorStops;
    +        for (var i = 0; i < colorStops.length; i++) {
    +            canvasGradient.addColorStop(
    +                colorStops[i].offset, colorStops[i].color
    +            );
    +        }
    +        return canvasGradient;
    +    }
    +
    +};
    +
    +var styleProto = Style.prototype;
    +for (var i = 0; i < STYLE_COMMON_PROPS.length; i++) {
    +    var prop = STYLE_COMMON_PROPS[i];
    +    if (!(prop[0] in styleProto)) {
    +        styleProto[prop[0]] = prop[1];
    +    }
    +}
    +
    +// Provide for others
    +Style.getGradient = styleProto.getGradient;
    +
    +var Pattern = function (image, repeat) {
    +    // Should do nothing more in this constructor. Because gradient can be
    +    // declard by `color: {image: ...}`, where this constructor will not be called.
    +
    +    this.image = image;
    +    this.repeat = repeat;
    +
    +    // Can be cloned
    +    this.type = 'pattern';
    +};
    +
    +Pattern.prototype.getCanvasPattern = function (ctx) {
    +    return ctx.createPattern(this.image, this.repeat || 'repeat');
    +};
    +
    +/**
    + * @module zrender/Layer
    + * @author pissang(https://www.github.com/pissang)
    + */
    +
    +function returnFalse() {
    +    return false;
    +}
    +
    +/**
    + * 创建dom
    + *
    + * @inner
    + * @param {string} id dom id 待用
    + * @param {Painter} painter painter instance
    + * @param {number} number
    + */
    +function createDom(id, painter, dpr) {
    +    var newDom = createCanvas();
    +    var width = painter.getWidth();
    +    var height = painter.getHeight();
    +
    +    var newDomStyle = newDom.style;
    +    // 没append呢,请原谅我这样写,清晰~
    +    newDomStyle.position = 'absolute';
    +    newDomStyle.left = 0;
    +    newDomStyle.top = 0;
    +    newDomStyle.width = width + 'px';
    +    newDomStyle.height = height + 'px';
    +    newDom.width = width * dpr;
    +    newDom.height = height * dpr;
    +
    +    // id不作为索引用,避免可能造成的重名,定义为私有属性
    +    newDom.setAttribute('data-zr-dom-id', id);
    +    return newDom;
    +}
    +
    +/**
    + * @alias module:zrender/Layer
    + * @constructor
    + * @extends module:zrender/mixin/Transformable
    + * @param {string} id
    + * @param {module:zrender/Painter} painter
    + * @param {number} [dpr]
    + */
    +var Layer = function(id, painter, dpr) {
    +    var dom;
    +    dpr = dpr || devicePixelRatio;
    +    if (typeof id === 'string') {
    +        dom = createDom(id, painter, dpr);
    +    }
    +    // Not using isDom because in node it will return false
    +    else if (isObject(id)) {
    +        dom = id;
    +        id = dom.id;
    +    }
    +    this.id = id;
    +    this.dom = dom;
    +
    +    var domStyle = dom.style;
    +    if (domStyle) { // Not in node
    +        dom.onselectstart = returnFalse; // 避免页面选中的尴尬
    +        domStyle['-webkit-user-select'] = 'none';
    +        domStyle['user-select'] = 'none';
    +        domStyle['-webkit-touch-callout'] = 'none';
    +        domStyle['-webkit-tap-highlight-color'] = 'rgba(0,0,0,0)';
    +        domStyle['padding'] = 0;
    +        domStyle['margin'] = 0;
    +        domStyle['border-width'] = 0;
    +    }
    +
    +    this.domBack = null;
    +    this.ctxBack = null;
    +
    +    this.painter = painter;
    +
    +    this.config = null;
    +
    +    // Configs
    +    /**
    +     * 每次清空画布的颜色
    +     * @type {string}
    +     * @default 0
    +     */
    +    this.clearColor = 0;
    +    /**
    +     * 是否开启动态模糊
    +     * @type {boolean}
    +     * @default false
    +     */
    +    this.motionBlur = false;
    +    /**
    +     * 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显
    +     * @type {number}
    +     * @default 0.7
    +     */
    +    this.lastFrameAlpha = 0.7;
    +
    +    /**
    +     * Layer dpr
    +     * @type {number}
    +     */
    +    this.dpr = dpr;
    +};
    +
    +Layer.prototype = {
    +
    +    constructor: Layer,
    +
    +    elCount: 0,
    +
    +    __dirty: true,
    +
    +    initContext: function () {
    +        this.ctx = this.dom.getContext('2d');
    +        this.ctx.__currentValues = {};
    +        this.ctx.dpr = this.dpr;
    +    },
    +
    +    createBackBuffer: function () {
    +        var dpr = this.dpr;
    +
    +        this.domBack = createDom('back-' + this.id, this.painter, dpr);
    +        this.ctxBack = this.domBack.getContext('2d');
    +        this.ctxBack.__currentValues = {};
    +
    +        if (dpr != 1) {
    +            this.ctxBack.scale(dpr, dpr);
    +        }
    +    },
    +
    +    /**
    +     * @param  {number} width
    +     * @param  {number} height
    +     */
    +    resize: function (width, height) {
    +        var dpr = this.dpr;
    +
    +        var dom = this.dom;
    +        var domStyle = dom.style;
    +        var domBack = this.domBack;
    +
    +        domStyle.width = width + 'px';
    +        domStyle.height = height + 'px';
    +
    +        dom.width = width * dpr;
    +        dom.height = height * dpr;
    +
    +        if (domBack) {
    +            domBack.width = width * dpr;
    +            domBack.height = height * dpr;
    +
    +            if (dpr != 1) {
    +                this.ctxBack.scale(dpr, dpr);
    +            }
    +        }
    +    },
    +
    +    /**
    +     * 清空该层画布
    +     * @param {boolean} clearAll Clear all with out motion blur
    +     */
    +    clear: function (clearAll) {
    +        var dom = this.dom;
    +        var ctx = this.ctx;
    +        var width = dom.width;
    +        var height = dom.height;
    +
    +        var clearColor = this.clearColor;
    +        var haveMotionBLur = this.motionBlur && !clearAll;
    +        var lastFrameAlpha = this.lastFrameAlpha;
    +
    +        var dpr = this.dpr;
    +
    +        if (haveMotionBLur) {
    +            if (!this.domBack) {
    +                this.createBackBuffer();
    +            }
    +
    +            this.ctxBack.globalCompositeOperation = 'copy';
    +            this.ctxBack.drawImage(
    +                dom, 0, 0,
    +                width / dpr,
    +                height / dpr
    +            );
    +        }
    +
    +        ctx.clearRect(0, 0, width, height);
    +        if (clearColor) {
    +            var clearColorGradientOrPattern;
    +            // Gradient
    +            if (clearColor.colorStops) {
    +                // Cache canvas gradient
    +                clearColorGradientOrPattern = clearColor.__canvasGradient || Style.getGradient(ctx, clearColor, {
    +                    x: 0,
    +                    y: 0,
    +                    width: width,
    +                    height: height
    +                });
    +
    +                clearColor.__canvasGradient = clearColorGradientOrPattern;
    +            }
    +            // Pattern
    +            else if (clearColor.image) {
    +                clearColorGradientOrPattern = Pattern.prototype.getCanvasPattern.call(clearColor, ctx);
    +            }
    +            ctx.save();
    +            ctx.fillStyle = clearColorGradientOrPattern || clearColor;
    +            ctx.fillRect(0, 0, width, height);
    +            ctx.restore();
    +        }
    +
    +        if (haveMotionBLur) {
    +            var domBack = this.domBack;
    +            ctx.save();
    +            ctx.globalAlpha = lastFrameAlpha;
    +            ctx.drawImage(domBack, 0, 0, width, height);
    +            ctx.restore();
    +        }
    +    }
    +};
    +
    +var requestAnimationFrame = (
    +    typeof window !== 'undefined'
    +    && (
    +        (window.requestAnimationFrame && window.requestAnimationFrame.bind(window))
    +        // https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809
    +        || (window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window))
    +        || window.mozRequestAnimationFrame
    +        || window.webkitRequestAnimationFrame
    +    )
    +) || function (func) {
    +    setTimeout(func, 16);
    +};
    +
    +var globalImageCache = new LRU(50);
    +
    +/**
    + * @param {string|HTMLImageElement|HTMLCanvasElement|Canvas} newImageOrSrc
    + * @return {HTMLImageElement|HTMLCanvasElement|Canvas} image
    + */
    +function findExistImage(newImageOrSrc) {
    +    if (typeof newImageOrSrc === 'string') {
    +        var cachedImgObj = globalImageCache.get(newImageOrSrc);
    +        return cachedImgObj && cachedImgObj.image;
    +    }
    +    else {
    +        return newImageOrSrc;
    +    }
    +}
    +
    +/**
    + * Caution: User should cache loaded images, but not just count on LRU.
    + * Consider if required images more than LRU size, will dead loop occur?
    + *
    + * @param {string|HTMLImageElement|HTMLCanvasElement|Canvas} newImageOrSrc
    + * @param {HTMLImageElement|HTMLCanvasElement|Canvas} image Existent image.
    + * @param {module:zrender/Element} [hostEl] For calling `dirty`.
    + * @param {Function} [cb] params: (image, cbPayload)
    + * @param {Object} [cbPayload] Payload on cb calling.
    + * @return {HTMLImageElement|HTMLCanvasElement|Canvas} image
    + */
    +function createOrUpdateImage(newImageOrSrc, image, hostEl, cb, cbPayload) {
    +    if (!newImageOrSrc) {
    +        return image;
    +    }
    +    else if (typeof newImageOrSrc === 'string') {
    +
    +        // Image should not be loaded repeatly.
    +        if ((image && image.__zrImageSrc === newImageOrSrc) || !hostEl) {
    +            return image;
    +        }
    +
    +        // Only when there is no existent image or existent image src
    +        // is different, this method is responsible for load.
    +        var cachedImgObj = globalImageCache.get(newImageOrSrc);
    +
    +        var pendingWrap = {hostEl: hostEl, cb: cb, cbPayload: cbPayload};
    +
    +        if (cachedImgObj) {
    +            image = cachedImgObj.image;
    +            !isImageReady(image) && cachedImgObj.pending.push(pendingWrap);
    +        }
    +        else {
    +            !image && (image = new Image());
    +            image.onload = imageOnLoad;
    +
    +            globalImageCache.put(
    +                newImageOrSrc,
    +                image.__cachedImgObj = {
    +                    image: image,
    +                    pending: [pendingWrap]
    +                }
    +            );
    +
    +            image.src = image.__zrImageSrc = newImageOrSrc;
    +        }
    +
    +        return image;
    +    }
    +    // newImageOrSrc is an HTMLImageElement or HTMLCanvasElement or Canvas
    +    else {
    +        return newImageOrSrc;
    +    }
    +}
    +
    +function imageOnLoad() {
    +    var cachedImgObj = this.__cachedImgObj;
    +    this.onload = this.__cachedImgObj = null;
    +
    +    for (var i = 0; i < cachedImgObj.pending.length; i++) {
    +        var pendingWrap = cachedImgObj.pending[i];
    +        var cb = pendingWrap.cb;
    +        cb && cb(this, pendingWrap.cbPayload);
    +        pendingWrap.hostEl.dirty();
    +    }
    +    cachedImgObj.pending.length = 0;
    +}
    +
    +function isImageReady(image) {
    +    return image && image.width && image.height;
    +}
    +
    +var textWidthCache = {};
    +var textWidthCacheCounter = 0;
    +
    +var TEXT_CACHE_MAX = 5000;
    +var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
    +
    +var DEFAULT_FONT = '12px sans-serif';
    +
    +// Avoid assign to an exported variable, for transforming to cjs.
    +var methods$1 = {};
    +
    +function $override$1(name, fn) {
    +    methods$1[name] = fn;
    +}
    +
    +/**
    + * @public
    + * @param {string} text
    + * @param {string} font
    + * @return {number} width
    + */
    +function getWidth(text, font) {
    +    font = font || DEFAULT_FONT;
    +    var key = text + ':' + font;
    +    if (textWidthCache[key]) {
    +        return textWidthCache[key];
    +    }
    +
    +    var textLines = (text + '').split('\n');
    +    var width = 0;
    +
    +    for (var i = 0, l = textLines.length; i < l; i++) {
    +        // textContain.measureText may be overrided in SVG or VML
    +        width = Math.max(measureText(textLines[i], font).width, width);
    +    }
    +
    +    if (textWidthCacheCounter > TEXT_CACHE_MAX) {
    +        textWidthCacheCounter = 0;
    +        textWidthCache = {};
    +    }
    +    textWidthCacheCounter++;
    +    textWidthCache[key] = width;
    +
    +    return width;
    +}
    +
    +/**
    + * @public
    + * @param {string} text
    + * @param {string} font
    + * @param {string} [textAlign='left']
    + * @param {string} [textVerticalAlign='top']
    + * @param {Array.<number>} [textPadding]
    + * @param {Object} [rich]
    + * @param {Object} [truncate]
    + * @return {Object} {x, y, width, height, lineHeight}
    + */
    +function getBoundingRect(text, font, textAlign, textVerticalAlign, textPadding, rich, truncate) {
    +    return rich
    +        ? getRichTextRect(text, font, textAlign, textVerticalAlign, textPadding, rich, truncate)
    +        : getPlainTextRect(text, font, textAlign, textVerticalAlign, textPadding, truncate);
    +}
    +
    +function getPlainTextRect(text, font, textAlign, textVerticalAlign, textPadding, truncate) {
    +    var contentBlock = parsePlainText(text, font, textPadding, truncate);
    +    var outerWidth = getWidth(text, font);
    +    if (textPadding) {
    +        outerWidth += textPadding[1] + textPadding[3];
    +    }
    +    var outerHeight = contentBlock.outerHeight;
    +
    +    var x = adjustTextX(0, outerWidth, textAlign);
    +    var y = adjustTextY(0, outerHeight, textVerticalAlign);
    +
    +    var rect = new BoundingRect(x, y, outerWidth, outerHeight);
    +    rect.lineHeight = contentBlock.lineHeight;
    +
    +    return rect;
    +}
    +
    +function getRichTextRect(text, font, textAlign, textVerticalAlign, textPadding, rich, truncate) {
    +    var contentBlock = parseRichText(text, {
    +        rich: rich,
    +        truncate: truncate,
    +        font: font,
    +        textAlign: textAlign,
    +        textPadding: textPadding
    +    });
    +    var outerWidth = contentBlock.outerWidth;
    +    var outerHeight = contentBlock.outerHeight;
    +
    +    var x = adjustTextX(0, outerWidth, textAlign);
    +    var y = adjustTextY(0, outerHeight, textVerticalAlign);
    +
    +    return new BoundingRect(x, y, outerWidth, outerHeight);
    +}
    +
    +/**
    + * @public
    + * @param {number} x
    + * @param {number} width
    + * @param {string} [textAlign='left']
    + * @return {number} Adjusted x.
    + */
    +function adjustTextX(x, width, textAlign) {
    +    // FIXME Right to left language
    +    if (textAlign === 'right') {
    +        x -= width;
    +    }
    +    else if (textAlign === 'center') {
    +        x -= width / 2;
    +    }
    +    return x;
    +}
    +
    +/**
    + * @public
    + * @param {number} y
    + * @param {number} height
    + * @param {string} [textVerticalAlign='top']
    + * @return {number} Adjusted y.
    + */
    +function adjustTextY(y, height, textVerticalAlign) {
    +    if (textVerticalAlign === 'middle') {
    +        y -= height / 2;
    +    }
    +    else if (textVerticalAlign === 'bottom') {
    +        y -= height;
    +    }
    +    return y;
    +}
    +
    +/**
    + * @public
    + * @param {stirng} textPosition
    + * @param {Object} rect {x, y, width, height}
    + * @param {number} distance
    + * @return {Object} {x, y, textAlign, textVerticalAlign}
    + */
    +function adjustTextPositionOnRect(textPosition, rect, distance) {
    +
    +    var x = rect.x;
    +    var y = rect.y;
    +
    +    var height = rect.height;
    +    var width = rect.width;
    +    var halfHeight = height / 2;
    +
    +    var textAlign = 'left';
    +    var textVerticalAlign = 'top';
    +
    +    switch (textPosition) {
    +        case 'left':
    +            x -= distance;
    +            y += halfHeight;
    +            textAlign = 'right';
    +            textVerticalAlign = 'middle';
    +            break;
    +        case 'right':
    +            x += distance + width;
    +            y += halfHeight;
    +            textVerticalAlign = 'middle';
    +            break;
    +        case 'top':
    +            x += width / 2;
    +            y -= distance;
    +            textAlign = 'center';
    +            textVerticalAlign = 'bottom';
    +            break;
    +        case 'bottom':
    +            x += width / 2;
    +            y += height + distance;
    +            textAlign = 'center';
    +            break;
    +        case 'inside':
    +            x += width / 2;
    +            y += halfHeight;
    +            textAlign = 'center';
    +            textVerticalAlign = 'middle';
    +            break;
    +        case 'insideLeft':
    +            x += distance;
    +            y += halfHeight;
    +            textVerticalAlign = 'middle';
    +            break;
    +        case 'insideRight':
    +            x += width - distance;
    +            y += halfHeight;
    +            textAlign = 'right';
    +            textVerticalAlign = 'middle';
    +            break;
    +        case 'insideTop':
    +            x += width / 2;
    +            y += distance;
    +            textAlign = 'center';
    +            break;
    +        case 'insideBottom':
    +            x += width / 2;
    +            y += height - distance;
    +            textAlign = 'center';
    +            textVerticalAlign = 'bottom';
    +            break;
    +        case 'insideTopLeft':
    +            x += distance;
    +            y += distance;
    +            break;
    +        case 'insideTopRight':
    +            x += width - distance;
    +            y += distance;
    +            textAlign = 'right';
    +            break;
    +        case 'insideBottomLeft':
    +            x += distance;
    +            y += height - distance;
    +            textVerticalAlign = 'bottom';
    +            break;
    +        case 'insideBottomRight':
    +            x += width - distance;
    +            y += height - distance;
    +            textAlign = 'right';
    +            textVerticalAlign = 'bottom';
    +            break;
    +    }
    +
    +    return {
    +        x: x,
    +        y: y,
    +        textAlign: textAlign,
    +        textVerticalAlign: textVerticalAlign
    +    };
    +}
    +
    +/**
    + * Show ellipsis if overflow.
    + *
    + * @public
    + * @param  {string} text
    + * @param  {string} containerWidth
    + * @param  {string} font
    + * @param  {number} [ellipsis='...']
    + * @param  {Object} [options]
    + * @param  {number} [options.maxIterations=3]
    + * @param  {number} [options.minChar=0] If truncate result are less
    + *                  then minChar, ellipsis will not show, which is
    + *                  better for user hint in some cases.
    + * @param  {number} [options.placeholder=''] When all truncated, use the placeholder.
    + * @return {string}
    + */
    +function truncateText(text, containerWidth, font, ellipsis, options) {
    +    if (!containerWidth) {
    +        return '';
    +    }
    +
    +    var textLines = (text + '').split('\n');
    +    options = prepareTruncateOptions(containerWidth, font, ellipsis, options);
    +
    +    // FIXME
    +    // It is not appropriate that every line has '...' when truncate multiple lines.
    +    for (var i = 0, len = textLines.length; i < len; i++) {
    +        textLines[i] = truncateSingleLine(textLines[i], options);
    +    }
    +
    +    return textLines.join('\n');
    +}
    +
    +function prepareTruncateOptions(containerWidth, font, ellipsis, options) {
    +    options = extend({}, options);
    +
    +    options.font = font;
    +    var ellipsis = retrieve2(ellipsis, '...');
    +    options.maxIterations = retrieve2(options.maxIterations, 2);
    +    var minChar = options.minChar = retrieve2(options.minChar, 0);
    +    // FIXME
    +    // Other languages?
    +    options.cnCharWidth = getWidth('国', font);
    +    // FIXME
    +    // Consider proportional font?
    +    var ascCharWidth = options.ascCharWidth = getWidth('a', font);
    +    options.placeholder = retrieve2(options.placeholder, '');
    +
    +    // Example 1: minChar: 3, text: 'asdfzxcv', truncate result: 'asdf', but not: 'a...'.
    +    // Example 2: minChar: 3, text: '维度', truncate result: '维', but not: '...'.
    +    var contentWidth = containerWidth = Math.max(0, containerWidth - 1); // Reserve some gap.
    +    for (var i = 0; i < minChar && contentWidth >= ascCharWidth; i++) {
    +        contentWidth -= ascCharWidth;
    +    }
    +
    +    var ellipsisWidth = getWidth(ellipsis);
    +    if (ellipsisWidth > contentWidth) {
    +        ellipsis = '';
    +        ellipsisWidth = 0;
    +    }
    +
    +    contentWidth = containerWidth - ellipsisWidth;
    +
    +    options.ellipsis = ellipsis;
    +    options.ellipsisWidth = ellipsisWidth;
    +    options.contentWidth = contentWidth;
    +    options.containerWidth = containerWidth;
    +
    +    return options;
    +}
    +
    +function truncateSingleLine(textLine, options) {
    +    var containerWidth = options.containerWidth;
    +    var font = options.font;
    +    var contentWidth = options.contentWidth;
    +
    +    if (!containerWidth) {
    +        return '';
    +    }
    +
    +    var lineWidth = getWidth(textLine, font);
    +
    +    if (lineWidth <= containerWidth) {
    +        return textLine;
    +    }
    +
    +    for (var j = 0;; j++) {
    +        if (lineWidth <= contentWidth || j >= options.maxIterations) {
    +            textLine += options.ellipsis;
    +            break;
    +        }
    +
    +        var subLength = j === 0
    +            ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth)
    +            : lineWidth > 0
    +            ? Math.floor(textLine.length * contentWidth / lineWidth)
    +            : 0;
    +
    +        textLine = textLine.substr(0, subLength);
    +        lineWidth = getWidth(textLine, font);
    +    }
    +
    +    if (textLine === '') {
    +        textLine = options.placeholder;
    +    }
    +
    +    return textLine;
    +}
    +
    +function estimateLength(text, contentWidth, ascCharWidth, cnCharWidth) {
    +    var width = 0;
    +    var i = 0;
    +    for (var len = text.length; i < len && width < contentWidth; i++) {
    +        var charCode = text.charCodeAt(i);
    +        width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth;
    +    }
    +    return i;
    +}
    +
    +/**
    + * @public
    + * @param {string} font
    + * @return {number} line height
    + */
    +function getLineHeight(font) {
    +    // FIXME A rough approach.
    +    return getWidth('国', font);
    +}
    +
    +/**
    + * @public
    + * @param {string} text
    + * @param {string} font
    + * @return {Object} width
    + */
    +function measureText(text, font) {
    +    return methods$1.measureText(text, font);
    +}
    +
    +// Avoid assign to an exported variable, for transforming to cjs.
    +methods$1.measureText = function (text, font) {
    +    var ctx = getContext();
    +    ctx.font = font || DEFAULT_FONT;
    +    return ctx.measureText(text);
    +};
    +
    +/**
    + * @public
    + * @param {string} text
    + * @param {string} font
    + * @param {Object} [truncate]
    + * @return {Object} block: {lineHeight, lines, height, outerHeight}
    + *  Notice: for performance, do not calculate outerWidth util needed.
    + */
    +function parsePlainText(text, font, padding, truncate) {
    +    text != null && (text += '');
    +
    +    var lineHeight = getLineHeight(font);
    +    var lines = text ? text.split('\n') : [];
    +    var height = lines.length * lineHeight;
    +    var outerHeight = height;
    +
    +    if (padding) {
    +        outerHeight += padding[0] + padding[2];
    +    }
    +
    +    if (text && truncate) {
    +        var truncOuterHeight = truncate.outerHeight;
    +        var truncOuterWidth = truncate.outerWidth;
    +        if (truncOuterHeight != null && outerHeight > truncOuterHeight) {
    +            text = '';
    +            lines = [];
    +        }
    +        else if (truncOuterWidth != null) {
    +            var options = prepareTruncateOptions(
    +                truncOuterWidth - (padding ? padding[1] + padding[3] : 0),
    +                font,
    +                truncate.ellipsis,
    +                {minChar: truncate.minChar, placeholder: truncate.placeholder}
    +            );
    +
    +            // FIXME
    +            // It is not appropriate that every line has '...' when truncate multiple lines.
    +            for (var i = 0, len = lines.length; i < len; i++) {
    +                lines[i] = truncateSingleLine(lines[i], options);
    +            }
    +        }
    +    }
    +
    +    return {
    +        lines: lines,
    +        height: height,
    +        outerHeight: outerHeight,
    +        lineHeight: lineHeight
    +    };
    +}
    +
    +/**
    + * For example: 'some text {a|some text}other text{b|some text}xxx{c|}xxx'
    + * Also consider 'bbbb{a|xxx\nzzz}xxxx\naaaa'.
    + *
    + * @public
    + * @param {string} text
    + * @param {Object} style
    + * @return {Object} block
    + * {
    + *      width,
    + *      height,
    + *      lines: [{
    + *          lineHeight,
    + *          width,
    + *          tokens: [[{
    + *              styleName,
    + *              text,
    + *              width,      // include textPadding
    + *              height,     // include textPadding
    + *              textWidth, // pure text width
    + *              textHeight, // pure text height
    + *              lineHeihgt,
    + *              font,
    + *              textAlign,
    + *              textVerticalAlign
    + *          }], [...], ...]
    + *      }, ...]
    + * }
    + * If styleName is undefined, it is plain text.
    + */
    +function parseRichText(text, style) {
    +    var contentBlock = {lines: [], width: 0, height: 0};
    +
    +    text != null && (text += '');
    +    if (!text) {
    +        return contentBlock;
    +    }
    +
    +    var lastIndex = STYLE_REG.lastIndex = 0;
    +    var result;
    +    while ((result = STYLE_REG.exec(text)) != null) {
    +        var matchedIndex = result.index;
    +        if (matchedIndex > lastIndex) {
    +            pushTokens(contentBlock, text.substring(lastIndex, matchedIndex));
    +        }
    +        pushTokens(contentBlock, result[2], result[1]);
    +        lastIndex = STYLE_REG.lastIndex;
    +    }
    +
    +    if (lastIndex < text.length) {
    +        pushTokens(contentBlock, text.substring(lastIndex, text.length));
    +    }
    +
    +    var lines = contentBlock.lines;
    +    var contentHeight = 0;
    +    var contentWidth = 0;
    +    // For `textWidth: 100%`
    +    var pendingList = [];
    +
    +    var stlPadding = style.textPadding;
    +
    +    var truncate = style.truncate;
    +    var truncateWidth = truncate && truncate.outerWidth;
    +    var truncateHeight = truncate && truncate.outerHeight;
    +    if (stlPadding) {
    +        truncateWidth != null && (truncateWidth -= stlPadding[1] + stlPadding[3]);
    +        truncateHeight != null && (truncateHeight -= stlPadding[0] + stlPadding[2]);
    +    }
    +
    +    // Calculate layout info of tokens.
    +    for (var i = 0; i < lines.length; i++) {
    +        var line = lines[i];
    +        var lineHeight = 0;
    +        var lineWidth = 0;
    +
    +        for (var j = 0; j < line.tokens.length; j++) {
    +            var token = line.tokens[j];
    +            var tokenStyle = token.styleName && style.rich[token.styleName] || {};
    +            // textPadding should not inherit from style.
    +            var textPadding = token.textPadding = tokenStyle.textPadding;
    +
    +            // textFont has been asigned to font by `normalizeStyle`.
    +            var font = token.font = tokenStyle.font || style.font;
    +
    +            // textHeight can be used when textVerticalAlign is specified in token.
    +            var tokenHeight = token.textHeight = retrieve2(
    +                // textHeight should not be inherited, consider it can be specified
    +                // as box height of the block.
    +                tokenStyle.textHeight, getLineHeight(font)
    +            );
    +            textPadding && (tokenHeight += textPadding[0] + textPadding[2]);
    +            token.height = tokenHeight;
    +            token.lineHeight = retrieve3(
    +                tokenStyle.textLineHeight, style.textLineHeight, tokenHeight
    +            );
    +
    +            token.textAlign = tokenStyle && tokenStyle.textAlign || style.textAlign;
    +            token.textVerticalAlign = tokenStyle && tokenStyle.textVerticalAlign || 'middle';
    +
    +            if (truncateHeight != null && contentHeight + token.lineHeight > truncateHeight) {
    +                return {lines: [], width: 0, height: 0};
    +            }
    +
    +            token.textWidth = getWidth(token.text, font);
    +            var tokenWidth = tokenStyle.textWidth;
    +            var tokenWidthNotSpecified = tokenWidth == null || tokenWidth === 'auto';
    +
    +            // Percent width, can be `100%`, can be used in drawing separate
    +            // line when box width is needed to be auto.
    +            if (typeof tokenWidth === 'string' && tokenWidth.charAt(tokenWidth.length - 1) === '%') {
    +                token.percentWidth = tokenWidth;
    +                pendingList.push(token);
    +                tokenWidth = 0;
    +                // Do not truncate in this case, because there is no user case
    +                // and it is too complicated.
    +            }
    +            else {
    +                if (tokenWidthNotSpecified) {
    +                    tokenWidth = token.textWidth;
    +
    +                    // FIXME: If image is not loaded and textWidth is not specified, calling
    +                    // `getBoundingRect()` will not get correct result.
    +                    var textBackgroundColor = tokenStyle.textBackgroundColor;
    +                    var bgImg = textBackgroundColor && textBackgroundColor.image;
    +
    +                    // Use cases:
    +                    // (1) If image is not loaded, it will be loaded at render phase and call
    +                    // `dirty()` and `textBackgroundColor.image` will be replaced with the loaded
    +                    // image, and then the right size will be calculated here at the next tick.
    +                    // See `graphic/helper/text.js`.
    +                    // (2) If image loaded, and `textBackgroundColor.image` is image src string,
    +                    // use `imageHelper.findExistImage` to find cached image.
    +                    // `imageHelper.findExistImage` will always be called here before
    +                    // `imageHelper.createOrUpdateImage` in `graphic/helper/text.js#renderRichText`
    +                    // which ensures that image will not be rendered before correct size calcualted.
    +                    if (bgImg) {
    +                        bgImg = findExistImage(bgImg);
    +                        if (isImageReady(bgImg)) {
    +                            tokenWidth = Math.max(tokenWidth, bgImg.width * tokenHeight / bgImg.height);
    +                        }
    +                    }
    +                }
    +
    +                var paddingW = textPadding ? textPadding[1] + textPadding[3] : 0;
    +                tokenWidth += paddingW;
    +
    +                var remianTruncWidth = truncateWidth != null ? truncateWidth - lineWidth : null;
    +
    +                if (remianTruncWidth != null && remianTruncWidth < tokenWidth) {
    +                    if (!tokenWidthNotSpecified || remianTruncWidth < paddingW) {
    +                        token.text = '';
    +                        token.textWidth = tokenWidth = 0;
    +                    }
    +                    else {
    +                        token.text = truncateText(
    +                            token.text, remianTruncWidth - paddingW, font, truncate.ellipsis,
    +                            {minChar: truncate.minChar}
    +                        );
    +                        token.textWidth = getWidth(token.text, font);
    +                        tokenWidth = token.textWidth + paddingW;
    +                    }
    +                }
    +            }
    +
    +            lineWidth += (token.width = tokenWidth);
    +            tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight));
    +        }
    +
    +        line.width = lineWidth;
    +        line.lineHeight = lineHeight;
    +        contentHeight += lineHeight;
    +        contentWidth = Math.max(contentWidth, lineWidth);
    +    }
    +
    +    contentBlock.outerWidth = contentBlock.width = retrieve2(style.textWidth, contentWidth);
    +    contentBlock.outerHeight = contentBlock.height = retrieve2(style.textHeight, contentHeight);
    +
    +    if (stlPadding) {
    +        contentBlock.outerWidth += stlPadding[1] + stlPadding[3];
    +        contentBlock.outerHeight += stlPadding[0] + stlPadding[2];
    +    }
    +
    +    for (var i = 0; i < pendingList.length; i++) {
    +        var token = pendingList[i];
    +        var percentWidth = token.percentWidth;
    +        // Should not base on outerWidth, because token can not be placed out of padding.
    +        token.width = parseInt(percentWidth, 10) / 100 * contentWidth;
    +    }
    +
    +    return contentBlock;
    +}
    +
    +function pushTokens(block, str, styleName) {
    +    var isEmptyStr = str === '';
    +    var strs = str.split('\n');
    +    var lines = block.lines;
    +
    +    for (var i = 0; i < strs.length; i++) {
    +        var text = strs[i];
    +        var token = {
    +            styleName: styleName,
    +            text: text,
    +            isLineHolder: !text && !isEmptyStr
    +        };
    +
    +        // The first token should be appended to the last line.
    +        if (!i) {
    +            var tokens = (lines[lines.length - 1] || (lines[0] = {tokens: []})).tokens;
    +
    +            // Consider cases:
    +            // (1) ''.split('\n') => ['', '\n', ''], the '' at the first item
    +            // (which is a placeholder) should be replaced by new token.
    +            // (2) A image backage, where token likes {a|}.
    +            // (3) A redundant '' will affect textAlign in line.
    +            // (4) tokens with the same tplName should not be merged, because
    +            // they should be displayed in different box (with border and padding).
    +            var tokensLen = tokens.length;
    +            (tokensLen === 1 && tokens[0].isLineHolder)
    +                ? (tokens[0] = token)
    +                // Consider text is '', only insert when it is the "lineHolder" or
    +                // "emptyStr". Otherwise a redundant '' will affect textAlign in line.
    +                : ((text || !tokensLen || isEmptyStr) && tokens.push(token));
    +        }
    +        // Other tokens always start a new line.
    +        else {
    +            // If there is '', insert it as a placeholder.
    +            lines.push({tokens: [token]});
    +        }
    +    }
    +}
    +
    +function makeFont(style) {
    +    // FIXME in node-canvas fontWeight is before fontStyle
    +    // Use `fontSize` `fontFamily` to check whether font properties are defined.
    +    return (style.fontSize || style.fontFamily) && [
    +        style.fontStyle,
    +        style.fontWeight,
    +        (style.fontSize || 12) + 'px',
    +        // If font properties are defined, `fontFamily` should not be ignored.
    +        style.fontFamily || 'sans-serif'
    +    ].join(' ') || style.textFont || style.font;
    +}
    +
    +function buildPath(ctx, shape) {
    +    var x = shape.x;
    +    var y = shape.y;
    +    var width = shape.width;
    +    var height = shape.height;
    +    var r = shape.r;
    +    var r1;
    +    var r2;
    +    var r3;
    +    var r4;
    +
    +    // Convert width and height to positive for better borderRadius
    +    if (width < 0) {
    +        x = x + width;
    +        width = -width;
    +    }
    +    if (height < 0) {
    +        y = y + height;
    +        height = -height;
    +    }
    +
    +    if (typeof r === 'number') {
    +        r1 = r2 = r3 = r4 = r;
    +    }
    +    else if (r instanceof Array) {
    +        if (r.length === 1) {
    +            r1 = r2 = r3 = r4 = r[0];
    +        }
    +        else if (r.length === 2) {
    +            r1 = r3 = r[0];
    +            r2 = r4 = r[1];
    +        }
    +        else if (r.length === 3) {
    +            r1 = r[0];
    +            r2 = r4 = r[1];
    +            r3 = r[2];
    +        }
    +        else {
    +            r1 = r[0];
    +            r2 = r[1];
    +            r3 = r[2];
    +            r4 = r[3];
    +        }
    +    }
    +    else {
    +        r1 = r2 = r3 = r4 = 0;
    +    }
    +
    +    var total;
    +    if (r1 + r2 > width) {
    +        total = r1 + r2;
    +        r1 *= width / total;
    +        r2 *= width / total;
    +    }
    +    if (r3 + r4 > width) {
    +        total = r3 + r4;
    +        r3 *= width / total;
    +        r4 *= width / total;
    +    }
    +    if (r2 + r3 > height) {
    +        total = r2 + r3;
    +        r2 *= height / total;
    +        r3 *= height / total;
    +    }
    +    if (r1 + r4 > height) {
    +        total = r1 + r4;
    +        r1 *= height / total;
    +        r4 *= height / total;
    +    }
    +    ctx.moveTo(x + r1, y);
    +    ctx.lineTo(x + width - r2, y);
    +    r2 !== 0 && ctx.quadraticCurveTo(
    +        x + width, y, x + width, y + r2
    +    );
    +    ctx.lineTo(x + width, y + height - r3);
    +    r3 !== 0 && ctx.quadraticCurveTo(
    +        x + width, y + height, x + width - r3, y + height
    +    );
    +    ctx.lineTo(x + r4, y + height);
    +    r4 !== 0 && ctx.quadraticCurveTo(
    +        x, y + height, x, y + height - r4
    +    );
    +    ctx.lineTo(x, y + r1);
    +    r1 !== 0 && ctx.quadraticCurveTo(x, y, x + r1, y);
    +}
    +
    +// TODO: Have not support 'start', 'end' yet.
    +var VALID_TEXT_ALIGN = {left: 1, right: 1, center: 1};
    +var VALID_TEXT_VERTICAL_ALIGN = {top: 1, bottom: 1, middle: 1};
    +
    +/**
    + * @param {module:zrender/graphic/Style} style
    + * @return {module:zrender/graphic/Style} The input style.
    + */
    +function normalizeTextStyle(style) {
    +    normalizeStyle(style);
    +    each$1(style.rich, normalizeStyle);
    +    return style;
    +}
    +
    +function normalizeStyle(style) {
    +    if (style) {
    +
    +        style.font = makeFont(style);
    +
    +        var textAlign = style.textAlign;
    +        textAlign === 'middle' && (textAlign = 'center');
    +        style.textAlign = (
    +            textAlign == null || VALID_TEXT_ALIGN[textAlign]
    +        ) ? textAlign : 'left';
    +
    +        // Compatible with textBaseline.
    +        var textVerticalAlign = style.textVerticalAlign || style.textBaseline;
    +        textVerticalAlign === 'center' && (textVerticalAlign = 'middle');
    +        style.textVerticalAlign = (
    +            textVerticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[textVerticalAlign]
    +        ) ? textVerticalAlign : 'top';
    +
    +        var textPadding = style.textPadding;
    +        if (textPadding) {
    +            style.textPadding = normalizeCssArray(style.textPadding);
    +        }
    +    }
    +}
    +
    +/**
    + * @param {CanvasRenderingContext2D} ctx
    + * @param {string} text
    + * @param {module:zrender/graphic/Style} style
    + * @param {Object|boolean} [rect] {x, y, width, height}
    + *                  If set false, rect text is not used.
    + */
    +function renderText(hostEl, ctx, text, style, rect) {
    +    style.rich
    +        ? renderRichText(hostEl, ctx, text, style, rect)
    +        : renderPlainText(hostEl, ctx, text, style, rect);
    +}
    +
    +function renderPlainText(hostEl, ctx, text, style, rect) {
    +    var font = setCtx(ctx, 'font', style.font || DEFAULT_FONT);
    +
    +    var textPadding = style.textPadding;
    +
    +    var contentBlock = hostEl.__textCotentBlock;
    +    if (!contentBlock || hostEl.__dirty) {
    +        contentBlock = hostEl.__textCotentBlock = parsePlainText(
    +            text, font, textPadding, style.truncate
    +        );
    +    }
    +
    +    var outerHeight = contentBlock.outerHeight;
    +
    +    var textLines = contentBlock.lines;
    +    var lineHeight = contentBlock.lineHeight;
    +
    +    var boxPos = getBoxPosition(outerHeight, style, rect);
    +    var baseX = boxPos.baseX;
    +    var baseY = boxPos.baseY;
    +    var textAlign = boxPos.textAlign;
    +    var textVerticalAlign = boxPos.textVerticalAlign;
    +
    +    // Origin of textRotation should be the base point of text drawing.
    +    applyTextRotation(ctx, style, rect, baseX, baseY);
    +
    +    var boxY = adjustTextY(baseY, outerHeight, textVerticalAlign);
    +    var textX = baseX;
    +    var textY = boxY;
    +
    +    var needDrawBg = needDrawBackground(style);
    +    if (needDrawBg || textPadding) {
    +        // Consider performance, do not call getTextWidth util necessary.
    +        var textWidth = getWidth(text, font);
    +        var outerWidth = textWidth;
    +        textPadding && (outerWidth += textPadding[1] + textPadding[3]);
    +        var boxX = adjustTextX(baseX, outerWidth, textAlign);
    +
    +        needDrawBg && drawBackground(hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight);
    +
    +        if (textPadding) {
    +            textX = getTextXForPadding(baseX, textAlign, textPadding);
    +            textY += textPadding[0];
    +        }
    +    }
    +
    +    setCtx(ctx, 'textAlign', textAlign || 'left');
    +    // Force baseline to be "middle". Otherwise, if using "top", the
    +    // text will offset downward a little bit in font "Microsoft YaHei".
    +    setCtx(ctx, 'textBaseline', 'middle');
    +
    +    // Always set shadowBlur and shadowOffset to avoid leak from displayable.
    +    setCtx(ctx, 'shadowBlur', style.textShadowBlur || 0);
    +    setCtx(ctx, 'shadowColor', style.textShadowColor || 'transparent');
    +    setCtx(ctx, 'shadowOffsetX', style.textShadowOffsetX || 0);
    +    setCtx(ctx, 'shadowOffsetY', style.textShadowOffsetY || 0);
    +
    +    // `textBaseline` is set as 'middle'.
    +    textY += lineHeight / 2;
    +
    +    var textStrokeWidth = style.textStrokeWidth;
    +    var textStroke = getStroke(style.textStroke, textStrokeWidth);
    +    var textFill = getFill(style.textFill);
    +
    +    if (textStroke) {
    +        setCtx(ctx, 'lineWidth', textStrokeWidth);
    +        setCtx(ctx, 'strokeStyle', textStroke);
    +    }
    +    if (textFill) {
    +        setCtx(ctx, 'fillStyle', textFill);
    +    }
    +
    +    for (var i = 0; i < textLines.length; i++) {
    +        // Fill after stroke so the outline will not cover the main part.
    +        textStroke && ctx.strokeText(textLines[i], textX, textY);
    +        textFill && ctx.fillText(textLines[i], textX, textY);
    +        textY += lineHeight;
    +    }
    +}
    +
    +function renderRichText(hostEl, ctx, text, style, rect) {
    +    var contentBlock = hostEl.__textCotentBlock;
    +
    +    if (!contentBlock || hostEl.__dirty) {
    +        contentBlock = hostEl.__textCotentBlock = parseRichText(text, style);
    +    }
    +
    +    drawRichText(hostEl, ctx, contentBlock, style, rect);
    +}
    +
    +function drawRichText(hostEl, ctx, contentBlock, style, rect) {
    +    var contentWidth = contentBlock.width;
    +    var outerWidth = contentBlock.outerWidth;
    +    var outerHeight = contentBlock.outerHeight;
    +    var textPadding = style.textPadding;
    +
    +    var boxPos = getBoxPosition(outerHeight, style, rect);
    +    var baseX = boxPos.baseX;
    +    var baseY = boxPos.baseY;
    +    var textAlign = boxPos.textAlign;
    +    var textVerticalAlign = boxPos.textVerticalAlign;
    +
    +    // Origin of textRotation should be the base point of text drawing.
    +    applyTextRotation(ctx, style, rect, baseX, baseY);
    +
    +    var boxX = adjustTextX(baseX, outerWidth, textAlign);
    +    var boxY = adjustTextY(baseY, outerHeight, textVerticalAlign);
    +    var xLeft = boxX;
    +    var lineTop = boxY;
    +    if (textPadding) {
    +        xLeft += textPadding[3];
    +        lineTop += textPadding[0];
    +    }
    +    var xRight = xLeft + contentWidth;
    +
    +    needDrawBackground(style) && drawBackground(
    +        hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight
    +    );
    +
    +    for (var i = 0; i < contentBlock.lines.length; i++) {
    +        var line = contentBlock.lines[i];
    +        var tokens = line.tokens;
    +        var tokenCount = tokens.length;
    +        var lineHeight = line.lineHeight;
    +        var usedWidth = line.width;
    +
    +        var leftIndex = 0;
    +        var lineXLeft = xLeft;
    +        var lineXRight = xRight;
    +        var rightIndex = tokenCount - 1;
    +        var token;
    +
    +        while (
    +            leftIndex < tokenCount
    +            && (token = tokens[leftIndex], !token.textAlign || token.textAlign === 'left')
    +        ) {
    +            placeToken(hostEl, ctx, token, style, lineHeight, lineTop, lineXLeft, 'left');
    +            usedWidth -= token.width;
    +            lineXLeft += token.width;
    +            leftIndex++;
    +        }
    +
    +        while (
    +            rightIndex >= 0
    +            && (token = tokens[rightIndex], token.textAlign === 'right')
    +        ) {
    +            placeToken(hostEl, ctx, token, style, lineHeight, lineTop, lineXRight, 'right');
    +            usedWidth -= token.width;
    +            lineXRight -= token.width;
    +            rightIndex--;
    +        }
    +
    +        // The other tokens are placed as textAlign 'center' if there is enough space.
    +        lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - usedWidth) / 2;
    +        while (leftIndex <= rightIndex) {
    +            token = tokens[leftIndex];
    +            // Consider width specified by user, use 'center' rather than 'left'.
    +            placeToken(hostEl, ctx, token, style, lineHeight, lineTop, lineXLeft + token.width / 2, 'center');
    +            lineXLeft += token.width;
    +            leftIndex++;
    +        }
    +
    +        lineTop += lineHeight;
    +    }
    +}
    +
    +function applyTextRotation(ctx, style, rect, x, y) {
    +    // textRotation only apply in RectText.
    +    if (rect && style.textRotation) {
    +        var origin = style.textOrigin;
    +        if (origin === 'center') {
    +            x = rect.width / 2 + rect.x;
    +            y = rect.height / 2 + rect.y;
    +        }
    +        else if (origin) {
    +            x = origin[0] + rect.x;
    +            y = origin[1] + rect.y;
    +        }
    +
    +        ctx.translate(x, y);
    +        // Positive: anticlockwise
    +        ctx.rotate(-style.textRotation);
    +        ctx.translate(-x, -y);
    +    }
    +}
    +
    +function placeToken(hostEl, ctx, token, style, lineHeight, lineTop, x, textAlign) {
    +    var tokenStyle = style.rich[token.styleName] || {};
    +
    +    // 'ctx.textBaseline' is always set as 'middle', for sake of
    +    // the bias of "Microsoft YaHei".
    +    var textVerticalAlign = token.textVerticalAlign;
    +    var y = lineTop + lineHeight / 2;
    +    if (textVerticalAlign === 'top') {
    +        y = lineTop + token.height / 2;
    +    }
    +    else if (textVerticalAlign === 'bottom') {
    +        y = lineTop + lineHeight - token.height / 2;
    +    }
    +
    +    !token.isLineHolder && needDrawBackground(tokenStyle) && drawBackground(
    +        hostEl,
    +        ctx,
    +        tokenStyle,
    +        textAlign === 'right'
    +            ? x - token.width
    +            : textAlign === 'center'
    +            ? x - token.width / 2
    +            : x,
    +        y - token.height / 2,
    +        token.width,
    +        token.height
    +    );
    +
    +    var textPadding = token.textPadding;
    +    if (textPadding) {
    +        x = getTextXForPadding(x, textAlign, textPadding);
    +        y -= token.height / 2 - textPadding[2] - token.textHeight / 2;
    +    }
    +
    +    setCtx(ctx, 'shadowBlur', retrieve3(tokenStyle.textShadowBlur, style.textShadowBlur, 0));
    +    setCtx(ctx, 'shadowColor', tokenStyle.textShadowColor || style.textShadowColor || 'transparent');
    +    setCtx(ctx, 'shadowOffsetX', retrieve3(tokenStyle.textShadowOffsetX, style.textShadowOffsetX, 0));
    +    setCtx(ctx, 'shadowOffsetY', retrieve3(tokenStyle.textShadowOffsetY, style.textShadowOffsetY, 0));
    +
    +    setCtx(ctx, 'textAlign', textAlign);
    +    // Force baseline to be "middle". Otherwise, if using "top", the
    +    // text will offset downward a little bit in font "Microsoft YaHei".
    +    setCtx(ctx, 'textBaseline', 'middle');
    +
    +    setCtx(ctx, 'font', token.font || DEFAULT_FONT);
    +
    +    var textStroke = getStroke(tokenStyle.textStroke || style.textStroke, textStrokeWidth);
    +    var textFill = getFill(tokenStyle.textFill || style.textFill);
    +    var textStrokeWidth = retrieve2(tokenStyle.textStrokeWidth, style.textStrokeWidth);
    +
    +    // Fill after stroke so the outline will not cover the main part.
    +    if (textStroke) {
    +        setCtx(ctx, 'lineWidth', textStrokeWidth);
    +        setCtx(ctx, 'strokeStyle', textStroke);
    +        ctx.strokeText(token.text, x, y);
    +    }
    +    if (textFill) {
    +        setCtx(ctx, 'fillStyle', textFill);
    +        ctx.fillText(token.text, x, y);
    +    }
    +}
    +
    +function needDrawBackground(style) {
    +    return style.textBackgroundColor
    +        || (style.textBorderWidth && style.textBorderColor);
    +}
    +
    +// style: {textBackgroundColor, textBorderWidth, textBorderColor, textBorderRadius}
    +// shape: {x, y, width, height}
    +function drawBackground(hostEl, ctx, style, x, y, width, height) {
    +    var textBackgroundColor = style.textBackgroundColor;
    +    var textBorderWidth = style.textBorderWidth;
    +    var textBorderColor = style.textBorderColor;
    +    var isPlainBg = isString(textBackgroundColor);
    +
    +    setCtx(ctx, 'shadowBlur', style.textBoxShadowBlur || 0);
    +    setCtx(ctx, 'shadowColor', style.textBoxShadowColor || 'transparent');
    +    setCtx(ctx, 'shadowOffsetX', style.textBoxShadowOffsetX || 0);
    +    setCtx(ctx, 'shadowOffsetY', style.textBoxShadowOffsetY || 0);
    +
    +    if (isPlainBg || (textBorderWidth && textBorderColor)) {
    +        ctx.beginPath();
    +        var textBorderRadius = style.textBorderRadius;
    +        if (!textBorderRadius) {
    +            ctx.rect(x, y, width, height);
    +        }
    +        else {
    +            buildPath(ctx, {
    +                x: x, y: y, width: width, height: height, r: textBorderRadius
    +            });
    +        }
    +        ctx.closePath();
    +    }
    +
    +    if (isPlainBg) {
    +        setCtx(ctx, 'fillStyle', textBackgroundColor);
    +        ctx.fill();
    +    }
    +    else if (isObject(textBackgroundColor)) {
    +        var image = textBackgroundColor.image;
    +
    +        image = createOrUpdateImage(
    +            image, null, hostEl, onBgImageLoaded, textBackgroundColor
    +        );
    +        if (image && isImageReady(image)) {
    +            ctx.drawImage(image, x, y, width, height);
    +        }
    +    }
    +
    +    if (textBorderWidth && textBorderColor) {
    +        setCtx(ctx, 'lineWidth', textBorderWidth);
    +        setCtx(ctx, 'strokeStyle', textBorderColor);
    +        ctx.stroke();
    +    }
    +}
    +
    +function onBgImageLoaded(image, textBackgroundColor) {
    +    // Replace image, so that `contain/text.js#parseRichText`
    +    // will get correct result in next tick.
    +    textBackgroundColor.image = image;
    +}
    +
    +function getBoxPosition(blockHeiht, style, rect) {
    +    var baseX = style.x || 0;
    +    var baseY = style.y || 0;
    +    var textAlign = style.textAlign;
    +    var textVerticalAlign = style.textVerticalAlign;
    +
    +    // Text position represented by coord
    +    if (rect) {
    +        var textPosition = style.textPosition;
    +        if (textPosition instanceof Array) {
    +            // Percent
    +            baseX = rect.x + parsePercent(textPosition[0], rect.width);
    +            baseY = rect.y + parsePercent(textPosition[1], rect.height);
    +        }
    +        else {
    +            var res = adjustTextPositionOnRect(
    +                textPosition, rect, style.textDistance
    +            );
    +            baseX = res.x;
    +            baseY = res.y;
    +            // Default align and baseline when has textPosition
    +            textAlign = textAlign || res.textAlign;
    +            textVerticalAlign = textVerticalAlign || res.textVerticalAlign;
    +        }
    +
    +        // textOffset is only support in RectText, otherwise
    +        // we have to adjust boundingRect for textOffset.
    +        var textOffset = style.textOffset;
    +        if (textOffset) {
    +            baseX += textOffset[0];
    +            baseY += textOffset[1];
    +        }
    +    }
    +
    +    return {
    +        baseX: baseX,
    +        baseY: baseY,
    +        textAlign: textAlign,
    +        textVerticalAlign: textVerticalAlign
    +    };
    +}
    +
    +function setCtx(ctx, prop, value) {
    +    // FIXME ??? performance try
    +    // if (ctx.__currentValues[prop] !== value) {
    +        // ctx[prop] = ctx.__currentValues[prop] = value;
    +    ctx[prop] = value;
    +    // }
    +    return ctx[prop];
    +}
    +
    +/**
    + * @param {string} [stroke] If specified, do not check style.textStroke.
    + * @param {string} [lineWidth] If specified, do not check style.textStroke.
    + * @param {number} style
    + */
    +function getStroke(stroke, lineWidth) {
    +    return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')
    +        ? null
    +        // TODO pattern and gradient?
    +        : (stroke.image || stroke.colorStops)
    +        ? '#000'
    +        : stroke;
    +}
    +
    +function getFill(fill) {
    +    return (fill == null || fill === 'none')
    +        ? null
    +        // TODO pattern and gradient?
    +        : (fill.image || fill.colorStops)
    +        ? '#000'
    +        : fill;
    +}
    +
    +function parsePercent(value, maxValue) {
    +    if (typeof value === 'string') {
    +        if (value.lastIndexOf('%') >= 0) {
    +            return parseFloat(value) / 100 * maxValue;
    +        }
    +        return parseFloat(value);
    +    }
    +    return value;
    +}
    +
    +function getTextXForPadding(x, textAlign, textPadding) {
    +    return textAlign === 'right'
    +        ? (x - textPadding[1])
    +        : textAlign === 'center'
    +        ? (x + textPadding[3] / 2 - textPadding[1] / 2)
    +        : (x + textPadding[3]);
    +}
    +
    +/**
    + * @param {string} text
    + * @param {module:zrender/Style} style
    + * @return {boolean}
    + */
    +function needDrawText(text, style) {
    +    return text != null
    +        && (text
    +            || style.textBackgroundColor
    +            || (style.textBorderWidth && style.textBorderColor)
    +            || style.textPadding
    +        );
    +}
    +
    +/**
    + * Mixin for drawing text in a element bounding rect
    + * @module zrender/mixin/RectText
    + */
    +
    +var tmpRect$1 = new BoundingRect();
    +
    +var RectText = function () {};
    +
    +RectText.prototype = {
    +
    +    constructor: RectText,
    +
    +    /**
    +     * Draw text in a rect with specified position.
    +     * @param  {CanvasRenderingContext2D} ctx
    +     * @param  {Object} rect Displayable rect
    +     */
    +    drawRectText: function (ctx, rect) {
    +        var style = this.style;
    +
    +        rect = style.textRect || rect;
    +
    +        // Optimize, avoid normalize every time.
    +        this.__dirty && normalizeTextStyle(style, true);
    +
    +        var text = style.text;
    +
    +        // Convert to string
    +        text != null && (text += '');
    +
    +        if (!needDrawText(text, style)) {
    +            return;
    +        }
    +
    +        // FIXME
    +        ctx.save();
    +
    +        // Transform rect to view space
    +        var transform = this.transform;
    +        if (!style.transformText) {
    +            if (transform) {
    +                tmpRect$1.copy(rect);
    +                tmpRect$1.applyTransform(transform);
    +                rect = tmpRect$1;
    +            }
    +        }
    +        else {
    +            this.setTransform(ctx);
    +        }
    +
    +        // transformText and textRotation can not be used at the same time.
    +        renderText(this, ctx, text, style, rect);
    +
    +        ctx.restore();
    +    }
    +};
    +
    +/**
    + * 可绘制的图形基类
    + * Base class of all displayable graphic objects
    + * @module zrender/graphic/Displayable
    + */
    +
    +
    +/**
    + * @alias module:zrender/graphic/Displayable
    + * @extends module:zrender/Element
    + * @extends module:zrender/graphic/mixin/RectText
    + */
    +function Displayable(opts) {
    +
    +    opts = opts || {};
    +
    +    Element.call(this, opts);
    +
    +    // Extend properties
    +    for (var name in opts) {
    +        if (
    +            opts.hasOwnProperty(name) &&
    +            name !== 'style'
    +        ) {
    +            this[name] = opts[name];
    +        }
    +    }
    +
    +    /**
    +     * @type {module:zrender/graphic/Style}
    +     */
    +    this.style = new Style(opts.style, this);
    +
    +    this._rect = null;
    +    // Shapes for cascade clipping.
    +    this.__clipPaths = [];
    +
    +    // FIXME Stateful must be mixined after style is setted
    +    // Stateful.call(this, opts);
    +}
    +
    +Displayable.prototype = {
    +
    +    constructor: Displayable,
    +
    +    type: 'displayable',
    +
    +    /**
    +     * Displayable 是否为脏,Painter 中会根据该标记判断是否需要是否需要重新绘制
    +     * Dirty flag. From which painter will determine if this displayable object needs brush
    +     * @name module:zrender/graphic/Displayable#__dirty
    +     * @type {boolean}
    +     */
    +    __dirty: true,
    +
    +    /**
    +     * 图形是否可见,为true时不绘制图形,但是仍能触发鼠标事件
    +     * If ignore drawing of the displayable object. Mouse event will still be triggered
    +     * @name module:/zrender/graphic/Displayable#invisible
    +     * @type {boolean}
    +     * @default false
    +     */
    +    invisible: false,
    +
    +    /**
    +     * @name module:/zrender/graphic/Displayable#z
    +     * @type {number}
    +     * @default 0
    +     */
    +    z: 0,
    +
    +    /**
    +     * @name module:/zrender/graphic/Displayable#z
    +     * @type {number}
    +     * @default 0
    +     */
    +    z2: 0,
    +
    +    /**
    +     * z层level,决定绘画在哪层canvas中
    +     * @name module:/zrender/graphic/Displayable#zlevel
    +     * @type {number}
    +     * @default 0
    +     */
    +    zlevel: 0,
    +
    +    /**
    +     * 是否可拖拽
    +     * @name module:/zrender/graphic/Displayable#draggable
    +     * @type {boolean}
    +     * @default false
    +     */
    +    draggable: false,
    +
    +    /**
    +     * 是否正在拖拽
    +     * @name module:/zrender/graphic/Displayable#draggable
    +     * @type {boolean}
    +     * @default false
    +     */
    +    dragging: false,
    +
    +    /**
    +     * 是否相应鼠标事件
    +     * @name module:/zrender/graphic/Displayable#silent
    +     * @type {boolean}
    +     * @default false
    +     */
    +    silent: false,
    +
    +    /**
    +     * If enable culling
    +     * @type {boolean}
    +     * @default false
    +     */
    +    culling: false,
    +
    +    /**
    +     * Mouse cursor when hovered
    +     * @name module:/zrender/graphic/Displayable#cursor
    +     * @type {string}
    +     */
    +    cursor: 'pointer',
    +
    +    /**
    +     * If hover area is bounding rect
    +     * @name module:/zrender/graphic/Displayable#rectHover
    +     * @type {string}
    +     */
    +    rectHover: false,
    +
    +    /**
    +     * Render the element progressively when the value >= 0,
    +     * usefull for large data.
    +     * @type {number}
    +     */
    +    progressive: -1,
    +
    +    beforeBrush: function (ctx) {},
    +
    +    afterBrush: function (ctx) {},
    +
    +    /**
    +     * 图形绘制方法
    +     * @param {CanvasRenderingContext2D} ctx
    +     */
    +    // Interface
    +    brush: function (ctx, prevEl) {},
    +
    +    /**
    +     * 获取最小包围盒
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    // Interface
    +    getBoundingRect: function () {},
    +
    +    /**
    +     * 判断坐标 x, y 是否在图形上
    +     * If displayable element contain coord x, y
    +     * @param  {number} x
    +     * @param  {number} y
    +     * @return {boolean}
    +     */
    +    contain: function (x, y) {
    +        return this.rectContain(x, y);
    +    },
    +
    +    /**
    +     * @param  {Function} cb
    +     * @param  {}   context
    +     */
    +    traverse: function (cb, context) {
    +        cb.call(context, this);
    +    },
    +
    +    /**
    +     * 判断坐标 x, y 是否在图形的包围盒上
    +     * If bounding rect of element contain coord x, y
    +     * @param  {number} x
    +     * @param  {number} y
    +     * @return {boolean}
    +     */
    +    rectContain: function (x, y) {
    +        var coord = this.transformCoordToLocal(x, y);
    +        var rect = this.getBoundingRect();
    +        return rect.contain(coord[0], coord[1]);
    +    },
    +
    +    /**
    +     * 标记图形元素为脏,并且在下一帧重绘
    +     * Mark displayable element dirty and refresh next frame
    +     */
    +    dirty: function () {
    +        this.__dirty = true;
    +
    +        this._rect = null;
    +
    +        this.__zr && this.__zr.refresh();
    +    },
    +
    +    /**
    +     * 图形是否会触发事件
    +     * If displayable object binded any event
    +     * @return {boolean}
    +     */
    +    // TODO, 通过 bind 绑定的事件
    +    // isSilent: function () {
    +    //     return !(
    +    //         this.hoverable || this.draggable
    +    //         || this.onmousemove || this.onmouseover || this.onmouseout
    +    //         || this.onmousedown || this.onmouseup || this.onclick
    +    //         || this.ondragenter || this.ondragover || this.ondragleave
    +    //         || this.ondrop
    +    //     );
    +    // },
    +    /**
    +     * Alias for animate('style')
    +     * @param {boolean} loop
    +     */
    +    animateStyle: function (loop) {
    +        return this.animate('style', loop);
    +    },
    +
    +    attrKV: function (key, value) {
    +        if (key !== 'style') {
    +            Element.prototype.attrKV.call(this, key, value);
    +        }
    +        else {
    +            this.style.set(value);
    +        }
    +    },
    +
    +    /**
    +     * @param {Object|string} key
    +     * @param {*} value
    +     */
    +    setStyle: function (key, value) {
    +        this.style.set(key, value);
    +        this.dirty(false);
    +        return this;
    +    },
    +
    +    /**
    +     * Use given style object
    +     * @param  {Object} obj
    +     */
    +    useStyle: function (obj) {
    +        this.style = new Style(obj, this);
    +        this.dirty(false);
    +        return this;
    +    }
    +};
    +
    +inherits(Displayable, Element);
    +
    +mixin(Displayable, RectText);
    +
    +/**
    + * @alias zrender/graphic/Image
    + * @extends module:zrender/graphic/Displayable
    + * @constructor
    + * @param {Object} opts
    + */
    +function ZImage(opts) {
    +    Displayable.call(this, opts);
    +}
    +
    +ZImage.prototype = {
    +
    +    constructor: ZImage,
    +
    +    type: 'image',
    +
    +    brush: function (ctx, prevEl) {
    +        var style = this.style;
    +        var src = style.image;
    +
    +        // Must bind each time
    +        style.bind(ctx, this, prevEl);
    +
    +        var image = this._image = createOrUpdateImage(
    +            src,
    +            this._image,
    +            this,
    +            this.onload
    +        );
    +
    +        if (!image || !isImageReady(image)) {
    +            return;
    +        }
    +
    +        // 图片已经加载完成
    +        // if (image.nodeName.toUpperCase() == 'IMG') {
    +        //     if (!image.complete) {
    +        //         return;
    +        //     }
    +        // }
    +        // Else is canvas
    +
    +        var x = style.x || 0;
    +        var y = style.y || 0;
    +        var width = style.width;
    +        var height = style.height;
    +        var aspect = image.width / image.height;
    +        if (width == null && height != null) {
    +            // Keep image/height ratio
    +            width = height * aspect;
    +        }
    +        else if (height == null && width != null) {
    +            height = width / aspect;
    +        }
    +        else if (width == null && height == null) {
    +            width = image.width;
    +            height = image.height;
    +        }
    +
    +        // 设置transform
    +        this.setTransform(ctx);
    +
    +        if (style.sWidth && style.sHeight) {
    +            var sx = style.sx || 0;
    +            var sy = style.sy || 0;
    +            ctx.drawImage(
    +                image,
    +                sx, sy, style.sWidth, style.sHeight,
    +                x, y, width, height
    +            );
    +        }
    +        else if (style.sx && style.sy) {
    +            var sx = style.sx;
    +            var sy = style.sy;
    +            var sWidth = width - sx;
    +            var sHeight = height - sy;
    +            ctx.drawImage(
    +                image,
    +                sx, sy, sWidth, sHeight,
    +                x, y, width, height
    +            );
    +        }
    +        else {
    +            ctx.drawImage(image, x, y, width, height);
    +        }
    +
    +        this.restoreTransform(ctx);
    +
    +        // Draw rect text
    +        if (style.text != null) {
    +            this.drawRectText(ctx, this.getBoundingRect());
    +        }
    +    },
    +
    +    getBoundingRect: function () {
    +        var style = this.style;
    +        if (! this._rect) {
    +            this._rect = new BoundingRect(
    +                style.x || 0, style.y || 0, style.width || 0, style.height || 0
    +            );
    +        }
    +        return this._rect;
    +    }
    +};
    +
    +inherits(ZImage, Displayable);
    +
    +/**
    + * Default canvas painter
    + * @module zrender/Painter
    + * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + *         errorrik (errorrik@gmail.com)
    + *         pissang (https://www.github.com/pissang)
    + */
    +
    +// PENDIGN
    +// Layer exceeds MAX_PROGRESSIVE_LAYER_NUMBER may have some problem when flush directly second time.
    +//
    +// Maximum progressive layer. When exceeding this number. All elements will be drawed in the last layer.
    +var MAX_PROGRESSIVE_LAYER_NUMBER = 5;
    +
    +function parseInt10(val) {
    +    return parseInt(val, 10);
    +}
    +
    +function isLayerValid(layer) {
    +    if (!layer) {
    +        return false;
    +    }
    +
    +    if (layer.__builtin__) {
    +        return true;
    +    }
    +
    +    if (typeof(layer.resize) !== 'function'
    +        || typeof(layer.refresh) !== 'function'
    +    ) {
    +        return false;
    +    }
    +
    +    return true;
    +}
    +
    +function preProcessLayer(layer) {
    +    layer.__unusedCount++;
    +}
    +
    +function postProcessLayer(layer) {
    +    if (layer.__unusedCount == 1) {
    +        layer.clear();
    +    }
    +}
    +
    +var tmpRect = new BoundingRect(0, 0, 0, 0);
    +var viewRect = new BoundingRect(0, 0, 0, 0);
    +function isDisplayableCulled(el, width, height) {
    +    tmpRect.copy(el.getBoundingRect());
    +    if (el.transform) {
    +        tmpRect.applyTransform(el.transform);
    +    }
    +    viewRect.width = width;
    +    viewRect.height = height;
    +    return !tmpRect.intersect(viewRect);
    +}
    +
    +function isClipPathChanged(clipPaths, prevClipPaths) {
    +    if (clipPaths == prevClipPaths) { // Can both be null or undefined
    +        return false;
    +    }
    +
    +    if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {
    +        return true;
    +    }
    +    for (var i = 0; i < clipPaths.length; i++) {
    +        if (clipPaths[i] !== prevClipPaths[i]) {
    +            return true;
    +        }
    +    }
    +}
    +
    +function doClip(clipPaths, ctx) {
    +    for (var i = 0; i < clipPaths.length; i++) {
    +        var clipPath = clipPaths[i];
    +
    +        clipPath.setTransform(ctx);
    +        ctx.beginPath();
    +        clipPath.buildPath(ctx, clipPath.shape);
    +        ctx.clip();
    +        // Transform back
    +        clipPath.restoreTransform(ctx);
    +    }
    +}
    +
    +function createRoot(width, height) {
    +    var domRoot = document.createElement('div');
    +
    +    // domRoot.onselectstart = returnFalse; // 避免页面选中的尴尬
    +    domRoot.style.cssText = [
    +        'position:relative',
    +        'overflow:hidden',
    +        'width:' + width + 'px',
    +        'height:' + height + 'px',
    +        'padding:0',
    +        'margin:0',
    +        'border-width:0'
    +    ].join(';') + ';';
    +
    +    return domRoot;
    +}
    +
    +/**
    + * @alias module:zrender/Painter
    + * @constructor
    + * @param {HTMLElement} root 绘图容器
    + * @param {module:zrender/Storage} storage
    + * @param {Object} opts
    + */
    +var Painter = function (root, storage, opts) {
    +
    +    this.type = 'canvas';
    +
    +    // In node environment using node-canvas
    +    var singleCanvas = !root.nodeName // In node ?
    +        || root.nodeName.toUpperCase() === 'CANVAS';
    +
    +    this._opts = opts = extend({}, opts || {});
    +
    +    /**
    +     * @type {number}
    +     */
    +    this.dpr = opts.devicePixelRatio || devicePixelRatio;
    +    /**
    +     * @type {boolean}
    +     * @private
    +     */
    +    this._singleCanvas = singleCanvas;
    +    /**
    +     * 绘图容器
    +     * @type {HTMLElement}
    +     */
    +    this.root = root;
    +
    +    var rootStyle = root.style;
    +
    +    if (rootStyle) {
    +        rootStyle['-webkit-tap-highlight-color'] = 'transparent';
    +        rootStyle['-webkit-user-select'] =
    +        rootStyle['user-select'] =
    +        rootStyle['-webkit-touch-callout'] = 'none';
    +
    +        root.innerHTML = '';
    +    }
    +
    +    /**
    +     * @type {module:zrender/Storage}
    +     */
    +    this.storage = storage;
    +
    +    /**
    +     * @type {Array.<number>}
    +     * @private
    +     */
    +    var zlevelList = this._zlevelList = [];
    +
    +    /**
    +     * @type {Object.<string, module:zrender/Layer>}
    +     * @private
    +     */
    +    var layers = this._layers = {};
    +
    +    /**
    +     * @type {Object.<string, Object>}
    +     * @type {private}
    +     */
    +    this._layerConfig = {};
    +
    +    if (!singleCanvas) {
    +        this._width = this._getSize(0);
    +        this._height = this._getSize(1);
    +
    +        var domRoot = this._domRoot = createRoot(
    +            this._width, this._height
    +        );
    +        root.appendChild(domRoot);
    +    }
    +    else {
    +        if (opts.width != null) {
    +            root.width = opts.width;
    +        }
    +        if (opts.height != null) {
    +            root.height = opts.height;
    +        }
    +        // Use canvas width and height directly
    +        var width = root.width;
    +        var height = root.height;
    +        this._width = width;
    +        this._height = height;
    +
    +        // Create layer if only one given canvas
    +        // Device pixel ratio is fixed to 1 because given canvas has its specified width and height
    +        var mainLayer = new Layer(root, this, 1);
    +        mainLayer.initContext();
    +        // FIXME Use canvas width and height
    +        // mainLayer.resize(width, height);
    +        layers[0] = mainLayer;
    +        zlevelList.push(0);
    +
    +        this._domRoot = root;
    +    }
    +
    +    // Layers for progressive rendering
    +    this._progressiveLayers = [];
    +
    +    /**
    +     * @type {module:zrender/Layer}
    +     * @private
    +     */
    +    this._hoverlayer;
    +
    +    this._hoverElements = [];
    +};
    +
    +Painter.prototype = {
    +
    +    constructor: Painter,
    +
    +    getType: function () {
    +        return 'canvas';
    +    },
    +
    +    /**
    +     * If painter use a single canvas
    +     * @return {boolean}
    +     */
    +    isSingleCanvas: function () {
    +        return this._singleCanvas;
    +    },
    +    /**
    +     * @return {HTMLDivElement}
    +     */
    +    getViewportRoot: function () {
    +        return this._domRoot;
    +    },
    +
    +    getViewportRootOffset: function () {
    +        var viewportRoot = this.getViewportRoot();
    +        if (viewportRoot) {
    +            return {
    +                offsetLeft: viewportRoot.offsetLeft || 0,
    +                offsetTop: viewportRoot.offsetTop || 0
    +            };
    +        }
    +    },
    +
    +    /**
    +     * 刷新
    +     * @param {boolean} [paintAll=false] 强制绘制所有displayable
    +     */
    +    refresh: function (paintAll) {
    +
    +        var list = this.storage.getDisplayList(true);
    +
    +        var zlevelList = this._zlevelList;
    +
    +        this._paintList(list, paintAll);
    +
    +        // Paint custum layers
    +        for (var i = 0; i < zlevelList.length; i++) {
    +            var z = zlevelList[i];
    +            var layer = this._layers[z];
    +            if (!layer.__builtin__ && layer.refresh) {
    +                layer.refresh();
    +            }
    +        }
    +
    +        this.refreshHover();
    +
    +        if (this._progressiveLayers.length) {
    +            this._startProgessive();
    +        }
    +
    +        return this;
    +    },
    +
    +    addHover: function (el, hoverStyle) {
    +        if (el.__hoverMir) {
    +            return;
    +        }
    +        var elMirror = new el.constructor({
    +            style: el.style,
    +            shape: el.shape
    +        });
    +        elMirror.__from = el;
    +        el.__hoverMir = elMirror;
    +        elMirror.setStyle(hoverStyle);
    +        this._hoverElements.push(elMirror);
    +    },
    +
    +    removeHover: function (el) {
    +        var elMirror = el.__hoverMir;
    +        var hoverElements = this._hoverElements;
    +        var idx = indexOf(hoverElements, elMirror);
    +        if (idx >= 0) {
    +            hoverElements.splice(idx, 1);
    +        }
    +        el.__hoverMir = null;
    +    },
    +
    +    clearHover: function (el) {
    +        var hoverElements = this._hoverElements;
    +        for (var i = 0; i < hoverElements.length; i++) {
    +            var from = hoverElements[i].__from;
    +            if (from) {
    +                from.__hoverMir = null;
    +            }
    +        }
    +        hoverElements.length = 0;
    +    },
    +
    +    refreshHover: function () {
    +        var hoverElements = this._hoverElements;
    +        var len = hoverElements.length;
    +        var hoverLayer = this._hoverlayer;
    +        hoverLayer && hoverLayer.clear();
    +
    +        if (!len) {
    +            return;
    +        }
    +        sort(hoverElements, this.storage.displayableSortFunc);
    +
    +        // Use a extream large zlevel
    +        // FIXME?
    +        if (!hoverLayer) {
    +            hoverLayer = this._hoverlayer = this.getLayer(1e5);
    +        }
    +
    +        var scope = {};
    +        hoverLayer.ctx.save();
    +        for (var i = 0; i < len;) {
    +            var el = hoverElements[i];
    +            var originalEl = el.__from;
    +            // Original el is removed
    +            // PENDING
    +            if (!(originalEl && originalEl.__zr)) {
    +                hoverElements.splice(i, 1);
    +                originalEl.__hoverMir = null;
    +                len--;
    +                continue;
    +            }
    +            i++;
    +
    +            // Use transform
    +            // FIXME style and shape ?
    +            if (!originalEl.invisible) {
    +                el.transform = originalEl.transform;
    +                el.invTransform = originalEl.invTransform;
    +                el.__clipPaths = originalEl.__clipPaths;
    +                // el.
    +                this._doPaintEl(el, hoverLayer, true, scope);
    +            }
    +        }
    +        hoverLayer.ctx.restore();
    +    },
    +
    +    _startProgessive: function () {
    +        var self = this;
    +
    +        if (!self._furtherProgressive) {
    +            return;
    +        }
    +
    +        // Use a token to stop progress steps triggered by
    +        // previous zr.refresh calling.
    +        var token = self._progressiveToken = +new Date();
    +
    +        self._progress++;
    +        requestAnimationFrame(step);
    +
    +        function step() {
    +            // In case refreshed or disposed
    +            if (token === self._progressiveToken && self.storage) {
    +
    +                self._doPaintList(self.storage.getDisplayList());
    +
    +                if (self._furtherProgressive) {
    +                    self._progress++;
    +                    requestAnimationFrame(step);
    +                }
    +                else {
    +                    self._progressiveToken = -1;
    +                }
    +            }
    +        }
    +    },
    +
    +    _clearProgressive: function () {
    +        this._progressiveToken = -1;
    +        this._progress = 0;
    +        each$1(this._progressiveLayers, function (layer) {
    +            layer.__dirty && layer.clear();
    +        });
    +    },
    +
    +    _paintList: function (list, paintAll) {
    +
    +        if (paintAll == null) {
    +            paintAll = false;
    +        }
    +
    +        this._updateLayerStatus(list);
    +
    +        this._clearProgressive();
    +
    +        this.eachBuiltinLayer(preProcessLayer);
    +
    +        this._doPaintList(list, paintAll);
    +
    +        this.eachBuiltinLayer(postProcessLayer);
    +    },
    +
    +    _doPaintList: function (list, paintAll) {
    +        var currentLayer;
    +        var currentZLevel;
    +        var ctx;
    +
    +        // var invTransform = [];
    +        var scope;
    +
    +        var progressiveLayerIdx = 0;
    +        var currentProgressiveLayer;
    +
    +        var width = this._width;
    +        var height = this._height;
    +        var layerProgress;
    +        var frame = this._progress;
    +        function flushProgressiveLayer(layer) {
    +            var dpr = ctx.dpr || 1;
    +            ctx.save();
    +            ctx.globalAlpha = 1;
    +            ctx.shadowBlur = 0;
    +            // Avoid layer don't clear in next progressive frame
    +            currentLayer.__dirty = true;
    +            ctx.setTransform(1, 0, 0, 1, 0, 0);
    +            ctx.drawImage(layer.dom, 0, 0, width * dpr, height * dpr);
    +            ctx.restore();
    +        }
    +
    +        for (var i = 0, l = list.length; i < l; i++) {
    +            var el = list[i];
    +            var elZLevel = this._singleCanvas ? 0 : el.zlevel;
    +
    +            var elFrame = el.__frame;
    +
    +            // Flush at current context
    +            // PENDING
    +            if (elFrame < 0 && currentProgressiveLayer) {
    +                flushProgressiveLayer(currentProgressiveLayer);
    +                currentProgressiveLayer = null;
    +            }
    +
    +            // Change draw layer
    +            if (currentZLevel !== elZLevel) {
    +                if (ctx) {
    +                    ctx.restore();
    +                }
    +
    +                // Reset scope
    +                scope = {};
    +
    +                // Only 0 zlevel if only has one canvas
    +                currentZLevel = elZLevel;
    +                currentLayer = this.getLayer(currentZLevel);
    +
    +                if (!currentLayer.__builtin__) {
    +                    zrLog(
    +                        'ZLevel ' + currentZLevel
    +                        + ' has been used by unkown layer ' + currentLayer.id
    +                    );
    +                }
    +
    +                ctx = currentLayer.ctx;
    +                ctx.save();
    +
    +                // Reset the count
    +                currentLayer.__unusedCount = 0;
    +
    +                if (currentLayer.__dirty || paintAll) {
    +                    currentLayer.clear();
    +                }
    +            }
    +
    +            if (!(currentLayer.__dirty || paintAll)) {
    +                continue;
    +            }
    +
    +            if (elFrame >= 0) {
    +                // Progressive layer changed
    +                if (!currentProgressiveLayer) {
    +                    currentProgressiveLayer = this._progressiveLayers[
    +                        Math.min(progressiveLayerIdx++, MAX_PROGRESSIVE_LAYER_NUMBER - 1)
    +                    ];
    +
    +                    currentProgressiveLayer.ctx.save();
    +                    currentProgressiveLayer.renderScope = {};
    +
    +                    if (currentProgressiveLayer
    +                        && (currentProgressiveLayer.__progress > currentProgressiveLayer.__maxProgress)
    +                    ) {
    +                        // flushProgressiveLayer(currentProgressiveLayer);
    +                        // Quick jump all progressive elements
    +                        // All progressive element are not dirty, jump over and flush directly
    +                        i = currentProgressiveLayer.__nextIdxNotProg - 1;
    +                        // currentProgressiveLayer = null;
    +                        continue;
    +                    }
    +
    +                    layerProgress = currentProgressiveLayer.__progress;
    +
    +                    if (!currentProgressiveLayer.__dirty) {
    +                        // Keep rendering
    +                        frame = layerProgress;
    +                    }
    +
    +                    currentProgressiveLayer.__progress = frame + 1;
    +                }
    +
    +                if (elFrame === frame) {
    +                    this._doPaintEl(el, currentProgressiveLayer, true, currentProgressiveLayer.renderScope);
    +                }
    +            }
    +            else {
    +                this._doPaintEl(el, currentLayer, paintAll, scope);
    +            }
    +
    +            el.__dirty = false;
    +        }
    +
    +        if (currentProgressiveLayer) {
    +            flushProgressiveLayer(currentProgressiveLayer);
    +        }
    +
    +        // Restore the lastLayer ctx
    +        ctx && ctx.restore();
    +        // If still has clipping state
    +        // if (scope.prevElClipPaths) {
    +        //     ctx.restore();
    +        // }
    +
    +        this._furtherProgressive = false;
    +        each$1(this._progressiveLayers, function (layer) {
    +            if (layer.__maxProgress >= layer.__progress) {
    +                this._furtherProgressive = true;
    +            }
    +        }, this);
    +    },
    +
    +    _doPaintEl: function (el, currentLayer, forcePaint, scope) {
    +        var ctx = currentLayer.ctx;
    +        var m = el.transform;
    +        if (
    +            (currentLayer.__dirty || forcePaint)
    +            // Ignore invisible element
    +            && !el.invisible
    +            // Ignore transparent element
    +            && el.style.opacity !== 0
    +            // Ignore scale 0 element, in some environment like node-canvas
    +            // Draw a scale 0 element can cause all following draw wrong
    +            // And setTransform with scale 0 will cause set back transform failed.
    +            && !(m && !m[0] && !m[3])
    +            // Ignore culled element
    +            && !(el.culling && isDisplayableCulled(el, this._width, this._height))
    +        ) {
    +
    +            var clipPaths = el.__clipPaths;
    +
    +            // Optimize when clipping on group with several elements
    +            if (scope.prevClipLayer !== currentLayer
    +                || isClipPathChanged(clipPaths, scope.prevElClipPaths)
    +            ) {
    +                // If has previous clipping state, restore from it
    +                if (scope.prevElClipPaths) {
    +                    scope.prevClipLayer.ctx.restore();
    +                    scope.prevClipLayer = scope.prevElClipPaths = null;
    +
    +                    // Reset prevEl since context has been restored
    +                    scope.prevEl = null;
    +                }
    +                // New clipping state
    +                if (clipPaths) {
    +                    ctx.save();
    +                    doClip(clipPaths, ctx);
    +                    scope.prevClipLayer = currentLayer;
    +                    scope.prevElClipPaths = clipPaths;
    +                }
    +            }
    +            el.beforeBrush && el.beforeBrush(ctx);
    +
    +            el.brush(ctx, scope.prevEl || null);
    +            scope.prevEl = el;
    +
    +            el.afterBrush && el.afterBrush(ctx);
    +        }
    +    },
    +
    +    /**
    +     * 获取 zlevel 所在层,如果不存在则会创建一个新的层
    +     * @param {number} zlevel
    +     * @return {module:zrender/Layer}
    +     */
    +    getLayer: function (zlevel) {
    +        if (this._singleCanvas) {
    +            return this._layers[0];
    +        }
    +
    +        var layer = this._layers[zlevel];
    +        if (!layer) {
    +            // Create a new layer
    +            layer = new Layer('zr_' + zlevel, this, this.dpr);
    +            layer.__builtin__ = true;
    +
    +            if (this._layerConfig[zlevel]) {
    +                merge(layer, this._layerConfig[zlevel], true);
    +            }
    +
    +            this.insertLayer(zlevel, layer);
    +
    +            // Context is created after dom inserted to document
    +            // Or excanvas will get 0px clientWidth and clientHeight
    +            layer.initContext();
    +        }
    +
    +        return layer;
    +    },
    +
    +    insertLayer: function (zlevel, layer) {
    +
    +        var layersMap = this._layers;
    +        var zlevelList = this._zlevelList;
    +        var len = zlevelList.length;
    +        var prevLayer = null;
    +        var i = -1;
    +        var domRoot = this._domRoot;
    +
    +        if (layersMap[zlevel]) {
    +            zrLog('ZLevel ' + zlevel + ' has been used already');
    +            return;
    +        }
    +        // Check if is a valid layer
    +        if (!isLayerValid(layer)) {
    +            zrLog('Layer of zlevel ' + zlevel + ' is not valid');
    +            return;
    +        }
    +
    +        if (len > 0 && zlevel > zlevelList[0]) {
    +            for (i = 0; i < len - 1; i++) {
    +                if (
    +                    zlevelList[i] < zlevel
    +                    && zlevelList[i + 1] > zlevel
    +                ) {
    +                    break;
    +                }
    +            }
    +            prevLayer = layersMap[zlevelList[i]];
    +        }
    +        zlevelList.splice(i + 1, 0, zlevel);
    +
    +        layersMap[zlevel] = layer;
    +
    +        // Vitual layer will not directly show on the screen.
    +        // (It can be a WebGL layer and assigned to a ZImage element)
    +        // But it still under management of zrender.
    +        if (!layer.virtual) {
    +            if (prevLayer) {
    +                var prevDom = prevLayer.dom;
    +                if (prevDom.nextSibling) {
    +                    domRoot.insertBefore(
    +                        layer.dom,
    +                        prevDom.nextSibling
    +                    );
    +                }
    +                else {
    +                    domRoot.appendChild(layer.dom);
    +                }
    +            }
    +            else {
    +                if (domRoot.firstChild) {
    +                    domRoot.insertBefore(layer.dom, domRoot.firstChild);
    +                }
    +                else {
    +                    domRoot.appendChild(layer.dom);
    +                }
    +            }
    +        }
    +    },
    +
    +    // Iterate each layer
    +    eachLayer: function (cb, context) {
    +        var zlevelList = this._zlevelList;
    +        var z;
    +        var i;
    +        for (i = 0; i < zlevelList.length; i++) {
    +            z = zlevelList[i];
    +            cb.call(context, this._layers[z], z);
    +        }
    +    },
    +
    +    // Iterate each buildin layer
    +    eachBuiltinLayer: function (cb, context) {
    +        var zlevelList = this._zlevelList;
    +        var layer;
    +        var z;
    +        var i;
    +        for (i = 0; i < zlevelList.length; i++) {
    +            z = zlevelList[i];
    +            layer = this._layers[z];
    +            if (layer.__builtin__) {
    +                cb.call(context, layer, z);
    +            }
    +        }
    +    },
    +
    +    // Iterate each other layer except buildin layer
    +    eachOtherLayer: function (cb, context) {
    +        var zlevelList = this._zlevelList;
    +        var layer;
    +        var z;
    +        var i;
    +        for (i = 0; i < zlevelList.length; i++) {
    +            z = zlevelList[i];
    +            layer = this._layers[z];
    +            if (!layer.__builtin__) {
    +                cb.call(context, layer, z);
    +            }
    +        }
    +    },
    +
    +    /**
    +     * 获取所有已创建的层
    +     * @param {Array.<module:zrender/Layer>} [prevLayer]
    +     */
    +    getLayers: function () {
    +        return this._layers;
    +    },
    +
    +    _updateLayerStatus: function (list) {
    +
    +        var layers = this._layers;
    +        var progressiveLayers = this._progressiveLayers;
    +
    +        var elCountsLastFrame = {};
    +        var progressiveElCountsLastFrame = {};
    +
    +        this.eachBuiltinLayer(function (layer, z) {
    +            elCountsLastFrame[z] = layer.elCount;
    +            layer.elCount = 0;
    +            layer.__dirty = false;
    +        });
    +
    +        each$1(progressiveLayers, function (layer, idx) {
    +            progressiveElCountsLastFrame[idx] = layer.elCount;
    +            layer.elCount = 0;
    +            layer.__dirty = false;
    +        });
    +
    +        var progressiveLayerCount = 0;
    +        var currentProgressiveLayer;
    +        var lastProgressiveKey;
    +        var frameCount = 0;
    +        for (var i = 0, l = list.length; i < l; i++) {
    +            var el = list[i];
    +            var zlevel = this._singleCanvas ? 0 : el.zlevel;
    +            var layer = layers[zlevel];
    +            var elProgress = el.progressive;
    +            if (layer) {
    +                layer.elCount++;
    +                layer.__dirty = layer.__dirty || el.__dirty;
    +            }
    +
    +            /////// Update progressive
    +            if (elProgress >= 0) {
    +                // Fix wrong progressive sequence problem.
    +                if (lastProgressiveKey !== elProgress) {
    +                    lastProgressiveKey = elProgress;
    +                    frameCount++;
    +                }
    +                var elFrame = el.__frame = frameCount - 1;
    +                if (!currentProgressiveLayer) {
    +                    var idx = Math.min(progressiveLayerCount, MAX_PROGRESSIVE_LAYER_NUMBER - 1);
    +                    currentProgressiveLayer = progressiveLayers[idx];
    +                    if (!currentProgressiveLayer) {
    +                        currentProgressiveLayer = progressiveLayers[idx] = new Layer(
    +                            'progressive', this, this.dpr
    +                        );
    +                        currentProgressiveLayer.initContext();
    +                    }
    +                    currentProgressiveLayer.__maxProgress = 0;
    +                }
    +                currentProgressiveLayer.__dirty = currentProgressiveLayer.__dirty || el.__dirty;
    +                currentProgressiveLayer.elCount++;
    +
    +                currentProgressiveLayer.__maxProgress = Math.max(
    +                    currentProgressiveLayer.__maxProgress, elFrame
    +                );
    +
    +                if (currentProgressiveLayer.__maxProgress >= currentProgressiveLayer.__progress) {
    +                    // Should keep rendering this  layer because progressive rendering is not finished yet
    +                    layer.__dirty = true;
    +                }
    +            }
    +            else {
    +                el.__frame = -1;
    +
    +                if (currentProgressiveLayer) {
    +                    currentProgressiveLayer.__nextIdxNotProg = i;
    +                    progressiveLayerCount++;
    +                    currentProgressiveLayer = null;
    +                }
    +            }
    +        }
    +
    +        if (currentProgressiveLayer) {
    +            progressiveLayerCount++;
    +            currentProgressiveLayer.__nextIdxNotProg = i;
    +        }
    +
    +        // 层中的元素数量有发生变化
    +        this.eachBuiltinLayer(function (layer, z) {
    +            if (elCountsLastFrame[z] !== layer.elCount) {
    +                layer.__dirty = true;
    +            }
    +        });
    +
    +        progressiveLayers.length = Math.min(progressiveLayerCount, MAX_PROGRESSIVE_LAYER_NUMBER);
    +        each$1(progressiveLayers, function (layer, idx) {
    +            if (progressiveElCountsLastFrame[idx] !== layer.elCount) {
    +                el.__dirty = true;
    +            }
    +            if (layer.__dirty) {
    +                layer.__progress = 0;
    +            }
    +        });
    +    },
    +
    +    /**
    +     * 清除hover层外所有内容
    +     */
    +    clear: function () {
    +        this.eachBuiltinLayer(this._clearLayer);
    +        return this;
    +    },
    +
    +    _clearLayer: function (layer) {
    +        layer.clear();
    +    },
    +
    +    /**
    +     * 修改指定zlevel的绘制参数
    +     *
    +     * @param {string} zlevel
    +     * @param {Object} config 配置对象
    +     * @param {string} [config.clearColor=0] 每次清空画布的颜色
    +     * @param {string} [config.motionBlur=false] 是否开启动态模糊
    +     * @param {number} [config.lastFrameAlpha=0.7]
    +     *                 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显
    +     */
    +    configLayer: function (zlevel, config) {
    +        if (config) {
    +            var layerConfig = this._layerConfig;
    +            if (!layerConfig[zlevel]) {
    +                layerConfig[zlevel] = config;
    +            }
    +            else {
    +                merge(layerConfig[zlevel], config, true);
    +            }
    +
    +            var layer = this._layers[zlevel];
    +
    +            if (layer) {
    +                merge(layer, layerConfig[zlevel], true);
    +            }
    +        }
    +    },
    +
    +    /**
    +     * 删除指定层
    +     * @param {number} zlevel 层所在的zlevel
    +     */
    +    delLayer: function (zlevel) {
    +        var layers = this._layers;
    +        var zlevelList = this._zlevelList;
    +        var layer = layers[zlevel];
    +        if (!layer) {
    +            return;
    +        }
    +        layer.dom.parentNode.removeChild(layer.dom);
    +        delete layers[zlevel];
    +
    +        zlevelList.splice(indexOf(zlevelList, zlevel), 1);
    +    },
    +
    +    /**
    +     * 区域大小变化后重绘
    +     */
    +    resize: function (width, height) {
    +        var domRoot = this._domRoot;
    +        // FIXME Why ?
    +        domRoot.style.display = 'none';
    +
    +        // Save input w/h
    +        var opts = this._opts;
    +        width != null && (opts.width = width);
    +        height != null && (opts.height = height);
    +
    +        width = this._getSize(0);
    +        height = this._getSize(1);
    +
    +        domRoot.style.display = '';
    +
    +        // 优化没有实际改变的resize
    +        if (this._width != width || height != this._height) {
    +            domRoot.style.width = width + 'px';
    +            domRoot.style.height = height + 'px';
    +
    +            for (var id in this._layers) {
    +                if (this._layers.hasOwnProperty(id)) {
    +                    this._layers[id].resize(width, height);
    +                }
    +            }
    +            each$1(this._progressiveLayers, function (layer) {
    +                layer.resize(width, height);
    +            });
    +
    +            this.refresh(true);
    +        }
    +
    +        this._width = width;
    +        this._height = height;
    +
    +        return this;
    +    },
    +
    +    /**
    +     * 清除单独的一个层
    +     * @param {number} zlevel
    +     */
    +    clearLayer: function (zlevel) {
    +        var layer = this._layers[zlevel];
    +        if (layer) {
    +            layer.clear();
    +        }
    +    },
    +
    +    /**
    +     * 释放
    +     */
    +    dispose: function () {
    +        this.root.innerHTML = '';
    +
    +        this.root =
    +        this.storage =
    +
    +        this._domRoot =
    +        this._layers = null;
    +    },
    +
    +    /**
    +     * Get canvas which has all thing rendered
    +     * @param {Object} opts
    +     * @param {string} [opts.backgroundColor]
    +     * @param {number} [opts.pixelRatio]
    +     */
    +    getRenderedCanvas: function (opts) {
    +        opts = opts || {};
    +        if (this._singleCanvas) {
    +            return this._layers[0].dom;
    +        }
    +
    +        var imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr);
    +        imageLayer.initContext();
    +
    +        imageLayer.clearColor = opts.backgroundColor;
    +        imageLayer.clear();
    +
    +        var displayList = this.storage.getDisplayList(true);
    +
    +        var scope = {};
    +        var zlevel;
    +
    +        var self = this;
    +        function findAndDrawOtherLayer(smaller, larger) {
    +            var zlevelList = self._zlevelList;
    +            if (smaller == null) {
    +                smaller = -Infinity;
    +            }
    +            var intermediateLayer;
    +            for (var i = 0; i < zlevelList.length; i++) {
    +                var z = zlevelList[i];
    +                var layer = self._layers[z];
    +                if (!layer.__builtin__ && z > smaller && z < larger) {
    +                    intermediateLayer = layer;
    +                    break;
    +                }
    +            }
    +            if (intermediateLayer && intermediateLayer.renderToCanvas) {
    +                imageLayer.ctx.save();
    +                intermediateLayer.renderToCanvas(imageLayer.ctx);
    +                imageLayer.ctx.restore();
    +            }
    +        }
    +        for (var i = 0; i < displayList.length; i++) {
    +            var el = displayList[i];
    +
    +            if (el.zlevel !== zlevel) {
    +                findAndDrawOtherLayer(zlevel, el.zlevel);
    +                zlevel = el.zlevel;
    +            }
    +            this._doPaintEl(el, imageLayer, true, scope);
    +        }
    +
    +        findAndDrawOtherLayer(zlevel, Infinity);
    +
    +        return imageLayer.dom;
    +    },
    +    /**
    +     * 获取绘图区域宽度
    +     */
    +    getWidth: function () {
    +        return this._width;
    +    },
    +
    +    /**
    +     * 获取绘图区域高度
    +     */
    +    getHeight: function () {
    +        return this._height;
    +    },
    +
    +    _getSize: function (whIdx) {
    +        var opts = this._opts;
    +        var wh = ['width', 'height'][whIdx];
    +        var cwh = ['clientWidth', 'clientHeight'][whIdx];
    +        var plt = ['paddingLeft', 'paddingTop'][whIdx];
    +        var prb = ['paddingRight', 'paddingBottom'][whIdx];
    +
    +        if (opts[wh] != null && opts[wh] !== 'auto') {
    +            return parseFloat(opts[wh]);
    +        }
    +
    +        var root = this.root;
    +        // IE8 does not support getComputedStyle, but it use VML.
    +        var stl = document.defaultView.getComputedStyle(root);
    +
    +        return (
    +            (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))
    +            - (parseInt10(stl[plt]) || 0)
    +            - (parseInt10(stl[prb]) || 0)
    +        ) | 0;
    +    },
    +
    +    pathToImage: function (path, dpr) {
    +        dpr = dpr || this.dpr;
    +
    +        var canvas = document.createElement('canvas');
    +        var ctx = canvas.getContext('2d');
    +        var rect = path.getBoundingRect();
    +        var style = path.style;
    +        var shadowBlurSize = style.shadowBlur;
    +        var shadowOffsetX = style.shadowOffsetX;
    +        var shadowOffsetY = style.shadowOffsetY;
    +        var lineWidth = style.hasStroke() ? style.lineWidth : 0;
    +
    +        var leftMargin = Math.max(lineWidth / 2, -shadowOffsetX + shadowBlurSize);
    +        var rightMargin = Math.max(lineWidth / 2, shadowOffsetX + shadowBlurSize);
    +        var topMargin = Math.max(lineWidth / 2, -shadowOffsetY + shadowBlurSize);
    +        var bottomMargin = Math.max(lineWidth / 2, shadowOffsetY + shadowBlurSize);
    +        var width = rect.width + leftMargin + rightMargin;
    +        var height = rect.height + topMargin + bottomMargin;
    +
    +        canvas.width = width * dpr;
    +        canvas.height = height * dpr;
    +
    +        ctx.scale(dpr, dpr);
    +        ctx.clearRect(0, 0, width, height);
    +        ctx.dpr = dpr;
    +
    +        var pathTransform = {
    +            position: path.position,
    +            rotation: path.rotation,
    +            scale: path.scale
    +        };
    +        path.position = [leftMargin - rect.x, topMargin - rect.y];
    +        path.rotation = 0;
    +        path.scale = [1, 1];
    +        path.updateTransform();
    +        if (path) {
    +            path.brush(ctx);
    +        }
    +
    +        var ImageShape = ZImage;
    +        var imgShape = new ImageShape({
    +            style: {
    +                x: 0,
    +                y: 0,
    +                image: canvas
    +            }
    +        });
    +
    +        if (pathTransform.position != null) {
    +            imgShape.position = path.position = pathTransform.position;
    +        }
    +
    +        if (pathTransform.rotation != null) {
    +            imgShape.rotation = path.rotation = pathTransform.rotation;
    +        }
    +
    +        if (pathTransform.scale != null) {
    +            imgShape.scale = path.scale = pathTransform.scale;
    +        }
    +
    +        return imgShape;
    +    }
    +};
    +
    +/**
    + * 事件辅助类
    + * @module zrender/core/event
    + * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + */
    +
    +var isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;
    +
    +var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
    +
    +function getBoundingClientRect(el) {
    +    // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect
    +    return el.getBoundingClientRect ? el.getBoundingClientRect() : {left: 0, top: 0};
    +}
    +
    +// `calculate` is optional, default false
    +function clientToLocal(el, e, out, calculate) {
    +    out = out || {};
    +
    +    // According to the W3C Working Draft, offsetX and offsetY should be relative
    +    // to the padding edge of the target element. The only browser using this convention
    +    // is IE. Webkit uses the border edge, Opera uses the content edge, and FireFox does
    +    // not support the properties.
    +    // (see http://www.jacklmoore.com/notes/mouse-position/)
    +    // In zr painter.dom, padding edge equals to border edge.
    +
    +    // FIXME
    +    // When mousemove event triggered on ec tooltip, target is not zr painter.dom, and
    +    // offsetX/Y is relative to e.target, where the calculation of zrX/Y via offsetX/Y
    +    // is too complex. So css-transfrom dont support in this case temporarily.
    +    if (calculate || !env$1.canvasSupported) {
    +        defaultGetZrXY(el, e, out);
    +    }
    +    // Caution: In FireFox, layerX/layerY Mouse position relative to the closest positioned
    +    // ancestor element, so we should make sure el is positioned (e.g., not position:static).
    +    // BTW1, Webkit don't return the same results as FF in non-simple cases (like add
    +    // zoom-factor, overflow / opacity layers, transforms ...)
    +    // BTW2, (ev.offsetY || ev.pageY - $(ev.target).offset().top) is not correct in preserve-3d.
    +    // <https://bugs.jquery.com/ticket/8523#comment:14>
    +    // BTW3, In ff, offsetX/offsetY is always 0.
    +    else if (env$1.browser.firefox && e.layerX != null && e.layerX !== e.offsetX) {
    +        out.zrX = e.layerX;
    +        out.zrY = e.layerY;
    +    }
    +    // For IE6+, chrome, safari, opera. (When will ff support offsetX?)
    +    else if (e.offsetX != null) {
    +        out.zrX = e.offsetX;
    +        out.zrY = e.offsetY;
    +    }
    +    // For some other device, e.g., IOS safari.
    +    else {
    +        defaultGetZrXY(el, e, out);
    +    }
    +
    +    return out;
    +}
    +
    +function defaultGetZrXY(el, e, out) {
    +    // This well-known method below does not support css transform.
    +    var box = getBoundingClientRect(el);
    +    out.zrX = e.clientX - box.left;
    +    out.zrY = e.clientY - box.top;
    +}
    +
    +/**
    + * 如果存在第三方嵌入的一些dom触发的事件,或touch事件,需要转换一下事件坐标.
    + * `calculate` is optional, default false.
    + */
    +function normalizeEvent(el, e, calculate) {
    +
    +    e = e || window.event;
    +
    +    if (e.zrX != null) {
    +        return e;
    +    }
    +
    +    var eventType = e.type;
    +    var isTouch = eventType && eventType.indexOf('touch') >= 0;
    +
    +    if (!isTouch) {
    +        clientToLocal(el, e, e, calculate);
    +        e.zrDelta = (e.wheelDelta) ? e.wheelDelta / 120 : -(e.detail || 0) / 3;
    +    }
    +    else {
    +        var touch = eventType != 'touchend'
    +            ? e.targetTouches[0]
    +            : e.changedTouches[0];
    +        touch && clientToLocal(el, touch, e, calculate);
    +    }
    +
    +    // Add which for click: 1 === left; 2 === middle; 3 === right; otherwise: 0;
    +    // See jQuery: https://github.com/jquery/jquery/blob/master/src/event.js
    +    // If e.which has been defined, if may be readonly,
    +    // see: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which
    +    var button = e.button;
    +    if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {
    +        e.which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)));
    +    }
    +
    +    return e;
    +}
    +
    +function addEventListener(el, name, handler) {
    +    if (isDomLevel2) {
    +        el.addEventListener(name, handler);
    +    }
    +    else {
    +        el.attachEvent('on' + name, handler);
    +    }
    +}
    +
    +function removeEventListener(el, name, handler) {
    +    if (isDomLevel2) {
    +        el.removeEventListener(name, handler);
    +    }
    +    else {
    +        el.detachEvent('on' + name, handler);
    +    }
    +}
    +
    +/**
    + * preventDefault and stopPropagation.
    + * Notice: do not do that in zrender. Upper application
    + * do that if necessary.
    + *
    + * @memberOf module:zrender/core/event
    + * @method
    + * @param {Event} e : event对象
    + */
    +var stop = isDomLevel2
    +    ? function (e) {
    +        e.preventDefault();
    +        e.stopPropagation();
    +        e.cancelBubble = true;
    +    }
    +    : function (e) {
    +        e.returnValue = false;
    +        e.cancelBubble = true;
    +    };
    +
    +function notLeftMouse(e) {
    +    // If e.which is undefined, considered as left mouse event.
    +    return e.which > 1;
    +}
    +
    +/**
    + * 动画主类, 调度和管理所有动画控制器
    + *
    + * @module zrender/animation/Animation
    + * @author pissang(https://github.com/pissang)
    + */
    +// TODO Additive animation
    +// http://iosoteric.com/additive-animations-animatewithduration-in-ios-8/
    +// https://developer.apple.com/videos/wwdc2014/#236
    +
    +/**
    + * @typedef {Object} IZRenderStage
    + * @property {Function} update
    + */
    +
    +/**
    + * @alias module:zrender/animation/Animation
    + * @constructor
    + * @param {Object} [options]
    + * @param {Function} [options.onframe]
    + * @param {IZRenderStage} [options.stage]
    + * @example
    + *     var animation = new Animation();
    + *     var obj = {
    + *         x: 100,
    + *         y: 100
    + *     };
    + *     animation.animate(node.position)
    + *         .when(1000, {
    + *             x: 500,
    + *             y: 500
    + *         })
    + *         .when(2000, {
    + *             x: 100,
    + *             y: 100
    + *         })
    + *         .start('spline');
    + */
    +var Animation = function (options) {
    +
    +    options = options || {};
    +
    +    this.stage = options.stage || {};
    +
    +    this.onframe = options.onframe || function() {};
    +
    +    // private properties
    +    this._clips = [];
    +
    +    this._running = false;
    +
    +    this._time;
    +
    +    this._pausedTime;
    +
    +    this._pauseStart;
    +
    +    this._paused = false;
    +
    +    Eventful.call(this);
    +};
    +
    +Animation.prototype = {
    +
    +    constructor: Animation,
    +    /**
    +     * 添加 clip
    +     * @param {module:zrender/animation/Clip} clip
    +     */
    +    addClip: function (clip) {
    +        this._clips.push(clip);
    +    },
    +    /**
    +     * 添加 animator
    +     * @param {module:zrender/animation/Animator} animator
    +     */
    +    addAnimator: function (animator) {
    +        animator.animation = this;
    +        var clips = animator.getClips();
    +        for (var i = 0; i < clips.length; i++) {
    +            this.addClip(clips[i]);
    +        }
    +    },
    +    /**
    +     * 删除动画片段
    +     * @param {module:zrender/animation/Clip} clip
    +     */
    +    removeClip: function(clip) {
    +        var idx = indexOf(this._clips, clip);
    +        if (idx >= 0) {
    +            this._clips.splice(idx, 1);
    +        }
    +    },
    +
    +    /**
    +     * 删除动画片段
    +     * @param {module:zrender/animation/Animator} animator
    +     */
    +    removeAnimator: function (animator) {
    +        var clips = animator.getClips();
    +        for (var i = 0; i < clips.length; i++) {
    +            this.removeClip(clips[i]);
    +        }
    +        animator.animation = null;
    +    },
    +
    +    _update: function() {
    +
    +        var time = new Date().getTime() - this._pausedTime;
    +        var delta = time - this._time;
    +        var clips = this._clips;
    +        var len = clips.length;
    +
    +        var deferredEvents = [];
    +        var deferredClips = [];
    +        for (var i = 0; i < len; i++) {
    +            var clip = clips[i];
    +            var e = clip.step(time, delta);
    +            // Throw out the events need to be called after
    +            // stage.update, like destroy
    +            if (e) {
    +                deferredEvents.push(e);
    +                deferredClips.push(clip);
    +            }
    +        }
    +
    +        // Remove the finished clip
    +        for (var i = 0; i < len;) {
    +            if (clips[i]._needsRemove) {
    +                clips[i] = clips[len - 1];
    +                clips.pop();
    +                len--;
    +            }
    +            else {
    +                i++;
    +            }
    +        }
    +
    +        len = deferredEvents.length;
    +        for (var i = 0; i < len; i++) {
    +            deferredClips[i].fire(deferredEvents[i]);
    +        }
    +
    +        this._time = time;
    +
    +        this.onframe(delta);
    +
    +        this.trigger('frame', delta);
    +
    +        if (this.stage.update) {
    +            this.stage.update();
    +        }
    +    },
    +
    +    _startLoop: function () {
    +        var self = this;
    +
    +        this._running = true;
    +
    +        function step() {
    +            if (self._running) {
    +
    +                requestAnimationFrame(step);
    +
    +                !self._paused && self._update();
    +            }
    +        }
    +
    +        requestAnimationFrame(step);
    +    },
    +
    +    /**
    +     * 开始运行动画
    +     */
    +    start: function () {
    +
    +        this._time = new Date().getTime();
    +        this._pausedTime = 0;
    +
    +        this._startLoop();
    +    },
    +    /**
    +     * 停止运行动画
    +     */
    +    stop: function () {
    +        this._running = false;
    +    },
    +
    +    /**
    +     * Pause
    +     */
    +    pause: function () {
    +        if (!this._paused) {
    +            this._pauseStart = new Date().getTime();
    +            this._paused = true;
    +        }
    +    },
    +
    +    /**
    +     * Resume
    +     */
    +    resume: function () {
    +        if (this._paused) {
    +            this._pausedTime += (new Date().getTime()) - this._pauseStart;
    +            this._paused = false;
    +        }
    +    },
    +
    +    /**
    +     * 清除所有动画片段
    +     */
    +    clear: function () {
    +        this._clips = [];
    +    },
    +    /**
    +     * 对一个目标创建一个animator对象,可以指定目标中的属性使用动画
    +     * @param  {Object} target
    +     * @param  {Object} options
    +     * @param  {boolean} [options.loop=false] 是否循环播放动画
    +     * @param  {Function} [options.getter=null]
    +     *         如果指定getter函数,会通过getter函数取属性值
    +     * @param  {Function} [options.setter=null]
    +     *         如果指定setter函数,会通过setter函数设置属性值
    +     * @return {module:zrender/animation/Animation~Animator}
    +     */
    +    // TODO Gap
    +    animate: function (target, options) {
    +        options = options || {};
    +
    +        var animator = new Animator(
    +            target,
    +            options.loop,
    +            options.getter,
    +            options.setter
    +        );
    +
    +        this.addAnimator(animator);
    +
    +        return animator;
    +    }
    +};
    +
    +mixin(Animation, Eventful);
    +
    +/**
    + * Only implements needed gestures for mobile.
    + */
    +
    +var GestureMgr = function () {
    +
    +    /**
    +     * @private
    +     * @type {Array.<Object>}
    +     */
    +    this._track = [];
    +};
    +
    +GestureMgr.prototype = {
    +
    +    constructor: GestureMgr,
    +
    +    recognize: function (event, target, root) {
    +        this._doTrack(event, target, root);
    +        return this._recognize(event);
    +    },
    +
    +    clear: function () {
    +        this._track.length = 0;
    +        return this;
    +    },
    +
    +    _doTrack: function (event, target, root) {
    +        var touches = event.touches;
    +
    +        if (!touches) {
    +            return;
    +        }
    +
    +        var trackItem = {
    +            points: [],
    +            touches: [],
    +            target: target,
    +            event: event
    +        };
    +
    +        for (var i = 0, len = touches.length; i < len; i++) {
    +            var touch = touches[i];
    +            var pos = clientToLocal(root, touch, {});
    +            trackItem.points.push([pos.zrX, pos.zrY]);
    +            trackItem.touches.push(touch);
    +        }
    +
    +        this._track.push(trackItem);
    +    },
    +
    +    _recognize: function (event) {
    +        for (var eventName in recognizers) {
    +            if (recognizers.hasOwnProperty(eventName)) {
    +                var gestureInfo = recognizers[eventName](this._track, event);
    +                if (gestureInfo) {
    +                    return gestureInfo;
    +                }
    +            }
    +        }
    +    }
    +};
    +
    +function dist$1(pointPair) {
    +    var dx = pointPair[1][0] - pointPair[0][0];
    +    var dy = pointPair[1][1] - pointPair[0][1];
    +
    +    return Math.sqrt(dx * dx + dy * dy);
    +}
    +
    +function center(pointPair) {
    +    return [
    +        (pointPair[0][0] + pointPair[1][0]) / 2,
    +        (pointPair[0][1] + pointPair[1][1]) / 2
    +    ];
    +}
    +
    +var recognizers = {
    +
    +    pinch: function (track, event) {
    +        var trackLen = track.length;
    +
    +        if (!trackLen) {
    +            return;
    +        }
    +
    +        var pinchEnd = (track[trackLen - 1] || {}).points;
    +        var pinchPre = (track[trackLen - 2] || {}).points || pinchEnd;
    +
    +        if (pinchPre
    +            && pinchPre.length > 1
    +            && pinchEnd
    +            && pinchEnd.length > 1
    +        ) {
    +            var pinchScale = dist$1(pinchEnd) / dist$1(pinchPre);
    +            !isFinite(pinchScale) && (pinchScale = 1);
    +
    +            event.pinchScale = pinchScale;
    +
    +            var pinchCenter = center(pinchEnd);
    +            event.pinchX = pinchCenter[0];
    +            event.pinchY = pinchCenter[1];
    +
    +            return {
    +                type: 'pinch',
    +                target: track[0].target,
    +                event: event
    +            };
    +        }
    +    }
    +
    +    // Only pinch currently.
    +};
    +
    +var TOUCH_CLICK_DELAY = 300;
    +
    +var mouseHandlerNames = [
    +    'click', 'dblclick', 'mousewheel', 'mouseout',
    +    'mouseup', 'mousedown', 'mousemove', 'contextmenu'
    +];
    +
    +var touchHandlerNames = [
    +    'touchstart', 'touchend', 'touchmove'
    +];
    +
    +var pointerEventNames = {
    +    pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1
    +};
    +
    +var pointerHandlerNames = map(mouseHandlerNames, function (name) {
    +    var nm = name.replace('mouse', 'pointer');
    +    return pointerEventNames[nm] ? nm : name;
    +});
    +
    +function eventNameFix(name) {
    +    return (name === 'mousewheel' && env$1.browser.firefox) ? 'DOMMouseScroll' : name;
    +}
    +
    +function processGesture(proxy, event, stage) {
    +    var gestureMgr = proxy._gestureMgr;
    +
    +    stage === 'start' && gestureMgr.clear();
    +
    +    var gestureInfo = gestureMgr.recognize(
    +        event,
    +        proxy.handler.findHover(event.zrX, event.zrY, null).target,
    +        proxy.dom
    +    );
    +
    +    stage === 'end' && gestureMgr.clear();
    +
    +    // Do not do any preventDefault here. Upper application do that if necessary.
    +    if (gestureInfo) {
    +        var type = gestureInfo.type;
    +        event.gestureEvent = type;
    +
    +        proxy.handler.dispatchToElement({target: gestureInfo.target}, type, gestureInfo.event);
    +    }
    +}
    +
    +// function onMSGestureChange(proxy, event) {
    +//     if (event.translationX || event.translationY) {
    +//         // mousemove is carried by MSGesture to reduce the sensitivity.
    +//         proxy.handler.dispatchToElement(event.target, 'mousemove', event);
    +//     }
    +//     if (event.scale !== 1) {
    +//         event.pinchX = event.offsetX;
    +//         event.pinchY = event.offsetY;
    +//         event.pinchScale = event.scale;
    +//         proxy.handler.dispatchToElement(event.target, 'pinch', event);
    +//     }
    +// }
    +
    +/**
    + * Prevent mouse event from being dispatched after Touch Events action
    + * @see <https://github.com/deltakosh/handjs/blob/master/src/hand.base.js>
    + * 1. Mobile browsers dispatch mouse events 300ms after touchend.
    + * 2. Chrome for Android dispatch mousedown for long-touch about 650ms
    + * Result: Blocking Mouse Events for 700ms.
    + */
    +function setTouchTimer(instance) {
    +    instance._touching = true;
    +    clearTimeout(instance._touchTimer);
    +    instance._touchTimer = setTimeout(function () {
    +        instance._touching = false;
    +    }, 700);
    +}
    +
    +
    +var domHandlers = {
    +    /**
    +     * Mouse move handler
    +     * @inner
    +     * @param {Event} event
    +     */
    +    mousemove: function (event) {
    +        event = normalizeEvent(this.dom, event);
    +
    +        this.trigger('mousemove', event);
    +    },
    +
    +    /**
    +     * Mouse out handler
    +     * @inner
    +     * @param {Event} event
    +     */
    +    mouseout: function (event) {
    +        event = normalizeEvent(this.dom, event);
    +
    +        var element = event.toElement || event.relatedTarget;
    +        if (element != this.dom) {
    +            while (element && element.nodeType != 9) {
    +                // 忽略包含在root中的dom引起的mouseOut
    +                if (element === this.dom) {
    +                    return;
    +                }
    +
    +                element = element.parentNode;
    +            }
    +        }
    +
    +        this.trigger('mouseout', event);
    +    },
    +
    +    /**
    +     * Touch开始响应函数
    +     * @inner
    +     * @param {Event} event
    +     */
    +    touchstart: function (event) {
    +        // Default mouse behaviour should not be disabled here.
    +        // For example, page may needs to be slided.
    +        event = normalizeEvent(this.dom, event);
    +
    +        // Mark touch, which is useful in distinguish touch and
    +        // mouse event in upper applicatoin.
    +        event.zrByTouch = true;
    +
    +        this._lastTouchMoment = new Date();
    +
    +        processGesture(this, event, 'start');
    +
    +        // In touch device, trigger `mousemove`(`mouseover`) should
    +        // be triggered, and must before `mousedown` triggered.
    +        domHandlers.mousemove.call(this, event);
    +
    +        domHandlers.mousedown.call(this, event);
    +
    +        setTouchTimer(this);
    +    },
    +
    +    /**
    +     * Touch移动响应函数
    +     * @inner
    +     * @param {Event} event
    +     */
    +    touchmove: function (event) {
    +
    +        event = normalizeEvent(this.dom, event);
    +
    +        // Mark touch, which is useful in distinguish touch and
    +        // mouse event in upper applicatoin.
    +        event.zrByTouch = true;
    +
    +        processGesture(this, event, 'change');
    +
    +        // Mouse move should always be triggered no matter whether
    +        // there is gestrue event, because mouse move and pinch may
    +        // be used at the same time.
    +        domHandlers.mousemove.call(this, event);
    +
    +        setTouchTimer(this);
    +    },
    +
    +    /**
    +     * Touch结束响应函数
    +     * @inner
    +     * @param {Event} event
    +     */
    +    touchend: function (event) {
    +
    +        event = normalizeEvent(this.dom, event);
    +
    +        // Mark touch, which is useful in distinguish touch and
    +        // mouse event in upper applicatoin.
    +        event.zrByTouch = true;
    +
    +        processGesture(this, event, 'end');
    +
    +        domHandlers.mouseup.call(this, event);
    +
    +        // Do not trigger `mouseout` here, in spite of `mousemove`(`mouseover`) is
    +        // triggered in `touchstart`. This seems to be illogical, but by this mechanism,
    +        // we can conveniently implement "hover style" in both PC and touch device just
    +        // by listening to `mouseover` to add "hover style" and listening to `mouseout`
    +        // to remove "hover style" on an element, without any additional code for
    +        // compatibility. (`mouseout` will not be triggered in `touchend`, so "hover
    +        // style" will remain for user view)
    +
    +        // click event should always be triggered no matter whether
    +        // there is gestrue event. System click can not be prevented.
    +        if (+new Date() - this._lastTouchMoment < TOUCH_CLICK_DELAY) {
    +            domHandlers.click.call(this, event);
    +        }
    +
    +        setTouchTimer(this);
    +    },
    +
    +    pointerdown: function (event) {
    +        domHandlers.mousedown.call(this, event);
    +
    +        // if (useMSGuesture(this, event)) {
    +        //     this._msGesture.addPointer(event.pointerId);
    +        // }
    +    },
    +
    +    pointermove: function (event) {
    +        // FIXME
    +        // pointermove is so sensitive that it always triggered when
    +        // tap(click) on touch screen, which affect some judgement in
    +        // upper application. So, we dont support mousemove on MS touch
    +        // device yet.
    +        if (!isPointerFromTouch(event)) {
    +            domHandlers.mousemove.call(this, event);
    +        }
    +    },
    +
    +    pointerup: function (event) {
    +        domHandlers.mouseup.call(this, event);
    +    },
    +
    +    pointerout: function (event) {
    +        // pointerout will be triggered when tap on touch screen
    +        // (IE11+/Edge on MS Surface) after click event triggered,
    +        // which is inconsistent with the mousout behavior we defined
    +        // in touchend. So we unify them.
    +        // (check domHandlers.touchend for detailed explanation)
    +        if (!isPointerFromTouch(event)) {
    +            domHandlers.mouseout.call(this, event);
    +        }
    +    }
    +};
    +
    +function isPointerFromTouch(event) {
    +    var pointerType = event.pointerType;
    +    return pointerType === 'pen' || pointerType === 'touch';
    +}
    +
    +// function useMSGuesture(handlerProxy, event) {
    +//     return isPointerFromTouch(event) && !!handlerProxy._msGesture;
    +// }
    +
    +// Common handlers
    +each$1(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {
    +    domHandlers[name] = function (event) {
    +        event = normalizeEvent(this.dom, event);
    +        this.trigger(name, event);
    +    };
    +});
    +
    +/**
    + * 为控制类实例初始化dom 事件处理函数
    + *
    + * @inner
    + * @param {module:zrender/Handler} instance 控制类实例
    + */
    +function initDomHandler(instance) {
    +    each$1(touchHandlerNames, function (name) {
    +        instance._handlers[name] = bind(domHandlers[name], instance);
    +    });
    +
    +    each$1(pointerHandlerNames, function (name) {
    +        instance._handlers[name] = bind(domHandlers[name], instance);
    +    });
    +
    +    each$1(mouseHandlerNames, function (name) {
    +        instance._handlers[name] = makeMouseHandler(domHandlers[name], instance);
    +    });
    +
    +    function makeMouseHandler(fn, instance) {
    +        return function () {
    +            if (instance._touching) {
    +                return;
    +            }
    +            return fn.apply(instance, arguments);
    +        };
    +    }
    +}
    +
    +
    +function HandlerDomProxy(dom) {
    +    Eventful.call(this);
    +
    +    this.dom = dom;
    +
    +    /**
    +     * @private
    +     * @type {boolean}
    +     */
    +    this._touching = false;
    +
    +    /**
    +     * @private
    +     * @type {number}
    +     */
    +    this._touchTimer;
    +
    +    /**
    +     * @private
    +     * @type {module:zrender/core/GestureMgr}
    +     */
    +    this._gestureMgr = new GestureMgr();
    +
    +    this._handlers = {};
    +
    +    initDomHandler(this);
    +
    +    if (env$1.pointerEventsSupported) { // Only IE11+/Edge
    +        // 1. On devices that both enable touch and mouse (e.g., MS Surface and lenovo X240),
    +        // IE11+/Edge do not trigger touch event, but trigger pointer event and mouse event
    +        // at the same time.
    +        // 2. On MS Surface, it probablely only trigger mousedown but no mouseup when tap on
    +        // screen, which do not occurs in pointer event.
    +        // So we use pointer event to both detect touch gesture and mouse behavior.
    +        mountHandlers(pointerHandlerNames, this);
    +
    +        // FIXME
    +        // Note: MS Gesture require CSS touch-action set. But touch-action is not reliable,
    +        // which does not prevent defuault behavior occasionally (which may cause view port
    +        // zoomed in but use can not zoom it back). And event.preventDefault() does not work.
    +        // So we have to not to use MSGesture and not to support touchmove and pinch on MS
    +        // touch screen. And we only support click behavior on MS touch screen now.
    +
    +        // MS Gesture Event is only supported on IE11+/Edge and on Windows 8+.
    +        // We dont support touch on IE on win7.
    +        // See <https://msdn.microsoft.com/en-us/library/dn433243(v=vs.85).aspx>
    +        // if (typeof MSGesture === 'function') {
    +        //     (this._msGesture = new MSGesture()).target = dom; // jshint ignore:line
    +        //     dom.addEventListener('MSGestureChange', onMSGestureChange);
    +        // }
    +    }
    +    else {
    +        if (env$1.touchEventsSupported) {
    +            mountHandlers(touchHandlerNames, this);
    +            // Handler of 'mouseout' event is needed in touch mode, which will be mounted below.
    +            // addEventListener(root, 'mouseout', this._mouseoutHandler);
    +        }
    +
    +        // 1. Considering some devices that both enable touch and mouse event (like on MS Surface
    +        // and lenovo X240, @see #2350), we make mouse event be always listened, otherwise
    +        // mouse event can not be handle in those devices.
    +        // 2. On MS Surface, Chrome will trigger both touch event and mouse event. How to prevent
    +        // mouseevent after touch event triggered, see `setTouchTimer`.
    +        mountHandlers(mouseHandlerNames, this);
    +    }
    +
    +    function mountHandlers(handlerNames, instance) {
    +        each$1(handlerNames, function (name) {
    +            addEventListener(dom, eventNameFix(name), instance._handlers[name]);
    +        }, instance);
    +    }
    +}
    +
    +var handlerDomProxyProto = HandlerDomProxy.prototype;
    +handlerDomProxyProto.dispose = function () {
    +    var handlerNames = mouseHandlerNames.concat(touchHandlerNames);
    +
    +    for (var i = 0; i < handlerNames.length; i++) {
    +        var name = handlerNames[i];
    +        removeEventListener(this.dom, eventNameFix(name), this._handlers[name]);
    +    }
    +};
    +
    +handlerDomProxyProto.setCursor = function (cursorStyle) {
    +    this.dom.style.cursor = cursorStyle || 'default';
    +};
    +
    +mixin(HandlerDomProxy, Eventful);
    +
    +/*!
    +* ZRender, a high performance 2d drawing library.
    +*
    +* Copyright (c) 2013, Baidu Inc.
    +* All rights reserved.
    +*
    +* LICENSE
    +* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
    +*/
    +
    +var useVML = !env$1.canvasSupported;
    +
    +var painterCtors = {
    +    canvas: Painter
    +};
    +
    +var instances$1 = {};    // ZRender实例map索引
    +
    +/**
    + * @type {string}
    + */
    +var version$1 = '3.7.3';
    +
    +/**
    + * Initializing a zrender instance
    + * @param {HTMLElement} dom
    + * @param {Object} opts
    + * @param {string} [opts.renderer='canvas'] 'canvas' or 'svg'
    + * @param {number} [opts.devicePixelRatio]
    + * @param {number|string} [opts.width] Can be 'auto' (the same as null/undefined)
    + * @param {number|string} [opts.height] Can be 'auto' (the same as null/undefined)
    + * @return {module:zrender/ZRender}
    + */
    +function init$1(dom, opts) {
    +    var zr = new ZRender(guid(), dom, opts);
    +    instances$1[zr.id] = zr;
    +    return zr;
    +}
    +
    +/**
    + * Dispose zrender instance
    + * @param {module:zrender/ZRender} zr
    + */
    +function dispose$1(zr) {
    +    if (zr) {
    +        zr.dispose();
    +    }
    +    else {
    +        for (var key in instances$1) {
    +            if (instances$1.hasOwnProperty(key)) {
    +                instances$1[key].dispose();
    +            }
    +        }
    +        instances$1 = {};
    +    }
    +
    +    return this;
    +}
    +
    +/**
    + * Get zrender instance by id
    + * @param {string} id zrender instance id
    + * @return {module:zrender/ZRender}
    + */
    +function getInstance(id) {
    +    return instances$1[id];
    +}
    +
    +function registerPainter(name, Ctor) {
    +    painterCtors[name] = Ctor;
    +}
    +
    +function delInstance(id) {
    +    delete instances$1[id];
    +}
    +
    +/**
    + * @module zrender/ZRender
    + */
    +/**
    + * @constructor
    + * @alias module:zrender/ZRender
    + * @param {string} id
    + * @param {HTMLElement} dom
    + * @param {Object} opts
    + * @param {string} [opts.renderer='canvas'] 'canvas' or 'svg'
    + * @param {number} [opts.devicePixelRatio]
    + * @param {number} [opts.width] Can be 'auto' (the same as null/undefined)
    + * @param {number} [opts.height] Can be 'auto' (the same as null/undefined)
    + */
    +var ZRender = function (id, dom, opts) {
    +
    +    opts = opts || {};
    +
    +    /**
    +     * @type {HTMLDomElement}
    +     */
    +    this.dom = dom;
    +
    +    /**
    +     * @type {string}
    +     */
    +    this.id = id;
    +
    +    var self = this;
    +    var storage = new Storage();
    +
    +    var rendererType = opts.renderer;
    +    // TODO WebGL
    +    if (useVML) {
    +        if (!painterCtors.vml) {
    +            throw new Error('You need to require \'zrender/vml/vml\' to support IE8');
    +        }
    +        rendererType = 'vml';
    +    }
    +    else if (!rendererType || !painterCtors[rendererType]) {
    +        rendererType = 'canvas';
    +    }
    +    var painter = new painterCtors[rendererType](dom, storage, opts);
    +
    +    this.storage = storage;
    +    this.painter = painter;
    +
    +    var handerProxy = !env$1.node ? new HandlerDomProxy(painter.getViewportRoot()) : null;
    +    this.handler = new Handler(storage, painter, handerProxy, painter.root);
    +
    +    /**
    +     * @type {module:zrender/animation/Animation}
    +     */
    +    this.animation = new Animation({
    +        stage: {
    +            update: bind(this.flush, this)
    +        }
    +    });
    +    this.animation.start();
    +
    +    /**
    +     * @type {boolean}
    +     * @private
    +     */
    +    this._needsRefresh;
    +
    +    // 修改 storage.delFromStorage, 每次删除元素之前删除动画
    +    // FIXME 有点ugly
    +    var oldDelFromStorage = storage.delFromStorage;
    +    var oldAddToStorage = storage.addToStorage;
    +
    +    storage.delFromStorage = function (el) {
    +        oldDelFromStorage.call(storage, el);
    +
    +        el && el.removeSelfFromZr(self);
    +    };
    +
    +    storage.addToStorage = function (el) {
    +        oldAddToStorage.call(storage, el);
    +
    +        el.addSelfToZr(self);
    +    };
    +};
    +
    +ZRender.prototype = {
    +
    +    constructor: ZRender,
    +    /**
    +     * 获取实例唯一标识
    +     * @return {string}
    +     */
    +    getId: function () {
    +        return this.id;
    +    },
    +
    +    /**
    +     * 添加元素
    +     * @param  {module:zrender/Element} el
    +     */
    +    add: function (el) {
    +        this.storage.addRoot(el);
    +        this._needsRefresh = true;
    +    },
    +
    +    /**
    +     * 删除元素
    +     * @param  {module:zrender/Element} el
    +     */
    +    remove: function (el) {
    +        this.storage.delRoot(el);
    +        this._needsRefresh = true;
    +    },
    +
    +    /**
    +     * Change configuration of layer
    +     * @param {string} zLevel
    +     * @param {Object} config
    +     * @param {string} [config.clearColor=0] Clear color
    +     * @param {string} [config.motionBlur=false] If enable motion blur
    +     * @param {number} [config.lastFrameAlpha=0.7] Motion blur factor. Larger value cause longer trailer
    +    */
    +    configLayer: function (zLevel, config) {
    +        this.painter.configLayer(zLevel, config);
    +        this._needsRefresh = true;
    +    },
    +
    +    /**
    +     * Repaint the canvas immediately
    +     */
    +    refreshImmediately: function () {
    +        // var start = new Date();
    +        // Clear needsRefresh ahead to avoid something wrong happens in refresh
    +        // Or it will cause zrender refreshes again and again.
    +        this._needsRefresh = false;
    +        this.painter.refresh();
    +        /**
    +         * Avoid trigger zr.refresh in Element#beforeUpdate hook
    +         */
    +        this._needsRefresh = false;
    +        // var end = new Date();
    +
    +        // var log = document.getElementById('log');
    +        // if (log) {
    +        //     log.innerHTML = log.innerHTML + '<br>' + (end - start);
    +        // }
    +    },
    +
    +    /**
    +     * Mark and repaint the canvas in the next frame of browser
    +     */
    +    refresh: function() {
    +        this._needsRefresh = true;
    +    },
    +
    +    /**
    +     * Perform all refresh
    +     */
    +    flush: function () {
    +        if (this._needsRefresh) {
    +            this.refreshImmediately();
    +        }
    +        if (this._needsRefreshHover) {
    +            this.refreshHoverImmediately();
    +        }
    +    },
    +
    +    /**
    +     * Add element to hover layer
    +     * @param  {module:zrender/Element} el
    +     * @param {Object} style
    +     */
    +    addHover: function (el, style) {
    +        if (this.painter.addHover) {
    +            this.painter.addHover(el, style);
    +            this.refreshHover();
    +        }
    +    },
    +
    +    /**
    +     * Add element from hover layer
    +     * @param  {module:zrender/Element} el
    +     */
    +    removeHover: function (el) {
    +        if (this.painter.removeHover) {
    +            this.painter.removeHover(el);
    +            this.refreshHover();
    +        }
    +    },
    +
    +    /**
    +     * Clear all hover elements in hover layer
    +     * @param  {module:zrender/Element} el
    +     */
    +    clearHover: function () {
    +        if (this.painter.clearHover) {
    +            this.painter.clearHover();
    +            this.refreshHover();
    +        }
    +    },
    +
    +    /**
    +     * Refresh hover in next frame
    +     */
    +    refreshHover: function () {
    +        this._needsRefreshHover = true;
    +    },
    +
    +    /**
    +     * Refresh hover immediately
    +     */
    +    refreshHoverImmediately: function () {
    +        this._needsRefreshHover = false;
    +        this.painter.refreshHover && this.painter.refreshHover();
    +    },
    +
    +    /**
    +     * Resize the canvas.
    +     * Should be invoked when container size is changed
    +     * @param {Object} [opts]
    +     * @param {number|string} [opts.width] Can be 'auto' (the same as null/undefined)
    +     * @param {number|string} [opts.height] Can be 'auto' (the same as null/undefined)
    +     */
    +    resize: function(opts) {
    +        opts = opts || {};
    +        this.painter.resize(opts.width, opts.height);
    +        this.handler.resize();
    +    },
    +
    +    /**
    +     * Stop and clear all animation immediately
    +     */
    +    clearAnimation: function () {
    +        this.animation.clear();
    +    },
    +
    +    /**
    +     * Get container width
    +     */
    +    getWidth: function() {
    +        return this.painter.getWidth();
    +    },
    +
    +    /**
    +     * Get container height
    +     */
    +    getHeight: function() {
    +        return this.painter.getHeight();
    +    },
    +
    +    /**
    +     * Export the canvas as Base64 URL
    +     * @param {string} type
    +     * @param {string} [backgroundColor='#fff']
    +     * @return {string} Base64 URL
    +     */
    +    // toDataURL: function(type, backgroundColor) {
    +    //     return this.painter.getRenderedCanvas({
    +    //         backgroundColor: backgroundColor
    +    //     }).toDataURL(type);
    +    // },
    +
    +    /**
    +     * Converting a path to image.
    +     * It has much better performance of drawing image rather than drawing a vector path.
    +     * @param {module:zrender/graphic/Path} e
    +     * @param {number} width
    +     * @param {number} height
    +     */
    +    pathToImage: function(e, dpr) {
    +        return this.painter.pathToImage(e, dpr);
    +    },
    +
    +    /**
    +     * Set default cursor
    +     * @param {string} [cursorStyle='default'] 例如 crosshair
    +     */
    +    setCursorStyle: function (cursorStyle) {
    +        this.handler.setCursorStyle(cursorStyle);
    +    },
    +
    +    /**
    +     * Find hovered element
    +     * @param {number} x
    +     * @param {number} y
    +     * @return {Object} {target, topTarget}
    +     */
    +    findHover: function (x, y) {
    +        return this.handler.findHover(x, y);
    +    },
    +
    +    /**
    +     * Bind event
    +     *
    +     * @param {string} eventName Event name
    +     * @param {Function} eventHandler Handler function
    +     * @param {Object} [context] Context object
    +     */
    +    on: function(eventName, eventHandler, context) {
    +        this.handler.on(eventName, eventHandler, context);
    +    },
    +
    +    /**
    +     * Unbind event
    +     * @param {string} eventName Event name
    +     * @param {Function} [eventHandler] Handler function
    +     */
    +    off: function(eventName, eventHandler) {
    +        this.handler.off(eventName, eventHandler);
    +    },
    +
    +    /**
    +     * Trigger event manually
    +     *
    +     * @param {string} eventName Event name
    +     * @param {event=} event Event object
    +     */
    +    trigger: function (eventName, event) {
    +        this.handler.trigger(eventName, event);
    +    },
    +
    +
    +    /**
    +     * Clear all objects and the canvas.
    +     */
    +    clear: function () {
    +        this.storage.delRoot();
    +        this.painter.clear();
    +    },
    +
    +    /**
    +     * Dispose self.
    +     */
    +    dispose: function () {
    +        this.animation.stop();
    +
    +        this.clear();
    +        this.storage.dispose();
    +        this.painter.dispose();
    +        this.handler.dispose();
    +
    +        this.animation =
    +        this.storage =
    +        this.painter =
    +        this.handler = null;
    +
    +        delInstance(this.id);
    +    }
    +};
    +
    +
    +
    +var zrender = (Object.freeze || Object)({
    +	version: version$1,
    +	init: init$1,
    +	dispose: dispose$1,
    +	getInstance: getInstance,
    +	registerPainter: registerPainter
    +});
    +
    +var RADIAN_EPSILON = 1e-4;
    +
    +function _trim(str) {
    +    return str.replace(/^\s+/, '').replace(/\s+$/, '');
    +}
    +
    +/**
    + * Linear mapping a value from domain to range
    + * @memberOf module:echarts/util/number
    + * @param  {(number|Array.<number>)} val
    + * @param  {Array.<number>} domain Domain extent domain[0] can be bigger than domain[1]
    + * @param  {Array.<number>} range  Range extent range[0] can be bigger than range[1]
    + * @param  {boolean} clamp
    + * @return {(number|Array.<number>}
    + */
    +function linearMap(val, domain, range, clamp) {
    +    var subDomain = domain[1] - domain[0];
    +    var subRange = range[1] - range[0];
    +
    +    if (subDomain === 0) {
    +        return subRange === 0
    +            ? range[0]
    +            : (range[0] + range[1]) / 2;
    +    }
    +
    +    // Avoid accuracy problem in edge, such as
    +    // 146.39 - 62.83 === 83.55999999999999.
    +    // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError
    +    // It is a little verbose for efficiency considering this method
    +    // is a hotspot.
    +    if (clamp) {
    +        if (subDomain > 0) {
    +            if (val <= domain[0]) {
    +                return range[0];
    +            }
    +            else if (val >= domain[1]) {
    +                return range[1];
    +            }
    +        }
    +        else {
    +            if (val >= domain[0]) {
    +                return range[0];
    +            }
    +            else if (val <= domain[1]) {
    +                return range[1];
    +            }
    +        }
    +    }
    +    else {
    +        if (val === domain[0]) {
    +            return range[0];
    +        }
    +        if (val === domain[1]) {
    +            return range[1];
    +        }
    +    }
    +
    +    return (val - domain[0]) / subDomain * subRange + range[0];
    +}
    +
    +/**
    + * Convert a percent string to absolute number.
    + * Returns NaN if percent is not a valid string or number
    + * @memberOf module:echarts/util/number
    + * @param {string|number} percent
    + * @param {number} all
    + * @return {number}
    + */
    +function parsePercent$1(percent, all) {
    +    switch (percent) {
    +        case 'center':
    +        case 'middle':
    +            percent = '50%';
    +            break;
    +        case 'left':
    +        case 'top':
    +            percent = '0%';
    +            break;
    +        case 'right':
    +        case 'bottom':
    +            percent = '100%';
    +            break;
    +    }
    +    if (typeof percent === 'string') {
    +        if (_trim(percent).match(/%$/)) {
    +            return parseFloat(percent) / 100 * all;
    +        }
    +
    +        return parseFloat(percent);
    +    }
    +
    +    return percent == null ? NaN : +percent;
    +}
    +
    +/**
    + * (1) Fix rounding error of float numbers.
    + * (2) Support return string to avoid scientific notation like '3.5e-7'.
    + *
    + * @param {number} x
    + * @param {number} [precision]
    + * @param {boolean} [returnStr]
    + * @return {number|string}
    + */
    +function round(x, precision, returnStr) {
    +    if (precision == null) {
    +        precision = 10;
    +    }
    +    // Avoid range error
    +    precision = Math.min(Math.max(0, precision), 20);
    +    x = (+x).toFixed(precision);
    +    return returnStr ? x : +x;
    +}
    +
    +function asc(arr) {
    +    arr.sort(function (a, b) {
    +        return a - b;
    +    });
    +    return arr;
    +}
    +
    +/**
    + * Get precision
    + * @param {number} val
    + */
    +function getPrecision(val) {
    +    val = +val;
    +    if (isNaN(val)) {
    +        return 0;
    +    }
    +    // It is much faster than methods converting number to string as follows
    +    //      var tmp = val.toString();
    +    //      return tmp.length - 1 - tmp.indexOf('.');
    +    // especially when precision is low
    +    var e = 1;
    +    var count = 0;
    +    while (Math.round(val * e) / e !== val) {
    +        e *= 10;
    +        count++;
    +    }
    +    return count;
    +}
    +
    +/**
    + * @param {string|number} val
    + * @return {number}
    + */
    +function getPrecisionSafe(val) {
    +    var str = val.toString();
    +
    +    // Consider scientific notation: '3.4e-12' '3.4e+12'
    +    var eIndex = str.indexOf('e');
    +    if (eIndex > 0) {
    +        var precision = +str.slice(eIndex + 1);
    +        return precision < 0 ? -precision : 0;
    +    }
    +    else {
    +        var dotIndex = str.indexOf('.');
    +        return dotIndex < 0 ? 0 : str.length - 1 - dotIndex;
    +    }
    +}
    +
    +/**
    + * Minimal dicernible data precisioin according to a single pixel.
    + *
    + * @param {Array.<number>} dataExtent
    + * @param {Array.<number>} pixelExtent
    + * @return {number} precision
    + */
    +function getPixelPrecision(dataExtent, pixelExtent) {
    +    var log = Math.log;
    +    var LN10 = Math.LN10;
    +    var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);
    +    var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10);
    +    // toFixed() digits argument must be between 0 and 20.
    +    var precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20);
    +    return !isFinite(precision) ? 20 : precision;
    +}
    +
    +/**
    + * Get a data of given precision, assuring the sum of percentages
    + * in valueList is 1.
    + * The largest remainer method is used.
    + * https://en.wikipedia.org/wiki/Largest_remainder_method
    + *
    + * @param {Array.<number>} valueList a list of all data
    + * @param {number} idx index of the data to be processed in valueList
    + * @param {number} precision integer number showing digits of precision
    + * @return {number} percent ranging from 0 to 100
    + */
    +function getPercentWithPrecision(valueList, idx, precision) {
    +    if (!valueList[idx]) {
    +        return 0;
    +    }
    +
    +    var sum = reduce(valueList, function (acc, val) {
    +        return acc + (isNaN(val) ? 0 : val);
    +    }, 0);
    +    if (sum === 0) {
    +        return 0;
    +    }
    +
    +    var digits = Math.pow(10, precision);
    +    var votesPerQuota = map(valueList, function (val) {
    +        return (isNaN(val) ? 0 : val) / sum * digits * 100;
    +    });
    +    var targetSeats = digits * 100;
    +
    +    var seats = map(votesPerQuota, function (votes) {
    +        // Assign automatic seats.
    +        return Math.floor(votes);
    +    });
    +    var currentSum = reduce(seats, function (acc, val) {
    +        return acc + val;
    +    }, 0);
    +
    +    var remainder = map(votesPerQuota, function (votes, idx) {
    +        return votes - seats[idx];
    +    });
    +
    +    // Has remainding votes.
    +    while (currentSum < targetSeats) {
    +        // Find next largest remainder.
    +        var max = Number.NEGATIVE_INFINITY;
    +        var maxId = null;
    +        for (var i = 0, len = remainder.length; i < len; ++i) {
    +            if (remainder[i] > max) {
    +                max = remainder[i];
    +                maxId = i;
    +            }
    +        }
    +
    +        // Add a vote to max remainder.
    +        ++seats[maxId];
    +        remainder[maxId] = 0;
    +        ++currentSum;
    +    }
    +
    +    return seats[idx] / digits;
    +}
    +
    +// Number.MAX_SAFE_INTEGER, ie do not support.
    +var MAX_SAFE_INTEGER = 9007199254740991;
    +
    +/**
    + * To 0 - 2 * PI, considering negative radian.
    + * @param {number} radian
    + * @return {number}
    + */
    +function remRadian(radian) {
    +    var pi2 = Math.PI * 2;
    +    return (radian % pi2 + pi2) % pi2;
    +}
    +
    +/**
    + * @param {type} radian
    + * @return {boolean}
    + */
    +function isRadianAroundZero(val) {
    +    return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;
    +}
    +
    +var TIME_REG = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/; // jshint ignore:line
    +
    +/**
    + * @param {string|Date|number} value These values can be accepted:
    + *   + An instance of Date, represent a time in its own time zone.
    + *   + Or string in a subset of ISO 8601, only including:
    + *     + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',
    + *     + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',
    + *     + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',
    + *     all of which will be treated as local time if time zone is not specified
    + *     (see <https://momentjs.com/>).
    + *   + Or other string format, including (all of which will be treated as loacal time):
    + *     '2012', '2012-3-1', '2012/3/1', '2012/03/01',
    + *     '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'
    + *   + a timestamp, which represent a time in UTC.
    + * @return {Date} date
    + */
    +function parseDate(value) {
    +    if (value instanceof Date) {
    +        return value;
    +    }
    +    else if (typeof value === 'string') {
    +        // Different browsers parse date in different way, so we parse it manually.
    +        // Some other issues:
    +        // new Date('1970-01-01') is UTC,
    +        // new Date('1970/01/01') and new Date('1970-1-01') is local.
    +        // See issue #3623
    +        var match = TIME_REG.exec(value);
    +
    +        if (!match) {
    +            // return Invalid Date.
    +            return new Date(NaN);
    +        }
    +
    +        // Use local time when no timezone offset specifed.
    +        if (!match[8]) {
    +            // match[n] can only be string or undefined.
    +            // But take care of '12' + 1 => '121'.
    +            return new Date(
    +                +match[1],
    +                +(match[2] || 1) - 1,
    +                +match[3] || 1,
    +                +match[4] || 0,
    +                +(match[5] || 0),
    +                +match[6] || 0,
    +                +match[7] || 0
    +            );
    +        }
    +        // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time,
    +        // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment).
    +        // For example, system timezone is set as "Time Zone: America/Toronto",
    +        // then these code will get different result:
    +        // `new Date(1478411999999).getTimezoneOffset();  // get 240`
    +        // `new Date(1478412000000).getTimezoneOffset();  // get 300`
    +        // So we should not use `new Date`, but use `Date.UTC`.
    +        else {
    +            var hour = +match[4] || 0;
    +            if (match[8].toUpperCase() !== 'Z') {
    +                hour -= match[8].slice(0, 3);
    +            }
    +            return new Date(Date.UTC(
    +                +match[1],
    +                +(match[2] || 1) - 1,
    +                +match[3] || 1,
    +                hour,
    +                +(match[5] || 0),
    +                +match[6] || 0,
    +                +match[7] || 0
    +            ));
    +        }
    +    }
    +    else if (value == null) {
    +        return new Date(NaN);
    +    }
    +
    +    return new Date(Math.round(value));
    +}
    +
    +/**
    + * Quantity of a number. e.g. 0.1, 1, 10, 100
    + *
    + * @param  {number} val
    + * @return {number}
    + */
    +function quantity(val) {
    +    return Math.pow(10, quantityExponent(val));
    +}
    +
    +function quantityExponent(val) {
    +    return Math.floor(Math.log(val) / Math.LN10);
    +}
    +
    +/**
    + * find a “nice” number approximately equal to x. Round the number if round = true,
    + * take ceiling if round = false. The primary observation is that the “nicest”
    + * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.
    + *
    + * See "Nice Numbers for Graph Labels" of Graphic Gems.
    + *
    + * @param  {number} val Non-negative value.
    + * @param  {boolean} round
    + * @return {number}
    + */
    +function nice(val, round) {
    +    var exponent = quantityExponent(val);
    +    var exp10 = Math.pow(10, exponent);
    +    var f = val / exp10; // 1 <= f < 10
    +    var nf;
    +    if (round) {
    +        if (f < 1.5) { nf = 1; }
    +        else if (f < 2.5) { nf = 2; }
    +        else if (f < 4) { nf = 3; }
    +        else if (f < 7) { nf = 5; }
    +        else { nf = 10; }
    +    }
    +    else {
    +        if (f < 1) { nf = 1; }
    +        else if (f < 2) { nf = 2; }
    +        else if (f < 3) { nf = 3; }
    +        else if (f < 5) { nf = 5; }
    +        else { nf = 10; }
    +    }
    +    val = nf * exp10;
    +
    +    // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).
    +    // 20 is the uppper bound of toFixed.
    +    return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val;
    +}
    +
    +/**
    + * Order intervals asc, and split them when overlap.
    + * expect(numberUtil.reformIntervals([
    + *     {interval: [18, 62], close: [1, 1]},
    + *     {interval: [-Infinity, -70], close: [0, 0]},
    + *     {interval: [-70, -26], close: [1, 1]},
    + *     {interval: [-26, 18], close: [1, 1]},
    + *     {interval: [62, 150], close: [1, 1]},
    + *     {interval: [106, 150], close: [1, 1]},
    + *     {interval: [150, Infinity], close: [0, 0]}
    + * ])).toEqual([
    + *     {interval: [-Infinity, -70], close: [0, 0]},
    + *     {interval: [-70, -26], close: [1, 1]},
    + *     {interval: [-26, 18], close: [0, 1]},
    + *     {interval: [18, 62], close: [0, 1]},
    + *     {interval: [62, 150], close: [0, 1]},
    + *     {interval: [150, Infinity], close: [0, 0]}
    + * ]);
    + * @param {Array.<Object>} list, where `close` mean open or close
    + *        of the interval, and Infinity can be used.
    + * @return {Array.<Object>} The origin list, which has been reformed.
    + */
    +function reformIntervals(list) {
    +    list.sort(function (a, b) {
    +        return littleThan(a, b, 0) ? -1 : 1;
    +    });
    +
    +    var curr = -Infinity;
    +    var currClose = 1;
    +    for (var i = 0; i < list.length;) {
    +        var interval = list[i].interval;
    +        var close = list[i].close;
    +
    +        for (var lg = 0; lg < 2; lg++) {
    +            if (interval[lg] <= curr) {
    +                interval[lg] = curr;
    +                close[lg] = !lg ? 1 - currClose : 1;
    +            }
    +            curr = interval[lg];
    +            currClose = close[lg];
    +        }
    +
    +        if (interval[0] === interval[1] && close[0] * close[1] !== 1) {
    +            list.splice(i, 1);
    +        }
    +        else {
    +            i++;
    +        }
    +    }
    +
    +    return list;
    +
    +    function littleThan(a, b, lg) {
    +        return a.interval[lg] < b.interval[lg]
    +            || (
    +                a.interval[lg] === b.interval[lg]
    +                && (
    +                    (a.close[lg] - b.close[lg] === (!lg ? 1 : -1))
    +                    || (!lg && littleThan(a, b, 1))
    +                )
    +            );
    +    }
    +}
    +
    +/**
    + * parseFloat NaNs numeric-cast false positives (null|true|false|"")
    + * ...but misinterprets leading-number strings, particularly hex literals ("0x...")
    + * subtraction forces infinities to NaN
    + *
    + * @param {*} v
    + * @return {boolean}
    + */
    +function isNumeric(v) {
    +    return v - parseFloat(v) >= 0;
    +}
    +
    +
    +var number = (Object.freeze || Object)({
    +	linearMap: linearMap,
    +	parsePercent: parsePercent$1,
    +	round: round,
    +	asc: asc,
    +	getPrecision: getPrecision,
    +	getPrecisionSafe: getPrecisionSafe,
    +	getPixelPrecision: getPixelPrecision,
    +	getPercentWithPrecision: getPercentWithPrecision,
    +	MAX_SAFE_INTEGER: MAX_SAFE_INTEGER,
    +	remRadian: remRadian,
    +	isRadianAroundZero: isRadianAroundZero,
    +	parseDate: parseDate,
    +	quantity: quantity,
    +	nice: nice,
    +	reformIntervals: reformIntervals,
    +	isNumeric: isNumeric
    +});
    +
    +/**
    + * 每三位默认加,格式化
    + * @param {string|number} x
    + * @return {string}
    + */
    +function addCommas(x) {
    +    if (isNaN(x)) {
    +        return '-';
    +    }
    +    x = (x + '').split('.');
    +    return x[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,'$1,')
    +            + (x.length > 1 ? ('.' + x[1]) : '');
    +}
    +
    +/**
    + * @param {string} str
    + * @param {boolean} [upperCaseFirst=false]
    + * @return {string} str
    + */
    +function toCamelCase(str, upperCaseFirst) {
    +    str = (str || '').toLowerCase().replace(/-(.)/g, function(match, group1) {
    +        return group1.toUpperCase();
    +    });
    +
    +    if (upperCaseFirst && str) {
    +        str = str.charAt(0).toUpperCase() + str.slice(1);
    +    }
    +
    +    return str;
    +}
    +
    +var normalizeCssArray$1 = normalizeCssArray;
    +
    +function encodeHTML(source) {
    +    return String(source)
    +        .replace(/&/g, '&amp;')
    +        .replace(/</g, '&lt;')
    +        .replace(/>/g, '&gt;')
    +        .replace(/"/g, '&quot;')
    +        .replace(/'/g, '&#39;');
    +}
    +
    +var TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
    +
    +var wrapVar = function (varName, seriesIdx) {
    +    return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';
    +};
    +
    +/**
    + * Template formatter
    + * @param {string} tpl
    + * @param {Array.<Object>|Object} paramsList
    + * @param {boolean} [encode=false]
    + * @return {string}
    + */
    +function formatTpl(tpl, paramsList, encode) {
    +    if (!isArray(paramsList)) {
    +        paramsList = [paramsList];
    +    }
    +    var seriesLen = paramsList.length;
    +    if (!seriesLen) {
    +        return '';
    +    }
    +
    +    var $vars = paramsList[0].$vars || [];
    +    for (var i = 0; i < $vars.length; i++) {
    +        var alias = TPL_VAR_ALIAS[i];
    +        var val = wrapVar(alias, 0);
    +        tpl = tpl.replace(wrapVar(alias), encode ? encodeHTML(val) : val);
    +    }
    +    for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {
    +        for (var k = 0; k < $vars.length; k++) {
    +            var val = paramsList[seriesIdx][$vars[k]];
    +            tpl = tpl.replace(
    +                wrapVar(TPL_VAR_ALIAS[k], seriesIdx),
    +                encode ? encodeHTML(val) : val
    +            );
    +        }
    +    }
    +
    +    return tpl;
    +}
    +
    +/**
    + * simple Template formatter
    + *
    + * @param {string} tpl
    + * @param {Object} param
    + * @param {boolean} [encode=false]
    + * @return {string}
    + */
    +function formatTplSimple(tpl, param, encode) {
    +    each$1(param, function (value, key) {
    +        tpl = tpl.replace(
    +            '{' + key + '}',
    +            encode ? encodeHTML(value) : value
    +        );
    +    });
    +    return tpl;
    +}
    +
    +/**
    + * @param {string} color
    + * @param {string} [extraCssText]
    + * @return {string}
    + */
    +function getTooltipMarker(color, extraCssText) {
    +    return color
    +        ? '<span style="display:inline-block;margin-right:5px;'
    +            + 'border-radius:10px;width:9px;height:9px;background-color:'
    +            + encodeHTML(color) + ';' + (extraCssText || '') + '"></span>'
    +        : '';
    +}
    +
    +/**
    + * @param {string} str
    + * @return {string}
    + * @inner
    + */
    +var s2d = function (str) {
    +    return str < 10 ? ('0' + str) : str;
    +};
    +
    +/**
    + * ISO Date format
    + * @param {string} tpl
    + * @param {number} value
    + * @param {boolean} [isUTC=false] Default in local time.
    + *           see `module:echarts/scale/Time`
    + *           and `module:echarts/util/number#parseDate`.
    + * @inner
    + */
    +function formatTime(tpl, value, isUTC) {
    +    if (tpl === 'week'
    +        || tpl === 'month'
    +        || tpl === 'quarter'
    +        || tpl === 'half-year'
    +        || tpl === 'year'
    +    ) {
    +        tpl = 'MM-dd\nyyyy';
    +    }
    +
    +    var date = parseDate(value);
    +    var utc = isUTC ? 'UTC' : '';
    +    var y = date['get' + utc + 'FullYear']();
    +    var M = date['get' + utc + 'Month']() + 1;
    +    var d = date['get' + utc + 'Date']();
    +    var h = date['get' + utc + 'Hours']();
    +    var m = date['get' + utc + 'Minutes']();
    +    var s = date['get' + utc + 'Seconds']();
    +
    +    tpl = tpl.replace('MM', s2d(M))
    +        .replace('M', M)
    +        .replace('yyyy', y)
    +        .replace('yy', y % 100)
    +        .replace('dd', s2d(d))
    +        .replace('d', d)
    +        .replace('hh', s2d(h))
    +        .replace('h', h)
    +        .replace('mm', s2d(m))
    +        .replace('m', m)
    +        .replace('ss', s2d(s))
    +        .replace('s', s);
    +
    +    return tpl;
    +}
    +
    +/**
    + * Capital first
    + * @param {string} str
    + * @return {string}
    + */
    +function capitalFirst(str) {
    +    return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;
    +}
    +
    +var truncateText$1 = truncateText;
    +
    +var getTextRect = getBoundingRect;
    +
    +
    +var format = (Object.freeze || Object)({
    +	addCommas: addCommas,
    +	toCamelCase: toCamelCase,
    +	normalizeCssArray: normalizeCssArray$1,
    +	encodeHTML: encodeHTML,
    +	formatTpl: formatTpl,
    +	formatTplSimple: formatTplSimple,
    +	getTooltipMarker: getTooltipMarker,
    +	formatTime: formatTime,
    +	capitalFirst: capitalFirst,
    +	truncateText: truncateText$1,
    +	getTextRect: getTextRect
    +});
    +
    +var TYPE_DELIMITER = '.';
    +var IS_CONTAINER = '___EC__COMPONENT__CONTAINER___';
    +var MEMBER_PRIFIX = '\0ec_\0';
    +
    +/**
    + * Hide private class member.
    + * The same behavior as `host[name] = value;` (can be right-value)
    + * @public
    + */
    +function set$1(host, name, value) {
    +    return (host[MEMBER_PRIFIX + name] = value);
    +}
    +
    +/**
    + * Hide private class member.
    + * The same behavior as `host[name];`
    + * @public
    + */
    +function get(host, name) {
    +    return host[MEMBER_PRIFIX + name];
    +}
    +
    +/**
    + * For hidden private class member.
    + * The same behavior as `host.hasOwnProperty(name);`
    + * @public
    + */
    +function hasOwn(host, name) {
    +    return host.hasOwnProperty(MEMBER_PRIFIX + name);
    +}
    +
    +/**
    + * Notice, parseClassType('') should returns {main: '', sub: ''}
    + * @public
    + */
    +function parseClassType$1(componentType) {
    +    var ret = {main: '', sub: ''};
    +    if (componentType) {
    +        componentType = componentType.split(TYPE_DELIMITER);
    +        ret.main = componentType[0] || '';
    +        ret.sub = componentType[1] || '';
    +    }
    +    return ret;
    +}
    +
    +/**
    + * @public
    + */
    +function checkClassType(componentType) {
    +    assert(
    +        /^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType),
    +        'componentType "' + componentType + '" illegal'
    +    );
    +}
    +
    +/**
    + * @public
    + */
    +function enableClassExtend(RootClass, mandatoryMethods) {
    +
    +    RootClass.$constructor = RootClass;
    +    RootClass.extend = function (proto) {
    +
    +        if (__DEV__) {
    +            each$1(mandatoryMethods, function (method) {
    +                if (!proto[method]) {
    +                    console.warn(
    +                        'Method `' + method + '` should be implemented'
    +                        + (proto.type ? ' in ' + proto.type : '') + '.'
    +                    );
    +                }
    +            });
    +        }
    +
    +        var superClass = this;
    +        var ExtendedClass = function () {
    +            if (!proto.$constructor) {
    +                superClass.apply(this, arguments);
    +            }
    +            else {
    +                proto.$constructor.apply(this, arguments);
    +            }
    +        };
    +
    +        extend(ExtendedClass.prototype, proto);
    +
    +        ExtendedClass.extend = this.extend;
    +        ExtendedClass.superCall = superCall;
    +        ExtendedClass.superApply = superApply;
    +        inherits(ExtendedClass, this);
    +        ExtendedClass.superClass = superClass;
    +
    +        return ExtendedClass;
    +    };
    +}
    +
    +// superCall should have class info, which can not be fetch from 'this'.
    +// Consider this case:
    +// class A has method f,
    +// class B inherits class A, overrides method f, f call superApply('f'),
    +// class C inherits class B, do not overrides method f,
    +// then when method of class C is called, dead loop occured.
    +function superCall(context, methodName) {
    +    var args = slice(arguments, 2);
    +    return this.superClass.prototype[methodName].apply(context, args);
    +}
    +
    +function superApply(context, methodName, args) {
    +    return this.superClass.prototype[methodName].apply(context, args);
    +}
    +
    +/**
    + * @param {Object} entity
    + * @param {Object} options
    + * @param {boolean} [options.registerWhenExtend]
    + * @public
    + */
    +function enableClassManagement(entity, options) {
    +    options = options || {};
    +
    +    /**
    +     * Component model classes
    +     * key: componentType,
    +     * value:
    +     *     componentClass, when componentType is 'xxx'
    +     *     or Object.<subKey, componentClass>, when componentType is 'xxx.yy'
    +     * @type {Object}
    +     */
    +    var storage = {};
    +
    +    entity.registerClass = function (Clazz, componentType) {
    +        if (componentType) {
    +            checkClassType(componentType);
    +            componentType = parseClassType$1(componentType);
    +
    +            if (!componentType.sub) {
    +                if (__DEV__) {
    +                    if (storage[componentType.main]) {
    +                        console.warn(componentType.main + ' exists.');
    +                    }
    +                }
    +                storage[componentType.main] = Clazz;
    +            }
    +            else if (componentType.sub !== IS_CONTAINER) {
    +                var container = makeContainer(componentType);
    +                container[componentType.sub] = Clazz;
    +            }
    +        }
    +        return Clazz;
    +    };
    +
    +    entity.getClass = function (componentMainType, subType, throwWhenNotFound) {
    +        var Clazz = storage[componentMainType];
    +
    +        if (Clazz && Clazz[IS_CONTAINER]) {
    +            Clazz = subType ? Clazz[subType] : null;
    +        }
    +
    +        if (throwWhenNotFound && !Clazz) {
    +            throw new Error(
    +                !subType
    +                    ? componentMainType + '.' + 'type should be specified.'
    +                    : 'Component ' + componentMainType + '.' + (subType || '') + ' not exists. Load it first.'
    +            );
    +        }
    +
    +        return Clazz;
    +    };
    +
    +    entity.getClassesByMainType = function (componentType) {
    +        componentType = parseClassType$1(componentType);
    +
    +        var result = [];
    +        var obj = storage[componentType.main];
    +
    +        if (obj && obj[IS_CONTAINER]) {
    +            each$1(obj, function (o, type) {
    +                type !== IS_CONTAINER && result.push(o);
    +            });
    +        }
    +        else {
    +            result.push(obj);
    +        }
    +
    +        return result;
    +    };
    +
    +    entity.hasClass = function (componentType) {
    +        // Just consider componentType.main.
    +        componentType = parseClassType$1(componentType);
    +        return !!storage[componentType.main];
    +    };
    +
    +    /**
    +     * @return {Array.<string>} Like ['aa', 'bb'], but can not be ['aa.xx']
    +     */
    +    entity.getAllClassMainTypes = function () {
    +        var types = [];
    +        each$1(storage, function (obj, type) {
    +            types.push(type);
    +        });
    +        return types;
    +    };
    +
    +    /**
    +     * If a main type is container and has sub types
    +     * @param  {string}  mainType
    +     * @return {boolean}
    +     */
    +    entity.hasSubTypes = function (componentType) {
    +        componentType = parseClassType$1(componentType);
    +        var obj = storage[componentType.main];
    +        return obj && obj[IS_CONTAINER];
    +    };
    +
    +    entity.parseClassType = parseClassType$1;
    +
    +    function makeContainer(componentType) {
    +        var container = storage[componentType.main];
    +        if (!container || !container[IS_CONTAINER]) {
    +            container = storage[componentType.main] = {};
    +            container[IS_CONTAINER] = true;
    +        }
    +        return container;
    +    }
    +
    +    if (options.registerWhenExtend) {
    +        var originalExtend = entity.extend;
    +        if (originalExtend) {
    +            entity.extend = function (proto) {
    +                var ExtendedClass = originalExtend.call(this, proto);
    +                return entity.registerClass(ExtendedClass, proto.type);
    +            };
    +        }
    +    }
    +
    +    return entity;
    +}
    +
    +/**
    + * @param {string|Array.<string>} properties
    + */
    +
    +// TODO Parse shadow style
    +// TODO Only shallow path support
    +var makeStyleMapper = function (properties) {
    +    // Normalize
    +    for (var i = 0; i < properties.length; i++) {
    +        if (!properties[i][1]) {
    +            properties[i][1] = properties[i][0];
    +        }
    +    }
    +    return function (model, excludes, includes) {
    +        var style = {};
    +        for (var i = 0; i < properties.length; i++) {
    +            var propName = properties[i][1];
    +            if ((excludes && indexOf(excludes, propName) >= 0)
    +                || (includes && indexOf(includes, propName) < 0)
    +            ) {
    +                continue;
    +            }
    +            var val = model.getShallow(propName);
    +            if (val != null) {
    +                style[properties[i][0]] = val;
    +            }
    +        }
    +        return style;
    +    };
    +};
    +
    +var getLineStyle = makeStyleMapper(
    +    [
    +        ['lineWidth', 'width'],
    +        ['stroke', 'color'],
    +        ['opacity'],
    +        ['shadowBlur'],
    +        ['shadowOffsetX'],
    +        ['shadowOffsetY'],
    +        ['shadowColor']
    +    ]
    +);
    +
    +var lineStyleMixin = {
    +    getLineStyle: function (excludes) {
    +        var style = getLineStyle(this, excludes);
    +        var lineDash = this.getLineDash(style.lineWidth);
    +        lineDash && (style.lineDash = lineDash);
    +        return style;
    +    },
    +
    +    getLineDash: function (lineWidth) {
    +        if (lineWidth == null) {
    +            lineWidth = 1;
    +        }
    +        var lineType = this.get('type');
    +        var dotSize = Math.max(lineWidth, 2);
    +        var dashSize = lineWidth * 4;
    +        return (lineType === 'solid' || lineType == null) ? null
    +            : (lineType === 'dashed' ? [dashSize, dashSize] : [dotSize, dotSize]);
    +    }
    +};
    +
    +var getAreaStyle = makeStyleMapper(
    +    [
    +        ['fill', 'color'],
    +        ['shadowBlur'],
    +        ['shadowOffsetX'],
    +        ['shadowOffsetY'],
    +        ['opacity'],
    +        ['shadowColor']
    +    ]
    +);
    +
    +var areaStyleMixin = {
    +    getAreaStyle: function (excludes, includes) {
    +        return getAreaStyle(this, excludes, includes);
    +    }
    +};
    +
    +/**
    + * 曲线辅助模块
    + * @module zrender/core/curve
    + * @author pissang(https://www.github.com/pissang)
    + */
    +
    +var mathPow = Math.pow;
    +var mathSqrt$2 = Math.sqrt;
    +
    +var EPSILON$1 = 1e-8;
    +var EPSILON_NUMERIC = 1e-4;
    +
    +var THREE_SQRT = mathSqrt$2(3);
    +var ONE_THIRD = 1 / 3;
    +
    +// 临时变量
    +var _v0 = create();
    +var _v1 = create();
    +var _v2 = create();
    +
    +function isAroundZero(val) {
    +    return val > -EPSILON$1 && val < EPSILON$1;
    +}
    +function isNotAroundZero$1(val) {
    +    return val > EPSILON$1 || val < -EPSILON$1;
    +}
    +/**
    + * 计算三次贝塞尔值
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} p3
    + * @param  {number} t
    + * @return {number}
    + */
    +function cubicAt(p0, p1, p2, p3, t) {
    +    var onet = 1 - t;
    +    return onet * onet * (onet * p0 + 3 * t * p1)
    +            + t * t * (t * p3 + 3 * onet * p2);
    +}
    +
    +/**
    + * 计算三次贝塞尔导数值
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} p3
    + * @param  {number} t
    + * @return {number}
    + */
    +function cubicDerivativeAt(p0, p1, p2, p3, t) {
    +    var onet = 1 - t;
    +    return 3 * (
    +        ((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet
    +        + (p3 - p2) * t * t
    +    );
    +}
    +
    +/**
    + * 计算三次贝塞尔方程根,使用盛金公式
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} p3
    + * @param  {number} val
    + * @param  {Array.<number>} roots
    + * @return {number} 有效根数目
    + */
    +function cubicRootAt(p0, p1, p2, p3, val, roots) {
    +    // Evaluate roots of cubic functions
    +    var a = p3 + 3 * (p1 - p2) - p0;
    +    var b = 3 * (p2 - p1 * 2 + p0);
    +    var c = 3 * (p1  - p0);
    +    var d = p0 - val;
    +
    +    var A = b * b - 3 * a * c;
    +    var B = b * c - 9 * a * d;
    +    var C = c * c - 3 * b * d;
    +
    +    var n = 0;
    +
    +    if (isAroundZero(A) && isAroundZero(B)) {
    +        if (isAroundZero(b)) {
    +            roots[0] = 0;
    +        }
    +        else {
    +            var t1 = -c / b;  //t1, t2, t3, b is not zero
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +        }
    +    }
    +    else {
    +        var disc = B * B - 4 * A * C;
    +
    +        if (isAroundZero(disc)) {
    +            var K = B / A;
    +            var t1 = -b / a + K;  // t1, a is not zero
    +            var t2 = -K / 2;  // t2, t3
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +            if (t2 >= 0 && t2 <= 1) {
    +                roots[n++] = t2;
    +            }
    +        }
    +        else if (disc > 0) {
    +            var discSqrt = mathSqrt$2(disc);
    +            var Y1 = A * b + 1.5 * a * (-B + discSqrt);
    +            var Y2 = A * b + 1.5 * a * (-B - discSqrt);
    +            if (Y1 < 0) {
    +                Y1 = -mathPow(-Y1, ONE_THIRD);
    +            }
    +            else {
    +                Y1 = mathPow(Y1, ONE_THIRD);
    +            }
    +            if (Y2 < 0) {
    +                Y2 = -mathPow(-Y2, ONE_THIRD);
    +            }
    +            else {
    +                Y2 = mathPow(Y2, ONE_THIRD);
    +            }
    +            var t1 = (-b - (Y1 + Y2)) / (3 * a);
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +        }
    +        else {
    +            var T = (2 * A * b - 3 * a * B) / (2 * mathSqrt$2(A * A * A));
    +            var theta = Math.acos(T) / 3;
    +            var ASqrt = mathSqrt$2(A);
    +            var tmp = Math.cos(theta);
    +
    +            var t1 = (-b - 2 * ASqrt * tmp) / (3 * a);
    +            var t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);
    +            var t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +            if (t2 >= 0 && t2 <= 1) {
    +                roots[n++] = t2;
    +            }
    +            if (t3 >= 0 && t3 <= 1) {
    +                roots[n++] = t3;
    +            }
    +        }
    +    }
    +    return n;
    +}
    +
    +/**
    + * 计算三次贝塞尔方程极限值的位置
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} p3
    + * @param  {Array.<number>} extrema
    + * @return {number} 有效数目
    + */
    +function cubicExtrema(p0, p1, p2, p3, extrema) {
    +    var b = 6 * p2 - 12 * p1 + 6 * p0;
    +    var a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;
    +    var c = 3 * p1 - 3 * p0;
    +
    +    var n = 0;
    +    if (isAroundZero(a)) {
    +        if (isNotAroundZero$1(b)) {
    +            var t1 = -c / b;
    +            if (t1 >= 0 && t1 <=1) {
    +                extrema[n++] = t1;
    +            }
    +        }
    +    }
    +    else {
    +        var disc = b * b - 4 * a * c;
    +        if (isAroundZero(disc)) {
    +            extrema[0] = -b / (2 * a);
    +        }
    +        else if (disc > 0) {
    +            var discSqrt = mathSqrt$2(disc);
    +            var t1 = (-b + discSqrt) / (2 * a);
    +            var t2 = (-b - discSqrt) / (2 * a);
    +            if (t1 >= 0 && t1 <= 1) {
    +                extrema[n++] = t1;
    +            }
    +            if (t2 >= 0 && t2 <= 1) {
    +                extrema[n++] = t2;
    +            }
    +        }
    +    }
    +    return n;
    +}
    +
    +/**
    + * 细分三次贝塞尔曲线
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} p3
    + * @param  {number} t
    + * @param  {Array.<number>} out
    + */
    +function cubicSubdivide(p0, p1, p2, p3, t, out) {
    +    var p01 = (p1 - p0) * t + p0;
    +    var p12 = (p2 - p1) * t + p1;
    +    var p23 = (p3 - p2) * t + p2;
    +
    +    var p012 = (p12 - p01) * t + p01;
    +    var p123 = (p23 - p12) * t + p12;
    +
    +    var p0123 = (p123 - p012) * t + p012;
    +    // Seg0
    +    out[0] = p0;
    +    out[1] = p01;
    +    out[2] = p012;
    +    out[3] = p0123;
    +    // Seg1
    +    out[4] = p0123;
    +    out[5] = p123;
    +    out[6] = p23;
    +    out[7] = p3;
    +}
    +
    +/**
    + * 投射点到三次贝塞尔曲线上,返回投射距离。
    + * 投射点有可能会有一个或者多个,这里只返回其中距离最短的一个。
    + * @param {number} x0
    + * @param {number} y0
    + * @param {number} x1
    + * @param {number} y1
    + * @param {number} x2
    + * @param {number} y2
    + * @param {number} x3
    + * @param {number} y3
    + * @param {number} x
    + * @param {number} y
    + * @param {Array.<number>} [out] 投射点
    + * @return {number}
    + */
    +function cubicProjectPoint(
    +    x0, y0, x1, y1, x2, y2, x3, y3,
    +    x, y, out
    +) {
    +    // http://pomax.github.io/bezierinfo/#projections
    +    var t;
    +    var interval = 0.005;
    +    var d = Infinity;
    +    var prev;
    +    var next;
    +    var d1;
    +    var d2;
    +
    +    _v0[0] = x;
    +    _v0[1] = y;
    +
    +    // 先粗略估计一下可能的最小距离的 t 值
    +    // PENDING
    +    for (var _t = 0; _t < 1; _t += 0.05) {
    +        _v1[0] = cubicAt(x0, x1, x2, x3, _t);
    +        _v1[1] = cubicAt(y0, y1, y2, y3, _t);
    +        d1 = distSquare(_v0, _v1);
    +        if (d1 < d) {
    +            t = _t;
    +            d = d1;
    +        }
    +    }
    +    d = Infinity;
    +
    +    // At most 32 iteration
    +    for (var i = 0; i < 32; i++) {
    +        if (interval < EPSILON_NUMERIC) {
    +            break;
    +        }
    +        prev = t - interval;
    +        next = t + interval;
    +        // t - interval
    +        _v1[0] = cubicAt(x0, x1, x2, x3, prev);
    +        _v1[1] = cubicAt(y0, y1, y2, y3, prev);
    +
    +        d1 = distSquare(_v1, _v0);
    +
    +        if (prev >= 0 && d1 < d) {
    +            t = prev;
    +            d = d1;
    +        }
    +        else {
    +            // t + interval
    +            _v2[0] = cubicAt(x0, x1, x2, x3, next);
    +            _v2[1] = cubicAt(y0, y1, y2, y3, next);
    +            d2 = distSquare(_v2, _v0);
    +
    +            if (next <= 1 && d2 < d) {
    +                t = next;
    +                d = d2;
    +            }
    +            else {
    +                interval *= 0.5;
    +            }
    +        }
    +    }
    +    // t
    +    if (out) {
    +        out[0] = cubicAt(x0, x1, x2, x3, t);
    +        out[1] = cubicAt(y0, y1, y2, y3, t);
    +    }
    +    // console.log(interval, i);
    +    return mathSqrt$2(d);
    +}
    +
    +/**
    + * 计算二次方贝塞尔值
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} t
    + * @return {number}
    + */
    +function quadraticAt(p0, p1, p2, t) {
    +    var onet = 1 - t;
    +    return onet * (onet * p0 + 2 * t * p1) + t * t * p2;
    +}
    +
    +/**
    + * 计算二次方贝塞尔导数值
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} t
    + * @return {number}
    + */
    +function quadraticDerivativeAt(p0, p1, p2, t) {
    +    return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));
    +}
    +
    +/**
    + * 计算二次方贝塞尔方程根
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} t
    + * @param  {Array.<number>} roots
    + * @return {number} 有效根数目
    + */
    +function quadraticRootAt(p0, p1, p2, val, roots) {
    +    var a = p0 - 2 * p1 + p2;
    +    var b = 2 * (p1 - p0);
    +    var c = p0 - val;
    +
    +    var n = 0;
    +    if (isAroundZero(a)) {
    +        if (isNotAroundZero$1(b)) {
    +            var t1 = -c / b;
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +        }
    +    }
    +    else {
    +        var disc = b * b - 4 * a * c;
    +        if (isAroundZero(disc)) {
    +            var t1 = -b / (2 * a);
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +        }
    +        else if (disc > 0) {
    +            var discSqrt = mathSqrt$2(disc);
    +            var t1 = (-b + discSqrt) / (2 * a);
    +            var t2 = (-b - discSqrt) / (2 * a);
    +            if (t1 >= 0 && t1 <= 1) {
    +                roots[n++] = t1;
    +            }
    +            if (t2 >= 0 && t2 <= 1) {
    +                roots[n++] = t2;
    +            }
    +        }
    +    }
    +    return n;
    +}
    +
    +/**
    + * 计算二次贝塞尔方程极限值
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @return {number}
    + */
    +function quadraticExtremum(p0, p1, p2) {
    +    var divider = p0 + p2 - 2 * p1;
    +    if (divider === 0) {
    +        // p1 is center of p0 and p2
    +        return 0.5;
    +    }
    +    else {
    +        return (p0 - p1) / divider;
    +    }
    +}
    +
    +/**
    + * 细分二次贝塞尔曲线
    + * @memberOf module:zrender/core/curve
    + * @param  {number} p0
    + * @param  {number} p1
    + * @param  {number} p2
    + * @param  {number} t
    + * @param  {Array.<number>} out
    + */
    +function quadraticSubdivide(p0, p1, p2, t, out) {
    +    var p01 = (p1 - p0) * t + p0;
    +    var p12 = (p2 - p1) * t + p1;
    +    var p012 = (p12 - p01) * t + p01;
    +
    +    // Seg0
    +    out[0] = p0;
    +    out[1] = p01;
    +    out[2] = p012;
    +
    +    // Seg1
    +    out[3] = p012;
    +    out[4] = p12;
    +    out[5] = p2;
    +}
    +
    +/**
    + * 投射点到二次贝塞尔曲线上,返回投射距离。
    + * 投射点有可能会有一个或者多个,这里只返回其中距离最短的一个。
    + * @param {number} x0
    + * @param {number} y0
    + * @param {number} x1
    + * @param {number} y1
    + * @param {number} x2
    + * @param {number} y2
    + * @param {number} x
    + * @param {number} y
    + * @param {Array.<number>} out 投射点
    + * @return {number}
    + */
    +function quadraticProjectPoint(
    +    x0, y0, x1, y1, x2, y2,
    +    x, y, out
    +) {
    +    // http://pomax.github.io/bezierinfo/#projections
    +    var t;
    +    var interval = 0.005;
    +    var d = Infinity;
    +
    +    _v0[0] = x;
    +    _v0[1] = y;
    +
    +    // 先粗略估计一下可能的最小距离的 t 值
    +    // PENDING
    +    for (var _t = 0; _t < 1; _t += 0.05) {
    +        _v1[0] = quadraticAt(x0, x1, x2, _t);
    +        _v1[1] = quadraticAt(y0, y1, y2, _t);
    +        var d1 = distSquare(_v0, _v1);
    +        if (d1 < d) {
    +            t = _t;
    +            d = d1;
    +        }
    +    }
    +    d = Infinity;
    +
    +    // At most 32 iteration
    +    for (var i = 0; i < 32; i++) {
    +        if (interval < EPSILON_NUMERIC) {
    +            break;
    +        }
    +        var prev = t - interval;
    +        var next = t + interval;
    +        // t - interval
    +        _v1[0] = quadraticAt(x0, x1, x2, prev);
    +        _v1[1] = quadraticAt(y0, y1, y2, prev);
    +
    +        var d1 = distSquare(_v1, _v0);
    +
    +        if (prev >= 0 && d1 < d) {
    +            t = prev;
    +            d = d1;
    +        }
    +        else {
    +            // t + interval
    +            _v2[0] = quadraticAt(x0, x1, x2, next);
    +            _v2[1] = quadraticAt(y0, y1, y2, next);
    +            var d2 = distSquare(_v2, _v0);
    +            if (next <= 1 && d2 < d) {
    +                t = next;
    +                d = d2;
    +            }
    +            else {
    +                interval *= 0.5;
    +            }
    +        }
    +    }
    +    // t
    +    if (out) {
    +        out[0] = quadraticAt(x0, x1, x2, t);
    +        out[1] = quadraticAt(y0, y1, y2, t);
    +    }
    +    // console.log(interval, i);
    +    return mathSqrt$2(d);
    +}
    +
    +/**
    + * @author Yi Shen(https://github.com/pissang)
    + */
    +
    +var mathMin$3 = Math.min;
    +var mathMax$3 = Math.max;
    +var mathSin$2 = Math.sin;
    +var mathCos$2 = Math.cos;
    +var PI2 = Math.PI * 2;
    +
    +var start = create();
    +var end = create();
    +var extremity = create();
    +
    +/**
    + * 从顶点数组中计算出最小包围盒,写入`min`和`max`中
    + * @module zrender/core/bbox
    + * @param {Array<Object>} points 顶点数组
    + * @param {number} min
    + * @param {number} max
    + */
    +function fromPoints(points, min$$1, max$$1) {
    +    if (points.length === 0) {
    +        return;
    +    }
    +    var p = points[0];
    +    var left = p[0];
    +    var right = p[0];
    +    var top = p[1];
    +    var bottom = p[1];
    +    var i;
    +
    +    for (i = 1; i < points.length; i++) {
    +        p = points[i];
    +        left = mathMin$3(left, p[0]);
    +        right = mathMax$3(right, p[0]);
    +        top = mathMin$3(top, p[1]);
    +        bottom = mathMax$3(bottom, p[1]);
    +    }
    +
    +    min$$1[0] = left;
    +    min$$1[1] = top;
    +    max$$1[0] = right;
    +    max$$1[1] = bottom;
    +}
    +
    +/**
    + * @memberOf module:zrender/core/bbox
    + * @param {number} x0
    + * @param {number} y0
    + * @param {number} x1
    + * @param {number} y1
    + * @param {Array.<number>} min
    + * @param {Array.<number>} max
    + */
    +function fromLine(x0, y0, x1, y1, min$$1, max$$1) {
    +    min$$1[0] = mathMin$3(x0, x1);
    +    min$$1[1] = mathMin$3(y0, y1);
    +    max$$1[0] = mathMax$3(x0, x1);
    +    max$$1[1] = mathMax$3(y0, y1);
    +}
    +
    +var xDim = [];
    +var yDim = [];
    +/**
    + * 从三阶贝塞尔曲线(p0, p1, p2, p3)中计算出最小包围盒,写入`min`和`max`中
    + * @memberOf module:zrender/core/bbox
    + * @param {number} x0
    + * @param {number} y0
    + * @param {number} x1
    + * @param {number} y1
    + * @param {number} x2
    + * @param {number} y2
    + * @param {number} x3
    + * @param {number} y3
    + * @param {Array.<number>} min
    + * @param {Array.<number>} max
    + */
    +function fromCubic(
    +    x0, y0, x1, y1, x2, y2, x3, y3, min$$1, max$$1
    +) {
    +    var cubicExtrema$$1 = cubicExtrema;
    +    var cubicAt$$1 = cubicAt;
    +    var i;
    +    var n = cubicExtrema$$1(x0, x1, x2, x3, xDim);
    +    min$$1[0] = Infinity;
    +    min$$1[1] = Infinity;
    +    max$$1[0] = -Infinity;
    +    max$$1[1] = -Infinity;
    +
    +    for (i = 0; i < n; i++) {
    +        var x = cubicAt$$1(x0, x1, x2, x3, xDim[i]);
    +        min$$1[0] = mathMin$3(x, min$$1[0]);
    +        max$$1[0] = mathMax$3(x, max$$1[0]);
    +    }
    +    n = cubicExtrema$$1(y0, y1, y2, y3, yDim);
    +    for (i = 0; i < n; i++) {
    +        var y = cubicAt$$1(y0, y1, y2, y3, yDim[i]);
    +        min$$1[1] = mathMin$3(y, min$$1[1]);
    +        max$$1[1] = mathMax$3(y, max$$1[1]);
    +    }
    +
    +    min$$1[0] = mathMin$3(x0, min$$1[0]);
    +    max$$1[0] = mathMax$3(x0, max$$1[0]);
    +    min$$1[0] = mathMin$3(x3, min$$1[0]);
    +    max$$1[0] = mathMax$3(x3, max$$1[0]);
    +
    +    min$$1[1] = mathMin$3(y0, min$$1[1]);
    +    max$$1[1] = mathMax$3(y0, max$$1[1]);
    +    min$$1[1] = mathMin$3(y3, min$$1[1]);
    +    max$$1[1] = mathMax$3(y3, max$$1[1]);
    +}
    +
    +/**
    + * 从二阶贝塞尔曲线(p0, p1, p2)中计算出最小包围盒,写入`min`和`max`中
    + * @memberOf module:zrender/core/bbox
    + * @param {number} x0
    + * @param {number} y0
    + * @param {number} x1
    + * @param {number} y1
    + * @param {number} x2
    + * @param {number} y2
    + * @param {Array.<number>} min
    + * @param {Array.<number>} max
    + */
    +function fromQuadratic(x0, y0, x1, y1, x2, y2, min$$1, max$$1) {
    +    var quadraticExtremum$$1 = quadraticExtremum;
    +    var quadraticAt$$1 = quadraticAt;
    +    // Find extremities, where derivative in x dim or y dim is zero
    +    var tx =
    +        mathMax$3(
    +            mathMin$3(quadraticExtremum$$1(x0, x1, x2), 1), 0
    +        );
    +    var ty =
    +        mathMax$3(
    +            mathMin$3(quadraticExtremum$$1(y0, y1, y2), 1), 0
    +        );
    +
    +    var x = quadraticAt$$1(x0, x1, x2, tx);
    +    var y = quadraticAt$$1(y0, y1, y2, ty);
    +
    +    min$$1[0] = mathMin$3(x0, x2, x);
    +    min$$1[1] = mathMin$3(y0, y2, y);
    +    max$$1[0] = mathMax$3(x0, x2, x);
    +    max$$1[1] = mathMax$3(y0, y2, y);
    +}
    +
    +/**
    + * 从圆弧中计算出最小包围盒,写入`min`和`max`中
    + * @method
    + * @memberOf module:zrender/core/bbox
    + * @param {number} x
    + * @param {number} y
    + * @param {number} rx
    + * @param {number} ry
    + * @param {number} startAngle
    + * @param {number} endAngle
    + * @param {number} anticlockwise
    + * @param {Array.<number>} min
    + * @param {Array.<number>} max
    + */
    +function fromArc(
    +    x, y, rx, ry, startAngle, endAngle, anticlockwise, min$$1, max$$1
    +) {
    +    var vec2Min = min;
    +    var vec2Max = max;
    +
    +    var diff = Math.abs(startAngle - endAngle);
    +
    +
    +    if (diff % PI2 < 1e-4 && diff > 1e-4) {
    +        // Is a circle
    +        min$$1[0] = x - rx;
    +        min$$1[1] = y - ry;
    +        max$$1[0] = x + rx;
    +        max$$1[1] = y + ry;
    +        return;
    +    }
    +
    +    start[0] = mathCos$2(startAngle) * rx + x;
    +    start[1] = mathSin$2(startAngle) * ry + y;
    +
    +    end[0] = mathCos$2(endAngle) * rx + x;
    +    end[1] = mathSin$2(endAngle) * ry + y;
    +
    +    vec2Min(min$$1, start, end);
    +    vec2Max(max$$1, start, end);
    +
    +    // Thresh to [0, Math.PI * 2]
    +    startAngle = startAngle % (PI2);
    +    if (startAngle < 0) {
    +        startAngle = startAngle + PI2;
    +    }
    +    endAngle = endAngle % (PI2);
    +    if (endAngle < 0) {
    +        endAngle = endAngle + PI2;
    +    }
    +
    +    if (startAngle > endAngle && !anticlockwise) {
    +        endAngle += PI2;
    +    }
    +    else if (startAngle < endAngle && anticlockwise) {
    +        startAngle += PI2;
    +    }
    +    if (anticlockwise) {
    +        var tmp = endAngle;
    +        endAngle = startAngle;
    +        startAngle = tmp;
    +    }
    +
    +    // var number = 0;
    +    // var step = (anticlockwise ? -Math.PI : Math.PI) / 2;
    +    for (var angle = 0; angle < endAngle; angle += Math.PI / 2) {
    +        if (angle > startAngle) {
    +            extremity[0] = mathCos$2(angle) * rx + x;
    +            extremity[1] = mathSin$2(angle) * ry + y;
    +
    +            vec2Min(min$$1, extremity, min$$1);
    +            vec2Max(max$$1, extremity, max$$1);
    +        }
    +    }
    +}
    +
    +/**
    + * Path 代理,可以在`buildPath`中用于替代`ctx`, 会保存每个path操作的命令到pathCommands属性中
    + * 可以用于 isInsidePath 判断以及获取boundingRect
    + *
    + * @module zrender/core/PathProxy
    + * @author Yi Shen (http://www.github.com/pissang)
    + */
    +
    +// TODO getTotalLength, getPointAtLength
    +
    +var CMD = {
    +    M: 1,
    +    L: 2,
    +    C: 3,
    +    Q: 4,
    +    A: 5,
    +    Z: 6,
    +    // Rect
    +    R: 7
    +};
    +
    +// var CMD_MEM_SIZE = {
    +//     M: 3,
    +//     L: 3,
    +//     C: 7,
    +//     Q: 5,
    +//     A: 9,
    +//     R: 5,
    +//     Z: 1
    +// };
    +
    +var min$1 = [];
    +var max$1 = [];
    +var min2 = [];
    +var max2 = [];
    +var mathMin$2 = Math.min;
    +var mathMax$2 = Math.max;
    +var mathCos$1 = Math.cos;
    +var mathSin$1 = Math.sin;
    +var mathSqrt$1 = Math.sqrt;
    +var mathAbs = Math.abs;
    +
    +var hasTypedArray = typeof Float32Array != 'undefined';
    +
    +/**
    + * @alias module:zrender/core/PathProxy
    + * @constructor
    + */
    +var PathProxy = function (notSaveData) {
    +
    +    this._saveData = !(notSaveData || false);
    +
    +    if (this._saveData) {
    +        /**
    +         * Path data. Stored as flat array
    +         * @type {Array.<Object>}
    +         */
    +        this.data = [];
    +    }
    +
    +    this._ctx = null;
    +};
    +
    +/**
    + * 快速计算Path包围盒(并不是最小包围盒)
    + * @return {Object}
    + */
    +PathProxy.prototype = {
    +
    +    constructor: PathProxy,
    +
    +    _xi: 0,
    +    _yi: 0,
    +
    +    _x0: 0,
    +    _y0: 0,
    +    // Unit x, Unit y. Provide for avoiding drawing that too short line segment
    +    _ux: 0,
    +    _uy: 0,
    +
    +    _len: 0,
    +
    +    _lineDash: null,
    +
    +    _dashOffset: 0,
    +
    +    _dashIdx: 0,
    +
    +    _dashSum: 0,
    +
    +    /**
    +     * @readOnly
    +     */
    +    setScale: function (sx, sy) {
    +        this._ux = mathAbs(1 / devicePixelRatio / sx) || 0;
    +        this._uy = mathAbs(1 / devicePixelRatio / sy) || 0;
    +    },
    +
    +    getContext: function () {
    +        return this._ctx;
    +    },
    +
    +    /**
    +     * @param  {CanvasRenderingContext2D} ctx
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    beginPath: function (ctx) {
    +
    +        this._ctx = ctx;
    +
    +        ctx && ctx.beginPath();
    +
    +        ctx && (this.dpr = ctx.dpr);
    +
    +        // Reset
    +        if (this._saveData) {
    +            this._len = 0;
    +        }
    +
    +        if (this._lineDash) {
    +            this._lineDash = null;
    +
    +            this._dashOffset = 0;
    +        }
    +
    +        return this;
    +    },
    +
    +    /**
    +     * @param  {number} x
    +     * @param  {number} y
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    moveTo: function (x, y) {
    +        this.addData(CMD.M, x, y);
    +        this._ctx && this._ctx.moveTo(x, y);
    +
    +        // x0, y0, xi, yi 是记录在 _dashedXXXXTo 方法中使用
    +        // xi, yi 记录当前点, x0, y0 在 closePath 的时候回到起始点。
    +        // 有可能在 beginPath 之后直接调用 lineTo,这时候 x0, y0 需要
    +        // 在 lineTo 方法中记录,这里先不考虑这种情况,dashed line 也只在 IE10- 中不支持
    +        this._x0 = x;
    +        this._y0 = y;
    +
    +        this._xi = x;
    +        this._yi = y;
    +
    +        return this;
    +    },
    +
    +    /**
    +     * @param  {number} x
    +     * @param  {number} y
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    lineTo: function (x, y) {
    +        var exceedUnit = mathAbs(x - this._xi) > this._ux
    +            || mathAbs(y - this._yi) > this._uy
    +            // Force draw the first segment
    +            || this._len < 5;
    +
    +        this.addData(CMD.L, x, y);
    +
    +        if (this._ctx && exceedUnit) {
    +            this._needsDash() ? this._dashedLineTo(x, y)
    +                : this._ctx.lineTo(x, y);
    +        }
    +        if (exceedUnit) {
    +            this._xi = x;
    +            this._yi = y;
    +        }
    +
    +        return this;
    +    },
    +
    +    /**
    +     * @param  {number} x1
    +     * @param  {number} y1
    +     * @param  {number} x2
    +     * @param  {number} y2
    +     * @param  {number} x3
    +     * @param  {number} y3
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    bezierCurveTo: function (x1, y1, x2, y2, x3, y3) {
    +        this.addData(CMD.C, x1, y1, x2, y2, x3, y3);
    +        if (this._ctx) {
    +            this._needsDash() ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3)
    +                : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);
    +        }
    +        this._xi = x3;
    +        this._yi = y3;
    +        return this;
    +    },
    +
    +    /**
    +     * @param  {number} x1
    +     * @param  {number} y1
    +     * @param  {number} x2
    +     * @param  {number} y2
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    quadraticCurveTo: function (x1, y1, x2, y2) {
    +        this.addData(CMD.Q, x1, y1, x2, y2);
    +        if (this._ctx) {
    +            this._needsDash() ? this._dashedQuadraticTo(x1, y1, x2, y2)
    +                : this._ctx.quadraticCurveTo(x1, y1, x2, y2);
    +        }
    +        this._xi = x2;
    +        this._yi = y2;
    +        return this;
    +    },
    +
    +    /**
    +     * @param  {number} cx
    +     * @param  {number} cy
    +     * @param  {number} r
    +     * @param  {number} startAngle
    +     * @param  {number} endAngle
    +     * @param  {boolean} anticlockwise
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    arc: function (cx, cy, r, startAngle, endAngle, anticlockwise) {
    +        this.addData(
    +            CMD.A, cx, cy, r, r, startAngle, endAngle - startAngle, 0, anticlockwise ? 0 : 1
    +        );
    +        this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);
    +
    +        this._xi = mathCos$1(endAngle) * r + cx;
    +        this._yi = mathSin$1(endAngle) * r + cx;
    +        return this;
    +    },
    +
    +    // TODO
    +    arcTo: function (x1, y1, x2, y2, radius) {
    +        if (this._ctx) {
    +            this._ctx.arcTo(x1, y1, x2, y2, radius);
    +        }
    +        return this;
    +    },
    +
    +    // TODO
    +    rect: function (x, y, w, h) {
    +        this._ctx && this._ctx.rect(x, y, w, h);
    +        this.addData(CMD.R, x, y, w, h);
    +        return this;
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    closePath: function () {
    +        this.addData(CMD.Z);
    +
    +        var ctx = this._ctx;
    +        var x0 = this._x0;
    +        var y0 = this._y0;
    +        if (ctx) {
    +            this._needsDash() && this._dashedLineTo(x0, y0);
    +            ctx.closePath();
    +        }
    +
    +        this._xi = x0;
    +        this._yi = y0;
    +        return this;
    +    },
    +
    +    /**
    +     * Context 从外部传入,因为有可能是 rebuildPath 完之后再 fill。
    +     * stroke 同样
    +     * @param {CanvasRenderingContext2D} ctx
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    fill: function (ctx) {
    +        ctx && ctx.fill();
    +        this.toStatic();
    +    },
    +
    +    /**
    +     * @param {CanvasRenderingContext2D} ctx
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    stroke: function (ctx) {
    +        ctx && ctx.stroke();
    +        this.toStatic();
    +    },
    +
    +    /**
    +     * 必须在其它绘制命令前调用
    +     * Must be invoked before all other path drawing methods
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    setLineDash: function (lineDash) {
    +        if (lineDash instanceof Array) {
    +            this._lineDash = lineDash;
    +
    +            this._dashIdx = 0;
    +
    +            var lineDashSum = 0;
    +            for (var i = 0; i < lineDash.length; i++) {
    +                lineDashSum += lineDash[i];
    +            }
    +            this._dashSum = lineDashSum;
    +        }
    +        return this;
    +    },
    +
    +    /**
    +     * 必须在其它绘制命令前调用
    +     * Must be invoked before all other path drawing methods
    +     * @return {module:zrender/core/PathProxy}
    +     */
    +    setLineDashOffset: function (offset) {
    +        this._dashOffset = offset;
    +        return this;
    +    },
    +
    +    /**
    +     *
    +     * @return {boolean}
    +     */
    +    len: function () {
    +        return this._len;
    +    },
    +
    +    /**
    +     * 直接设置 Path 数据
    +     */
    +    setData: function (data) {
    +
    +        var len$$1 = data.length;
    +
    +        if (! (this.data && this.data.length == len$$1) && hasTypedArray) {
    +            this.data = new Float32Array(len$$1);
    +        }
    +
    +        for (var i = 0; i < len$$1; i++) {
    +            this.data[i] = data[i];
    +        }
    +
    +        this._len = len$$1;
    +    },
    +
    +    /**
    +     * 添加子路径
    +     * @param {module:zrender/core/PathProxy|Array.<module:zrender/core/PathProxy>} path
    +     */
    +    appendPath: function (path) {
    +        if (!(path instanceof Array)) {
    +            path = [path];
    +        }
    +        var len$$1 = path.length;
    +        var appendSize = 0;
    +        var offset = this._len;
    +        for (var i = 0; i < len$$1; i++) {
    +            appendSize += path[i].len();
    +        }
    +        if (hasTypedArray && (this.data instanceof Float32Array)) {
    +            this.data = new Float32Array(offset + appendSize);
    +        }
    +        for (var i = 0; i < len$$1; i++) {
    +            var appendPathData = path[i].data;
    +            for (var k = 0; k < appendPathData.length; k++) {
    +                this.data[offset++] = appendPathData[k];
    +            }
    +        }
    +        this._len = offset;
    +    },
    +
    +    /**
    +     * 填充 Path 数据。
    +     * 尽量复用而不申明新的数组。大部分图形重绘的指令数据长度都是不变的。
    +     */
    +    addData: function (cmd) {
    +        if (!this._saveData) {
    +            return;
    +        }
    +
    +        var data = this.data;
    +        if (this._len + arguments.length > data.length) {
    +            // 因为之前的数组已经转换成静态的 Float32Array
    +            // 所以不够用时需要扩展一个新的动态数组
    +            this._expandData();
    +            data = this.data;
    +        }
    +        for (var i = 0; i < arguments.length; i++) {
    +            data[this._len++] = arguments[i];
    +        }
    +
    +        this._prevCmd = cmd;
    +    },
    +
    +    _expandData: function () {
    +        // Only if data is Float32Array
    +        if (!(this.data instanceof Array)) {
    +            var newData = [];
    +            for (var i = 0; i < this._len; i++) {
    +                newData[i] = this.data[i];
    +            }
    +            this.data = newData;
    +        }
    +    },
    +
    +    /**
    +     * If needs js implemented dashed line
    +     * @return {boolean}
    +     * @private
    +     */
    +    _needsDash: function () {
    +        return this._lineDash;
    +    },
    +
    +    _dashedLineTo: function (x1, y1) {
    +        var dashSum = this._dashSum;
    +        var offset = this._dashOffset;
    +        var lineDash = this._lineDash;
    +        var ctx = this._ctx;
    +
    +        var x0 = this._xi;
    +        var y0 = this._yi;
    +        var dx = x1 - x0;
    +        var dy = y1 - y0;
    +        var dist$$1 = mathSqrt$1(dx * dx + dy * dy);
    +        var x = x0;
    +        var y = y0;
    +        var dash;
    +        var nDash = lineDash.length;
    +        var idx;
    +        dx /= dist$$1;
    +        dy /= dist$$1;
    +
    +        if (offset < 0) {
    +            // Convert to positive offset
    +            offset = dashSum + offset;
    +        }
    +        offset %= dashSum;
    +        x -= offset * dx;
    +        y -= offset * dy;
    +
    +        while ((dx > 0 && x <= x1) || (dx < 0 && x >= x1)
    +        || (dx == 0 && ((dy > 0 && y <= y1) || (dy < 0 && y >= y1)))) {
    +            idx = this._dashIdx;
    +            dash = lineDash[idx];
    +            x += dx * dash;
    +            y += dy * dash;
    +            this._dashIdx = (idx + 1) % nDash;
    +            // Skip positive offset
    +            if ((dx > 0 && x < x0) || (dx < 0 && x > x0) || (dy > 0 && y < y0) || (dy < 0 && y > y0)) {
    +                continue;
    +            }
    +            ctx[idx % 2 ? 'moveTo' : 'lineTo'](
    +                dx >= 0 ? mathMin$2(x, x1) : mathMax$2(x, x1),
    +                dy >= 0 ? mathMin$2(y, y1) : mathMax$2(y, y1)
    +            );
    +        }
    +        // Offset for next lineTo
    +        dx = x - x1;
    +        dy = y - y1;
    +        this._dashOffset = -mathSqrt$1(dx * dx + dy * dy);
    +    },
    +
    +    // Not accurate dashed line to
    +    _dashedBezierTo: function (x1, y1, x2, y2, x3, y3) {
    +        var dashSum = this._dashSum;
    +        var offset = this._dashOffset;
    +        var lineDash = this._lineDash;
    +        var ctx = this._ctx;
    +
    +        var x0 = this._xi;
    +        var y0 = this._yi;
    +        var t;
    +        var dx;
    +        var dy;
    +        var cubicAt$$1 = cubicAt;
    +        var bezierLen = 0;
    +        var idx = this._dashIdx;
    +        var nDash = lineDash.length;
    +
    +        var x;
    +        var y;
    +
    +        var tmpLen = 0;
    +
    +        if (offset < 0) {
    +            // Convert to positive offset
    +            offset = dashSum + offset;
    +        }
    +        offset %= dashSum;
    +        // Bezier approx length
    +        for (t = 0; t < 1; t += 0.1) {
    +            dx = cubicAt$$1(x0, x1, x2, x3, t + 0.1)
    +                - cubicAt$$1(x0, x1, x2, x3, t);
    +            dy = cubicAt$$1(y0, y1, y2, y3, t + 0.1)
    +                - cubicAt$$1(y0, y1, y2, y3, t);
    +            bezierLen += mathSqrt$1(dx * dx + dy * dy);
    +        }
    +
    +        // Find idx after add offset
    +        for (; idx < nDash; idx++) {
    +            tmpLen += lineDash[idx];
    +            if (tmpLen > offset) {
    +                break;
    +            }
    +        }
    +        t = (tmpLen - offset) / bezierLen;
    +
    +        while (t <= 1) {
    +
    +            x = cubicAt$$1(x0, x1, x2, x3, t);
    +            y = cubicAt$$1(y0, y1, y2, y3, t);
    +
    +            // Use line to approximate dashed bezier
    +            // Bad result if dash is long
    +            idx % 2 ? ctx.moveTo(x, y)
    +                : ctx.lineTo(x, y);
    +
    +            t += lineDash[idx] / bezierLen;
    +
    +            idx = (idx + 1) % nDash;
    +        }
    +
    +        // Finish the last segment and calculate the new offset
    +        (idx % 2 !== 0) && ctx.lineTo(x3, y3);
    +        dx = x3 - x;
    +        dy = y3 - y;
    +        this._dashOffset = -mathSqrt$1(dx * dx + dy * dy);
    +    },
    +
    +    _dashedQuadraticTo: function (x1, y1, x2, y2) {
    +        // Convert quadratic to cubic using degree elevation
    +        var x3 = x2;
    +        var y3 = y2;
    +        x2 = (x2 + 2 * x1) / 3;
    +        y2 = (y2 + 2 * y1) / 3;
    +        x1 = (this._xi + 2 * x1) / 3;
    +        y1 = (this._yi + 2 * y1) / 3;
    +
    +        this._dashedBezierTo(x1, y1, x2, y2, x3, y3);
    +    },
    +
    +    /**
    +     * 转成静态的 Float32Array 减少堆内存占用
    +     * Convert dynamic array to static Float32Array
    +     */
    +    toStatic: function () {
    +        var data = this.data;
    +        if (data instanceof Array) {
    +            data.length = this._len;
    +            if (hasTypedArray) {
    +                this.data = new Float32Array(data);
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getBoundingRect: function () {
    +        min$1[0] = min$1[1] = min2[0] = min2[1] = Number.MAX_VALUE;
    +        max$1[0] = max$1[1] = max2[0] = max2[1] = -Number.MAX_VALUE;
    +
    +        var data = this.data;
    +        var xi = 0;
    +        var yi = 0;
    +        var x0 = 0;
    +        var y0 = 0;
    +
    +        for (var i = 0; i < data.length;) {
    +            var cmd = data[i++];
    +
    +            if (i == 1) {
    +                // 如果第一个命令是 L, C, Q
    +                // 则 previous point 同绘制命令的第一个 point
    +                //
    +                // 第一个命令为 Arc 的情况下会在后面特殊处理
    +                xi = data[i];
    +                yi = data[i + 1];
    +
    +                x0 = xi;
    +                y0 = yi;
    +            }
    +
    +            switch (cmd) {
    +                case CMD.M:
    +                    // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
    +                    // 在 closePath 的时候使用
    +                    x0 = data[i++];
    +                    y0 = data[i++];
    +                    xi = x0;
    +                    yi = y0;
    +                    min2[0] = x0;
    +                    min2[1] = y0;
    +                    max2[0] = x0;
    +                    max2[1] = y0;
    +                    break;
    +                case CMD.L:
    +                    fromLine(xi, yi, data[i], data[i + 1], min2, max2);
    +                    xi = data[i++];
    +                    yi = data[i++];
    +                    break;
    +                case CMD.C:
    +                    fromCubic(
    +                        xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],
    +                        min2, max2
    +                    );
    +                    xi = data[i++];
    +                    yi = data[i++];
    +                    break;
    +                case CMD.Q:
    +                    fromQuadratic(
    +                        xi, yi, data[i++], data[i++], data[i], data[i + 1],
    +                        min2, max2
    +                    );
    +                    xi = data[i++];
    +                    yi = data[i++];
    +                    break;
    +                case CMD.A:
    +                    // TODO Arc 判断的开销比较大
    +                    var cx = data[i++];
    +                    var cy = data[i++];
    +                    var rx = data[i++];
    +                    var ry = data[i++];
    +                    var startAngle = data[i++];
    +                    var endAngle = data[i++] + startAngle;
    +                    // TODO Arc 旋转
    +                    var psi = data[i++];
    +                    var anticlockwise = 1 - data[i++];
    +
    +                    if (i == 1) {
    +                        // 直接使用 arc 命令
    +                        // 第一个命令起点还未定义
    +                        x0 = mathCos$1(startAngle) * rx + cx;
    +                        y0 = mathSin$1(startAngle) * ry + cy;
    +                    }
    +
    +                    fromArc(
    +                        cx, cy, rx, ry, startAngle, endAngle,
    +                        anticlockwise, min2, max2
    +                    );
    +
    +                    xi = mathCos$1(endAngle) * rx + cx;
    +                    yi = mathSin$1(endAngle) * ry + cy;
    +                    break;
    +                case CMD.R:
    +                    x0 = xi = data[i++];
    +                    y0 = yi = data[i++];
    +                    var width = data[i++];
    +                    var height = data[i++];
    +                    // Use fromLine
    +                    fromLine(x0, y0, x0 + width, y0 + height, min2, max2);
    +                    break;
    +                case CMD.Z:
    +                    xi = x0;
    +                    yi = y0;
    +                    break;
    +            }
    +
    +            // Union
    +            min(min$1, min$1, min2);
    +            max(max$1, max$1, max2);
    +        }
    +
    +        // No data
    +        if (i === 0) {
    +            min$1[0] = min$1[1] = max$1[0] = max$1[1] = 0;
    +        }
    +
    +        return new BoundingRect(
    +            min$1[0], min$1[1], max$1[0] - min$1[0], max$1[1] - min$1[1]
    +        );
    +    },
    +
    +    /**
    +     * Rebuild path from current data
    +     * Rebuild path will not consider javascript implemented line dash.
    +     * @param {CanvasRenderingContext2D} ctx
    +     */
    +    rebuildPath: function (ctx) {
    +        var d = this.data;
    +        var x0, y0;
    +        var xi, yi;
    +        var x, y;
    +        var ux = this._ux;
    +        var uy = this._uy;
    +        var len$$1 = this._len;
    +        for (var i = 0; i < len$$1;) {
    +            var cmd = d[i++];
    +
    +            if (i == 1) {
    +                // 如果第一个命令是 L, C, Q
    +                // 则 previous point 同绘制命令的第一个 point
    +                //
    +                // 第一个命令为 Arc 的情况下会在后面特殊处理
    +                xi = d[i];
    +                yi = d[i + 1];
    +
    +                x0 = xi;
    +                y0 = yi;
    +            }
    +            switch (cmd) {
    +                case CMD.M:
    +                    x0 = xi = d[i++];
    +                    y0 = yi = d[i++];
    +                    ctx.moveTo(xi, yi);
    +                    break;
    +                case CMD.L:
    +                    x = d[i++];
    +                    y = d[i++];
    +                    // Not draw too small seg between
    +                    if (mathAbs(x - xi) > ux || mathAbs(y - yi) > uy || i === len$$1 - 1) {
    +                        ctx.lineTo(x, y);
    +                        xi = x;
    +                        yi = y;
    +                    }
    +                    break;
    +                case CMD.C:
    +                    ctx.bezierCurveTo(
    +                        d[i++], d[i++], d[i++], d[i++], d[i++], d[i++]
    +                    );
    +                    xi = d[i - 2];
    +                    yi = d[i - 1];
    +                    break;
    +                case CMD.Q:
    +                    ctx.quadraticCurveTo(d[i++], d[i++], d[i++], d[i++]);
    +                    xi = d[i - 2];
    +                    yi = d[i - 1];
    +                    break;
    +                case CMD.A:
    +                    var cx = d[i++];
    +                    var cy = d[i++];
    +                    var rx = d[i++];
    +                    var ry = d[i++];
    +                    var theta = d[i++];
    +                    var dTheta = d[i++];
    +                    var psi = d[i++];
    +                    var fs = d[i++];
    +                    var r = (rx > ry) ? rx : ry;
    +                    var scaleX = (rx > ry) ? 1 : rx / ry;
    +                    var scaleY = (rx > ry) ? ry / rx : 1;
    +                    var isEllipse = Math.abs(rx - ry) > 1e-3;
    +                    var endAngle = theta + dTheta;
    +                    if (isEllipse) {
    +                        ctx.translate(cx, cy);
    +                        ctx.rotate(psi);
    +                        ctx.scale(scaleX, scaleY);
    +                        ctx.arc(0, 0, r, theta, endAngle, 1 - fs);
    +                        ctx.scale(1 / scaleX, 1 / scaleY);
    +                        ctx.rotate(-psi);
    +                        ctx.translate(-cx, -cy);
    +                    }
    +                    else {
    +                        ctx.arc(cx, cy, r, theta, endAngle, 1 - fs);
    +                    }
    +
    +                    if (i == 1) {
    +                        // 直接使用 arc 命令
    +                        // 第一个命令起点还未定义
    +                        x0 = mathCos$1(theta) * rx + cx;
    +                        y0 = mathSin$1(theta) * ry + cy;
    +                    }
    +                    xi = mathCos$1(endAngle) * rx + cx;
    +                    yi = mathSin$1(endAngle) * ry + cy;
    +                    break;
    +                case CMD.R:
    +                    x0 = xi = d[i];
    +                    y0 = yi = d[i + 1];
    +                    ctx.rect(d[i++], d[i++], d[i++], d[i++]);
    +                    break;
    +                case CMD.Z:
    +                    ctx.closePath();
    +                    xi = x0;
    +                    yi = y0;
    +            }
    +        }
    +    }
    +};
    +
    +PathProxy.CMD = CMD;
    +
    +/**
    + * 线段包含判断
    + * @param  {number}  x0
    + * @param  {number}  y0
    + * @param  {number}  x1
    + * @param  {number}  y1
    + * @param  {number}  lineWidth
    + * @param  {number}  x
    + * @param  {number}  y
    + * @return {boolean}
    + */
    +function containStroke$1(x0, y0, x1, y1, lineWidth, x, y) {
    +    if (lineWidth === 0) {
    +        return false;
    +    }
    +    var _l = lineWidth;
    +    var _a = 0;
    +    var _b = x0;
    +    // Quick reject
    +    if (
    +        (y > y0 + _l && y > y1 + _l)
    +        || (y < y0 - _l && y < y1 - _l)
    +        || (x > x0 + _l && x > x1 + _l)
    +        || (x < x0 - _l && x < x1 - _l)
    +    ) {
    +        return false;
    +    }
    +
    +    if (x0 !== x1) {
    +        _a = (y0 - y1) / (x0 - x1);
    +        _b = (x0 * y1 - x1 * y0) / (x0 - x1) ;
    +    }
    +    else {
    +        return Math.abs(x - x0) <= _l / 2;
    +    }
    +    var tmp = _a * x - y + _b;
    +    var _s = tmp * tmp / (_a * _a + 1);
    +    return _s <= _l / 2 * _l / 2;
    +}
    +
    +/**
    + * 三次贝塞尔曲线描边包含判断
    + * @param  {number}  x0
    + * @param  {number}  y0
    + * @param  {number}  x1
    + * @param  {number}  y1
    + * @param  {number}  x2
    + * @param  {number}  y2
    + * @param  {number}  x3
    + * @param  {number}  y3
    + * @param  {number}  lineWidth
    + * @param  {number}  x
    + * @param  {number}  y
    + * @return {boolean}
    + */
    +function containStroke$2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
    +    if (lineWidth === 0) {
    +        return false;
    +    }
    +    var _l = lineWidth;
    +    // Quick reject
    +    if (
    +        (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)
    +        || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)
    +        || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)
    +        || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)
    +    ) {
    +        return false;
    +    }
    +    var d = cubicProjectPoint(
    +        x0, y0, x1, y1, x2, y2, x3, y3,
    +        x, y, null
    +    );
    +    return d <= _l / 2;
    +}
    +
    +/**
    + * 二次贝塞尔曲线描边包含判断
    + * @param  {number}  x0
    + * @param  {number}  y0
    + * @param  {number}  x1
    + * @param  {number}  y1
    + * @param  {number}  x2
    + * @param  {number}  y2
    + * @param  {number}  lineWidth
    + * @param  {number}  x
    + * @param  {number}  y
    + * @return {boolean}
    + */
    +function containStroke$3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
    +    if (lineWidth === 0) {
    +        return false;
    +    }
    +    var _l = lineWidth;
    +    // Quick reject
    +    if (
    +        (y > y0 + _l && y > y1 + _l && y > y2 + _l)
    +        || (y < y0 - _l && y < y1 - _l && y < y2 - _l)
    +        || (x > x0 + _l && x > x1 + _l && x > x2 + _l)
    +        || (x < x0 - _l && x < x1 - _l && x < x2 - _l)
    +    ) {
    +        return false;
    +    }
    +    var d = quadraticProjectPoint(
    +        x0, y0, x1, y1, x2, y2,
    +        x, y, null
    +    );
    +    return d <= _l / 2;
    +}
    +
    +var PI2$3 = Math.PI * 2;
    +
    +function normalizeRadian(angle) {
    +    angle %= PI2$3;
    +    if (angle < 0) {
    +        angle += PI2$3;
    +    }
    +    return angle;
    +}
    +
    +var PI2$2 = Math.PI * 2;
    +
    +/**
    + * 圆弧描边包含判断
    + * @param  {number}  cx
    + * @param  {number}  cy
    + * @param  {number}  r
    + * @param  {number}  startAngle
    + * @param  {number}  endAngle
    + * @param  {boolean}  anticlockwise
    + * @param  {number} lineWidth
    + * @param  {number}  x
    + * @param  {number}  y
    + * @return {Boolean}
    + */
    +function containStroke$4(
    +    cx, cy, r, startAngle, endAngle, anticlockwise,
    +    lineWidth, x, y
    +) {
    +
    +    if (lineWidth === 0) {
    +        return false;
    +    }
    +    var _l = lineWidth;
    +
    +    x -= cx;
    +    y -= cy;
    +    var d = Math.sqrt(x * x + y * y);
    +
    +    if ((d - _l > r) || (d + _l < r)) {
    +        return false;
    +    }
    +    if (Math.abs(startAngle - endAngle) % PI2$2 < 1e-4) {
    +        // Is a circle
    +        return true;
    +    }
    +    if (anticlockwise) {
    +        var tmp = startAngle;
    +        startAngle = normalizeRadian(endAngle);
    +        endAngle = normalizeRadian(tmp);
    +    } else {
    +        startAngle = normalizeRadian(startAngle);
    +        endAngle = normalizeRadian(endAngle);
    +    }
    +    if (startAngle > endAngle) {
    +        endAngle += PI2$2;
    +    }
    +
    +    var angle = Math.atan2(y, x);
    +    if (angle < 0) {
    +        angle += PI2$2;
    +    }
    +    return (angle >= startAngle && angle <= endAngle)
    +        || (angle + PI2$2 >= startAngle && angle + PI2$2 <= endAngle);
    +}
    +
    +function windingLine(x0, y0, x1, y1, x, y) {
    +    if ((y > y0 && y > y1) || (y < y0 && y < y1)) {
    +        return 0;
    +    }
    +    // Ignore horizontal line
    +    if (y1 === y0) {
    +        return 0;
    +    }
    +    var dir = y1 < y0 ? 1 : -1;
    +    var t = (y - y0) / (y1 - y0);
    +
    +    // Avoid winding error when intersection point is the connect point of two line of polygon
    +    if (t === 1 || t === 0) {
    +        dir = y1 < y0 ? 0.5 : -0.5;
    +    }
    +
    +    var x_ = t * (x1 - x0) + x0;
    +
    +    return x_ > x ? dir : 0;
    +}
    +
    +var CMD$1 = PathProxy.CMD;
    +var PI2$1 = Math.PI * 2;
    +
    +var EPSILON$2 = 1e-4;
    +
    +function isAroundEqual(a, b) {
    +    return Math.abs(a - b) < EPSILON$2;
    +}
    +
    +// 临时数组
    +var roots = [-1, -1, -1];
    +var extrema = [-1, -1];
    +
    +function swapExtrema() {
    +    var tmp = extrema[0];
    +    extrema[0] = extrema[1];
    +    extrema[1] = tmp;
    +}
    +
    +function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
    +    // Quick reject
    +    if (
    +        (y > y0 && y > y1 && y > y2 && y > y3)
    +        || (y < y0 && y < y1 && y < y2 && y < y3)
    +    ) {
    +        return 0;
    +    }
    +    var nRoots = cubicRootAt(y0, y1, y2, y3, y, roots);
    +    if (nRoots === 0) {
    +        return 0;
    +    }
    +    else {
    +        var w = 0;
    +        var nExtrema = -1;
    +        var y0_, y1_;
    +        for (var i = 0; i < nRoots; i++) {
    +            var t = roots[i];
    +
    +            // Avoid winding error when intersection point is the connect point of two line of polygon
    +            var unit = (t === 0 || t === 1) ? 0.5 : 1;
    +
    +            var x_ = cubicAt(x0, x1, x2, x3, t);
    +            if (x_ < x) { // Quick reject
    +                continue;
    +            }
    +            if (nExtrema < 0) {
    +                nExtrema = cubicExtrema(y0, y1, y2, y3, extrema);
    +                if (extrema[1] < extrema[0] && nExtrema > 1) {
    +                    swapExtrema();
    +                }
    +                y0_ = cubicAt(y0, y1, y2, y3, extrema[0]);
    +                if (nExtrema > 1) {
    +                    y1_ = cubicAt(y0, y1, y2, y3, extrema[1]);
    +                }
    +            }
    +            if (nExtrema == 2) {
    +                // 分成三段单调函数
    +                if (t < extrema[0]) {
    +                    w += y0_ < y0 ? unit : -unit;
    +                }
    +                else if (t < extrema[1]) {
    +                    w += y1_ < y0_ ? unit : -unit;
    +                }
    +                else {
    +                    w += y3 < y1_ ? unit : -unit;
    +                }
    +            }
    +            else {
    +                // 分成两段单调函数
    +                if (t < extrema[0]) {
    +                    w += y0_ < y0 ? unit : -unit;
    +                }
    +                else {
    +                    w += y3 < y0_ ? unit : -unit;
    +                }
    +            }
    +        }
    +        return w;
    +    }
    +}
    +
    +function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {
    +    // Quick reject
    +    if (
    +        (y > y0 && y > y1 && y > y2)
    +        || (y < y0 && y < y1 && y < y2)
    +    ) {
    +        return 0;
    +    }
    +    var nRoots = quadraticRootAt(y0, y1, y2, y, roots);
    +    if (nRoots === 0) {
    +        return 0;
    +    }
    +    else {
    +        var t = quadraticExtremum(y0, y1, y2);
    +        if (t >= 0 && t <= 1) {
    +            var w = 0;
    +            var y_ = quadraticAt(y0, y1, y2, t);
    +            for (var i = 0; i < nRoots; i++) {
    +                // Remove one endpoint.
    +                var unit = (roots[i] === 0 || roots[i] === 1) ? 0.5 : 1;
    +
    +                var x_ = quadraticAt(x0, x1, x2, roots[i]);
    +                if (x_ < x) {   // Quick reject
    +                    continue;
    +                }
    +                if (roots[i] < t) {
    +                    w += y_ < y0 ? unit : -unit;
    +                }
    +                else {
    +                    w += y2 < y_ ? unit : -unit;
    +                }
    +            }
    +            return w;
    +        }
    +        else {
    +            // Remove one endpoint.
    +            var unit = (roots[0] === 0 || roots[0] === 1) ? 0.5 : 1;
    +
    +            var x_ = quadraticAt(x0, x1, x2, roots[0]);
    +            if (x_ < x) {   // Quick reject
    +                return 0;
    +            }
    +            return y2 < y0 ? unit : -unit;
    +        }
    +    }
    +}
    +
    +// TODO
    +// Arc 旋转
    +function windingArc(
    +    cx, cy, r, startAngle, endAngle, anticlockwise, x, y
    +) {
    +    y -= cy;
    +    if (y > r || y < -r) {
    +        return 0;
    +    }
    +    var tmp = Math.sqrt(r * r - y * y);
    +    roots[0] = -tmp;
    +    roots[1] = tmp;
    +
    +    var diff = Math.abs(startAngle - endAngle);
    +    if (diff < 1e-4) {
    +        return 0;
    +    }
    +    if (diff % PI2$1 < 1e-4) {
    +        // Is a circle
    +        startAngle = 0;
    +        endAngle = PI2$1;
    +        var dir = anticlockwise ? 1 : -1;
    +        if (x >= roots[0] + cx && x <= roots[1] + cx) {
    +            return dir;
    +        } else {
    +            return 0;
    +        }
    +    }
    +
    +    if (anticlockwise) {
    +        var tmp = startAngle;
    +        startAngle = normalizeRadian(endAngle);
    +        endAngle = normalizeRadian(tmp);
    +    }
    +    else {
    +        startAngle = normalizeRadian(startAngle);
    +        endAngle = normalizeRadian(endAngle);
    +    }
    +    if (startAngle > endAngle) {
    +        endAngle += PI2$1;
    +    }
    +
    +    var w = 0;
    +    for (var i = 0; i < 2; i++) {
    +        var x_ = roots[i];
    +        if (x_ + cx > x) {
    +            var angle = Math.atan2(y, x_);
    +            var dir = anticlockwise ? 1 : -1;
    +            if (angle < 0) {
    +                angle = PI2$1 + angle;
    +            }
    +            if (
    +                (angle >= startAngle && angle <= endAngle)
    +                || (angle + PI2$1 >= startAngle && angle + PI2$1 <= endAngle)
    +            ) {
    +                if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {
    +                    dir = -dir;
    +                }
    +                w += dir;
    +            }
    +        }
    +    }
    +    return w;
    +}
    +
    +function containPath(data, lineWidth, isStroke, x, y) {
    +    var w = 0;
    +    var xi = 0;
    +    var yi = 0;
    +    var x0 = 0;
    +    var y0 = 0;
    +
    +    for (var i = 0; i < data.length;) {
    +        var cmd = data[i++];
    +        // Begin a new subpath
    +        if (cmd === CMD$1.M && i > 1) {
    +            // Close previous subpath
    +            if (!isStroke) {
    +                w += windingLine(xi, yi, x0, y0, x, y);
    +            }
    +            // 如果被任何一个 subpath 包含
    +            // if (w !== 0) {
    +            //     return true;
    +            // }
    +        }
    +
    +        if (i == 1) {
    +            // 如果第一个命令是 L, C, Q
    +            // 则 previous point 同绘制命令的第一个 point
    +            //
    +            // 第一个命令为 Arc 的情况下会在后面特殊处理
    +            xi = data[i];
    +            yi = data[i + 1];
    +
    +            x0 = xi;
    +            y0 = yi;
    +        }
    +
    +        switch (cmd) {
    +            case CMD$1.M:
    +                // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
    +                // 在 closePath 的时候使用
    +                x0 = data[i++];
    +                y0 = data[i++];
    +                xi = x0;
    +                yi = y0;
    +                break;
    +            case CMD$1.L:
    +                if (isStroke) {
    +                    if (containStroke$1(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {
    +                        return true;
    +                    }
    +                }
    +                else {
    +                    // NOTE 在第一个命令为 L, C, Q 的时候会计算出 NaN
    +                    w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;
    +                }
    +                xi = data[i++];
    +                yi = data[i++];
    +                break;
    +            case CMD$1.C:
    +                if (isStroke) {
    +                    if (containStroke$2(xi, yi,
    +                        data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],
    +                        lineWidth, x, y
    +                    )) {
    +                        return true;
    +                    }
    +                }
    +                else {
    +                    w += windingCubic(
    +                        xi, yi,
    +                        data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],
    +                        x, y
    +                    ) || 0;
    +                }
    +                xi = data[i++];
    +                yi = data[i++];
    +                break;
    +            case CMD$1.Q:
    +                if (isStroke) {
    +                    if (containStroke$3(xi, yi,
    +                        data[i++], data[i++], data[i], data[i + 1],
    +                        lineWidth, x, y
    +                    )) {
    +                        return true;
    +                    }
    +                }
    +                else {
    +                    w += windingQuadratic(
    +                        xi, yi,
    +                        data[i++], data[i++], data[i], data[i + 1],
    +                        x, y
    +                    ) || 0;
    +                }
    +                xi = data[i++];
    +                yi = data[i++];
    +                break;
    +            case CMD$1.A:
    +                // TODO Arc 判断的开销比较大
    +                var cx = data[i++];
    +                var cy = data[i++];
    +                var rx = data[i++];
    +                var ry = data[i++];
    +                var theta = data[i++];
    +                var dTheta = data[i++];
    +                // TODO Arc 旋转
    +                var psi = data[i++];
    +                var anticlockwise = 1 - data[i++];
    +                var x1 = Math.cos(theta) * rx + cx;
    +                var y1 = Math.sin(theta) * ry + cy;
    +                // 不是直接使用 arc 命令
    +                if (i > 1) {
    +                    w += windingLine(xi, yi, x1, y1, x, y);
    +                }
    +                else {
    +                    // 第一个命令起点还未定义
    +                    x0 = x1;
    +                    y0 = y1;
    +                }
    +                // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放
    +                var _x = (x - cx) * ry / rx + cx;
    +                if (isStroke) {
    +                    if (containStroke$4(
    +                        cx, cy, ry, theta, theta + dTheta, anticlockwise,
    +                        lineWidth, _x, y
    +                    )) {
    +                        return true;
    +                    }
    +                }
    +                else {
    +                    w += windingArc(
    +                        cx, cy, ry, theta, theta + dTheta, anticlockwise,
    +                        _x, y
    +                    );
    +                }
    +                xi = Math.cos(theta + dTheta) * rx + cx;
    +                yi = Math.sin(theta + dTheta) * ry + cy;
    +                break;
    +            case CMD$1.R:
    +                x0 = xi = data[i++];
    +                y0 = yi = data[i++];
    +                var width = data[i++];
    +                var height = data[i++];
    +                var x1 = x0 + width;
    +                var y1 = y0 + height;
    +                if (isStroke) {
    +                    if (containStroke$1(x0, y0, x1, y0, lineWidth, x, y)
    +                        || containStroke$1(x1, y0, x1, y1, lineWidth, x, y)
    +                        || containStroke$1(x1, y1, x0, y1, lineWidth, x, y)
    +                        || containStroke$1(x0, y1, x0, y0, lineWidth, x, y)
    +                    ) {
    +                        return true;
    +                    }
    +                }
    +                else {
    +                    // FIXME Clockwise ?
    +                    w += windingLine(x1, y0, x1, y1, x, y);
    +                    w += windingLine(x0, y1, x0, y0, x, y);
    +                }
    +                break;
    +            case CMD$1.Z:
    +                if (isStroke) {
    +                    if (containStroke$1(
    +                        xi, yi, x0, y0, lineWidth, x, y
    +                    )) {
    +                        return true;
    +                    }
    +                }
    +                else {
    +                    // Close a subpath
    +                    w += windingLine(xi, yi, x0, y0, x, y);
    +                    // 如果被任何一个 subpath 包含
    +                    // FIXME subpaths may overlap
    +                    // if (w !== 0) {
    +                    //     return true;
    +                    // }
    +                }
    +                xi = x0;
    +                yi = y0;
    +                break;
    +        }
    +    }
    +    if (!isStroke && !isAroundEqual(yi, y0)) {
    +        w += windingLine(xi, yi, x0, y0, x, y) || 0;
    +    }
    +    return w !== 0;
    +}
    +
    +function contain(pathData, x, y) {
    +    return containPath(pathData, 0, false, x, y);
    +}
    +
    +function containStroke(pathData, lineWidth, x, y) {
    +    return containPath(pathData, lineWidth, true, x, y);
    +}
    +
    +var getCanvasPattern = Pattern.prototype.getCanvasPattern;
    +
    +var abs = Math.abs;
    +
    +var pathProxyForDraw = new PathProxy(true);
    +/**
    + * @alias module:zrender/graphic/Path
    + * @extends module:zrender/graphic/Displayable
    + * @constructor
    + * @param {Object} opts
    + */
    +function Path(opts) {
    +    Displayable.call(this, opts);
    +
    +    /**
    +     * @type {module:zrender/core/PathProxy}
    +     * @readOnly
    +     */
    +    this.path = null;
    +}
    +
    +Path.prototype = {
    +
    +    constructor: Path,
    +
    +    type: 'path',
    +
    +    __dirtyPath: true,
    +
    +    strokeContainThreshold: 5,
    +
    +    brush: function (ctx, prevEl) {
    +        var style = this.style;
    +        var path = this.path || pathProxyForDraw;
    +        var hasStroke = style.hasStroke();
    +        var hasFill = style.hasFill();
    +        var fill = style.fill;
    +        var stroke = style.stroke;
    +        var hasFillGradient = hasFill && !!(fill.colorStops);
    +        var hasStrokeGradient = hasStroke && !!(stroke.colorStops);
    +        var hasFillPattern = hasFill && !!(fill.image);
    +        var hasStrokePattern = hasStroke && !!(stroke.image);
    +
    +        style.bind(ctx, this, prevEl);
    +        this.setTransform(ctx);
    +
    +        if (this.__dirty) {
    +            var rect;
    +            // Update gradient because bounding rect may changed
    +            if (hasFillGradient) {
    +                rect = rect || this.getBoundingRect();
    +                this._fillGradient = style.getGradient(ctx, fill, rect);
    +            }
    +            if (hasStrokeGradient) {
    +                rect = rect || this.getBoundingRect();
    +                this._strokeGradient = style.getGradient(ctx, stroke, rect);
    +            }
    +        }
    +        // Use the gradient or pattern
    +        if (hasFillGradient) {
    +            // PENDING If may have affect the state
    +            ctx.fillStyle = this._fillGradient;
    +        }
    +        else if (hasFillPattern) {
    +            ctx.fillStyle = getCanvasPattern.call(fill, ctx);
    +        }
    +        if (hasStrokeGradient) {
    +            ctx.strokeStyle = this._strokeGradient;
    +        }
    +        else if (hasStrokePattern) {
    +            ctx.strokeStyle = getCanvasPattern.call(stroke, ctx);
    +        }
    +
    +        var lineDash = style.lineDash;
    +        var lineDashOffset = style.lineDashOffset;
    +
    +        var ctxLineDash = !!ctx.setLineDash;
    +
    +        // Update path sx, sy
    +        var scale = this.getGlobalScale();
    +        path.setScale(scale[0], scale[1]);
    +
    +        // Proxy context
    +        // Rebuild path in following 2 cases
    +        // 1. Path is dirty
    +        // 2. Path needs javascript implemented lineDash stroking.
    +        //    In this case, lineDash information will not be saved in PathProxy
    +        if (this.__dirtyPath
    +            || (lineDash && !ctxLineDash && hasStroke)
    +        ) {
    +            path.beginPath(ctx);
    +
    +            // Setting line dash before build path
    +            if (lineDash && !ctxLineDash) {
    +                path.setLineDash(lineDash);
    +                path.setLineDashOffset(lineDashOffset);
    +            }
    +
    +            this.buildPath(path, this.shape, false);
    +
    +            // Clear path dirty flag
    +            if (this.path) {
    +                this.__dirtyPath = false;
    +            }
    +        }
    +        else {
    +            // Replay path building
    +            ctx.beginPath();
    +            this.path.rebuildPath(ctx);
    +        }
    +
    +        hasFill && path.fill(ctx);
    +
    +        if (lineDash && ctxLineDash) {
    +            ctx.setLineDash(lineDash);
    +            ctx.lineDashOffset = lineDashOffset;
    +        }
    +
    +        hasStroke && path.stroke(ctx);
    +
    +        if (lineDash && ctxLineDash) {
    +            // PENDING
    +            // Remove lineDash
    +            ctx.setLineDash([]);
    +        }
    +
    +        this.restoreTransform(ctx);
    +
    +        // Draw rect text
    +        if (style.text != null) {
    +            this.drawRectText(ctx, this.getBoundingRect());
    +        }
    +    },
    +
    +    // When bundling path, some shape may decide if use moveTo to begin a new subpath or closePath
    +    // Like in circle
    +    buildPath: function (ctx, shapeCfg, inBundle) {},
    +
    +    createPathProxy: function () {
    +        this.path = new PathProxy();
    +    },
    +
    +    getBoundingRect: function () {
    +        var rect = this._rect;
    +        var style = this.style;
    +        var needsUpdateRect = !rect;
    +        if (needsUpdateRect) {
    +            var path = this.path;
    +            if (!path) {
    +                // Create path on demand.
    +                path = this.path = new PathProxy();
    +            }
    +            if (this.__dirtyPath) {
    +                path.beginPath();
    +                this.buildPath(path, this.shape, false);
    +            }
    +            rect = path.getBoundingRect();
    +        }
    +        this._rect = rect;
    +
    +        if (style.hasStroke()) {
    +            // Needs update rect with stroke lineWidth when
    +            // 1. Element changes scale or lineWidth
    +            // 2. Shape is changed
    +            var rectWithStroke = this._rectWithStroke || (this._rectWithStroke = rect.clone());
    +            if (this.__dirty || needsUpdateRect) {
    +                rectWithStroke.copy(rect);
    +                // FIXME Must after updateTransform
    +                var w = style.lineWidth;
    +                // PENDING, Min line width is needed when line is horizontal or vertical
    +                var lineScale = style.strokeNoScale ? this.getLineScale() : 1;
    +
    +                // Only add extra hover lineWidth when there are no fill
    +                if (!style.hasFill()) {
    +                    w = Math.max(w, this.strokeContainThreshold || 4);
    +                }
    +                // Consider line width
    +                // Line scale can't be 0;
    +                if (lineScale > 1e-10) {
    +                    rectWithStroke.width += w / lineScale;
    +                    rectWithStroke.height += w / lineScale;
    +                    rectWithStroke.x -= w / lineScale / 2;
    +                    rectWithStroke.y -= w / lineScale / 2;
    +                }
    +            }
    +
    +            // Return rect with stroke
    +            return rectWithStroke;
    +        }
    +
    +        return rect;
    +    },
    +
    +    contain: function (x, y) {
    +        var localPos = this.transformCoordToLocal(x, y);
    +        var rect = this.getBoundingRect();
    +        var style = this.style;
    +        x = localPos[0];
    +        y = localPos[1];
    +
    +        if (rect.contain(x, y)) {
    +            var pathData = this.path.data;
    +            if (style.hasStroke()) {
    +                var lineWidth = style.lineWidth;
    +                var lineScale = style.strokeNoScale ? this.getLineScale() : 1;
    +                // Line scale can't be 0;
    +                if (lineScale > 1e-10) {
    +                    // Only add extra hover lineWidth when there are no fill
    +                    if (!style.hasFill()) {
    +                        lineWidth = Math.max(lineWidth, this.strokeContainThreshold);
    +                    }
    +                    if (containStroke(
    +                        pathData, lineWidth / lineScale, x, y
    +                    )) {
    +                        return true;
    +                    }
    +                }
    +            }
    +            if (style.hasFill()) {
    +                return contain(pathData, x, y);
    +            }
    +        }
    +        return false;
    +    },
    +
    +    /**
    +     * @param  {boolean} dirtyPath
    +     */
    +    dirty: function (dirtyPath) {
    +        if (dirtyPath == null) {
    +            dirtyPath = true;
    +        }
    +        // Only mark dirty, not mark clean
    +        if (dirtyPath) {
    +            this.__dirtyPath = dirtyPath;
    +            this._rect = null;
    +        }
    +
    +        this.__dirty = true;
    +
    +        this.__zr && this.__zr.refresh();
    +
    +        // Used as a clipping path
    +        if (this.__clipTarget) {
    +            this.__clipTarget.dirty();
    +        }
    +    },
    +
    +    /**
    +     * Alias for animate('shape')
    +     * @param {boolean} loop
    +     */
    +    animateShape: function (loop) {
    +        return this.animate('shape', loop);
    +    },
    +
    +    // Overwrite attrKV
    +    attrKV: function (key, value) {
    +        // FIXME
    +        if (key === 'shape') {
    +            this.setShape(value);
    +            this.__dirtyPath = true;
    +            this._rect = null;
    +        }
    +        else {
    +            Displayable.prototype.attrKV.call(this, key, value);
    +        }
    +    },
    +
    +    /**
    +     * @param {Object|string} key
    +     * @param {*} value
    +     */
    +    setShape: function (key, value) {
    +        var shape = this.shape;
    +        // Path from string may not have shape
    +        if (shape) {
    +            if (isObject(key)) {
    +                for (var name in key) {
    +                    if (key.hasOwnProperty(name)) {
    +                        shape[name] = key[name];
    +                    }
    +                }
    +            }
    +            else {
    +                shape[key] = value;
    +            }
    +            this.dirty(true);
    +        }
    +        return this;
    +    },
    +
    +    getLineScale: function () {
    +        var m = this.transform;
    +        // Get the line scale.
    +        // Determinant of `m` means how much the area is enlarged by the
    +        // transformation. So its square root can be used as a scale factor
    +        // for width.
    +        return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10
    +            ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1]))
    +            : 1;
    +    }
    +};
    +
    +/**
    + * 扩展一个 Path element, 比如星形,圆等。
    + * Extend a path element
    + * @param {Object} props
    + * @param {string} props.type Path type
    + * @param {Function} props.init Initialize
    + * @param {Function} props.buildPath Overwrite buildPath method
    + * @param {Object} [props.style] Extended default style config
    + * @param {Object} [props.shape] Extended default shape config
    + */
    +Path.extend = function (defaults$$1) {
    +    var Sub = function (opts) {
    +        Path.call(this, opts);
    +
    +        if (defaults$$1.style) {
    +            // Extend default style
    +            this.style.extendFrom(defaults$$1.style, false);
    +        }
    +
    +        // Extend default shape
    +        var defaultShape = defaults$$1.shape;
    +        if (defaultShape) {
    +            this.shape = this.shape || {};
    +            var thisShape = this.shape;
    +            for (var name in defaultShape) {
    +                if (
    +                    ! thisShape.hasOwnProperty(name)
    +                    && defaultShape.hasOwnProperty(name)
    +                ) {
    +                    thisShape[name] = defaultShape[name];
    +                }
    +            }
    +        }
    +
    +        defaults$$1.init && defaults$$1.init.call(this, opts);
    +    };
    +
    +    inherits(Sub, Path);
    +
    +    // FIXME 不能 extend position, rotation 等引用对象
    +    for (var name in defaults$$1) {
    +        // Extending prototype values and methods
    +        if (name !== 'style' && name !== 'shape') {
    +            Sub.prototype[name] = defaults$$1[name];
    +        }
    +    }
    +
    +    return Sub;
    +};
    +
    +inherits(Path, Displayable);
    +
    +var CMD$2 = PathProxy.CMD;
    +
    +var points = [[], [], []];
    +var mathSqrt$3 = Math.sqrt;
    +var mathAtan2 = Math.atan2;
    +
    +var transformPath = function (path, m) {
    +    var data = path.data;
    +    var cmd;
    +    var nPoint;
    +    var i;
    +    var j;
    +    var k;
    +    var p;
    +
    +    var M = CMD$2.M;
    +    var C = CMD$2.C;
    +    var L = CMD$2.L;
    +    var R = CMD$2.R;
    +    var A = CMD$2.A;
    +    var Q = CMD$2.Q;
    +
    +    for (i = 0, j = 0; i < data.length;) {
    +        cmd = data[i++];
    +        j = i;
    +        nPoint = 0;
    +
    +        switch (cmd) {
    +            case M:
    +                nPoint = 1;
    +                break;
    +            case L:
    +                nPoint = 1;
    +                break;
    +            case C:
    +                nPoint = 3;
    +                break;
    +            case Q:
    +                nPoint = 2;
    +                break;
    +            case A:
    +                var x = m[4];
    +                var y = m[5];
    +                var sx = mathSqrt$3(m[0] * m[0] + m[1] * m[1]);
    +                var sy = mathSqrt$3(m[2] * m[2] + m[3] * m[3]);
    +                var angle = mathAtan2(-m[1] / sy, m[0] / sx);
    +                // cx
    +                data[i] *= sx;
    +                data[i++] += x;
    +                // cy
    +                data[i] *= sy;
    +                data[i++] += y;
    +                // Scale rx and ry
    +                // FIXME Assume psi is 0 here
    +                data[i++] *= sx;
    +                data[i++] *= sy;
    +
    +                // Start angle
    +                data[i++] += angle;
    +                // end angle
    +                data[i++] += angle;
    +                // FIXME psi
    +                i += 2;
    +                j = i;
    +                break;
    +            case R:
    +                // x0, y0
    +                p[0] = data[i++];
    +                p[1] = data[i++];
    +                applyTransform(p, p, m);
    +                data[j++] = p[0];
    +                data[j++] = p[1];
    +                // x1, y1
    +                p[0] += data[i++];
    +                p[1] += data[i++];
    +                applyTransform(p, p, m);
    +                data[j++] = p[0];
    +                data[j++] = p[1];
    +        }
    +
    +        for (k = 0; k < nPoint; k++) {
    +            var p = points[k];
    +            p[0] = data[i++];
    +            p[1] = data[i++];
    +
    +            applyTransform(p, p, m);
    +            // Write back
    +            data[j++] = p[0];
    +            data[j++] = p[1];
    +        }
    +    }
    +};
    +
    +// command chars
    +var cc = [
    +    'm', 'M', 'l', 'L', 'v', 'V', 'h', 'H', 'z', 'Z',
    +    'c', 'C', 'q', 'Q', 't', 'T', 's', 'S', 'a', 'A'
    +];
    +
    +var mathSqrt = Math.sqrt;
    +var mathSin = Math.sin;
    +var mathCos = Math.cos;
    +var PI = Math.PI;
    +
    +var vMag = function(v) {
    +    return Math.sqrt(v[0] * v[0] + v[1] * v[1]);
    +};
    +var vRatio = function(u, v) {
    +    return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));
    +};
    +var vAngle = function(u, v) {
    +    return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)
    +            * Math.acos(vRatio(u, v));
    +};
    +
    +function processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {
    +    var psi = psiDeg * (PI / 180.0);
    +    var xp = mathCos(psi) * (x1 - x2) / 2.0
    +                + mathSin(psi) * (y1 - y2) / 2.0;
    +    var yp = -1 * mathSin(psi) * (x1 - x2) / 2.0
    +                + mathCos(psi) * (y1 - y2) / 2.0;
    +
    +    var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);
    +
    +    if (lambda > 1) {
    +        rx *= mathSqrt(lambda);
    +        ry *= mathSqrt(lambda);
    +    }
    +
    +    var f = (fa === fs ? -1 : 1)
    +        * mathSqrt((((rx * rx) * (ry * ry))
    +                - ((rx * rx) * (yp * yp))
    +                - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)
    +                + (ry * ry) * (xp * xp))
    +            ) || 0;
    +
    +    var cxp = f * rx * yp / ry;
    +    var cyp = f * -ry * xp / rx;
    +
    +    var cx = (x1 + x2) / 2.0
    +                + mathCos(psi) * cxp
    +                - mathSin(psi) * cyp;
    +    var cy = (y1 + y2) / 2.0
    +            + mathSin(psi) * cxp
    +            + mathCos(psi) * cyp;
    +
    +    var theta = vAngle([ 1, 0 ], [ (xp - cxp) / rx, (yp - cyp) / ry ]);
    +    var u = [ (xp - cxp) / rx, (yp - cyp) / ry ];
    +    var v = [ (-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry ];
    +    var dTheta = vAngle(u, v);
    +
    +    if (vRatio(u, v) <= -1) {
    +        dTheta = PI;
    +    }
    +    if (vRatio(u, v) >= 1) {
    +        dTheta = 0;
    +    }
    +    if (fs === 0 && dTheta > 0) {
    +        dTheta = dTheta - 2 * PI;
    +    }
    +    if (fs === 1 && dTheta < 0) {
    +        dTheta = dTheta + 2 * PI;
    +    }
    +
    +    path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);
    +}
    +
    +function createPathProxyFromString(data) {
    +    if (!data) {
    +        return [];
    +    }
    +
    +    // command string
    +    var cs = data.replace(/-/g, ' -')
    +        .replace(/  /g, ' ')
    +        .replace(/ /g, ',')
    +        .replace(/,,/g, ',');
    +
    +    var n;
    +    // create pipes so that we can split the data
    +    for (n = 0; n < cc.length; n++) {
    +        cs = cs.replace(new RegExp(cc[n], 'g'), '|' + cc[n]);
    +    }
    +
    +    // create array
    +    var arr = cs.split('|');
    +    // init context point
    +    var cpx = 0;
    +    var cpy = 0;
    +
    +    var path = new PathProxy();
    +    var CMD = PathProxy.CMD;
    +
    +    var prevCmd;
    +    for (n = 1; n < arr.length; n++) {
    +        var str = arr[n];
    +        var c = str.charAt(0);
    +        var off = 0;
    +        var p = str.slice(1).replace(/e,-/g, 'e-').split(',');
    +        var cmd;
    +
    +        if (p.length > 0 && p[0] === '') {
    +            p.shift();
    +        }
    +
    +        for (var i = 0; i < p.length; i++) {
    +            p[i] = parseFloat(p[i]);
    +        }
    +        while (off < p.length && !isNaN(p[off])) {
    +            if (isNaN(p[0])) {
    +                break;
    +            }
    +            var ctlPtx;
    +            var ctlPty;
    +
    +            var rx;
    +            var ry;
    +            var psi;
    +            var fa;
    +            var fs;
    +
    +            var x1 = cpx;
    +            var y1 = cpy;
    +
    +            // convert l, H, h, V, and v to L
    +            switch (c) {
    +                case 'l':
    +                    cpx += p[off++];
    +                    cpy += p[off++];
    +                    cmd = CMD.L;
    +                    path.addData(cmd, cpx, cpy);
    +                    break;
    +                case 'L':
    +                    cpx = p[off++];
    +                    cpy = p[off++];
    +                    cmd = CMD.L;
    +                    path.addData(cmd, cpx, cpy);
    +                    break;
    +                case 'm':
    +                    cpx += p[off++];
    +                    cpy += p[off++];
    +                    cmd = CMD.M;
    +                    path.addData(cmd, cpx, cpy);
    +                    c = 'l';
    +                    break;
    +                case 'M':
    +                    cpx = p[off++];
    +                    cpy = p[off++];
    +                    cmd = CMD.M;
    +                    path.addData(cmd, cpx, cpy);
    +                    c = 'L';
    +                    break;
    +                case 'h':
    +                    cpx += p[off++];
    +                    cmd = CMD.L;
    +                    path.addData(cmd, cpx, cpy);
    +                    break;
    +                case 'H':
    +                    cpx = p[off++];
    +                    cmd = CMD.L;
    +                    path.addData(cmd, cpx, cpy);
    +                    break;
    +                case 'v':
    +                    cpy += p[off++];
    +                    cmd = CMD.L;
    +                    path.addData(cmd, cpx, cpy);
    +                    break;
    +                case 'V':
    +                    cpy = p[off++];
    +                    cmd = CMD.L;
    +                    path.addData(cmd, cpx, cpy);
    +                    break;
    +                case 'C':
    +                    cmd = CMD.C;
    +                    path.addData(
    +                        cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]
    +                    );
    +                    cpx = p[off - 2];
    +                    cpy = p[off - 1];
    +                    break;
    +                case 'c':
    +                    cmd = CMD.C;
    +                    path.addData(
    +                        cmd,
    +                        p[off++] + cpx, p[off++] + cpy,
    +                        p[off++] + cpx, p[off++] + cpy,
    +                        p[off++] + cpx, p[off++] + cpy
    +                    );
    +                    cpx += p[off - 2];
    +                    cpy += p[off - 1];
    +                    break;
    +                case 'S':
    +                    ctlPtx = cpx;
    +                    ctlPty = cpy;
    +                    var len = path.len();
    +                    var pathData = path.data;
    +                    if (prevCmd === CMD.C) {
    +                        ctlPtx += cpx - pathData[len - 4];
    +                        ctlPty += cpy - pathData[len - 3];
    +                    }
    +                    cmd = CMD.C;
    +                    x1 = p[off++];
    +                    y1 = p[off++];
    +                    cpx = p[off++];
    +                    cpy = p[off++];
    +                    path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);
    +                    break;
    +                case 's':
    +                    ctlPtx = cpx;
    +                    ctlPty = cpy;
    +                    var len = path.len();
    +                    var pathData = path.data;
    +                    if (prevCmd === CMD.C) {
    +                        ctlPtx += cpx - pathData[len - 4];
    +                        ctlPty += cpy - pathData[len - 3];
    +                    }
    +                    cmd = CMD.C;
    +                    x1 = cpx + p[off++];
    +                    y1 = cpy + p[off++];
    +                    cpx += p[off++];
    +                    cpy += p[off++];
    +                    path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);
    +                    break;
    +                case 'Q':
    +                    x1 = p[off++];
    +                    y1 = p[off++];
    +                    cpx = p[off++];
    +                    cpy = p[off++];
    +                    cmd = CMD.Q;
    +                    path.addData(cmd, x1, y1, cpx, cpy);
    +                    break;
    +                case 'q':
    +                    x1 = p[off++] + cpx;
    +                    y1 = p[off++] + cpy;
    +                    cpx += p[off++];
    +                    cpy += p[off++];
    +                    cmd = CMD.Q;
    +                    path.addData(cmd, x1, y1, cpx, cpy);
    +                    break;
    +                case 'T':
    +                    ctlPtx = cpx;
    +                    ctlPty = cpy;
    +                    var len = path.len();
    +                    var pathData = path.data;
    +                    if (prevCmd === CMD.Q) {
    +                        ctlPtx += cpx - pathData[len - 4];
    +                        ctlPty += cpy - pathData[len - 3];
    +                    }
    +                    cpx = p[off++];
    +                    cpy = p[off++];
    +                    cmd = CMD.Q;
    +                    path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);
    +                    break;
    +                case 't':
    +                    ctlPtx = cpx;
    +                    ctlPty = cpy;
    +                    var len = path.len();
    +                    var pathData = path.data;
    +                    if (prevCmd === CMD.Q) {
    +                        ctlPtx += cpx - pathData[len - 4];
    +                        ctlPty += cpy - pathData[len - 3];
    +                    }
    +                    cpx += p[off++];
    +                    cpy += p[off++];
    +                    cmd = CMD.Q;
    +                    path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);
    +                    break;
    +                case 'A':
    +                    rx = p[off++];
    +                    ry = p[off++];
    +                    psi = p[off++];
    +                    fa = p[off++];
    +                    fs = p[off++];
    +
    +                    x1 = cpx, y1 = cpy;
    +                    cpx = p[off++];
    +                    cpy = p[off++];
    +                    cmd = CMD.A;
    +                    processArc(
    +                        x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path
    +                    );
    +                    break;
    +                case 'a':
    +                    rx = p[off++];
    +                    ry = p[off++];
    +                    psi = p[off++];
    +                    fa = p[off++];
    +                    fs = p[off++];
    +
    +                    x1 = cpx, y1 = cpy;
    +                    cpx += p[off++];
    +                    cpy += p[off++];
    +                    cmd = CMD.A;
    +                    processArc(
    +                        x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path
    +                    );
    +                    break;
    +            }
    +        }
    +
    +        if (c === 'z' || c === 'Z') {
    +            cmd = CMD.Z;
    +            path.addData(cmd);
    +        }
    +
    +        prevCmd = cmd;
    +    }
    +
    +    path.toStatic();
    +
    +    return path;
    +}
    +
    +// TODO Optimize double memory cost problem
    +function createPathOptions(str, opts) {
    +    var pathProxy = createPathProxyFromString(str);
    +    opts = opts || {};
    +    opts.buildPath = function (path) {
    +        if (path.setData) {
    +            path.setData(pathProxy.data);
    +            // Svg and vml renderer don't have context
    +            var ctx = path.getContext();
    +            if (ctx) {
    +                path.rebuildPath(ctx);
    +            }
    +        }
    +        else {
    +            var ctx = path;
    +            pathProxy.rebuildPath(ctx);
    +        }
    +    };
    +
    +    opts.applyTransform = function (m) {
    +        transformPath(pathProxy, m);
    +
    +        this.dirty(true);
    +    };
    +
    +    return opts;
    +}
    +
    +/**
    + * Create a Path object from path string data
    + * http://www.w3.org/TR/SVG/paths.html#PathData
    + * @param  {Object} opts Other options
    + */
    +function createFromString(str, opts) {
    +    return new Path(createPathOptions(str, opts));
    +}
    +
    +/**
    + * Create a Path class from path string data
    + * @param  {string} str
    + * @param  {Object} opts Other options
    + */
    +function extendFromString(str, opts) {
    +    return Path.extend(createPathOptions(str, opts));
    +}
    +
    +/**
    + * Merge multiple paths
    + */
    +// TODO Apply transform
    +// TODO stroke dash
    +// TODO Optimize double memory cost problem
    +function mergePath$1(pathEls, opts) {
    +    var pathList = [];
    +    var len = pathEls.length;
    +    for (var i = 0; i < len; i++) {
    +        var pathEl = pathEls[i];
    +        if (!pathEl.path) {
    +            pathEl.createPathProxy();
    +        }
    +        if (pathEl.__dirtyPath) {
    +            pathEl.buildPath(pathEl.path, pathEl.shape, true);
    +        }
    +        pathList.push(pathEl.path);
    +    }
    +
    +    var pathBundle = new Path(opts);
    +    // Need path proxy.
    +    pathBundle.createPathProxy();
    +    pathBundle.buildPath = function (path) {
    +        path.appendPath(pathList);
    +        // Svg and vml renderer don't have context
    +        var ctx = path.getContext();
    +        if (ctx) {
    +            path.rebuildPath(ctx);
    +        }
    +    };
    +
    +    return pathBundle;
    +}
    +
    +/**
    + * @alias zrender/graphic/Text
    + * @extends module:zrender/graphic/Displayable
    + * @constructor
    + * @param {Object} opts
    + */
    +var Text = function (opts) { // jshint ignore:line
    +    Displayable.call(this, opts);
    +};
    +
    +Text.prototype = {
    +
    +    constructor: Text,
    +
    +    type: 'text',
    +
    +    brush: function (ctx, prevEl) {
    +        var style = this.style;
    +
    +        // Optimize, avoid normalize every time.
    +        this.__dirty && normalizeTextStyle(style, true);
    +
    +        // Use props with prefix 'text'.
    +        style.fill = style.stroke = style.shadowBlur = style.shadowColor =
    +            style.shadowOffsetX = style.shadowOffsetY = null;
    +
    +        var text = style.text;
    +        // Convert to string
    +        text != null && (text += '');
    +
    +        // Always bind style
    +        style.bind(ctx, this, prevEl);
    +
    +        if (!needDrawText(text, style)) {
    +            return;
    +        }
    +
    +        this.setTransform(ctx);
    +
    +        renderText(this, ctx, text, style);
    +
    +        this.restoreTransform(ctx);
    +    },
    +
    +    getBoundingRect: function () {
    +        var style = this.style;
    +
    +        // Optimize, avoid normalize every time.
    +        this.__dirty && normalizeTextStyle(style, true);
    +
    +        if (!this._rect) {
    +            var text = style.text;
    +            text != null ? (text += '') : (text = '');
    +
    +            var rect = getBoundingRect(
    +                style.text + '',
    +                style.font,
    +                style.textAlign,
    +                style.textVerticalAlign,
    +                style.textPadding,
    +                style.rich
    +            );
    +
    +            rect.x += style.x || 0;
    +            rect.y += style.y || 0;
    +
    +            if (getStroke(style.textStroke, style.textStrokeWidth)) {
    +                var w = style.textStrokeWidth;
    +                rect.x -= w / 2;
    +                rect.y -= w / 2;
    +                rect.width += w;
    +                rect.height += w;
    +            }
    +
    +            this._rect = rect;
    +        }
    +
    +        return this._rect;
    +    }
    +};
    +
    +inherits(Text, Displayable);
    +
    +/**
    + * 圆形
    + * @module zrender/shape/Circle
    + */
    +
    +var Circle = Path.extend({
    +
    +    type: 'circle',
    +
    +    shape: {
    +        cx: 0,
    +        cy: 0,
    +        r: 0
    +    },
    +
    +
    +    buildPath : function (ctx, shape, inBundle) {
    +        // Better stroking in ShapeBundle
    +        // Always do it may have performence issue ( fill may be 2x more cost)
    +        if (inBundle) {
    +            ctx.moveTo(shape.cx + shape.r, shape.cy);
    +        }
    +        // else {
    +        //     if (ctx.allocate && !ctx.data.length) {
    +        //         ctx.allocate(ctx.CMD_MEM_SIZE.A);
    +        //     }
    +        // }
    +        // Better stroking in ShapeBundle
    +        // ctx.moveTo(shape.cx + shape.r, shape.cy);
    +        ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2, true);
    +    }
    +});
    +
    +// Fix weird bug in some version of IE11 (like 11.0.9600.178**),
    +// where exception "unexpected call to method or property access"
    +// might be thrown when calling ctx.fill or ctx.stroke after a path
    +// whose area size is zero is drawn and ctx.clip() is called and
    +// shadowBlur is set. See #4572, #3112, #5777.
    +// (e.g.,
    +//  ctx.moveTo(10, 10);
    +//  ctx.lineTo(20, 10);
    +//  ctx.closePath();
    +//  ctx.clip();
    +//  ctx.shadowBlur = 10;
    +//  ...
    +//  ctx.fill();
    +// )
    +
    +var shadowTemp = [
    +    ['shadowBlur', 0],
    +    ['shadowColor', '#000'],
    +    ['shadowOffsetX', 0],
    +    ['shadowOffsetY', 0]
    +];
    +
    +var fixClipWithShadow = function (orignalBrush) {
    +
    +    // version string can be: '11.0'
    +    return (env$1.browser.ie && env$1.browser.version >= 11)
    +
    +        ? function () {
    +            var clipPaths = this.__clipPaths;
    +            var style = this.style;
    +            var modified;
    +
    +            if (clipPaths) {
    +                for (var i = 0; i < clipPaths.length; i++) {
    +                    var clipPath = clipPaths[i];
    +                    var shape = clipPath && clipPath.shape;
    +                    var type = clipPath && clipPath.type;
    +
    +                    if (shape && (
    +                        (type === 'sector' && shape.startAngle === shape.endAngle)
    +                        || (type === 'rect' && (!shape.width || !shape.height))
    +                    )) {
    +                        for (var j = 0; j < shadowTemp.length; j++) {
    +                            // It is save to put shadowTemp static, because shadowTemp
    +                            // will be all modified each item brush called.
    +                            shadowTemp[j][2] = style[shadowTemp[j][0]];
    +                            style[shadowTemp[j][0]] = shadowTemp[j][1];
    +                        }
    +                        modified = true;
    +                        break;
    +                    }
    +                }
    +            }
    +
    +            orignalBrush.apply(this, arguments);
    +
    +            if (modified) {
    +                for (var j = 0; j < shadowTemp.length; j++) {
    +                    style[shadowTemp[j][0]] = shadowTemp[j][2];
    +                }
    +            }
    +        }
    +
    +        : orignalBrush;
    +};
    +
    +/**
    + * 扇形
    + * @module zrender/graphic/shape/Sector
    + */
    +
    +var Sector = Path.extend({
    +
    +    type: 'sector',
    +
    +    shape: {
    +
    +        cx: 0,
    +
    +        cy: 0,
    +
    +        r0: 0,
    +
    +        r: 0,
    +
    +        startAngle: 0,
    +
    +        endAngle: Math.PI * 2,
    +
    +        clockwise: true
    +    },
    +
    +    brush: fixClipWithShadow(Path.prototype.brush),
    +
    +    buildPath: function (ctx, shape) {
    +
    +        var x = shape.cx;
    +        var y = shape.cy;
    +        var r0 = Math.max(shape.r0 || 0, 0);
    +        var r = Math.max(shape.r, 0);
    +        var startAngle = shape.startAngle;
    +        var endAngle = shape.endAngle;
    +        var clockwise = shape.clockwise;
    +
    +        var unitX = Math.cos(startAngle);
    +        var unitY = Math.sin(startAngle);
    +
    +        ctx.moveTo(unitX * r0 + x, unitY * r0 + y);
    +
    +        ctx.lineTo(unitX * r + x, unitY * r + y);
    +
    +        ctx.arc(x, y, r, startAngle, endAngle, !clockwise);
    +
    +        ctx.lineTo(
    +            Math.cos(endAngle) * r0 + x,
    +            Math.sin(endAngle) * r0 + y
    +        );
    +
    +        if (r0 !== 0) {
    +            ctx.arc(x, y, r0, endAngle, startAngle, clockwise);
    +        }
    +
    +        ctx.closePath();
    +    }
    +});
    +
    +/**
    + * 圆环
    + * @module zrender/graphic/shape/Ring
    + */
    +
    +var Ring = Path.extend({
    +
    +    type: 'ring',
    +
    +    shape: {
    +        cx: 0,
    +        cy: 0,
    +        r: 0,
    +        r0: 0
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var x = shape.cx;
    +        var y = shape.cy;
    +        var PI2 = Math.PI * 2;
    +        ctx.moveTo(x + shape.r, y);
    +        ctx.arc(x, y, shape.r, 0, PI2, false);
    +        ctx.moveTo(x + shape.r0, y);
    +        ctx.arc(x, y, shape.r0, 0, PI2, true);
    +    }
    +});
    +
    +/**
    + * Catmull-Rom spline 插值折线
    + * @module zrender/shape/util/smoothSpline
    + * @author pissang (https://www.github.com/pissang)
    + *         Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + *         errorrik (errorrik@gmail.com)
    + */
    +
    +/**
    + * @inner
    + */
    +function interpolate(p0, p1, p2, p3, t, t2, t3) {
    +    var v0 = (p2 - p0) * 0.5;
    +    var v1 = (p3 - p1) * 0.5;
    +    return (2 * (p1 - p2) + v0 + v1) * t3
    +            + (-3 * (p1 - p2) - 2 * v0 - v1) * t2
    +            + v0 * t + p1;
    +}
    +
    +/**
    + * @alias module:zrender/shape/util/smoothSpline
    + * @param {Array} points 线段顶点数组
    + * @param {boolean} isLoop
    + * @return {Array}
    + */
    +var smoothSpline = function (points, isLoop) {
    +    var len$$1 = points.length;
    +    var ret = [];
    +
    +    var distance$$1 = 0;
    +    for (var i = 1; i < len$$1; i++) {
    +        distance$$1 += distance(points[i - 1], points[i]);
    +    }
    +
    +    var segs = distance$$1 / 2;
    +    segs = segs < len$$1 ? len$$1 : segs;
    +    for (var i = 0; i < segs; i++) {
    +        var pos = i / (segs - 1) * (isLoop ? len$$1 : len$$1 - 1);
    +        var idx = Math.floor(pos);
    +
    +        var w = pos - idx;
    +
    +        var p0;
    +        var p1 = points[idx % len$$1];
    +        var p2;
    +        var p3;
    +        if (!isLoop) {
    +            p0 = points[idx === 0 ? idx : idx - 1];
    +            p2 = points[idx > len$$1 - 2 ? len$$1 - 1 : idx + 1];
    +            p3 = points[idx > len$$1 - 3 ? len$$1 - 1 : idx + 2];
    +        }
    +        else {
    +            p0 = points[(idx - 1 + len$$1) % len$$1];
    +            p2 = points[(idx + 1) % len$$1];
    +            p3 = points[(idx + 2) % len$$1];
    +        }
    +
    +        var w2 = w * w;
    +        var w3 = w * w2;
    +
    +        ret.push([
    +            interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3),
    +            interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3)
    +        ]);
    +    }
    +    return ret;
    +};
    +
    +/**
    + * 贝塞尔平滑曲线
    + * @module zrender/shape/util/smoothBezier
    + * @author pissang (https://www.github.com/pissang)
    + *         Kener (@Kener-林峰, kener.linfeng@gmail.com)
    + *         errorrik (errorrik@gmail.com)
    + */
    +
    +/**
    + * 贝塞尔平滑曲线
    + * @alias module:zrender/shape/util/smoothBezier
    + * @param {Array} points 线段顶点数组
    + * @param {number} smooth 平滑等级, 0-1
    + * @param {boolean} isLoop
    + * @param {Array} constraint 将计算出来的控制点约束在一个包围盒内
    + *                           比如 [[0, 0], [100, 100]], 这个包围盒会与
    + *                           整个折线的包围盒做一个并集用来约束控制点。
    + * @param {Array} 计算出来的控制点数组
    + */
    +var smoothBezier = function (points, smooth, isLoop, constraint) {
    +    var cps = [];
    +
    +    var v = [];
    +    var v1 = [];
    +    var v2 = [];
    +    var prevPoint;
    +    var nextPoint;
    +
    +    var min$$1, max$$1;
    +    if (constraint) {
    +        min$$1 = [Infinity, Infinity];
    +        max$$1 = [-Infinity, -Infinity];
    +        for (var i = 0, len$$1 = points.length; i < len$$1; i++) {
    +            min(min$$1, min$$1, points[i]);
    +            max(max$$1, max$$1, points[i]);
    +        }
    +        // 与指定的包围盒做并集
    +        min(min$$1, min$$1, constraint[0]);
    +        max(max$$1, max$$1, constraint[1]);
    +    }
    +
    +    for (var i = 0, len$$1 = points.length; i < len$$1; i++) {
    +        var point = points[i];
    +
    +        if (isLoop) {
    +            prevPoint = points[i ? i - 1 : len$$1 - 1];
    +            nextPoint = points[(i + 1) % len$$1];
    +        }
    +        else {
    +            if (i === 0 || i === len$$1 - 1) {
    +                cps.push(clone$1(points[i]));
    +                continue;
    +            }
    +            else {
    +                prevPoint = points[i - 1];
    +                nextPoint = points[i + 1];
    +            }
    +        }
    +
    +        sub(v, nextPoint, prevPoint);
    +
    +        // use degree to scale the handle length
    +        scale(v, v, smooth);
    +
    +        var d0 = distance(point, prevPoint);
    +        var d1 = distance(point, nextPoint);
    +        var sum = d0 + d1;
    +        if (sum !== 0) {
    +            d0 /= sum;
    +            d1 /= sum;
    +        }
    +
    +        scale(v1, v, -d0);
    +        scale(v2, v, d1);
    +        var cp0 = add([], point, v1);
    +        var cp1 = add([], point, v2);
    +        if (constraint) {
    +            max(cp0, cp0, min$$1);
    +            min(cp0, cp0, max$$1);
    +            max(cp1, cp1, min$$1);
    +            min(cp1, cp1, max$$1);
    +        }
    +        cps.push(cp0);
    +        cps.push(cp1);
    +    }
    +
    +    if (isLoop) {
    +        cps.push(cps.shift());
    +    }
    +
    +    return cps;
    +};
    +
    +function buildPath$1(ctx, shape, closePath) {
    +    var points = shape.points;
    +    var smooth = shape.smooth;
    +    if (points && points.length >= 2) {
    +        if (smooth && smooth !== 'spline') {
    +            var controlPoints = smoothBezier(
    +                points, smooth, closePath, shape.smoothConstraint
    +            );
    +
    +            ctx.moveTo(points[0][0], points[0][1]);
    +            var len = points.length;
    +            for (var i = 0; i < (closePath ? len : len - 1); i++) {
    +                var cp1 = controlPoints[i * 2];
    +                var cp2 = controlPoints[i * 2 + 1];
    +                var p = points[(i + 1) % len];
    +                ctx.bezierCurveTo(
    +                    cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]
    +                );
    +            }
    +        }
    +        else {
    +            if (smooth === 'spline') {
    +                points = smoothSpline(points, closePath);
    +            }
    +
    +            ctx.moveTo(points[0][0], points[0][1]);
    +            for (var i = 1, l = points.length; i < l; i++) {
    +                ctx.lineTo(points[i][0], points[i][1]);
    +            }
    +        }
    +
    +        closePath && ctx.closePath();
    +    }
    +}
    +
    +/**
    + * 多边形
    + * @module zrender/shape/Polygon
    + */
    +
    +var Polygon = Path.extend({
    +
    +    type: 'polygon',
    +
    +    shape: {
    +        points: null,
    +
    +        smooth: false,
    +
    +        smoothConstraint: null
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        buildPath$1(ctx, shape, true);
    +    }
    +});
    +
    +/**
    + * @module zrender/graphic/shape/Polyline
    + */
    +
    +var Polyline = Path.extend({
    +
    +    type: 'polyline',
    +
    +    shape: {
    +        points: null,
    +
    +        smooth: false,
    +
    +        smoothConstraint: null
    +    },
    +
    +    style: {
    +        stroke: '#000',
    +
    +        fill: null
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        buildPath$1(ctx, shape, false);
    +    }
    +});
    +
    +/**
    + * 矩形
    + * @module zrender/graphic/shape/Rect
    + */
    +
    +var Rect = Path.extend({
    +
    +    type: 'rect',
    +
    +    shape: {
    +        // 左上、右上、右下、左下角的半径依次为r1、r2、r3、r4
    +        // r缩写为1         相当于 [1, 1, 1, 1]
    +        // r缩写为[1]       相当于 [1, 1, 1, 1]
    +        // r缩写为[1, 2]    相当于 [1, 2, 1, 2]
    +        // r缩写为[1, 2, 3] 相当于 [1, 2, 3, 2]
    +        r: 0,
    +
    +        x: 0,
    +        y: 0,
    +        width: 0,
    +        height: 0
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var x = shape.x;
    +        var y = shape.y;
    +        var width = shape.width;
    +        var height = shape.height;
    +        if (!shape.r) {
    +            ctx.rect(x, y, width, height);
    +        }
    +        else {
    +            buildPath(ctx, shape);
    +        }
    +        ctx.closePath();
    +        return;
    +    }
    +});
    +
    +/**
    + * 直线
    + * @module zrender/graphic/shape/Line
    + */
    +
    +var Line = Path.extend({
    +
    +    type: 'line',
    +
    +    shape: {
    +        // Start point
    +        x1: 0,
    +        y1: 0,
    +        // End point
    +        x2: 0,
    +        y2: 0,
    +
    +        percent: 1
    +    },
    +
    +    style: {
    +        stroke: '#000',
    +        fill: null
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var x1 = shape.x1;
    +        var y1 = shape.y1;
    +        var x2 = shape.x2;
    +        var y2 = shape.y2;
    +        var percent = shape.percent;
    +
    +        if (percent === 0) {
    +            return;
    +        }
    +
    +        ctx.moveTo(x1, y1);
    +
    +        if (percent < 1) {
    +            x2 = x1 * (1 - percent) + x2 * percent;
    +            y2 = y1 * (1 - percent) + y2 * percent;
    +        }
    +        ctx.lineTo(x2, y2);
    +    },
    +
    +    /**
    +     * Get point at percent
    +     * @param  {number} percent
    +     * @return {Array.<number>}
    +     */
    +    pointAt: function (p) {
    +        var shape = this.shape;
    +        return [
    +            shape.x1 * (1 - p) + shape.x2 * p,
    +            shape.y1 * (1 - p) + shape.y2 * p
    +        ];
    +    }
    +});
    +
    +/**
    + * 贝塞尔曲线
    + * @module zrender/shape/BezierCurve
    + */
    +
    +var out = [];
    +
    +function someVectorAt(shape, t, isTangent) {
    +    var cpx2 = shape.cpx2;
    +    var cpy2 = shape.cpy2;
    +    if (cpx2 === null || cpy2 === null) {
    +        return [
    +            (isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),
    +            (isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)
    +        ];
    +    }
    +    else {
    +        return [
    +            (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),
    +            (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)
    +        ];
    +    }
    +}
    +
    +var BezierCurve = Path.extend({
    +
    +    type: 'bezier-curve',
    +
    +    shape: {
    +        x1: 0,
    +        y1: 0,
    +        x2: 0,
    +        y2: 0,
    +        cpx1: 0,
    +        cpy1: 0,
    +        // cpx2: 0,
    +        // cpy2: 0
    +
    +        // Curve show percent, for animating
    +        percent: 1
    +    },
    +
    +    style: {
    +        stroke: '#000',
    +        fill: null
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var x1 = shape.x1;
    +        var y1 = shape.y1;
    +        var x2 = shape.x2;
    +        var y2 = shape.y2;
    +        var cpx1 = shape.cpx1;
    +        var cpy1 = shape.cpy1;
    +        var cpx2 = shape.cpx2;
    +        var cpy2 = shape.cpy2;
    +        var percent = shape.percent;
    +        if (percent === 0) {
    +            return;
    +        }
    +
    +        ctx.moveTo(x1, y1);
    +
    +        if (cpx2 == null || cpy2 == null) {
    +            if (percent < 1) {
    +                quadraticSubdivide(
    +                    x1, cpx1, x2, percent, out
    +                );
    +                cpx1 = out[1];
    +                x2 = out[2];
    +                quadraticSubdivide(
    +                    y1, cpy1, y2, percent, out
    +                );
    +                cpy1 = out[1];
    +                y2 = out[2];
    +            }
    +
    +            ctx.quadraticCurveTo(
    +                cpx1, cpy1,
    +                x2, y2
    +            );
    +        }
    +        else {
    +            if (percent < 1) {
    +                cubicSubdivide(
    +                    x1, cpx1, cpx2, x2, percent, out
    +                );
    +                cpx1 = out[1];
    +                cpx2 = out[2];
    +                x2 = out[3];
    +                cubicSubdivide(
    +                    y1, cpy1, cpy2, y2, percent, out
    +                );
    +                cpy1 = out[1];
    +                cpy2 = out[2];
    +                y2 = out[3];
    +            }
    +            ctx.bezierCurveTo(
    +                cpx1, cpy1,
    +                cpx2, cpy2,
    +                x2, y2
    +            );
    +        }
    +    },
    +
    +    /**
    +     * Get point at percent
    +     * @param  {number} t
    +     * @return {Array.<number>}
    +     */
    +    pointAt: function (t) {
    +        return someVectorAt(this.shape, t, false);
    +    },
    +
    +    /**
    +     * Get tangent at percent
    +     * @param  {number} t
    +     * @return {Array.<number>}
    +     */
    +    tangentAt: function (t) {
    +        var p = someVectorAt(this.shape, t, true);
    +        return normalize(p, p);
    +    }
    +});
    +
    +/**
    + * 圆弧
    + * @module zrender/graphic/shape/Arc
    + */
    +
    +var Arc = Path.extend({
    +
    +    type: 'arc',
    +
    +    shape: {
    +
    +        cx: 0,
    +
    +        cy: 0,
    +
    +        r: 0,
    +
    +        startAngle: 0,
    +
    +        endAngle: Math.PI * 2,
    +
    +        clockwise: true
    +    },
    +
    +    style: {
    +
    +        stroke: '#000',
    +
    +        fill: null
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +
    +        var x = shape.cx;
    +        var y = shape.cy;
    +        var r = Math.max(shape.r, 0);
    +        var startAngle = shape.startAngle;
    +        var endAngle = shape.endAngle;
    +        var clockwise = shape.clockwise;
    +
    +        var unitX = Math.cos(startAngle);
    +        var unitY = Math.sin(startAngle);
    +
    +        ctx.moveTo(unitX * r + x, unitY * r + y);
    +        ctx.arc(x, y, r, startAngle, endAngle, !clockwise);
    +    }
    +});
    +
    +// CompoundPath to improve performance
    +
    +var CompoundPath = Path.extend({
    +
    +    type: 'compound',
    +
    +    shape: {
    +
    +        paths: null
    +    },
    +
    +    _updatePathDirty: function () {
    +        var dirtyPath = this.__dirtyPath;
    +        var paths = this.shape.paths;
    +        for (var i = 0; i < paths.length; i++) {
    +            // Mark as dirty if any subpath is dirty
    +            dirtyPath = dirtyPath || paths[i].__dirtyPath;
    +        }
    +        this.__dirtyPath = dirtyPath;
    +        this.__dirty = this.__dirty || dirtyPath;
    +    },
    +
    +    beforeBrush: function () {
    +        this._updatePathDirty();
    +        var paths = this.shape.paths || [];
    +        var scale = this.getGlobalScale();
    +        // Update path scale
    +        for (var i = 0; i < paths.length; i++) {
    +            if (!paths[i].path) {
    +                paths[i].createPathProxy();
    +            }
    +            paths[i].path.setScale(scale[0], scale[1]);
    +        }
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var paths = shape.paths || [];
    +        for (var i = 0; i < paths.length; i++) {
    +            paths[i].buildPath(ctx, paths[i].shape, true);
    +        }
    +    },
    +
    +    afterBrush: function () {
    +        var paths = this.shape.paths || [];
    +        for (var i = 0; i < paths.length; i++) {
    +            paths[i].__dirtyPath = false;
    +        }
    +    },
    +
    +    getBoundingRect: function () {
    +        this._updatePathDirty();
    +        return Path.prototype.getBoundingRect.call(this);
    +    }
    +});
    +
    +/**
    + * @param {Array.<Object>} colorStops
    + */
    +var Gradient = function (colorStops) {
    +
    +    this.colorStops = colorStops || [];
    +
    +};
    +
    +Gradient.prototype = {
    +
    +    constructor: Gradient,
    +
    +    addColorStop: function (offset, color) {
    +        this.colorStops.push({
    +
    +            offset: offset,
    +
    +            color: color
    +        });
    +    }
    +
    +};
    +
    +/**
    + * x, y, x2, y2 are all percent from 0 to 1
    + * @param {number} [x=0]
    + * @param {number} [y=0]
    + * @param {number} [x2=1]
    + * @param {number} [y2=0]
    + * @param {Array.<Object>} colorStops
    + * @param {boolean} [globalCoord=false]
    + */
    +var LinearGradient = function (x, y, x2, y2, colorStops, globalCoord) {
    +    // Should do nothing more in this constructor. Because gradient can be
    +    // declard by `color: {type: 'linear', colorStops: ...}`, where
    +    // this constructor will not be called.
    +
    +    this.x = x == null ? 0 : x;
    +
    +    this.y = y == null ? 0 : y;
    +
    +    this.x2 = x2 == null ? 1 : x2;
    +
    +    this.y2 = y2 == null ? 0 : y2;
    +
    +    // Can be cloned
    +    this.type = 'linear';
    +
    +    // If use global coord
    +    this.global = globalCoord || false;
    +
    +    Gradient.call(this, colorStops);
    +};
    +
    +LinearGradient.prototype = {
    +
    +    constructor: LinearGradient
    +};
    +
    +inherits(LinearGradient, Gradient);
    +
    +/**
    + * x, y, r are all percent from 0 to 1
    + * @param {number} [x=0.5]
    + * @param {number} [y=0.5]
    + * @param {number} [r=0.5]
    + * @param {Array.<Object>} [colorStops]
    + * @param {boolean} [globalCoord=false]
    + */
    +var RadialGradient = function (x, y, r, colorStops, globalCoord) {
    +    // Should do nothing more in this constructor. Because gradient can be
    +    // declard by `color: {type: 'radial', colorStops: ...}`, where
    +    // this constructor will not be called.
    +
    +    this.x = x == null ? 0.5 : x;
    +
    +    this.y = y == null ? 0.5 : y;
    +
    +    this.r = r == null ? 0.5 : r;
    +
    +    // Can be cloned
    +    this.type = 'radial';
    +
    +    // If use global coord
    +    this.global = globalCoord || false;
    +
    +    Gradient.call(this, colorStops);
    +};
    +
    +RadialGradient.prototype = {
    +
    +    constructor: RadialGradient
    +};
    +
    +inherits(RadialGradient, Gradient);
    +
    +var round$1 = Math.round;
    +var mathMax$1 = Math.max;
    +var mathMin$1 = Math.min;
    +
    +var EMPTY_OBJ = {};
    +
    +/**
    + * Extend shape with parameters
    + */
    +function extendShape(opts) {
    +    return Path.extend(opts);
    +}
    +
    +/**
    + * Extend path
    + */
    +function extendPath(pathData, opts) {
    +    return extendFromString(pathData, opts);
    +}
    +
    +/**
    + * Create a path element from path data string
    + * @param {string} pathData
    + * @param {Object} opts
    + * @param {module:zrender/core/BoundingRect} rect
    + * @param {string} [layout=cover] 'center' or 'cover'
    + */
    +function makePath(pathData, opts, rect, layout) {
    +    var path = createFromString(pathData, opts);
    +    var boundingRect = path.getBoundingRect();
    +    if (rect) {
    +        if (layout === 'center') {
    +            rect = centerGraphic(rect, boundingRect);
    +        }
    +
    +        resizePath(path, rect);
    +    }
    +    return path;
    +}
    +
    +/**
    + * Create a image element from image url
    + * @param {string} imageUrl image url
    + * @param {Object} opts options
    + * @param {module:zrender/core/BoundingRect} rect constrain rect
    + * @param {string} [layout=cover] 'center' or 'cover'
    + */
    +function makeImage(imageUrl, rect, layout) {
    +    var path = new ZImage({
    +        style: {
    +            image: imageUrl,
    +            x: rect.x,
    +            y: rect.y,
    +            width: rect.width,
    +            height: rect.height
    +        },
    +        onload: function (img) {
    +            if (layout === 'center') {
    +                var boundingRect = {
    +                    width: img.width,
    +                    height: img.height
    +                };
    +                path.setStyle(centerGraphic(rect, boundingRect));
    +            }
    +        }
    +    });
    +    return path;
    +}
    +
    +/**
    + * Get position of centered element in bounding box.
    + *
    + * @param  {Object} rect         element local bounding box
    + * @param  {Object} boundingRect constraint bounding box
    + * @return {Object} element position containing x, y, width, and height
    + */
    +function centerGraphic(rect, boundingRect) {
    +    // Set rect to center, keep width / height ratio.
    +    var aspect = boundingRect.width / boundingRect.height;
    +    var width = rect.height * aspect;
    +    var height;
    +    if (width <= rect.width) {
    +        height = rect.height;
    +    }
    +    else {
    +        width = rect.width;
    +        height = width / aspect;
    +    }
    +    var cx = rect.x + rect.width / 2;
    +    var cy = rect.y + rect.height / 2;
    +
    +    return {
    +        x: cx - width / 2,
    +        y: cy - height / 2,
    +        width: width,
    +        height: height
    +    };
    +}
    +
    +var mergePath = mergePath$1;
    +
    +/**
    + * Resize a path to fit the rect
    + * @param {module:zrender/graphic/Path} path
    + * @param {Object} rect
    + */
    +function resizePath(path, rect) {
    +    if (!path.applyTransform) {
    +        return;
    +    }
    +
    +    var pathRect = path.getBoundingRect();
    +
    +    var m = pathRect.calculateTransform(rect);
    +
    +    path.applyTransform(m);
    +}
    +
    +/**
    + * Sub pixel optimize line for canvas
    + *
    + * @param {Object} param
    + * @param {Object} [param.shape]
    + * @param {number} [param.shape.x1]
    + * @param {number} [param.shape.y1]
    + * @param {number} [param.shape.x2]
    + * @param {number} [param.shape.y2]
    + * @param {Object} [param.style]
    + * @param {number} [param.style.lineWidth]
    + * @return {Object} Modified param
    + */
    +function subPixelOptimizeLine(param) {
    +    var shape = param.shape;
    +    var lineWidth = param.style.lineWidth;
    +
    +    if (round$1(shape.x1 * 2) === round$1(shape.x2 * 2)) {
    +        shape.x1 = shape.x2 = subPixelOptimize(shape.x1, lineWidth, true);
    +    }
    +    if (round$1(shape.y1 * 2) === round$1(shape.y2 * 2)) {
    +        shape.y1 = shape.y2 = subPixelOptimize(shape.y1, lineWidth, true);
    +    }
    +    return param;
    +}
    +
    +/**
    + * Sub pixel optimize rect for canvas
    + *
    + * @param {Object} param
    + * @param {Object} [param.shape]
    + * @param {number} [param.shape.x]
    + * @param {number} [param.shape.y]
    + * @param {number} [param.shape.width]
    + * @param {number} [param.shape.height]
    + * @param {Object} [param.style]
    + * @param {number} [param.style.lineWidth]
    + * @return {Object} Modified param
    + */
    +function subPixelOptimizeRect(param) {
    +    var shape = param.shape;
    +    var lineWidth = param.style.lineWidth;
    +    var originX = shape.x;
    +    var originY = shape.y;
    +    var originWidth = shape.width;
    +    var originHeight = shape.height;
    +    shape.x = subPixelOptimize(shape.x, lineWidth, true);
    +    shape.y = subPixelOptimize(shape.y, lineWidth, true);
    +    shape.width = Math.max(
    +        subPixelOptimize(originX + originWidth, lineWidth, false) - shape.x,
    +        originWidth === 0 ? 0 : 1
    +    );
    +    shape.height = Math.max(
    +        subPixelOptimize(originY + originHeight, lineWidth, false) - shape.y,
    +        originHeight === 0 ? 0 : 1
    +    );
    +    return param;
    +}
    +
    +/**
    + * Sub pixel optimize for canvas
    + *
    + * @param {number} position Coordinate, such as x, y
    + * @param {number} lineWidth Should be nonnegative integer.
    + * @param {boolean=} positiveOrNegative Default false (negative).
    + * @return {number} Optimized position.
    + */
    +function subPixelOptimize(position, lineWidth, positiveOrNegative) {
    +    // Assure that (position + lineWidth / 2) is near integer edge,
    +    // otherwise line will be fuzzy in canvas.
    +    var doubledPosition = round$1(position * 2);
    +    return (doubledPosition + round$1(lineWidth)) % 2 === 0
    +        ? doubledPosition / 2
    +        : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
    +}
    +
    +function hasFillOrStroke(fillOrStroke) {
    +    return fillOrStroke != null && fillOrStroke != 'none';
    +}
    +
    +function liftColor(color) {
    +    return typeof color === 'string' ? lift(color, -0.1) : color;
    +}
    +
    +/**
    + * @private
    + */
    +function cacheElementStl(el) {
    +    if (el.__hoverStlDirty) {
    +        var stroke = el.style.stroke;
    +        var fill = el.style.fill;
    +
    +        // Create hoverStyle on mouseover
    +        var hoverStyle = el.__hoverStl;
    +        hoverStyle.fill = hoverStyle.fill
    +            || (hasFillOrStroke(fill) ? liftColor(fill) : null);
    +        hoverStyle.stroke = hoverStyle.stroke
    +            || (hasFillOrStroke(stroke) ? liftColor(stroke) : null);
    +
    +        var normalStyle = {};
    +        for (var name in hoverStyle) {
    +            // See comment in `doSingleEnterHover`.
    +            if (hoverStyle[name] != null) {
    +                normalStyle[name] = el.style[name];
    +            }
    +        }
    +
    +        el.__normalStl = normalStyle;
    +
    +        el.__hoverStlDirty = false;
    +    }
    +}
    +
    +/**
    + * @private
    + */
    +function doSingleEnterHover(el) {
    +    if (el.__isHover) {
    +        return;
    +    }
    +
    +    cacheElementStl(el);
    +
    +    if (el.useHoverLayer) {
    +        el.__zr && el.__zr.addHover(el, el.__hoverStl);
    +    }
    +    else {
    +        var style = el.style;
    +        var insideRollbackOpt = style.insideRollbackOpt;
    +
    +        // Consider case: only `position: 'top'` is set on emphasis, then text
    +        // color should be returned to `autoColor`, rather than remain '#fff'.
    +        // So we should rollback then apply again after style merging.
    +        insideRollbackOpt && rollbackInsideStyle(style);
    +
    +        // styles can be:
    +        // {
    +        //     label: {
    +        //         normal: {
    +        //             show: false,
    +        //             position: 'outside',
    +        //             fontSize: 18
    +        //         },
    +        //         emphasis: {
    +        //             show: true
    +        //         }
    +        //     }
    +        // },
    +        // where properties of `emphasis` may not appear in `normal`. We previously use
    +        // module:echarts/util/model#defaultEmphasis to merge `normal` to `emphasis`.
    +        // But consider rich text and setOption in merge mode, it is impossible to cover
    +        // all properties in merge. So we use merge mode when setting style here, where
    +        // only properties that is not `null/undefined` can be set. The disadventage:
    +        // null/undefined can not be used to remove style any more in `emphasis`.
    +        style.extendFrom(el.__hoverStl);
    +
    +        // Do not save `insideRollback`.
    +        if (insideRollbackOpt) {
    +            applyInsideStyle(style, style.insideOriginalTextPosition, insideRollbackOpt);
    +
    +            // textFill may be rollbacked to null.
    +            if (style.textFill == null) {
    +                style.textFill = insideRollbackOpt.autoColor;
    +            }
    +        }
    +
    +        el.dirty(false);
    +        el.z2 += 1;
    +    }
    +
    +    el.__isHover = true;
    +}
    +
    +/**
    + * @inner
    + */
    +function doSingleLeaveHover(el) {
    +    if (!el.__isHover) {
    +        return;
    +    }
    +
    +    var normalStl = el.__normalStl;
    +    if (el.useHoverLayer) {
    +        el.__zr && el.__zr.removeHover(el);
    +    }
    +    else {
    +        // Consider null/undefined value, should use
    +        // `setStyle` but not `extendFrom(stl, true)`.
    +        normalStl && el.setStyle(normalStl);
    +        el.z2 -= 1;
    +    }
    +
    +    el.__isHover = false;
    +}
    +
    +/**
    + * @inner
    + */
    +function doEnterHover(el) {
    +    el.type === 'group'
    +        ? el.traverse(function (child) {
    +            if (child.type !== 'group') {
    +                doSingleEnterHover(child);
    +            }
    +        })
    +        : doSingleEnterHover(el);
    +}
    +
    +function doLeaveHover(el) {
    +    el.type === 'group'
    +        ? el.traverse(function (child) {
    +            if (child.type !== 'group') {
    +                doSingleLeaveHover(child);
    +            }
    +        })
    +        : doSingleLeaveHover(el);
    +}
    +
    +/**
    + * @inner
    + */
    +function setElementHoverStl(el, hoverStl) {
    +    // If element has sepcified hoverStyle, then use it instead of given hoverStyle
    +    // Often used when item group has a label element and it's hoverStyle is different
    +    el.__hoverStl = el.hoverStyle || hoverStl || {};
    +    el.__hoverStlDirty = true;
    +
    +    if (el.__isHover) {
    +        cacheElementStl(el);
    +    }
    +}
    +
    +/**
    + * @inner
    + */
    +function onElementMouseOver(e) {
    +    if (this.__hoverSilentOnTouch && e.zrByTouch) {
    +        return;
    +    }
    +
    +    // Only if element is not in emphasis status
    +    !this.__isEmphasis && doEnterHover(this);
    +}
    +
    +/**
    + * @inner
    + */
    +function onElementMouseOut(e) {
    +    if (this.__hoverSilentOnTouch && e.zrByTouch) {
    +        return;
    +    }
    +
    +    // Only if element is not in emphasis status
    +    !this.__isEmphasis && doLeaveHover(this);
    +}
    +
    +/**
    + * @inner
    + */
    +function enterEmphasis() {
    +    this.__isEmphasis = true;
    +    doEnterHover(this);
    +}
    +
    +/**
    + * @inner
    + */
    +function leaveEmphasis() {
    +    this.__isEmphasis = false;
    +    doLeaveHover(this);
    +}
    +
    +/**
    + * Set hover style of element.
    + * This method can be called repeatly without side-effects.
    + * @param {module:zrender/Element} el
    + * @param {Object} [hoverStyle]
    + * @param {Object} [opt]
    + * @param {boolean} [opt.hoverSilentOnTouch=false]
    + *        In touch device, mouseover event will be trigger on touchstart event
    + *        (see module:zrender/dom/HandlerProxy). By this mechanism, we can
    + *        conviniently use hoverStyle when tap on touch screen without additional
    + *        code for compatibility.
    + *        But if the chart/component has select feature, which usually also use
    + *        hoverStyle, there might be conflict between 'select-highlight' and
    + *        'hover-highlight' especially when roam is enabled (see geo for example).
    + *        In this case, hoverSilentOnTouch should be used to disable hover-highlight
    + *        on touch device.
    + */
    +function setHoverStyle(el, hoverStyle, opt) {
    +    el.__hoverSilentOnTouch = opt && opt.hoverSilentOnTouch;
    +
    +    el.type === 'group'
    +        ? el.traverse(function (child) {
    +            if (child.type !== 'group') {
    +                setElementHoverStl(child, hoverStyle);
    +            }
    +        })
    +        : setElementHoverStl(el, hoverStyle);
    +
    +    // Duplicated function will be auto-ignored, see Eventful.js.
    +    el.on('mouseover', onElementMouseOver)
    +        .on('mouseout', onElementMouseOut);
    +
    +    // Emphasis, normal can be triggered manually
    +    el.on('emphasis', enterEmphasis)
    +        .on('normal', leaveEmphasis);
    +}
    +
    +/**
    + * @param {Object|module:zrender/graphic/Style} normalStyle
    + * @param {Object} emphasisStyle
    + * @param {module:echarts/model/Model} normalModel
    + * @param {module:echarts/model/Model} emphasisModel
    + * @param {Object} opt Check `opt` of `setTextStyleCommon` to find other props.
    + * @param {Object} [opt.defaultText]
    + * @param {module:echarts/model/Model} [opt.labelFetcher] Fetch text by
    + *      `opt.labelFetcher.getFormattedLabel(opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex)`
    + * @param {module:echarts/model/Model} [opt.labelDataIndex] Fetch text by
    + *      `opt.textFetcher.getFormattedLabel(opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex)`
    + * @param {module:echarts/model/Model} [opt.labelDimIndex] Fetch text by
    + *      `opt.textFetcher.getFormattedLabel(opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex)`
    + * @param {Object} [normalSpecified]
    + * @param {Object} [emphasisSpecified]
    + */
    +function setLabelStyle(
    +    normalStyle, emphasisStyle,
    +    normalModel, emphasisModel,
    +    opt,
    +    normalSpecified, emphasisSpecified
    +) {
    +    opt = opt || EMPTY_OBJ;
    +    var labelFetcher = opt.labelFetcher;
    +    var labelDataIndex = opt.labelDataIndex;
    +    var labelDimIndex = opt.labelDimIndex;
    +
    +    // This scenario, `label.normal.show = true; label.emphasis.show = false`,
    +    // is not supported util someone requests.
    +
    +    var showNormal = normalModel.getShallow('show');
    +    var showEmphasis = emphasisModel.getShallow('show');
    +
    +    // Consider performance, only fetch label when necessary.
    +    // If `normal.show` is `false` and `emphasis.show` is `true` and `emphasis.formatter` is not set,
    +    // label should be displayed, where text is fetched by `normal.formatter` or `opt.defaultText`.
    +    var baseText = (showNormal || showEmphasis)
    +        ? retrieve2(
    +            labelFetcher
    +                ? labelFetcher.getFormattedLabel(labelDataIndex, 'normal', null, labelDimIndex)
    +                : null,
    +            opt.defaultText
    +        )
    +        : null;
    +    var normalStyleText = showNormal ? baseText : null;
    +    var emphasisStyleText = showEmphasis
    +        ? retrieve2(
    +            labelFetcher
    +                ? labelFetcher.getFormattedLabel(labelDataIndex, 'emphasis', null, labelDimIndex)
    +                : null,
    +            baseText
    +        )
    +        : null;
    +
    +    // Optimize: If style.text is null, text will not be drawn.
    +    if (normalStyleText != null || emphasisStyleText != null) {
    +        // Always set `textStyle` even if `normalStyle.text` is null, because default
    +        // values have to be set on `normalStyle`.
    +        // If we set default values on `emphasisStyle`, consider case:
    +        // Firstly, `setOption(... label: {normal: {text: null}, emphasis: {show: true}} ...);`
    +        // Secondly, `setOption(... label: {noraml: {show: true, text: 'abc', color: 'red'} ...);`
    +        // Then the 'red' will not work on emphasis.
    +        setTextStyle(normalStyle, normalModel, normalSpecified, opt);
    +        setTextStyle(emphasisStyle, emphasisModel, emphasisSpecified, opt, true);
    +    }
    +
    +    normalStyle.text = normalStyleText;
    +    emphasisStyle.text = emphasisStyleText;
    +}
    +
    +/**
    + * Set basic textStyle properties.
    + * @param {Object|module:zrender/graphic/Style} textStyle
    + * @param {module:echarts/model/Model} model
    + * @param {Object} [specifiedTextStyle] Can be overrided by settings in model.
    + * @param {Object} [opt] See `opt` of `setTextStyleCommon`.
    + * @param {boolean} [isEmphasis]
    + */
    +function setTextStyle(
    +    textStyle, textStyleModel, specifiedTextStyle, opt, isEmphasis
    +) {
    +    setTextStyleCommon(textStyle, textStyleModel, opt, isEmphasis);
    +    specifiedTextStyle && extend(textStyle, specifiedTextStyle);
    +    textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);
    +
    +    return textStyle;
    +}
    +
    +/**
    + * Set text option in the style.
    + * @deprecated
    + * @param {Object} textStyle
    + * @param {module:echarts/model/Model} labelModel
    + * @param {string|boolean} defaultColor Default text color.
    + *        If set as false, it will be processed as a emphasis style.
    + */
    +function setText(textStyle, labelModel, defaultColor) {
    +    var opt = {isRectText: true};
    +    var isEmphasis;
    +
    +    if (defaultColor === false) {
    +        isEmphasis = true;
    +    }
    +    else {
    +        // Support setting color as 'auto' to get visual color.
    +        opt.autoColor = defaultColor;
    +    }
    +    setTextStyleCommon(textStyle, labelModel, opt, isEmphasis);
    +    textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);
    +}
    +
    +/**
    + * {
    + *      disableBox: boolean, Whether diable drawing box of block (outer most).
    + *      isRectText: boolean,
    + *      autoColor: string, specify a color when color is 'auto',
    + *              for textFill, textStroke, textBackgroundColor, and textBorderColor.
    + *              If autoColor specified, it is used as default textFill.
    + *      useInsideStyle:
    + *              `true`: Use inside style (textFill, textStroke, textStrokeWidth)
    + *                  if `textFill` is not specified.
    + *              `false`: Do not use inside style.
    + *              `null/undefined`: use inside style if `isRectText` is true and
    + *                  `textFill` is not specified and textPosition contains `'inside'`.
    + *      forceRich: boolean
    + * }
    + */
    +function setTextStyleCommon(textStyle, textStyleModel, opt, isEmphasis) {
    +    // Consider there will be abnormal when merge hover style to normal style if given default value.
    +    opt = opt || EMPTY_OBJ;
    +
    +    if (opt.isRectText) {
    +        var textPosition = textStyleModel.getShallow('position')
    +            || (isEmphasis ? null : 'inside');
    +        // 'outside' is not a valid zr textPostion value, but used
    +        // in bar series, and magric type should be considered.
    +        textPosition === 'outside' && (textPosition = 'top');
    +        textStyle.textPosition = textPosition;
    +        textStyle.textOffset = textStyleModel.getShallow('offset');
    +        var labelRotate = textStyleModel.getShallow('rotate');
    +        labelRotate != null && (labelRotate *= Math.PI / 180);
    +        textStyle.textRotation = labelRotate;
    +        textStyle.textDistance = retrieve2(
    +            textStyleModel.getShallow('distance'), isEmphasis ? null : 5
    +        );
    +    }
    +
    +    var ecModel = textStyleModel.ecModel;
    +    var globalTextStyle = ecModel && ecModel.option.textStyle;
    +
    +    // Consider case:
    +    // {
    +    //     data: [{
    +    //         value: 12,
    +    //         label: {
    +    //             normal: {
    +    //                 rich: {
    +    //                     // no 'a' here but using parent 'a'.
    +    //                 }
    +    //             }
    +    //         }
    +    //     }],
    +    //     rich: {
    +    //         a: { ... }
    +    //     }
    +    // }
    +    var richItemNames = getRichItemNames(textStyleModel);
    +    var richResult;
    +    if (richItemNames) {
    +        richResult = {};
    +        for (var name in richItemNames) {
    +            if (richItemNames.hasOwnProperty(name)) {
    +                // Cascade is supported in rich.
    +                var richTextStyle = textStyleModel.getModel(['rich', name]);
    +                // In rich, never `disableBox`.
    +                setTokenTextStyle(richResult[name] = {}, richTextStyle, globalTextStyle, opt, isEmphasis);
    +            }
    +        }
    +    }
    +    textStyle.rich = richResult;
    +
    +    setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEmphasis, true);
    +
    +    if (opt.forceRich && !opt.textStyle) {
    +        opt.textStyle = {};
    +    }
    +
    +    return textStyle;
    +}
    +
    +// Consider case:
    +// {
    +//     data: [{
    +//         value: 12,
    +//         label: {
    +//             normal: {
    +//                 rich: {
    +//                     // no 'a' here but using parent 'a'.
    +//                 }
    +//             }
    +//         }
    +//     }],
    +//     rich: {
    +//         a: { ... }
    +//     }
    +// }
    +function getRichItemNames(textStyleModel) {
    +    // Use object to remove duplicated names.
    +    var richItemNameMap;
    +    while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {
    +        var rich = (textStyleModel.option || EMPTY_OBJ).rich;
    +        if (rich) {
    +            richItemNameMap = richItemNameMap || {};
    +            for (var name in rich) {
    +                if (rich.hasOwnProperty(name)) {
    +                    richItemNameMap[name] = 1;
    +                }
    +            }
    +        }
    +        textStyleModel = textStyleModel.parentModel;
    +    }
    +    return richItemNameMap;
    +}
    +
    +function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEmphasis, isBlock) {
    +    // In merge mode, default value should not be given.
    +    globalTextStyle = !isEmphasis && globalTextStyle || EMPTY_OBJ;
    +
    +    textStyle.textFill = getAutoColor(textStyleModel.getShallow('color'), opt)
    +        || globalTextStyle.color;
    +    textStyle.textStroke = getAutoColor(textStyleModel.getShallow('textBorderColor'), opt)
    +        || globalTextStyle.textBorderColor;
    +    textStyle.textStrokeWidth = retrieve2(
    +        textStyleModel.getShallow('textBorderWidth'),
    +        globalTextStyle.textBorderWidth
    +    );
    +
    +    if (!isEmphasis) {
    +        if (isBlock) {
    +            // Always set `insideRollback`, for clearing previous.
    +            var originalTextPosition = textStyle.textPosition;
    +            textStyle.insideRollback = applyInsideStyle(textStyle, originalTextPosition, opt);
    +            // Save original textPosition, because style.textPosition will be repalced by
    +            // real location (like [10, 30]) in zrender.
    +            textStyle.insideOriginalTextPosition = originalTextPosition;
    +            textStyle.insideRollbackOpt = opt;
    +        }
    +
    +        // Set default finally.
    +        if (textStyle.textFill == null) {
    +            textStyle.textFill = opt.autoColor;
    +        }
    +    }
    +
    +    // Do not use `getFont` here, because merge should be supported, where
    +    // part of these properties may be changed in emphasis style, and the
    +    // others should remain their original value got from normal style.
    +    textStyle.fontStyle = textStyleModel.getShallow('fontStyle') || globalTextStyle.fontStyle;
    +    textStyle.fontWeight = textStyleModel.getShallow('fontWeight') || globalTextStyle.fontWeight;
    +    textStyle.fontSize = textStyleModel.getShallow('fontSize') || globalTextStyle.fontSize;
    +    textStyle.fontFamily = textStyleModel.getShallow('fontFamily') || globalTextStyle.fontFamily;
    +
    +    textStyle.textAlign = textStyleModel.getShallow('align');
    +    textStyle.textVerticalAlign = textStyleModel.getShallow('verticalAlign')
    +        || textStyleModel.getShallow('baseline');
    +
    +    textStyle.textLineHeight = textStyleModel.getShallow('lineHeight');
    +    textStyle.textWidth = textStyleModel.getShallow('width');
    +    textStyle.textHeight = textStyleModel.getShallow('height');
    +    textStyle.textTag = textStyleModel.getShallow('tag');
    +
    +    if (!isBlock || !opt.disableBox) {
    +        textStyle.textBackgroundColor = getAutoColor(textStyleModel.getShallow('backgroundColor'), opt);
    +        textStyle.textPadding = textStyleModel.getShallow('padding');
    +        textStyle.textBorderColor = getAutoColor(textStyleModel.getShallow('borderColor'), opt);
    +        textStyle.textBorderWidth = textStyleModel.getShallow('borderWidth');
    +        textStyle.textBorderRadius = textStyleModel.getShallow('borderRadius');
    +
    +        textStyle.textBoxShadowColor = textStyleModel.getShallow('shadowColor');
    +        textStyle.textBoxShadowBlur = textStyleModel.getShallow('shadowBlur');
    +        textStyle.textBoxShadowOffsetX = textStyleModel.getShallow('shadowOffsetX');
    +        textStyle.textBoxShadowOffsetY = textStyleModel.getShallow('shadowOffsetY');
    +    }
    +
    +    textStyle.textShadowColor = textStyleModel.getShallow('textShadowColor')
    +        || globalTextStyle.textShadowColor;
    +    textStyle.textShadowBlur = textStyleModel.getShallow('textShadowBlur')
    +        || globalTextStyle.textShadowBlur;
    +    textStyle.textShadowOffsetX = textStyleModel.getShallow('textShadowOffsetX')
    +        || globalTextStyle.textShadowOffsetX;
    +    textStyle.textShadowOffsetY = textStyleModel.getShallow('textShadowOffsetY')
    +        || globalTextStyle.textShadowOffsetY;
    +}
    +
    +function getAutoColor(color, opt) {
    +    return color !== 'auto' ? color : (opt && opt.autoColor) ? opt.autoColor : null;
    +}
    +
    +function applyInsideStyle(textStyle, textPosition, opt) {
    +    var useInsideStyle = opt.useInsideStyle;
    +    var insideRollback;
    +
    +    if (textStyle.textFill == null
    +        && useInsideStyle !== false
    +        && (useInsideStyle === true
    +            || (opt.isRectText
    +                && textPosition
    +                // textPosition can be [10, 30]
    +                && typeof textPosition === 'string'
    +                && textPosition.indexOf('inside') >= 0
    +            )
    +        )
    +    ) {
    +        insideRollback = {
    +            textFill: null,
    +            textStroke: textStyle.textStroke,
    +            textStrokeWidth: textStyle.textStrokeWidth
    +        };
    +        textStyle.textFill = '#fff';
    +        // Consider text with #fff overflow its container.
    +        if (textStyle.textStroke == null) {
    +            textStyle.textStroke = opt.autoColor;
    +            textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2);
    +        }
    +    }
    +
    +    return insideRollback;
    +}
    +
    +function rollbackInsideStyle(style) {
    +    var insideRollback = style.insideRollback;
    +    if (insideRollback) {
    +        style.textFill = insideRollback.textFill;
    +        style.textStroke = insideRollback.textStroke;
    +        style.textStrokeWidth = insideRollback.textStrokeWidth;
    +    }
    +}
    +
    +function getFont(opt, ecModel) {
    +    // ecModel or default text style model.
    +    var gTextStyleModel = ecModel || ecModel.getModel('textStyle');
    +    return [
    +        // FIXME in node-canvas fontWeight is before fontStyle
    +        opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '',
    +        opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '',
    +        (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px',
    +        opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'
    +    ].join(' ');
    +}
    +
    +function animateOrSetProps(isUpdate, el, props, animatableModel, dataIndex, cb) {
    +    if (typeof dataIndex === 'function') {
    +        cb = dataIndex;
    +        dataIndex = null;
    +    }
    +    // Do not check 'animation' property directly here. Consider this case:
    +    // animation model is an `itemModel`, whose does not have `isAnimationEnabled`
    +    // but its parent model (`seriesModel`) does.
    +    var animationEnabled = animatableModel && animatableModel.isAnimationEnabled();
    +
    +    if (animationEnabled) {
    +        var postfix = isUpdate ? 'Update' : '';
    +        var duration = animatableModel.getShallow('animationDuration' + postfix);
    +        var animationEasing = animatableModel.getShallow('animationEasing' + postfix);
    +        var animationDelay = animatableModel.getShallow('animationDelay' + postfix);
    +        if (typeof animationDelay === 'function') {
    +            animationDelay = animationDelay(
    +                dataIndex,
    +                animatableModel.getAnimationDelayParams
    +                    ? animatableModel.getAnimationDelayParams(el, dataIndex)
    +                    : null
    +            );
    +        }
    +        if (typeof duration === 'function') {
    +            duration = duration(dataIndex);
    +        }
    +
    +        duration > 0
    +            ? el.animateTo(props, duration, animationDelay || 0, animationEasing, cb, !!cb)
    +            : (el.stopAnimation(), el.attr(props), cb && cb());
    +    }
    +    else {
    +        el.stopAnimation();
    +        el.attr(props);
    +        cb && cb();
    +    }
    +}
    +
    +/**
    + * Update graphic element properties with or without animation according to the
    + * configuration in series.
    + *
    + * Caution: this method will stop previous animation.
    + * So if do not use this method to one element twice before
    + * animation starts, unless you know what you are doing.
    + *
    + * @param {module:zrender/Element} el
    + * @param {Object} props
    + * @param {module:echarts/model/Model} [animatableModel]
    + * @param {number} [dataIndex]
    + * @param {Function} [cb]
    + * @example
    + *     graphic.updateProps(el, {
    + *         position: [100, 100]
    + *     }, seriesModel, dataIndex, function () { console.log('Animation done!'); });
    + *     // Or
    + *     graphic.updateProps(el, {
    + *         position: [100, 100]
    + *     }, seriesModel, function () { console.log('Animation done!'); });
    + */
    +function updateProps(el, props, animatableModel, dataIndex, cb) {
    +    animateOrSetProps(true, el, props, animatableModel, dataIndex, cb);
    +}
    +
    +/**
    + * Init graphic element properties with or without animation according to the
    + * configuration in series.
    + *
    + * Caution: this method will stop previous animation.
    + * So if do not use this method to one element twice before
    + * animation starts, unless you know what you are doing.
    + *
    + * @param {module:zrender/Element} el
    + * @param {Object} props
    + * @param {module:echarts/model/Model} [animatableModel]
    + * @param {number} [dataIndex]
    + * @param {Function} cb
    + */
    +function initProps(el, props, animatableModel, dataIndex, cb) {
    +    animateOrSetProps(false, el, props, animatableModel, dataIndex, cb);
    +}
    +
    +/**
    + * Get transform matrix of target (param target),
    + * in coordinate of its ancestor (param ancestor)
    + *
    + * @param {module:zrender/mixin/Transformable} target
    + * @param {module:zrender/mixin/Transformable} [ancestor]
    + */
    +function getTransform(target, ancestor) {
    +    var mat = identity([]);
    +
    +    while (target && target !== ancestor) {
    +        mul$1(mat, target.getLocalTransform(), mat);
    +        target = target.parent;
    +    }
    +
    +    return mat;
    +}
    +
    +/**
    + * Apply transform to an vertex.
    + * @param {Array.<number>} target [x, y]
    + * @param {Array.<number>|TypedArray.<number>|Object} transform Can be:
    + *      + Transform matrix: like [1, 0, 0, 1, 0, 0]
    + *      + {position, rotation, scale}, the same as `zrender/Transformable`.
    + * @param {boolean=} invert Whether use invert matrix.
    + * @return {Array.<number>} [x, y]
    + */
    +function applyTransform$1(target, transform, invert$$1) {
    +    if (transform && !isArrayLike(transform)) {
    +        transform = Transformable.getLocalTransform(transform);
    +    }
    +
    +    if (invert$$1) {
    +        transform = invert([], transform);
    +    }
    +    return applyTransform([], target, transform);
    +}
    +
    +/**
    + * @param {string} direction 'left' 'right' 'top' 'bottom'
    + * @param {Array.<number>} transform Transform matrix: like [1, 0, 0, 1, 0, 0]
    + * @param {boolean=} invert Whether use invert matrix.
    + * @return {string} Transformed direction. 'left' 'right' 'top' 'bottom'
    + */
    +function transformDirection(direction, transform, invert$$1) {
    +
    +    // Pick a base, ensure that transform result will not be (0, 0).
    +    var hBase = (transform[4] === 0 || transform[5] === 0 || transform[0] === 0)
    +        ? 1 : Math.abs(2 * transform[4] / transform[0]);
    +    var vBase = (transform[4] === 0 || transform[5] === 0 || transform[2] === 0)
    +        ? 1 : Math.abs(2 * transform[4] / transform[2]);
    +
    +    var vertex = [
    +        direction === 'left' ? -hBase : direction === 'right' ? hBase : 0,
    +        direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0
    +    ];
    +
    +    vertex = applyTransform$1(vertex, transform, invert$$1);
    +
    +    return Math.abs(vertex[0]) > Math.abs(vertex[1])
    +        ? (vertex[0] > 0 ? 'right' : 'left')
    +        : (vertex[1] > 0 ? 'bottom' : 'top');
    +}
    +
    +/**
    + * Apply group transition animation from g1 to g2.
    + * If no animatableModel, no animation.
    + */
    +function groupTransition(g1, g2, animatableModel, cb) {
    +    if (!g1 || !g2) {
    +        return;
    +    }
    +
    +    function getElMap(g) {
    +        var elMap = {};
    +        g.traverse(function (el) {
    +            if (!el.isGroup && el.anid) {
    +                elMap[el.anid] = el;
    +            }
    +        });
    +        return elMap;
    +    }
    +    function getAnimatableProps(el) {
    +        var obj = {
    +            position: clone$1(el.position),
    +            rotation: el.rotation
    +        };
    +        if (el.shape) {
    +            obj.shape = extend({}, el.shape);
    +        }
    +        return obj;
    +    }
    +    var elMap1 = getElMap(g1);
    +
    +    g2.traverse(function (el) {
    +        if (!el.isGroup && el.anid) {
    +            var oldEl = elMap1[el.anid];
    +            if (oldEl) {
    +                var newProp = getAnimatableProps(el);
    +                el.attr(getAnimatableProps(oldEl));
    +                updateProps(el, newProp, animatableModel, el.dataIndex);
    +            }
    +            // else {
    +            //     if (el.previousProps) {
    +            //         graphic.updateProps
    +            //     }
    +            // }
    +        }
    +    });
    +}
    +
    +/**
    + * @param {Array.<Array.<number>>} points Like: [[23, 44], [53, 66], ...]
    + * @param {Object} rect {x, y, width, height}
    + * @return {Array.<Array.<number>>} A new clipped points.
    + */
    +function clipPointsByRect(points, rect) {
    +    return map(points, function (point) {
    +        var x = point[0];
    +        x = mathMax$1(x, rect.x);
    +        x = mathMin$1(x, rect.x + rect.width);
    +        var y = point[1];
    +        y = mathMax$1(y, rect.y);
    +        y = mathMin$1(y, rect.y + rect.height);
    +        return [x, y];
    +    });
    +}
    +
    +/**
    + * @param {Object} targetRect {x, y, width, height}
    + * @param {Object} rect {x, y, width, height}
    + * @return {Object} A new clipped rect. If rect size are negative, return undefined.
    + */
    +function clipRectByRect(targetRect, rect) {
    +    var x = mathMax$1(targetRect.x, rect.x);
    +    var x2 = mathMin$1(targetRect.x + targetRect.width, rect.x + rect.width);
    +    var y = mathMax$1(targetRect.y, rect.y);
    +    var y2 = mathMin$1(targetRect.y + targetRect.height, rect.y + rect.height);
    +
    +    if (x2 >= x && y2 >= y) {
    +        return {
    +            x: x,
    +            y: y,
    +            width: x2 - x,
    +            height: y2 - y
    +        };
    +    }
    +}
    +
    +/**
    + * @param {string} iconStr Support 'image://' or 'path://' or direct svg path.
    + * @param {Object} [opt] Properties of `module:zrender/Element`, except `style`.
    + * @param {Object} [rect] {x, y, width, height}
    + * @return {module:zrender/Element} Icon path or image element.
    + */
    +function createIcon(iconStr, opt, rect) {
    +    opt = extend({rectHover: true}, opt);
    +    var style = opt.style = {strokeNoScale: true};
    +    rect = rect || {x: -1, y: -1, width: 2, height: 2};
    +
    +    if (iconStr) {
    +        return iconStr.indexOf('image://') === 0
    +            ? (
    +                style.image = iconStr.slice(8),
    +                defaults(style, rect),
    +                new ZImage(opt)
    +            )
    +            : (
    +                makePath(
    +                    iconStr.replace('path://', ''),
    +                    opt,
    +                    rect,
    +                    'center'
    +                )
    +            );
    +    }
    +}
    +
    +
    +
    +
    +var graphic = (Object.freeze || Object)({
    +	extendShape: extendShape,
    +	extendPath: extendPath,
    +	makePath: makePath,
    +	makeImage: makeImage,
    +	mergePath: mergePath,
    +	resizePath: resizePath,
    +	subPixelOptimizeLine: subPixelOptimizeLine,
    +	subPixelOptimizeRect: subPixelOptimizeRect,
    +	subPixelOptimize: subPixelOptimize,
    +	setHoverStyle: setHoverStyle,
    +	setLabelStyle: setLabelStyle,
    +	setTextStyle: setTextStyle,
    +	setText: setText,
    +	getFont: getFont,
    +	updateProps: updateProps,
    +	initProps: initProps,
    +	getTransform: getTransform,
    +	applyTransform: applyTransform$1,
    +	transformDirection: transformDirection,
    +	groupTransition: groupTransition,
    +	clipPointsByRect: clipPointsByRect,
    +	clipRectByRect: clipRectByRect,
    +	createIcon: createIcon,
    +	Group: Group,
    +	Image: ZImage,
    +	Text: Text,
    +	Circle: Circle,
    +	Sector: Sector,
    +	Ring: Ring,
    +	Polygon: Polygon,
    +	Polyline: Polyline,
    +	Rect: Rect,
    +	Line: Line,
    +	BezierCurve: BezierCurve,
    +	Arc: Arc,
    +	CompoundPath: CompoundPath,
    +	LinearGradient: LinearGradient,
    +	RadialGradient: RadialGradient,
    +	BoundingRect: BoundingRect
    +});
    +
    +var PATH_COLOR = ['textStyle', 'color'];
    +
    +var textStyleMixin = {
    +    /**
    +     * Get color property or get color from option.textStyle.color
    +     * @param {boolean} [isEmphasis]
    +     * @return {string}
    +     */
    +    getTextColor: function (isEmphasis) {
    +        var ecModel = this.ecModel;
    +        return this.getShallow('color')
    +            || (
    +                (!isEmphasis && ecModel) ? ecModel.get(PATH_COLOR) : null
    +            );
    +    },
    +
    +    /**
    +     * Create font string from fontStyle, fontWeight, fontSize, fontFamily
    +     * @return {string}
    +     */
    +    getFont: function () {
    +        return getFont({
    +            fontStyle: this.getShallow('fontStyle'),
    +            fontWeight: this.getShallow('fontWeight'),
    +            fontSize: this.getShallow('fontSize'),
    +            fontFamily: this.getShallow('fontFamily')
    +        }, this.ecModel);
    +    },
    +
    +    getTextRect: function (text) {
    +        return getBoundingRect(
    +            text,
    +            this.getFont(),
    +            this.getShallow('align'),
    +            this.getShallow('verticalAlign') || this.getShallow('baseline'),
    +            this.getShallow('padding'),
    +            this.getShallow('rich'),
    +            this.getShallow('truncateText')
    +        );
    +    }
    +};
    +
    +var getItemStyle = makeStyleMapper(
    +    [
    +        ['fill', 'color'],
    +        ['stroke', 'borderColor'],
    +        ['lineWidth', 'borderWidth'],
    +        ['opacity'],
    +        ['shadowBlur'],
    +        ['shadowOffsetX'],
    +        ['shadowOffsetY'],
    +        ['shadowColor'],
    +        ['textPosition'],
    +        ['textAlign']
    +    ]
    +);
    +
    +var itemStyleMixin = {
    +    getItemStyle: function (excludes, includes) {
    +        var style = getItemStyle(this, excludes, includes);
    +        var lineDash = this.getBorderLineDash();
    +        lineDash && (style.lineDash = lineDash);
    +        return style;
    +    },
    +
    +    getBorderLineDash: function () {
    +        var lineType = this.get('borderType');
    +        return (lineType === 'solid' || lineType == null) ? null
    +            : (lineType === 'dashed' ? [5, 5] : [1, 1]);
    +    }
    +};
    +
    +/**
    + * @module echarts/model/Model
    + */
    +
    +var mixin$1 = mixin;
    +
    +/**
    + * @alias module:echarts/model/Model
    + * @constructor
    + * @param {Object} option
    + * @param {module:echarts/model/Model} [parentModel]
    + * @param {module:echarts/model/Global} [ecModel]
    + */
    +function Model(option, parentModel, ecModel) {
    +    /**
    +     * @type {module:echarts/model/Model}
    +     * @readOnly
    +     */
    +    this.parentModel = parentModel;
    +
    +    /**
    +     * @type {module:echarts/model/Global}
    +     * @readOnly
    +     */
    +    this.ecModel = ecModel;
    +
    +    /**
    +     * @type {Object}
    +     * @protected
    +     */
    +    this.option = option;
    +
    +    // Simple optimization
    +    // if (this.init) {
    +    //     if (arguments.length <= 4) {
    +    //         this.init(option, parentModel, ecModel, extraOpt);
    +    //     }
    +    //     else {
    +    //         this.init.apply(this, arguments);
    +    //     }
    +    // }
    +}
    +
    +Model.prototype = {
    +
    +    constructor: Model,
    +
    +    /**
    +     * Model 的初始化函数
    +     * @param {Object} option
    +     */
    +    init: null,
    +
    +    /**
    +     * 从新的 Option merge
    +     */
    +    mergeOption: function (option) {
    +        merge(this.option, option, true);
    +    },
    +
    +    /**
    +     * @param {string|Array.<string>} path
    +     * @param {boolean} [ignoreParent=false]
    +     * @return {*}
    +     */
    +    get: function (path, ignoreParent) {
    +        if (path == null) {
    +            return this.option;
    +        }
    +
    +        return doGet(
    +            this.option,
    +            this.parsePath(path),
    +            !ignoreParent && getParent(this, path)
    +        );
    +    },
    +
    +    /**
    +     * @param {string} key
    +     * @param {boolean} [ignoreParent=false]
    +     * @return {*}
    +     */
    +    getShallow: function (key, ignoreParent) {
    +        var option = this.option;
    +
    +        var val = option == null ? option : option[key];
    +        var parentModel = !ignoreParent && getParent(this, key);
    +        if (val == null && parentModel) {
    +            val = parentModel.getShallow(key);
    +        }
    +        return val;
    +    },
    +
    +    /**
    +     * @param {string|Array.<string>} [path]
    +     * @param {module:echarts/model/Model} [parentModel]
    +     * @return {module:echarts/model/Model}
    +     */
    +    getModel: function (path, parentModel) {
    +        var obj = path == null
    +            ? this.option
    +            : doGet(this.option, path = this.parsePath(path));
    +
    +        var thisParentModel;
    +        parentModel = parentModel || (
    +            (thisParentModel = getParent(this, path))
    +                && thisParentModel.getModel(path)
    +        );
    +
    +        return new Model(obj, parentModel, this.ecModel);
    +    },
    +
    +    /**
    +     * If model has option
    +     */
    +    isEmpty: function () {
    +        return this.option == null;
    +    },
    +
    +    restoreData: function () {},
    +
    +    // Pending
    +    clone: function () {
    +        var Ctor = this.constructor;
    +        return new Ctor(clone(this.option));
    +    },
    +
    +    setReadOnly: function (properties) {
    +        
    +    },
    +
    +    // If path is null/undefined, return null/undefined.
    +    parsePath: function(path) {
    +        if (typeof path === 'string') {
    +            path = path.split('.');
    +        }
    +        return path;
    +    },
    +
    +    /**
    +     * @param {Function} getParentMethod
    +     *        param {Array.<string>|string} path
    +     *        return {module:echarts/model/Model}
    +     */
    +    customizeGetParent: function (getParentMethod) {
    +        set$1(this, 'getParent', getParentMethod);
    +    },
    +
    +    isAnimationEnabled: function () {
    +        if (!env$1.node) {
    +            if (this.option.animation != null) {
    +                return !!this.option.animation;
    +            }
    +            else if (this.parentModel) {
    +                return this.parentModel.isAnimationEnabled();
    +            }
    +        }
    +    }
    +};
    +
    +function doGet(obj, pathArr, parentModel) {
    +    for (var i = 0; i < pathArr.length; i++) {
    +        // Ignore empty
    +        if (!pathArr[i]) {
    +            continue;
    +        }
    +        // obj could be number/string/... (like 0)
    +        obj = (obj && typeof obj === 'object') ? obj[pathArr[i]] : null;
    +        if (obj == null) {
    +            break;
    +        }
    +    }
    +    if (obj == null && parentModel) {
    +        obj = parentModel.get(pathArr);
    +    }
    +    return obj;
    +}
    +
    +// `path` can be null/undefined
    +function getParent(model, path) {
    +    var getParentMethod = get(model, 'getParent');
    +    return getParentMethod ? getParentMethod.call(model, path) : model.parentModel;
    +}
    +
    +// Enable Model.extend.
    +enableClassExtend(Model);
    +
    +mixin$1(Model, lineStyleMixin);
    +mixin$1(Model, areaStyleMixin);
    +mixin$1(Model, textStyleMixin);
    +mixin$1(Model, itemStyleMixin);
    +
    +var each$3 = each$1;
    +var isObject$2 = isObject;
    +
    +/**
    + * If value is not array, then translate it to array.
    + * @param  {*} value
    + * @return {Array} [value] or value
    + */
    +function normalizeToArray(value) {
    +    return value instanceof Array
    +        ? value
    +        : value == null
    +        ? []
    +        : [value];
    +}
    +
    +/**
    + * Sync default option between normal and emphasis like `position` and `show`
    + * In case some one will write code like
    + *     label: {
    + *         normal: {
    + *             show: false,
    + *             position: 'outside',
    + *             fontSize: 18
    + *         },
    + *         emphasis: {
    + *             show: true
    + *         }
    + *     }
    + * @param {Object} opt
    + * @param {Array.<string>} subOpts
    + */
    +function defaultEmphasis(opt, subOpts) {
    +    if (opt) {
    +        var emphasisOpt = opt.emphasis = opt.emphasis || {};
    +        var normalOpt = opt.normal = opt.normal || {};
    +
    +        // Default emphasis option from normal
    +        for (var i = 0, len = subOpts.length; i < len; i++) {
    +            var subOptName = subOpts[i];
    +            if (!emphasisOpt.hasOwnProperty(subOptName)
    +                && normalOpt.hasOwnProperty(subOptName)
    +            ) {
    +                emphasisOpt[subOptName] = normalOpt[subOptName];
    +            }
    +        }
    +    }
    +}
    +
    +var TEXT_STYLE_OPTIONS = [
    +    'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',
    +    'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth',
    +    'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline',
    +    'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY',
    +    'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY',
    +    'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding'
    +];
    +
    +// modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([
    +//     'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',
    +//     'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',
    +//     // FIXME: deprecated, check and remove it.
    +//     'textStyle'
    +// ]);
    +
    +/**
    + * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
    + * This helper method retieves value from data.
    + * @param {string|number|Date|Array|Object} dataItem
    + * @return {number|string|Date|Array.<number|string|Date>}
    + */
    +function getDataItemValue(dataItem) {
    +    // Performance sensitive.
    +    return dataItem && (dataItem.value == null ? dataItem : dataItem.value);
    +}
    +
    +/**
    + * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
    + * This helper method determine if dataItem has extra option besides value
    + * @param {string|number|Date|Array|Object} dataItem
    + */
    +function isDataItemOption(dataItem) {
    +    return isObject$2(dataItem)
    +        && !(dataItem instanceof Array);
    +        // // markLine data can be array
    +        // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));
    +}
    +
    +/**
    + * This helper method convert value in data.
    + * @param {string|number|Date} value
    + * @param {Object|string} [dimInfo] If string (like 'x'), dimType defaults 'number'.
    + */
    +function converDataValue(value, dimInfo) {
    +    // Performance sensitive.
    +    var dimType = dimInfo && dimInfo.type;
    +    if (dimType === 'ordinal') {
    +        return value;
    +    }
    +
    +    if (dimType === 'time'
    +        // spead up when using timestamp
    +        && typeof value !== 'number'
    +        && value != null
    +        && value !== '-'
    +    ) {
    +        value = +parseDate(value);
    +    }
    +
    +    // dimType defaults 'number'.
    +    // If dimType is not ordinal and value is null or undefined or NaN or '-',
    +    // parse to NaN.
    +    return (value == null || value === '')
    +        ? NaN : +value; // If string (like '-'), using '+' parse to NaN
    +}
    +
    +/**
    + * Create a model proxy to be used in tooltip for edge data, markLine data, markPoint data.
    + * @param {module:echarts/data/List} data
    + * @param {Object} opt
    + * @param {string} [opt.seriesIndex]
    + * @param {Object} [opt.name]
    + * @param {Object} [opt.mainType]
    + * @param {Object} [opt.subType]
    + */
    +
    +
    +// PENDING A little ugly
    +var dataFormatMixin = {
    +    /**
    +     * Get params for formatter
    +     * @param {number} dataIndex
    +     * @param {string} [dataType]
    +     * @return {Object}
    +     */
    +    getDataParams: function (dataIndex, dataType) {
    +        var data = this.getData(dataType);
    +        var rawValue = this.getRawValue(dataIndex, dataType);
    +        var rawDataIndex = data.getRawIndex(dataIndex);
    +        var name = data.getName(dataIndex, true);
    +        var itemOpt = data.getRawDataItem(dataIndex);
    +        var color = data.getItemVisual(dataIndex, 'color');
    +
    +        return {
    +            componentType: this.mainType,
    +            componentSubType: this.subType,
    +            seriesType: this.mainType === 'series' ? this.subType : null,
    +            seriesIndex: this.seriesIndex,
    +            seriesId: this.id,
    +            seriesName: this.name,
    +            name: name,
    +            dataIndex: rawDataIndex,
    +            data: itemOpt,
    +            dataType: dataType,
    +            value: rawValue,
    +            color: color,
    +            marker: getTooltipMarker(color),
    +
    +            // Param name list for mapping `a`, `b`, `c`, `d`, `e`
    +            $vars: ['seriesName', 'name', 'value']
    +        };
    +    },
    +
    +    /**
    +     * Format label
    +     * @param {number} dataIndex
    +     * @param {string} [status='normal'] 'normal' or 'emphasis'
    +     * @param {string} [dataType]
    +     * @param {number} [dimIndex]
    +     * @param {string} [labelProp='label']
    +     * @return {string}
    +     */
    +    getFormattedLabel: function (dataIndex, status, dataType, dimIndex, labelProp) {
    +        status = status || 'normal';
    +        var data = this.getData(dataType);
    +        var itemModel = data.getItemModel(dataIndex);
    +
    +        var params = this.getDataParams(dataIndex, dataType);
    +        if (dimIndex != null && (params.value instanceof Array)) {
    +            params.value = params.value[dimIndex];
    +        }
    +
    +        var formatter = itemModel.get([labelProp || 'label', status, 'formatter']);
    +
    +        if (typeof formatter === 'function') {
    +            params.status = status;
    +            return formatter(params);
    +        }
    +        else if (typeof formatter === 'string') {
    +            return formatTpl(formatter, params);
    +        }
    +    },
    +
    +    /**
    +     * Get raw value in option
    +     * @param {number} idx
    +     * @param {string} [dataType]
    +     * @return {Object}
    +     */
    +    getRawValue: function (idx, dataType) {
    +        var data = this.getData(dataType);
    +        var dataItem = data.getRawDataItem(idx);
    +        if (dataItem != null) {
    +            return (isObject$2(dataItem) && !(dataItem instanceof Array))
    +                ? dataItem.value : dataItem;
    +        }
    +    },
    +
    +    /**
    +     * Should be implemented.
    +     * @param {number} dataIndex
    +     * @param {boolean} [multipleSeries=false]
    +     * @param {number} [dataType]
    +     * @return {string} tooltip string
    +     */
    +    formatTooltip: noop
    +};
    +
    +/**
    + * Mapping to exists for merge.
    + *
    + * @public
    + * @param {Array.<Object>|Array.<module:echarts/model/Component>} exists
    + * @param {Object|Array.<Object>} newCptOptions
    + * @return {Array.<Object>} Result, like [{exist: ..., option: ...}, {}],
    + *                          index of which is the same as exists.
    + */
    +function mappingToExists(exists, newCptOptions) {
    +    // Mapping by the order by original option (but not order of
    +    // new option) in merge mode. Because we should ensure
    +    // some specified index (like xAxisIndex) is consistent with
    +    // original option, which is easy to understand, espatially in
    +    // media query. And in most case, merge option is used to
    +    // update partial option but not be expected to change order.
    +    newCptOptions = (newCptOptions || []).slice();
    +
    +    var result = map(exists || [], function (obj, index) {
    +        return {exist: obj};
    +    });
    +
    +    // Mapping by id or name if specified.
    +    each$3(newCptOptions, function (cptOption, index) {
    +        if (!isObject$2(cptOption)) {
    +            return;
    +        }
    +
    +        // id has highest priority.
    +        for (var i = 0; i < result.length; i++) {
    +            if (!result[i].option // Consider name: two map to one.
    +                && cptOption.id != null
    +                && result[i].exist.id === cptOption.id + ''
    +            ) {
    +                result[i].option = cptOption;
    +                newCptOptions[index] = null;
    +                return;
    +            }
    +        }
    +
    +        for (var i = 0; i < result.length; i++) {
    +            var exist = result[i].exist;
    +            if (!result[i].option // Consider name: two map to one.
    +                // Can not match when both ids exist but different.
    +                && (exist.id == null || cptOption.id == null)
    +                && cptOption.name != null
    +                && !isIdInner(cptOption)
    +                && !isIdInner(exist)
    +                && exist.name === cptOption.name + ''
    +            ) {
    +                result[i].option = cptOption;
    +                newCptOptions[index] = null;
    +                return;
    +            }
    +        }
    +    });
    +
    +    // Otherwise mapping by index.
    +    each$3(newCptOptions, function (cptOption, index) {
    +        if (!isObject$2(cptOption)) {
    +            return;
    +        }
    +
    +        var i = 0;
    +        for (; i < result.length; i++) {
    +            var exist = result[i].exist;
    +            if (!result[i].option
    +                // Existing model that already has id should be able to
    +                // mapped to (because after mapping performed model may
    +                // be assigned with a id, whish should not affect next
    +                // mapping), except those has inner id.
    +                && !isIdInner(exist)
    +                // Caution:
    +                // Do not overwrite id. But name can be overwritten,
    +                // because axis use name as 'show label text'.
    +                // 'exist' always has id and name and we dont
    +                // need to check it.
    +                && cptOption.id == null
    +            ) {
    +                result[i].option = cptOption;
    +                break;
    +            }
    +        }
    +
    +        if (i >= result.length) {
    +            result.push({option: cptOption});
    +        }
    +    });
    +
    +    return result;
    +}
    +
    +/**
    + * Make id and name for mapping result (result of mappingToExists)
    + * into `keyInfo` field.
    + *
    + * @public
    + * @param {Array.<Object>} Result, like [{exist: ..., option: ...}, {}],
    + *                          which order is the same as exists.
    + * @return {Array.<Object>} The input.
    + */
    +function makeIdAndName(mapResult) {
    +    // We use this id to hash component models and view instances
    +    // in echarts. id can be specified by user, or auto generated.
    +
    +    // The id generation rule ensures new view instance are able
    +    // to mapped to old instance when setOption are called in
    +    // no-merge mode. So we generate model id by name and plus
    +    // type in view id.
    +
    +    // name can be duplicated among components, which is convenient
    +    // to specify multi components (like series) by one name.
    +
    +    // Ensure that each id is distinct.
    +    var idMap = createHashMap();
    +
    +    each$3(mapResult, function (item, index) {
    +        var existCpt = item.exist;
    +        existCpt && idMap.set(existCpt.id, item);
    +    });
    +
    +    each$3(mapResult, function (item, index) {
    +        var opt = item.option;
    +
    +        assert(
    +            !opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item,
    +            'id duplicates: ' + (opt && opt.id)
    +        );
    +
    +        opt && opt.id != null && idMap.set(opt.id, item);
    +        !item.keyInfo && (item.keyInfo = {});
    +    });
    +
    +    // Make name and id.
    +    each$3(mapResult, function (item, index) {
    +        var existCpt = item.exist;
    +        var opt = item.option;
    +        var keyInfo = item.keyInfo;
    +
    +        if (!isObject$2(opt)) {
    +            return;
    +        }
    +
    +        // name can be overwitten. Consider case: axis.name = '20km'.
    +        // But id generated by name will not be changed, which affect
    +        // only in that case: setOption with 'not merge mode' and view
    +        // instance will be recreated, which can be accepted.
    +        keyInfo.name = opt.name != null
    +            ? opt.name + ''
    +            : existCpt
    +            ? existCpt.name
    +            : '\0-'; // name may be displayed on screen, so use '-'.
    +
    +        if (existCpt) {
    +            keyInfo.id = existCpt.id;
    +        }
    +        else if (opt.id != null) {
    +            keyInfo.id = opt.id + '';
    +        }
    +        else {
    +            // Consider this situatoin:
    +            //  optionA: [{name: 'a'}, {name: 'a'}, {..}]
    +            //  optionB [{..}, {name: 'a'}, {name: 'a'}]
    +            // Series with the same name between optionA and optionB
    +            // should be mapped.
    +            var idNum = 0;
    +            do {
    +                keyInfo.id = '\0' + keyInfo.name + '\0' + idNum++;
    +            }
    +            while (idMap.get(keyInfo.id));
    +        }
    +
    +        idMap.set(keyInfo.id, item);
    +    });
    +}
    +
    +/**
    + * @public
    + * @param {Object} cptOption
    + * @return {boolean}
    + */
    +function isIdInner(cptOption) {
    +    return isObject$2(cptOption)
    +        && cptOption.id
    +        && (cptOption.id + '').indexOf('\0_ec_\0') === 0;
    +}
    +
    +/**
    + * A helper for removing duplicate items between batchA and batchB,
    + * and in themselves, and categorize by series.
    + *
    + * @param {Array.<Object>} batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
    + * @param {Array.<Object>} batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
    + * @return {Array.<Array.<Object>, Array.<Object>>} result: [resultBatchA, resultBatchB]
    + */
    +function compressBatches(batchA, batchB) {
    +    var mapA = {};
    +    var mapB = {};
    +
    +    makeMap(batchA || [], mapA);
    +    makeMap(batchB || [], mapB, mapA);
    +
    +    return [mapToArray(mapA), mapToArray(mapB)];
    +
    +    function makeMap(sourceBatch, map$$1, otherMap) {
    +        for (var i = 0, len = sourceBatch.length; i < len; i++) {
    +            var seriesId = sourceBatch[i].seriesId;
    +            var dataIndices = normalizeToArray(sourceBatch[i].dataIndex);
    +            var otherDataIndices = otherMap && otherMap[seriesId];
    +
    +            for (var j = 0, lenj = dataIndices.length; j < lenj; j++) {
    +                var dataIndex = dataIndices[j];
    +
    +                if (otherDataIndices && otherDataIndices[dataIndex]) {
    +                    otherDataIndices[dataIndex] = null;
    +                }
    +                else {
    +                    (map$$1[seriesId] || (map$$1[seriesId] = {}))[dataIndex] = 1;
    +                }
    +            }
    +        }
    +    }
    +
    +    function mapToArray(map$$1, isData) {
    +        var result = [];
    +        for (var i in map$$1) {
    +            if (map$$1.hasOwnProperty(i) && map$$1[i] != null) {
    +                if (isData) {
    +                    result.push(+i);
    +                }
    +                else {
    +                    var dataIndices = mapToArray(map$$1[i], true);
    +                    dataIndices.length && result.push({seriesId: i, dataIndex: dataIndices});
    +                }
    +            }
    +        }
    +        return result;
    +    }
    +}
    +
    +/**
    + * @param {module:echarts/data/List} data
    + * @param {Object} payload Contains dataIndex (means rawIndex) / dataIndexInside / name
    + *                         each of which can be Array or primary type.
    + * @return {number|Array.<number>} dataIndex If not found, return undefined/null.
    + */
    +function queryDataIndex(data, payload) {
    +    if (payload.dataIndexInside != null) {
    +        return payload.dataIndexInside;
    +    }
    +    else if (payload.dataIndex != null) {
    +        return isArray(payload.dataIndex)
    +            ? map(payload.dataIndex, function (value) {
    +                return data.indexOfRawIndex(value);
    +            })
    +            : data.indexOfRawIndex(payload.dataIndex);
    +    }
    +    else if (payload.name != null) {
    +        return isArray(payload.name)
    +            ? map(payload.name, function (value) {
    +                return data.indexOfName(value);
    +            })
    +            : data.indexOfName(payload.name);
    +    }
    +}
    +
    +/**
    + * Enable property storage to any host object.
    + * Notice: Serialization is not supported.
    + *
    + * For example:
    + * var get = modelUitl.makeGetter();
    + *
    + * function some(hostObj) {
    + *      get(hostObj)._someProperty = 1212;
    + *      ...
    + * }
    + *
    + * @return {Function}
    + */
    +var makeGetter = (function () {
    +    var index = 0;
    +    return function () {
    +        var key = '\0__ec_prop_getter_' + index++;
    +        return function (hostObj) {
    +            return hostObj[key] || (hostObj[key] = {});
    +        };
    +    };
    +})();
    +
    +/**
    + * @param {module:echarts/model/Global} ecModel
    + * @param {string|Object} finder
    + *        If string, e.g., 'geo', means {geoIndex: 0}.
    + *        If Object, could contain some of these properties below:
    + *        {
    + *            seriesIndex, seriesId, seriesName,
    + *            geoIndex, geoId, geoName,
    + *            bmapIndex, bmapId, bmapName,
    + *            xAxisIndex, xAxisId, xAxisName,
    + *            yAxisIndex, yAxisId, yAxisName,
    + *            gridIndex, gridId, gridName,
    + *            ... (can be extended)
    + *        }
    + *        Each properties can be number|string|Array.<number>|Array.<string>
    + *        For example, a finder could be
    + *        {
    + *            seriesIndex: 3,
    + *            geoId: ['aa', 'cc'],
    + *            gridName: ['xx', 'rr']
    + *        }
    + *        xxxIndex can be set as 'all' (means all xxx) or 'none' (means not specify)
    + *        If nothing or null/undefined specified, return nothing.
    + * @param {Object} [opt]
    + * @param {string} [opt.defaultMainType]
    + * @param {Array.<string>} [opt.includeMainTypes]
    + * @return {Object} result like:
    + *        {
    + *            seriesModels: [seriesModel1, seriesModel2],
    + *            seriesModel: seriesModel1, // The first model
    + *            geoModels: [geoModel1, geoModel2],
    + *            geoModel: geoModel1, // The first model
    + *            ...
    + *        }
    + */
    +function parseFinder(ecModel, finder, opt) {
    +    if (isString(finder)) {
    +        var obj = {};
    +        obj[finder + 'Index'] = 0;
    +        finder = obj;
    +    }
    +
    +    var defaultMainType = opt && opt.defaultMainType;
    +    if (defaultMainType
    +        && !has(finder, defaultMainType + 'Index')
    +        && !has(finder, defaultMainType + 'Id')
    +        && !has(finder, defaultMainType + 'Name')
    +    ) {
    +        finder[defaultMainType + 'Index'] = 0;
    +    }
    +
    +    var result = {};
    +
    +    each$3(finder, function (value, key) {
    +        var value = finder[key];
    +
    +        // Exclude 'dataIndex' and other illgal keys.
    +        if (key === 'dataIndex' || key === 'dataIndexInside') {
    +            result[key] = value;
    +            return;
    +        }
    +
    +        var parsedKey = key.match(/^(\w+)(Index|Id|Name)$/) || [];
    +        var mainType = parsedKey[1];
    +        var queryType = (parsedKey[2] || '').toLowerCase();
    +
    +        if (!mainType
    +            || !queryType
    +            || value == null
    +            || (queryType === 'index' && value === 'none')
    +            || (opt && opt.includeMainTypes && indexOf(opt.includeMainTypes, mainType) < 0)
    +        ) {
    +            return;
    +        }
    +
    +        var queryParam = {mainType: mainType};
    +        if (queryType !== 'index' || value !== 'all') {
    +            queryParam[queryType] = value;
    +        }
    +
    +        var models = ecModel.queryComponents(queryParam);
    +        result[mainType + 'Models'] = models;
    +        result[mainType + 'Model'] = models[0];
    +    });
    +
    +    return result;
    +}
    +
    +/**
    + * @see {module:echarts/data/helper/completeDimensions}
    + * @param {module:echarts/data/List} data
    + * @param {string|number} dataDim
    + * @return {string}
    + */
    +function dataDimToCoordDim(data, dataDim) {
    +    var dimensions = data.dimensions;
    +    dataDim = data.getDimension(dataDim);
    +    for (var i = 0; i < dimensions.length; i++) {
    +        var dimItem = data.getDimensionInfo(dimensions[i]);
    +        if (dimItem.name === dataDim) {
    +            return dimItem.coordDim;
    +        }
    +    }
    +}
    +
    +/**
    + * @see {module:echarts/data/helper/completeDimensions}
    + * @param {module:echarts/data/List} data
    + * @param {string} coordDim
    + * @return {Array.<string>} data dimensions on the coordDim.
    + */
    +function coordDimToDataDim(data, coordDim) {
    +    var dataDim = [];
    +    each$3(data.dimensions, function (dimName) {
    +        var dimItem = data.getDimensionInfo(dimName);
    +        if (dimItem.coordDim === coordDim) {
    +            dataDim[dimItem.coordDimIndex] = dimItem.name;
    +        }
    +    });
    +    return dataDim;
    +}
    +
    +/**
    + * @see {module:echarts/data/helper/completeDimensions}
    + * @param {module:echarts/data/List} data
    + * @param {string} otherDim Can be `otherDims`
    + *                        like 'label' or 'tooltip'.
    + * @return {Array.<string>} data dimensions on the otherDim.
    + */
    +function otherDimToDataDim(data, otherDim) {
    +    var dataDim = [];
    +    each$3(data.dimensions, function (dimName) {
    +        var dimItem = data.getDimensionInfo(dimName);
    +        var otherDims = dimItem.otherDims;
    +        var dimIndex = otherDims[otherDim];
    +        if (dimIndex != null && dimIndex !== false) {
    +            dataDim[dimIndex] = dimItem.name;
    +        }
    +    });
    +    return dataDim;
    +}
    +
    +function has(obj, prop) {
    +    return obj && obj.hasOwnProperty(prop);
    +}
    +
    +var base = 0;
    +
    +var DELIMITER = '_';
    +
    +/**
    + * @public
    + * @param {string} type
    + * @return {string}
    + */
    +function getUID(type) {
    +    // Considering the case of crossing js context,
    +    // use Math.random to make id as unique as possible.
    +    return [(type || ''), base++, Math.random()].join(DELIMITER);
    +}
    +
    +/**
    + * @inner
    + */
    +function enableSubTypeDefaulter(entity) {
    +
    +    var subTypeDefaulters = {};
    +
    +    entity.registerSubTypeDefaulter = function (componentType, defaulter) {
    +        componentType = parseClassType$1(componentType);
    +        subTypeDefaulters[componentType.main] = defaulter;
    +    };
    +
    +    entity.determineSubType = function (componentType, option) {
    +        var type = option.type;
    +        if (!type) {
    +            var componentTypeMain = parseClassType$1(componentType).main;
    +            if (entity.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {
    +                type = subTypeDefaulters[componentTypeMain](option);
    +            }
    +        }
    +        return type;
    +    };
    +
    +    return entity;
    +}
    +
    +/**
    + * Topological travel on Activity Network (Activity On Vertices).
    + * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].
    + *
    + * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.
    + *
    + * If there is circle dependencey, Error will be thrown.
    + *
    + */
    +function enableTopologicalTravel(entity, dependencyGetter) {
    +
    +    /**
    +     * @public
    +     * @param {Array.<string>} targetNameList Target Component type list.
    +     *                                           Can be ['aa', 'bb', 'aa.xx']
    +     * @param {Array.<string>} fullNameList By which we can build dependency graph.
    +     * @param {Function} callback Params: componentType, dependencies.
    +     * @param {Object} context Scope of callback.
    +     */
    +    entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) {
    +        if (!targetNameList.length) {
    +            return;
    +        }
    +
    +        var result = makeDepndencyGraph(fullNameList);
    +        var graph = result.graph;
    +        var stack = result.noEntryList;
    +
    +        var targetNameSet = {};
    +        each$1(targetNameList, function (name) {
    +            targetNameSet[name] = true;
    +        });
    +
    +        while (stack.length) {
    +            var currComponentType = stack.pop();
    +            var currVertex = graph[currComponentType];
    +            var isInTargetNameSet = !!targetNameSet[currComponentType];
    +            if (isInTargetNameSet) {
    +                callback.call(context, currComponentType, currVertex.originalDeps.slice());
    +                delete targetNameSet[currComponentType];
    +            }
    +            each$1(
    +                currVertex.successor,
    +                isInTargetNameSet ? removeEdgeAndAdd : removeEdge
    +            );
    +        }
    +
    +        each$1(targetNameSet, function () {
    +            throw new Error('Circle dependency may exists');
    +        });
    +
    +        function removeEdge(succComponentType) {
    +            graph[succComponentType].entryCount--;
    +            if (graph[succComponentType].entryCount === 0) {
    +                stack.push(succComponentType);
    +            }
    +        }
    +
    +        // Consider this case: legend depends on series, and we call
    +        // chart.setOption({series: [...]}), where only series is in option.
    +        // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will
    +        // not be called, but only sereis.mergeOption is called. Thus legend
    +        // have no chance to update its local record about series (like which
    +        // name of series is available in legend).
    +        function removeEdgeAndAdd(succComponentType) {
    +            targetNameSet[succComponentType] = true;
    +            removeEdge(succComponentType);
    +        }
    +    };
    +
    +    /**
    +     * DepndencyGraph: {Object}
    +     * key: conponentType,
    +     * value: {
    +     *     successor: [conponentTypes...],
    +     *     originalDeps: [conponentTypes...],
    +     *     entryCount: {number}
    +     * }
    +     */
    +    function makeDepndencyGraph(fullNameList) {
    +        var graph = {};
    +        var noEntryList = [];
    +
    +        each$1(fullNameList, function (name) {
    +
    +            var thisItem = createDependencyGraphItem(graph, name);
    +            var originalDeps = thisItem.originalDeps = dependencyGetter(name);
    +
    +            var availableDeps = getAvailableDependencies(originalDeps, fullNameList);
    +            thisItem.entryCount = availableDeps.length;
    +            if (thisItem.entryCount === 0) {
    +                noEntryList.push(name);
    +            }
    +
    +            each$1(availableDeps, function (dependentName) {
    +                if (indexOf(thisItem.predecessor, dependentName) < 0) {
    +                    thisItem.predecessor.push(dependentName);
    +                }
    +                var thatItem = createDependencyGraphItem(graph, dependentName);
    +                if (indexOf(thatItem.successor, dependentName) < 0) {
    +                    thatItem.successor.push(name);
    +                }
    +            });
    +        });
    +
    +        return {graph: graph, noEntryList: noEntryList};
    +    }
    +
    +    function createDependencyGraphItem(graph, name) {
    +        if (!graph[name]) {
    +            graph[name] = {predecessor: [], successor: []};
    +        }
    +        return graph[name];
    +    }
    +
    +    function getAvailableDependencies(originalDeps, fullNameList) {
    +        var availableDeps = [];
    +        each$1(originalDeps, function (dep) {
    +            indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);
    +        });
    +        return availableDeps;
    +    }
    +}
    +
    +// Layout helpers for each component positioning
    +
    +var each$4 = each$1;
    +
    +/**
    + * @public
    + */
    +var LOCATION_PARAMS = [
    +    'left', 'right', 'top', 'bottom', 'width', 'height'
    +];
    +
    +/**
    + * @public
    + */
    +var HV_NAMES = [
    +    ['width', 'left', 'right'],
    +    ['height', 'top', 'bottom']
    +];
    +
    +function boxLayout(orient, group, gap, maxWidth, maxHeight) {
    +    var x = 0;
    +    var y = 0;
    +
    +    if (maxWidth == null) {
    +        maxWidth = Infinity;
    +    }
    +    if (maxHeight == null) {
    +        maxHeight = Infinity;
    +    }
    +    var currentLineMaxSize = 0;
    +
    +    group.eachChild(function (child, idx) {
    +        var position = child.position;
    +        var rect = child.getBoundingRect();
    +        var nextChild = group.childAt(idx + 1);
    +        var nextChildRect = nextChild && nextChild.getBoundingRect();
    +        var nextX;
    +        var nextY;
    +
    +        if (orient === 'horizontal') {
    +            var moveX = rect.width + (nextChildRect ? (-nextChildRect.x + rect.x) : 0);
    +            nextX = x + moveX;
    +            // Wrap when width exceeds maxWidth or meet a `newline` group
    +            // FIXME compare before adding gap?
    +            if (nextX > maxWidth || child.newline) {
    +                x = 0;
    +                nextX = moveX;
    +                y += currentLineMaxSize + gap;
    +                currentLineMaxSize = rect.height;
    +            }
    +            else {
    +                // FIXME: consider rect.y is not `0`?
    +                currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);
    +            }
    +        }
    +        else {
    +            var moveY = rect.height + (nextChildRect ? (-nextChildRect.y + rect.y) : 0);
    +            nextY = y + moveY;
    +            // Wrap when width exceeds maxHeight or meet a `newline` group
    +            if (nextY > maxHeight || child.newline) {
    +                x += currentLineMaxSize + gap;
    +                y = 0;
    +                nextY = moveY;
    +                currentLineMaxSize = rect.width;
    +            }
    +            else {
    +                currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);
    +            }
    +        }
    +
    +        if (child.newline) {
    +            return;
    +        }
    +
    +        position[0] = x;
    +        position[1] = y;
    +
    +        orient === 'horizontal'
    +            ? (x = nextX + gap)
    +            : (y = nextY + gap);
    +    });
    +}
    +
    +/**
    + * VBox or HBox layouting
    + * @param {string} orient
    + * @param {module:zrender/container/Group} group
    + * @param {number} gap
    + * @param {number} [width=Infinity]
    + * @param {number} [height=Infinity]
    + */
    +var box = boxLayout;
    +
    +/**
    + * VBox layouting
    + * @param {module:zrender/container/Group} group
    + * @param {number} gap
    + * @param {number} [width=Infinity]
    + * @param {number} [height=Infinity]
    + */
    +var vbox = curry(boxLayout, 'vertical');
    +
    +/**
    + * HBox layouting
    + * @param {module:zrender/container/Group} group
    + * @param {number} gap
    + * @param {number} [width=Infinity]
    + * @param {number} [height=Infinity]
    + */
    +var hbox = curry(boxLayout, 'horizontal');
    +
    +/**
    + * If x or x2 is not specified or 'center' 'left' 'right',
    + * the width would be as long as possible.
    + * If y or y2 is not specified or 'middle' 'top' 'bottom',
    + * the height would be as long as possible.
    + *
    + * @param {Object} positionInfo
    + * @param {number|string} [positionInfo.x]
    + * @param {number|string} [positionInfo.y]
    + * @param {number|string} [positionInfo.x2]
    + * @param {number|string} [positionInfo.y2]
    + * @param {Object} containerRect {width, height}
    + * @param {string|number} margin
    + * @return {Object} {width, height}
    + */
    +function getAvailableSize(positionInfo, containerRect, margin) {
    +    var containerWidth = containerRect.width;
    +    var containerHeight = containerRect.height;
    +
    +    var x = parsePercent$1(positionInfo.x, containerWidth);
    +    var y = parsePercent$1(positionInfo.y, containerHeight);
    +    var x2 = parsePercent$1(positionInfo.x2, containerWidth);
    +    var y2 = parsePercent$1(positionInfo.y2, containerHeight);
    +
    +    (isNaN(x) || isNaN(parseFloat(positionInfo.x))) && (x = 0);
    +    (isNaN(x2) || isNaN(parseFloat(positionInfo.x2))) && (x2 = containerWidth);
    +    (isNaN(y) || isNaN(parseFloat(positionInfo.y))) && (y = 0);
    +    (isNaN(y2) || isNaN(parseFloat(positionInfo.y2))) && (y2 = containerHeight);
    +
    +    margin = normalizeCssArray$1(margin || 0);
    +
    +    return {
    +        width: Math.max(x2 - x - margin[1] - margin[3], 0),
    +        height: Math.max(y2 - y - margin[0] - margin[2], 0)
    +    };
    +}
    +
    +/**
    + * Parse position info.
    + *
    + * @param {Object} positionInfo
    + * @param {number|string} [positionInfo.left]
    + * @param {number|string} [positionInfo.top]
    + * @param {number|string} [positionInfo.right]
    + * @param {number|string} [positionInfo.bottom]
    + * @param {number|string} [positionInfo.width]
    + * @param {number|string} [positionInfo.height]
    + * @param {number|string} [positionInfo.aspect] Aspect is width / height
    + * @param {Object} containerRect
    + * @param {string|number} [margin]
    + *
    + * @return {module:zrender/core/BoundingRect}
    + */
    +function getLayoutRect(
    +    positionInfo, containerRect, margin
    +) {
    +    margin = normalizeCssArray$1(margin || 0);
    +
    +    var containerWidth = containerRect.width;
    +    var containerHeight = containerRect.height;
    +
    +    var left = parsePercent$1(positionInfo.left, containerWidth);
    +    var top = parsePercent$1(positionInfo.top, containerHeight);
    +    var right = parsePercent$1(positionInfo.right, containerWidth);
    +    var bottom = parsePercent$1(positionInfo.bottom, containerHeight);
    +    var width = parsePercent$1(positionInfo.width, containerWidth);
    +    var height = parsePercent$1(positionInfo.height, containerHeight);
    +
    +    var verticalMargin = margin[2] + margin[0];
    +    var horizontalMargin = margin[1] + margin[3];
    +    var aspect = positionInfo.aspect;
    +
    +    // If width is not specified, calculate width from left and right
    +    if (isNaN(width)) {
    +        width = containerWidth - right - horizontalMargin - left;
    +    }
    +    if (isNaN(height)) {
    +        height = containerHeight - bottom - verticalMargin - top;
    +    }
    +
    +    if (aspect != null) {
    +        // If width and height are not given
    +        // 1. Graph should not exceeds the container
    +        // 2. Aspect must be keeped
    +        // 3. Graph should take the space as more as possible
    +        // FIXME
    +        // Margin is not considered, because there is no case that both
    +        // using margin and aspect so far.
    +        if (isNaN(width) && isNaN(height)) {
    +            if (aspect > containerWidth / containerHeight) {
    +                width = containerWidth * 0.8;
    +            }
    +            else {
    +                height = containerHeight * 0.8;
    +            }
    +        }
    +
    +        // Calculate width or height with given aspect
    +        if (isNaN(width)) {
    +            width = aspect * height;
    +        }
    +        if (isNaN(height)) {
    +            height = width / aspect;
    +        }
    +    }
    +
    +    // If left is not specified, calculate left from right and width
    +    if (isNaN(left)) {
    +        left = containerWidth - right - width - horizontalMargin;
    +    }
    +    if (isNaN(top)) {
    +        top = containerHeight - bottom - height - verticalMargin;
    +    }
    +
    +    // Align left and top
    +    switch (positionInfo.left || positionInfo.right) {
    +        case 'center':
    +            left = containerWidth / 2 - width / 2 - margin[3];
    +            break;
    +        case 'right':
    +            left = containerWidth - width - horizontalMargin;
    +            break;
    +    }
    +    switch (positionInfo.top || positionInfo.bottom) {
    +        case 'middle':
    +        case 'center':
    +            top = containerHeight / 2 - height / 2 - margin[0];
    +            break;
    +        case 'bottom':
    +            top = containerHeight - height - verticalMargin;
    +            break;
    +    }
    +    // If something is wrong and left, top, width, height are calculated as NaN
    +    left = left || 0;
    +    top = top || 0;
    +    if (isNaN(width)) {
    +        // Width may be NaN if only one value is given except width
    +        width = containerWidth - horizontalMargin - left - (right || 0);
    +    }
    +    if (isNaN(height)) {
    +        // Height may be NaN if only one value is given except height
    +        height = containerHeight - verticalMargin - top - (bottom || 0);
    +    }
    +
    +    var rect = new BoundingRect(left + margin[3], top + margin[0], width, height);
    +    rect.margin = margin;
    +    return rect;
    +}
    +
    +
    +/**
    + * Position a zr element in viewport
    + *  Group position is specified by either
    + *  {left, top}, {right, bottom}
    + *  If all properties exists, right and bottom will be igonred.
    + *
    + * Logic:
    + *     1. Scale (against origin point in parent coord)
    + *     2. Rotate (against origin point in parent coord)
    + *     3. Traslate (with el.position by this method)
    + * So this method only fixes the last step 'Traslate', which does not affect
    + * scaling and rotating.
    + *
    + * If be called repeatly with the same input el, the same result will be gotten.
    + *
    + * @param {module:zrender/Element} el Should have `getBoundingRect` method.
    + * @param {Object} positionInfo
    + * @param {number|string} [positionInfo.left]
    + * @param {number|string} [positionInfo.top]
    + * @param {number|string} [positionInfo.right]
    + * @param {number|string} [positionInfo.bottom]
    + * @param {number|string} [positionInfo.width] Only for opt.boundingModel: 'raw'
    + * @param {number|string} [positionInfo.height] Only for opt.boundingModel: 'raw'
    + * @param {Object} containerRect
    + * @param {string|number} margin
    + * @param {Object} [opt]
    + * @param {Array.<number>} [opt.hv=[1,1]] Only horizontal or only vertical.
    + * @param {Array.<number>} [opt.boundingMode='all']
    + *        Specify how to calculate boundingRect when locating.
    + *        'all': Position the boundingRect that is transformed and uioned
    + *               both itself and its descendants.
    + *               This mode simplies confine the elements in the bounding
    + *               of their container (e.g., using 'right: 0').
    + *        'raw': Position the boundingRect that is not transformed and only itself.
    + *               This mode is useful when you want a element can overflow its
    + *               container. (Consider a rotated circle needs to be located in a corner.)
    + *               In this mode positionInfo.width/height can only be number.
    + */
    +function positionElement(el, positionInfo, containerRect, margin, opt) {
    +    var h = !opt || !opt.hv || opt.hv[0];
    +    var v = !opt || !opt.hv || opt.hv[1];
    +    var boundingMode = opt && opt.boundingMode || 'all';
    +
    +    if (!h && !v) {
    +        return;
    +    }
    +
    +    var rect;
    +    if (boundingMode === 'raw') {
    +        rect = el.type === 'group'
    +            ? new BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0)
    +            : el.getBoundingRect();
    +    }
    +    else {
    +        rect = el.getBoundingRect();
    +        if (el.needLocalTransform()) {
    +            var transform = el.getLocalTransform();
    +            // Notice: raw rect may be inner object of el,
    +            // which should not be modified.
    +            rect = rect.clone();
    +            rect.applyTransform(transform);
    +        }
    +    }
    +
    +    // The real width and height can not be specified but calculated by the given el.
    +    positionInfo = getLayoutRect(
    +        defaults(
    +            {width: rect.width, height: rect.height},
    +            positionInfo
    +        ),
    +        containerRect,
    +        margin
    +    );
    +
    +    // Because 'tranlate' is the last step in transform
    +    // (see zrender/core/Transformable#getLocalTransfrom),
    +    // we can just only modify el.position to get final result.
    +    var elPos = el.position;
    +    var dx = h ? positionInfo.x - rect.x : 0;
    +    var dy = v ? positionInfo.y - rect.y : 0;
    +
    +    el.attr('position', boundingMode === 'raw' ? [dx, dy] : [elPos[0] + dx, elPos[1] + dy]);
    +}
    +
    +/**
    + * @param {Object} option Contains some of the properties in HV_NAMES.
    + * @param {number} hvIdx 0: horizontal; 1: vertical.
    + */
    +function sizeCalculable(option, hvIdx) {
    +    return option[HV_NAMES[hvIdx][0]] != null
    +        || (option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null);
    +}
    +
    +/**
    + * Consider Case:
    + * When defulat option has {left: 0, width: 100}, and we set {right: 0}
    + * through setOption or media query, using normal zrUtil.merge will cause
    + * {right: 0} does not take effect.
    + *
    + * @example
    + * ComponentModel.extend({
    + *     init: function () {
    + *         ...
    + *         var inputPositionParams = layout.getLayoutParams(option);
    + *         this.mergeOption(inputPositionParams);
    + *     },
    + *     mergeOption: function (newOption) {
    + *         newOption && zrUtil.merge(thisOption, newOption, true);
    + *         layout.mergeLayoutParam(thisOption, newOption);
    + *     }
    + * });
    + *
    + * @param {Object} targetOption
    + * @param {Object} newOption
    + * @param {Object|string} [opt]
    + * @param {boolean|Array.<boolean>} [opt.ignoreSize=false] Used for the components
    + *  that width (or height) should not be calculated by left and right (or top and bottom).
    + */
    +function mergeLayoutParam(targetOption, newOption, opt) {
    +    !isObject(opt) && (opt = {});
    +
    +    var ignoreSize = opt.ignoreSize;
    +    !isArray(ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]);
    +
    +    var hResult = merge$$1(HV_NAMES[0], 0);
    +    var vResult = merge$$1(HV_NAMES[1], 1);
    +
    +    copy(HV_NAMES[0], targetOption, hResult);
    +    copy(HV_NAMES[1], targetOption, vResult);
    +
    +    function merge$$1(names, hvIdx) {
    +        var newParams = {};
    +        var newValueCount = 0;
    +        var merged = {};
    +        var mergedValueCount = 0;
    +        var enoughParamNumber = 2;
    +
    +        each$4(names, function (name) {
    +            merged[name] = targetOption[name];
    +        });
    +        each$4(names, function (name) {
    +            // Consider case: newOption.width is null, which is
    +            // set by user for removing width setting.
    +            hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);
    +            hasValue(newParams, name) && newValueCount++;
    +            hasValue(merged, name) && mergedValueCount++;
    +        });
    +
    +        if (ignoreSize[hvIdx]) {
    +            // Only one of left/right is premitted to exist.
    +            if (hasValue(newOption, names[1])) {
    +                merged[names[2]] = null;
    +            }
    +            else if (hasValue(newOption, names[2])) {
    +                merged[names[1]] = null;
    +            }
    +            return merged;
    +        }
    +
    +        // Case: newOption: {width: ..., right: ...},
    +        // or targetOption: {right: ...} and newOption: {width: ...},
    +        // There is no conflict when merged only has params count
    +        // little than enoughParamNumber.
    +        if (mergedValueCount === enoughParamNumber || !newValueCount) {
    +            return merged;
    +        }
    +        // Case: newOption: {width: ..., right: ...},
    +        // Than we can make sure user only want those two, and ignore
    +        // all origin params in targetOption.
    +        else if (newValueCount >= enoughParamNumber) {
    +            return newParams;
    +        }
    +        else {
    +            // Chose another param from targetOption by priority.
    +            for (var i = 0; i < names.length; i++) {
    +                var name = names[i];
    +                if (!hasProp(newParams, name) && hasProp(targetOption, name)) {
    +                    newParams[name] = targetOption[name];
    +                    break;
    +                }
    +            }
    +            return newParams;
    +        }
    +    }
    +
    +    function hasProp(obj, name) {
    +        return obj.hasOwnProperty(name);
    +    }
    +
    +    function hasValue(obj, name) {
    +        return obj[name] != null && obj[name] !== 'auto';
    +    }
    +
    +    function copy(names, target, source) {
    +        each$4(names, function (name) {
    +            target[name] = source[name];
    +        });
    +    }
    +}
    +
    +/**
    + * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
    + * @param {Object} source
    + * @return {Object} Result contains those props.
    + */
    +function getLayoutParams(source) {
    +    return copyLayoutParams({}, source);
    +}
    +
    +/**
    + * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
    + * @param {Object} source
    + * @return {Object} Result contains those props.
    + */
    +function copyLayoutParams(target, source) {
    +    source && target && each$4(LOCATION_PARAMS, function (name) {
    +        source.hasOwnProperty(name) && (target[name] = source[name]);
    +    });
    +    return target;
    +}
    +
    +var boxLayoutMixin = {
    +    getBoxLayoutParams: function () {
    +        return {
    +            left: this.get('left'),
    +            top: this.get('top'),
    +            right: this.get('right'),
    +            bottom: this.get('bottom'),
    +            width: this.get('width'),
    +            height: this.get('height')
    +        };
    +    }
    +};
    +
    +/**
    + * Component model
    + *
    + * @module echarts/model/Component
    + */
    +
    +var arrayPush = Array.prototype.push;
    +
    +/**
    + * @alias module:echarts/model/Component
    + * @constructor
    + * @param {Object} option
    + * @param {module:echarts/model/Model} parentModel
    + * @param {module:echarts/model/Model} ecModel
    + */
    +var ComponentModel = Model.extend({
    +
    +    type: 'component',
    +
    +    /**
    +     * @readOnly
    +     * @type {string}
    +     */
    +    id: '',
    +
    +    /**
    +     * @readOnly
    +     */
    +    name: '',
    +
    +    /**
    +     * @readOnly
    +     * @type {string}
    +     */
    +    mainType: '',
    +
    +    /**
    +     * @readOnly
    +     * @type {string}
    +     */
    +    subType: '',
    +
    +    /**
    +     * @readOnly
    +     * @type {number}
    +     */
    +    componentIndex: 0,
    +
    +    /**
    +     * @type {Object}
    +     * @protected
    +     */
    +    defaultOption: null,
    +
    +    /**
    +     * @type {module:echarts/model/Global}
    +     * @readOnly
    +     */
    +    ecModel: null,
    +
    +    /**
    +     * key: componentType
    +     * value:  Component model list, can not be null.
    +     * @type {Object.<string, Array.<module:echarts/model/Model>>}
    +     * @readOnly
    +     */
    +    dependentModels: [],
    +
    +    /**
    +     * @type {string}
    +     * @readOnly
    +     */
    +    uid: null,
    +
    +    /**
    +     * Support merge layout params.
    +     * Only support 'box' now (left/right/top/bottom/width/height).
    +     * @type {string|Object} Object can be {ignoreSize: true}
    +     * @readOnly
    +     */
    +    layoutMode: null,
    +
    +    $constructor: function (option, parentModel, ecModel, extraOpt) {
    +        Model.call(this, option, parentModel, ecModel, extraOpt);
    +
    +        this.uid = getUID('componentModel');
    +    },
    +
    +
    +    init: function (option, parentModel, ecModel, extraOpt) {
    +        this.mergeDefaultAndTheme(option, ecModel);
    +    },
    +
    +    mergeDefaultAndTheme: function (option, ecModel) {
    +        var layoutMode = this.layoutMode;
    +        var inputPositionParams = layoutMode
    +            ? getLayoutParams(option) : {};
    +
    +        var themeModel = ecModel.getTheme();
    +        merge(option, themeModel.get(this.mainType));
    +        merge(option, this.getDefaultOption());
    +
    +        if (layoutMode) {
    +            mergeLayoutParam(option, inputPositionParams, layoutMode);
    +        }
    +    },
    +
    +    mergeOption: function (option, extraOpt) {
    +        merge(this.option, option, true);
    +
    +        var layoutMode = this.layoutMode;
    +        if (layoutMode) {
    +            mergeLayoutParam(this.option, option, layoutMode);
    +        }
    +    },
    +
    +    // Hooker after init or mergeOption
    +    optionUpdated: function (newCptOption, isInit) {},
    +
    +    getDefaultOption: function () {
    +        if (!hasOwn(this, '__defaultOption')) {
    +            var optList = [];
    +            var Class = this.constructor;
    +            while (Class) {
    +                var opt = Class.prototype.defaultOption;
    +                opt && optList.push(opt);
    +                Class = Class.superClass;
    +            }
    +
    +            var defaultOption = {};
    +            for (var i = optList.length - 1; i >= 0; i--) {
    +                defaultOption = merge(defaultOption, optList[i], true);
    +            }
    +            set$1(this, '__defaultOption', defaultOption);
    +        }
    +        return get(this, '__defaultOption');
    +    },
    +
    +    getReferringComponents: function (mainType) {
    +        return this.ecModel.queryComponents({
    +            mainType: mainType,
    +            index: this.get(mainType + 'Index', true),
    +            id: this.get(mainType + 'Id', true)
    +        });
    +    }
    +
    +});
    +
    +// Reset ComponentModel.extend, add preConstruct.
    +// clazzUtil.enableClassExtend(
    +//     ComponentModel,
    +//     function (option, parentModel, ecModel, extraOpt) {
    +//         // Set dependentModels, componentIndex, name, id, mainType, subType.
    +//         zrUtil.extend(this, extraOpt);
    +
    +//         this.uid = componentUtil.getUID('componentModel');
    +
    +//         // this.setReadOnly([
    +//         //     'type', 'id', 'uid', 'name', 'mainType', 'subType',
    +//         //     'dependentModels', 'componentIndex'
    +//         // ]);
    +//     }
    +// );
    +
    +// Add capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
    +enableClassManagement(
    +    ComponentModel, {registerWhenExtend: true}
    +);
    +enableSubTypeDefaulter(ComponentModel);
    +
    +// Add capability of ComponentModel.topologicalTravel.
    +enableTopologicalTravel(ComponentModel, getDependencies);
    +
    +function getDependencies(componentType) {
    +    var deps = [];
    +    each$1(ComponentModel.getClassesByMainType(componentType), function (Clazz) {
    +        arrayPush.apply(deps, Clazz.prototype.dependencies || []);
    +    });
    +    // Ensure main type
    +    return map(deps, function (type) {
    +        return parseClassType$1(type).main;
    +    });
    +}
    +
    +mixin(ComponentModel, boxLayoutMixin);
    +
    +var platform = '';
    +// Navigator not exists in node
    +if (typeof navigator !== 'undefined') {
    +    platform = navigator.platform || '';
    +}
    +
    +var globalDefault = {
    +    // 全图默认背景
    +    // backgroundColor: 'rgba(0,0,0,0)',
    +
    +    // https://dribbble.com/shots/1065960-Infographic-Pie-chart-visualization
    +    // color: ['#5793f3', '#d14a61', '#fd9c35', '#675bba', '#fec42c', '#dd4444', '#d4df5a', '#cd4870'],
    +    // 浅色
    +    // color: ['#bcd3bb', '#e88f70', '#edc1a5', '#9dc5c8', '#e1e8c8', '#7b7c68', '#e5b5b5', '#f0b489', '#928ea8', '#bda29a'],
    +    // color: ['#cc5664', '#9bd6ec', '#ea946e', '#8acaaa', '#f1ec64', '#ee8686', '#a48dc1', '#5da6bc', '#b9dcae'],
    +    // 深色
    +    color: ['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83',  '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3'],
    +
    +    // 默认需要 Grid 配置项
    +    // grid: {},
    +    // 主题,主题
    +    textStyle: {
    +        // color: '#000',
    +        // decoration: 'none',
    +        // PENDING
    +        fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
    +        // fontFamily: 'Arial, Verdana, sans-serif',
    +        fontSize: 12,
    +        fontStyle: 'normal',
    +        fontWeight: 'normal'
    +    },
    +
    +    // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
    +    // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
    +    // Default is source-over
    +    blendMode: null,
    +
    +    animation: 'auto',
    +    animationDuration: 1000,
    +    animationDurationUpdate: 300,
    +    animationEasing: 'exponentialOut',
    +    animationEasingUpdate: 'cubicOut',
    +
    +    animationThreshold: 2000,
    +    // Configuration for progressive/incremental rendering
    +    progressiveThreshold: 3000,
    +    progressive: 400,
    +
    +    // Threshold of if use single hover layer to optimize.
    +    // It is recommended that `hoverLayerThreshold` is equivalent to or less than
    +    // `progressiveThreshold`, otherwise hover will cause restart of progressive,
    +    // which is unexpected.
    +    // see example <echarts/test/heatmap-large.html>.
    +    hoverLayerThreshold: 3000,
    +
    +    // See: module:echarts/scale/Time
    +    useUTC: false
    +};
    +
    +var colorPaletteMixin = {
    +    clearColorPalette: function () {
    +        set$1(this, 'colorIdx', 0);
    +        set$1(this, 'colorNameMap', {});
    +    },
    +
    +    getColorFromPalette: function (name, scope) {
    +        scope = scope || this;
    +        var colorIdx = get(scope, 'colorIdx') || 0;
    +        var colorNameMap = get(scope, 'colorNameMap') || set$1(scope, 'colorNameMap', {});
    +        // Use `hasOwnProperty` to avoid conflict with Object.prototype.
    +        if (colorNameMap.hasOwnProperty(name)) {
    +            return colorNameMap[name];
    +        }
    +        var colorPalette = this.get('color', true) || [];
    +        if (!colorPalette.length) {
    +            return;
    +        }
    +
    +        var color = colorPalette[colorIdx];
    +        if (name) {
    +            colorNameMap[name] = color;
    +        }
    +        set$1(scope, 'colorIdx', (colorIdx + 1) % colorPalette.length);
    +
    +        return color;
    +    }
    +};
    +
    +/**
    + * ECharts global model
    + *
    + * @module {echarts/model/Global}
    + */
    +
    +
    +/**
    + * Caution: If the mechanism should be changed some day, these cases
    + * should be considered:
    + *
    + * (1) In `merge option` mode, if using the same option to call `setOption`
    + * many times, the result should be the same (try our best to ensure that).
    + * (2) In `merge option` mode, if a component has no id/name specified, it
    + * will be merged by index, and the result sequence of the components is
    + * consistent to the original sequence.
    + * (3) `reset` feature (in toolbox). Find detailed info in comments about
    + * `mergeOption` in module:echarts/model/OptionManager.
    + */
    +
    +var each$2 = each$1;
    +var filter$1 = filter;
    +var map$1 = map;
    +var isArray$1 = isArray;
    +var indexOf$1 = indexOf;
    +var isObject$1 = isObject;
    +
    +var OPTION_INNER_KEY = '\0_ec_inner';
    +
    +/**
    + * @alias module:echarts/model/Global
    + *
    + * @param {Object} option
    + * @param {module:echarts/model/Model} parentModel
    + * @param {Object} theme
    + */
    +var GlobalModel = Model.extend({
    +
    +    constructor: GlobalModel,
    +
    +    init: function (option, parentModel, theme, optionManager) {
    +        theme = theme || {};
    +
    +        this.option = null; // Mark as not initialized.
    +
    +        /**
    +         * @type {module:echarts/model/Model}
    +         * @private
    +         */
    +        this._theme = new Model(theme);
    +
    +        /**
    +         * @type {module:echarts/model/OptionManager}
    +         */
    +        this._optionManager = optionManager;
    +    },
    +
    +    setOption: function (option, optionPreprocessorFuncs) {
    +        assert(
    +            !(OPTION_INNER_KEY in option),
    +            'please use chart.getOption()'
    +        );
    +
    +        this._optionManager.setOption(option, optionPreprocessorFuncs);
    +
    +        this.resetOption(null);
    +    },
    +
    +    /**
    +     * @param {string} type null/undefined: reset all.
    +     *                      'recreate': force recreate all.
    +     *                      'timeline': only reset timeline option
    +     *                      'media': only reset media query option
    +     * @return {boolean} Whether option changed.
    +     */
    +    resetOption: function (type) {
    +        var optionChanged = false;
    +        var optionManager = this._optionManager;
    +
    +        if (!type || type === 'recreate') {
    +            var baseOption = optionManager.mountOption(type === 'recreate');
    +
    +            if (!this.option || type === 'recreate') {
    +                initBase.call(this, baseOption);
    +            }
    +            else {
    +                this.restoreData();
    +                this.mergeOption(baseOption);
    +            }
    +            optionChanged = true;
    +        }
    +
    +        if (type === 'timeline' || type === 'media') {
    +            this.restoreData();
    +        }
    +
    +        if (!type || type === 'recreate' || type === 'timeline') {
    +            var timelineOption = optionManager.getTimelineOption(this);
    +            timelineOption && (this.mergeOption(timelineOption), optionChanged = true);
    +        }
    +
    +        if (!type || type === 'recreate' || type === 'media') {
    +            var mediaOptions = optionManager.getMediaOption(this, this._api);
    +            if (mediaOptions.length) {
    +                each$2(mediaOptions, function (mediaOption) {
    +                    this.mergeOption(mediaOption, optionChanged = true);
    +                }, this);
    +            }
    +        }
    +
    +        return optionChanged;
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    mergeOption: function (newOption) {
    +        var option = this.option;
    +        var componentsMap = this._componentsMap;
    +        var newCptTypes = [];
    +
    +        // 如果不存在对应的 component model 则直接 merge
    +        each$2(newOption, function (componentOption, mainType) {
    +            if (componentOption == null) {
    +                return;
    +            }
    +
    +            if (!ComponentModel.hasClass(mainType)) {
    +                option[mainType] = option[mainType] == null
    +                    ? clone(componentOption)
    +                    : merge(option[mainType], componentOption, true);
    +            }
    +            else {
    +                newCptTypes.push(mainType);
    +            }
    +        });
    +
    +        // FIXME OPTION 同步是否要改回原来的
    +        ComponentModel.topologicalTravel(
    +            newCptTypes, ComponentModel.getAllClassMainTypes(), visitComponent, this
    +        );
    +
    +        this._seriesIndices = this._seriesIndices || [];
    +
    +        function visitComponent(mainType, dependencies) {
    +            var newCptOptionList = normalizeToArray(newOption[mainType]);
    +
    +            var mapResult = mappingToExists(
    +                componentsMap.get(mainType), newCptOptionList
    +            );
    +
    +            makeIdAndName(mapResult);
    +
    +            // Set mainType and complete subType.
    +            each$2(mapResult, function (item, index) {
    +                var opt = item.option;
    +                if (isObject$1(opt)) {
    +                    item.keyInfo.mainType = mainType;
    +                    item.keyInfo.subType = determineSubType(mainType, opt, item.exist);
    +                }
    +            });
    +
    +            var dependentModels = getComponentsByTypes(
    +                componentsMap, dependencies
    +            );
    +
    +            option[mainType] = [];
    +            componentsMap.set(mainType, []);
    +
    +            each$2(mapResult, function (resultItem, index) {
    +                var componentModel = resultItem.exist;
    +                var newCptOption = resultItem.option;
    +
    +                assert(
    +                    isObject$1(newCptOption) || componentModel,
    +                    'Empty component definition'
    +                );
    +
    +                // Consider where is no new option and should be merged using {},
    +                // see removeEdgeAndAdd in topologicalTravel and
    +                // ComponentModel.getAllClassMainTypes.
    +                if (!newCptOption) {
    +                    componentModel.mergeOption({}, this);
    +                    componentModel.optionUpdated({}, false);
    +                }
    +                else {
    +                    var ComponentModelClass = ComponentModel.getClass(
    +                        mainType, resultItem.keyInfo.subType, true
    +                    );
    +
    +                    if (componentModel && componentModel instanceof ComponentModelClass) {
    +                        componentModel.name = resultItem.keyInfo.name;
    +                        componentModel.mergeOption(newCptOption, this);
    +                        componentModel.optionUpdated(newCptOption, false);
    +                    }
    +                    else {
    +                        // PENDING Global as parent ?
    +                        var extraOpt = extend(
    +                            {
    +                                dependentModels: dependentModels,
    +                                componentIndex: index
    +                            },
    +                            resultItem.keyInfo
    +                        );
    +                        componentModel = new ComponentModelClass(
    +                            newCptOption, this, this, extraOpt
    +                        );
    +                        extend(componentModel, extraOpt);
    +                        componentModel.init(newCptOption, this, this, extraOpt);
    +                        // Call optionUpdated after init.
    +                        // newCptOption has been used as componentModel.option
    +                        // and may be merged with theme and default, so pass null
    +                        // to avoid confusion.
    +                        componentModel.optionUpdated(null, true);
    +                    }
    +                }
    +
    +                componentsMap.get(mainType)[index] = componentModel;
    +                option[mainType][index] = componentModel.option;
    +            }, this);
    +
    +            // Backup series for filtering.
    +            if (mainType === 'series') {
    +                this._seriesIndices = createSeriesIndices(componentsMap.get('series'));
    +            }
    +        }
    +    },
    +
    +    /**
    +     * Get option for output (cloned option and inner info removed)
    +     * @public
    +     * @return {Object}
    +     */
    +    getOption: function () {
    +        var option = clone(this.option);
    +
    +        each$2(option, function (opts, mainType) {
    +            if (ComponentModel.hasClass(mainType)) {
    +                var opts = normalizeToArray(opts);
    +                for (var i = opts.length - 1; i >= 0; i--) {
    +                    // Remove options with inner id.
    +                    if (isIdInner(opts[i])) {
    +                        opts.splice(i, 1);
    +                    }
    +                }
    +                option[mainType] = opts;
    +            }
    +        });
    +
    +        delete option[OPTION_INNER_KEY];
    +
    +        return option;
    +    },
    +
    +    /**
    +     * @return {module:echarts/model/Model}
    +     */
    +    getTheme: function () {
    +        return this._theme;
    +    },
    +
    +    /**
    +     * @param {string} mainType
    +     * @param {number} [idx=0]
    +     * @return {module:echarts/model/Component}
    +     */
    +    getComponent: function (mainType, idx) {
    +        var list = this._componentsMap.get(mainType);
    +        if (list) {
    +            return list[idx || 0];
    +        }
    +    },
    +
    +    /**
    +     * If none of index and id and name used, return all components with mainType.
    +     * @param {Object} condition
    +     * @param {string} condition.mainType
    +     * @param {string} [condition.subType] If ignore, only query by mainType
    +     * @param {number|Array.<number>} [condition.index] Either input index or id or name.
    +     * @param {string|Array.<string>} [condition.id] Either input index or id or name.
    +     * @param {string|Array.<string>} [condition.name] Either input index or id or name.
    +     * @return {Array.<module:echarts/model/Component>}
    +     */
    +    queryComponents: function (condition) {
    +        var mainType = condition.mainType;
    +        if (!mainType) {
    +            return [];
    +        }
    +
    +        var index = condition.index;
    +        var id = condition.id;
    +        var name = condition.name;
    +
    +        var cpts = this._componentsMap.get(mainType);
    +
    +        if (!cpts || !cpts.length) {
    +            return [];
    +        }
    +
    +        var result;
    +
    +        if (index != null) {
    +            if (!isArray$1(index)) {
    +                index = [index];
    +            }
    +            result = filter$1(map$1(index, function (idx) {
    +                return cpts[idx];
    +            }), function (val) {
    +                return !!val;
    +            });
    +        }
    +        else if (id != null) {
    +            var isIdArray = isArray$1(id);
    +            result = filter$1(cpts, function (cpt) {
    +                return (isIdArray && indexOf$1(id, cpt.id) >= 0)
    +                    || (!isIdArray && cpt.id === id);
    +            });
    +        }
    +        else if (name != null) {
    +            var isNameArray = isArray$1(name);
    +            result = filter$1(cpts, function (cpt) {
    +                return (isNameArray && indexOf$1(name, cpt.name) >= 0)
    +                    || (!isNameArray && cpt.name === name);
    +            });
    +        }
    +        else {
    +            // Return all components with mainType
    +            result = cpts.slice();
    +        }
    +
    +        return filterBySubType(result, condition);
    +    },
    +
    +    /**
    +     * The interface is different from queryComponents,
    +     * which is convenient for inner usage.
    +     *
    +     * @usage
    +     * var result = findComponents(
    +     *     {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}
    +     * );
    +     * var result = findComponents(
    +     *     {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}
    +     * );
    +     * var result = findComponents(
    +     *     {mainType: 'series'},
    +     *     function (model, index) {...}
    +     * );
    +     * // result like [component0, componnet1, ...]
    +     *
    +     * @param {Object} condition
    +     * @param {string} condition.mainType Mandatory.
    +     * @param {string} [condition.subType] Optional.
    +     * @param {Object} [condition.query] like {xxxIndex, xxxId, xxxName},
    +     *        where xxx is mainType.
    +     *        If query attribute is null/undefined or has no index/id/name,
    +     *        do not filtering by query conditions, which is convenient for
    +     *        no-payload situations or when target of action is global.
    +     * @param {Function} [condition.filter] parameter: component, return boolean.
    +     * @return {Array.<module:echarts/model/Component>}
    +     */
    +    findComponents: function (condition) {
    +        var query = condition.query;
    +        var mainType = condition.mainType;
    +
    +        var queryCond = getQueryCond(query);
    +        var result = queryCond
    +            ? this.queryComponents(queryCond)
    +            : this._componentsMap.get(mainType);
    +
    +        return doFilter(filterBySubType(result, condition));
    +
    +        function getQueryCond(q) {
    +            var indexAttr = mainType + 'Index';
    +            var idAttr = mainType + 'Id';
    +            var nameAttr = mainType + 'Name';
    +            return q && (
    +                    q[indexAttr] != null
    +                    || q[idAttr] != null
    +                    || q[nameAttr] != null
    +                )
    +                ? {
    +                    mainType: mainType,
    +                    // subType will be filtered finally.
    +                    index: q[indexAttr],
    +                    id: q[idAttr],
    +                    name: q[nameAttr]
    +                }
    +                : null;
    +        }
    +
    +        function doFilter(res) {
    +            return condition.filter
    +                    ? filter$1(res, condition.filter)
    +                    : res;
    +        }
    +    },
    +
    +    /**
    +     * @usage
    +     * eachComponent('legend', function (legendModel, index) {
    +     *     ...
    +     * });
    +     * eachComponent(function (componentType, model, index) {
    +     *     // componentType does not include subType
    +     *     // (componentType is 'xxx' but not 'xxx.aa')
    +     * });
    +     * eachComponent(
    +     *     {mainType: 'dataZoom', query: {dataZoomId: 'abc'}},
    +     *     function (model, index) {...}
    +     * );
    +     * eachComponent(
    +     *     {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}},
    +     *     function (model, index) {...}
    +     * );
    +     *
    +     * @param {string|Object=} mainType When mainType is object, the definition
    +     *                                  is the same as the method 'findComponents'.
    +     * @param {Function} cb
    +     * @param {*} context
    +     */
    +    eachComponent: function (mainType, cb, context) {
    +        var componentsMap = this._componentsMap;
    +
    +        if (typeof mainType === 'function') {
    +            context = cb;
    +            cb = mainType;
    +            componentsMap.each(function (components, componentType) {
    +                each$2(components, function (component, index) {
    +                    cb.call(context, componentType, component, index);
    +                });
    +            });
    +        }
    +        else if (isString(mainType)) {
    +            each$2(componentsMap.get(mainType), cb, context);
    +        }
    +        else if (isObject$1(mainType)) {
    +            var queryResult = this.findComponents(mainType);
    +            each$2(queryResult, cb, context);
    +        }
    +    },
    +
    +    /**
    +     * @param {string} name
    +     * @return {Array.<module:echarts/model/Series>}
    +     */
    +    getSeriesByName: function (name) {
    +        var series = this._componentsMap.get('series');
    +        return filter$1(series, function (oneSeries) {
    +            return oneSeries.name === name;
    +        });
    +    },
    +
    +    /**
    +     * @param {number} seriesIndex
    +     * @return {module:echarts/model/Series}
    +     */
    +    getSeriesByIndex: function (seriesIndex) {
    +        return this._componentsMap.get('series')[seriesIndex];
    +    },
    +
    +    /**
    +     * @param {string} subType
    +     * @return {Array.<module:echarts/model/Series>}
    +     */
    +    getSeriesByType: function (subType) {
    +        var series = this._componentsMap.get('series');
    +        return filter$1(series, function (oneSeries) {
    +            return oneSeries.subType === subType;
    +        });
    +    },
    +
    +    /**
    +     * @return {Array.<module:echarts/model/Series>}
    +     */
    +    getSeries: function () {
    +        return this._componentsMap.get('series').slice();
    +    },
    +
    +    /**
    +     * After filtering, series may be different
    +     * frome raw series.
    +     *
    +     * @param {Function} cb
    +     * @param {*} context
    +     */
    +    eachSeries: function (cb, context) {
    +        assertSeriesInitialized(this);
    +        each$2(this._seriesIndices, function (rawSeriesIndex) {
    +            var series = this._componentsMap.get('series')[rawSeriesIndex];
    +            cb.call(context, series, rawSeriesIndex);
    +        }, this);
    +    },
    +
    +    /**
    +     * Iterate raw series before filtered.
    +     *
    +     * @param {Function} cb
    +     * @param {*} context
    +     */
    +    eachRawSeries: function (cb, context) {
    +        each$2(this._componentsMap.get('series'), cb, context);
    +    },
    +
    +    /**
    +     * After filtering, series may be different.
    +     * frome raw series.
    +     *
    +     * @parma {string} subType
    +     * @param {Function} cb
    +     * @param {*} context
    +     */
    +    eachSeriesByType: function (subType, cb, context) {
    +        assertSeriesInitialized(this);
    +        each$2(this._seriesIndices, function (rawSeriesIndex) {
    +            var series = this._componentsMap.get('series')[rawSeriesIndex];
    +            if (series.subType === subType) {
    +                cb.call(context, series, rawSeriesIndex);
    +            }
    +        }, this);
    +    },
    +
    +    /**
    +     * Iterate raw series before filtered of given type.
    +     *
    +     * @parma {string} subType
    +     * @param {Function} cb
    +     * @param {*} context
    +     */
    +    eachRawSeriesByType: function (subType, cb, context) {
    +        return each$2(this.getSeriesByType(subType), cb, context);
    +    },
    +
    +    /**
    +     * @param {module:echarts/model/Series} seriesModel
    +     */
    +    isSeriesFiltered: function (seriesModel) {
    +        assertSeriesInitialized(this);
    +        return indexOf(this._seriesIndices, seriesModel.componentIndex) < 0;
    +    },
    +
    +    /**
    +     * @return {Array.<number>}
    +     */
    +    getCurrentSeriesIndices: function () {
    +        return (this._seriesIndices || []).slice();
    +    },
    +
    +    /**
    +     * @param {Function} cb
    +     * @param {*} context
    +     */
    +    filterSeries: function (cb, context) {
    +        assertSeriesInitialized(this);
    +        var filteredSeries = filter$1(
    +            this._componentsMap.get('series'), cb, context
    +        );
    +        this._seriesIndices = createSeriesIndices(filteredSeries);
    +    },
    +
    +    restoreData: function () {
    +        var componentsMap = this._componentsMap;
    +
    +        this._seriesIndices = createSeriesIndices(componentsMap.get('series'));
    +
    +        var componentTypes = [];
    +        componentsMap.each(function (components, componentType) {
    +            componentTypes.push(componentType);
    +        });
    +
    +        ComponentModel.topologicalTravel(
    +            componentTypes,
    +            ComponentModel.getAllClassMainTypes(),
    +            function (componentType, dependencies) {
    +                each$2(componentsMap.get(componentType), function (component) {
    +                    component.restoreData();
    +                });
    +            }
    +        );
    +    }
    +
    +});
    +
    +/**
    + * @inner
    + */
    +function mergeTheme(option, theme) {
    +    each$1(theme, function (themeItem, name) {
    +        // 如果有 component model 则把具体的 merge 逻辑交给该 model 处理
    +        if (!ComponentModel.hasClass(name)) {
    +            if (typeof themeItem === 'object') {
    +                option[name] = !option[name]
    +                    ? clone(themeItem)
    +                    : merge(option[name], themeItem, false);
    +            }
    +            else {
    +                if (option[name] == null) {
    +                    option[name] = themeItem;
    +                }
    +            }
    +        }
    +    });
    +}
    +
    +function initBase(baseOption) {
    +    baseOption = baseOption;
    +
    +    // Using OPTION_INNER_KEY to mark that this option can not be used outside,
    +    // i.e. `chart.setOption(chart.getModel().option);` is forbiden.
    +    this.option = {};
    +    this.option[OPTION_INNER_KEY] = 1;
    +
    +    /**
    +     * Init with series: [], in case of calling findSeries method
    +     * before series initialized.
    +     * @type {Object.<string, Array.<module:echarts/model/Model>>}
    +     * @private
    +     */
    +    this._componentsMap = createHashMap({series: []});
    +
    +    /**
    +     * Mapping between filtered series list and raw series list.
    +     * key: filtered series indices, value: raw series indices.
    +     * @type {Array.<nubmer>}
    +     * @private
    +     */
    +    this._seriesIndices = null;
    +
    +    mergeTheme(baseOption, this._theme.option);
    +
    +    // TODO Needs clone when merging to the unexisted property
    +    merge(baseOption, globalDefault, false);
    +
    +    this.mergeOption(baseOption);
    +}
    +
    +/**
    + * @inner
    + * @param {Array.<string>|string} types model types
    + * @return {Object} key: {string} type, value: {Array.<Object>} models
    + */
    +function getComponentsByTypes(componentsMap, types) {
    +    if (!isArray(types)) {
    +        types = types ? [types] : [];
    +    }
    +
    +    var ret = {};
    +    each$2(types, function (type) {
    +        ret[type] = (componentsMap.get(type) || []).slice();
    +    });
    +
    +    return ret;
    +}
    +
    +/**
    + * @inner
    + */
    +function determineSubType(mainType, newCptOption, existComponent) {
    +    var subType = newCptOption.type
    +        ? newCptOption.type
    +        : existComponent
    +        ? existComponent.subType
    +        // Use determineSubType only when there is no existComponent.
    +        : ComponentModel.determineSubType(mainType, newCptOption);
    +
    +    // tooltip, markline, markpoint may always has no subType
    +    return subType;
    +}
    +
    +/**
    + * @inner
    + */
    +function createSeriesIndices(seriesModels) {
    +    return map$1(seriesModels, function (series) {
    +        return series.componentIndex;
    +    }) || [];
    +}
    +
    +/**
    + * @inner
    + */
    +function filterBySubType(components, condition) {
    +    // Using hasOwnProperty for restrict. Consider
    +    // subType is undefined in user payload.
    +    return condition.hasOwnProperty('subType')
    +        ? filter$1(components, function (cpt) {
    +            return cpt.subType === condition.subType;
    +        })
    +        : components;
    +}
    +
    +/**
    + * @inner
    + */
    +function assertSeriesInitialized(ecModel) {
    +    // Components that use _seriesIndices should depends on series component,
    +    // which make sure that their initialization is after series.
    +    if (__DEV__) {
    +        if (!ecModel._seriesIndices) {
    +            throw new Error('Option should contains series.');
    +        }
    +    }
    +}
    +
    +mixin(GlobalModel, colorPaletteMixin);
    +
    +var echartsAPIList = [
    +    'getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed',
    +    'on', 'off', 'getDataURL', 'getConnectedDataURL', 'getModel', 'getOption',
    +    'getViewOfComponentModel', 'getViewOfSeriesModel'
    +];
    +// And `getCoordinateSystems` and `getComponentByElement` will be injected in echarts.js
    +
    +function ExtensionAPI(chartInstance) {
    +    each$1(echartsAPIList, function (name) {
    +        this[name] = bind(chartInstance[name], chartInstance);
    +    }, this);
    +}
    +
    +var coordinateSystemCreators = {};
    +
    +function CoordinateSystemManager() {
    +
    +    this._coordinateSystems = [];
    +}
    +
    +CoordinateSystemManager.prototype = {
    +
    +    constructor: CoordinateSystemManager,
    +
    +    create: function (ecModel, api) {
    +        var coordinateSystems = [];
    +        each$1(coordinateSystemCreators, function (creater, type) {
    +            var list = creater.create(ecModel, api);
    +            coordinateSystems = coordinateSystems.concat(list || []);
    +        });
    +
    +        this._coordinateSystems = coordinateSystems;
    +    },
    +
    +    update: function (ecModel, api) {
    +        each$1(this._coordinateSystems, function (coordSys) {
    +            // FIXME MUST have
    +            coordSys.update && coordSys.update(ecModel, api);
    +        });
    +    },
    +
    +    getCoordinateSystems: function () {
    +        return this._coordinateSystems.slice();
    +    }
    +};
    +
    +CoordinateSystemManager.register = function (type, coordinateSystemCreator) {
    +    coordinateSystemCreators[type] = coordinateSystemCreator;
    +};
    +
    +CoordinateSystemManager.get = function (type) {
    +    return coordinateSystemCreators[type];
    +};
    +
    +/**
    + * ECharts option manager
    + *
    + * @module {echarts/model/OptionManager}
    + */
    +
    +
    +var each$5 = each$1;
    +var clone$2 = clone;
    +var map$2 = map;
    +var merge$1 = merge;
    +
    +var QUERY_REG = /^(min|max)?(.+)$/;
    +
    +/**
    + * TERM EXPLANATIONS:
    + *
    + * [option]:
    + *
    + *     An object that contains definitions of components. For example:
    + *     var option = {
    + *         title: {...},
    + *         legend: {...},
    + *         visualMap: {...},
    + *         series: [
    + *             {data: [...]},
    + *             {data: [...]},
    + *             ...
    + *         ]
    + *     };
    + *
    + * [rawOption]:
    + *
    + *     An object input to echarts.setOption. 'rawOption' may be an
    + *     'option', or may be an object contains multi-options. For example:
    + *     var option = {
    + *         baseOption: {
    + *             title: {...},
    + *             legend: {...},
    + *             series: [
    + *                 {data: [...]},
    + *                 {data: [...]},
    + *                 ...
    + *             ]
    + *         },
    + *         timeline: {...},
    + *         options: [
    + *             {title: {...}, series: {data: [...]}},
    + *             {title: {...}, series: {data: [...]}},
    + *             ...
    + *         ],
    + *         media: [
    + *             {
    + *                 query: {maxWidth: 320},
    + *                 option: {series: {x: 20}, visualMap: {show: false}}
    + *             },
    + *             {
    + *                 query: {minWidth: 320, maxWidth: 720},
    + *                 option: {series: {x: 500}, visualMap: {show: true}}
    + *             },
    + *             {
    + *                 option: {series: {x: 1200}, visualMap: {show: true}}
    + *             }
    + *         ]
    + *     };
    + *
    + * @alias module:echarts/model/OptionManager
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function OptionManager(api) {
    +
    +    /**
    +     * @private
    +     * @type {module:echarts/ExtensionAPI}
    +     */
    +    this._api = api;
    +
    +    /**
    +     * @private
    +     * @type {Array.<number>}
    +     */
    +    this._timelineOptions = [];
    +
    +    /**
    +     * @private
    +     * @type {Array.<Object>}
    +     */
    +    this._mediaList = [];
    +
    +    /**
    +     * @private
    +     * @type {Object}
    +     */
    +    this._mediaDefault;
    +
    +    /**
    +     * -1, means default.
    +     * empty means no media.
    +     * @private
    +     * @type {Array.<number>}
    +     */
    +    this._currentMediaIndices = [];
    +
    +    /**
    +     * @private
    +     * @type {Object}
    +     */
    +    this._optionBackup;
    +
    +    /**
    +     * @private
    +     * @type {Object}
    +     */
    +    this._newBaseOption;
    +}
    +
    +// timeline.notMerge is not supported in ec3. Firstly there is rearly
    +// case that notMerge is needed. Secondly supporting 'notMerge' requires
    +// rawOption cloned and backuped when timeline changed, which does no
    +// good to performance. What's more, that both timeline and setOption
    +// method supply 'notMerge' brings complex and some problems.
    +// Consider this case:
    +// (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);
    +// (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);
    +
    +OptionManager.prototype = {
    +
    +    constructor: OptionManager,
    +
    +    /**
    +     * @public
    +     * @param {Object} rawOption Raw option.
    +     * @param {module:echarts/model/Global} ecModel
    +     * @param {Array.<Function>} optionPreprocessorFuncs
    +     * @return {Object} Init option
    +     */
    +    setOption: function (rawOption, optionPreprocessorFuncs) {
    +        rawOption = clone$2(rawOption, true);
    +
    +        // FIXME
    +        // 如果 timeline options 或者 media 中设置了某个属性,而baseOption中没有设置,则进行警告。
    +
    +        var oldOptionBackup = this._optionBackup;
    +        var newParsedOption = parseRawOption.call(
    +            this, rawOption, optionPreprocessorFuncs, !oldOptionBackup
    +        );
    +        this._newBaseOption = newParsedOption.baseOption;
    +
    +        // For setOption at second time (using merge mode);
    +        if (oldOptionBackup) {
    +            // Only baseOption can be merged.
    +            mergeOption(oldOptionBackup.baseOption, newParsedOption.baseOption);
    +
    +            // For simplicity, timeline options and media options do not support merge,
    +            // that is, if you `setOption` twice and both has timeline options, the latter
    +            // timeline opitons will not be merged to the formers, but just substitude them.
    +            if (newParsedOption.timelineOptions.length) {
    +                oldOptionBackup.timelineOptions = newParsedOption.timelineOptions;
    +            }
    +            if (newParsedOption.mediaList.length) {
    +                oldOptionBackup.mediaList = newParsedOption.mediaList;
    +            }
    +            if (newParsedOption.mediaDefault) {
    +                oldOptionBackup.mediaDefault = newParsedOption.mediaDefault;
    +            }
    +        }
    +        else {
    +            this._optionBackup = newParsedOption;
    +        }
    +    },
    +
    +    /**
    +     * @param {boolean} isRecreate
    +     * @return {Object}
    +     */
    +    mountOption: function (isRecreate) {
    +        var optionBackup = this._optionBackup;
    +
    +        // TODO
    +        // 如果没有reset功能则不clone。
    +
    +        this._timelineOptions = map$2(optionBackup.timelineOptions, clone$2);
    +        this._mediaList = map$2(optionBackup.mediaList, clone$2);
    +        this._mediaDefault = clone$2(optionBackup.mediaDefault);
    +        this._currentMediaIndices = [];
    +
    +        return clone$2(isRecreate
    +            // this._optionBackup.baseOption, which is created at the first `setOption`
    +            // called, and is merged into every new option by inner method `mergeOption`
    +            // each time `setOption` called, can be only used in `isRecreate`, because
    +            // its reliability is under suspicion. In other cases option merge is
    +            // performed by `model.mergeOption`.
    +            ? optionBackup.baseOption : this._newBaseOption
    +        );
    +    },
    +
    +    /**
    +     * @param {module:echarts/model/Global} ecModel
    +     * @return {Object}
    +     */
    +    getTimelineOption: function (ecModel) {
    +        var option;
    +        var timelineOptions = this._timelineOptions;
    +
    +        if (timelineOptions.length) {
    +            // getTimelineOption can only be called after ecModel inited,
    +            // so we can get currentIndex from timelineModel.
    +            var timelineModel = ecModel.getComponent('timeline');
    +            if (timelineModel) {
    +                option = clone$2(
    +                    timelineOptions[timelineModel.getCurrentIndex()],
    +                    true
    +                );
    +            }
    +        }
    +
    +        return option;
    +    },
    +
    +    /**
    +     * @param {module:echarts/model/Global} ecModel
    +     * @return {Array.<Object>}
    +     */
    +    getMediaOption: function (ecModel) {
    +        var ecWidth = this._api.getWidth();
    +        var ecHeight = this._api.getHeight();
    +        var mediaList = this._mediaList;
    +        var mediaDefault = this._mediaDefault;
    +        var indices = [];
    +        var result = [];
    +
    +        // No media defined.
    +        if (!mediaList.length && !mediaDefault) {
    +            return result;
    +        }
    +
    +        // Multi media may be applied, the latter defined media has higher priority.
    +        for (var i = 0, len = mediaList.length; i < len; i++) {
    +            if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {
    +                indices.push(i);
    +            }
    +        }
    +
    +        // FIXME
    +        // 是否mediaDefault应该强制用户设置,否则可能修改不能回归。
    +        if (!indices.length && mediaDefault) {
    +            indices = [-1];
    +        }
    +
    +        if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {
    +            result = map$2(indices, function (index) {
    +                return clone$2(
    +                    index === -1 ? mediaDefault.option : mediaList[index].option
    +                );
    +            });
    +        }
    +        // Otherwise return nothing.
    +
    +        this._currentMediaIndices = indices;
    +
    +        return result;
    +    }
    +};
    +
    +function parseRawOption(rawOption, optionPreprocessorFuncs, isNew) {
    +    var timelineOptions = [];
    +    var mediaList = [];
    +    var mediaDefault;
    +    var baseOption;
    +
    +    // Compatible with ec2.
    +    var timelineOpt = rawOption.timeline;
    +
    +    if (rawOption.baseOption) {
    +        baseOption = rawOption.baseOption;
    +    }
    +
    +    // For timeline
    +    if (timelineOpt || rawOption.options) {
    +        baseOption = baseOption || {};
    +        timelineOptions = (rawOption.options || []).slice();
    +    }
    +
    +    // For media query
    +    if (rawOption.media) {
    +        baseOption = baseOption || {};
    +        var media = rawOption.media;
    +        each$5(media, function (singleMedia) {
    +            if (singleMedia && singleMedia.option) {
    +                if (singleMedia.query) {
    +                    mediaList.push(singleMedia);
    +                }
    +                else if (!mediaDefault) {
    +                    // Use the first media default.
    +                    mediaDefault = singleMedia;
    +                }
    +            }
    +        });
    +    }
    +
    +    // For normal option
    +    if (!baseOption) {
    +        baseOption = rawOption;
    +    }
    +
    +    // Set timelineOpt to baseOption in ec3,
    +    // which is convenient for merge option.
    +    if (!baseOption.timeline) {
    +        baseOption.timeline = timelineOpt;
    +    }
    +
    +    // Preprocess.
    +    each$5([baseOption].concat(timelineOptions)
    +        .concat(map(mediaList, function (media) {
    +            return media.option;
    +        })),
    +        function (option) {
    +            each$5(optionPreprocessorFuncs, function (preProcess) {
    +                preProcess(option, isNew);
    +            });
    +        }
    +    );
    +
    +    return {
    +        baseOption: baseOption,
    +        timelineOptions: timelineOptions,
    +        mediaDefault: mediaDefault,
    +        mediaList: mediaList
    +    };
    +}
    +
    +/**
    + * @see <http://www.w3.org/TR/css3-mediaqueries/#media1>
    + * Support: width, height, aspectRatio
    + * Can use max or min as prefix.
    + */
    +function applyMediaQuery(query, ecWidth, ecHeight) {
    +    var realMap = {
    +        width: ecWidth,
    +        height: ecHeight,
    +        aspectratio: ecWidth / ecHeight // lowser case for convenientce.
    +    };
    +
    +    var applicatable = true;
    +
    +    each$1(query, function (value, attr) {
    +        var matched = attr.match(QUERY_REG);
    +
    +        if (!matched || !matched[1] || !matched[2]) {
    +            return;
    +        }
    +
    +        var operator = matched[1];
    +        var realAttr = matched[2].toLowerCase();
    +
    +        if (!compare(realMap[realAttr], value, operator)) {
    +            applicatable = false;
    +        }
    +    });
    +
    +    return applicatable;
    +}
    +
    +function compare(real, expect, operator) {
    +    if (operator === 'min') {
    +        return real >= expect;
    +    }
    +    else if (operator === 'max') {
    +        return real <= expect;
    +    }
    +    else { // Equals
    +        return real === expect;
    +    }
    +}
    +
    +function indicesEquals(indices1, indices2) {
    +    // indices is always order by asc and has only finite number.
    +    return indices1.join(',') === indices2.join(',');
    +}
    +
    +/**
    + * Consider case:
    + * `chart.setOption(opt1);`
    + * Then user do some interaction like dataZoom, dataView changing.
    + * `chart.setOption(opt2);`
    + * Then user press 'reset button' in toolbox.
    + *
    + * After doing that all of the interaction effects should be reset, the
    + * chart should be the same as the result of invoke
    + * `chart.setOption(opt1); chart.setOption(opt2);`.
    + *
    + * Although it is not able ensure that
    + * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to
    + * `chart.setOption(merge(opt1, opt2));` exactly,
    + * this might be the only simple way to implement that feature.
    + *
    + * MEMO: We've considered some other approaches:
    + * 1. Each model handle its self restoration but not uniform treatment.
    + *     (Too complex in logic and error-prone)
    + * 2. Use a shadow ecModel. (Performace expensive)
    + */
    +function mergeOption(oldOption, newOption) {
    +    newOption = newOption || {};
    +
    +    each$5(newOption, function (newCptOpt, mainType) {
    +        if (newCptOpt == null) {
    +            return;
    +        }
    +
    +        var oldCptOpt = oldOption[mainType];
    +
    +        if (!ComponentModel.hasClass(mainType)) {
    +            oldOption[mainType] = merge$1(oldCptOpt, newCptOpt, true);
    +        }
    +        else {
    +            newCptOpt = normalizeToArray(newCptOpt);
    +            oldCptOpt = normalizeToArray(oldCptOpt);
    +
    +            var mapResult = mappingToExists(oldCptOpt, newCptOpt);
    +
    +            oldOption[mainType] = map$2(mapResult, function (item) {
    +                return (item.option && item.exist)
    +                    ? merge$1(item.exist, item.option, true)
    +                    : (item.exist || item.option);
    +            });
    +        }
    +    });
    +}
    +
    +var each$6 = each$1;
    +var isObject$3 = isObject;
    +
    +var POSSIBLE_STYLES = [
    +    'areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle',
    +    'chordStyle', 'label', 'labelLine'
    +];
    +
    +function compatItemStyle(opt) {
    +    var itemStyleOpt = opt && opt.itemStyle;
    +    if (!itemStyleOpt) {
    +        return;
    +    }
    +    for (var i = 0, len = POSSIBLE_STYLES.length; i < len; i++) {
    +        var styleName = POSSIBLE_STYLES[i];
    +        var normalItemStyleOpt = itemStyleOpt.normal;
    +        var emphasisItemStyleOpt = itemStyleOpt.emphasis;
    +        if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {
    +            opt[styleName] = opt[styleName] || {};
    +            if (!opt[styleName].normal) {
    +                opt[styleName].normal = normalItemStyleOpt[styleName];
    +            }
    +            else {
    +                merge(opt[styleName].normal, normalItemStyleOpt[styleName]);
    +            }
    +            normalItemStyleOpt[styleName] = null;
    +        }
    +        if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {
    +            opt[styleName] = opt[styleName] || {};
    +            if (!opt[styleName].emphasis) {
    +                opt[styleName].emphasis = emphasisItemStyleOpt[styleName];
    +            }
    +            else {
    +                merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);
    +            }
    +            emphasisItemStyleOpt[styleName] = null;
    +        }
    +    }
    +}
    +
    +function compatTextStyle(opt, propName) {
    +    var labelOptSingle = isObject$3(opt) && opt[propName];
    +    var textStyle = isObject$3(labelOptSingle) && labelOptSingle.textStyle;
    +    if (textStyle) {
    +        for (var i = 0, len = TEXT_STYLE_OPTIONS.length; i < len; i++) {
    +            var propName = TEXT_STYLE_OPTIONS[i];
    +            if (textStyle.hasOwnProperty(propName)) {
    +                labelOptSingle[propName] = textStyle[propName];
    +            }
    +        }
    +    }
    +}
    +
    +function compatLabelTextStyle(labelOpt) {
    +    if (isObject$3(labelOpt)) {
    +        compatTextStyle(labelOpt, 'normal');
    +        compatTextStyle(labelOpt, 'emphasis');
    +    }
    +}
    +
    +function processSeries(seriesOpt) {
    +    if (!isObject$3(seriesOpt)) {
    +        return;
    +    }
    +
    +    compatItemStyle(seriesOpt);
    +    compatLabelTextStyle(seriesOpt.label);
    +    // treemap
    +    compatLabelTextStyle(seriesOpt.upperLabel);
    +    // graph
    +    compatLabelTextStyle(seriesOpt.edgeLabel);
    +
    +    var markPoint = seriesOpt.markPoint;
    +    compatItemStyle(markPoint);
    +    compatLabelTextStyle(markPoint && markPoint.label);
    +
    +    var markLine = seriesOpt.markLine;
    +    compatItemStyle(seriesOpt.markLine);
    +    compatLabelTextStyle(markLine && markLine.label);
    +
    +    var markArea = seriesOpt.markArea;
    +    compatLabelTextStyle(markArea && markArea.label);
    +
    +    // For gauge
    +    compatTextStyle(seriesOpt, 'axisLabel');
    +    compatTextStyle(seriesOpt, 'title');
    +    compatTextStyle(seriesOpt, 'detail');
    +
    +    var data = seriesOpt.data;
    +    if (data) {
    +        for (var i = 0; i < data.length; i++) {
    +            compatItemStyle(data[i]);
    +            compatLabelTextStyle(data[i] && data[i].label);
    +        }
    +    }
    +
    +    // mark point data
    +    var markPoint = seriesOpt.markPoint;
    +    if (markPoint && markPoint.data) {
    +        var mpData = markPoint.data;
    +        for (var i = 0; i < mpData.length; i++) {
    +            compatItemStyle(mpData[i]);
    +            compatLabelTextStyle(mpData[i] && mpData[i].label);
    +        }
    +    }
    +    // mark line data
    +    var markLine = seriesOpt.markLine;
    +    if (markLine && markLine.data) {
    +        var mlData = markLine.data;
    +        for (var i = 0; i < mlData.length; i++) {
    +            if (isArray(mlData[i])) {
    +                compatItemStyle(mlData[i][0]);
    +                compatLabelTextStyle(mlData[i][0] && mlData[i][0].label);
    +                compatItemStyle(mlData[i][1]);
    +                compatLabelTextStyle(mlData[i][1] && mlData[i][1].label);
    +            }
    +            else {
    +                compatItemStyle(mlData[i]);
    +                compatLabelTextStyle(mlData[i] && mlData[i].label);
    +            }
    +        }
    +    }
    +}
    +
    +function toArr(o) {
    +    return isArray(o) ? o : o ? [o] : [];
    +}
    +
    +function toObj(o) {
    +    return (isArray(o) ? o[0] : o) || {};
    +}
    +
    +var compatStyle = function (option, isTheme) {
    +    each$6(toArr(option.series), function (seriesOpt) {
    +        isObject$3(seriesOpt) && processSeries(seriesOpt);
    +    });
    +
    +    var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];
    +    isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');
    +
    +    each$6(
    +        axes,
    +        function (axisName) {
    +            each$6(toArr(option[axisName]), function (axisOpt) {
    +                if (axisOpt) {
    +                    compatTextStyle(axisOpt, 'axisLabel');
    +                    compatTextStyle(axisOpt.axisPointer, 'label');
    +                }
    +            });
    +        }
    +    );
    +
    +    each$6(toArr(option.parallel), function (parallelOpt) {
    +        var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;
    +        compatTextStyle(parallelAxisDefault, 'axisLabel');
    +        compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');
    +    });
    +
    +    each$6(toArr(option.calendar), function (calendarOpt) {
    +        compatTextStyle(calendarOpt, 'dayLabel');
    +        compatTextStyle(calendarOpt, 'monthLabel');
    +        compatTextStyle(calendarOpt, 'yearLabel');
    +    });
    +
    +    // radar.name.textStyle
    +    each$6(toArr(option.radar), function (radarOpt) {
    +        compatTextStyle(radarOpt, 'name');
    +    });
    +
    +    each$6(toArr(option.geo), function (geoOpt) {
    +        if (isObject$3(geoOpt)) {
    +            compatLabelTextStyle(geoOpt.label);
    +            each$6(toArr(geoOpt.regions), function (regionObj) {
    +                compatLabelTextStyle(regionObj.label);
    +            });
    +        }
    +    });
    +
    +    compatLabelTextStyle(toObj(option.timeline).label);
    +    compatTextStyle(toObj(option.axisPointer), 'label');
    +    compatTextStyle(toObj(option.tooltip).axisPointer, 'label');
    +};
    +
    +// Compatitable with 2.0
    +
    +function get$1(opt, path) {
    +    path = path.split(',');
    +    var obj = opt;
    +    for (var i = 0; i < path.length; i++) {
    +        obj = obj && obj[path[i]];
    +        if (obj == null) {
    +            break;
    +        }
    +    }
    +    return obj;
    +}
    +
    +function set$2(opt, path, val, overwrite) {
    +    path = path.split(',');
    +    var obj = opt;
    +    var key;
    +    for (var i = 0; i < path.length - 1; i++) {
    +        key = path[i];
    +        if (obj[key] == null) {
    +            obj[key] = {};
    +        }
    +        obj = obj[key];
    +    }
    +    if (overwrite || obj[path[i]] == null) {
    +        obj[path[i]] = val;
    +    }
    +}
    +
    +function compatLayoutProperties(option) {
    +    each$1(LAYOUT_PROPERTIES, function (prop) {
    +        if (prop[0] in option && !(prop[1] in option)) {
    +            option[prop[1]] = option[prop[0]];
    +        }
    +    });
    +}
    +
    +var LAYOUT_PROPERTIES = [
    +    ['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']
    +];
    +
    +var COMPATITABLE_COMPONENTS = [
    +    'grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'
    +];
    +
    +var COMPATITABLE_SERIES = [
    +    'bar', 'boxplot', 'candlestick', 'chord', 'effectScatter',
    +    'funnel', 'gauge', 'lines', 'graph', 'heatmap', 'line', 'map', 'parallel',
    +    'pie', 'radar', 'sankey', 'scatter', 'treemap'
    +];
    +
    +var backwardCompat = function (option, isTheme) {
    +    compatStyle(option, isTheme);
    +
    +    // Make sure series array for model initialization.
    +    option.series = normalizeToArray(option.series);
    +
    +    each$1(option.series, function (seriesOpt) {
    +        if (!isObject(seriesOpt)) {
    +            return;
    +        }
    +
    +        var seriesType = seriesOpt.type;
    +
    +        if (seriesType === 'pie' || seriesType === 'gauge') {
    +            if (seriesOpt.clockWise != null) {
    +                seriesOpt.clockwise = seriesOpt.clockWise;
    +            }
    +        }
    +        if (seriesType === 'gauge') {
    +            var pointerColor = get$1(seriesOpt, 'pointer.color');
    +            pointerColor != null
    +                && set$2(seriesOpt, 'itemStyle.normal.color', pointerColor);
    +        }
    +
    +        for (var i = 0; i < COMPATITABLE_SERIES.length; i++) {
    +            if (COMPATITABLE_SERIES[i] === seriesOpt.type) {
    +                compatLayoutProperties(seriesOpt);
    +                break;
    +            }
    +        }
    +    });
    +
    +    // dataRange has changed to visualMap
    +    if (option.dataRange) {
    +        option.visualMap = option.dataRange;
    +    }
    +
    +    each$1(COMPATITABLE_COMPONENTS, function (componentName) {
    +        var options = option[componentName];
    +        if (options) {
    +            if (!isArray(options)) {
    +                options = [options];
    +            }
    +            each$1(options, function (option) {
    +                compatLayoutProperties(option);
    +            });
    +        }
    +    });
    +};
    +
    +var SeriesModel = ComponentModel.extend({
    +
    +    type: 'series.__base__',
    +
    +    /**
    +     * @readOnly
    +     */
    +    seriesIndex: 0,
    +
    +    // coodinateSystem will be injected in the echarts/CoordinateSystem
    +    coordinateSystem: null,
    +
    +    /**
    +     * @type {Object}
    +     * @protected
    +     */
    +    defaultOption: null,
    +
    +    /**
    +     * Data provided for legend
    +     * @type {Function}
    +     */
    +    // PENDING
    +    legendDataProvider: null,
    +
    +    /**
    +     * Access path of color for visual
    +     */
    +    visualColorAccessPath: 'itemStyle.normal.color',
    +
    +    /**
    +     * Support merge layout params.
    +     * Only support 'box' now (left/right/top/bottom/width/height).
    +     * @type {string|Object} Object can be {ignoreSize: true}
    +     * @readOnly
    +     */
    +    layoutMode: null,
    +
    +    init: function (option, parentModel, ecModel, extraOpt) {
    +
    +        /**
    +         * @type {number}
    +         * @readOnly
    +         */
    +        this.seriesIndex = this.componentIndex;
    +
    +        this.mergeDefaultAndTheme(option, ecModel);
    +
    +        var data = this.getInitialData(option, ecModel);
    +        if (__DEV__) {
    +            assert(data, 'getInitialData returned invalid data.');
    +        }
    +        /**
    +         * @type {module:echarts/data/List|module:echarts/data/Tree|module:echarts/data/Graph}
    +         * @private
    +         */
    +        set$1(this, 'dataBeforeProcessed', data);
    +
    +        // If we reverse the order (make data firstly, and then make
    +        // dataBeforeProcessed by cloneShallow), cloneShallow will
    +        // cause data.graph.data !== data when using
    +        // module:echarts/data/Graph or module:echarts/data/Tree.
    +        // See module:echarts/data/helper/linkList
    +        this.restoreData();
    +    },
    +
    +    /**
    +     * Util for merge default and theme to option
    +     * @param  {Object} option
    +     * @param  {module:echarts/model/Global} ecModel
    +     */
    +    mergeDefaultAndTheme: function (option, ecModel) {
    +        var layoutMode = this.layoutMode;
    +        var inputPositionParams = layoutMode
    +            ? getLayoutParams(option) : {};
    +
    +        // Backward compat: using subType on theme.
    +        // But if name duplicate between series subType
    +        // (for example: parallel) add component mainType,
    +        // add suffix 'Series'.
    +        var themeSubType = this.subType;
    +        if (ComponentModel.hasClass(themeSubType)) {
    +            themeSubType += 'Series';
    +        }
    +        merge(
    +            option,
    +            ecModel.getTheme().get(this.subType)
    +        );
    +        merge(option, this.getDefaultOption());
    +
    +        // Default label emphasis `show`
    +        defaultEmphasis(option.label, ['show']);
    +
    +        this.fillDataTextStyle(option.data);
    +
    +        if (layoutMode) {
    +            mergeLayoutParam(option, inputPositionParams, layoutMode);
    +        }
    +    },
    +
    +    mergeOption: function (newSeriesOption, ecModel) {
    +        newSeriesOption = merge(this.option, newSeriesOption, true);
    +        this.fillDataTextStyle(newSeriesOption.data);
    +
    +        var layoutMode = this.layoutMode;
    +        if (layoutMode) {
    +            mergeLayoutParam(this.option, newSeriesOption, layoutMode);
    +        }
    +
    +        var data = this.getInitialData(newSeriesOption, ecModel);
    +        // TODO Merge data?
    +        if (data) {
    +            set$1(this, 'data', data);
    +            set$1(this, 'dataBeforeProcessed', data.cloneShallow());
    +        }
    +    },
    +
    +    fillDataTextStyle: function (data) {
    +        // Default data label emphasis `show`
    +        // FIXME Tree structure data ?
    +        // FIXME Performance ?
    +        if (data) {
    +            var props = ['show'];
    +            for (var i = 0; i < data.length; i++) {
    +                if (data[i] && data[i].label) {
    +                    defaultEmphasis(data[i].label, props);
    +                }
    +            }
    +        }
    +    },
    +
    +    /**
    +     * Init a data structure from data related option in series
    +     * Must be overwritten
    +     */
    +    getInitialData: function () {},
    +
    +    /**
    +     * @param {string} [dataType]
    +     * @return {module:echarts/data/List}
    +     */
    +    getData: function (dataType) {
    +        var data = get(this, 'data');
    +        return dataType == null ? data : data.getLinkedData(dataType);
    +    },
    +
    +    /**
    +     * @param {module:echarts/data/List} data
    +     */
    +    setData: function (data) {
    +        set$1(this, 'data', data);
    +    },
    +
    +    /**
    +     * Get data before processed
    +     * @return {module:echarts/data/List}
    +     */
    +    getRawData: function () {
    +        return get(this, 'dataBeforeProcessed');
    +    },
    +
    +    /**
    +     * Coord dimension to data dimension.
    +     *
    +     * By default the result is the same as dimensions of series data.
    +     * But in some series data dimensions are different from coord dimensions (i.e.
    +     * candlestick and boxplot). Override this method to handle those cases.
    +     *
    +     * Coord dimension to data dimension can be one-to-many
    +     *
    +     * @param {string} coordDim
    +     * @return {Array.<string>} dimensions on the axis.
    +     */
    +    coordDimToDataDim: function (coordDim) {
    +        return coordDimToDataDim(this.getData(), coordDim);
    +    },
    +
    +    /**
    +     * Convert data dimension to coord dimension.
    +     *
    +     * @param {string|number} dataDim
    +     * @return {string}
    +     */
    +    dataDimToCoordDim: function (dataDim) {
    +        return dataDimToCoordDim(this.getData(), dataDim);
    +    },
    +
    +    /**
    +     * Get base axis if has coordinate system and has axis.
    +     * By default use coordSys.getBaseAxis();
    +     * Can be overrided for some chart.
    +     * @return {type} description
    +     */
    +    getBaseAxis: function () {
    +        var coordSys = this.coordinateSystem;
    +        return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();
    +    },
    +
    +    // FIXME
    +    /**
    +     * Default tooltip formatter
    +     *
    +     * @param {number} dataIndex
    +     * @param {boolean} [multipleSeries=false]
    +     * @param {number} [dataType]
    +     */
    +    formatTooltip: function (dataIndex, multipleSeries, dataType) {
    +        function formatArrayValue(value) {
    +            var vertially = reduce(value, function (vertially, val, idx) {
    +                var dimItem = data.getDimensionInfo(idx);
    +                return vertially |= dimItem && dimItem.tooltip !== false && dimItem.tooltipName != null;
    +            }, 0);
    +
    +            var result = [];
    +            var tooltipDims = otherDimToDataDim(data, 'tooltip');
    +
    +            tooltipDims.length
    +                ? each$1(tooltipDims, function (dimIdx) {
    +                    setEachItem(data.get(dimIdx, dataIndex), dimIdx);
    +                })
    +                // By default, all dims is used on tooltip.
    +                : each$1(value, setEachItem);
    +
    +            function setEachItem(val, dimIdx) {
    +                var dimInfo = data.getDimensionInfo(dimIdx);
    +                // If `dimInfo.tooltip` is not set, show tooltip.
    +                if (!dimInfo || dimInfo.otherDims.tooltip === false) {
    +                    return;
    +                }
    +                var dimType = dimInfo.type;
    +                var valStr = (vertially ? '- ' + (dimInfo.tooltipName || dimInfo.name) + ': ' : '')
    +                    + (dimType === 'ordinal'
    +                        ? val + ''
    +                        : dimType === 'time'
    +                        ? (multipleSeries ? '' : formatTime('yyyy/MM/dd hh:mm:ss', val))
    +                        : addCommas(val)
    +                    );
    +                valStr && result.push(encodeHTML(valStr));
    +            }
    +
    +            return (vertially ? '<br/>' : '') + result.join(vertially ? '<br/>' : ', ');
    +        }
    +
    +        var data = get(this, 'data');
    +
    +        var value = this.getRawValue(dataIndex);
    +        var formattedValue = isArray(value)
    +            ? formatArrayValue(value) : encodeHTML(addCommas(value));
    +        var name = data.getName(dataIndex);
    +
    +        var color = data.getItemVisual(dataIndex, 'color');
    +        if (isObject(color) && color.colorStops) {
    +            color = (color.colorStops[0] || {}).color;
    +        }
    +        color = color || 'transparent';
    +
    +        var colorEl = getTooltipMarker(color);
    +
    +        var seriesName = this.name;
    +        // FIXME
    +        if (seriesName === '\0-') {
    +            // Not show '-'
    +            seriesName = '';
    +        }
    +        seriesName = seriesName
    +            ? encodeHTML(seriesName) + (!multipleSeries ? '<br/>' : ': ')
    +            : '';
    +        return !multipleSeries
    +            ? seriesName + colorEl
    +                + (name
    +                    ? encodeHTML(name) + ': ' + formattedValue
    +                    : formattedValue
    +                )
    +            : colorEl + seriesName + formattedValue;
    +    },
    +
    +    /**
    +     * @return {boolean}
    +     */
    +    isAnimationEnabled: function () {
    +        if (env$1.node) {
    +            return false;
    +        }
    +
    +        var animationEnabled = this.getShallow('animation');
    +        if (animationEnabled) {
    +            if (this.getData().count() > this.getShallow('animationThreshold')) {
    +                animationEnabled = false;
    +            }
    +        }
    +        return animationEnabled;
    +    },
    +
    +    restoreData: function () {
    +        set$1(this, 'data', get(this, 'dataBeforeProcessed').cloneShallow());
    +    },
    +
    +    getColorFromPalette: function (name, scope) {
    +        var ecModel = this.ecModel;
    +        // PENDING
    +        var color = colorPaletteMixin.getColorFromPalette.call(this, name, scope);
    +        if (!color) {
    +            color = ecModel.getColorFromPalette(name, scope);
    +        }
    +        return color;
    +    },
    +
    +    /**
    +     * Get data indices for show tooltip content. See tooltip.
    +     * @abstract
    +     * @param {Array.<string>|string} dim
    +     * @param {Array.<number>} value
    +     * @param {module:echarts/coord/single/SingleAxis} baseAxis
    +     * @return {Object} {dataIndices, nestestValue}.
    +     */
    +    getAxisTooltipData: null,
    +
    +    /**
    +     * See tooltip.
    +     * @abstract
    +     * @param {number} dataIndex
    +     * @return {Array.<number>} Point of tooltip. null/undefined can be returned.
    +     */
    +    getTooltipPosition: null
    +});
    +
    +mixin(SeriesModel, dataFormatMixin);
    +mixin(SeriesModel, colorPaletteMixin);
    +
    +var Component = function () {
    +    /**
    +     * @type {module:zrender/container/Group}
    +     * @readOnly
    +     */
    +    this.group = new Group();
    +
    +    /**
    +     * @type {string}
    +     * @readOnly
    +     */
    +    this.uid = getUID('viewComponent');
    +};
    +
    +Component.prototype = {
    +
    +    constructor: Component,
    +
    +    init: function (ecModel, api) {},
    +
    +    render: function (componentModel, ecModel, api, payload) {},
    +
    +    dispose: function () {}
    +
    +};
    +
    +var componentProto = Component.prototype;
    +componentProto.updateView
    +    = componentProto.updateLayout
    +    = componentProto.updateVisual
    +    = function (seriesModel, ecModel, api, payload) {
    +        // Do nothing;
    +    };
    +// Enable Component.extend.
    +enableClassExtend(Component);
    +
    +// Enable capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
    +enableClassManagement(Component, {registerWhenExtend: true});
    +
    +function Chart() {
    +
    +    /**
    +     * @type {module:zrender/container/Group}
    +     * @readOnly
    +     */
    +    this.group = new Group();
    +
    +    /**
    +     * @type {string}
    +     * @readOnly
    +     */
    +    this.uid = getUID('viewChart');
    +}
    +
    +Chart.prototype = {
    +
    +    type: 'chart',
    +
    +    /**
    +     * Init the chart
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    init: function (ecModel, api) {},
    +
    +    /**
    +     * Render the chart
    +     * @param  {module:echarts/model/Series} seriesModel
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     * @param  {Object} payload
    +     */
    +    render: function (seriesModel, ecModel, api, payload) {},
    +
    +    /**
    +     * Highlight series or specified data item
    +     * @param  {module:echarts/model/Series} seriesModel
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     * @param  {Object} payload
    +     */
    +    highlight: function (seriesModel, ecModel, api, payload) {
    +        toggleHighlight(seriesModel.getData(), payload, 'emphasis');
    +    },
    +
    +    /**
    +     * Downplay series or specified data item
    +     * @param  {module:echarts/model/Series} seriesModel
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     * @param  {Object} payload
    +     */
    +    downplay: function (seriesModel, ecModel, api, payload) {
    +        toggleHighlight(seriesModel.getData(), payload, 'normal');
    +    },
    +
    +    /**
    +     * Remove self
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    remove: function (ecModel, api) {
    +        this.group.removeAll();
    +    },
    +
    +    /**
    +     * Dispose self
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    dispose: function () {}
    +
    +    /**
    +     * The view contains the given point.
    +     * @interface
    +     * @param {Array.<number>} point
    +     * @return {boolean}
    +     */
    +    // containPoint: function () {}
    +
    +};
    +
    +var chartProto = Chart.prototype;
    +chartProto.updateView
    +    = chartProto.updateLayout
    +    = chartProto.updateVisual
    +    = function (seriesModel, ecModel, api, payload) {
    +        this.render(seriesModel, ecModel, api, payload);
    +    };
    +
    +/**
    + * Set state of single element
    + * @param  {module:zrender/Element} el
    + * @param  {string} state
    + */
    +function elSetState(el, state) {
    +    if (el) {
    +        el.trigger(state);
    +        if (el.type === 'group') {
    +            for (var i = 0; i < el.childCount(); i++) {
    +                elSetState(el.childAt(i), state);
    +            }
    +        }
    +    }
    +}
    +/**
    + * @param  {module:echarts/data/List} data
    + * @param  {Object} payload
    + * @param  {string} state 'normal'|'emphasis'
    + * @inner
    + */
    +function toggleHighlight(data, payload, state) {
    +    var dataIndex = queryDataIndex(data, payload);
    +
    +    if (dataIndex != null) {
    +        each$1(normalizeToArray(dataIndex), function (dataIdx) {
    +            elSetState(data.getItemGraphicEl(dataIdx), state);
    +        });
    +    }
    +    else {
    +        data.eachItemGraphicEl(function (el) {
    +            elSetState(el, state);
    +        });
    +    }
    +}
    +
    +// Enable Chart.extend.
    +enableClassExtend(Chart, ['dispose']);
    +
    +// Add capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
    +enableClassManagement(Chart, {registerWhenExtend: true});
    +
    +var ORIGIN_METHOD = '\0__throttleOriginMethod';
    +var RATE = '\0__throttleRate';
    +var THROTTLE_TYPE = '\0__throttleType';
    +
    +/**
    + * @public
    + * @param {(Function)} fn
    + * @param {number} [delay=0] Unit: ms.
    + * @param {boolean} [debounce=false]
    + *        true: If call interval less than `delay`, only the last call works.
    + *        false: If call interval less than `delay, call works on fixed rate.
    + * @return {(Function)} throttled fn.
    + */
    +function throttle(fn, delay, debounce) {
    +
    +    var currCall;
    +    var lastCall = 0;
    +    var lastExec = 0;
    +    var timer = null;
    +    var diff;
    +    var scope;
    +    var args;
    +    var debounceNextCall;
    +
    +    delay = delay || 0;
    +
    +    function exec() {
    +        lastExec = (new Date()).getTime();
    +        timer = null;
    +        fn.apply(scope, args || []);
    +    }
    +
    +    var cb = function () {
    +        currCall = (new Date()).getTime();
    +        scope = this;
    +        args = arguments;
    +        var thisDelay = debounceNextCall || delay;
    +        var thisDebounce = debounceNextCall || debounce;
    +        debounceNextCall = null;
    +        diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay;
    +
    +        clearTimeout(timer);
    +
    +        if (thisDebounce) {
    +            timer = setTimeout(exec, thisDelay);
    +        }
    +        else {
    +            if (diff >= 0) {
    +                exec();
    +            }
    +            else {
    +                timer = setTimeout(exec, -diff);
    +            }
    +        }
    +
    +        lastCall = currCall;
    +    };
    +
    +    /**
    +     * Clear throttle.
    +     * @public
    +     */
    +    cb.clear = function () {
    +        if (timer) {
    +            clearTimeout(timer);
    +            timer = null;
    +        }
    +    };
    +
    +    /**
    +     * Enable debounce once.
    +     */
    +    cb.debounceNextCall = function (debounceDelay) {
    +        debounceNextCall = debounceDelay;
    +    };
    +
    +    return cb;
    +}
    +
    +/**
    + * Create throttle method or update throttle rate.
    + *
    + * @example
    + * ComponentView.prototype.render = function () {
    + *     ...
    + *     throttle.createOrUpdate(
    + *         this,
    + *         '_dispatchAction',
    + *         this.model.get('throttle'),
    + *         'fixRate'
    + *     );
    + * };
    + * ComponentView.prototype.remove = function () {
    + *     throttle.clear(this, '_dispatchAction');
    + * };
    + * ComponentView.prototype.dispose = function () {
    + *     throttle.clear(this, '_dispatchAction');
    + * };
    + *
    + * @public
    + * @param {Object} obj
    + * @param {string} fnAttr
    + * @param {number} [rate]
    + * @param {string} [throttleType='fixRate'] 'fixRate' or 'debounce'
    + * @return {Function} throttled function.
    + */
    +function createOrUpdate(obj, fnAttr, rate, throttleType) {
    +    var fn = obj[fnAttr];
    +
    +    if (!fn) {
    +        return;
    +    }
    +
    +    var originFn = fn[ORIGIN_METHOD] || fn;
    +    var lastThrottleType = fn[THROTTLE_TYPE];
    +    var lastRate = fn[RATE];
    +
    +    if (lastRate !== rate || lastThrottleType !== throttleType) {
    +        if (rate == null || !throttleType) {
    +            return (obj[fnAttr] = originFn);
    +        }
    +
    +        fn = obj[fnAttr] = throttle(
    +            originFn, rate, throttleType === 'debounce'
    +        );
    +        fn[ORIGIN_METHOD] = originFn;
    +        fn[THROTTLE_TYPE] = throttleType;
    +        fn[RATE] = rate;
    +    }
    +
    +    return fn;
    +}
    +
    +/**
    + * Clear throttle. Example see throttle.createOrUpdate.
    + *
    + * @public
    + * @param {Object} obj
    + * @param {string} fnAttr
    + */
    +function clear(obj, fnAttr) {
    +    var fn = obj[fnAttr];
    +    if (fn && fn[ORIGIN_METHOD]) {
    +        obj[fnAttr] = fn[ORIGIN_METHOD];
    +    }
    +}
    +
    +var seriesColor = function (ecModel) {
    +    function encodeColor(seriesModel) {
    +        var colorAccessPath = (seriesModel.visualColorAccessPath || 'itemStyle.normal.color').split('.');
    +        var data = seriesModel.getData();
    +        var color = seriesModel.get(colorAccessPath) // Set in itemStyle
    +            || seriesModel.getColorFromPalette(seriesModel.get('name'));  // Default color
    +
    +        // FIXME Set color function or use the platte color
    +        data.setVisual('color', color);
    +
    +        // Only visible series has each data be visual encoded
    +        if (!ecModel.isSeriesFiltered(seriesModel)) {
    +            if (typeof color === 'function' && !(color instanceof Gradient)) {
    +                data.each(function (idx) {
    +                    data.setItemVisual(
    +                        idx, 'color', color(seriesModel.getDataParams(idx))
    +                    );
    +                });
    +            }
    +
    +            // itemStyle in each data item
    +            data.each(function (idx) {
    +                var itemModel = data.getItemModel(idx);
    +                var color = itemModel.get(colorAccessPath, true);
    +                if (color != null) {
    +                    data.setItemVisual(idx, 'color', color);
    +                }
    +            });
    +        }
    +    }
    +    ecModel.eachRawSeries(encodeColor);
    +};
    +
    +var PI$1 = Math.PI;
    +
    +/**
    + * @param {module:echarts/ExtensionAPI} api
    + * @param {Object} [opts]
    + * @param {string} [opts.text]
    + * @param {string} [opts.color]
    + * @param {string} [opts.textColor]
    + * @return {module:zrender/Element}
    + */
    +var loadingDefault = function (api, opts) {
    +    opts = opts || {};
    +    defaults(opts, {
    +        text: 'loading',
    +        color: '#c23531',
    +        textColor: '#000',
    +        maskColor: 'rgba(255, 255, 255, 0.8)',
    +        zlevel: 0
    +    });
    +    var mask = new Rect({
    +        style: {
    +            fill: opts.maskColor
    +        },
    +        zlevel: opts.zlevel,
    +        z: 10000
    +    });
    +    var arc = new Arc({
    +        shape: {
    +            startAngle: -PI$1 / 2,
    +            endAngle: -PI$1 / 2 + 0.1,
    +            r: 10
    +        },
    +        style: {
    +            stroke: opts.color,
    +            lineCap: 'round',
    +            lineWidth: 5
    +        },
    +        zlevel: opts.zlevel,
    +        z: 10001
    +    });
    +    var labelRect = new Rect({
    +        style: {
    +            fill: 'none',
    +            text: opts.text,
    +            textPosition: 'right',
    +            textDistance: 10,
    +            textFill: opts.textColor
    +        },
    +        zlevel: opts.zlevel,
    +        z: 10001
    +    });
    +
    +    arc.animateShape(true)
    +        .when(1000, {
    +            endAngle: PI$1 * 3 / 2
    +        })
    +        .start('circularInOut');
    +    arc.animateShape(true)
    +        .when(1000, {
    +            startAngle: PI$1 * 3 / 2
    +        })
    +        .delay(300)
    +        .start('circularInOut');
    +
    +    var group = new Group();
    +    group.add(arc);
    +    group.add(labelRect);
    +    group.add(mask);
    +    // Inject resize
    +    group.resize = function () {
    +        var cx = api.getWidth() / 2;
    +        var cy = api.getHeight() / 2;
    +        arc.setShape({
    +            cx: cx,
    +            cy: cy
    +        });
    +        var r = arc.shape.r;
    +        labelRect.setShape({
    +            x: cx - r,
    +            y: cy - r,
    +            width: r * 2,
    +            height: r * 2
    +        });
    +
    +        mask.setShape({
    +            x: 0,
    +            y: 0,
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        });
    +    };
    +    group.resize();
    +    return group;
    +};
    +
    +/*!
    + * ECharts, a javascript interactive chart library.
    + *
    + * Copyright (c) 2015, Baidu Inc.
    + * All rights reserved.
    + *
    + * LICENSE
    + * https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
    + */
    +
    +var each = each$1;
    +var parseClassType = ComponentModel.parseClassType;
    +
    +var version = '3.8.4';
    +
    +var dependencies = {
    +    zrender: '3.7.3'
    +};
    +
    +var PRIORITY_PROCESSOR_FILTER = 1000;
    +var PRIORITY_PROCESSOR_STATISTIC = 5000;
    +
    +var PRIORITY_VISUAL_LAYOUT = 1000;
    +var PRIORITY_VISUAL_GLOBAL = 2000;
    +var PRIORITY_VISUAL_CHART = 3000;
    +var PRIORITY_VISUAL_COMPONENT = 4000;
    +// FIXME
    +// necessary?
    +var PRIORITY_VISUAL_BRUSH = 5000;
    +
    +var PRIORITY = {
    +    PROCESSOR: {
    +        FILTER: PRIORITY_PROCESSOR_FILTER,
    +        STATISTIC: PRIORITY_PROCESSOR_STATISTIC
    +    },
    +    VISUAL: {
    +        LAYOUT: PRIORITY_VISUAL_LAYOUT,
    +        GLOBAL: PRIORITY_VISUAL_GLOBAL,
    +        CHART: PRIORITY_VISUAL_CHART,
    +        COMPONENT: PRIORITY_VISUAL_COMPONENT,
    +        BRUSH: PRIORITY_VISUAL_BRUSH
    +    }
    +};
    +
    +// Main process have three entries: `setOption`, `dispatchAction` and `resize`,
    +// where they must not be invoked nestedly, except the only case: invoke
    +// dispatchAction with updateMethod "none" in main process.
    +// This flag is used to carry out this rule.
    +// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).
    +var IN_MAIN_PROCESS = '__flagInMainProcess';
    +var HAS_GRADIENT_OR_PATTERN_BG = '__hasGradientOrPatternBg';
    +var OPTION_UPDATED = '__optionUpdated';
    +var ACTION_REG = /^[a-zA-Z0-9_]+$/;
    +
    +
    +function createRegisterEventWithLowercaseName(method) {
    +    return function (eventName, handler, context) {
    +        // Event name is all lowercase
    +        eventName = eventName && eventName.toLowerCase();
    +        Eventful.prototype[method].call(this, eventName, handler, context);
    +    };
    +}
    +
    +/**
    + * @module echarts~MessageCenter
    + */
    +function MessageCenter() {
    +    Eventful.call(this);
    +}
    +MessageCenter.prototype.on = createRegisterEventWithLowercaseName('on');
    +MessageCenter.prototype.off = createRegisterEventWithLowercaseName('off');
    +MessageCenter.prototype.one = createRegisterEventWithLowercaseName('one');
    +mixin(MessageCenter, Eventful);
    +
    +/**
    + * @module echarts~ECharts
    + */
    +function ECharts(dom, theme, opts) {
    +    opts = opts || {};
    +
    +    // Get theme by name
    +    if (typeof theme === 'string') {
    +        theme = themeStorage[theme];
    +    }
    +
    +    /**
    +     * @type {string}
    +     */
    +    this.id;
    +
    +    /**
    +     * Group id
    +     * @type {string}
    +     */
    +    this.group;
    +
    +    /**
    +     * @type {HTMLElement}
    +     * @private
    +     */
    +    this._dom = dom;
    +
    +    var defaultRenderer = 'canvas';
    +    if (__DEV__) {
    +        defaultRenderer = (
    +            typeof window === 'undefined' ? global : window
    +        ).__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer;
    +    }
    +
    +    /**
    +     * @type {module:zrender/ZRender}
    +     * @private
    +     */
    +    var zr = this._zr = init$1(dom, {
    +        renderer: opts.renderer || defaultRenderer,
    +        devicePixelRatio: opts.devicePixelRatio,
    +        width: opts.width,
    +        height: opts.height
    +    });
    +
    +    /**
    +     * Expect 60 pfs.
    +     * @type {Function}
    +     * @private
    +     */
    +    this._throttledZrFlush = throttle(bind(zr.flush, zr), 17);
    +
    +    var theme = clone(theme);
    +    theme && backwardCompat(theme, true);
    +    /**
    +     * @type {Object}
    +     * @private
    +     */
    +    this._theme = theme;
    +
    +    /**
    +     * @type {Array.<module:echarts/view/Chart>}
    +     * @private
    +     */
    +    this._chartsViews = [];
    +
    +    /**
    +     * @type {Object.<string, module:echarts/view/Chart>}
    +     * @private
    +     */
    +    this._chartsMap = {};
    +
    +    /**
    +     * @type {Array.<module:echarts/view/Component>}
    +     * @private
    +     */
    +    this._componentsViews = [];
    +
    +    /**
    +     * @type {Object.<string, module:echarts/view/Component>}
    +     * @private
    +     */
    +    this._componentsMap = {};
    +
    +    /**
    +     * @type {module:echarts/CoordinateSystem}
    +     * @private
    +     */
    +    this._coordSysMgr = new CoordinateSystemManager();
    +
    +    /**
    +     * @type {module:echarts/ExtensionAPI}
    +     * @private
    +     */
    +    this._api = createExtensionAPI(this);
    +
    +    Eventful.call(this);
    +
    +    /**
    +     * @type {module:echarts~MessageCenter}
    +     * @private
    +     */
    +    this._messageCenter = new MessageCenter();
    +
    +    // Init mouse events
    +    this._initEvents();
    +
    +    // In case some people write `window.onresize = chart.resize`
    +    this.resize = bind(this.resize, this);
    +
    +    // Can't dispatch action during rendering procedure
    +    this._pendingActions = [];
    +    // Sort on demand
    +    function prioritySortFunc(a, b) {
    +        return a.prio - b.prio;
    +    }
    +    sort(visualFuncs, prioritySortFunc);
    +    sort(dataProcessorFuncs, prioritySortFunc);
    +
    +    zr.animation.on('frame', this._onframe, this);
    +
    +    // ECharts instance can be used as value.
    +    setAsPrimitive(this);
    +}
    +
    +var echartsProto = ECharts.prototype;
    +
    +echartsProto._onframe = function () {
    +    // Lazy update
    +    if (this[OPTION_UPDATED]) {
    +        var silent = this[OPTION_UPDATED].silent;
    +
    +        this[IN_MAIN_PROCESS] = true;
    +
    +        updateMethods.prepareAndUpdate.call(this);
    +
    +        this[IN_MAIN_PROCESS] = false;
    +
    +        this[OPTION_UPDATED] = false;
    +
    +        flushPendingActions.call(this, silent);
    +
    +        triggerUpdatedEvent.call(this, silent);
    +    }
    +};
    +/**
    + * @return {HTMLElement}
    + */
    +echartsProto.getDom = function () {
    +    return this._dom;
    +};
    +
    +/**
    + * @return {module:zrender~ZRender}
    + */
    +echartsProto.getZr = function () {
    +    return this._zr;
    +};
    +
    +/**
    + * Usage:
    + * chart.setOption(option, notMerge, lazyUpdate);
    + * chart.setOption(option, {
    + *     notMerge: ...,
    + *     lazyUpdate: ...,
    + *     silent: ...
    + * });
    + *
    + * @param {Object} option
    + * @param {Object|boolean} [opts] opts or notMerge.
    + * @param {boolean} [opts.notMerge=false]
    + * @param {boolean} [opts.lazyUpdate=false] Useful when setOption frequently.
    + */
    +echartsProto.setOption = function (option, notMerge, lazyUpdate) {
    +    if (__DEV__) {
    +        assert(!this[IN_MAIN_PROCESS], '`setOption` should not be called during main process.');
    +    }
    +
    +    var silent;
    +    if (isObject(notMerge)) {
    +        lazyUpdate = notMerge.lazyUpdate;
    +        silent = notMerge.silent;
    +        notMerge = notMerge.notMerge;
    +    }
    +
    +    this[IN_MAIN_PROCESS] = true;
    +
    +    if (!this._model || notMerge) {
    +        var optionManager = new OptionManager(this._api);
    +        var theme = this._theme;
    +        var ecModel = this._model = new GlobalModel(null, null, theme, optionManager);
    +        ecModel.init(null, null, theme, optionManager);
    +    }
    +
    +    this._model.setOption(option, optionPreprocessorFuncs);
    +
    +    if (lazyUpdate) {
    +        this[OPTION_UPDATED] = {silent: silent};
    +        this[IN_MAIN_PROCESS] = false;
    +    }
    +    else {
    +        updateMethods.prepareAndUpdate.call(this);
    +        // Ensure zr refresh sychronously, and then pixel in canvas can be
    +        // fetched after `setOption`.
    +        this._zr.flush();
    +
    +        this[OPTION_UPDATED] = false;
    +        this[IN_MAIN_PROCESS] = false;
    +
    +        flushPendingActions.call(this, silent);
    +        triggerUpdatedEvent.call(this, silent);
    +    }
    +};
    +
    +/**
    + * @DEPRECATED
    + */
    +echartsProto.setTheme = function () {
    +    console.log('ECharts#setTheme() is DEPRECATED in ECharts 3.0');
    +};
    +
    +/**
    + * @return {module:echarts/model/Global}
    + */
    +echartsProto.getModel = function () {
    +    return this._model;
    +};
    +
    +/**
    + * @return {Object}
    + */
    +echartsProto.getOption = function () {
    +    return this._model && this._model.getOption();
    +};
    +
    +/**
    + * @return {number}
    + */
    +echartsProto.getWidth = function () {
    +    return this._zr.getWidth();
    +};
    +
    +/**
    + * @return {number}
    + */
    +echartsProto.getHeight = function () {
    +    return this._zr.getHeight();
    +};
    +
    +/**
    + * @return {number}
    + */
    +echartsProto.getDevicePixelRatio = function () {
    +    return this._zr.painter.dpr || window.devicePixelRatio || 1;
    +};
    +
    +/**
    + * Get canvas which has all thing rendered
    + * @param {Object} opts
    + * @param {string} [opts.backgroundColor]
    + * @return {string}
    + */
    +echartsProto.getRenderedCanvas = function (opts) {
    +    if (!env$1.canvasSupported) {
    +        return;
    +    }
    +    opts = opts || {};
    +    opts.pixelRatio = opts.pixelRatio || 1;
    +    opts.backgroundColor = opts.backgroundColor
    +        || this._model.get('backgroundColor');
    +    var zr = this._zr;
    +    var list = zr.storage.getDisplayList();
    +    // Stop animations
    +    each$1(list, function (el) {
    +        el.stopAnimation(true);
    +    });
    +    return zr.painter.getRenderedCanvas(opts);
    +};
    +
    +/**
    + * Get svg data url
    + * @return {string}
    + */
    +echartsProto.getSvgDataUrl = function () {
    +    if (!env$1.svgSupported) {
    +        return;
    +    }
    +
    +    var zr = this._zr;
    +    var list = zr.storage.getDisplayList();
    +    // Stop animations
    +    each$1(list, function (el) {
    +        el.stopAnimation(true);
    +    });
    +
    +    return zr.painter.pathToSvg();
    +};
    +
    +/**
    + * @return {string}
    + * @param {Object} opts
    + * @param {string} [opts.type='png']
    + * @param {string} [opts.pixelRatio=1]
    + * @param {string} [opts.backgroundColor]
    + * @param {string} [opts.excludeComponents]
    + */
    +echartsProto.getDataURL = function (opts) {
    +    opts = opts || {};
    +    var excludeComponents = opts.excludeComponents;
    +    var ecModel = this._model;
    +    var excludesComponentViews = [];
    +    var self = this;
    +
    +    each(excludeComponents, function (componentType) {
    +        ecModel.eachComponent({
    +            mainType: componentType
    +        }, function (component) {
    +            var view = self._componentsMap[component.__viewId];
    +            if (!view.group.ignore) {
    +                excludesComponentViews.push(view);
    +                view.group.ignore = true;
    +            }
    +        });
    +    });
    +
    +    var url = this._zr.painter.getType() === 'svg'
    +        ? this.getSvgDataUrl()
    +        : this.getRenderedCanvas(opts).toDataURL(
    +            'image/' + (opts && opts.type || 'png')
    +        );
    +
    +    each(excludesComponentViews, function (view) {
    +        view.group.ignore = false;
    +    });
    +
    +    return url;
    +};
    +
    +
    +/**
    + * @return {string}
    + * @param {Object} opts
    + * @param {string} [opts.type='png']
    + * @param {string} [opts.pixelRatio=1]
    + * @param {string} [opts.backgroundColor]
    + */
    +echartsProto.getConnectedDataURL = function (opts) {
    +    if (!env$1.canvasSupported) {
    +        return;
    +    }
    +    var groupId = this.group;
    +    var mathMin = Math.min;
    +    var mathMax = Math.max;
    +    var MAX_NUMBER = Infinity;
    +    if (connectedGroups[groupId]) {
    +        var left = MAX_NUMBER;
    +        var top = MAX_NUMBER;
    +        var right = -MAX_NUMBER;
    +        var bottom = -MAX_NUMBER;
    +        var canvasList = [];
    +        var dpr = (opts && opts.pixelRatio) || 1;
    +
    +        each$1(instances, function (chart, id) {
    +            if (chart.group === groupId) {
    +                var canvas = chart.getRenderedCanvas(
    +                    clone(opts)
    +                );
    +                var boundingRect = chart.getDom().getBoundingClientRect();
    +                left = mathMin(boundingRect.left, left);
    +                top = mathMin(boundingRect.top, top);
    +                right = mathMax(boundingRect.right, right);
    +                bottom = mathMax(boundingRect.bottom, bottom);
    +                canvasList.push({
    +                    dom: canvas,
    +                    left: boundingRect.left,
    +                    top: boundingRect.top
    +                });
    +            }
    +        });
    +
    +        left *= dpr;
    +        top *= dpr;
    +        right *= dpr;
    +        bottom *= dpr;
    +        var width = right - left;
    +        var height = bottom - top;
    +        var targetCanvas = createCanvas();
    +        targetCanvas.width = width;
    +        targetCanvas.height = height;
    +        var zr = init$1(targetCanvas);
    +
    +        each(canvasList, function (item) {
    +            var img = new ZImage({
    +                style: {
    +                    x: item.left * dpr - left,
    +                    y: item.top * dpr - top,
    +                    image: item.dom
    +                }
    +            });
    +            zr.add(img);
    +        });
    +        zr.refreshImmediately();
    +
    +        return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));
    +    }
    +    else {
    +        return this.getDataURL(opts);
    +    }
    +};
    +
    +/**
    + * Convert from logical coordinate system to pixel coordinate system.
    + * See CoordinateSystem#convertToPixel.
    + * @param {string|Object} finder
    + *        If string, e.g., 'geo', means {geoIndex: 0}.
    + *        If Object, could contain some of these properties below:
    + *        {
    + *            seriesIndex / seriesId / seriesName,
    + *            geoIndex / geoId, geoName,
    + *            bmapIndex / bmapId / bmapName,
    + *            xAxisIndex / xAxisId / xAxisName,
    + *            yAxisIndex / yAxisId / yAxisName,
    + *            gridIndex / gridId / gridName,
    + *            ... (can be extended)
    + *        }
    + * @param {Array|number} value
    + * @return {Array|number} result
    + */
    +echartsProto.convertToPixel = curry(doConvertPixel, 'convertToPixel');
    +
    +/**
    + * Convert from pixel coordinate system to logical coordinate system.
    + * See CoordinateSystem#convertFromPixel.
    + * @param {string|Object} finder
    + *        If string, e.g., 'geo', means {geoIndex: 0}.
    + *        If Object, could contain some of these properties below:
    + *        {
    + *            seriesIndex / seriesId / seriesName,
    + *            geoIndex / geoId / geoName,
    + *            bmapIndex / bmapId / bmapName,
    + *            xAxisIndex / xAxisId / xAxisName,
    + *            yAxisIndex / yAxisId / yAxisName
    + *            gridIndex / gridId / gridName,
    + *            ... (can be extended)
    + *        }
    + * @param {Array|number} value
    + * @return {Array|number} result
    + */
    +echartsProto.convertFromPixel = curry(doConvertPixel, 'convertFromPixel');
    +
    +function doConvertPixel(methodName, finder, value) {
    +    var ecModel = this._model;
    +    var coordSysList = this._coordSysMgr.getCoordinateSystems();
    +    var result;
    +
    +    finder = parseFinder(ecModel, finder);
    +
    +    for (var i = 0; i < coordSysList.length; i++) {
    +        var coordSys = coordSysList[i];
    +        if (coordSys[methodName]
    +            && (result = coordSys[methodName](ecModel, finder, value)) != null
    +        ) {
    +            return result;
    +        }
    +    }
    +
    +    if (__DEV__) {
    +        console.warn(
    +            'No coordinate system that supports ' + methodName + ' found by the given finder.'
    +        );
    +    }
    +}
    +
    +/**
    + * Is the specified coordinate systems or components contain the given pixel point.
    + * @param {string|Object} finder
    + *        If string, e.g., 'geo', means {geoIndex: 0}.
    + *        If Object, could contain some of these properties below:
    + *        {
    + *            seriesIndex / seriesId / seriesName,
    + *            geoIndex / geoId / geoName,
    + *            bmapIndex / bmapId / bmapName,
    + *            xAxisIndex / xAxisId / xAxisName,
    + *            yAxisIndex / yAxisId / yAxisName,
    + *            gridIndex / gridId / gridName,
    + *            ... (can be extended)
    + *        }
    + * @param {Array|number} value
    + * @return {boolean} result
    + */
    +echartsProto.containPixel = function (finder, value) {
    +    var ecModel = this._model;
    +    var result;
    +
    +    finder = parseFinder(ecModel, finder);
    +
    +    each$1(finder, function (models, key) {
    +        key.indexOf('Models') >= 0 && each$1(models, function (model) {
    +            var coordSys = model.coordinateSystem;
    +            if (coordSys && coordSys.containPoint) {
    +                result |= !!coordSys.containPoint(value);
    +            }
    +            else if (key === 'seriesModels') {
    +                var view = this._chartsMap[model.__viewId];
    +                if (view && view.containPoint) {
    +                    result |= view.containPoint(value, model);
    +                }
    +                else {
    +                    if (__DEV__) {
    +                        console.warn(key + ': ' + (view
    +                            ? 'The found component do not support containPoint.'
    +                            : 'No view mapping to the found component.'
    +                        ));
    +                    }
    +                }
    +            }
    +            else {
    +                if (__DEV__) {
    +                    console.warn(key + ': containPoint is not supported');
    +                }
    +            }
    +        }, this);
    +    }, this);
    +
    +    return !!result;
    +};
    +
    +/**
    + * Get visual from series or data.
    + * @param {string|Object} finder
    + *        If string, e.g., 'series', means {seriesIndex: 0}.
    + *        If Object, could contain some of these properties below:
    + *        {
    + *            seriesIndex / seriesId / seriesName,
    + *            dataIndex / dataIndexInside
    + *        }
    + *        If dataIndex is not specified, series visual will be fetched,
    + *        but not data item visual.
    + *        If all of seriesIndex, seriesId, seriesName are not specified,
    + *        visual will be fetched from first series.
    + * @param {string} visualType 'color', 'symbol', 'symbolSize'
    + */
    +echartsProto.getVisual = function (finder, visualType) {
    +    var ecModel = this._model;
    +
    +    finder = parseFinder(ecModel, finder, {defaultMainType: 'series'});
    +
    +    var seriesModel = finder.seriesModel;
    +
    +    if (__DEV__) {
    +        if (!seriesModel) {
    +            console.warn('There is no specified seires model');
    +        }
    +    }
    +
    +    var data = seriesModel.getData();
    +
    +    var dataIndexInside = finder.hasOwnProperty('dataIndexInside')
    +        ? finder.dataIndexInside
    +        : finder.hasOwnProperty('dataIndex')
    +        ? data.indexOfRawIndex(finder.dataIndex)
    +        : null;
    +
    +    return dataIndexInside != null
    +        ? data.getItemVisual(dataIndexInside, visualType)
    +        : data.getVisual(visualType);
    +};
    +
    +/**
    + * Get view of corresponding component model
    + * @param  {module:echarts/model/Component} componentModel
    + * @return {module:echarts/view/Component}
    + */
    +echartsProto.getViewOfComponentModel = function (componentModel) {
    +    return this._componentsMap[componentModel.__viewId];
    +};
    +
    +/**
    + * Get view of corresponding series model
    + * @param  {module:echarts/model/Series} seriesModel
    + * @return {module:echarts/view/Chart}
    + */
    +echartsProto.getViewOfSeriesModel = function (seriesModel) {
    +    return this._chartsMap[seriesModel.__viewId];
    +};
    +
    +
    +var updateMethods = {
    +
    +    /**
    +     * @param {Object} payload
    +     * @private
    +     */
    +    update: function (payload) {
    +        // console.profile && console.profile('update');
    +
    +        var ecModel = this._model;
    +        var api = this._api;
    +        var coordSysMgr = this._coordSysMgr;
    +        var zr = this._zr;
    +        // update before setOption
    +        if (!ecModel) {
    +            return;
    +        }
    +
    +        // Fixme First time update ?
    +        ecModel.restoreData();
    +
    +        // TODO
    +        // Save total ecModel here for undo/redo (after restoring data and before processing data).
    +        // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.
    +
    +        // Create new coordinate system each update
    +        // In LineView may save the old coordinate system and use it to get the orignal point
    +        coordSysMgr.create(this._model, this._api);
    +
    +        processData.call(this, ecModel, api);
    +
    +        stackSeriesData.call(this, ecModel);
    +
    +        coordSysMgr.update(ecModel, api);
    +
    +        doVisualEncoding.call(this, ecModel, payload);
    +
    +        doRender.call(this, ecModel, payload);
    +
    +        // Set background
    +        var backgroundColor = ecModel.get('backgroundColor') || 'transparent';
    +
    +        var painter = zr.painter;
    +        // TODO all use clearColor ?
    +        if (painter.isSingleCanvas && painter.isSingleCanvas()) {
    +            zr.configLayer(0, {
    +                clearColor: backgroundColor
    +            });
    +        }
    +        else {
    +            // In IE8
    +            if (!env$1.canvasSupported) {
    +                var colorArr = parse(backgroundColor);
    +                backgroundColor = stringify(colorArr, 'rgb');
    +                if (colorArr[3] === 0) {
    +                    backgroundColor = 'transparent';
    +                }
    +            }
    +            if (backgroundColor.colorStops || backgroundColor.image) {
    +                // Gradient background
    +                // FIXME Fixed layer?
    +                zr.configLayer(0, {
    +                    clearColor: backgroundColor
    +                });
    +                this[HAS_GRADIENT_OR_PATTERN_BG] = true;
    +
    +                this._dom.style.background = 'transparent';
    +            }
    +            else {
    +                if (this[HAS_GRADIENT_OR_PATTERN_BG]) {
    +                    zr.configLayer(0, {
    +                        clearColor: null
    +                    });
    +                }
    +                this[HAS_GRADIENT_OR_PATTERN_BG] = false;
    +
    +                this._dom.style.background = backgroundColor;
    +            }
    +        }
    +
    +        each(postUpdateFuncs, function (func) {
    +            func(ecModel, api);
    +        });
    +
    +        // console.profile && console.profileEnd('update');
    +    },
    +
    +    /**
    +     * @param {Object} payload
    +     * @private
    +     */
    +    updateView: function (payload) {
    +        var ecModel = this._model;
    +
    +        // update before setOption
    +        if (!ecModel) {
    +            return;
    +        }
    +
    +        ecModel.eachSeries(function (seriesModel) {
    +            seriesModel.getData().clearAllVisual();
    +        });
    +
    +        doVisualEncoding.call(this, ecModel, payload);
    +
    +        invokeUpdateMethod.call(this, 'updateView', ecModel, payload);
    +    },
    +
    +    /**
    +     * @param {Object} payload
    +     * @private
    +     */
    +    updateVisual: function (payload) {
    +        var ecModel = this._model;
    +
    +        // update before setOption
    +        if (!ecModel) {
    +            return;
    +        }
    +
    +        ecModel.eachSeries(function (seriesModel) {
    +            seriesModel.getData().clearAllVisual();
    +        });
    +
    +        doVisualEncoding.call(this, ecModel, payload, true);
    +
    +        invokeUpdateMethod.call(this, 'updateVisual', ecModel, payload);
    +    },
    +
    +    /**
    +     * @param {Object} payload
    +     * @private
    +     */
    +    updateLayout: function (payload) {
    +        var ecModel = this._model;
    +
    +        // update before setOption
    +        if (!ecModel) {
    +            return;
    +        }
    +
    +        doLayout.call(this, ecModel, payload);
    +
    +        invokeUpdateMethod.call(this, 'updateLayout', ecModel, payload);
    +    },
    +
    +    /**
    +     * @param {Object} payload
    +     * @private
    +     */
    +    prepareAndUpdate: function (payload) {
    +        var ecModel = this._model;
    +
    +        prepareView.call(this, 'component', ecModel);
    +
    +        prepareView.call(this, 'chart', ecModel);
    +
    +        updateMethods.update.call(this, payload);
    +    }
    +};
    +
    +/**
    + * @private
    + */
    +function updateDirectly(ecIns, method, payload, mainType, subType) {
    +    var ecModel = ecIns._model;
    +
    +    // broadcast
    +    if (!mainType) {
    +        each(ecIns._componentsViews.concat(ecIns._chartsViews), callView);
    +        return;
    +    }
    +
    +    var query = {};
    +    query[mainType + 'Id'] = payload[mainType + 'Id'];
    +    query[mainType + 'Index'] = payload[mainType + 'Index'];
    +    query[mainType + 'Name'] = payload[mainType + 'Name'];
    +
    +    var condition = {mainType: mainType, query: query};
    +    subType && (condition.subType = subType); // subType may be '' by parseClassType;
    +
    +    // If dispatchAction before setOption, do nothing.
    +    ecModel && ecModel.eachComponent(condition, function (model, index) {
    +        callView(ecIns[
    +            mainType === 'series' ? '_chartsMap' : '_componentsMap'
    +        ][model.__viewId]);
    +    }, ecIns);
    +
    +    function callView(view) {
    +        view && view.__alive && view[method] && view[method](
    +            view.__model, ecModel, ecIns._api, payload
    +        );
    +    }
    +}
    +
    +/**
    + * Resize the chart
    + * @param {Object} opts
    + * @param {number} [opts.width] Can be 'auto' (the same as null/undefined)
    + * @param {number} [opts.height] Can be 'auto' (the same as null/undefined)
    + * @param {boolean} [opts.silent=false]
    + */
    +echartsProto.resize = function (opts) {
    +    if (__DEV__) {
    +        assert(!this[IN_MAIN_PROCESS], '`resize` should not be called during main process.');
    +    }
    +
    +    this[IN_MAIN_PROCESS] = true;
    +
    +    this._zr.resize(opts);
    +
    +    var optionChanged = this._model && this._model.resetOption('media');
    +    var updateMethod = optionChanged ? 'prepareAndUpdate' : 'update';
    +
    +    updateMethods[updateMethod].call(this);
    +
    +    // Resize loading effect
    +    this._loadingFX && this._loadingFX.resize();
    +
    +    this[IN_MAIN_PROCESS] = false;
    +
    +    var silent = opts && opts.silent;
    +
    +    flushPendingActions.call(this, silent);
    +
    +    triggerUpdatedEvent.call(this, silent);
    +};
    +
    +/**
    + * Show loading effect
    + * @param  {string} [name='default']
    + * @param  {Object} [cfg]
    + */
    +echartsProto.showLoading = function (name, cfg) {
    +    if (isObject(name)) {
    +        cfg = name;
    +        name = '';
    +    }
    +    name = name || 'default';
    +
    +    this.hideLoading();
    +    if (!loadingEffects[name]) {
    +        if (__DEV__) {
    +            console.warn('Loading effects ' + name + ' not exists.');
    +        }
    +        return;
    +    }
    +    var el = loadingEffects[name](this._api, cfg);
    +    var zr = this._zr;
    +    this._loadingFX = el;
    +
    +    zr.add(el);
    +};
    +
    +/**
    + * Hide loading effect
    + */
    +echartsProto.hideLoading = function () {
    +    this._loadingFX && this._zr.remove(this._loadingFX);
    +    this._loadingFX = null;
    +};
    +
    +/**
    + * @param {Object} eventObj
    + * @return {Object}
    + */
    +echartsProto.makeActionFromEvent = function (eventObj) {
    +    var payload = extend({}, eventObj);
    +    payload.type = eventActionMap[eventObj.type];
    +    return payload;
    +};
    +
    +/**
    + * @pubilc
    + * @param {Object} payload
    + * @param {string} [payload.type] Action type
    + * @param {Object|boolean} [opt] If pass boolean, means opt.silent
    + * @param {boolean} [opt.silent=false] Whether trigger events.
    + * @param {boolean} [opt.flush=undefined]
    + *                  true: Flush immediately, and then pixel in canvas can be fetched
    + *                      immediately. Caution: it might affect performance.
    + *                  false: Not not flush.
    + *                  undefined: Auto decide whether perform flush.
    + */
    +echartsProto.dispatchAction = function (payload, opt) {
    +    if (!isObject(opt)) {
    +        opt = {silent: !!opt};
    +    }
    +
    +    if (!actions[payload.type]) {
    +        return;
    +    }
    +
    +    // Avoid dispatch action before setOption. Especially in `connect`.
    +    if (!this._model) {
    +        return;
    +    }
    +
    +    // May dispatchAction in rendering procedure
    +    if (this[IN_MAIN_PROCESS]) {
    +        this._pendingActions.push(payload);
    +        return;
    +    }
    +
    +    doDispatchAction.call(this, payload, opt.silent);
    +
    +    if (opt.flush) {
    +        this._zr.flush(true);
    +    }
    +    else if (opt.flush !== false && env$1.browser.weChat) {
    +        // In WeChat embeded browser, `requestAnimationFrame` and `setInterval`
    +        // hang when sliding page (on touch event), which cause that zr does not
    +        // refresh util user interaction finished, which is not expected.
    +        // But `dispatchAction` may be called too frequently when pan on touch
    +        // screen, which impacts performance if do not throttle them.
    +        this._throttledZrFlush();
    +    }
    +
    +    flushPendingActions.call(this, opt.silent);
    +
    +    triggerUpdatedEvent.call(this, opt.silent);
    +};
    +
    +function doDispatchAction(payload, silent) {
    +    var payloadType = payload.type;
    +    var escapeConnect = payload.escapeConnect;
    +    var actionWrap = actions[payloadType];
    +    var actionInfo = actionWrap.actionInfo;
    +
    +    var cptType = (actionInfo.update || 'update').split(':');
    +    var updateMethod = cptType.pop();
    +    cptType = cptType[0] != null && parseClassType(cptType[0]);
    +
    +    this[IN_MAIN_PROCESS] = true;
    +
    +    var payloads = [payload];
    +    var batched = false;
    +    // Batch action
    +    if (payload.batch) {
    +        batched = true;
    +        payloads = map(payload.batch, function (item) {
    +            item = defaults(extend({}, item), payload);
    +            item.batch = null;
    +            return item;
    +        });
    +    }
    +
    +    var eventObjBatch = [];
    +    var eventObj;
    +    var isHighDown = payloadType === 'highlight' || payloadType === 'downplay';
    +
    +    each(payloads, function (batchItem) {
    +        // Action can specify the event by return it.
    +        eventObj = actionWrap.action(batchItem, this._model, this._api);
    +        // Emit event outside
    +        eventObj = eventObj || extend({}, batchItem);
    +        // Convert type to eventType
    +        eventObj.type = actionInfo.event || eventObj.type;
    +        eventObjBatch.push(eventObj);
    +
    +        // light update does not perform data process, layout and visual.
    +        if (isHighDown) {
    +            // method, payload, mainType, subType
    +            updateDirectly(this, updateMethod, batchItem, 'series');
    +        }
    +        else if (cptType) {
    +            updateDirectly(this, updateMethod, batchItem, cptType.main, cptType.sub);
    +        }
    +    }, this);
    +
    +    if (updateMethod !== 'none' && !isHighDown && !cptType) {
    +        // Still dirty
    +        if (this[OPTION_UPDATED]) {
    +            // FIXME Pass payload ?
    +            updateMethods.prepareAndUpdate.call(this, payload);
    +            this[OPTION_UPDATED] = false;
    +        }
    +        else {
    +            updateMethods[updateMethod].call(this, payload);
    +        }
    +    }
    +
    +    // Follow the rule of action batch
    +    if (batched) {
    +        eventObj = {
    +            type: actionInfo.event || payloadType,
    +            escapeConnect: escapeConnect,
    +            batch: eventObjBatch
    +        };
    +    }
    +    else {
    +        eventObj = eventObjBatch[0];
    +    }
    +
    +    this[IN_MAIN_PROCESS] = false;
    +
    +    !silent && this._messageCenter.trigger(eventObj.type, eventObj);
    +}
    +
    +function flushPendingActions(silent) {
    +    var pendingActions = this._pendingActions;
    +    while (pendingActions.length) {
    +        var payload = pendingActions.shift();
    +        doDispatchAction.call(this, payload, silent);
    +    }
    +}
    +
    +function triggerUpdatedEvent(silent) {
    +    !silent && this.trigger('updated');
    +}
    +
    +/**
    + * Register event
    + * @method
    + */
    +echartsProto.on = createRegisterEventWithLowercaseName('on');
    +echartsProto.off = createRegisterEventWithLowercaseName('off');
    +echartsProto.one = createRegisterEventWithLowercaseName('one');
    +
    +/**
    + * @param {string} methodName
    + * @private
    + */
    +function invokeUpdateMethod(methodName, ecModel, payload) {
    +    var api = this._api;
    +
    +    // Update all components
    +    each(this._componentsViews, function (component) {
    +        var componentModel = component.__model;
    +        component[methodName](componentModel, ecModel, api, payload);
    +
    +        updateZ(componentModel, component);
    +    }, this);
    +
    +    // Upate all charts
    +    ecModel.eachSeries(function (seriesModel, idx) {
    +        var chart = this._chartsMap[seriesModel.__viewId];
    +        chart[methodName](seriesModel, ecModel, api, payload);
    +
    +        updateZ(seriesModel, chart);
    +
    +        updateProgressiveAndBlend(seriesModel, chart);
    +    }, this);
    +
    +    // If use hover layer
    +    updateHoverLayerStatus(this._zr, ecModel);
    +
    +    // Post render
    +    each(postUpdateFuncs, function (func) {
    +        func(ecModel, api);
    +    });
    +}
    +
    +/**
    + * Prepare view instances of charts and components
    + * @param  {module:echarts/model/Global} ecModel
    + * @private
    + */
    +function prepareView(type, ecModel) {
    +    var isComponent = type === 'component';
    +    var viewList = isComponent ? this._componentsViews : this._chartsViews;
    +    var viewMap = isComponent ? this._componentsMap : this._chartsMap;
    +    var zr = this._zr;
    +
    +    for (var i = 0; i < viewList.length; i++) {
    +        viewList[i].__alive = false;
    +    }
    +
    +    ecModel[isComponent ? 'eachComponent' : 'eachSeries'](function (componentType, model) {
    +        if (isComponent) {
    +            if (componentType === 'series') {
    +                return;
    +            }
    +        }
    +        else {
    +            model = componentType;
    +        }
    +
    +        // Consider: id same and type changed.
    +        var viewId = '_ec_' + model.id + '_' + model.type;
    +        var view = viewMap[viewId];
    +        if (!view) {
    +            var classType = parseClassType(model.type);
    +            var Clazz = isComponent
    +                ? Component.getClass(classType.main, classType.sub)
    +                : Chart.getClass(classType.sub);
    +            if (Clazz) {
    +                view = new Clazz();
    +                view.init(ecModel, this._api);
    +                viewMap[viewId] = view;
    +                viewList.push(view);
    +                zr.add(view.group);
    +            }
    +            else {
    +                // Error
    +                return;
    +            }
    +        }
    +
    +        model.__viewId = view.__id = viewId;
    +        view.__alive = true;
    +        view.__model = model;
    +        view.group.__ecComponentInfo = {
    +            mainType: model.mainType,
    +            index: model.componentIndex
    +        };
    +    }, this);
    +
    +    for (var i = 0; i < viewList.length;) {
    +        var view = viewList[i];
    +        if (!view.__alive) {
    +            zr.remove(view.group);
    +            view.dispose(ecModel, this._api);
    +            viewList.splice(i, 1);
    +            delete viewMap[view.__id];
    +            view.__id = view.group.__ecComponentInfo = null;
    +        }
    +        else {
    +            i++;
    +        }
    +    }
    +}
    +
    +/**
    + * Processor data in each series
    + *
    + * @param {module:echarts/model/Global} ecModel
    + * @private
    + */
    +function processData(ecModel, api) {
    +    each(dataProcessorFuncs, function (process) {
    +        process.func(ecModel, api);
    +    });
    +}
    +
    +/**
    + * @private
    + */
    +function stackSeriesData(ecModel) {
    +    var stackedDataMap = {};
    +    ecModel.eachSeries(function (series) {
    +        var stack = series.get('stack');
    +        var data = series.getData();
    +        if (stack && data.type === 'list') {
    +            var previousStack = stackedDataMap[stack];
    +            // Avoid conflict with Object.prototype
    +            if (stackedDataMap.hasOwnProperty(stack) && previousStack) {
    +                data.stackedOn = previousStack;
    +            }
    +            stackedDataMap[stack] = data;
    +        }
    +    });
    +}
    +
    +/**
    + * Layout before each chart render there series, special visual encoding stage
    + *
    + * @param {module:echarts/model/Global} ecModel
    + * @private
    + */
    +function doLayout(ecModel, payload) {
    +    var api = this._api;
    +    each(visualFuncs, function (visual) {
    +        if (visual.isLayout) {
    +            visual.func(ecModel, api, payload);
    +        }
    +    });
    +}
    +
    +/**
    + * Encode visual infomation from data after data processing
    + *
    + * @param {module:echarts/model/Global} ecModel
    + * @param {object} layout
    + * @param {boolean} [excludesLayout]
    + * @private
    + */
    +function doVisualEncoding(ecModel, payload, excludesLayout) {
    +    var api = this._api;
    +    ecModel.clearColorPalette();
    +    ecModel.eachSeries(function (seriesModel) {
    +        seriesModel.clearColorPalette();
    +    });
    +    each(visualFuncs, function (visual) {
    +        (!excludesLayout || !visual.isLayout)
    +            && visual.func(ecModel, api, payload);
    +    });
    +}
    +
    +/**
    + * Render each chart and component
    + * @private
    + */
    +function doRender(ecModel, payload) {
    +    var api = this._api;
    +    // Render all components
    +    each(this._componentsViews, function (componentView) {
    +        var componentModel = componentView.__model;
    +        componentView.render(componentModel, ecModel, api, payload);
    +
    +        updateZ(componentModel, componentView);
    +    }, this);
    +
    +    each(this._chartsViews, function (chart) {
    +        chart.__alive = false;
    +    }, this);
    +
    +    // Render all charts
    +    ecModel.eachSeries(function (seriesModel, idx) {
    +        var chartView = this._chartsMap[seriesModel.__viewId];
    +        chartView.__alive = true;
    +        chartView.render(seriesModel, ecModel, api, payload);
    +
    +        chartView.group.silent = !!seriesModel.get('silent');
    +
    +        updateZ(seriesModel, chartView);
    +
    +        updateProgressiveAndBlend(seriesModel, chartView);
    +
    +    }, this);
    +
    +    // If use hover layer
    +    updateHoverLayerStatus(this._zr, ecModel);
    +
    +    // Remove groups of unrendered charts
    +    each(this._chartsViews, function (chart) {
    +        if (!chart.__alive) {
    +            chart.remove(ecModel, api);
    +        }
    +    }, this);
    +}
    +
    +var MOUSE_EVENT_NAMES = [
    +    'click', 'dblclick', 'mouseover', 'mouseout', 'mousemove',
    +    'mousedown', 'mouseup', 'globalout', 'contextmenu'
    +];
    +/**
    + * @private
    + */
    +echartsProto._initEvents = function () {
    +    each(MOUSE_EVENT_NAMES, function (eveName) {
    +        this._zr.on(eveName, function (e) {
    +            var ecModel = this.getModel();
    +            var el = e.target;
    +            var params;
    +
    +            // no e.target when 'globalout'.
    +            if (eveName === 'globalout') {
    +                params = {};
    +            }
    +            else if (el && el.dataIndex != null) {
    +                var dataModel = el.dataModel || ecModel.getSeriesByIndex(el.seriesIndex);
    +                params = dataModel && dataModel.getDataParams(el.dataIndex, el.dataType) || {};
    +            }
    +            // If element has custom eventData of components
    +            else if (el && el.eventData) {
    +                params = extend({}, el.eventData);
    +            }
    +
    +            if (params) {
    +                params.event = e;
    +                params.type = eveName;
    +                this.trigger(eveName, params);
    +            }
    +
    +        }, this);
    +    }, this);
    +
    +    each(eventActionMap, function (actionType, eventType) {
    +        this._messageCenter.on(eventType, function (event) {
    +            this.trigger(eventType, event);
    +        }, this);
    +    }, this);
    +};
    +
    +/**
    + * @return {boolean}
    + */
    +echartsProto.isDisposed = function () {
    +    return this._disposed;
    +};
    +
    +/**
    + * Clear
    + */
    +echartsProto.clear = function () {
    +    this.setOption({ series: [] }, true);
    +};
    +
    +/**
    + * Dispose instance
    + */
    +echartsProto.dispose = function () {
    +    if (this._disposed) {
    +        if (__DEV__) {
    +            console.warn('Instance ' + this.id + ' has been disposed');
    +        }
    +        return;
    +    }
    +    this._disposed = true;
    +
    +    var api = this._api;
    +    var ecModel = this._model;
    +
    +    each(this._componentsViews, function (component) {
    +        component.dispose(ecModel, api);
    +    });
    +    each(this._chartsViews, function (chart) {
    +        chart.dispose(ecModel, api);
    +    });
    +
    +    // Dispose after all views disposed
    +    this._zr.dispose();
    +
    +    delete instances[this.id];
    +};
    +
    +mixin(ECharts, Eventful);
    +
    +function updateHoverLayerStatus(zr, ecModel) {
    +    var storage = zr.storage;
    +    var elCount = 0;
    +    storage.traverse(function (el) {
    +        if (!el.isGroup) {
    +            elCount++;
    +        }
    +    });
    +    if (elCount > ecModel.get('hoverLayerThreshold') && !env$1.node) {
    +        storage.traverse(function (el) {
    +            if (!el.isGroup) {
    +                el.useHoverLayer = true;
    +            }
    +        });
    +    }
    +}
    +
    +/**
    + * Update chart progressive and blend.
    + * @param {module:echarts/model/Series|module:echarts/model/Component} model
    + * @param {module:echarts/view/Component|module:echarts/view/Chart} view
    + */
    +function updateProgressiveAndBlend(seriesModel, chartView) {
    +    // Progressive configuration
    +    var elCount = 0;
    +    chartView.group.traverse(function (el) {
    +        if (el.type !== 'group' && !el.ignore) {
    +            elCount++;
    +        }
    +    });
    +    var frameDrawNum = +seriesModel.get('progressive');
    +    var needProgressive = elCount > seriesModel.get('progressiveThreshold') && frameDrawNum && !env$1.node;
    +    if (needProgressive) {
    +        chartView.group.traverse(function (el) {
    +            // FIXME marker and other components
    +            if (!el.isGroup) {
    +                el.progressive = needProgressive ?
    +                    Math.floor(elCount++ / frameDrawNum) : -1;
    +                if (needProgressive) {
    +                    el.stopAnimation(true);
    +                }
    +            }
    +        });
    +    }
    +
    +    // Blend configration
    +    var blendMode = seriesModel.get('blendMode') || null;
    +    if (__DEV__) {
    +        if (!env$1.canvasSupported && blendMode && blendMode !== 'source-over') {
    +            console.warn('Only canvas support blendMode');
    +        }
    +    }
    +    chartView.group.traverse(function (el) {
    +        // FIXME marker and other components
    +        if (!el.isGroup) {
    +            el.setStyle('blend', blendMode);
    +        }
    +    });
    +}
    +
    +/**
    + * @param {module:echarts/model/Series|module:echarts/model/Component} model
    + * @param {module:echarts/view/Component|module:echarts/view/Chart} view
    + */
    +function updateZ(model, view) {
    +    var z = model.get('z');
    +    var zlevel = model.get('zlevel');
    +    // Set z and zlevel
    +    view.group.traverse(function (el) {
    +        if (el.type !== 'group') {
    +            z != null && (el.z = z);
    +            zlevel != null && (el.zlevel = zlevel);
    +        }
    +    });
    +}
    +
    +function createExtensionAPI(ecInstance) {
    +    var coordSysMgr = ecInstance._coordSysMgr;
    +    return extend(new ExtensionAPI(ecInstance), {
    +        // Inject methods
    +        getCoordinateSystems: bind(
    +            coordSysMgr.getCoordinateSystems, coordSysMgr
    +        ),
    +        getComponentByElement: function (el) {
    +            while (el) {
    +                var modelInfo = el.__ecComponentInfo;
    +                if (modelInfo != null) {
    +                    return ecInstance._model.getComponent(modelInfo.mainType, modelInfo.index);
    +                }
    +                el = el.parent;
    +            }
    +        }
    +    });
    +}
    +
    +/**
    + * @type {Object} key: actionType.
    + * @inner
    + */
    +var actions = {};
    +
    +/**
    + * Map eventType to actionType
    + * @type {Object}
    + */
    +var eventActionMap = {};
    +
    +/**
    + * Data processor functions of each stage
    + * @type {Array.<Object.<string, Function>>}
    + * @inner
    + */
    +var dataProcessorFuncs = [];
    +
    +/**
    + * @type {Array.<Function>}
    + * @inner
    + */
    +var optionPreprocessorFuncs = [];
    +
    +/**
    + * @type {Array.<Function>}
    + * @inner
    + */
    +var postUpdateFuncs = [];
    +
    +/**
    + * Visual encoding functions of each stage
    + * @type {Array.<Object.<string, Function>>}
    + * @inner
    + */
    +var visualFuncs = [];
    +/**
    + * Theme storage
    + * @type {Object.<key, Object>}
    + */
    +var themeStorage = {};
    +/**
    + * Loading effects
    + */
    +var loadingEffects = {};
    +
    +var instances = {};
    +var connectedGroups = {};
    +
    +var idBase = new Date() - 0;
    +var groupIdBase = new Date() - 0;
    +var DOM_ATTRIBUTE_KEY = '_echarts_instance_';
    +
    +var mapDataStores = {};
    +
    +function enableConnect(chart) {
    +    var STATUS_PENDING = 0;
    +    var STATUS_UPDATING = 1;
    +    var STATUS_UPDATED = 2;
    +    var STATUS_KEY = '__connectUpdateStatus';
    +
    +    function updateConnectedChartsStatus(charts, status) {
    +        for (var i = 0; i < charts.length; i++) {
    +            var otherChart = charts[i];
    +            otherChart[STATUS_KEY] = status;
    +        }
    +    }
    +
    +    each$1(eventActionMap, function (actionType, eventType) {
    +        chart._messageCenter.on(eventType, function (event) {
    +            if (connectedGroups[chart.group] && chart[STATUS_KEY] !== STATUS_PENDING) {
    +                if (event && event.escapeConnect) {
    +                    return;
    +                }
    +
    +                var action = chart.makeActionFromEvent(event);
    +                var otherCharts = [];
    +
    +                each$1(instances, function (otherChart) {
    +                    if (otherChart !== chart && otherChart.group === chart.group) {
    +                        otherCharts.push(otherChart);
    +                    }
    +                });
    +
    +                updateConnectedChartsStatus(otherCharts, STATUS_PENDING);
    +                each(otherCharts, function (otherChart) {
    +                    if (otherChart[STATUS_KEY] !== STATUS_UPDATING) {
    +                        otherChart.dispatchAction(action);
    +                    }
    +                });
    +                updateConnectedChartsStatus(otherCharts, STATUS_UPDATED);
    +            }
    +        });
    +    });
    +}
    +
    +/**
    + * @param {HTMLElement} dom
    + * @param {Object} [theme]
    + * @param {Object} opts
    + * @param {number} [opts.devicePixelRatio] Use window.devicePixelRatio by default
    + * @param {string} [opts.renderer] Currently only 'canvas' is supported.
    + * @param {number} [opts.width] Use clientWidth of the input `dom` by default.
    + *                              Can be 'auto' (the same as null/undefined)
    + * @param {number} [opts.height] Use clientHeight of the input `dom` by default.
    + *                               Can be 'auto' (the same as null/undefined)
    + */
    +function init(dom, theme, opts) {
    +    if (__DEV__) {
    +        // Check version
    +        if ((version$1.replace('.', '') - 0) < (dependencies.zrender.replace('.', '') - 0)) {
    +            throw new Error(
    +                'zrender/src ' + version$1
    +                + ' is too old for ECharts ' + version
    +                + '. Current version need ZRender '
    +                + dependencies.zrender + '+'
    +            );
    +        }
    +
    +        if (!dom) {
    +            throw new Error('Initialize failed: invalid dom.');
    +        }
    +    }
    +
    +    var existInstance = getInstanceByDom(dom);
    +    if (existInstance) {
    +        if (__DEV__) {
    +            console.warn('There is a chart instance already initialized on the dom.');
    +        }
    +        return existInstance;
    +    }
    +
    +    if (__DEV__) {
    +        if (isDom(dom)
    +            && dom.nodeName.toUpperCase() !== 'CANVAS'
    +            && (
    +                (!dom.clientWidth && (!opts || opts.width == null))
    +                || (!dom.clientHeight && (!opts || opts.height == null))
    +            )
    +        ) {
    +            console.warn('Can\'t get dom width or height');
    +        }
    +    }
    +
    +    var chart = new ECharts(dom, theme, opts);
    +    chart.id = 'ec_' + idBase++;
    +    instances[chart.id] = chart;
    +
    +    if (dom.setAttribute) {
    +        dom.setAttribute(DOM_ATTRIBUTE_KEY, chart.id);
    +    }
    +    else {
    +        dom[DOM_ATTRIBUTE_KEY] = chart.id;
    +    }
    +
    +    enableConnect(chart);
    +
    +    return chart;
    +}
    +
    +/**
    + * @return {string|Array.<module:echarts~ECharts>} groupId
    + */
    +function connect(groupId) {
    +    // Is array of charts
    +    if (isArray(groupId)) {
    +        var charts = groupId;
    +        groupId = null;
    +        // If any chart has group
    +        each$1(charts, function (chart) {
    +            if (chart.group != null) {
    +                groupId = chart.group;
    +            }
    +        });
    +        groupId = groupId || ('g_' + groupIdBase++);
    +        each$1(charts, function (chart) {
    +            chart.group = groupId;
    +        });
    +    }
    +    connectedGroups[groupId] = true;
    +    return groupId;
    +}
    +
    +/**
    + * @DEPRECATED
    + * @return {string} groupId
    + */
    +function disConnect(groupId) {
    +    connectedGroups[groupId] = false;
    +}
    +
    +/**
    + * @return {string} groupId
    + */
    +var disconnect = disConnect;
    +
    +/**
    + * Dispose a chart instance
    + * @param  {module:echarts~ECharts|HTMLDomElement|string} chart
    + */
    +function dispose(chart) {
    +    if (typeof chart === 'string') {
    +        chart = instances[chart];
    +    }
    +    else if (!(chart instanceof ECharts)){
    +        // Try to treat as dom
    +        chart = getInstanceByDom(chart);
    +    }
    +    if ((chart instanceof ECharts) && !chart.isDisposed()) {
    +        chart.dispose();
    +    }
    +}
    +
    +/**
    + * @param  {HTMLElement} dom
    + * @return {echarts~ECharts}
    + */
    +function getInstanceByDom(dom) {
    +    var key;
    +    if (dom.getAttribute) {
    +        key = dom.getAttribute(DOM_ATTRIBUTE_KEY);
    +    }
    +    else {
    +        key = dom[DOM_ATTRIBUTE_KEY];
    +    }
    +    return instances[key];
    +}
    +
    +/**
    + * @param {string} key
    + * @return {echarts~ECharts}
    + */
    +function getInstanceById(key) {
    +    return instances[key];
    +}
    +
    +/**
    + * Register theme
    + */
    +function registerTheme(name, theme) {
    +    themeStorage[name] = theme;
    +}
    +
    +/**
    + * Register option preprocessor
    + * @param {Function} preprocessorFunc
    + */
    +function registerPreprocessor(preprocessorFunc) {
    +    optionPreprocessorFuncs.push(preprocessorFunc);
    +}
    +
    +/**
    + * @param {number} [priority=1000]
    + * @param {Function} processorFunc
    + */
    +function registerProcessor(priority, processorFunc) {
    +    if (typeof priority === 'function') {
    +        processorFunc = priority;
    +        priority = PRIORITY_PROCESSOR_FILTER;
    +    }
    +    if (__DEV__) {
    +        if (isNaN(priority)) {
    +            throw new Error('Unkown processor priority');
    +        }
    +    }
    +    dataProcessorFuncs.push({
    +        prio: priority,
    +        func: processorFunc
    +    });
    +}
    +
    +/**
    + * Register postUpdater
    + * @param {Function} postUpdateFunc
    + */
    +function registerPostUpdate(postUpdateFunc) {
    +    postUpdateFuncs.push(postUpdateFunc);
    +}
    +
    +/**
    + * Usage:
    + * registerAction('someAction', 'someEvent', function () { ... });
    + * registerAction('someAction', function () { ... });
    + * registerAction(
    + *     {type: 'someAction', event: 'someEvent', update: 'updateView'},
    + *     function () { ... }
    + * );
    + *
    + * @param {(string|Object)} actionInfo
    + * @param {string} actionInfo.type
    + * @param {string} [actionInfo.event]
    + * @param {string} [actionInfo.update]
    + * @param {string} [eventName]
    + * @param {Function} action
    + */
    +function registerAction(actionInfo, eventName, action) {
    +    if (typeof eventName === 'function') {
    +        action = eventName;
    +        eventName = '';
    +    }
    +    var actionType = isObject(actionInfo)
    +        ? actionInfo.type
    +        : ([actionInfo, actionInfo = {
    +            event: eventName
    +        }][0]);
    +
    +    // Event name is all lowercase
    +    actionInfo.event = (actionInfo.event || actionType).toLowerCase();
    +    eventName = actionInfo.event;
    +
    +    // Validate action type and event name.
    +    assert(ACTION_REG.test(actionType) && ACTION_REG.test(eventName));
    +
    +    if (!actions[actionType]) {
    +        actions[actionType] = {action: action, actionInfo: actionInfo};
    +    }
    +    eventActionMap[eventName] = actionType;
    +}
    +
    +/**
    + * @param {string} type
    + * @param {*} CoordinateSystem
    + */
    +function registerCoordinateSystem(type, CoordinateSystem$$1) {
    +    CoordinateSystemManager.register(type, CoordinateSystem$$1);
    +}
    +
    +/**
    + * Get dimensions of specified coordinate system.
    + * @param {string} type
    + * @return {Array.<string|Object>}
    + */
    +function getCoordinateSystemDimensions(type) {
    +    var coordSysCreator = CoordinateSystemManager.get(type);
    +    if (coordSysCreator) {
    +        return coordSysCreator.getDimensionsInfo
    +                ? coordSysCreator.getDimensionsInfo()
    +                : coordSysCreator.dimensions.slice();
    +    }
    +}
    +
    +/**
    + * Layout is a special stage of visual encoding
    + * Most visual encoding like color are common for different chart
    + * But each chart has it's own layout algorithm
    + *
    + * @param {number} [priority=1000]
    + * @param {Function} layoutFunc
    + */
    +function registerLayout(priority, layoutFunc) {
    +    if (typeof priority === 'function') {
    +        layoutFunc = priority;
    +        priority = PRIORITY_VISUAL_LAYOUT;
    +    }
    +    if (__DEV__) {
    +        if (isNaN(priority)) {
    +            throw new Error('Unkown layout priority');
    +        }
    +    }
    +    visualFuncs.push({
    +        prio: priority,
    +        func: layoutFunc,
    +        isLayout: true
    +    });
    +}
    +
    +/**
    + * @param {number} [priority=3000]
    + * @param {Function} visualFunc
    + */
    +function registerVisual(priority, visualFunc) {
    +    if (typeof priority === 'function') {
    +        visualFunc = priority;
    +        priority = PRIORITY_VISUAL_CHART;
    +    }
    +    if (__DEV__) {
    +        if (isNaN(priority)) {
    +            throw new Error('Unkown visual priority');
    +        }
    +    }
    +    visualFuncs.push({
    +        prio: priority,
    +        func: visualFunc
    +    });
    +}
    +
    +/**
    + * @param {string} name
    + */
    +function registerLoading(name, loadingFx) {
    +    loadingEffects[name] = loadingFx;
    +}
    +
    +/**
    + * @param {Object} opts
    + * @param {string} [superClass]
    + */
    +function extendComponentModel(opts/*, superClass*/) {
    +    // var Clazz = ComponentModel;
    +    // if (superClass) {
    +    //     var classType = parseClassType(superClass);
    +    //     Clazz = ComponentModel.getClass(classType.main, classType.sub, true);
    +    // }
    +    return ComponentModel.extend(opts);
    +}
    +
    +/**
    + * @param {Object} opts
    + * @param {string} [superClass]
    + */
    +function extendComponentView(opts/*, superClass*/) {
    +    // var Clazz = ComponentView;
    +    // if (superClass) {
    +    //     var classType = parseClassType(superClass);
    +    //     Clazz = ComponentView.getClass(classType.main, classType.sub, true);
    +    // }
    +    return Component.extend(opts);
    +}
    +
    +/**
    + * @param {Object} opts
    + * @param {string} [superClass]
    + */
    +function extendSeriesModel(opts/*, superClass*/) {
    +    // var Clazz = SeriesModel;
    +    // if (superClass) {
    +    //     superClass = 'series.' + superClass.replace('series.', '');
    +    //     var classType = parseClassType(superClass);
    +    //     Clazz = ComponentModel.getClass(classType.main, classType.sub, true);
    +    // }
    +    return SeriesModel.extend(opts);
    +}
    +
    +/**
    + * @param {Object} opts
    + * @param {string} [superClass]
    + */
    +function extendChartView(opts/*, superClass*/) {
    +    // var Clazz = ChartView;
    +    // if (superClass) {
    +    //     superClass = superClass.replace('series.', '');
    +    //     var classType = parseClassType(superClass);
    +    //     Clazz = ChartView.getClass(classType.main, true);
    +    // }
    +    return Chart.extend(opts);
    +}
    +
    +/**
    + * ZRender need a canvas context to do measureText.
    + * But in node environment canvas may be created by node-canvas.
    + * So we need to specify how to create a canvas instead of using document.createElement('canvas')
    + *
    + * Be careful of using it in the browser.
    + *
    + * @param {Function} creator
    + * @example
    + *     var Canvas = require('canvas');
    + *     var echarts = require('echarts');
    + *     echarts.setCanvasCreator(function () {
    + *         // Small size is enough.
    + *         return new Canvas(32, 32);
    + *     });
    + */
    +function setCanvasCreator(creator) {
    +    $override('createCanvas', creator);
    +}
    +
    +/**
    + * @param {string} mapName
    + * @param {Object|string} geoJson
    + * @param {Object} [specialAreas]
    + *
    + * @example
    + *     $.get('USA.json', function (geoJson) {
    + *         echarts.registerMap('USA', geoJson);
    + *         // Or
    + *         echarts.registerMap('USA', {
    + *             geoJson: geoJson,
    + *             specialAreas: {}
    + *         })
    + *     });
    + */
    +function registerMap(mapName, geoJson, specialAreas) {
    +    if (geoJson.geoJson && !geoJson.features) {
    +        specialAreas = geoJson.specialAreas;
    +        geoJson = geoJson.geoJson;
    +    }
    +    if (typeof geoJson === 'string') {
    +        geoJson = (typeof JSON !== 'undefined' && JSON.parse)
    +            ? JSON.parse(geoJson) : (new Function('return (' + geoJson + ');'))();
    +    }
    +    mapDataStores[mapName] = {
    +        geoJson: geoJson,
    +        specialAreas: specialAreas
    +    };
    +}
    +
    +/**
    + * @param {string} mapName
    + * @return {Object}
    + */
    +function getMap(mapName) {
    +    return mapDataStores[mapName];
    +}
    +
    +registerVisual(PRIORITY_VISUAL_GLOBAL, seriesColor);
    +registerPreprocessor(backwardCompat);
    +registerLoading('default', loadingDefault);
    +
    +// Default actions
    +
    +registerAction({
    +    type: 'highlight',
    +    event: 'highlight',
    +    update: 'highlight'
    +}, noop);
    +
    +registerAction({
    +    type: 'downplay',
    +    event: 'downplay',
    +    update: 'downplay'
    +}, noop);
    +
    +
    +// For backward compatibility, where the namespace `dataTool` will
    +// be mounted on `echarts` is the extension `dataTool` is imported.
    +var dataTool = {};
    +
    +function defaultKeyGetter(item) {
    +    return item;
    +}
    +
    +/**
    + * @param {Array} oldArr
    + * @param {Array} newArr
    + * @param {Function} oldKeyGetter
    + * @param {Function} newKeyGetter
    + * @param {Object} [context] Can be visited by this.context in callback.
    + */
    +function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter, context) {
    +    this._old = oldArr;
    +    this._new = newArr;
    +
    +    this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;
    +    this._newKeyGetter = newKeyGetter || defaultKeyGetter;
    +
    +    this.context = context;
    +}
    +
    +DataDiffer.prototype = {
    +
    +    constructor: DataDiffer,
    +
    +    /**
    +     * Callback function when add a data
    +     */
    +    add: function (func) {
    +        this._add = func;
    +        return this;
    +    },
    +
    +    /**
    +     * Callback function when update a data
    +     */
    +    update: function (func) {
    +        this._update = func;
    +        return this;
    +    },
    +
    +    /**
    +     * Callback function when remove a data
    +     */
    +    remove: function (func) {
    +        this._remove = func;
    +        return this;
    +    },
    +
    +    execute: function () {
    +        var oldArr = this._old;
    +        var newArr = this._new;
    +
    +        var oldDataIndexMap = {};
    +        var newDataIndexMap = {};
    +        var oldDataKeyArr = [];
    +        var newDataKeyArr = [];
    +        var i;
    +
    +        initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter', this);
    +        initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter', this);
    +
    +        // Travel by inverted order to make sure order consistency
    +        // when duplicate keys exists (consider newDataIndex.pop() below).
    +        // For performance consideration, these code below do not look neat.
    +        for (i = 0; i < oldArr.length; i++) {
    +            var key = oldDataKeyArr[i];
    +            var idx = newDataIndexMap[key];
    +
    +            // idx can never be empty array here. see 'set null' logic below.
    +            if (idx != null) {
    +                // Consider there is duplicate key (for example, use dataItem.name as key).
    +                // We should make sure every item in newArr and oldArr can be visited.
    +                var len = idx.length;
    +                if (len) {
    +                    len === 1 && (newDataIndexMap[key] = null);
    +                    idx = idx.unshift();
    +                }
    +                else {
    +                    newDataIndexMap[key] = null;
    +                }
    +                this._update && this._update(idx, i);
    +            }
    +            else {
    +                this._remove && this._remove(i);
    +            }
    +        }
    +
    +        for (var i = 0; i < newDataKeyArr.length; i++) {
    +            var key = newDataKeyArr[i];
    +            if (newDataIndexMap.hasOwnProperty(key)) {
    +                var idx = newDataIndexMap[key];
    +                if (idx == null) {
    +                    continue;
    +                }
    +                // idx can never be empty array here. see 'set null' logic above.
    +                if (!idx.length) {
    +                    this._add && this._add(idx);
    +                }
    +                else {
    +                    for (var j = 0, len = idx.length; j < len; j++) {
    +                        this._add && this._add(idx[j]);
    +                    }
    +                }
    +            }
    +        }
    +    }
    +};
    +
    +function initIndexMap(arr, map, keyArr, keyGetterName, dataDiffer) {
    +    for (var i = 0; i < arr.length; i++) {
    +        // Add prefix to avoid conflict with Object.prototype.
    +        var key = '_ec_' + dataDiffer[keyGetterName](arr[i], i);
    +        var existence = map[key];
    +        if (existence == null) {
    +            keyArr.push(key);
    +            map[key] = i;
    +        }
    +        else {
    +            if (!existence.length) {
    +                map[key] = existence = [existence];
    +            }
    +            existence.push(i);
    +        }
    +    }
    +}
    +
    +/**
    + * List for data storage
    + * @module echarts/data/List
    + */
    +
    +var isObject$4 = isObject;
    +
    +var UNDEFINED = 'undefined';
    +var globalObj = typeof window === UNDEFINED ? global : window;
    +
    +var dataCtors = {
    +    'float': typeof globalObj.Float64Array === UNDEFINED
    +        ? Array : globalObj.Float64Array,
    +    'int': typeof globalObj.Int32Array === UNDEFINED
    +        ? Array : globalObj.Int32Array,
    +    // Ordinal data type can be string or int
    +    'ordinal': Array,
    +    'number': Array,
    +    'time': Array
    +};
    +
    +var TRANSFERABLE_PROPERTIES = [
    +    'stackedOn', 'hasItemOption', '_nameList', '_idList', '_rawData'
    +];
    +
    +function transferProperties(a, b) {
    +    each$1(TRANSFERABLE_PROPERTIES.concat(b.__wrappedMethods || []), function (propName) {
    +        if (b.hasOwnProperty(propName)) {
    +            a[propName] = b[propName];
    +        }
    +    });
    +
    +    a.__wrappedMethods = b.__wrappedMethods;
    +}
    +
    +function DefaultDataProvider(dataArray) {
    +    this._array = dataArray || [];
    +}
    +
    +DefaultDataProvider.prototype.pure = false;
    +
    +DefaultDataProvider.prototype.count = function () {
    +    return this._array.length;
    +};
    +DefaultDataProvider.prototype.getItem = function (idx) {
    +    return this._array[idx];
    +};
    +
    +/**
    + * @constructor
    + * @alias module:echarts/data/List
    + *
    + * @param {Array.<string|Object>} dimensions
    + *      For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].
    + *      Dimensions should be concrete names like x, y, z, lng, lat, angle, radius
    + * @param {module:echarts/model/Model} hostModel
    + */
    +var List = function (dimensions, hostModel) {
    +
    +    dimensions = dimensions || ['x', 'y'];
    +
    +    var dimensionInfos = {};
    +    var dimensionNames = [];
    +    for (var i = 0; i < dimensions.length; i++) {
    +        var dimensionName;
    +        var dimensionInfo = {};
    +        if (typeof dimensions[i] === 'string') {
    +            dimensionName = dimensions[i];
    +            dimensionInfo = {
    +                name: dimensionName,
    +                coordDim: dimensionName,
    +                coordDimIndex: 0,
    +                stackable: false,
    +                // Type can be 'float', 'int', 'number'
    +                // Default is number, Precision of float may not enough
    +                type: 'number'
    +            };
    +        }
    +        else {
    +            dimensionInfo = dimensions[i];
    +            dimensionName = dimensionInfo.name;
    +            dimensionInfo.type = dimensionInfo.type || 'number';
    +            if (!dimensionInfo.coordDim) {
    +                dimensionInfo.coordDim = dimensionName;
    +                dimensionInfo.coordDimIndex = 0;
    +            }
    +        }
    +        dimensionInfo.otherDims = dimensionInfo.otherDims || {};
    +        dimensionNames.push(dimensionName);
    +        dimensionInfos[dimensionName] = dimensionInfo;
    +    }
    +
    +    /**
    +     * @readOnly
    +     * @type {Array.<string>}
    +     */
    +    this.dimensions = dimensionNames;
    +
    +    /**
    +     * Infomation of each data dimension, like data type.
    +     * @type {Object}
    +     */
    +    this._dimensionInfos = dimensionInfos;
    +
    +    /**
    +     * @type {module:echarts/model/Model}
    +     */
    +    this.hostModel = hostModel;
    +
    +    /**
    +     * @type {module:echarts/model/Model}
    +     */
    +    this.dataType;
    +
    +    /**
    +     * Indices stores the indices of data subset after filtered.
    +     * This data subset will be used in chart.
    +     * @type {Array.<number>}
    +     * @readOnly
    +     */
    +    this.indices = [];
    +
    +    /**
    +     * Data storage
    +     * @type {Object.<key, TypedArray|Array>}
    +     * @private
    +     */
    +    this._storage = {};
    +
    +    /**
    +     * @type {Array.<string>}
    +     */
    +    this._nameList = [];
    +    /**
    +     * @type {Array.<string>}
    +     */
    +    this._idList = [];
    +
    +    /**
    +     * Models of data option is stored sparse for optimizing memory cost
    +     * @type {Array.<module:echarts/model/Model>}
    +     * @private
    +     */
    +    this._optionModels = [];
    +
    +    /**
    +     * @param {module:echarts/data/List}
    +     */
    +    this.stackedOn = null;
    +
    +    /**
    +     * Global visual properties after visual coding
    +     * @type {Object}
    +     * @private
    +     */
    +    this._visual = {};
    +
    +    /**
    +     * Globel layout properties.
    +     * @type {Object}
    +     * @private
    +     */
    +    this._layout = {};
    +
    +    /**
    +     * Item visual properties after visual coding
    +     * @type {Array.<Object>}
    +     * @private
    +     */
    +    this._itemVisuals = [];
    +
    +    /**
    +     * Item layout properties after layout
    +     * @type {Array.<Object>}
    +     * @private
    +     */
    +    this._itemLayouts = [];
    +
    +    /**
    +     * Graphic elemnents
    +     * @type {Array.<module:zrender/Element>}
    +     * @private
    +     */
    +    this._graphicEls = [];
    +
    +    /**
    +     * @type {Array.<Array|Object>}
    +     * @private
    +     */
    +    this._rawData;
    +
    +    /**
    +     * @type {Object}
    +     * @private
    +     */
    +    this._extent;
    +};
    +
    +var listProto = List.prototype;
    +
    +listProto.type = 'list';
    +
    +/**
    + * If each data item has it's own option
    + * @type {boolean}
    + */
    +listProto.hasItemOption = true;
    +
    +/**
    + * Get dimension name
    + * @param {string|number} dim
    + *        Dimension can be concrete names like x, y, z, lng, lat, angle, radius
    + *        Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
    + * @return {string} Concrete dim name.
    + */
    +listProto.getDimension = function (dim) {
    +    if (!isNaN(dim)) {
    +        dim = this.dimensions[dim] || dim;
    +    }
    +    return dim;
    +};
    +
    +/**
    + * Get type and stackable info of particular dimension
    + * @param {string|number} dim
    + *        Dimension can be concrete names like x, y, z, lng, lat, angle, radius
    + *        Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
    + */
    +listProto.getDimensionInfo = function (dim) {
    +    return clone(this._dimensionInfos[this.getDimension(dim)]);
    +};
    +
    +/**
    + * Initialize from data
    + * @param {Array.<Object|number|Array>} data
    + * @param {Array.<string>} [nameList]
    + * @param {Function} [dimValueGetter] (dataItem, dimName, dataIndex, dimIndex) => number
    + */
    +listProto.initData = function (data, nameList, dimValueGetter) {
    +    data = data || [];
    +
    +    var isDataArray = isArray(data);
    +    if (isDataArray) {
    +        data = new DefaultDataProvider(data);
    +    }
    +    if (__DEV__) {
    +        if (!isDataArray && (typeof data.getItem != 'function' || typeof data.count != 'function')) {
    +            throw new Error('Inavlid data provider.');
    +        }
    +    }
    +
    +    this._rawData = data;
    +
    +    // Clear
    +    var storage = this._storage = {};
    +    var indices = this.indices = [];
    +
    +    var dimensions = this.dimensions;
    +    var dimensionInfoMap = this._dimensionInfos;
    +
    +    var size = data.count();
    +
    +    var idList = [];
    +    var nameRepeatCount = {};
    +    var nameDimIdx;
    +
    +    nameList = nameList || [];
    +
    +    // Init storage
    +    for (var i = 0; i < dimensions.length; i++) {
    +        var dimInfo = dimensionInfoMap[dimensions[i]];
    +        dimInfo.otherDims.itemName === 0 && (nameDimIdx = i);
    +        var DataCtor = dataCtors[dimInfo.type];
    +        storage[dimensions[i]] = new DataCtor(size);
    +    }
    +
    +    var self = this;
    +    if (!dimValueGetter) {
    +        self.hasItemOption = false;
    +    }
    +    // Default dim value getter
    +    dimValueGetter = dimValueGetter || function (dataItem, dimName, dataIndex, dimIndex) {
    +        var value = getDataItemValue(dataItem);
    +        // If any dataItem is like { value: 10 }
    +        if (isDataItemOption(dataItem)) {
    +            self.hasItemOption = true;
    +        }
    +        return converDataValue(
    +            (value instanceof Array)
    +                ? value[dimIndex]
    +                // If value is a single number or something else not array.
    +                : value,
    +            dimensionInfoMap[dimName]
    +        );
    +    };
    +
    +    for (var i = 0; i < size; i++) {
    +        // NOTICE: Try not to write things into dataItem
    +        var dataItem = data.getItem(i);
    +        // Each data item is value
    +        // [1, 2]
    +        // 2
    +        // Bar chart, line chart which uses category axis
    +        // only gives the 'y' value. 'x' value is the indices of cateogry
    +        // Use a tempValue to normalize the value to be a (x, y) value
    +
    +        // Store the data by dimensions
    +        for (var k = 0; k < dimensions.length; k++) {
    +            var dim = dimensions[k];
    +            var dimStorage = storage[dim];
    +            // PENDING NULL is empty or zero
    +            dimStorage[i] = dimValueGetter(dataItem, dim, i, k);
    +        }
    +
    +        indices.push(i);
    +    }
    +
    +    // Use the name in option and create id
    +    for (var i = 0; i < size; i++) {
    +        var dataItem = data.getItem(i);
    +        if (!nameList[i] && dataItem) {
    +            if (dataItem.name != null) {
    +                nameList[i] = dataItem.name;
    +            }
    +            else if (nameDimIdx != null) {
    +                nameList[i] = storage[dimensions[nameDimIdx]][i];
    +            }
    +        }
    +        var name = nameList[i] || '';
    +        // Try using the id in option
    +        var id = dataItem && dataItem.id;
    +
    +        if (!id && name) {
    +            // Use name as id and add counter to avoid same name
    +            nameRepeatCount[name] = nameRepeatCount[name] || 0;
    +            id = name;
    +            if (nameRepeatCount[name] > 0) {
    +                id += '__ec__' + nameRepeatCount[name];
    +            }
    +            nameRepeatCount[name]++;
    +        }
    +        id && (idList[i] = id);
    +    }
    +
    +    this._nameList = nameList;
    +    this._idList = idList;
    +};
    +
    +/**
    + * @return {number}
    + */
    +listProto.count = function () {
    +    return this.indices.length;
    +};
    +
    +/**
    + * Get value. Return NaN if idx is out of range.
    + * @param {string} dim Dim must be concrete name.
    + * @param {number} idx
    + * @param {boolean} stack
    + * @return {number}
    + */
    +listProto.get = function (dim, idx, stack) {
    +    var storage = this._storage;
    +    var dataIndex = this.indices[idx];
    +
    +    // If value not exists
    +    if (dataIndex == null || !storage[dim]) {
    +        return NaN;
    +    }
    +
    +    var value = storage[dim][dataIndex];
    +    // FIXME ordinal data type is not stackable
    +    if (stack) {
    +        var dimensionInfo = this._dimensionInfos[dim];
    +        if (dimensionInfo && dimensionInfo.stackable) {
    +            var stackedOn = this.stackedOn;
    +            while (stackedOn) {
    +                // Get no stacked data of stacked on
    +                var stackedValue = stackedOn.get(dim, idx);
    +                // Considering positive stack, negative stack and empty data
    +                if ((value >= 0 && stackedValue > 0)  // Positive stack
    +                    || (value <= 0 && stackedValue < 0) // Negative stack
    +                ) {
    +                    value += stackedValue;
    +                }
    +                stackedOn = stackedOn.stackedOn;
    +            }
    +        }
    +    }
    +    return value;
    +};
    +
    +/**
    + * Get value for multi dimensions.
    + * @param {Array.<string>} [dimensions] If ignored, using all dimensions.
    + * @param {number} idx
    + * @param {boolean} stack
    + * @return {number}
    + */
    +listProto.getValues = function (dimensions, idx, stack) {
    +    var values = [];
    +
    +    if (!isArray(dimensions)) {
    +        stack = idx;
    +        idx = dimensions;
    +        dimensions = this.dimensions;
    +    }
    +
    +    for (var i = 0, len = dimensions.length; i < len; i++) {
    +        values.push(this.get(dimensions[i], idx, stack));
    +    }
    +
    +    return values;
    +};
    +
    +/**
    + * If value is NaN. Inlcuding '-'
    + * @param {string} dim
    + * @param {number} idx
    + * @return {number}
    + */
    +listProto.hasValue = function (idx) {
    +    var dimensions = this.dimensions;
    +    var dimensionInfos = this._dimensionInfos;
    +    for (var i = 0, len = dimensions.length; i < len; i++) {
    +        if (
    +            // Ordinal type can be string or number
    +            dimensionInfos[dimensions[i]].type !== 'ordinal'
    +            && isNaN(this.get(dimensions[i], idx))
    +        ) {
    +            return false;
    +        }
    +    }
    +    return true;
    +};
    +
    +/**
    + * Get extent of data in one dimension
    + * @param {string} dim
    + * @param {boolean} stack
    + * @param {Function} filter
    + */
    +listProto.getDataExtent = function (dim, stack, filter$$1) {
    +    dim = this.getDimension(dim);
    +    var dimData = this._storage[dim];
    +    var dimInfo = this.getDimensionInfo(dim);
    +    stack = (dimInfo && dimInfo.stackable) && stack;
    +    var dimExtent = (this._extent || (this._extent = {}))[dim + (!!stack)];
    +    var value;
    +    if (dimExtent) {
    +        return dimExtent;
    +    }
    +    // var dimInfo = this._dimensionInfos[dim];
    +    if (dimData) {
    +        var min = Infinity;
    +        var max = -Infinity;
    +        // var isOrdinal = dimInfo.type === 'ordinal';
    +        for (var i = 0, len = this.count(); i < len; i++) {
    +            value = this.get(dim, i, stack);
    +            // FIXME
    +            // if (isOrdinal && typeof value === 'string') {
    +            //     value = zrUtil.indexOf(dimData, value);
    +            // }
    +            if (!filter$$1 || filter$$1(value, dim, i)) {
    +                value < min && (min = value);
    +                value > max && (max = value);
    +            }
    +        }
    +        return (this._extent[dim + !!stack] = [min, max]);
    +    }
    +    else {
    +        return [Infinity, -Infinity];
    +    }
    +};
    +
    +/**
    + * Get sum of data in one dimension
    + * @param {string} dim
    + * @param {boolean} stack
    + */
    +listProto.getSum = function (dim, stack) {
    +    var dimData = this._storage[dim];
    +    var sum = 0;
    +    if (dimData) {
    +        for (var i = 0, len = this.count(); i < len; i++) {
    +            var value = this.get(dim, i, stack);
    +            if (!isNaN(value)) {
    +                sum += value;
    +            }
    +        }
    +    }
    +    return sum;
    +};
    +
    +/**
    + * Retreive the index with given value
    + * @param {number} idx
    + * @param {number} value
    + * @return {number}
    + */
    +// FIXME Precision of float value
    +listProto.indexOf = function (dim, value) {
    +    var storage = this._storage;
    +    var dimData = storage[dim];
    +    var indices = this.indices;
    +
    +    if (dimData) {
    +        for (var i = 0, len = indices.length; i < len; i++) {
    +            var rawIndex = indices[i];
    +            if (dimData[rawIndex] === value) {
    +                return i;
    +            }
    +        }
    +    }
    +    return -1;
    +};
    +
    +/**
    + * Retreive the index with given name
    + * @param {number} idx
    + * @param {number} name
    + * @return {number}
    + */
    +listProto.indexOfName = function (name) {
    +    var indices = this.indices;
    +    var nameList = this._nameList;
    +
    +    for (var i = 0, len = indices.length; i < len; i++) {
    +        var rawIndex = indices[i];
    +        if (nameList[rawIndex] === name) {
    +            return i;
    +        }
    +    }
    +
    +    return -1;
    +};
    +
    +/**
    + * Retreive the index with given raw data index
    + * @param {number} idx
    + * @param {number} name
    + * @return {number}
    + */
    +listProto.indexOfRawIndex = function (rawIndex) {
    +    // Indices are ascending
    +    var indices = this.indices;
    +
    +    // If rawIndex === dataIndex
    +    var rawDataIndex = indices[rawIndex];
    +    if (rawDataIndex != null && rawDataIndex === rawIndex) {
    +        return rawIndex;
    +    }
    +
    +    var left = 0;
    +    var right = indices.length - 1;
    +    while (left <= right) {
    +        var mid = (left + right) / 2 | 0;
    +        if (indices[mid] < rawIndex) {
    +            left = mid + 1;
    +        }
    +        else if (indices[mid] > rawIndex) {
    +            right = mid - 1;
    +        }
    +        else {
    +            return mid;
    +        }
    +    }
    +    return -1;
    +};
    +
    +/**
    + * Retreive the index of nearest value
    + * @param {string} dim
    + * @param {number} value
    + * @param {boolean} stack If given value is after stacked
    + * @param {number} [maxDistance=Infinity]
    + * @return {Array.<number>} Considere multiple points has the same value.
    + */
    +listProto.indicesOfNearest = function (dim, value, stack, maxDistance) {
    +    var storage = this._storage;
    +    var dimData = storage[dim];
    +    var nearestIndices = [];
    +
    +    if (!dimData) {
    +        return nearestIndices;
    +    }
    +
    +    if (maxDistance == null) {
    +        maxDistance = Infinity;
    +    }
    +
    +    var minDist = Number.MAX_VALUE;
    +    var minDiff = -1;
    +    for (var i = 0, len = this.count(); i < len; i++) {
    +        var diff = value - this.get(dim, i, stack);
    +        var dist = Math.abs(diff);
    +        if (diff <= maxDistance && dist <= minDist) {
    +            // For the case of two data are same on xAxis, which has sequence data.
    +            // Show the nearest index
    +            // https://github.com/ecomfe/echarts/issues/2869
    +            if (dist < minDist || (diff >= 0 && minDiff < 0)) {
    +                minDist = dist;
    +                minDiff = diff;
    +                nearestIndices.length = 0;
    +            }
    +            nearestIndices.push(i);
    +        }
    +    }
    +    return nearestIndices;
    +};
    +
    +/**
    + * Get raw data index
    + * @param {number} idx
    + * @return {number}
    + */
    +listProto.getRawIndex = function (idx) {
    +    var rawIdx = this.indices[idx];
    +    return rawIdx == null ? -1 : rawIdx;
    +};
    +
    +/**
    + * Get raw data item
    + * @param {number} idx
    + * @return {number}
    + */
    +listProto.getRawDataItem = function (idx) {
    +    return this._rawData.getItem(this.getRawIndex(idx));
    +};
    +
    +/**
    + * @param {number} idx
    + * @param {boolean} [notDefaultIdx=false]
    + * @return {string}
    + */
    +listProto.getName = function (idx) {
    +    return this._nameList[this.indices[idx]] || '';
    +};
    +
    +/**
    + * @param {number} idx
    + * @param {boolean} [notDefaultIdx=false]
    + * @return {string}
    + */
    +listProto.getId = function (idx) {
    +    return this._idList[this.indices[idx]] || (this.getRawIndex(idx) + '');
    +};
    +
    +
    +function normalizeDimensions(dimensions) {
    +    if (!isArray(dimensions)) {
    +        dimensions = [dimensions];
    +    }
    +    return dimensions;
    +}
    +
    +/**
    + * Data iteration
    + * @param {string|Array.<string>}
    + * @param {Function} cb
    + * @param {boolean} [stack=false]
    + * @param {*} [context=this]
    + *
    + * @example
    + *  list.each('x', function (x, idx) {});
    + *  list.each(['x', 'y'], function (x, y, idx) {});
    + *  list.each(function (idx) {})
    + */
    +listProto.each = function (dims, cb, stack, context) {
    +    if (typeof dims === 'function') {
    +        context = stack;
    +        stack = cb;
    +        cb = dims;
    +        dims = [];
    +    }
    +
    +    dims = map(normalizeDimensions(dims), this.getDimension, this);
    +
    +    var value = [];
    +    var dimSize = dims.length;
    +    var indices = this.indices;
    +
    +    context = context || this;
    +
    +    for (var i = 0; i < indices.length; i++) {
    +        // Simple optimization
    +        switch (dimSize) {
    +            case 0:
    +                cb.call(context, i);
    +                break;
    +            case 1:
    +                cb.call(context, this.get(dims[0], i, stack), i);
    +                break;
    +            case 2:
    +                cb.call(context, this.get(dims[0], i, stack), this.get(dims[1], i, stack), i);
    +                break;
    +            default:
    +                for (var k = 0; k < dimSize; k++) {
    +                    value[k] = this.get(dims[k], i, stack);
    +                }
    +                // Index
    +                value[k] = i;
    +                cb.apply(context, value);
    +        }
    +    }
    +};
    +
    +/**
    + * Data filter
    + * @param {string|Array.<string>}
    + * @param {Function} cb
    + * @param {boolean} [stack=false]
    + * @param {*} [context=this]
    + */
    +listProto.filterSelf = function (dimensions, cb, stack, context) {
    +    if (typeof dimensions === 'function') {
    +        context = stack;
    +        stack = cb;
    +        cb = dimensions;
    +        dimensions = [];
    +    }
    +
    +    dimensions = map(
    +        normalizeDimensions(dimensions), this.getDimension, this
    +    );
    +
    +    var newIndices = [];
    +    var value = [];
    +    var dimSize = dimensions.length;
    +    var indices = this.indices;
    +
    +    context = context || this;
    +
    +    for (var i = 0; i < indices.length; i++) {
    +        var keep;
    +        // Simple optimization
    +        if (!dimSize) {
    +            keep = cb.call(context, i);
    +        }
    +        else if (dimSize === 1) {
    +            keep = cb.call(
    +                context, this.get(dimensions[0], i, stack), i
    +            );
    +        }
    +        else {
    +            for (var k = 0; k < dimSize; k++) {
    +                value[k] = this.get(dimensions[k], i, stack);
    +            }
    +            value[k] = i;
    +            keep = cb.apply(context, value);
    +        }
    +        if (keep) {
    +            newIndices.push(indices[i]);
    +        }
    +    }
    +
    +    this.indices = newIndices;
    +
    +    // Reset data extent
    +    this._extent = {};
    +
    +    return this;
    +};
    +
    +/**
    + * Data mapping to a plain array
    + * @param {string|Array.<string>} [dimensions]
    + * @param {Function} cb
    + * @param {boolean} [stack=false]
    + * @param {*} [context=this]
    + * @return {Array}
    + */
    +listProto.mapArray = function (dimensions, cb, stack, context) {
    +    if (typeof dimensions === 'function') {
    +        context = stack;
    +        stack = cb;
    +        cb = dimensions;
    +        dimensions = [];
    +    }
    +
    +    var result = [];
    +    this.each(dimensions, function () {
    +        result.push(cb && cb.apply(this, arguments));
    +    }, stack, context);
    +    return result;
    +};
    +
    +function cloneListForMapAndSample(original, excludeDimensions) {
    +    var allDimensions = original.dimensions;
    +    var list = new List(
    +        map(allDimensions, original.getDimensionInfo, original),
    +        original.hostModel
    +    );
    +    // FIXME If needs stackedOn, value may already been stacked
    +    transferProperties(list, original);
    +
    +    var storage = list._storage = {};
    +    var originalStorage = original._storage;
    +    // Init storage
    +    for (var i = 0; i < allDimensions.length; i++) {
    +        var dim = allDimensions[i];
    +        var dimStore = originalStorage[dim];
    +        if (indexOf(excludeDimensions, dim) >= 0) {
    +            storage[dim] = new dimStore.constructor(
    +                originalStorage[dim].length
    +            );
    +        }
    +        else {
    +            // Direct reference for other dimensions
    +            storage[dim] = originalStorage[dim];
    +        }
    +    }
    +    return list;
    +}
    +
    +/**
    + * Data mapping to a new List with given dimensions
    + * @param {string|Array.<string>} dimensions
    + * @param {Function} cb
    + * @param {boolean} [stack=false]
    + * @param {*} [context=this]
    + * @return {Array}
    + */
    +listProto.map = function (dimensions, cb, stack, context) {
    +    dimensions = map(
    +        normalizeDimensions(dimensions), this.getDimension, this
    +    );
    +
    +    var list = cloneListForMapAndSample(this, dimensions);
    +    // Following properties are all immutable.
    +    // So we can reference to the same value
    +    var indices = list.indices = this.indices;
    +
    +    var storage = list._storage;
    +
    +    var tmpRetValue = [];
    +    this.each(dimensions, function () {
    +        var idx = arguments[arguments.length - 1];
    +        var retValue = cb && cb.apply(this, arguments);
    +        if (retValue != null) {
    +            // a number
    +            if (typeof retValue === 'number') {
    +                tmpRetValue[0] = retValue;
    +                retValue = tmpRetValue;
    +            }
    +            for (var i = 0; i < retValue.length; i++) {
    +                var dim = dimensions[i];
    +                var dimStore = storage[dim];
    +                var rawIdx = indices[idx];
    +                if (dimStore) {
    +                    dimStore[rawIdx] = retValue[i];
    +                }
    +            }
    +        }
    +    }, stack, context);
    +
    +    return list;
    +};
    +
    +/**
    + * Large data down sampling on given dimension
    + * @param {string} dimension
    + * @param {number} rate
    + * @param {Function} sampleValue
    + * @param {Function} sampleIndex Sample index for name and id
    + */
    +listProto.downSample = function (dimension, rate, sampleValue, sampleIndex) {
    +    var list = cloneListForMapAndSample(this, [dimension]);
    +    var storage = this._storage;
    +    var targetStorage = list._storage;
    +
    +    var originalIndices = this.indices;
    +    var indices = list.indices = [];
    +
    +    var frameValues = [];
    +    var frameIndices = [];
    +    var frameSize = Math.floor(1 / rate);
    +
    +    var dimStore = targetStorage[dimension];
    +    var len = this.count();
    +    // Copy data from original data
    +    for (var i = 0; i < storage[dimension].length; i++) {
    +        targetStorage[dimension][i] = storage[dimension][i];
    +    }
    +    for (var i = 0; i < len; i += frameSize) {
    +        // Last frame
    +        if (frameSize > len - i) {
    +            frameSize = len - i;
    +            frameValues.length = frameSize;
    +        }
    +        for (var k = 0; k < frameSize; k++) {
    +            var idx = originalIndices[i + k];
    +            frameValues[k] = dimStore[idx];
    +            frameIndices[k] = idx;
    +        }
    +        var value = sampleValue(frameValues);
    +        var idx = frameIndices[sampleIndex(frameValues, value) || 0];
    +        // Only write value on the filtered data
    +        dimStore[idx] = value;
    +        indices.push(idx);
    +    }
    +
    +    return list;
    +};
    +
    +/**
    + * Get model of one data item.
    + *
    + * @param {number} idx
    + */
    +// FIXME Model proxy ?
    +listProto.getItemModel = function (idx) {
    +    var hostModel = this.hostModel;
    +    idx = this.indices[idx];
    +    return new Model(this._rawData.getItem(idx), hostModel, hostModel && hostModel.ecModel);
    +};
    +
    +/**
    + * Create a data differ
    + * @param {module:echarts/data/List} otherList
    + * @return {module:echarts/data/DataDiffer}
    + */
    +listProto.diff = function (otherList) {
    +    var idList = this._idList;
    +    var otherIdList = otherList && otherList._idList;
    +    var val;
    +    // Use prefix to avoid index to be the same as otherIdList[idx],
    +    // which will cause weird udpate animation.
    +    var prefix = 'e\0\0';
    +
    +    return new DataDiffer(
    +        otherList ? otherList.indices : [],
    +        this.indices,
    +        function (idx) {
    +            return (val = otherIdList[idx]) != null ? val : prefix + idx;
    +        },
    +        function (idx) {
    +            return (val = idList[idx]) != null ? val : prefix + idx;
    +        }
    +    );
    +};
    +/**
    + * Get visual property.
    + * @param {string} key
    + */
    +listProto.getVisual = function (key) {
    +    var visual = this._visual;
    +    return visual && visual[key];
    +};
    +
    +/**
    + * Set visual property
    + * @param {string|Object} key
    + * @param {*} [value]
    + *
    + * @example
    + *  setVisual('color', color);
    + *  setVisual({
    + *      'color': color
    + *  });
    + */
    +listProto.setVisual = function (key, val) {
    +    if (isObject$4(key)) {
    +        for (var name in key) {
    +            if (key.hasOwnProperty(name)) {
    +                this.setVisual(name, key[name]);
    +            }
    +        }
    +        return;
    +    }
    +    this._visual = this._visual || {};
    +    this._visual[key] = val;
    +};
    +
    +/**
    + * Set layout property.
    + * @param {string|Object} key
    + * @param {*} [val]
    + */
    +listProto.setLayout = function (key, val) {
    +    if (isObject$4(key)) {
    +        for (var name in key) {
    +            if (key.hasOwnProperty(name)) {
    +                this.setLayout(name, key[name]);
    +            }
    +        }
    +        return;
    +    }
    +    this._layout[key] = val;
    +};
    +
    +/**
    + * Get layout property.
    + * @param  {string} key.
    + * @return {*}
    + */
    +listProto.getLayout = function (key) {
    +    return this._layout[key];
    +};
    +
    +/**
    + * Get layout of single data item
    + * @param {number} idx
    + */
    +listProto.getItemLayout = function (idx) {
    +    return this._itemLayouts[idx];
    +};
    +
    +/**
    + * Set layout of single data item
    + * @param {number} idx
    + * @param {Object} layout
    + * @param {boolean=} [merge=false]
    + */
    +listProto.setItemLayout = function (idx, layout, merge$$1) {
    +    this._itemLayouts[idx] = merge$$1
    +        ? extend(this._itemLayouts[idx] || {}, layout)
    +        : layout;
    +};
    +
    +/**
    + * Clear all layout of single data item
    + */
    +listProto.clearItemLayouts = function () {
    +    this._itemLayouts.length = 0;
    +};
    +
    +/**
    + * Get visual property of single data item
    + * @param {number} idx
    + * @param {string} key
    + * @param {boolean} [ignoreParent=false]
    + */
    +listProto.getItemVisual = function (idx, key, ignoreParent) {
    +    var itemVisual = this._itemVisuals[idx];
    +    var val = itemVisual && itemVisual[key];
    +    if (val == null && !ignoreParent) {
    +        // Use global visual property
    +        return this.getVisual(key);
    +    }
    +    return val;
    +};
    +
    +/**
    + * Set visual property of single data item
    + *
    + * @param {number} idx
    + * @param {string|Object} key
    + * @param {*} [value]
    + *
    + * @example
    + *  setItemVisual(0, 'color', color);
    + *  setItemVisual(0, {
    + *      'color': color
    + *  });
    + */
    +listProto.setItemVisual = function (idx, key, value) {
    +    var itemVisual = this._itemVisuals[idx] || {};
    +    this._itemVisuals[idx] = itemVisual;
    +
    +    if (isObject$4(key)) {
    +        for (var name in key) {
    +            if (key.hasOwnProperty(name)) {
    +                itemVisual[name] = key[name];
    +            }
    +        }
    +        return;
    +    }
    +    itemVisual[key] = value;
    +};
    +
    +/**
    + * Clear itemVisuals and list visual.
    + */
    +listProto.clearAllVisual = function () {
    +    this._visual = {};
    +    this._itemVisuals = [];
    +};
    +
    +var setItemDataAndSeriesIndex = function (child) {
    +    child.seriesIndex = this.seriesIndex;
    +    child.dataIndex = this.dataIndex;
    +    child.dataType = this.dataType;
    +};
    +/**
    + * Set graphic element relative to data. It can be set as null
    + * @param {number} idx
    + * @param {module:zrender/Element} [el]
    + */
    +listProto.setItemGraphicEl = function (idx, el) {
    +    var hostModel = this.hostModel;
    +
    +    if (el) {
    +        // Add data index and series index for indexing the data by element
    +        // Useful in tooltip
    +        el.dataIndex = idx;
    +        el.dataType = this.dataType;
    +        el.seriesIndex = hostModel && hostModel.seriesIndex;
    +        if (el.type === 'group') {
    +            el.traverse(setItemDataAndSeriesIndex, el);
    +        }
    +    }
    +
    +    this._graphicEls[idx] = el;
    +};
    +
    +/**
    + * @param {number} idx
    + * @return {module:zrender/Element}
    + */
    +listProto.getItemGraphicEl = function (idx) {
    +    return this._graphicEls[idx];
    +};
    +
    +/**
    + * @param {Function} cb
    + * @param {*} context
    + */
    +listProto.eachItemGraphicEl = function (cb, context) {
    +    each$1(this._graphicEls, function (el, idx) {
    +        if (el) {
    +            cb && cb.call(context, el, idx);
    +        }
    +    });
    +};
    +
    +/**
    + * Shallow clone a new list except visual and layout properties, and graph elements.
    + * New list only change the indices.
    + */
    +listProto.cloneShallow = function () {
    +    var dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this);
    +    var list = new List(dimensionInfoList, this.hostModel);
    +
    +    // FIXME
    +    list._storage = this._storage;
    +
    +    transferProperties(list, this);
    +
    +
    +    // Clone will not change the data extent and indices
    +    list.indices = this.indices.slice();
    +
    +    if (this._extent) {
    +        list._extent = extend({}, this._extent);
    +    }
    +
    +    return list;
    +};
    +
    +/**
    + * Wrap some method to add more feature
    + * @param {string} methodName
    + * @param {Function} injectFunction
    + */
    +listProto.wrapMethod = function (methodName, injectFunction) {
    +    var originalMethod = this[methodName];
    +    if (typeof originalMethod !== 'function') {
    +        return;
    +    }
    +    this.__wrappedMethods = this.__wrappedMethods || [];
    +    this.__wrappedMethods.push(methodName);
    +    this[methodName] = function () {
    +        var res = originalMethod.apply(this, arguments);
    +        return injectFunction.apply(this, [res].concat(slice(arguments)));
    +    };
    +};
    +
    +// Methods that create a new list based on this list should be listed here.
    +// Notice that those method should `RETURN` the new list.
    +listProto.TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'map'];
    +// Methods that change indices of this list should be listed here.
    +listProto.CHANGABLE_METHODS = ['filterSelf'];
    +
    +/**
    + * Complete dimensions by data (guess dimension).
    + */
    +
    +var each$7 = each$1;
    +var isString$1 = isString;
    +var defaults$1 = defaults;
    +
    +var OTHER_DIMS = {tooltip: 1, label: 1, itemName: 1};
    +
    +/**
    + * Complete the dimensions array, by user defined `dimension` and `encode`,
    + * and guessing from the data structure.
    + * If no 'value' dimension specified, the first no-named dimension will be
    + * named as 'value'.
    + *
    + * @param {Array.<string>} sysDims Necessary dimensions, like ['x', 'y'], which
    + *      provides not only dim template, but also default order.
    + *      `name` of each item provides default coord name.
    + *      [{dimsDef: []}, ...] can be specified to give names.
    + * @param {Array} data Data list. [[1, 2, 3], [2, 3, 4]].
    + * @param {Object} [opt]
    + * @param {Array.<Object|string>} [opt.dimsDef] option.series.dimensions User defined dimensions
    + *      For example: ['asdf', {name, type}, ...].
    + * @param {Object} [opt.encodeDef] option.series.encode {x: 2, y: [3, 1], tooltip: [1, 2], label: 3}
    + * @param {string} [opt.extraPrefix] Prefix of name when filling the left dimensions.
    + * @param {string} [opt.extraFromZero] If specified, extra dim names will be:
    + *                      extraPrefix + 0, extraPrefix + extraBaseIndex + 1 ...
    + *                      If not specified, extra dim names will be:
    + *                      extraPrefix, extraPrefix + 0, extraPrefix + 1 ...
    + * @param {number} [opt.dimCount] If not specified, guess by the first data item.
    + * @return {Array.<Object>} [{
    + *      name: string mandatory,
    + *      coordDim: string mandatory,
    + *      coordDimIndex: number mandatory,
    + *      type: string optional,
    + *      tooltipName: string optional,
    + *      otherDims: {
    + *          tooltip: number optional,
    + *          label: number optional
    + *      },
    + *      isExtraCoord: boolean true or undefined.
    + *      other props ...
    + * }]
    + */
    +function completeDimensions(sysDims, data, opt) {
    +    data = data || [];
    +    opt = opt || {};
    +    sysDims = (sysDims || []).slice();
    +    var dimsDef = (opt.dimsDef || []).slice();
    +    var encodeDef = createHashMap(opt.encodeDef);
    +    var dataDimNameMap = createHashMap();
    +    var coordDimNameMap = createHashMap();
    +    // var valueCandidate;
    +    var result = [];
    +
    +    var dimCount = opt.dimCount;
    +    if (dimCount == null) {
    +        var value0 = retrieveValue(data[0]);
    +        dimCount = Math.max(
    +            isArray(value0) && value0.length || 1,
    +            sysDims.length,
    +            dimsDef.length
    +        );
    +        each$7(sysDims, function (sysDimItem) {
    +            var sysDimItemDimsDef = sysDimItem.dimsDef;
    +            sysDimItemDimsDef && (dimCount = Math.max(dimCount, sysDimItemDimsDef.length));
    +        });
    +    }
    +
    +    // Apply user defined dims (`name` and `type`) and init result.
    +    for (var i = 0; i < dimCount; i++) {
    +        var dimDefItem = isString$1(dimsDef[i]) ? {name: dimsDef[i]} : (dimsDef[i] || {});
    +        var userDimName = dimDefItem.name;
    +        var resultItem = result[i] = {otherDims: {}};
    +        // Name will be applied later for avoiding duplication.
    +        if (userDimName != null && dataDimNameMap.get(userDimName) == null) {
    +            // Only if `series.dimensions` is defined in option, tooltipName
    +            // will be set, and dimension will be diplayed vertically in
    +            // tooltip by default.
    +            resultItem.name = resultItem.tooltipName = userDimName;
    +            dataDimNameMap.set(userDimName, i);
    +        }
    +        dimDefItem.type != null && (resultItem.type = dimDefItem.type);
    +    }
    +
    +    // Set `coordDim` and `coordDimIndex` by `encodeDef` and normalize `encodeDef`.
    +    encodeDef.each(function (dataDims, coordDim) {
    +        dataDims = encodeDef.set(coordDim, normalizeToArray(dataDims).slice());
    +        each$7(dataDims, function (resultDimIdx, coordDimIndex) {
    +            // The input resultDimIdx can be dim name or index.
    +            isString$1(resultDimIdx) && (resultDimIdx = dataDimNameMap.get(resultDimIdx));
    +            if (resultDimIdx != null && resultDimIdx < dimCount) {
    +                dataDims[coordDimIndex] = resultDimIdx;
    +                applyDim(result[resultDimIdx], coordDim, coordDimIndex);
    +            }
    +        });
    +    });
    +
    +    // Apply templetes and default order from `sysDims`.
    +    var availDimIdx = 0;
    +    each$7(sysDims, function (sysDimItem, sysDimIndex) {
    +        var coordDim;
    +        var sysDimItem;
    +        var sysDimItemDimsDef;
    +        var sysDimItemOtherDims;
    +        if (isString$1(sysDimItem)) {
    +            coordDim = sysDimItem;
    +            sysDimItem = {};
    +        }
    +        else {
    +            coordDim = sysDimItem.name;
    +            sysDimItem = clone(sysDimItem);
    +            // `coordDimIndex` should not be set directly.
    +            sysDimItemDimsDef = sysDimItem.dimsDef;
    +            sysDimItemOtherDims = sysDimItem.otherDims;
    +            sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex
    +                = sysDimItem.dimsDef = sysDimItem.otherDims = null;
    +        }
    +
    +        var dataDims = normalizeToArray(encodeDef.get(coordDim));
    +        // dimensions provides default dim sequences.
    +        if (!dataDims.length) {
    +            for (var i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) {
    +                while (availDimIdx < result.length && result[availDimIdx].coordDim != null) {
    +                    availDimIdx++;
    +                }
    +                availDimIdx < result.length && dataDims.push(availDimIdx++);
    +            }
    +        }
    +        // Apply templates.
    +        each$7(dataDims, function (resultDimIdx, coordDimIndex) {
    +            var resultItem = result[resultDimIdx];
    +            applyDim(defaults$1(resultItem, sysDimItem), coordDim, coordDimIndex);
    +            if (resultItem.name == null && sysDimItemDimsDef) {
    +                resultItem.name = resultItem.tooltipName = sysDimItemDimsDef[coordDimIndex];
    +            }
    +            sysDimItemOtherDims && defaults$1(resultItem.otherDims, sysDimItemOtherDims);
    +        });
    +    });
    +
    +    // Make sure the first extra dim is 'value'.
    +    var extra = opt.extraPrefix || 'value';
    +
    +    // Set dim `name` and other `coordDim` and other props.
    +    for (var resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) {
    +        var resultItem = result[resultDimIdx] = result[resultDimIdx] || {};
    +        var coordDim = resultItem.coordDim;
    +
    +        coordDim == null && (
    +            resultItem.coordDim = genName(extra, coordDimNameMap, opt.extraFromZero),
    +            resultItem.coordDimIndex = 0,
    +            resultItem.isExtraCoord = true
    +        );
    +
    +        resultItem.name == null && (resultItem.name = genName(
    +            resultItem.coordDim,
    +            dataDimNameMap
    +        ));
    +
    +        resultItem.type == null && guessOrdinal(data, resultDimIdx)
    +            && (resultItem.type = 'ordinal');
    +    }
    +
    +    return result;
    +
    +    function applyDim(resultItem, coordDim, coordDimIndex) {
    +        if (OTHER_DIMS[coordDim]) {
    +            resultItem.otherDims[coordDim] = coordDimIndex;
    +        }
    +        else {
    +            resultItem.coordDim = coordDim;
    +            resultItem.coordDimIndex = coordDimIndex;
    +            coordDimNameMap.set(coordDim, true);
    +        }
    +    }
    +
    +    function genName(name, map$$1, fromZero) {
    +        if (fromZero || map$$1.get(name) != null) {
    +            var i = 0;
    +            while (map$$1.get(name + i) != null) {
    +                i++;
    +            }
    +            name += i;
    +        }
    +        map$$1.set(name, true);
    +        return name;
    +    }
    +}
    +
    +// The rule should not be complex, otherwise user might not
    +// be able to known where the data is wrong.
    +var guessOrdinal = completeDimensions.guessOrdinal = function (data, dimIndex) {
    +    for (var i = 0, len = data.length; i < len; i++) {
    +        var value = retrieveValue(data[i]);
    +
    +        if (!isArray(value)) {
    +            return false;
    +        }
    +
    +        var value = value[dimIndex];
    +        // Consider usage convenience, '1', '2' will be treated as "number".
    +        // `isFinit('')` get `true`.
    +        if (value != null && isFinite(value) && value !== '') {
    +            return false;
    +        }
    +        else if (isString$1(value) && value !== '-') {
    +            return true;
    +        }
    +    }
    +    return false;
    +};
    +
    +function retrieveValue(o) {
    +    return isArray(o) ? o : isObject(o) ? o.value: o;
    +}
    +
    +function firstDataNotNull(data) {
    +    var i = 0;
    +    while (i < data.length && data[i] == null) {
    +        i++;
    +    }
    +    return data[i];
    +}
    +function ifNeedCompleteOrdinalData(data) {
    +    var sampleItem = firstDataNotNull(data);
    +    return sampleItem != null
    +        && !isArray(getDataItemValue(sampleItem));
    +}
    +
    +/**
    + * Helper function to create a list from option data
    + */
    +function createListFromArray(data, seriesModel, ecModel) {
    +    // If data is undefined
    +    data = data || [];
    +
    +    if (__DEV__) {
    +        if (!isArray(data)) {
    +            throw new Error('Invalid data.');
    +        }
    +    }
    +
    +    var coordSysName = seriesModel.get('coordinateSystem');
    +    var creator = creators[coordSysName];
    +    var registeredCoordSys = CoordinateSystemManager.get(coordSysName);
    +    var completeDimOpt = {
    +        encodeDef: seriesModel.get('encode'),
    +        dimsDef: seriesModel.get('dimensions')
    +    };
    +
    +    // FIXME
    +    var axesInfo = creator && creator(data, seriesModel, ecModel, completeDimOpt);
    +    var dimensions = axesInfo && axesInfo.dimensions;
    +    if (!dimensions) {
    +        // Get dimensions from registered coordinate system
    +        dimensions = (registeredCoordSys && (
    +            registeredCoordSys.getDimensionsInfo
    +                ? registeredCoordSys.getDimensionsInfo()
    +                : registeredCoordSys.dimensions.slice()
    +        )) || ['x', 'y'];
    +        dimensions = completeDimensions(dimensions, data, completeDimOpt);
    +    }
    +
    +    var categoryIndex = axesInfo ? axesInfo.categoryIndex : -1;
    +
    +    var list = new List(dimensions, seriesModel);
    +
    +    var nameList = createNameList(axesInfo, data);
    +
    +    var categories = {};
    +    var dimValueGetter = (categoryIndex >= 0 && ifNeedCompleteOrdinalData(data))
    +        ? function (itemOpt, dimName, dataIndex, dimIndex) {
    +            // If any dataItem is like { value: 10 }
    +            if (isDataItemOption(itemOpt)) {
    +                list.hasItemOption = true;
    +            }
    +
    +            // Use dataIndex as ordinal value in categoryAxis
    +            return dimIndex === categoryIndex
    +                ? dataIndex
    +                : converDataValue(getDataItemValue(itemOpt), dimensions[dimIndex]);
    +        }
    +        : function (itemOpt, dimName, dataIndex, dimIndex) {
    +            var value = getDataItemValue(itemOpt);
    +            var val = converDataValue(value && value[dimIndex], dimensions[dimIndex]);
    +            // If any dataItem is like { value: 10 }
    +            if (isDataItemOption(itemOpt)) {
    +                list.hasItemOption = true;
    +            }
    +
    +            var categoryAxesModels = axesInfo && axesInfo.categoryAxesModels;
    +            if (categoryAxesModels && categoryAxesModels[dimName]) {
    +                // If given value is a category string
    +                if (typeof val === 'string') {
    +                    // Lazy get categories
    +                    categories[dimName] = categories[dimName]
    +                        || categoryAxesModels[dimName].getCategories();
    +                    val = indexOf(categories[dimName], val);
    +                    if (val < 0 && !isNaN(val)) {
    +                        // In case some one write '1', '2' istead of 1, 2
    +                        val = +val;
    +                    }
    +                }
    +            }
    +            return val;
    +        };
    +
    +    list.hasItemOption = false;
    +    list.initData(data, nameList, dimValueGetter);
    +
    +    return list;
    +}
    +
    +function isStackable(axisType) {
    +    return axisType !== 'category' && axisType !== 'time';
    +}
    +
    +function getDimTypeByAxis(axisType) {
    +    return axisType === 'category'
    +        ? 'ordinal'
    +        : axisType === 'time'
    +        ? 'time'
    +        : 'float';
    +}
    +
    +/**
    + * Creaters for each coord system.
    + */
    +var creators = {
    +
    +    cartesian2d: function (data, seriesModel, ecModel, completeDimOpt) {
    +
    +        var axesModels = map(['xAxis', 'yAxis'], function (name) {
    +            return ecModel.queryComponents({
    +                mainType: name,
    +                index: seriesModel.get(name + 'Index'),
    +                id: seriesModel.get(name + 'Id')
    +            })[0];
    +        });
    +        var xAxisModel = axesModels[0];
    +        var yAxisModel = axesModels[1];
    +
    +        if (__DEV__) {
    +            if (!xAxisModel) {
    +                throw new Error('xAxis "' + retrieve(
    +                    seriesModel.get('xAxisIndex'),
    +                    seriesModel.get('xAxisId'),
    +                    0
    +                ) + '" not found');
    +            }
    +            if (!yAxisModel) {
    +                throw new Error('yAxis "' + retrieve(
    +                    seriesModel.get('xAxisIndex'),
    +                    seriesModel.get('yAxisId'),
    +                    0
    +                ) + '" not found');
    +            }
    +        }
    +
    +        var xAxisType = xAxisModel.get('type');
    +        var yAxisType = yAxisModel.get('type');
    +
    +        var dimensions = [
    +            {
    +                name: 'x',
    +                type: getDimTypeByAxis(xAxisType),
    +                stackable: isStackable(xAxisType)
    +            },
    +            {
    +                name: 'y',
    +                // If two category axes
    +                type: getDimTypeByAxis(yAxisType),
    +                stackable: isStackable(yAxisType)
    +            }
    +        ];
    +
    +        var isXAxisCateogry = xAxisType === 'category';
    +        var isYAxisCategory = yAxisType === 'category';
    +
    +        dimensions = completeDimensions(dimensions, data, completeDimOpt);
    +
    +        var categoryAxesModels = {};
    +        if (isXAxisCateogry) {
    +            categoryAxesModels.x = xAxisModel;
    +        }
    +        if (isYAxisCategory) {
    +            categoryAxesModels.y = yAxisModel;
    +        }
    +        return {
    +            dimensions: dimensions,
    +            categoryIndex: isXAxisCateogry ? 0 : (isYAxisCategory ? 1 : -1),
    +            categoryAxesModels: categoryAxesModels
    +        };
    +    },
    +
    +    singleAxis: function (data, seriesModel, ecModel, completeDimOpt) {
    +
    +        var singleAxisModel = ecModel.queryComponents({
    +            mainType: 'singleAxis',
    +            index: seriesModel.get('singleAxisIndex'),
    +            id: seriesModel.get('singleAxisId')
    +        })[0];
    +
    +        if (__DEV__) {
    +            if (!singleAxisModel) {
    +                throw new Error('singleAxis should be specified.');
    +            }
    +        }
    +
    +        var singleAxisType = singleAxisModel.get('type');
    +        var isCategory = singleAxisType === 'category';
    +
    +        var dimensions = [{
    +            name: 'single',
    +            type: getDimTypeByAxis(singleAxisType),
    +            stackable: isStackable(singleAxisType)
    +        }];
    +
    +        dimensions = completeDimensions(dimensions, data, completeDimOpt);
    +
    +        var categoryAxesModels = {};
    +        if (isCategory) {
    +            categoryAxesModels.single = singleAxisModel;
    +        }
    +
    +        return {
    +            dimensions: dimensions,
    +            categoryIndex: isCategory ? 0 : -1,
    +            categoryAxesModels: categoryAxesModels
    +        };
    +    },
    +
    +    polar: function (data, seriesModel, ecModel, completeDimOpt) {
    +        var polarModel = ecModel.queryComponents({
    +            mainType: 'polar',
    +            index: seriesModel.get('polarIndex'),
    +            id: seriesModel.get('polarId')
    +        })[0];
    +
    +        var angleAxisModel = polarModel.findAxisModel('angleAxis');
    +        var radiusAxisModel = polarModel.findAxisModel('radiusAxis');
    +
    +        if (__DEV__) {
    +            if (!angleAxisModel) {
    +                throw new Error('angleAxis option not found');
    +            }
    +            if (!radiusAxisModel) {
    +                throw new Error('radiusAxis option not found');
    +            }
    +        }
    +
    +        var radiusAxisType = radiusAxisModel.get('type');
    +        var angleAxisType = angleAxisModel.get('type');
    +
    +        var dimensions = [
    +            {
    +                name: 'radius',
    +                type: getDimTypeByAxis(radiusAxisType),
    +                stackable: isStackable(radiusAxisType)
    +            },
    +            {
    +                name: 'angle',
    +                type: getDimTypeByAxis(angleAxisType),
    +                stackable: isStackable(angleAxisType)
    +            }
    +        ];
    +        var isAngleAxisCateogry = angleAxisType === 'category';
    +        var isRadiusAxisCateogry = radiusAxisType === 'category';
    +
    +        dimensions = completeDimensions(dimensions, data, completeDimOpt);
    +
    +        var categoryAxesModels = {};
    +        if (isRadiusAxisCateogry) {
    +            categoryAxesModels.radius = radiusAxisModel;
    +        }
    +        if (isAngleAxisCateogry) {
    +            categoryAxesModels.angle = angleAxisModel;
    +        }
    +        return {
    +            dimensions: dimensions,
    +            categoryIndex: isAngleAxisCateogry ? 1 : (isRadiusAxisCateogry ? 0 : -1),
    +            categoryAxesModels: categoryAxesModels
    +        };
    +    },
    +
    +    geo: function (data, seriesModel, ecModel, completeDimOpt) {
    +        // TODO Region
    +        // 多个散点图系列在同一个地区的时候
    +        return {
    +            dimensions: completeDimensions([
    +                {name: 'lng'},
    +                {name: 'lat'}
    +            ], data, completeDimOpt)
    +        };
    +    }
    +};
    +
    +function createNameList(result, data) {
    +    var nameList = [];
    +
    +    var categoryDim = result && result.dimensions[result.categoryIndex];
    +    var categoryAxisModel;
    +    if (categoryDim) {
    +        categoryAxisModel = result.categoryAxesModels[categoryDim.name];
    +    }
    +
    +    if (categoryAxisModel) {
    +        // FIXME Two category axis
    +        var categories = categoryAxisModel.getCategories();
    +        if (categories) {
    +            var dataLen = data.length;
    +            // Ordered data is given explicitly like
    +            // [[3, 0.2], [1, 0.3], [2, 0.15]]
    +            // or given scatter data,
    +            // pick the category
    +            if (isArray(data[0]) && data[0].length > 1) {
    +                nameList = [];
    +                for (var i = 0; i < dataLen; i++) {
    +                    nameList[i] = categories[data[i][result.categoryIndex || 0]];
    +                }
    +            }
    +            else {
    +                nameList = categories.slice(0);
    +            }
    +        }
    +    }
    +
    +    return nameList;
    +}
    +
    +/**
    + * // Scale class management
    + * @module echarts/scale/Scale
    + */
    +
    +/**
    + * @param {Object} [setting]
    + */
    +function Scale(setting) {
    +    this._setting = setting || {};
    +
    +    /**
    +     * Extent
    +     * @type {Array.<number>}
    +     * @protected
    +     */
    +    this._extent = [Infinity, -Infinity];
    +
    +    /**
    +     * Step is calculated in adjustExtent
    +     * @type {Array.<number>}
    +     * @protected
    +     */
    +    this._interval = 0;
    +
    +    this.init && this.init.apply(this, arguments);
    +}
    +
    +/**
    + * Parse input val to valid inner number.
    + * @param {*} val
    + * @return {number}
    + */
    +Scale.prototype.parse = function (val) {
    +    // Notice: This would be a trap here, If the implementation
    +    // of this method depends on extent, and this method is used
    +    // before extent set (like in dataZoom), it would be wrong.
    +    // Nevertheless, parse does not depend on extent generally.
    +    return val;
    +};
    +
    +Scale.prototype.getSetting = function (name) {
    +    return this._setting[name];
    +};
    +
    +Scale.prototype.contain = function (val) {
    +    var extent = this._extent;
    +    return val >= extent[0] && val <= extent[1];
    +};
    +
    +/**
    + * Normalize value to linear [0, 1], return 0.5 if extent span is 0
    + * @param {number} val
    + * @return {number}
    + */
    +Scale.prototype.normalize = function (val) {
    +    var extent = this._extent;
    +    if (extent[1] === extent[0]) {
    +        return 0.5;
    +    }
    +    return (val - extent[0]) / (extent[1] - extent[0]);
    +};
    +
    +/**
    + * Scale normalized value
    + * @param {number} val
    + * @return {number}
    + */
    +Scale.prototype.scale = function (val) {
    +    var extent = this._extent;
    +    return val * (extent[1] - extent[0]) + extent[0];
    +};
    +
    +/**
    + * Set extent from data
    + * @param {Array.<number>} other
    + */
    +Scale.prototype.unionExtent = function (other) {
    +    var extent = this._extent;
    +    other[0] < extent[0] && (extent[0] = other[0]);
    +    other[1] > extent[1] && (extent[1] = other[1]);
    +    // not setExtent because in log axis it may transformed to power
    +    // this.setExtent(extent[0], extent[1]);
    +};
    +
    +/**
    + * Set extent from data
    + * @param {module:echarts/data/List} data
    + * @param {string} dim
    + */
    +Scale.prototype.unionExtentFromData = function (data, dim) {
    +    this.unionExtent(data.getDataExtent(dim, true));
    +};
    +
    +/**
    + * Get extent
    + * @return {Array.<number>}
    + */
    +Scale.prototype.getExtent = function () {
    +    return this._extent.slice();
    +};
    +
    +/**
    + * Set extent
    + * @param {number} start
    + * @param {number} end
    + */
    +Scale.prototype.setExtent = function (start, end) {
    +    var thisExtent = this._extent;
    +    if (!isNaN(start)) {
    +        thisExtent[0] = start;
    +    }
    +    if (!isNaN(end)) {
    +        thisExtent[1] = end;
    +    }
    +};
    +
    +/**
    + * @return {Array.<string>}
    + */
    +Scale.prototype.getTicksLabels = function () {
    +    var labels = [];
    +    var ticks = this.getTicks();
    +    for (var i = 0; i < ticks.length; i++) {
    +        labels.push(this.getLabel(ticks[i]));
    +    }
    +    return labels;
    +};
    +
    +/**
    + * When axis extent depends on data and no data exists,
    + * axis ticks should not be drawn, which is named 'blank'.
    + */
    +Scale.prototype.isBlank = function () {
    +    return this._isBlank;
    +},
    +
    +/**
    + * When axis extent depends on data and no data exists,
    + * axis ticks should not be drawn, which is named 'blank'.
    + */
    +Scale.prototype.setBlank = function (isBlank) {
    +    this._isBlank = isBlank;
    +};
    +
    +
    +enableClassExtend(Scale);
    +enableClassManagement(Scale, {
    +    registerWhenExtend: true
    +});
    +
    +/**
    + * Linear continuous scale
    + * @module echarts/coord/scale/Ordinal
    + *
    + * http://en.wikipedia.org/wiki/Level_of_measurement
    + */
    +
    +// FIXME only one data
    +
    +var scaleProto = Scale.prototype;
    +
    +var OrdinalScale = Scale.extend({
    +
    +    type: 'ordinal',
    +
    +    init: function (data, extent) {
    +        this._data = data;
    +        this._extent = extent || [0, data.length - 1];
    +    },
    +
    +    parse: function (val) {
    +        return typeof val === 'string'
    +            ? indexOf(this._data, val)
    +            // val might be float.
    +            : Math.round(val);
    +    },
    +
    +    contain: function (rank) {
    +        rank = this.parse(rank);
    +        return scaleProto.contain.call(this, rank)
    +            && this._data[rank] != null;
    +    },
    +
    +    /**
    +     * Normalize given rank or name to linear [0, 1]
    +     * @param {number|string} [val]
    +     * @return {number}
    +     */
    +    normalize: function (val) {
    +        return scaleProto.normalize.call(this, this.parse(val));
    +    },
    +
    +    scale: function (val) {
    +        return Math.round(scaleProto.scale.call(this, val));
    +    },
    +
    +    /**
    +     * @return {Array}
    +     */
    +    getTicks: function () {
    +        var ticks = [];
    +        var extent = this._extent;
    +        var rank = extent[0];
    +
    +        while (rank <= extent[1]) {
    +            ticks.push(rank);
    +            rank++;
    +        }
    +
    +        return ticks;
    +    },
    +
    +    /**
    +     * Get item on rank n
    +     * @param {number} n
    +     * @return {string}
    +     */
    +    getLabel: function (n) {
    +        return this._data[n];
    +    },
    +
    +    /**
    +     * @return {number}
    +     */
    +    count: function () {
    +        return this._extent[1] - this._extent[0] + 1;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    unionExtentFromData: function (data, dim) {
    +        this.unionExtent(data.getDataExtent(dim, false));
    +    },
    +
    +    niceTicks: noop,
    +    niceExtent: noop
    +});
    +
    +/**
    + * @return {module:echarts/scale/Time}
    + */
    +OrdinalScale.create = function () {
    +    return new OrdinalScale();
    +};
    +
    +/**
    + * For testable.
    + */
    +
    +var roundNumber$1 = round;
    +
    +/**
    + * @param {Array.<number>} extent Both extent[0] and extent[1] should be valid number.
    + *                                Should be extent[0] < extent[1].
    + * @param {number} splitNumber splitNumber should be >= 1.
    + * @param {number} [minInterval]
    + * @param {number} [maxInterval]
    + * @return {Object} {interval, intervalPrecision, niceTickExtent}
    + */
    +function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) {
    +    var result = {};
    +    var span = extent[1] - extent[0];
    +
    +    var interval = result.interval = nice(span / splitNumber, true);
    +    if (minInterval != null && interval < minInterval) {
    +        interval = result.interval = minInterval;
    +    }
    +    if (maxInterval != null && interval > maxInterval) {
    +        interval = result.interval = maxInterval;
    +    }
    +    // Tow more digital for tick.
    +    var precision = result.intervalPrecision = getIntervalPrecision(interval);
    +    // Niced extent inside original extent
    +    var niceTickExtent = result.niceTickExtent = [
    +        roundNumber$1(Math.ceil(extent[0] / interval) * interval, precision),
    +        roundNumber$1(Math.floor(extent[1] / interval) * interval, precision)
    +    ];
    +
    +    fixExtent(niceTickExtent, extent);
    +
    +    return result;
    +}
    +
    +/**
    + * @param {number} interval
    + * @return {number} interval precision
    + */
    +function getIntervalPrecision(interval) {
    +    // Tow more digital for tick.
    +    return getPrecisionSafe(interval) + 2;
    +}
    +
    +function clamp(niceTickExtent, idx, extent) {
    +    niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]);
    +}
    +
    +// In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.
    +function fixExtent(niceTickExtent, extent) {
    +    !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]);
    +    !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]);
    +    clamp(niceTickExtent, 0, extent);
    +    clamp(niceTickExtent, 1, extent);
    +    if (niceTickExtent[0] > niceTickExtent[1]) {
    +        niceTickExtent[0] = niceTickExtent[1];
    +    }
    +}
    +
    +function intervalScaleGetTicks(interval, extent, niceTickExtent, intervalPrecision) {
    +    var ticks = [];
    +
    +    // If interval is 0, return [];
    +    if (!interval) {
    +        return ticks;
    +    }
    +
    +    // Consider this case: using dataZoom toolbox, zoom and zoom.
    +    var safeLimit = 10000;
    +
    +    if (extent[0] < niceTickExtent[0]) {
    +        ticks.push(extent[0]);
    +    }
    +    var tick = niceTickExtent[0];
    +
    +    while (tick <= niceTickExtent[1]) {
    +        ticks.push(tick);
    +        // Avoid rounding error
    +        tick = roundNumber$1(tick + interval, intervalPrecision);
    +        if (tick === ticks[ticks.length - 1]) {
    +            // Consider out of safe float point, e.g.,
    +            // -3711126.9907707 + 2e-10 === -3711126.9907707
    +            break;
    +        }
    +        if (ticks.length > safeLimit) {
    +            return [];
    +        }
    +    }
    +    // Consider this case: the last item of ticks is smaller
    +    // than niceTickExtent[1] and niceTickExtent[1] === extent[1].
    +    if (extent[1] > (ticks.length ? ticks[ticks.length - 1] : niceTickExtent[1])) {
    +        ticks.push(extent[1]);
    +    }
    +
    +    return ticks;
    +}
    +
    +/**
    + * Interval scale
    + * @module echarts/scale/Interval
    + */
    +
    +
    +var roundNumber = round;
    +
    +/**
    + * @alias module:echarts/coord/scale/Interval
    + * @constructor
    + */
    +var IntervalScale = Scale.extend({
    +
    +    type: 'interval',
    +
    +    _interval: 0,
    +
    +    _intervalPrecision: 2,
    +
    +    setExtent: function (start, end) {
    +        var thisExtent = this._extent;
    +        //start,end may be a Number like '25',so...
    +        if (!isNaN(start)) {
    +            thisExtent[0] = parseFloat(start);
    +        }
    +        if (!isNaN(end)) {
    +            thisExtent[1] = parseFloat(end);
    +        }
    +    },
    +
    +    unionExtent: function (other) {
    +        var extent = this._extent;
    +        other[0] < extent[0] && (extent[0] = other[0]);
    +        other[1] > extent[1] && (extent[1] = other[1]);
    +
    +        // unionExtent may called by it's sub classes
    +        IntervalScale.prototype.setExtent.call(this, extent[0], extent[1]);
    +    },
    +    /**
    +     * Get interval
    +     */
    +    getInterval: function () {
    +        return this._interval;
    +    },
    +
    +    /**
    +     * Set interval
    +     */
    +    setInterval: function (interval) {
    +        this._interval = interval;
    +        // Dropped auto calculated niceExtent and use user setted extent
    +        // We assume user wan't to set both interval, min, max to get a better result
    +        this._niceExtent = this._extent.slice();
    +
    +        this._intervalPrecision = getIntervalPrecision(interval);
    +    },
    +
    +    /**
    +     * @return {Array.<number>}
    +     */
    +    getTicks: function () {
    +        return intervalScaleGetTicks(
    +            this._interval, this._extent, this._niceExtent, this._intervalPrecision
    +        );
    +    },
    +
    +    /**
    +     * @return {Array.<string>}
    +     */
    +    getTicksLabels: function () {
    +        var labels = [];
    +        var ticks = this.getTicks();
    +        for (var i = 0; i < ticks.length; i++) {
    +            labels.push(this.getLabel(ticks[i]));
    +        }
    +        return labels;
    +    },
    +
    +    /**
    +     * @param {number} data
    +     * @param {Object} [opt]
    +     * @param {number|string} [opt.precision] If 'auto', use nice presision.
    +     * @param {boolean} [opt.pad] returns 1.50 but not 1.5 if precision is 2.
    +     * @return {string}
    +     */
    +    getLabel: function (data, opt) {
    +        if (data == null) {
    +            return '';
    +        }
    +
    +        var precision = opt && opt.precision;
    +
    +        if (precision == null) {
    +            precision = getPrecisionSafe(data) || 0;
    +        }
    +        else if (precision === 'auto') {
    +            // Should be more precise then tick.
    +            precision = this._intervalPrecision;
    +        }
    +
    +        // (1) If `precision` is set, 12.005 should be display as '12.00500'.
    +        // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.
    +        data = roundNumber(data, precision, true);
    +
    +        return addCommas(data);
    +    },
    +
    +    /**
    +     * Update interval and extent of intervals for nice ticks
    +     *
    +     * @param {number} [splitNumber = 5] Desired number of ticks
    +     * @param {number} [minInterval]
    +     * @param {number} [maxInterval]
    +     */
    +    niceTicks: function (splitNumber, minInterval, maxInterval) {
    +        splitNumber = splitNumber || 5;
    +        var extent = this._extent;
    +        var span = extent[1] - extent[0];
    +        if (!isFinite(span)) {
    +            return;
    +        }
    +        // User may set axis min 0 and data are all negative
    +        // FIXME If it needs to reverse ?
    +        if (span < 0) {
    +            span = -span;
    +            extent.reverse();
    +        }
    +
    +        var result = intervalScaleNiceTicks(
    +            extent, splitNumber, minInterval, maxInterval
    +        );
    +
    +        this._intervalPrecision = result.intervalPrecision;
    +        this._interval = result.interval;
    +        this._niceExtent = result.niceTickExtent;
    +    },
    +
    +    /**
    +     * Nice extent.
    +     * @param {Object} opt
    +     * @param {number} [opt.splitNumber = 5] Given approx tick number
    +     * @param {boolean} [opt.fixMin=false]
    +     * @param {boolean} [opt.fixMax=false]
    +     * @param {boolean} [opt.minInterval]
    +     * @param {boolean} [opt.maxInterval]
    +     */
    +    niceExtent: function (opt) {
    +        var extent = this._extent;
    +        // If extent start and end are same, expand them
    +        if (extent[0] === extent[1]) {
    +            if (extent[0] !== 0) {
    +                // Expand extent
    +                var expandSize = extent[0];
    +                // In the fowllowing case
    +                //      Axis has been fixed max 100
    +                //      Plus data are all 100 and axis extent are [100, 100].
    +                // Extend to the both side will cause expanded max is larger than fixed max.
    +                // So only expand to the smaller side.
    +                if (!opt.fixMax) {
    +                    extent[1] += expandSize / 2;
    +                    extent[0] -= expandSize / 2;
    +                }
    +                else {
    +                    extent[0] -= expandSize / 2;
    +                }
    +            }
    +            else {
    +                extent[1] = 1;
    +            }
    +        }
    +        var span = extent[1] - extent[0];
    +        // If there are no data and extent are [Infinity, -Infinity]
    +        if (!isFinite(span)) {
    +            extent[0] = 0;
    +            extent[1] = 1;
    +        }
    +
    +        this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);
    +
    +        // var extent = this._extent;
    +        var interval = this._interval;
    +
    +        if (!opt.fixMin) {
    +            extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval);
    +        }
    +        if (!opt.fixMax) {
    +            extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval);
    +        }
    +    }
    +});
    +
    +/**
    + * @return {module:echarts/scale/Time}
    + */
    +IntervalScale.create = function () {
    +    return new IntervalScale();
    +};
    +
    +// [About UTC and local time zone]:
    +// In most cases, `number.parseDate` will treat input data string as local time
    +// (except time zone is specified in time string). And `format.formateTime` returns
    +// local time by default. option.useUTC is false by default. This design have
    +// concidered these common case:
    +// (1) Time that is persistent in server is in UTC, but it is needed to be diplayed
    +// in local time by default.
    +// (2) By default, the input data string (e.g., '2011-01-02') should be displayed
    +// as its original time, without any time difference.
    +
    +var intervalScaleProto = IntervalScale.prototype;
    +
    +var mathCeil = Math.ceil;
    +var mathFloor = Math.floor;
    +var ONE_SECOND = 1000;
    +var ONE_MINUTE = ONE_SECOND * 60;
    +var ONE_HOUR = ONE_MINUTE * 60;
    +var ONE_DAY = ONE_HOUR * 24;
    +
    +// FIXME 公用?
    +var bisect = function (a, x, lo, hi) {
    +    while (lo < hi) {
    +        var mid = lo + hi >>> 1;
    +        if (a[mid][1] < x) {
    +            lo = mid + 1;
    +        }
    +        else {
    +            hi  = mid;
    +        }
    +    }
    +    return lo;
    +};
    +
    +/**
    + * @alias module:echarts/coord/scale/Time
    + * @constructor
    + */
    +var TimeScale = IntervalScale.extend({
    +    type: 'time',
    +
    +    /**
    +     * @override
    +     */
    +    getLabel: function (val) {
    +        var stepLvl = this._stepLvl;
    +
    +        var date = new Date(val);
    +
    +        return formatTime(stepLvl[0], date, this.getSetting('useUTC'));
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    niceExtent: function (opt) {
    +        var extent = this._extent;
    +        // If extent start and end are same, expand them
    +        if (extent[0] === extent[1]) {
    +            // Expand extent
    +            extent[0] -= ONE_DAY;
    +            extent[1] += ONE_DAY;
    +        }
    +        // If there are no data and extent are [Infinity, -Infinity]
    +        if (extent[1] === -Infinity && extent[0] === Infinity) {
    +            var d = new Date();
    +            extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate());
    +            extent[0] = extent[1] - ONE_DAY;
    +        }
    +
    +        this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);
    +
    +        // var extent = this._extent;
    +        var interval = this._interval;
    +
    +        if (!opt.fixMin) {
    +            extent[0] = round(mathFloor(extent[0] / interval) * interval);
    +        }
    +        if (!opt.fixMax) {
    +            extent[1] = round(mathCeil(extent[1] / interval) * interval);
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    niceTicks: function (approxTickNum, minInterval, maxInterval) {
    +        approxTickNum = approxTickNum || 10;
    +
    +        var extent = this._extent;
    +        var span = extent[1] - extent[0];
    +        var approxInterval = span / approxTickNum;
    +
    +        if (minInterval != null && approxInterval < minInterval) {
    +            approxInterval = minInterval;
    +        }
    +        if (maxInterval != null && approxInterval > maxInterval) {
    +            approxInterval = maxInterval;
    +        }
    +
    +        var scaleLevelsLen = scaleLevels.length;
    +        var idx = bisect(scaleLevels, approxInterval, 0, scaleLevelsLen);
    +
    +        var level = scaleLevels[Math.min(idx, scaleLevelsLen - 1)];
    +        var interval = level[1];
    +        // Same with interval scale if span is much larger than 1 year
    +        if (level[0] === 'year') {
    +            var yearSpan = span / interval;
    +
    +            // From "Nice Numbers for Graph Labels" of Graphic Gems
    +            // var niceYearSpan = numberUtil.nice(yearSpan, false);
    +            var yearStep = nice(yearSpan / approxTickNum, true);
    +
    +            interval *= yearStep;
    +        }
    +
    +        var timezoneOffset = this.getSetting('useUTC')
    +            ? 0 : (new Date(+extent[0] || +extent[1])).getTimezoneOffset() * 60 * 1000;
    +        var niceExtent = [
    +            Math.round(mathCeil((extent[0] - timezoneOffset) / interval) * interval + timezoneOffset),
    +            Math.round(mathFloor((extent[1] - timezoneOffset) / interval) * interval + timezoneOffset)
    +        ];
    +
    +        fixExtent(niceExtent, extent);
    +
    +        this._stepLvl = level;
    +        // Interval will be used in getTicks
    +        this._interval = interval;
    +        this._niceExtent = niceExtent;
    +    },
    +
    +    parse: function (val) {
    +        // val might be float.
    +        return +parseDate(val);
    +    }
    +});
    +
    +each$1(['contain', 'normalize'], function (methodName) {
    +    TimeScale.prototype[methodName] = function (val) {
    +        return intervalScaleProto[methodName].call(this, this.parse(val));
    +    };
    +});
    +
    +// Steps from d3
    +var scaleLevels = [
    +    // Format              interval
    +    ['hh:mm:ss', ONE_SECOND],          // 1s
    +    ['hh:mm:ss', ONE_SECOND * 5],      // 5s
    +    ['hh:mm:ss', ONE_SECOND * 10],     // 10s
    +    ['hh:mm:ss', ONE_SECOND * 15],     // 15s
    +    ['hh:mm:ss', ONE_SECOND * 30],     // 30s
    +    ['hh:mm\nMM-dd', ONE_MINUTE],      // 1m
    +    ['hh:mm\nMM-dd', ONE_MINUTE * 5],  // 5m
    +    ['hh:mm\nMM-dd', ONE_MINUTE * 10], // 10m
    +    ['hh:mm\nMM-dd', ONE_MINUTE * 15], // 15m
    +    ['hh:mm\nMM-dd', ONE_MINUTE * 30], // 30m
    +    ['hh:mm\nMM-dd', ONE_HOUR],        // 1h
    +    ['hh:mm\nMM-dd', ONE_HOUR * 2],    // 2h
    +    ['hh:mm\nMM-dd', ONE_HOUR * 6],    // 6h
    +    ['hh:mm\nMM-dd', ONE_HOUR * 12],   // 12h
    +    ['MM-dd\nyyyy', ONE_DAY],          // 1d
    +    ['MM-dd\nyyyy', ONE_DAY * 2],      // 2d
    +    ['MM-dd\nyyyy', ONE_DAY * 3],      // 3d
    +    ['MM-dd\nyyyy', ONE_DAY * 4],      // 4d
    +    ['MM-dd\nyyyy', ONE_DAY * 5],      // 5d
    +    ['MM-dd\nyyyy', ONE_DAY * 6],      // 6d
    +    ['week', ONE_DAY * 7],             // 7d
    +    ['MM-dd\nyyyy', ONE_DAY * 10],     // 10d
    +    ['week', ONE_DAY * 14],            // 2w
    +    ['week', ONE_DAY * 21],            // 3w
    +    ['month', ONE_DAY * 31],           // 1M
    +    ['week', ONE_DAY * 42],            // 6w
    +    ['month', ONE_DAY * 62],           // 2M
    +    ['week', ONE_DAY * 42],            // 10w
    +    ['quarter', ONE_DAY * 380 / 4],    // 3M
    +    ['month', ONE_DAY * 31 * 4],       // 4M
    +    ['month', ONE_DAY * 31 * 5],       // 5M
    +    ['half-year', ONE_DAY * 380 / 2],  // 6M
    +    ['month', ONE_DAY * 31 * 8],       // 8M
    +    ['month', ONE_DAY * 31 * 10],      // 10M
    +    ['year', ONE_DAY * 380]            // 1Y
    +];
    +
    +/**
    + * @param {module:echarts/model/Model}
    + * @return {module:echarts/scale/Time}
    + */
    +TimeScale.create = function (model) {
    +    return new TimeScale({useUTC: model.ecModel.get('useUTC')});
    +};
    +
    +/**
    + * Log scale
    + * @module echarts/scale/Log
    + */
    +
    +// Use some method of IntervalScale
    +var scaleProto$1 = Scale.prototype;
    +var intervalScaleProto$1 = IntervalScale.prototype;
    +
    +var getPrecisionSafe$1 = getPrecisionSafe;
    +var roundingErrorFix = round;
    +
    +var mathFloor$1 = Math.floor;
    +var mathCeil$1 = Math.ceil;
    +var mathPow$1 = Math.pow;
    +
    +var mathLog = Math.log;
    +
    +var LogScale = Scale.extend({
    +
    +    type: 'log',
    +
    +    base: 10,
    +
    +    $constructor: function () {
    +        Scale.apply(this, arguments);
    +        this._originalScale = new IntervalScale();
    +    },
    +
    +    /**
    +     * @return {Array.<number>}
    +     */
    +    getTicks: function () {
    +        var originalScale = this._originalScale;
    +        var extent = this._extent;
    +        var originalExtent = originalScale.getExtent();
    +
    +        return map(intervalScaleProto$1.getTicks.call(this), function (val) {
    +            var powVal = round(mathPow$1(this.base, val));
    +
    +            // Fix #4158
    +            powVal = (val === extent[0] && originalScale.__fixMin)
    +                ? fixRoundingError(powVal, originalExtent[0])
    +                : powVal;
    +            powVal = (val === extent[1] && originalScale.__fixMax)
    +                ? fixRoundingError(powVal, originalExtent[1])
    +                : powVal;
    +
    +            return powVal;
    +        }, this);
    +    },
    +
    +    /**
    +     * @param {number} val
    +     * @return {string}
    +     */
    +    getLabel: intervalScaleProto$1.getLabel,
    +
    +    /**
    +     * @param  {number} val
    +     * @return {number}
    +     */
    +    scale: function (val) {
    +        val = scaleProto$1.scale.call(this, val);
    +        return mathPow$1(this.base, val);
    +    },
    +
    +    /**
    +     * @param {number} start
    +     * @param {number} end
    +     */
    +    setExtent: function (start, end) {
    +        var base = this.base;
    +        start = mathLog(start) / mathLog(base);
    +        end = mathLog(end) / mathLog(base);
    +        intervalScaleProto$1.setExtent.call(this, start, end);
    +    },
    +
    +    /**
    +     * @return {number} end
    +     */
    +    getExtent: function () {
    +        var base = this.base;
    +        var extent = scaleProto$1.getExtent.call(this);
    +        extent[0] = mathPow$1(base, extent[0]);
    +        extent[1] = mathPow$1(base, extent[1]);
    +
    +        // Fix #4158
    +        var originalScale = this._originalScale;
    +        var originalExtent = originalScale.getExtent();
    +        originalScale.__fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0]));
    +        originalScale.__fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1]));
    +
    +        return extent;
    +    },
    +
    +    /**
    +     * @param  {Array.<number>} extent
    +     */
    +    unionExtent: function (extent) {
    +        this._originalScale.unionExtent(extent);
    +
    +        var base = this.base;
    +        extent[0] = mathLog(extent[0]) / mathLog(base);
    +        extent[1] = mathLog(extent[1]) / mathLog(base);
    +        scaleProto$1.unionExtent.call(this, extent);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    unionExtentFromData: function (data, dim) {
    +        this.unionExtent(data.getDataExtent(dim, true, function (val) {
    +            return val > 0;
    +        }));
    +    },
    +
    +    /**
    +     * Update interval and extent of intervals for nice ticks
    +     * @param  {number} [approxTickNum = 10] Given approx tick number
    +     */
    +    niceTicks: function (approxTickNum) {
    +        approxTickNum = approxTickNum || 10;
    +        var extent = this._extent;
    +        var span = extent[1] - extent[0];
    +        if (span === Infinity || span <= 0) {
    +            return;
    +        }
    +
    +        var interval = quantity(span);
    +        var err = approxTickNum / span * interval;
    +
    +        // Filter ticks to get closer to the desired count.
    +        if (err <= 0.5) {
    +            interval *= 10;
    +        }
    +
    +        // Interval should be integer
    +        while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) {
    +            interval *= 10;
    +        }
    +
    +        var niceExtent = [
    +            round(mathCeil$1(extent[0] / interval) * interval),
    +            round(mathFloor$1(extent[1] / interval) * interval)
    +        ];
    +
    +        this._interval = interval;
    +        this._niceExtent = niceExtent;
    +    },
    +
    +    /**
    +     * Nice extent.
    +     * @override
    +     */
    +    niceExtent: function (opt) {
    +        intervalScaleProto$1.niceExtent.call(this, opt);
    +
    +        var originalScale = this._originalScale;
    +        originalScale.__fixMin = opt.fixMin;
    +        originalScale.__fixMax = opt.fixMax;
    +    }
    +
    +});
    +
    +each$1(['contain', 'normalize'], function (methodName) {
    +    LogScale.prototype[methodName] = function (val) {
    +        val = mathLog(val) / mathLog(this.base);
    +        return scaleProto$1[methodName].call(this, val);
    +    };
    +});
    +
    +LogScale.create = function () {
    +    return new LogScale();
    +};
    +
    +function fixRoundingError(val, originalVal) {
    +    return roundingErrorFix(val, getPrecisionSafe$1(originalVal));
    +}
    +
    +/**
    + * Get axis scale extent before niced.
    + * Item of returned array can only be number (including Infinity and NaN).
    + */
    +function getScaleExtent(scale, model) {
    +    var scaleType = scale.type;
    +
    +    var min = model.getMin();
    +    var max = model.getMax();
    +    var fixMin = min != null;
    +    var fixMax = max != null;
    +    var originalExtent = scale.getExtent();
    +
    +    var axisDataLen;
    +    var boundaryGap;
    +    var span;
    +    if (scaleType === 'ordinal') {
    +        axisDataLen = (model.get('data') || []).length;
    +    }
    +    else {
    +        boundaryGap = model.get('boundaryGap');
    +        if (!isArray(boundaryGap)) {
    +            boundaryGap = [boundaryGap || 0, boundaryGap || 0];
    +        }
    +        if (typeof boundaryGap[0] === 'boolean') {
    +            if (__DEV__) {
    +                console.warn('Boolean type for boundaryGap is only '
    +                    + 'allowed for ordinal axis. Please use string in '
    +                    + 'percentage instead, e.g., "20%". Currently, '
    +                    + 'boundaryGap is set to be 0.');
    +            }
    +            boundaryGap = [0, 0];
    +        }
    +        boundaryGap[0] = parsePercent$1(boundaryGap[0], 1);
    +        boundaryGap[1] = parsePercent$1(boundaryGap[1], 1);
    +        span = (originalExtent[1] - originalExtent[0])
    +            || Math.abs(originalExtent[0]);
    +    }
    +
    +    // Notice: When min/max is not set (that is, when there are null/undefined,
    +    // which is the most common case), these cases should be ensured:
    +    // (1) For 'ordinal', show all axis.data.
    +    // (2) For others:
    +    //      + `boundaryGap` is applied (if min/max set, boundaryGap is
    +    //      disabled).
    +    //      + If `needCrossZero`, min/max should be zero, otherwise, min/max should
    +    //      be the result that originalExtent enlarged by boundaryGap.
    +    // (3) If no data, it should be ensured that `scale.setBlank` is set.
    +
    +    // FIXME
    +    // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?
    +    // (2) When `needCrossZero` and all data is positive/negative, should it be ensured
    +    // that the results processed by boundaryGap are positive/negative?
    +
    +    if (min == null) {
    +        min = scaleType === 'ordinal'
    +            ? (axisDataLen ? 0 : NaN)
    +            : originalExtent[0] - boundaryGap[0] * span;
    +    }
    +    if (max == null) {
    +        max = scaleType === 'ordinal'
    +            ? (axisDataLen ? axisDataLen - 1 : NaN)
    +            : originalExtent[1] + boundaryGap[1] * span;
    +    }
    +
    +    if (min === 'dataMin') {
    +        min = originalExtent[0];
    +    }
    +    else if (typeof min === 'function') {
    +        min = min({
    +            min: originalExtent[0],
    +            max: originalExtent[1]
    +        });
    +    }
    +
    +    if (max === 'dataMax') {
    +        max = originalExtent[1];
    +    }
    +    else if (typeof max === 'function') {
    +        max = max({
    +            min: originalExtent[0],
    +            max: originalExtent[1]
    +        });
    +    }
    +
    +    (min == null || !isFinite(min)) && (min = NaN);
    +    (max == null || !isFinite(max)) && (max = NaN);
    +
    +    scale.setBlank(eqNaN(min) || eqNaN(max));
    +
    +    // Evaluate if axis needs cross zero
    +    if (model.getNeedCrossZero()) {
    +        // Axis is over zero and min is not set
    +        if (min > 0 && max > 0 && !fixMin) {
    +            min = 0;
    +        }
    +        // Axis is under zero and max is not set
    +        if (min < 0 && max < 0 && !fixMax) {
    +            max = 0;
    +        }
    +    }
    +
    +    return [min, max];
    +}
    +
    +function niceScaleExtent(scale, model) {
    +    var extent = getScaleExtent(scale, model);
    +    var fixMin = model.getMin() != null;
    +    var fixMax = model.getMax() != null;
    +    var splitNumber = model.get('splitNumber');
    +
    +    if (scale.type === 'log') {
    +        scale.base = model.get('logBase');
    +    }
    +
    +    var scaleType = scale.type;
    +    scale.setExtent(extent[0], extent[1]);
    +    scale.niceExtent({
    +        splitNumber: splitNumber,
    +        fixMin: fixMin,
    +        fixMax: fixMax,
    +        minInterval: (scaleType === 'interval' || scaleType === 'time')
    +            ? model.get('minInterval') : null,
    +        maxInterval: (scaleType === 'interval' || scaleType === 'time')
    +            ? model.get('maxInterval') : null
    +    });
    +
    +    // If some one specified the min, max. And the default calculated interval
    +    // is not good enough. He can specify the interval. It is often appeared
    +    // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard
    +    // to be 60.
    +    // FIXME
    +    var interval = model.get('interval');
    +    if (interval != null) {
    +        scale.setInterval && scale.setInterval(interval);
    +    }
    +}
    +
    +/**
    + * @param {module:echarts/model/Model} model
    + * @param {string} [axisType] Default retrieve from model.type
    + * @return {module:echarts/scale/*}
    + */
    +function createScaleByModel(model, axisType) {
    +    axisType = axisType || model.get('type');
    +    if (axisType) {
    +        switch (axisType) {
    +            // Buildin scale
    +            case 'category':
    +                return new OrdinalScale(
    +                    model.getCategories(), [Infinity, -Infinity]
    +                );
    +            case 'value':
    +                return new IntervalScale();
    +            // Extended scale, like time and log
    +            default:
    +                return (Scale.getClass(axisType) || IntervalScale).create(model);
    +        }
    +    }
    +}
    +
    +/**
    + * Check if the axis corss 0
    + */
    +function ifAxisCrossZero(axis) {
    +    var dataExtent = axis.scale.getExtent();
    +    var min = dataExtent[0];
    +    var max = dataExtent[1];
    +    return !((min > 0 && max > 0) || (min < 0 && max < 0));
    +}
    +
    +/**
    + * @param {Array.<number>} tickCoords In axis self coordinate.
    + * @param {Array.<string>} labels
    + * @param {string} font
    + * @param {number} axisRotate 0: towards right horizontally, clock-wise is negative.
    + * @param {number} [labelRotate=0] 0: towards right horizontally, clock-wise is negative.
    + * @return {number}
    + */
    +function getAxisLabelInterval(tickCoords, labels, font, axisRotate, labelRotate) {
    +    var textSpaceTakenRect;
    +    var autoLabelInterval = 0;
    +    var accumulatedLabelInterval = 0;
    +    var rotation = (axisRotate - labelRotate) / 180 * Math.PI;
    +
    +    var step = 1;
    +    if (labels.length > 40) {
    +        // Simple optimization for large amount of labels
    +        step = Math.floor(labels.length / 40);
    +    }
    +
    +    for (var i = 0; i < tickCoords.length; i += step) {
    +        var tickCoord = tickCoords[i];
    +
    +        // Not precise, do not consider align and vertical align
    +        // and each distance from axis line yet.
    +        var rect = getBoundingRect(
    +            labels[i], font, 'center', 'top'
    +        );
    +        rect.x += tickCoord * Math.cos(rotation);
    +        rect.y += tickCoord * Math.sin(rotation);
    +
    +        // Magic number
    +        rect.width *= 1.3;
    +        rect.height *= 1.3;
    +
    +        if (!textSpaceTakenRect) {
    +            textSpaceTakenRect = rect.clone();
    +        }
    +        // There is no space for current label;
    +        else if (textSpaceTakenRect.intersect(rect)) {
    +            accumulatedLabelInterval++;
    +            autoLabelInterval = Math.max(autoLabelInterval, accumulatedLabelInterval);
    +        }
    +        else {
    +            textSpaceTakenRect.union(rect);
    +            // Reset
    +            accumulatedLabelInterval = 0;
    +        }
    +    }
    +    if (autoLabelInterval === 0 && step > 1) {
    +        return step;
    +    }
    +    return (autoLabelInterval + 1) * step - 1;
    +}
    +
    +/**
    + * @param {Object} axis
    + * @param {Function} labelFormatter
    + * @return {Array.<string>}
    + */
    +function getFormattedLabels(axis, labelFormatter) {
    +    var scale = axis.scale;
    +    var labels = scale.getTicksLabels();
    +    var ticks = scale.getTicks();
    +    if (typeof labelFormatter === 'string') {
    +        labelFormatter = (function (tpl) {
    +            return function (val) {
    +                return tpl.replace('{value}', val != null ? val : '');
    +            };
    +        })(labelFormatter);
    +        // Consider empty array
    +        return map(labels, labelFormatter);
    +    }
    +    else if (typeof labelFormatter === 'function') {
    +        return map(ticks, function (tick, idx) {
    +            return labelFormatter(
    +                getAxisRawValue(axis, tick),
    +                idx
    +            );
    +        }, this);
    +    }
    +    else {
    +        return labels;
    +    }
    +}
    +
    +function getAxisRawValue(axis, value) {
    +    // In category axis with data zoom, tick is not the original
    +    // index of axis.data. So tick should not be exposed to user
    +    // in category axis.
    +    return axis.type === 'category' ? axis.scale.getLabel(value) : value;
    +}
    +
    +function getName(obj) {
    +    if (isObject(obj) && obj.value != null) {
    +        return obj.value;
    +    }
    +    else {
    +        return obj + '';
    +    }
    +}
    +
    +var axisModelCommonMixin = {
    +
    +    /**
    +     * Format labels
    +     * @return {Array.<string>}
    +     */
    +    getFormattedLabels: function () {
    +        return getFormattedLabels(
    +            this.axis,
    +            this.get('axisLabel.formatter')
    +        );
    +    },
    +
    +    /**
    +     * Get categories
    +     */
    +    getCategories: function () {
    +        return this.get('type') === 'category'
    +            && map(this.get('data'), getName);
    +    },
    +
    +    /**
    +     * @param {boolean} origin
    +     * @return {number|string} min value or 'dataMin' or null/undefined (means auto) or NaN
    +     */
    +    getMin: function (origin) {
    +        var option = this.option;
    +        var min = (!origin && option.rangeStart != null)
    +            ? option.rangeStart : option.min;
    +
    +        if (this.axis
    +            && min != null
    +            && min !== 'dataMin'
    +            && typeof min !== 'function'
    +            && !eqNaN(min)
    +        ) {
    +            min = this.axis.scale.parse(min);
    +        }
    +        return min;
    +    },
    +
    +    /**
    +     * @param {boolean} origin
    +     * @return {number|string} max value or 'dataMax' or null/undefined (means auto) or NaN
    +     */
    +    getMax: function (origin) {
    +        var option = this.option;
    +        var max = (!origin && option.rangeEnd != null)
    +            ? option.rangeEnd : option.max;
    +
    +        if (this.axis
    +            && max != null
    +            && max !== 'dataMax'
    +            && typeof max !== 'function'
    +            && !eqNaN(max)
    +        ) {
    +            max = this.axis.scale.parse(max);
    +        }
    +        return max;
    +    },
    +
    +    /**
    +     * @return {boolean}
    +     */
    +    getNeedCrossZero: function () {
    +        var option = this.option;
    +        return (option.rangeStart != null || option.rangeEnd != null)
    +            ? false : !option.scale;
    +    },
    +
    +    /**
    +     * Should be implemented by each axis model if necessary.
    +     * @return {module:echarts/model/Component} coordinate system model
    +     */
    +    getCoordSysModel: noop,
    +
    +    /**
    +     * @param {number} rangeStart Can only be finite number or null/undefined or NaN.
    +     * @param {number} rangeEnd Can only be finite number or null/undefined or NaN.
    +     */
    +    setRange: function (rangeStart, rangeEnd) {
    +        this.option.rangeStart = rangeStart;
    +        this.option.rangeEnd = rangeEnd;
    +    },
    +
    +    /**
    +     * Reset range
    +     */
    +    resetRange: function () {
    +        // rangeStart and rangeEnd is readonly.
    +        this.option.rangeStart = this.option.rangeEnd = null;
    +    }
    +};
    +
    +// Symbol factory
    +
    +/**
    + * Triangle shape
    + * @inner
    + */
    +var Triangle = extendShape({
    +    type: 'triangle',
    +    shape: {
    +        cx: 0,
    +        cy: 0,
    +        width: 0,
    +        height: 0
    +    },
    +    buildPath: function (path, shape) {
    +        var cx = shape.cx;
    +        var cy = shape.cy;
    +        var width = shape.width / 2;
    +        var height = shape.height / 2;
    +        path.moveTo(cx, cy - height);
    +        path.lineTo(cx + width, cy + height);
    +        path.lineTo(cx - width, cy + height);
    +        path.closePath();
    +    }
    +});
    +
    +/**
    + * Diamond shape
    + * @inner
    + */
    +var Diamond = extendShape({
    +    type: 'diamond',
    +    shape: {
    +        cx: 0,
    +        cy: 0,
    +        width: 0,
    +        height: 0
    +    },
    +    buildPath: function (path, shape) {
    +        var cx = shape.cx;
    +        var cy = shape.cy;
    +        var width = shape.width / 2;
    +        var height = shape.height / 2;
    +        path.moveTo(cx, cy - height);
    +        path.lineTo(cx + width, cy);
    +        path.lineTo(cx, cy + height);
    +        path.lineTo(cx - width, cy);
    +        path.closePath();
    +    }
    +});
    +
    +/**
    + * Pin shape
    + * @inner
    + */
    +var Pin = extendShape({
    +    type: 'pin',
    +    shape: {
    +        // x, y on the cusp
    +        x: 0,
    +        y: 0,
    +        width: 0,
    +        height: 0
    +    },
    +
    +    buildPath: function (path, shape) {
    +        var x = shape.x;
    +        var y = shape.y;
    +        var w = shape.width / 5 * 3;
    +        // Height must be larger than width
    +        var h = Math.max(w, shape.height);
    +        var r = w / 2;
    +
    +        // Dist on y with tangent point and circle center
    +        var dy = r * r / (h - r);
    +        var cy = y - h + r + dy;
    +        var angle = Math.asin(dy / r);
    +        // Dist on x with tangent point and circle center
    +        var dx = Math.cos(angle) * r;
    +
    +        var tanX = Math.sin(angle);
    +        var tanY = Math.cos(angle);
    +
    +        var cpLen = r * 0.6;
    +        var cpLen2 = r * 0.7;
    +
    +        path.moveTo(x - dx, cy + dy);
    +
    +        path.arc(
    +            x, cy, r,
    +            Math.PI - angle,
    +            Math.PI * 2 + angle
    +        );
    +        path.bezierCurveTo(
    +            x + dx - tanX * cpLen, cy + dy + tanY * cpLen,
    +            x, y - cpLen2,
    +            x, y
    +        );
    +        path.bezierCurveTo(
    +            x, y - cpLen2,
    +            x - dx + tanX * cpLen, cy + dy + tanY * cpLen,
    +            x - dx, cy + dy
    +        );
    +        path.closePath();
    +    }
    +});
    +
    +/**
    + * Arrow shape
    + * @inner
    + */
    +var Arrow = extendShape({
    +
    +    type: 'arrow',
    +
    +    shape: {
    +        x: 0,
    +        y: 0,
    +        width: 0,
    +        height: 0
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var height = shape.height;
    +        var width = shape.width;
    +        var x = shape.x;
    +        var y = shape.y;
    +        var dx = width / 3 * 2;
    +        ctx.moveTo(x, y);
    +        ctx.lineTo(x + dx, y + height);
    +        ctx.lineTo(x, y + height / 4 * 3);
    +        ctx.lineTo(x - dx, y + height);
    +        ctx.lineTo(x, y);
    +        ctx.closePath();
    +    }
    +});
    +
    +/**
    + * Map of path contructors
    + * @type {Object.<string, module:zrender/graphic/Path>}
    + */
    +var symbolCtors = {
    +
    +    line: Line,
    +
    +    rect: Rect,
    +
    +    roundRect: Rect,
    +
    +    square: Rect,
    +
    +    circle: Circle,
    +
    +    diamond: Diamond,
    +
    +    pin: Pin,
    +
    +    arrow: Arrow,
    +
    +    triangle: Triangle
    +};
    +
    +var symbolShapeMakers = {
    +
    +    line: function (x, y, w, h, shape) {
    +        // FIXME
    +        shape.x1 = x;
    +        shape.y1 = y + h / 2;
    +        shape.x2 = x + w;
    +        shape.y2 = y + h / 2;
    +    },
    +
    +    rect: function (x, y, w, h, shape) {
    +        shape.x = x;
    +        shape.y = y;
    +        shape.width = w;
    +        shape.height = h;
    +    },
    +
    +    roundRect: function (x, y, w, h, shape) {
    +        shape.x = x;
    +        shape.y = y;
    +        shape.width = w;
    +        shape.height = h;
    +        shape.r = Math.min(w, h) / 4;
    +    },
    +
    +    square: function (x, y, w, h, shape) {
    +        var size = Math.min(w, h);
    +        shape.x = x;
    +        shape.y = y;
    +        shape.width = size;
    +        shape.height = size;
    +    },
    +
    +    circle: function (x, y, w, h, shape) {
    +        // Put circle in the center of square
    +        shape.cx = x + w / 2;
    +        shape.cy = y + h / 2;
    +        shape.r = Math.min(w, h) / 2;
    +    },
    +
    +    diamond: function (x, y, w, h, shape) {
    +        shape.cx = x + w / 2;
    +        shape.cy = y + h / 2;
    +        shape.width = w;
    +        shape.height = h;
    +    },
    +
    +    pin: function (x, y, w, h, shape) {
    +        shape.x = x + w / 2;
    +        shape.y = y + h / 2;
    +        shape.width = w;
    +        shape.height = h;
    +    },
    +
    +    arrow: function (x, y, w, h, shape) {
    +        shape.x = x + w / 2;
    +        shape.y = y + h / 2;
    +        shape.width = w;
    +        shape.height = h;
    +    },
    +
    +    triangle: function (x, y, w, h, shape) {
    +        shape.cx = x + w / 2;
    +        shape.cy = y + h / 2;
    +        shape.width = w;
    +        shape.height = h;
    +    }
    +};
    +
    +var symbolBuildProxies = {};
    +each$1(symbolCtors, function (Ctor, name) {
    +    symbolBuildProxies[name] = new Ctor();
    +});
    +
    +var SymbolClz = extendShape({
    +
    +    type: 'symbol',
    +
    +    shape: {
    +        symbolType: '',
    +        x: 0,
    +        y: 0,
    +        width: 0,
    +        height: 0
    +    },
    +
    +    beforeBrush: function () {
    +        var style = this.style;
    +        var shape = this.shape;
    +        // FIXME
    +        if (shape.symbolType === 'pin' && style.textPosition === 'inside') {
    +            style.textPosition = ['50%', '40%'];
    +            style.textAlign = 'center';
    +            style.textVerticalAlign = 'middle';
    +        }
    +    },
    +
    +    buildPath: function (ctx, shape, inBundle) {
    +        var symbolType = shape.symbolType;
    +        var proxySymbol = symbolBuildProxies[symbolType];
    +        if (shape.symbolType !== 'none') {
    +            if (!proxySymbol) {
    +                // Default rect
    +                symbolType = 'rect';
    +                proxySymbol = symbolBuildProxies[symbolType];
    +            }
    +            symbolShapeMakers[symbolType](
    +                shape.x, shape.y, shape.width, shape.height, proxySymbol.shape
    +            );
    +            proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle);
    +        }
    +    }
    +});
    +
    +// Provide setColor helper method to avoid determine if set the fill or stroke outside
    +function symbolPathSetColor(color, innerColor) {
    +    if (this.type !== 'image') {
    +        var symbolStyle = this.style;
    +        var symbolShape = this.shape;
    +        if (symbolShape && symbolShape.symbolType === 'line') {
    +            symbolStyle.stroke = color;
    +        }
    +        else if (this.__isEmptyBrush) {
    +            symbolStyle.stroke = color;
    +            symbolStyle.fill = innerColor || '#fff';
    +        }
    +        else {
    +            // FIXME 判断图形默认是填充还是描边,使用 onlyStroke ?
    +            symbolStyle.fill && (symbolStyle.fill = color);
    +            symbolStyle.stroke && (symbolStyle.stroke = color);
    +        }
    +        this.dirty(false);
    +    }
    +}
    +
    +/**
    + * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
    + * @param {string} symbolType
    + * @param {number} x
    + * @param {number} y
    + * @param {number} w
    + * @param {number} h
    + * @param {string} color
    + * @param {boolean} [keepAspect=false] whether to keep the ratio of w/h,
    + *                            for path and image only.
    + */
    +function createSymbol(symbolType, x, y, w, h, color, keepAspect) {
    +    // TODO Support image object, DynamicImage.
    +
    +    var isEmpty = symbolType.indexOf('empty') === 0;
    +    if (isEmpty) {
    +        symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);
    +    }
    +    var symbolPath;
    +
    +    if (symbolType.indexOf('image://') === 0) {
    +        symbolPath = makeImage(
    +            symbolType.slice(8),
    +            new BoundingRect(x, y, w, h),
    +            keepAspect ? 'center' : 'cover'
    +        );
    +    }
    +    else if (symbolType.indexOf('path://') === 0) {
    +        symbolPath = makePath(
    +            symbolType.slice(7),
    +            {},
    +            new BoundingRect(x, y, w, h),
    +            keepAspect ? 'center' : 'cover'
    +        );
    +    }
    +    else {
    +        symbolPath = new SymbolClz({
    +            shape: {
    +                symbolType: symbolType,
    +                x: x,
    +                y: y,
    +                width: w,
    +                height: h
    +            }
    +        });
    +    }
    +
    +    symbolPath.__isEmptyBrush = isEmpty;
    +
    +    symbolPath.setColor = symbolPathSetColor;
    +
    +    symbolPath.setColor(color);
    +
    +    return symbolPath;
    +}
    +
    +/**
    + * Create a muti dimension List structure from seriesModel.
    + * @param  {module:echarts/model/Model} seriesModel
    + * @return {module:echarts/data/List} list
    + */
    +function createList(seriesModel) {
    +    var data = seriesModel.get('data');
    +    return createListFromArray(data, seriesModel, seriesModel.ecModel);
    +}
    +
    +/**
    + * Create scale
    + * @param {Array.<number>} dataExtent
    + * @param {Object|module:echarts/Model} option
    + */
    +function createScale(dataExtent, option) {
    +    var axisModel = option;
    +    if (!(option instanceof Model)) {
    +        axisModel = new Model(option);
    +        mixin(axisModel, axisModelCommonMixin);
    +    }
    +
    +    var scale = createScaleByModel(axisModel);
    +    scale.setExtent(dataExtent[0], dataExtent[1]);
    +
    +    niceScaleExtent(scale, axisModel);
    +    return scale;
    +}
    +
    +/**
    + * Mixin common methods to axis model,
    + *
    + * Inlcude methods
    + * `getFormattedLabels() => Array.<string>`
    + * `getCategories() => Array.<string>`
    + * `getMin(origin: boolean) => number`
    + * `getMax(origin: boolean) => number`
    + * `getNeedCrossZero() => boolean`
    + * `setRange(start: number, end: number)`
    + * `resetRange()`
    + */
    +function mixinAxisModelCommonMethods(Model$$1) {
    +    mixin(Model$$1, axisModelCommonMixin);
    +}
    +
    +var helper = (Object.freeze || Object)({
    +	createList: createList,
    +	createScale: createScale,
    +	mixinAxisModelCommonMethods: mixinAxisModelCommonMethods,
    +	completeDimensions: completeDimensions,
    +	createSymbol: createSymbol
    +});
    +
    +var linearMap$1 = linearMap;
    +
    +function fixExtentWithBands(extent, nTick) {
    +    var size = extent[1] - extent[0];
    +    var len = nTick;
    +    var margin = size / len / 2;
    +    extent[0] += margin;
    +    extent[1] -= margin;
    +}
    +
    +var normalizedExtent = [0, 1];
    +/**
    + * @name module:echarts/coord/CartesianAxis
    + * @constructor
    + */
    +var Axis = function (dim, scale, extent) {
    +
    +    /**
    +     * Axis dimension. Such as 'x', 'y', 'z', 'angle', 'radius'
    +     * @type {string}
    +     */
    +    this.dim = dim;
    +
    +    /**
    +     * Axis scale
    +     * @type {module:echarts/coord/scale/*}
    +     */
    +    this.scale = scale;
    +
    +    /**
    +     * @type {Array.<number>}
    +     * @private
    +     */
    +    this._extent = extent || [0, 0];
    +
    +    /**
    +     * @type {boolean}
    +     */
    +    this.inverse = false;
    +
    +    /**
    +     * Usually true when axis has a ordinal scale
    +     * @type {boolean}
    +     */
    +    this.onBand = false;
    +
    +    /**
    +     * @private
    +     * @type {number}
    +     */
    +    this._labelInterval;
    +};
    +
    +Axis.prototype = {
    +
    +    constructor: Axis,
    +
    +    /**
    +     * If axis extent contain given coord
    +     * @param {number} coord
    +     * @return {boolean}
    +     */
    +    contain: function (coord) {
    +        var extent = this._extent;
    +        var min = Math.min(extent[0], extent[1]);
    +        var max = Math.max(extent[0], extent[1]);
    +        return coord >= min && coord <= max;
    +    },
    +
    +    /**
    +     * If axis extent contain given data
    +     * @param {number} data
    +     * @return {boolean}
    +     */
    +    containData: function (data) {
    +        return this.contain(this.dataToCoord(data));
    +    },
    +
    +    /**
    +     * Get coord extent.
    +     * @return {Array.<number>}
    +     */
    +    getExtent: function () {
    +        return this._extent.slice();
    +    },
    +
    +    /**
    +     * Get precision used for formatting
    +     * @param {Array.<number>} [dataExtent]
    +     * @return {number}
    +     */
    +    getPixelPrecision: function (dataExtent) {
    +        return getPixelPrecision(
    +            dataExtent || this.scale.getExtent(),
    +            this._extent
    +        );
    +    },
    +
    +    /**
    +     * Set coord extent
    +     * @param {number} start
    +     * @param {number} end
    +     */
    +    setExtent: function (start, end) {
    +        var extent = this._extent;
    +        extent[0] = start;
    +        extent[1] = end;
    +    },
    +
    +    /**
    +     * Convert data to coord. Data is the rank if it has a ordinal scale
    +     * @param {number} data
    +     * @param  {boolean} clamp
    +     * @return {number}
    +     */
    +    dataToCoord: function (data, clamp) {
    +        var extent = this._extent;
    +        var scale = this.scale;
    +        data = scale.normalize(data);
    +
    +        if (this.onBand && scale.type === 'ordinal') {
    +            extent = extent.slice();
    +            fixExtentWithBands(extent, scale.count());
    +        }
    +
    +        return linearMap$1(data, normalizedExtent, extent, clamp);
    +    },
    +
    +    /**
    +     * Convert coord to data. Data is the rank if it has a ordinal scale
    +     * @param {number} coord
    +     * @param  {boolean} clamp
    +     * @return {number}
    +     */
    +    coordToData: function (coord, clamp) {
    +        var extent = this._extent;
    +        var scale = this.scale;
    +
    +        if (this.onBand && scale.type === 'ordinal') {
    +            extent = extent.slice();
    +            fixExtentWithBands(extent, scale.count());
    +        }
    +
    +        var t = linearMap$1(coord, extent, normalizedExtent, clamp);
    +
    +        return this.scale.scale(t);
    +    },
    +
    +    /**
    +     * Convert pixel point to data in axis
    +     * @param {Array.<number>} point
    +     * @param  {boolean} clamp
    +     * @return {number} data
    +     */
    +    pointToData: function (point, clamp) {
    +        // Should be implemented in derived class if necessary.
    +    },
    +
    +    /**
    +     * @return {Array.<number>}
    +     */
    +    getTicksCoords: function (alignWithLabel) {
    +        if (this.onBand && !alignWithLabel) {
    +            var bands = this.getBands();
    +            var coords = [];
    +            for (var i = 0; i < bands.length; i++) {
    +                coords.push(bands[i][0]);
    +            }
    +            if (bands[i - 1]) {
    +                coords.push(bands[i - 1][1]);
    +            }
    +            return coords;
    +        }
    +        else {
    +            return map(this.scale.getTicks(), this.dataToCoord, this);
    +        }
    +    },
    +
    +    /**
    +     * Coords of labels are on the ticks or on the middle of bands
    +     * @return {Array.<number>}
    +     */
    +    getLabelsCoords: function () {
    +        return map(this.scale.getTicks(), this.dataToCoord, this);
    +    },
    +
    +    /**
    +     * Get bands.
    +     *
    +     * If axis has labels [1, 2, 3, 4]. Bands on the axis are
    +     * |---1---|---2---|---3---|---4---|.
    +     *
    +     * @return {Array}
    +     */
    +        // FIXME Situation when labels is on ticks
    +    getBands: function () {
    +        var extent = this.getExtent();
    +        var bands = [];
    +        var len = this.scale.count();
    +        var start = extent[0];
    +        var end = extent[1];
    +        var span = end - start;
    +
    +        for (var i = 0; i < len; i++) {
    +            bands.push([
    +                span * i / len + start,
    +                span * (i + 1) / len + start
    +            ]);
    +        }
    +        return bands;
    +    },
    +
    +    /**
    +     * Get width of band
    +     * @return {number}
    +     */
    +    getBandWidth: function () {
    +        var axisExtent = this._extent;
    +        var dataExtent = this.scale.getExtent();
    +
    +        var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0);
    +        // Fix #2728, avoid NaN when only one data.
    +        len === 0 && (len = 1);
    +
    +        var size = Math.abs(axisExtent[1] - axisExtent[0]);
    +
    +        return Math.abs(size) / len;
    +    },
    +
    +    /**
    +     * @abstract
    +     * @return {boolean} Is horizontal
    +     */
    +    isHorizontal: null,
    +
    +    /**
    +     * @abstract
    +     * @return {number} Get axis rotate, by degree.
    +     */
    +    getRotate: null,
    +
    +    /**
    +     * Get interval of the axis label.
    +     * To get precise result, at least one of `getRotate` and `isHorizontal`
    +     * should be implemented.
    +     * @return {number}
    +     */
    +    getLabelInterval: function () {
    +        var labelInterval = this._labelInterval;
    +        if (!labelInterval) {
    +            var axisModel = this.model;
    +            var labelModel = axisModel.getModel('axisLabel');
    +            labelInterval = labelModel.get('interval');
    +
    +            if (this.type === 'category'
    +                && (labelInterval == null || labelInterval === 'auto')
    +            ) {
    +                labelInterval = getAxisLabelInterval(
    +                    map(this.scale.getTicks(), this.dataToCoord, this),
    +                    axisModel.getFormattedLabels(),
    +                    labelModel.getFont(),
    +                    this.getRotate
    +                        ? this.getRotate()
    +                        : (this.isHorizontal && !this.isHorizontal())
    +                        ? 90
    +                        : 0,
    +                    labelModel.get('rotate')
    +                );
    +            }
    +
    +            this._labelInterval = labelInterval;
    +        }
    +        return labelInterval;
    +    }
    +
    +};
    +
    +var EPSILON$3 = 1e-8;
    +
    +function isAroundEqual$1(a, b) {
    +    return Math.abs(a - b) < EPSILON$3;
    +}
    +
    +function contain$1(points, x, y) {
    +    var w = 0;
    +    var p = points[0];
    +
    +    if (!p) {
    +        return false;
    +    }
    +
    +    for (var i = 1; i < points.length; i++) {
    +        var p2 = points[i];
    +        w += windingLine(p[0], p[1], p2[0], p2[1], x, y);
    +        p = p2;
    +    }
    +
    +    // Close polygon
    +    var p0 = points[0];
    +    if (!isAroundEqual$1(p[0], p0[0]) || !isAroundEqual$1(p[1], p0[1])) {
    +        w += windingLine(p[0], p[1], p0[0], p0[1], x, y);
    +    }
    +
    +    return w !== 0;
    +}
    +
    +/**
    + * @module echarts/coord/geo/Region
    + */
    +
    +/**
    + * @param {string} name
    + * @param {Array} geometries
    + * @param {Array.<number>} cp
    + */
    +function Region(name, geometries, cp) {
    +
    +    /**
    +     * @type {string}
    +     * @readOnly
    +     */
    +    this.name = name;
    +
    +    /**
    +     * @type {Array.<Array>}
    +     * @readOnly
    +     */
    +    this.geometries = geometries;
    +
    +    if (!cp) {
    +        var rect = this.getBoundingRect();
    +        cp = [
    +            rect.x + rect.width / 2,
    +            rect.y + rect.height / 2
    +        ];
    +    }
    +    else {
    +        cp = [cp[0], cp[1]];
    +    }
    +    /**
    +     * @type {Array.<number>}
    +     */
    +    this.center = cp;
    +}
    +
    +Region.prototype = {
    +
    +    constructor: Region,
    +
    +    properties: null,
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getBoundingRect: function () {
    +        var rect = this._rect;
    +        if (rect) {
    +            return rect;
    +        }
    +
    +        var MAX_NUMBER = Number.MAX_VALUE;
    +        var min$$1 = [MAX_NUMBER, MAX_NUMBER];
    +        var max$$1 = [-MAX_NUMBER, -MAX_NUMBER];
    +        var min2 = [];
    +        var max2 = [];
    +        var geometries = this.geometries;
    +        for (var i = 0; i < geometries.length; i++) {
    +            // Only support polygon
    +            if (geometries[i].type !== 'polygon') {
    +                continue;
    +            }
    +            // Doesn't consider hole
    +            var exterior = geometries[i].exterior;
    +            fromPoints(exterior, min2, max2);
    +            min(min$$1, min$$1, min2);
    +            max(max$$1, max$$1, max2);
    +        }
    +        // No data
    +        if (i === 0) {
    +            min$$1[0] = min$$1[1] = max$$1[0] = max$$1[1] = 0;
    +        }
    +
    +        return (this._rect = new BoundingRect(
    +            min$$1[0], min$$1[1], max$$1[0] - min$$1[0], max$$1[1] - min$$1[1]
    +        ));
    +    },
    +
    +    /**
    +     * @param {<Array.<number>} coord
    +     * @return {boolean}
    +     */
    +    contain: function (coord) {
    +        var rect = this.getBoundingRect();
    +        var geometries = this.geometries;
    +        if (!rect.contain(coord[0], coord[1])) {
    +            return false;
    +        }
    +        loopGeo: for (var i = 0, len$$1 = geometries.length; i < len$$1; i++) {
    +            // Only support polygon.
    +            if (geometries[i].type !== 'polygon') {
    +                continue;
    +            }
    +            var exterior = geometries[i].exterior;
    +            var interiors = geometries[i].interiors;
    +            if (contain$1(exterior, coord[0], coord[1])) {
    +                // Not in the region if point is in the hole.
    +                for (var k = 0; k < (interiors ? interiors.length : 0); k++) {
    +                    if (contain$1(interiors[k])) {
    +                        continue loopGeo;
    +                    }
    +                }
    +                return true;
    +            }
    +        }
    +        return false;
    +    },
    +
    +    transformTo: function (x, y, width, height) {
    +        var rect = this.getBoundingRect();
    +        var aspect = rect.width / rect.height;
    +        if (!width) {
    +            width = aspect * height;
    +        }
    +        else if (!height) {
    +            height = width / aspect ;
    +        }
    +        var target = new BoundingRect(x, y, width, height);
    +        var transform = rect.calculateTransform(target);
    +        var geometries = this.geometries;
    +        for (var i = 0; i < geometries.length; i++) {
    +            // Only support polygon.
    +            if (geometries[i].type !== 'polygon') {
    +                continue;
    +            }
    +            var exterior = geometries[i].exterior;
    +            var interiors = geometries[i].interiors;
    +            for (var p = 0; p < exterior.length; p++) {
    +                applyTransform(exterior[p], exterior[p], transform);
    +            }
    +            for (var h = 0; h < (interiors ? interiors.length : 0); h++) {
    +                for (var p = 0; p < interiors[h].length; p++) {
    +                    applyTransform(interiors[h][p], interiors[h][p], transform);
    +                }
    +            }
    +        }
    +        rect = this._rect;
    +        rect.copy(target);
    +        // Update center
    +        this.center = [
    +            rect.x + rect.width / 2,
    +            rect.y + rect.height / 2
    +        ];
    +    }
    +};
    +
    +/**
    + * Parse and decode geo json
    + * @module echarts/coord/geo/parseGeoJson
    + */
    +
    +function decode(json) {
    +    if (!json.UTF8Encoding) {
    +        return json;
    +    }
    +    var encodeScale = json.UTF8Scale;
    +    if (encodeScale == null) {
    +        encodeScale = 1024;
    +    }
    +
    +    var features = json.features;
    +
    +    for (var f = 0; f < features.length; f++) {
    +        var feature = features[f];
    +        var geometry = feature.geometry;
    +        var coordinates = geometry.coordinates;
    +        var encodeOffsets = geometry.encodeOffsets;
    +
    +        for (var c = 0; c < coordinates.length; c++) {
    +            var coordinate = coordinates[c];
    +
    +            if (geometry.type === 'Polygon') {
    +                coordinates[c] = decodePolygon(
    +                    coordinate,
    +                    encodeOffsets[c],
    +                    encodeScale
    +                );
    +            }
    +            else if (geometry.type === 'MultiPolygon') {
    +                for (var c2 = 0; c2 < coordinate.length; c2++) {
    +                    var polygon = coordinate[c2];
    +                    coordinate[c2] = decodePolygon(
    +                        polygon,
    +                        encodeOffsets[c][c2],
    +                        encodeScale
    +                    );
    +                }
    +            }
    +        }
    +    }
    +    // Has been decoded
    +    json.UTF8Encoding = false;
    +    return json;
    +}
    +
    +function decodePolygon(coordinate, encodeOffsets, encodeScale) {
    +    var result = [];
    +    var prevX = encodeOffsets[0];
    +    var prevY = encodeOffsets[1];
    +
    +    for (var i = 0; i < coordinate.length; i += 2) {
    +        var x = coordinate.charCodeAt(i) - 64;
    +        var y = coordinate.charCodeAt(i + 1) - 64;
    +        // ZigZag decoding
    +        x = (x >> 1) ^ (-(x & 1));
    +        y = (y >> 1) ^ (-(y & 1));
    +        // Delta deocding
    +        x += prevX;
    +        y += prevY;
    +
    +        prevX = x;
    +        prevY = y;
    +        // Dequantize
    +        result.push([x / encodeScale, y / encodeScale]);
    +    }
    +
    +    return result;
    +}
    +
    +/**
    + * @alias module:echarts/coord/geo/parseGeoJson
    + * @param {Object} geoJson
    + * @return {module:zrender/container/Group}
    + */
    +var parseGeoJson = function (geoJson) {
    +
    +    decode(geoJson);
    +
    +    return map(filter(geoJson.features, function (featureObj) {
    +        // Output of mapshaper may have geometry null
    +        return featureObj.geometry
    +            && featureObj.properties
    +            && featureObj.geometry.coordinates.length > 0;
    +    }), function (featureObj) {
    +        var properties = featureObj.properties;
    +        var geo = featureObj.geometry;
    +
    +        var coordinates = geo.coordinates;
    +
    +        var geometries = [];
    +        if (geo.type === 'Polygon') {
    +            geometries.push({
    +                type: 'polygon',
    +                // According to the GeoJSON specification.
    +                // First must be exterior, and the rest are all interior(holes).
    +                exterior: coordinates[0],
    +                interiors: coordinates.slice(1)
    +            });
    +        }
    +        if (geo.type === 'MultiPolygon') {
    +            each$1(coordinates, function (item) {
    +                if (item[0]) {
    +                    geometries.push({
    +                        type: 'polygon',
    +                        exterior: item[0],
    +                        interiors: item.slice(1)
    +                    });
    +                }
    +            });
    +        }
    +
    +        var region = new Region(
    +            properties.name,
    +            geometries,
    +            properties.cp
    +        );
    +        region.properties = properties;
    +        return region;
    +    });
    +};
    +
    +/**
    + * Do not mount those modules on 'src/echarts' for better tree shaking.
    + */
    +
    +var ecUtil = {};
    +each$1([
    +        'map', 'each', 'filter', 'indexOf', 'inherits', 'reduce', 'filter',
    +        'bind', 'curry', 'isArray', 'isString', 'isObject', 'isFunction',
    +        'extend', 'defaults', 'clone', 'merge'
    +    ],
    +    function (name) {
    +        ecUtil[name] = zrUtil[name];
    +    }
    +);
    +
    +SeriesModel.extend({
    +
    +    type: 'series.line',
    +
    +    dependencies: ['grid', 'polar'],
    +
    +    getInitialData: function (option, ecModel) {
    +        if (__DEV__) {
    +            var coordSys = option.coordinateSystem;
    +            if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {
    +                throw new Error('Line not support coordinateSystem besides cartesian and polar');
    +            }
    +        }
    +        return createListFromArray(option.data, this, ecModel);
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,                  // 一级层叠
    +        z: 2,                       // 二级层叠
    +        coordinateSystem: 'cartesian2d',
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +        // stack: null
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        // polarIndex: 0,
    +
    +        // If clip the overflow value
    +        clipOverflow: true,
    +        // cursor: null,
    +
    +        label: {
    +            normal: {
    +                position: 'top'
    +            }
    +        },
    +        // itemStyle: {
    +        //     normal: {},
    +        //     emphasis: {}
    +        // },
    +        lineStyle: {
    +            normal: {
    +                width: 2,
    +                type: 'solid'
    +            }
    +        },
    +        // areaStyle: {},
    +        // false, 'start', 'end', 'middle'
    +        step: false,
    +
    +        // Disabled if step is true
    +        smooth: false,
    +        smoothMonotone: null,
    +        // 拐点图形类型
    +        symbol: 'emptyCircle',
    +        // 拐点图形大小
    +        symbolSize: 4,
    +        // 拐点图形旋转控制
    +        symbolRotate: null,
    +
    +        // 是否显示 symbol, 只有在 tooltip hover 的时候显示
    +        showSymbol: true,
    +        // 标志图形默认只有主轴显示(随主轴标签间隔隐藏策略)
    +        showAllSymbol: false,
    +
    +        // 是否连接断点
    +        connectNulls: false,
    +
    +        // 数据过滤,'average', 'max', 'min', 'sum'
    +        sampling: 'none',
    +
    +        animationEasing: 'linear',
    +
    +        // Disable progressive
    +        progressive: 0,
    +        hoverLayerThreshold: Infinity
    +    }
    +});
    +
    +/**
    + * @module echarts/chart/helper/Symbol
    + */
    +
    +function findLabelValueDim(data) {
    +    var valueDim;
    +    var labelDims = otherDimToDataDim(data, 'label');
    +
    +    if (labelDims.length) {
    +        valueDim = labelDims[0];
    +    }
    +    else {
    +        // Get last value dim
    +        var dimensions = data.dimensions.slice();
    +        var dataType;
    +        while (dimensions.length && (
    +            valueDim = dimensions.pop(),
    +            dataType = data.getDimensionInfo(valueDim).type,
    +            dataType === 'ordinal' || dataType === 'time'
    +        )) {} // jshint ignore:line
    +    }
    +
    +    return valueDim;
    +}
    +
    +/**
    + * @module echarts/chart/helper/Symbol
    + */
    +
    +function getSymbolSize(data, idx) {
    +    var symbolSize = data.getItemVisual(idx, 'symbolSize');
    +    return symbolSize instanceof Array
    +        ? symbolSize.slice()
    +        : [+symbolSize, +symbolSize];
    +}
    +
    +function getScale(symbolSize) {
    +    return [symbolSize[0] / 2, symbolSize[1] / 2];
    +}
    +
    +/**
    + * @constructor
    + * @alias {module:echarts/chart/helper/Symbol}
    + * @param {module:echarts/data/List} data
    + * @param {number} idx
    + * @extends {module:zrender/graphic/Group}
    + */
    +function SymbolClz$1(data, idx, seriesScope) {
    +    Group.call(this);
    +
    +    this.updateData(data, idx, seriesScope);
    +}
    +
    +var symbolProto = SymbolClz$1.prototype;
    +
    +function driftSymbol(dx, dy) {
    +    this.parent.drift(dx, dy);
    +}
    +
    +symbolProto._createSymbol = function (symbolType, data, idx, symbolSize) {
    +    // Remove paths created before
    +    this.removeAll();
    +
    +    var color = data.getItemVisual(idx, 'color');
    +
    +    // var symbolPath = createSymbol(
    +    //     symbolType, -0.5, -0.5, 1, 1, color
    +    // );
    +    // If width/height are set too small (e.g., set to 1) on ios10
    +    // and macOS Sierra, a circle stroke become a rect, no matter what
    +    // the scale is set. So we set width/height as 2. See #4150.
    +    var symbolPath = createSymbol(
    +        symbolType, -1, -1, 2, 2, color
    +    );
    +
    +    symbolPath.attr({
    +        z2: 100,
    +        culling: true,
    +        scale: getScale(symbolSize)
    +    });
    +    // Rewrite drift method
    +    symbolPath.drift = driftSymbol;
    +
    +    this._symbolType = symbolType;
    +
    +    this.add(symbolPath);
    +};
    +
    +/**
    + * Stop animation
    + * @param {boolean} toLastFrame
    + */
    +symbolProto.stopSymbolAnimation = function (toLastFrame) {
    +    this.childAt(0).stopAnimation(toLastFrame);
    +};
    +
    +/**
    + * FIXME:
    + * Caution: This method breaks the encapsulation of this module,
    + * but it indeed brings convenience. So do not use the method
    + * unless you detailedly know all the implements of `Symbol`,
    + * especially animation.
    + *
    + * Get symbol path element.
    + */
    +symbolProto.getSymbolPath = function () {
    +    return this.childAt(0);
    +};
    +
    +/**
    + * Get scale(aka, current symbol size).
    + * Including the change caused by animation
    + */
    +symbolProto.getScale = function () {
    +    return this.childAt(0).scale;
    +};
    +
    +/**
    + * Highlight symbol
    + */
    +symbolProto.highlight = function () {
    +    this.childAt(0).trigger('emphasis');
    +};
    +
    +/**
    + * Downplay symbol
    + */
    +symbolProto.downplay = function () {
    +    this.childAt(0).trigger('normal');
    +};
    +
    +/**
    + * @param {number} zlevel
    + * @param {number} z
    + */
    +symbolProto.setZ = function (zlevel, z) {
    +    var symbolPath = this.childAt(0);
    +    symbolPath.zlevel = zlevel;
    +    symbolPath.z = z;
    +};
    +
    +symbolProto.setDraggable = function (draggable) {
    +    var symbolPath = this.childAt(0);
    +    symbolPath.draggable = draggable;
    +    symbolPath.cursor = draggable ? 'move' : 'pointer';
    +};
    +
    +/**
    + * Update symbol properties
    + * @param {module:echarts/data/List} data
    + * @param {number} idx
    + * @param {Object} [seriesScope]
    + * @param {Object} [seriesScope.itemStyle]
    + * @param {Object} [seriesScope.hoverItemStyle]
    + * @param {Object} [seriesScope.symbolRotate]
    + * @param {Object} [seriesScope.symbolOffset]
    + * @param {module:echarts/model/Model} [seriesScope.labelModel]
    + * @param {module:echarts/model/Model} [seriesScope.hoverLabelModel]
    + * @param {boolean} [seriesScope.hoverAnimation]
    + * @param {Object} [seriesScope.cursorStyle]
    + * @param {module:echarts/model/Model} [seriesScope.itemModel]
    + * @param {string} [seriesScope.symbolInnerColor]
    + * @param {Object} [seriesScope.fadeIn=false]
    + */
    +symbolProto.updateData = function (data, idx, seriesScope) {
    +    this.silent = false;
    +
    +    var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
    +    var seriesModel = data.hostModel;
    +    var symbolSize = getSymbolSize(data, idx);
    +    var isInit = symbolType !== this._symbolType;
    +
    +    if (isInit) {
    +        this._createSymbol(symbolType, data, idx, symbolSize);
    +    }
    +    else {
    +        var symbolPath = this.childAt(0);
    +        symbolPath.silent = false;
    +        updateProps(symbolPath, {
    +            scale: getScale(symbolSize)
    +        }, seriesModel, idx);
    +    }
    +
    +    this._updateCommon(data, idx, symbolSize, seriesScope);
    +
    +    if (isInit) {
    +        var symbolPath = this.childAt(0);
    +        var fadeIn = seriesScope && seriesScope.fadeIn;
    +
    +        var target = {scale: symbolPath.scale.slice()};
    +        fadeIn && (target.style = {opacity: symbolPath.style.opacity});
    +
    +        symbolPath.scale = [0, 0];
    +        fadeIn && (symbolPath.style.opacity = 0);
    +
    +        initProps(symbolPath, target, seriesModel, idx);
    +    }
    +
    +    this._seriesModel = seriesModel;
    +};
    +
    +// Update common properties
    +var normalStyleAccessPath = ['itemStyle', 'normal'];
    +var emphasisStyleAccessPath = ['itemStyle', 'emphasis'];
    +var normalLabelAccessPath = ['label', 'normal'];
    +var emphasisLabelAccessPath = ['label', 'emphasis'];
    +
    +/**
    + * @param {module:echarts/data/List} data
    + * @param {number} idx
    + * @param {Array.<number>} symbolSize
    + * @param {Object} [seriesScope]
    + */
    +symbolProto._updateCommon = function (data, idx, symbolSize, seriesScope) {
    +    var symbolPath = this.childAt(0);
    +    var seriesModel = data.hostModel;
    +    var color = data.getItemVisual(idx, 'color');
    +
    +    // Reset style
    +    if (symbolPath.type !== 'image') {
    +        symbolPath.useStyle({
    +            strokeNoScale: true
    +        });
    +    }
    +
    +    var itemStyle = seriesScope && seriesScope.itemStyle;
    +    var hoverItemStyle = seriesScope && seriesScope.hoverItemStyle;
    +    var symbolRotate = seriesScope && seriesScope.symbolRotate;
    +    var symbolOffset = seriesScope && seriesScope.symbolOffset;
    +    var labelModel = seriesScope && seriesScope.labelModel;
    +    var hoverLabelModel = seriesScope && seriesScope.hoverLabelModel;
    +    var hoverAnimation = seriesScope && seriesScope.hoverAnimation;
    +    var cursorStyle = seriesScope && seriesScope.cursorStyle;
    +
    +    if (!seriesScope || data.hasItemOption) {
    +        var itemModel = (seriesScope && seriesScope.itemModel)
    +            ? seriesScope.itemModel : data.getItemModel(idx);
    +
    +        // Color must be excluded.
    +        // Because symbol provide setColor individually to set fill and stroke
    +        itemStyle = itemModel.getModel(normalStyleAccessPath).getItemStyle(['color']);
    +        hoverItemStyle = itemModel.getModel(emphasisStyleAccessPath).getItemStyle();
    +
    +        symbolRotate = itemModel.getShallow('symbolRotate');
    +        symbolOffset = itemModel.getShallow('symbolOffset');
    +
    +        labelModel = itemModel.getModel(normalLabelAccessPath);
    +        hoverLabelModel = itemModel.getModel(emphasisLabelAccessPath);
    +        hoverAnimation = itemModel.getShallow('hoverAnimation');
    +        cursorStyle = itemModel.getShallow('cursor');
    +    }
    +    else {
    +        hoverItemStyle = extend({}, hoverItemStyle);
    +    }
    +
    +    var elStyle = symbolPath.style;
    +
    +    symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0);
    +
    +    if (symbolOffset) {
    +        symbolPath.attr('position', [
    +            parsePercent$1(symbolOffset[0], symbolSize[0]),
    +            parsePercent$1(symbolOffset[1], symbolSize[1])
    +        ]);
    +    }
    +
    +    cursorStyle && symbolPath.attr('cursor', cursorStyle);
    +
    +    // PENDING setColor before setStyle!!!
    +    symbolPath.setColor(color, seriesScope && seriesScope.symbolInnerColor);
    +
    +    symbolPath.setStyle(itemStyle);
    +
    +    var opacity = data.getItemVisual(idx, 'opacity');
    +    if (opacity != null) {
    +        elStyle.opacity = opacity;
    +    }
    +
    +    var useNameLabel = seriesScope && seriesScope.useNameLabel;
    +    var valueDim = !useNameLabel && findLabelValueDim(data);
    +
    +    if (useNameLabel || valueDim != null) {
    +        setLabelStyle(
    +            elStyle, hoverItemStyle, labelModel, hoverLabelModel,
    +            {
    +                labelFetcher: seriesModel,
    +                labelDataIndex: idx,
    +                defaultText: useNameLabel ? data.getName(idx) : data.get(valueDim, idx),
    +                isRectText: true,
    +                autoColor: color
    +            }
    +        );
    +    }
    +
    +    symbolPath.off('mouseover')
    +        .off('mouseout')
    +        .off('emphasis')
    +        .off('normal');
    +
    +    symbolPath.hoverStyle = hoverItemStyle;
    +
    +    // FIXME
    +    // Do not use symbol.trigger('emphasis'), but use symbol.highlight() instead.
    +    setHoverStyle(symbolPath);
    +
    +    var scale = getScale(symbolSize);
    +
    +    if (hoverAnimation && seriesModel.isAnimationEnabled()) {
    +        var onEmphasis = function() {
    +            var ratio = scale[1] / scale[0];
    +            this.animateTo({
    +                scale: [
    +                    Math.max(scale[0] * 1.1, scale[0] + 3),
    +                    Math.max(scale[1] * 1.1, scale[1] + 3 * ratio)
    +                ]
    +            }, 400, 'elasticOut');
    +        };
    +        var onNormal = function() {
    +            this.animateTo({
    +                scale: scale
    +            }, 400, 'elasticOut');
    +        };
    +        symbolPath.on('mouseover', onEmphasis)
    +            .on('mouseout', onNormal)
    +            .on('emphasis', onEmphasis)
    +            .on('normal', onNormal);
    +    }
    +};
    +
    +/**
    + * @param {Function} cb
    + * @param {Object} [opt]
    + * @param {Object} [opt.keepLabel=true]
    + */
    +symbolProto.fadeOut = function (cb, opt) {
    +    var symbolPath = this.childAt(0);
    +    // Avoid mistaken hover when fading out
    +    this.silent = symbolPath.silent = true;
    +    // Not show text when animating
    +    !(opt && opt.keepLabel) && (symbolPath.style.text = null);
    +
    +    updateProps(
    +        symbolPath,
    +        {
    +            style: {opacity: 0},
    +            scale: [0, 0]
    +        },
    +        this._seriesModel,
    +        this.dataIndex,
    +        cb
    +    );
    +};
    +
    +inherits(SymbolClz$1, Group);
    +
    +/**
    + * @module echarts/chart/helper/SymbolDraw
    + */
    +
    +/**
    + * @constructor
    + * @alias module:echarts/chart/helper/SymbolDraw
    + * @param {module:zrender/graphic/Group} [symbolCtor]
    + */
    +function SymbolDraw(symbolCtor) {
    +    this.group = new Group();
    +
    +    this._symbolCtor = symbolCtor || SymbolClz$1;
    +}
    +
    +var symbolDrawProto = SymbolDraw.prototype;
    +
    +function symbolNeedsDraw(data, idx, isIgnore) {
    +    var point = data.getItemLayout(idx);
    +    // Is an object
    +    // if (point && point.hasOwnProperty('point')) {
    +    //     point = point.point;
    +    // }
    +    return point && !isNaN(point[0]) && !isNaN(point[1]) && !(isIgnore && isIgnore(idx))
    +                && data.getItemVisual(idx, 'symbol') !== 'none';
    +}
    +/**
    + * Update symbols draw by new data
    + * @param {module:echarts/data/List} data
    + * @param {Array.<boolean>} [isIgnore]
    + */
    +symbolDrawProto.updateData = function (data, isIgnore) {
    +    var group = this.group;
    +    var seriesModel = data.hostModel;
    +    var oldData = this._data;
    +
    +    var SymbolCtor = this._symbolCtor;
    +
    +    var seriesScope = {
    +        itemStyle: seriesModel.getModel('itemStyle.normal').getItemStyle(['color']),
    +        hoverItemStyle: seriesModel.getModel('itemStyle.emphasis').getItemStyle(),
    +        symbolRotate: seriesModel.get('symbolRotate'),
    +        symbolOffset: seriesModel.get('symbolOffset'),
    +        hoverAnimation: seriesModel.get('hoverAnimation'),
    +
    +        labelModel: seriesModel.getModel('label.normal'),
    +        hoverLabelModel: seriesModel.getModel('label.emphasis'),
    +        cursorStyle: seriesModel.get('cursor')
    +    };
    +
    +    data.diff(oldData)
    +        .add(function (newIdx) {
    +            var point = data.getItemLayout(newIdx);
    +            if (symbolNeedsDraw(data, newIdx, isIgnore)) {
    +                var symbolEl = new SymbolCtor(data, newIdx, seriesScope);
    +                symbolEl.attr('position', point);
    +                data.setItemGraphicEl(newIdx, symbolEl);
    +                group.add(symbolEl);
    +            }
    +        })
    +        .update(function (newIdx, oldIdx) {
    +            var symbolEl = oldData.getItemGraphicEl(oldIdx);
    +            var point = data.getItemLayout(newIdx);
    +            if (!symbolNeedsDraw(data, newIdx, isIgnore)) {
    +                group.remove(symbolEl);
    +                return;
    +            }
    +            if (!symbolEl) {
    +                symbolEl = new SymbolCtor(data, newIdx);
    +                symbolEl.attr('position', point);
    +            }
    +            else {
    +                symbolEl.updateData(data, newIdx, seriesScope);
    +                updateProps(symbolEl, {
    +                    position: point
    +                }, seriesModel);
    +            }
    +
    +            // Add back
    +            group.add(symbolEl);
    +
    +            data.setItemGraphicEl(newIdx, symbolEl);
    +        })
    +        .remove(function (oldIdx) {
    +            var el = oldData.getItemGraphicEl(oldIdx);
    +            el && el.fadeOut(function () {
    +                group.remove(el);
    +            });
    +        })
    +        .execute();
    +
    +    this._data = data;
    +};
    +
    +symbolDrawProto.updateLayout = function () {
    +    var data = this._data;
    +    if (data) {
    +        // Not use animation
    +        data.eachItemGraphicEl(function (el, idx) {
    +            var point = data.getItemLayout(idx);
    +            el.attr('position', point);
    +        });
    +    }
    +};
    +
    +symbolDrawProto.remove = function (enableAnimation) {
    +    var group = this.group;
    +    var data = this._data;
    +    if (data) {
    +        if (enableAnimation) {
    +            data.eachItemGraphicEl(function (el) {
    +                el.fadeOut(function () {
    +                    group.remove(el);
    +                });
    +            });
    +        }
    +        else {
    +            group.removeAll();
    +        }
    +    }
    +};
    +
    +// var arrayDiff = require('zrender/src/core/arrayDiff');
    +// 'zrender/src/core/arrayDiff' has been used before, but it did
    +// not do well in performance when roam with fixed dataZoom window.
    +
    +function sign$1(val) {
    +    return val >= 0 ? 1 : -1;
    +}
    +
    +function getStackedOnPoint(coordSys, data, idx) {
    +    var baseAxis = coordSys.getBaseAxis();
    +    var valueAxis = coordSys.getOtherAxis(baseAxis);
    +    var valueStart = baseAxis.onZero
    +        ? 0 : valueAxis.scale.getExtent()[0];
    +
    +    var valueDim = valueAxis.dim;
    +    var baseDataOffset = valueDim === 'x' || valueDim === 'radius' ? 1 : 0;
    +
    +    var stackedOnSameSign;
    +    var stackedOn = data.stackedOn;
    +    var val = data.get(valueDim, idx);
    +    // Find first stacked value with same sign
    +    while (stackedOn &&
    +        sign$1(stackedOn.get(valueDim, idx)) === sign$1(val)
    +    ) {
    +        stackedOnSameSign = stackedOn;
    +        break;
    +    }
    +    var stackedData = [];
    +    stackedData[baseDataOffset] = data.get(baseAxis.dim, idx);
    +    stackedData[1 - baseDataOffset] = stackedOnSameSign
    +        ? stackedOnSameSign.get(valueDim, idx, true) : valueStart;
    +
    +    return coordSys.dataToPoint(stackedData);
    +}
    +
    +// function convertToIntId(newIdList, oldIdList) {
    +//     // Generate int id instead of string id.
    +//     // Compare string maybe slow in score function of arrDiff
    +
    +//     // Assume id in idList are all unique
    +//     var idIndicesMap = {};
    +//     var idx = 0;
    +//     for (var i = 0; i < newIdList.length; i++) {
    +//         idIndicesMap[newIdList[i]] = idx;
    +//         newIdList[i] = idx++;
    +//     }
    +//     for (var i = 0; i < oldIdList.length; i++) {
    +//         var oldId = oldIdList[i];
    +//         // Same with newIdList
    +//         if (idIndicesMap[oldId]) {
    +//             oldIdList[i] = idIndicesMap[oldId];
    +//         }
    +//         else {
    +//             oldIdList[i] = idx++;
    +//         }
    +//     }
    +// }
    +
    +function diffData(oldData, newData) {
    +    var diffResult = [];
    +
    +    newData.diff(oldData)
    +        .add(function (idx) {
    +            diffResult.push({cmd: '+', idx: idx});
    +        })
    +        .update(function (newIdx, oldIdx) {
    +            diffResult.push({cmd: '=', idx: oldIdx, idx1: newIdx});
    +        })
    +        .remove(function (idx) {
    +            diffResult.push({cmd: '-', idx: idx});
    +        })
    +        .execute();
    +
    +    return diffResult;
    +}
    +
    +var lineAnimationDiff = function (
    +    oldData, newData,
    +    oldStackedOnPoints, newStackedOnPoints,
    +    oldCoordSys, newCoordSys
    +) {
    +    var diff = diffData(oldData, newData);
    +
    +    // var newIdList = newData.mapArray(newData.getId);
    +    // var oldIdList = oldData.mapArray(oldData.getId);
    +
    +    // convertToIntId(newIdList, oldIdList);
    +
    +    // // FIXME One data ?
    +    // diff = arrayDiff(oldIdList, newIdList);
    +
    +    var currPoints = [];
    +    var nextPoints = [];
    +    // Points for stacking base line
    +    var currStackedPoints = [];
    +    var nextStackedPoints = [];
    +
    +    var status = [];
    +    var sortedIndices = [];
    +    var rawIndices = [];
    +    var dims = newCoordSys.dimensions;
    +    for (var i = 0; i < diff.length; i++) {
    +        var diffItem = diff[i];
    +        var pointAdded = true;
    +
    +        // FIXME, animation is not so perfect when dataZoom window moves fast
    +        // Which is in case remvoing or add more than one data in the tail or head
    +        switch (diffItem.cmd) {
    +            case '=':
    +                var currentPt = oldData.getItemLayout(diffItem.idx);
    +                var nextPt = newData.getItemLayout(diffItem.idx1);
    +                // If previous data is NaN, use next point directly
    +                if (isNaN(currentPt[0]) || isNaN(currentPt[1])) {
    +                    currentPt = nextPt.slice();
    +                }
    +                currPoints.push(currentPt);
    +                nextPoints.push(nextPt);
    +
    +                currStackedPoints.push(oldStackedOnPoints[diffItem.idx]);
    +                nextStackedPoints.push(newStackedOnPoints[diffItem.idx1]);
    +
    +                rawIndices.push(newData.getRawIndex(diffItem.idx1));
    +                break;
    +            case '+':
    +                var idx = diffItem.idx;
    +                currPoints.push(
    +                    oldCoordSys.dataToPoint([
    +                        newData.get(dims[0], idx, true), newData.get(dims[1], idx, true)
    +                    ])
    +                );
    +
    +                nextPoints.push(newData.getItemLayout(idx).slice());
    +
    +                currStackedPoints.push(
    +                    getStackedOnPoint(oldCoordSys, newData, idx)
    +                );
    +                nextStackedPoints.push(newStackedOnPoints[idx]);
    +
    +                rawIndices.push(newData.getRawIndex(idx));
    +                break;
    +            case '-':
    +                var idx = diffItem.idx;
    +                var rawIndex = oldData.getRawIndex(idx);
    +                // Data is replaced. In the case of dynamic data queue
    +                // FIXME FIXME FIXME
    +                if (rawIndex !== idx) {
    +                    currPoints.push(oldData.getItemLayout(idx));
    +                    nextPoints.push(newCoordSys.dataToPoint([
    +                        oldData.get(dims[0], idx, true), oldData.get(dims[1], idx, true)
    +                    ]));
    +
    +                    currStackedPoints.push(oldStackedOnPoints[idx]);
    +                    nextStackedPoints.push(
    +                        getStackedOnPoint(
    +                            newCoordSys, oldData, idx
    +                        )
    +                    );
    +
    +                    rawIndices.push(rawIndex);
    +                }
    +                else {
    +                    pointAdded = false;
    +                }
    +        }
    +
    +        // Original indices
    +        if (pointAdded) {
    +            status.push(diffItem);
    +            sortedIndices.push(sortedIndices.length);
    +        }
    +    }
    +
    +    // Diff result may be crossed if all items are changed
    +    // Sort by data index
    +    sortedIndices.sort(function (a, b) {
    +        return rawIndices[a] - rawIndices[b];
    +    });
    +
    +    var sortedCurrPoints = [];
    +    var sortedNextPoints = [];
    +
    +    var sortedCurrStackedPoints = [];
    +    var sortedNextStackedPoints = [];
    +
    +    var sortedStatus = [];
    +    for (var i = 0; i < sortedIndices.length; i++) {
    +        var idx = sortedIndices[i];
    +        sortedCurrPoints[i] = currPoints[idx];
    +        sortedNextPoints[i] = nextPoints[idx];
    +
    +        sortedCurrStackedPoints[i] = currStackedPoints[idx];
    +        sortedNextStackedPoints[i] = nextStackedPoints[idx];
    +
    +        sortedStatus[i] = status[idx];
    +    }
    +
    +    return {
    +        current: sortedCurrPoints,
    +        next: sortedNextPoints,
    +
    +        stackedOnCurrent: sortedCurrStackedPoints,
    +        stackedOnNext: sortedNextStackedPoints,
    +
    +        status: sortedStatus
    +    };
    +};
    +
    +// Poly path support NaN point
    +
    +var vec2Min = min;
    +var vec2Max = max;
    +
    +var scaleAndAdd$1 = scaleAndAdd;
    +var v2Copy = copy;
    +
    +// Temporary variable
    +var v = [];
    +var cp0 = [];
    +var cp1 = [];
    +
    +function isPointNull(p) {
    +    return isNaN(p[0]) || isNaN(p[1]);
    +}
    +
    +function drawSegment(
    +    ctx, points, start, segLen, allLen,
    +    dir, smoothMin, smoothMax, smooth, smoothMonotone, connectNulls
    +) {
    +    var prevIdx = 0;
    +    var idx = start;
    +    for (var k = 0; k < segLen; k++) {
    +        var p = points[idx];
    +        if (idx >= allLen || idx < 0) {
    +            break;
    +        }
    +        if (isPointNull(p)) {
    +            if (connectNulls) {
    +                idx += dir;
    +                continue;
    +            }
    +            break;
    +        }
    +
    +        if (idx === start) {
    +            ctx[dir > 0 ? 'moveTo' : 'lineTo'](p[0], p[1]);
    +            v2Copy(cp0, p);
    +        }
    +        else {
    +            if (smooth > 0) {
    +                var nextIdx = idx + dir;
    +                var nextP = points[nextIdx];
    +                if (connectNulls) {
    +                    // Find next point not null
    +                    while (nextP && isPointNull(points[nextIdx])) {
    +                        nextIdx += dir;
    +                        nextP = points[nextIdx];
    +                    }
    +                }
    +
    +                var ratioNextSeg = 0.5;
    +                var prevP = points[prevIdx];
    +                var nextP = points[nextIdx];
    +                // Last point
    +                if (!nextP || isPointNull(nextP)) {
    +                    v2Copy(cp1, p);
    +                }
    +                else {
    +                    // If next data is null in not connect case
    +                    if (isPointNull(nextP) && !connectNulls) {
    +                        nextP = p;
    +                    }
    +
    +                    sub(v, nextP, prevP);
    +
    +                    var lenPrevSeg;
    +                    var lenNextSeg;
    +                    if (smoothMonotone === 'x' || smoothMonotone === 'y') {
    +                        var dim = smoothMonotone === 'x' ? 0 : 1;
    +                        lenPrevSeg = Math.abs(p[dim] - prevP[dim]);
    +                        lenNextSeg = Math.abs(p[dim] - nextP[dim]);
    +                    }
    +                    else {
    +                        lenPrevSeg = dist(p, prevP);
    +                        lenNextSeg = dist(p, nextP);
    +                    }
    +
    +                    // Use ratio of seg length
    +                    ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);
    +
    +                    scaleAndAdd$1(cp1, p, v, -smooth * (1 - ratioNextSeg));
    +                }
    +                // Smooth constraint
    +                vec2Min(cp0, cp0, smoothMax);
    +                vec2Max(cp0, cp0, smoothMin);
    +                vec2Min(cp1, cp1, smoothMax);
    +                vec2Max(cp1, cp1, smoothMin);
    +
    +                ctx.bezierCurveTo(
    +                    cp0[0], cp0[1],
    +                    cp1[0], cp1[1],
    +                    p[0], p[1]
    +                );
    +                // cp0 of next segment
    +                scaleAndAdd$1(cp0, p, v, smooth * ratioNextSeg);
    +            }
    +            else {
    +                ctx.lineTo(p[0], p[1]);
    +            }
    +        }
    +
    +        prevIdx = idx;
    +        idx += dir;
    +    }
    +
    +    return k;
    +}
    +
    +function getBoundingBox(points, smoothConstraint) {
    +    var ptMin = [Infinity, Infinity];
    +    var ptMax = [-Infinity, -Infinity];
    +    if (smoothConstraint) {
    +        for (var i = 0; i < points.length; i++) {
    +            var pt = points[i];
    +            if (pt[0] < ptMin[0]) { ptMin[0] = pt[0]; }
    +            if (pt[1] < ptMin[1]) { ptMin[1] = pt[1]; }
    +            if (pt[0] > ptMax[0]) { ptMax[0] = pt[0]; }
    +            if (pt[1] > ptMax[1]) { ptMax[1] = pt[1]; }
    +        }
    +    }
    +    return {
    +        min: smoothConstraint ? ptMin : ptMax,
    +        max: smoothConstraint ? ptMax : ptMin
    +    };
    +}
    +
    +var Polyline$1 = Path.extend({
    +
    +    type: 'ec-polyline',
    +
    +    shape: {
    +        points: [],
    +
    +        smooth: 0,
    +
    +        smoothConstraint: true,
    +
    +        smoothMonotone: null,
    +
    +        connectNulls: false
    +    },
    +
    +    style: {
    +        fill: null,
    +
    +        stroke: '#000'
    +    },
    +
    +    brush: fixClipWithShadow(Path.prototype.brush),
    +
    +    buildPath: function (ctx, shape) {
    +        var points = shape.points;
    +
    +        var i = 0;
    +        var len$$1 = points.length;
    +
    +        var result = getBoundingBox(points, shape.smoothConstraint);
    +
    +        if (shape.connectNulls) {
    +            // Must remove first and last null values avoid draw error in polygon
    +            for (; len$$1 > 0; len$$1--) {
    +                if (!isPointNull(points[len$$1 - 1])) {
    +                    break;
    +                }
    +            }
    +            for (; i < len$$1; i++) {
    +                if (!isPointNull(points[i])) {
    +                    break;
    +                }
    +            }
    +        }
    +        while (i < len$$1) {
    +            i += drawSegment(
    +                ctx, points, i, len$$1, len$$1,
    +                1, result.min, result.max, shape.smooth,
    +                shape.smoothMonotone, shape.connectNulls
    +            ) + 1;
    +        }
    +    }
    +});
    +
    +var Polygon$1 = Path.extend({
    +
    +    type: 'ec-polygon',
    +
    +    shape: {
    +        points: [],
    +
    +        // Offset between stacked base points and points
    +        stackedOnPoints: [],
    +
    +        smooth: 0,
    +
    +        stackedOnSmooth: 0,
    +
    +        smoothConstraint: true,
    +
    +        smoothMonotone: null,
    +
    +        connectNulls: false
    +    },
    +
    +    brush: fixClipWithShadow(Path.prototype.brush),
    +
    +    buildPath: function (ctx, shape) {
    +        var points = shape.points;
    +        var stackedOnPoints = shape.stackedOnPoints;
    +
    +        var i = 0;
    +        var len$$1 = points.length;
    +        var smoothMonotone = shape.smoothMonotone;
    +        var bbox = getBoundingBox(points, shape.smoothConstraint);
    +        var stackedOnBBox = getBoundingBox(stackedOnPoints, shape.smoothConstraint);
    +
    +        if (shape.connectNulls) {
    +            // Must remove first and last null values avoid draw error in polygon
    +            for (; len$$1 > 0; len$$1--) {
    +                if (!isPointNull(points[len$$1 - 1])) {
    +                    break;
    +                }
    +            }
    +            for (; i < len$$1; i++) {
    +                if (!isPointNull(points[i])) {
    +                    break;
    +                }
    +            }
    +        }
    +        while (i < len$$1) {
    +            var k = drawSegment(
    +                ctx, points, i, len$$1, len$$1,
    +                1, bbox.min, bbox.max, shape.smooth,
    +                smoothMonotone, shape.connectNulls
    +            );
    +            drawSegment(
    +                ctx, stackedOnPoints, i + k - 1, k, len$$1,
    +                -1, stackedOnBBox.min, stackedOnBBox.max, shape.stackedOnSmooth,
    +                smoothMonotone, shape.connectNulls
    +            );
    +            i += k + 1;
    +
    +            ctx.closePath();
    +        }
    +    }
    +});
    +
    +// FIXME step not support polar
    +
    +function isPointsSame(points1, points2) {
    +    if (points1.length !== points2.length) {
    +        return;
    +    }
    +    for (var i = 0; i < points1.length; i++) {
    +        var p1 = points1[i];
    +        var p2 = points2[i];
    +        if (p1[0] !== p2[0] || p1[1] !== p2[1]) {
    +            return;
    +        }
    +    }
    +    return true;
    +}
    +
    +function getSmooth(smooth) {
    +    return typeof (smooth) === 'number' ? smooth : (smooth ? 0.3 : 0);
    +}
    +
    +function getAxisExtentWithGap(axis) {
    +    var extent = axis.getGlobalExtent();
    +    if (axis.onBand) {
    +        // Remove extra 1px to avoid line miter in clipped edge
    +        var halfBandWidth = axis.getBandWidth() / 2 - 1;
    +        var dir = extent[1] > extent[0] ? 1 : -1;
    +        extent[0] += dir * halfBandWidth;
    +        extent[1] -= dir * halfBandWidth;
    +    }
    +    return extent;
    +}
    +
    +function sign(val) {
    +    return val >= 0 ? 1 : -1;
    +}
    +
    +/**
    + * @param {module:echarts/coord/cartesian/Cartesian2D|module:echarts/coord/polar/Polar} coordSys
    + * @param {module:echarts/data/List} data
    + * @param {Array.<Array.<number>>} points
    + * @private
    + */
    +function getStackedOnPoints(coordSys, data) {
    +    var baseAxis = coordSys.getBaseAxis();
    +    var valueAxis = coordSys.getOtherAxis(baseAxis);
    +
    +    var valueStart = 0;
    +    if (!baseAxis.onZero) {
    +        var extent = valueAxis.scale.getExtent();
    +        if (extent[0] > 0) {
    +            // Both positive
    +            valueStart = extent[0];
    +        }
    +        else if (extent[1] < 0) {
    +            // Both negative
    +            valueStart = extent[1];
    +        }
    +        // If is one positive, and one negative, onZero shall be true
    +    }
    +
    +    var valueDim = valueAxis.dim;
    +
    +    var baseDataOffset = valueDim === 'x' || valueDim === 'radius' ? 1 : 0;
    +
    +    return data.mapArray([valueDim], function (val, idx) {
    +        var stackedOnSameSign;
    +        var stackedOn = data.stackedOn;
    +        // Find first stacked value with same sign
    +        while (stackedOn &&
    +            sign(stackedOn.get(valueDim, idx)) === sign(val)
    +        ) {
    +            stackedOnSameSign = stackedOn;
    +            break;
    +        }
    +        var stackedData = [];
    +        stackedData[baseDataOffset] = data.get(baseAxis.dim, idx);
    +        stackedData[1 - baseDataOffset] = stackedOnSameSign
    +            ? stackedOnSameSign.get(valueDim, idx, true) : valueStart;
    +
    +        return coordSys.dataToPoint(stackedData);
    +    }, true);
    +}
    +
    +function createGridClipShape(cartesian, hasAnimation, seriesModel) {
    +    var xExtent = getAxisExtentWithGap(cartesian.getAxis('x'));
    +    var yExtent = getAxisExtentWithGap(cartesian.getAxis('y'));
    +    var isHorizontal = cartesian.getBaseAxis().isHorizontal();
    +
    +    var x = Math.min(xExtent[0], xExtent[1]);
    +    var y = Math.min(yExtent[0], yExtent[1]);
    +    var width = Math.max(xExtent[0], xExtent[1]) - x;
    +    var height = Math.max(yExtent[0], yExtent[1]) - y;
    +    var lineWidth = seriesModel.get('lineStyle.normal.width') || 2;
    +    // Expand clip shape to avoid clipping when line value exceeds axis
    +    var expandSize = seriesModel.get('clipOverflow') ? lineWidth / 2 : Math.max(width, height);
    +    if (isHorizontal) {
    +        y -= expandSize;
    +        height += expandSize * 2;
    +    }
    +    else {
    +        x -= expandSize;
    +        width += expandSize * 2;
    +    }
    +
    +    var clipPath = new Rect({
    +        shape: {
    +            x: x,
    +            y: y,
    +            width: width,
    +            height: height
    +        }
    +    });
    +
    +    if (hasAnimation) {
    +        clipPath.shape[isHorizontal ? 'width' : 'height'] = 0;
    +        initProps(clipPath, {
    +            shape: {
    +                width: width,
    +                height: height
    +            }
    +        }, seriesModel);
    +    }
    +
    +    return clipPath;
    +}
    +
    +function createPolarClipShape(polar, hasAnimation, seriesModel) {
    +    var angleAxis = polar.getAngleAxis();
    +    var radiusAxis = polar.getRadiusAxis();
    +
    +    var radiusExtent = radiusAxis.getExtent();
    +    var angleExtent = angleAxis.getExtent();
    +
    +    var RADIAN = Math.PI / 180;
    +
    +    var clipPath = new Sector({
    +        shape: {
    +            cx: polar.cx,
    +            cy: polar.cy,
    +            r0: radiusExtent[0],
    +            r: radiusExtent[1],
    +            startAngle: -angleExtent[0] * RADIAN,
    +            endAngle: -angleExtent[1] * RADIAN,
    +            clockwise: angleAxis.inverse
    +        }
    +    });
    +
    +    if (hasAnimation) {
    +        clipPath.shape.endAngle = -angleExtent[0] * RADIAN;
    +        initProps(clipPath, {
    +            shape: {
    +                endAngle: -angleExtent[1] * RADIAN
    +            }
    +        }, seriesModel);
    +    }
    +
    +    return clipPath;
    +}
    +
    +function createClipShape(coordSys, hasAnimation, seriesModel) {
    +    return coordSys.type === 'polar'
    +        ? createPolarClipShape(coordSys, hasAnimation, seriesModel)
    +        : createGridClipShape(coordSys, hasAnimation, seriesModel);
    +}
    +
    +function turnPointsIntoStep(points, coordSys, stepTurnAt) {
    +    var baseAxis = coordSys.getBaseAxis();
    +    var baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1;
    +
    +    var stepPoints = [];
    +    for (var i = 0; i < points.length - 1; i++) {
    +        var nextPt = points[i + 1];
    +        var pt = points[i];
    +        stepPoints.push(pt);
    +
    +        var stepPt = [];
    +        switch (stepTurnAt) {
    +            case 'end':
    +                stepPt[baseIndex] = nextPt[baseIndex];
    +                stepPt[1 - baseIndex] = pt[1 - baseIndex];
    +                // default is start
    +                stepPoints.push(stepPt);
    +                break;
    +            case 'middle':
    +                // default is start
    +                var middle = (pt[baseIndex] + nextPt[baseIndex]) / 2;
    +                var stepPt2 = [];
    +                stepPt[baseIndex] = stepPt2[baseIndex] = middle;
    +                stepPt[1 - baseIndex] = pt[1 - baseIndex];
    +                stepPt2[1 - baseIndex] = nextPt[1 - baseIndex];
    +                stepPoints.push(stepPt);
    +                stepPoints.push(stepPt2);
    +                break;
    +            default:
    +                stepPt[baseIndex] = pt[baseIndex];
    +                stepPt[1 - baseIndex] = nextPt[1 - baseIndex];
    +                // default is start
    +                stepPoints.push(stepPt);
    +        }
    +    }
    +    // Last points
    +    points[i] && stepPoints.push(points[i]);
    +    return stepPoints;
    +}
    +
    +function getVisualGradient(data, coordSys) {
    +    var visualMetaList = data.getVisual('visualMeta');
    +    if (!visualMetaList || !visualMetaList.length || !data.count()) {
    +        // When data.count() is 0, gradient range can not be calculated.
    +        return;
    +    }
    +
    +    var visualMeta;
    +    for (var i = visualMetaList.length - 1; i >= 0; i--) {
    +        // Can only be x or y
    +        if (visualMetaList[i].dimension < 2) {
    +            visualMeta = visualMetaList[i];
    +            break;
    +        }
    +    }
    +    if (!visualMeta || coordSys.type !== 'cartesian2d') {
    +        if (__DEV__) {
    +            console.warn('Visual map on line style only support x or y dimension.');
    +        }
    +        return;
    +    }
    +
    +    // If the area to be rendered is bigger than area defined by LinearGradient,
    +    // the canvas spec prescribes that the color of the first stop and the last
    +    // stop should be used. But if two stops are added at offset 0, in effect
    +    // browsers use the color of the second stop to render area outside
    +    // LinearGradient. So we can only infinitesimally extend area defined in
    +    // LinearGradient to render `outerColors`.
    +
    +    var dimension = visualMeta.dimension;
    +    var dimName = data.dimensions[dimension];
    +    var axis = coordSys.getAxis(dimName);
    +
    +    // dataToCoor mapping may not be linear, but must be monotonic.
    +    var colorStops = map(visualMeta.stops, function (stop) {
    +        return {
    +            coord: axis.toGlobalCoord(axis.dataToCoord(stop.value)),
    +            color: stop.color
    +        };
    +    });
    +    var stopLen = colorStops.length;
    +    var outerColors = visualMeta.outerColors.slice();
    +
    +    if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) {
    +        colorStops.reverse();
    +        outerColors.reverse();
    +    }
    +
    +    var tinyExtent = 10; // Arbitrary value: 10px
    +    var minCoord = colorStops[0].coord - tinyExtent;
    +    var maxCoord = colorStops[stopLen - 1].coord + tinyExtent;
    +    var coordSpan = maxCoord - minCoord;
    +
    +    if (coordSpan < 1e-3) {
    +        return 'transparent';
    +    }
    +
    +    each$1(colorStops, function (stop) {
    +        stop.offset = (stop.coord - minCoord) / coordSpan;
    +    });
    +    colorStops.push({
    +        offset: stopLen ? colorStops[stopLen - 1].offset : 0.5,
    +        color: outerColors[1] || 'transparent'
    +    });
    +    colorStops.unshift({ // notice colorStops.length have been changed.
    +        offset: stopLen ? colorStops[0].offset : 0.5,
    +        color: outerColors[0] || 'transparent'
    +    });
    +
    +    // zrUtil.each(colorStops, function (colorStop) {
    +    //     // Make sure each offset has rounded px to avoid not sharp edge
    +    //     colorStop.offset = (Math.round(colorStop.offset * (end - start) + start) - start) / (end - start);
    +    // });
    +
    +    var gradient = new LinearGradient(0, 0, 0, 0, colorStops, true);
    +    gradient[dimName] = minCoord;
    +    gradient[dimName + '2'] = maxCoord;
    +
    +    return gradient;
    +}
    +
    +Chart.extend({
    +
    +    type: 'line',
    +
    +    init: function () {
    +        var lineGroup = new Group();
    +
    +        var symbolDraw = new SymbolDraw();
    +        this.group.add(symbolDraw.group);
    +
    +        this._symbolDraw = symbolDraw;
    +        this._lineGroup = lineGroup;
    +    },
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var coordSys = seriesModel.coordinateSystem;
    +        var group = this.group;
    +        var data = seriesModel.getData();
    +        var lineStyleModel = seriesModel.getModel('lineStyle.normal');
    +        var areaStyleModel = seriesModel.getModel('areaStyle.normal');
    +
    +        var points = data.mapArray(data.getItemLayout, true);
    +
    +        var isCoordSysPolar = coordSys.type === 'polar';
    +        var prevCoordSys = this._coordSys;
    +
    +        var symbolDraw = this._symbolDraw;
    +        var polyline = this._polyline;
    +        var polygon = this._polygon;
    +
    +        var lineGroup = this._lineGroup;
    +
    +        var hasAnimation = seriesModel.get('animation');
    +
    +        var isAreaChart = !areaStyleModel.isEmpty();
    +        var stackedOnPoints = getStackedOnPoints(coordSys, data);
    +
    +        var showSymbol = seriesModel.get('showSymbol');
    +
    +        var isSymbolIgnore = showSymbol && !isCoordSysPolar && !seriesModel.get('showAllSymbol')
    +            && this._getSymbolIgnoreFunc(data, coordSys);
    +
    +        // Remove temporary symbols
    +        var oldData = this._data;
    +        oldData && oldData.eachItemGraphicEl(function (el, idx) {
    +            if (el.__temp) {
    +                group.remove(el);
    +                oldData.setItemGraphicEl(idx, null);
    +            }
    +        });
    +
    +        // Remove previous created symbols if showSymbol changed to false
    +        if (!showSymbol) {
    +            symbolDraw.remove();
    +        }
    +
    +        group.add(lineGroup);
    +
    +        // FIXME step not support polar
    +        var step = !isCoordSysPolar && seriesModel.get('step');
    +        // Initialization animation or coordinate system changed
    +        if (
    +            !(polyline && prevCoordSys.type === coordSys.type && step === this._step)
    +        ) {
    +            showSymbol && symbolDraw.updateData(data, isSymbolIgnore);
    +
    +            if (step) {
    +                // TODO If stacked series is not step
    +                points = turnPointsIntoStep(points, coordSys, step);
    +                stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);
    +            }
    +
    +            polyline = this._newPolyline(points, coordSys, hasAnimation);
    +            if (isAreaChart) {
    +                polygon = this._newPolygon(
    +                    points, stackedOnPoints,
    +                    coordSys, hasAnimation
    +                );
    +            }
    +            lineGroup.setClipPath(createClipShape(coordSys, true, seriesModel));
    +        }
    +        else {
    +            if (isAreaChart && !polygon) {
    +                // If areaStyle is added
    +                polygon = this._newPolygon(
    +                    points, stackedOnPoints,
    +                    coordSys, hasAnimation
    +                );
    +            }
    +            else if (polygon && !isAreaChart) {
    +                // If areaStyle is removed
    +                lineGroup.remove(polygon);
    +                polygon = this._polygon = null;
    +            }
    +
    +            // Update clipPath
    +            lineGroup.setClipPath(createClipShape(coordSys, false, seriesModel));
    +
    +            // Always update, or it is wrong in the case turning on legend
    +            // because points are not changed
    +            showSymbol && symbolDraw.updateData(data, isSymbolIgnore);
    +
    +            // Stop symbol animation and sync with line points
    +            // FIXME performance?
    +            data.eachItemGraphicEl(function (el) {
    +                el.stopAnimation(true);
    +            });
    +
    +            // In the case data zoom triggerred refreshing frequently
    +            // Data may not change if line has a category axis. So it should animate nothing
    +            if (!isPointsSame(this._stackedOnPoints, stackedOnPoints)
    +                || !isPointsSame(this._points, points)
    +            ) {
    +                if (hasAnimation) {
    +                    this._updateAnimation(
    +                        data, stackedOnPoints, coordSys, api, step
    +                    );
    +                }
    +                else {
    +                    // Not do it in update with animation
    +                    if (step) {
    +                        // TODO If stacked series is not step
    +                        points = turnPointsIntoStep(points, coordSys, step);
    +                        stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);
    +                    }
    +
    +                    polyline.setShape({
    +                        points: points
    +                    });
    +                    polygon && polygon.setShape({
    +                        points: points,
    +                        stackedOnPoints: stackedOnPoints
    +                    });
    +                }
    +            }
    +        }
    +
    +        var visualColor = getVisualGradient(data, coordSys) || data.getVisual('color');
    +
    +        polyline.useStyle(defaults(
    +            // Use color in lineStyle first
    +            lineStyleModel.getLineStyle(),
    +            {
    +                fill: 'none',
    +                stroke: visualColor,
    +                lineJoin: 'bevel'
    +            }
    +        ));
    +
    +        var smooth = seriesModel.get('smooth');
    +        smooth = getSmooth(seriesModel.get('smooth'));
    +        polyline.setShape({
    +            smooth: smooth,
    +            smoothMonotone: seriesModel.get('smoothMonotone'),
    +            connectNulls: seriesModel.get('connectNulls')
    +        });
    +
    +        if (polygon) {
    +            var stackedOn = data.stackedOn;
    +            var stackedOnSmooth = 0;
    +
    +            polygon.useStyle(defaults(
    +                areaStyleModel.getAreaStyle(),
    +                {
    +                    fill: visualColor,
    +                    opacity: 0.7,
    +                    lineJoin: 'bevel'
    +                }
    +            ));
    +
    +            if (stackedOn) {
    +                var stackedOnSeries = stackedOn.hostModel;
    +                stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));
    +            }
    +
    +            polygon.setShape({
    +                smooth: smooth,
    +                stackedOnSmooth: stackedOnSmooth,
    +                smoothMonotone: seriesModel.get('smoothMonotone'),
    +                connectNulls: seriesModel.get('connectNulls')
    +            });
    +        }
    +
    +        this._data = data;
    +        // Save the coordinate system for transition animation when data changed
    +        this._coordSys = coordSys;
    +        this._stackedOnPoints = stackedOnPoints;
    +        this._points = points;
    +        this._step = step;
    +    },
    +
    +    dispose: function () {},
    +
    +    highlight: function (seriesModel, ecModel, api, payload) {
    +        var data = seriesModel.getData();
    +        var dataIndex = queryDataIndex(data, payload);
    +
    +        if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {
    +            var symbol = data.getItemGraphicEl(dataIndex);
    +            if (!symbol) {
    +                // Create a temporary symbol if it is not exists
    +                var pt = data.getItemLayout(dataIndex);
    +                if (!pt) {
    +                    // Null data
    +                    return;
    +                }
    +                symbol = new SymbolClz$1(data, dataIndex);
    +                symbol.position = pt;
    +                symbol.setZ(
    +                    seriesModel.get('zlevel'),
    +                    seriesModel.get('z')
    +                );
    +                symbol.ignore = isNaN(pt[0]) || isNaN(pt[1]);
    +                symbol.__temp = true;
    +                data.setItemGraphicEl(dataIndex, symbol);
    +
    +                // Stop scale animation
    +                symbol.stopSymbolAnimation(true);
    +
    +                this.group.add(symbol);
    +            }
    +            symbol.highlight();
    +        }
    +        else {
    +            // Highlight whole series
    +            Chart.prototype.highlight.call(
    +                this, seriesModel, ecModel, api, payload
    +            );
    +        }
    +    },
    +
    +    downplay: function (seriesModel, ecModel, api, payload) {
    +        var data = seriesModel.getData();
    +        var dataIndex = queryDataIndex(data, payload);
    +        if (dataIndex != null && dataIndex >= 0) {
    +            var symbol = data.getItemGraphicEl(dataIndex);
    +            if (symbol) {
    +                if (symbol.__temp) {
    +                    data.setItemGraphicEl(dataIndex, null);
    +                    this.group.remove(symbol);
    +                }
    +                else {
    +                    symbol.downplay();
    +                }
    +            }
    +        }
    +        else {
    +            // FIXME
    +            // can not downplay completely.
    +            // Downplay whole series
    +            Chart.prototype.downplay.call(
    +                this, seriesModel, ecModel, api, payload
    +            );
    +        }
    +    },
    +
    +    /**
    +     * @param {module:zrender/container/Group} group
    +     * @param {Array.<Array.<number>>} points
    +     * @private
    +     */
    +    _newPolyline: function (points) {
    +        var polyline = this._polyline;
    +        // Remove previous created polyline
    +        if (polyline) {
    +            this._lineGroup.remove(polyline);
    +        }
    +
    +        polyline = new Polyline$1({
    +            shape: {
    +                points: points
    +            },
    +            silent: true,
    +            z2: 10
    +        });
    +
    +        this._lineGroup.add(polyline);
    +
    +        this._polyline = polyline;
    +
    +        return polyline;
    +    },
    +
    +    /**
    +     * @param {module:zrender/container/Group} group
    +     * @param {Array.<Array.<number>>} stackedOnPoints
    +     * @param {Array.<Array.<number>>} points
    +     * @private
    +     */
    +    _newPolygon: function (points, stackedOnPoints) {
    +        var polygon = this._polygon;
    +        // Remove previous created polygon
    +        if (polygon) {
    +            this._lineGroup.remove(polygon);
    +        }
    +
    +        polygon = new Polygon$1({
    +            shape: {
    +                points: points,
    +                stackedOnPoints: stackedOnPoints
    +            },
    +            silent: true
    +        });
    +
    +        this._lineGroup.add(polygon);
    +
    +        this._polygon = polygon;
    +        return polygon;
    +    },
    +    /**
    +     * @private
    +     */
    +    _getSymbolIgnoreFunc: function (data, coordSys) {
    +        var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
    +        // `getLabelInterval` is provided by echarts/component/axis
    +        if (categoryAxis && categoryAxis.isLabelIgnored) {
    +            return bind(categoryAxis.isLabelIgnored, categoryAxis);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    // FIXME Two value axis
    +    _updateAnimation: function (data, stackedOnPoints, coordSys, api, step) {
    +        var polyline = this._polyline;
    +        var polygon = this._polygon;
    +        var seriesModel = data.hostModel;
    +
    +        var diff = lineAnimationDiff(
    +            this._data, data,
    +            this._stackedOnPoints, stackedOnPoints,
    +            this._coordSys, coordSys
    +        );
    +
    +        var current = diff.current;
    +        var stackedOnCurrent = diff.stackedOnCurrent;
    +        var next = diff.next;
    +        var stackedOnNext = diff.stackedOnNext;
    +        if (step) {
    +            // TODO If stacked series is not step
    +            current = turnPointsIntoStep(diff.current, coordSys, step);
    +            stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, coordSys, step);
    +            next = turnPointsIntoStep(diff.next, coordSys, step);
    +            stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step);
    +        }
    +        // `diff.current` is subset of `current` (which should be ensured by
    +        // turnPointsIntoStep), so points in `__points` can be updated when
    +        // points in `current` are update during animation.
    +        polyline.shape.__points = diff.current;
    +        polyline.shape.points = current;
    +
    +        updateProps(polyline, {
    +            shape: {
    +                points: next
    +            }
    +        }, seriesModel);
    +
    +        if (polygon) {
    +            polygon.setShape({
    +                points: current,
    +                stackedOnPoints: stackedOnCurrent
    +            });
    +            updateProps(polygon, {
    +                shape: {
    +                    points: next,
    +                    stackedOnPoints: stackedOnNext
    +                }
    +            }, seriesModel);
    +        }
    +
    +        var updatedDataInfo = [];
    +        var diffStatus = diff.status;
    +
    +        for (var i = 0; i < diffStatus.length; i++) {
    +            var cmd = diffStatus[i].cmd;
    +            if (cmd === '=') {
    +                var el = data.getItemGraphicEl(diffStatus[i].idx1);
    +                if (el) {
    +                    updatedDataInfo.push({
    +                        el: el,
    +                        ptIdx: i    // Index of points
    +                    });
    +                }
    +            }
    +        }
    +
    +        if (polyline.animators && polyline.animators.length) {
    +            polyline.animators[0].during(function () {
    +                for (var i = 0; i < updatedDataInfo.length; i++) {
    +                    var el = updatedDataInfo[i].el;
    +                    el.attr('position', polyline.shape.__points[updatedDataInfo[i].ptIdx]);
    +                }
    +            });
    +        }
    +    },
    +
    +    remove: function (ecModel) {
    +        var group = this.group;
    +        var oldData = this._data;
    +        this._lineGroup.removeAll();
    +        this._symbolDraw.remove(true);
    +        // Remove temporary created elements when highlighting
    +        oldData && oldData.eachItemGraphicEl(function (el, idx) {
    +            if (el.__temp) {
    +                group.remove(el);
    +                oldData.setItemGraphicEl(idx, null);
    +            }
    +        });
    +
    +        this._polyline =
    +        this._polygon =
    +        this._coordSys =
    +        this._points =
    +        this._stackedOnPoints =
    +        this._data = null;
    +    }
    +});
    +
    +var visualSymbol = function (seriesType, defaultSymbolType, legendSymbol, ecModel, api) {
    +
    +    // Encoding visual for all series include which is filtered for legend drawing
    +    ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {
    +        var data = seriesModel.getData();
    +
    +        var symbolType = seriesModel.get('symbol') || defaultSymbolType;
    +        var symbolSize = seriesModel.get('symbolSize');
    +
    +        data.setVisual({
    +            legendSymbol: legendSymbol || symbolType,
    +            symbol: symbolType,
    +            symbolSize: symbolSize
    +        });
    +
    +        // Only visible series has each data be visual encoded
    +        if (!ecModel.isSeriesFiltered(seriesModel)) {
    +            if (typeof symbolSize === 'function') {
    +                data.each(function (idx) {
    +                    var rawValue = seriesModel.getRawValue(idx);
    +                    // FIXME
    +                    var params = seriesModel.getDataParams(idx);
    +                    data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));
    +                });
    +            }
    +            data.each(function (idx) {
    +                var itemModel = data.getItemModel(idx);
    +                var itemSymbolType = itemModel.getShallow('symbol', true);
    +                var itemSymbolSize = itemModel.getShallow('symbolSize', true);
    +                // If has item symbol
    +                if (itemSymbolType != null) {
    +                    data.setItemVisual(idx, 'symbol', itemSymbolType);
    +                }
    +                if (itemSymbolSize != null) {
    +                    // PENDING Transform symbolSize ?
    +                    data.setItemVisual(idx, 'symbolSize', itemSymbolSize);
    +                }
    +            });
    +        }
    +    });
    +};
    +
    +var layoutPoints = function (seriesType, ecModel) {
    +    ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var coordSys = seriesModel.coordinateSystem;
    +
    +        if (!coordSys) {
    +            return;
    +        }
    +
    +        var dims = [];
    +        var coordDims = coordSys.dimensions;
    +        for (var i = 0; i < coordDims.length; i++) {
    +            dims.push(seriesModel.coordDimToDataDim(coordSys.dimensions[i])[0]);
    +        }
    +
    +        if (dims.length === 1) {
    +            data.each(dims[0], function (x, idx) {
    +                // Also {Array.<number>}, not undefined to avoid if...else... statement
    +                data.setItemLayout(idx, isNaN(x) ? [NaN, NaN] : coordSys.dataToPoint(x));
    +            });
    +        }
    +        else if (dims.length === 2) {
    +            data.each(dims, function (x, y, idx) {
    +                // Also {Array.<number>}, not undefined to avoid if...else... statement
    +                data.setItemLayout(
    +                    idx, (isNaN(x) || isNaN(y)) ? [NaN, NaN] : coordSys.dataToPoint([x, y])
    +                );
    +            }, true);
    +        }
    +    });
    +};
    +
    +var samplers = {
    +    average: function (frame) {
    +        var sum = 0;
    +        var count = 0;
    +        for (var i = 0; i < frame.length; i++) {
    +            if (!isNaN(frame[i])) {
    +                sum += frame[i];
    +                count++;
    +            }
    +        }
    +        // Return NaN if count is 0
    +        return count === 0 ? NaN : sum / count;
    +    },
    +    sum: function (frame) {
    +        var sum = 0;
    +        for (var i = 0; i < frame.length; i++) {
    +            // Ignore NaN
    +            sum += frame[i] || 0;
    +        }
    +        return sum;
    +    },
    +    max: function (frame) {
    +        var max = -Infinity;
    +        for (var i = 0; i < frame.length; i++) {
    +            frame[i] > max && (max = frame[i]);
    +        }
    +        return max;
    +    },
    +    min: function (frame) {
    +        var min = Infinity;
    +        for (var i = 0; i < frame.length; i++) {
    +            frame[i] < min && (min = frame[i]);
    +        }
    +        return min;
    +    },
    +    // TODO
    +    // Median
    +    nearest: function (frame) {
    +        return frame[0];
    +    }
    +};
    +
    +var indexSampler = function (frame, value) {
    +    return Math.round(frame.length / 2);
    +};
    +
    +var dataSample = function (seriesType, ecModel, api) {
    +    ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var sampling = seriesModel.get('sampling');
    +        var coordSys = seriesModel.coordinateSystem;
    +        // Only cartesian2d support down sampling
    +        if (coordSys.type === 'cartesian2d' && sampling) {
    +            var baseAxis = coordSys.getBaseAxis();
    +            var valueAxis = coordSys.getOtherAxis(baseAxis);
    +            var extent = baseAxis.getExtent();
    +            // Coordinste system has been resized
    +            var size = extent[1] - extent[0];
    +            var rate = Math.round(data.count() / size);
    +            if (rate > 1) {
    +                var sampler;
    +                if (typeof sampling === 'string') {
    +                    sampler = samplers[sampling];
    +                }
    +                else if (typeof sampling === 'function') {
    +                    sampler = sampling;
    +                }
    +                if (sampler) {
    +                    data = data.downSample(
    +                        valueAxis.dim, 1 / rate, sampler, indexSampler
    +                    );
    +                    seriesModel.setData(data);
    +                }
    +            }
    +        }
    +    }, this);
    +};
    +
    +/**
    + * Cartesian coordinate system
    + * @module  echarts/coord/Cartesian
    + *
    + */
    +
    +function dimAxisMapper(dim) {
    +    return this._axes[dim];
    +}
    +
    +/**
    + * @alias module:echarts/coord/Cartesian
    + * @constructor
    + */
    +var Cartesian = function (name) {
    +    this._axes = {};
    +
    +    this._dimList = [];
    +
    +    /**
    +     * @type {string}
    +     */
    +    this.name = name || '';
    +};
    +
    +Cartesian.prototype = {
    +
    +    constructor: Cartesian,
    +
    +    type: 'cartesian',
    +
    +    /**
    +     * Get axis
    +     * @param  {number|string} dim
    +     * @return {module:echarts/coord/Cartesian~Axis}
    +     */
    +    getAxis: function (dim) {
    +        return this._axes[dim];
    +    },
    +
    +    /**
    +     * Get axes list
    +     * @return {Array.<module:echarts/coord/Cartesian~Axis>}
    +     */
    +    getAxes: function () {
    +        return map(this._dimList, dimAxisMapper, this);
    +    },
    +
    +    /**
    +     * Get axes list by given scale type
    +     */
    +    getAxesByScale: function (scaleType) {
    +        scaleType = scaleType.toLowerCase();
    +        return filter(
    +            this.getAxes(),
    +            function (axis) {
    +                return axis.scale.type === scaleType;
    +            }
    +        );
    +    },
    +
    +    /**
    +     * Add axis
    +     * @param {module:echarts/coord/Cartesian.Axis}
    +     */
    +    addAxis: function (axis) {
    +        var dim = axis.dim;
    +
    +        this._axes[dim] = axis;
    +
    +        this._dimList.push(dim);
    +    },
    +
    +    /**
    +     * Convert data to coord in nd space
    +     * @param {Array.<number>|Object.<string, number>} val
    +     * @return {Array.<number>|Object.<string, number>}
    +     */
    +    dataToCoord: function (val) {
    +        return this._dataCoordConvert(val, 'dataToCoord');
    +    },
    +
    +    /**
    +     * Convert coord in nd space to data
    +     * @param  {Array.<number>|Object.<string, number>} val
    +     * @return {Array.<number>|Object.<string, number>}
    +     */
    +    coordToData: function (val) {
    +        return this._dataCoordConvert(val, 'coordToData');
    +    },
    +
    +    _dataCoordConvert: function (input, method) {
    +        var dimList = this._dimList;
    +
    +        var output = input instanceof Array ? [] : {};
    +
    +        for (var i = 0; i < dimList.length; i++) {
    +            var dim = dimList[i];
    +            var axis = this._axes[dim];
    +
    +            output[dim] = axis[method](input[dim]);
    +        }
    +
    +        return output;
    +    }
    +};
    +
    +function Cartesian2D(name) {
    +
    +    Cartesian.call(this, name);
    +}
    +
    +Cartesian2D.prototype = {
    +
    +    constructor: Cartesian2D,
    +
    +    type: 'cartesian2d',
    +
    +    /**
    +     * @type {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: ['x', 'y'],
    +
    +    /**
    +     * Base axis will be used on stacking.
    +     *
    +     * @return {module:echarts/coord/cartesian/Axis2D}
    +     */
    +    getBaseAxis: function () {
    +        return this.getAxesByScale('ordinal')[0]
    +            || this.getAxesByScale('time')[0]
    +            || this.getAxis('x');
    +    },
    +
    +    /**
    +     * If contain point
    +     * @param {Array.<number>} point
    +     * @return {boolean}
    +     */
    +    containPoint: function (point) {
    +        var axisX = this.getAxis('x');
    +        var axisY = this.getAxis('y');
    +        return axisX.contain(axisX.toLocalCoord(point[0]))
    +            && axisY.contain(axisY.toLocalCoord(point[1]));
    +    },
    +
    +    /**
    +     * If contain data
    +     * @param {Array.<number>} data
    +     * @return {boolean}
    +     */
    +    containData: function (data) {
    +        return this.getAxis('x').containData(data[0])
    +            && this.getAxis('y').containData(data[1]);
    +    },
    +
    +    /**
    +     * @param {Array.<number>} data
    +     * @param {boolean} [clamp=false]
    +     * @return {Array.<number>}
    +     */
    +    dataToPoint: function (data, clamp) {
    +        var xAxis = this.getAxis('x');
    +        var yAxis = this.getAxis('y');
    +        return [
    +            xAxis.toGlobalCoord(xAxis.dataToCoord(data[0], clamp)),
    +            yAxis.toGlobalCoord(yAxis.dataToCoord(data[1], clamp))
    +        ];
    +    },
    +
    +    /**
    +     * @param {Array.<number>} point
    +     * @param {boolean} [clamp=false]
    +     * @return {Array.<number>}
    +     */
    +    pointToData: function (point, clamp) {
    +        var xAxis = this.getAxis('x');
    +        var yAxis = this.getAxis('y');
    +        return [
    +            xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp),
    +            yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp)
    +        ];
    +    },
    +
    +    /**
    +     * Get other axis
    +     * @param {module:echarts/coord/cartesian/Axis2D} axis
    +     */
    +    getOtherAxis: function (axis) {
    +        return this.getAxis(axis.dim === 'x' ? 'y' : 'x');
    +    }
    +
    +};
    +
    +inherits(Cartesian2D, Cartesian);
    +
    +/**
    + * Extend axis 2d
    + * @constructor module:echarts/coord/cartesian/Axis2D
    + * @extends {module:echarts/coord/cartesian/Axis}
    + * @param {string} dim
    + * @param {*} scale
    + * @param {Array.<number>} coordExtent
    + * @param {string} axisType
    + * @param {string} position
    + */
    +var Axis2D = function (dim, scale, coordExtent, axisType, position) {
    +    Axis.call(this, dim, scale, coordExtent);
    +    /**
    +     * Axis type
    +     *  - 'category'
    +     *  - 'value'
    +     *  - 'time'
    +     *  - 'log'
    +     * @type {string}
    +     */
    +    this.type = axisType || 'value';
    +
    +    /**
    +     * Axis position
    +     *  - 'top'
    +     *  - 'bottom'
    +     *  - 'left'
    +     *  - 'right'
    +     */
    +    this.position = position || 'bottom';
    +};
    +
    +Axis2D.prototype = {
    +
    +    constructor: Axis2D,
    +
    +    /**
    +     * Index of axis, can be used as key
    +     */
    +    index: 0,
    +    /**
    +     * If axis is on the zero position of the other axis
    +     * @type {boolean}
    +     */
    +    onZero: false,
    +
    +    /**
    +     * Axis model
    +     * @param {module:echarts/coord/cartesian/AxisModel}
    +     */
    +    model: null,
    +
    +    isHorizontal: function () {
    +        var position = this.position;
    +        return position === 'top' || position === 'bottom';
    +    },
    +
    +    /**
    +     * Each item cooresponds to this.getExtent(), which
    +     * means globalExtent[0] may greater than globalExtent[1],
    +     * unless `asc` is input.
    +     *
    +     * @param {boolean} [asc]
    +     * @return {Array.<number>}
    +     */
    +    getGlobalExtent: function (asc) {
    +        var ret = this.getExtent();
    +        ret[0] = this.toGlobalCoord(ret[0]);
    +        ret[1] = this.toGlobalCoord(ret[1]);
    +        asc && ret[0] > ret[1] && ret.reverse();
    +        return ret;
    +    },
    +
    +    getOtherAxis: function () {
    +        this.grid.getOtherAxis();
    +    },
    +
    +    /**
    +     * If label is ignored.
    +     * Automatically used when axis is category and label can not be all shown
    +     * @param  {number}  idx
    +     * @return {boolean}
    +     */
    +    isLabelIgnored: function (idx) {
    +        if (this.type === 'category') {
    +            var labelInterval = this.getLabelInterval();
    +            return ((typeof labelInterval === 'function')
    +                && !labelInterval(idx, this.scale.getLabel(idx)))
    +                || idx % (labelInterval + 1);
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    pointToData: function (point, clamp) {
    +        return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp);
    +    },
    +
    +    /**
    +     * Transform global coord to local coord,
    +     * i.e. var localCoord = axis.toLocalCoord(80);
    +     * designate by module:echarts/coord/cartesian/Grid.
    +     * @type {Function}
    +     */
    +    toLocalCoord: null,
    +
    +    /**
    +     * Transform global coord to local coord,
    +     * i.e. var globalCoord = axis.toLocalCoord(40);
    +     * designate by module:echarts/coord/cartesian/Grid.
    +     * @type {Function}
    +     */
    +    toGlobalCoord: null
    +
    +};
    +
    +inherits(Axis2D, Axis);
    +
    +var defaultOption = {
    +    show: true,
    +    zlevel: 0,                  // 一级层叠
    +    z: 0,                       // 二级层叠
    +    // 反向坐标轴
    +    inverse: false,
    +
    +    // 坐标轴名字,默认为空
    +    name: '',
    +    // 坐标轴名字位置,支持'start' | 'middle' | 'end'
    +    nameLocation: 'end',
    +    // 坐标轴名字旋转,degree。
    +    nameRotate: null, // Adapt to axis rotate, when nameLocation is 'middle'.
    +    nameTruncate: {
    +        maxWidth: null,
    +        ellipsis: '...',
    +        placeholder: '.'
    +    },
    +    // 坐标轴文字样式,默认取全局样式
    +    nameTextStyle: {},
    +    // 文字与轴线距离
    +    nameGap: 15,
    +
    +    silent: false, // Default false to support tooltip.
    +    triggerEvent: false, // Default false to avoid legacy user event listener fail.
    +
    +    tooltip: {
    +        show: false
    +    },
    +
    +    axisPointer: {},
    +
    +    // 坐标轴线
    +    axisLine: {
    +        // 默认显示,属性show控制显示与否
    +        show: true,
    +        onZero: true,
    +        onZeroAxisIndex: null,
    +        // 属性lineStyle控制线条样式
    +        lineStyle: {
    +            color: '#333',
    +            width: 1,
    +            type: 'solid'
    +        },
    +        // 坐标轴两端的箭头
    +        symbol: ['none', 'none'],
    +        symbolSize: [10, 15]
    +    },
    +    // 坐标轴小标记
    +    axisTick: {
    +        // 属性show控制显示与否,默认显示
    +        show: true,
    +        // 控制小标记是否在grid里
    +        inside: false,
    +        // 属性length控制线长
    +        length: 5,
    +        // 属性lineStyle控制线条样式
    +        lineStyle: {
    +            width: 1
    +        }
    +    },
    +    // 坐标轴文本标签,详见axis.axisLabel
    +    axisLabel: {
    +        show: true,
    +        // 控制文本标签是否在grid里
    +        inside: false,
    +        rotate: 0,
    +        showMinLabel: null, // true | false | null (auto)
    +        showMaxLabel: null, // true | false | null (auto)
    +        margin: 8,
    +        // formatter: null,
    +        // 其余属性默认使用全局文本样式,详见TEXTSTYLE
    +        fontSize: 12
    +    },
    +    // 分隔线
    +    splitLine: {
    +        // 默认显示,属性show控制显示与否
    +        show: true,
    +        // 属性lineStyle(详见lineStyle)控制线条样式
    +        lineStyle: {
    +            color: ['#ccc'],
    +            width: 1,
    +            type: 'solid'
    +        }
    +    },
    +    // 分隔区域
    +    splitArea: {
    +        // 默认不显示,属性show控制显示与否
    +        show: false,
    +        // 属性areaStyle(详见areaStyle)控制区域样式
    +        areaStyle: {
    +            color: ['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)']
    +        }
    +    }
    +};
    +
    +var axisDefault = {};
    +
    +axisDefault.categoryAxis = merge({
    +    // 类目起始和结束两端空白策略
    +    boundaryGap: true,
    +    // splitArea: {
    +        // show: false
    +    // },
    +    splitLine: {
    +        show: false
    +    },
    +    // 坐标轴小标记
    +    axisTick: {
    +        // If tick is align with label when boundaryGap is true
    +        alignWithLabel: false,
    +        interval: 'auto'
    +    },
    +    // 坐标轴文本标签,详见axis.axisLabel
    +    axisLabel: {
    +        interval: 'auto'
    +    }
    +}, defaultOption);
    +
    +axisDefault.valueAxis = merge({
    +    // 数值起始和结束两端空白策略
    +    boundaryGap: [0, 0],
    +    // 最小值, 设置成 'dataMin' 则从数据中计算最小值
    +    // min: null,
    +    // 最大值,设置成 'dataMax' 则从数据中计算最大值
    +    // max: null,
    +    // Readonly prop, specifies start value of the range when using data zoom.
    +    // rangeStart: null
    +    // Readonly prop, specifies end value of the range when using data zoom.
    +    // rangeEnd: null
    +    // 脱离0值比例,放大聚焦到最终_min,_max区间
    +    // scale: false,
    +    // 分割段数,默认为5
    +    splitNumber: 5
    +    // Minimum interval
    +    // minInterval: null
    +    // maxInterval: null
    +}, defaultOption);
    +
    +// FIXME
    +axisDefault.timeAxis = defaults({
    +    scale: true,
    +    min: 'dataMin',
    +    max: 'dataMax'
    +}, axisDefault.valueAxis);
    +
    +axisDefault.logAxis = defaults({
    +    scale: true,
    +    logBase: 10
    +}, axisDefault.valueAxis);
    +
    +// FIXME axisType is fixed ?
    +var AXIS_TYPES = ['value', 'category', 'time', 'log'];
    +
    +/**
    + * Generate sub axis model class
    + * @param {string} axisName 'x' 'y' 'radius' 'angle' 'parallel'
    + * @param {module:echarts/model/Component} BaseAxisModelClass
    + * @param {Function} axisTypeDefaulter
    + * @param {Object} [extraDefaultOption]
    + */
    +var axisModelCreator = function (axisName, BaseAxisModelClass, axisTypeDefaulter, extraDefaultOption) {
    +
    +    each$1(AXIS_TYPES, function (axisType) {
    +
    +        BaseAxisModelClass.extend({
    +
    +            type: axisName + 'Axis.' + axisType,
    +
    +            mergeDefaultAndTheme: function (option, ecModel) {
    +                var layoutMode = this.layoutMode;
    +                var inputPositionParams = layoutMode
    +                    ? getLayoutParams(option) : {};
    +
    +                var themeModel = ecModel.getTheme();
    +                merge(option, themeModel.get(axisType + 'Axis'));
    +                merge(option, this.getDefaultOption());
    +
    +                option.type = axisTypeDefaulter(axisName, option);
    +
    +                if (layoutMode) {
    +                    mergeLayoutParam(option, inputPositionParams, layoutMode);
    +                }
    +            },
    +
    +            defaultOption: mergeAll(
    +                [
    +                    {},
    +                    axisDefault[axisType + 'Axis'],
    +                    extraDefaultOption
    +                ],
    +                true
    +            )
    +        });
    +    });
    +
    +    ComponentModel.registerSubTypeDefaulter(
    +        axisName + 'Axis',
    +        curry(axisTypeDefaulter, axisName)
    +    );
    +};
    +
    +var AxisModel = ComponentModel.extend({
    +
    +    type: 'cartesian2dAxis',
    +
    +    /**
    +     * @type {module:echarts/coord/cartesian/Axis2D}
    +     */
    +    axis: null,
    +
    +    /**
    +     * @override
    +     */
    +    init: function () {
    +        AxisModel.superApply(this, 'init', arguments);
    +        this.resetRange();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function () {
    +        AxisModel.superApply(this, 'mergeOption', arguments);
    +        this.resetRange();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    restoreData: function () {
    +        AxisModel.superApply(this, 'restoreData', arguments);
    +        this.resetRange();
    +    },
    +
    +    /**
    +     * @override
    +     * @return {module:echarts/model/Component}
    +     */
    +    getCoordSysModel: function () {
    +        return this.ecModel.queryComponents({
    +            mainType: 'grid',
    +            index: this.option.gridIndex,
    +            id: this.option.gridId
    +        })[0];
    +    }
    +
    +});
    +
    +function getAxisType(axisDim, option) {
    +    // Default axis with data is category axis
    +    return option.type || (option.data ? 'category' : 'value');
    +}
    +
    +merge(AxisModel.prototype, axisModelCommonMixin);
    +
    +var extraOption = {
    +    // gridIndex: 0,
    +    // gridId: '',
    +
    +    // Offset is for multiple axis on the same position
    +    offset: 0
    +};
    +
    +axisModelCreator('x', AxisModel, getAxisType, extraOption);
    +axisModelCreator('y', AxisModel, getAxisType, extraOption);
    +
    +// Grid 是在有直角坐标系的时候必须要存在的
    +// 所以这里也要被 Cartesian2D 依赖
    +
    +ComponentModel.extend({
    +
    +    type: 'grid',
    +
    +    dependencies: ['xAxis', 'yAxis'],
    +
    +    layoutMode: 'box',
    +
    +    /**
    +     * @type {module:echarts/coord/cartesian/Grid}
    +     */
    +    coordinateSystem: null,
    +
    +    defaultOption: {
    +        show: false,
    +        zlevel: 0,
    +        z: 0,
    +        left: '10%',
    +        top: 60,
    +        right: '10%',
    +        bottom: 60,
    +        // If grid size contain label
    +        containLabel: false,
    +        // width: {totalWidth} - left - right,
    +        // height: {totalHeight} - top - bottom,
    +        backgroundColor: 'rgba(0,0,0,0)',
    +        borderWidth: 1,
    +        borderColor: '#ccc'
    +    }
    +});
    +
    +/**
    + * Grid is a region which contains at most 4 cartesian systems
    + *
    + * TODO Default cartesian
    + */
    +
    +// Depends on GridModel, AxisModel, which performs preprocess.
    +var each$8 = each$1;
    +var ifAxisCrossZero$1 = ifAxisCrossZero;
    +var niceScaleExtent$1 = niceScaleExtent;
    +
    +/**
    + * Check if the axis is used in the specified grid
    + * @inner
    + */
    +function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {
    +    return axisModel.getCoordSysModel() === gridModel;
    +}
    +
    +function rotateTextRect(textRect, rotate) {
    +  var rotateRadians = rotate * Math.PI / 180;
    +  var boundingBox = textRect.plain();
    +  var beforeWidth = boundingBox.width;
    +  var beforeHeight = boundingBox.height;
    +  var afterWidth = beforeWidth * Math.cos(rotateRadians) + beforeHeight * Math.sin(rotateRadians);
    +  var afterHeight = beforeWidth * Math.sin(rotateRadians) + beforeHeight * Math.cos(rotateRadians);
    +  var rotatedRect = new BoundingRect(boundingBox.x, boundingBox.y, afterWidth, afterHeight);
    +
    +  return rotatedRect;
    +}
    +
    +function getLabelUnionRect(axis) {
    +    var axisModel = axis.model;
    +    var labels = axisModel.getFormattedLabels();
    +    var axisLabelModel = axisModel.getModel('axisLabel');
    +    var rect;
    +    var step = 1;
    +    var labelCount = labels.length;
    +    if (labelCount > 40) {
    +        // Simple optimization for large amount of labels
    +        step = Math.ceil(labelCount / 40);
    +    }
    +    for (var i = 0; i < labelCount; i += step) {
    +        if (!axis.isLabelIgnored(i)) {
    +            var unrotatedSingleRect = axisLabelModel.getTextRect(labels[i]);
    +            var singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0);
    +
    +            rect ? rect.union(singleRect) : (rect = singleRect);
    +        }
    +    }
    +    return rect;
    +}
    +
    +function Grid(gridModel, ecModel, api) {
    +    /**
    +     * @type {Object.<string, module:echarts/coord/cartesian/Cartesian2D>}
    +     * @private
    +     */
    +    this._coordsMap = {};
    +
    +    /**
    +     * @type {Array.<module:echarts/coord/cartesian/Cartesian>}
    +     * @private
    +     */
    +    this._coordsList = [];
    +
    +    /**
    +     * @type {Object.<string, module:echarts/coord/cartesian/Axis2D>}
    +     * @private
    +     */
    +    this._axesMap = {};
    +
    +    /**
    +     * @type {Array.<module:echarts/coord/cartesian/Axis2D>}
    +     * @private
    +     */
    +    this._axesList = [];
    +
    +    this._initCartesian(gridModel, ecModel, api);
    +
    +    this.model = gridModel;
    +}
    +
    +var gridProto = Grid.prototype;
    +
    +gridProto.type = 'grid';
    +
    +gridProto.axisPointerEnabled = true;
    +
    +gridProto.getRect = function () {
    +    return this._rect;
    +};
    +
    +gridProto.update = function (ecModel, api) {
    +
    +    var axesMap = this._axesMap;
    +
    +    this._updateScale(ecModel, this.model);
    +
    +    each$8(axesMap.x, function (xAxis) {
    +        niceScaleExtent$1(xAxis.scale, xAxis.model);
    +    });
    +    each$8(axesMap.y, function (yAxis) {
    +        niceScaleExtent$1(yAxis.scale, yAxis.model);
    +    });
    +    each$8(axesMap.x, function (xAxis) {
    +        fixAxisOnZero(axesMap, 'y', xAxis);
    +    });
    +    each$8(axesMap.y, function (yAxis) {
    +        fixAxisOnZero(axesMap, 'x', yAxis);
    +    });
    +
    +    // Resize again if containLabel is enabled
    +    // FIXME It may cause getting wrong grid size in data processing stage
    +    this.resize(this.model, api);
    +};
    +
    +function fixAxisOnZero(axesMap, otherAxisDim, axis) {
    +    // onZero can not be enabled in these two situations:
    +    // 1. When any other axis is a category axis.
    +    // 2. When no axis is cross 0 point.
    +    var axes = axesMap[otherAxisDim];
    +
    +    if (!axis.onZero) {
    +        return;
    +    }
    +
    +    var onZeroAxisIndex = axis.onZeroAxisIndex;
    +
    +    // If target axis is specified.
    +    if (onZeroAxisIndex != null) {
    +        var otherAxis = axes[onZeroAxisIndex];
    +        if (otherAxis && canNotOnZeroToAxis(otherAxis)) {
    +            axis.onZero = false;
    +        }
    +        return;
    +    }
    +
    +    for (var idx in axes) {
    +        if (axes.hasOwnProperty(idx)) {
    +            var otherAxis = axes[idx];
    +            if (otherAxis && !canNotOnZeroToAxis(otherAxis)) {
    +                onZeroAxisIndex = +idx;
    +                break;
    +            }
    +        }
    +    }
    +
    +    if (onZeroAxisIndex == null) {
    +        axis.onZero = false;
    +    }
    +    axis.onZeroAxisIndex = onZeroAxisIndex;
    +}
    +
    +function canNotOnZeroToAxis(axis) {
    +    return axis.type === 'category' || axis.type === 'time' || !ifAxisCrossZero$1(axis);
    +}
    +
    +/**
    + * Resize the grid
    + * @param {module:echarts/coord/cartesian/GridModel} gridModel
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +gridProto.resize = function (gridModel, api, ignoreContainLabel) {
    +
    +    var gridRect = getLayoutRect(
    +        gridModel.getBoxLayoutParams(), {
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        });
    +
    +    this._rect = gridRect;
    +
    +    var axesList = this._axesList;
    +
    +    adjustAxes();
    +
    +    // Minus label size
    +    if (!ignoreContainLabel && gridModel.get('containLabel')) {
    +        each$8(axesList, function (axis) {
    +            if (!axis.model.get('axisLabel.inside')) {
    +                var labelUnionRect = getLabelUnionRect(axis);
    +                if (labelUnionRect) {
    +                    var dim = axis.isHorizontal() ? 'height' : 'width';
    +                    var margin = axis.model.get('axisLabel.margin');
    +                    gridRect[dim] -= labelUnionRect[dim] + margin;
    +                    if (axis.position === 'top') {
    +                        gridRect.y += labelUnionRect.height + margin;
    +                    }
    +                    else if (axis.position === 'left')  {
    +                        gridRect.x += labelUnionRect.width + margin;
    +                    }
    +                }
    +            }
    +        });
    +
    +        adjustAxes();
    +    }
    +
    +    function adjustAxes() {
    +        each$8(axesList, function (axis) {
    +            var isHorizontal = axis.isHorizontal();
    +            var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];
    +            var idx = axis.inverse ? 1 : 0;
    +            axis.setExtent(extent[idx], extent[1 - idx]);
    +            updateAxisTransfrom(axis, isHorizontal ? gridRect.x : gridRect.y);
    +        });
    +    }
    +};
    +
    +/**
    + * @param {string} axisType
    + * @param {number} [axisIndex]
    + */
    +gridProto.getAxis = function (axisType, axisIndex) {
    +    var axesMapOnDim = this._axesMap[axisType];
    +    if (axesMapOnDim != null) {
    +        if (axisIndex == null) {
    +            // Find first axis
    +            for (var name in axesMapOnDim) {
    +                if (axesMapOnDim.hasOwnProperty(name)) {
    +                    return axesMapOnDim[name];
    +                }
    +            }
    +        }
    +        return axesMapOnDim[axisIndex];
    +    }
    +};
    +
    +/**
    + * @return {Array.<module:echarts/coord/Axis>}
    + */
    +gridProto.getAxes = function () {
    +    return this._axesList.slice();
    +};
    +
    +/**
    + * Usage:
    + *      grid.getCartesian(xAxisIndex, yAxisIndex);
    + *      grid.getCartesian(xAxisIndex);
    + *      grid.getCartesian(null, yAxisIndex);
    + *      grid.getCartesian({xAxisIndex: ..., yAxisIndex: ...});
    + *
    + * @param {number|Object} [xAxisIndex]
    + * @param {number} [yAxisIndex]
    + */
    +gridProto.getCartesian = function (xAxisIndex, yAxisIndex) {
    +    if (xAxisIndex != null && yAxisIndex != null) {
    +        var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
    +        return this._coordsMap[key];
    +    }
    +
    +    if (isObject(xAxisIndex)) {
    +        yAxisIndex = xAxisIndex.yAxisIndex;
    +        xAxisIndex = xAxisIndex.xAxisIndex;
    +    }
    +    // When only xAxisIndex or yAxisIndex given, find its first cartesian.
    +    for (var i = 0, coordList = this._coordsList; i < coordList.length; i++) {
    +        if (coordList[i].getAxis('x').index === xAxisIndex
    +            || coordList[i].getAxis('y').index === yAxisIndex
    +        ) {
    +            return coordList[i];
    +        }
    +    }
    +};
    +
    +gridProto.getCartesians = function () {
    +    return this._coordsList.slice();
    +};
    +
    +/**
    + * @implements
    + * see {module:echarts/CoodinateSystem}
    + */
    +gridProto.convertToPixel = function (ecModel, finder, value) {
    +    var target = this._findConvertTarget(ecModel, finder);
    +
    +    return target.cartesian
    +        ? target.cartesian.dataToPoint(value)
    +        : target.axis
    +        ? target.axis.toGlobalCoord(target.axis.dataToCoord(value))
    +        : null;
    +};
    +
    +/**
    + * @implements
    + * see {module:echarts/CoodinateSystem}
    + */
    +gridProto.convertFromPixel = function (ecModel, finder, value) {
    +    var target = this._findConvertTarget(ecModel, finder);
    +
    +    return target.cartesian
    +        ? target.cartesian.pointToData(value)
    +        : target.axis
    +        ? target.axis.coordToData(target.axis.toLocalCoord(value))
    +        : null;
    +};
    +
    +/**
    + * @inner
    + */
    +gridProto._findConvertTarget = function (ecModel, finder) {
    +    var seriesModel = finder.seriesModel;
    +    var xAxisModel = finder.xAxisModel
    +        || (seriesModel && seriesModel.getReferringComponents('xAxis')[0]);
    +    var yAxisModel = finder.yAxisModel
    +        || (seriesModel && seriesModel.getReferringComponents('yAxis')[0]);
    +    var gridModel = finder.gridModel;
    +    var coordsList = this._coordsList;
    +    var cartesian;
    +    var axis;
    +
    +    if (seriesModel) {
    +        cartesian = seriesModel.coordinateSystem;
    +        indexOf(coordsList, cartesian) < 0 && (cartesian = null);
    +    }
    +    else if (xAxisModel && yAxisModel) {
    +        cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
    +    }
    +    else if (xAxisModel) {
    +        axis = this.getAxis('x', xAxisModel.componentIndex);
    +    }
    +    else if (yAxisModel) {
    +        axis = this.getAxis('y', yAxisModel.componentIndex);
    +    }
    +    // Lowest priority.
    +    else if (gridModel) {
    +        var grid = gridModel.coordinateSystem;
    +        if (grid === this) {
    +            cartesian = this._coordsList[0];
    +        }
    +    }
    +
    +    return {cartesian: cartesian, axis: axis};
    +};
    +
    +/**
    + * @implements
    + * see {module:echarts/CoodinateSystem}
    + */
    +gridProto.containPoint = function (point) {
    +    var coord = this._coordsList[0];
    +    if (coord) {
    +        return coord.containPoint(point);
    +    }
    +};
    +
    +/**
    + * Initialize cartesian coordinate systems
    + * @private
    + */
    +gridProto._initCartesian = function (gridModel, ecModel, api) {
    +    var axisPositionUsed = {
    +        left: false,
    +        right: false,
    +        top: false,
    +        bottom: false
    +    };
    +
    +    var axesMap = {
    +        x: {},
    +        y: {}
    +    };
    +    var axesCount = {
    +        x: 0,
    +        y: 0
    +    };
    +
    +    /// Create axis
    +    ecModel.eachComponent('xAxis', createAxisCreator('x'), this);
    +    ecModel.eachComponent('yAxis', createAxisCreator('y'), this);
    +
    +    if (!axesCount.x || !axesCount.y) {
    +        // Roll back when there no either x or y axis
    +        this._axesMap = {};
    +        this._axesList = [];
    +        return;
    +    }
    +
    +    this._axesMap = axesMap;
    +
    +    /// Create cartesian2d
    +    each$8(axesMap.x, function (xAxis, xAxisIndex) {
    +        each$8(axesMap.y, function (yAxis, yAxisIndex) {
    +            var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
    +            var cartesian = new Cartesian2D(key);
    +
    +            cartesian.grid = this;
    +            cartesian.model = gridModel;
    +
    +            this._coordsMap[key] = cartesian;
    +            this._coordsList.push(cartesian);
    +
    +            cartesian.addAxis(xAxis);
    +            cartesian.addAxis(yAxis);
    +        }, this);
    +    }, this);
    +
    +    function createAxisCreator(axisType) {
    +        return function (axisModel, idx) {
    +            if (!isAxisUsedInTheGrid(axisModel, gridModel, ecModel)) {
    +                return;
    +            }
    +
    +            var axisPosition = axisModel.get('position');
    +            if (axisType === 'x') {
    +                // Fix position
    +                if (axisPosition !== 'top' && axisPosition !== 'bottom') {
    +                    // Default bottom of X
    +                    axisPosition = 'bottom';
    +                    if (axisPositionUsed[axisPosition]) {
    +                        axisPosition = axisPosition === 'top' ? 'bottom' : 'top';
    +                    }
    +                }
    +            }
    +            else {
    +                // Fix position
    +                if (axisPosition !== 'left' && axisPosition !== 'right') {
    +                    // Default left of Y
    +                    axisPosition = 'left';
    +                    if (axisPositionUsed[axisPosition]) {
    +                        axisPosition = axisPosition === 'left' ? 'right' : 'left';
    +                    }
    +                }
    +            }
    +            axisPositionUsed[axisPosition] = true;
    +
    +            var axis = new Axis2D(
    +                axisType, createScaleByModel(axisModel),
    +                [0, 0],
    +                axisModel.get('type'),
    +                axisPosition
    +            );
    +
    +            var isCategory = axis.type === 'category';
    +            axis.onBand = isCategory && axisModel.get('boundaryGap');
    +            axis.inverse = axisModel.get('inverse');
    +
    +            axis.onZero = axisModel.get('axisLine.onZero');
    +            axis.onZeroAxisIndex = axisModel.get('axisLine.onZeroAxisIndex');
    +
    +            // Inject axis into axisModel
    +            axisModel.axis = axis;
    +
    +            // Inject axisModel into axis
    +            axis.model = axisModel;
    +
    +            // Inject grid info axis
    +            axis.grid = this;
    +
    +            // Index of axis, can be used as key
    +            axis.index = idx;
    +
    +            this._axesList.push(axis);
    +
    +            axesMap[axisType][idx] = axis;
    +            axesCount[axisType]++;
    +        };
    +    }
    +};
    +
    +/**
    + * Update cartesian properties from series
    + * @param  {module:echarts/model/Option} option
    + * @private
    + */
    +gridProto._updateScale = function (ecModel, gridModel) {
    +    // Reset scale
    +    each$1(this._axesList, function (axis) {
    +        axis.scale.setExtent(Infinity, -Infinity);
    +    });
    +    ecModel.eachSeries(function (seriesModel) {
    +        if (isCartesian2D(seriesModel)) {
    +            var axesModels = findAxesModels(seriesModel, ecModel);
    +            var xAxisModel = axesModels[0];
    +            var yAxisModel = axesModels[1];
    +
    +            if (!isAxisUsedInTheGrid(xAxisModel, gridModel, ecModel)
    +                || !isAxisUsedInTheGrid(yAxisModel, gridModel, ecModel)
    +                ) {
    +                return;
    +            }
    +
    +            var cartesian = this.getCartesian(
    +                xAxisModel.componentIndex, yAxisModel.componentIndex
    +            );
    +            var data = seriesModel.getData();
    +            var xAxis = cartesian.getAxis('x');
    +            var yAxis = cartesian.getAxis('y');
    +
    +            if (data.type === 'list') {
    +                unionExtent(data, xAxis, seriesModel);
    +                unionExtent(data, yAxis, seriesModel);
    +            }
    +        }
    +    }, this);
    +
    +    function unionExtent(data, axis, seriesModel) {
    +        each$8(seriesModel.coordDimToDataDim(axis.dim), function (dim) {
    +            axis.scale.unionExtentFromData(data, dim);
    +        });
    +    }
    +};
    +
    +/**
    + * @param {string} [dim] 'x' or 'y' or 'auto' or null/undefined
    + * @return {Object} {baseAxes: [], otherAxes: []}
    + */
    +gridProto.getTooltipAxes = function (dim) {
    +    var baseAxes = [];
    +    var otherAxes = [];
    +
    +    each$8(this.getCartesians(), function (cartesian) {
    +        var baseAxis = (dim != null && dim !== 'auto')
    +            ? cartesian.getAxis(dim) : cartesian.getBaseAxis();
    +        var otherAxis = cartesian.getOtherAxis(baseAxis);
    +        indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);
    +        indexOf(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis);
    +    });
    +
    +    return {baseAxes: baseAxes, otherAxes: otherAxes};
    +};
    +
    +/**
    + * @inner
    + */
    +function updateAxisTransfrom(axis, coordBase) {
    +    var axisExtent = axis.getExtent();
    +    var axisExtentSum = axisExtent[0] + axisExtent[1];
    +
    +    // Fast transform
    +    axis.toGlobalCoord = axis.dim === 'x'
    +        ? function (coord) {
    +            return coord + coordBase;
    +        }
    +        : function (coord) {
    +            return axisExtentSum - coord + coordBase;
    +        };
    +    axis.toLocalCoord = axis.dim === 'x'
    +        ? function (coord) {
    +            return coord - coordBase;
    +        }
    +        : function (coord) {
    +            return axisExtentSum - coord + coordBase;
    +        };
    +}
    +
    +var axesTypes = ['xAxis', 'yAxis'];
    +/**
    + * @inner
    + */
    +function findAxesModels(seriesModel, ecModel) {
    +    return map(axesTypes, function (axisType) {
    +        var axisModel = seriesModel.getReferringComponents(axisType)[0];
    +
    +        if (__DEV__) {
    +            if (!axisModel) {
    +                throw new Error(axisType + ' "' + retrieve(
    +                    seriesModel.get(axisType + 'Index'),
    +                    seriesModel.get(axisType + 'Id'),
    +                    0
    +                ) + '" not found');
    +            }
    +        }
    +        return axisModel;
    +    });
    +}
    +
    +/**
    + * @inner
    + */
    +function isCartesian2D(seriesModel) {
    +    return seriesModel.get('coordinateSystem') === 'cartesian2d';
    +}
    +
    +Grid.create = function (ecModel, api) {
    +    var grids = [];
    +    ecModel.eachComponent('grid', function (gridModel, idx) {
    +        var grid = new Grid(gridModel, ecModel, api);
    +        grid.name = 'grid_' + idx;
    +        // dataSampling requires axis extent, so resize
    +        // should be performed in create stage.
    +        grid.resize(gridModel, api, true);
    +
    +        gridModel.coordinateSystem = grid;
    +
    +        grids.push(grid);
    +    });
    +
    +    // Inject the coordinateSystems into seriesModel
    +    ecModel.eachSeries(function (seriesModel) {
    +        if (!isCartesian2D(seriesModel)) {
    +            return;
    +        }
    +
    +        var axesModels = findAxesModels(seriesModel, ecModel);
    +        var xAxisModel = axesModels[0];
    +        var yAxisModel = axesModels[1];
    +
    +        var gridModel = xAxisModel.getCoordSysModel();
    +
    +        if (__DEV__) {
    +            if (!gridModel) {
    +                throw new Error(
    +                    'Grid "' + retrieve(
    +                        xAxisModel.get('gridIndex'),
    +                        xAxisModel.get('gridId'),
    +                        0
    +                    ) + '" not found'
    +                );
    +            }
    +            if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) {
    +                throw new Error('xAxis and yAxis must use the same grid');
    +            }
    +        }
    +
    +        var grid = gridModel.coordinateSystem;
    +
    +        seriesModel.coordinateSystem = grid.getCartesian(
    +            xAxisModel.componentIndex, yAxisModel.componentIndex
    +        );
    +    });
    +
    +    return grids;
    +};
    +
    +// For deciding which dimensions to use when creating list data
    +Grid.dimensions = Grid.prototype.dimensions = Cartesian2D.prototype.dimensions;
    +
    +CoordinateSystemManager.register('cartesian2d', Grid);
    +
    +var PI$2 = Math.PI;
    +
    +function makeAxisEventDataBase(axisModel) {
    +    var eventData = {
    +        componentType: axisModel.mainType
    +    };
    +    eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex;
    +    return eventData;
    +}
    +
    +/**
    + * A final axis is translated and rotated from a "standard axis".
    + * So opt.position and opt.rotation is required.
    + *
    + * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],
    + * for example: (0, 0) ------------> (0, 50)
    + *
    + * nameDirection or tickDirection or labelDirection is 1 means tick
    + * or label is below the standard axis, whereas is -1 means above
    + * the standard axis. labelOffset means offset between label and axis,
    + * which is useful when 'onZero', where axisLabel is in the grid and
    + * label in outside grid.
    + *
    + * Tips: like always,
    + * positive rotation represents anticlockwise, and negative rotation
    + * represents clockwise.
    + * The direction of position coordinate is the same as the direction
    + * of screen coordinate.
    + *
    + * Do not need to consider axis 'inverse', which is auto processed by
    + * axis extent.
    + *
    + * @param {module:zrender/container/Group} group
    + * @param {Object} axisModel
    + * @param {Object} opt Standard axis parameters.
    + * @param {Array.<number>} opt.position [x, y]
    + * @param {number} opt.rotation by radian
    + * @param {number} [opt.nameDirection=1] 1 or -1 Used when nameLocation is 'middle' or 'center'.
    + * @param {number} [opt.tickDirection=1] 1 or -1
    + * @param {number} [opt.labelDirection=1] 1 or -1
    + * @param {number} [opt.labelOffset=0] Usefull when onZero.
    + * @param {string} [opt.axisLabelShow] default get from axisModel.
    + * @param {string} [opt.axisName] default get from axisModel.
    + * @param {number} [opt.axisNameAvailableWidth]
    + * @param {number} [opt.labelRotate] by degree, default get from axisModel.
    + * @param {number} [opt.labelInterval] Default label interval when label
    + *                                     interval from model is null or 'auto'.
    + * @param {number} [opt.strokeContainThreshold] Default label interval when label
    + * @param {number} [opt.nameTruncateMaxWidth]
    + */
    +var AxisBuilder = function (axisModel, opt) {
    +
    +    /**
    +     * @readOnly
    +     */
    +    this.opt = opt;
    +
    +    /**
    +     * @readOnly
    +     */
    +    this.axisModel = axisModel;
    +
    +    // Default value
    +    defaults(
    +        opt,
    +        {
    +            labelOffset: 0,
    +            nameDirection: 1,
    +            tickDirection: 1,
    +            labelDirection: 1,
    +            silent: true
    +        }
    +    );
    +
    +    /**
    +     * @readOnly
    +     */
    +    this.group = new Group();
    +
    +    // FIXME Not use a seperate text group?
    +    var dumbGroup = new Group({
    +        position: opt.position.slice(),
    +        rotation: opt.rotation
    +    });
    +
    +    // this.group.add(dumbGroup);
    +    // this._dumbGroup = dumbGroup;
    +
    +    dumbGroup.updateTransform();
    +    this._transform = dumbGroup.transform;
    +
    +    this._dumbGroup = dumbGroup;
    +};
    +
    +AxisBuilder.prototype = {
    +
    +    constructor: AxisBuilder,
    +
    +    hasBuilder: function (name) {
    +        return !!builders[name];
    +    },
    +
    +    add: function (name) {
    +        builders[name].call(this);
    +    },
    +
    +    getGroup: function () {
    +        return this.group;
    +    }
    +
    +};
    +
    +var builders = {
    +
    +    /**
    +     * @private
    +     */
    +    axisLine: function () {
    +        var opt = this.opt;
    +        var axisModel = this.axisModel;
    +
    +        if (!axisModel.get('axisLine.show')) {
    +            return;
    +        }
    +
    +        var extent = this.axisModel.axis.getExtent();
    +
    +        var matrix = this._transform;
    +        var pt1 = [extent[0], 0];
    +        var pt2 = [extent[1], 0];
    +        if (matrix) {
    +            applyTransform(pt1, pt1, matrix);
    +            applyTransform(pt2, pt2, matrix);
    +        }
    +
    +        var lineStyle = extend(
    +            {
    +                lineCap: 'round'
    +            },
    +            axisModel.getModel('axisLine.lineStyle').getLineStyle()
    +        );
    +
    +        this.group.add(new Line(subPixelOptimizeLine({
    +            // Id for animation
    +            anid: 'line',
    +
    +            shape: {
    +                x1: pt1[0],
    +                y1: pt1[1],
    +                x2: pt2[0],
    +                y2: pt2[1]
    +            },
    +            style: lineStyle,
    +            strokeContainThreshold: opt.strokeContainThreshold || 5,
    +            silent: true,
    +            z2: 1
    +        })));
    +
    +        var arrows = axisModel.get('axisLine.symbol');
    +        var arrowSize = axisModel.get('axisLine.symbolSize');
    +
    +        if (arrows != null) {
    +            if (typeof arrows === 'string') {
    +                // Use the same arrow for start and end point
    +                arrows = [arrows, arrows];
    +            }
    +            if (typeof arrowSize === 'string'
    +                || typeof arrowSize === 'number'
    +            ) {
    +                // Use the same size for width and height
    +                arrowSize = [arrowSize, arrowSize];
    +            }
    +
    +            var symbolWidth = arrowSize[0];
    +            var symbolHeight = arrowSize[1];
    +
    +            each$1([
    +                [opt.rotation + Math.PI / 2, pt1],
    +                [opt.rotation - Math.PI / 2, pt2]
    +            ], function (item, index) {
    +                if (arrows[index] !== 'none' && arrows[index] != null) {
    +                    var symbol = createSymbol(
    +                        arrows[index],
    +                        -symbolWidth / 2,
    +                        -symbolHeight / 2,
    +                        symbolWidth,
    +                        symbolHeight,
    +                        lineStyle.stroke,
    +                        true
    +                    );
    +                    symbol.attr({
    +                        rotation: item[0],
    +                        position: item[1],
    +                        silent: true
    +                    });
    +                    this.group.add(symbol);
    +                }
    +            }, this);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    axisTickLabel: function () {
    +        var axisModel = this.axisModel;
    +        var opt = this.opt;
    +
    +        var tickEls = buildAxisTick(this, axisModel, opt);
    +        var labelEls = buildAxisLabel(this, axisModel, opt);
    +
    +        fixMinMaxLabelShow(axisModel, labelEls, tickEls);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    axisName: function () {
    +        var opt = this.opt;
    +        var axisModel = this.axisModel;
    +        var name = retrieve(opt.axisName, axisModel.get('name'));
    +
    +        if (!name) {
    +            return;
    +        }
    +
    +        var nameLocation = axisModel.get('nameLocation');
    +        var nameDirection = opt.nameDirection;
    +        var textStyleModel = axisModel.getModel('nameTextStyle');
    +        var gap = axisModel.get('nameGap') || 0;
    +
    +        var extent = this.axisModel.axis.getExtent();
    +        var gapSignal = extent[0] > extent[1] ? -1 : 1;
    +        var pos = [
    +            nameLocation === 'start'
    +                ? extent[0] - gapSignal * gap
    +                : nameLocation === 'end'
    +                ? extent[1] + gapSignal * gap
    +                : (extent[0] + extent[1]) / 2, // 'middle'
    +            // Reuse labelOffset.
    +            isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0
    +        ];
    +
    +        var labelLayout;
    +
    +        var nameRotation = axisModel.get('nameRotate');
    +        if (nameRotation != null) {
    +            nameRotation = nameRotation * PI$2 / 180; // To radian.
    +        }
    +
    +        var axisNameAvailableWidth;
    +
    +        if (isNameLocationCenter(nameLocation)) {
    +            labelLayout = innerTextLayout(
    +                opt.rotation,
    +                nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis.
    +                nameDirection
    +            );
    +        }
    +        else {
    +            labelLayout = endTextLayout(
    +                opt, nameLocation, nameRotation || 0, extent
    +            );
    +
    +            axisNameAvailableWidth = opt.axisNameAvailableWidth;
    +            if (axisNameAvailableWidth != null) {
    +                axisNameAvailableWidth = Math.abs(
    +                    axisNameAvailableWidth / Math.sin(labelLayout.rotation)
    +                );
    +                !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null);
    +            }
    +        }
    +
    +        var textFont = textStyleModel.getFont();
    +
    +        var truncateOpt = axisModel.get('nameTruncate', true) || {};
    +        var ellipsis = truncateOpt.ellipsis;
    +        var maxWidth = retrieve(
    +            opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth
    +        );
    +        // FIXME
    +        // truncate rich text? (consider performance)
    +        var truncatedText = (ellipsis != null && maxWidth != null)
    +            ? truncateText$1(
    +                name, maxWidth, textFont, ellipsis,
    +                {minChar: 2, placeholder: truncateOpt.placeholder}
    +            )
    +            : name;
    +
    +        var tooltipOpt = axisModel.get('tooltip', true);
    +
    +        var mainType = axisModel.mainType;
    +        var formatterParams = {
    +            componentType: mainType,
    +            name: name,
    +            $vars: ['name']
    +        };
    +        formatterParams[mainType + 'Index'] = axisModel.componentIndex;
    +
    +        var textEl = new Text({
    +            // Id for animation
    +            anid: 'name',
    +
    +            __fullText: name,
    +            __truncatedText: truncatedText,
    +
    +            position: pos,
    +            rotation: labelLayout.rotation,
    +            silent: isSilent(axisModel),
    +            z2: 1,
    +            tooltip: (tooltipOpt && tooltipOpt.show)
    +                ? extend({
    +                    content: name,
    +                    formatter: function () {
    +                        return name;
    +                    },
    +                    formatterParams: formatterParams
    +                }, tooltipOpt)
    +                : null
    +        });
    +
    +        setTextStyle(textEl.style, textStyleModel, {
    +            text: truncatedText,
    +            textFont: textFont,
    +            textFill: textStyleModel.getTextColor()
    +                || axisModel.get('axisLine.lineStyle.color'),
    +            textAlign: labelLayout.textAlign,
    +            textVerticalAlign: labelLayout.textVerticalAlign
    +        });
    +
    +        if (axisModel.get('triggerEvent')) {
    +            textEl.eventData = makeAxisEventDataBase(axisModel);
    +            textEl.eventData.targetType = 'axisName';
    +            textEl.eventData.name = name;
    +        }
    +
    +        // FIXME
    +        this._dumbGroup.add(textEl);
    +        textEl.updateTransform();
    +
    +        this.group.add(textEl);
    +
    +        textEl.decomposeTransform();
    +    }
    +
    +};
    +
    +/**
    + * @public
    + * @static
    + * @param {Object} opt
    + * @param {number} axisRotation in radian
    + * @param {number} textRotation in radian
    + * @param {number} direction
    + * @return {Object} {
    + *  rotation, // according to axis
    + *  textAlign,
    + *  textVerticalAlign
    + * }
    + */
    +var innerTextLayout = AxisBuilder.innerTextLayout = function (axisRotation, textRotation, direction) {
    +    var rotationDiff = remRadian(textRotation - axisRotation);
    +    var textAlign;
    +    var textVerticalAlign;
    +
    +    if (isRadianAroundZero(rotationDiff)) { // Label is parallel with axis line.
    +        textVerticalAlign = direction > 0 ? 'top' : 'bottom';
    +        textAlign = 'center';
    +    }
    +    else if (isRadianAroundZero(rotationDiff - PI$2)) { // Label is inverse parallel with axis line.
    +        textVerticalAlign = direction > 0 ? 'bottom' : 'top';
    +        textAlign = 'center';
    +    }
    +    else {
    +        textVerticalAlign = 'middle';
    +
    +        if (rotationDiff > 0 && rotationDiff < PI$2) {
    +            textAlign = direction > 0 ? 'right' : 'left';
    +        }
    +        else {
    +            textAlign = direction > 0 ? 'left' : 'right';
    +        }
    +    }
    +
    +    return {
    +        rotation: rotationDiff,
    +        textAlign: textAlign,
    +        textVerticalAlign: textVerticalAlign
    +    };
    +};
    +
    +function endTextLayout(opt, textPosition, textRotate, extent) {
    +    var rotationDiff = remRadian(textRotate - opt.rotation);
    +    var textAlign;
    +    var textVerticalAlign;
    +    var inverse = extent[0] > extent[1];
    +    var onLeft = (textPosition === 'start' && !inverse)
    +        || (textPosition !== 'start' && inverse);
    +
    +    if (isRadianAroundZero(rotationDiff - PI$2 / 2)) {
    +        textVerticalAlign = onLeft ? 'bottom' : 'top';
    +        textAlign = 'center';
    +    }
    +    else if (isRadianAroundZero(rotationDiff - PI$2 * 1.5)) {
    +        textVerticalAlign = onLeft ? 'top' : 'bottom';
    +        textAlign = 'center';
    +    }
    +    else {
    +        textVerticalAlign = 'middle';
    +        if (rotationDiff < PI$2 * 1.5 && rotationDiff > PI$2 / 2) {
    +            textAlign = onLeft ? 'left' : 'right';
    +        }
    +        else {
    +            textAlign = onLeft ? 'right' : 'left';
    +        }
    +    }
    +
    +    return {
    +        rotation: rotationDiff,
    +        textAlign: textAlign,
    +        textVerticalAlign: textVerticalAlign
    +    };
    +}
    +
    +function isSilent(axisModel) {
    +    var tooltipOpt = axisModel.get('tooltip');
    +    return axisModel.get('silent')
    +        // Consider mouse cursor, add these restrictions.
    +        || !(
    +            axisModel.get('triggerEvent') || (tooltipOpt && tooltipOpt.show)
    +        );
    +}
    +
    +function fixMinMaxLabelShow(axisModel, labelEls, tickEls) {
    +    // If min or max are user set, we need to check
    +    // If the tick on min(max) are overlap on their neighbour tick
    +    // If they are overlapped, we need to hide the min(max) tick label
    +    var showMinLabel = axisModel.get('axisLabel.showMinLabel');
    +    var showMaxLabel = axisModel.get('axisLabel.showMaxLabel');
    +
    +    // FIXME
    +    // Have not consider onBand yet, where tick els is more than label els.
    +
    +    labelEls = labelEls || [];
    +    tickEls = tickEls || [];
    +
    +    var firstLabel = labelEls[0];
    +    var nextLabel = labelEls[1];
    +    var lastLabel = labelEls[labelEls.length - 1];
    +    var prevLabel = labelEls[labelEls.length - 2];
    +
    +    var firstTick = tickEls[0];
    +    var nextTick = tickEls[1];
    +    var lastTick = tickEls[tickEls.length - 1];
    +    var prevTick = tickEls[tickEls.length - 2];
    +
    +    if (showMinLabel === false) {
    +        ignoreEl(firstLabel);
    +        ignoreEl(firstTick);
    +    }
    +    else if (isTwoLabelOverlapped(firstLabel, nextLabel)) {
    +        if (showMinLabel) {
    +            ignoreEl(nextLabel);
    +            ignoreEl(nextTick);
    +        }
    +        else {
    +            ignoreEl(firstLabel);
    +            ignoreEl(firstTick);
    +        }
    +    }
    +
    +    if (showMaxLabel === false) {
    +        ignoreEl(lastLabel);
    +        ignoreEl(lastTick);
    +    }
    +    else if (isTwoLabelOverlapped(prevLabel, lastLabel)) {
    +        if (showMaxLabel) {
    +            ignoreEl(prevLabel);
    +            ignoreEl(prevTick);
    +        }
    +        else {
    +            ignoreEl(lastLabel);
    +            ignoreEl(lastTick);
    +        }
    +    }
    +}
    +
    +function ignoreEl(el) {
    +    el && (el.ignore = true);
    +}
    +
    +function isTwoLabelOverlapped(current, next, labelLayout) {
    +    // current and next has the same rotation.
    +    var firstRect = current && current.getBoundingRect().clone();
    +    var nextRect = next && next.getBoundingRect().clone();
    +
    +    if (!firstRect || !nextRect) {
    +        return;
    +    }
    +
    +    // When checking intersect of two rotated labels, we use mRotationBack
    +    // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.
    +    var mRotationBack = identity([]);
    +    rotate(mRotationBack, mRotationBack, -current.rotation);
    +
    +    firstRect.applyTransform(mul$1([], mRotationBack, current.getLocalTransform()));
    +    nextRect.applyTransform(mul$1([], mRotationBack, next.getLocalTransform()));
    +
    +    return firstRect.intersect(nextRect);
    +}
    +
    +function isNameLocationCenter(nameLocation) {
    +    return nameLocation === 'middle' || nameLocation === 'center';
    +}
    +
    +/**
    + * @static
    + */
    +var ifIgnoreOnTick$1 = AxisBuilder.ifIgnoreOnTick = function (
    +    axis,
    +    i,
    +    interval,
    +    ticksCnt,
    +    showMinLabel,
    +    showMaxLabel
    +) {
    +    if (i === 0 && showMinLabel || i === ticksCnt - 1 && showMaxLabel) {
    +        return false;
    +    }
    +
    +    // FIXME
    +    // Have not consider label overlap (if label is too long) yet.
    +
    +    var rawTick;
    +    var scale$$1 = axis.scale;
    +    return scale$$1.type === 'ordinal'
    +        && (
    +            typeof interval === 'function'
    +                ? (
    +                    rawTick = scale$$1.getTicks()[i],
    +                    !interval(rawTick, scale$$1.getLabel(rawTick))
    +                )
    +                : i % (interval + 1)
    +        );
    +};
    +
    +/**
    + * @static
    + */
    +var getInterval$1 = AxisBuilder.getInterval = function (model, labelInterval) {
    +    var interval = model.get('interval');
    +    if (interval == null || interval == 'auto') {
    +        interval = labelInterval;
    +    }
    +    return interval;
    +};
    +
    +function buildAxisTick(axisBuilder, axisModel, opt) {
    +    var axis = axisModel.axis;
    +
    +    if (!axisModel.get('axisTick.show') || axis.scale.isBlank()) {
    +        return;
    +    }
    +
    +    var tickModel = axisModel.getModel('axisTick');
    +
    +    var lineStyleModel = tickModel.getModel('lineStyle');
    +    var tickLen = tickModel.get('length');
    +
    +    var tickInterval = getInterval$1(tickModel, opt.labelInterval);
    +    var ticksCoords = axis.getTicksCoords(tickModel.get('alignWithLabel'));
    +    // FIXME
    +    // Corresponds to ticksCoords ?
    +    var ticks = axis.scale.getTicks();
    +
    +    var showMinLabel = axisModel.get('axisLabel.showMinLabel');
    +    var showMaxLabel = axisModel.get('axisLabel.showMaxLabel');
    +
    +    var pt1 = [];
    +    var pt2 = [];
    +    var matrix = axisBuilder._transform;
    +
    +    var tickEls = [];
    +
    +    var ticksCnt = ticksCoords.length;
    +    for (var i = 0; i < ticksCnt; i++) {
    +        // Only ordinal scale support tick interval
    +        if (ifIgnoreOnTick$1(
    +            axis, i, tickInterval, ticksCnt,
    +            showMinLabel, showMaxLabel
    +        )) {
    +            continue;
    +        }
    +
    +        var tickCoord = ticksCoords[i];
    +
    +        pt1[0] = tickCoord;
    +        pt1[1] = 0;
    +        pt2[0] = tickCoord;
    +        pt2[1] = opt.tickDirection * tickLen;
    +
    +        if (matrix) {
    +            applyTransform(pt1, pt1, matrix);
    +            applyTransform(pt2, pt2, matrix);
    +        }
    +        // Tick line, Not use group transform to have better line draw
    +        var tickEl = new Line(subPixelOptimizeLine({
    +            // Id for animation
    +            anid: 'tick_' + ticks[i],
    +
    +            shape: {
    +                x1: pt1[0],
    +                y1: pt1[1],
    +                x2: pt2[0],
    +                y2: pt2[1]
    +            },
    +            style: defaults(
    +                lineStyleModel.getLineStyle(),
    +                {
    +                    stroke: axisModel.get('axisLine.lineStyle.color')
    +                }
    +            ),
    +            z2: 2,
    +            silent: true
    +        }));
    +        axisBuilder.group.add(tickEl);
    +        tickEls.push(tickEl);
    +    }
    +
    +    return tickEls;
    +}
    +
    +function buildAxisLabel(axisBuilder, axisModel, opt) {
    +    var axis = axisModel.axis;
    +    var show = retrieve(opt.axisLabelShow, axisModel.get('axisLabel.show'));
    +
    +    if (!show || axis.scale.isBlank()) {
    +        return;
    +    }
    +
    +    var labelModel = axisModel.getModel('axisLabel');
    +    var labelMargin = labelModel.get('margin');
    +    var ticks = axis.scale.getTicks();
    +    var labels = axisModel.getFormattedLabels();
    +
    +    // Special label rotate.
    +    var labelRotation = (
    +        retrieve(opt.labelRotate, labelModel.get('rotate')) || 0
    +    ) * PI$2 / 180;
    +
    +    var labelLayout = innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);
    +    var categoryData = axisModel.get('data');
    +
    +    var labelEls = [];
    +    var silent = isSilent(axisModel);
    +    var triggerEvent = axisModel.get('triggerEvent');
    +
    +    var showMinLabel = axisModel.get('axisLabel.showMinLabel');
    +    var showMaxLabel = axisModel.get('axisLabel.showMaxLabel');
    +
    +    each$1(ticks, function (tickVal, index) {
    +        if (ifIgnoreOnTick$1(
    +            axis, index, opt.labelInterval, ticks.length,
    +            showMinLabel, showMaxLabel
    +        )) {
    +                return;
    +        }
    +
    +        var itemLabelModel = labelModel;
    +        if (categoryData && categoryData[tickVal] && categoryData[tickVal].textStyle) {
    +            itemLabelModel = new Model(
    +                categoryData[tickVal].textStyle, labelModel, axisModel.ecModel
    +            );
    +        }
    +
    +        var textColor = itemLabelModel.getTextColor()
    +            || axisModel.get('axisLine.lineStyle.color');
    +
    +        var tickCoord = axis.dataToCoord(tickVal);
    +        var pos = [
    +            tickCoord,
    +            opt.labelOffset + opt.labelDirection * labelMargin
    +        ];
    +        var labelStr = axis.scale.getLabel(tickVal);
    +
    +        var textEl = new Text({
    +            // Id for animation
    +            anid: 'label_' + tickVal,
    +            position: pos,
    +            rotation: labelLayout.rotation,
    +            silent: silent,
    +            z2: 10
    +        });
    +
    +        setTextStyle(textEl.style, itemLabelModel, {
    +            text: labels[index],
    +            textAlign: itemLabelModel.getShallow('align', true)
    +                || labelLayout.textAlign,
    +            textVerticalAlign: itemLabelModel.getShallow('verticalAlign', true)
    +                || itemLabelModel.getShallow('baseline', true)
    +                || labelLayout.textVerticalAlign,
    +            textFill: typeof textColor === 'function'
    +                ? textColor(
    +                    // (1) In category axis with data zoom, tick is not the original
    +                    // index of axis.data. So tick should not be exposed to user
    +                    // in category axis.
    +                    // (2) Compatible with previous version, which always returns labelStr.
    +                    // But in interval scale labelStr is like '223,445', which maked
    +                    // user repalce ','. So we modify it to return original val but remain
    +                    // it as 'string' to avoid error in replacing.
    +                    axis.type === 'category' ? labelStr : axis.type === 'value' ? tickVal + '' : tickVal,
    +                    index
    +                )
    +                : textColor
    +        });
    +
    +        // Pack data for mouse event
    +        if (triggerEvent) {
    +            textEl.eventData = makeAxisEventDataBase(axisModel);
    +            textEl.eventData.targetType = 'axisLabel';
    +            textEl.eventData.value = labelStr;
    +        }
    +
    +        // FIXME
    +        axisBuilder._dumbGroup.add(textEl);
    +        textEl.updateTransform();
    +
    +        labelEls.push(textEl);
    +        axisBuilder.group.add(textEl);
    +
    +        textEl.decomposeTransform();
    +
    +    });
    +
    +    return labelEls;
    +}
    +
    +var each$9 = each$1;
    +var curry$1 = curry;
    +
    +// Build axisPointerModel, mergin tooltip.axisPointer model for each axis.
    +// allAxesInfo should be updated when setOption performed.
    +function collect(ecModel, api) {
    +    var result = {
    +        /**
    +         * key: makeKey(axis.model)
    +         * value: {
    +         *      axis,
    +         *      coordSys,
    +         *      axisPointerModel,
    +         *      triggerTooltip,
    +         *      involveSeries,
    +         *      snap,
    +         *      seriesModels,
    +         *      seriesDataCount
    +         * }
    +         */
    +        axesInfo: {},
    +        seriesInvolved: false,
    +        /**
    +         * key: makeKey(coordSys.model)
    +         * value: Object: key makeKey(axis.model), value: axisInfo
    +         */
    +        coordSysAxesInfo: {},
    +        coordSysMap: {}
    +    };
    +
    +    collectAxesInfo(result, ecModel, api);
    +
    +    // Check seriesInvolved for performance, in case too many series in some chart.
    +    result.seriesInvolved && collectSeriesInfo(result, ecModel);
    +
    +    return result;
    +}
    +
    +function collectAxesInfo(result, ecModel, api) {
    +    var globalTooltipModel = ecModel.getComponent('tooltip');
    +    var globalAxisPointerModel = ecModel.getComponent('axisPointer');
    +    // links can only be set on global.
    +    var linksOption = globalAxisPointerModel.get('link', true) || [];
    +    var linkGroups = [];
    +
    +    // Collect axes info.
    +    each$9(api.getCoordinateSystems(), function (coordSys) {
    +        // Some coordinate system do not support axes, like geo.
    +        if (!coordSys.axisPointerEnabled) {
    +            return;
    +        }
    +
    +        var coordSysKey = makeKey(coordSys.model);
    +        var axesInfoInCoordSys = result.coordSysAxesInfo[coordSysKey] = {};
    +        result.coordSysMap[coordSysKey] = coordSys;
    +
    +        // Set tooltip (like 'cross') is a convienent way to show axisPointer
    +        // for user. So we enable seting tooltip on coordSys model.
    +        var coordSysModel = coordSys.model;
    +        var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);
    +
    +        each$9(coordSys.getAxes(), curry$1(saveTooltipAxisInfo, false, null));
    +
    +        // If axis tooltip used, choose tooltip axis for each coordSys.
    +        // Notice this case: coordSys is `grid` but not `cartesian2D` here.
    +        if (coordSys.getTooltipAxes
    +            && globalTooltipModel
    +            // If tooltip.showContent is set as false, tooltip will not
    +            // show but axisPointer will show as normal.
    +            && baseTooltipModel.get('show')
    +        ) {
    +            // Compatible with previous logic. But series.tooltip.trigger: 'axis'
    +            // or series.data[n].tooltip.trigger: 'axis' are not support any more.
    +            var triggerAxis = baseTooltipModel.get('trigger') === 'axis';
    +            var cross = baseTooltipModel.get('axisPointer.type') === 'cross';
    +            var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get('axisPointer.axis'));
    +            if (triggerAxis || cross) {
    +                each$9(tooltipAxes.baseAxes, curry$1(
    +                    saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis
    +                ));
    +            }
    +            if (cross) {
    +                each$9(tooltipAxes.otherAxes, curry$1(saveTooltipAxisInfo, 'cross', false));
    +            }
    +        }
    +
    +        // fromTooltip: true | false | 'cross'
    +        // triggerTooltip: true | false | null
    +        function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) {
    +            var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel);
    +
    +            var axisPointerShow = axisPointerModel.get('show');
    +            if (!axisPointerShow || (
    +                axisPointerShow === 'auto'
    +                && !fromTooltip
    +                && !isHandleTrigger(axisPointerModel)
    +            )) {
    +                return;
    +            }
    +
    +            if (triggerTooltip == null) {
    +                triggerTooltip = axisPointerModel.get('triggerTooltip');
    +            }
    +
    +            axisPointerModel = fromTooltip
    +                ? makeAxisPointerModel(
    +                    axis, baseTooltipModel, globalAxisPointerModel, ecModel,
    +                    fromTooltip, triggerTooltip
    +                )
    +                : axisPointerModel;
    +
    +            var snap = axisPointerModel.get('snap');
    +            var key = makeKey(axis.model);
    +            var involveSeries = triggerTooltip || snap || axis.type === 'category';
    +
    +            // If result.axesInfo[key] exist, override it (tooltip has higher priority).
    +            var axisInfo = result.axesInfo[key] = {
    +                key: key,
    +                axis: axis,
    +                coordSys: coordSys,
    +                axisPointerModel: axisPointerModel,
    +                triggerTooltip: triggerTooltip,
    +                involveSeries: involveSeries,
    +                snap: snap,
    +                useHandle: isHandleTrigger(axisPointerModel),
    +                seriesModels: []
    +            };
    +            axesInfoInCoordSys[key] = axisInfo;
    +            result.seriesInvolved |= involveSeries;
    +
    +            var groupIndex = getLinkGroupIndex(linksOption, axis);
    +            if (groupIndex != null) {
    +                var linkGroup = linkGroups[groupIndex] || (linkGroups[groupIndex] = {axesInfo: {}});
    +                linkGroup.axesInfo[key] = axisInfo;
    +                linkGroup.mapper = linksOption[groupIndex].mapper;
    +                axisInfo.linkGroup = linkGroup;
    +            }
    +        }
    +    });
    +}
    +
    +function makeAxisPointerModel(
    +    axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip
    +) {
    +    var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');
    +    var volatileOption = {};
    +
    +    each$9(
    +        [
    +            'type', 'snap', 'lineStyle', 'shadowStyle', 'label',
    +            'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'
    +        ],
    +        function (field) {
    +            volatileOption[field] = clone(tooltipAxisPointerModel.get(field));
    +        }
    +    );
    +
    +    // category axis do not auto snap, otherwise some tick that do not
    +    // has value can not be hovered. value/time/log axis default snap if
    +    // triggered from tooltip and trigger tooltip.
    +    volatileOption.snap = axis.type !== 'category' && !!triggerTooltip;
    +
    +    // Compatibel with previous behavior, tooltip axis do not show label by default.
    +    // Only these properties can be overrided from tooltip to axisPointer.
    +    if (tooltipAxisPointerModel.get('type') === 'cross') {
    +        volatileOption.type = 'line';
    +    }
    +    var labelOption = volatileOption.label || (volatileOption.label = {});
    +    // Follow the convention, do not show label when triggered by tooltip by default.
    +    labelOption.show == null && (labelOption.show = false);
    +
    +    if (fromTooltip === 'cross') {
    +        // When 'cross', both axes show labels.
    +        labelOption.show = true;
    +        // If triggerTooltip, this is a base axis, which should better not use cross style
    +        // (cross style is dashed by default)
    +        if (!triggerTooltip) {
    +            var crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle');
    +            crossStyle && defaults(labelOption, crossStyle.textStyle);
    +        }
    +    }
    +
    +    return axis.model.getModel(
    +        'axisPointer',
    +        new Model(volatileOption, globalAxisPointerModel, ecModel)
    +    );
    +}
    +
    +function collectSeriesInfo(result, ecModel) {
    +    // Prepare data for axis trigger
    +    ecModel.eachSeries(function (seriesModel) {
    +
    +        // Notice this case: this coordSys is `cartesian2D` but not `grid`.
    +        var coordSys = seriesModel.coordinateSystem;
    +        var seriesTooltipTrigger = seriesModel.get('tooltip.trigger', true);
    +        var seriesTooltipShow = seriesModel.get('tooltip.show', true);
    +        if (!coordSys
    +            || seriesTooltipTrigger === 'none'
    +            || seriesTooltipTrigger === false
    +            || seriesTooltipTrigger === 'item'
    +            || seriesTooltipShow === false
    +            || seriesModel.get('axisPointer.show', true) === false
    +        ) {
    +            return;
    +        }
    +
    +        each$9(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {
    +            var axis = axisInfo.axis;
    +            if (coordSys.getAxis(axis.dim) === axis) {
    +                axisInfo.seriesModels.push(seriesModel);
    +                axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0);
    +                axisInfo.seriesDataCount += seriesModel.getData().count();
    +            }
    +        });
    +
    +    }, this);
    +}
    +
    +/**
    + * For example:
    + * {
    + *     axisPointer: {
    + *         links: [{
    + *             xAxisIndex: [2, 4],
    + *             yAxisIndex: 'all'
    + *         }, {
    + *             xAxisId: ['a5', 'a7'],
    + *             xAxisName: 'xxx'
    + *         }]
    + *     }
    + * }
    + */
    +function getLinkGroupIndex(linksOption, axis) {
    +    var axisModel = axis.model;
    +    var dim = axis.dim;
    +    for (var i = 0; i < linksOption.length; i++) {
    +        var linkOption = linksOption[i] || {};
    +        if (checkPropInLink(linkOption[dim + 'AxisId'], axisModel.id)
    +            || checkPropInLink(linkOption[dim + 'AxisIndex'], axisModel.componentIndex)
    +            || checkPropInLink(linkOption[dim + 'AxisName'], axisModel.name)
    +        ) {
    +            return i;
    +        }
    +    }
    +}
    +
    +function checkPropInLink(linkPropValue, axisPropValue) {
    +    return linkPropValue === 'all'
    +        || (isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0)
    +        || linkPropValue === axisPropValue;
    +}
    +
    +function fixValue(axisModel) {
    +    var axisInfo = getAxisInfo(axisModel);
    +    if (!axisInfo) {
    +        return;
    +    }
    +
    +    var axisPointerModel = axisInfo.axisPointerModel;
    +    var scale = axisInfo.axis.scale;
    +    var option = axisPointerModel.option;
    +    var status = axisPointerModel.get('status');
    +    var value = axisPointerModel.get('value');
    +
    +    // Parse init value for category and time axis.
    +    if (value != null) {
    +        value = scale.parse(value);
    +    }
    +
    +    var useHandle = isHandleTrigger(axisPointerModel);
    +    // If `handle` used, `axisPointer` will always be displayed, so value
    +    // and status should be initialized.
    +    if (status == null) {
    +        option.status = useHandle ? 'show' : 'hide';
    +    }
    +
    +    var extent = scale.getExtent().slice();
    +    extent[0] > extent[1] && extent.reverse();
    +
    +    if (// Pick a value on axis when initializing.
    +        value == null
    +        // If both `handle` and `dataZoom` are used, value may be out of axis extent,
    +        // where we should re-pick a value to keep `handle` displaying normally.
    +        || value > extent[1]
    +    ) {
    +        // Make handle displayed on the end of the axis when init, which looks better.
    +        value = extent[1];
    +    }
    +    if (value < extent[0]) {
    +        value = extent[0];
    +    }
    +
    +    option.value = value;
    +
    +    if (useHandle) {
    +        option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show';
    +    }
    +}
    +
    +function getAxisInfo(axisModel) {
    +    var coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo;
    +    return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)];
    +}
    +
    +function getAxisPointerModel(axisModel) {
    +    var axisInfo = getAxisInfo(axisModel);
    +    return axisInfo && axisInfo.axisPointerModel;
    +}
    +
    +function isHandleTrigger(axisPointerModel) {
    +    return !!axisPointerModel.get('handle.show');
    +}
    +
    +/**
    + * @param {module:echarts/model/Model} model
    + * @return {string} unique key
    + */
    +function makeKey(model) {
    +    return model.type + '||' + model.id;
    +}
    +
    +/**
    + * Base class of AxisView.
    + */
    +var AxisView = extendComponentView({
    +
    +    type: 'axis',
    +
    +    /**
    +     * @private
    +     */
    +    _axisPointer: null,
    +
    +    /**
    +     * @protected
    +     * @type {string}
    +     */
    +    axisPointerClass: null,
    +
    +    /**
    +     * @override
    +     */
    +    render: function (axisModel, ecModel, api, payload) {
    +        // FIXME
    +        // This process should proformed after coordinate systems updated
    +        // (axis scale updated), and should be performed each time update.
    +        // So put it here temporarily, although it is not appropriate to
    +        // put a model-writing procedure in `view`.
    +        this.axisPointerClass && fixValue(axisModel);
    +
    +        AxisView.superApply(this, 'render', arguments);
    +
    +        updateAxisPointer(this, axisModel, ecModel, api, payload, true);
    +    },
    +
    +    /**
    +     * Action handler.
    +     * @public
    +     * @param {module:echarts/coord/cartesian/AxisModel} axisModel
    +     * @param {module:echarts/model/Global} ecModel
    +     * @param {module:echarts/ExtensionAPI} api
    +     * @param {Object} payload
    +     */
    +    updateAxisPointer: function (axisModel, ecModel, api, payload, force) {
    +        updateAxisPointer(this, axisModel, ecModel, api, payload, false);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function (ecModel, api) {
    +        var axisPointer = this._axisPointer;
    +        axisPointer && axisPointer.remove(api);
    +        AxisView.superApply(this, 'remove', arguments);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function (ecModel, api) {
    +        disposeAxisPointer(this, api);
    +        AxisView.superApply(this, 'dispose', arguments);
    +    }
    +
    +});
    +
    +function updateAxisPointer(axisView, axisModel, ecModel, api, payload, forceRender) {
    +    var Clazz = AxisView.getAxisPointerClass(axisView.axisPointerClass);
    +    if (!Clazz) {
    +        return;
    +    }
    +    var axisPointerModel = getAxisPointerModel(axisModel);
    +    axisPointerModel
    +        ? (axisView._axisPointer || (axisView._axisPointer = new Clazz()))
    +            .render(axisModel, axisPointerModel, api, forceRender)
    +        : disposeAxisPointer(axisView, api);
    +}
    +
    +function disposeAxisPointer(axisView, ecModel, api) {
    +    var axisPointer = axisView._axisPointer;
    +    axisPointer && axisPointer.dispose(ecModel, api);
    +    axisView._axisPointer = null;
    +}
    +
    +var axisPointerClazz = [];
    +
    +AxisView.registerAxisPointerClass = function (type, clazz) {
    +    if (__DEV__) {
    +        if (axisPointerClazz[type]) {
    +            throw new Error('axisPointer ' + type + ' exists');
    +        }
    +    }
    +    axisPointerClazz[type] = clazz;
    +};
    +
    +AxisView.getAxisPointerClass = function (type) {
    +    return type && axisPointerClazz[type];
    +};
    +
    +/**
    + * @param {Object} opt {labelInside}
    + * @return {Object} {
    + *  position, rotation, labelDirection, labelOffset,
    + *  tickDirection, labelRotate, labelInterval, z2
    + * }
    + */
    +function layout(gridModel, axisModel, opt) {
    +    opt = opt || {};
    +    var grid = gridModel.coordinateSystem;
    +    var axis = axisModel.axis;
    +    var layout = {};
    +
    +    var rawAxisPosition = axis.position;
    +    var axisPosition = axis.onZero ? 'onZero' : rawAxisPosition;
    +    var axisDim = axis.dim;
    +
    +    var rect = grid.getRect();
    +    var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];
    +    var idx = {left: 0, right: 1, top: 0, bottom: 1, onZero: 2};
    +    var axisOffset = axisModel.get('offset') || 0;
    +
    +    var posBound = axisDim === 'x'
    +        ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset]
    +        : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];
    +
    +    if (axis.onZero) {
    +        var otherAxis = grid.getAxis(axisDim === 'x' ? 'y' : 'x', axis.onZeroAxisIndex);
    +        var onZeroCoord = otherAxis.toGlobalCoord(otherAxis.dataToCoord(0));
    +        posBound[idx['onZero']] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);
    +    }
    +
    +    // Axis position
    +    layout.position = [
    +        axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0],
    +        axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]
    +    ];
    +
    +    // Axis rotation
    +    layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1);
    +
    +    // Tick and label direction, x y is axisDim
    +    var dirMap = {top: -1, bottom: 1, left: -1, right: 1};
    +
    +    layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];
    +    layout.labelOffset = axis.onZero ? posBound[idx[rawAxisPosition]] - posBound[idx['onZero']] : 0;
    +
    +    if (axisModel.get('axisTick.inside')) {
    +        layout.tickDirection = -layout.tickDirection;
    +    }
    +    if (retrieve(opt.labelInside, axisModel.get('axisLabel.inside'))) {
    +        layout.labelDirection = -layout.labelDirection;
    +    }
    +
    +    // Special label rotation
    +    var labelRotate = axisModel.get('axisLabel.rotate');
    +    layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate;
    +
    +    // label interval when auto mode.
    +    layout.labelInterval = axis.getLabelInterval();
    +
    +    // Over splitLine and splitArea
    +    layout.z2 = 1;
    +
    +    return layout;
    +}
    +
    +var ifIgnoreOnTick = AxisBuilder.ifIgnoreOnTick;
    +var getInterval = AxisBuilder.getInterval;
    +
    +var axisBuilderAttrs = [
    +    'axisLine', 'axisTickLabel', 'axisName'
    +];
    +var selfBuilderAttrs = [
    +    'splitArea', 'splitLine'
    +];
    +
    +// function getAlignWithLabel(model, axisModel) {
    +//     var alignWithLabel = model.get('alignWithLabel');
    +//     if (alignWithLabel === 'auto') {
    +//         alignWithLabel = axisModel.get('axisTick.alignWithLabel');
    +//     }
    +//     return alignWithLabel;
    +// }
    +
    +var CartesianAxisView = AxisView.extend({
    +
    +    type: 'cartesianAxis',
    +
    +    axisPointerClass: 'CartesianAxisPointer',
    +
    +    /**
    +     * @override
    +     */
    +    render: function (axisModel, ecModel, api, payload) {
    +
    +        this.group.removeAll();
    +
    +        var oldAxisGroup = this._axisGroup;
    +        this._axisGroup = new Group();
    +
    +        this.group.add(this._axisGroup);
    +
    +        if (!axisModel.get('show')) {
    +            return;
    +        }
    +
    +        var gridModel = axisModel.getCoordSysModel();
    +
    +        var layout$$1 = layout(gridModel, axisModel);
    +
    +        var axisBuilder = new AxisBuilder(axisModel, layout$$1);
    +
    +        each$1(axisBuilderAttrs, axisBuilder.add, axisBuilder);
    +
    +        this._axisGroup.add(axisBuilder.getGroup());
    +
    +        each$1(selfBuilderAttrs, function (name) {
    +            if (axisModel.get(name + '.show')) {
    +                this['_' + name](axisModel, gridModel, layout$$1.labelInterval);
    +            }
    +        }, this);
    +
    +        groupTransition(oldAxisGroup, this._axisGroup, axisModel);
    +
    +        CartesianAxisView.superCall(this, 'render', axisModel, ecModel, api, payload);
    +    },
    +
    +    /**
    +     * @param {module:echarts/coord/cartesian/AxisModel} axisModel
    +     * @param {module:echarts/coord/cartesian/GridModel} gridModel
    +     * @param {number|Function} labelInterval
    +     * @private
    +     */
    +    _splitLine: function (axisModel, gridModel, labelInterval) {
    +        var axis = axisModel.axis;
    +
    +        if (axis.scale.isBlank()) {
    +            return;
    +        }
    +
    +        var splitLineModel = axisModel.getModel('splitLine');
    +        var lineStyleModel = splitLineModel.getModel('lineStyle');
    +        var lineColors = lineStyleModel.get('color');
    +
    +        var lineInterval = getInterval(splitLineModel, labelInterval);
    +
    +        lineColors = isArray(lineColors) ? lineColors : [lineColors];
    +
    +        var gridRect = gridModel.coordinateSystem.getRect();
    +        var isHorizontal = axis.isHorizontal();
    +
    +        var lineCount = 0;
    +
    +        var ticksCoords = axis.getTicksCoords(
    +            // splitLineModel.get('alignWithLabel')
    +        );
    +        var ticks = axis.scale.getTicks();
    +
    +        var showMinLabel = axisModel.get('axisLabel.showMinLabel');
    +        var showMaxLabel = axisModel.get('axisLabel.showMaxLabel');
    +
    +        var p1 = [];
    +        var p2 = [];
    +        // Simple optimization
    +        // Batching the lines if color are the same
    +        var lineStyle = lineStyleModel.getLineStyle();
    +        for (var i = 0; i < ticksCoords.length; i++) {
    +            if (ifIgnoreOnTick(
    +                axis, i, lineInterval, ticksCoords.length,
    +                showMinLabel, showMaxLabel
    +            )) {
    +                continue;
    +            }
    +
    +            var tickCoord = axis.toGlobalCoord(ticksCoords[i]);
    +
    +            if (isHorizontal) {
    +                p1[0] = tickCoord;
    +                p1[1] = gridRect.y;
    +                p2[0] = tickCoord;
    +                p2[1] = gridRect.y + gridRect.height;
    +            }
    +            else {
    +                p1[0] = gridRect.x;
    +                p1[1] = tickCoord;
    +                p2[0] = gridRect.x + gridRect.width;
    +                p2[1] = tickCoord;
    +            }
    +
    +            var colorIndex = (lineCount++) % lineColors.length;
    +            this._axisGroup.add(new Line(subPixelOptimizeLine({
    +                anid: 'line_' + ticks[i],
    +
    +                shape: {
    +                    x1: p1[0],
    +                    y1: p1[1],
    +                    x2: p2[0],
    +                    y2: p2[1]
    +                },
    +                style: defaults({
    +                    stroke: lineColors[colorIndex]
    +                }, lineStyle),
    +                silent: true
    +            })));
    +        }
    +    },
    +
    +    /**
    +     * @param {module:echarts/coord/cartesian/AxisModel} axisModel
    +     * @param {module:echarts/coord/cartesian/GridModel} gridModel
    +     * @param {number|Function} labelInterval
    +     * @private
    +     */
    +    _splitArea: function (axisModel, gridModel, labelInterval) {
    +        var axis = axisModel.axis;
    +
    +        if (axis.scale.isBlank()) {
    +            return;
    +        }
    +
    +        var splitAreaModel = axisModel.getModel('splitArea');
    +        var areaStyleModel = splitAreaModel.getModel('areaStyle');
    +        var areaColors = areaStyleModel.get('color');
    +
    +        var gridRect = gridModel.coordinateSystem.getRect();
    +
    +        var ticksCoords = axis.getTicksCoords(
    +            // splitAreaModel.get('alignWithLabel')
    +        );
    +        var ticks = axis.scale.getTicks();
    +
    +        var prevX = axis.toGlobalCoord(ticksCoords[0]);
    +        var prevY = axis.toGlobalCoord(ticksCoords[0]);
    +
    +        var count = 0;
    +
    +        var areaInterval = getInterval(splitAreaModel, labelInterval);
    +
    +        var areaStyle = areaStyleModel.getAreaStyle();
    +        areaColors = isArray(areaColors) ? areaColors : [areaColors];
    +
    +        var showMinLabel = axisModel.get('axisLabel.showMinLabel');
    +        var showMaxLabel = axisModel.get('axisLabel.showMaxLabel');
    +
    +        for (var i = 1; i < ticksCoords.length; i++) {
    +            if (ifIgnoreOnTick(
    +                axis, i, areaInterval, ticksCoords.length,
    +                showMinLabel, showMaxLabel
    +            )) {
    +                continue;
    +            }
    +
    +            var tickCoord = axis.toGlobalCoord(ticksCoords[i]);
    +
    +            var x;
    +            var y;
    +            var width;
    +            var height;
    +            if (axis.isHorizontal()) {
    +                x = prevX;
    +                y = gridRect.y;
    +                width = tickCoord - x;
    +                height = gridRect.height;
    +            }
    +            else {
    +                x = gridRect.x;
    +                y = prevY;
    +                width = gridRect.width;
    +                height = tickCoord - y;
    +            }
    +
    +            var colorIndex = (count++) % areaColors.length;
    +            this._axisGroup.add(new Rect({
    +                anid: 'area_' + ticks[i],
    +
    +                shape: {
    +                    x: x,
    +                    y: y,
    +                    width: width,
    +                    height: height
    +                },
    +                style: defaults({
    +                    fill: areaColors[colorIndex]
    +                }, areaStyle),
    +                silent: true
    +            }));
    +
    +            prevX = x + width;
    +            prevY = y + height;
    +        }
    +    }
    +});
    +
    +CartesianAxisView.extend({
    +    type: 'xAxis'
    +});
    +CartesianAxisView.extend({
    +    type: 'yAxis'
    +});
    +
    +// Grid view
    +extendComponentView({
    +
    +    type: 'grid',
    +
    +    render: function (gridModel, ecModel) {
    +        this.group.removeAll();
    +        if (gridModel.get('show')) {
    +            this.group.add(new Rect({
    +                shape: gridModel.coordinateSystem.getRect(),
    +                style: defaults({
    +                    fill: gridModel.get('backgroundColor')
    +                }, gridModel.getItemStyle()),
    +                silent: true,
    +                z2: -1
    +            }));
    +        }
    +    }
    +
    +});
    +
    +registerPreprocessor(function (option) {
    +    // Only create grid when need
    +    if (option.xAxis && option.yAxis && !option.grid) {
    +        option.grid = {};
    +    }
    +});
    +
    +// In case developer forget to include grid component
    +registerVisual(curry(
    +    visualSymbol, 'line', 'circle', 'line'
    +));
    +registerLayout(curry(
    +    layoutPoints, 'line'
    +));
    +
    +// Down sample after filter
    +registerProcessor(PRIORITY.PROCESSOR.STATISTIC, curry(
    +    dataSample, 'line'
    +));
    +
    +var STACK_PREFIX = '__ec_stack_';
    +
    +function getSeriesStackId(seriesModel) {
    +    return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex;
    +}
    +
    +function getAxisKey(axis) {
    +    return axis.dim + axis.index;
    +}
    +
    +/**
    + * @param {Object} opt
    + * @param {module:echarts/coord/Axis} opt.axis Only support category axis currently.
    + * @param {number} opt.count Positive interger.
    + * @param {number} [opt.barWidth]
    + * @param {number} [opt.barMaxWidth]
    + * @param {number} [opt.barGap]
    + * @param {number} [opt.barCategoryGap]
    + * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.
    + */
    +function getLayoutOnAxis(opt, api) {
    +    var params = [];
    +    var baseAxis = opt.axis;
    +    var axisKey = 'axis0';
    +
    +    if (baseAxis.type !== 'category') {
    +        return;
    +    }
    +    var bandWidth = baseAxis.getBandWidth();
    +
    +    for (var i = 0; i < opt.count || 0; i++) {
    +        params.push(defaults({
    +            bandWidth: bandWidth,
    +            axisKey: axisKey,
    +            stackId: STACK_PREFIX + i
    +        }, opt));
    +    }
    +    var widthAndOffsets = doCalBarWidthAndOffset(params, api);
    +
    +    var result = [];
    +    for (var i = 0; i < opt.count; i++) {
    +        var item = widthAndOffsets[axisKey][STACK_PREFIX + i];
    +        item.offsetCenter = item.offset + item.width / 2;
    +        result.push(item);
    +    }
    +
    +    return result;
    +}
    +
    +function calBarWidthAndOffset(barSeries, api) {
    +    var seriesInfoList = map(barSeries, function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var cartesian = seriesModel.coordinateSystem;
    +        var baseAxis = cartesian.getBaseAxis();
    +        var axisExtent = baseAxis.getExtent();
    +        var bandWidth = baseAxis.type === 'category'
    +            ? baseAxis.getBandWidth()
    +            : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count());
    +
    +        var barWidth = parsePercent$1(
    +            seriesModel.get('barWidth'), bandWidth
    +        );
    +        var barMaxWidth = parsePercent$1(
    +            seriesModel.get('barMaxWidth'), bandWidth
    +        );
    +        var barGap = seriesModel.get('barGap');
    +        var barCategoryGap = seriesModel.get('barCategoryGap');
    +
    +        return {
    +            bandWidth: bandWidth,
    +            barWidth: barWidth,
    +            barMaxWidth: barMaxWidth,
    +            barGap: barGap,
    +            barCategoryGap: barCategoryGap,
    +            axisKey: getAxisKey(baseAxis),
    +            stackId: getSeriesStackId(seriesModel)
    +        };
    +    });
    +
    +    return doCalBarWidthAndOffset(seriesInfoList, api);
    +}
    +
    +function doCalBarWidthAndOffset(seriesInfoList, api) {
    +    // Columns info on each category axis. Key is cartesian name
    +    var columnsMap = {};
    +
    +    each$1(seriesInfoList, function (seriesInfo, idx) {
    +        var axisKey = seriesInfo.axisKey;
    +        var bandWidth = seriesInfo.bandWidth;
    +        var columnsOnAxis = columnsMap[axisKey] || {
    +            bandWidth: bandWidth,
    +            remainedWidth: bandWidth,
    +            autoWidthCount: 0,
    +            categoryGap: '20%',
    +            gap: '30%',
    +            stacks: {}
    +        };
    +        var stacks = columnsOnAxis.stacks;
    +        columnsMap[axisKey] = columnsOnAxis;
    +
    +        var stackId = seriesInfo.stackId;
    +
    +        if (!stacks[stackId]) {
    +            columnsOnAxis.autoWidthCount++;
    +        }
    +        stacks[stackId] = stacks[stackId] || {
    +            width: 0,
    +            maxWidth: 0
    +        };
    +
    +        // Caution: In a single coordinate system, these barGrid attributes
    +        // will be shared by series. Consider that they have default values,
    +        // only the attributes set on the last series will work.
    +        // Do not change this fact unless there will be a break change.
    +
    +        // TODO
    +        var barWidth = seriesInfo.barWidth;
    +        if (barWidth && !stacks[stackId].width) {
    +            // See #6312, do not restrict width.
    +            stacks[stackId].width = barWidth;
    +            barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
    +            columnsOnAxis.remainedWidth -= barWidth;
    +        }
    +
    +        var barMaxWidth = seriesInfo.barMaxWidth;
    +        barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);
    +        var barGap = seriesInfo.barGap;
    +        (barGap != null) && (columnsOnAxis.gap = barGap);
    +        var barCategoryGap = seriesInfo.barCategoryGap;
    +        (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);
    +    });
    +
    +    var result = {};
    +
    +    each$1(columnsMap, function (columnsOnAxis, coordSysName) {
    +
    +        result[coordSysName] = {};
    +
    +        var stacks = columnsOnAxis.stacks;
    +        var bandWidth = columnsOnAxis.bandWidth;
    +        var categoryGap = parsePercent$1(columnsOnAxis.categoryGap, bandWidth);
    +        var barGapPercent = parsePercent$1(columnsOnAxis.gap, 1);
    +
    +        var remainedWidth = columnsOnAxis.remainedWidth;
    +        var autoWidthCount = columnsOnAxis.autoWidthCount;
    +        var autoWidth = (remainedWidth - categoryGap)
    +            / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    +        autoWidth = Math.max(autoWidth, 0);
    +
    +        // Find if any auto calculated bar exceeded maxBarWidth
    +        each$1(stacks, function (column, stack) {
    +            var maxWidth = column.maxWidth;
    +            if (maxWidth && maxWidth < autoWidth) {
    +                maxWidth = Math.min(maxWidth, remainedWidth);
    +                if (column.width) {
    +                    maxWidth = Math.min(maxWidth, column.width);
    +                }
    +                remainedWidth -= maxWidth;
    +                column.width = maxWidth;
    +                autoWidthCount--;
    +            }
    +        });
    +
    +        // Recalculate width again
    +        autoWidth = (remainedWidth - categoryGap)
    +            / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    +        autoWidth = Math.max(autoWidth, 0);
    +
    +        var widthSum = 0;
    +        var lastColumn;
    +        each$1(stacks, function (column, idx) {
    +            if (!column.width) {
    +                column.width = autoWidth;
    +            }
    +            lastColumn = column;
    +            widthSum += column.width * (1 + barGapPercent);
    +        });
    +        if (lastColumn) {
    +            widthSum -= lastColumn.width * barGapPercent;
    +        }
    +
    +        var offset = -widthSum / 2;
    +        each$1(stacks, function (column, stackId) {
    +            result[coordSysName][stackId] = result[coordSysName][stackId] || {
    +                offset: offset,
    +                width: column.width
    +            };
    +
    +            offset += column.width * (1 + barGapPercent);
    +        });
    +    });
    +
    +    return result;
    +}
    +
    +/**
    + * @param {string} seriesType
    + * @param {module:echarts/model/Global} ecModel
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function barLayoutGrid(seriesType, ecModel, api) {
    +
    +    var barWidthAndOffset = calBarWidthAndOffset(
    +        filter(
    +            ecModel.getSeriesByType(seriesType),
    +            function (seriesModel) {
    +                return !ecModel.isSeriesFiltered(seriesModel)
    +                    && seriesModel.coordinateSystem
    +                    && seriesModel.coordinateSystem.type === 'cartesian2d';
    +            }
    +        )
    +    );
    +
    +    var lastStackCoords = {};
    +    var lastStackCoordsOrigin = {};
    +
    +    ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    +
    +        // Check series coordinate, do layout for cartesian2d only
    +        if (seriesModel.coordinateSystem.type !== 'cartesian2d') {
    +            return;
    +        }
    +
    +        var data = seriesModel.getData();
    +        var cartesian = seriesModel.coordinateSystem;
    +        var baseAxis = cartesian.getBaseAxis();
    +
    +        var stackId = getSeriesStackId(seriesModel);
    +        var columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId];
    +        var columnOffset = columnLayoutInfo.offset;
    +        var columnWidth = columnLayoutInfo.width;
    +        var valueAxis = cartesian.getOtherAxis(baseAxis);
    +
    +        var barMinHeight = seriesModel.get('barMinHeight') || 0;
    +
    +        var valueAxisStart = baseAxis.onZero
    +            ? valueAxis.toGlobalCoord(valueAxis.dataToCoord(0))
    +            : valueAxis.getGlobalExtent()[0];
    +
    +        var coordDims = [
    +            seriesModel.coordDimToDataDim('x')[0],
    +            seriesModel.coordDimToDataDim('y')[0]
    +        ];
    +        var coords = data.mapArray(coordDims, function (x, y) {
    +            return cartesian.dataToPoint([x, y]);
    +        }, true);
    +
    +        lastStackCoords[stackId] = lastStackCoords[stackId] || [];
    +        lastStackCoordsOrigin[stackId] = lastStackCoordsOrigin[stackId] || []; // Fix #4243
    +
    +        data.setLayout({
    +            offset: columnOffset,
    +            size: columnWidth
    +        });
    +
    +        data.each(seriesModel.coordDimToDataDim(valueAxis.dim)[0], function (value, idx) {
    +            if (isNaN(value)) {
    +                return;
    +            }
    +
    +            if (!lastStackCoords[stackId][idx]) {
    +                lastStackCoords[stackId][idx] = {
    +                    p: valueAxisStart, // Positive stack
    +                    n: valueAxisStart  // Negative stack
    +                };
    +                lastStackCoordsOrigin[stackId][idx] = {
    +                    p: valueAxisStart, // Positive stack
    +                    n: valueAxisStart  // Negative stack
    +                };
    +            }
    +            var sign = value >= 0 ? 'p' : 'n';
    +            var coord = coords[idx];
    +            var lastCoord = lastStackCoords[stackId][idx][sign];
    +            var lastCoordOrigin = lastStackCoordsOrigin[stackId][idx][sign];
    +            var x;
    +            var y;
    +            var width;
    +            var height;
    +
    +            if (valueAxis.isHorizontal()) {
    +                x = lastCoord;
    +                y = coord[1] + columnOffset;
    +                width = coord[0] - lastCoordOrigin;
    +                height = columnWidth;
    +
    +                lastStackCoordsOrigin[stackId][idx][sign] += width;
    +                if (Math.abs(width) < barMinHeight) {
    +                    width = (width < 0 ? -1 : 1) * barMinHeight;
    +                }
    +                lastStackCoords[stackId][idx][sign] += width;
    +            }
    +            else {
    +                x = coord[0] + columnOffset;
    +                y = lastCoord;
    +                width = columnWidth;
    +                height = coord[1] - lastCoordOrigin;
    +
    +                lastStackCoordsOrigin[stackId][idx][sign] += height;
    +                if (Math.abs(height) < barMinHeight) {
    +                    // Include zero to has a positive bar
    +                    height = (height <= 0 ? -1 : 1) * barMinHeight;
    +                }
    +                lastStackCoords[stackId][idx][sign] += height;
    +            }
    +
    +            data.setItemLayout(idx, {
    +                x: x,
    +                y: y,
    +                width: width,
    +                height: height
    +            });
    +        }, true);
    +
    +    }, this);
    +}
    +
    +barLayoutGrid.getLayoutOnAxis = getLayoutOnAxis;
    +
    +var BaseBarSeries = SeriesModel.extend({
    +
    +    type: 'series.__base_bar__',
    +
    +    getInitialData: function (option, ecModel) {
    +        return createListFromArray(option.data, this, ecModel);
    +    },
    +
    +    getMarkerPosition: function (value) {
    +        var coordSys = this.coordinateSystem;
    +        if (coordSys) {
    +            // PENDING if clamp ?
    +            var pt = coordSys.dataToPoint(value, true);
    +            var data = this.getData();
    +            var offset = data.getLayout('offset');
    +            var size = data.getLayout('size');
    +            var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;
    +            pt[offsetIndex] += offset + size / 2;
    +            return pt;
    +        }
    +        return [NaN, NaN];
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,                  // 一级层叠
    +        z: 2,                       // 二级层叠
    +        coordinateSystem: 'cartesian2d',
    +        legendHoverLink: true,
    +        // stack: null
    +
    +        // Cartesian coordinate system
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        // 最小高度改为0
    +        barMinHeight: 0,
    +        // 最小角度为0,仅对极坐标系下的柱状图有效
    +        barMinAngle: 0,
    +        // cursor: null,
    +
    +        // barMaxWidth: null,
    +        // 默认自适应
    +        // barWidth: null,
    +        // 柱间距离,默认为柱形宽度的30%,可设固定值
    +        // barGap: '30%',
    +        // 类目间柱形距离,默认为类目间距的20%,可设固定值
    +        // barCategoryGap: '20%',
    +        // label: {
    +        //     normal: {
    +        //         show: false
    +        //     }
    +        // },
    +        itemStyle: {
    +            // normal: {
    +                // color: '各异'
    +            // },
    +            // emphasis: {}
    +        }
    +    }
    +});
    +
    +BaseBarSeries.extend({
    +
    +    type: 'series.bar',
    +
    +    dependencies: ['grid', 'polar'],
    +
    +    brushSelector: 'rect'
    +});
    +
    +function setLabel(
    +    normalStyle, hoverStyle, itemModel, color, seriesModel, dataIndex, labelPositionOutside
    +) {
    +    var labelModel = itemModel.getModel('label.normal');
    +    var hoverLabelModel = itemModel.getModel('label.emphasis');
    +
    +    setLabelStyle(
    +        normalStyle, hoverStyle, labelModel, hoverLabelModel,
    +        {
    +            labelFetcher: seriesModel,
    +            labelDataIndex: dataIndex,
    +            defaultText: seriesModel.getRawValue(dataIndex),
    +            isRectText: true,
    +            autoColor: color
    +        }
    +    );
    +
    +    fixPosition(normalStyle);
    +    fixPosition(hoverStyle);
    +}
    +
    +function fixPosition(style, labelPositionOutside) {
    +    if (style.textPosition === 'outside') {
    +        style.textPosition = labelPositionOutside;
    +    }
    +}
    +
    +var getBarItemStyle = makeStyleMapper(
    +    [
    +        ['fill', 'color'],
    +        ['stroke', 'borderColor'],
    +        ['lineWidth', 'borderWidth'],
    +        // Compatitable with 2
    +        ['stroke', 'barBorderColor'],
    +        ['lineWidth', 'barBorderWidth'],
    +        ['opacity'],
    +        ['shadowBlur'],
    +        ['shadowOffsetX'],
    +        ['shadowOffsetY'],
    +        ['shadowColor']
    +    ]
    +);
    +
    +var barItemStyle = {
    +    getBarItemStyle: function (excludes) {
    +        var style = getBarItemStyle(this, excludes);
    +        if (this.getBorderLineDash) {
    +            var lineDash = this.getBorderLineDash();
    +            lineDash && (style.lineDash = lineDash);
    +        }
    +        return style;
    +    }
    +};
    +
    +var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'normal', 'barBorderWidth'];
    +
    +// FIXME
    +// Just for compatible with ec2.
    +extend(Model.prototype, barItemStyle);
    +
    +extendChartView({
    +
    +    type: 'bar',
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var coordinateSystemType = seriesModel.get('coordinateSystem');
    +
    +        if (coordinateSystemType === 'cartesian2d'
    +            || coordinateSystemType === 'polar'
    +        ) {
    +            this._render(seriesModel, ecModel, api);
    +        }
    +        else if (__DEV__) {
    +            console.warn('Only cartesian2d and polar supported for bar.');
    +        }
    +
    +        return this.group;
    +    },
    +
    +    dispose: noop,
    +
    +    _render: function (seriesModel, ecModel, api) {
    +        var group = this.group;
    +        var data = seriesModel.getData();
    +        var oldData = this._data;
    +
    +        var coord = seriesModel.coordinateSystem;
    +        var baseAxis = coord.getBaseAxis();
    +        var isHorizontalOrRadial;
    +
    +        if (coord.type === 'cartesian2d') {
    +            isHorizontalOrRadial = baseAxis.isHorizontal();
    +        }
    +        else if (coord.type === 'polar') {
    +            isHorizontalOrRadial = baseAxis.dim === 'angle';
    +        }
    +
    +        var animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null;
    +
    +        data.diff(oldData)
    +            .add(function (dataIndex) {
    +                if (!data.hasValue(dataIndex)) {
    +                    return;
    +                }
    +
    +                var itemModel = data.getItemModel(dataIndex);
    +                var layout = getLayout[coord.type](data, dataIndex, itemModel);
    +                var el = elementCreator[coord.type](
    +                    data, dataIndex, itemModel, layout, isHorizontalOrRadial, animationModel
    +                );
    +                data.setItemGraphicEl(dataIndex, el);
    +                group.add(el);
    +
    +                updateStyle(
    +                    el, data, dataIndex, itemModel, layout,
    +                    seriesModel, isHorizontalOrRadial, coord.type === 'polar'
    +                );
    +            })
    +            .update(function (newIndex, oldIndex) {
    +                var el = oldData.getItemGraphicEl(oldIndex);
    +
    +                if (!data.hasValue(newIndex)) {
    +                    group.remove(el);
    +                    return;
    +                }
    +
    +                var itemModel = data.getItemModel(newIndex);
    +                var layout = getLayout[coord.type](data, newIndex, itemModel);
    +
    +                if (el) {
    +                    updateProps(el, {shape: layout}, animationModel, newIndex);
    +                }
    +                else {
    +                    el = elementCreator[coord.type](
    +                        data, newIndex, itemModel, layout, isHorizontalOrRadial, animationModel, true
    +                    );
    +                }
    +
    +                data.setItemGraphicEl(newIndex, el);
    +                // Add back
    +                group.add(el);
    +
    +                updateStyle(
    +                    el, data, newIndex, itemModel, layout,
    +                    seriesModel, isHorizontalOrRadial, coord.type === 'polar'
    +                );
    +            })
    +            .remove(function (dataIndex) {
    +                var el = oldData.getItemGraphicEl(dataIndex);
    +                if (coord.type === 'cartesian2d') {
    +                    el && removeRect(dataIndex, animationModel, el);
    +                }
    +                else {
    +                    el && removeSector(dataIndex, animationModel, el);
    +                }
    +            })
    +            .execute();
    +
    +        this._data = data;
    +    },
    +
    +    remove: function (ecModel, api) {
    +        var group = this.group;
    +        var data = this._data;
    +        if (ecModel.get('animation')) {
    +            if (data) {
    +                data.eachItemGraphicEl(function (el) {
    +                    if (el.type === 'sector') {
    +                        removeSector(el.dataIndex, ecModel, el);
    +                    }
    +                    else {
    +                        removeRect(el.dataIndex, ecModel, el);
    +                    }
    +                });
    +            }
    +        }
    +        else {
    +            group.removeAll();
    +        }
    +    }
    +});
    +
    +var elementCreator = {
    +
    +    cartesian2d: function (
    +        data, dataIndex, itemModel, layout, isHorizontal,
    +        animationModel, isUpdate
    +    ) {
    +        var rect = new Rect({shape: extend({}, layout)});
    +
    +        // Animation
    +        if (animationModel) {
    +            var rectShape = rect.shape;
    +            var animateProperty = isHorizontal ? 'height' : 'width';
    +            var animateTarget = {};
    +            rectShape[animateProperty] = 0;
    +            animateTarget[animateProperty] = layout[animateProperty];
    +            graphic[isUpdate ? 'updateProps' : 'initProps'](rect, {
    +                shape: animateTarget
    +            }, animationModel, dataIndex);
    +        }
    +
    +        return rect;
    +    },
    +
    +    polar: function (
    +        data, dataIndex, itemModel, layout, isRadial,
    +        animationModel, isUpdate
    +    ) {
    +        var sector = new Sector({shape: extend({}, layout)});
    +
    +        // Animation
    +        if (animationModel) {
    +            var sectorShape = sector.shape;
    +            var animateProperty = isRadial ? 'r' : 'endAngle';
    +            var animateTarget = {};
    +            sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;
    +            animateTarget[animateProperty] = layout[animateProperty];
    +            graphic[isUpdate ? 'updateProps' : 'initProps'](sector, {
    +                shape: animateTarget
    +            }, animationModel, dataIndex);
    +        }
    +
    +        return sector;
    +    }
    +};
    +
    +function removeRect(dataIndex, animationModel, el) {
    +    // Not show text when animating
    +    el.style.text = null;
    +    updateProps(el, {
    +        shape: {
    +            width: 0
    +        }
    +    }, animationModel, dataIndex, function () {
    +        el.parent && el.parent.remove(el);
    +    });
    +}
    +
    +function removeSector(dataIndex, animationModel, el) {
    +    // Not show text when animating
    +    el.style.text = null;
    +    updateProps(el, {
    +        shape: {
    +            r: el.shape.r0
    +        }
    +    }, animationModel, dataIndex, function () {
    +        el.parent && el.parent.remove(el);
    +    });
    +}
    +
    +var getLayout = {
    +    cartesian2d: function (data, dataIndex, itemModel) {
    +        var layout = data.getItemLayout(dataIndex);
    +        var fixedLineWidth = getLineWidth(itemModel, layout);
    +
    +        // fix layout with lineWidth
    +        var signX = layout.width > 0 ? 1 : -1;
    +        var signY = layout.height > 0 ? 1 : -1;
    +        return {
    +            x: layout.x + signX * fixedLineWidth / 2,
    +            y: layout.y + signY * fixedLineWidth / 2,
    +            width: layout.width - signX * fixedLineWidth,
    +            height: layout.height - signY * fixedLineWidth
    +        };
    +    },
    +
    +    polar: function (data, dataIndex, itemModel) {
    +        var layout = data.getItemLayout(dataIndex);
    +        return {
    +            cx: layout.cx,
    +            cy: layout.cy,
    +            r0: layout.r0,
    +            r: layout.r,
    +            startAngle: layout.startAngle,
    +            endAngle: layout.endAngle
    +        };
    +    }
    +};
    +
    +function updateStyle(
    +    el, data, dataIndex, itemModel, layout, seriesModel, isHorizontal, isPolar
    +) {
    +    var color = data.getItemVisual(dataIndex, 'color');
    +    var opacity = data.getItemVisual(dataIndex, 'opacity');
    +    var itemStyleModel = itemModel.getModel('itemStyle.normal');
    +    var hoverStyle = itemModel.getModel('itemStyle.emphasis').getBarItemStyle();
    +
    +    if (!isPolar) {
    +        el.setShape('r', itemStyleModel.get('barBorderRadius') || 0);
    +    }
    +
    +    el.useStyle(defaults(
    +        {
    +            fill: color,
    +            opacity: opacity
    +        },
    +        itemStyleModel.getBarItemStyle()
    +    ));
    +
    +    var cursorStyle = itemModel.getShallow('cursor');
    +    cursorStyle && el.attr('cursor', cursorStyle);
    +
    +    var labelPositionOutside = isHorizontal
    +        ? (layout.height > 0 ? 'bottom' : 'top')
    +        : (layout.width > 0 ? 'left' : 'right');
    +
    +    if (!isPolar) {
    +        setLabel(
    +            el.style, hoverStyle, itemModel, color,
    +            seriesModel, dataIndex, labelPositionOutside
    +        );
    +    }
    +
    +    setHoverStyle(el, hoverStyle);
    +}
    +
    +// In case width or height are too small.
    +function getLineWidth(itemModel, rawLayout) {
    +    var lineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0;
    +    return Math.min(lineWidth, Math.abs(rawLayout.width), Math.abs(rawLayout.height));
    +}
    +
    +// In case developer forget to include grid component
    +registerLayout(curry(barLayoutGrid, 'bar'));
    +
    +// Visual coding for legend
    +registerVisual(function (ecModel) {
    +    ecModel.eachSeriesByType('bar', function (seriesModel) {
    +        var data = seriesModel.getData();
    +        data.setVisual('legendSymbol', 'roundRect');
    +    });
    +});
    +
    +/**
    + * Data selectable mixin for chart series.
    + * To eanble data select, option of series must have `selectedMode`.
    + * And each data item will use `selected` to toggle itself selected status
    + */
    +
    +var selectableMixin = {
    +
    +    updateSelectedMap: function (targetList) {
    +        this._targetList = targetList.slice();
    +        this._selectTargetMap = reduce(targetList || [], function (targetMap, target) {
    +            targetMap.set(target.name, target);
    +            return targetMap;
    +        }, createHashMap());
    +    },
    +
    +    /**
    +     * Either name or id should be passed as input here.
    +     * If both of them are defined, id is used.
    +     *
    +     * @param {string|undefined} name name of data
    +     * @param {number|undefined} id dataIndex of data
    +     */
    +    // PENGING If selectedMode is null ?
    +    select: function (name, id) {
    +        var target = id != null
    +            ? this._targetList[id]
    +            : this._selectTargetMap.get(name);
    +        var selectedMode = this.get('selectedMode');
    +        if (selectedMode === 'single') {
    +            this._selectTargetMap.each(function (target) {
    +                target.selected = false;
    +            });
    +        }
    +        target && (target.selected = true);
    +    },
    +
    +    /**
    +     * Either name or id should be passed as input here.
    +     * If both of them are defined, id is used.
    +     *
    +     * @param {string|undefined} name name of data
    +     * @param {number|undefined} id dataIndex of data
    +     */
    +    unSelect: function (name, id) {
    +        var target = id != null
    +            ? this._targetList[id]
    +            : this._selectTargetMap.get(name);
    +        // var selectedMode = this.get('selectedMode');
    +        // selectedMode !== 'single' && target && (target.selected = false);
    +        target && (target.selected = false);
    +    },
    +
    +    /**
    +     * Either name or id should be passed as input here.
    +     * If both of them are defined, id is used.
    +     *
    +     * @param {string|undefined} name name of data
    +     * @param {number|undefined} id dataIndex of data
    +     */
    +    toggleSelected: function (name, id) {
    +        var target = id != null
    +            ? this._targetList[id]
    +            : this._selectTargetMap.get(name);
    +        if (target != null) {
    +            this[target.selected ? 'unSelect' : 'select'](name, id);
    +            return target.selected;
    +        }
    +    },
    +
    +    /**
    +     * Either name or id should be passed as input here.
    +     * If both of them are defined, id is used.
    +     *
    +     * @param {string|undefined} name name of data
    +     * @param {number|undefined} id dataIndex of data
    +     */
    +    isSelected: function (name, id) {
    +        var target = id != null
    +            ? this._targetList[id]
    +            : this._selectTargetMap.get(name);
    +        return target && target.selected;
    +    }
    +};
    +
    +var PieSeries = extendSeriesModel({
    +
    +    type: 'series.pie',
    +
    +    // Overwrite
    +    init: function (option) {
    +        PieSeries.superApply(this, 'init', arguments);
    +
    +        // Enable legend selection for each data item
    +        // Use a function instead of direct access because data reference may changed
    +        this.legendDataProvider = function () {
    +            return this.getRawData();
    +        };
    +
    +        this.updateSelectedMap(option.data);
    +
    +        this._defaultLabelLine(option);
    +    },
    +
    +    // Overwrite
    +    mergeOption: function (newOption) {
    +        PieSeries.superCall(this, 'mergeOption', newOption);
    +        this.updateSelectedMap(this.option.data);
    +    },
    +
    +    getInitialData: function (option, ecModel) {
    +        var dimensions = completeDimensions(['value'], option.data);
    +        var list = new List(dimensions, this);
    +        list.initData(option.data);
    +        return list;
    +    },
    +
    +    // Overwrite
    +    getDataParams: function (dataIndex) {
    +        var data = this.getData();
    +        var params = PieSeries.superCall(this, 'getDataParams', dataIndex);
    +        // FIXME toFixed?
    +
    +        var valueList = [];
    +        data.each('value', function (value) {
    +            valueList.push(value);
    +        });
    +
    +        params.percent = getPercentWithPrecision(
    +            valueList,
    +            dataIndex,
    +            data.hostModel.get('percentPrecision')
    +        );
    +
    +        params.$vars.push('percent');
    +        return params;
    +    },
    +
    +    _defaultLabelLine: function (option) {
    +        // Extend labelLine emphasis
    +        defaultEmphasis(option.labelLine, ['show']);
    +
    +        var labelLineNormalOpt = option.labelLine.normal;
    +        var labelLineEmphasisOpt = option.labelLine.emphasis;
    +        // Not show label line if `label.normal.show = false`
    +        labelLineNormalOpt.show = labelLineNormalOpt.show
    +            && option.label.normal.show;
    +        labelLineEmphasisOpt.show = labelLineEmphasisOpt.show
    +            && option.label.emphasis.show;
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +        // 默认全局居中
    +        center: ['50%', '50%'],
    +        radius: [0, '75%'],
    +        // 默认顺时针
    +        clockwise: true,
    +        startAngle: 90,
    +        // 最小角度改为0
    +        minAngle: 0,
    +        // 选中时扇区偏移量
    +        selectedOffset: 10,
    +        // 高亮扇区偏移量
    +        hoverOffset: 10,
    +
    +        // If use strategy to avoid label overlapping
    +        avoidLabelOverlap: true,
    +        // 选择模式,默认关闭,可选single,multiple
    +        // selectedMode: false,
    +        // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)
    +        // roseType: null,
    +
    +        percentPrecision: 2,
    +
    +        // If still show when all data zero.
    +        stillShowZeroSum: true,
    +
    +        // cursor: null,
    +
    +        label: {
    +            normal: {
    +                // If rotate around circle
    +                rotate: false,
    +                show: true,
    +                // 'outer', 'inside', 'center'
    +                position: 'outer'
    +                // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
    +                // 默认使用全局文本样式,详见TEXTSTYLE
    +                // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数
    +            },
    +            emphasis: {}
    +        },
    +        // Enabled when label.normal.position is 'outer'
    +        labelLine: {
    +            normal: {
    +                show: true,
    +                // 引导线两段中的第一段长度
    +                length: 15,
    +                // 引导线两段中的第二段长度
    +                length2: 15,
    +                smooth: false,
    +                lineStyle: {
    +                    // color: 各异,
    +                    width: 1,
    +                    type: 'solid'
    +                }
    +            }
    +        },
    +        itemStyle: {
    +            normal: {
    +                borderWidth: 1
    +            },
    +            emphasis: {}
    +        },
    +
    +        // Animation type canbe expansion, scale
    +        animationType: 'expansion',
    +
    +        animationEasing: 'cubicOut',
    +
    +        data: []
    +    }
    +});
    +
    +mixin(PieSeries, selectableMixin);
    +
    +/**
    + * @param {module:echarts/model/Series} seriesModel
    + * @param {boolean} hasAnimation
    + * @inner
    + */
    +function updateDataSelected(uid, seriesModel, hasAnimation, api) {
    +    var data = seriesModel.getData();
    +    var dataIndex = this.dataIndex;
    +    var name = data.getName(dataIndex);
    +    var selectedOffset = seriesModel.get('selectedOffset');
    +
    +    api.dispatchAction({
    +        type: 'pieToggleSelect',
    +        from: uid,
    +        name: name,
    +        seriesId: seriesModel.id
    +    });
    +
    +    data.each(function (idx) {
    +        toggleItemSelected(
    +            data.getItemGraphicEl(idx),
    +            data.getItemLayout(idx),
    +            seriesModel.isSelected(data.getName(idx)),
    +            selectedOffset,
    +            hasAnimation
    +        );
    +    });
    +}
    +
    +/**
    + * @param {module:zrender/graphic/Sector} el
    + * @param {Object} layout
    + * @param {boolean} isSelected
    + * @param {number} selectedOffset
    + * @param {boolean} hasAnimation
    + * @inner
    + */
    +function toggleItemSelected(el, layout, isSelected, selectedOffset, hasAnimation) {
    +    var midAngle = (layout.startAngle + layout.endAngle) / 2;
    +
    +    var dx = Math.cos(midAngle);
    +    var dy = Math.sin(midAngle);
    +
    +    var offset = isSelected ? selectedOffset : 0;
    +    var position = [dx * offset, dy * offset];
    +
    +    hasAnimation
    +        // animateTo will stop revious animation like update transition
    +        ? el.animate()
    +            .when(200, {
    +                position: position
    +            })
    +            .start('bounceOut')
    +        : el.attr('position', position);
    +}
    +
    +/**
    + * Piece of pie including Sector, Label, LabelLine
    + * @constructor
    + * @extends {module:zrender/graphic/Group}
    + */
    +function PiePiece(data, idx) {
    +
    +    Group.call(this);
    +
    +    var sector = new Sector({
    +        z2: 2
    +    });
    +    var polyline = new Polyline();
    +    var text = new Text();
    +    this.add(sector);
    +    this.add(polyline);
    +    this.add(text);
    +
    +    this.updateData(data, idx, true);
    +
    +    // Hover to change label and labelLine
    +    function onEmphasis() {
    +        polyline.ignore = polyline.hoverIgnore;
    +        text.ignore = text.hoverIgnore;
    +    }
    +    function onNormal() {
    +        polyline.ignore = polyline.normalIgnore;
    +        text.ignore = text.normalIgnore;
    +    }
    +    this.on('emphasis', onEmphasis)
    +        .on('normal', onNormal)
    +        .on('mouseover', onEmphasis)
    +        .on('mouseout', onNormal);
    +}
    +
    +var piePieceProto = PiePiece.prototype;
    +
    +piePieceProto.updateData = function (data, idx, firstCreate) {
    +
    +    var sector = this.childAt(0);
    +
    +    var seriesModel = data.hostModel;
    +    var itemModel = data.getItemModel(idx);
    +    var layout = data.getItemLayout(idx);
    +    var sectorShape = extend({}, layout);
    +    sectorShape.label = null;
    +
    +    if (firstCreate) {
    +        sector.setShape(sectorShape);
    +
    +        var animationType = seriesModel.getShallow('animationType');
    +        if (animationType === 'scale') {
    +            sector.shape.r = layout.r0;
    +            initProps(sector, {
    +                shape: {
    +                    r: layout.r
    +                }
    +            }, seriesModel, idx);
    +        }
    +        // Expansion
    +        else {
    +            sector.shape.endAngle = layout.startAngle;
    +            updateProps(sector, {
    +                shape: {
    +                    endAngle: layout.endAngle
    +                }
    +            }, seriesModel, idx);
    +        }
    +
    +    }
    +    else {
    +        updateProps(sector, {
    +            shape: sectorShape
    +        }, seriesModel, idx);
    +    }
    +
    +    // Update common style
    +    var itemStyleModel = itemModel.getModel('itemStyle');
    +    var visualColor = data.getItemVisual(idx, 'color');
    +
    +    sector.useStyle(
    +        defaults(
    +            {
    +                lineJoin: 'bevel',
    +                fill: visualColor
    +            },
    +            itemStyleModel.getModel('normal').getItemStyle()
    +        )
    +    );
    +    sector.hoverStyle = itemStyleModel.getModel('emphasis').getItemStyle();
    +
    +    var cursorStyle = itemModel.getShallow('cursor');
    +    cursorStyle && sector.attr('cursor', cursorStyle);
    +
    +    // Toggle selected
    +    toggleItemSelected(
    +        this,
    +        data.getItemLayout(idx),
    +        itemModel.get('selected'),
    +        seriesModel.get('selectedOffset'),
    +        seriesModel.get('animation')
    +    );
    +
    +    function onEmphasis() {
    +        // Sector may has animation of updating data. Force to move to the last frame
    +        // Or it may stopped on the wrong shape
    +        sector.stopAnimation(true);
    +        sector.animateTo({
    +            shape: {
    +                r: layout.r + seriesModel.get('hoverOffset')
    +            }
    +        }, 300, 'elasticOut');
    +    }
    +    function onNormal() {
    +        sector.stopAnimation(true);
    +        sector.animateTo({
    +            shape: {
    +                r: layout.r
    +            }
    +        }, 300, 'elasticOut');
    +    }
    +    sector.off('mouseover').off('mouseout').off('emphasis').off('normal');
    +    if (itemModel.get('hoverAnimation') && seriesModel.isAnimationEnabled()) {
    +        sector
    +            .on('mouseover', onEmphasis)
    +            .on('mouseout', onNormal)
    +            .on('emphasis', onEmphasis)
    +            .on('normal', onNormal);
    +    }
    +
    +    this._updateLabel(data, idx);
    +
    +    setHoverStyle(this);
    +};
    +
    +piePieceProto._updateLabel = function (data, idx) {
    +
    +    var labelLine = this.childAt(1);
    +    var labelText = this.childAt(2);
    +
    +    var seriesModel = data.hostModel;
    +    var itemModel = data.getItemModel(idx);
    +    var layout = data.getItemLayout(idx);
    +    var labelLayout = layout.label;
    +    var visualColor = data.getItemVisual(idx, 'color');
    +
    +    updateProps(labelLine, {
    +        shape: {
    +            points: labelLayout.linePoints || [
    +                [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y]
    +            ]
    +        }
    +    }, seriesModel, idx);
    +
    +    updateProps(labelText, {
    +        style: {
    +            x: labelLayout.x,
    +            y: labelLayout.y
    +        }
    +    }, seriesModel, idx);
    +    labelText.attr({
    +        rotation: labelLayout.rotation,
    +        origin: [labelLayout.x, labelLayout.y],
    +        z2: 10
    +    });
    +
    +    var labelModel = itemModel.getModel('label.normal');
    +    var labelHoverModel = itemModel.getModel('label.emphasis');
    +    var labelLineModel = itemModel.getModel('labelLine.normal');
    +    var labelLineHoverModel = itemModel.getModel('labelLine.emphasis');
    +    var visualColor = data.getItemVisual(idx, 'color');
    +
    +    setLabelStyle(
    +        labelText.style, labelText.hoverStyle = {}, labelModel, labelHoverModel,
    +        {
    +            labelFetcher: data.hostModel,
    +            labelDataIndex: idx,
    +            defaultText: data.getName(idx),
    +            autoColor: visualColor,
    +            useInsideStyle: !!labelLayout.inside
    +        },
    +        {
    +            textAlign: labelLayout.textAlign,
    +            textVerticalAlign: labelLayout.verticalAlign,
    +            opacity: data.getItemVisual(idx, 'opacity')
    +        }
    +    );
    +
    +    labelText.ignore = labelText.normalIgnore = !labelModel.get('show');
    +    labelText.hoverIgnore = !labelHoverModel.get('show');
    +
    +    labelLine.ignore = labelLine.normalIgnore = !labelLineModel.get('show');
    +    labelLine.hoverIgnore = !labelLineHoverModel.get('show');
    +
    +    // Default use item visual color
    +    labelLine.setStyle({
    +        stroke: visualColor,
    +        opacity: data.getItemVisual(idx, 'opacity')
    +    });
    +    labelLine.setStyle(labelLineModel.getModel('lineStyle').getLineStyle());
    +
    +    labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle();
    +
    +    var smooth = labelLineModel.get('smooth');
    +    if (smooth && smooth === true) {
    +        smooth = 0.4;
    +    }
    +    labelLine.setShape({
    +        smooth: smooth
    +    });
    +};
    +
    +inherits(PiePiece, Group);
    +
    +
    +// Pie view
    +var PieView = Chart.extend({
    +
    +    type: 'pie',
    +
    +    init: function () {
    +        var sectorGroup = new Group();
    +        this._sectorGroup = sectorGroup;
    +    },
    +
    +    render: function (seriesModel, ecModel, api, payload) {
    +        if (payload && (payload.from === this.uid)) {
    +            return;
    +        }
    +
    +        var data = seriesModel.getData();
    +        var oldData = this._data;
    +        var group = this.group;
    +
    +        var hasAnimation = ecModel.get('animation');
    +        var isFirstRender = !oldData;
    +        var animationType = seriesModel.get('animationType');
    +
    +        var onSectorClick = curry(
    +            updateDataSelected, this.uid, seriesModel, hasAnimation, api
    +        );
    +
    +        var selectedMode = seriesModel.get('selectedMode');
    +
    +        data.diff(oldData)
    +            .add(function (idx) {
    +                var piePiece = new PiePiece(data, idx);
    +                // Default expansion animation
    +                if (isFirstRender && animationType !== 'scale') {
    +                    piePiece.eachChild(function (child) {
    +                        child.stopAnimation(true);
    +                    });
    +                }
    +
    +                selectedMode && piePiece.on('click', onSectorClick);
    +
    +                data.setItemGraphicEl(idx, piePiece);
    +
    +                group.add(piePiece);
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var piePiece = oldData.getItemGraphicEl(oldIdx);
    +
    +                piePiece.updateData(data, newIdx);
    +
    +                piePiece.off('click');
    +                selectedMode && piePiece.on('click', onSectorClick);
    +                group.add(piePiece);
    +                data.setItemGraphicEl(newIdx, piePiece);
    +            })
    +            .remove(function (idx) {
    +                var piePiece = oldData.getItemGraphicEl(idx);
    +                group.remove(piePiece);
    +            })
    +            .execute();
    +
    +        if (
    +            hasAnimation && isFirstRender && data.count() > 0
    +            // Default expansion animation
    +            && animationType !== 'scale'
    +        ) {
    +            var shape = data.getItemLayout(0);
    +            var r = Math.max(api.getWidth(), api.getHeight()) / 2;
    +
    +            var removeClipPath = bind(group.removeClipPath, group);
    +            group.setClipPath(this._createClipPath(
    +                shape.cx, shape.cy, r, shape.startAngle, shape.clockwise, removeClipPath, seriesModel
    +            ));
    +        }
    +
    +        this._data = data;
    +    },
    +
    +    dispose: function () {},
    +
    +    _createClipPath: function (
    +        cx, cy, r, startAngle, clockwise, cb, seriesModel
    +    ) {
    +        var clipPath = new Sector({
    +            shape: {
    +                cx: cx,
    +                cy: cy,
    +                r0: 0,
    +                r: r,
    +                startAngle: startAngle,
    +                endAngle: startAngle,
    +                clockwise: clockwise
    +            }
    +        });
    +
    +        initProps(clipPath, {
    +            shape: {
    +                endAngle: startAngle + (clockwise ? 1 : -1) * Math.PI * 2
    +            }
    +        }, seriesModel, cb);
    +
    +        return clipPath;
    +    },
    +
    +    /**
    +     * @implement
    +     */
    +    containPoint: function (point, seriesModel) {
    +        var data = seriesModel.getData();
    +        var itemLayout = data.getItemLayout(0);
    +        if (itemLayout) {
    +            var dx = point[0] - itemLayout.cx;
    +            var dy = point[1] - itemLayout.cy;
    +            var radius = Math.sqrt(dx * dx + dy * dy);
    +            return radius <= itemLayout.r && radius >= itemLayout.r0;
    +        }
    +    }
    +
    +});
    +
    +var createDataSelectAction = function (seriesType, actionInfos) {
    +    each$1(actionInfos, function (actionInfo) {
    +        actionInfo.update = 'updateView';
    +        /**
    +         * @payload
    +         * @property {string} seriesName
    +         * @property {string} name
    +         */
    +        registerAction(actionInfo, function (payload, ecModel) {
    +            var selected = {};
    +            ecModel.eachComponent(
    +                {mainType: 'series', subType: seriesType, query: payload},
    +                function (seriesModel) {
    +                    if (seriesModel[actionInfo.method]) {
    +                        seriesModel[actionInfo.method](
    +                            payload.name,
    +                            payload.dataIndex
    +                        );
    +                    }
    +                    var data = seriesModel.getData();
    +                    // Create selected map
    +                    data.each(function (idx) {
    +                        var name = data.getName(idx);
    +                        selected[name] = seriesModel.isSelected(name)
    +                            || false;
    +                    });
    +                }
    +            );
    +            return {
    +                name: payload.name,
    +                selected: selected
    +            };
    +        });
    +    });
    +};
    +
    +// Pick color from palette for each data item.
    +// Applicable for charts that require applying color palette
    +// in data level (like pie, funnel, chord).
    +
    +var dataColor = function (seriesType, ecModel) {
    +    // Pie and funnel may use diferrent scope
    +    var paletteScope = {};
    +    ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {
    +        var dataAll = seriesModel.getRawData();
    +        var idxMap = {};
    +        if (!ecModel.isSeriesFiltered(seriesModel)) {
    +            var data = seriesModel.getData();
    +            data.each(function (idx) {
    +                var rawIdx = data.getRawIndex(idx);
    +                idxMap[rawIdx] = idx;
    +            });
    +            dataAll.each(function (rawIdx) {
    +                var filteredIdx = idxMap[rawIdx];
    +
    +                // If series.itemStyle.normal.color is a function. itemVisual may be encoded
    +                var singleDataColor = filteredIdx != null
    +                    && data.getItemVisual(filteredIdx, 'color', true);
    +
    +                if (!singleDataColor) {
    +                    // FIXME Performance
    +                    var itemModel = dataAll.getItemModel(rawIdx);
    +                    var color = itemModel.get('itemStyle.normal.color')
    +                        || seriesModel.getColorFromPalette(dataAll.getName(rawIdx), paletteScope);
    +                    // Legend may use the visual info in data before processed
    +                    dataAll.setItemVisual(rawIdx, 'color', color);
    +
    +                    // Data is not filtered
    +                    if (filteredIdx != null) {
    +                        data.setItemVisual(filteredIdx, 'color', color);
    +                    }
    +                }
    +                else {
    +                    // Set data all color for legend
    +                    dataAll.setItemVisual(rawIdx, 'color', singleDataColor);
    +                }
    +            });
    +        }
    +    });
    +};
    +
    +// FIXME emphasis label position is not same with normal label position
    +
    +function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight) {
    +    list.sort(function (a, b) {
    +        return a.y - b.y;
    +    });
    +
    +    // 压
    +    function shiftDown(start, end, delta, dir) {
    +        for (var j = start; j < end; j++) {
    +            list[j].y += delta;
    +            if (j > start
    +                && j + 1 < end
    +                && list[j + 1].y > list[j].y + list[j].height
    +            ) {
    +                shiftUp(j, delta / 2);
    +                return;
    +            }
    +        }
    +
    +        shiftUp(end - 1, delta / 2);
    +    }
    +
    +    // 弹
    +    function shiftUp(end, delta) {
    +        for (var j = end; j >= 0; j--) {
    +            list[j].y -= delta;
    +            if (j > 0
    +                && list[j].y > list[j - 1].y + list[j - 1].height
    +            ) {
    +                break;
    +            }
    +        }
    +    }
    +
    +    function changeX(list, isDownList, cx, cy, r, dir) {
    +        var lastDeltaX = dir > 0
    +            ? isDownList                // 右侧
    +                ? Number.MAX_VALUE      // 下
    +                : 0                     // 上
    +            : isDownList                // 左侧
    +                ? Number.MAX_VALUE      // 下
    +                : 0;                    // 上
    +
    +        for (var i = 0, l = list.length; i < l; i++) {
    +            // Not change x for center label
    +            if (list[i].position === 'center') {
    +                continue;
    +            }
    +            var deltaY = Math.abs(list[i].y - cy);
    +            var length = list[i].len;
    +            var length2 = list[i].len2;
    +            var deltaX = (deltaY < r + length)
    +                ? Math.sqrt(
    +                        (r + length + length2) * (r + length + length2)
    +                        - deltaY * deltaY
    +                    )
    +                : Math.abs(list[i].x - cx);
    +            if (isDownList && deltaX >= lastDeltaX) {
    +                // 右下,左下
    +                deltaX = lastDeltaX - 10;
    +            }
    +            if (!isDownList && deltaX <= lastDeltaX) {
    +                // 右上,左上
    +                deltaX = lastDeltaX + 10;
    +            }
    +
    +            list[i].x = cx + deltaX * dir;
    +            lastDeltaX = deltaX;
    +        }
    +    }
    +
    +    var lastY = 0;
    +    var delta;
    +    var len = list.length;
    +    var upList = [];
    +    var downList = [];
    +    for (var i = 0; i < len; i++) {
    +        delta = list[i].y - lastY;
    +        if (delta < 0) {
    +            shiftDown(i, len, -delta, dir);
    +        }
    +        lastY = list[i].y + list[i].height;
    +    }
    +    if (viewHeight - lastY < 0) {
    +        shiftUp(len - 1, lastY - viewHeight);
    +    }
    +    for (var i = 0; i < len; i++) {
    +        if (list[i].y >= cy) {
    +            downList.push(list[i]);
    +        }
    +        else {
    +            upList.push(list[i]);
    +        }
    +    }
    +    changeX(upList, false, cx, cy, r, dir);
    +    changeX(downList, true, cx, cy, r, dir);
    +}
    +
    +function avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight) {
    +    var leftList = [];
    +    var rightList = [];
    +    for (var i = 0; i < labelLayoutList.length; i++) {
    +        if (labelLayoutList[i].x < cx) {
    +            leftList.push(labelLayoutList[i]);
    +        }
    +        else {
    +            rightList.push(labelLayoutList[i]);
    +        }
    +    }
    +
    +    adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight);
    +    adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight);
    +
    +    for (var i = 0; i < labelLayoutList.length; i++) {
    +        var linePoints = labelLayoutList[i].linePoints;
    +        if (linePoints) {
    +            var dist = linePoints[1][0] - linePoints[2][0];
    +            if (labelLayoutList[i].x < cx) {
    +                linePoints[2][0] = labelLayoutList[i].x + 3;
    +            }
    +            else {
    +                linePoints[2][0] = labelLayoutList[i].x - 3;
    +            }
    +            linePoints[1][1] = linePoints[2][1] = labelLayoutList[i].y;
    +            linePoints[1][0] = linePoints[2][0] + dist;
    +        }
    +    }
    +}
    +
    +var labelLayout = function (seriesModel, r, viewWidth, viewHeight) {
    +    var data = seriesModel.getData();
    +    var labelLayoutList = [];
    +    var cx;
    +    var cy;
    +    var hasLabelRotate = false;
    +
    +    data.each(function (idx) {
    +        var layout = data.getItemLayout(idx);
    +
    +        var itemModel = data.getItemModel(idx);
    +        var labelModel = itemModel.getModel('label.normal');
    +        // Use position in normal or emphasis
    +        var labelPosition = labelModel.get('position') || itemModel.get('label.emphasis.position');
    +
    +        var labelLineModel = itemModel.getModel('labelLine.normal');
    +        var labelLineLen = labelLineModel.get('length');
    +        var labelLineLen2 = labelLineModel.get('length2');
    +
    +        var midAngle = (layout.startAngle + layout.endAngle) / 2;
    +        var dx = Math.cos(midAngle);
    +        var dy = Math.sin(midAngle);
    +
    +        var textX;
    +        var textY;
    +        var linePoints;
    +        var textAlign;
    +
    +        cx = layout.cx;
    +        cy = layout.cy;
    +
    +        var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';
    +        if (labelPosition === 'center') {
    +            textX = layout.cx;
    +            textY = layout.cy;
    +            textAlign = 'center';
    +        }
    +        else {
    +            var x1 = (isLabelInside ? (layout.r + layout.r0) / 2 * dx : layout.r * dx) + cx;
    +            var y1 = (isLabelInside ? (layout.r + layout.r0) / 2 * dy : layout.r * dy) + cy;
    +
    +            textX = x1 + dx * 3;
    +            textY = y1 + dy * 3;
    +
    +            if (!isLabelInside) {
    +                // For roseType
    +                var x2 = x1 + dx * (labelLineLen + r - layout.r);
    +                var y2 = y1 + dy * (labelLineLen + r - layout.r);
    +                var x3 = x2 + ((dx < 0 ? -1 : 1) * labelLineLen2);
    +                var y3 = y2;
    +
    +                textX = x3 + (dx < 0 ? -5 : 5);
    +                textY = y3;
    +                linePoints = [[x1, y1], [x2, y2], [x3, y3]];
    +            }
    +
    +            textAlign = isLabelInside ? 'center' : (dx > 0 ? 'left' : 'right');
    +        }
    +        var font = labelModel.getFont();
    +
    +        var labelRotate = labelModel.get('rotate')
    +            ? (dx < 0 ? -midAngle + Math.PI : -midAngle) : 0;
    +        var text = seriesModel.getFormattedLabel(idx, 'normal')
    +                    || data.getName(idx);
    +        var textRect = getBoundingRect(
    +            text, font, textAlign, 'top'
    +        );
    +        hasLabelRotate = !!labelRotate;
    +        layout.label = {
    +            x: textX,
    +            y: textY,
    +            position: labelPosition,
    +            height: textRect.height,
    +            len: labelLineLen,
    +            len2: labelLineLen2,
    +            linePoints: linePoints,
    +            textAlign: textAlign,
    +            verticalAlign: 'middle',
    +            rotation: labelRotate,
    +            inside: isLabelInside
    +        };
    +
    +        // Not layout the inside label
    +        if (!isLabelInside) {
    +            labelLayoutList.push(layout.label);
    +        }
    +    });
    +    if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {
    +        avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight);
    +    }
    +};
    +
    +var PI2$4 = Math.PI * 2;
    +var RADIAN = Math.PI / 180;
    +
    +var pieLayout = function (seriesType, ecModel, api, payload) {
    +    ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    +        var center = seriesModel.get('center');
    +        var radius = seriesModel.get('radius');
    +
    +        if (!isArray(radius)) {
    +            radius = [0, radius];
    +        }
    +        if (!isArray(center)) {
    +            center = [center, center];
    +        }
    +
    +        var width = api.getWidth();
    +        var height = api.getHeight();
    +        var size = Math.min(width, height);
    +        var cx = parsePercent$1(center[0], width);
    +        var cy = parsePercent$1(center[1], height);
    +        var r0 = parsePercent$1(radius[0], size / 2);
    +        var r = parsePercent$1(radius[1], size / 2);
    +
    +        var data = seriesModel.getData();
    +
    +        var startAngle = -seriesModel.get('startAngle') * RADIAN;
    +
    +        var minAngle = seriesModel.get('minAngle') * RADIAN;
    +
    +        var validDataCount = 0;
    +        data.each('value', function (value) {
    +            !isNaN(value) && validDataCount++;
    +        });
    +
    +        var sum = data.getSum('value');
    +        // Sum may be 0
    +        var unitRadian = Math.PI / (sum || validDataCount) * 2;
    +
    +        var clockwise = seriesModel.get('clockwise');
    +
    +        var roseType = seriesModel.get('roseType');
    +        var stillShowZeroSum = seriesModel.get('stillShowZeroSum');
    +
    +        // [0...max]
    +        var extent = data.getDataExtent('value');
    +        extent[0] = 0;
    +
    +        // In the case some sector angle is smaller than minAngle
    +        var restAngle = PI2$4;
    +        var valueSumLargerThanMinAngle = 0;
    +
    +        var currentAngle = startAngle;
    +        var dir = clockwise ? 1 : -1;
    +
    +        data.each('value', function (value, idx) {
    +            var angle;
    +            if (isNaN(value)) {
    +                data.setItemLayout(idx, {
    +                    angle: NaN,
    +                    startAngle: NaN,
    +                    endAngle: NaN,
    +                    clockwise: clockwise,
    +                    cx: cx,
    +                    cy: cy,
    +                    r0: r0,
    +                    r: roseType
    +                        ? NaN
    +                        : r
    +                });
    +                return;
    +            }
    +
    +            // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样?
    +            if (roseType !== 'area') {
    +                angle = (sum === 0 && stillShowZeroSum)
    +                    ? unitRadian : (value * unitRadian);
    +            }
    +            else {
    +                angle = PI2$4 / validDataCount;
    +            }
    +
    +            if (angle < minAngle) {
    +                angle = minAngle;
    +                restAngle -= minAngle;
    +            }
    +            else {
    +                valueSumLargerThanMinAngle += value;
    +            }
    +
    +            var endAngle = currentAngle + dir * angle;
    +            data.setItemLayout(idx, {
    +                angle: angle,
    +                startAngle: currentAngle,
    +                endAngle: endAngle,
    +                clockwise: clockwise,
    +                cx: cx,
    +                cy: cy,
    +                r0: r0,
    +                r: roseType
    +                    ? linearMap(value, extent, [r0, r])
    +                    : r
    +            });
    +
    +            currentAngle = endAngle;
    +        }, true);
    +
    +        // Some sector is constrained by minAngle
    +        // Rest sectors needs recalculate angle
    +        if (restAngle < PI2$4 && validDataCount) {
    +            // Average the angle if rest angle is not enough after all angles is
    +            // Constrained by minAngle
    +            if (restAngle <= 1e-3) {
    +                var angle = PI2$4 / validDataCount;
    +                data.each('value', function (value, idx) {
    +                    if (!isNaN(value)) {
    +                        var layout = data.getItemLayout(idx);
    +                        layout.angle = angle;
    +                        layout.startAngle = startAngle + dir * idx * angle;
    +                        layout.endAngle = startAngle + dir * (idx + 1) * angle;
    +                    }
    +                });
    +            }
    +            else {
    +                unitRadian = restAngle / valueSumLargerThanMinAngle;
    +                currentAngle = startAngle;
    +                data.each('value', function (value, idx) {
    +                    if (!isNaN(value)) {
    +                        var layout = data.getItemLayout(idx);
    +                        var angle = layout.angle === minAngle
    +                            ? minAngle : value * unitRadian;
    +                        layout.startAngle = currentAngle;
    +                        layout.endAngle = currentAngle + dir * angle;
    +                        currentAngle += dir * angle;
    +                    }
    +                });
    +            }
    +        }
    +
    +        labelLayout(seriesModel, r, width, height);
    +    });
    +};
    +
    +var dataFilter = function (seriesType, ecModel) {
    +    var legendModels = ecModel.findComponents({
    +        mainType: 'legend'
    +    });
    +    if (!legendModels || !legendModels.length) {
    +        return;
    +    }
    +    ecModel.eachSeriesByType(seriesType, function (series) {
    +        var data = series.getData();
    +        data.filterSelf(function (idx) {
    +            var name = data.getName(idx);
    +            // If in any legend component the status is not selected.
    +            for (var i = 0; i < legendModels.length; i++) {
    +                if (!legendModels[i].isSelected(name)) {
    +                    return false;
    +                }
    +            }
    +            return true;
    +        }, this);
    +    }, this);
    +};
    +
    +createDataSelectAction('pie', [{
    +    type: 'pieToggleSelect',
    +    event: 'pieselectchanged',
    +    method: 'toggleSelected'
    +}, {
    +    type: 'pieSelect',
    +    event: 'pieselected',
    +    method: 'select'
    +}, {
    +    type: 'pieUnSelect',
    +    event: 'pieunselected',
    +    method: 'unSelect'
    +}]);
    +
    +registerVisual(curry(dataColor, 'pie'));
    +registerLayout(curry(pieLayout, 'pie'));
    +registerProcessor(curry(dataFilter, 'pie'));
    +
    +SeriesModel.extend({
    +
    +    type: 'series.scatter',
    +
    +    dependencies: ['grid', 'polar', 'geo', 'singleAxis', 'calendar'],
    +
    +    getInitialData: function (option, ecModel) {
    +        return createListFromArray(option.data, this, ecModel);
    +    },
    +
    +    brushSelector: 'point',
    +
    +    defaultOption: {
    +        coordinateSystem: 'cartesian2d',
    +        zlevel: 0,
    +        z: 2,
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +        // Cartesian coordinate system
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        // Polar coordinate system
    +        // polarIndex: 0,
    +
    +        // Geo coordinate system
    +        // geoIndex: 0,
    +
    +        // symbol: null,        // 图形类型
    +        symbolSize: 10,          // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
    +        // symbolRotate: null,  // 图形旋转控制
    +
    +        large: false,
    +        // Available when large is true
    +        largeThreshold: 2000,
    +        // cursor: null,
    +
    +        // label: {
    +            // normal: {
    +                // show: false
    +                // distance: 5,
    +                // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
    +                // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
    +                //           'inside'|'left'|'right'|'top'|'bottom'
    +                // 默认使用全局文本样式,详见TEXTSTYLE
    +        //     }
    +        // },
    +        itemStyle: {
    +            normal: {
    +                opacity: 0.8
    +                // color: 各异
    +            }
    +        }
    +    }
    +
    +});
    +
    +// TODO Batch by color
    +
    +var LargeSymbolPath = extendShape({
    +
    +    shape: {
    +        points: null,
    +        sizes: null
    +    },
    +
    +    symbolProxy: null,
    +
    +    buildPath: function (path, shape) {
    +        var points = shape.points;
    +        var sizes = shape.sizes;
    +
    +        var symbolProxy = this.symbolProxy;
    +        var symbolProxyShape = symbolProxy.shape;
    +        for (var i = 0; i < points.length; i++) {
    +            var pt = points[i];
    +
    +            if (isNaN(pt[0]) || isNaN(pt[1])) {
    +                continue;
    +            }
    +
    +            var size = sizes[i];
    +            if (size[0] < 4) {
    +                // Optimize for small symbol
    +                path.rect(
    +                    pt[0] - size[0] / 2, pt[1] - size[1] / 2,
    +                    size[0], size[1]
    +                );
    +            }
    +            else {
    +                symbolProxyShape.x = pt[0] - size[0] / 2;
    +                symbolProxyShape.y = pt[1] - size[1] / 2;
    +                symbolProxyShape.width = size[0];
    +                symbolProxyShape.height = size[1];
    +
    +                symbolProxy.buildPath(path, symbolProxyShape, true);
    +            }
    +        }
    +    },
    +
    +    findDataIndex: function (x, y) {
    +        var shape = this.shape;
    +        var points = shape.points;
    +        var sizes = shape.sizes;
    +
    +        // Not consider transform
    +        // Treat each element as a rect
    +        // top down traverse
    +        for (var i = points.length - 1; i >= 0; i--) {
    +            var pt = points[i];
    +            var size = sizes[i];
    +            var x0 = pt[0] - size[0] / 2;
    +            var y0 = pt[1] - size[1] / 2;
    +            if (x >= x0 && y >= y0 && x <= x0 + size[0] && y <= y0 + size[1]) {
    +                // i is dataIndex
    +                return i;
    +            }
    +        }
    +
    +        return -1;
    +    }
    +});
    +
    +function LargeSymbolDraw() {
    +    this.group = new Group();
    +
    +    this._symbolEl = new LargeSymbolPath({
    +        // rectHover: true,
    +        // cursor: 'default'
    +    });
    +}
    +
    +var largeSymbolProto = LargeSymbolDraw.prototype;
    +
    +/**
    + * Update symbols draw by new data
    + * @param {module:echarts/data/List} data
    + */
    +largeSymbolProto.updateData = function (data) {
    +    this.group.removeAll();
    +
    +    var symbolEl = this._symbolEl;
    +
    +    var seriesModel = data.hostModel;
    +
    +    symbolEl.setShape({
    +        points: data.mapArray(data.getItemLayout),
    +        sizes: data.mapArray(
    +            function (idx) {
    +                var size = data.getItemVisual(idx, 'symbolSize');
    +                if (!(size instanceof Array)) {
    +                    size = [size, size];
    +                }
    +                return size;
    +            }
    +        )
    +    });
    +
    +    // Create symbolProxy to build path for each data
    +    symbolEl.symbolProxy = createSymbol(
    +        data.getVisual('symbol'), 0, 0, 0, 0
    +    );
    +    // Use symbolProxy setColor method
    +    symbolEl.setColor = symbolEl.symbolProxy.setColor;
    +
    +    symbolEl.useStyle(
    +        seriesModel.getModel('itemStyle.normal').getItemStyle(['color'])
    +    );
    +
    +    var visualColor = data.getVisual('color');
    +    if (visualColor) {
    +        symbolEl.setColor(visualColor);
    +    }
    +
    +    // Enable tooltip
    +    // PENDING May have performance issue when path is extremely large
    +    symbolEl.seriesIndex = seriesModel.seriesIndex;
    +    symbolEl.on('mousemove', function (e) {
    +        symbolEl.dataIndex = null;
    +        var dataIndex = symbolEl.findDataIndex(e.offsetX, e.offsetY);
    +        if (dataIndex >= 0) {
    +            // Provide dataIndex for tooltip
    +            symbolEl.dataIndex = dataIndex;
    +        }
    +    });
    +
    +    // Add back
    +    this.group.add(symbolEl);
    +};
    +
    +largeSymbolProto.updateLayout = function (seriesModel) {
    +    var data = seriesModel.getData();
    +    this._symbolEl.setShape({
    +        points: data.mapArray(data.getItemLayout)
    +    });
    +};
    +
    +largeSymbolProto.remove = function () {
    +    this.group.removeAll();
    +};
    +
    +extendChartView({
    +
    +    type: 'scatter',
    +
    +    init: function () {
    +        this._normalSymbolDraw = new SymbolDraw();
    +        this._largeSymbolDraw = new LargeSymbolDraw();
    +    },
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var data = seriesModel.getData();
    +        var largeSymbolDraw = this._largeSymbolDraw;
    +        var normalSymbolDraw = this._normalSymbolDraw;
    +        var group = this.group;
    +
    +        var symbolDraw = seriesModel.get('large') && data.count() > seriesModel.get('largeThreshold')
    +            ? largeSymbolDraw : normalSymbolDraw;
    +
    +        this._symbolDraw = symbolDraw;
    +        symbolDraw.updateData(data);
    +        group.add(symbolDraw.group);
    +
    +        group.remove(
    +            symbolDraw === largeSymbolDraw
    +            ? normalSymbolDraw.group : largeSymbolDraw.group
    +        );
    +    },
    +
    +    updateLayout: function (seriesModel) {
    +        this._symbolDraw.updateLayout(seriesModel);
    +    },
    +
    +    remove: function (ecModel, api) {
    +        this._symbolDraw && this._symbolDraw.remove(api, true);
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +// In case developer forget to include grid component
    +registerVisual(curry(visualSymbol, 'scatter', 'circle', null));
    +registerLayout(curry(layoutPoints, 'scatter'));
    +
    +function IndicatorAxis(dim, scale, radiusExtent) {
    +    Axis.call(this, dim, scale, radiusExtent);
    +
    +    /**
    +     * Axis type
    +     *  - 'category'
    +     *  - 'value'
    +     *  - 'time'
    +     *  - 'log'
    +     * @type {string}
    +     */
    +    this.type = 'value';
    +
    +    this.angle = 0;
    +
    +    /**
    +     * Indicator name
    +     * @type {string}
    +     */
    +    this.name = '';
    +    /**
    +     * @type {module:echarts/model/Model}
    +     */
    +    this.model;
    +}
    +
    +inherits(IndicatorAxis, Axis);
    +
    +// TODO clockwise
    +
    +function Radar(radarModel, ecModel, api) {
    +
    +    this._model = radarModel;
    +    /**
    +     * Radar dimensions
    +     * @type {Array.<string>}
    +     */
    +    this.dimensions = [];
    +
    +    this._indicatorAxes = map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {
    +        var dim = 'indicator_' + idx;
    +        var indicatorAxis = new IndicatorAxis(dim, new IntervalScale());
    +        indicatorAxis.name = indicatorModel.get('name');
    +        // Inject model and axis
    +        indicatorAxis.model = indicatorModel;
    +        indicatorModel.axis = indicatorAxis;
    +        this.dimensions.push(dim);
    +        return indicatorAxis;
    +    }, this);
    +
    +    this.resize(radarModel, api);
    +
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.cx;
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.cy;
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.r;
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.startAngle;
    +}
    +
    +Radar.prototype.getIndicatorAxes = function () {
    +    return this._indicatorAxes;
    +};
    +
    +Radar.prototype.dataToPoint = function (value, indicatorIndex) {
    +    var indicatorAxis = this._indicatorAxes[indicatorIndex];
    +
    +    return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);
    +};
    +
    +Radar.prototype.coordToPoint = function (coord, indicatorIndex) {
    +    var indicatorAxis = this._indicatorAxes[indicatorIndex];
    +    var angle = indicatorAxis.angle;
    +    var x = this.cx + coord * Math.cos(angle);
    +    var y = this.cy - coord * Math.sin(angle);
    +    return [x, y];
    +};
    +
    +Radar.prototype.pointToData = function (pt) {
    +    var dx = pt[0] - this.cx;
    +    var dy = pt[1] - this.cy;
    +    var radius = Math.sqrt(dx * dx + dy * dy);
    +    dx /= radius;
    +    dy /= radius;
    +
    +    var radian = Math.atan2(-dy, dx);
    +
    +    // Find the closest angle
    +    // FIXME index can calculated directly
    +    var minRadianDiff = Infinity;
    +    var closestAxis;
    +    var closestAxisIdx = -1;
    +    for (var i = 0; i < this._indicatorAxes.length; i++) {
    +        var indicatorAxis = this._indicatorAxes[i];
    +        var diff = Math.abs(radian - indicatorAxis.angle);
    +        if (diff < minRadianDiff) {
    +            closestAxis = indicatorAxis;
    +            closestAxisIdx = i;
    +            minRadianDiff = diff;
    +        }
    +    }
    +
    +    return [closestAxisIdx, +(closestAxis && closestAxis.coodToData(radius))];
    +};
    +
    +Radar.prototype.resize = function (radarModel, api) {
    +    var center = radarModel.get('center');
    +    var viewWidth = api.getWidth();
    +    var viewHeight = api.getHeight();
    +    var viewSize = Math.min(viewWidth, viewHeight) / 2;
    +    this.cx = parsePercent$1(center[0], viewWidth);
    +    this.cy = parsePercent$1(center[1], viewHeight);
    +
    +    this.startAngle = radarModel.get('startAngle') * Math.PI / 180;
    +
    +    this.r = parsePercent$1(radarModel.get('radius'), viewSize);
    +
    +    each$1(this._indicatorAxes, function (indicatorAxis, idx) {
    +        indicatorAxis.setExtent(0, this.r);
    +        var angle = (this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length);
    +        // Normalize to [-PI, PI]
    +        angle = Math.atan2(Math.sin(angle), Math.cos(angle));
    +        indicatorAxis.angle = angle;
    +    }, this);
    +};
    +
    +Radar.prototype.update = function (ecModel, api) {
    +    var indicatorAxes = this._indicatorAxes;
    +    var radarModel = this._model;
    +    each$1(indicatorAxes, function (indicatorAxis) {
    +        indicatorAxis.scale.setExtent(Infinity, -Infinity);
    +    });
    +    ecModel.eachSeriesByType('radar', function (radarSeries, idx) {
    +        if (radarSeries.get('coordinateSystem') !== 'radar'
    +            || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel
    +        ) {
    +            return;
    +        }
    +        var data = radarSeries.getData();
    +        each$1(indicatorAxes, function (indicatorAxis) {
    +            indicatorAxis.scale.unionExtentFromData(data, indicatorAxis.dim);
    +        });
    +    }, this);
    +
    +    var splitNumber = radarModel.get('splitNumber');
    +
    +    function increaseInterval(interval) {
    +        var exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10));
    +        // Increase interval
    +        var f = interval / exp10;
    +        if (f === 2) {
    +            f = 5;
    +        }
    +        else { // f is 2 or 5
    +            f *= 2;
    +        }
    +        return f * exp10;
    +    }
    +    // Force all the axis fixing the maxSplitNumber.
    +    each$1(indicatorAxes, function (indicatorAxis, idx) {
    +        var rawExtent = getScaleExtent(indicatorAxis.scale, indicatorAxis.model);
    +        niceScaleExtent(indicatorAxis.scale, indicatorAxis.model);
    +
    +        var axisModel = indicatorAxis.model;
    +        var scale = indicatorAxis.scale;
    +        var fixedMin = axisModel.getMin();
    +        var fixedMax = axisModel.getMax();
    +        var interval = scale.getInterval();
    +
    +        if (fixedMin != null && fixedMax != null) {
    +            // User set min, max, divide to get new interval
    +            scale.setExtent(+fixedMin, +fixedMax);
    +            scale.setInterval(
    +                (fixedMax - fixedMin) / splitNumber
    +            );
    +        }
    +        else if (fixedMin != null) {
    +            var max;
    +            // User set min, expand extent on the other side
    +            do {
    +                max = fixedMin + interval * splitNumber;
    +                scale.setExtent(+fixedMin, max);
    +                // Interval must been set after extent
    +                // FIXME
    +                scale.setInterval(interval);
    +
    +                interval = increaseInterval(interval);
    +            } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1]));
    +        }
    +        else if (fixedMax != null) {
    +            var min;
    +            // User set min, expand extent on the other side
    +            do {
    +                min = fixedMax - interval * splitNumber;
    +                scale.setExtent(min, +fixedMax);
    +                scale.setInterval(interval);
    +                interval = increaseInterval(interval);
    +            } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0]));
    +        }
    +        else {
    +            var nicedSplitNumber = scale.getTicks().length - 1;
    +            if (nicedSplitNumber > splitNumber) {
    +                interval = increaseInterval(interval);
    +            }
    +            // PENDING
    +            var center = Math.round((rawExtent[0] + rawExtent[1]) / 2 / interval) * interval;
    +            var halfSplitNumber = Math.round(splitNumber / 2);
    +            scale.setExtent(
    +                round(center - halfSplitNumber * interval),
    +                round(center + (splitNumber - halfSplitNumber) * interval)
    +            );
    +            scale.setInterval(interval);
    +        }
    +    });
    +};
    +
    +/**
    + * Radar dimensions is based on the data
    + * @type {Array}
    + */
    +Radar.dimensions = [];
    +
    +Radar.create = function (ecModel, api) {
    +    var radarList = [];
    +    ecModel.eachComponent('radar', function (radarModel) {
    +        var radar = new Radar(radarModel, ecModel, api);
    +        radarList.push(radar);
    +        radarModel.coordinateSystem = radar;
    +    });
    +    ecModel.eachSeriesByType('radar', function (radarSeries) {
    +        if (radarSeries.get('coordinateSystem') === 'radar') {
    +            // Inject coordinate system
    +            radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];
    +        }
    +    });
    +    return radarList;
    +};
    +
    +CoordinateSystemManager.register('radar', Radar);
    +
    +var valueAxisDefault = axisDefault.valueAxis;
    +
    +function defaultsShow(opt, show) {
    +    return defaults({
    +        show: show
    +    }, opt);
    +}
    +
    +var RadarModel = extendComponentModel({
    +
    +    type: 'radar',
    +
    +    optionUpdated: function () {
    +        var boundaryGap = this.get('boundaryGap');
    +        var splitNumber = this.get('splitNumber');
    +        var scale = this.get('scale');
    +        var axisLine = this.get('axisLine');
    +        var axisTick = this.get('axisTick');
    +        var axisLabel = this.get('axisLabel');
    +        var nameTextStyle = this.get('name');
    +        var showName = this.get('name.show');
    +        var nameFormatter = this.get('name.formatter');
    +        var nameGap = this.get('nameGap');
    +        var triggerEvent = this.get('triggerEvent');
    +
    +        var indicatorModels = map(this.get('indicator') || [], function (indicatorOpt) {
    +            // PENDING
    +            if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) {
    +                indicatorOpt.min = 0;
    +            }
    +            else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {
    +                indicatorOpt.max = 0;
    +            }
    +            var iNameTextStyle = nameTextStyle;
    +            if(indicatorOpt.color != null) {
    +                iNameTextStyle = defaults({color: indicatorOpt.color}, nameTextStyle);
    +            }
    +            // Use same configuration
    +            indicatorOpt = merge(clone(indicatorOpt), {
    +                boundaryGap: boundaryGap,
    +                splitNumber: splitNumber,
    +                scale: scale,
    +                axisLine: axisLine,
    +                axisTick: axisTick,
    +                axisLabel: axisLabel,
    +                // Competitable with 2 and use text
    +                name: indicatorOpt.text,
    +                nameLocation: 'end',
    +                nameGap: nameGap,
    +                // min: 0,
    +                nameTextStyle: iNameTextStyle,
    +                triggerEvent: triggerEvent
    +            }, false);
    +            if (!showName) {
    +                indicatorOpt.name = '';
    +            }
    +            if (typeof nameFormatter === 'string') {
    +                var indName = indicatorOpt.name;
    +                indicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : '');
    +            }
    +            else if (typeof nameFormatter === 'function') {
    +                indicatorOpt.name = nameFormatter(
    +                    indicatorOpt.name, indicatorOpt
    +                );
    +            }
    +            var model = extend(
    +                new Model(indicatorOpt, null, this.ecModel),
    +                axisModelCommonMixin
    +            );
    +
    +            // For triggerEvent.
    +            model.mainType = 'radar';
    +            model.componentIndex = this.componentIndex;
    +
    +            return model;
    +        }, this);
    +
    +        this.getIndicatorModels = function () {
    +            return indicatorModels;
    +        };
    +    },
    +
    +    defaultOption: {
    +
    +        zlevel: 0,
    +
    +        z: 0,
    +
    +        center: ['50%', '50%'],
    +
    +        radius: '75%',
    +
    +        startAngle: 90,
    +
    +        name: {
    +            show: true
    +            // formatter: null
    +            // textStyle: {}
    +        },
    +
    +        boundaryGap: [0, 0],
    +
    +        splitNumber: 5,
    +
    +        nameGap: 15,
    +
    +        scale: false,
    +
    +        // Polygon or circle
    +        shape: 'polygon',
    +
    +        axisLine: merge(
    +            {
    +                lineStyle: {
    +                    color: '#bbb'
    +                }
    +            },
    +            valueAxisDefault.axisLine
    +        ),
    +        axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),
    +        axisTick: defaultsShow(valueAxisDefault.axisTick, false),
    +        splitLine: defaultsShow(valueAxisDefault.splitLine, true),
    +        splitArea: defaultsShow(valueAxisDefault.splitArea, true),
    +
    +        // {text, min, max}
    +        indicator: []
    +    }
    +});
    +
    +var axisBuilderAttrs$1 = [
    +    'axisLine', 'axisTickLabel', 'axisName'
    +];
    +
    +extendComponentView({
    +
    +    type: 'radar',
    +
    +    render: function (radarModel, ecModel, api) {
    +        var group = this.group;
    +        group.removeAll();
    +
    +        this._buildAxes(radarModel);
    +        this._buildSplitLineAndArea(radarModel);
    +    },
    +
    +    _buildAxes: function (radarModel) {
    +        var radar = radarModel.coordinateSystem;
    +        var indicatorAxes = radar.getIndicatorAxes();
    +        var axisBuilders = map(indicatorAxes, function (indicatorAxis) {
    +            var axisBuilder = new AxisBuilder(indicatorAxis.model, {
    +                position: [radar.cx, radar.cy],
    +                rotation: indicatorAxis.angle,
    +                labelDirection: -1,
    +                tickDirection: -1,
    +                nameDirection: 1
    +            });
    +            return axisBuilder;
    +        });
    +
    +        each$1(axisBuilders, function (axisBuilder) {
    +            each$1(axisBuilderAttrs$1, axisBuilder.add, axisBuilder);
    +            this.group.add(axisBuilder.getGroup());
    +        }, this);
    +    },
    +
    +    _buildSplitLineAndArea: function (radarModel) {
    +        var radar = radarModel.coordinateSystem;
    +        var indicatorAxes = radar.getIndicatorAxes();
    +        if (!indicatorAxes.length) {
    +            return;
    +        }
    +        var shape = radarModel.get('shape');
    +        var splitLineModel = radarModel.getModel('splitLine');
    +        var splitAreaModel = radarModel.getModel('splitArea');
    +        var lineStyleModel = splitLineModel.getModel('lineStyle');
    +        var areaStyleModel = splitAreaModel.getModel('areaStyle');
    +
    +        var showSplitLine = splitLineModel.get('show');
    +        var showSplitArea = splitAreaModel.get('show');
    +        var splitLineColors = lineStyleModel.get('color');
    +        var splitAreaColors = areaStyleModel.get('color');
    +
    +        splitLineColors = isArray(splitLineColors) ? splitLineColors : [splitLineColors];
    +        splitAreaColors = isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors];
    +
    +        var splitLines = [];
    +        var splitAreas = [];
    +
    +        function getColorIndex(areaOrLine, areaOrLineColorList, idx) {
    +            var colorIndex = idx % areaOrLineColorList.length;
    +            areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];
    +            return colorIndex;
    +        }
    +
    +        if (shape === 'circle') {
    +            var ticksRadius = indicatorAxes[0].getTicksCoords();
    +            var cx = radar.cx;
    +            var cy = radar.cy;
    +            for (var i = 0; i < ticksRadius.length; i++) {
    +                if (showSplitLine) {
    +                    var colorIndex = getColorIndex(splitLines, splitLineColors, i);
    +                    splitLines[colorIndex].push(new Circle({
    +                        shape: {
    +                            cx: cx,
    +                            cy: cy,
    +                            r: ticksRadius[i]
    +                        }
    +                    }));
    +                }
    +                if (showSplitArea && i < ticksRadius.length - 1) {
    +                    var colorIndex = getColorIndex(splitAreas, splitAreaColors, i);
    +                    splitAreas[colorIndex].push(new Ring({
    +                        shape: {
    +                            cx: cx,
    +                            cy: cy,
    +                            r0: ticksRadius[i],
    +                            r: ticksRadius[i + 1]
    +                        }
    +                    }));
    +                }
    +            }
    +        }
    +        // Polyyon
    +        else {
    +            var realSplitNumber;
    +            var axesTicksPoints = map(indicatorAxes, function (indicatorAxis, idx) {
    +                var ticksCoords = indicatorAxis.getTicksCoords();
    +                realSplitNumber = realSplitNumber == null
    +                    ? ticksCoords.length - 1
    +                    : Math.min(ticksCoords.length - 1, realSplitNumber);
    +                return map(ticksCoords, function (tickCoord) {
    +                    return radar.coordToPoint(tickCoord, idx);
    +                });
    +            });
    +
    +            var prevPoints = [];
    +            for (var i = 0; i <= realSplitNumber; i++) {
    +                var points = [];
    +                for (var j = 0; j < indicatorAxes.length; j++) {
    +                    points.push(axesTicksPoints[j][i]);
    +                }
    +                // Close
    +                if (points[0]) {
    +                    points.push(points[0].slice());
    +                }
    +                else {
    +                    if (__DEV__) {
    +                        console.error('Can\'t draw value axis ' + i);
    +                    }
    +                }
    +
    +                if (showSplitLine) {
    +                    var colorIndex = getColorIndex(splitLines, splitLineColors, i);
    +                    splitLines[colorIndex].push(new Polyline({
    +                        shape: {
    +                            points: points
    +                        }
    +                    }));
    +                }
    +                if (showSplitArea && prevPoints) {
    +                    var colorIndex = getColorIndex(splitAreas, splitAreaColors, i - 1);
    +                    splitAreas[colorIndex].push(new Polygon({
    +                        shape: {
    +                            points: points.concat(prevPoints)
    +                        }
    +                    }));
    +                }
    +                prevPoints = points.slice().reverse();
    +            }
    +        }
    +
    +        var lineStyle = lineStyleModel.getLineStyle();
    +        var areaStyle = areaStyleModel.getAreaStyle();
    +        // Add splitArea before splitLine
    +        each$1(splitAreas, function (splitAreas, idx) {
    +            this.group.add(mergePath(
    +                splitAreas, {
    +                    style: defaults({
    +                        stroke: 'none',
    +                        fill: splitAreaColors[idx % splitAreaColors.length]
    +                    }, areaStyle),
    +                    silent: true
    +                }
    +            ));
    +        }, this);
    +
    +        each$1(splitLines, function (splitLines, idx) {
    +            this.group.add(mergePath(
    +                splitLines, {
    +                    style: defaults({
    +                        fill: 'none',
    +                        stroke: splitLineColors[idx % splitLineColors.length]
    +                    }, lineStyle),
    +                    silent: true
    +                }
    +            ));
    +        }, this);
    +
    +    }
    +});
    +
    +var RadarSeries = SeriesModel.extend({
    +
    +    type: 'series.radar',
    +
    +    dependencies: ['radar'],
    +
    +
    +    // Overwrite
    +    init: function (option) {
    +        RadarSeries.superApply(this, 'init', arguments);
    +
    +        // Enable legend selection for each data item
    +        // Use a function instead of direct access because data reference may changed
    +        this.legendDataProvider = function () {
    +            return this.getRawData();
    +        };
    +    },
    +
    +    getInitialData: function (option, ecModel) {
    +        var data = option.data || [];
    +        var dimensions = completeDimensions(
    +            [], data, {extraPrefix: 'indicator_', extraFromZero: true}
    +        );
    +        var list = new List(dimensions, this);
    +        list.initData(data);
    +        return list;
    +    },
    +
    +    formatTooltip: function (dataIndex) {
    +        var value = this.getRawValue(dataIndex);
    +        var coordSys = this.coordinateSystem;
    +        var indicatorAxes = coordSys.getIndicatorAxes();
    +        var name = this.getData().getName(dataIndex);
    +        return encodeHTML(name === '' ? this.name : name) + '<br/>'
    +            + map(indicatorAxes, function (axis, idx) {
    +                return encodeHTML(axis.name + ' : ' + value[idx]);
    +            }).join('<br />');
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +        coordinateSystem: 'radar',
    +        legendHoverLink: true,
    +        radarIndex: 0,
    +        lineStyle: {
    +            normal: {
    +                width: 2,
    +                type: 'solid'
    +            }
    +        },
    +        label: {
    +            normal: {
    +                position: 'top'
    +            }
    +        },
    +        // areaStyle: {
    +        // },
    +        // itemStyle: {}
    +        symbol: 'emptyCircle',
    +        symbolSize: 4
    +        // symbolRotate: null
    +    }
    +});
    +
    +function normalizeSymbolSize(symbolSize) {
    +    if (!isArray(symbolSize)) {
    +        symbolSize = [+symbolSize, +symbolSize];
    +    }
    +    return symbolSize;
    +}
    +
    +extendChartView({
    +
    +    type: 'radar',
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var polar = seriesModel.coordinateSystem;
    +        var group = this.group;
    +
    +        var data = seriesModel.getData();
    +        var oldData = this._data;
    +
    +        function createSymbol$$1(data, idx) {
    +            var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
    +            var color = data.getItemVisual(idx, 'color');
    +            if (symbolType === 'none') {
    +                return;
    +            }
    +            var symbolSize = normalizeSymbolSize(
    +                data.getItemVisual(idx, 'symbolSize')
    +            );
    +            var symbolPath = createSymbol(
    +                symbolType, -1, -1, 2, 2, color
    +            );
    +            symbolPath.attr({
    +                style: {
    +                    strokeNoScale: true
    +                },
    +                z2: 100,
    +                scale: [symbolSize[0] / 2, symbolSize[1] / 2]
    +            });
    +            return symbolPath;
    +        }
    +
    +        function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) {
    +            // Simply rerender all
    +            symbolGroup.removeAll();
    +            for (var i = 0; i < newPoints.length - 1; i++) {
    +                var symbolPath = createSymbol$$1(data, idx);
    +                if (symbolPath) {
    +                    symbolPath.__dimIdx = i;
    +                    if (oldPoints[i]) {
    +                        symbolPath.attr('position', oldPoints[i]);
    +                        graphic[isInit ? 'initProps' : 'updateProps'](
    +                            symbolPath, {
    +                                position: newPoints[i]
    +                            }, seriesModel, idx
    +                        );
    +                    }
    +                    else {
    +                        symbolPath.attr('position', newPoints[i]);
    +                    }
    +                    symbolGroup.add(symbolPath);
    +                }
    +            }
    +        }
    +
    +        function getInitialPoints(points) {
    +            return map(points, function (pt) {
    +                return [polar.cx, polar.cy];
    +            });
    +        }
    +        data.diff(oldData)
    +            .add(function (idx) {
    +                var points = data.getItemLayout(idx);
    +                if (!points) {
    +                    return;
    +                }
    +                var polygon = new Polygon();
    +                var polyline = new Polyline();
    +                var target = {
    +                    shape: {
    +                        points: points
    +                    }
    +                };
    +                polygon.shape.points = getInitialPoints(points);
    +                polyline.shape.points = getInitialPoints(points);
    +                initProps(polygon, target, seriesModel, idx);
    +                initProps(polyline, target, seriesModel, idx);
    +
    +                var itemGroup = new Group();
    +                var symbolGroup = new Group();
    +                itemGroup.add(polyline);
    +                itemGroup.add(polygon);
    +                itemGroup.add(symbolGroup);
    +
    +                updateSymbols(
    +                    polyline.shape.points, points, symbolGroup, data, idx, true
    +                );
    +
    +                data.setItemGraphicEl(idx, itemGroup);
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var itemGroup = oldData.getItemGraphicEl(oldIdx);
    +                var polyline = itemGroup.childAt(0);
    +                var polygon = itemGroup.childAt(1);
    +                var symbolGroup = itemGroup.childAt(2);
    +                var target = {
    +                    shape: {
    +                        points: data.getItemLayout(newIdx)
    +                    }
    +                };
    +                if (!target.shape.points) {
    +                    return;
    +                }
    +                updateSymbols(
    +                    polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false
    +                );
    +
    +                updateProps(polyline, target, seriesModel);
    +                updateProps(polygon, target, seriesModel);
    +
    +                data.setItemGraphicEl(newIdx, itemGroup);
    +            })
    +            .remove(function (idx) {
    +                group.remove(oldData.getItemGraphicEl(idx));
    +            })
    +            .execute();
    +
    +        data.eachItemGraphicEl(function (itemGroup, idx) {
    +            var itemModel = data.getItemModel(idx);
    +            var polyline = itemGroup.childAt(0);
    +            var polygon = itemGroup.childAt(1);
    +            var symbolGroup = itemGroup.childAt(2);
    +            var color = data.getItemVisual(idx, 'color');
    +
    +            group.add(itemGroup);
    +
    +            polyline.useStyle(
    +                defaults(
    +                    itemModel.getModel('lineStyle.normal').getLineStyle(),
    +                    {
    +                        fill: 'none',
    +                        stroke: color
    +                    }
    +                )
    +            );
    +            polyline.hoverStyle = itemModel.getModel('lineStyle.emphasis').getLineStyle();
    +
    +            var areaStyleModel = itemModel.getModel('areaStyle.normal');
    +            var hoverAreaStyleModel = itemModel.getModel('areaStyle.emphasis');
    +            var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();
    +            var hoverPolygonIgnore = hoverAreaStyleModel.isEmpty() && hoverAreaStyleModel.parentModel.isEmpty();
    +
    +            hoverPolygonIgnore = hoverPolygonIgnore && polygonIgnore;
    +            polygon.ignore = polygonIgnore;
    +
    +            polygon.useStyle(
    +                defaults(
    +                    areaStyleModel.getAreaStyle(),
    +                    {
    +                        fill: color,
    +                        opacity: 0.7
    +                    }
    +                )
    +            );
    +            polygon.hoverStyle = hoverAreaStyleModel.getAreaStyle();
    +
    +            var itemStyle = itemModel.getModel('itemStyle.normal').getItemStyle(['color']);
    +            var itemHoverStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();
    +            var labelModel = itemModel.getModel('label.normal');
    +            var labelHoverModel = itemModel.getModel('label.emphasis');
    +            symbolGroup.eachChild(function (symbolPath) {
    +                symbolPath.setStyle(itemStyle);
    +                symbolPath.hoverStyle = clone(itemHoverStyle);
    +
    +                setLabelStyle(
    +                    symbolPath.style, symbolPath.hoverStyle, labelModel, labelHoverModel,
    +                    {
    +                        labelFetcher: data.hostModel,
    +                        labelDataIndex: idx,
    +                        labelDimIndex: symbolPath.__dimIdx,
    +                        defaultText: data.get(data.dimensions[symbolPath.__dimIdx], idx),
    +                        autoColor: color,
    +                        isRectText: true
    +                    }
    +                );
    +            });
    +
    +            function onEmphasis() {
    +                polygon.attr('ignore', hoverPolygonIgnore);
    +            }
    +
    +            function onNormal() {
    +                polygon.attr('ignore', polygonIgnore);
    +            }
    +
    +            itemGroup.off('mouseover').off('mouseout').off('normal').off('emphasis');
    +            itemGroup.on('emphasis', onEmphasis)
    +                .on('mouseover', onEmphasis)
    +                .on('normal', onNormal)
    +                .on('mouseout', onNormal);
    +
    +            setHoverStyle(itemGroup);
    +        });
    +
    +        this._data = data;
    +    },
    +
    +    remove: function () {
    +        this.group.removeAll();
    +        this._data = null;
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +var radarLayout = function (ecModel) {
    +    ecModel.eachSeriesByType('radar', function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var points = [];
    +        var coordSys = seriesModel.coordinateSystem;
    +        if (!coordSys) {
    +            return;
    +        }
    +
    +        function pointsConverter(val, idx) {
    +            points[idx] = points[idx] || [];
    +            points[idx][i] = coordSys.dataToPoint(val, i);
    +        }
    +        for (var i = 0; i < coordSys.getIndicatorAxes().length; i++) {
    +            var dim = data.dimensions[i];
    +            data.each(dim, pointsConverter);
    +        }
    +
    +        data.each(function (idx) {
    +            // Close polygon
    +            points[idx][0] && points[idx].push(points[idx][0].slice());
    +            data.setItemLayout(idx, points[idx]);
    +        });
    +    });
    +};
    +
    +// Backward compat for radar chart in 2
    +var backwardCompat$1 = function (option) {
    +    var polarOptArr = option.polar;
    +    if (polarOptArr) {
    +        if (!isArray(polarOptArr)) {
    +            polarOptArr = [polarOptArr];
    +        }
    +        var polarNotRadar = [];
    +        each$1(polarOptArr, function (polarOpt, idx) {
    +            if (polarOpt.indicator) {
    +                if (polarOpt.type && !polarOpt.shape) {
    +                    polarOpt.shape = polarOpt.type;
    +                }
    +                option.radar = option.radar || [];
    +                if (!isArray(option.radar)) {
    +                    option.radar = [option.radar];
    +                }
    +                option.radar.push(polarOpt);
    +            }
    +            else {
    +                polarNotRadar.push(polarOpt);
    +            }
    +        });
    +        option.polar = polarNotRadar;
    +    }
    +    each$1(option.series, function (seriesOpt) {
    +        if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {
    +            seriesOpt.radarIndex = seriesOpt.polarIndex;
    +        }
    +    });
    +};
    +
    +// Must use radar component
    +registerVisual(curry(dataColor, 'radar'));
    +registerVisual(curry(visualSymbol, 'radar', 'circle', null));
    +registerLayout(radarLayout);
    +registerProcessor(curry(dataFilter, 'radar'));
    +registerPreprocessor(backwardCompat$1);
    +
    +/**
    + * Simple view coordinate system
    + * Mapping given x, y to transformd view x, y
    + */
    +
    +var v2ApplyTransform$1 = applyTransform;
    +
    +// Dummy transform node
    +function TransformDummy() {
    +    Transformable.call(this);
    +}
    +mixin(TransformDummy, Transformable);
    +
    +function View(name) {
    +    /**
    +     * @type {string}
    +     */
    +    this.name = name;
    +
    +    /**
    +     * @type {Object}
    +     */
    +    this.zoomLimit;
    +
    +    Transformable.call(this);
    +
    +    this._roamTransform = new TransformDummy();
    +
    +    this._viewTransform = new TransformDummy();
    +
    +    this._center;
    +    this._zoom;
    +}
    +
    +View.prototype = {
    +
    +    constructor: View,
    +
    +    type: 'view',
    +
    +    /**
    +     * @param {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: ['x', 'y'],
    +
    +    /**
    +     * Set bounding rect
    +     * @param {number} x
    +     * @param {number} y
    +     * @param {number} width
    +     * @param {number} height
    +     */
    +
    +    // PENDING to getRect
    +    setBoundingRect: function (x, y, width, height) {
    +        this._rect = new BoundingRect(x, y, width, height);
    +        return this._rect;
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    // PENDING to getRect
    +    getBoundingRect: function () {
    +        return this._rect;
    +    },
    +
    +    /**
    +     * @param {number} x
    +     * @param {number} y
    +     * @param {number} width
    +     * @param {number} height
    +     */
    +    setViewRect: function (x, y, width, height) {
    +        this.transformTo(x, y, width, height);
    +        this._viewRect = new BoundingRect(x, y, width, height);
    +    },
    +
    +    /**
    +     * Transformed to particular position and size
    +     * @param {number} x
    +     * @param {number} y
    +     * @param {number} width
    +     * @param {number} height
    +     */
    +    transformTo: function (x, y, width, height) {
    +        var rect = this.getBoundingRect();
    +        var viewTransform = this._viewTransform;
    +
    +        viewTransform.transform = rect.calculateTransform(
    +            new BoundingRect(x, y, width, height)
    +        );
    +
    +        viewTransform.decomposeTransform();
    +
    +        this._updateTransform();
    +    },
    +
    +    /**
    +     * Set center of view
    +     * @param {Array.<number>} [centerCoord]
    +     */
    +    setCenter: function (centerCoord) {
    +        if (!centerCoord) {
    +            return;
    +        }
    +        this._center = centerCoord;
    +
    +        this._updateCenterAndZoom();
    +    },
    +
    +    /**
    +     * @param {number} zoom
    +     */
    +    setZoom: function (zoom) {
    +        zoom = zoom || 1;
    +
    +        var zoomLimit = this.zoomLimit;
    +        if (zoomLimit) {
    +            if (zoomLimit.max != null) {
    +                zoom = Math.min(zoomLimit.max, zoom);
    +            }
    +            if (zoomLimit.min != null) {
    +                zoom = Math.max(zoomLimit.min, zoom);
    +            }
    +        }
    +        this._zoom = zoom;
    +
    +        this._updateCenterAndZoom();
    +    },
    +
    +    /**
    +     * Get default center without roam
    +     */
    +    getDefaultCenter: function () {
    +        // Rect before any transform
    +        var rawRect = this.getBoundingRect();
    +        var cx = rawRect.x + rawRect.width / 2;
    +        var cy = rawRect.y + rawRect.height / 2;
    +
    +        return [cx, cy];
    +    },
    +
    +    getCenter: function () {
    +        return this._center || this.getDefaultCenter();
    +    },
    +
    +    getZoom: function () {
    +        return this._zoom || 1;
    +    },
    +
    +    /**
    +     * @return {Array.<number}
    +     */
    +    getRoamTransform: function () {
    +        return this._roamTransform;
    +    },
    +
    +    _updateCenterAndZoom: function () {
    +        // Must update after view transform updated
    +        var viewTransformMatrix = this._viewTransform.getLocalTransform();
    +        var roamTransform = this._roamTransform;
    +        var defaultCenter = this.getDefaultCenter();
    +        var center = this.getCenter();
    +        var zoom = this.getZoom();
    +
    +        center = applyTransform([], center, viewTransformMatrix);
    +        defaultCenter = applyTransform([], defaultCenter, viewTransformMatrix);
    +
    +        roamTransform.origin = center;
    +        roamTransform.position = [
    +            defaultCenter[0] - center[0],
    +            defaultCenter[1] - center[1]
    +        ];
    +        roamTransform.scale = [zoom, zoom];
    +
    +        this._updateTransform();
    +    },
    +
    +    /**
    +     * Update transform from roam and mapLocation
    +     * @private
    +     */
    +    _updateTransform: function () {
    +        var roamTransform = this._roamTransform;
    +        var viewTransform = this._viewTransform;
    +
    +        viewTransform.parent = roamTransform;
    +        roamTransform.updateTransform();
    +        viewTransform.updateTransform();
    +
    +        viewTransform.transform
    +            && copy$1(this.transform || (this.transform = []), viewTransform.transform);
    +
    +        if (this.transform) {
    +            this.invTransform = this.invTransform || [];
    +            invert(this.invTransform, this.transform);
    +        }
    +        else {
    +            this.invTransform = null;
    +        }
    +        this.decomposeTransform();
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getViewRect: function () {
    +        return this._viewRect;
    +    },
    +
    +    /**
    +     * Get view rect after roam transform
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getViewRectAfterRoam: function () {
    +        var rect = this.getBoundingRect().clone();
    +        rect.applyTransform(this.transform);
    +        return rect;
    +    },
    +
    +    /**
    +     * Convert a single (lon, lat) data item to (x, y) point.
    +     * @param {Array.<number>} data
    +     * @return {Array.<number>}
    +     */
    +    dataToPoint: function (data) {
    +        var transform = this.transform;
    +        return transform
    +            ? v2ApplyTransform$1([], data, transform)
    +            : [data[0], data[1]];
    +    },
    +
    +    /**
    +     * Convert a (x, y) point to (lon, lat) data
    +     * @param {Array.<number>} point
    +     * @return {Array.<number>}
    +     */
    +    pointToData: function (point) {
    +        var invTransform = this.invTransform;
    +        return invTransform
    +            ? v2ApplyTransform$1([], point, invTransform)
    +            : [point[0], point[1]];
    +    },
    +
    +    /**
    +     * @implements
    +     * see {module:echarts/CoodinateSystem}
    +     */
    +    convertToPixel: curry(doConvert$1, 'dataToPoint'),
    +
    +    /**
    +     * @implements
    +     * see {module:echarts/CoodinateSystem}
    +     */
    +    convertFromPixel: curry(doConvert$1, 'pointToData'),
    +
    +    /**
    +     * @implements
    +     * see {module:echarts/CoodinateSystem}
    +     */
    +    containPoint: function (point) {
    +        return this.getViewRectAfterRoam().contain(point[0], point[1]);
    +    }
    +
    +    /**
    +     * @return {number}
    +     */
    +    // getScalarScale: function () {
    +    //     // Use determinant square root of transform to mutiply scalar
    +    //     var m = this.transform;
    +    //     var det = Math.sqrt(Math.abs(m[0] * m[3] - m[2] * m[1]));
    +    //     return det;
    +    // }
    +};
    +
    +mixin(View, Transformable);
    +
    +function doConvert$1(methodName, ecModel, finder, value) {
    +    var seriesModel = finder.seriesModel;
    +    var coordSys = seriesModel ? seriesModel.coordinateSystem : null; // e.g., graph.
    +    return coordSys === this ? coordSys[methodName](value) : null;
    +}
    +
    +// Fix for 南海诸岛
    +
    +var geoCoord = [126, 25];
    +
    +var points$1 = [
    +    [[0,3.5],[7,11.2],[15,11.9],[30,7],[42,0.7],[52,0.7],
    +        [56,7.7],[59,0.7],[64,0.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 (var i$1 = 0; i$1 < points$1.length; i$1++) {
    +    for (var k = 0; k < points$1[i$1].length; k++) {
    +        points$1[i$1][k][0] /= 10.5;
    +        points$1[i$1][k][1] /= -10.5 / 0.75;
    +
    +        points$1[i$1][k][0] += geoCoord[0];
    +        points$1[i$1][k][1] += geoCoord[1];
    +    }
    +}
    +
    +var fixNanhai = function (geo) {
    +    if (geo.map === 'china') {
    +        geo.regions.push(new Region(
    +            '南海诸岛',
    +            map(points$1, function (exterior) {
    +                return {
    +                    type: 'polygon',
    +                    exterior: exterior
    +                };
    +            }), geoCoord
    +        ));
    +    }
    +};
    +
    +var coordsOffsetMap = {
    +    '南海诸岛' : [32, 80],
    +    // 全国
    +    '广东': [0, -10],
    +    '香港': [10, 5],
    +    '澳门': [-10, 10],
    +    //'北京': [-10, 0],
    +    '天津': [5, 5]
    +};
    +
    +var fixTextCoord = function (geo) {
    +    each$1(geo.regions, function (region) {
    +        var coordFix = coordsOffsetMap[region.name];
    +        if (coordFix) {
    +            var cp = region.center;
    +            cp[0] += coordFix[0] / 10.5;
    +            cp[1] += -coordFix[1] / (10.5 / 0.75);
    +        }
    +    });
    +};
    +
    +var geoCoordMap = {
    +    'Russia': [100, 60],
    +    'United States': [-99, 38],
    +    'United States of America': [-99, 38]
    +};
    +
    +var fixGeoCoord = function (geo) {
    +    each$1(geo.regions, function (region) {
    +        var geoCoord = geoCoordMap[region.name];
    +        if (geoCoord) {
    +            var cp = region.center;
    +            cp[0] = geoCoord[0];
    +            cp[1] = geoCoord[1];
    +        }
    +    });
    +};
    +
    +// Fix for 钓鱼岛
    +
    +// var Region = require('../Region');
    +// var zrUtil = require('zrender/src/core/util');
    +
    +// var geoCoord = [126, 25];
    +
    +var points$2 = [
    +    [
    +        [123.45165252685547, 25.73527164402261],
    +        [123.49731445312499, 25.73527164402261],
    +        [123.49731445312499, 25.750734064600884],
    +        [123.45165252685547, 25.750734064600884],
    +        [123.45165252685547, 25.73527164402261]
    +    ]
    +];
    +
    +var fixDiaoyuIsland = function (geo) {
    +    if (geo.map === 'china') {
    +        for (var i = 0, len = geo.regions.length; i < len; ++i) {
    +            if (geo.regions[i].name === '台湾') {
    +                geo.regions[i].geometries.push({
    +                    type: 'polygon',
    +                    exterior: points$2[0]
    +                });
    +            }
    +        }
    +    }
    +};
    +
    +// Geo fix functions
    +var geoFixFuncs = [
    +    fixNanhai,
    +    fixTextCoord,
    +    fixGeoCoord,
    +    fixDiaoyuIsland
    +];
    +
    +/**
    + * [Geo description]
    + * @param {string} name Geo name
    + * @param {string} map Map type
    + * @param {Object} geoJson
    + * @param {Object} [specialAreas]
    + *        Specify the positioned areas by left, top, width, height
    + * @param {Object.<string, string>} [nameMap]
    + *        Specify name alias
    + */
    +function Geo(name, map$$1, geoJson, specialAreas, nameMap) {
    +
    +    View.call(this, name);
    +
    +    /**
    +     * Map type
    +     * @type {string}
    +     */
    +    this.map = map$$1;
    +
    +    this._nameCoordMap = createHashMap();
    +
    +    this.loadGeoJson(geoJson, specialAreas, nameMap);
    +}
    +
    +Geo.prototype = {
    +
    +    constructor: Geo,
    +
    +    type: 'geo',
    +
    +    /**
    +     * @param {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: ['lng', 'lat'],
    +
    +    /**
    +     * If contain given lng,lat coord
    +     * @param {Array.<number>}
    +     * @readOnly
    +     */
    +    containCoord: function (coord) {
    +        var regions = this.regions;
    +        for (var i = 0; i < regions.length; i++) {
    +            if (regions[i].contain(coord)) {
    +                return true;
    +            }
    +        }
    +        return false;
    +    },
    +    /**
    +     * @param {Object} geoJson
    +     * @param {Object} [specialAreas]
    +     *        Specify the positioned areas by left, top, width, height
    +     * @param {Object.<string, string>} [nameMap]
    +     *        Specify name alias
    +     */
    +    loadGeoJson: function (geoJson, specialAreas, nameMap) {
    +        // https://jsperf.com/try-catch-performance-overhead
    +        try {
    +            this.regions = geoJson ? parseGeoJson(geoJson) : [];
    +        }
    +        catch (e) {
    +            throw 'Invalid geoJson format\n' + e.message;
    +        }
    +        specialAreas = specialAreas || {};
    +        nameMap = nameMap || {};
    +        var regions = this.regions;
    +        var regionsMap = createHashMap();
    +        for (var i = 0; i < regions.length; i++) {
    +            var regionName = regions[i].name;
    +            // Try use the alias in nameMap
    +            regionName = nameMap.hasOwnProperty(regionName) ? nameMap[regionName] : regionName;
    +            regions[i].name = regionName;
    +
    +            regionsMap.set(regionName, regions[i]);
    +            // Add geoJson
    +            this.addGeoCoord(regionName, regions[i].center);
    +
    +            // Some area like Alaska in USA map needs to be tansformed
    +            // to look better
    +            var specialArea = specialAreas[regionName];
    +            if (specialArea) {
    +                regions[i].transformTo(
    +                    specialArea.left, specialArea.top, specialArea.width, specialArea.height
    +                );
    +            }
    +        }
    +
    +        this._regionsMap = regionsMap;
    +
    +        this._rect = null;
    +
    +        each$1(geoFixFuncs, function (fixFunc) {
    +            fixFunc(this);
    +        }, this);
    +    },
    +
    +    // Overwrite
    +    transformTo: function (x, y, width, height) {
    +        var rect = this.getBoundingRect();
    +
    +        rect = rect.clone();
    +        // Longitute is inverted
    +        rect.y = -rect.y - rect.height;
    +
    +        var viewTransform = this._viewTransform;
    +
    +        viewTransform.transform = rect.calculateTransform(
    +            new BoundingRect(x, y, width, height)
    +        );
    +
    +        viewTransform.decomposeTransform();
    +
    +        var scale = viewTransform.scale;
    +        scale[1] = -scale[1];
    +
    +        viewTransform.updateTransform();
    +
    +        this._updateTransform();
    +    },
    +
    +    /**
    +     * @param {string} name
    +     * @return {module:echarts/coord/geo/Region}
    +     */
    +    getRegion: function (name) {
    +        return this._regionsMap.get(name);
    +    },
    +
    +    getRegionByCoord: function (coord) {
    +        var regions = this.regions;
    +        for (var i = 0; i < regions.length; i++) {
    +            if (regions[i].contain(coord)) {
    +                return regions[i];
    +            }
    +        }
    +    },
    +
    +    /**
    +     * Add geoCoord for indexing by name
    +     * @param {string} name
    +     * @param {Array.<number>} geoCoord
    +     */
    +    addGeoCoord: function (name, geoCoord) {
    +        this._nameCoordMap.set(name, geoCoord);
    +    },
    +
    +    /**
    +     * Get geoCoord by name
    +     * @param {string} name
    +     * @return {Array.<number>}
    +     */
    +    getGeoCoord: function (name) {
    +        return this._nameCoordMap.get(name);
    +    },
    +
    +    // Overwrite
    +    getBoundingRect: function () {
    +        if (this._rect) {
    +            return this._rect;
    +        }
    +        var rect;
    +
    +        var regions = this.regions;
    +        for (var i = 0; i < regions.length; i++) {
    +            var regionRect = regions[i].getBoundingRect();
    +            rect = rect || regionRect.clone();
    +            rect.union(regionRect);
    +        }
    +        // FIXME Always return new ?
    +        return (this._rect = rect || new BoundingRect(0, 0, 0, 0));
    +    },
    +
    +    /**
    +     * @param {string|Array.<number>} data
    +     * @return {Array.<number>}
    +     */
    +    dataToPoint: function (data) {
    +        if (typeof data === 'string') {
    +            // Map area name to geoCoord
    +            data = this.getGeoCoord(data);
    +        }
    +        if (data) {
    +            return View.prototype.dataToPoint.call(this, data);
    +        }
    +    },
    +
    +    /**
    +     * @inheritDoc
    +     */
    +    convertToPixel: curry(doConvert, 'dataToPoint'),
    +
    +    /**
    +     * @inheritDoc
    +     */
    +    convertFromPixel: curry(doConvert, 'pointToData')
    +
    +};
    +
    +mixin(Geo, View);
    +
    +function doConvert(methodName, ecModel, finder, value) {
    +    var geoModel = finder.geoModel;
    +    var seriesModel = finder.seriesModel;
    +
    +    var coordSys = geoModel
    +        ? geoModel.coordinateSystem
    +        : seriesModel
    +        ? (
    +            seriesModel.coordinateSystem // For map.
    +            || (seriesModel.getReferringComponents('geo')[0] || {}).coordinateSystem
    +        )
    +        : null;
    +
    +    return coordSys === this ? coordSys[methodName](value) : null;
    +}
    +
    +/**
    + * Resize method bound to the geo
    + * @param {module:echarts/coord/geo/GeoModel|module:echarts/chart/map/MapModel} geoModel
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function resizeGeo(geoModel, api) {
    +
    +    var boundingCoords = geoModel.get('boundingCoords');
    +    if (boundingCoords != null) {
    +        var leftTop = boundingCoords[0];
    +        var rightBottom = boundingCoords[1];
    +        if (isNaN(leftTop[0]) || isNaN(leftTop[1]) || isNaN(rightBottom[0]) || isNaN(rightBottom[1])) {
    +            if (__DEV__) {
    +                console.error('Invalid boundingCoords');
    +            }
    +        }
    +        else {
    +            this.setBoundingRect(leftTop[0], leftTop[1], rightBottom[0] - leftTop[0], rightBottom[1] - leftTop[1]);
    +        }
    +    }
    +
    +    var rect = this.getBoundingRect();
    +
    +    var boxLayoutOption;
    +
    +    var center = geoModel.get('layoutCenter');
    +    var size = geoModel.get('layoutSize');
    +
    +    var viewWidth = api.getWidth();
    +    var viewHeight = api.getHeight();
    +
    +    var aspectScale = geoModel.get('aspectScale') || 0.75;
    +    var aspect = rect.width / rect.height * aspectScale;
    +
    +    var useCenterAndSize = false;
    +
    +    if (center && size) {
    +        center = [
    +            parsePercent$1(center[0], viewWidth),
    +            parsePercent$1(center[1], viewHeight)
    +        ];
    +        size = parsePercent$1(size, Math.min(viewWidth, viewHeight));
    +
    +        if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {
    +            useCenterAndSize = true;
    +        }
    +        else {
    +            if (__DEV__) {
    +                console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');
    +            }
    +        }
    +    }
    +
    +    var viewRect;
    +    if (useCenterAndSize) {
    +        var viewRect = {};
    +        if (aspect > 1) {
    +            // Width is same with size
    +            viewRect.width = size;
    +            viewRect.height = size / aspect;
    +        }
    +        else {
    +            viewRect.height = size;
    +            viewRect.width = size * aspect;
    +        }
    +        viewRect.y = center[1] - viewRect.height / 2;
    +        viewRect.x = center[0] - viewRect.width / 2;
    +    }
    +    else {
    +        // Use left/top/width/height
    +        boxLayoutOption = geoModel.getBoxLayoutParams();
    +
    +        // 0.75 rate
    +        boxLayoutOption.aspect = aspect;
    +
    +        viewRect = getLayoutRect(boxLayoutOption, {
    +            width: viewWidth,
    +            height: viewHeight
    +        });
    +    }
    +
    +    this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
    +
    +    this.setCenter(geoModel.get('center'));
    +    this.setZoom(geoModel.get('zoom'));
    +}
    +
    +/**
    + * @param {module:echarts/coord/Geo} geo
    + * @param {module:echarts/model/Model} model
    + * @inner
    + */
    +function setGeoCoords(geo, model) {
    +    each$1(model.get('geoCoord'), function (geoCoord, name) {
    +        geo.addGeoCoord(name, geoCoord);
    +    });
    +}
    +
    +if (__DEV__) {
    +    var mapNotExistsError = function (name) {
    +        console.error('Map ' + name + ' not exists. You can download map file on http://echarts.baidu.com/download-map.html');
    +    };
    +}
    +
    +var geoCreator = {
    +
    +    // For deciding which dimensions to use when creating list data
    +    dimensions: Geo.prototype.dimensions,
    +
    +    create: function (ecModel, api) {
    +        var geoList = [];
    +
    +        // FIXME Create each time may be slow
    +        ecModel.eachComponent('geo', function (geoModel, idx) {
    +            var name = geoModel.get('map');
    +            var mapData = getMap(name);
    +            if (__DEV__) {
    +                if (!mapData) {
    +                    mapNotExistsError(name);
    +                }
    +            }
    +            var geo = new Geo(
    +                name + idx, name,
    +                mapData && mapData.geoJson, mapData && mapData.specialAreas,
    +                geoModel.get('nameMap')
    +            );
    +            geo.zoomLimit = geoModel.get('scaleLimit');
    +            geoList.push(geo);
    +
    +            setGeoCoords(geo, geoModel);
    +
    +            geoModel.coordinateSystem = geo;
    +            geo.model = geoModel;
    +
    +            // Inject resize method
    +            geo.resize = resizeGeo;
    +
    +            geo.resize(geoModel, api);
    +        });
    +
    +        ecModel.eachSeries(function (seriesModel) {
    +            var coordSys = seriesModel.get('coordinateSystem');
    +            if (coordSys === 'geo') {
    +                var geoIndex = seriesModel.get('geoIndex') || 0;
    +                seriesModel.coordinateSystem = geoList[geoIndex];
    +            }
    +        });
    +
    +        // If has map series
    +        var mapModelGroupBySeries = {};
    +
    +        ecModel.eachSeriesByType('map', function (seriesModel) {
    +            if (!seriesModel.getHostGeoModel()) {
    +                var mapType = seriesModel.getMapType();
    +                mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];
    +                mapModelGroupBySeries[mapType].push(seriesModel);
    +            }
    +        });
    +
    +        each$1(mapModelGroupBySeries, function (mapSeries, mapType) {
    +            var mapData = getMap(mapType);
    +            if (__DEV__) {
    +                if (!mapData) {
    +                    mapNotExistsError(mapSeries[0].get('map'));
    +                }
    +            }
    +
    +            var nameMapList = map(mapSeries, function (singleMapSeries) {
    +                return singleMapSeries.get('nameMap');
    +            });
    +            var geo = new Geo(
    +                mapType, mapType,
    +                mapData && mapData.geoJson, mapData && mapData.specialAreas,
    +                mergeAll(nameMapList)
    +            );
    +            geo.zoomLimit = retrieve.apply(null, map(mapSeries, function (singleMapSeries) {
    +                return singleMapSeries.get('scaleLimit');
    +            }));
    +            geoList.push(geo);
    +
    +            // Inject resize method
    +            geo.resize = resizeGeo;
    +
    +            geo.resize(mapSeries[0], api);
    +
    +            each$1(mapSeries, function (singleMapSeries) {
    +                singleMapSeries.coordinateSystem = geo;
    +
    +                setGeoCoords(geo, singleMapSeries);
    +            });
    +        });
    +
    +        return geoList;
    +    },
    +
    +    /**
    +     * Fill given regions array
    +     * @param  {Array.<Object>} originRegionArr
    +     * @param  {string} mapName
    +     * @param  {Object} [nameMap]
    +     * @return {Array}
    +     */
    +    getFilledRegions: function (originRegionArr, mapName, nameMap) {
    +        // Not use the original
    +        var regionsArr = (originRegionArr || []).slice();
    +        nameMap = nameMap || {};
    +
    +        var map$$1 = getMap(mapName);
    +        var geoJson = map$$1 && map$$1.geoJson;
    +        if (!geoJson) {
    +            if (__DEV__) {
    +                mapNotExistsError(mapName);
    +            }
    +            return originRegionArr;
    +        }
    +
    +        var dataNameMap = createHashMap();
    +        var features = geoJson.features;
    +        for (var i = 0; i < regionsArr.length; i++) {
    +            dataNameMap.set(regionsArr[i].name, regionsArr[i]);
    +        }
    +
    +        for (var i = 0; i < features.length; i++) {
    +            var name = features[i].properties.name;
    +            if (!dataNameMap.get(name)) {
    +                if (nameMap.hasOwnProperty(name)) {
    +                    name = nameMap[name];
    +                }
    +                regionsArr.push({
    +                    name: name
    +                });
    +            }
    +        }
    +        return regionsArr;
    +    }
    +};
    +
    +registerCoordinateSystem('geo', geoCreator);
    +
    +var MapSeries = SeriesModel.extend({
    +
    +    type: 'series.map',
    +
    +    dependencies: ['geo'],
    +
    +    layoutMode: 'box',
    +
    +    /**
    +     * Only first map series of same mapType will drawMap
    +     * @type {boolean}
    +     */
    +    needsDrawMap: false,
    +
    +    /**
    +     * Group of all map series with same mapType
    +     * @type {boolean}
    +     */
    +    seriesGroup: [],
    +
    +    init: function (option) {
    +
    +        this._fillOption(option, this.getMapType());
    +        // this.option = option;
    +
    +        MapSeries.superApply(this, 'init', arguments);
    +
    +        this.updateSelectedMap(option.data);
    +    },
    +
    +    getInitialData: function (option) {
    +        var dimensions = completeDimensions(['value'], option.data || []);
    +
    +        var list = new List(dimensions, this);
    +
    +        list.initData(option.data);
    +
    +        return list;
    +    },
    +
    +    mergeOption: function (newOption) {
    +        this._fillOption(newOption, this.getMapType());
    +
    +        MapSeries.superApply(this, 'mergeOption', arguments);
    +
    +        this.updateSelectedMap(this.option.data);
    +    },
    +
    +    /**
    +     * If no host geo model, return null, which means using a
    +     * inner exclusive geo model.
    +     */
    +    getHostGeoModel: function () {
    +        var geoIndex = this.option.geoIndex;
    +        return geoIndex != null
    +            ? this.dependentModels.geo[geoIndex]
    +            : null;
    +    },
    +
    +    getMapType: function () {
    +        return (this.getHostGeoModel() || this).option.map;
    +    },
    +
    +    _fillOption: function (option, mapName) {
    +        // Shallow clone
    +        // option = zrUtil.extend({}, option);
    +
    +        option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);
    +
    +        // return option;
    +    },
    +
    +    getRawValue: function (dataIndex) {
    +        // Use value stored in data instead because it is calculated from multiple series
    +        // FIXME Provide all value of multiple series ?
    +        return this.getData().get('value', dataIndex);
    +    },
    +
    +    /**
    +     * Get model of region
    +     * @param  {string} name
    +     * @return {module:echarts/model/Model}
    +     */
    +    getRegionModel: function (regionName) {
    +        var data = this.getData();
    +        return data.getItemModel(data.indexOfName(regionName));
    +    },
    +
    +    /**
    +     * Map tooltip formatter
    +     *
    +     * @param {number} dataIndex
    +     */
    +    formatTooltip: function (dataIndex) {
    +        // FIXME orignalData and data is a bit confusing
    +        var data = this.getData();
    +        var formattedValue = addCommas(this.getRawValue(dataIndex));
    +        var name = data.getName(dataIndex);
    +
    +        var seriesGroup = this.seriesGroup;
    +        var seriesNames = [];
    +        for (var i = 0; i < seriesGroup.length; i++) {
    +            var otherIndex = seriesGroup[i].originalData.indexOfName(name);
    +            if (!isNaN(seriesGroup[i].originalData.get('value', otherIndex))) {
    +                seriesNames.push(
    +                    encodeHTML(seriesGroup[i].name)
    +                );
    +            }
    +        }
    +
    +        return seriesNames.join(', ') + '<br />'
    +            + encodeHTML(name + ' : ' + formattedValue);
    +    },
    +
    +    /**
    +     * @implement
    +     */
    +    getTooltipPosition: function (dataIndex) {
    +        if (dataIndex != null) {
    +            var name = this.getData().getName(dataIndex);
    +            var geo = this.coordinateSystem;
    +            var region = geo.getRegion(name);
    +
    +            return region && geo.dataToPoint(region.center);
    +        }
    +    },
    +
    +    setZoom: function (zoom) {
    +        this.option.zoom = zoom;
    +    },
    +
    +    setCenter: function (center) {
    +        this.option.center = center;
    +    },
    +
    +    defaultOption: {
    +        // 一级层叠
    +        zlevel: 0,
    +        // 二级层叠
    +        z: 2,
    +
    +        coordinateSystem: 'geo',
    +
    +        // map should be explicitly specified since ec3.
    +        map: '',
    +
    +        // If `geoIndex` is not specified, a exclusive geo will be
    +        // created. Otherwise use the specified geo component, and
    +        // `map` and `mapType` are ignored.
    +        // geoIndex: 0,
    +
    +        // 'center' | 'left' | 'right' | 'x%' | {number}
    +        left: 'center',
    +        // 'center' | 'top' | 'bottom' | 'x%' | {number}
    +        top: 'center',
    +        // right
    +        // bottom
    +        // width:
    +        // height
    +
    +        // Aspect is width / height. Inited to be geoJson bbox aspect
    +        // This parameter is used for scale this aspect
    +        aspectScale: 0.75,
    +
    +        ///// Layout with center and size
    +        // If you wan't to put map in a fixed size box with right aspect ratio
    +        // This two properties may more conveninet
    +        // layoutCenter: [50%, 50%]
    +        // layoutSize: 100
    +
    +
    +        // 数值合并方式,默认加和,可选为:
    +        // 'sum' | 'average' | 'max' | 'min'
    +        // mapValueCalculation: 'sum',
    +        // 地图数值计算结果小数精度
    +        // mapValuePrecision: 0,
    +
    +
    +        // 显示图例颜色标识(系列标识的小圆点),图例开启时有效
    +        showLegendSymbol: true,
    +        // 选择模式,默认关闭,可选single,multiple
    +        // selectedMode: false,
    +        dataRangeHoverLink: true,
    +        // 是否开启缩放及漫游模式
    +        // roam: false,
    +
    +        // Define left-top, right-bottom coords to control view
    +        // For example, [ [180, 90], [-180, -90] ],
    +        // higher priority than center and zoom
    +        boundingCoords: null,
    +
    +        // Default on center of map
    +        center: null,
    +
    +        zoom: 1,
    +
    +        scaleLimit: null,
    +
    +        label: {
    +            normal: {
    +                show: false,
    +                color: '#000'
    +            },
    +            emphasis: {
    +                show: true,
    +                color: 'rgb(100,0,0)'
    +            }
    +        },
    +        // scaleLimit: null,
    +        itemStyle: {
    +            normal: {
    +                // color: 各异,
    +                borderWidth: 0.5,
    +                borderColor: '#444',
    +                areaColor: '#eee'
    +            },
    +            // 也是选中样式
    +            emphasis: {
    +                areaColor: 'rgba(255,215,0,0.8)'
    +            }
    +        }
    +    }
    +
    +});
    +
    +mixin(MapSeries, selectableMixin);
    +
    +var ATTR = '\0_ec_interaction_mutex';
    +
    +function take(zr, resourceKey, userKey) {
    +    var store = getStore(zr);
    +    store[resourceKey] = userKey;
    +}
    +
    +function release(zr, resourceKey, userKey) {
    +    var store = getStore(zr);
    +    var uKey = store[resourceKey];
    +
    +    if (uKey === userKey) {
    +        store[resourceKey] = null;
    +    }
    +}
    +
    +function isTaken(zr, resourceKey) {
    +    return !!getStore(zr)[resourceKey];
    +}
    +
    +function getStore(zr) {
    +    return zr[ATTR] || (zr[ATTR] = {});
    +}
    +
    +/**
    + * payload: {
    + *     type: 'takeGlobalCursor',
    + *     key: 'dataZoomSelect', or 'brush', or ...,
    + *         If no userKey, release global cursor.
    + * }
    + */
    +registerAction(
    +    {type: 'takeGlobalCursor', event: 'globalCursorTaken', update: 'update'},
    +    function () {}
    +);
    +
    +/**
    + * @alias module:echarts/component/helper/RoamController
    + * @constructor
    + * @mixin {module:zrender/mixin/Eventful}
    + *
    + * @param {module:zrender/zrender~ZRender} zr
    + */
    +function RoamController(zr) {
    +
    +    /**
    +     * @type {Function}
    +     */
    +    this.pointerChecker;
    +
    +    /**
    +     * @type {module:zrender}
    +     */
    +    this._zr = zr;
    +
    +    /**
    +     * @type {Object}
    +     */
    +    this._opt = {};
    +
    +    // Avoid two roamController bind the same handler
    +    var bind$$1 = bind;
    +    var mousedownHandler = bind$$1(mousedown, this);
    +    var mousemoveHandler = bind$$1(mousemove, this);
    +    var mouseupHandler = bind$$1(mouseup, this);
    +    var mousewheelHandler = bind$$1(mousewheel, this);
    +    var pinchHandler = bind$$1(pinch, this);
    +
    +    Eventful.call(this);
    +
    +    /**
    +     * @param {Function} pointerChecker
    +     *                   input: x, y
    +     *                   output: boolean
    +     */
    +    this.setPointerChecker = function (pointerChecker) {
    +        this.pointerChecker = pointerChecker;
    +    };
    +
    +    /**
    +     * Notice: only enable needed types. For example, if 'zoom'
    +     * is not needed, 'zoom' should not be enabled, otherwise
    +     * default mousewheel behaviour (scroll page) will be disabled.
    +     *
    +     * @param  {boolean|string} [controlType=true] Specify the control type,
    +     *                          which can be null/undefined or true/false
    +     *                          or 'pan/move' or 'zoom'/'scale'
    +     * @param {Object} [opt]
    +     * @param {Object} [opt.zoomOnMouseWheel=true]
    +     * @param {Object} [opt.moveOnMouseMove=true]
    +     * @param {Object} [opt.preventDefaultMouseMove=true] When pan.
    +     */
    +    this.enable = function (controlType, opt) {
    +
    +        // Disable previous first
    +        this.disable();
    +
    +        this._opt = defaults(clone(opt) || {}, {
    +            zoomOnMouseWheel: true,
    +            moveOnMouseMove: true,
    +            preventDefaultMouseMove: true
    +        });
    +
    +        if (controlType == null) {
    +            controlType = true;
    +        }
    +
    +        if (controlType === true || (controlType === 'move' || controlType === 'pan')) {
    +            zr.on('mousedown', mousedownHandler);
    +            zr.on('mousemove', mousemoveHandler);
    +            zr.on('mouseup', mouseupHandler);
    +        }
    +        if (controlType === true || (controlType === 'scale' || controlType === 'zoom')) {
    +            zr.on('mousewheel', mousewheelHandler);
    +            zr.on('pinch', pinchHandler);
    +        }
    +    };
    +
    +    this.disable = function () {
    +        zr.off('mousedown', mousedownHandler);
    +        zr.off('mousemove', mousemoveHandler);
    +        zr.off('mouseup', mouseupHandler);
    +        zr.off('mousewheel', mousewheelHandler);
    +        zr.off('pinch', pinchHandler);
    +    };
    +
    +    this.dispose = this.disable;
    +
    +    this.isDragging = function () {
    +        return this._dragging;
    +    };
    +
    +    this.isPinching = function () {
    +        return this._pinching;
    +    };
    +}
    +
    +mixin(RoamController, Eventful);
    +
    +
    +function mousedown(e) {
    +    if (notLeftMouse(e)
    +        || (e.target && e.target.draggable)
    +    ) {
    +        return;
    +    }
    +
    +    var x = e.offsetX;
    +    var y = e.offsetY;
    +
    +    // Only check on mosedown, but not mousemove.
    +    // Mouse can be out of target when mouse moving.
    +    if (this.pointerChecker && this.pointerChecker(e, x, y)) {
    +        this._x = x;
    +        this._y = y;
    +        this._dragging = true;
    +    }
    +}
    +
    +function mousemove(e) {
    +    if (notLeftMouse(e)
    +        || !checkKeyBinding(this, 'moveOnMouseMove', e)
    +        || !this._dragging
    +        || e.gestureEvent === 'pinch'
    +        || isTaken(this._zr, 'globalPan')
    +    ) {
    +        return;
    +    }
    +
    +    var x = e.offsetX;
    +    var y = e.offsetY;
    +
    +    var oldX = this._x;
    +    var oldY = this._y;
    +
    +    var dx = x - oldX;
    +    var dy = y - oldY;
    +
    +    this._x = x;
    +    this._y = y;
    +
    +    this._opt.preventDefaultMouseMove && stop(e.event);
    +
    +    this.trigger('pan', dx, dy, oldX, oldY, x, y);
    +}
    +
    +function mouseup(e) {
    +    if (!notLeftMouse(e)) {
    +        this._dragging = false;
    +    }
    +}
    +
    +function mousewheel(e) {
    +    // wheelDelta maybe -0 in chrome mac.
    +    if (!checkKeyBinding(this, 'zoomOnMouseWheel', e) || e.wheelDelta === 0) {
    +        return;
    +    }
    +
    +    // Convenience:
    +    // Mac and VM Windows on Mac: scroll up: zoom out.
    +    // Windows: scroll up: zoom in.
    +    var zoomDelta = e.wheelDelta > 0 ? 1.1 : 1 / 1.1;
    +    zoom.call(this, e, zoomDelta, e.offsetX, e.offsetY);
    +}
    +
    +function pinch(e) {
    +    if (isTaken(this._zr, 'globalPan')) {
    +        return;
    +    }
    +    var zoomDelta = e.pinchScale > 1 ? 1.1 : 1 / 1.1;
    +    zoom.call(this, e, zoomDelta, e.pinchX, e.pinchY);
    +}
    +
    +function zoom(e, zoomDelta, zoomX, zoomY) {
    +    if (this.pointerChecker && this.pointerChecker(e, zoomX, zoomY)) {
    +        // When mouse is out of roamController rect,
    +        // default befavoius should not be be disabled, otherwise
    +        // page sliding is disabled, contrary to expectation.
    +        stop(e.event);
    +
    +        this.trigger('zoom', zoomDelta, zoomX, zoomY);
    +    }
    +}
    +
    +function checkKeyBinding(roamController, prop, e) {
    +    var setting = roamController._opt[prop];
    +    return setting
    +        && (!isString(setting) || e.event[setting + 'Key']);
    +}
    +
    +/**
    + * For geo and graph.
    + *
    + * @param {Object} controllerHost
    + * @param {module:zrender/Element} controllerHost.target
    + */
    +function updateViewOnPan(controllerHost, dx, dy) {
    +    var target = controllerHost.target;
    +    var pos = target.position;
    +    pos[0] += dx;
    +    pos[1] += dy;
    +    target.dirty();
    +}
    +
    +/**
    + * For geo and graph.
    + *
    + * @param {Object} controllerHost
    + * @param {module:zrender/Element} controllerHost.target
    + * @param {number} controllerHost.zoom
    + * @param {number} controllerHost.zoomLimit like: {min: 1, max: 2}
    + */
    +function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) {
    +    var target = controllerHost.target;
    +    var zoomLimit = controllerHost.zoomLimit;
    +    var pos = target.position;
    +    var scale = target.scale;
    +
    +    var newZoom = controllerHost.zoom = controllerHost.zoom || 1;
    +    newZoom *= zoomDelta;
    +    if (zoomLimit) {
    +        var zoomMin = zoomLimit.min || 0;
    +        var zoomMax = zoomLimit.max || Infinity;
    +        newZoom = Math.max(
    +            Math.min(zoomMax, newZoom),
    +            zoomMin
    +        );
    +    }
    +    var zoomScale = newZoom / controllerHost.zoom;
    +    controllerHost.zoom = newZoom;
    +    // Keep the mouse center when scaling
    +    pos[0] -= (zoomX - pos[0]) * (zoomScale - 1);
    +    pos[1] -= (zoomY - pos[1]) * (zoomScale - 1);
    +    scale[0] *= zoomScale;
    +    scale[1] *= zoomScale;
    +
    +    target.dirty();
    +}
    +
    +var IRRELEVANT_EXCLUDES = {'axisPointer': 1, 'tooltip': 1, 'brush': 1};
    +
    +/**
    + * Avoid that: mouse click on a elements that is over geo or graph,
    + * but roam is triggered.
    + */
    +function onIrrelevantElement(e, api, targetCoordSysModel) {
    +    var model = api.getComponentByElement(e.topTarget);
    +    // If model is axisModel, it works only if it is injected with coordinateSystem.
    +    var coordSys = model && model.coordinateSystem;
    +    return model
    +        && model !== targetCoordSysModel
    +        && !IRRELEVANT_EXCLUDES[model.mainType]
    +        && (coordSys && coordSys.model !== targetCoordSysModel);
    +}
    +
    +function getFixedItemStyle(model, scale) {
    +    var itemStyle = model.getItemStyle();
    +    var areaColor = model.get('areaColor');
    +
    +    // If user want the color not to be changed when hover,
    +    // they should both set areaColor and color to be null.
    +    if (areaColor != null) {
    +        itemStyle.fill = areaColor;
    +    }
    +
    +    return itemStyle;
    +}
    +
    +function updateMapSelectHandler(mapDraw, mapOrGeoModel, group, api, fromView) {
    +    group.off('click');
    +    group.off('mousedown');
    +
    +    if (mapOrGeoModel.get('selectedMode')) {
    +
    +        group.on('mousedown', function () {
    +            mapDraw._mouseDownFlag = true;
    +        });
    +
    +        group.on('click', function (e) {
    +            if (!mapDraw._mouseDownFlag) {
    +                return;
    +            }
    +            mapDraw._mouseDownFlag = false;
    +
    +            var el = e.target;
    +            while (!el.__regions) {
    +                el = el.parent;
    +            }
    +            if (!el) {
    +                return;
    +            }
    +
    +            var action = {
    +                type: (mapOrGeoModel.mainType === 'geo' ? 'geo' : 'map') + 'ToggleSelect',
    +                batch: map(el.__regions, function (region) {
    +                    return {
    +                        name: region.name,
    +                        from: fromView.uid
    +                    };
    +                })
    +            };
    +            action[mapOrGeoModel.mainType + 'Id'] = mapOrGeoModel.id;
    +
    +            api.dispatchAction(action);
    +
    +            updateMapSelected(mapOrGeoModel, group);
    +        });
    +    }
    +}
    +
    +function updateMapSelected(mapOrGeoModel, group) {
    +    // FIXME
    +    group.eachChild(function (otherRegionEl) {
    +        each$1(otherRegionEl.__regions, function (region) {
    +            otherRegionEl.trigger(mapOrGeoModel.isSelected(region.name) ? 'emphasis' : 'normal');
    +        });
    +    });
    +}
    +
    +/**
    + * @alias module:echarts/component/helper/MapDraw
    + * @param {module:echarts/ExtensionAPI} api
    + * @param {boolean} updateGroup
    + */
    +function MapDraw(api, updateGroup) {
    +
    +    var group = new Group();
    +
    +    /**
    +     * @type {module:echarts/component/helper/RoamController}
    +     * @private
    +     */
    +    this._controller = new RoamController(api.getZr());
    +
    +    /**
    +     * @type {Object} {target, zoom, zoomLimit}
    +     * @private
    +     */
    +    this._controllerHost = {target: updateGroup ? group : null};
    +
    +    /**
    +     * @type {module:zrender/container/Group}
    +     * @readOnly
    +     */
    +    this.group = group;
    +
    +    /**
    +     * @type {boolean}
    +     * @private
    +     */
    +    this._updateGroup = updateGroup;
    +
    +    /**
    +     * This flag is used to make sure that only one among
    +     * `pan`, `zoom`, `click` can occurs, otherwise 'selected'
    +     * action may be triggered when `pan`, which is unexpected.
    +     * @type {booelan}
    +     */
    +    this._mouseDownFlag;
    +}
    +
    +MapDraw.prototype = {
    +
    +    constructor: MapDraw,
    +
    +    draw: function (mapOrGeoModel, ecModel, api, fromView, payload) {
    +
    +        var isGeo = mapOrGeoModel.mainType === 'geo';
    +
    +        // Map series has data. GEO model that controlled by map series
    +        // will be assigned with map data. Other GEO model has no data.
    +        var data = mapOrGeoModel.getData && mapOrGeoModel.getData();
    +        isGeo && ecModel.eachComponent({mainType: 'series', subType: 'map'}, function (mapSeries) {
    +            if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) {
    +                data = mapSeries.getData();
    +            }
    +        });
    +
    +        var geo = mapOrGeoModel.coordinateSystem;
    +
    +        var group = this.group;
    +
    +        var scale = geo.scale;
    +        var groupNewProp = {
    +            position: geo.position,
    +            scale: scale
    +        };
    +
    +        // No animation when first draw or in action
    +        if (!group.childAt(0) || payload) {
    +            group.attr(groupNewProp);
    +        }
    +        else {
    +            updateProps(group, groupNewProp, mapOrGeoModel);
    +        }
    +
    +        group.removeAll();
    +
    +        var itemStyleAccessPath = ['itemStyle', 'normal'];
    +        var hoverItemStyleAccessPath = ['itemStyle', 'emphasis'];
    +        var labelAccessPath = ['label', 'normal'];
    +        var hoverLabelAccessPath = ['label', 'emphasis'];
    +        var nameMap = createHashMap();
    +
    +        each$1(geo.regions, function (region) {
    +
    +            // Consider in GeoJson properties.name may be duplicated, for example,
    +            // there is multiple region named "United Kindom" or "France" (so many
    +            // colonies). And it is not appropriate to merge them in geo, which
    +            // will make them share the same label and bring trouble in label
    +            // location calculation.
    +            var regionGroup = nameMap.get(region.name)
    +                || nameMap.set(region.name, new Group());
    +
    +            var compoundPath = new CompoundPath({
    +                shape: {
    +                    paths: []
    +                }
    +            });
    +            regionGroup.add(compoundPath);
    +
    +            var regionModel = mapOrGeoModel.getRegionModel(region.name) || mapOrGeoModel;
    +
    +            var itemStyleModel = regionModel.getModel(itemStyleAccessPath);
    +            var hoverItemStyleModel = regionModel.getModel(hoverItemStyleAccessPath);
    +            var itemStyle = getFixedItemStyle(itemStyleModel, scale);
    +            var hoverItemStyle = getFixedItemStyle(hoverItemStyleModel, scale);
    +
    +            var labelModel = regionModel.getModel(labelAccessPath);
    +            var hoverLabelModel = regionModel.getModel(hoverLabelAccessPath);
    +
    +            var dataIdx;
    +            // Use the itemStyle in data if has data
    +            if (data) {
    +                dataIdx = data.indexOfName(region.name);
    +                // Only visual color of each item will be used. It can be encoded by dataRange
    +                // But visual color of series is used in symbol drawing
    +                //
    +                // Visual color for each series is for the symbol draw
    +                var visualColor = data.getItemVisual(dataIdx, 'color', true);
    +                if (visualColor) {
    +                    itemStyle.fill = visualColor;
    +                }
    +            }
    +
    +            each$1(region.geometries, function (geometry) {
    +                if (geometry.type !== 'polygon') {
    +                    return;
    +                }
    +                compoundPath.shape.paths.push(new Polygon({
    +                    shape: {
    +                        points: geometry.exterior
    +                    }
    +                }));
    +
    +                for (var i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); i++) {
    +                    compoundPath.shape.paths.push(new Polygon({
    +                        shape: {
    +                            points: geometry.interiors[i]
    +                        }
    +                    }));
    +                }
    +            });
    +
    +            compoundPath.setStyle(itemStyle);
    +            compoundPath.style.strokeNoScale = true;
    +            compoundPath.culling = true;
    +            // Label
    +            var showLabel = labelModel.get('show');
    +            var hoverShowLabel = hoverLabelModel.get('show');
    +
    +            var isDataNaN = data && isNaN(data.get('value', dataIdx));
    +            var itemLayout = data && data.getItemLayout(dataIdx);
    +            // In the following cases label will be drawn
    +            // 1. In map series and data value is NaN
    +            // 2. In geo component
    +            // 4. Region has no series legendSymbol, which will be add a showLabel flag in mapSymbolLayout
    +            if (
    +                (isGeo || isDataNaN && (showLabel || hoverShowLabel))
    +                || (itemLayout && itemLayout.showLabel)
    +                ) {
    +                var query = !isGeo ? dataIdx : region.name;
    +                var labelFetcher;
    +
    +                // Consider dataIdx not found.
    +                if (!data || dataIdx >= 0) {
    +                    labelFetcher = mapOrGeoModel;
    +                }
    +
    +                var textEl = new Text({
    +                    position: region.center.slice(),
    +                    scale: [1 / scale[0], 1 / scale[1]],
    +                    z2: 10,
    +                    silent: true
    +                });
    +
    +                setLabelStyle(
    +                    textEl.style, textEl.hoverStyle = {}, labelModel, hoverLabelModel,
    +                    {
    +                        labelFetcher: labelFetcher,
    +                        labelDataIndex: query,
    +                        defaultText: region.name,
    +                        useInsideStyle: false
    +                    },
    +                    {
    +                        textAlign: 'center',
    +                        textVerticalAlign: 'middle'
    +                    }
    +                );
    +
    +                regionGroup.add(textEl);
    +            }
    +
    +            // setItemGraphicEl, setHoverStyle after all polygons and labels
    +            // are added to the rigionGroup
    +            if (data) {
    +                data.setItemGraphicEl(dataIdx, regionGroup);
    +            }
    +            else {
    +                var regionModel = mapOrGeoModel.getRegionModel(region.name);
    +                // Package custom mouse event for geo component
    +                compoundPath.eventData = {
    +                    componentType: 'geo',
    +                    geoIndex: mapOrGeoModel.componentIndex,
    +                    name: region.name,
    +                    region: (regionModel && regionModel.option) || {}
    +                };
    +            }
    +
    +            var groupRegions = regionGroup.__regions || (regionGroup.__regions = []);
    +            groupRegions.push(region);
    +
    +            setHoverStyle(
    +                regionGroup,
    +                hoverItemStyle,
    +                {hoverSilentOnTouch: !!mapOrGeoModel.get('selectedMode')}
    +            );
    +
    +            group.add(regionGroup);
    +        });
    +
    +        this._updateController(mapOrGeoModel, ecModel, api);
    +
    +        updateMapSelectHandler(this, mapOrGeoModel, group, api, fromView);
    +
    +        updateMapSelected(mapOrGeoModel, group);
    +    },
    +
    +    remove: function () {
    +        this.group.removeAll();
    +        this._controller.dispose();
    +        this._controllerHost = {};
    +    },
    +
    +    _updateController: function (mapOrGeoModel, ecModel, api) {
    +        var geo = mapOrGeoModel.coordinateSystem;
    +        var controller = this._controller;
    +        var controllerHost = this._controllerHost;
    +
    +        controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit');
    +        controllerHost.zoom = geo.getZoom();
    +
    +        // roamType is will be set default true if it is null
    +        controller.enable(mapOrGeoModel.get('roam') || false);
    +        var mainType = mapOrGeoModel.mainType;
    +
    +        function makeActionBase() {
    +            var action = {
    +                type: 'geoRoam',
    +                componentType: mainType
    +            };
    +            action[mainType + 'Id'] = mapOrGeoModel.id;
    +            return action;
    +        }
    +
    +        controller.off('pan').on('pan', function (dx, dy) {
    +            this._mouseDownFlag = false;
    +
    +            updateViewOnPan(controllerHost, dx, dy);
    +
    +            api.dispatchAction(extend(makeActionBase(), {
    +                dx: dx,
    +                dy: dy
    +            }));
    +        }, this);
    +
    +        controller.off('zoom').on('zoom', function (zoom, mouseX, mouseY) {
    +            this._mouseDownFlag = false;
    +
    +            updateViewOnZoom(controllerHost, zoom, mouseX, mouseY);
    +
    +            api.dispatchAction(extend(makeActionBase(), {
    +                zoom: zoom,
    +                originX: mouseX,
    +                originY: mouseY
    +            }));
    +
    +            if (this._updateGroup) {
    +                var group = this.group;
    +                var scale = group.scale;
    +                group.traverse(function (el) {
    +                    if (el.type === 'text') {
    +                        el.attr('scale', [1 / scale[0], 1 / scale[1]]);
    +                    }
    +                });
    +            }
    +        }, this);
    +
    +        controller.setPointerChecker(function (e, x, y) {
    +            return geo.getViewRectAfterRoam().contain(x, y)
    +                && !onIrrelevantElement(e, api, mapOrGeoModel);
    +        });
    +    }
    +};
    +
    +extendChartView({
    +
    +    type: 'map',
    +
    +    render: function (mapModel, ecModel, api, payload) {
    +        // Not render if it is an toggleSelect action from self
    +        if (payload && payload.type === 'mapToggleSelect'
    +            && payload.from === this.uid
    +        ) {
    +            return;
    +        }
    +
    +        var group = this.group;
    +        group.removeAll();
    +
    +        if (mapModel.getHostGeoModel()) {
    +            return;
    +        }
    +
    +        // Not update map if it is an roam action from self
    +        if (!(payload && payload.type === 'geoRoam'
    +                && payload.componentType === 'series'
    +                && payload.seriesId === mapModel.id
    +            )
    +        ) {
    +            if (mapModel.needsDrawMap) {
    +                var mapDraw = this._mapDraw || new MapDraw(api, true);
    +                group.add(mapDraw.group);
    +
    +                mapDraw.draw(mapModel, ecModel, api, this, payload);
    +
    +                this._mapDraw = mapDraw;
    +            }
    +            else {
    +                // Remove drawed map
    +                this._mapDraw && this._mapDraw.remove();
    +                this._mapDraw = null;
    +            }
    +        }
    +        else {
    +            var mapDraw = this._mapDraw;
    +            mapDraw && group.add(mapDraw.group);
    +        }
    +
    +        mapModel.get('showLegendSymbol') && ecModel.getComponent('legend')
    +            && this._renderSymbols(mapModel, ecModel, api);
    +    },
    +
    +    remove: function () {
    +        this._mapDraw && this._mapDraw.remove();
    +        this._mapDraw = null;
    +        this.group.removeAll();
    +    },
    +
    +    dispose: function () {
    +        this._mapDraw && this._mapDraw.remove();
    +        this._mapDraw = null;
    +    },
    +
    +    _renderSymbols: function (mapModel, ecModel, api) {
    +        var originalData = mapModel.originalData;
    +        var group = this.group;
    +
    +        originalData.each('value', function (value, idx) {
    +            if (isNaN(value)) {
    +                return;
    +            }
    +
    +            var layout = originalData.getItemLayout(idx);
    +
    +            if (!layout || !layout.point) {
    +                // Not exists in map
    +                return;
    +            }
    +
    +            var point = layout.point;
    +            var offset = layout.offset;
    +
    +            var circle = new Circle({
    +                style: {
    +                    // Because the special of map draw.
    +                    // Which needs statistic of multiple series and draw on one map.
    +                    // And each series also need a symbol with legend color
    +                    //
    +                    // Layout and visual are put one the different data
    +                    fill: mapModel.getData().getVisual('color')
    +                },
    +                shape: {
    +                    cx: point[0] + offset * 9,
    +                    cy: point[1],
    +                    r: 3
    +                },
    +                silent: true,
    +                // Do not overlap the first series, on which labels are displayed.
    +                z2: !offset ? 10 : 8
    +            });
    +
    +            // First data on the same region
    +            if (!offset) {
    +                var fullData = mapModel.mainSeries.getData();
    +                var name = originalData.getName(idx);
    +
    +                var fullIndex = fullData.indexOfName(name);
    +
    +                var itemModel = originalData.getItemModel(idx);
    +                var labelModel = itemModel.getModel('label.normal');
    +                var hoverLabelModel = itemModel.getModel('label.emphasis');
    +
    +                var polygonGroups = fullData.getItemGraphicEl(fullIndex);
    +
    +                var normalText = retrieve2(
    +                    mapModel.getFormattedLabel(idx, 'normal'),
    +                    name
    +                );
    +                var emphasisText = retrieve2(
    +                    mapModel.getFormattedLabel(idx, 'emphasis'),
    +                    normalText
    +                );
    +
    +                var onEmphasis = function () {
    +                    var hoverStyle = setTextStyle({}, hoverLabelModel, {
    +                        text: hoverLabelModel.get('show') ? emphasisText : null
    +                    }, {isRectText: true, useInsideStyle: false}, true);
    +                    circle.style.extendFrom(hoverStyle);
    +                    // Make label upper than others if overlaps.
    +                    circle.__mapOriginalZ2 = circle.z2;
    +                    circle.z2 += 1;
    +                };
    +
    +                var onNormal = function () {
    +                    setTextStyle(circle.style, labelModel, {
    +                        text: labelModel.get('show') ? normalText : null,
    +                        textPosition: labelModel.getShallow('position') || 'bottom'
    +                    }, {isRectText: true, useInsideStyle: false});
    +
    +                    if (circle.__mapOriginalZ2 != null) {
    +                        circle.z2 = circle.__mapOriginalZ2;
    +                        circle.__mapOriginalZ2 = null;
    +                    }
    +                };
    +
    +                polygonGroups.on('mouseover', onEmphasis)
    +                    .on('mouseout', onNormal)
    +                    .on('emphasis', onEmphasis)
    +                    .on('normal', onNormal);
    +
    +                onNormal();
    +            }
    +
    +            group.add(circle);
    +        });
    +    }
    +});
    +
    +/**
    + * @param {module:echarts/coord/View} view
    + * @param {Object} payload
    + * @param {Object} [zoomLimit]
    + */
    +function updateCenterAndZoom(
    +    view, payload, zoomLimit
    +) {
    +    var previousZoom = view.getZoom();
    +    var center = view.getCenter();
    +    var zoom = payload.zoom;
    +
    +    var point = view.dataToPoint(center);
    +
    +    if (payload.dx != null && payload.dy != null) {
    +        point[0] -= payload.dx;
    +        point[1] -= payload.dy;
    +
    +        var center = view.pointToData(point);
    +        view.setCenter(center);
    +    }
    +    if (zoom != null) {
    +        if (zoomLimit) {
    +            var zoomMin = zoomLimit.min || 0;
    +            var zoomMax = zoomLimit.max || Infinity;
    +            zoom = Math.max(
    +                Math.min(previousZoom * zoom, zoomMax),
    +                zoomMin
    +            ) / previousZoom;
    +        }
    +
    +        // Zoom on given point(originX, originY)
    +        view.scale[0] *= zoom;
    +        view.scale[1] *= zoom;
    +        var position = view.position;
    +        var fixX = (payload.originX - position[0]) * (zoom - 1);
    +        var fixY = (payload.originY - position[1]) * (zoom - 1);
    +
    +        position[0] -= fixX;
    +        position[1] -= fixY;
    +
    +        view.updateTransform();
    +        // Get the new center
    +        var center = view.pointToData(point);
    +        view.setCenter(center);
    +        view.setZoom(zoom * previousZoom);
    +    }
    +
    +    return {
    +        center: view.getCenter(),
    +        zoom: view.getZoom()
    +    };
    +}
    +
    +/**
    + * @payload
    + * @property {string} [componentType=series]
    + * @property {number} [dx]
    + * @property {number} [dy]
    + * @property {number} [zoom]
    + * @property {number} [originX]
    + * @property {number} [originY]
    + */
    +registerAction({
    +    type: 'geoRoam',
    +    event: 'geoRoam',
    +    update: 'updateLayout'
    +}, function (payload, ecModel) {
    +    var componentType = payload.componentType || 'series';
    +
    +    ecModel.eachComponent(
    +        { mainType: componentType, query: payload },
    +        function (componentModel) {
    +            var geo = componentModel.coordinateSystem;
    +            if (geo.type !== 'geo') {
    +                return;
    +            }
    +
    +            var res = updateCenterAndZoom(
    +                geo, payload, componentModel.get('scaleLimit')
    +            );
    +
    +            componentModel.setCenter
    +                && componentModel.setCenter(res.center);
    +
    +            componentModel.setZoom
    +                && componentModel.setZoom(res.zoom);
    +
    +            // All map series with same `map` use the same geo coordinate system
    +            // So the center and zoom must be in sync. Include the series not selected by legend
    +            if (componentType === 'series') {
    +                each$1(componentModel.seriesGroup, function (seriesModel) {
    +                    seriesModel.setCenter(res.center);
    +                    seriesModel.setZoom(res.zoom);
    +                });
    +            }
    +        }
    +    );
    +});
    +
    +var mapSymbolLayout = function (ecModel) {
    +
    +    var processedMapType = {};
    +
    +    ecModel.eachSeriesByType('map', function (mapSeries) {
    +        var mapType = mapSeries.getMapType();
    +        if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {
    +            return;
    +        }
    +
    +        var mapSymbolOffsets = {};
    +
    +        each$1(mapSeries.seriesGroup, function (subMapSeries) {
    +            var geo = subMapSeries.coordinateSystem;
    +            var data = subMapSeries.originalData;
    +            if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {
    +                data.each('value', function (value, idx) {
    +                    var name = data.getName(idx);
    +                    var region = geo.getRegion(name);
    +
    +                    // If input series.data is [11, 22, '-'/null/undefined, 44],
    +                    // it will be filled with NaN: [11, 22, NaN, 44] and NaN will
    +                    // not be drawn. So here must validate if value is NaN.
    +                    if (!region || isNaN(value)) {
    +                        return;
    +                    }
    +
    +                    var offset = mapSymbolOffsets[name] || 0;
    +
    +                    var point = geo.dataToPoint(region.center);
    +
    +                    mapSymbolOffsets[name] = offset + 1;
    +
    +                    data.setItemLayout(idx, {
    +                        point: point,
    +                        offset: offset
    +                    });
    +                });
    +            }
    +        });
    +
    +        // Show label of those region not has legendSymbol(which is offset 0)
    +        var data = mapSeries.getData();
    +        data.each(function (idx) {
    +            var name = data.getName(idx);
    +            var layout = data.getItemLayout(idx) || {};
    +            layout.showLabel = !mapSymbolOffsets[name];
    +            data.setItemLayout(idx, layout);
    +        });
    +
    +        processedMapType[mapType] = true;
    +    });
    +};
    +
    +var mapVisual = function (ecModel) {
    +    ecModel.eachSeriesByType('map', function (seriesModel) {
    +        var colorList = seriesModel.get('color');
    +        var itemStyleModel = seriesModel.getModel('itemStyle.normal');
    +
    +        var areaColor = itemStyleModel.get('areaColor');
    +        var color = itemStyleModel.get('color')
    +            || colorList[seriesModel.seriesIndex % colorList.length];
    +
    +        seriesModel.getData().setVisual({
    +            'areaColor': areaColor,
    +            'color': color
    +        });
    +    });
    +};
    +
    +// FIXME 公用?
    +/**
    + * @param {Array.<module:echarts/data/List>} datas
    + * @param {string} statisticType 'average' 'sum'
    + * @inner
    + */
    +function dataStatistics(datas, statisticType) {
    +    var dataNameMap = {};
    +    var dims = ['value'];
    +
    +    each$1(datas, function (data) {
    +        data.each(dims, function (value, idx) {
    +            // Add prefix to avoid conflict with Object.prototype.
    +            var mapKey = 'ec-' + data.getName(idx);
    +            dataNameMap[mapKey] = dataNameMap[mapKey] || [];
    +            if (!isNaN(value)) {
    +                dataNameMap[mapKey].push(value);
    +            }
    +        });
    +    });
    +
    +    return datas[0].map(dims, function (value, idx) {
    +        var mapKey = 'ec-' + datas[0].getName(idx);
    +        var sum = 0;
    +        var min = Infinity;
    +        var max = -Infinity;
    +        var len = dataNameMap[mapKey].length;
    +        for (var i = 0; i < len; i++) {
    +            min = Math.min(min, dataNameMap[mapKey][i]);
    +            max = Math.max(max, dataNameMap[mapKey][i]);
    +            sum += dataNameMap[mapKey][i];
    +        }
    +        var result;
    +        if (statisticType === 'min') {
    +            result = min;
    +        }
    +        else if (statisticType === 'max') {
    +            result = max;
    +        }
    +        else if (statisticType === 'average') {
    +            result = sum / len;
    +        }
    +        else {
    +            result = sum;
    +        }
    +        return len === 0 ? NaN : result;
    +    });
    +}
    +
    +var mapDataStatistic = function (ecModel) {
    +    var seriesGroups = {};
    +    ecModel.eachSeriesByType('map', function (seriesModel) {
    +        var hostGeoModel = seriesModel.getHostGeoModel();
    +        var key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();
    +        (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel);
    +    });
    +
    +    each$1(seriesGroups, function (seriesList, key) {
    +        var data = dataStatistics(
    +            map(seriesList, function (seriesModel) {
    +                return seriesModel.getData();
    +            }),
    +            seriesList[0].get('mapValueCalculation')
    +        );
    +
    +        for (var i = 0; i < seriesList.length; i++) {
    +            seriesList[i].originalData = seriesList[i].getData();
    +        }
    +
    +        // FIXME Put where?
    +        for (var i = 0; i < seriesList.length; i++) {
    +            seriesList[i].seriesGroup = seriesList;
    +            seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel();
    +
    +            seriesList[i].setData(data.cloneShallow());
    +            seriesList[i].mainSeries = seriesList[0];
    +        }
    +    });
    +};
    +
    +var backwardCompat$2 = function (option) {
    +    // Save geoCoord
    +    var mapSeries = [];
    +    each$1(option.series, function (seriesOpt) {
    +        if (seriesOpt && seriesOpt.type === 'map') {
    +            mapSeries.push(seriesOpt);
    +            seriesOpt.map = seriesOpt.map || seriesOpt.mapType;
    +            // Put x, y, width, height, x2, y2 in the top level
    +            defaults(seriesOpt, seriesOpt.mapLocation);
    +        }
    +    });
    +};
    +
    +registerLayout(mapSymbolLayout);
    +registerVisual(mapVisual);
    +registerProcessor(PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);
    +registerPreprocessor(backwardCompat$2);
    +
    +createDataSelectAction('map', [{
    +    type: 'mapToggleSelect',
    +    event: 'mapselectchanged',
    +    method: 'toggleSelected'
    +}, {
    +    type: 'mapSelect',
    +    event: 'mapselected',
    +    method: 'select'
    +}, {
    +    type: 'mapUnSelect',
    +    event: 'mapunselected',
    +    method: 'unSelect'
    +}]);
    +
    +/**
    + * Link lists and struct (graph or tree)
    + */
    +
    +var each$10 = each$1;
    +
    +var DATAS = '\0__link_datas';
    +var MAIN_DATA = '\0__link_mainData';
    +
    +// Caution:
    +// In most case, either list or its shallow clones (see list.cloneShallow)
    +// is active in echarts process. So considering heap memory consumption,
    +// we do not clone tree or graph, but share them among list and its shallow clones.
    +// But in some rare case, we have to keep old list (like do animation in chart). So
    +// please take care that both the old list and the new list share the same tree/graph.
    +
    +/**
    + * @param {Object} opt
    + * @param {module:echarts/data/List} opt.mainData
    + * @param {Object} [opt.struct] For example, instance of Graph or Tree.
    + * @param {string} [opt.structAttr] designation: list[structAttr] = struct;
    + * @param {Object} [opt.datas] {dataType: data},
    + *                 like: {node: nodeList, edge: edgeList}.
    + *                 Should contain mainData.
    + * @param {Object} [opt.datasAttr] {dataType: attr},
    + *                 designation: struct[datasAttr[dataType]] = list;
    + */
    +function linkList(opt) {
    +    var mainData = opt.mainData;
    +    var datas = opt.datas;
    +
    +    if (!datas) {
    +        datas = {main: mainData};
    +        opt.datasAttr = {main: 'data'};
    +    }
    +    opt.datas = opt.mainData = null;
    +
    +    linkAll(mainData, datas, opt);
    +
    +    // Porxy data original methods.
    +    each$10(datas, function (data) {
    +        each$10(mainData.TRANSFERABLE_METHODS, function (methodName) {
    +            data.wrapMethod(methodName, curry(transferInjection, opt));
    +        });
    +
    +    });
    +
    +    // Beyond transfer, additional features should be added to `cloneShallow`.
    +    mainData.wrapMethod('cloneShallow', curry(cloneShallowInjection, opt));
    +
    +    // Only mainData trigger change, because struct.update may trigger
    +    // another changable methods, which may bring about dead lock.
    +    each$10(mainData.CHANGABLE_METHODS, function (methodName) {
    +        mainData.wrapMethod(methodName, curry(changeInjection, opt));
    +    });
    +
    +    // Make sure datas contains mainData.
    +    assert(datas[mainData.dataType] === mainData);
    +}
    +
    +function transferInjection(opt, res) {
    +    if (isMainData(this)) {
    +        // Transfer datas to new main data.
    +        var datas = extend({}, this[DATAS]);
    +        datas[this.dataType] = res;
    +        linkAll(res, datas, opt);
    +    }
    +    else {
    +        // Modify the reference in main data to point newData.
    +        linkSingle(res, this.dataType, this[MAIN_DATA], opt);
    +    }
    +    return res;
    +}
    +
    +function changeInjection(opt, res) {
    +    opt.struct && opt.struct.update(this);
    +    return res;
    +}
    +
    +function cloneShallowInjection(opt, res) {
    +    // cloneShallow, which brings about some fragilities, may be inappropriate
    +    // to be exposed as an API. So for implementation simplicity we can make
    +    // the restriction that cloneShallow of not-mainData should not be invoked
    +    // outside, but only be invoked here.
    +    each$10(res[DATAS], function (data, dataType) {
    +        data !== res && linkSingle(data.cloneShallow(), dataType, res, opt);
    +    });
    +    return res;
    +}
    +
    +/**
    + * Supplement method to List.
    + *
    + * @public
    + * @param {string} [dataType] If not specified, return mainData.
    + * @return {module:echarts/data/List}
    + */
    +function getLinkedData(dataType) {
    +    var mainData = this[MAIN_DATA];
    +    return (dataType == null || mainData == null)
    +        ? mainData
    +        : mainData[DATAS][dataType];
    +}
    +
    +function isMainData(data) {
    +    return data[MAIN_DATA] === data;
    +}
    +
    +function linkAll(mainData, datas, opt) {
    +    mainData[DATAS] = {};
    +    each$10(datas, function (data, dataType) {
    +        linkSingle(data, dataType, mainData, opt);
    +    });
    +}
    +
    +function linkSingle(data, dataType, mainData, opt) {
    +    mainData[DATAS][dataType] = data;
    +    data[MAIN_DATA] = mainData;
    +    data.dataType = dataType;
    +
    +    if (opt.struct) {
    +        data[opt.structAttr] = opt.struct;
    +        opt.struct[opt.datasAttr[dataType]] = data;
    +    }
    +
    +    // Supplement method.
    +    data.getLinkedData = getLinkedData;
    +}
    +
    +/**
    + * Tree data structure
    + *
    + * @module echarts/data/Tree
    + */
    +
    +/**
    + * @constructor module:echarts/data/Tree~TreeNode
    + * @param {string} name
    + * @param {module:echarts/data/Tree} hostTree
    + */
    +var TreeNode = function (name, hostTree) {
    +    /**
    +     * @type {string}
    +     */
    +    this.name = name || '';
    +
    +    /**
    +     * Depth of node
    +     *
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.depth = 0;
    +
    +    /**
    +     * Height of the subtree rooted at this node.
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.height = 0;
    +
    +    /**
    +     * @type {module:echarts/data/Tree~TreeNode}
    +     * @readOnly
    +     */
    +    this.parentNode = null;
    +
    +    /**
    +     * Reference to list item.
    +     * Do not persistent dataIndex outside,
    +     * besause it may be changed by list.
    +     * If dataIndex -1,
    +     * this node is logical deleted (filtered) in list.
    +     *
    +     * @type {Object}
    +     * @readOnly
    +     */
    +    this.dataIndex = -1;
    +
    +    /**
    +     * @type {Array.<module:echarts/data/Tree~TreeNode>}
    +     * @readOnly
    +     */
    +    this.children = [];
    +
    +    /**
    +     * @type {Array.<module:echarts/data/Tree~TreeNode>}
    +     * @pubilc
    +     */
    +    this.viewChildren = [];
    +
    +    /**
    +     * @type {moduel:echarts/data/Tree}
    +     * @readOnly
    +     */
    +    this.hostTree = hostTree;
    +};
    +
    +TreeNode.prototype = {
    +
    +    constructor: TreeNode,
    +
    +    /**
    +     * The node is removed.
    +     * @return {boolean} is removed.
    +     */
    +    isRemoved: function () {
    +        return this.dataIndex < 0;
    +    },
    +
    +    /**
    +     * Travel this subtree (include this node).
    +     * Usage:
    +     *    node.eachNode(function () { ... }); // preorder
    +     *    node.eachNode('preorder', function () { ... }); // preorder
    +     *    node.eachNode('postorder', function () { ... }); // postorder
    +     *    node.eachNode(
    +     *        {order: 'postorder', attr: 'viewChildren'},
    +     *        function () { ... }
    +     *    ); // postorder
    +     *
    +     * @param {(Object|string)} options If string, means order.
    +     * @param {string=} options.order 'preorder' or 'postorder'
    +     * @param {string=} options.attr 'children' or 'viewChildren'
    +     * @param {Function} cb If in preorder and return false,
    +     *                      its subtree will not be visited.
    +     * @param {Object} [context]
    +     */
    +    eachNode: function (options, cb, context) {
    +        if (typeof options === 'function') {
    +            context = cb;
    +            cb = options;
    +            options = null;
    +        }
    +
    +        options = options || {};
    +        if (isString(options)) {
    +            options = {order: options};
    +        }
    +
    +        var order = options.order || 'preorder';
    +        var children = this[options.attr || 'children'];
    +
    +        var suppressVisitSub;
    +        order === 'preorder' && (suppressVisitSub = cb.call(context, this));
    +
    +        for (var i = 0; !suppressVisitSub && i < children.length; i++) {
    +            children[i].eachNode(options, cb, context);
    +        }
    +
    +        order === 'postorder' && cb.call(context, this);
    +    },
    +
    +    /**
    +     * Update depth and height of this subtree.
    +     *
    +     * @param  {number} depth
    +     */
    +    updateDepthAndHeight: function (depth) {
    +        var height = 0;
    +        this.depth = depth;
    +        for (var i = 0; i < this.children.length; i++) {
    +            var child = this.children[i];
    +            child.updateDepthAndHeight(depth + 1);
    +            if (child.height > height) {
    +                height = child.height;
    +            }
    +        }
    +        this.height = height + 1;
    +    },
    +
    +    /**
    +     * @param  {string} id
    +     * @return {module:echarts/data/Tree~TreeNode}
    +     */
    +    getNodeById: function (id) {
    +        if (this.getId() === id) {
    +            return this;
    +        }
    +        for (var i = 0, children = this.children, len = children.length; i < len; i++) {
    +            var res = children[i].getNodeById(id);
    +            if (res) {
    +                return res;
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @param {module:echarts/data/Tree~TreeNode} node
    +     * @return {boolean}
    +     */
    +    contains: function (node) {
    +        if (node === this) {
    +            return true;
    +        }
    +        for (var i = 0, children = this.children, len = children.length; i < len; i++) {
    +            var res = children[i].contains(node);
    +            if (res) {
    +                return res;
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @param {boolean} includeSelf Default false.
    +     * @return {Array.<module:echarts/data/Tree~TreeNode>} order: [root, child, grandchild, ...]
    +     */
    +    getAncestors: function (includeSelf) {
    +        var ancestors = [];
    +        var node = includeSelf ? this : this.parentNode;
    +        while (node) {
    +            ancestors.push(node);
    +            node = node.parentNode;
    +        }
    +        ancestors.reverse();
    +        return ancestors;
    +    },
    +
    +    /**
    +     * @param {string|Array=} [dimension='value'] Default 'value'. can be 0, 1, 2, 3
    +     * @return {number} Value.
    +     */
    +    getValue: function (dimension) {
    +        var data = this.hostTree.data;
    +        return data.get(data.getDimension(dimension || 'value'), this.dataIndex);
    +    },
    +
    +    /**
    +     * @param {Object} layout
    +     * @param {boolean=} [merge=false]
    +     */
    +    setLayout: function (layout, merge$$1) {
    +        this.dataIndex >= 0
    +            && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge$$1);
    +    },
    +
    +    /**
    +     * @return {Object} layout
    +     */
    +    getLayout: function () {
    +        return this.hostTree.data.getItemLayout(this.dataIndex);
    +    },
    +
    +    /**
    +     * @param {string} [path]
    +     * @return {module:echarts/model/Model}
    +     */
    +    getModel: function (path) {
    +        if (this.dataIndex < 0) {
    +            return;
    +        }
    +        var hostTree = this.hostTree;
    +        var itemModel = hostTree.data.getItemModel(this.dataIndex);
    +        var levelModel = this.getLevelModel();
    +        var leavesModel;
    +        if (!levelModel && (this.children.length === 0 || (this.children.length !== 0 && this.isExpand === false))) {
    +            leavesModel = this.getLeavesModel();
    +        }
    +        return itemModel.getModel(path, (levelModel || leavesModel || hostTree.hostModel).getModel(path));
    +    },
    +
    +    /**
    +     * @return {module:echarts/model/Model}
    +     */
    +    getLevelModel: function () {
    +        return (this.hostTree.levelModels || [])[this.depth];
    +    },
    +
    +    /**
    +     * @return {module:echarts/model/Model}
    +     */
    +    getLeavesModel: function () {
    +        return this.hostTree.leavesModel;
    +    },
    +
    +    /**
    +     * @example
    +     *  setItemVisual('color', color);
    +     *  setItemVisual({
    +     *      'color': color
    +     *  });
    +     */
    +    setVisual: function (key, value) {
    +        this.dataIndex >= 0
    +            && this.hostTree.data.setItemVisual(this.dataIndex, key, value);
    +    },
    +
    +    /**
    +     * Get item visual
    +     */
    +    getVisual: function (key, ignoreParent) {
    +        return this.hostTree.data.getItemVisual(this.dataIndex, key, ignoreParent);
    +    },
    +
    +    /**
    +     * @public
    +     * @return {number}
    +     */
    +    getRawIndex: function () {
    +        return this.hostTree.data.getRawIndex(this.dataIndex);
    +    },
    +
    +    /**
    +     * @public
    +     * @return {string}
    +     */
    +    getId: function () {
    +        return this.hostTree.data.getId(this.dataIndex);
    +    }
    +};
    +
    +/**
    + * @constructor
    + * @alias module:echarts/data/Tree
    + * @param {module:echarts/model/Model} hostModel
    + * @param {Array.<Object>} levelOptions
    + * @param {Object} leavesOption
    + */
    +function Tree(hostModel, levelOptions, leavesOption) {
    +    /**
    +     * @type {module:echarts/data/Tree~TreeNode}
    +     * @readOnly
    +     */
    +    this.root;
    +
    +    /**
    +     * @type {module:echarts/data/List}
    +     * @readOnly
    +     */
    +    this.data;
    +
    +    /**
    +     * Index of each item is the same as the raw index of coresponding list item.
    +     * @private
    +     * @type {Array.<module:echarts/data/Tree~TreeNode}
    +     */
    +    this._nodes = [];
    +
    +    /**
    +     * @private
    +     * @readOnly
    +     * @type {module:echarts/model/Model}
    +     */
    +    this.hostModel = hostModel;
    +
    +    /**
    +     * @private
    +     * @readOnly
    +     * @type {Array.<module:echarts/model/Model}
    +     */
    +    this.levelModels = map(levelOptions || [], function (levelDefine) {
    +        return new Model(levelDefine, hostModel, hostModel.ecModel);
    +    });
    +
    +    this.leavesModel = new Model(leavesOption || {}, hostModel, hostModel.ecModel);
    +}
    +
    +Tree.prototype = {
    +
    +    constructor: Tree,
    +
    +    type: 'tree',
    +
    +    /**
    +     * Travel this subtree (include this node).
    +     * Usage:
    +     *    node.eachNode(function () { ... }); // preorder
    +     *    node.eachNode('preorder', function () { ... }); // preorder
    +     *    node.eachNode('postorder', function () { ... }); // postorder
    +     *    node.eachNode(
    +     *        {order: 'postorder', attr: 'viewChildren'},
    +     *        function () { ... }
    +     *    ); // postorder
    +     *
    +     * @param {(Object|string)} options If string, means order.
    +     * @param {string=} options.order 'preorder' or 'postorder'
    +     * @param {string=} options.attr 'children' or 'viewChildren'
    +     * @param {Function} cb
    +     * @param {Object}   [context]
    +     */
    +    eachNode: function(options, cb, context) {
    +        this.root.eachNode(options, cb, context);
    +    },
    +
    +    /**
    +     * @param {number} dataIndex
    +     * @return {module:echarts/data/Tree~TreeNode}
    +     */
    +    getNodeByDataIndex: function (dataIndex) {
    +        var rawIndex = this.data.getRawIndex(dataIndex);
    +        return this._nodes[rawIndex];
    +    },
    +
    +    /**
    +     * @param {string} name
    +     * @return {module:echarts/data/Tree~TreeNode}
    +     */
    +    getNodeByName: function (name) {
    +        return this.root.getNodeByName(name);
    +    },
    +
    +    /**
    +     * Update item available by list,
    +     * when list has been performed options like 'filterSelf' or 'map'.
    +     */
    +    update: function () {
    +        var data = this.data;
    +        var nodes = this._nodes;
    +
    +        for (var i = 0, len = nodes.length; i < len; i++) {
    +            nodes[i].dataIndex = -1;
    +        }
    +
    +        for (var i = 0, len = data.count(); i < len; i++) {
    +            nodes[data.getRawIndex(i)].dataIndex = i;
    +        }
    +    },
    +
    +    /**
    +     * Clear all layouts
    +     */
    +    clearLayouts: function () {
    +        this.data.clearItemLayouts();
    +    }
    +};
    +
    +/**
    + * data node format:
    + * {
    + *     name: ...
    + *     value: ...
    + *     children: [
    + *         {
    + *             name: ...
    + *             value: ...
    + *             children: ...
    + *         },
    + *         ...
    + *     ]
    + * }
    + *
    + * @static
    + * @param {Object} dataRoot Root node.
    + * @param {module:echarts/model/Model} hostModel
    + * @param {Object} treeOptions
    + * @param {Array.<Object>} treeOptions.levels
    + * @param {Array.<Object>} treeOptions.leaves
    + * @return module:echarts/data/Tree
    + */
    +Tree.createTree = function (dataRoot, hostModel, treeOptions) {
    +
    +    var tree = new Tree(hostModel, treeOptions.levels, treeOptions.leaves);
    +    var listData = [];
    +    var dimMax = 1;
    +
    +    buildHierarchy(dataRoot);
    +
    +    function buildHierarchy(dataNode, parentNode) {
    +        var value = dataNode.value;
    +        dimMax = Math.max(dimMax, isArray(value) ? value.length : 1);
    +
    +        listData.push(dataNode);
    +
    +        var node = new TreeNode(dataNode.name, tree);
    +        parentNode
    +            ? addChild(node, parentNode)
    +            : (tree.root = node);
    +
    +        tree._nodes.push(node);
    +
    +        var children = dataNode.children;
    +        if (children) {
    +            for (var i = 0; i < children.length; i++) {
    +                buildHierarchy(children[i], node);
    +            }
    +        }
    +    }
    +
    +    tree.root.updateDepthAndHeight(0);
    +
    +    var dimensions = completeDimensions([{name: 'value'}], listData, {dimCount: dimMax});
    +    var list = new List(dimensions, hostModel);
    +    list.initData(listData);
    +
    +    linkList({
    +        mainData: list,
    +        struct: tree,
    +        structAttr: 'tree'
    +    });
    +
    +    tree.update();
    +
    +    return tree;
    +};
    +
    +/**
    + * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,
    + * so this function is not ready and not necessary to be public.
    + *
    + * @param {(module:echarts/data/Tree~TreeNode|Object)} child
    + */
    +function addChild(child, node) {
    +    var children = node.children;
    +    if (child.parentNode === node) {
    +        return;
    +    }
    +
    +    children.push(child);
    +    child.parentNode = node;
    +}
    +
    +/**
    + * @file Create data struct and define tree view's series model
    + */
    +
    +SeriesModel.extend({
    +
    +    type: 'series.tree',
    +
    +    layoutInfo: null,
    +
    +    // can support the position parameters 'left', 'top','right','bottom', 'width',
    +    // 'height' in the setOption() with 'merge' mode normal.
    +    layoutMode: 'box',
    +
    +    /**
    +     * Init a tree data structure from data in option series
    +     * @param  {Object} option  the object used to config echarts view
    +     * @return {module:echarts/data/List} storage initial data
    +     */
    +    getInitialData: function (option) {
    +
    +        //create an virtual root
    +        var root = {name: option.name, children: option.data};
    +
    +        var leaves = option.leaves || {};
    +
    +        var treeOption = {};
    +
    +        treeOption.leaves = leaves;
    +
    +        var tree = Tree.createTree(root, this, treeOption);
    +
    +        var treeDepth = 0;
    +
    +        tree.eachNode('preorder', function (node) {
    +            if (node.depth > treeDepth) {
    +                treeDepth = node.depth;
    +            }
    +        });
    +
    +        var expandAndCollapse = option.expandAndCollapse;
    +        var expandTreeDepth = (expandAndCollapse && option.initialTreeDepth >= 0)
    +            ? option.initialTreeDepth : treeDepth;
    +
    +        tree.root.eachNode('preorder', function (node) {
    +            var item = node.hostTree.data.getRawDataItem(node.dataIndex);
    +            node.isExpand = (item && item.collapsed != null)
    +                ? !item.collapsed
    +                : node.depth <= expandTreeDepth;
    +        });
    +
    +        return tree.data;
    +    },
    +
    +    /**
    +     * @override
    +     * @param {number} dataIndex
    +     */
    +    formatTooltip: function (dataIndex) {
    +        var tree = this.getData().tree;
    +        var realRoot = tree.root.children[0];
    +        var node = tree.getNodeByDataIndex(dataIndex);
    +        var value = node.getValue();
    +        var name = node.name;
    +        while (node && (node !== realRoot)) {
    +            name = node.parentNode.name + '.' + name;
    +            node = node.parentNode;
    +        }
    +        return encodeHTML(name + (
    +            (isNaN(value) || value == null) ? '' : ' : ' + value
    +        ));
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +
    +        // the position of the whole view
    +        left: '12%',
    +        top: '12%',
    +        right: '12%',
    +        bottom: '12%',
    +
    +        // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
    +        layout: 'orthogonal',
    +
    +        // the orient of orthoginal layout, can be setted to 'horizontal' or 'vertical'
    +        orient: 'horizontal',
    +
    +        symbol: 'emptyCircle',
    +
    +        symbolSize: 7,
    +
    +        expandAndCollapse: true,
    +
    +        initialTreeDepth: 2,
    +
    +        lineStyle: {
    +            normal: {
    +                color: '#ccc',
    +                width: 1.5,
    +                curveness: 0.5
    +            }
    +        },
    +
    +        itemStyle: {
    +            normal: {
    +                color: 'lightsteelblue',
    +                borderColor: '#c23531',
    +                borderWidth: 1.5
    +            }
    +        },
    +
    +        label: {
    +            normal: {
    +                show: true,
    +                color: '#555'
    +            }
    +        },
    +
    +        leaves: {
    +            label: {
    +                normal: {
    +                    show: true
    +                }
    +            }
    +        },
    +
    +        animationEasing: 'linear',
    +
    +        animationDuration: 700,
    +
    +        animationDurationUpdate: 1000
    +    }
    +});
    +
    +/**
    + * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing
    + *       the tree.
    + * @see https://github.com/d3/d3-hierarchy
    + */
    +
    +/**
    + * Initialize all computational message for following algorithm
    + * @param  {module:echarts/data/Tree~TreeNode} root   The virtual root of the tree
    + */
    +function init$2(root) {
    +    root.hierNode = {
    +        defaultAncestor: null,
    +        ancestor: root,
    +        prelim: 0,
    +        modifier: 0,
    +        change: 0,
    +        shift: 0,
    +        i: 0,
    +        thread: null
    +    };
    +
    +    var nodes = [root];
    +    var node;
    +    var children;
    +
    +    while (node = nodes.pop()) { // jshint ignore:line
    +        children = node.children;
    +        if (node.isExpand && children.length) {
    +            var n = children.length;
    +            for (var i = n - 1; i >= 0; i--) {
    +                var child = children[i];
    +                child.hierNode = {
    +                    defaultAncestor: null,
    +                    ancestor: child,
    +                    prelim: 0,
    +                    modifier: 0,
    +                    change: 0,
    +                    shift: 0,
    +                    i: i,
    +                    thread: null
    +                };
    +                nodes.push(child);
    +            }
    +        }
    +    }
    +}
    +
    +/**
    + * Computes a preliminary x coordinate for node. Before that, this function is
    + * applied recursively to the children of node, as well as the function
    + * apportion(). After spacing out the children by calling executeShifts(), the
    + * node is placed to the midpoint of its outermost children.
    + * @param  {module:echarts/data/Tree~TreeNode} node
    + * @param {Function} separation
    + */
    +function firstWalk(node, separation) {
    +    var children = node.isExpand ? node.children : [];
    +    var siblings = node.parentNode.children;
    +    var subtreeW = node.hierNode.i ? siblings[node.hierNode.i -1] : null;
    +    if (children.length) {
    +        executeShifts(node);
    +        var midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2;
    +        if (subtreeW) {
    +            node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);
    +            node.hierNode.modifier = node.hierNode.prelim - midPoint;
    +        }
    +        else {
    +            node.hierNode.prelim = midPoint;
    +        }
    +    }
    +    else if (subtreeW) {
    +        node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);
    +    }
    +    node.parentNode.hierNode.defaultAncestor = apportion(node, subtreeW, node.parentNode.hierNode.defaultAncestor || siblings[0], separation);
    +}
    +
    +
    +/**
    + * Computes all real x-coordinates by summing up the modifiers recursively.
    + * @param  {module:echarts/data/Tree~TreeNode} node
    + */
    +function secondWalk(node) {
    +    var nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier;
    +    node.setLayout({x: nodeX}, true);
    +    node.hierNode.modifier += node.parentNode.hierNode.modifier;
    +}
    +
    +
    +function separation(cb) {
    +    return arguments.length ? cb : defaultSeparation;
    +}
    +
    +/**
    + * Transform the common coordinate to radial coordinate
    + * @param  {number} x
    + * @param  {number} y
    + * @return {Object}
    + */
    +function radialCoordinate(x, y) {
    +    var radialCoor = {};
    +    x -= Math.PI / 2;
    +    radialCoor.x = y * Math.cos(x);
    +    radialCoor.y = y * Math.sin(x);
    +    return radialCoor;
    +}
    +
    +/**
    + * Get the layout position of the whole view
    + * @param {module:echarts/model/Series} seriesModel  the model object of sankey series
    + * @param {module:echarts/ExtensionAPI} api  provide the API list that the developer can call
    + * @return {module:zrender/core/BoundingRect}  size of rect to draw the sankey view
    + */
    +function getViewRect(seriesModel, api) {
    +    return getLayoutRect(
    +        seriesModel.getBoxLayoutParams(), {
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        }
    +    );
    +}
    +
    +/**
    + * All other shifts, applied to the smaller subtrees between w- and w+, are
    + * performed by this function.
    + * @param  {module:echarts/data/Tree~TreeNode} node
    + */
    +function executeShifts(node) {
    +    var children = node.children;
    +    var n = children.length;
    +    var shift = 0;
    +    var change = 0;
    +    while (--n >= 0) {
    +        var child = children[n];
    +        child.hierNode.prelim += shift;
    +        child.hierNode.modifier += shift;
    +        change += child.hierNode.change;
    +        shift += child.hierNode.shift + change;
    +    }
    +}
    +
    +/**
    + * The core of the algorithm. Here, a new subtree is combined with the
    + * previous subtrees. Threads are used to traverse the inside and outside
    + * contours of the left and right subtree up to the highest common level.
    + * Whenever two nodes of the inside contours conflict, we compute the left
    + * one of the greatest uncommon ancestors using the function nextAncestor()
    + * and call moveSubtree() to shift the subtree and prepare the shifts of
    + * smaller subtrees. Finally, we add a new thread (if necessary).
    + * @param  {module:echarts/data/Tree~TreeNode} subtreeV
    + * @param  {module:echarts/data/Tree~TreeNode} subtreeW
    + * @param  {module:echarts/data/Tree~TreeNode} ancestor
    + * @param  {Function} separation
    + * @return {module:echarts/data/Tree~TreeNode}
    + */
    +function apportion(subtreeV, subtreeW, ancestor, separation) {
    +
    +    if (subtreeW) {
    +        var nodeOutRight = subtreeV;
    +        var nodeInRight = subtreeV;
    +        var nodeOutLeft = nodeInRight.parentNode.children[0];
    +        var nodeInLeft = subtreeW;
    +
    +        var sumOutRight = nodeOutRight.hierNode.modifier;
    +        var sumInRight = nodeInRight.hierNode.modifier;
    +        var sumOutLeft = nodeOutLeft.hierNode.modifier;
    +        var sumInLeft = nodeInLeft.hierNode.modifier;
    +
    +        while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) {
    +            nodeOutRight = nextRight(nodeOutRight);
    +            nodeOutLeft = nextLeft(nodeOutLeft);
    +            nodeOutRight.hierNode.ancestor = subtreeV;
    +            var shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim
    +                    - sumInRight + separation(nodeInLeft, nodeInRight);
    +            if (shift > 0) {
    +                moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift);
    +                sumInRight += shift;
    +                sumOutRight += shift;
    +            }
    +            sumInLeft += nodeInLeft.hierNode.modifier;
    +            sumInRight += nodeInRight.hierNode.modifier;
    +            sumOutRight += nodeOutRight.hierNode.modifier;
    +            sumOutLeft += nodeOutLeft.hierNode.modifier;
    +        }
    +        if (nodeInLeft && !nextRight(nodeOutRight)) {
    +            nodeOutRight.hierNode.thread = nodeInLeft;
    +            nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight;
    +
    +        }
    +        if (nodeInRight && !nextLeft(nodeOutLeft)) {
    +            nodeOutLeft.hierNode.thread = nodeInRight;
    +            nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft;
    +            ancestor = subtreeV;
    +        }
    +    }
    +    return ancestor;
    +}
    +
    +/**
    + * This function is used to traverse the right contour of a subtree.
    + * It returns the rightmost child of node or the thread of node. The function
    + * returns null if and only if node is on the highest depth of its subtree.
    + * @param  {module:echarts/data/Tree~TreeNode} node
    + * @return {module:echarts/data/Tree~TreeNode}
    + */
    +function nextRight(node) {
    +    var children = node.children;
    +    return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread;
    +}
    +
    +/**
    + * This function is used to traverse the left contour of a subtree (or a subforest).
    + * It returns the leftmost child of node or the thread of node. The function
    + * returns null if and only if node is on the highest depth of its subtree.
    + * @param  {module:echarts/data/Tree~TreeNode} node
    + * @return {module:echarts/data/Tree~TreeNode}
    + */
    +function nextLeft(node) {
    +    var children = node.children;
    +    return children.length && node.isExpand ? children[0] : node.hierNode.thread;
    +}
    +
    +/**
    + * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor.
    + * Otherwise, returns the specified ancestor.
    + * @param  {module:echarts/data/Tree~TreeNode} nodeInLeft
    + * @param  {module:echarts/data/Tree~TreeNode} node
    + * @param  {module:echarts/data/Tree~TreeNode} ancestor
    + * @return {module:echarts/data/Tree~TreeNode}
    + */
    +function nextAncestor(nodeInLeft, node, ancestor) {
    +    return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode
    +        ? nodeInLeft.hierNode.ancestor : ancestor;
    +}
    +
    +/**
    + * Shifts the current subtree rooted at wr. This is done by increasing prelim(w+) and modifier(w+) by shift.
    + * @param  {module:echarts/data/Tree~TreeNode} wl
    + * @param  {module:echarts/data/Tree~TreeNode} wr
    + * @param  {number} shift [description]
    + */
    +function moveSubtree(wl, wr,shift) {
    +    var change = shift / (wr.hierNode.i - wl.hierNode.i);
    +    wr.hierNode.change -= change;
    +    wr.hierNode.shift += shift;
    +    wr.hierNode.modifier += shift;
    +    wr.hierNode.prelim += shift;
    +    wl.hierNode.change += change;
    +}
    +
    +function defaultSeparation(node1, node2) {
    +    return node1.parentNode === node2.parentNode ? 1 : 2;
    +}
    +
    +/**
    + * @file  This file used to draw tree view
    + */
    +
    +extendChartView({
    +
    +    type: 'tree',
    +
    +    /**
    +     * Init the chart
    +     * @override
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    init: function (ecModel, api) {
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/data/Tree}
    +         */
    +        this._oldTree;
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/container/Group}
    +         */
    +        this._mainGroup = new Group();
    +
    +        this.group.add(this._mainGroup);
    +    },
    +
    +    render: function (seriesModel, ecModel, api, payload) {
    +
    +        var data = seriesModel.getData();
    +
    +        var layoutInfo = seriesModel.layoutInfo;
    +
    +        var group = this._mainGroup;
    +
    +        var layout = seriesModel.get('layout');
    +
    +        if (layout === 'radial') {
    +            group.attr('position', [layoutInfo.x + layoutInfo.width / 2, layoutInfo.y + layoutInfo.height / 2]);
    +        }
    +        else {
    +            group.attr('position', [layoutInfo.x, layoutInfo.y]);
    +        }
    +
    +        var oldData = this._data;
    +
    +        var seriesScope = {
    +            expandAndCollapse: seriesModel.get('expandAndCollapse'),
    +            layout: layout,
    +            orient: seriesModel.get('orient'),
    +            curvature: seriesModel.get('lineStyle.normal.curveness'),
    +            symbolRotate: seriesModel.get('symbolRotate'),
    +            symbolOffset: seriesModel.get('symbolOffset'),
    +            hoverAnimation: seriesModel.get('hoverAnimation'),
    +            useNameLabel: true,
    +            fadeIn: true
    +        };
    +
    +        data.diff(oldData)
    +            .add(function (newIdx) {
    +                if (symbolNeedsDraw$1(data, newIdx)) {
    +                    // create node and edge
    +                    updateNode(data, newIdx, null, group, seriesModel, seriesScope);
    +                }
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var symbolEl = oldData.getItemGraphicEl(oldIdx);
    +                if (!symbolNeedsDraw$1(data, newIdx)) {
    +                    symbolEl && removeNode(data, newIdx, symbolEl, group, seriesModel, seriesScope);
    +                    return;
    +                }
    +                // update  node and edge
    +                updateNode(data, newIdx, symbolEl, group, seriesModel, seriesScope);
    +            })
    +            .remove(function (oldIdx) {
    +                var symbolEl = oldData.getItemGraphicEl(oldIdx);
    +                removeNode(data, oldIdx, symbolEl, group, seriesModel, seriesScope);
    +            })
    +            .execute();
    +
    +        if (seriesScope.expandAndCollapse === true) {
    +            data.eachItemGraphicEl(function (el, dataIndex) {
    +                el.off('click').on('click', function () {
    +                    api.dispatchAction({
    +                        type: 'treeExpandAndCollapse',
    +                        seriesId: seriesModel.id,
    +                        dataIndex: dataIndex
    +                    });
    +                });
    +            });
    +        }
    +
    +        this._data = data;
    +    },
    +
    +    dispose: function () {},
    +
    +    remove: function () {
    +        this._mainGroup.removeAll();
    +        this._data = null;
    +    }
    +
    +});
    +
    +function symbolNeedsDraw$1(data, dataIndex) {
    +    var layout = data.getItemLayout(dataIndex);
    +
    +    return layout
    +        && !isNaN(layout.x) && !isNaN(layout.y)
    +        && data.getItemVisual(dataIndex, 'symbol') !== 'none';
    +}
    +
    +function getTreeNodeStyle(node, itemModel, seriesScope) {
    +    seriesScope.itemModel = itemModel;
    +    seriesScope.itemStyle = itemModel.getModel('itemStyle.normal').getItemStyle();
    +    seriesScope.hoverItemStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();
    +    seriesScope.lineStyle = itemModel.getModel('lineStyle.normal').getLineStyle();
    +    seriesScope.labelModel = itemModel.getModel('label.normal');
    +    seriesScope.hoverLabelModel = itemModel.getModel('label.emphasis');
    +
    +    if (node.isExpand === false && node.children.length !== 0) {
    +        seriesScope.symbolInnerColor = seriesScope.itemStyle.fill;
    +    }
    +    else {
    +        seriesScope.symbolInnerColor = '#fff';
    +    }
    +
    +    return seriesScope;
    +}
    +
    +function updateNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope) {
    +    var isInit = !symbolEl;
    +    var node = data.tree.getNodeByDataIndex(dataIndex);
    +    var itemModel = node.getModel();
    +    var seriesScope = getTreeNodeStyle(node, itemModel, seriesScope);
    +    var virtualRoot = data.tree.root;
    +
    +    var source = node.parentNode === virtualRoot ? node : node.parentNode || node;
    +    var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);
    +    var sourceLayout = source.getLayout();
    +    var sourceOldLayout = sourceSymbolEl
    +        ? {
    +            x: sourceSymbolEl.position[0],
    +            y: sourceSymbolEl.position[1],
    +            rawX: sourceSymbolEl.__radialOldRawX,
    +            rawY: sourceSymbolEl.__radialOldRawY
    +        }
    +        : sourceLayout;
    +    var targetLayout = node.getLayout();
    +
    +    if (isInit) {
    +        symbolEl = new SymbolClz$1(data, dataIndex, seriesScope);
    +        symbolEl.attr('position', [sourceOldLayout.x, sourceOldLayout.y]);
    +    }
    +    else {
    +        symbolEl.updateData(data, dataIndex, seriesScope);
    +    }
    +
    +    symbolEl.__radialOldRawX = symbolEl.__radialRawX;
    +    symbolEl.__radialOldRawY = symbolEl.__radialRawY;
    +    symbolEl.__radialRawX = targetLayout.rawX;
    +    symbolEl.__radialRawY = targetLayout.rawY;
    +
    +    group.add(symbolEl);
    +    data.setItemGraphicEl(dataIndex, symbolEl);
    +    updateProps(symbolEl, {
    +        position: [targetLayout.x, targetLayout.y]
    +    }, seriesModel);
    +
    +    var symbolPath = symbolEl.getSymbolPath();
    +
    +    if (seriesScope.layout === 'radial') {
    +        var realRoot = virtualRoot.children[0];
    +        var rootLayout = realRoot.getLayout();
    +        var length = realRoot.children.length;
    +        var rad;
    +        var isLeft;
    +
    +        if (targetLayout.x === rootLayout.x && node.isExpand === true) {
    +            var center = {};
    +            center.x = (realRoot.children[0].getLayout().x + realRoot.children[length - 1].getLayout().x) / 2;
    +            center.y = (realRoot.children[0].getLayout().y + realRoot.children[length - 1].getLayout().y) / 2;
    +            rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x);
    +            if (rad < 0) {
    +                rad = Math.PI * 2 + rad;
    +            }
    +            isLeft = center.x < rootLayout.x;
    +            if (isLeft) {
    +                rad = rad - Math.PI;
    +            }
    +        }
    +        else {
    +            rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x);
    +            if (rad < 0) {
    +                rad = Math.PI * 2 + rad;
    +            }
    +            if (node.children.length === 0 || (node.children.length !== 0 && node.isExpand === false)) {
    +                isLeft = targetLayout.x < rootLayout.x;
    +                if (isLeft) {
    +                    rad = rad - Math.PI;
    +                }
    +            }
    +            else {
    +                isLeft = targetLayout.x > rootLayout.x;
    +                if (!isLeft) {
    +                    rad = rad - Math.PI;
    +                }
    +            }
    +        }
    +
    +        var textPosition = isLeft ? 'left' : 'right';
    +        symbolPath.setStyle({
    +            textPosition: textPosition,
    +            textRotation: -rad,
    +            textOrigin: 'center',
    +            verticalAlign: 'middle'
    +        });
    +    }
    +
    +    if (node.parentNode && node.parentNode !== virtualRoot) {
    +        var edge = symbolEl.__edge;
    +        if (!edge) {
    +            edge = symbolEl.__edge = new BezierCurve({
    +                shape: getEdgeShape(seriesScope, sourceOldLayout, sourceOldLayout),
    +                style: defaults({opacity: 0}, seriesScope.lineStyle)
    +            });
    +        }
    +
    +        updateProps(edge, {
    +            shape: getEdgeShape(seriesScope, sourceLayout, targetLayout),
    +            style: {opacity: 1}
    +        }, seriesModel);
    +
    +        group.add(edge);
    +    }
    +}
    +
    +function removeNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope) {
    +    var node = data.tree.getNodeByDataIndex(dataIndex);
    +    var virtualRoot = data.tree.root;
    +    var itemModel = node.getModel();
    +    var seriesScope = getTreeNodeStyle(node, itemModel, seriesScope);
    +
    +    var source = node.parentNode === virtualRoot ? node : node.parentNode || node;
    +    var sourceLayout;
    +    while (sourceLayout = source.getLayout(), sourceLayout == null) {
    +        source = source.parentNode === virtualRoot ? source : source.parentNode || source;
    +    }
    +
    +    updateProps(symbolEl, {
    +        position: [sourceLayout.x + 1, sourceLayout.y + 1]
    +    }, seriesModel, function () {
    +        group.remove(symbolEl);
    +        data.setItemGraphicEl(dataIndex, null);
    +    });
    +
    +    symbolEl.fadeOut(null, {keepLabel: true});
    +
    +    var edge = symbolEl.__edge;
    +    if (edge) {
    +        updateProps(edge, {
    +            shape: getEdgeShape(seriesScope, sourceLayout, sourceLayout),
    +            style: {
    +                opacity: 0
    +            }
    +        }, seriesModel, function () {
    +            group.remove(edge);
    +        });
    +    }
    +}
    +
    +function getEdgeShape(seriesScope, sourceLayout, targetLayout) {
    +    var cpx1;
    +    var cpy1;
    +    var cpx2;
    +    var cpy2;
    +    var orient = seriesScope.orient;
    +
    +    if (seriesScope.layout === 'radial') {
    +        var x1 = sourceLayout.rawX;
    +        var y1 = sourceLayout.rawY;
    +        var x2 = targetLayout.rawX;
    +        var y2 = targetLayout.rawY;
    +
    +        var radialCoor1 = radialCoordinate(x1, y1);
    +        var radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * seriesScope.curvature);
    +        var radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * seriesScope.curvature);
    +        var radialCoor4 = radialCoordinate(x2, y2);
    +
    +        return {
    +            x1: radialCoor1.x,
    +            y1: radialCoor1.y,
    +            x2: radialCoor4.x,
    +            y2: radialCoor4.y,
    +            cpx1: radialCoor2.x,
    +            cpy1: radialCoor2.y,
    +            cpx2: radialCoor3.x,
    +            cpy2: radialCoor3.y
    +        };
    +    }
    +    else {
    +        var x1 = sourceLayout.x;
    +        var y1 = sourceLayout.y;
    +        var x2 = targetLayout.x;
    +        var y2 = targetLayout.y;
    +
    +        if (orient === 'horizontal') {
    +            cpx1 = x1 + (x2 - x1) * seriesScope.curvature;
    +            cpy1 = y1;
    +            cpx2 = x2 + (x1 - x2) * seriesScope.curvature;
    +            cpy2 = y2;
    +        }
    +        if (orient === 'vertical') {
    +            cpx1 = x1;
    +            cpy1 = y1 + (y2 - y1) * seriesScope.curvature;
    +            cpx2 = x2;
    +            cpy2 = y2 + (y1 - y2) * seriesScope.curvature;
    +        }
    +        return {
    +            x1: x1,
    +            y1: y1,
    +            x2: x2,
    +            y2: y2,
    +            cpx1: cpx1,
    +            cpy1: cpy1,
    +            cpx2: cpx2,
    +            cpy2: cpy2
    +        };
    +    }
    +}
    +
    +registerAction({
    +    type: 'treeExpandAndCollapse',
    +    event: 'treeExpandAndCollapse',
    +    update: 'update'
    +}, function (payload, ecModel) {
    +    ecModel.eachComponent({mainType: 'series', subType: 'tree', query: payload}, function (seriesModel) {
    +        var dataIndex = payload.dataIndex;
    +        var tree = seriesModel.getData().tree;
    +        var node = tree.getNodeByDataIndex(dataIndex);
    +        node.isExpand = !node.isExpand;
    +
    +    });
    +});
    +
    +/**
    + * Traverse the tree from bottom to top and do something
    + * @param  {module:echarts/data/Tree~TreeNode} root  The real root of the tree
    + * @param  {Function} callback
    + */
    +function eachAfter (root, callback, separation) {
    +    var nodes = [root];
    +    var next = [];
    +    var node;
    +
    +    while (node = nodes.pop()) { // jshint ignore:line
    +        next.push(node);
    +        if (node.isExpand) {
    +            var children = node.children;
    +            if (children.length) {
    +                for (var i = 0; i < children.length; i++) {
    +                    nodes.push(children[i]);
    +                }
    +            }
    +        }
    +    }
    +
    +    while (node = next.pop()) { // jshint ignore:line
    +        callback(node, separation);
    +    }
    +}
    +
    +/**
    + * Traverse the tree from top to bottom and do something
    + * @param  {module:echarts/data/Tree~TreeNode} root  The real root of the tree
    + * @param  {Function} callback
    + */
    +function eachBefore (root, callback) {
    +    var nodes = [root];
    +    var node;
    +    while (node = nodes.pop()) { // jshint ignore:line
    +        callback(node);
    +        if (node.isExpand) {
    +            var children = node.children;
    +            if (children.length) {
    +                for (var i = children.length - 1; i >= 0; i--) {
    +                    nodes.push(children[i]);
    +                }
    +            }
    +        }
    +    }
    +}
    +
    +var commonLayout = function (seriesModel, api) {
    +
    +    var layoutInfo = getViewRect(seriesModel, api);
    +    seriesModel.layoutInfo = layoutInfo;
    +
    +    var layout = seriesModel.get('layout');
    +    var width = 0;
    +    var height = 0;
    +    var separation$$1 = null;
    +    if (layout === 'radial') {
    +        width = 2 * Math.PI;
    +        height = Math.min(layoutInfo.height, layoutInfo.width) / 2;
    +        separation$$1 = separation(function (node1, node2) {
    +            return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth;
    +        });
    +    }
    +    else {
    +        width = layoutInfo.width;
    +        height = layoutInfo.height;
    +        separation$$1 = separation();
    +    }
    +
    +    var virtualRoot = seriesModel.getData().tree.root;
    +    var realRoot = virtualRoot.children[0];
    +    init$2(virtualRoot);
    +    eachAfter(realRoot, firstWalk, separation$$1);
    +    virtualRoot.hierNode.modifier = - realRoot.hierNode.prelim;
    +    eachBefore(realRoot, secondWalk);
    +
    +    var left = realRoot;
    +    var right = realRoot;
    +    var bottom = realRoot;
    +    eachBefore(realRoot, function (node) {
    +        var x = node.getLayout().x;
    +        if (x < left.getLayout().x) {
    +            left = node;
    +        }
    +        if (x > right.getLayout().x) {
    +            right = node;
    +        }
    +        if (node.depth > bottom.depth) {
    +            bottom = node;
    +        }
    +    });
    +
    +    var delta = left === right ? 1 : separation$$1(left, right) / 2;
    +    var tx = delta - left.getLayout().x;
    +    var kx = 0;
    +    var ky = 0;
    +    var coorX = 0;
    +    var coorY = 0;
    +    if (layout === 'radial') {
    +        kx = width / (right.getLayout().x + delta + tx);
    +        // here we use (node.depth - 1), bucause the real root's depth is 1
    +        ky = height/ ((bottom.depth - 1) || 1);
    +        eachBefore(realRoot, function (node) {
    +            coorX = (node.getLayout().x + tx) * kx;
    +            coorY = (node.depth - 1) * ky;
    +            var finalCoor = radialCoordinate(coorX, coorY);
    +            node.setLayout({x: finalCoor.x, y: finalCoor.y, rawX: coorX, rawY: coorY}, true);
    +        });
    +    }
    +    else {
    +        if (seriesModel.get('orient') === 'horizontal') {
    +            ky = height / (right.getLayout().x + delta + tx);
    +            kx = width / ((bottom.depth - 1) || 1);
    +            eachBefore(realRoot, function (node) {
    +                coorY = (node.getLayout().x + tx) * ky;
    +                coorX = (node.depth - 1) * kx;
    +                node.setLayout({x: coorX, y: coorY}, true);
    +            });
    +        }
    +        else {
    +            kx = width / (right.getLayout().x + delta + tx);
    +            ky = height / ((bottom.depth - 1) || 1);
    +            eachBefore(realRoot, function (node) {
    +                coorX = (node.getLayout().x + tx) * kx;
    +                coorY = (node.depth - 1) * ky;
    +                node.setLayout({x: coorX, y: coorY}, true);
    +            });
    +        }
    +    }
    +};
    +
    +var orthogonalLayout = function (ecModel, api) {
    +    ecModel.eachSeriesByType('tree', function (seriesModel) {
    +        commonLayout(seriesModel, api);
    +    });
    +};
    +
    +var radialLayout = function (ecModel, api) {
    +    ecModel.eachSeriesByType('tree', function (seriesModel) {
    +        commonLayout(seriesModel, api);
    +    });
    +};
    +
    +registerVisual(curry(visualSymbol, 'tree', 'circle', null));
    +registerLayout(orthogonalLayout);
    +registerLayout(radialLayout);
    +
    +function retrieveTargetInfo(payload, seriesModel) {
    +    if (payload
    +        && (
    +            payload.type === 'treemapZoomToNode'
    +            || payload.type === 'treemapRootToNode'
    +        )
    +    ) {
    +        var root = seriesModel.getData().tree.root;
    +        var targetNode = payload.targetNode;
    +        if (targetNode && root.contains(targetNode)) {
    +            return {node: targetNode};
    +        }
    +
    +        var targetNodeId = payload.targetNodeId;
    +        if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {
    +            return {node: targetNode};
    +        }
    +    }
    +}
    +
    +// Not includes the given node at the last item.
    +function getPathToRoot(node) {
    +    var path = [];
    +    while (node) {
    +        node = node.parentNode;
    +        node && path.push(node);
    +    }
    +    return path.reverse();
    +}
    +
    +function aboveViewRoot(viewRoot, node) {
    +    var viewPath = getPathToRoot(viewRoot);
    +    return indexOf(viewPath, node) >= 0;
    +}
    +
    +// From root to the input node (the input node will be included).
    +function wrapTreePathInfo(node, seriesModel) {
    +    var treePathInfo = [];
    +
    +    while (node) {
    +        var nodeDataIndex = node.dataIndex;
    +        treePathInfo.push({
    +            name: node.name,
    +            dataIndex: nodeDataIndex,
    +            value: seriesModel.getRawValue(nodeDataIndex)
    +        });
    +        node = node.parentNode;
    +    }
    +
    +    treePathInfo.reverse();
    +
    +    return treePathInfo;
    +}
    +
    +SeriesModel.extend({
    +
    +    type: 'series.treemap',
    +
    +    layoutMode: 'box',
    +
    +    dependencies: ['grid', 'polar'],
    +
    +    /**
    +     * @type {module:echarts/data/Tree~Node}
    +     */
    +    _viewRoot: null,
    +
    +    defaultOption: {
    +        // Disable progressive rendering
    +        progressive: 0,
    +        hoverLayerThreshold: Infinity,
    +        // center: ['50%', '50%'],          // not supported in ec3.
    +        // size: ['80%', '80%'],            // deprecated, compatible with ec2.
    +        left: 'center',
    +        top: 'middle',
    +        right: null,
    +        bottom: null,
    +        width: '80%',
    +        height: '80%',
    +        sort: true,                         // Can be null or false or true
    +                                            // (order by desc default, asc not supported yet (strange effect))
    +        clipWindow: 'origin',               // Size of clipped window when zooming. 'origin' or 'fullscreen'
    +        squareRatio: 0.5 * (1 + Math.sqrt(5)), // golden ratio
    +        leafDepth: null,                    // Nodes on depth from root are regarded as leaves.
    +                                            // Count from zero (zero represents only view root).
    +        drillDownIcon: '▶',                 // Use html character temporarily because it is complicated
    +                                            // to align specialized icon. ▷▶❒❐▼✚
    +
    +        zoomToNodeRatio: 0.32 * 0.32,       // Be effective when using zoomToNode. Specify the proportion of the
    +                                            // target node area in the view area.
    +        roam: true,                         // true, false, 'scale' or 'zoom', 'move'.
    +        nodeClick: 'zoomToNode',            // Leaf node click behaviour: 'zoomToNode', 'link', false.
    +                                            // If leafDepth is set and clicking a node which has children but
    +                                            // be on left depth, the behaviour would be changing root. Otherwise
    +                                            // use behavious defined above.
    +        animation: true,
    +        animationDurationUpdate: 900,
    +        animationEasing: 'quinticInOut',
    +        breadcrumb: {
    +            show: true,
    +            height: 22,
    +            left: 'center',
    +            top: 'bottom',
    +            // right
    +            // bottom
    +            emptyItemWidth: 25,             // Width of empty node.
    +            itemStyle: {
    +                normal: {
    +                    color: 'rgba(0,0,0,0.7)', //'#5793f3',
    +                    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: true,
    +                // Do not use textDistance, for ellipsis rect just the same as treemap node rect.
    +                distance: 0,
    +                padding: 5,
    +                position: 'inside', // Can be [5, '5%'] or position stirng like 'insideTopLeft', ...
    +                // formatter: null,
    +                color: '#fff',
    +                ellipsis: true
    +                // align
    +                // verticalAlign
    +            }
    +        },
    +        upperLabel: {                   // Label when node is parent.
    +            normal: {
    +                show: false,
    +                position: [0, '50%'],
    +                height: 20,
    +                // formatter: null,
    +                color: '#fff',
    +                ellipsis: true,
    +                // align: null,
    +                verticalAlign: 'middle'
    +            },
    +            emphasis: {
    +                show: true,
    +                position: [0, '50%'],
    +                color: '#fff',
    +                ellipsis: true,
    +                verticalAlign: 'middle'
    +            }
    +        },
    +        itemStyle: {
    +            normal: {
    +                color: null,            // Can be 'none' if not necessary.
    +                colorAlpha: null,       // Can be 'none' if not necessary.
    +                colorSaturation: null,  // Can be 'none' if not necessary.
    +                borderWidth: 0,
    +                gapWidth: 0,
    +                borderColor: '#fff',
    +                borderColorSaturation: null // If specified, borderColor will be ineffective, and the
    +                                            // border color is evaluated by color of current node and
    +                                            // borderColorSaturation.
    +            },
    +            emphasis: {
    +
    +            }
    +        },
    +
    +        visualDimension: 0,                 // Can be 0, 1, 2, 3.
    +        visualMin: null,
    +        visualMax: null,
    +
    +        color: [],                  // + treemapSeries.color should not be modified. Please only modified
    +                                    // level[n].color (if necessary).
    +                                    // + Specify color list of each level. level[0].color would be global
    +                                    // color list if not specified. (see method `setDefault`).
    +                                    // + But set as a empty array to forbid fetch color from global palette
    +                                    // when using nodeModel.get('color'), otherwise nodes on deep level
    +                                    // will always has color palette set and are not able to inherit color
    +                                    // from parent node.
    +                                    // + TreemapSeries.color can not be set as 'none', otherwise effect
    +                                    // legend color fetching (see seriesColor.js).
    +        colorAlpha: null,           // Array. Specify color alpha range of each level, like [0.2, 0.8]
    +        colorSaturation: null,      // Array. Specify color saturation of each level, like [0.2, 0.5]
    +        colorMappingBy: 'index',    // 'value' or 'index' or 'id'.
    +        visibleMin: 10,             // If area less than this threshold (unit: pixel^2), node will not
    +                                    // be rendered. Only works when sort is 'asc' or 'desc'.
    +        childrenVisibleMin: null,   // If area of a node less than this threshold (unit: pixel^2),
    +                                    // grandchildren will not show.
    +                                    // Why grandchildren? If not grandchildren but children,
    +                                    // some siblings show children and some not,
    +                                    // the appearance may be mess and not consistent,
    +        levels: []                  // Each item: {
    +                                    //     visibleMin, itemStyle, visualDimension, label
    +                                    // }
    +        // data: {
    +        //      value: [],
    +        //      children: [],
    +        //      link: 'http://xxx.xxx.xxx',
    +        //      target: 'blank' or 'self'
    +        // }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    getInitialData: function (option, ecModel) {
    +        // Create a virtual root.
    +        var root = {name: option.name, children: option.data};
    +
    +        completeTreeValue(root);
    +
    +        var levels = option.levels || [];
    +
    +        levels = option.levels = setDefault(levels, ecModel);
    +
    +        var treeOption = {};
    +
    +        treeOption.levels = levels;
    +
    +        // Make sure always a new tree is created when setOption,
    +        // in TreemapView, we check whether oldTree === newTree
    +        // to choose mappings approach among old shapes and new shapes.
    +        return Tree.createTree(root, this, treeOption).data;
    +    },
    +
    +    optionUpdated: function () {
    +        this.resetViewRoot();
    +    },
    +
    +    /**
    +     * @override
    +     * @param {number} dataIndex
    +     * @param {boolean} [mutipleSeries=false]
    +     */
    +    formatTooltip: function (dataIndex) {
    +        var data = this.getData();
    +        var value = this.getRawValue(dataIndex);
    +        var formattedValue = isArray(value)
    +            ? addCommas(value[0]) : addCommas(value);
    +        var name = data.getName(dataIndex);
    +
    +        return encodeHTML(name + ': ' + formattedValue);
    +    },
    +
    +    /**
    +     * Add tree path to tooltip param
    +     *
    +     * @override
    +     * @param {number} dataIndex
    +     * @return {Object}
    +     */
    +    getDataParams: function (dataIndex) {
    +        var params = SeriesModel.prototype.getDataParams.apply(this, arguments);
    +
    +        var node = this.getData().tree.getNodeByDataIndex(dataIndex);
    +        params.treePathInfo = wrapTreePathInfo(node, this);
    +
    +        return params;
    +    },
    +
    +    /**
    +     * @public
    +     * @param {Object} layoutInfo {
    +     *                                x: containerGroup x
    +     *                                y: containerGroup y
    +     *                                width: containerGroup width
    +     *                                height: containerGroup height
    +     *                            }
    +     */
    +    setLayoutInfo: function (layoutInfo) {
    +        /**
    +         * @readOnly
    +         * @type {Object}
    +         */
    +        this.layoutInfo = this.layoutInfo || {};
    +        extend(this.layoutInfo, layoutInfo);
    +    },
    +
    +    /**
    +     * @param  {string} id
    +     * @return {number} index
    +     */
    +    mapIdToIndex: function (id) {
    +        // A feature is implemented:
    +        // index is monotone increasing with the sequence of
    +        // input id at the first time.
    +        // This feature can make sure that each data item and its
    +        // mapped color have the same index between data list and
    +        // color list at the beginning, which is useful for user
    +        // to adjust data-color mapping.
    +
    +        /**
    +         * @private
    +         * @type {Object}
    +         */
    +        var idIndexMap = this._idIndexMap;
    +
    +        if (!idIndexMap) {
    +            idIndexMap = this._idIndexMap = createHashMap();
    +            /**
    +             * @private
    +             * @type {number}
    +             */
    +            this._idIndexMapCount = 0;
    +        }
    +
    +        var index = idIndexMap.get(id);
    +        if (index == null) {
    +            idIndexMap.set(id, index = this._idIndexMapCount++);
    +        }
    +
    +        return index;
    +    },
    +
    +    getViewRoot: function () {
    +        return this._viewRoot;
    +    },
    +
    +    /**
    +     * @param {module:echarts/data/Tree~Node} [viewRoot]
    +     */
    +    resetViewRoot: function (viewRoot) {
    +        viewRoot
    +            ? (this._viewRoot = viewRoot)
    +            : (viewRoot = this._viewRoot);
    +
    +        var root = this.getData().tree.root;
    +
    +        if (!viewRoot
    +            || (viewRoot !== root && !root.contains(viewRoot))
    +        ) {
    +            this._viewRoot = root;
    +        }
    +    }
    +});
    +
    +/**
    + * @param {Object} dataNode
    + */
    +function completeTreeValue(dataNode) {
    +    // Postorder travel tree.
    +    // If value of none-leaf node is not set,
    +    // calculate it by suming up the value of all children.
    +    var sum = 0;
    +
    +    each$1(dataNode.children, function (child) {
    +
    +        completeTreeValue(child);
    +
    +        var childValue = child.value;
    +        isArray(childValue) && (childValue = childValue[0]);
    +
    +        sum += childValue;
    +    });
    +
    +    var thisValue = dataNode.value;
    +    if (isArray(thisValue)) {
    +        thisValue = thisValue[0];
    +    }
    +
    +    if (thisValue == null || isNaN(thisValue)) {
    +        thisValue = sum;
    +    }
    +    // Value should not less than 0.
    +    if (thisValue < 0) {
    +        thisValue = 0;
    +    }
    +
    +    isArray(dataNode.value)
    +        ? (dataNode.value[0] = thisValue)
    +        : (dataNode.value = thisValue);
    +}
    +
    +/**
    + * set default to level configuration
    + */
    +function setDefault(levels, ecModel) {
    +    var globalColorList = ecModel.get('color');
    +
    +    if (!globalColorList) {
    +        return;
    +    }
    +
    +    levels = levels || [];
    +    var hasColorDefine;
    +    each$1(levels, function (levelDefine) {
    +        var model = new Model(levelDefine);
    +        var modelColor = model.get('color');
    +
    +        if (model.get('itemStyle.normal.color')
    +            || (modelColor && modelColor !== 'none')
    +        ) {
    +            hasColorDefine = true;
    +        }
    +    });
    +
    +    if (!hasColorDefine) {
    +        var level0 = levels[0] || (levels[0] = {});
    +        level0.color = globalColorList.slice();
    +    }
    +
    +    return levels;
    +}
    +
    +var TEXT_PADDING = 8;
    +var ITEM_GAP = 8;
    +var ARRAY_LENGTH = 5;
    +
    +function Breadcrumb(containerGroup) {
    +    /**
    +     * @private
    +     * @type {module:zrender/container/Group}
    +     */
    +    this.group = new Group();
    +
    +    containerGroup.add(this.group);
    +}
    +
    +Breadcrumb.prototype = {
    +
    +    constructor: Breadcrumb,
    +
    +    render: function (seriesModel, api, targetNode, onSelect) {
    +        var model = seriesModel.getModel('breadcrumb');
    +        var thisGroup = this.group;
    +
    +        thisGroup.removeAll();
    +
    +        if (!model.get('show') || !targetNode) {
    +            return;
    +        }
    +
    +        var normalStyleModel = model.getModel('itemStyle.normal');
    +        // var emphasisStyleModel = model.getModel('itemStyle.emphasis');
    +        var textStyleModel = normalStyleModel.getModel('textStyle');
    +
    +        var layoutParam = {
    +            pos: {
    +                left: model.get('left'),
    +                right: model.get('right'),
    +                top: model.get('top'),
    +                bottom: model.get('bottom')
    +            },
    +            box: {
    +                width: api.getWidth(),
    +                height: api.getHeight()
    +            },
    +            emptyItemWidth: model.get('emptyItemWidth'),
    +            totalWidth: 0,
    +            renderList: []
    +        };
    +
    +        this._prepare(targetNode, layoutParam, textStyleModel);
    +        this._renderContent(seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect);
    +
    +        positionElement(thisGroup, layoutParam.pos, layoutParam.box);
    +    },
    +
    +    /**
    +     * Prepare render list and total width
    +     * @private
    +     */
    +    _prepare: function (targetNode, layoutParam, textStyleModel) {
    +        for (var node = targetNode; node; node = node.parentNode) {
    +            var text = node.getModel().get('name');
    +            var textRect = textStyleModel.getTextRect(text);
    +            var itemWidth = Math.max(
    +                textRect.width + TEXT_PADDING * 2,
    +                layoutParam.emptyItemWidth
    +            );
    +            layoutParam.totalWidth += itemWidth + ITEM_GAP;
    +            layoutParam.renderList.push({node: node, text: text, width: itemWidth});
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderContent: function (
    +        seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect
    +    ) {
    +        // Start rendering.
    +        var lastX = 0;
    +        var emptyItemWidth = layoutParam.emptyItemWidth;
    +        var height = seriesModel.get('breadcrumb.height');
    +        var availableSize = getAvailableSize(layoutParam.pos, layoutParam.box);
    +        var totalWidth = layoutParam.totalWidth;
    +        var renderList = layoutParam.renderList;
    +
    +        for (var i = renderList.length - 1; i >= 0; i--) {
    +            var item = renderList[i];
    +            var itemNode = item.node;
    +            var itemWidth = item.width;
    +            var text = item.text;
    +
    +            // Hdie text and shorten width if necessary.
    +            if (totalWidth > availableSize.width) {
    +                totalWidth -= itemWidth - emptyItemWidth;
    +                itemWidth = emptyItemWidth;
    +                text = null;
    +            }
    +
    +            var el = new Polygon({
    +                shape: {
    +                    points: makeItemPoints(
    +                        lastX, 0, itemWidth, height,
    +                        i === renderList.length - 1, i === 0
    +                    )
    +                },
    +                style: defaults(
    +                    normalStyleModel.getItemStyle(),
    +                    {
    +                        lineJoin: 'bevel',
    +                        text: text,
    +                        textFill: textStyleModel.getTextColor(),
    +                        textFont: textStyleModel.getFont()
    +                    }
    +                ),
    +                z: 10,
    +                onclick: curry(onSelect, itemNode)
    +            });
    +            this.group.add(el);
    +
    +            packEventData(el, seriesModel, itemNode);
    +
    +            lastX += itemWidth + ITEM_GAP;
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function () {
    +        this.group.removeAll();
    +    }
    +};
    +
    +function makeItemPoints(x, y, itemWidth, itemHeight, head, tail) {
    +    var points = [
    +        [head ? x : x - ARRAY_LENGTH, y],
    +        [x + itemWidth, y],
    +        [x + itemWidth, y + itemHeight],
    +        [head ? x : x - ARRAY_LENGTH, y + itemHeight]
    +    ];
    +    !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);
    +    !head && points.push([x, y + itemHeight / 2]);
    +    return points;
    +}
    +
    +// Package custom mouse event.
    +function packEventData(el, seriesModel, itemNode) {
    +    el.eventData = {
    +        componentType: 'series',
    +        componentSubType: 'treemap',
    +        seriesIndex: seriesModel.componentIndex,
    +        seriesName: seriesModel.name,
    +        seriesType: 'treemap',
    +        selfType: 'breadcrumb', // Distinguish with click event on treemap node.
    +        nodeData: {
    +            dataIndex: itemNode && itemNode.dataIndex,
    +            name: itemNode && itemNode.name
    +        },
    +        treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel)
    +    };
    +}
    +
    +/**
    + * @param {number} [time=500] Time in ms
    + * @param {string} [easing='linear']
    + * @param {number} [delay=0]
    + * @param {Function} [callback]
    + *
    + * @example
    + *  // Animate position
    + *  animation
    + *      .createWrap()
    + *      .add(el1, {position: [10, 10]})
    + *      .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)
    + *      .done(function () { // done })
    + *      .start('cubicOut');
    + */
    +function createWrap() {
    +
    +    var storage = [];
    +    var elExistsMap = {};
    +    var doneCallback;
    +
    +    return {
    +
    +        /**
    +         * Caution: a el can only be added once, otherwise 'done'
    +         * might not be called. This method checks this (by el.id),
    +         * suppresses adding and returns false when existing el found.
    +         *
    +         * @param {modele:zrender/Element} el
    +         * @param {Object} target
    +         * @param {number} [time=500]
    +         * @param {number} [delay=0]
    +         * @param {string} [easing='linear']
    +         * @return {boolean} Whether adding succeeded.
    +         *
    +         * @example
    +         *     add(el, target, time, delay, easing);
    +         *     add(el, target, time, easing);
    +         *     add(el, target, time);
    +         *     add(el, target);
    +         */
    +        add: function (el, target, time, delay, easing) {
    +            if (isString(delay)) {
    +                easing = delay;
    +                delay = 0;
    +            }
    +
    +            if (elExistsMap[el.id]) {
    +                return false;
    +            }
    +            elExistsMap[el.id] = 1;
    +
    +            storage.push(
    +                {el: el, target: target, time: time, delay: delay, easing: easing}
    +            );
    +
    +            return true;
    +        },
    +
    +        /**
    +         * Only execute when animation finished. Will not execute when any
    +         * of 'stop' or 'stopAnimation' called.
    +         *
    +         * @param {Function} callback
    +         */
    +        done: function (callback) {
    +            doneCallback = callback;
    +            return this;
    +        },
    +
    +        /**
    +         * Will stop exist animation firstly.
    +         */
    +        start: function () {
    +            var count = storage.length;
    +
    +            for (var i = 0, len = storage.length; i < len; i++) {
    +                var item = storage[i];
    +                item.el.animateTo(item.target, item.time, item.delay, item.easing, done);
    +            }
    +
    +            return this;
    +
    +            function done() {
    +                count--;
    +                if (!count) {
    +                    storage.length = 0;
    +                    elExistsMap = {};
    +                    doneCallback && doneCallback();
    +                }
    +            }
    +        }
    +    };
    +}
    +
    +var bind$1 = bind;
    +var Group$2 = Group;
    +var Rect$1 = Rect;
    +var each$11 = each$1;
    +
    +var DRAG_THRESHOLD = 3;
    +var PATH_LABEL_NOAMAL = ['label', 'normal'];
    +var PATH_LABEL_EMPHASIS = ['label', 'emphasis'];
    +var PATH_UPPERLABEL_NORMAL = ['upperLabel', 'normal'];
    +var PATH_UPPERLABEL_EMPHASIS = ['upperLabel', 'emphasis'];
    +var Z_BASE = 10; // Should bigger than every z.
    +var Z_BG = 1;
    +var Z_CONTENT = 2;
    +
    +var getItemStyleEmphasis = makeStyleMapper([
    +    ['fill', 'color'],
    +    // `borderColor` and `borderWidth` has been occupied,
    +    // so use `stroke` to indicate the stroke of the rect.
    +    ['stroke', 'strokeColor'],
    +    ['lineWidth', 'strokeWidth'],
    +    ['shadowBlur'],
    +    ['shadowOffsetX'],
    +    ['shadowOffsetY'],
    +    ['shadowColor']
    +]);
    +var getItemStyleNormal = function (model) {
    +    // Normal style props should include emphasis style props.
    +    var itemStyle = getItemStyleEmphasis(model);
    +    // Clear styles set by emphasis.
    +    itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null;
    +    return itemStyle;
    +};
    +
    +extendChartView({
    +
    +    type: 'treemap',
    +
    +    /**
    +     * @override
    +     */
    +    init: function (o, api) {
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/container/Group}
    +         */
    +        this._containerGroup;
    +
    +        /**
    +         * @private
    +         * @type {Object.<string, Array.<module:zrender/container/Group>>}
    +         */
    +        this._storage = createStorage();
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/data/Tree}
    +         */
    +        this._oldTree;
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/chart/treemap/Breadcrumb}
    +         */
    +        this._breadcrumb;
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/component/helper/RoamController}
    +         */
    +        this._controller;
    +
    +        /**
    +         * 'ready', 'animating'
    +         * @private
    +         */
    +        this._state = 'ready';
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (seriesModel, ecModel, api, payload) {
    +
    +        var models = ecModel.findComponents({
    +            mainType: 'series', subType: 'treemap', query: payload
    +        });
    +        if (indexOf(models, seriesModel) < 0) {
    +            return;
    +        }
    +
    +        this.seriesModel = seriesModel;
    +        this.api = api;
    +        this.ecModel = ecModel;
    +
    +        var targetInfo = retrieveTargetInfo(payload, seriesModel);
    +        var payloadType = payload && payload.type;
    +        var layoutInfo = seriesModel.layoutInfo;
    +        var isInit = !this._oldTree;
    +        var thisStorage = this._storage;
    +
    +        // Mark new root when action is treemapRootToNode.
    +        var reRoot = (payloadType === 'treemapRootToNode' && targetInfo && thisStorage)
    +            ? {
    +                rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],
    +                direction: payload.direction
    +            }
    +            : null;
    +
    +        var containerGroup = this._giveContainerGroup(layoutInfo);
    +
    +        var renderResult = this._doRender(containerGroup, seriesModel, reRoot);
    +        (
    +            !isInit && (
    +                !payloadType
    +                || payloadType === 'treemapZoomToNode'
    +                || payloadType === 'treemapRootToNode'
    +            )
    +        )
    +            ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot)
    +            : renderResult.renderFinally();
    +
    +        this._resetController(api);
    +
    +        this._renderBreadcrumb(seriesModel, api, targetInfo);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _giveContainerGroup: function (layoutInfo) {
    +        var containerGroup = this._containerGroup;
    +        if (!containerGroup) {
    +            // FIXME
    +            // 加一层containerGroup是为了clip,但是现在clip功能并没有实现。
    +            containerGroup = this._containerGroup = new Group$2();
    +            this._initEvents(containerGroup);
    +            this.group.add(containerGroup);
    +        }
    +        containerGroup.attr('position', [layoutInfo.x, layoutInfo.y]);
    +
    +        return containerGroup;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _doRender: function (containerGroup, seriesModel, reRoot) {
    +        var thisTree = seriesModel.getData().tree;
    +        var oldTree = this._oldTree;
    +
    +        // Clear last shape records.
    +        var lastsForAnimation = createStorage();
    +        var thisStorage = createStorage();
    +        var oldStorage = this._storage;
    +        var willInvisibleEls = [];
    +        var doRenderNode = curry(
    +            renderNode, seriesModel,
    +            thisStorage, oldStorage, reRoot,
    +            lastsForAnimation, willInvisibleEls
    +        );
    +
    +        // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow),
    +        // the oldTree is actually losted, so we can not find all of the old graphic
    +        // elements from tree. So we use this stragegy: make element storage, move
    +        // from old storage to new storage, clear old storage.
    +
    +        dualTravel(
    +            thisTree.root ? [thisTree.root] : [],
    +            (oldTree && oldTree.root) ? [oldTree.root] : [],
    +            containerGroup,
    +            thisTree === oldTree || !oldTree,
    +            0
    +        );
    +
    +        // Process all removing.
    +        var willDeleteEls = clearStorage(oldStorage);
    +
    +        this._oldTree = thisTree;
    +        this._storage = thisStorage;
    +
    +        return {
    +            lastsForAnimation: lastsForAnimation,
    +            willDeleteEls: willDeleteEls,
    +            renderFinally: renderFinally
    +        };
    +
    +        function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, depth) {
    +            // When 'render' is triggered by action,
    +            // 'this' and 'old' may be the same tree,
    +            // we use rawIndex in that case.
    +            if (sameTree) {
    +                oldViewChildren = thisViewChildren;
    +                each$11(thisViewChildren, function (child, index) {
    +                    !child.isRemoved() && processNode(index, index);
    +                });
    +            }
    +            // Diff hierarchically (diff only in each subtree, but not whole).
    +            // because, consistency of view is important.
    +            else {
    +                (new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey))
    +                    .add(processNode)
    +                    .update(processNode)
    +                    .remove(curry(processNode, null))
    +                    .execute();
    +            }
    +
    +            function getKey(node) {
    +                // Identify by name or raw index.
    +                return node.getId();
    +            }
    +
    +            function processNode(newIndex, oldIndex) {
    +                var thisNode = newIndex != null ? thisViewChildren[newIndex] : null;
    +                var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;
    +
    +                var group = doRenderNode(thisNode, oldNode, parentGroup, depth);
    +
    +                group && dualTravel(
    +                    thisNode && thisNode.viewChildren || [],
    +                    oldNode && oldNode.viewChildren || [],
    +                    group,
    +                    sameTree,
    +                    depth + 1
    +                );
    +            }
    +        }
    +
    +        function clearStorage(storage) {
    +            var willDeleteEls = createStorage();
    +            storage && each$11(storage, function (store, storageName) {
    +                var delEls = willDeleteEls[storageName];
    +                each$11(store, function (el) {
    +                    el && (delEls.push(el), el.__tmWillDelete = 1);
    +                });
    +            });
    +            return willDeleteEls;
    +        }
    +
    +        function renderFinally() {
    +            each$11(willDeleteEls, function (els) {
    +                each$11(els, function (el) {
    +                    el.parent && el.parent.remove(el);
    +                });
    +            });
    +            each$11(willInvisibleEls, function (el) {
    +                el.invisible = true;
    +                // Setting invisible is for optimizing, so no need to set dirty,
    +                // just mark as invisible.
    +                el.dirty();
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _doAnimation: function (containerGroup, renderResult, seriesModel, reRoot) {
    +        if (!seriesModel.get('animation')) {
    +            return;
    +        }
    +
    +        var duration = seriesModel.get('animationDurationUpdate');
    +        var easing = seriesModel.get('animationEasing');
    +        var animationWrap = createWrap();
    +
    +        // Make delete animations.
    +        each$11(renderResult.willDeleteEls, function (store, storageName) {
    +            each$11(store, function (el, rawIndex) {
    +                if (el.invisible) {
    +                    return;
    +                }
    +
    +                var parent = el.parent; // Always has parent, and parent is nodeGroup.
    +                var target;
    +
    +                if (reRoot && reRoot.direction === 'drillDown') {
    +                    target = parent === reRoot.rootNodeGroup
    +                        // This is the content element of view root.
    +                        // Only `content` will enter this branch, because
    +                        // `background` and `nodeGroup` will not be deleted.
    +                        ? {
    +                            shape: {
    +                                x: 0,
    +                                y: 0,
    +                                width: parent.__tmNodeWidth,
    +                                height: parent.__tmNodeHeight
    +                            },
    +                            style: {
    +                                opacity: 0
    +                            }
    +                        }
    +                        // Others.
    +                        : {style: {opacity: 0}};
    +                }
    +                else {
    +                    var targetX = 0;
    +                    var targetY = 0;
    +
    +                    if (!parent.__tmWillDelete) {
    +                        // Let node animate to right-bottom corner, cooperating with fadeout,
    +                        // which is appropriate for user understanding.
    +                        // Divided by 2 for reRoot rolling up effect.
    +                        targetX = parent.__tmNodeWidth / 2;
    +                        targetY = parent.__tmNodeHeight / 2;
    +                    }
    +
    +                    target = storageName === 'nodeGroup'
    +                        ? {position: [targetX, targetY], style: {opacity: 0}}
    +                        : {
    +                            shape: {x: targetX, y: targetY, width: 0, height: 0},
    +                            style: {opacity: 0}
    +                        };
    +                }
    +
    +                target && animationWrap.add(el, target, duration, easing);
    +            });
    +        });
    +
    +        // Make other animations
    +        each$11(this._storage, function (store, storageName) {
    +            each$11(store, function (el, rawIndex) {
    +                var last = renderResult.lastsForAnimation[storageName][rawIndex];
    +                var target = {};
    +
    +                if (!last) {
    +                    return;
    +                }
    +
    +                if (storageName === 'nodeGroup') {
    +                    if (last.old) {
    +                        target.position = el.position.slice();
    +                        el.attr('position', last.old);
    +                    }
    +                }
    +                else {
    +                    if (last.old) {
    +                        target.shape = extend({}, el.shape);
    +                        el.setShape(last.old);
    +                    }
    +
    +                    if (last.fadein) {
    +                        el.setStyle('opacity', 0);
    +                        target.style = {opacity: 1};
    +                    }
    +                    // When animation is stopped for succedent animation starting,
    +                    // el.style.opacity might not be 1
    +                    else if (el.style.opacity !== 1) {
    +                        target.style = {opacity: 1};
    +                    }
    +                }
    +
    +                animationWrap.add(el, target, duration, easing);
    +            });
    +        }, this);
    +
    +        this._state = 'animating';
    +
    +        animationWrap
    +            .done(bind$1(function () {
    +                this._state = 'ready';
    +                renderResult.renderFinally();
    +            }, this))
    +            .start();
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _resetController: function (api) {
    +        var controller = this._controller;
    +
    +        // Init controller.
    +        if (!controller) {
    +            controller = this._controller = new RoamController(api.getZr());
    +            controller.enable(this.seriesModel.get('roam'));
    +            controller.on('pan', bind$1(this._onPan, this));
    +            controller.on('zoom', bind$1(this._onZoom, this));
    +        }
    +
    +        var rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight());
    +        controller.setPointerChecker(function (e, x, y) {
    +            return rect.contain(x, y);
    +        });
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _clearController: function () {
    +        var controller = this._controller;
    +        if (controller) {
    +            controller.dispose();
    +            controller = null;
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onPan: function (dx, dy) {
    +        if (this._state !== 'animating'
    +            && (Math.abs(dx) > DRAG_THRESHOLD || Math.abs(dy) > DRAG_THRESHOLD)
    +        ) {
    +            // These param must not be cached.
    +            var root = this.seriesModel.getData().tree.root;
    +
    +            if (!root) {
    +                return;
    +            }
    +
    +            var rootLayout = root.getLayout();
    +
    +            if (!rootLayout) {
    +                return;
    +            }
    +
    +            this.api.dispatchAction({
    +                type: 'treemapMove',
    +                from: this.uid,
    +                seriesId: this.seriesModel.id,
    +                rootRect: {
    +                    x: rootLayout.x + dx, y: rootLayout.y + dy,
    +                    width: rootLayout.width, height: rootLayout.height
    +                }
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onZoom: function (scale, mouseX, mouseY) {
    +        if (this._state !== 'animating') {
    +            // These param must not be cached.
    +            var root = this.seriesModel.getData().tree.root;
    +
    +            if (!root) {
    +                return;
    +            }
    +
    +            var rootLayout = root.getLayout();
    +
    +            if (!rootLayout) {
    +                return;
    +            }
    +
    +            var rect = new BoundingRect(
    +                rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height
    +            );
    +            var layoutInfo = this.seriesModel.layoutInfo;
    +
    +            // Transform mouse coord from global to containerGroup.
    +            mouseX -= layoutInfo.x;
    +            mouseY -= layoutInfo.y;
    +
    +            // Scale root bounding rect.
    +            var m = create$1();
    +            translate(m, m, [-mouseX, -mouseY]);
    +            scale$1(m, m, [scale, scale]);
    +            translate(m, m, [mouseX, mouseY]);
    +
    +            rect.applyTransform(m);
    +
    +            this.api.dispatchAction({
    +                type: 'treemapRender',
    +                from: this.uid,
    +                seriesId: this.seriesModel.id,
    +                rootRect: {
    +                    x: rect.x, y: rect.y,
    +                    width: rect.width, height: rect.height
    +                }
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _initEvents: function (containerGroup) {
    +        containerGroup.on('click', function (e) {
    +            if (this._state !== 'ready') {
    +                return;
    +            }
    +
    +            var nodeClick = this.seriesModel.get('nodeClick', true);
    +
    +            if (!nodeClick) {
    +                return;
    +            }
    +
    +            var targetInfo = this.findTarget(e.offsetX, e.offsetY);
    +
    +            if (!targetInfo) {
    +                return;
    +            }
    +
    +            var node = targetInfo.node;
    +            if (node.getLayout().isLeafRoot) {
    +                this._rootToNode(targetInfo);
    +            }
    +            else {
    +                if (nodeClick === 'zoomToNode') {
    +                    this._zoomToNode(targetInfo);
    +                }
    +                else if (nodeClick === 'link') {
    +                    var itemModel = node.hostTree.data.getItemModel(node.dataIndex);
    +                    var link = itemModel.get('link', true);
    +                    var linkTarget = itemModel.get('target', true) || 'blank';
    +                    link && window.open(link, linkTarget);
    +                }
    +            }
    +
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderBreadcrumb: function (seriesModel, api, targetInfo) {
    +        if (!targetInfo) {
    +            targetInfo = seriesModel.get('leafDepth', true) != null
    +                ? {node: seriesModel.getViewRoot()}
    +                // FIXME
    +                // better way?
    +                // Find breadcrumb tail on center of containerGroup.
    +                : this.findTarget(api.getWidth() / 2, api.getHeight() / 2);
    +
    +            if (!targetInfo) {
    +                targetInfo = {node: seriesModel.getData().tree.root};
    +            }
    +        }
    +
    +        (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group)))
    +            .render(seriesModel, api, targetInfo.node, bind$1(onSelect, this));
    +
    +        function onSelect(node) {
    +            if (this._state !== 'animating') {
    +                aboveViewRoot(seriesModel.getViewRoot(), node)
    +                    ? this._rootToNode({node: node})
    +                    : this._zoomToNode({node: node});
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function () {
    +        this._clearController();
    +        this._containerGroup && this._containerGroup.removeAll();
    +        this._storage = createStorage();
    +        this._state = 'ready';
    +        this._breadcrumb && this._breadcrumb.remove();
    +    },
    +
    +    dispose: function () {
    +        this._clearController();
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _zoomToNode: function (targetInfo) {
    +        this.api.dispatchAction({
    +            type: 'treemapZoomToNode',
    +            from: this.uid,
    +            seriesId: this.seriesModel.id,
    +            targetNode: targetInfo.node
    +        });
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _rootToNode: function (targetInfo) {
    +        this.api.dispatchAction({
    +            type: 'treemapRootToNode',
    +            from: this.uid,
    +            seriesId: this.seriesModel.id,
    +            targetNode: targetInfo.node
    +        });
    +    },
    +
    +    /**
    +     * @public
    +     * @param {number} x Global coord x.
    +     * @param {number} y Global coord y.
    +     * @return {Object} info If not found, return undefined;
    +     * @return {number} info.node Target node.
    +     * @return {number} info.offsetX x refer to target node.
    +     * @return {number} info.offsetY y refer to target node.
    +     */
    +    findTarget: function (x, y) {
    +        var targetInfo;
    +        var viewRoot = this.seriesModel.getViewRoot();
    +
    +        viewRoot.eachNode({attr: 'viewChildren', order: 'preorder'}, function (node) {
    +            var bgEl = this._storage.background[node.getRawIndex()];
    +            // If invisible, there might be no element.
    +            if (bgEl) {
    +                var point = bgEl.transformCoordToLocal(x, y);
    +                var shape = bgEl.shape;
    +
    +                // For performance consideration, dont use 'getBoundingRect'.
    +                if (shape.x <= point[0]
    +                    && point[0] <= shape.x + shape.width
    +                    && shape.y <= point[1]
    +                    && point[1] <= shape.y + shape.height
    +                ) {
    +                    targetInfo = {node: node, offsetX: point[0], offsetY: point[1]};
    +                }
    +                else {
    +                    return false; // Suppress visit subtree.
    +                }
    +            }
    +        }, this);
    +
    +        return targetInfo;
    +    }
    +
    +});
    +
    +/**
    + * @inner
    + */
    +function createStorage() {
    +    return {nodeGroup: [], background: [], content: []};
    +}
    +
    +/**
    + * @inner
    + * @return Return undefined means do not travel further.
    + */
    +function renderNode(
    +    seriesModel, thisStorage, oldStorage, reRoot,
    +    lastsForAnimation, willInvisibleEls,
    +    thisNode, oldNode, parentGroup, depth
    +) {
    +    // Whether under viewRoot.
    +    if (!thisNode) {
    +        // Deleting nodes will be performed finally. This method just find
    +        // element from old storage, or create new element, set them to new
    +        // storage, and set styles.
    +        return;
    +    }
    +
    +    // -------------------------------------------------------------------
    +    // Start of closure variables available in "Procedures in renderNode".
    +
    +    var thisLayout = thisNode.getLayout();
    +
    +    if (!thisLayout || !thisLayout.isInView) {
    +        return;
    +    }
    +
    +    var thisWidth = thisLayout.width;
    +    var thisHeight = thisLayout.height;
    +    var borderWidth = thisLayout.borderWidth;
    +    var thisInvisible = thisLayout.invisible;
    +
    +    var thisRawIndex = thisNode.getRawIndex();
    +    var oldRawIndex = oldNode && oldNode.getRawIndex();
    +
    +    var thisViewChildren = thisNode.viewChildren;
    +    var upperHeight = thisLayout.upperHeight;
    +    var isParent = thisViewChildren && thisViewChildren.length;
    +    var itemStyleNormalModel = thisNode.getModel('itemStyle.normal');
    +    var itemStyleEmphasisModel = thisNode.getModel('itemStyle.emphasis');
    +
    +    // End of closure ariables available in "Procedures in renderNode".
    +    // -----------------------------------------------------------------
    +
    +    // Node group
    +    var group = giveGraphic('nodeGroup', Group$2);
    +
    +    if (!group) {
    +        return;
    +    }
    +
    +    parentGroup.add(group);
    +    // x,y are not set when el is above view root.
    +    group.attr('position', [thisLayout.x || 0, thisLayout.y || 0]);
    +    group.__tmNodeWidth = thisWidth;
    +    group.__tmNodeHeight = thisHeight;
    +
    +    if (thisLayout.isAboveViewRoot) {
    +        return group;
    +    }
    +
    +    // Background
    +    var bg = giveGraphic('background', Rect$1, depth, Z_BG);
    +    bg && renderBackground(group, bg, isParent && thisLayout.upperHeight);
    +
    +    // No children, render content.
    +    if (!isParent) {
    +        var content = giveGraphic('content', Rect$1, depth, Z_CONTENT);
    +        content && renderContent(group, content);
    +    }
    +
    +    return group;
    +
    +    // ----------------------------
    +    // | Procedures in renderNode |
    +    // ----------------------------
    +
    +    function renderBackground(group, bg, useUpperLabel) {
    +        // For tooltip.
    +        bg.dataIndex = thisNode.dataIndex;
    +        bg.seriesIndex = seriesModel.seriesIndex;
    +
    +        bg.setShape({x: 0, y: 0, width: thisWidth, height: thisHeight});
    +        var visualBorderColor = thisNode.getVisual('borderColor', true);
    +        var emphasisBorderColor = itemStyleEmphasisModel.get('borderColor');
    +
    +        updateStyle(bg, function () {
    +            var normalStyle = getItemStyleNormal(itemStyleNormalModel);
    +            normalStyle.fill = visualBorderColor;
    +            var emphasisStyle = getItemStyleEmphasis(itemStyleEmphasisModel);
    +            emphasisStyle.fill = emphasisBorderColor;
    +
    +            if (useUpperLabel) {
    +                var upperLabelWidth = thisWidth - 2 * borderWidth;
    +
    +                prepareText(
    +                    normalStyle, emphasisStyle, visualBorderColor, upperLabelWidth, upperHeight,
    +                    {x: borderWidth, y: 0, width: upperLabelWidth, height: upperHeight}
    +                );
    +            }
    +            // For old bg.
    +            else {
    +                normalStyle.text = emphasisStyle.text = null;
    +            }
    +
    +            bg.setStyle(normalStyle);
    +            setHoverStyle(bg, emphasisStyle);
    +        });
    +
    +        group.add(bg);
    +    }
    +
    +    function renderContent(group, content) {
    +        // For tooltip.
    +        content.dataIndex = thisNode.dataIndex;
    +        content.seriesIndex = seriesModel.seriesIndex;
    +
    +        var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);
    +        var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);
    +
    +        content.culling = true;
    +        content.setShape({
    +            x: borderWidth,
    +            y: borderWidth,
    +            width: contentWidth,
    +            height: contentHeight
    +        });
    +
    +        var visualColor = thisNode.getVisual('color', true);
    +        updateStyle(content, function () {
    +            var normalStyle = getItemStyleNormal(itemStyleNormalModel);
    +            normalStyle.fill = visualColor;
    +            var emphasisStyle = getItemStyleEmphasis(itemStyleEmphasisModel);
    +
    +            prepareText(normalStyle, emphasisStyle, visualColor, contentWidth, contentHeight);
    +
    +            content.setStyle(normalStyle);
    +            setHoverStyle(content, emphasisStyle);
    +        });
    +
    +        group.add(content);
    +    }
    +
    +    function updateStyle(element, cb) {
    +        if (!thisInvisible) {
    +            // If invisible, do not set visual, otherwise the element will
    +            // change immediately before animation. We think it is OK to
    +            // remain its origin color when moving out of the view window.
    +            cb();
    +
    +            if (!element.__tmWillVisible) {
    +                element.invisible = false;
    +            }
    +        }
    +        else {
    +            // Delay invisible setting utill animation finished,
    +            // avoid element vanish suddenly before animation.
    +            !element.invisible && willInvisibleEls.push(element);
    +        }
    +    }
    +
    +    function prepareText(normalStyle, emphasisStyle, visualColor, width, height, upperLabelRect) {
    +        var nodeModel = thisNode.getModel();
    +        var text = retrieve(
    +            seriesModel.getFormattedLabel(
    +                thisNode.dataIndex, 'normal', null, null, upperLabelRect ? 'upperLabel' : 'label'
    +            ),
    +            nodeModel.get('name')
    +        );
    +        if (!upperLabelRect && thisLayout.isLeafRoot) {
    +            var iconChar = seriesModel.get('drillDownIcon', true);
    +            text = iconChar ? iconChar + ' ' + text : text;
    +        }
    +
    +        var normalLabelModel = nodeModel.getModel(
    +            upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL
    +        );
    +        var emphasisLabelModel = nodeModel.getModel(
    +            upperLabelRect ? PATH_UPPERLABEL_EMPHASIS : PATH_LABEL_EMPHASIS
    +        );
    +
    +        var isShow = normalLabelModel.getShallow('show');
    +
    +        setLabelStyle(
    +            normalStyle, emphasisStyle, normalLabelModel, emphasisLabelModel,
    +            {
    +                defaultText: isShow ? text : null,
    +                autoColor: visualColor,
    +                isRectText: true
    +            }
    +        );
    +
    +        upperLabelRect && (normalStyle.textRect = clone(upperLabelRect));
    +
    +        normalStyle.truncate = (isShow && normalLabelModel.get('ellipsis'))
    +            ? {
    +                outerWidth: width,
    +                outerHeight: height,
    +                minChar: 2
    +            }
    +            : null;
    +    }
    +
    +    function giveGraphic(storageName, Ctor, depth, z) {
    +        var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];
    +        var lasts = lastsForAnimation[storageName];
    +
    +        if (element) {
    +            // Remove from oldStorage
    +            oldStorage[storageName][oldRawIndex] = null;
    +            prepareAnimationWhenHasOld(lasts, element, storageName);
    +        }
    +        // If invisible and no old element, do not create new element (for optimizing).
    +        else if (!thisInvisible) {
    +            element = new Ctor({z: calculateZ(depth, z)});
    +            element.__tmDepth = depth;
    +            element.__tmStorageName = storageName;
    +            prepareAnimationWhenNoOld(lasts, element, storageName);
    +        }
    +
    +        // Set to thisStorage
    +        return (thisStorage[storageName][thisRawIndex] = element);
    +    }
    +
    +    function prepareAnimationWhenHasOld(lasts, element, storageName) {
    +        var lastCfg = lasts[thisRawIndex] = {};
    +        lastCfg.old = storageName === 'nodeGroup'
    +            ? element.position.slice()
    +            : extend({}, element.shape);
    +    }
    +
    +    // If a element is new, we need to find the animation start point carefully,
    +    // otherwise it will looks strange when 'zoomToNode'.
    +    function prepareAnimationWhenNoOld(lasts, element, storageName) {
    +        var lastCfg = lasts[thisRawIndex] = {};
    +        var parentNode = thisNode.parentNode;
    +
    +        if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) {
    +            var parentOldX = 0;
    +            var parentOldY = 0;
    +
    +            // New nodes appear from right-bottom corner in 'zoomToNode' animation.
    +            // For convenience, get old bounding rect from background.
    +            var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];
    +            if (!reRoot && parentOldBg && parentOldBg.old) {
    +                parentOldX = parentOldBg.old.width;
    +                parentOldY = parentOldBg.old.height;
    +            }
    +
    +            // When no parent old shape found, its parent is new too,
    +            // so we can just use {x:0, y:0}.
    +            lastCfg.old = storageName === 'nodeGroup'
    +                ? [0, parentOldY]
    +                : {x: parentOldX, y: parentOldY, width: 0, height: 0};
    +        }
    +
    +        // Fade in, user can be aware that these nodes are new.
    +        lastCfg.fadein = storageName !== 'nodeGroup';
    +    }
    +}
    +
    +// We can not set all backgroud with the same z, Because the behaviour of
    +// drill down and roll up differ background creation sequence from tree
    +// hierarchy sequence, which cause that lowser background element overlap
    +// upper ones. So we calculate z based on depth.
    +// Moreover, we try to shrink down z interval to [0, 1] to avoid that
    +// treemap with large z overlaps other components.
    +function calculateZ(depth, zInLevel) {
    +    var zb = depth * Z_BASE + zInLevel;
    +    return (zb - 1) / zb;
    +}
    +
    +/**
    + * @file Treemap action
    + */
    +
    +var noop$1 = function () {};
    +
    +var actionTypes = [
    +    'treemapZoomToNode',
    +    'treemapRender',
    +    'treemapMove'
    +];
    +
    +for (var i$2 = 0; i$2 < actionTypes.length; i$2++) {
    +    registerAction({type: actionTypes[i$2], update: 'updateView'}, noop$1);
    +}
    +
    +registerAction(
    +    {type: 'treemapRootToNode', update: 'updateView'},
    +    function (payload, ecModel) {
    +
    +        ecModel.eachComponent(
    +            {mainType: 'series', subType: 'treemap', query: payload},
    +            handleRootToNode
    +        );
    +
    +        function handleRootToNode(model, index) {
    +            var targetInfo = retrieveTargetInfo(payload, model);
    +
    +            if (targetInfo) {
    +                var originViewRoot = model.getViewRoot();
    +                if (originViewRoot) {
    +                    payload.direction = aboveViewRoot(originViewRoot, targetInfo.node)
    +                        ? 'rollUp' : 'drillDown';
    +                }
    +                model.resetViewRoot(targetInfo.node);
    +            }
    +        }
    +    }
    +);
    +
    +var each$12 = each$1;
    +var isObject$5 = isObject;
    +
    +var CATEGORY_DEFAULT_VISUAL_INDEX = -1;
    +
    +/**
    + * @param {Object} option
    + * @param {string} [option.type] See visualHandlers.
    + * @param {string} [option.mappingMethod] 'linear' or 'piecewise' or 'category' or 'fixed'
    + * @param {Array.<number>=} [option.dataExtent] [minExtent, maxExtent],
    + *                                              required when mappingMethod is 'linear'
    + * @param {Array.<Object>=} [option.pieceList] [
    + *                                             {value: someValue},
    + *                                             {interval: [min1, max1], visual: {...}},
    + *                                             {interval: [min2, max2]}
    + *                                             ],
    + *                                            required when mappingMethod is 'piecewise'.
    + *                                            Visual for only each piece can be specified.
    + * @param {Array.<string|Object>=} [option.categories] ['cate1', 'cate2']
    + *                                            required when mappingMethod is 'category'.
    + *                                            If no option.categories, categories is set
    + *                                            as [0, 1, 2, ...].
    + * @param {boolean} [option.loop=false] Whether loop mapping when mappingMethod is 'category'.
    + * @param {(Array|Object|*)} [option.visual]  Visual data.
    + *                                            when mappingMethod is 'category',
    + *                                            visual data can be array or object
    + *                                            (like: {cate1: '#222', none: '#fff'})
    + *                                            or primary types (which represents
    + *                                            defualt category visual), otherwise visual
    + *                                            can be array or primary (which will be
    + *                                            normalized to array).
    + *
    + */
    +var VisualMapping = function (option) {
    +    var mappingMethod = option.mappingMethod;
    +    var visualType = option.type;
    +
    +    /**
    +     * @readOnly
    +     * @type {Object}
    +     */
    +    var thisOption = this.option = clone(option);
    +
    +    /**
    +     * @readOnly
    +     * @type {string}
    +     */
    +    this.type = visualType;
    +
    +    /**
    +     * @readOnly
    +     * @type {string}
    +     */
    +    this.mappingMethod = mappingMethod;
    +
    +    /**
    +     * @private
    +     * @type {Function}
    +     */
    +    this._normalizeData = normalizers[mappingMethod];
    +
    +    var visualHandler = visualHandlers[visualType];
    +
    +    /**
    +     * @public
    +     * @type {Function}
    +     */
    +    this.applyVisual = visualHandler.applyVisual;
    +
    +    /**
    +     * @public
    +     * @type {Function}
    +     */
    +    this.getColorMapper = visualHandler.getColorMapper;
    +
    +    /**
    +     * @private
    +     * @type {Function}
    +     */
    +    this._doMap = visualHandler._doMap[mappingMethod];
    +
    +    if (mappingMethod === 'piecewise') {
    +        normalizeVisualRange(thisOption);
    +        preprocessForPiecewise(thisOption);
    +    }
    +    else if (mappingMethod === 'category') {
    +        thisOption.categories
    +            ? preprocessForSpecifiedCategory(thisOption)
    +            // categories is ordinal when thisOption.categories not specified,
    +            // which need no more preprocess except normalize visual.
    +            : normalizeVisualRange(thisOption, true);
    +    }
    +    else { // mappingMethod === 'linear' or 'fixed'
    +        assert(mappingMethod !== 'linear' || thisOption.dataExtent);
    +        normalizeVisualRange(thisOption);
    +    }
    +};
    +
    +VisualMapping.prototype = {
    +
    +    constructor: VisualMapping,
    +
    +    mapValueToVisual: function (value) {
    +        var normalized = this._normalizeData(value);
    +        return this._doMap(normalized, value);
    +    },
    +
    +    getNormalizer: function () {
    +        return bind(this._normalizeData, this);
    +    }
    +};
    +
    +var visualHandlers = VisualMapping.visualHandlers = {
    +
    +    color: {
    +
    +        applyVisual: makeApplyVisual('color'),
    +
    +        /**
    +         * Create a mapper function
    +         * @return {Function}
    +         */
    +        getColorMapper: function () {
    +            var thisOption = this.option;
    +
    +            return bind(
    +                thisOption.mappingMethod === 'category'
    +                    ? function (value, isNormalized) {
    +                        !isNormalized && (value = this._normalizeData(value));
    +                        return doMapCategory.call(this, value);
    +                    }
    +                    : function (value, isNormalized, out) {
    +                        // If output rgb array
    +                        // which will be much faster and useful in pixel manipulation
    +                        var returnRGBArray = !!out;
    +                        !isNormalized && (value = this._normalizeData(value));
    +                        out = fastLerp(value, thisOption.parsedVisual, out);
    +                        return returnRGBArray ? out : stringify(out, 'rgba');
    +                    },
    +                this
    +            );
    +        },
    +
    +        _doMap: {
    +            linear: function (normalized) {
    +                return stringify(
    +                    fastLerp(normalized, this.option.parsedVisual),
    +                    'rgba'
    +                );
    +            },
    +            category: doMapCategory,
    +            piecewise: function (normalized, value) {
    +                var result = getSpecifiedVisual.call(this, value);
    +                if (result == null) {
    +                    result = stringify(
    +                        fastLerp(normalized, this.option.parsedVisual),
    +                        'rgba'
    +                    );
    +                }
    +                return result;
    +            },
    +            fixed: doMapFixed
    +        }
    +    },
    +
    +    colorHue: makePartialColorVisualHandler(function (color, value) {
    +        return modifyHSL(color, value);
    +    }),
    +
    +    colorSaturation: makePartialColorVisualHandler(function (color, value) {
    +        return modifyHSL(color, null, value);
    +    }),
    +
    +    colorLightness: makePartialColorVisualHandler(function (color, value) {
    +        return modifyHSL(color, null, null, value);
    +    }),
    +
    +    colorAlpha: makePartialColorVisualHandler(function (color, value) {
    +        return modifyAlpha(color, value);
    +    }),
    +
    +    opacity: {
    +        applyVisual: makeApplyVisual('opacity'),
    +        _doMap: makeDoMap([0, 1])
    +    },
    +
    +    symbol: {
    +        applyVisual: function (value, getter, setter) {
    +            var symbolCfg = this.mapValueToVisual(value);
    +            if (isString(symbolCfg)) {
    +                setter('symbol', symbolCfg);
    +            }
    +            else if (isObject$5(symbolCfg)) {
    +                for (var name in symbolCfg) {
    +                    if (symbolCfg.hasOwnProperty(name)) {
    +                        setter(name, symbolCfg[name]);
    +                    }
    +                }
    +            }
    +        },
    +        _doMap: {
    +            linear: doMapToArray,
    +            category: doMapCategory,
    +            piecewise: function (normalized, value) {
    +                var result = getSpecifiedVisual.call(this, value);
    +                if (result == null) {
    +                    result = doMapToArray.call(this, normalized);
    +                }
    +                return result;
    +            },
    +            fixed: doMapFixed
    +        }
    +    },
    +
    +    symbolSize: {
    +        applyVisual: makeApplyVisual('symbolSize'),
    +        _doMap: makeDoMap([0, 1])
    +    }
    +};
    +
    +
    +function preprocessForPiecewise(thisOption) {
    +    var pieceList = thisOption.pieceList;
    +    thisOption.hasSpecialVisual = false;
    +
    +    each$1(pieceList, function (piece, index) {
    +        piece.originIndex = index;
    +        // piece.visual is "result visual value" but not
    +        // a visual range, so it does not need to be normalized.
    +        if (piece.visual != null) {
    +            thisOption.hasSpecialVisual = true;
    +        }
    +    });
    +}
    +
    +function preprocessForSpecifiedCategory(thisOption) {
    +    // Hash categories.
    +    var categories = thisOption.categories;
    +    var visual = thisOption.visual;
    +
    +    var categoryMap = thisOption.categoryMap = {};
    +    each$12(categories, function (cate, index) {
    +        categoryMap[cate] = index;
    +    });
    +
    +    // Process visual map input.
    +    if (!isArray(visual)) {
    +        var visualArr = [];
    +
    +        if (isObject(visual)) {
    +            each$12(visual, function (v, cate) {
    +                var index = categoryMap[cate];
    +                visualArr[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;
    +            });
    +        }
    +        else { // Is primary type, represents default visual.
    +            visualArr[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;
    +        }
    +
    +        visual = setVisualToOption(thisOption, visualArr);
    +    }
    +
    +    // Remove categories that has no visual,
    +    // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.
    +    for (var i = categories.length - 1; i >= 0; i--) {
    +        if (visual[i] == null) {
    +            delete categoryMap[categories[i]];
    +            categories.pop();
    +        }
    +    }
    +}
    +
    +function normalizeVisualRange(thisOption, isCategory) {
    +    var visual = thisOption.visual;
    +    var visualArr = [];
    +
    +    if (isObject(visual)) {
    +        each$12(visual, function (v) {
    +            visualArr.push(v);
    +        });
    +    }
    +    else if (visual != null) {
    +        visualArr.push(visual);
    +    }
    +
    +    var doNotNeedPair = {color: 1, symbol: 1};
    +
    +    if (!isCategory
    +        && visualArr.length === 1
    +        && !doNotNeedPair.hasOwnProperty(thisOption.type)
    +    ) {
    +        // Do not care visualArr.length === 0, which is illegal.
    +        visualArr[1] = visualArr[0];
    +    }
    +
    +    setVisualToOption(thisOption, visualArr);
    +}
    +
    +function makePartialColorVisualHandler(applyValue) {
    +    return {
    +        applyVisual: function (value, getter, setter) {
    +            value = this.mapValueToVisual(value);
    +            // Must not be array value
    +            setter('color', applyValue(getter('color'), value));
    +        },
    +        _doMap: makeDoMap([0, 1])
    +    };
    +}
    +
    +function doMapToArray(normalized) {
    +    var visual = this.option.visual;
    +    return visual[
    +        Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true))
    +    ] || {};
    +}
    +
    +function makeApplyVisual(visualType) {
    +    return function (value, getter, setter) {
    +        setter(visualType, this.mapValueToVisual(value));
    +    };
    +}
    +
    +function doMapCategory(normalized) {
    +    var visual = this.option.visual;
    +    return visual[
    +        (this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX)
    +            ? normalized % visual.length
    +            : normalized
    +    ];
    +}
    +
    +function doMapFixed() {
    +    return this.option.visual[0];
    +}
    +
    +function makeDoMap(sourceExtent) {
    +    return {
    +        linear: function (normalized) {
    +            return linearMap(normalized, sourceExtent, this.option.visual, true);
    +        },
    +        category: doMapCategory,
    +        piecewise: function (normalized, value) {
    +            var result = getSpecifiedVisual.call(this, value);
    +            if (result == null) {
    +                result = linearMap(normalized, sourceExtent, this.option.visual, true);
    +            }
    +            return result;
    +        },
    +        fixed: doMapFixed
    +    };
    +}
    +
    +function getSpecifiedVisual(value) {
    +    var thisOption = this.option;
    +    var pieceList = thisOption.pieceList;
    +    if (thisOption.hasSpecialVisual) {
    +        var pieceIndex = VisualMapping.findPieceIndex(value, pieceList);
    +        var piece = pieceList[pieceIndex];
    +        if (piece && piece.visual) {
    +            return piece.visual[this.type];
    +        }
    +    }
    +}
    +
    +function setVisualToOption(thisOption, visualArr) {
    +    thisOption.visual = visualArr;
    +    if (thisOption.type === 'color') {
    +        thisOption.parsedVisual = map(visualArr, function (item) {
    +            return parse(item);
    +        });
    +    }
    +    return visualArr;
    +}
    +
    +
    +/**
    + * Normalizers by mapping methods.
    + */
    +var normalizers = {
    +
    +    linear: function (value) {
    +        return linearMap(value, this.option.dataExtent, [0, 1], true);
    +    },
    +
    +    piecewise: function (value) {
    +        var pieceList = this.option.pieceList;
    +        var pieceIndex = VisualMapping.findPieceIndex(value, pieceList, true);
    +        if (pieceIndex != null) {
    +            return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true);
    +        }
    +    },
    +
    +    category: function (value) {
    +        var index = this.option.categories
    +            ? this.option.categoryMap[value]
    +            : value; // ordinal
    +        return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;
    +    },
    +
    +    fixed: noop
    +};
    +
    +
    +
    +/**
    + * List available visual types.
    + *
    + * @public
    + * @return {Array.<string>}
    + */
    +VisualMapping.listVisualTypes = function () {
    +    var visualTypes = [];
    +    each$1(visualHandlers, function (handler, key) {
    +        visualTypes.push(key);
    +    });
    +    return visualTypes;
    +};
    +
    +/**
    + * @public
    + */
    +VisualMapping.addVisualHandler = function (name, handler) {
    +    visualHandlers[name] = handler;
    +};
    +
    +/**
    + * @public
    + */
    +VisualMapping.isValidType = function (visualType) {
    +    return visualHandlers.hasOwnProperty(visualType);
    +};
    +
    +/**
    + * Convinent method.
    + * Visual can be Object or Array or primary type.
    + *
    + * @public
    + */
    +VisualMapping.eachVisual = function (visual, callback, context) {
    +    if (isObject(visual)) {
    +        each$1(visual, callback, context);
    +    }
    +    else {
    +        callback.call(context, visual);
    +    }
    +};
    +
    +VisualMapping.mapVisual = function (visual, callback, context) {
    +    var isPrimary;
    +    var newVisual = isArray(visual)
    +        ? []
    +        : isObject(visual)
    +        ? {}
    +        : (isPrimary = true, null);
    +
    +    VisualMapping.eachVisual(visual, function (v, key) {
    +        var newVal = callback.call(context, v, key);
    +        isPrimary ? (newVisual = newVal) : (newVisual[key] = newVal);
    +    });
    +    return newVisual;
    +};
    +
    +/**
    + * @public
    + * @param {Object} obj
    + * @return {Object} new object containers visual values.
    + *                 If no visuals, return null.
    + */
    +VisualMapping.retrieveVisuals = function (obj) {
    +    var ret = {};
    +    var hasVisual;
    +
    +    obj && each$12(visualHandlers, function (h, visualType) {
    +        if (obj.hasOwnProperty(visualType)) {
    +            ret[visualType] = obj[visualType];
    +            hasVisual = true;
    +        }
    +    });
    +
    +    return hasVisual ? ret : null;
    +};
    +
    +/**
    + * Give order to visual types, considering colorSaturation, colorAlpha depends on color.
    + *
    + * @public
    + * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}
    + *                                     IF Array, like: ['color', 'symbol', 'colorSaturation']
    + * @return {Array.<string>} Sorted visual types.
    + */
    +VisualMapping.prepareVisualTypes = function (visualTypes) {
    +    if (isObject$5(visualTypes)) {
    +        var types = [];
    +        each$12(visualTypes, function (item, type) {
    +            types.push(type);
    +        });
    +        visualTypes = types;
    +    }
    +    else if (isArray(visualTypes)) {
    +        visualTypes = visualTypes.slice();
    +    }
    +    else {
    +        return [];
    +    }
    +
    +    visualTypes.sort(function (type1, type2) {
    +        // color should be front of colorSaturation, colorAlpha, ...
    +        // symbol and symbolSize do not matter.
    +        return (type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0)
    +            ? 1 : -1;
    +    });
    +
    +    return visualTypes;
    +};
    +
    +/**
    + * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.
    + * Other visuals are only depends on themself.
    + *
    + * @public
    + * @param {string} visualType1
    + * @param {string} visualType2
    + * @return {boolean}
    + */
    +VisualMapping.dependsOn = function (visualType1, visualType2) {
    +    return visualType2 === 'color'
    +        ? !!(visualType1 && visualType1.indexOf(visualType2) === 0)
    +        : visualType1 === visualType2;
    +};
    +
    +/**
    + * @param {number} value
    + * @param {Array.<Object>} pieceList [{value: ..., interval: [min, max]}, ...]
    + *                         Always from small to big.
    + * @param {boolean} [findClosestWhenOutside=false]
    + * @return {number} index
    + */
    +VisualMapping.findPieceIndex = function (value, pieceList, findClosestWhenOutside) {
    +    var possibleI;
    +    var abs = Infinity;
    +
    +    // value has the higher priority.
    +    for (var i = 0, len = pieceList.length; i < len; i++) {
    +        var pieceValue = pieceList[i].value;
    +        if (pieceValue != null) {
    +            if (pieceValue === value
    +                // FIXME
    +                // It is supposed to compare value according to value type of dimension,
    +                // but currently value type can exactly be string or number.
    +                // Compromise for numeric-like string (like '12'), especially
    +                // in the case that visualMap.categories is ['22', '33'].
    +                || (typeof pieceValue === 'string' && pieceValue === value + '')
    +            ) {
    +                return i;
    +            }
    +            findClosestWhenOutside && updatePossible(pieceValue, i);
    +        }
    +    }
    +
    +    for (var i = 0, len = pieceList.length; i < len; i++) {
    +        var piece = pieceList[i];
    +        var interval = piece.interval;
    +        var close = piece.close;
    +
    +        if (interval) {
    +            if (interval[0] === -Infinity) {
    +                if (littleThan(close[1], value, interval[1])) {
    +                    return i;
    +                }
    +            }
    +            else if (interval[1] === Infinity) {
    +                if (littleThan(close[0], interval[0], value)) {
    +                    return i;
    +                }
    +            }
    +            else if (
    +                littleThan(close[0], interval[0], value)
    +                && littleThan(close[1], value, interval[1])
    +            ) {
    +                return i;
    +            }
    +            findClosestWhenOutside && updatePossible(interval[0], i);
    +            findClosestWhenOutside && updatePossible(interval[1], i);
    +        }
    +    }
    +
    +    if (findClosestWhenOutside) {
    +        return value === Infinity
    +            ? pieceList.length - 1
    +            : value === -Infinity
    +            ? 0
    +            : possibleI;
    +    }
    +
    +    function updatePossible(val, index) {
    +        var newAbs = Math.abs(val - value);
    +        if (newAbs < abs) {
    +            abs = newAbs;
    +            possibleI = index;
    +        }
    +    }
    +
    +};
    +
    +function littleThan(close, a, b) {
    +    return close ? a <= b : a < b;
    +}
    +
    +var isArray$2 = isArray;
    +
    +var ITEM_STYLE_NORMAL = 'itemStyle.normal';
    +
    +var treemapVisual = function (ecModel, api, payload) {
    +
    +    var condition = {mainType: 'series', subType: 'treemap', query: payload};
    +    ecModel.eachComponent(condition, function (seriesModel) {
    +
    +        var tree = seriesModel.getData().tree;
    +        var root = tree.root;
    +        var seriesItemStyleModel = seriesModel.getModel(ITEM_STYLE_NORMAL);
    +
    +        if (root.isRemoved()) {
    +            return;
    +        }
    +
    +        var levelItemStyles = map(tree.levelModels, function (levelModel) {
    +            return levelModel ? levelModel.get(ITEM_STYLE_NORMAL) : null;
    +        });
    +
    +        travelTree(
    +            root, // Visual should calculate from tree root but not view root.
    +            {},
    +            levelItemStyles,
    +            seriesItemStyleModel,
    +            seriesModel.getViewRoot().getAncestors(),
    +            seriesModel
    +        );
    +    });
    +};
    +
    +function travelTree(
    +    node, designatedVisual, levelItemStyles, seriesItemStyleModel,
    +    viewRootAncestors, seriesModel
    +) {
    +    var nodeModel = node.getModel();
    +    var nodeLayout = node.getLayout();
    +
    +    // Optimize
    +    if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) {
    +        return;
    +    }
    +
    +    var nodeItemStyleModel = node.getModel(ITEM_STYLE_NORMAL);
    +    var levelItemStyle = levelItemStyles[node.depth];
    +    var visuals = buildVisuals(
    +        nodeItemStyleModel, designatedVisual, levelItemStyle, seriesItemStyleModel
    +    );
    +
    +    // calculate border color
    +    var borderColor = nodeItemStyleModel.get('borderColor');
    +    var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');
    +    var thisNodeColor;
    +    if (borderColorSaturation != null) {
    +        // For performance, do not always execute 'calculateColor'.
    +        thisNodeColor = calculateColor(visuals, node);
    +        borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);
    +    }
    +    node.setVisual('borderColor', borderColor);
    +
    +    var viewChildren = node.viewChildren;
    +    if (!viewChildren || !viewChildren.length) {
    +        thisNodeColor = calculateColor(visuals, node);
    +        // Apply visual to this node.
    +        node.setVisual('color', thisNodeColor);
    +    }
    +    else {
    +        var mapping = buildVisualMapping(
    +            node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren
    +        );
    +
    +        // Designate visual to children.
    +        each$1(viewChildren, function (child, index) {
    +            // If higher than viewRoot, only ancestors of viewRoot is needed to visit.
    +            if (child.depth >= viewRootAncestors.length
    +                || child === viewRootAncestors[child.depth]
    +            ) {
    +                var childVisual = mapVisual$1(
    +                    nodeModel, visuals, child, index, mapping, seriesModel
    +                );
    +                travelTree(
    +                    child, childVisual, levelItemStyles, seriesItemStyleModel,
    +                    viewRootAncestors, seriesModel
    +                );
    +            }
    +        });
    +    }
    +}
    +
    +function buildVisuals(
    +    nodeItemStyleModel, designatedVisual, levelItemStyle, seriesItemStyleModel
    +) {
    +    var visuals = extend({}, designatedVisual);
    +
    +    each$1(['color', 'colorAlpha', 'colorSaturation'], function (visualName) {
    +        // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel
    +        var val = nodeItemStyleModel.get(visualName, true); // Ignore parent
    +        val == null && levelItemStyle && (val = levelItemStyle[visualName]);
    +        val == null && (val = designatedVisual[visualName]);
    +        val == null && (val = seriesItemStyleModel.get(visualName));
    +
    +        val != null && (visuals[visualName] = val);
    +    });
    +
    +    return visuals;
    +}
    +
    +function calculateColor(visuals) {
    +    var color = getValueVisualDefine(visuals, 'color');
    +
    +    if (color) {
    +        var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha');
    +        var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation');
    +        if (colorSaturation) {
    +            color = modifyHSL(color, null, null, colorSaturation);
    +        }
    +        if (colorAlpha) {
    +            color = modifyAlpha(color, colorAlpha);
    +        }
    +
    +        return color;
    +    }
    +}
    +
    +function calculateBorderColor(borderColorSaturation, thisNodeColor) {
    +    return thisNodeColor != null
    +            ? modifyHSL(thisNodeColor, null, null, borderColorSaturation)
    +            : null;
    +}
    +
    +function getValueVisualDefine(visuals, name) {
    +    var value = visuals[name];
    +    if (value != null && value !== 'none') {
    +        return value;
    +    }
    +}
    +
    +function buildVisualMapping(
    +    node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren
    +) {
    +    if (!viewChildren || !viewChildren.length) {
    +        return;
    +    }
    +
    +    var rangeVisual = getRangeVisual(nodeModel, 'color')
    +        || (
    +            visuals.color != null
    +            && visuals.color !== 'none'
    +            && (
    +                getRangeVisual(nodeModel, 'colorAlpha')
    +                || getRangeVisual(nodeModel, 'colorSaturation')
    +            )
    +        );
    +
    +    if (!rangeVisual) {
    +        return;
    +    }
    +
    +    var visualMin = nodeModel.get('visualMin');
    +    var visualMax = nodeModel.get('visualMax');
    +    var dataExtent = nodeLayout.dataExtent.slice();
    +    visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin);
    +    visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax);
    +
    +    var colorMappingBy = nodeModel.get('colorMappingBy');
    +    var opt = {
    +        type: rangeVisual.name,
    +        dataExtent: dataExtent,
    +        visual: rangeVisual.range
    +    };
    +    if (opt.type === 'color'
    +        && (colorMappingBy === 'index' || colorMappingBy === 'id')
    +    ) {
    +        opt.mappingMethod = 'category';
    +        opt.loop = true;
    +        // categories is ordinal, so do not set opt.categories.
    +    }
    +    else {
    +        opt.mappingMethod = 'linear';
    +    }
    +
    +    var mapping = new VisualMapping(opt);
    +    mapping.__drColorMappingBy = colorMappingBy;
    +
    +    return mapping;
    +}
    +
    +// Notice: If we dont have the attribute 'colorRange', but only use
    +// attribute 'color' to represent both concepts of 'colorRange' and 'color',
    +// (It means 'colorRange' when 'color' is Array, means 'color' when not array),
    +// this problem will be encountered:
    +// If a level-1 node dont have children, and its siblings has children,
    +// and colorRange is set on level-1, then the node can not be colored.
    +// So we separate 'colorRange' and 'color' to different attributes.
    +function getRangeVisual(nodeModel, name) {
    +    // 'colorRange', 'colorARange', 'colorSRange'.
    +    // If not exsits on this node, fetch from levels and series.
    +    var range = nodeModel.get(name);
    +    return (isArray$2(range) && range.length) ? {name: name, range: range} : null;
    +}
    +
    +function mapVisual$1(nodeModel, visuals, child, index, mapping, seriesModel) {
    +    var childVisuals = extend({}, visuals);
    +
    +    if (mapping) {
    +        var mappingType = mapping.type;
    +        var colorMappingBy = mappingType === 'color' && mapping.__drColorMappingBy;
    +        var value =
    +            colorMappingBy === 'index'
    +            ? index
    +            : colorMappingBy === 'id'
    +            ? seriesModel.mapIdToIndex(child.getId())
    +            : child.getValue(nodeModel.get('visualDimension'));
    +
    +        childVisuals[mappingType] = mapping.mapValueToVisual(value);
    +    }
    +
    +    return childVisuals;
    +}
    +
    +var mathMax$4 = Math.max;
    +var mathMin$4 = Math.min;
    +var retrieveValue$1 = retrieve;
    +var each$13 = each$1;
    +
    +var PATH_BORDER_WIDTH = ['itemStyle', 'normal', 'borderWidth'];
    +var PATH_GAP_WIDTH = ['itemStyle', 'normal', 'gapWidth'];
    +var PATH_UPPER_LABEL_SHOW = ['upperLabel', 'normal', 'show'];
    +var PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'normal', 'height'];
    +
    +/**
    + * @public
    + */
    +var treemapLayout = function (ecModel, api, payload) {
    +    // Layout result in each node:
    +    // {x, y, width, height, area, borderWidth}
    +    var condition = {mainType: 'series', subType: 'treemap', query: payload};
    +    ecModel.eachComponent(condition, function (seriesModel) {
    +
    +        var ecWidth = api.getWidth();
    +        var ecHeight = api.getHeight();
    +        var seriesOption = seriesModel.option;
    +
    +        var layoutInfo = getLayoutRect(
    +            seriesModel.getBoxLayoutParams(),
    +            {
    +                width: api.getWidth(),
    +                height: api.getHeight()
    +            }
    +        );
    +
    +        var size = seriesOption.size || []; // Compatible with ec2.
    +        var containerWidth = parsePercent$1(
    +            retrieveValue$1(layoutInfo.width, size[0]),
    +            ecWidth
    +        );
    +        var containerHeight = parsePercent$1(
    +            retrieveValue$1(layoutInfo.height, size[1]),
    +            ecHeight
    +        );
    +
    +        // Fetch payload info.
    +        var payloadType = payload && payload.type;
    +        var targetInfo = retrieveTargetInfo(payload, seriesModel);
    +        var rootRect = (payloadType === 'treemapRender' || payloadType === 'treemapMove')
    +            ? payload.rootRect : null;
    +        var viewRoot = seriesModel.getViewRoot();
    +        var viewAbovePath = getPathToRoot(viewRoot);
    +
    +        if (payloadType !== 'treemapMove') {
    +            var rootSize = payloadType === 'treemapZoomToNode'
    +                ? estimateRootSize(
    +                    seriesModel, targetInfo, viewRoot, containerWidth, containerHeight
    +                )
    +                : rootRect
    +                ? [rootRect.width, rootRect.height]
    +                : [containerWidth, containerHeight];
    +
    +            var sort = seriesOption.sort;
    +            if (sort && sort !== 'asc' && sort !== 'desc') {
    +                sort = 'desc';
    +            }
    +            var options = {
    +                squareRatio: seriesOption.squareRatio,
    +                sort: sort,
    +                leafDepth: seriesOption.leafDepth
    +            };
    +
    +            // layout should be cleared because using updateView but not update.
    +            viewRoot.hostTree.clearLayouts();
    +
    +            // TODO
    +            // optimize: if out of view clip, do not layout.
    +            // But take care that if do not render node out of view clip,
    +            // how to calculate start po
    +
    +            var viewRootLayout = {
    +                x: 0, y: 0,
    +                width: rootSize[0], height: rootSize[1],
    +                area: rootSize[0] * rootSize[1]
    +            };
    +            viewRoot.setLayout(viewRootLayout);
    +
    +            squarify(viewRoot, options, false, 0);
    +            // Supplement layout.
    +            var viewRootLayout = viewRoot.getLayout();
    +            each$13(viewAbovePath, function (node, index) {
    +                var childValue = (viewAbovePath[index + 1] || viewRoot).getValue();
    +                node.setLayout(extend(
    +                    {dataExtent: [childValue, childValue], borderWidth: 0, upperHeight: 0},
    +                    viewRootLayout
    +                ));
    +            });
    +        }
    +
    +        var treeRoot = seriesModel.getData().tree.root;
    +
    +        treeRoot.setLayout(
    +            calculateRootPosition(layoutInfo, rootRect, targetInfo),
    +            true
    +        );
    +
    +        seriesModel.setLayoutInfo(layoutInfo);
    +
    +        // FIXME
    +        // 现在没有clip功能,暂时取ec高宽。
    +        prunning(
    +            treeRoot,
    +            // Transform to base element coordinate system.
    +            new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight),
    +            viewAbovePath,
    +            viewRoot,
    +            0
    +        );
    +    });
    +};
    +
    +/**
    + * Layout treemap with squarify algorithm.
    + * @see https://graphics.ethz.ch/teaching/scivis_common/Literature/squarifiedTreeMaps.pdf
    + * @see https://github.com/mbostock/d3/blob/master/src/layout/treemap.js
    + *
    + * @protected
    + * @param {module:echarts/data/Tree~TreeNode} node
    + * @param {Object} options
    + * @param {string} options.sort 'asc' or 'desc'
    + * @param {number} options.squareRatio
    + * @param {boolean} hideChildren
    + * @param {number} depth
    + */
    +function squarify(node, options, hideChildren, depth) {
    +    var width;
    +    var height;
    +
    +    if (node.isRemoved()) {
    +        return;
    +    }
    +
    +    var thisLayout = node.getLayout();
    +    width = thisLayout.width;
    +    height = thisLayout.height;
    +
    +    // Considering border and gap
    +    var nodeModel = node.getModel();
    +    var borderWidth = nodeModel.get(PATH_BORDER_WIDTH);
    +    var halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2;
    +    var upperLabelHeight = getUpperLabelHeight(nodeModel);
    +    var upperHeight = Math.max(borderWidth, upperLabelHeight);
    +    var layoutOffset = borderWidth - halfGapWidth;
    +    var layoutOffsetUpper = upperHeight - halfGapWidth;
    +    var nodeModel = node.getModel();
    +
    +    node.setLayout({
    +        borderWidth: borderWidth,
    +        upperHeight: upperHeight,
    +        upperLabelHeight: upperLabelHeight
    +    }, true);
    +
    +    width = mathMax$4(width - 2 * layoutOffset, 0);
    +    height = mathMax$4(height - layoutOffset - layoutOffsetUpper, 0);
    +
    +    var totalArea = width * height;
    +    var viewChildren = initChildren(
    +        node, nodeModel, totalArea, options, hideChildren, depth
    +    );
    +
    +    if (!viewChildren.length) {
    +        return;
    +    }
    +
    +    var rect = {x: layoutOffset, y: layoutOffsetUpper, width: width, height: height};
    +    var rowFixedLength = mathMin$4(width, height);
    +    var best = Infinity; // the best row score so far
    +    var row = [];
    +    row.area = 0;
    +
    +    for (var i = 0, len = viewChildren.length; i < len;) {
    +        var child = viewChildren[i];
    +
    +        row.push(child);
    +        row.area += child.getLayout().area;
    +        var score = worst(row, rowFixedLength, options.squareRatio);
    +
    +        // continue with this orientation
    +        if (score <= best) {
    +            i++;
    +            best = score;
    +        }
    +        // abort, and try a different orientation
    +        else {
    +            row.area -= row.pop().getLayout().area;
    +            position(row, rowFixedLength, rect, halfGapWidth, false);
    +            rowFixedLength = mathMin$4(rect.width, rect.height);
    +            row.length = row.area = 0;
    +            best = Infinity;
    +        }
    +    }
    +
    +    if (row.length) {
    +        position(row, rowFixedLength, rect, halfGapWidth, true);
    +    }
    +
    +    if (!hideChildren) {
    +        var childrenVisibleMin = nodeModel.get('childrenVisibleMin');
    +        if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {
    +            hideChildren = true;
    +        }
    +    }
    +
    +    for (var i = 0, len = viewChildren.length; i < len; i++) {
    +        squarify(viewChildren[i], options, hideChildren, depth + 1);
    +    }
    +}
    +
    +/**
    + * Set area to each child, and calculate data extent for visual coding.
    + */
    +function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {
    +    var viewChildren = node.children || [];
    +    var orderBy = options.sort;
    +    orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);
    +
    +    var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;
    +
    +    // leafDepth has higher priority.
    +    if (hideChildren && !overLeafDepth) {
    +        return (node.viewChildren = []);
    +    }
    +
    +    // Sort children, order by desc.
    +    viewChildren = filter(viewChildren, function (child) {
    +        return !child.isRemoved();
    +    });
    +
    +    sort$1(viewChildren, orderBy);
    +
    +    var info = statistic(nodeModel, viewChildren, orderBy);
    +
    +    if (info.sum === 0) {
    +        return (node.viewChildren = []);
    +    }
    +
    +    info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);
    +
    +    if (info.sum === 0) {
    +        return (node.viewChildren = []);
    +    }
    +
    +    // Set area to each child.
    +    for (var i = 0, len = viewChildren.length; i < len; i++) {
    +        var area = viewChildren[i].getValue() / info.sum * totalArea;
    +        // Do not use setLayout({...}, true), because it is needed to clear last layout.
    +        viewChildren[i].setLayout({area: area});
    +    }
    +
    +    if (overLeafDepth) {
    +        viewChildren.length && node.setLayout({isLeafRoot: true}, true);
    +        viewChildren.length = 0;
    +    }
    +
    +    node.viewChildren = viewChildren;
    +    node.setLayout({dataExtent: info.dataExtent}, true);
    +
    +    return viewChildren;
    +}
    +
    +/**
    + * Consider 'visibleMin'. Modify viewChildren and get new sum.
    + */
    +function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {
    +
    +    // visibleMin is not supported yet when no option.sort.
    +    if (!orderBy) {
    +        return sum;
    +    }
    +
    +    var visibleMin = nodeModel.get('visibleMin');
    +    var len = orderedChildren.length;
    +    var deletePoint = len;
    +
    +    // Always travel from little value to big value.
    +    for (var i = len - 1; i >= 0; i--) {
    +        var value = orderedChildren[
    +            orderBy === 'asc' ? len - i - 1 : i
    +        ].getValue();
    +
    +        if (value / sum * totalArea < visibleMin) {
    +            deletePoint = i;
    +            sum -= value;
    +        }
    +    }
    +
    +    orderBy === 'asc'
    +        ? orderedChildren.splice(0, len - deletePoint)
    +        : orderedChildren.splice(deletePoint, len - deletePoint);
    +
    +    return sum;
    +}
    +
    +/**
    + * Sort
    + */
    +function sort$1(viewChildren, orderBy) {
    +    if (orderBy) {
    +        viewChildren.sort(function (a, b) {
    +            var diff = orderBy === 'asc'
    +                ?  a.getValue() - b.getValue() : b.getValue() - a.getValue();
    +            return diff === 0
    +                ? (orderBy === 'asc'
    +                    ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex
    +                )
    +                : diff;
    +        });
    +    }
    +    return viewChildren;
    +}
    +
    +/**
    + * Statistic
    + */
    +function statistic(nodeModel, children, orderBy) {
    +    // Calculate sum.
    +    var sum = 0;
    +    for (var i = 0, len = children.length; i < len; i++) {
    +        sum += children[i].getValue();
    +    }
    +
    +    // Statistic data extent for latter visual coding.
    +    // Notice: data extent should be calculate based on raw children
    +    // but not filtered view children, otherwise visual mapping will not
    +    // be stable when zoom (where children is filtered by visibleMin).
    +
    +    var dimension = nodeModel.get('visualDimension');
    +    var dataExtent;
    +
    +    // The same as area dimension.
    +    if (!children || !children.length) {
    +        dataExtent = [NaN, NaN];
    +    }
    +    else if (dimension === 'value' && orderBy) {
    +        dataExtent = [
    +            children[children.length - 1].getValue(),
    +            children[0].getValue()
    +        ];
    +        orderBy === 'asc' && dataExtent.reverse();
    +    }
    +    // Other dimension.
    +    else {
    +        var dataExtent = [Infinity, -Infinity];
    +        each$13(children, function (child) {
    +            var value = child.getValue(dimension);
    +            value < dataExtent[0] && (dataExtent[0] = value);
    +            value > dataExtent[1] && (dataExtent[1] = value);
    +        });
    +    }
    +
    +    return {sum: sum, dataExtent: dataExtent};
    +}
    +
    +/**
    + * Computes the score for the specified row,
    + * as the worst aspect ratio.
    + */
    +function worst(row, rowFixedLength, ratio) {
    +    var areaMax = 0;
    +    var areaMin = Infinity;
    +
    +    for (var i = 0, area, len = row.length; i < len; i++) {
    +        area = row[i].getLayout().area;
    +        if (area) {
    +            area < areaMin && (areaMin = area);
    +            area > areaMax && (areaMax = area);
    +        }
    +    }
    +
    +    var squareArea = row.area * row.area;
    +    var f = rowFixedLength * rowFixedLength * ratio;
    +
    +    return squareArea
    +        ? mathMax$4(
    +            (f * areaMax) / squareArea,
    +            squareArea / (f * areaMin)
    +        )
    +        : Infinity;
    +}
    +
    +/**
    + * Positions the specified row of nodes. Modifies `rect`.
    + */
    +function position(row, rowFixedLength, rect, halfGapWidth, flush) {
    +    // When rowFixedLength === rect.width,
    +    // it is horizontal subdivision,
    +    // rowFixedLength is the width of the subdivision,
    +    // rowOtherLength is the height of the subdivision,
    +    // and nodes will be positioned from left to right.
    +
    +    // wh[idx0WhenH] means: when horizontal,
    +    //      wh[idx0WhenH] => wh[0] => 'width'.
    +    //      xy[idx1WhenH] => xy[1] => 'y'.
    +    var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;
    +    var idx1WhenH = 1 - idx0WhenH;
    +    var xy = ['x', 'y'];
    +    var wh = ['width', 'height'];
    +
    +    var last = rect[xy[idx0WhenH]];
    +    var rowOtherLength = rowFixedLength
    +        ? row.area / rowFixedLength : 0;
    +
    +    if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {
    +        rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow
    +    }
    +    for (var i = 0, rowLen = row.length; i < rowLen; i++) {
    +        var node = row[i];
    +        var nodeLayout = {};
    +        var step = rowOtherLength
    +            ? node.getLayout().area / rowOtherLength : 0;
    +
    +        var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax$4(rowOtherLength - 2 * halfGapWidth, 0);
    +
    +        // We use Math.max/min to avoid negative width/height when considering gap width.
    +        var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;
    +        var modWH = (i === rowLen - 1 || remain < step) ? remain : step;
    +        var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax$4(modWH - 2 * halfGapWidth, 0);
    +
    +        nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin$4(halfGapWidth, wh1 / 2);
    +        nodeLayout[xy[idx0WhenH]] = last + mathMin$4(halfGapWidth, wh0 / 2);
    +
    +        last += modWH;
    +        node.setLayout(nodeLayout, true);
    +    }
    +
    +    rect[xy[idx1WhenH]] += rowOtherLength;
    +    rect[wh[idx1WhenH]] -= rowOtherLength;
    +}
    +
    +// Return [containerWidth, containerHeight] as defualt.
    +function estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) {
    +    // If targetInfo.node exists, we zoom to the node,
    +    // so estimate whold width and heigth by target node.
    +    var currNode = (targetInfo || {}).node;
    +    var defaultSize = [containerWidth, containerHeight];
    +
    +    if (!currNode || currNode === viewRoot) {
    +        return defaultSize;
    +    }
    +
    +    var parent;
    +    var viewArea = containerWidth * containerHeight;
    +    var area = viewArea * seriesModel.option.zoomToNodeRatio;
    +
    +    while (parent = currNode.parentNode) { // jshint ignore:line
    +        var sum = 0;
    +        var siblings = parent.children;
    +
    +        for (var i = 0, len = siblings.length; i < len; i++) {
    +            sum += siblings[i].getValue();
    +        }
    +        var currNodeValue = currNode.getValue();
    +        if (currNodeValue === 0) {
    +            return defaultSize;
    +        }
    +        area *= sum / currNodeValue;
    +
    +        // Considering border, suppose aspect ratio is 1.
    +        var parentModel = parent.getModel();
    +        var borderWidth = parentModel.get(PATH_BORDER_WIDTH);
    +        var upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel, borderWidth));
    +        area += 4 * borderWidth * borderWidth
    +            + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5);
    +
    +        area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER);
    +
    +        currNode = parent;
    +    }
    +
    +    area < viewArea && (area = viewArea);
    +    var scale = Math.pow(area / viewArea, 0.5);
    +
    +    return [containerWidth * scale, containerHeight * scale];
    +}
    +
    +// Root postion base on coord of containerGroup
    +function calculateRootPosition(layoutInfo, rootRect, targetInfo) {
    +    if (rootRect) {
    +        return {x: rootRect.x, y: rootRect.y};
    +    }
    +
    +    var defaultPosition = {x: 0, y: 0};
    +    if (!targetInfo) {
    +        return defaultPosition;
    +    }
    +
    +    // If targetInfo is fetched by 'retrieveTargetInfo',
    +    // old tree and new tree are the same tree,
    +    // so the node still exists and we can visit it.
    +
    +    var targetNode = targetInfo.node;
    +    var layout = targetNode.getLayout();
    +
    +    if (!layout) {
    +        return defaultPosition;
    +    }
    +
    +    // Transform coord from local to container.
    +    var targetCenter = [layout.width / 2, layout.height / 2];
    +    var node = targetNode;
    +    while (node) {
    +        var nodeLayout = node.getLayout();
    +        targetCenter[0] += nodeLayout.x;
    +        targetCenter[1] += nodeLayout.y;
    +        node = node.parentNode;
    +    }
    +
    +    return {
    +        x: layoutInfo.width / 2 - targetCenter[0],
    +        y: layoutInfo.height / 2 - targetCenter[1]
    +    };
    +}
    +
    +// Mark nodes visible for prunning when visual coding and rendering.
    +// Prunning depends on layout and root position, so we have to do it after layout.
    +function prunning(node, clipRect, viewAbovePath, viewRoot, depth) {
    +    var nodeLayout = node.getLayout();
    +    var nodeInViewAbovePath = viewAbovePath[depth];
    +    var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;
    +
    +    if (
    +        (nodeInViewAbovePath && !isAboveViewRoot)
    +        || (depth === viewAbovePath.length && node !== viewRoot)
    +    ) {
    +        return;
    +    }
    +
    +    node.setLayout({
    +        // isInView means: viewRoot sub tree + viewAbovePath
    +        isInView: true,
    +        // invisible only means: outside view clip so that the node can not
    +        // see but still layout for animation preparation but not render.
    +        invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),
    +        isAboveViewRoot: isAboveViewRoot
    +    }, true);
    +
    +    // Transform to child coordinate.
    +    var childClipRect = new BoundingRect(
    +        clipRect.x - nodeLayout.x,
    +        clipRect.y - nodeLayout.y,
    +        clipRect.width,
    +        clipRect.height
    +    );
    +
    +    each$13(node.viewChildren || [], function (child) {
    +        prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);
    +    });
    +}
    +
    +function getUpperLabelHeight(model) {
    +    return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0;
    +}
    +
    +registerVisual(treemapVisual);
    +registerLayout(treemapLayout);
    +
    +/**
    + * Graph data structure
    + *
    + * @module echarts/data/Graph
    + * @author Yi Shen(https://www.github.com/pissang)
    + */
    +
    +// id may be function name of Object, add a prefix to avoid this problem.
    +function generateNodeKey (id) {
    +    return '_EC_' + id;
    +}
    +/**
    + * @alias module:echarts/data/Graph
    + * @constructor
    + * @param {boolean} directed
    + */
    +var Graph = function(directed) {
    +    /**
    +     * 是否是有向图
    +     * @type {boolean}
    +     * @private
    +     */
    +    this._directed = directed || false;
    +
    +    /**
    +     * @type {Array.<module:echarts/data/Graph.Node>}
    +     * @readOnly
    +     */
    +    this.nodes = [];
    +
    +    /**
    +     * @type {Array.<module:echarts/data/Graph.Edge>}
    +     * @readOnly
    +     */
    +    this.edges = [];
    +
    +    /**
    +     * @type {Object.<string, module:echarts/data/Graph.Node>}
    +     * @private
    +     */
    +    this._nodesMap = {};
    +    /**
    +     * @type {Object.<string, module:echarts/data/Graph.Edge>}
    +     * @private
    +     */
    +    this._edgesMap = {};
    +
    +    /**
    +     * @type {module:echarts/data/List}
    +     * @readOnly
    +     */
    +    this.data;
    +
    +    /**
    +     * @type {module:echarts/data/List}
    +     * @readOnly
    +     */
    +    this.edgeData;
    +};
    +
    +var graphProto = Graph.prototype;
    +/**
    + * @type {string}
    + */
    +graphProto.type = 'graph';
    +
    +/**
    + * If is directed graph
    + * @return {boolean}
    + */
    +graphProto.isDirected = function () {
    +    return this._directed;
    +};
    +
    +/**
    + * Add a new node
    + * @param {string} id
    + * @param {number} [dataIndex]
    + */
    +graphProto.addNode = function (id, dataIndex) {
    +    id = id || ('' + dataIndex);
    +
    +    var nodesMap = this._nodesMap;
    +
    +    if (nodesMap[generateNodeKey(id)]) {
    +        if (__DEV__) {
    +            console.error('Graph nodes have duplicate name or id');
    +        }
    +        return;
    +    }
    +
    +    var node = new Node(id, dataIndex);
    +    node.hostGraph = this;
    +
    +    this.nodes.push(node);
    +
    +    nodesMap[generateNodeKey(id)] = node;
    +    return node;
    +};
    +
    +/**
    + * Get node by data index
    + * @param  {number} dataIndex
    + * @return {module:echarts/data/Graph~Node}
    + */
    +graphProto.getNodeByIndex = function (dataIndex) {
    +    var rawIdx = this.data.getRawIndex(dataIndex);
    +    return this.nodes[rawIdx];
    +};
    +/**
    + * Get node by id
    + * @param  {string} id
    + * @return {module:echarts/data/Graph.Node}
    + */
    +graphProto.getNodeById = function (id) {
    +    return this._nodesMap[generateNodeKey(id)];
    +};
    +
    +/**
    + * Add a new edge
    + * @param {number|string|module:echarts/data/Graph.Node} n1
    + * @param {number|string|module:echarts/data/Graph.Node} n2
    + * @param {number} [dataIndex=-1]
    + * @return {module:echarts/data/Graph.Edge}
    + */
    +graphProto.addEdge = function (n1, n2, dataIndex) {
    +    var nodesMap = this._nodesMap;
    +    var edgesMap = this._edgesMap;
    +
    +    // PNEDING
    +    if (typeof n1 === 'number') {
    +        n1 = this.nodes[n1];
    +    }
    +    if (typeof n2 === 'number') {
    +        n2 = this.nodes[n2];
    +    }
    +
    +    if (!(n1 instanceof Node)) {
    +        n1 = nodesMap[generateNodeKey(n1)];
    +    }
    +    if (!(n2 instanceof Node)) {
    +        n2 = nodesMap[generateNodeKey(n2)];
    +    }
    +    if (!n1 || !n2) {
    +        return;
    +    }
    +
    +    var key = n1.id + '-' + n2.id;
    +    // PENDING
    +    if (edgesMap[key]) {
    +        return;
    +    }
    +
    +    var edge = new Edge(n1, n2, dataIndex);
    +    edge.hostGraph = this;
    +
    +    if (this._directed) {
    +        n1.outEdges.push(edge);
    +        n2.inEdges.push(edge);
    +    }
    +    n1.edges.push(edge);
    +    if (n1 !== n2) {
    +        n2.edges.push(edge);
    +    }
    +
    +    this.edges.push(edge);
    +    edgesMap[key] = edge;
    +
    +    return edge;
    +};
    +
    +/**
    + * Get edge by data index
    + * @param  {number} dataIndex
    + * @return {module:echarts/data/Graph~Node}
    + */
    +graphProto.getEdgeByIndex = function (dataIndex) {
    +    var rawIdx = this.edgeData.getRawIndex(dataIndex);
    +    return this.edges[rawIdx];
    +};
    +/**
    + * Get edge by two linked nodes
    + * @param  {module:echarts/data/Graph.Node|string} n1
    + * @param  {module:echarts/data/Graph.Node|string} n2
    + * @return {module:echarts/data/Graph.Edge}
    + */
    +graphProto.getEdge = function (n1, n2) {
    +    if (n1 instanceof Node) {
    +        n1 = n1.id;
    +    }
    +    if (n2 instanceof Node) {
    +        n2 = n2.id;
    +    }
    +
    +    var edgesMap = this._edgesMap;
    +
    +    if (this._directed) {
    +        return edgesMap[n1 + '-' + n2];
    +    } else {
    +        return edgesMap[n1 + '-' + n2]
    +            || edgesMap[n2 + '-' + n1];
    +    }
    +};
    +
    +/**
    + * Iterate all nodes
    + * @param  {Function} cb
    + * @param  {*} [context]
    + */
    +graphProto.eachNode = function (cb, context) {
    +    var nodes = this.nodes;
    +    var len = nodes.length;
    +    for (var i = 0; i < len; i++) {
    +        if (nodes[i].dataIndex >= 0) {
    +            cb.call(context, nodes[i], i);
    +        }
    +    }
    +};
    +
    +/**
    + * Iterate all edges
    + * @param  {Function} cb
    + * @param  {*} [context]
    + */
    +graphProto.eachEdge = function (cb, context) {
    +    var edges = this.edges;
    +    var len = edges.length;
    +    for (var i = 0; i < len; i++) {
    +        if (edges[i].dataIndex >= 0
    +            && edges[i].node1.dataIndex >= 0
    +            && edges[i].node2.dataIndex >= 0
    +        ) {
    +            cb.call(context, edges[i], i);
    +        }
    +    }
    +};
    +
    +/**
    + * Breadth first traverse
    + * @param {Function} cb
    + * @param {module:echarts/data/Graph.Node} startNode
    + * @param {string} [direction='none'] 'none'|'in'|'out'
    + * @param {*} [context]
    + */
    +graphProto.breadthFirstTraverse = function (
    +    cb, startNode, direction, context
    +) {
    +    if (!(startNode instanceof Node)) {
    +        startNode = this._nodesMap[generateNodeKey(startNode)];
    +    }
    +    if (!startNode) {
    +        return;
    +    }
    +
    +    var edgeType = direction === 'out'
    +        ? 'outEdges' : (direction === 'in' ? 'inEdges' : 'edges');
    +
    +    for (var i = 0; i < this.nodes.length; i++) {
    +        this.nodes[i].__visited = false;
    +    }
    +
    +    if (cb.call(context, startNode, null)) {
    +        return;
    +    }
    +
    +    var queue = [startNode];
    +    while (queue.length) {
    +        var currentNode = queue.shift();
    +        var edges = currentNode[edgeType];
    +
    +        for (var i = 0; i < edges.length; i++) {
    +            var e = edges[i];
    +            var otherNode = e.node1 === currentNode
    +                ? e.node2 : e.node1;
    +            if (!otherNode.__visited) {
    +                if (cb.call(context, otherNode, currentNode)) {
    +                    // Stop traversing
    +                    return;
    +                }
    +                queue.push(otherNode);
    +                otherNode.__visited = true;
    +            }
    +        }
    +    }
    +};
    +
    +// TODO
    +// graphProto.depthFirstTraverse = function (
    +//     cb, startNode, direction, context
    +// ) {
    +
    +// };
    +
    +// Filter update
    +graphProto.update = function () {
    +    var data = this.data;
    +    var edgeData = this.edgeData;
    +    var nodes = this.nodes;
    +    var edges = this.edges;
    +
    +    for (var i = 0, len = nodes.length; i < len; i++) {
    +        nodes[i].dataIndex = -1;
    +    }
    +    for (var i = 0, len = data.count(); i < len; i++) {
    +        nodes[data.getRawIndex(i)].dataIndex = i;
    +    }
    +
    +    edgeData.filterSelf(function (idx) {
    +        var edge = edges[edgeData.getRawIndex(idx)];
    +        return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;
    +    });
    +
    +    // Update edge
    +    for (var i = 0, len = edges.length; i < len; i++) {
    +        edges[i].dataIndex = -1;
    +    }
    +    for (var i = 0, len = edgeData.count(); i < len; i++) {
    +        edges[edgeData.getRawIndex(i)].dataIndex = i;
    +    }
    +};
    +
    +/**
    + * @return {module:echarts/data/Graph}
    + */
    +graphProto.clone = function () {
    +    var graph = new Graph(this._directed);
    +    var nodes = this.nodes;
    +    var edges = this.edges;
    +    for (var i = 0; i < nodes.length; i++) {
    +        graph.addNode(nodes[i].id, nodes[i].dataIndex);
    +    }
    +    for (var i = 0; i < edges.length; i++) {
    +        var e = edges[i];
    +        graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);
    +    }
    +    return graph;
    +};
    +
    +
    +/**
    + * @alias module:echarts/data/Graph.Node
    + */
    +function Node(id, dataIndex) {
    +    /**
    +    * @type {string}
    +    */
    +    this.id = id == null ? '' : id;
    +
    +    /**
    +    * @type {Array.<module:echarts/data/Graph.Edge>}
    +    */
    +    this.inEdges = [];
    +    /**
    +    * @type {Array.<module:echarts/data/Graph.Edge>}
    +    */
    +    this.outEdges = [];
    +    /**
    +    * @type {Array.<module:echarts/data/Graph.Edge>}
    +    */
    +    this.edges = [];
    +    /**
    +     * @type {module:echarts/data/Graph}
    +     */
    +    this.hostGraph;
    +
    +    /**
    +     * @type {number}
    +     */
    +    this.dataIndex = dataIndex == null ? -1 : dataIndex;
    +}
    +
    +Node.prototype = {
    +
    +    constructor: Node,
    +
    +    /**
    +     * @return {number}
    +     */
    +    degree: function () {
    +        return this.edges.length;
    +    },
    +
    +    /**
    +     * @return {number}
    +     */
    +    inDegree: function () {
    +        return this.inEdges.length;
    +    },
    +
    +    /**
    +    * @return {number}
    +    */
    +    outDegree: function () {
    +        return this.outEdges.length;
    +    },
    +
    +    /**
    +     * @param {string} [path]
    +     * @return {module:echarts/model/Model}
    +     */
    +    getModel: function (path) {
    +        if (this.dataIndex < 0) {
    +            return;
    +        }
    +        var graph = this.hostGraph;
    +        var itemModel = graph.data.getItemModel(this.dataIndex);
    +
    +        return itemModel.getModel(path);
    +    }
    +};
    +
    +/**
    + * 图边
    + * @alias module:echarts/data/Graph.Edge
    + * @param {module:echarts/data/Graph.Node} n1
    + * @param {module:echarts/data/Graph.Node} n2
    + * @param {number} [dataIndex=-1]
    + */
    +function Edge(n1, n2, dataIndex) {
    +
    +    /**
    +     * 节点1,如果是有向图则为源节点
    +     * @type {module:echarts/data/Graph.Node}
    +     */
    +    this.node1 = n1;
    +
    +    /**
    +     * 节点2,如果是有向图则为目标节点
    +     * @type {module:echarts/data/Graph.Node}
    +     */
    +    this.node2 = n2;
    +
    +    this.dataIndex = dataIndex == null ? -1 : dataIndex;
    +}
    +
    +/**
    + * @param {string} [path]
    + * @return {module:echarts/model/Model}
    + */
    +    Edge.prototype.getModel = function (path) {
    +    if (this.dataIndex < 0) {
    +        return;
    +    }
    +    var graph = this.hostGraph;
    +    var itemModel = graph.edgeData.getItemModel(this.dataIndex);
    +
    +    return itemModel.getModel(path);
    +};
    +
    +var createGraphDataProxyMixin = function (hostName, dataName) {
    +    return {
    +        /**
    +         * @param {string=} [dimension='value'] Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.
    +         * @return {number}
    +         */
    +        getValue: function (dimension) {
    +            var data = this[hostName][dataName];
    +            return data.get(data.getDimension(dimension || 'value'), this.dataIndex);
    +        },
    +
    +        /**
    +         * @param {Object|string} key
    +         * @param {*} [value]
    +         */
    +        setVisual: function (key, value) {
    +            this.dataIndex >= 0
    +                && this[hostName][dataName].setItemVisual(this.dataIndex, key, value);
    +        },
    +
    +        /**
    +         * @param {string} key
    +         * @return {boolean}
    +         */
    +        getVisual: function (key, ignoreParent) {
    +            return this[hostName][dataName].getItemVisual(this.dataIndex, key, ignoreParent);
    +        },
    +
    +        /**
    +         * @param {Object} layout
    +         * @return {boolean} [merge=false]
    +         */
    +        setLayout: function (layout, merge$$1) {
    +            this.dataIndex >= 0
    +                && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge$$1);
    +        },
    +
    +        /**
    +         * @return {Object}
    +         */
    +        getLayout: function () {
    +            return this[hostName][dataName].getItemLayout(this.dataIndex);
    +        },
    +
    +        /**
    +         * @return {module:zrender/Element}
    +         */
    +        getGraphicEl: function () {
    +            return this[hostName][dataName].getItemGraphicEl(this.dataIndex);
    +        },
    +
    +        /**
    +         * @return {number}
    +         */
    +        getRawIndex: function () {
    +            return this[hostName][dataName].getRawIndex(this.dataIndex);
    +        }
    +    };
    +};
    +
    +mixin(Node, createGraphDataProxyMixin('hostGraph', 'data'));
    +mixin(Edge, createGraphDataProxyMixin('hostGraph', 'edgeData'));
    +
    +Graph.Node = Node;
    +Graph.Edge = Edge;
    +
    +var createGraphFromNodeEdge = function (nodes, edges, hostModel, directed, beforeLink) {
    +    var graph = new Graph(directed);
    +    for (var i = 0; i < nodes.length; i++) {
    +        graph.addNode(retrieve(
    +            // Id, name, dataIndex
    +            nodes[i].id, nodes[i].name, i
    +        ), i);
    +    }
    +
    +    var linkNameList = [];
    +    var validEdges = [];
    +    var linkCount = 0;
    +    for (var i = 0; i < edges.length; i++) {
    +        var link = edges[i];
    +        var source = link.source;
    +        var target = link.target;
    +        // addEdge may fail when source or target not exists
    +        if (graph.addEdge(source, target, linkCount)) {
    +            validEdges.push(link);
    +            linkNameList.push(retrieve(link.id, source + ' > ' + target));
    +            linkCount++;
    +        }
    +    }
    +
    +    var coordSys = hostModel.get('coordinateSystem');
    +    var nodeData;
    +    if (coordSys === 'cartesian2d' || coordSys === 'polar') {
    +        nodeData = createListFromArray(nodes, hostModel, hostModel.ecModel);
    +    }
    +    else {
    +        // FIXME
    +        var coordSysCtor = CoordinateSystemManager.get(coordSys);
    +        // FIXME
    +        var dimensionNames = completeDimensions(
    +            ((coordSysCtor && coordSysCtor.type !== 'view') ? (coordSysCtor.dimensions || []) : []).concat(['value']),
    +            nodes
    +        );
    +        nodeData = new List(dimensionNames, hostModel);
    +        nodeData.initData(nodes);
    +    }
    +
    +    var edgeData = new List(['value'], hostModel);
    +    edgeData.initData(validEdges, linkNameList);
    +
    +    beforeLink && beforeLink(nodeData, edgeData);
    +
    +    linkList({
    +        mainData: nodeData,
    +        struct: graph,
    +        structAttr: 'graph',
    +        datas: {node: nodeData, edge: edgeData},
    +        datasAttr: {node: 'data', edge: 'edgeData'}
    +    });
    +
    +    // Update dataIndex of nodes and edges because invalid edge may be removed
    +    graph.update();
    +
    +    return graph;
    +};
    +
    +var GraphSeries = extendSeriesModel({
    +
    +    type: 'series.graph',
    +
    +    init: function (option) {
    +        GraphSeries.superApply(this, 'init', arguments);
    +
    +        // Provide data for legend select
    +        this.legendDataProvider = function () {
    +            return this._categoriesData;
    +        };
    +
    +        this.fillDataTextStyle(option.edges || option.links);
    +
    +        this._updateCategoriesData();
    +    },
    +
    +    mergeOption: function (option) {
    +        GraphSeries.superApply(this, 'mergeOption', arguments);
    +
    +        this.fillDataTextStyle(option.edges || option.links);
    +
    +        this._updateCategoriesData();
    +    },
    +
    +    mergeDefaultAndTheme: function (option) {
    +        GraphSeries.superApply(this, 'mergeDefaultAndTheme', arguments);
    +        defaultEmphasis(option.edgeLabel, ['show']);
    +    },
    +
    +    getInitialData: function (option, ecModel) {
    +        var edges = option.edges || option.links || [];
    +        var nodes = option.data || option.nodes || [];
    +        var self = this;
    +
    +        if (nodes && edges) {
    +            return createGraphFromNodeEdge(nodes, edges, this, true, beforeLink).data;
    +        }
    +
    +        function beforeLink(nodeData, edgeData) {
    +            // Overwrite nodeData.getItemModel to
    +            nodeData.wrapMethod('getItemModel', function (model) {
    +                var categoriesModels = self._categoriesModels;
    +                var categoryIdx = model.getShallow('category');
    +                var categoryModel = categoriesModels[categoryIdx];
    +                if (categoryModel) {
    +                    categoryModel.parentModel = model.parentModel;
    +                    model.parentModel = categoryModel;
    +                }
    +                return model;
    +            });
    +
    +            var edgeLabelModel = self.getModel('edgeLabel');
    +            // For option `edgeLabel` can be found by label.xxx.xxx on item mode.
    +            var fakeSeriesModel = new Model(
    +                {label: edgeLabelModel.option},
    +                edgeLabelModel.parentModel,
    +                ecModel
    +            );
    +
    +            edgeData.wrapMethod('getItemModel', function (model) {
    +                model.customizeGetParent(edgeGetParent);
    +                return model;
    +            });
    +
    +            function edgeGetParent(path) {
    +                path = this.parsePath(path);
    +                return (path && path[0] === 'label')
    +                    ? fakeSeriesModel
    +                    : this.parentModel;
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @return {module:echarts/data/Graph}
    +     */
    +    getGraph: function () {
    +        return this.getData().graph;
    +    },
    +
    +    /**
    +     * @return {module:echarts/data/List}
    +     */
    +    getEdgeData: function () {
    +        return this.getGraph().edgeData;
    +    },
    +
    +    /**
    +     * @return {module:echarts/data/List}
    +     */
    +    getCategoriesData: function () {
    +        return this._categoriesData;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    formatTooltip: function (dataIndex, multipleSeries, dataType) {
    +        if (dataType === 'edge') {
    +            var nodeData = this.getData();
    +            var params = this.getDataParams(dataIndex, dataType);
    +            var edge = nodeData.graph.getEdgeByIndex(dataIndex);
    +            var sourceName = nodeData.getName(edge.node1.dataIndex);
    +            var targetName = nodeData.getName(edge.node2.dataIndex);
    +
    +            var html = [];
    +            sourceName != null && html.push(sourceName);
    +            targetName != null && html.push(targetName);
    +            html = encodeHTML(html.join(' > '));
    +
    +            if (params.value) {
    +                html += ' : ' + encodeHTML(params.value);
    +            }
    +            return html;
    +        }
    +        else { // dataType === 'node' or empty
    +            return GraphSeries.superApply(this, 'formatTooltip', arguments);
    +        }
    +    },
    +
    +    _updateCategoriesData: function () {
    +        var categories = map(this.option.categories || [], function (category) {
    +            // Data must has value
    +            return category.value != null ? category : extend({
    +                value: 0
    +            }, category);
    +        });
    +        var categoriesData = new List(['value'], this);
    +        categoriesData.initData(categories);
    +
    +        this._categoriesData = categoriesData;
    +
    +        this._categoriesModels = categoriesData.mapArray(function (idx) {
    +            return categoriesData.getItemModel(idx, true);
    +        });
    +    },
    +
    +    setZoom: function (zoom) {
    +        this.option.zoom = zoom;
    +    },
    +
    +    setCenter: function (center) {
    +        this.option.center = center;
    +    },
    +
    +    isAnimationEnabled: function () {
    +        return GraphSeries.superCall(this, 'isAnimationEnabled')
    +            // Not enable animation when do force layout
    +            && !(this.get('layout') === 'force' && this.get('force.layoutAnimation'));
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +
    +        coordinateSystem: 'view',
    +
    +        // Default option for all coordinate systems
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +        // polarIndex: 0,
    +        // geoIndex: 0,
    +
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +
    +        layout: null,
    +
    +        focusNodeAdjacency: false,
    +
    +        // Configuration of circular layout
    +        circular: {
    +            rotateLabel: false
    +        },
    +        // Configuration of force directed layout
    +        force: {
    +            initLayout: null,
    +            // Node repulsion. Can be an array to represent range.
    +            repulsion: [0, 50],
    +            gravity: 0.1,
    +
    +            // Edge length. Can be an array to represent range.
    +            edgeLength: 30,
    +
    +            layoutAnimation: true
    +        },
    +
    +        left: 'center',
    +        top: 'center',
    +        // right: null,
    +        // bottom: null,
    +        // width: '80%',
    +        // height: '80%',
    +
    +        symbol: 'circle',
    +        symbolSize: 10,
    +
    +        edgeSymbol: ['none', 'none'],
    +        edgeSymbolSize: 10,
    +        edgeLabel: {
    +            normal: {
    +                position: 'middle'
    +            },
    +            emphasis: {}
    +        },
    +
    +        draggable: false,
    +
    +        roam: false,
    +
    +        // Default on center of graph
    +        center: null,
    +
    +        zoom: 1,
    +        // Symbol size scale ratio in roam
    +        nodeScaleRatio: 0.6,
    +        // cursor: null,
    +
    +        // categories: [],
    +
    +        // data: []
    +        // Or
    +        // nodes: []
    +        //
    +        // links: []
    +        // Or
    +        // edges: []
    +
    +        label: {
    +            normal: {
    +                show: false,
    +                formatter: '{b}'
    +            },
    +            emphasis: {
    +                show: true
    +            }
    +        },
    +
    +        itemStyle: {
    +            normal: {},
    +            emphasis: {}
    +        },
    +
    +        lineStyle: {
    +            normal: {
    +                color: '#aaa',
    +                width: 1,
    +                curveness: 0,
    +                opacity: 0.5
    +            },
    +            emphasis: {}
    +        }
    +    }
    +});
    +
    +/**
    + * Line path for bezier and straight line draw
    + */
    +
    +var straightLineProto = Line.prototype;
    +var bezierCurveProto = BezierCurve.prototype;
    +
    +function isLine(shape) {
    +    return isNaN(+shape.cpx1) || isNaN(+shape.cpy1);
    +}
    +
    +var LinePath = 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 (ctx, shape) {
    +        (isLine(shape) ? straightLineProto : bezierCurveProto).buildPath(ctx, shape);
    +    },
    +
    +    pointAt: function (t) {
    +        return isLine(this.shape)
    +            ? straightLineProto.pointAt.call(this, t)
    +            : bezierCurveProto.pointAt.call(this, t);
    +    },
    +
    +    tangentAt: function (t) {
    +        var shape = this.shape;
    +        var p = isLine(shape)
    +            ? [shape.x2 - shape.x1, shape.y2 - shape.y1]
    +            : bezierCurveProto.tangentAt.call(this, t);
    +        return normalize(p, p);
    +    }
    +});
    +
    +/**
    + * @module echarts/chart/helper/Line
    + */
    +
    +var SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol'];
    +
    +function makeSymbolTypeKey(symbolCategory) {
    +    return '_' + symbolCategory + 'Type';
    +}
    +/**
    + * @inner
    + */
    +function createSymbol$1(name, lineData, idx) {
    +    var color = lineData.getItemVisual(idx, 'color');
    +    var symbolType = lineData.getItemVisual(idx, name);
    +    var symbolSize = lineData.getItemVisual(idx, name + 'Size');
    +
    +    if (!symbolType || symbolType === 'none') {
    +        return;
    +    }
    +
    +    if (!isArray(symbolSize)) {
    +        symbolSize = [symbolSize, symbolSize];
    +    }
    +    var symbolPath = createSymbol(
    +        symbolType, -symbolSize[0] / 2, -symbolSize[1] / 2,
    +        symbolSize[0], symbolSize[1], color
    +    );
    +
    +    symbolPath.name = name;
    +
    +    return symbolPath;
    +}
    +
    +function createLine(points) {
    +    var line = new LinePath({
    +        name: 'line'
    +    });
    +    setLinePoints(line.shape, points);
    +    return line;
    +}
    +
    +function setLinePoints(targetShape, points) {
    +    var p1 = points[0];
    +    var p2 = points[1];
    +    var cp1 = points[2];
    +    targetShape.x1 = p1[0];
    +    targetShape.y1 = p1[1];
    +    targetShape.x2 = p2[0];
    +    targetShape.y2 = p2[1];
    +    targetShape.percent = 1;
    +
    +    if (cp1) {
    +        targetShape.cpx1 = cp1[0];
    +        targetShape.cpy1 = cp1[1];
    +    }
    +    else {
    +        targetShape.cpx1 = NaN;
    +        targetShape.cpy1 = NaN;
    +    }
    +}
    +
    +function updateSymbolAndLabelBeforeLineUpdate () {
    +    var lineGroup = this;
    +    var symbolFrom = lineGroup.childOfName('fromSymbol');
    +    var symbolTo = lineGroup.childOfName('toSymbol');
    +    var label = lineGroup.childOfName('label');
    +    // Quick reject
    +    if (!symbolFrom && !symbolTo && label.ignore) {
    +        return;
    +    }
    +
    +    var invScale = 1;
    +    var parentNode = this.parent;
    +    while (parentNode) {
    +        if (parentNode.scale) {
    +            invScale /= parentNode.scale[0];
    +        }
    +        parentNode = parentNode.parent;
    +    }
    +
    +    var line = lineGroup.childOfName('line');
    +    // If line not changed
    +    // FIXME Parent scale changed
    +    if (!this.__dirty && !line.__dirty) {
    +        return;
    +    }
    +
    +    var percent = line.shape.percent;
    +    var fromPos = line.pointAt(0);
    +    var toPos = line.pointAt(percent);
    +
    +    var d = sub([], toPos, fromPos);
    +    normalize(d, d);
    +
    +    if (symbolFrom) {
    +        symbolFrom.attr('position', fromPos);
    +        var tangent = line.tangentAt(0);
    +        symbolFrom.attr('rotation', Math.PI / 2 - Math.atan2(
    +            tangent[1], tangent[0]
    +        ));
    +        symbolFrom.attr('scale', [invScale * percent, invScale * percent]);
    +    }
    +    if (symbolTo) {
    +        symbolTo.attr('position', toPos);
    +        var tangent = line.tangentAt(1);
    +        symbolTo.attr('rotation', -Math.PI / 2 - Math.atan2(
    +            tangent[1], tangent[0]
    +        ));
    +        symbolTo.attr('scale', [invScale * percent, invScale * percent]);
    +    }
    +
    +    if (!label.ignore) {
    +        label.attr('position', toPos);
    +
    +        var textPosition;
    +        var textAlign;
    +        var textVerticalAlign;
    +
    +        var distance$$1 = 5 * invScale;
    +        // End
    +        if (label.__position === 'end') {
    +            textPosition = [d[0] * distance$$1 + toPos[0], d[1] * distance$$1 + toPos[1]];
    +            textAlign = d[0] > 0.8 ? 'left' : (d[0] < -0.8 ? 'right' : 'center');
    +            textVerticalAlign = d[1] > 0.8 ? 'top' : (d[1] < -0.8 ? 'bottom' : 'middle');
    +        }
    +        // Middle
    +        else if (label.__position === 'middle') {
    +            var halfPercent = percent / 2;
    +            var tangent = line.tangentAt(halfPercent);
    +            var n = [tangent[1], -tangent[0]];
    +            var cp = line.pointAt(halfPercent);
    +            if (n[1] > 0) {
    +                n[0] = -n[0];
    +                n[1] = -n[1];
    +            }
    +            textPosition = [cp[0] + n[0] * distance$$1, cp[1] + n[1] * distance$$1];
    +            textAlign = 'center';
    +            textVerticalAlign = 'bottom';
    +            var rotation = -Math.atan2(tangent[1], tangent[0]);
    +            if (toPos[0] < fromPos[0]) {
    +                rotation = Math.PI + rotation;
    +            }
    +            label.attr('rotation', rotation);
    +        }
    +        // Start
    +        else {
    +            textPosition = [-d[0] * distance$$1 + fromPos[0], -d[1] * distance$$1 + fromPos[1]];
    +            textAlign = d[0] > 0.8 ? 'right' : (d[0] < -0.8 ? 'left' : 'center');
    +            textVerticalAlign = d[1] > 0.8 ? 'bottom' : (d[1] < -0.8 ? 'top' : 'middle');
    +        }
    +        label.attr({
    +            style: {
    +                // Use the user specified text align and baseline first
    +                textVerticalAlign: label.__verticalAlign || textVerticalAlign,
    +                textAlign: label.__textAlign || textAlign
    +            },
    +            position: textPosition,
    +            scale: [invScale, invScale]
    +        });
    +    }
    +}
    +
    +/**
    + * @constructor
    + * @extends {module:zrender/graphic/Group}
    + * @alias {module:echarts/chart/helper/Line}
    + */
    +function Line$1(lineData, idx, seriesScope) {
    +    Group.call(this);
    +
    +    this._createLine(lineData, idx, seriesScope);
    +}
    +
    +var lineProto = Line$1.prototype;
    +
    +// Update symbol position and rotation
    +lineProto.beforeUpdate = updateSymbolAndLabelBeforeLineUpdate;
    +
    +lineProto._createLine = function (lineData, idx, seriesScope) {
    +    var seriesModel = lineData.hostModel;
    +    var linePoints = lineData.getItemLayout(idx);
    +
    +    var line = createLine(linePoints);
    +    line.shape.percent = 0;
    +    initProps(line, {
    +        shape: {
    +            percent: 1
    +        }
    +    }, seriesModel, idx);
    +
    +    this.add(line);
    +
    +    var label = new Text({
    +        name: 'label'
    +    });
    +    this.add(label);
    +
    +    each$1(SYMBOL_CATEGORIES, function (symbolCategory) {
    +        var symbol = createSymbol$1(symbolCategory, lineData, idx);
    +        // symbols must added after line to make sure
    +        // it will be updated after line#update.
    +        // Or symbol position and rotation update in line#beforeUpdate will be one frame slow
    +        this.add(symbol);
    +        this[makeSymbolTypeKey(symbolCategory)] = lineData.getItemVisual(idx, symbolCategory);
    +    }, this);
    +
    +    this._updateCommonStl(lineData, idx, seriesScope);
    +};
    +
    +lineProto.updateData = function (lineData, idx, seriesScope) {
    +    var seriesModel = lineData.hostModel;
    +
    +    var line = this.childOfName('line');
    +    var linePoints = lineData.getItemLayout(idx);
    +    var target = {
    +        shape: {}
    +    };
    +    setLinePoints(target.shape, linePoints);
    +    updateProps(line, target, seriesModel, idx);
    +
    +    each$1(SYMBOL_CATEGORIES, function (symbolCategory) {
    +        var symbolType = lineData.getItemVisual(idx, symbolCategory);
    +        var key = makeSymbolTypeKey(symbolCategory);
    +        // Symbol changed
    +        if (this[key] !== symbolType) {
    +            this.remove(this.childOfName(symbolCategory));
    +            var symbol = createSymbol$1(symbolCategory, lineData, idx);
    +            this.add(symbol);
    +        }
    +        this[key] = symbolType;
    +    }, this);
    +
    +    this._updateCommonStl(lineData, idx, seriesScope);
    +};
    +
    +lineProto._updateCommonStl = function (lineData, idx, seriesScope) {
    +    var seriesModel = lineData.hostModel;
    +
    +    var line = this.childOfName('line');
    +
    +    var lineStyle = seriesScope && seriesScope.lineStyle;
    +    var hoverLineStyle = seriesScope && seriesScope.hoverLineStyle;
    +    var labelModel = seriesScope && seriesScope.labelModel;
    +    var hoverLabelModel = seriesScope && seriesScope.hoverLabelModel;
    +
    +    // Optimization for large dataset
    +    if (!seriesScope || lineData.hasItemOption) {
    +        var itemModel = lineData.getItemModel(idx);
    +
    +        lineStyle = itemModel.getModel('lineStyle.normal').getLineStyle();
    +        hoverLineStyle = itemModel.getModel('lineStyle.emphasis').getLineStyle();
    +
    +        labelModel = itemModel.getModel('label.normal');
    +        hoverLabelModel = itemModel.getModel('label.emphasis');
    +    }
    +
    +    var visualColor = lineData.getItemVisual(idx, 'color');
    +    var visualOpacity = retrieve3(
    +        lineData.getItemVisual(idx, 'opacity'),
    +        lineStyle.opacity,
    +        1
    +    );
    +
    +    line.useStyle(defaults(
    +        {
    +            strokeNoScale: true,
    +            fill: 'none',
    +            stroke: visualColor,
    +            opacity: visualOpacity
    +        },
    +        lineStyle
    +    ));
    +    line.hoverStyle = hoverLineStyle;
    +
    +    // Update symbol
    +    each$1(SYMBOL_CATEGORIES, function (symbolCategory) {
    +        var symbol = this.childOfName(symbolCategory);
    +        if (symbol) {
    +            symbol.setColor(visualColor);
    +            symbol.setStyle({
    +                opacity: visualOpacity
    +            });
    +        }
    +    }, this);
    +
    +    var showLabel = labelModel.getShallow('show');
    +    var hoverShowLabel = hoverLabelModel.getShallow('show');
    +
    +    var label = this.childOfName('label');
    +    var defaultLabelColor;
    +    var defaultText;
    +    var normalText;
    +    var emphasisText;
    +
    +    if (showLabel || hoverShowLabel) {
    +        var rawVal = seriesModel.getRawValue(idx);
    +        defaultText = rawVal == null
    +            ? defaultText = lineData.getName(idx)
    +            : isFinite(rawVal)
    +            ? round(rawVal)
    +            : rawVal;
    +        defaultLabelColor = visualColor || '#000';
    +
    +        normalText = retrieve2(
    +            seriesModel.getFormattedLabel(idx, 'normal', lineData.dataType),
    +            defaultText
    +        );
    +        emphasisText = retrieve2(
    +            seriesModel.getFormattedLabel(idx, 'emphasis', lineData.dataType),
    +            normalText
    +        );
    +    }
    +
    +    // label.afterUpdate = lineAfterUpdate;
    +    if (showLabel) {
    +        var labelStyle = setTextStyle(label.style, labelModel, {
    +            text: normalText
    +        }, {
    +            autoColor: defaultLabelColor
    +        });
    +
    +        label.__textAlign = labelStyle.textAlign;
    +        label.__verticalAlign = labelStyle.textVerticalAlign;
    +        // 'start', 'middle', 'end'
    +        label.__position = labelModel.get('position') || 'middle';
    +    }
    +    else {
    +        label.setStyle('text', null);
    +    }
    +
    +    if (hoverShowLabel) {
    +        // Only these properties supported in this emphasis style here.
    +        label.hoverStyle = {
    +            text: emphasisText,
    +            textFill: hoverLabelModel.getTextColor(true),
    +            // For merging hover style to normal style, do not use
    +            // `hoverLabelModel.getFont()` here.
    +            fontStyle: hoverLabelModel.getShallow('fontStyle'),
    +            fontWeight: hoverLabelModel.getShallow('fontWeight'),
    +            fontSize: hoverLabelModel.getShallow('fontSize'),
    +            fontFamily: hoverLabelModel.getShallow('fontFamily')
    +        };
    +    }
    +    else {
    +        label.hoverStyle = {
    +            text: null
    +        };
    +    }
    +
    +    label.ignore = !showLabel && !hoverShowLabel;
    +
    +    setHoverStyle(this);
    +};
    +
    +lineProto.highlight = function () {
    +    this.trigger('emphasis');
    +};
    +
    +lineProto.downplay = function () {
    +    this.trigger('normal');
    +};
    +
    +lineProto.updateLayout = function (lineData, idx) {
    +    this.setLinePoints(lineData.getItemLayout(idx));
    +};
    +
    +lineProto.setLinePoints = function (points) {
    +    var linePath = this.childOfName('line');
    +    setLinePoints(linePath.shape, points);
    +    linePath.dirty();
    +};
    +
    +inherits(Line$1, Group);
    +
    +/**
    + * @module echarts/chart/helper/LineDraw
    + */
    +
    +function isPointNaN(pt) {
    +    return isNaN(pt[0]) || isNaN(pt[1]);
    +}
    +function lineNeedsDraw(pts) {
    +    return !isPointNaN(pts[0]) && !isPointNaN(pts[1]);
    +}
    +/**
    + * @alias module:echarts/component/marker/LineDraw
    + * @constructor
    + */
    +function LineDraw(ctor) {
    +    this._ctor = ctor || Line$1;
    +    this.group = new Group();
    +}
    +
    +var lineDrawProto = LineDraw.prototype;
    +
    +/**
    + * @param {module:echarts/data/List} lineData
    + */
    +lineDrawProto.updateData = function (lineData) {
    +
    +    var oldLineData = this._lineData;
    +    var group = this.group;
    +    var LineCtor = this._ctor;
    +
    +    var hostModel = lineData.hostModel;
    +
    +    var seriesScope = {
    +        lineStyle: hostModel.getModel('lineStyle.normal').getLineStyle(),
    +        hoverLineStyle: hostModel.getModel('lineStyle.emphasis').getLineStyle(),
    +        labelModel: hostModel.getModel('label.normal'),
    +        hoverLabelModel: hostModel.getModel('label.emphasis')
    +    };
    +
    +    lineData.diff(oldLineData)
    +        .add(function (idx) {
    +            if (!lineNeedsDraw(lineData.getItemLayout(idx))) {
    +                return;
    +            }
    +            var lineGroup = new LineCtor(lineData, idx, seriesScope);
    +
    +            lineData.setItemGraphicEl(idx, lineGroup);
    +
    +            group.add(lineGroup);
    +        })
    +        .update(function (newIdx, oldIdx) {
    +            var lineGroup = oldLineData.getItemGraphicEl(oldIdx);
    +            if (!lineNeedsDraw(lineData.getItemLayout(newIdx))) {
    +                group.remove(lineGroup);
    +                return;
    +            }
    +
    +            if (!lineGroup) {
    +                lineGroup = new LineCtor(lineData, newIdx, seriesScope);
    +            }
    +            else {
    +                lineGroup.updateData(lineData, newIdx, seriesScope);
    +            }
    +
    +            lineData.setItemGraphicEl(newIdx, lineGroup);
    +
    +            group.add(lineGroup);
    +        })
    +        .remove(function (idx) {
    +            group.remove(oldLineData.getItemGraphicEl(idx));
    +        })
    +        .execute();
    +
    +    this._lineData = lineData;
    +};
    +
    +lineDrawProto.updateLayout = function () {
    +    var lineData = this._lineData;
    +    lineData.eachItemGraphicEl(function (el, idx) {
    +        el.updateLayout(lineData, idx);
    +    }, this);
    +};
    +
    +lineDrawProto.remove = function () {
    +    this.group.removeAll();
    +};
    +
    +var v1 = [];
    +var v2 = [];
    +var v3 = [];
    +var quadraticAt$1 = quadraticAt;
    +var v2DistSquare = distSquare;
    +var mathAbs$1 = Math.abs;
    +function intersectCurveCircle(curvePoints, center, radius) {
    +    var p0 = curvePoints[0];
    +    var p1 = curvePoints[1];
    +    var p2 = curvePoints[2];
    +
    +    var d = Infinity;
    +    var t;
    +    var radiusSquare = radius * radius;
    +    var interval = 0.1;
    +
    +    for (var _t = 0.1; _t <= 0.9; _t += 0.1) {
    +        v1[0] = quadraticAt$1(p0[0], p1[0], p2[0], _t);
    +        v1[1] = quadraticAt$1(p0[1], p1[1], p2[1], _t);
    +        var diff = mathAbs$1(v2DistSquare(v1, center) - radiusSquare);
    +        if (diff < d) {
    +            d = diff;
    +            t = _t;
    +        }
    +    }
    +
    +    // Assume the segment is monotone,Find root through Bisection method
    +    // At most 32 iteration
    +    for (var i = 0; i < 32; i++) {
    +        // var prev = t - interval;
    +        var next = t + interval;
    +        // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);
    +        // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);
    +        v2[0] = quadraticAt$1(p0[0], p1[0], p2[0], t);
    +        v2[1] = quadraticAt$1(p0[1], p1[1], p2[1], t);
    +        v3[0] = quadraticAt$1(p0[0], p1[0], p2[0], next);
    +        v3[1] = quadraticAt$1(p0[1], p1[1], p2[1], next);
    +
    +        var diff = v2DistSquare(v2, center) - radiusSquare;
    +        if (mathAbs$1(diff) < 1e-2) {
    +            break;
    +        }
    +
    +        // var prevDiff = v2DistSquare(v1, center) - radiusSquare;
    +        var nextDiff = v2DistSquare(v3, center) - radiusSquare;
    +
    +        interval /= 2;
    +        if (diff < 0) {
    +            if (nextDiff >= 0) {
    +                t = t + interval;
    +            }
    +            else {
    +                t = t - interval;
    +            }
    +        }
    +        else {
    +            if (nextDiff >= 0) {
    +                t = t - interval;
    +            }
    +            else {
    +                t = t + interval;
    +            }
    +        }
    +    }
    +
    +    return t;
    +}
    +
    +// Adjust edge to avoid
    +var adjustEdge = function (graph, scale$$1) {
    +    var tmp0 = [];
    +    var quadraticSubdivide$$1 = quadraticSubdivide;
    +    var pts = [[], [], []];
    +    var pts2 = [[], []];
    +    var v = [];
    +    scale$$1 /= 2;
    +
    +    function getSymbolSize(node) {
    +        var symbolSize = node.getVisual('symbolSize');
    +        if (symbolSize instanceof Array) {
    +            symbolSize = (symbolSize[0] + symbolSize[1]) / 2;
    +        }
    +        return symbolSize;
    +    }
    +    graph.eachEdge(function (edge, idx) {
    +        var linePoints = edge.getLayout();
    +        var fromSymbol = edge.getVisual('fromSymbol');
    +        var toSymbol = edge.getVisual('toSymbol');
    +
    +        if (!linePoints.__original) {
    +            linePoints.__original = [
    +                clone$1(linePoints[0]),
    +                clone$1(linePoints[1])
    +            ];
    +            if (linePoints[2]) {
    +                linePoints.__original.push(clone$1(linePoints[2]));
    +            }
    +        }
    +        var originalPoints = linePoints.__original;
    +        // Quadratic curve
    +        if (linePoints[2] != null) {
    +            copy(pts[0], originalPoints[0]);
    +            copy(pts[1], originalPoints[2]);
    +            copy(pts[2], originalPoints[1]);
    +            if (fromSymbol && fromSymbol != 'none') {
    +                var symbolSize = getSymbolSize(edge.node1);
    +
    +                var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale$$1);
    +                // Subdivide and get the second
    +                quadraticSubdivide$$1(pts[0][0], pts[1][0], pts[2][0], t, tmp0);
    +                pts[0][0] = tmp0[3];
    +                pts[1][0] = tmp0[4];
    +                quadraticSubdivide$$1(pts[0][1], pts[1][1], pts[2][1], t, tmp0);
    +                pts[0][1] = tmp0[3];
    +                pts[1][1] = tmp0[4];
    +            }
    +            if (toSymbol && toSymbol != 'none') {
    +                var symbolSize = getSymbolSize(edge.node2);
    +
    +                var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale$$1);
    +                // Subdivide and get the first
    +                quadraticSubdivide$$1(pts[0][0], pts[1][0], pts[2][0], t, tmp0);
    +                pts[1][0] = tmp0[1];
    +                pts[2][0] = tmp0[2];
    +                quadraticSubdivide$$1(pts[0][1], pts[1][1], pts[2][1], t, tmp0);
    +                pts[1][1] = tmp0[1];
    +                pts[2][1] = tmp0[2];
    +            }
    +            // Copy back to layout
    +            copy(linePoints[0], pts[0]);
    +            copy(linePoints[1], pts[2]);
    +            copy(linePoints[2], pts[1]);
    +        }
    +        // Line
    +        else {
    +            copy(pts2[0], originalPoints[0]);
    +            copy(pts2[1], originalPoints[1]);
    +
    +            sub(v, pts2[1], pts2[0]);
    +            normalize(v, v);
    +            if (fromSymbol && fromSymbol != 'none') {
    +
    +                var symbolSize = getSymbolSize(edge.node1);
    +
    +                scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale$$1);
    +            }
    +            if (toSymbol && toSymbol != 'none') {
    +                var symbolSize = getSymbolSize(edge.node2);
    +
    +                scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale$$1);
    +            }
    +            copy(linePoints[0], pts2[0]);
    +            copy(linePoints[1], pts2[1]);
    +        }
    +    });
    +};
    +
    +var nodeOpacityPath = ['itemStyle', 'normal', 'opacity'];
    +var lineOpacityPath = ['lineStyle', 'normal', 'opacity'];
    +
    +function getItemOpacity(item, opacityPath) {
    +    return item.getVisual('opacity') || item.getModel().get(opacityPath);
    +}
    +
    +function fadeOutItem(item, opacityPath, opacityRatio) {
    +    var el = item.getGraphicEl();
    +
    +    var opacity = getItemOpacity(item, opacityPath);
    +    if (opacityRatio != null) {
    +        opacity == null && (opacity = 1);
    +        opacity *= opacityRatio;
    +    }
    +
    +    el.downplay && el.downplay();
    +    el.traverse(function (child) {
    +        if (child.type !== 'group') {
    +            child.setStyle('opacity', opacity);
    +        }
    +    });
    +}
    +
    +function fadeInItem(item, opacityPath) {
    +    var opacity = getItemOpacity(item, opacityPath);
    +    var el = item.getGraphicEl();
    +
    +    el.highlight && el.highlight();
    +    el.traverse(function (child) {
    +        if (child.type !== 'group') {
    +            child.setStyle('opacity', opacity);
    +        }
    +    });
    +}
    +
    +extendChartView({
    +
    +    type: 'graph',
    +
    +    init: function (ecModel, api) {
    +        var symbolDraw = new SymbolDraw();
    +        var lineDraw = new LineDraw();
    +        var group = this.group;
    +
    +        this._controller = new RoamController(api.getZr());
    +        this._controllerHost = {target: group};
    +
    +        group.add(symbolDraw.group);
    +        group.add(lineDraw.group);
    +
    +        this._symbolDraw = symbolDraw;
    +        this._lineDraw = lineDraw;
    +
    +        this._firstRender = true;
    +    },
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var coordSys = seriesModel.coordinateSystem;
    +
    +        this._model = seriesModel;
    +        this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');
    +
    +        var symbolDraw = this._symbolDraw;
    +        var lineDraw = this._lineDraw;
    +
    +        var group = this.group;
    +
    +        if (coordSys.type === 'view') {
    +            var groupNewProp = {
    +                position: coordSys.position,
    +                scale: coordSys.scale
    +            };
    +            if (this._firstRender) {
    +                group.attr(groupNewProp);
    +            }
    +            else {
    +                updateProps(group, groupNewProp, seriesModel);
    +            }
    +        }
    +        // Fix edge contact point with node
    +        adjustEdge(seriesModel.getGraph(), this._getNodeGlobalScale(seriesModel));
    +
    +        var data = seriesModel.getData();
    +        symbolDraw.updateData(data);
    +
    +        var edgeData = seriesModel.getEdgeData();
    +        lineDraw.updateData(edgeData);
    +
    +        this._updateNodeAndLinkScale();
    +
    +        this._updateController(seriesModel, ecModel, api);
    +
    +        clearTimeout(this._layoutTimeout);
    +        var forceLayout = seriesModel.forceLayout;
    +        var layoutAnimation = seriesModel.get('force.layoutAnimation');
    +        if (forceLayout) {
    +            this._startForceLayoutIteration(forceLayout, layoutAnimation);
    +        }
    +
    +        data.eachItemGraphicEl(function (el, idx) {
    +            var itemModel = data.getItemModel(idx);
    +            // Update draggable
    +            el.off('drag').off('dragend');
    +            var draggable = data.getItemModel(idx).get('draggable');
    +            if (draggable) {
    +                el.on('drag', function () {
    +                    if (forceLayout) {
    +                        forceLayout.warmUp();
    +                        !this._layouting
    +                            && this._startForceLayoutIteration(forceLayout, layoutAnimation);
    +                        forceLayout.setFixed(idx);
    +                        // Write position back to layout
    +                        data.setItemLayout(idx, el.position);
    +                    }
    +                }, this).on('dragend', function () {
    +                    if (forceLayout) {
    +                        forceLayout.setUnfixed(idx);
    +                    }
    +                }, this);
    +            }
    +            el.setDraggable(draggable && forceLayout);
    +
    +            el.off('mouseover', el.__focusNodeAdjacency);
    +            el.off('mouseout', el.__unfocusNodeAdjacency);
    +
    +            if (itemModel.get('focusNodeAdjacency')) {
    +                el.on('mouseover', el.__focusNodeAdjacency = function () {
    +                    api.dispatchAction({
    +                        type: 'focusNodeAdjacency',
    +                        seriesId: seriesModel.id,
    +                        dataIndex: el.dataIndex
    +                    });
    +                });
    +                el.on('mouseout', el.__unfocusNodeAdjacency = function () {
    +                    api.dispatchAction({
    +                        type: 'unfocusNodeAdjacency',
    +                        seriesId: seriesModel.id
    +                    });
    +                });
    +
    +            }
    +
    +        }, this);
    +
    +        data.graph.eachEdge(function (edge) {
    +            var el = edge.getGraphicEl();
    +
    +            el.off('mouseover', el.__focusNodeAdjacency);
    +            el.off('mouseout', el.__unfocusNodeAdjacency);
    +
    +            if (edge.getModel().get('focusNodeAdjacency')) {
    +                el.on('mouseover', el.__focusNodeAdjacency = function () {
    +                    api.dispatchAction({
    +                        type: 'focusNodeAdjacency',
    +                        seriesId: seriesModel.id,
    +                        edgeDataIndex: edge.dataIndex
    +                    });
    +                });
    +                el.on('mouseout', el.__unfocusNodeAdjacency = function () {
    +                    api.dispatchAction({
    +                        type: 'unfocusNodeAdjacency',
    +                        seriesId: seriesModel.id
    +                    });
    +                });
    +            }
    +        });
    +
    +        var circularRotateLabel = seriesModel.get('layout') === 'circular'
    +            && seriesModel.get('circular.rotateLabel');
    +        var cx = data.getLayout('cx');
    +        var cy = data.getLayout('cy');
    +        data.eachItemGraphicEl(function (el, idx) {
    +            var symbolPath = el.getSymbolPath();
    +            if (circularRotateLabel) {
    +                var pos = data.getItemLayout(idx);
    +                var rad = Math.atan2(pos[1] - cy, pos[0] - cx);
    +                if (rad < 0) {
    +                    rad = Math.PI * 2 + rad;
    +                }
    +                var isLeft = pos[0] < cx;
    +                if (isLeft) {
    +                    rad = rad - Math.PI;
    +                }
    +                var textPosition = isLeft ? 'left' : 'right';
    +                symbolPath.setStyle({
    +                    textRotation: -rad,
    +                    textPosition: textPosition,
    +                    textOrigin: 'center'
    +                });
    +                symbolPath.hoverStyle && (symbolPath.hoverStyle.textPosition = textPosition);
    +            }
    +            else {
    +                symbolPath.setStyle({
    +                    textRotation: 0
    +                });
    +            }
    +        });
    +
    +        this._firstRender = false;
    +    },
    +
    +    dispose: function () {
    +        this._controller && this._controller.dispose();
    +        this._controllerHost = {};
    +    },
    +
    +    focusNodeAdjacency: function (seriesModel, ecModel, api, payload) {
    +        var data = this._model.getData();
    +        var graph = data.graph;
    +        var dataIndex = payload.dataIndex;
    +        var edgeDataIndex = payload.edgeDataIndex;
    +
    +        var node = graph.getNodeByIndex(dataIndex);
    +        var edge = graph.getEdgeByIndex(edgeDataIndex);
    +
    +        if (!node && !edge) {
    +            return;
    +        }
    +
    +        graph.eachNode(function (node) {
    +            fadeOutItem(node, nodeOpacityPath, 0.1);
    +        });
    +        graph.eachEdge(function (edge) {
    +            fadeOutItem(edge, lineOpacityPath, 0.1);
    +        });
    +
    +        if (node) {
    +            fadeInItem(node, nodeOpacityPath);
    +            each$1(node.edges, function (adjacentEdge) {
    +                if (adjacentEdge.dataIndex < 0) {
    +                    return;
    +                }
    +                fadeInItem(adjacentEdge, lineOpacityPath);
    +                fadeInItem(adjacentEdge.node1, nodeOpacityPath);
    +                fadeInItem(adjacentEdge.node2, nodeOpacityPath);
    +            });
    +        }
    +        if (edge) {
    +            fadeInItem(edge, lineOpacityPath);
    +            fadeInItem(edge.node1, nodeOpacityPath);
    +            fadeInItem(edge.node2, nodeOpacityPath);
    +        }
    +    },
    +
    +    unfocusNodeAdjacency: function (seriesModel, ecModel, api, payload) {
    +        var graph = this._model.getData().graph;
    +
    +        graph.eachNode(function (node) {
    +            fadeOutItem(node, nodeOpacityPath);
    +        });
    +        graph.eachEdge(function (edge) {
    +            fadeOutItem(edge, lineOpacityPath);
    +        });
    +    },
    +
    +    _startForceLayoutIteration: function (forceLayout, layoutAnimation) {
    +        var self = this;
    +        (function step() {
    +            forceLayout.step(function (stopped) {
    +                self.updateLayout(self._model);
    +                (self._layouting = !stopped) && (
    +                    layoutAnimation
    +                        ? (self._layoutTimeout = setTimeout(step, 16))
    +                        : step()
    +                );
    +            });
    +        })();
    +    },
    +
    +    _updateController: function (seriesModel, ecModel, api) {
    +        var controller = this._controller;
    +        var controllerHost = this._controllerHost;
    +        var group = this.group;
    +
    +        controller.setPointerChecker(function (e, x, y) {
    +            var rect = group.getBoundingRect();
    +            rect.applyTransform(group.transform);
    +            return rect.contain(x, y)
    +                && !onIrrelevantElement(e, api, seriesModel);
    +        });
    +
    +        if (seriesModel.coordinateSystem.type !== 'view') {
    +            controller.disable();
    +            return;
    +        }
    +        controller.enable(seriesModel.get('roam'));
    +        controllerHost.zoomLimit = seriesModel.get('scaleLimit');
    +        controllerHost.zoom = seriesModel.coordinateSystem.getZoom();
    +
    +        controller
    +            .off('pan')
    +            .off('zoom')
    +            .on('pan', function (dx, dy) {
    +                updateViewOnPan(controllerHost, dx, dy);
    +                api.dispatchAction({
    +                    seriesId: seriesModel.id,
    +                    type: 'graphRoam',
    +                    dx: dx,
    +                    dy: dy
    +                });
    +            })
    +            .on('zoom', function (zoom, mouseX, mouseY) {
    +                updateViewOnZoom(controllerHost, zoom, mouseX, mouseY);
    +                api.dispatchAction({
    +                    seriesId: seriesModel.id,
    +                    type: 'graphRoam',
    +                    zoom:  zoom,
    +                    originX: mouseX,
    +                    originY: mouseY
    +                });
    +                this._updateNodeAndLinkScale();
    +                adjustEdge(seriesModel.getGraph(), this._getNodeGlobalScale(seriesModel));
    +                this._lineDraw.updateLayout();
    +            }, this);
    +    },
    +
    +    _updateNodeAndLinkScale: function () {
    +        var seriesModel = this._model;
    +        var data = seriesModel.getData();
    +
    +        var nodeScale = this._getNodeGlobalScale(seriesModel);
    +        var invScale = [nodeScale, nodeScale];
    +
    +        data.eachItemGraphicEl(function (el, idx) {
    +            el.attr('scale', invScale);
    +        });
    +    },
    +
    +    _getNodeGlobalScale: function (seriesModel) {
    +        var coordSys = seriesModel.coordinateSystem;
    +        if (coordSys.type !== 'view') {
    +            return 1;
    +        }
    +
    +        var nodeScaleRatio = this._nodeScaleRatio;
    +
    +        var groupScale = coordSys.scale;
    +        var groupZoom = (groupScale && groupScale[0]) || 1;
    +        // Scale node when zoom changes
    +        var roamZoom = coordSys.getZoom();
    +        var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;
    +
    +        return nodeScale / groupZoom;
    +    },
    +
    +    updateLayout: function (seriesModel) {
    +        adjustEdge(seriesModel.getGraph(), this._getNodeGlobalScale(seriesModel));
    +
    +        this._symbolDraw.updateLayout();
    +        this._lineDraw.updateLayout();
    +    },
    +
    +    remove: function (ecModel, api) {
    +        this._symbolDraw && this._symbolDraw.remove();
    +        this._lineDraw && this._lineDraw.remove();
    +    }
    +});
    +
    +var actionInfo = {
    +    type: 'graphRoam',
    +    event: 'graphRoam',
    +    update: 'none'
    +};
    +
    +/**
    + * @payload
    + * @property {string} name Series name
    + * @property {number} [dx]
    + * @property {number} [dy]
    + * @property {number} [zoom]
    + * @property {number} [originX]
    + * @property {number} [originY]
    + */
    +registerAction(actionInfo, function (payload, ecModel) {
    +    ecModel.eachComponent({mainType: 'series', query: payload}, function (seriesModel) {
    +        var coordSys = seriesModel.coordinateSystem;
    +
    +        var res = updateCenterAndZoom(coordSys, payload);
    +
    +        seriesModel.setCenter
    +            && seriesModel.setCenter(res.center);
    +
    +        seriesModel.setZoom
    +            && seriesModel.setZoom(res.zoom);
    +    });
    +});
    +
    +
    +/**
    + * @payload
    + * @property {number} [seriesIndex]
    + * @property {string} [seriesId]
    + * @property {string} [seriesName]
    + * @property {number} [dataIndex]
    + */
    +registerAction({
    +    type: 'focusNodeAdjacency',
    +    event: 'focusNodeAdjacency',
    +    update: 'series.graph:focusNodeAdjacency'
    +}, function () {});
    +
    +/**
    + * @payload
    + * @property {number} [seriesIndex]
    + * @property {string} [seriesId]
    + * @property {string} [seriesName]
    + */
    +registerAction({
    +    type: 'unfocusNodeAdjacency',
    +    event: 'unfocusNodeAdjacency',
    +    update: 'series.graph:unfocusNodeAdjacency'
    +}, function () {});
    +
    +var categoryFilter = function (ecModel) {
    +    var legendModels = ecModel.findComponents({
    +        mainType: 'legend'
    +    });
    +    if (!legendModels || !legendModels.length) {
    +        return;
    +    }
    +    ecModel.eachSeriesByType('graph', function (graphSeries) {
    +        var categoriesData = graphSeries.getCategoriesData();
    +        var graph = graphSeries.getGraph();
    +        var data = graph.data;
    +
    +        var categoryNames = categoriesData.mapArray(categoriesData.getName);
    +
    +        data.filterSelf(function (idx) {
    +            var model = data.getItemModel(idx);
    +            var category = model.getShallow('category');
    +            if (category != null) {
    +                if (typeof category === 'number') {
    +                    category = categoryNames[category];
    +                }
    +                // If in any legend component the status is not selected.
    +                for (var i = 0; i < legendModels.length; i++) {
    +                    if (!legendModels[i].isSelected(category)) {
    +                        return false;
    +                    }
    +                }
    +            }
    +            return true;
    +        });
    +    }, this);
    +};
    +
    +var categoryVisual = function (ecModel) {
    +
    +    var paletteScope = {};
    +    ecModel.eachSeriesByType('graph', function (seriesModel) {
    +        var categoriesData = seriesModel.getCategoriesData();
    +        var data = seriesModel.getData();
    +
    +        var categoryNameIdxMap = {};
    +
    +        categoriesData.each(function (idx) {
    +            var name = categoriesData.getName(idx);
    +            // Add prefix to avoid conflict with Object.prototype.
    +            categoryNameIdxMap['ec-' + name] = idx;
    +
    +            var itemModel = categoriesData.getItemModel(idx);
    +            var color = itemModel.get('itemStyle.normal.color')
    +                || seriesModel.getColorFromPalette(name, paletteScope);
    +            categoriesData.setItemVisual(idx, 'color', color);
    +        });
    +
    +        // Assign category color to visual
    +        if (categoriesData.count()) {
    +            data.each(function (idx) {
    +                var model = data.getItemModel(idx);
    +                var category = model.getShallow('category');
    +                if (category != null) {
    +                    if (typeof category === 'string') {
    +                        category = categoryNameIdxMap['ec-' + category];
    +                    }
    +                    if (!data.getItemVisual(idx, 'color', true)) {
    +                        data.setItemVisual(
    +                            idx, 'color',
    +                            categoriesData.getItemVisual(category, 'color')
    +                        );
    +                    }
    +                }
    +            });
    +        }
    +    });
    +};
    +
    +function normalize$1(a) {
    +    if (!(a instanceof Array)) {
    +        a = [a, a];
    +    }
    +    return a;
    +}
    +
    +var edgeVisual = function (ecModel) {
    +    ecModel.eachSeriesByType('graph', function (seriesModel) {
    +        var graph = seriesModel.getGraph();
    +        var edgeData = seriesModel.getEdgeData();
    +        var symbolType = normalize$1(seriesModel.get('edgeSymbol'));
    +        var symbolSize = normalize$1(seriesModel.get('edgeSymbolSize'));
    +
    +        var colorQuery = 'lineStyle.normal.color'.split('.');
    +        var opacityQuery = 'lineStyle.normal.opacity'.split('.');
    +
    +        edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);
    +        edgeData.setVisual('toSymbol', symbolType && symbolType[1]);
    +        edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);
    +        edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);
    +        edgeData.setVisual('color', seriesModel.get(colorQuery));
    +        edgeData.setVisual('opacity', seriesModel.get(opacityQuery));
    +
    +        edgeData.each(function (idx) {
    +            var itemModel = edgeData.getItemModel(idx);
    +            var edge = graph.getEdgeByIndex(idx);
    +            var symbolType = normalize$1(itemModel.getShallow('symbol', true));
    +            var symbolSize = normalize$1(itemModel.getShallow('symbolSize', true));
    +            // Edge visual must after node visual
    +            var color = itemModel.get(colorQuery);
    +            var opacity = itemModel.get(opacityQuery);
    +            switch (color) {
    +                case 'source':
    +                    color = edge.node1.getVisual('color');
    +                    break;
    +                case 'target':
    +                    color = edge.node2.getVisual('color');
    +                    break;
    +            }
    +
    +            symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);
    +            symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);
    +            symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);
    +            symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);
    +
    +            edge.setVisual('color', color);
    +            edge.setVisual('opacity', opacity);
    +        });
    +    });
    +};
    +
    +function simpleLayout$1(seriesModel) {
    +    var coordSys = seriesModel.coordinateSystem;
    +    if (coordSys && coordSys.type !== 'view') {
    +        return;
    +    }
    +    var graph = seriesModel.getGraph();
    +
    +    graph.eachNode(function (node) {
    +        var model = node.getModel();
    +        node.setLayout([+model.get('x'), +model.get('y')]);
    +    });
    +
    +    simpleLayoutEdge(graph);
    +}
    +
    +function simpleLayoutEdge(graph) {
    +    graph.eachEdge(function (edge) {
    +        var curveness = edge.getModel().get('lineStyle.normal.curveness') || 0;
    +        var p1 = clone$1(edge.node1.getLayout());
    +        var p2 = clone$1(edge.node2.getLayout());
    +        var points = [p1, p2];
    +        if (+curveness) {
    +            points.push([
    +                (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness,
    +                (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness
    +            ]);
    +        }
    +        edge.setLayout(points);
    +    });
    +}
    +
    +var simpleLayout = function (ecModel, api) {
    +    ecModel.eachSeriesByType('graph', function (seriesModel) {
    +        var layout = seriesModel.get('layout');
    +        var coordSys = seriesModel.coordinateSystem;
    +        if (coordSys && coordSys.type !== 'view') {
    +            var data = seriesModel.getData();
    +            var dimensions = coordSys.dimensions;
    +
    +            data.each(dimensions, function () {
    +                var hasValue;
    +                var args = arguments;
    +                var value = [];
    +                for (var i = 0; i < dimensions.length; i++) {
    +                    if (!isNaN(args[i])) {
    +                        hasValue = true;
    +                    }
    +                    value.push(args[i]);
    +                }
    +                var idx = args[args.length - 1];
    +
    +                if (hasValue) {
    +                    data.setItemLayout(idx, coordSys.dataToPoint(value));
    +                }
    +                else {
    +                    // Also {Array.<number>}, not undefined to avoid if...else... statement
    +                    data.setItemLayout(idx, [NaN, NaN]);
    +                }
    +            });
    +
    +            simpleLayoutEdge(data.graph);
    +        }
    +        else if (!layout || layout === 'none') {
    +            simpleLayout$1(seriesModel);
    +        }
    +    });
    +};
    +
    +function circularLayout$1(seriesModel) {
    +    var coordSys = seriesModel.coordinateSystem;
    +    if (coordSys && coordSys.type !== 'view') {
    +        return;
    +    }
    +
    +    var rect = coordSys.getBoundingRect();
    +
    +    var nodeData = seriesModel.getData();
    +    var graph = nodeData.graph;
    +
    +    var angle = 0;
    +    var sum = nodeData.getSum('value');
    +    var unitAngle = Math.PI * 2 / (sum || nodeData.count());
    +
    +    var cx = rect.width / 2 + rect.x;
    +    var cy = rect.height / 2 + rect.y;
    +
    +    var r = Math.min(rect.width, rect.height) / 2;
    +
    +    graph.eachNode(function (node) {
    +        var value = node.getValue('value');
    +
    +        angle += unitAngle * (sum ? value : 1) / 2;
    +
    +        node.setLayout([
    +            r * Math.cos(angle) + cx,
    +            r * Math.sin(angle) + cy
    +        ]);
    +
    +        angle += unitAngle * (sum ? value : 1) / 2;
    +    });
    +
    +    nodeData.setLayout({
    +        cx: cx,
    +        cy: cy
    +    });
    +
    +    graph.eachEdge(function (edge) {
    +        var curveness = edge.getModel().get('lineStyle.normal.curveness') || 0;
    +        var p1 = clone$1(edge.node1.getLayout());
    +        var p2 = clone$1(edge.node2.getLayout());
    +        var cp1;
    +        var x12 = (p1[0] + p2[0]) / 2;
    +        var y12 = (p1[1] + p2[1]) / 2;
    +        if (+curveness) {
    +            curveness *= 3;
    +            cp1 = [
    +                cx * curveness + x12 * (1 - curveness),
    +                cy * curveness + y12 * (1 - curveness)
    +            ];
    +        }
    +        edge.setLayout([p1, p2, cp1]);
    +    });
    +}
    +
    +var circularLayout = function (ecModel) {
    +    ecModel.eachSeriesByType('graph', function (seriesModel) {
    +        if (seriesModel.get('layout') === 'circular') {
    +            circularLayout$1(seriesModel);
    +        }
    +    });
    +};
    +
    +var scaleAndAdd$2 = scaleAndAdd;
    +
    +// function adjacentNode(n, e) {
    +//     return e.n1 === n ? e.n2 : e.n1;
    +// }
    +
    +function forceLayout$1(nodes, edges, opts) {
    +    var rect = opts.rect;
    +    var width = rect.width;
    +    var height = rect.height;
    +    var center = [rect.x + width / 2, rect.y + height / 2];
    +    // var scale = opts.scale || 1;
    +    var gravity = opts.gravity == null ? 0.1 : opts.gravity;
    +
    +    // for (var i = 0; i < edges.length; i++) {
    +    //     var e = edges[i];
    +    //     var n1 = e.n1;
    +    //     var n2 = e.n2;
    +    //     n1.edges = n1.edges || [];
    +    //     n2.edges = n2.edges || [];
    +    //     n1.edges.push(e);
    +    //     n2.edges.push(e);
    +    // }
    +    // Init position
    +    for (var i = 0; i < nodes.length; i++) {
    +        var n = nodes[i];
    +        if (!n.p) {
    +            // Use the position from first adjecent node with defined position
    +            // Or use a random position
    +            // From d3
    +            // if (n.edges) {
    +            //     var j = -1;
    +            //     while (++j < n.edges.length) {
    +            //         var e = n.edges[j];
    +            //         var other = adjacentNode(n, e);
    +            //         if (other.p) {
    +            //             n.p = vec2.clone(other.p);
    +            //             break;
    +            //         }
    +            //     }
    +            // }
    +            // if (!n.p) {
    +                n.p = create(
    +                    width * (Math.random() - 0.5) + center[0],
    +                    height * (Math.random() - 0.5) + center[1]
    +                );
    +            // }
    +        }
    +        n.pp = clone$1(n.p);
    +        n.edges = null;
    +    }
    +
    +    // Formula in 'Graph Drawing by Force-directed Placement'
    +    // var k = scale * Math.sqrt(width * height / nodes.length);
    +    // var k2 = k * k;
    +
    +    var friction = 0.6;
    +
    +    return {
    +        warmUp: function () {
    +            friction = 0.5;
    +        },
    +
    +        setFixed: function (idx) {
    +            nodes[idx].fixed = true;
    +        },
    +
    +        setUnfixed: function (idx) {
    +            nodes[idx].fixed = false;
    +        },
    +
    +        step: function (cb) {
    +            var v12 = [];
    +            var nLen = nodes.length;
    +            for (var i = 0; i < edges.length; i++) {
    +                var e = edges[i];
    +                var n1 = e.n1;
    +                var n2 = e.n2;
    +
    +                sub(v12, n2.p, n1.p);
    +                var d = len(v12) - e.d;
    +                var w = n2.w / (n1.w + n2.w);
    +
    +                if (isNaN(w)) {
    +                    w = 0;
    +                }
    +
    +                normalize(v12, v12);
    +
    +                !n1.fixed && scaleAndAdd$2(n1.p, n1.p, v12, w * d * friction);
    +                !n2.fixed && scaleAndAdd$2(n2.p, n2.p, v12, -(1 - w) * d * friction);
    +            }
    +            // Gravity
    +            for (var i = 0; i < nLen; i++) {
    +                var n = nodes[i];
    +                if (!n.fixed) {
    +                    sub(v12, center, n.p);
    +                    // var d = vec2.len(v12);
    +                    // vec2.scale(v12, v12, 1 / d);
    +                    // var gravityFactor = gravity;
    +                    scaleAndAdd$2(n.p, n.p, v12, gravity * friction);
    +                }
    +            }
    +
    +            // Repulsive
    +            // PENDING
    +            for (var i = 0; i < nLen; i++) {
    +                var n1 = nodes[i];
    +                for (var j = i + 1; j < nLen; j++) {
    +                    var n2 = nodes[j];
    +                    sub(v12, n2.p, n1.p);
    +                    var d = len(v12);
    +                    if (d === 0) {
    +                        // Random repulse
    +                        set(v12, Math.random() - 0.5, Math.random() - 0.5);
    +                        d = 1;
    +                    }
    +                    var repFact = (n1.rep + n2.rep) / d / d;
    +                    !n1.fixed && scaleAndAdd$2(n1.pp, n1.pp, v12, repFact);
    +                    !n2.fixed && scaleAndAdd$2(n2.pp, n2.pp, v12, -repFact);
    +                }
    +            }
    +            var v = [];
    +            for (var i = 0; i < nLen; i++) {
    +                var n = nodes[i];
    +                if (!n.fixed) {
    +                    sub(v, n.p, n.pp);
    +                    scaleAndAdd$2(n.p, n.p, v, friction);
    +                    copy(n.pp, n.p);
    +                }
    +            }
    +
    +            friction = friction * 0.992;
    +
    +            cb && cb(nodes, edges, friction < 0.01);
    +        }
    +    };
    +}
    +
    +var forceLayout = function (ecModel) {
    +    ecModel.eachSeriesByType('graph', function (graphSeries) {
    +        var coordSys = graphSeries.coordinateSystem;
    +        if (coordSys && coordSys.type !== 'view') {
    +            return;
    +        }
    +        if (graphSeries.get('layout') === 'force') {
    +            var preservedPoints = graphSeries.preservedPoints || {};
    +            var graph = graphSeries.getGraph();
    +            var nodeData = graph.data;
    +            var edgeData = graph.edgeData;
    +            var forceModel = graphSeries.getModel('force');
    +            var initLayout = forceModel.get('initLayout');
    +            if (graphSeries.preservedPoints) {
    +                nodeData.each(function (idx) {
    +                    var id = nodeData.getId(idx);
    +                    nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]);
    +                });
    +            }
    +            else if (!initLayout || initLayout === 'none') {
    +                simpleLayout$1(graphSeries);
    +            }
    +            else if (initLayout === 'circular') {
    +                circularLayout$1(graphSeries);
    +            }
    +
    +            var nodeDataExtent = nodeData.getDataExtent('value');
    +            var edgeDataExtent = edgeData.getDataExtent('value');
    +            // var edgeDataExtent = edgeData.getDataExtent('value');
    +            var repulsion = forceModel.get('repulsion');
    +            var edgeLength = forceModel.get('edgeLength');
    +            if (!isArray(repulsion)) {
    +                repulsion = [repulsion, repulsion];
    +            }
    +            if (!isArray(edgeLength)) {
    +                edgeLength = [edgeLength, edgeLength];
    +            }
    +            // Larger value has smaller length
    +            edgeLength = [edgeLength[1], edgeLength[0]];
    +
    +            var nodes = nodeData.mapArray('value', function (value, idx) {
    +                var point = nodeData.getItemLayout(idx);
    +                var rep = linearMap(value, nodeDataExtent, repulsion);
    +                if (isNaN(rep)) {
    +                    rep = (repulsion[0] + repulsion[1]) / 2;
    +                }
    +                return {
    +                    w: rep,
    +                    rep: rep,
    +                    fixed: nodeData.getItemModel(idx).get('fixed'),
    +                    p: (!point || isNaN(point[0]) || isNaN(point[1])) ? null : point
    +                };
    +            });
    +            var edges = edgeData.mapArray('value', function (value, idx) {
    +                var edge = graph.getEdgeByIndex(idx);
    +                var d = linearMap(value, edgeDataExtent, edgeLength);
    +                if (isNaN(d)) {
    +                    d = (edgeLength[0] + edgeLength[1]) / 2;
    +                }
    +                return {
    +                    n1: nodes[edge.node1.dataIndex],
    +                    n2: nodes[edge.node2.dataIndex],
    +                    d: d,
    +                    curveness: edge.getModel().get('lineStyle.normal.curveness') || 0
    +                };
    +            });
    +
    +            var coordSys = graphSeries.coordinateSystem;
    +            var rect = coordSys.getBoundingRect();
    +            var forceInstance = forceLayout$1(nodes, edges, {
    +                rect: rect,
    +                gravity: forceModel.get('gravity')
    +            });
    +            var oldStep = forceInstance.step;
    +            forceInstance.step = function (cb) {
    +                for (var i = 0, l = nodes.length; i < l; i++) {
    +                    if (nodes[i].fixed) {
    +                        // Write back to layout instance
    +                        copy(nodes[i].p, graph.getNodeByIndex(i).getLayout());
    +                    }
    +                }
    +                oldStep(function (nodes, edges, stopped) {
    +                    for (var i = 0, l = nodes.length; i < l; i++) {
    +                        if (!nodes[i].fixed) {
    +                            graph.getNodeByIndex(i).setLayout(nodes[i].p);
    +                        }
    +                        preservedPoints[nodeData.getId(i)] = nodes[i].p;
    +                    }
    +                    for (var i = 0, l = edges.length; i < l; i++) {
    +                        var e = edges[i];
    +                        var edge = graph.getEdgeByIndex(i);
    +                        var p1 = e.n1.p;
    +                        var p2 = e.n2.p;
    +                        var points = edge.getLayout();
    +                        points = points ? points.slice() : [];
    +                        points[0] = points[0] || [];
    +                        points[1] = points[1] || [];
    +                        copy(points[0], p1);
    +                        copy(points[1], p2);
    +                        if (+e.curveness) {
    +                            points[2] = [
    +                                (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness,
    +                                (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness
    +                            ];
    +                        }
    +                        edge.setLayout(points);
    +                    }
    +                    // Update layout
    +
    +                    cb && cb(stopped);
    +                });
    +            };
    +            graphSeries.forceLayout = forceInstance;
    +            graphSeries.preservedPoints = preservedPoints;
    +
    +            // Step to get the layout
    +            forceInstance.step();
    +        }
    +        else {
    +            // Remove prev injected forceLayout instance
    +            graphSeries.forceLayout = null;
    +        }
    +    });
    +};
    +
    +// FIXME Where to create the simple view coordinate system
    +function getViewRect$1(seriesModel, api, aspect) {
    +    var option = seriesModel.getBoxLayoutParams();
    +    option.aspect = aspect;
    +    return getLayoutRect(option, {
    +        width: api.getWidth(),
    +        height: api.getHeight()
    +    });
    +}
    +
    +var createView = function (ecModel, api) {
    +    var viewList = [];
    +    ecModel.eachSeriesByType('graph', function (seriesModel) {
    +        var coordSysType = seriesModel.get('coordinateSystem');
    +        if (!coordSysType || coordSysType === 'view') {
    +
    +            var data = seriesModel.getData();
    +            var positions = data.mapArray(function (idx) {
    +                var itemModel = data.getItemModel(idx);
    +                return [+itemModel.get('x'), +itemModel.get('y')];
    +            });
    +
    +            var min = [];
    +            var max = [];
    +
    +            fromPoints(positions, min, max);
    +
    +            // If width or height is 0
    +            if (max[0] - min[0] === 0) {
    +                max[0] += 1;
    +                min[0] -= 1;
    +            }
    +            if (max[1] - min[1] === 0) {
    +                max[1] += 1;
    +                min[1] -= 1;
    +            }
    +            var aspect = (max[0] - min[0]) / (max[1] - min[1]);
    +            // FIXME If get view rect after data processed?
    +            var viewRect = getViewRect$1(seriesModel, api, aspect);
    +            // Position may be NaN, use view rect instead
    +            if (isNaN(aspect)) {
    +                min = [viewRect.x, viewRect.y];
    +                max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];
    +            }
    +
    +            var bbWidth = max[0] - min[0];
    +            var bbHeight = max[1] - min[1];
    +
    +            var viewWidth = viewRect.width;
    +            var viewHeight = viewRect.height;
    +
    +            var viewCoordSys = seriesModel.coordinateSystem = new View();
    +            viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');
    +
    +            viewCoordSys.setBoundingRect(
    +                min[0], min[1], bbWidth, bbHeight
    +            );
    +            viewCoordSys.setViewRect(
    +                viewRect.x, viewRect.y, viewWidth, viewHeight
    +            );
    +
    +            // Update roam info
    +            viewCoordSys.setCenter(seriesModel.get('center'));
    +            viewCoordSys.setZoom(seriesModel.get('zoom'));
    +
    +            viewList.push(viewCoordSys);
    +        }
    +    });
    +
    +    return viewList;
    +};
    +
    +registerProcessor(categoryFilter);
    +
    +registerVisual(curry(
    +    visualSymbol, 'graph', 'circle', null
    +));
    +registerVisual(categoryVisual);
    +registerVisual(edgeVisual);
    +
    +registerLayout(simpleLayout);
    +registerLayout(circularLayout);
    +registerLayout(forceLayout);
    +
    +// Graph view coordinate system
    +registerCoordinateSystem('graphView', {
    +    create: createView
    +});
    +
    +var GaugeSeries = SeriesModel.extend({
    +
    +    type: 'series.gauge',
    +
    +    getInitialData: function (option, ecModel) {
    +        var list = new List(['value'], this);
    +        var dataOpt = option.data || [];
    +        if (!isArray(dataOpt)) {
    +            dataOpt = [dataOpt];
    +        }
    +        // Only use the first data item
    +        list.initData(dataOpt);
    +        return list;
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +        // 默认全局居中
    +        center: ['50%', '50%'],
    +        legendHoverLink: true,
    +        radius: '75%',
    +        startAngle: 225,
    +        endAngle: -45,
    +        clockwise: true,
    +        // 最小值
    +        min: 0,
    +        // 最大值
    +        max: 100,
    +        // 分割段数,默认为10
    +        splitNumber: 10,
    +        // 坐标轴线
    +        axisLine: {
    +            // 默认显示,属性show控制显示与否
    +            show: true,
    +            lineStyle: {       // 属性lineStyle控制线条样式
    +                color: [[0.2, '#91c7ae'], [0.8, '#63869e'], [1, '#c23531']],
    +                width: 30
    +            }
    +        },
    +        // 分隔线
    +        splitLine: {
    +            // 默认显示,属性show控制显示与否
    +            show: true,
    +            // 属性length控制线长
    +            length: 30,
    +            // 属性lineStyle(详见lineStyle)控制线条样式
    +            lineStyle: {
    +                color: '#eee',
    +                width: 2,
    +                type: 'solid'
    +            }
    +        },
    +        // 坐标轴小标记
    +        axisTick: {
    +            // 属性show控制显示与否,默认不显示
    +            show: true,
    +            // 每份split细分多少段
    +            splitNumber: 5,
    +            // 属性length控制线长
    +            length: 8,
    +            // 属性lineStyle控制线条样式
    +            lineStyle: {
    +                color: '#eee',
    +                width: 1,
    +                type: 'solid'
    +            }
    +        },
    +        axisLabel: {
    +            show: true,
    +            distance: 5,
    +            // formatter: null,
    +            color: 'auto'
    +        },
    +        pointer: {
    +            show: true,
    +            length: '80%',
    +            width: 8
    +        },
    +        itemStyle: {
    +            normal: {
    +                color: 'auto'
    +            }
    +        },
    +        title: {
    +            show: true,
    +            // x, y,单位px
    +            offsetCenter: [0, '-40%'],
    +            // 其余属性默认使用全局文本样式,详见TEXTSTYLE
    +            color: '#333',
    +            fontSize: 15
    +        },
    +        detail: {
    +            show: true,
    +            backgroundColor: 'rgba(0,0,0,0)',
    +            borderWidth: 0,
    +            borderColor: '#ccc',
    +            width: 100,
    +            height: null, // self-adaption
    +            padding: [5, 10],
    +            // x, y,单位px
    +            offsetCenter: [0, '40%'],
    +            // formatter: null,
    +            // 其余属性默认使用全局文本样式,详见TEXTSTYLE
    +            color: 'auto',
    +            fontSize: 30
    +        }
    +    }
    +});
    +
    +var PointerPath = Path.extend({
    +
    +    type: 'echartsGaugePointer',
    +
    +    shape: {
    +        angle: 0,
    +
    +        width: 10,
    +
    +        r: 10,
    +
    +        x: 0,
    +
    +        y: 0
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var mathCos = Math.cos;
    +        var mathSin = Math.sin;
    +
    +        var r = shape.r;
    +        var width = shape.width;
    +        var angle = shape.angle;
    +        var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);
    +        var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);
    +
    +        angle = shape.angle - Math.PI / 2;
    +        ctx.moveTo(x, y);
    +        ctx.lineTo(
    +            shape.x + mathCos(angle) * width,
    +            shape.y + mathSin(angle) * width
    +        );
    +        ctx.lineTo(
    +            shape.x + mathCos(shape.angle) * r,
    +            shape.y + mathSin(shape.angle) * r
    +        );
    +        ctx.lineTo(
    +            shape.x - mathCos(angle) * width,
    +            shape.y - mathSin(angle) * width
    +        );
    +        ctx.lineTo(x, y);
    +        return;
    +    }
    +});
    +
    +function parsePosition(seriesModel, api) {
    +    var center = seriesModel.get('center');
    +    var width = api.getWidth();
    +    var height = api.getHeight();
    +    var size = Math.min(width, height);
    +    var cx = parsePercent$1(center[0], api.getWidth());
    +    var cy = parsePercent$1(center[1], api.getHeight());
    +    var r = parsePercent$1(seriesModel.get('radius'), size / 2);
    +
    +    return {
    +        cx: cx,
    +        cy: cy,
    +        r: r
    +    };
    +}
    +
    +function formatLabel(label, labelFormatter) {
    +    if (labelFormatter) {
    +        if (typeof labelFormatter === 'string') {
    +            label = labelFormatter.replace('{value}', label != null ? label : '');
    +        }
    +        else if (typeof labelFormatter === 'function') {
    +            label = labelFormatter(label);
    +        }
    +    }
    +
    +    return label;
    +}
    +
    +var PI2$5 = Math.PI * 2;
    +
    +var GaugeView = Chart.extend({
    +
    +    type: 'gauge',
    +
    +    render: function (seriesModel, ecModel, api) {
    +
    +        this.group.removeAll();
    +
    +        var colorList = seriesModel.get('axisLine.lineStyle.color');
    +        var posInfo = parsePosition(seriesModel, api);
    +
    +        this._renderMain(
    +            seriesModel, ecModel, api, colorList, posInfo
    +        );
    +    },
    +
    +    dispose: function () {},
    +
    +    _renderMain: function (seriesModel, ecModel, api, colorList, posInfo) {
    +        var group = this.group;
    +
    +        var axisLineModel = seriesModel.getModel('axisLine');
    +        var lineStyleModel = axisLineModel.getModel('lineStyle');
    +
    +        var clockwise = seriesModel.get('clockwise');
    +        var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;
    +        var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;
    +
    +        var angleRangeSpan = (endAngle - startAngle) % PI2$5;
    +
    +        var prevEndAngle = startAngle;
    +        var axisLineWidth = lineStyleModel.get('width');
    +
    +        for (var i = 0; i < colorList.length; i++) {
    +            // Clamp
    +            var percent = Math.min(Math.max(colorList[i][0], 0), 1);
    +            var endAngle = startAngle + angleRangeSpan * percent;
    +            var sector = new Sector({
    +                shape: {
    +                    startAngle: prevEndAngle,
    +                    endAngle: endAngle,
    +                    cx: posInfo.cx,
    +                    cy: posInfo.cy,
    +                    clockwise: clockwise,
    +                    r0: posInfo.r - axisLineWidth,
    +                    r: posInfo.r
    +                },
    +                silent: true
    +            });
    +
    +            sector.setStyle({
    +                fill: colorList[i][1]
    +            });
    +
    +            sector.setStyle(lineStyleModel.getLineStyle(
    +                // Because we use sector to simulate arc
    +                // so the properties for stroking are useless
    +                ['color', 'borderWidth', 'borderColor']
    +            ));
    +
    +            group.add(sector);
    +
    +            prevEndAngle = endAngle;
    +        }
    +
    +        var getColor = function (percent) {
    +            // Less than 0
    +            if (percent <= 0) {
    +                return colorList[0][1];
    +            }
    +            for (var i = 0; i < colorList.length; i++) {
    +                if (colorList[i][0] >= percent
    +                    && (i === 0 ? 0 : colorList[i - 1][0]) < percent
    +                ) {
    +                    return colorList[i][1];
    +                }
    +            }
    +            // More than 1
    +            return colorList[i - 1][1];
    +        };
    +
    +        if (!clockwise) {
    +            var tmp = startAngle;
    +            startAngle = endAngle;
    +            endAngle = tmp;
    +        }
    +
    +        this._renderTicks(
    +            seriesModel, ecModel, api, getColor, posInfo,
    +            startAngle, endAngle, clockwise
    +        );
    +
    +        this._renderPointer(
    +            seriesModel, ecModel, api, getColor, posInfo,
    +            startAngle, endAngle, clockwise
    +        );
    +
    +        this._renderTitle(
    +            seriesModel, ecModel, api, getColor, posInfo
    +        );
    +        this._renderDetail(
    +            seriesModel, ecModel, api, getColor, posInfo
    +        );
    +    },
    +
    +    _renderTicks: function (
    +        seriesModel, ecModel, api, getColor, posInfo,
    +        startAngle, endAngle, clockwise
    +    ) {
    +        var group = this.group;
    +        var cx = posInfo.cx;
    +        var cy = posInfo.cy;
    +        var r = posInfo.r;
    +
    +        var minVal = +seriesModel.get('min');
    +        var maxVal = +seriesModel.get('max');
    +
    +        var splitLineModel = seriesModel.getModel('splitLine');
    +        var tickModel = seriesModel.getModel('axisTick');
    +        var labelModel = seriesModel.getModel('axisLabel');
    +
    +        var splitNumber = seriesModel.get('splitNumber');
    +        var subSplitNumber = tickModel.get('splitNumber');
    +
    +        var splitLineLen = parsePercent$1(
    +            splitLineModel.get('length'), r
    +        );
    +        var tickLen = parsePercent$1(
    +            tickModel.get('length'), r
    +        );
    +
    +        var angle = startAngle;
    +        var step = (endAngle - startAngle) / splitNumber;
    +        var subStep = step / subSplitNumber;
    +
    +        var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();
    +        var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();
    +
    +        for (var i = 0; i <= splitNumber; i++) {
    +            var unitX = Math.cos(angle);
    +            var unitY = Math.sin(angle);
    +            // Split line
    +            if (splitLineModel.get('show')) {
    +                var splitLine = new Line({
    +                    shape: {
    +                        x1: unitX * r + cx,
    +                        y1: unitY * r + cy,
    +                        x2: unitX * (r - splitLineLen) + cx,
    +                        y2: unitY * (r - splitLineLen) + cy
    +                    },
    +                    style: splitLineStyle,
    +                    silent: true
    +                });
    +                if (splitLineStyle.stroke === 'auto') {
    +                    splitLine.setStyle({
    +                        stroke: getColor(i / splitNumber)
    +                    });
    +                }
    +
    +                group.add(splitLine);
    +            }
    +
    +            // Label
    +            if (labelModel.get('show')) {
    +                var label = formatLabel(
    +                    round(i / splitNumber * (maxVal - minVal) + minVal),
    +                    labelModel.get('formatter')
    +                );
    +                var distance = labelModel.get('distance');
    +                var autoColor = getColor(i / splitNumber);
    +
    +                group.add(new Text({
    +                    style: setTextStyle({}, labelModel, {
    +                        text: label,
    +                        x: unitX * (r - splitLineLen - distance) + cx,
    +                        y: unitY * (r - splitLineLen - distance) + cy,
    +                        textVerticalAlign: unitY < -0.4 ? 'top' : (unitY > 0.4 ? 'bottom' : 'middle'),
    +                        textAlign: unitX < -0.4 ? 'left' : (unitX > 0.4 ? 'right' : 'center')
    +                    }, {autoColor: autoColor}),
    +                    silent: true
    +                }));
    +            }
    +
    +            // Axis tick
    +            if (tickModel.get('show') && i !== splitNumber) {
    +                for (var j = 0; j <= subSplitNumber; j++) {
    +                    var unitX = Math.cos(angle);
    +                    var unitY = Math.sin(angle);
    +                    var tickLine = new Line({
    +                        shape: {
    +                            x1: unitX * r + cx,
    +                            y1: unitY * r + cy,
    +                            x2: unitX * (r - tickLen) + cx,
    +                            y2: unitY * (r - tickLen) + cy
    +                        },
    +                        silent: true,
    +                        style: tickLineStyle
    +                    });
    +
    +                    if (tickLineStyle.stroke === 'auto') {
    +                        tickLine.setStyle({
    +                            stroke: getColor((i + j / subSplitNumber) / splitNumber)
    +                        });
    +                    }
    +
    +                    group.add(tickLine);
    +                    angle += subStep;
    +                }
    +                angle -= subStep;
    +            }
    +            else {
    +                angle += step;
    +            }
    +        }
    +    },
    +
    +    _renderPointer: function (
    +        seriesModel, ecModel, api, getColor, posInfo,
    +        startAngle, endAngle, clockwise
    +    ) {
    +
    +        var group = this.group;
    +        var oldData = this._data;
    +
    +        if (!seriesModel.get('pointer.show')) {
    +            // Remove old element
    +            oldData && oldData.eachItemGraphicEl(function (el) {
    +                group.remove(el);
    +            });
    +            return;
    +        }
    +
    +        var valueExtent = [+seriesModel.get('min'), +seriesModel.get('max')];
    +        var angleExtent = [startAngle, endAngle];
    +
    +        var data = seriesModel.getData();
    +
    +        data.diff(oldData)
    +            .add(function (idx) {
    +                var pointer = new PointerPath({
    +                    shape: {
    +                        angle: startAngle
    +                    }
    +                });
    +
    +                initProps(pointer, {
    +                    shape: {
    +                        angle: linearMap(data.get('value', idx), valueExtent, angleExtent, true)
    +                    }
    +                }, seriesModel);
    +
    +                group.add(pointer);
    +                data.setItemGraphicEl(idx, pointer);
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var pointer = oldData.getItemGraphicEl(oldIdx);
    +
    +                updateProps(pointer, {
    +                    shape: {
    +                        angle: linearMap(data.get('value', newIdx), valueExtent, angleExtent, true)
    +                    }
    +                }, seriesModel);
    +
    +                group.add(pointer);
    +                data.setItemGraphicEl(newIdx, pointer);
    +            })
    +            .remove(function (idx) {
    +                var pointer = oldData.getItemGraphicEl(idx);
    +                group.remove(pointer);
    +            })
    +            .execute();
    +
    +        data.eachItemGraphicEl(function (pointer, idx) {
    +            var itemModel = data.getItemModel(idx);
    +            var pointerModel = itemModel.getModel('pointer');
    +
    +            pointer.setShape({
    +                x: posInfo.cx,
    +                y: posInfo.cy,
    +                width: parsePercent$1(
    +                    pointerModel.get('width'), posInfo.r
    +                ),
    +                r: parsePercent$1(pointerModel.get('length'), posInfo.r)
    +            });
    +
    +            pointer.useStyle(itemModel.getModel('itemStyle.normal').getItemStyle());
    +
    +            if (pointer.style.fill === 'auto') {
    +                pointer.setStyle('fill', getColor(
    +                    linearMap(data.get('value', idx), valueExtent, [0, 1], true)
    +                ));
    +            }
    +
    +            setHoverStyle(
    +                pointer, itemModel.getModel('itemStyle.emphasis').getItemStyle()
    +            );
    +        });
    +
    +        this._data = data;
    +    },
    +
    +    _renderTitle: function (
    +        seriesModel, ecModel, api, getColor, posInfo
    +    ) {
    +        var titleModel = seriesModel.getModel('title');
    +        if (titleModel.get('show')) {
    +            var offsetCenter = titleModel.get('offsetCenter');
    +            var x = posInfo.cx + parsePercent$1(offsetCenter[0], posInfo.r);
    +            var y = posInfo.cy + parsePercent$1(offsetCenter[1], posInfo.r);
    +
    +            var minVal = +seriesModel.get('min');
    +            var maxVal = +seriesModel.get('max');
    +            var value = seriesModel.getData().get('value', 0);
    +            var autoColor = getColor(
    +                linearMap(value, [minVal, maxVal], [0, 1], true)
    +            );
    +
    +            this.group.add(new Text({
    +                silent: true,
    +                style: setTextStyle({}, titleModel, {
    +                    x: x,
    +                    y: y,
    +                    // FIXME First data name ?
    +                    text: seriesModel.getData().getName(0),
    +                    textAlign: 'center',
    +                    textVerticalAlign: 'middle'
    +                }, {autoColor: autoColor, forceRich: true})
    +            }));
    +        }
    +    },
    +
    +    _renderDetail: function (
    +        seriesModel, ecModel, api, getColor, posInfo
    +    ) {
    +        var detailModel = seriesModel.getModel('detail');
    +        var minVal = +seriesModel.get('min');
    +        var maxVal = +seriesModel.get('max');
    +        if (detailModel.get('show')) {
    +            var offsetCenter = detailModel.get('offsetCenter');
    +            var x = posInfo.cx + parsePercent$1(offsetCenter[0], posInfo.r);
    +            var y = posInfo.cy + parsePercent$1(offsetCenter[1], posInfo.r);
    +            var width = parsePercent$1(detailModel.get('width'), posInfo.r);
    +            var height = parsePercent$1(detailModel.get('height'), posInfo.r);
    +            var value = seriesModel.getData().get('value', 0);
    +            var autoColor = getColor(
    +                linearMap(value, [minVal, maxVal], [0, 1], true)
    +            );
    +
    +            this.group.add(new Text({
    +                silent: true,
    +                style: setTextStyle({}, detailModel, {
    +                    x: x,
    +                    y: y,
    +                    text: formatLabel(
    +                        // FIXME First data name ?
    +                        value, detailModel.get('formatter')
    +                    ),
    +                    textWidth: isNaN(width) ? null : width,
    +                    textHeight: isNaN(height) ? null : height,
    +                    textAlign: 'center',
    +                    textVerticalAlign: 'middle'
    +                }, {autoColor: autoColor, forceRich: true})
    +            }));
    +        }
    +    }
    +});
    +
    +var FunnelSeries = extendSeriesModel({
    +
    +    type: 'series.funnel',
    +
    +    init: function (option) {
    +        FunnelSeries.superApply(this, 'init', arguments);
    +
    +        // Enable legend selection for each data item
    +        // Use a function instead of direct access because data reference may changed
    +        this.legendDataProvider = function () {
    +            return this.getRawData();
    +        };
    +        // Extend labelLine emphasis
    +        this._defaultLabelLine(option);
    +    },
    +
    +    getInitialData: function (option, ecModel) {
    +        var dimensions = completeDimensions(['value'], option.data);
    +        var list = new List(dimensions, this);
    +        list.initData(option.data);
    +        return list;
    +    },
    +
    +    _defaultLabelLine: function (option) {
    +        // Extend labelLine emphasis
    +        defaultEmphasis(option.labelLine, ['show']);
    +
    +        var labelLineNormalOpt = option.labelLine.normal;
    +        var labelLineEmphasisOpt = option.labelLine.emphasis;
    +        // Not show label line if `label.normal.show = false`
    +        labelLineNormalOpt.show = labelLineNormalOpt.show
    +            && option.label.normal.show;
    +        labelLineEmphasisOpt.show = labelLineEmphasisOpt.show
    +            && option.label.emphasis.show;
    +    },
    +
    +    // Overwrite
    +    getDataParams: function (dataIndex) {
    +        var data = this.getData();
    +        var params = FunnelSeries.superCall(this, 'getDataParams', dataIndex);
    +        var sum = data.getSum('value');
    +        // Percent is 0 if sum is 0
    +        params.percent = !sum ? 0 : +(data.get('value', dataIndex) / sum * 100).toFixed(2);
    +
    +        params.$vars.push('percent');
    +        return params;
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,                  // 一级层叠
    +        z: 2,                       // 二级层叠
    +        legendHoverLink: true,
    +        left: 80,
    +        top: 60,
    +        right: 80,
    +        bottom: 60,
    +        // width: {totalWidth} - left - right,
    +        // height: {totalHeight} - top - bottom,
    +
    +        // 默认取数据最小最大值
    +        // min: 0,
    +        // max: 100,
    +        minSize: '0%',
    +        maxSize: '100%',
    +        sort: 'descending', // 'ascending', 'descending'
    +        gap: 0,
    +        funnelAlign: 'center',
    +        label: {
    +            normal: {
    +                show: true,
    +                position: 'outer'
    +                // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
    +            },
    +            emphasis: {
    +                show: true
    +            }
    +        },
    +        labelLine: {
    +            normal: {
    +                show: true,
    +                length: 20,
    +                lineStyle: {
    +                    // color: 各异,
    +                    width: 1,
    +                    type: 'solid'
    +                }
    +            },
    +            emphasis: {}
    +        },
    +        itemStyle: {
    +            normal: {
    +                // color: 各异,
    +                borderColor: '#fff',
    +                borderWidth: 1
    +            },
    +            emphasis: {
    +                // color: 各异,
    +            }
    +        }
    +    }
    +});
    +
    +/**
    + * Piece of pie including Sector, Label, LabelLine
    + * @constructor
    + * @extends {module:zrender/graphic/Group}
    + */
    +function FunnelPiece(data, idx) {
    +
    +    Group.call(this);
    +
    +    var polygon = new Polygon();
    +    var labelLine = new Polyline();
    +    var text = new Text();
    +    this.add(polygon);
    +    this.add(labelLine);
    +    this.add(text);
    +
    +    this.updateData(data, idx, true);
    +
    +    // Hover to change label and labelLine
    +    function onEmphasis() {
    +        labelLine.ignore = labelLine.hoverIgnore;
    +        text.ignore = text.hoverIgnore;
    +    }
    +    function onNormal() {
    +        labelLine.ignore = labelLine.normalIgnore;
    +        text.ignore = text.normalIgnore;
    +    }
    +    this.on('emphasis', onEmphasis)
    +        .on('normal', onNormal)
    +        .on('mouseover', onEmphasis)
    +        .on('mouseout', onNormal);
    +}
    +
    +var funnelPieceProto = FunnelPiece.prototype;
    +
    +var opacityAccessPath = ['itemStyle', 'normal', 'opacity'];
    +funnelPieceProto.updateData = function (data, idx, firstCreate) {
    +
    +    var polygon = this.childAt(0);
    +
    +    var seriesModel = data.hostModel;
    +    var itemModel = data.getItemModel(idx);
    +    var layout = data.getItemLayout(idx);
    +    var opacity = data.getItemModel(idx).get(opacityAccessPath);
    +    opacity = opacity == null ? 1 : opacity;
    +
    +    // Reset style
    +    polygon.useStyle({});
    +
    +    if (firstCreate) {
    +        polygon.setShape({
    +            points: layout.points
    +        });
    +        polygon.setStyle({ opacity : 0 });
    +        initProps(polygon, {
    +            style: {
    +                opacity: opacity
    +            }
    +        }, seriesModel, idx);
    +    }
    +    else {
    +        updateProps(polygon, {
    +            style: {
    +                opacity: opacity
    +            },
    +            shape: {
    +                points: layout.points
    +            }
    +        }, seriesModel, idx);
    +    }
    +
    +    // Update common style
    +    var itemStyleModel = itemModel.getModel('itemStyle');
    +    var visualColor = data.getItemVisual(idx, 'color');
    +
    +    polygon.setStyle(
    +        defaults(
    +            {
    +                lineJoin: 'round',
    +                fill: visualColor
    +            },
    +            itemStyleModel.getModel('normal').getItemStyle(['opacity'])
    +        )
    +    );
    +    polygon.hoverStyle = itemStyleModel.getModel('emphasis').getItemStyle();
    +
    +    this._updateLabel(data, idx);
    +
    +    setHoverStyle(this);
    +};
    +
    +funnelPieceProto._updateLabel = function (data, idx) {
    +
    +    var labelLine = this.childAt(1);
    +    var labelText = this.childAt(2);
    +
    +    var seriesModel = data.hostModel;
    +    var itemModel = data.getItemModel(idx);
    +    var layout = data.getItemLayout(idx);
    +    var labelLayout = layout.label;
    +    var visualColor = data.getItemVisual(idx, 'color');
    +
    +    updateProps(labelLine, {
    +        shape: {
    +            points: labelLayout.linePoints || labelLayout.linePoints
    +        }
    +    }, seriesModel, idx);
    +
    +    updateProps(labelText, {
    +        style: {
    +            x: labelLayout.x,
    +            y: labelLayout.y
    +        }
    +    }, seriesModel, idx);
    +    labelText.attr({
    +        rotation: labelLayout.rotation,
    +        origin: [labelLayout.x, labelLayout.y],
    +        z2: 10
    +    });
    +
    +    var labelModel = itemModel.getModel('label.normal');
    +    var labelHoverModel = itemModel.getModel('label.emphasis');
    +    var labelLineModel = itemModel.getModel('labelLine.normal');
    +    var labelLineHoverModel = itemModel.getModel('labelLine.emphasis');
    +    var visualColor = data.getItemVisual(idx, 'color');
    +
    +    setLabelStyle(
    +        labelText.style, labelText.hoverStyle = {}, labelModel, labelHoverModel,
    +        {
    +            labelFetcher: data.hostModel,
    +            labelDataIndex: idx,
    +            defaultText: data.getName(idx),
    +            autoColor: visualColor,
    +            useInsideStyle: !!labelLayout.inside
    +        },
    +        {
    +            textAlign: labelLayout.textAlign,
    +            textVerticalAlign: labelLayout.verticalAlign
    +        }
    +    );
    +
    +    labelText.ignore = labelText.normalIgnore = !labelModel.get('show');
    +    labelText.hoverIgnore = !labelHoverModel.get('show');
    +
    +    labelLine.ignore = labelLine.normalIgnore = !labelLineModel.get('show');
    +    labelLine.hoverIgnore = !labelLineHoverModel.get('show');
    +
    +    // Default use item visual color
    +    labelLine.setStyle({
    +        stroke: visualColor
    +    });
    +    labelLine.setStyle(labelLineModel.getModel('lineStyle').getLineStyle());
    +
    +    labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle();
    +};
    +
    +inherits(FunnelPiece, Group);
    +
    +
    +var FunnelView = Chart.extend({
    +
    +    type: 'funnel',
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var data = seriesModel.getData();
    +        var oldData = this._data;
    +
    +        var group = this.group;
    +
    +        data.diff(oldData)
    +            .add(function (idx) {
    +                var funnelPiece = new FunnelPiece(data, idx);
    +
    +                data.setItemGraphicEl(idx, funnelPiece);
    +
    +                group.add(funnelPiece);
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var piePiece = oldData.getItemGraphicEl(oldIdx);
    +
    +                piePiece.updateData(data, newIdx);
    +
    +                group.add(piePiece);
    +                data.setItemGraphicEl(newIdx, piePiece);
    +            })
    +            .remove(function (idx) {
    +                var piePiece = oldData.getItemGraphicEl(idx);
    +                group.remove(piePiece);
    +            })
    +            .execute();
    +
    +        this._data = data;
    +    },
    +
    +    remove: function () {
    +        this.group.removeAll();
    +        this._data = null;
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +function getViewRect$2(seriesModel, api) {
    +    return getLayoutRect(
    +        seriesModel.getBoxLayoutParams(), {
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        }
    +    );
    +}
    +
    +function getSortedIndices(data, sort) {
    +    var valueArr = data.mapArray('value', function (val) {
    +        return val;
    +    });
    +    var indices = [];
    +    var isAscending = sort === 'ascending';
    +    for (var i = 0, len = data.count(); i < len; i++) {
    +        indices[i] = i;
    +    }
    +
    +    // Add custom sortable function & none sortable opetion by "options.sort"
    +    if (typeof sort === 'function') {
    +        indices.sort(sort);
    +    } else if (sort !== 'none') {
    +        indices.sort(function (a, b) {
    +            return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a];
    +        });
    +    }
    +    return indices;
    +}
    +
    +function labelLayout$1(data) {
    +    data.each(function (idx) {
    +        var itemModel = data.getItemModel(idx);
    +        var labelModel = itemModel.getModel('label.normal');
    +        var labelPosition = labelModel.get('position');
    +
    +        var labelLineModel = itemModel.getModel('labelLine.normal');
    +
    +        var layout = data.getItemLayout(idx);
    +        var points = layout.points;
    +
    +        var isLabelInside = labelPosition === 'inner'
    +            || labelPosition === 'inside' || labelPosition === 'center';
    +
    +        var textAlign;
    +        var textX;
    +        var textY;
    +        var linePoints;
    +
    +        if (isLabelInside) {
    +            textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;
    +            textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;
    +            textAlign = 'center';
    +            linePoints = [
    +                [textX, textY], [textX, textY]
    +            ];
    +        }
    +        else {
    +            var x1;
    +            var y1;
    +            var x2;
    +            var labelLineLen = labelLineModel.get('length');
    +            if (labelPosition === 'left') {
    +                // Left side
    +                x1 = (points[3][0] + points[0][0]) / 2;
    +                y1 = (points[3][1] + points[0][1]) / 2;
    +                x2 = x1 - labelLineLen;
    +                textX = x2 - 5;
    +                textAlign = 'right';
    +            }
    +            else {
    +                // Right side
    +                x1 = (points[1][0] + points[2][0]) / 2;
    +                y1 = (points[1][1] + points[2][1]) / 2;
    +                x2 = x1 + labelLineLen;
    +                textX = x2 + 5;
    +                textAlign = 'left';
    +            }
    +            var y2 = y1;
    +
    +            linePoints = [[x1, y1], [x2, y2]];
    +            textY = y2;
    +        }
    +
    +        layout.label = {
    +            linePoints: linePoints,
    +            x: textX,
    +            y: textY,
    +            verticalAlign: 'middle',
    +            textAlign: textAlign,
    +            inside: isLabelInside
    +        };
    +    });
    +}
    +
    +var funnelLayout = function (ecModel, api, payload) {
    +    ecModel.eachSeriesByType('funnel', function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var sort = seriesModel.get('sort');
    +        var viewRect = getViewRect$2(seriesModel, api);
    +        var indices = getSortedIndices(data, sort);
    +
    +        var sizeExtent = [
    +            parsePercent$1(seriesModel.get('minSize'), viewRect.width),
    +            parsePercent$1(seriesModel.get('maxSize'), viewRect.width)
    +        ];
    +        var dataExtent = data.getDataExtent('value');
    +        var min = seriesModel.get('min');
    +        var max = seriesModel.get('max');
    +        if (min == null) {
    +            min = Math.min(dataExtent[0], 0);
    +        }
    +        if (max == null) {
    +            max = dataExtent[1];
    +        }
    +
    +        var funnelAlign = seriesModel.get('funnelAlign');
    +        var gap = seriesModel.get('gap');
    +        var itemHeight = (viewRect.height - gap * (data.count() - 1)) / data.count();
    +
    +        var y = viewRect.y;
    +
    +        var getLinePoints = function (idx, offY) {
    +            // End point index is data.count() and we assign it 0
    +            var val = data.get('value', idx) || 0;
    +            var itemWidth = linearMap(val, [min, max], sizeExtent, true);
    +            var x0;
    +            switch (funnelAlign) {
    +                case 'left':
    +                    x0 = viewRect.x;
    +                    break;
    +                case 'center':
    +                    x0 = viewRect.x + (viewRect.width - itemWidth) / 2;
    +                    break;
    +                case 'right':
    +                    x0 = viewRect.x + viewRect.width - itemWidth;
    +                    break;
    +            }
    +            return [
    +                [x0, offY],
    +                [x0 + itemWidth, offY]
    +            ];
    +        };
    +
    +        if (sort === 'ascending') {
    +            // From bottom to top
    +            itemHeight = -itemHeight;
    +            gap = -gap;
    +            y += viewRect.height;
    +            indices = indices.reverse();
    +        }
    +
    +        for (var i = 0; i < indices.length; i++) {
    +            var idx = indices[i];
    +            var nextIdx = indices[i + 1];
    +            var start = getLinePoints(idx, y);
    +            var end = getLinePoints(nextIdx, y + itemHeight);
    +
    +            y += itemHeight + gap;
    +
    +            data.setItemLayout(idx, {
    +                points: start.concat(end.slice().reverse())
    +            });
    +        }
    +
    +        labelLayout$1(data);
    +    });
    +};
    +
    +registerVisual(curry(dataColor, 'funnel'));
    +registerLayout(funnelLayout);
    +registerProcessor(curry(dataFilter, 'funnel'));
    +
    +var parallelPreprocessor = function (option) {
    +    createParallelIfNeeded(option);
    +    mergeAxisOptionFromParallel(option);
    +};
    +
    +/**
    + * Create a parallel coordinate if not exists.
    + * @inner
    + */
    +function createParallelIfNeeded(option) {
    +    if (option.parallel) {
    +        return;
    +    }
    +
    +    var hasParallelSeries = false;
    +
    +    each$1(option.series, function (seriesOpt) {
    +        if (seriesOpt && seriesOpt.type === 'parallel') {
    +            hasParallelSeries = true;
    +        }
    +    });
    +
    +    if (hasParallelSeries) {
    +        option.parallel = [{}];
    +    }
    +}
    +
    +/**
    + * Merge aixs definition from parallel option (if exists) to axis option.
    + * @inner
    + */
    +function mergeAxisOptionFromParallel(option) {
    +    var axes = normalizeToArray(option.parallelAxis);
    +
    +    each$1(axes, function (axisOption) {
    +        if (!isObject(axisOption)) {
    +            return;
    +        }
    +
    +        var parallelIndex = axisOption.parallelIndex || 0;
    +        var parallelOption = normalizeToArray(option.parallel)[parallelIndex];
    +
    +        if (parallelOption && parallelOption.parallelAxisDefault) {
    +            merge(axisOption, parallelOption.parallelAxisDefault, false);
    +        }
    +    });
    +}
    +
    +/**
    + * @constructor module:echarts/coord/parallel/ParallelAxis
    + * @extends {module:echarts/coord/Axis}
    + * @param {string} dim
    + * @param {*} scale
    + * @param {Array.<number>} coordExtent
    + * @param {string} axisType
    + */
    +var ParallelAxis = function (dim, scale, coordExtent, axisType, axisIndex) {
    +
    +    Axis.call(this, dim, scale, coordExtent);
    +
    +    /**
    +     * Axis type
    +     *  - 'category'
    +     *  - 'value'
    +     *  - 'time'
    +     *  - 'log'
    +     * @type {string}
    +     */
    +    this.type = axisType || 'value';
    +
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.axisIndex = axisIndex;
    +};
    +
    +ParallelAxis.prototype = {
    +
    +    constructor: ParallelAxis,
    +
    +    /**
    +     * Axis model
    +     * @param {module:echarts/coord/parallel/AxisModel}
    +     */
    +    model: null,
    +
    +    /**
    +     * @override
    +     */
    +    isHorizontal: function () {
    +        return this.coordinateSystem.getModel().get('layout') !== 'horizontal';
    +    }
    +
    +};
    +
    +inherits(ParallelAxis, Axis);
    +
    +/**
    + * Calculate slider move result.
    + * Usage:
    + * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as
    + * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.
    + * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.
    + *
    + * @param {number} delta Move length.
    + * @param {Array.<number>} handleEnds handleEnds[0] can be bigger then handleEnds[1].
    + *              handleEnds will be modified in this method.
    + * @param {Array.<number>} extent handleEnds is restricted by extent.
    + *              extent[0] should less or equals than extent[1].
    + * @param {number|string} handleIndex Can be 'all', means that both move the two handleEnds,
    + *              where the input minSpan and maxSpan will not work.
    + * @param {number} [minSpan] The range of dataZoom can not be smaller than that.
    + *              If not set, handle0 and cross handle1. If set as a non-negative
    + *              number (including `0`), handles will push each other when reaching
    + *              the minSpan.
    + * @param {number} [maxSpan] The range of dataZoom can not be larger than that.
    + * @return {Array.<number>} The input handleEnds.
    + */
    +var sliderMove = function (delta, handleEnds, extent, handleIndex, minSpan, maxSpan) {
    +    // Normalize firstly.
    +    handleEnds[0] = restrict$1(handleEnds[0], extent);
    +    handleEnds[1] = restrict$1(handleEnds[1], extent);
    +
    +    delta = delta || 0;
    +
    +    var extentSpan = extent[1] - extent[0];
    +
    +    // Notice maxSpan and minSpan can be null/undefined.
    +    if (minSpan != null) {
    +        minSpan = restrict$1(minSpan, [0, extentSpan]);
    +    }
    +    if (maxSpan != null) {
    +        maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);
    +    }
    +    if (handleIndex === 'all') {
    +        minSpan = maxSpan = Math.abs(handleEnds[1] - handleEnds[0]);
    +        handleIndex = 0;
    +    }
    +
    +    var originalDistSign = getSpanSign(handleEnds, handleIndex);
    +
    +    handleEnds[handleIndex] += delta;
    +
    +    // Restrict in extent.
    +    var extentMinSpan = minSpan || 0;
    +    var realExtent = extent.slice();
    +    originalDistSign.sign < 0 ? (realExtent[0] += extentMinSpan) : (realExtent[1] -= extentMinSpan);
    +    handleEnds[handleIndex] = restrict$1(handleEnds[handleIndex], realExtent);
    +
    +    // Expand span.
    +    var currDistSign = getSpanSign(handleEnds, handleIndex);
    +    if (minSpan != null && (
    +        currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan
    +    )) {
    +        // If minSpan exists, 'cross' is forbinden.
    +        handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;
    +    }
    +
    +    // Shrink span.
    +    var currDistSign = getSpanSign(handleEnds, handleIndex);
    +    if (maxSpan != null && currDistSign.span > maxSpan) {
    +        handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan;
    +    }
    +
    +    return handleEnds;
    +};
    +
    +function getSpanSign(handleEnds, handleIndex) {
    +    var dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex];
    +    // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]
    +    // is at left of handleEnds[1] for non-cross case.
    +    return {span: Math.abs(dist), sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1};
    +}
    +
    +function restrict$1(value, extend) {
    +    return Math.min(extend[1], Math.max(extend[0], value));
    +}
    +
    +/**
    + * Parallel Coordinates
    + * <https://en.wikipedia.org/wiki/Parallel_coordinates>
    + */
    +
    +var each$14 = each$1;
    +var mathMin$5 = Math.min;
    +var mathMax$5 = Math.max;
    +var mathFloor$2 = Math.floor;
    +var mathCeil$2 = Math.ceil;
    +var round$2 = round;
    +
    +var PI$3 = Math.PI;
    +
    +function Parallel(parallelModel, ecModel, api) {
    +
    +    /**
    +     * key: dimension
    +     * @type {Object.<string, module:echarts/coord/parallel/Axis>}
    +     * @private
    +     */
    +    this._axesMap = createHashMap();
    +
    +    /**
    +     * key: dimension
    +     * value: {position: [], rotation, }
    +     * @type {Object.<string, Object>}
    +     * @private
    +     */
    +    this._axesLayout = {};
    +
    +    /**
    +     * Always follow axis order.
    +     * @type {Array.<string>}
    +     * @readOnly
    +     */
    +    this.dimensions = parallelModel.dimensions;
    +
    +    /**
    +     * @type {module:zrender/core/BoundingRect}
    +     */
    +    this._rect;
    +
    +    /**
    +     * @type {module:echarts/coord/parallel/ParallelModel}
    +     */
    +    this._model = parallelModel;
    +
    +    this._init(parallelModel, ecModel, api);
    +}
    +
    +Parallel.prototype = {
    +
    +    type: 'parallel',
    +
    +    constructor: Parallel,
    +
    +    /**
    +     * Initialize cartesian coordinate systems
    +     * @private
    +     */
    +    _init: function (parallelModel, ecModel, api) {
    +
    +        var dimensions = parallelModel.dimensions;
    +        var parallelAxisIndex = parallelModel.parallelAxisIndex;
    +
    +        each$14(dimensions, function (dim, idx) {
    +
    +            var axisIndex = parallelAxisIndex[idx];
    +            var axisModel = ecModel.getComponent('parallelAxis', axisIndex);
    +
    +            var axis = this._axesMap.set(dim, new ParallelAxis(
    +                dim,
    +                createScaleByModel(axisModel),
    +                [0, 0],
    +                axisModel.get('type'),
    +                axisIndex
    +            ));
    +
    +            var isCategory = axis.type === 'category';
    +            axis.onBand = isCategory && axisModel.get('boundaryGap');
    +            axis.inverse = axisModel.get('inverse');
    +
    +            // Injection
    +            axisModel.axis = axis;
    +            axis.model = axisModel;
    +            axis.coordinateSystem = axisModel.coordinateSystem = this;
    +
    +        }, this);
    +    },
    +
    +    /**
    +     * Update axis scale after data processed
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    update: function (ecModel, api) {
    +        this._updateAxesFromSeries(this._model, ecModel);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    containPoint: function (point) {
    +        var layoutInfo = this._makeLayoutInfo();
    +        var axisBase = layoutInfo.axisBase;
    +        var layoutBase = layoutInfo.layoutBase;
    +        var pixelDimIndex = layoutInfo.pixelDimIndex;
    +        var pAxis = point[1 - pixelDimIndex];
    +        var pLayout = point[pixelDimIndex];
    +
    +        return pAxis >= axisBase
    +            && pAxis <= axisBase + layoutInfo.axisLength
    +            && pLayout >= layoutBase
    +            && pLayout <= layoutBase + layoutInfo.layoutLength;
    +    },
    +
    +    getModel: function () {
    +        return this._model;
    +    },
    +
    +    /**
    +     * Update properties from series
    +     * @private
    +     */
    +    _updateAxesFromSeries: function (parallelModel, ecModel) {
    +        ecModel.eachSeries(function (seriesModel) {
    +
    +            if (!parallelModel.contains(seriesModel, ecModel)) {
    +                return;
    +            }
    +
    +            var data = seriesModel.getData();
    +
    +            each$14(this.dimensions, function (dim) {
    +                var axis = this._axesMap.get(dim);
    +                axis.scale.unionExtentFromData(data, dim);
    +                niceScaleExtent(axis.scale, axis.model);
    +            }, this);
    +        }, this);
    +    },
    +
    +    /**
    +     * Resize the parallel coordinate system.
    +     * @param {module:echarts/coord/parallel/ParallelModel} parallelModel
    +     * @param {module:echarts/ExtensionAPI} api
    +     */
    +    resize: function (parallelModel, api) {
    +        this._rect = getLayoutRect(
    +            parallelModel.getBoxLayoutParams(),
    +            {
    +                width: api.getWidth(),
    +                height: api.getHeight()
    +            }
    +        );
    +
    +        this._layoutAxes();
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getRect: function () {
    +        return this._rect;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _makeLayoutInfo: function () {
    +        var parallelModel = this._model;
    +        var rect = this._rect;
    +        var xy = ['x', 'y'];
    +        var wh = ['width', 'height'];
    +        var layout = parallelModel.get('layout');
    +        var pixelDimIndex = layout === 'horizontal' ? 0 : 1;
    +        var layoutLength = rect[wh[pixelDimIndex]];
    +        var layoutExtent = [0, layoutLength];
    +        var axisCount = this.dimensions.length;
    +
    +        var axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent);
    +        var axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]);
    +        var axisExpandable = parallelModel.get('axisExpandable')
    +            && axisCount > 3
    +            && axisCount > axisExpandCount
    +            && axisExpandCount > 1
    +            && axisExpandWidth > 0
    +            && layoutLength > 0;
    +
    +        // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength],
    +        // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow),
    +        // where collapsed axes should be overlapped.
    +        var axisExpandWindow = parallelModel.get('axisExpandWindow');
    +        var winSize;
    +        if (!axisExpandWindow) {
    +            winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent);
    +            var axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor$2(axisCount / 2);
    +            axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2];
    +            axisExpandWindow[1] = axisExpandWindow[0] + winSize;
    +        }
    +        else {
    +                winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent);
    +                axisExpandWindow[1] = axisExpandWindow[0] + winSize;
    +        }
    +
    +        var axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount);
    +        // Avoid axisCollapseWidth is too small.
    +        axisCollapseWidth < 3 && (axisCollapseWidth = 0);
    +
    +        // Find the first and last indices > ewin[0] and < ewin[1].
    +        var winInnerIndices = [
    +            mathFloor$2(round$2(axisExpandWindow[0] / axisExpandWidth, 1)) + 1,
    +            mathCeil$2(round$2(axisExpandWindow[1] / axisExpandWidth, 1)) - 1
    +        ];
    +
    +        // Pos in ec coordinates.
    +        var axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0];
    +
    +        return {
    +            layout: layout,
    +            pixelDimIndex: pixelDimIndex,
    +            layoutBase: rect[xy[pixelDimIndex]],
    +            layoutLength: layoutLength,
    +            axisBase: rect[xy[1 - pixelDimIndex]],
    +            axisLength: rect[wh[1 - pixelDimIndex]],
    +            axisExpandable: axisExpandable,
    +            axisExpandWidth: axisExpandWidth,
    +            axisCollapseWidth: axisCollapseWidth,
    +            axisExpandWindow: axisExpandWindow,
    +            axisCount: axisCount,
    +            winInnerIndices: winInnerIndices,
    +            axisExpandWindow0Pos: axisExpandWindow0Pos
    +        };
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _layoutAxes: function () {
    +        var rect = this._rect;
    +        var axes = this._axesMap;
    +        var dimensions = this.dimensions;
    +        var layoutInfo = this._makeLayoutInfo();
    +        var layout = layoutInfo.layout;
    +
    +        axes.each(function (axis) {
    +            var axisExtent = [0, layoutInfo.axisLength];
    +            var idx = axis.inverse ? 1 : 0;
    +            axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);
    +        });
    +
    +        each$14(dimensions, function (dim, idx) {
    +            var posInfo = (layoutInfo.axisExpandable
    +                ? layoutAxisWithExpand : layoutAxisWithoutExpand
    +            )(idx, layoutInfo);
    +
    +            var positionTable = {
    +                horizontal: {
    +                    x: posInfo.position,
    +                    y: layoutInfo.axisLength
    +                },
    +                vertical: {
    +                    x: 0,
    +                    y: posInfo.position
    +                }
    +            };
    +            var rotationTable = {
    +                horizontal: PI$3 / 2,
    +                vertical: 0
    +            };
    +
    +            var position = [
    +                positionTable[layout].x + rect.x,
    +                positionTable[layout].y + rect.y
    +            ];
    +
    +            var rotation = rotationTable[layout];
    +            var transform = create$1();
    +            rotate(transform, transform, rotation);
    +            translate(transform, transform, position);
    +
    +            // TODO
    +            // tick等排布信息。
    +
    +            // TODO
    +            // 根据axis order 更新 dimensions顺序。
    +
    +            this._axesLayout[dim] = {
    +                position: position,
    +                rotation: rotation,
    +                transform: transform,
    +                axisNameAvailableWidth: posInfo.axisNameAvailableWidth,
    +                axisLabelShow: posInfo.axisLabelShow,
    +                nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth,
    +                tickDirection: 1,
    +                labelDirection: 1,
    +                labelInterval: axes.get(dim).getLabelInterval()
    +            };
    +        }, this);
    +    },
    +
    +    /**
    +     * Get axis by dim.
    +     * @param {string} dim
    +     * @return {module:echarts/coord/parallel/ParallelAxis} [description]
    +     */
    +    getAxis: function (dim) {
    +        return this._axesMap.get(dim);
    +    },
    +
    +    /**
    +     * Convert a dim value of a single item of series data to Point.
    +     * @param {*} value
    +     * @param {string} dim
    +     * @return {Array}
    +     */
    +    dataToPoint: function (value, dim) {
    +        return this.axisCoordToPoint(
    +            this._axesMap.get(dim).dataToCoord(value),
    +            dim
    +        );
    +    },
    +
    +    /**
    +     * Travel data for one time, get activeState of each data item.
    +     * @param {module:echarts/data/List} data
    +     * @param {Functio} cb param: {string} activeState 'active' or 'inactive' or 'normal'
    +     *                            {number} dataIndex
    +     * @param {Object} context
    +     */
    +    eachActiveState: function (data, callback, context) {
    +        var dimensions = this.dimensions;
    +        var axesMap = this._axesMap;
    +        var hasActiveSet = this.hasAxisBrushed();
    +
    +        for (var i = 0, len = data.count(); i < len; i++) {
    +            var values = data.getValues(dimensions, i);
    +            var activeState;
    +
    +            if (!hasActiveSet) {
    +                activeState = 'normal';
    +            }
    +            else {
    +                activeState = 'active';
    +                for (var j = 0, lenj = dimensions.length; j < lenj; j++) {
    +                    var dimName = dimensions[j];
    +                    var state = axesMap.get(dimName).model.getActiveState(values[j], j);
    +
    +                    if (state === 'inactive') {
    +                        activeState = 'inactive';
    +                        break;
    +                    }
    +                }
    +            }
    +
    +            callback.call(context, activeState, i);
    +        }
    +    },
    +
    +    /**
    +     * Whether has any activeSet.
    +     * @return {boolean}
    +     */
    +    hasAxisBrushed: function () {
    +        var dimensions = this.dimensions;
    +        var axesMap = this._axesMap;
    +        var hasActiveSet = false;
    +
    +        for (var j = 0, lenj = dimensions.length; j < lenj; j++) {
    +            if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') {
    +                hasActiveSet = true;
    +            }
    +        }
    +
    +        return hasActiveSet;
    +    },
    +
    +    /**
    +     * Convert coords of each axis to Point.
    +     *  Return point. For example: [10, 20]
    +     * @param {Array.<number>} coords
    +     * @param {string} dim
    +     * @return {Array.<number>}
    +     */
    +    axisCoordToPoint: function (coord, dim) {
    +        var axisLayout = this._axesLayout[dim];
    +        return applyTransform$1([coord, 0], axisLayout.transform);
    +    },
    +
    +    /**
    +     * Get axis layout.
    +     */
    +    getAxisLayout: function (dim) {
    +        return clone(this._axesLayout[dim]);
    +    },
    +
    +    /**
    +     * @param {Array.<number>} point
    +     * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.
    +     */
    +    getSlidedAxisExpandWindow: function (point) {
    +        var layoutInfo = this._makeLayoutInfo();
    +        var pixelDimIndex = layoutInfo.pixelDimIndex;
    +        var axisExpandWindow = layoutInfo.axisExpandWindow.slice();
    +        var winSize = axisExpandWindow[1] - axisExpandWindow[0];
    +        var extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)];
    +
    +        // Out of the area of coordinate system.
    +        if (!this.containPoint(point)) {
    +            return {behavior: 'none', axisExpandWindow: axisExpandWindow};
    +        }
    +
    +        // Conver the point from global to expand coordinates.
    +        var pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos;
    +
    +        // For dragging operation convenience, the window should not be
    +        // slided when mouse is the center area of the window.
    +        var delta;
    +        var behavior = 'slide';
    +        var axisCollapseWidth = layoutInfo.axisCollapseWidth;
    +        var triggerArea = this._model.get('axisExpandSlideTriggerArea');
    +        // But consider touch device, jump is necessary.
    +        var useJump = triggerArea[0] != null;
    +
    +        if (axisCollapseWidth) {
    +            if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) {
    +                behavior = 'jump';
    +                delta = pointCoord - winSize * triggerArea[2];
    +            }
    +            else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) {
    +                behavior = 'jump';
    +                delta = pointCoord - winSize * (1 - triggerArea[2]);
    +            }
    +            else {
    +                (delta = pointCoord - winSize * triggerArea[1]) >= 0
    +                    && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0
    +                    && (delta = 0);
    +            }
    +            delta *= layoutInfo.axisExpandWidth / axisCollapseWidth;
    +            delta
    +                ? sliderMove(delta, axisExpandWindow, extent, 'all')
    +                // Avoid nonsense triger on mousemove.
    +                : (behavior = 'none');
    +        }
    +        // When screen is too narrow, make it visible and slidable, although it is hard to interact.
    +        else {
    +            var winSize = axisExpandWindow[1] - axisExpandWindow[0];
    +            var pos = extent[1] * pointCoord / winSize;
    +            axisExpandWindow = [mathMax$5(0, pos - winSize / 2)];
    +            axisExpandWindow[1] = mathMin$5(extent[1], axisExpandWindow[0] + winSize);
    +            axisExpandWindow[0] = axisExpandWindow[1] - winSize;
    +        }
    +
    +        return {
    +            axisExpandWindow: axisExpandWindow,
    +            behavior: behavior
    +        };
    +    }
    +};
    +
    +function restrict(len, extent) {
    +    return mathMin$5(mathMax$5(len, extent[0]), extent[1]);
    +}
    +
    +function layoutAxisWithoutExpand(axisIndex, layoutInfo) {
    +    var step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1);
    +    return {
    +        position: step * axisIndex,
    +        axisNameAvailableWidth: step,
    +        axisLabelShow: true
    +    };
    +}
    +
    +function layoutAxisWithExpand(axisIndex, layoutInfo) {
    +    var layoutLength = layoutInfo.layoutLength;
    +    var axisExpandWidth = layoutInfo.axisExpandWidth;
    +    var axisCount = layoutInfo.axisCount;
    +    var axisCollapseWidth = layoutInfo.axisCollapseWidth;
    +    var winInnerIndices = layoutInfo.winInnerIndices;
    +
    +    var position;
    +    var axisNameAvailableWidth = axisCollapseWidth;
    +    var axisLabelShow = false;
    +    var nameTruncateMaxWidth;
    +
    +    if (axisIndex < winInnerIndices[0]) {
    +        position = axisIndex * axisCollapseWidth;
    +        nameTruncateMaxWidth = axisCollapseWidth;
    +    }
    +    else if (axisIndex <= winInnerIndices[1]) {
    +        position = layoutInfo.axisExpandWindow0Pos
    +            + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0];
    +        axisNameAvailableWidth = axisExpandWidth;
    +        axisLabelShow = true;
    +    }
    +    else {
    +        position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth;
    +        nameTruncateMaxWidth = axisCollapseWidth;
    +    }
    +
    +    return {
    +        position: position,
    +        axisNameAvailableWidth: axisNameAvailableWidth,
    +        axisLabelShow: axisLabelShow,
    +        nameTruncateMaxWidth: nameTruncateMaxWidth
    +    };
    +}
    +
    +/**
    + * Parallel coordinate system creater.
    + */
    +
    +function create$2(ecModel, api) {
    +    var coordSysList = [];
    +
    +    ecModel.eachComponent('parallel', function (parallelModel, idx) {
    +        var coordSys = new Parallel(parallelModel, ecModel, api);
    +
    +        coordSys.name = 'parallel_' + idx;
    +        coordSys.resize(parallelModel, api);
    +
    +        parallelModel.coordinateSystem = coordSys;
    +        coordSys.model = parallelModel;
    +
    +        coordSysList.push(coordSys);
    +    });
    +
    +    // Inject the coordinateSystems into seriesModel
    +    ecModel.eachSeries(function (seriesModel) {
    +        if (seriesModel.get('coordinateSystem') === 'parallel') {
    +            var parallelModel = ecModel.queryComponents({
    +                mainType: 'parallel',
    +                index: seriesModel.get('parallelIndex'),
    +                id: seriesModel.get('parallelId')
    +            })[0];
    +            seriesModel.coordinateSystem = parallelModel.coordinateSystem;
    +        }
    +    });
    +
    +    return coordSysList;
    +}
    +
    +CoordinateSystemManager.register('parallel', {create: create$2});
    +
    +var AxisModel$2 = ComponentModel.extend({
    +
    +    type: 'baseParallelAxis',
    +
    +    /**
    +     * @type {module:echarts/coord/parallel/Axis}
    +     */
    +    axis: null,
    +
    +    /**
    +     * @type {Array.<Array.<number>}
    +     * @readOnly
    +     */
    +    activeIntervals: [],
    +
    +    /**
    +     * @return {Object}
    +     */
    +    getAreaSelectStyle: function () {
    +        return makeStyleMapper(
    +            [
    +                ['fill', 'color'],
    +                ['lineWidth', 'borderWidth'],
    +                ['stroke', 'borderColor'],
    +                ['width', 'width'],
    +                ['opacity', 'opacity']
    +            ]
    +        )(this.getModel('areaSelectStyle'));
    +    },
    +
    +    /**
    +     * The code of this feature is put on AxisModel but not ParallelAxis,
    +     * because axisModel can be alive after echarts updating but instance of
    +     * ParallelAxis having been disposed. this._activeInterval should be kept
    +     * when action dispatched (i.e. legend click).
    +     *
    +     * @param {Array.<Array<number>>} intervals interval.length === 0
    +     *                                          means set all active.
    +     * @public
    +     */
    +    setActiveIntervals: function (intervals) {
    +        var activeIntervals = this.activeIntervals = clone(intervals);
    +
    +        // Normalize
    +        if (activeIntervals) {
    +            for (var i = activeIntervals.length - 1; i >= 0; i--) {
    +                asc(activeIntervals[i]);
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @param {number|string} [value] When attempting to detect 'no activeIntervals set',
    +     *                         value can not be input.
    +     * @return {string} 'normal': no activeIntervals set,
    +     *                  'active',
    +     *                  'inactive'.
    +     * @public
    +     */
    +    getActiveState: function (value) {
    +        var activeIntervals = this.activeIntervals;
    +
    +        if (!activeIntervals.length) {
    +            return 'normal';
    +        }
    +
    +        if (value == null) {
    +            return 'inactive';
    +        }
    +
    +        for (var i = 0, len = activeIntervals.length; i < len; i++) {
    +            if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {
    +                return 'active';
    +            }
    +        }
    +        return 'inactive';
    +    }
    +
    +});
    +
    +var defaultOption$1 = {
    +
    +    type: 'value',
    +
    +    /**
    +     * @type {Array.<number>}
    +     */
    +    dim: null, // 0, 1, 2, ...
    +
    +    // parallelIndex: null,
    +
    +    areaSelectStyle: {
    +        width: 20,
    +        borderWidth: 1,
    +        borderColor: 'rgba(160,197,232)',
    +        color: 'rgba(160,197,232)',
    +        opacity: 0.3
    +    },
    +
    +    realtime: true, // Whether realtime update view when select.
    +
    +    z: 10
    +};
    +
    +merge(AxisModel$2.prototype, axisModelCommonMixin);
    +
    +function getAxisType$1(axisName, option) {
    +    return option.type || (option.data ? 'category' : 'value');
    +}
    +
    +axisModelCreator('parallel', AxisModel$2, getAxisType$1, defaultOption$1);
    +
    +ComponentModel.extend({
    +
    +    type: 'parallel',
    +
    +    dependencies: ['parallelAxis'],
    +
    +    /**
    +     * @type {module:echarts/coord/parallel/Parallel}
    +     */
    +    coordinateSystem: null,
    +
    +    /**
    +     * Each item like: 'dim0', 'dim1', 'dim2', ...
    +     * @type {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: null,
    +
    +    /**
    +     * Coresponding to dimensions.
    +     * @type {Array.<number>}
    +     * @readOnly
    +     */
    +    parallelAxisIndex: null,
    +
    +    layoutMode: 'box',
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 0,
    +        left: 80,
    +        top: 60,
    +        right: 80,
    +        bottom: 60,
    +        // width: {totalWidth} - left - right,
    +        // height: {totalHeight} - top - bottom,
    +
    +        layout: 'horizontal',      // 'horizontal' or 'vertical'
    +
    +        // FIXME
    +        // naming?
    +        axisExpandable: false,
    +        axisExpandCenter: null,
    +        axisExpandCount: 0,
    +        axisExpandWidth: 50,      // FIXME '10%' ?
    +        axisExpandRate: 17,
    +        axisExpandDebounce: 50,
    +        // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.
    +        // Do not doc to user until necessary.
    +        axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],
    +        axisExpandTriggerOn: 'click', // 'mousemove' or 'click'
    +
    +        parallelAxisDefault: null
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    init: function () {
    +        ComponentModel.prototype.init.apply(this, arguments);
    +
    +        this.mergeOption({});
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function (newOption) {
    +        var thisOption = this.option;
    +
    +        newOption && merge(thisOption, newOption, true);
    +
    +        this._initDimensions();
    +    },
    +
    +    /**
    +     * Whether series or axis is in this coordinate system.
    +     * @param {module:echarts/model/Series|module:echarts/coord/parallel/AxisModel} model
    +     * @param {module:echarts/model/Global} ecModel
    +     */
    +    contains: function (model, ecModel) {
    +        var parallelIndex = model.get('parallelIndex');
    +        return parallelIndex != null
    +            && ecModel.getComponent('parallel', parallelIndex) === this;
    +    },
    +
    +    setAxisExpand: function (opt) {
    +        each$1(
    +            ['axisExpandable', 'axisExpandCenter', 'axisExpandCount', 'axisExpandWidth', 'axisExpandWindow'],
    +            function (name) {
    +                if (opt.hasOwnProperty(name)) {
    +                    this.option[name] = opt[name];
    +                }
    +            },
    +            this
    +        );
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _initDimensions: function () {
    +        var dimensions = this.dimensions = [];
    +        var parallelAxisIndex = this.parallelAxisIndex = [];
    +
    +        var axisModels = filter(this.dependentModels.parallelAxis, function (axisModel) {
    +            // Can not use this.contains here, because
    +            // initialization has not been completed yet.
    +            return (axisModel.get('parallelIndex') || 0) === this.componentIndex;
    +        }, this);
    +
    +        each$1(axisModels, function (axisModel) {
    +            dimensions.push('dim' + axisModel.get('dim'));
    +            parallelAxisIndex.push(axisModel.componentIndex);
    +        });
    +    }
    +
    +});
    +
    +/**
    + * @payload
    + * @property {string} parallelAxisId
    + * @property {Array.<Array.<number>>} intervals
    + */
    +var actionInfo$1 = {
    +    type: 'axisAreaSelect',
    +    event: 'axisAreaSelected',
    +    update: 'updateVisual'
    +};
    +
    +registerAction(actionInfo$1, function (payload, ecModel) {
    +    ecModel.eachComponent(
    +        {mainType: 'parallelAxis', query: payload},
    +        function (parallelAxisModel) {
    +            parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);
    +        }
    +    );
    +});
    +
    +/**
    + * @payload
    + */
    +registerAction('parallelAxisExpand', function (payload, ecModel) {
    +    ecModel.eachComponent(
    +        {mainType: 'parallel', query: payload},
    +        function (parallelModel) {
    +            parallelModel.setAxisExpand(payload);
    +        }
    +    );
    +
    +});
    +
    +var curry$2 = curry;
    +var each$15 = each$1;
    +var map$3 = map;
    +var mathMin$6 = Math.min;
    +var mathMax$6 = Math.max;
    +var mathPow$2 = Math.pow;
    +
    +var COVER_Z = 10000;
    +var UNSELECT_THRESHOLD = 6;
    +var MIN_RESIZE_LINE_WIDTH = 6;
    +var MUTEX_RESOURCE_KEY = 'globalPan';
    +
    +var DIRECTION_MAP = {
    +    w: [0, 0],
    +    e: [0, 1],
    +    n: [1, 0],
    +    s: [1, 1]
    +};
    +var CURSOR_MAP = {
    +    w: 'ew',
    +    e: 'ew',
    +    n: 'ns',
    +    s: 'ns',
    +    ne: 'nesw',
    +    sw: 'nesw',
    +    nw: 'nwse',
    +    se: 'nwse'
    +};
    +var DEFAULT_BRUSH_OPT = {
    +    brushStyle: {
    +        lineWidth: 2,
    +        stroke: 'rgba(0,0,0,0.3)',
    +        fill: 'rgba(0,0,0,0.1)'
    +    },
    +    transformable: true,
    +    brushMode: 'single',
    +    removeOnClick: false
    +};
    +
    +var baseUID = 0;
    +
    +/**
    + * @alias module:echarts/component/helper/BrushController
    + * @constructor
    + * @mixin {module:zrender/mixin/Eventful}
    + * @event module:echarts/component/helper/BrushController#brush
    + *        params:
    + *            areas: Array.<Array>, coord relates to container group,
    + *                                    If no container specified, to global.
    + *            opt {
    + *                isEnd: boolean,
    + *                removeOnClick: boolean
    + *            }
    + *
    + * @param {module:zrender/zrender~ZRender} zr
    + */
    +function BrushController(zr) {
    +
    +    if (__DEV__) {
    +        assert(zr);
    +    }
    +
    +    Eventful.call(this);
    +
    +    /**
    +     * @type {module:zrender/zrender~ZRender}
    +     * @private
    +     */
    +    this._zr = zr;
    +
    +    /**
    +     * @type {module:zrender/container/Group}
    +     * @readOnly
    +     */
    +    this.group = new Group();
    +
    +    /**
    +     * Only for drawing (after enabledBrush).
    +     *     'line', 'rect', 'polygon' or false
    +     *     If passing false/null/undefined, disable brush.
    +     *     If passing 'auto', determined by panel.defaultBrushType
    +     * @private
    +     * @type {string}
    +     */
    +    this._brushType;
    +
    +    /**
    +     * Only for drawing (after enabledBrush).
    +     *
    +     * @private
    +     * @type {Object}
    +     */
    +    this._brushOption;
    +
    +    /**
    +     * @private
    +     * @type {Object}
    +     */
    +    this._panels;
    +
    +    /**
    +     * @private
    +     * @type {Array.<nubmer>}
    +     */
    +    this._track = [];
    +
    +    /**
    +     * @private
    +     * @type {boolean}
    +     */
    +    this._dragging;
    +
    +    /**
    +     * @private
    +     * @type {Array}
    +     */
    +    this._covers = [];
    +
    +    /**
    +     * @private
    +     * @type {moudule:zrender/container/Group}
    +     */
    +    this._creatingCover;
    +
    +    /**
    +     * `true` means global panel
    +     * @private
    +     * @type {module:zrender/container/Group|boolean}
    +     */
    +    this._creatingPanel;
    +
    +    /**
    +     * @private
    +     * @type {boolean}
    +     */
    +    this._enableGlobalPan;
    +
    +    /**
    +     * @private
    +     * @type {boolean}
    +     */
    +    if (__DEV__) {
    +        this._mounted;
    +    }
    +
    +    /**
    +     * @private
    +     * @type {string}
    +     */
    +    this._uid = 'brushController_' + baseUID++;
    +
    +    /**
    +     * @private
    +     * @type {Object}
    +     */
    +    this._handlers = {};
    +    each$15(mouseHandlers, function (handler, eventName) {
    +        this._handlers[eventName] = bind(handler, this);
    +    }, this);
    +}
    +
    +BrushController.prototype = {
    +
    +    constructor: BrushController,
    +
    +    /**
    +     * If set to null/undefined/false, select disabled.
    +     * @param {Object} brushOption
    +     * @param {string|boolean} brushOption.brushType 'line', 'rect', 'polygon' or false
    +     *                          If passing false/null/undefined, disable brush.
    +     *                          If passing 'auto', determined by panel.defaultBrushType.
    +     *                              ('auto' can not be used in global panel)
    +     * @param {number} [brushOption.brushMode='single'] 'single' or 'multiple'
    +     * @param {boolean} [brushOption.transformable=true]
    +     * @param {boolean} [brushOption.removeOnClick=false]
    +     * @param {Object} [brushOption.brushStyle]
    +     * @param {number} [brushOption.brushStyle.width]
    +     * @param {number} [brushOption.brushStyle.lineWidth]
    +     * @param {string} [brushOption.brushStyle.stroke]
    +     * @param {string} [brushOption.brushStyle.fill]
    +     * @param {number} [brushOption.z]
    +     */
    +    enableBrush: function (brushOption) {
    +        if (__DEV__) {
    +            assert(this._mounted);
    +        }
    +
    +        this._brushType && doDisableBrush(this);
    +        brushOption.brushType && doEnableBrush(this, brushOption);
    +
    +        return this;
    +    },
    +
    +    /**
    +     * @param {Array.<Object>} panelOpts If not pass, it is global brush.
    +     *        Each items: {
    +     *            panelId, // mandatory.
    +     *            clipPath, // mandatory. function.
    +     *            isTargetByCursor, // mandatory. function.
    +     *            defaultBrushType, // optional, only used when brushType is 'auto'.
    +     *            getLinearBrushOtherExtent, // optional. function.
    +     *        }
    +     */
    +    setPanels: function (panelOpts) {
    +        if (panelOpts && panelOpts.length) {
    +            var panels = this._panels = {};
    +            each$1(panelOpts, function (panelOpts) {
    +                panels[panelOpts.panelId] = clone(panelOpts);
    +            });
    +        }
    +        else {
    +            this._panels = null;
    +        }
    +        return this;
    +    },
    +
    +    /**
    +     * @param {Object} [opt]
    +     * @return {boolean} [opt.enableGlobalPan=false]
    +     */
    +    mount: function (opt) {
    +        opt = opt || {};
    +
    +        if (__DEV__) {
    +            this._mounted = true; // should be at first.
    +        }
    +
    +        this._enableGlobalPan = opt.enableGlobalPan;
    +
    +        var thisGroup = this.group;
    +        this._zr.add(thisGroup);
    +
    +        thisGroup.attr({
    +            position: opt.position || [0, 0],
    +            rotation: opt.rotation || 0,
    +            scale: opt.scale || [1, 1]
    +        });
    +        this._transform = thisGroup.getLocalTransform();
    +
    +        return this;
    +    },
    +
    +    eachCover: function (cb, context) {
    +        each$15(this._covers, cb, context);
    +    },
    +
    +    /**
    +     * Update covers.
    +     * @param {Array.<Object>} brushOptionList Like:
    +     *        [
    +     *            {id: 'xx', brushType: 'line', range: [23, 44], brushStyle, transformable},
    +     *            {id: 'yy', brushType: 'rect', range: [[23, 44], [23, 54]]},
    +     *            ...
    +     *        ]
    +     *        `brushType` is required in each cover info. (can not be 'auto')
    +     *        `id` is not mandatory.
    +     *        `brushStyle`, `transformable` is not mandatory, use DEFAULT_BRUSH_OPT by default.
    +     *        If brushOptionList is null/undefined, all covers removed.
    +     */
    +    updateCovers: function (brushOptionList) {
    +        if (__DEV__) {
    +            assert(this._mounted);
    +        }
    +
    +        brushOptionList = map(brushOptionList, function (brushOption) {
    +            return merge(clone(DEFAULT_BRUSH_OPT), brushOption, true);
    +        });
    +
    +        var tmpIdPrefix = '\0-brush-index-';
    +        var oldCovers = this._covers;
    +        var newCovers = this._covers = [];
    +        var controller = this;
    +        var creatingCover = this._creatingCover;
    +
    +        (new DataDiffer(oldCovers, brushOptionList, oldGetKey, getKey))
    +            .add(addOrUpdate)
    +            .update(addOrUpdate)
    +            .remove(remove)
    +            .execute();
    +
    +        return this;
    +
    +        function getKey(brushOption, index) {
    +            return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index)
    +                + '-' + brushOption.brushType;
    +        }
    +
    +        function oldGetKey(cover, index) {
    +            return getKey(cover.__brushOption, index);
    +        }
    +
    +        function addOrUpdate(newIndex, oldIndex) {
    +            var newBrushOption = brushOptionList[newIndex];
    +            // Consider setOption in event listener of brushSelect,
    +            // where updating cover when creating should be forbiden.
    +            if (oldIndex != null && oldCovers[oldIndex] === creatingCover) {
    +                newCovers[newIndex] = oldCovers[oldIndex];
    +            }
    +            else {
    +                var cover = newCovers[newIndex] = oldIndex != null
    +                    ? (
    +                        oldCovers[oldIndex].__brushOption = newBrushOption,
    +                        oldCovers[oldIndex]
    +                    )
    +                    : endCreating(controller, createCover(controller, newBrushOption));
    +                updateCoverAfterCreation(controller, cover);
    +            }
    +        }
    +
    +        function remove(oldIndex) {
    +            if (oldCovers[oldIndex] !== creatingCover) {
    +                controller.group.remove(oldCovers[oldIndex]);
    +            }
    +        }
    +    },
    +
    +    unmount: function () {
    +        if (__DEV__) {
    +            if (!this._mounted) {
    +                return;
    +            }
    +        }
    +
    +        this.enableBrush(false);
    +
    +        // container may 'removeAll' outside.
    +        clearCovers(this);
    +        this._zr.remove(this.group);
    +
    +        if (__DEV__) {
    +            this._mounted = false; // should be at last.
    +        }
    +
    +        return this;
    +    },
    +
    +    dispose: function () {
    +        this.unmount();
    +        this.off();
    +    }
    +};
    +
    +mixin(BrushController, Eventful);
    +
    +function doEnableBrush(controller, brushOption) {
    +    var zr = controller._zr;
    +
    +    // Consider roam, which takes globalPan too.
    +    if (!controller._enableGlobalPan) {
    +        take(zr, MUTEX_RESOURCE_KEY, controller._uid);
    +    }
    +
    +    each$15(controller._handlers, function (handler, eventName) {
    +        zr.on(eventName, handler);
    +    });
    +
    +    controller._brushType = brushOption.brushType;
    +    controller._brushOption = merge(clone(DEFAULT_BRUSH_OPT), brushOption, true);
    +}
    +
    +function doDisableBrush(controller) {
    +    var zr = controller._zr;
    +
    +    release(zr, MUTEX_RESOURCE_KEY, controller._uid);
    +
    +    each$15(controller._handlers, function (handler, eventName) {
    +        zr.off(eventName, handler);
    +    });
    +
    +    controller._brushType = controller._brushOption = null;
    +}
    +
    +function createCover(controller, brushOption) {
    +    var cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption);
    +    cover.__brushOption = brushOption;
    +    updateZ$1(cover, brushOption);
    +    controller.group.add(cover);
    +    return cover;
    +}
    +
    +function endCreating(controller, creatingCover) {
    +    var coverRenderer = getCoverRenderer(creatingCover);
    +    if (coverRenderer.endCreating) {
    +        coverRenderer.endCreating(controller, creatingCover);
    +        updateZ$1(creatingCover, creatingCover.__brushOption);
    +    }
    +    return creatingCover;
    +}
    +
    +function updateCoverShape(controller, cover) {
    +    var brushOption = cover.__brushOption;
    +    getCoverRenderer(cover).updateCoverShape(
    +        controller, cover, brushOption.range, brushOption
    +    );
    +}
    +
    +function updateZ$1(cover, brushOption) {
    +    var z = brushOption.z;
    +    z == null && (z = COVER_Z);
    +    cover.traverse(function (el) {
    +        el.z = z;
    +        el.z2 = z; // Consider in given container.
    +    });
    +}
    +
    +function updateCoverAfterCreation(controller, cover) {
    +    getCoverRenderer(cover).updateCommon(controller, cover);
    +    updateCoverShape(controller, cover);
    +}
    +
    +function getCoverRenderer(cover) {
    +    return coverRenderers[cover.__brushOption.brushType];
    +}
    +
    +// return target panel or `true` (means global panel)
    +function getPanelByPoint(controller, e, localCursorPoint) {
    +    var panels = controller._panels;
    +    if (!panels) {
    +        return true; // Global panel
    +    }
    +    var panel;
    +    var transform = controller._transform;
    +    each$15(panels, function (pn) {
    +        pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);
    +    });
    +    return panel;
    +}
    +
    +// Return a panel or true
    +function getPanelByCover(controller, cover) {
    +    var panels = controller._panels;
    +    if (!panels) {
    +        return true; // Global panel
    +    }
    +    var panelId = cover.__brushOption.panelId;
    +    // User may give cover without coord sys info,
    +    // which is then treated as global panel.
    +    return panelId != null ? panels[panelId] : true;
    +}
    +
    +function clearCovers(controller) {
    +    var covers = controller._covers;
    +    var originalLength = covers.length;
    +    each$15(covers, function (cover) {
    +        controller.group.remove(cover);
    +    }, controller);
    +    covers.length = 0;
    +
    +    return !!originalLength;
    +}
    +
    +function trigger(controller, opt) {
    +    var areas = map$3(controller._covers, function (cover) {
    +        var brushOption = cover.__brushOption;
    +        var range = clone(brushOption.range);
    +        return {
    +            brushType: brushOption.brushType,
    +            panelId: brushOption.panelId,
    +            range: range
    +        };
    +    });
    +
    +    controller.trigger('brush', areas, {
    +        isEnd: !!opt.isEnd,
    +        removeOnClick: !!opt.removeOnClick
    +    });
    +}
    +
    +function shouldShowCover(controller) {
    +    var track = controller._track;
    +
    +    if (!track.length) {
    +        return false;
    +    }
    +
    +    var p2 = track[track.length - 1];
    +    var p1 = track[0];
    +    var dx = p2[0] - p1[0];
    +    var dy = p2[1] - p1[1];
    +    var dist = mathPow$2(dx * dx + dy * dy, 0.5);
    +
    +    return dist > UNSELECT_THRESHOLD;
    +}
    +
    +function getTrackEnds(track) {
    +    var tail = track.length - 1;
    +    tail < 0 && (tail = 0);
    +    return [track[0], track[tail]];
    +}
    +
    +function createBaseRectCover(doDrift, controller, brushOption, edgeNames) {
    +    var cover = new Group();
    +
    +    cover.add(new Rect({
    +        name: 'main',
    +        style: makeStyle(brushOption),
    +        silent: true,
    +        draggable: true,
    +        cursor: 'move',
    +        drift: curry$2(doDrift, controller, cover, 'nswe'),
    +        ondragend: curry$2(trigger, controller, {isEnd: true})
    +    }));
    +
    +    each$15(
    +        edgeNames,
    +        function (name) {
    +            cover.add(new Rect({
    +                name: name,
    +                style: {opacity: 0},
    +                draggable: true,
    +                silent: true,
    +                invisible: true,
    +                drift: curry$2(doDrift, controller, cover, name),
    +                ondragend: curry$2(trigger, controller, {isEnd: true})
    +            }));
    +        }
    +    );
    +
    +    return cover;
    +}
    +
    +function updateBaseRect(controller, cover, localRange, brushOption) {
    +    var lineWidth = brushOption.brushStyle.lineWidth || 0;
    +    var handleSize = mathMax$6(lineWidth, MIN_RESIZE_LINE_WIDTH);
    +    var x = localRange[0][0];
    +    var y = localRange[1][0];
    +    var xa = x - lineWidth / 2;
    +    var ya = y - lineWidth / 2;
    +    var x2 = localRange[0][1];
    +    var y2 = localRange[1][1];
    +    var x2a = x2 - handleSize + lineWidth / 2;
    +    var y2a = y2 - handleSize + lineWidth / 2;
    +    var width = x2 - x;
    +    var height = y2 - y;
    +    var widtha = width + lineWidth;
    +    var heighta = height + lineWidth;
    +
    +    updateRectShape(controller, cover, 'main', x, y, width, height);
    +
    +    if (brushOption.transformable) {
    +        updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta);
    +        updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta);
    +        updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize);
    +        updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize);
    +
    +        updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize);
    +        updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize);
    +        updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize);
    +        updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize);
    +    }
    +}
    +
    +function updateCommon(controller, cover) {
    +    var brushOption = cover.__brushOption;
    +    var transformable = brushOption.transformable;
    +
    +    var mainEl = cover.childAt(0);
    +    mainEl.useStyle(makeStyle(brushOption));
    +    mainEl.attr({
    +        silent: !transformable,
    +        cursor: transformable ? 'move' : 'default'
    +    });
    +
    +    each$15(
    +        ['w', 'e', 'n', 's', 'se', 'sw', 'ne', 'nw'],
    +        function (name) {
    +            var el = cover.childOfName(name);
    +            var globalDir = getGlobalDirection(controller, name);
    +
    +            el && el.attr({
    +                silent: !transformable,
    +                invisible: !transformable,
    +                cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null
    +            });
    +        }
    +    );
    +}
    +
    +function updateRectShape(controller, cover, name, x, y, w, h) {
    +    var el = cover.childOfName(name);
    +    el && el.setShape(pointsToRect(
    +        clipByPanel(controller, cover, [[x, y], [x + w, y + h]])
    +    ));
    +}
    +
    +function makeStyle(brushOption) {
    +    return defaults({strokeNoScale: true}, brushOption.brushStyle);
    +}
    +
    +function formatRectRange(x, y, x2, y2) {
    +    var min = [mathMin$6(x, x2), mathMin$6(y, y2)];
    +    var max = [mathMax$6(x, x2), mathMax$6(y, y2)];
    +
    +    return [
    +        [min[0], max[0]], // x range
    +        [min[1], max[1]] // y range
    +    ];
    +}
    +
    +function getTransform$1(controller) {
    +    return getTransform(controller.group);
    +}
    +
    +function getGlobalDirection(controller, localDirection) {
    +    if (localDirection.length > 1) {
    +        localDirection = localDirection.split('');
    +        var globalDir = [
    +            getGlobalDirection(controller, localDirection[0]),
    +            getGlobalDirection(controller, localDirection[1])
    +        ];
    +        (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse();
    +        return globalDir.join('');
    +    }
    +    else {
    +        var map$$1 = {w: 'left', e: 'right', n: 'top', s: 'bottom'};
    +        var inverseMap = {left: 'w', right: 'e', top: 'n', bottom: 's'};
    +        var globalDir = transformDirection(
    +            map$$1[localDirection], getTransform$1(controller)
    +        );
    +        return inverseMap[globalDir];
    +    }
    +}
    +
    +function driftRect(toRectRange, fromRectRange, controller, cover, name, dx, dy, e) {
    +    var brushOption = cover.__brushOption;
    +    var rectRange = toRectRange(brushOption.range);
    +    var localDelta = toLocalDelta(controller, dx, dy);
    +
    +    each$15(name.split(''), function (namePart) {
    +        var ind = DIRECTION_MAP[namePart];
    +        rectRange[ind[0]][ind[1]] += localDelta[ind[0]];
    +    });
    +
    +    brushOption.range = fromRectRange(formatRectRange(
    +        rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1]
    +    ));
    +
    +    updateCoverAfterCreation(controller, cover);
    +    trigger(controller, {isEnd: false});
    +}
    +
    +function driftPolygon(controller, cover, dx, dy, e) {
    +    var range = cover.__brushOption.range;
    +    var localDelta = toLocalDelta(controller, dx, dy);
    +
    +    each$15(range, function (point) {
    +        point[0] += localDelta[0];
    +        point[1] += localDelta[1];
    +    });
    +
    +    updateCoverAfterCreation(controller, cover);
    +    trigger(controller, {isEnd: false});
    +}
    +
    +function toLocalDelta(controller, dx, dy) {
    +    var thisGroup = controller.group;
    +    var localD = thisGroup.transformCoordToLocal(dx, dy);
    +    var localZero = thisGroup.transformCoordToLocal(0, 0);
    +
    +    return [localD[0] - localZero[0], localD[1] - localZero[1]];
    +}
    +
    +function clipByPanel(controller, cover, data) {
    +    var panel = getPanelByCover(controller, cover);
    +
    +    return (panel && panel !== true)
    +        ? panel.clipPath(data, controller._transform)
    +        : clone(data);
    +}
    +
    +function pointsToRect(points) {
    +    var xmin = mathMin$6(points[0][0], points[1][0]);
    +    var ymin = mathMin$6(points[0][1], points[1][1]);
    +    var xmax = mathMax$6(points[0][0], points[1][0]);
    +    var ymax = mathMax$6(points[0][1], points[1][1]);
    +
    +    return {
    +        x: xmin,
    +        y: ymin,
    +        width: xmax - xmin,
    +        height: ymax - ymin
    +    };
    +}
    +
    +function resetCursor(controller, e, localCursorPoint) {
    +    // Check active
    +    if (!controller._brushType) {
    +        return;
    +    }
    +
    +    var zr = controller._zr;
    +    var covers = controller._covers;
    +    var currPanel = getPanelByPoint(controller, e, localCursorPoint);
    +
    +    // Check whether in covers.
    +    if (!controller._dragging) {
    +        for (var i = 0; i < covers.length; i++) {
    +            var brushOption = covers[i].__brushOption;
    +            if (currPanel
    +                && (currPanel === true || brushOption.panelId === currPanel.panelId)
    +                && coverRenderers[brushOption.brushType].contain(
    +                    covers[i], localCursorPoint[0], localCursorPoint[1]
    +                )
    +            ) {
    +                // Use cursor style set on cover.
    +                return;
    +            }
    +        }
    +    }
    +
    +    currPanel && zr.setCursorStyle('crosshair');
    +}
    +
    +function preventDefault(e) {
    +    var rawE = e.event;
    +    rawE.preventDefault && rawE.preventDefault();
    +}
    +
    +function mainShapeContain(cover, x, y) {
    +    return cover.childOfName('main').contain(x, y);
    +}
    +
    +function updateCoverByMouse(controller, e, localCursorPoint, isEnd) {
    +    var creatingCover = controller._creatingCover;
    +    var panel = controller._creatingPanel;
    +    var thisBrushOption = controller._brushOption;
    +    var eventParams;
    +
    +    controller._track.push(localCursorPoint.slice());
    +
    +    if (shouldShowCover(controller) || creatingCover) {
    +
    +        if (panel && !creatingCover) {
    +            thisBrushOption.brushMode === 'single' && clearCovers(controller);
    +            var brushOption = clone(thisBrushOption);
    +            brushOption.brushType = determineBrushType(brushOption.brushType, panel);
    +            brushOption.panelId = panel === true ? null : panel.panelId;
    +            creatingCover = controller._creatingCover = createCover(controller, brushOption);
    +            controller._covers.push(creatingCover);
    +        }
    +
    +        if (creatingCover) {
    +            var coverRenderer = coverRenderers[determineBrushType(controller._brushType, panel)];
    +            var coverBrushOption = creatingCover.__brushOption;
    +
    +            coverBrushOption.range = coverRenderer.getCreatingRange(
    +                clipByPanel(controller, creatingCover, controller._track)
    +            );
    +
    +            if (isEnd) {
    +                endCreating(controller, creatingCover);
    +                coverRenderer.updateCommon(controller, creatingCover);
    +            }
    +
    +            updateCoverShape(controller, creatingCover);
    +
    +            eventParams = {isEnd: isEnd};
    +        }
    +    }
    +    else if (
    +        isEnd
    +        && thisBrushOption.brushMode === 'single'
    +        && thisBrushOption.removeOnClick
    +    ) {
    +        // Help user to remove covers easily, only by a tiny drag, in 'single' mode.
    +        // But a single click do not clear covers, because user may have casual
    +        // clicks (for example, click on other component and do not expect covers
    +        // disappear).
    +        // Only some cover removed, trigger action, but not every click trigger action.
    +        if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) {
    +            eventParams = {isEnd: isEnd, removeOnClick: true};
    +        }
    +    }
    +
    +    return eventParams;
    +}
    +
    +function determineBrushType(brushType, panel) {
    +    if (brushType === 'auto') {
    +        if (__DEV__) {
    +            assert(
    +                panel && panel.defaultBrushType,
    +                'MUST have defaultBrushType when brushType is "atuo"'
    +            );
    +        }
    +        return panel.defaultBrushType;
    +    }
    +    return brushType;
    +}
    +
    +var mouseHandlers = {
    +
    +    mousedown: function (e) {
    +        if (this._dragging) {
    +            // In case some browser do not support globalOut,
    +            // and release mose out side the browser.
    +            handleDragEnd.call(this, e);
    +        }
    +        else if (!e.target || !e.target.draggable) {
    +
    +            preventDefault(e);
    +
    +            var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);
    +
    +            this._creatingCover = null;
    +            var panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint);
    +
    +            if (panel) {
    +                this._dragging = true;
    +                this._track = [localCursorPoint.slice()];
    +            }
    +        }
    +    },
    +
    +    mousemove: function (e) {
    +        var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);
    +
    +        resetCursor(this, e, localCursorPoint);
    +
    +        if (this._dragging) {
    +
    +            preventDefault(e);
    +
    +            var eventParams = updateCoverByMouse(this, e, localCursorPoint, false);
    +
    +            eventParams && trigger(this, eventParams);
    +        }
    +    },
    +
    +    mouseup: handleDragEnd //,
    +
    +    // FIXME
    +    // in tooltip, globalout should not be triggered.
    +    // globalout: handleDragEnd
    +};
    +
    +function handleDragEnd(e) {
    +    if (this._dragging) {
    +
    +        preventDefault(e);
    +
    +        var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);
    +        var eventParams = updateCoverByMouse(this, e, localCursorPoint, true);
    +
    +        this._dragging = false;
    +        this._track = [];
    +        this._creatingCover = null;
    +
    +        // trigger event shoule be at final, after procedure will be nested.
    +        eventParams && trigger(this, eventParams);
    +    }
    +}
    +
    +/**
    + * key: brushType
    + * @type {Object}
    + */
    +var coverRenderers = {
    +
    +    lineX: getLineRenderer(0),
    +
    +    lineY: getLineRenderer(1),
    +
    +    rect: {
    +        createCover: function (controller, brushOption) {
    +            return createBaseRectCover(
    +                curry$2(
    +                    driftRect,
    +                    function (range) {
    +                        return range;
    +                    },
    +                    function (range) {
    +                        return range;
    +                    }
    +                ),
    +                controller,
    +                brushOption,
    +                ['w', 'e', 'n', 's', 'se', 'sw', 'ne', 'nw']
    +            );
    +        },
    +        getCreatingRange: function (localTrack) {
    +            var ends = getTrackEnds(localTrack);
    +            return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]);
    +        },
    +        updateCoverShape: function (controller, cover, localRange, brushOption) {
    +            updateBaseRect(controller, cover, localRange, brushOption);
    +        },
    +        updateCommon: updateCommon,
    +        contain: mainShapeContain
    +    },
    +
    +    polygon: {
    +        createCover: function (controller, brushOption) {
    +            var cover = new Group();
    +
    +            // Do not use graphic.Polygon because graphic.Polyline do not close the
    +            // border of the shape when drawing, which is a better experience for user.
    +            cover.add(new Polyline({
    +                name: 'main',
    +                style: makeStyle(brushOption),
    +                silent: true
    +            }));
    +
    +            return cover;
    +        },
    +        getCreatingRange: function (localTrack) {
    +            return localTrack;
    +        },
    +        endCreating: function (controller, cover) {
    +            cover.remove(cover.childAt(0));
    +            // Use graphic.Polygon close the shape.
    +            cover.add(new Polygon({
    +                name: 'main',
    +                draggable: true,
    +                drift: curry$2(driftPolygon, controller, cover),
    +                ondragend: curry$2(trigger, controller, {isEnd: true})
    +            }));
    +        },
    +        updateCoverShape: function (controller, cover, localRange, brushOption) {
    +            cover.childAt(0).setShape({
    +                points: clipByPanel(controller, cover, localRange)
    +            });
    +        },
    +        updateCommon: updateCommon,
    +        contain: mainShapeContain
    +    }
    +};
    +
    +function getLineRenderer(xyIndex) {
    +    return {
    +        createCover: function (controller, brushOption) {
    +            return createBaseRectCover(
    +                curry$2(
    +                    driftRect,
    +                    function (range) {
    +                        var rectRange = [range, [0, 100]];
    +                        xyIndex && rectRange.reverse();
    +                        return rectRange;
    +                    },
    +                    function (rectRange) {
    +                        return rectRange[xyIndex];
    +                    }
    +                ),
    +                controller,
    +                brushOption,
    +                [['w', 'e'], ['n', 's']][xyIndex]
    +            );
    +        },
    +        getCreatingRange: function (localTrack) {
    +            var ends = getTrackEnds(localTrack);
    +            var min = mathMin$6(ends[0][xyIndex], ends[1][xyIndex]);
    +            var max = mathMax$6(ends[0][xyIndex], ends[1][xyIndex]);
    +
    +            return [min, max];
    +        },
    +        updateCoverShape: function (controller, cover, localRange, brushOption) {
    +            var otherExtent;
    +            // If brushWidth not specified, fit the panel.
    +            var panel = getPanelByCover(controller, cover);
    +            if (panel !== true && panel.getLinearBrushOtherExtent) {
    +                otherExtent = panel.getLinearBrushOtherExtent(
    +                    xyIndex, controller._transform
    +                );
    +            }
    +            else {
    +                var zr = controller._zr;
    +                otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]];
    +            }
    +            var rectRange = [localRange, otherExtent];
    +            xyIndex && rectRange.reverse();
    +
    +            updateBaseRect(controller, cover, rectRange, brushOption);
    +        },
    +        updateCommon: updateCommon,
    +        contain: mainShapeContain
    +    };
    +}
    +
    +function makeRectPanelClipPath(rect) {
    +    rect = normalizeRect(rect);
    +    return function (localPoints, transform) {
    +        return clipPointsByRect(localPoints, rect);
    +    };
    +}
    +
    +function makeLinearBrushOtherExtent(rect, specifiedXYIndex) {
    +    rect = normalizeRect(rect);
    +    return function (xyIndex) {
    +        var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;
    +        var brushWidth = idx ? rect.width : rect.height;
    +        var base = idx ? rect.x : rect.y;
    +        return [base, base + (brushWidth || 0)];
    +    };
    +}
    +
    +function makeRectIsTargetByCursor(rect, api, targetModel) {
    +    rect = normalizeRect(rect);
    +    return function (e, localCursorPoint, transform) {
    +        return rect.contain(localCursorPoint[0], localCursorPoint[1])
    +            && !onIrrelevantElement(e, api, targetModel);
    +    };
    +}
    +
    +// Consider width/height is negative.
    +function normalizeRect(rect) {
    +    return BoundingRect.create(rect);
    +}
    +
    +var elementList = ['axisLine', 'axisTickLabel', 'axisName'];
    +
    +var AxisView$2 = extendComponentView({
    +
    +    type: 'parallelAxis',
    +
    +    /**
    +     * @override
    +     */
    +    init: function (ecModel, api) {
    +        AxisView$2.superApply(this, 'init', arguments);
    +
    +        /**
    +         * @type {module:echarts/component/helper/BrushController}
    +         */
    +        (this._brushController = new BrushController(api.getZr()))
    +            .on('brush', bind(this._onBrush, this));
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (axisModel, ecModel, api, payload) {
    +        if (fromAxisAreaSelect(axisModel, ecModel, payload)) {
    +            return;
    +        }
    +
    +        this.axisModel = axisModel;
    +        this.api = api;
    +
    +        this.group.removeAll();
    +
    +        var oldAxisGroup = this._axisGroup;
    +        this._axisGroup = new Group();
    +        this.group.add(this._axisGroup);
    +
    +        if (!axisModel.get('show')) {
    +            return;
    +        }
    +
    +        var coordSysModel = getCoordSysModel(axisModel, ecModel);
    +        var coordSys = coordSysModel.coordinateSystem;
    +
    +        var areaSelectStyle = axisModel.getAreaSelectStyle();
    +        var areaWidth = areaSelectStyle.width;
    +
    +        var dim = axisModel.axis.dim;
    +        var axisLayout = coordSys.getAxisLayout(dim);
    +
    +        var builderOpt = extend(
    +            {strokeContainThreshold: areaWidth},
    +            axisLayout
    +        );
    +
    +        var axisBuilder = new AxisBuilder(axisModel, builderOpt);
    +
    +        each$1(elementList, axisBuilder.add, axisBuilder);
    +
    +        this._axisGroup.add(axisBuilder.getGroup());
    +
    +        this._refreshBrushController(
    +            builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api
    +        );
    +
    +        var animationModel = (payload && payload.animation === false) ? null : axisModel;
    +        groupTransition(oldAxisGroup, this._axisGroup, animationModel);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    updateVisual: function (axisModel, ecModel, api, payload) {
    +        this._brushController && this._brushController
    +            .updateCovers(getCoverInfoList(axisModel));
    +    },
    +
    +    _refreshBrushController: function (
    +        builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api
    +    ) {
    +        // After filtering, axis may change, select area needs to be update.
    +        var extent = axisModel.axis.getExtent();
    +        var extentLen = extent[1] - extent[0];
    +        var extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value.
    +
    +        // width/height might be negative, which will be
    +        // normalized in BoundingRect.
    +        var rect = BoundingRect.create({
    +            x: extent[0],
    +            y: -areaWidth / 2,
    +            width: extentLen,
    +            height: areaWidth
    +        });
    +        rect.x -= extra;
    +        rect.width += 2 * extra;
    +
    +        this._brushController
    +            .mount({
    +                enableGlobalPan: true,
    +                rotation: builderOpt.rotation,
    +                position: builderOpt.position
    +            })
    +            .setPanels([{
    +                panelId: 'pl',
    +                clipPath: makeRectPanelClipPath(rect),
    +                isTargetByCursor: makeRectIsTargetByCursor(rect, api, coordSysModel),
    +                getLinearBrushOtherExtent: makeLinearBrushOtherExtent(rect, 0)
    +            }])
    +            .enableBrush({
    +                brushType: 'lineX',
    +                brushStyle: areaSelectStyle,
    +                removeOnClick: true
    +            })
    +            .updateCovers(getCoverInfoList(axisModel));
    +    },
    +
    +    _onBrush: function (coverInfoList, opt) {
    +        // Do not cache these object, because the mey be changed.
    +        var axisModel = this.axisModel;
    +        var axis = axisModel.axis;
    +        var intervals = map(coverInfoList, function (coverInfo) {
    +            return [
    +                axis.coordToData(coverInfo.range[0], true),
    +                axis.coordToData(coverInfo.range[1], true)
    +            ];
    +        });
    +
    +        // If realtime is true, action is not dispatched on drag end, because
    +        // the drag end emits the same params with the last drag move event,
    +        // and may have some delay when using touch pad.
    +        if (!axisModel.option.realtime === opt.isEnd || opt.removeOnClick) { // jshint ignore:line
    +            this.api.dispatchAction({
    +                type: 'axisAreaSelect',
    +                parallelAxisId: axisModel.id,
    +                intervals: intervals
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        this._brushController.dispose();
    +    }
    +});
    +
    +function fromAxisAreaSelect(axisModel, ecModel, payload) {
    +    return payload
    +        && payload.type === 'axisAreaSelect'
    +        && ecModel.findComponents(
    +            {mainType: 'parallelAxis', query: payload}
    +        )[0] === axisModel;
    +}
    +
    +function getCoverInfoList(axisModel) {
    +    var axis = axisModel.axis;
    +    return map(axisModel.activeIntervals, function (interval) {
    +        return {
    +            brushType: 'lineX',
    +            panelId: 'pl',
    +            range: [
    +                axis.dataToCoord(interval[0], true),
    +                axis.dataToCoord(interval[1], true)
    +            ]
    +        };
    +    });
    +}
    +
    +function getCoordSysModel(axisModel, ecModel) {
    +    return ecModel.getComponent(
    +        'parallel', axisModel.get('parallelIndex')
    +    );
    +}
    +
    +var CLICK_THRESHOLD = 5; // > 4
    +
    +// Parallel view
    +extendComponentView({
    +    type: 'parallel',
    +
    +    render: function (parallelModel, ecModel, api) {
    +        this._model = parallelModel;
    +        this._api = api;
    +
    +        if (!this._handlers) {
    +            this._handlers = {};
    +            each$1(handlers, function (handler, eventName) {
    +                api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this));
    +            }, this);
    +        }
    +
    +        createOrUpdate(
    +            this,
    +            '_throttledDispatchExpand',
    +            parallelModel.get('axisExpandRate'),
    +            'fixRate'
    +        );
    +    },
    +
    +    dispose: function (ecModel, api) {
    +        each$1(this._handlers, function (handler, eventName) {
    +            api.getZr().off(eventName, handler);
    +        });
    +        this._handlers = null;
    +    },
    +
    +    /**
    +     * @param {Object} [opt] If null, cancle the last action triggering for debounce.
    +     */
    +    _throttledDispatchExpand: function (opt) {
    +        this._dispatchExpand(opt);
    +    },
    +
    +    _dispatchExpand: function (opt) {
    +        opt && this._api.dispatchAction(
    +            extend({type: 'parallelAxisExpand'}, opt)
    +        );
    +    }
    +
    +});
    +
    +var handlers = {
    +
    +    mousedown: function (e) {
    +        if (checkTrigger(this, 'click')) {
    +            this._mouseDownPoint = [e.offsetX, e.offsetY];
    +        }
    +    },
    +
    +    mouseup: function (e) {
    +        var mouseDownPoint = this._mouseDownPoint;
    +
    +        if (checkTrigger(this, 'click') && mouseDownPoint) {
    +            var point = [e.offsetX, e.offsetY];
    +            var dist = Math.pow(mouseDownPoint[0] - point[0], 2)
    +                + Math.pow(mouseDownPoint[1] - point[1], 2);
    +
    +            if (dist > CLICK_THRESHOLD) {
    +                return;
    +            }
    +
    +            var result = this._model.coordinateSystem.getSlidedAxisExpandWindow(
    +                [e.offsetX, e.offsetY]
    +            );
    +
    +            result.behavior !== 'none' && this._dispatchExpand({
    +                axisExpandWindow: result.axisExpandWindow
    +            });
    +        }
    +
    +        this._mouseDownPoint = null;
    +    },
    +
    +    mousemove: function (e) {
    +        // Should do nothing when brushing.
    +        if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) {
    +            return;
    +        }
    +        var model = this._model;
    +        var result = model.coordinateSystem.getSlidedAxisExpandWindow(
    +            [e.offsetX, e.offsetY]
    +        );
    +
    +        var behavior = result.behavior;
    +        behavior === 'jump' && this._throttledDispatchExpand.debounceNextCall(model.get('axisExpandDebounce'));
    +        this._throttledDispatchExpand(
    +            behavior === 'none'
    +                ? null // Cancle the last trigger, in case that mouse slide out of the area quickly.
    +                : {
    +                    axisExpandWindow: result.axisExpandWindow,
    +                    // Jumping uses animation, and sliding suppresses animation.
    +                    animation: behavior === 'jump'  ? null : false
    +                }
    +        );
    +    }
    +};
    +
    +function checkTrigger(view, triggerOn) {
    +    var model = view._model;
    +    return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn;
    +}
    +
    +registerPreprocessor(parallelPreprocessor);
    +
    +SeriesModel.extend({
    +
    +    type: 'series.parallel',
    +
    +    dependencies: ['parallel'],
    +
    +    visualColorAccessPath: 'lineStyle.normal.color',
    +
    +    getInitialData: function (option, ecModel) {
    +        var parallelModel = ecModel.getComponent(
    +            'parallel', this.get('parallelIndex')
    +        );
    +        var parallelAxisIndices = parallelModel.parallelAxisIndex;
    +
    +        var rawData = option.data;
    +        var modelDims = parallelModel.dimensions;
    +
    +        var dataDims = generateDataDims(modelDims, rawData);
    +
    +        var dataDimsInfo = map(dataDims, function (dim, dimIndex) {
    +
    +            var modelDimsIndex = indexOf(modelDims, dim);
    +            var axisModel = modelDimsIndex >= 0 && ecModel.getComponent(
    +                'parallelAxis', parallelAxisIndices[modelDimsIndex]
    +            );
    +
    +            if (axisModel && axisModel.get('type') === 'category') {
    +                translateCategoryValue(axisModel, dim, rawData);
    +                return {name: dim, type: 'ordinal'};
    +            }
    +            else if (modelDimsIndex < 0) {
    +                return completeDimensions.guessOrdinal(rawData, dimIndex)
    +                    ? {name: dim, type: 'ordinal'}
    +                    : dim;
    +            }
    +            else {
    +                return dim;
    +            }
    +        });
    +
    +        var list = new List(dataDimsInfo, this);
    +        list.initData(rawData);
    +
    +        // Anication is forbiden in progressive data mode.
    +        if (this.option.progressive) {
    +            this.option.animation = false;
    +        }
    +
    +        return list;
    +    },
    +
    +    /**
    +     * User can get data raw indices on 'axisAreaSelected' event received.
    +     *
    +     * @public
    +     * @param {string} activeState 'active' or 'inactive' or 'normal'
    +     * @return {Array.<number>} Raw indices
    +     */
    +    getRawIndicesByActiveState: function (activeState) {
    +        var coordSys = this.coordinateSystem;
    +        var data = this.getData();
    +        var indices = [];
    +
    +        coordSys.eachActiveState(data, function (theActiveState, dataIndex) {
    +            if (activeState === theActiveState) {
    +                indices.push(data.getRawIndex(dataIndex));
    +            }
    +        });
    +
    +        return indices;
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,                  // 一级层叠
    +        z: 2,                       // 二级层叠
    +
    +        coordinateSystem: 'parallel',
    +        parallelIndex: 0,
    +
    +        label: {
    +            normal: {
    +                show: false
    +            },
    +            emphasis: {
    +                show: false
    +            }
    +        },
    +
    +        inactiveOpacity: 0.05,
    +        activeOpacity: 1,
    +
    +        lineStyle: {
    +            normal: {
    +                width: 1,
    +                opacity: 0.45,
    +                type: 'solid'
    +            }
    +        },
    +        progressive: false, // 100
    +        smooth: false,
    +
    +        animationEasing: 'linear'
    +    }
    +});
    +
    +function translateCategoryValue(axisModel, dim, rawData) {
    +    var axisData = axisModel.get('data');
    +    var numberDim = convertDimNameToNumber(dim);
    +
    +    if (axisData && axisData.length) {
    +        each$1(rawData, function (dataItem) {
    +            if (!dataItem) {
    +                return;
    +            }
    +            // FIXME
    +            // time consuming, should use hash?
    +            var index = indexOf(axisData, dataItem[numberDim]);
    +            dataItem[numberDim] = index >= 0 ? index : NaN;
    +        });
    +    }
    +    // FIXME
    +    // 如果没有设置axis data, 应自动算出,或者提示。
    +}
    +
    +function convertDimNameToNumber(dimName) {
    +    return +dimName.replace('dim', '');
    +}
    +
    +function generateDataDims(modelDims, rawData) {
    +    // parallelModel.dimension should not be regarded as data
    +    // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];
    +
    +    // We detect max dim by parallelModel.dimensions and fist
    +    // item in rawData arbitrarily.
    +    var maxDimNum = 0;
    +    each$1(modelDims, function (dimName) {
    +        var numberDim = convertDimNameToNumber(dimName);
    +        numberDim > maxDimNum && (maxDimNum = numberDim);
    +    });
    +
    +    var firstItem = rawData[0];
    +    if (firstItem && firstItem.length - 1 > maxDimNum) {
    +        maxDimNum = firstItem.length - 1;
    +    }
    +
    +    var dataDims = [];
    +    for (var i = 0; i <= maxDimNum; i++) {
    +        dataDims.push('dim' + i);
    +    }
    +
    +    return dataDims;
    +}
    +
    +var SMOOTH = 0.3;
    +
    +var ParallelView = Chart.extend({
    +
    +    type: 'parallel',
    +
    +    init: function () {
    +
    +        /**
    +         * @type {module:zrender/container/Group}
    +         * @private
    +         */
    +        this._dataGroup = new Group();
    +
    +        this.group.add(this._dataGroup);
    +
    +        /**
    +         * @type {module:echarts/data/List}
    +         */
    +        this._data;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (seriesModel, ecModel, api, payload) {
    +        this._renderForNormal(seriesModel, payload);
    +        // this[
    +        //     seriesModel.option.progressive
    +        //         ? '_renderForProgressive'
    +        //         : '_renderForNormal'
    +        // ](seriesModel);
    +    },
    +
    +    dispose: function () {},
    +
    +    /**
    +     * @private
    +     */
    +    _renderForNormal: function (seriesModel, payload) {
    +        var dataGroup = this._dataGroup;
    +        var data = seriesModel.getData();
    +        var oldData = this._data;
    +        var coordSys = seriesModel.coordinateSystem;
    +        var dimensions = coordSys.dimensions;
    +        var option = seriesModel.option;
    +        var smooth = option.smooth ? SMOOTH : null;
    +
    +        // Consider switch between progressive and not.
    +        // oldData && oldData.__plProgressive && dataGroup.removeAll();
    +
    +        data.diff(oldData)
    +            .add(add)
    +            .update(update)
    +            .remove(remove)
    +            .execute();
    +
    +        // Update style
    +        updateElCommon(data, smooth);
    +
    +        // First create
    +        if (!this._data) {
    +            var clipPath = createGridClipShape$1(
    +                coordSys, seriesModel, function () {
    +                    // Callback will be invoked immediately if there is no animation
    +                    setTimeout(function () {
    +                        dataGroup.removeClipPath();
    +                    });
    +                }
    +            );
    +            dataGroup.setClipPath(clipPath);
    +        }
    +
    +        this._data = data;
    +
    +        function add(newDataIndex) {
    +            addEl(data, dataGroup, newDataIndex, dimensions, coordSys, null, smooth);
    +        }
    +
    +        function update(newDataIndex, oldDataIndex) {
    +            var line = oldData.getItemGraphicEl(oldDataIndex);
    +            var points = createLinePoints(data, newDataIndex, dimensions, coordSys);
    +            data.setItemGraphicEl(newDataIndex, line);
    +            var animationModel = (payload && payload.animation === false) ? null : seriesModel;
    +            updateProps(line, {shape: {points: points}}, animationModel, newDataIndex);
    +        }
    +
    +        function remove(oldDataIndex) {
    +            var line = oldData.getItemGraphicEl(oldDataIndex);
    +            dataGroup.remove(line);
    +        }
    +
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    // _renderForProgressive: function (seriesModel) {
    +    //     var dataGroup = this._dataGroup;
    +    //     var data = seriesModel.getData();
    +    //     var oldData = this._data;
    +    //     var coordSys = seriesModel.coordinateSystem;
    +    //     var dimensions = coordSys.dimensions;
    +    //     var option = seriesModel.option;
    +    //     var progressive = option.progressive;
    +    //     var smooth = option.smooth ? SMOOTH : null;
    +
    +    //     // In progressive animation is disabled, so use simple data diff,
    +    //     // which effects performance less.
    +    //     // (Typically performance for data with length 7000+ like:
    +    //     // simpleDiff: 60ms, addEl: 184ms,
    +    //     // in RMBP 2.4GHz intel i7, OSX 10.9 chrome 50.0.2661.102 (64-bit))
    +    //     if (simpleDiff(oldData, data, dimensions)) {
    +    //         dataGroup.removeAll();
    +    //         data.each(function (dataIndex) {
    +    //             addEl(data, dataGroup, dataIndex, dimensions, coordSys);
    +    //         });
    +    //     }
    +
    +    //     updateElCommon(data, progressive, smooth);
    +
    +    //     // Consider switch between progressive and not.
    +    //     data.__plProgressive = true;
    +    //     this._data = data;
    +    // },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function () {
    +        this._dataGroup && this._dataGroup.removeAll();
    +        this._data = null;
    +    }
    +});
    +
    +function createGridClipShape$1(coordSys, seriesModel, cb) {
    +    var parallelModel = coordSys.model;
    +    var rect = coordSys.getRect();
    +    var rectEl = new Rect({
    +        shape: {
    +            x: rect.x,
    +            y: rect.y,
    +            width: rect.width,
    +            height: rect.height
    +        }
    +    });
    +
    +    var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height';
    +    rectEl.setShape(dim, 0);
    +    initProps(rectEl, {
    +        shape: {
    +            width: rect.width,
    +            height: rect.height
    +        }
    +    }, seriesModel, cb);
    +    return rectEl;
    +}
    +
    +function createLinePoints(data, dataIndex, dimensions, coordSys) {
    +    var points = [];
    +    for (var i = 0; i < dimensions.length; i++) {
    +        var dimName = dimensions[i];
    +        var value = data.get(dimName, dataIndex);
    +        if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) {
    +            points.push(coordSys.dataToPoint(value, dimName));
    +        }
    +    }
    +    return points;
    +}
    +
    +function addEl(data, dataGroup, dataIndex, dimensions, coordSys) {
    +    var points = createLinePoints(data, dataIndex, dimensions, coordSys);
    +    var line = new Polyline({
    +        shape: {points: points},
    +        silent: true,
    +        z2: 10
    +    });
    +    dataGroup.add(line);
    +    data.setItemGraphicEl(dataIndex, line);
    +}
    +
    +function updateElCommon(data, smooth) {
    +    var seriesStyleModel = data.hostModel.getModel('lineStyle.normal');
    +    var lineStyle = seriesStyleModel.getLineStyle();
    +    data.eachItemGraphicEl(function (line, dataIndex) {
    +        if (data.hasItemOption) {
    +            var itemModel = data.getItemModel(dataIndex);
    +            var lineStyleModel = itemModel.getModel('lineStyle.normal', seriesStyleModel);
    +            lineStyle = lineStyleModel.getLineStyle(['color', 'stroke']);
    +        }
    +
    +        line.useStyle(extend(lineStyle, {
    +            fill: null,
    +            // lineStyle.color have been set to itemVisual in module:echarts/visual/seriesColor.
    +            stroke: data.getItemVisual(dataIndex, 'color'),
    +            // lineStyle.opacity have been set to itemVisual in parallelVisual.
    +            opacity: data.getItemVisual(dataIndex, 'opacity')
    +        }));
    +
    +        line.shape.smooth = smooth;
    +    });
    +}
    +
    +// function simpleDiff(oldData, newData, dimensions) {
    +//     var oldLen;
    +//     if (!oldData
    +//         || !oldData.__plProgressive
    +//         || (oldLen = oldData.count()) !== newData.count()
    +//     ) {
    +//         return true;
    +//     }
    +
    +//     var dimLen = dimensions.length;
    +//     for (var i = 0; i < oldLen; i++) {
    +//         for (var j = 0; j < dimLen; j++) {
    +//             if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {
    +//                 return true;
    +//             }
    +//         }
    +//     }
    +
    +//     return false;
    +// }
    +
    +// FIXME
    +// 公用方法?
    +function isEmptyValue(val, axisType) {
    +    return axisType === 'category'
    +        ? val == null
    +        : (val == null || isNaN(val)); // axisType === 'value'
    +}
    +
    +var opacityAccessPath$1 = ['lineStyle', 'normal', 'opacity'];
    +
    +var parallelVisual = function (ecModel) {
    +
    +    ecModel.eachSeriesByType('parallel', function (seriesModel) {
    +
    +        var itemStyleModel = seriesModel.getModel('itemStyle.normal');
    +        var lineStyleModel = seriesModel.getModel('lineStyle.normal');
    +        var globalColors = ecModel.get('color');
    +
    +        var color = lineStyleModel.get('color')
    +            || itemStyleModel.get('color')
    +            || globalColors[seriesModel.seriesIndex % globalColors.length];
    +        var inactiveOpacity = seriesModel.get('inactiveOpacity');
    +        var activeOpacity = seriesModel.get('activeOpacity');
    +        var lineStyle = seriesModel.getModel('lineStyle.normal').getLineStyle();
    +
    +        var coordSys = seriesModel.coordinateSystem;
    +        var data = seriesModel.getData();
    +
    +        var opacityMap = {
    +            normal: lineStyle.opacity,
    +            active: activeOpacity,
    +            inactive: inactiveOpacity
    +        };
    +
    +        coordSys.eachActiveState(data, function (activeState, dataIndex) {
    +            var itemModel = data.getItemModel(dataIndex);
    +            var opacity = opacityMap[activeState];
    +            if (activeState === 'normal') {
    +                var itemOpacity = itemModel.get(opacityAccessPath$1, true);
    +                itemOpacity != null && (opacity = itemOpacity);
    +            }
    +            data.setItemVisual(dataIndex, 'opacity', opacity);
    +        });
    +
    +        data.setVisual('color', color);
    +    });
    +};
    +
    +registerVisual(parallelVisual);
    +
    +/**
    + * @file Get initial data and define sankey view's series model
    + * @author Deqing Li(annong035@gmail.com)
    + */
    +
    +var SankeySeries = SeriesModel.extend({
    +
    +    type: 'series.sankey',
    +
    +    layoutInfo: null,
    +
    +    /**
    +     * Init a graph data structure from data in option series
    +     *
    +     * @param  {Object} option  the object used to config echarts view
    +     * @return {module:echarts/data/List} storage initial data
    +     */
    +    getInitialData: function (option) {
    +        var links = option.edges || option.links;
    +        var nodes = option.data || option.nodes;
    +        if (nodes && links) {
    +            var graph = createGraphFromNodeEdge(nodes, links, this, true);
    +            return graph.data;
    +        }
    +    },
    +
    +    /**
    +     * Return the graphic data structure
    +     *
    +     * @return {module:echarts/data/Graph} graphic data structure
    +     */
    +    getGraph: function () {
    +        return this.getData().graph;
    +    },
    +
    +    /**
    +     * Get edge data of graphic data structure
    +     *
    +     * @return {module:echarts/data/List} data structure of list
    +     */
    +    getEdgeData: function () {
    +        return this.getGraph().edgeData;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    formatTooltip: function (dataIndex, multipleSeries, dataType) {
    +        // dataType === 'node' or empty do not show tooltip by default
    +        if (dataType === 'edge') {
    +            var params = this.getDataParams(dataIndex, dataType);
    +            var rawDataOpt = params.data;
    +            var html = rawDataOpt.source + ' -- ' + rawDataOpt.target;
    +            if (params.value) {
    +                html += ' : ' + params.value;
    +            }
    +            return encodeHTML(html);
    +        }
    +
    +        return SankeySeries.superCall(this, 'formatTooltip', dataIndex, multipleSeries);
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +
    +        coordinateSystem: 'view',
    +
    +        layout: null,
    +
    +        // the position of the whole view
    +        left: '5%',
    +        top: '5%',
    +        right: '20%',
    +        bottom: '5%',
    +
    +        // the dx of the node
    +        nodeWidth: 20,
    +
    +        // the vertical distance between two nodes
    +        nodeGap: 8,
    +
    +        // the number of iterations to change the position of the node
    +        layoutIterations: 32,
    +
    +        label: {
    +            normal: {
    +                show: true,
    +                position: 'right',
    +                color: '#000',
    +                fontSize: 12
    +            },
    +            emphasis: {
    +                show: true
    +            }
    +        },
    +
    +        itemStyle: {
    +            normal: {
    +                borderWidth: 1,
    +                borderColor: '#333'
    +            }
    +        },
    +
    +        lineStyle: {
    +            normal: {
    +                color: '#314656',
    +                opacity: 0.2,
    +                curveness: 0.5
    +            },
    +            emphasis: {
    +                opacity: 0.6
    +            }
    +        },
    +
    +        animationEasing: 'linear',
    +
    +        animationDuration: 1000
    +    }
    +
    +});
    +
    +/**
    + * @file  The file used to draw sankey view
    + * @author  Deqing Li(annong035@gmail.com)
    + */
    +
    +var SankeyShape = extendShape({
    +    shape: {
    +        x1: 0, y1: 0,
    +        x2: 0, y2: 0,
    +        cpx1: 0, cpy1: 0,
    +        cpx2: 0, cpy2: 0,
    +
    +        extent: 0
    +    },
    +
    +    buildPath: function (ctx, shape) {
    +        var halfExtent = shape.extent / 2;
    +        ctx.moveTo(shape.x1, shape.y1 - halfExtent);
    +        ctx.bezierCurveTo(
    +            shape.cpx1, shape.cpy1 - halfExtent,
    +            shape.cpx2, shape.cpy2 - halfExtent,
    +            shape.x2, shape.y2 - halfExtent
    +        );
    +        ctx.lineTo(shape.x2, shape.y2 + halfExtent);
    +        ctx.bezierCurveTo(
    +            shape.cpx2, shape.cpy2 + halfExtent,
    +            shape.cpx1, shape.cpy1 + halfExtent,
    +            shape.x1, shape.y1 + halfExtent
    +        );
    +        ctx.closePath();
    +    }
    +});
    +
    +extendChartView({
    +
    +    type: 'sankey',
    +
    +    /**
    +     * @private
    +     * @type {module:echarts/chart/sankey/SankeySeries}
    +     */
    +    _model: null,
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var graph = seriesModel.getGraph();
    +        var group = this.group;
    +        var layoutInfo = seriesModel.layoutInfo;
    +        var nodeData = seriesModel.getData();
    +        var edgeData = seriesModel.getData('edge');
    +
    +        this._model = seriesModel;
    +
    +        group.removeAll();
    +
    +        group.attr('position', [layoutInfo.x, layoutInfo.y]);
    +
    +        // generate a bezire Curve for each edge
    +        graph.eachEdge(function (edge) {
    +            var curve = new SankeyShape();
    +
    +            curve.dataIndex = edge.dataIndex;
    +            curve.seriesIndex = seriesModel.seriesIndex;
    +            curve.dataType = 'edge';
    +
    +            var lineStyleModel = edge.getModel('lineStyle.normal');
    +            var curvature = lineStyleModel.get('curveness');
    +            var n1Layout = edge.node1.getLayout();
    +            var n2Layout = edge.node2.getLayout();
    +            var edgeLayout = edge.getLayout();
    +
    +            curve.shape.extent = Math.max(1, edgeLayout.dy);
    +
    +            var x1 = n1Layout.x + n1Layout.dx;
    +            var y1 = n1Layout.y + edgeLayout.sy + edgeLayout.dy / 2;
    +            var x2 = n2Layout.x;
    +            var y2 = n2Layout.y + edgeLayout.ty + edgeLayout.dy / 2;
    +            var cpx1 = x1 * (1 - curvature) + x2 * curvature;
    +            var cpy1 = y1;
    +            var cpx2 = x1 * curvature + x2 * (1 - curvature);
    +            var cpy2 = y2;
    +
    +            curve.setShape({
    +                x1: x1,
    +                y1: y1,
    +                x2: x2,
    +                y2: y2,
    +                cpx1: cpx1,
    +                cpy1: cpy1,
    +                cpx2: cpx2,
    +                cpy2: cpy2
    +            });
    +
    +            curve.setStyle(lineStyleModel.getItemStyle());
    +            // Special color, use source node color or target node color
    +            switch (curve.style.fill) {
    +                case 'source':
    +                    curve.style.fill = edge.node1.getVisual('color');
    +                    break;
    +                case 'target':
    +                    curve.style.fill = edge.node2.getVisual('color');
    +                    break;
    +            }
    +
    +            setHoverStyle(curve, edge.getModel('lineStyle.emphasis').getItemStyle());
    +
    +            group.add(curve);
    +
    +            edgeData.setItemGraphicEl(edge.dataIndex, curve);
    +        });
    +
    +        // generate a rect  for each node
    +        graph.eachNode(function (node) {
    +            var layout = node.getLayout();
    +            var itemModel = node.getModel();
    +            var labelModel = itemModel.getModel('label.normal');
    +            var labelHoverModel = itemModel.getModel('label.emphasis');
    +
    +            var rect = new Rect({
    +                shape: {
    +                    x: layout.x,
    +                    y: layout.y,
    +                    width: node.getLayout().dx,
    +                    height: node.getLayout().dy
    +                },
    +                style: itemModel.getModel('itemStyle.normal').getItemStyle()
    +            });
    +
    +            var hoverStyle = node.getModel('itemStyle.emphasis').getItemStyle();
    +
    +            setLabelStyle(
    +                rect.style, hoverStyle, labelModel, labelHoverModel,
    +                {
    +                    labelFetcher: seriesModel,
    +                    labelDataIndex: node.dataIndex,
    +                    defaultText: node.id,
    +                    isRectText: true
    +                }
    +            );
    +
    +            rect.setStyle('fill', node.getVisual('color'));
    +
    +            setHoverStyle(rect, hoverStyle);
    +
    +            group.add(rect);
    +
    +            nodeData.setItemGraphicEl(node.dataIndex, rect);
    +
    +            rect.dataType = 'node';
    +        });
    +
    +        if (!this._data && seriesModel.get('animation')) {
    +            group.setClipPath(createGridClipShape$2(group.getBoundingRect(), seriesModel, function () {
    +                group.removeClipPath();
    +            }));
    +        }
    +
    +        this._data = seriesModel.getData();
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +// add animation to the view
    +function createGridClipShape$2(rect, seriesModel, cb) {
    +    var rectEl = new Rect({
    +        shape: {
    +            x: rect.x - 10,
    +            y: rect.y - 10,
    +            width: 0,
    +            height: rect.height + 20
    +        }
    +    });
    +    initProps(rectEl, {
    +        shape: {
    +            width: rect.width + 20,
    +            height: rect.height + 20
    +        }
    +    }, seriesModel, cb);
    +
    +    return rectEl;
    +}
    +
    +/**
    + * nest helper used to group by the array.
    + * can specified the keys and sort the keys.
    + */
    +function nest() {
    +
    +    var keysFunction = [];
    +    var sortKeysFunction = [];
    +
    +    /**
    +     * map an Array into the mapObject.
    +     * @param {Array} array
    +     * @param {number} depth
    +     */
    +    function map$$1(array, depth) {
    +        if (depth >= keysFunction.length) {
    +            return array;
    +        }
    +        var i = -1;
    +        var n = array.length;
    +        var keyFunction = keysFunction[depth++];
    +        var mapObject = {};
    +        var valuesByKey = {};
    +
    +        while (++i < n) {
    +            var keyValue = keyFunction(array[i]);
    +            var values = valuesByKey[keyValue];
    +
    +            if (values) {
    +                values.push(array[i]);
    +            }
    +            else {
    +                valuesByKey[keyValue] = [array[i]];
    +            }
    +        }
    +
    +        each$1(valuesByKey, function (value, key) {
    +            mapObject[key] = map$$1(value, depth);
    +        });
    +
    +        return mapObject;
    +    }
    +
    +    /**
    +     * transform the Map Object to multidimensional Array
    +     * @param {Object} map
    +     * @param {number} depth
    +     */
    +    function entriesMap(mapObject, depth) {
    +        if (depth >= keysFunction.length) {
    +            return mapObject;
    +        }
    +        var array = [];
    +        var sortKeyFunction = sortKeysFunction[depth++];
    +
    +        each$1(mapObject, function (value, key) {
    +            array.push({
    +                key: key, values: entriesMap(value, depth)
    +            });
    +        });
    +
    +        if (sortKeyFunction) {
    +            return array.sort(function (a, b) {
    +                return sortKeyFunction(a.key, b.key);
    +            });
    +        }
    +        else {
    +            return array;
    +        }
    +    }
    +
    +    return {
    +        /**
    +         * specified the key to groupby the arrays.
    +         * users can specified one more keys.
    +         * @param {Function} d
    +         */
    +        key: function (d) {
    +            keysFunction.push(d);
    +            return this;
    +        },
    +
    +        /**
    +         * specified the comparator to sort the keys
    +         * @param {Function} order
    +         */
    +        sortKeys: function (order) {
    +            sortKeysFunction[keysFunction.length - 1] = order;
    +            return this;
    +        },
    +
    +        /**
    +         * the array to be grouped by.
    +         * @param {Array} array
    +         */
    +        entries: function (array) {
    +            return entriesMap(map$$1(array, 0), 0);
    +        }
    +    };
    +}
    +
    +/**
    + * @file The layout algorithm of sankey view
    + * @author  Deqing Li(annong035@gmail.com)
    + */
    +
    +var sankeyLayout = function (ecModel, api, payload) {
    +
    +    ecModel.eachSeriesByType('sankey', function (seriesModel) {
    +
    +        var nodeWidth = seriesModel.get('nodeWidth');
    +        var nodeGap = seriesModel.get('nodeGap');
    +
    +        var layoutInfo = getViewRect$3(seriesModel, api);
    +
    +        seriesModel.layoutInfo = layoutInfo;
    +
    +        var width = layoutInfo.width;
    +        var height = layoutInfo.height;
    +
    +        var graph = seriesModel.getGraph();
    +
    +        var nodes = graph.nodes;
    +        var edges = graph.edges;
    +
    +        computeNodeValues(nodes);
    +
    +        var filteredNodes = filter(nodes, function (node) {
    +            return node.getLayout().value === 0;
    +        });
    +
    +        var iterations = filteredNodes.length !== 0
    +            ? 0 : seriesModel.get('layoutIterations');
    +
    +        layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations);
    +    });
    +};
    +
    +/**
    + * Get the layout position of the whole view
    + *
    + * @param {module:echarts/model/Series} seriesModel  the model object of sankey series
    + * @param {module:echarts/ExtensionAPI} api  provide the API list that the developer can call
    + * @return {module:zrender/core/BoundingRect}  size of rect to draw the sankey view
    + */
    +function getViewRect$3(seriesModel, api) {
    +    return getLayoutRect(
    +        seriesModel.getBoxLayoutParams(), {
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        }
    +    );
    +}
    +
    +function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations) {
    +    computeNodeBreadths(nodes, nodeWidth, width);
    +    computeNodeDepths(nodes, edges, height, nodeGap, iterations);
    +    computeEdgeDepths(nodes);
    +}
    +
    +/**
    + * Compute the value of each node by summing the associated edge's value
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + */
    +function computeNodeValues(nodes) {
    +    each$1(nodes, function (node) {
    +        var value1 = sum(node.outEdges, getEdgeValue);
    +        var value2 = sum(node.inEdges, getEdgeValue);
    +        var value = Math.max(value1, value2);
    +        node.setLayout({value: value}, true);
    +    });
    +}
    +
    +/**
    + * Compute the x-position for each node
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + * @param  {number} nodeWidth  the dx of the node
    + * @param  {number} width  the whole width of the area to draw the view
    + */
    +function computeNodeBreadths(nodes, nodeWidth, width) {
    +    var remainNodes = nodes;
    +    var nextNode = null;
    +    var x = 0;
    +    var kx = 0;
    +
    +    while (remainNodes.length) {
    +        nextNode = [];
    +        for (var i = 0, len = remainNodes.length; i < len; i++) {
    +            var node = remainNodes[i];
    +            node.setLayout({x: x}, true);
    +            node.setLayout({dx: nodeWidth}, true);
    +            for (var j = 0, lenj = node.outEdges.length; j < lenj; j++) {
    +                nextNode.push(node.outEdges[j].node2);
    +            }
    +        }
    +        remainNodes = nextNode;
    +        ++x;
    +    }
    +
    +    moveSinksRight(nodes, x);
    +    kx = (width - nodeWidth) / (x - 1);
    +
    +    scaleNodeBreadths(nodes, kx);
    +}
    +
    +/**
    + * All the node without outEgdes are assigned maximum x-position and
    + *     be aligned in the last column.
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + * @param {number} x  value (x-1) use to assign to node without outEdges
    + *     as x-position
    + */
    +function moveSinksRight(nodes, x) {
    +    each$1(nodes, function (node) {
    +        if (!node.outEdges.length) {
    +            node.setLayout({x: x - 1}, true);
    +        }
    +    });
    +}
    +
    +/**
    + * Scale node x-position to the width
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + * @param {number} kx   multiple used to scale nodes
    + */
    +function scaleNodeBreadths(nodes, kx) {
    +    each$1(nodes, function (node) {
    +        var nodeX = node.getLayout().x * kx;
    +        node.setLayout({x: nodeX}, true);
    +    });
    +}
    +
    +/**
    + * Using Gauss-Seidel iterations method to compute the node depth(y-position)
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + * @param {module:echarts/data/Graph~Edge} edges  edge of sankey view
    + * @param {number} height  the whole height of the area to draw the view
    + * @param {number} nodeGap  the vertical distance between two nodes
    + *     in the same column.
    + * @param {number} iterations  the number of iterations for the algorithm
    + */
    +function computeNodeDepths(nodes, edges, height, nodeGap, iterations) {
    +    var nodesByBreadth = nest()
    +        .key(function (d) {
    +            return d.getLayout().x;
    +        })
    +        .sortKeys(ascending)
    +        .entries(nodes)
    +        .map(function (d) {
    +            return d.values;
    +        });
    +
    +    initializeNodeDepth(nodes, nodesByBreadth, edges, height, nodeGap);
    +    resolveCollisions(nodesByBreadth, nodeGap, height);
    +
    +    for (var alpha = 1; iterations > 0; iterations--) {
    +        // 0.99 is a experience parameter, ensure that each iterations of
    +        // changes as small as possible.
    +        alpha *= 0.99;
    +        relaxRightToLeft(nodesByBreadth, alpha);
    +        resolveCollisions(nodesByBreadth, nodeGap, height);
    +        relaxLeftToRight(nodesByBreadth, alpha);
    +        resolveCollisions(nodesByBreadth, nodeGap, height);
    +    }
    +}
    +
    +/**
    + * Compute the original y-position for each node
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
    + *     group by the array of all sankey nodes based on the nodes x-position.
    + * @param {module:echarts/data/Graph~Edge} edges  edge of sankey view
    + * @param {number} height  the whole height of the area to draw the view
    + * @param {number} nodeGap  the vertical distance between two nodes
    + */
    +function initializeNodeDepth(nodes, nodesByBreadth, edges, height, nodeGap) {
    +    var kyArray = [];
    +    each$1(nodesByBreadth, function (nodes) {
    +        var n = nodes.length;
    +        var sum = 0;
    +        each$1(nodes, function (node) {
    +            sum += node.getLayout().value;
    +        });
    +        var ky = (height - (n - 1) * nodeGap) / sum;
    +        kyArray.push(ky);
    +    });
    +
    +    kyArray.sort(function (a, b) {
    +        return a - b;
    +    });
    +    var ky0 = kyArray[0];
    +
    +    each$1(nodesByBreadth, function (nodes) {
    +        each$1(nodes, function (node, i) {
    +            node.setLayout({y: i}, true);
    +            var nodeDy = node.getLayout().value * ky0;
    +            node.setLayout({dy: nodeDy}, true);
    +        });
    +    });
    +
    +    each$1(edges, function (edge) {
    +        var edgeDy = +edge.getValue() * ky0;
    +        edge.setLayout({dy: edgeDy}, true);
    +    });
    +}
    +
    +/**
    + * Resolve the collision of initialized depth (y-position)
    + *
    + * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
    + *     group by the array of all sankey nodes based on the nodes x-position.
    + * @param {number} nodeGap  the vertical distance between two nodes
    + * @param {number} height  the whole height of the area to draw the view
    + */
    +function resolveCollisions(nodesByBreadth, nodeGap, height) {
    +    each$1(nodesByBreadth, function (nodes) {
    +        var node;
    +        var dy;
    +        var y0 = 0;
    +        var n = nodes.length;
    +        var i;
    +
    +        nodes.sort(ascendingDepth);
    +
    +        for (i = 0; i < n; i++) {
    +            node = nodes[i];
    +            dy = y0 - node.getLayout().y;
    +            if (dy > 0) {
    +                var nodeY = node.getLayout().y + dy;
    +                node.setLayout({y: nodeY}, true);
    +            }
    +            y0 = node.getLayout().y + node.getLayout().dy + nodeGap;
    +        }
    +
    +        // if the bottommost node goes outside the bounds, push it back up
    +        dy = y0 - nodeGap - height;
    +        if (dy > 0) {
    +            var nodeY = node.getLayout().y - dy;
    +            node.setLayout({y: nodeY}, true);
    +            y0 = node.getLayout().y;
    +            for (i = n - 2; i >= 0; --i) {
    +                node = nodes[i];
    +                dy = node.getLayout().y + node.getLayout().dy + nodeGap - y0;
    +                if (dy > 0) {
    +                    nodeY = node.getLayout().y - dy;
    +                    node.setLayout({y: nodeY}, true);
    +                }
    +                y0 = node.getLayout().y;
    +            }
    +        }
    +    });
    +}
    +
    +/**
    + * Change the y-position of the nodes, except most the right side nodes
    + *
    + * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
    + *     group by the array of all sankey nodes based on the node x-position.
    + * @param {number} alpha  parameter used to adjust the nodes y-position
    + */
    +function relaxRightToLeft(nodesByBreadth, alpha) {
    +    each$1(nodesByBreadth.slice().reverse(), function (nodes) {
    +        each$1(nodes, function (node) {
    +            if (node.outEdges.length) {
    +                var y = sum(node.outEdges, weightedTarget) / sum(node.outEdges, getEdgeValue);
    +                var nodeY = node.getLayout().y + (y - center$1(node)) * alpha;
    +                node.setLayout({y: nodeY}, true);
    +            }
    +        });
    +    });
    +}
    +
    +function weightedTarget(edge) {
    +    return center$1(edge.node2) * edge.getValue();
    +}
    +
    +/**
    + * Change the y-position of the nodes, except most the left side nodes
    + *
    + * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
    + *     group by the array of all sankey nodes based on the node x-position.
    + * @param {number} alpha  parameter used to adjust the nodes y-position
    + */
    +function relaxLeftToRight(nodesByBreadth, alpha) {
    +    each$1(nodesByBreadth, function (nodes) {
    +        each$1(nodes, function (node) {
    +            if (node.inEdges.length) {
    +                var y = sum(node.inEdges, weightedSource) / sum(node.inEdges, getEdgeValue);
    +                var nodeY = node.getLayout().y + (y - center$1(node)) * alpha;
    +                node.setLayout({y: nodeY}, true);
    +            }
    +        });
    +    });
    +}
    +
    +function weightedSource(edge) {
    +    return center$1(edge.node1) * edge.getValue();
    +}
    +
    +/**
    + * Compute the depth(y-position) of each edge
    + *
    + * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
    + */
    +function computeEdgeDepths(nodes) {
    +    each$1(nodes, function (node) {
    +        node.outEdges.sort(ascendingTargetDepth);
    +        node.inEdges.sort(ascendingSourceDepth);
    +    });
    +    each$1(nodes, function (node) {
    +        var sy = 0;
    +        var ty = 0;
    +        each$1(node.outEdges, function (edge) {
    +            edge.setLayout({sy: sy}, true);
    +            sy += edge.getLayout().dy;
    +        });
    +        each$1(node.inEdges, function (edge) {
    +            edge.setLayout({ty: ty}, true);
    +            ty += edge.getLayout().dy;
    +        });
    +    });
    +}
    +
    +function ascendingTargetDepth(a, b) {
    +    return a.node2.getLayout().y - b.node2.getLayout().y;
    +}
    +
    +function ascendingSourceDepth(a, b) {
    +    return a.node1.getLayout().y - b.node1.getLayout().y;
    +}
    +
    +function sum(array, f) {
    +    var sum = 0;
    +    var len = array.length;
    +    var i = -1;
    +    while (++i < len) {
    +        var value = +f.call(array, array[i], i);
    +        if (!isNaN(value)) {
    +            sum += value;
    +        }
    +    }
    +    return sum;
    +}
    +
    +function center$1(node) {
    +    return node.getLayout().y + node.getLayout().dy / 2;
    +}
    +
    +function ascendingDepth(a, b) {
    +    return a.getLayout().y - b.getLayout().y;
    +}
    +
    +function ascending(a, b) {
    +    return a < b ? -1 : a > b ? 1 : a === b ? 0 : NaN;
    +}
    +
    +function getEdgeValue(edge) {
    +    return edge.getValue();
    +}
    +
    +/**
    + * @file Visual encoding for sankey view
    + * @author  Deqing Li(annong035@gmail.com)
    + */
    +
    +var sankeyVisual = function (ecModel, payload) {
    +    ecModel.eachSeriesByType('sankey', function (seriesModel) {
    +        var graph = seriesModel.getGraph();
    +        var nodes = graph.nodes;
    +
    +        nodes.sort(function (a, b) {
    +            return a.getLayout().value - b.getLayout().value;
    +        });
    +
    +        var minValue = nodes[0].getLayout().value;
    +        var maxValue = nodes[nodes.length - 1].getLayout().value;
    +
    +        each$1(nodes, function (node) {
    +            var mapping = new VisualMapping({
    +                type: 'color',
    +                mappingMethod: 'linear',
    +                dataExtent: [minValue, maxValue],
    +                visual: seriesModel.get('color')
    +            });
    +
    +            var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);
    +            node.setVisual('color', mapValueToColor);
    +            // If set itemStyle.normal.color
    +            var itemModel = node.getModel();
    +            var customColor = itemModel.get('itemStyle.normal.color');
    +            if (customColor != null) {
    +                node.setVisual('color', customColor);
    +            }
    +        });
    +
    +    });
    +};
    +
    +registerLayout(sankeyLayout);
    +registerVisual(sankeyVisual);
    +
    +/**
    + * @module echarts/chart/helper/Symbol
    + */
    +
    +var WhiskerPath = Path.extend({
    +
    +    type: 'whiskerInBox',
    +
    +    shape: {},
    +
    +    buildPath: function (ctx, shape) {
    +        for (var i in shape) {
    +            if (shape.hasOwnProperty(i) && i.indexOf('ends') === 0) {
    +                var pts = shape[i];
    +                ctx.moveTo(pts[0][0], pts[0][1]);
    +                ctx.lineTo(pts[1][0], pts[1][1]);
    +            }
    +        }
    +    }
    +});
    +
    +/**
    + * @constructor
    + * @alias {module:echarts/chart/helper/WhiskerBox}
    + * @param {module:echarts/data/List} data
    + * @param {number} idx
    + * @param {Function} styleUpdater
    + * @param {boolean} isInit
    + * @extends {module:zrender/graphic/Group}
    + */
    +function WhiskerBox(data, idx, styleUpdater, isInit) {
    +    Group.call(this);
    +
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.bodyIndex;
    +
    +    /**
    +     * @type {number}
    +     * @readOnly
    +     */
    +    this.whiskerIndex;
    +
    +    /**
    +     * @type {Function}
    +     */
    +    this.styleUpdater = styleUpdater;
    +
    +    this._createContent(data, idx, isInit);
    +
    +    this.updateData(data, idx, isInit);
    +
    +    /**
    +     * Last series model.
    +     * @type {module:echarts/model/Series}
    +     */
    +    this._seriesModel;
    +}
    +
    +var whiskerBoxProto = WhiskerBox.prototype;
    +
    +whiskerBoxProto._createContent = function (data, idx, isInit) {
    +    var itemLayout = data.getItemLayout(idx);
    +    var constDim = itemLayout.chartLayout === 'horizontal' ? 1 : 0;
    +    var count = 0;
    +
    +    // Whisker element.
    +    this.add(new Polygon({
    +        shape: {
    +            points: isInit
    +                ? transInit(itemLayout.bodyEnds, constDim, itemLayout)
    +                : itemLayout.bodyEnds
    +        },
    +        style: {strokeNoScale: true},
    +        z2: 100
    +    }));
    +    this.bodyIndex = count++;
    +
    +    // Box element.
    +    var whiskerEnds = map(itemLayout.whiskerEnds, function (ends) {
    +        return isInit ? transInit(ends, constDim, itemLayout) : ends;
    +    });
    +    this.add(new WhiskerPath({
    +        shape: makeWhiskerEndsShape(whiskerEnds),
    +        style: {strokeNoScale: true},
    +        z2: 100
    +    }));
    +    this.whiskerIndex = count++;
    +};
    +
    +function transInit(points, dim, itemLayout) {
    +    return map(points, function (point) {
    +        point = point.slice();
    +        point[dim] = itemLayout.initBaseline;
    +        return point;
    +    });
    +}
    +
    +function makeWhiskerEndsShape(whiskerEnds) {
    +    // zr animation only support 2-dim array.
    +    var shape = {};
    +    each$1(whiskerEnds, function (ends, i) {
    +        shape['ends' + i] = ends;
    +    });
    +    return shape;
    +}
    +
    +/**
    + * Update symbol properties
    + * @param  {module:echarts/data/List} data
    + * @param  {number} idx
    + */
    +whiskerBoxProto.updateData = function (data, idx, isInit) {
    +    var seriesModel = this._seriesModel = data.hostModel;
    +    var itemLayout = data.getItemLayout(idx);
    +    var updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];
    +    // this.childAt(this.bodyIndex).stopAnimation(true);
    +    // this.childAt(this.whiskerIndex).stopAnimation(true);
    +    updateMethod(
    +        this.childAt(this.bodyIndex),
    +        {shape: {points: itemLayout.bodyEnds}},
    +        seriesModel, idx
    +    );
    +    updateMethod(
    +        this.childAt(this.whiskerIndex),
    +        {shape: makeWhiskerEndsShape(itemLayout.whiskerEnds)},
    +        seriesModel, idx
    +    );
    +
    +    this.styleUpdater.call(null, this, data, idx);
    +};
    +
    +inherits(WhiskerBox, Group);
    +
    +
    +/**
    + * @constructor
    + * @alias module:echarts/chart/helper/WhiskerBoxDraw
    + */
    +function WhiskerBoxDraw(styleUpdater) {
    +    this.group = new Group();
    +    this.styleUpdater = styleUpdater;
    +}
    +
    +var whiskerBoxDrawProto = WhiskerBoxDraw.prototype;
    +
    +/**
    + * Update symbols draw by new data
    + * @param {module:echarts/data/List} data
    + */
    +whiskerBoxDrawProto.updateData = function (data) {
    +    var group = this.group;
    +    var oldData = this._data;
    +    var styleUpdater = this.styleUpdater;
    +
    +    data.diff(oldData)
    +        .add(function (newIdx) {
    +            if (data.hasValue(newIdx)) {
    +                var symbolEl = new WhiskerBox(data, newIdx, styleUpdater, true);
    +                data.setItemGraphicEl(newIdx, symbolEl);
    +                group.add(symbolEl);
    +            }
    +        })
    +        .update(function (newIdx, oldIdx) {
    +            var symbolEl = oldData.getItemGraphicEl(oldIdx);
    +
    +            // Empty data
    +            if (!data.hasValue(newIdx)) {
    +                group.remove(symbolEl);
    +                return;
    +            }
    +
    +            if (!symbolEl) {
    +                symbolEl = new WhiskerBox(data, newIdx, styleUpdater);
    +            }
    +            else {
    +                symbolEl.updateData(data, newIdx);
    +            }
    +
    +            // Add back
    +            group.add(symbolEl);
    +
    +            data.setItemGraphicEl(newIdx, symbolEl);
    +        })
    +        .remove(function (oldIdx) {
    +            var el = oldData.getItemGraphicEl(oldIdx);
    +            el && group.remove(el);
    +        })
    +        .execute();
    +
    +    this._data = data;
    +};
    +
    +/**
    + * Remove symbols.
    + * @param {module:echarts/data/List} data
    + */
    +whiskerBoxDrawProto.remove = function () {
    +    var group = this.group;
    +    var data = this._data;
    +    this._data = null;
    +    data && data.eachItemGraphicEl(function (el) {
    +        el && group.remove(el);
    +    });
    +};
    +
    +var seriesModelMixin = {
    +
    +    /**
    +     * @private
    +     * @type {string}
    +     */
    +    _baseAxisDim: null,
    +
    +    /**
    +     * @override
    +     */
    +    getInitialData: function (option, ecModel) {
    +        // When both types of xAxis and yAxis are 'value', layout is
    +        // needed to be specified by user. Otherwise, layout can be
    +        // judged by which axis is category.
    +
    +        var categories;
    +
    +        var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex'));
    +        var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex'));
    +        var xAxisType = xAxisModel.get('type');
    +        var yAxisType = yAxisModel.get('type');
    +        var addOrdinal;
    +
    +        // FIXME
    +        // 考虑时间轴
    +
    +        if (xAxisType === 'category') {
    +            option.layout = 'horizontal';
    +            categories = xAxisModel.getCategories();
    +            addOrdinal = true;
    +        }
    +        else if (yAxisType  === 'category') {
    +            option.layout = 'vertical';
    +            categories = yAxisModel.getCategories();
    +            addOrdinal = true;
    +        }
    +        else {
    +            option.layout = option.layout || 'horizontal';
    +        }
    +
    +        var coordDims = ['x', 'y'];
    +        var baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1;
    +        var baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex];
    +        var otherAxisDim = coordDims[1 - baseAxisDimIndex];
    +        var data = option.data;
    +
    +        addOrdinal && each$1(data, function (item, index) {
    +            if (item.value && isArray(item.value)) {
    +                item.value.unshift(index);
    +            } else {
    +                isArray(item) && item.unshift(index);
    +            }
    +        });
    +
    +        var defaultValueDimensions = this.defaultValueDimensions;
    +        var dimensions = [{
    +            name: baseAxisDim,
    +            otherDims: {
    +                tooltip: false
    +            },
    +            dimsDef: ['base']
    +        }, {
    +            name: otherAxisDim,
    +            dimsDef: defaultValueDimensions.slice()
    +        }];
    +
    +        dimensions = completeDimensions(dimensions, data, {
    +            encodeDef: this.get('encode'),
    +            dimsDef: this.get('dimensions'),
    +            // Consider empty data entry.
    +            dimCount: defaultValueDimensions.length + 1
    +        });
    +
    +        var list = new List(dimensions, this);
    +        list.initData(data, categories ? categories.slice() : null);
    +
    +        return list;
    +    },
    +
    +    /**
    +     * If horizontal, base axis is x, otherwise y.
    +     * @override
    +     */
    +    getBaseAxis: function () {
    +        var dim = this._baseAxisDim;
    +        return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis;
    +    }
    +
    +};
    +
    +var viewMixin = {
    +
    +    init: function () {
    +        /**
    +         * Old data.
    +         * @private
    +         * @type {module:echarts/chart/helper/WhiskerBoxDraw}
    +         */
    +        var whiskerBoxDraw = this._whiskerBoxDraw = new WhiskerBoxDraw(
    +            this.getStyleUpdater()
    +        );
    +        this.group.add(whiskerBoxDraw.group);
    +    },
    +
    +    render: function (seriesModel, ecModel, api) {
    +        this._whiskerBoxDraw.updateData(seriesModel.getData());
    +    },
    +
    +    remove: function (ecModel) {
    +        this._whiskerBoxDraw.remove();
    +    }
    +};
    +
    +var BoxplotSeries = SeriesModel.extend({
    +
    +    type: 'series.boxplot',
    +
    +    dependencies: ['xAxis', 'yAxis', 'grid'],
    +
    +    // TODO
    +    // box width represents group size, so dimension should have 'size'.
    +
    +    /**
    +     * @see <https://en.wikipedia.org/wiki/Box_plot>
    +     * The meanings of 'min' and 'max' depend on user,
    +     * and echarts do not need to know it.
    +     * @readOnly
    +     */
    +    defaultValueDimensions: ['min', 'Q1', 'median', 'Q3', 'max'],
    +
    +    /**
    +     * @type {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: null,
    +
    +    /**
    +     * @override
    +     */
    +    defaultOption: {
    +        zlevel: 0,                  // 一级层叠
    +        z: 2,                       // 二级层叠
    +        coordinateSystem: 'cartesian2d',
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        layout: null,               // 'horizontal' or 'vertical'
    +        boxWidth: [7, 50],       // [min, max] can be percent of band width.
    +
    +        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
    +    }
    +});
    +
    +mixin(BoxplotSeries, seriesModelMixin, true);
    +
    +var BoxplotView = Chart.extend({
    +
    +    type: 'boxplot',
    +
    +    getStyleUpdater: function () {
    +        return updateStyle$1;
    +    },
    +
    +    dispose: noop
    +});
    +
    +mixin(BoxplotView, viewMixin, true);
    +
    +// Update common properties
    +var normalStyleAccessPath$1 = ['itemStyle', 'normal'];
    +var emphasisStyleAccessPath$1 = ['itemStyle', 'emphasis'];
    +
    +function updateStyle$1(itemGroup, data, idx) {
    +    var itemModel = data.getItemModel(idx);
    +    var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath$1);
    +    var borderColor = data.getItemVisual(idx, 'color');
    +
    +    // Exclude borderColor.
    +    var itemStyle = normalItemStyleModel.getItemStyle(['borderColor']);
    +
    +    var whiskerEl = itemGroup.childAt(itemGroup.whiskerIndex);
    +    whiskerEl.style.set(itemStyle);
    +    whiskerEl.style.stroke = borderColor;
    +    whiskerEl.dirty();
    +
    +    var bodyEl = itemGroup.childAt(itemGroup.bodyIndex);
    +    bodyEl.style.set(itemStyle);
    +    bodyEl.style.stroke = borderColor;
    +    bodyEl.dirty();
    +
    +    var hoverStyle = itemModel.getModel(emphasisStyleAccessPath$1).getItemStyle();
    +    setHoverStyle(itemGroup, hoverStyle);
    +}
    +
    +var borderColorQuery = ['itemStyle', 'normal', 'borderColor'];
    +
    +var boxplotVisual = function (ecModel, api) {
    +
    +    var globalColors = ecModel.get('color');
    +
    +    ecModel.eachRawSeriesByType('boxplot', function (seriesModel) {
    +
    +        var defaulColor = globalColors[seriesModel.seriesIndex % globalColors.length];
    +        var data = seriesModel.getData();
    +
    +        data.setVisual({
    +            legendSymbol: 'roundRect',
    +            // Use name 'color' but not 'borderColor' for legend usage and
    +            // visual coding from other component like dataRange.
    +            color: seriesModel.get(borderColorQuery) || defaulColor
    +        });
    +
    +        // Only visible series has each data be visual encoded
    +        if (!ecModel.isSeriesFiltered(seriesModel)) {
    +            data.each(function (idx) {
    +                var itemModel = data.getItemModel(idx);
    +                data.setItemVisual(
    +                    idx,
    +                    {color: itemModel.get(borderColorQuery, true)}
    +                );
    +            });
    +        }
    +    });
    +
    +};
    +
    +var each$16 = each$1;
    +
    +var boxplotLayout = function (ecModel) {
    +
    +    var groupResult = groupSeriesByAxis(ecModel);
    +
    +    each$16(groupResult, function (groupItem) {
    +        var seriesModels = groupItem.seriesModels;
    +
    +        if (!seriesModels.length) {
    +            return;
    +        }
    +
    +        calculateBase(groupItem);
    +
    +        each$16(seriesModels, function (seriesModel, idx) {
    +            layoutSingleSeries(
    +                seriesModel,
    +                groupItem.boxOffsetList[idx],
    +                groupItem.boxWidthList[idx]
    +            );
    +        });
    +    });
    +};
    +
    +/**
    + * Group series by axis.
    + */
    +function groupSeriesByAxis(ecModel) {
    +    var result = [];
    +    var axisList = [];
    +
    +    ecModel.eachSeriesByType('boxplot', function (seriesModel) {
    +        var baseAxis = seriesModel.getBaseAxis();
    +        var idx = indexOf(axisList, baseAxis);
    +
    +        if (idx < 0) {
    +            idx = axisList.length;
    +            axisList[idx] = baseAxis;
    +            result[idx] = {axis: baseAxis, seriesModels: []};
    +        }
    +
    +        result[idx].seriesModels.push(seriesModel);
    +    });
    +
    +    return result;
    +}
    +
    +/**
    + * Calculate offset and box width for each series.
    + */
    +function calculateBase(groupItem) {
    +    var extent;
    +    var baseAxis = groupItem.axis;
    +    var seriesModels = groupItem.seriesModels;
    +    var seriesCount = seriesModels.length;
    +
    +    var boxWidthList = groupItem.boxWidthList = [];
    +    var boxOffsetList = groupItem.boxOffsetList = [];
    +    var boundList = [];
    +
    +    var bandWidth;
    +    if (baseAxis.type === 'category') {
    +        bandWidth = baseAxis.getBandWidth();
    +    }
    +    else {
    +        var maxDataCount = 0;
    +        each$16(seriesModels, function (seriesModel) {
    +            maxDataCount = Math.max(maxDataCount, seriesModel.getData().count());
    +        });
    +        extent = baseAxis.getExtent(),
    +        Math.abs(extent[1] - extent[0]) / maxDataCount;
    +    }
    +
    +    each$16(seriesModels, function (seriesModel) {
    +        var boxWidthBound = seriesModel.get('boxWidth');
    +        if (!isArray(boxWidthBound)) {
    +            boxWidthBound = [boxWidthBound, boxWidthBound];
    +        }
    +        boundList.push([
    +            parsePercent$1(boxWidthBound[0], bandWidth) || 0,
    +            parsePercent$1(boxWidthBound[1], bandWidth) || 0
    +        ]);
    +    });
    +
    +    var availableWidth = bandWidth * 0.8 - 2;
    +    var boxGap = availableWidth / seriesCount * 0.3;
    +    var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;
    +    var base = boxWidth / 2 - availableWidth / 2;
    +
    +    each$16(seriesModels, function (seriesModel, idx) {
    +        boxOffsetList.push(base);
    +        base += boxGap + boxWidth;
    +
    +        boxWidthList.push(
    +            Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1])
    +        );
    +    });
    +}
    +
    +/**
    + * Calculate points location for each series.
    + */
    +function layoutSingleSeries(seriesModel, offset, boxWidth) {
    +    var coordSys = seriesModel.coordinateSystem;
    +    var data = seriesModel.getData();
    +    var halfWidth = boxWidth / 2;
    +    var chartLayout = seriesModel.get('layout');
    +    var variableDim = chartLayout === 'horizontal' ? 0 : 1;
    +    var constDim = 1 - variableDim;
    +    var coordDims = ['x', 'y'];
    +    var vDims = [];
    +    var cDim;
    +
    +    each$1(data.dimensions, function (dimName) {
    +        var dimInfo = data.getDimensionInfo(dimName);
    +        var coordDim = dimInfo.coordDim;
    +        if (coordDim === coordDims[constDim]) {
    +            vDims.push(dimName);
    +        }
    +        else if (coordDim === coordDims[variableDim]) {
    +            cDim = dimName;
    +        }
    +    });
    +
    +    if (cDim == null || vDims.length < 5) {
    +        return;
    +    }
    +
    +    data.each([cDim].concat(vDims), function () {
    +        var args = arguments;
    +        var axisDimVal = args[0];
    +        var idx = args[vDims.length + 1];
    +
    +        var median = getPoint(args[3]);
    +        var end1 = getPoint(args[1]);
    +        var end5 = getPoint(args[5]);
    +        var whiskerEnds = [
    +            [end1, getPoint(args[2])],
    +            [end5, getPoint(args[4])]
    +        ];
    +        layEndLine(end1);
    +        layEndLine(end5);
    +        layEndLine(median);
    +
    +        var bodyEnds = [];
    +        addBodyEnd(whiskerEnds[0][1], 0);
    +        addBodyEnd(whiskerEnds[1][1], 1);
    +
    +        data.setItemLayout(idx, {
    +            chartLayout: chartLayout,
    +            initBaseline: median[constDim],
    +            median: median,
    +            bodyEnds: bodyEnds,
    +            whiskerEnds: whiskerEnds
    +        });
    +
    +        function getPoint(val) {
    +            var p = [];
    +            p[variableDim] = axisDimVal;
    +            p[constDim] = val;
    +            var point;
    +            if (isNaN(axisDimVal) || isNaN(val)) {
    +                point = [NaN, NaN];
    +            }
    +            else {
    +                point = coordSys.dataToPoint(p);
    +                point[variableDim] += offset;
    +            }
    +            return point;
    +        }
    +
    +        function addBodyEnd(point, start) {
    +            var point1 = point.slice();
    +            var point2 = point.slice();
    +            point1[variableDim] += halfWidth;
    +            point2[variableDim] -= halfWidth;
    +            start
    +                ? bodyEnds.push(point1, point2)
    +                : bodyEnds.push(point2, point1);
    +        }
    +
    +        function layEndLine(endCenter) {
    +            var line = [endCenter.slice(), endCenter.slice()];
    +            line[0][variableDim] -= halfWidth;
    +            line[1][variableDim] += halfWidth;
    +            whiskerEnds.push(line);
    +        }
    +    });
    +}
    +
    +registerVisual(boxplotVisual);
    +registerLayout(boxplotLayout);
    +
    +var CandlestickSeries = SeriesModel.extend({
    +
    +    type: 'series.candlestick',
    +
    +    dependencies: ['xAxis', 'yAxis', 'grid'],
    +
    +    /**
    +     * @readOnly
    +     */
    +    defaultValueDimensions: ['open', 'close', 'lowest', 'highest'],
    +
    +    /**
    +     * @type {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: null,
    +
    +    /**
    +     * @override
    +     */
    +    defaultOption: {
    +        zlevel: 0,                  // 一级层叠
    +        z: 2,                       // 二级层叠
    +        coordinateSystem: 'cartesian2d',
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        layout: null, // 'horizontal' or 'vertical'
    +
    +        itemStyle: {
    +            normal: {
    +                color: '#c23531', // 阳线 positive
    +                color0: '#314656', // 阴线 negative     '#c23531', '#314656'
    +                borderWidth: 1,
    +                // FIXME
    +                // ec2中使用的是lineStyle.color 和 lineStyle.color0
    +                borderColor: '#c23531',
    +                borderColor0: '#314656'
    +            },
    +            emphasis: {
    +                borderWidth: 2
    +            }
    +        },
    +
    +        barMaxWidth: null,
    +        barMinWidth: null,
    +        barWidth: null,
    +
    +        animationUpdate: false,
    +        animationEasing: 'linear',
    +        animationDuration: 300
    +    },
    +
    +    /**
    +     * Get dimension for shadow in dataZoom
    +     * @return {string} dimension name
    +     */
    +    getShadowDim: function () {
    +        return 'open';
    +    },
    +
    +    brushSelector: function (dataIndex, data, selectors) {
    +        var itemLayout = data.getItemLayout(dataIndex);
    +        return selectors.rect(itemLayout.brushRect);
    +    }
    +
    +});
    +
    +mixin(CandlestickSeries, seriesModelMixin, true);
    +
    +var CandlestickView = Chart.extend({
    +
    +    type: 'candlestick',
    +
    +    getStyleUpdater: function () {
    +        return updateStyle$2;
    +    },
    +
    +    dispose: noop
    +});
    +
    +mixin(CandlestickView, viewMixin, true);
    +
    +// Update common properties
    +var normalStyleAccessPath$2 = ['itemStyle', 'normal'];
    +var emphasisStyleAccessPath$2 = ['itemStyle', 'emphasis'];
    +
    +function updateStyle$2(itemGroup, data, idx) {
    +    var itemModel = data.getItemModel(idx);
    +    var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath$2);
    +    var color = data.getItemVisual(idx, 'color');
    +    var borderColor = data.getItemVisual(idx, 'borderColor') || color;
    +
    +    // Color must be excluded.
    +    // Because symbol provide setColor individually to set fill and stroke
    +    var itemStyle = normalItemStyleModel.getItemStyle(
    +        ['color', 'color0', 'borderColor', 'borderColor0']
    +    );
    +
    +    var whiskerEl = itemGroup.childAt(itemGroup.whiskerIndex);
    +    whiskerEl.useStyle(itemStyle);
    +    whiskerEl.style.stroke = borderColor;
    +
    +    var bodyEl = itemGroup.childAt(itemGroup.bodyIndex);
    +    bodyEl.useStyle(itemStyle);
    +    bodyEl.style.fill = color;
    +    bodyEl.style.stroke = borderColor;
    +
    +    var hoverStyle = itemModel.getModel(emphasisStyleAccessPath$2).getItemStyle();
    +    setHoverStyle(itemGroup, hoverStyle);
    +}
    +
    +var preprocessor = function (option) {
    +    if (!option || !isArray(option.series)) {
    +        return;
    +    }
    +
    +    // Translate 'k' to 'candlestick'.
    +    each$1(option.series, function (seriesItem) {
    +        if (isObject(seriesItem) && seriesItem.type === 'k') {
    +            seriesItem.type = 'candlestick';
    +        }
    +    });
    +};
    +
    +var positiveBorderColorQuery = ['itemStyle', 'normal', 'borderColor'];
    +var negativeBorderColorQuery = ['itemStyle', 'normal', 'borderColor0'];
    +var positiveColorQuery = ['itemStyle', 'normal', 'color'];
    +var negativeColorQuery = ['itemStyle', 'normal', 'color0'];
    +
    +var candlestickVisual = function (ecModel, api) {
    +
    +    ecModel.eachRawSeriesByType('candlestick', function (seriesModel) {
    +
    +        var data = seriesModel.getData();
    +
    +        data.setVisual({
    +            legendSymbol: 'roundRect'
    +        });
    +
    +        // Only visible series has each data be visual encoded
    +        if (!ecModel.isSeriesFiltered(seriesModel)) {
    +            data.each(function (idx) {
    +                var itemModel = data.getItemModel(idx);
    +                var sign = data.getItemLayout(idx).sign;
    +
    +                data.setItemVisual(
    +                    idx,
    +                    {
    +                        color: itemModel.get(
    +                            sign > 0 ? positiveColorQuery : negativeColorQuery
    +                        ),
    +                        borderColor: itemModel.get(
    +                            sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery
    +                        )
    +                    }
    +                );
    +            });
    +        }
    +    });
    +
    +};
    +
    +var retrieve2$1 = retrieve2;
    +
    +var candlestickLayout = function (ecModel) {
    +
    +    ecModel.eachSeriesByType('candlestick', function (seriesModel) {
    +
    +        var coordSys = seriesModel.coordinateSystem;
    +        var data = seriesModel.getData();
    +        var candleWidth = calculateCandleWidth(seriesModel, data);
    +        var chartLayout = seriesModel.get('layout');
    +        var variableDim = chartLayout === 'horizontal' ? 0 : 1;
    +        var constDim = 1 - variableDim;
    +        var coordDims = ['x', 'y'];
    +        var vDims = [];
    +        var cDim;
    +
    +        each$1(data.dimensions, function (dimName) {
    +            var dimInfo = data.getDimensionInfo(dimName);
    +            var coordDim = dimInfo.coordDim;
    +            if (coordDim === coordDims[constDim]) {
    +                vDims.push(dimName);
    +            }
    +            else if (coordDim === coordDims[variableDim]) {
    +                cDim = dimName;
    +            }
    +        });
    +
    +        if (cDim == null || vDims.length < 4) {
    +            return;
    +        }
    +
    +        var dataIndex = 0;
    +
    +        data.each([cDim].concat(vDims), function () {
    +            var args = arguments;
    +            var axisDimVal = args[0];
    +            var idx = args[vDims.length + 1];
    +
    +            var openVal = args[1];
    +            var closeVal = args[2];
    +            var lowestVal = args[3];
    +            var highestVal = args[4];
    +
    +            var ocLow = Math.min(openVal, closeVal);
    +            var ocHigh = Math.max(openVal, closeVal);
    +
    +            var ocLowPoint = getPoint(ocLow);
    +            var ocHighPoint = getPoint(ocHigh);
    +            var lowestPoint = getPoint(lowestVal);
    +            var highestPoint = getPoint(highestVal);
    +
    +            var whiskerEnds = [
    +                [
    +                    subPixelOptimizePoint(highestPoint),
    +                    subPixelOptimizePoint(ocHighPoint)
    +                ],
    +                [
    +                    subPixelOptimizePoint(lowestPoint),
    +                    subPixelOptimizePoint(ocLowPoint)
    +                ]
    +            ];
    +
    +            var bodyEnds = [];
    +            addBodyEnd(ocHighPoint, 0);
    +            addBodyEnd(ocLowPoint, 1);
    +
    +            var sign;
    +            if (openVal > closeVal) {
    +                sign = -1;
    +            }
    +            else if (openVal < closeVal) {
    +                sign = 1;
    +            }
    +            else {
    +                // If close === open, compare with close of last record
    +                if (dataIndex > 0) {
    +                    sign = data.getItemModel(dataIndex - 1).get()[2]
    +                        <= closeVal
    +                            ? 1
    +                            : -1;
    +                }
    +                else {
    +                    // No record of previous, set to be positive
    +                    sign = 1;
    +                }
    +            }
    +
    +            data.setItemLayout(idx, {
    +                chartLayout: chartLayout,
    +                sign: sign,
    +                initBaseline: openVal > closeVal
    +                    ? ocHighPoint[constDim] : ocLowPoint[constDim], // open point.
    +                bodyEnds: bodyEnds,
    +                whiskerEnds: whiskerEnds,
    +                brushRect: makeBrushRect()
    +            });
    +
    +            ++dataIndex;
    +
    +            function getPoint(val) {
    +                var p = [];
    +                p[variableDim] = axisDimVal;
    +                p[constDim] = val;
    +                return (isNaN(axisDimVal) || isNaN(val))
    +                    ? [NaN, NaN]
    +                    : coordSys.dataToPoint(p);
    +            }
    +
    +            function addBodyEnd(point, start) {
    +                var point1 = point.slice();
    +                var point2 = point.slice();
    +
    +                point1[variableDim] = subPixelOptimize(
    +                    point1[variableDim] + candleWidth / 2, 1, false
    +                );
    +                point2[variableDim] = subPixelOptimize(
    +                    point2[variableDim] - candleWidth / 2, 1, true
    +                );
    +
    +                start
    +                    ? bodyEnds.push(point1, point2)
    +                    : bodyEnds.push(point2, point1);
    +            }
    +
    +            function makeBrushRect() {
    +                var pmin = getPoint(Math.min(openVal, closeVal, lowestVal, highestVal));
    +                var pmax = getPoint(Math.max(openVal, closeVal, lowestVal, highestVal));
    +
    +                pmin[variableDim] -= candleWidth / 2;
    +                pmax[variableDim] -= candleWidth / 2;
    +
    +                return {
    +                    x: pmin[0],
    +                    y: pmin[1],
    +                    width: constDim ? candleWidth : pmax[0] - pmin[0],
    +                    height: constDim ? pmax[1] - pmin[1] : candleWidth
    +                };
    +            }
    +
    +            function subPixelOptimizePoint(point) {
    +                point[variableDim] = subPixelOptimize(point[variableDim], 1);
    +                return point;
    +            }
    +
    +        }, true);
    +    });
    +};
    +
    +function calculateCandleWidth(seriesModel, data) {
    +    var baseAxis = seriesModel.getBaseAxis();
    +    var extent;
    +
    +    var bandWidth = baseAxis.type === 'category'
    +        ? baseAxis.getBandWidth()
    +        : (
    +            extent = baseAxis.getExtent(),
    +            Math.abs(extent[1] - extent[0]) / data.count()
    +        );
    +
    +    var barMaxWidth = parsePercent$1(
    +        retrieve2$1(seriesModel.get('barMaxWidth'), bandWidth),
    +        bandWidth
    +    );
    +    var barMinWidth = parsePercent$1(
    +        retrieve2$1(seriesModel.get('barMinWidth'), 1),
    +        bandWidth
    +    );
    +    var barWidth = seriesModel.get('barWidth');
    +    return barWidth != null
    +        ? parsePercent$1(barWidth, bandWidth)
    +        // Put max outer to ensure bar visible in spite of overlap.
    +        : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth);
    +}
    +
    +registerPreprocessor(preprocessor);
    +registerVisual(candlestickVisual);
    +registerLayout(candlestickLayout);
    +
    +SeriesModel.extend({
    +
    +    type: 'series.effectScatter',
    +
    +    dependencies: ['grid', 'polar'],
    +
    +    getInitialData: function (option, ecModel) {
    +        var list = createListFromArray(option.data, this, ecModel);
    +        return list;
    +    },
    +
    +    brushSelector: 'point',
    +
    +    defaultOption: {
    +        coordinateSystem: 'cartesian2d',
    +        zlevel: 0,
    +        z: 2,
    +        legendHoverLink: true,
    +
    +        effectType: 'ripple',
    +
    +        progressive: 0,
    +
    +        // When to show the effect, option: 'render'|'emphasis'
    +        showEffectOn: 'render',
    +
    +        // Ripple effect config
    +        rippleEffect: {
    +            period: 4,
    +            // Scale of ripple
    +            scale: 2.5,
    +            // Brush type can be fill or stroke
    +            brushType: 'fill'
    +        },
    +
    +        // Cartesian coordinate system
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        // Polar coordinate system
    +        // polarIndex: 0,
    +
    +        // Geo coordinate system
    +        // geoIndex: 0,
    +
    +        // symbol: null,        // 图形类型
    +        symbolSize: 10          // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
    +        // symbolRotate: null,  // 图形旋转控制
    +
    +        // large: false,
    +        // Available when large is true
    +        // largeThreshold: 2000,
    +
    +        // itemStyle: {
    +        //     normal: {
    +        //         opacity: 1
    +        //     }
    +        // }
    +    }
    +
    +});
    +
    +/**
    + * Symbol with ripple effect
    + * @module echarts/chart/helper/EffectSymbol
    + */
    +
    +var EFFECT_RIPPLE_NUMBER = 3;
    +
    +function normalizeSymbolSize$1(symbolSize) {
    +    if (!isArray(symbolSize)) {
    +        symbolSize = [+symbolSize, +symbolSize];
    +    }
    +    return symbolSize;
    +}
    +
    +function updateRipplePath(rippleGroup, effectCfg) {
    +    rippleGroup.eachChild(function (ripplePath) {
    +        ripplePath.attr({
    +            z: effectCfg.z,
    +            zlevel: effectCfg.zlevel,
    +            style: {
    +                stroke: effectCfg.brushType === 'stroke' ? effectCfg.color : null,
    +                fill: effectCfg.brushType === 'fill' ? effectCfg.color : null
    +            }
    +        });
    +    });
    +}
    +/**
    + * @constructor
    + * @param {module:echarts/data/List} data
    + * @param {number} idx
    + * @extends {module:zrender/graphic/Group}
    + */
    +function EffectSymbol(data, idx) {
    +    Group.call(this);
    +
    +    var symbol = new SymbolClz$1(data, idx);
    +    var rippleGroup = new Group();
    +    this.add(symbol);
    +    this.add(rippleGroup);
    +
    +    rippleGroup.beforeUpdate = function () {
    +        this.attr(symbol.getScale());
    +    };
    +    this.updateData(data, idx);
    +}
    +
    +var effectSymbolProto = EffectSymbol.prototype;
    +
    +effectSymbolProto.stopEffectAnimation = function () {
    +    this.childAt(1).removeAll();
    +};
    +
    +effectSymbolProto.startEffectAnimation = function (effectCfg) {
    +    var symbolType = effectCfg.symbolType;
    +    var color = effectCfg.color;
    +    var rippleGroup = this.childAt(1);
    +
    +    for (var i = 0; i < EFFECT_RIPPLE_NUMBER; i++) {
    +        // var ripplePath = createSymbol(
    +        //     symbolType, -0.5, -0.5, 1, 1, color
    +        // );
    +        // If width/height are set too small (e.g., set to 1) on ios10
    +        // and macOS Sierra, a circle stroke become a rect, no matter what
    +        // the scale is set. So we set width/height as 2. See #4136.
    +        var ripplePath = createSymbol(
    +            symbolType, -1, -1, 2, 2, color
    +        );
    +        ripplePath.attr({
    +            style: {
    +                strokeNoScale: true
    +            },
    +            z2: 99,
    +            silent: true,
    +            scale: [0.5, 0.5]
    +        });
    +
    +        var delay = -i / EFFECT_RIPPLE_NUMBER * effectCfg.period + effectCfg.effectOffset;
    +        // TODO Configurable effectCfg.period
    +        ripplePath.animate('', true)
    +            .when(effectCfg.period, {
    +                scale: [effectCfg.rippleScale / 2, effectCfg.rippleScale / 2]
    +            })
    +            .delay(delay)
    +            .start();
    +        ripplePath.animateStyle(true)
    +            .when(effectCfg.period, {
    +                opacity: 0
    +            })
    +            .delay(delay)
    +            .start();
    +
    +        rippleGroup.add(ripplePath);
    +    }
    +
    +    updateRipplePath(rippleGroup, effectCfg);
    +};
    +
    +/**
    + * Update effect symbol
    + */
    +effectSymbolProto.updateEffectAnimation = function (effectCfg) {
    +    var oldEffectCfg = this._effectCfg;
    +    var rippleGroup = this.childAt(1);
    +
    +    // Must reinitialize effect if following configuration changed
    +    var DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale'];
    +    for (var i = 0; i < DIFFICULT_PROPS.length; i++) {
    +        var propName = DIFFICULT_PROPS[i];
    +        if (oldEffectCfg[propName] !== effectCfg[propName]) {
    +            this.stopEffectAnimation();
    +            this.startEffectAnimation(effectCfg);
    +            return;
    +        }
    +    }
    +
    +    updateRipplePath(rippleGroup, effectCfg);
    +};
    +
    +/**
    + * Highlight symbol
    + */
    +effectSymbolProto.highlight = function () {
    +    this.trigger('emphasis');
    +};
    +
    +/**
    + * Downplay symbol
    + */
    +effectSymbolProto.downplay = function () {
    +    this.trigger('normal');
    +};
    +
    +/**
    + * Update symbol properties
    + * @param  {module:echarts/data/List} data
    + * @param  {number} idx
    + */
    +effectSymbolProto.updateData = function (data, idx) {
    +    var seriesModel = data.hostModel;
    +
    +    this.childAt(0).updateData(data, idx);
    +
    +    var rippleGroup = this.childAt(1);
    +    var itemModel = data.getItemModel(idx);
    +    var symbolType = data.getItemVisual(idx, 'symbol');
    +    var symbolSize = normalizeSymbolSize$1(data.getItemVisual(idx, 'symbolSize'));
    +    var color = data.getItemVisual(idx, 'color');
    +
    +    rippleGroup.attr('scale', symbolSize);
    +
    +    rippleGroup.traverse(function (ripplePath) {
    +        ripplePath.attr({
    +            fill: color
    +        });
    +    });
    +
    +    var symbolOffset = itemModel.getShallow('symbolOffset');
    +    if (symbolOffset) {
    +        var pos = rippleGroup.position;
    +        pos[0] = parsePercent$1(symbolOffset[0], symbolSize[0]);
    +        pos[1] = parsePercent$1(symbolOffset[1], symbolSize[1]);
    +    }
    +    rippleGroup.rotation = (itemModel.getShallow('symbolRotate') || 0) * Math.PI / 180 || 0;
    +
    +    var effectCfg = {};
    +
    +    effectCfg.showEffectOn = seriesModel.get('showEffectOn');
    +    effectCfg.rippleScale = itemModel.get('rippleEffect.scale');
    +    effectCfg.brushType = itemModel.get('rippleEffect.brushType');
    +    effectCfg.period = itemModel.get('rippleEffect.period') * 1000;
    +    effectCfg.effectOffset = idx / data.count();
    +    effectCfg.z = itemModel.getShallow('z') || 0;
    +    effectCfg.zlevel = itemModel.getShallow('zlevel') || 0;
    +    effectCfg.symbolType = symbolType;
    +    effectCfg.color = color;
    +
    +    this.off('mouseover').off('mouseout').off('emphasis').off('normal');
    +
    +    if (effectCfg.showEffectOn === 'render') {
    +        this._effectCfg
    +            ? this.updateEffectAnimation(effectCfg)
    +            : this.startEffectAnimation(effectCfg);
    +
    +        this._effectCfg = effectCfg;
    +    }
    +    else {
    +        // Not keep old effect config
    +        this._effectCfg = null;
    +
    +        this.stopEffectAnimation();
    +        var symbol = this.childAt(0);
    +        var onEmphasis = function () {
    +            symbol.highlight();
    +            if (effectCfg.showEffectOn !== 'render') {
    +                this.startEffectAnimation(effectCfg);
    +            }
    +        };
    +        var onNormal = function () {
    +            symbol.downplay();
    +            if (effectCfg.showEffectOn !== 'render') {
    +                this.stopEffectAnimation();
    +            }
    +        };
    +        this.on('mouseover', onEmphasis, this)
    +            .on('mouseout', onNormal, this)
    +            .on('emphasis', onEmphasis, this)
    +            .on('normal', onNormal, this);
    +    }
    +
    +    this._effectCfg = effectCfg;
    +};
    +
    +effectSymbolProto.fadeOut = function (cb) {
    +    this.off('mouseover').off('mouseout').off('emphasis').off('normal');
    +    cb && cb();
    +};
    +
    +inherits(EffectSymbol, Group);
    +
    +extendChartView({
    +
    +    type: 'effectScatter',
    +
    +    init: function () {
    +        this._symbolDraw = new SymbolDraw(EffectSymbol);
    +    },
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var data = seriesModel.getData();
    +        var effectSymbolDraw = this._symbolDraw;
    +        effectSymbolDraw.updateData(data);
    +        this.group.add(effectSymbolDraw.group);
    +    },
    +
    +    updateLayout: function () {
    +        this._symbolDraw.updateLayout();
    +    },
    +
    +    remove: function (ecModel, api) {
    +        this._symbolDraw && this._symbolDraw.remove(api);
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +registerVisual(curry(
    +    visualSymbol, 'effectScatter', 'circle', null
    +));
    +registerLayout(curry(
    +    layoutPoints, 'effectScatter'
    +));
    +
    +// Convert [ [{coord: []}, {coord: []}] ]
    +// to [ { coords: [[]] } ]
    +function preprocessOption(seriesOpt) {
    +    var data = seriesOpt.data;
    +    if (data && data[0] && data[0][0] && data[0][0].coord) {
    +        if (__DEV__) {
    +            console.warn('Lines data configuration has been changed to'
    +                + ' { coords:[[1,2],[2,3]] }');
    +        }
    +        seriesOpt.data = map(data, function (itemOpt) {
    +            var coords = [
    +                itemOpt[0].coord, itemOpt[1].coord
    +            ];
    +            var target = {
    +                coords: coords
    +            };
    +            if (itemOpt[0].name) {
    +                target.fromName = itemOpt[0].name;
    +            }
    +            if (itemOpt[1].name) {
    +                target.toName = itemOpt[1].name;
    +            }
    +            return mergeAll([target, itemOpt[0], itemOpt[1]]);
    +        });
    +    }
    +}
    +
    +var LinesSeries = SeriesModel.extend({
    +
    +    type: 'series.lines',
    +
    +    dependencies: ['grid', 'polar'],
    +
    +    visualColorAccessPath: 'lineStyle.normal.color',
    +
    +    init: function (option) {
    +        // Not using preprocessor because mergeOption may not have series.type
    +        preprocessOption(option);
    +
    +        LinesSeries.superApply(this, 'init', arguments);
    +    },
    +
    +    mergeOption: function (option) {
    +        preprocessOption(option);
    +
    +        LinesSeries.superApply(this, 'mergeOption', arguments);
    +    },
    +
    +    getInitialData: function (option, ecModel) {
    +        if (__DEV__) {
    +            var CoordSys = CoordinateSystemManager.get(option.coordinateSystem);
    +            if (!CoordSys) {
    +                throw new Error('Unkown coordinate system ' + option.coordinateSystem);
    +            }
    +        }
    +
    +        var lineData = new List(['value'], this);
    +        lineData.hasItemOption = false;
    +        lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) {
    +            // dataItem is simply coords
    +            if (dataItem instanceof Array) {
    +                return NaN;
    +            }
    +            else {
    +                lineData.hasItemOption = true;
    +                var value = dataItem.value;
    +                if (value != null) {
    +                    return value instanceof Array ? value[dimIndex] : value;
    +                }
    +            }
    +        });
    +
    +        return lineData;
    +    },
    +
    +    formatTooltip: function (dataIndex) {
    +        var data = this.getData();
    +        var itemModel = data.getItemModel(dataIndex);
    +        var name = itemModel.get('name');
    +        if (name) {
    +            return name;
    +        }
    +        var fromName = itemModel.get('fromName');
    +        var toName = itemModel.get('toName');
    +        var html = [];
    +        fromName != null && html.push(fromName);
    +        toName != null && html.push(toName);
    +
    +        return encodeHTML(html.join(' > '));
    +    },
    +
    +    defaultOption: {
    +        coordinateSystem: 'geo',
    +        zlevel: 0,
    +        z: 2,
    +        legendHoverLink: true,
    +
    +        hoverAnimation: true,
    +        // Cartesian coordinate system
    +        xAxisIndex: 0,
    +        yAxisIndex: 0,
    +
    +        symbol: ['none', 'none'],
    +        symbolSize: [10, 10],
    +        // Geo coordinate system
    +        geoIndex: 0,
    +
    +        effect: {
    +            show: false,
    +            period: 4,
    +            // Animation delay. support callback
    +            // delay: 0,
    +            // If move with constant speed px/sec
    +            // period will be ignored if this property is > 0,
    +            constantSpeed: 0,
    +            symbol: 'circle',
    +            symbolSize: 3,
    +            loop: true,
    +            // Length of trail, 0 - 1
    +            trailLength: 0.2
    +            // Same with lineStyle.normal.color
    +            // color
    +        },
    +
    +        large: false,
    +        // Available when large is true
    +        largeThreshold: 2000,
    +
    +        // If lines are polyline
    +        // polyline not support curveness, label, animation
    +        polyline: false,
    +
    +        label: {
    +            normal: {
    +                show: false,
    +                position: 'end'
    +                // distance: 5,
    +                // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
    +            }
    +        },
    +
    +        lineStyle: {
    +            normal: {
    +                opacity: 0.5
    +            }
    +        }
    +    }
    +});
    +
    +/**
    + * Provide effect for line
    + * @module echarts/chart/helper/EffectLine
    + */
    +
    +/**
    + * @constructor
    + * @extends {module:zrender/graphic/Group}
    + * @alias {module:echarts/chart/helper/Line}
    + */
    +function EffectLine(lineData, idx, seriesScope) {
    +    Group.call(this);
    +
    +    this.add(this.createLine(lineData, idx, seriesScope));
    +
    +    this._updateEffectSymbol(lineData, idx);
    +}
    +
    +var effectLineProto = EffectLine.prototype;
    +
    +effectLineProto.createLine = function (lineData, idx, seriesScope) {
    +    return new Line$1(lineData, idx, seriesScope);
    +};
    +
    +effectLineProto._updateEffectSymbol = function (lineData, idx) {
    +    var itemModel = lineData.getItemModel(idx);
    +    var effectModel = itemModel.getModel('effect');
    +    var size = effectModel.get('symbolSize');
    +    var symbolType = effectModel.get('symbol');
    +    if (!isArray(size)) {
    +        size = [size, size];
    +    }
    +    var color = effectModel.get('color') || lineData.getItemVisual(idx, 'color');
    +    var symbol = this.childAt(1);
    +
    +    if (this._symbolType !== symbolType) {
    +        // Remove previous
    +        this.remove(symbol);
    +
    +        symbol = createSymbol(
    +            symbolType, -0.5, -0.5, 1, 1, color
    +        );
    +        symbol.z2 = 100;
    +        symbol.culling = true;
    +
    +        this.add(symbol);
    +    }
    +
    +    // Symbol may be removed if loop is false
    +    if (!symbol) {
    +        return;
    +    }
    +
    +    // Shadow color is same with color in default
    +    symbol.setStyle('shadowColor', color);
    +    symbol.setStyle(effectModel.getItemStyle(['color']));
    +
    +    symbol.attr('scale', size);
    +
    +    symbol.setColor(color);
    +    symbol.attr('scale', size);
    +
    +    this._symbolType = symbolType;
    +
    +    this._updateEffectAnimation(lineData, effectModel, idx);
    +};
    +
    +effectLineProto._updateEffectAnimation = function (lineData, effectModel, idx) {
    +
    +    var symbol = this.childAt(1);
    +    if (!symbol) {
    +        return;
    +    }
    +
    +    var self = this;
    +
    +    var points = lineData.getItemLayout(idx);
    +
    +    var period = effectModel.get('period') * 1000;
    +    var loop = effectModel.get('loop');
    +    var constantSpeed = effectModel.get('constantSpeed');
    +    var delayExpr = retrieve(effectModel.get('delay'), function (idx) {
    +        return idx / lineData.count() * period / 3;
    +    });
    +    var isDelayFunc = typeof delayExpr === 'function';
    +
    +    // Ignore when updating
    +    symbol.ignore = true;
    +
    +    this.updateAnimationPoints(symbol, points);
    +
    +    if (constantSpeed > 0) {
    +        period = this.getLineLength(symbol) / constantSpeed * 1000;
    +    }
    +
    +    if (period !== this._period || loop !== this._loop) {
    +
    +        symbol.stopAnimation();
    +
    +        var delay = delayExpr;
    +        if (isDelayFunc) {
    +            delay = delayExpr(idx);
    +        }
    +        if (symbol.__t > 0) {
    +            delay = -period * symbol.__t;
    +        }
    +        symbol.__t = 0;
    +        var animator = symbol.animate('', loop)
    +            .when(period, {
    +                __t: 1
    +            })
    +            .delay(delay)
    +            .during(function () {
    +                self.updateSymbolPosition(symbol);
    +            });
    +        if (!loop) {
    +            animator.done(function () {
    +                self.remove(symbol);
    +            });
    +        }
    +        animator.start();
    +    }
    +
    +    this._period = period;
    +    this._loop = loop;
    +};
    +
    +effectLineProto.getLineLength = function (symbol) {
    +    // Not so accurate
    +    return (dist(symbol.__p1, symbol.__cp1)
    +        + dist(symbol.__cp1, symbol.__p2));
    +};
    +
    +effectLineProto.updateAnimationPoints = function (symbol, points) {
    +    symbol.__p1 = points[0];
    +    symbol.__p2 = points[1];
    +    symbol.__cp1 = points[2] || [
    +        (points[0][0] + points[1][0]) / 2,
    +        (points[0][1] + points[1][1]) / 2
    +    ];
    +};
    +
    +effectLineProto.updateData = function (lineData, idx, seriesScope) {
    +    this.childAt(0).updateData(lineData, idx, seriesScope);
    +    this._updateEffectSymbol(lineData, idx);
    +};
    +
    +effectLineProto.updateSymbolPosition = function (symbol) {
    +    var p1 = symbol.__p1;
    +    var p2 = symbol.__p2;
    +    var cp1 = symbol.__cp1;
    +    var t = symbol.__t;
    +    var pos = symbol.position;
    +    var quadraticAt$$1 = quadraticAt;
    +    var quadraticDerivativeAt$$1 = quadraticDerivativeAt;
    +    pos[0] = quadraticAt$$1(p1[0], cp1[0], p2[0], t);
    +    pos[1] = quadraticAt$$1(p1[1], cp1[1], p2[1], t);
    +
    +    // Tangent
    +    var tx = quadraticDerivativeAt$$1(p1[0], cp1[0], p2[0], t);
    +    var ty = quadraticDerivativeAt$$1(p1[1], cp1[1], p2[1], t);
    +
    +    symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;
    +
    +    symbol.ignore = false;
    +};
    +
    +
    +effectLineProto.updateLayout = function (lineData, idx) {
    +    this.childAt(0).updateLayout(lineData, idx);
    +
    +    var effectModel = lineData.getItemModel(idx).getModel('effect');
    +    this._updateEffectAnimation(lineData, effectModel, idx);
    +};
    +
    +inherits(EffectLine, Group);
    +
    +/**
    + * @module echarts/chart/helper/Line
    + */
    +
    +/**
    + * @constructor
    + * @extends {module:zrender/graphic/Group}
    + * @alias {module:echarts/chart/helper/Polyline}
    + */
    +function Polyline$2(lineData, idx, seriesScope) {
    +    Group.call(this);
    +
    +    this._createPolyline(lineData, idx, seriesScope);
    +}
    +
    +var polylineProto = Polyline$2.prototype;
    +
    +polylineProto._createPolyline = function (lineData, idx, seriesScope) {
    +    // var seriesModel = lineData.hostModel;
    +    var points = lineData.getItemLayout(idx);
    +
    +    var line = new Polyline({
    +        shape: {
    +            points: points
    +        }
    +    });
    +
    +    this.add(line);
    +
    +    this._updateCommonStl(lineData, idx, seriesScope);
    +};
    +
    +polylineProto.updateData = function (lineData, idx, seriesScope) {
    +    var seriesModel = lineData.hostModel;
    +
    +    var line = this.childAt(0);
    +    var target = {
    +        shape: {
    +            points: lineData.getItemLayout(idx)
    +        }
    +    };
    +    updateProps(line, target, seriesModel, idx);
    +
    +    this._updateCommonStl(lineData, idx, seriesScope);
    +};
    +
    +polylineProto._updateCommonStl = function (lineData, idx, seriesScope) {
    +    var line = this.childAt(0);
    +    var itemModel = lineData.getItemModel(idx);
    +
    +    var visualColor = lineData.getItemVisual(idx, 'color');
    +
    +    var lineStyle = seriesScope && seriesScope.lineStyle;
    +    var hoverLineStyle = seriesScope && seriesScope.hoverLineStyle;
    +
    +    if (!seriesScope || lineData.hasItemOption) {
    +        lineStyle = itemModel.getModel('lineStyle.normal').getLineStyle();
    +        hoverLineStyle = itemModel.getModel('lineStyle.emphasis').getLineStyle();
    +    }
    +    line.useStyle(defaults(
    +        {
    +            strokeNoScale: true,
    +            fill: 'none',
    +            stroke: visualColor
    +        },
    +        lineStyle
    +    ));
    +    line.hoverStyle = hoverLineStyle;
    +
    +    setHoverStyle(this);
    +};
    +
    +polylineProto.updateLayout = function (lineData, idx) {
    +    var polyline = this.childAt(0);
    +    polyline.setShape('points', lineData.getItemLayout(idx));
    +};
    +
    +inherits(Polyline$2, Group);
    +
    +/**
    + * Provide effect for line
    + * @module echarts/chart/helper/EffectLine
    + */
    +
    +/**
    + * @constructor
    + * @extends {module:echarts/chart/helper/EffectLine}
    + * @alias {module:echarts/chart/helper/Polyline}
    + */
    +function EffectPolyline(lineData, idx, seriesScope) {
    +    EffectLine.call(this, lineData, idx, seriesScope);
    +    this._lastFrame = 0;
    +    this._lastFramePercent = 0;
    +}
    +
    +var effectPolylineProto = EffectPolyline.prototype;
    +
    +// Overwrite
    +effectPolylineProto.createLine = function (lineData, idx, seriesScope) {
    +    return new Polyline$2(lineData, idx, seriesScope);
    +};
    +
    +// Overwrite
    +effectPolylineProto.updateAnimationPoints = function (symbol, points) {
    +    this._points = points;
    +    var accLenArr = [0];
    +    var len$$1 = 0;
    +    for (var i = 1; i < points.length; i++) {
    +        var p1 = points[i - 1];
    +        var p2 = points[i];
    +        len$$1 += dist(p1, p2);
    +        accLenArr.push(len$$1);
    +    }
    +    if (len$$1 === 0) {
    +        return;
    +    }
    +
    +    for (var i = 0; i < accLenArr.length; i++) {
    +        accLenArr[i] /= len$$1;
    +    }
    +    this._offsets = accLenArr;
    +    this._length = len$$1;
    +};
    +
    +// Overwrite
    +effectPolylineProto.getLineLength = function (symbol) {
    +    return this._length;
    +};
    +
    +// Overwrite
    +effectPolylineProto.updateSymbolPosition = function (symbol) {
    +    var t = symbol.__t;
    +    var points = this._points;
    +    var offsets = this._offsets;
    +    var len$$1 = points.length;
    +
    +    if (!offsets) {
    +        // Has length 0
    +        return;
    +    }
    +
    +    var lastFrame = this._lastFrame;
    +    var frame;
    +
    +    if (t < this._lastFramePercent) {
    +        // Start from the next frame
    +        // PENDING start from lastFrame ?
    +        var start = Math.min(lastFrame + 1, len$$1 - 1);
    +        for (frame = start; frame >= 0; frame--) {
    +            if (offsets[frame] <= t) {
    +                break;
    +            }
    +        }
    +        // PENDING really need to do this ?
    +        frame = Math.min(frame, len$$1 - 2);
    +    }
    +    else {
    +        for (var frame = lastFrame; frame < len$$1; frame++) {
    +            if (offsets[frame] > t) {
    +                break;
    +            }
    +        }
    +        frame = Math.min(frame - 1, len$$1 - 2);
    +    }
    +
    +    lerp(
    +        symbol.position, points[frame], points[frame + 1],
    +        (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame])
    +    );
    +
    +    var tx = points[frame + 1][0] - points[frame][0];
    +    var ty = points[frame + 1][1] - points[frame][1];
    +    symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;
    +
    +    this._lastFrame = frame;
    +    this._lastFramePercent = t;
    +
    +    symbol.ignore = false;
    +};
    +
    +inherits(EffectPolyline, EffectLine);
    +
    +// TODO Batch by color
    +
    +var LargeLineShape = extendShape({
    +    shape: {
    +        polyline: false,
    +
    +        segs: []
    +    },
    +
    +    buildPath: function (path, shape) {
    +        var segs = shape.segs;
    +        var isPolyline = shape.polyline;
    +
    +        for (var i = 0; i < segs.length; i++) {
    +            var seg = segs[i];
    +            if (isPolyline) {
    +                path.moveTo(seg[0][0], seg[0][1]);
    +                for (var j = 1; j < seg.length; j++) {
    +                    path.lineTo(seg[j][0], seg[j][1]);
    +                }
    +            }
    +            else {
    +                path.moveTo(seg[0][0], seg[0][1]);
    +                if (seg.length > 2) {
    +                    path.quadraticCurveTo(seg[2][0], seg[2][1], seg[1][0], seg[1][1]);
    +                }
    +                else {
    +                    path.lineTo(seg[1][0], seg[1][1]);
    +                }
    +            }
    +        }
    +    },
    +
    +    findDataIndex: function (x, y) {
    +        var shape = this.shape;
    +        var segs = shape.segs;
    +        var isPolyline = shape.polyline;
    +        var lineWidth = Math.max(this.style.lineWidth, 1);
    +
    +        // Not consider transform
    +        for (var i = 0; i < segs.length; i++) {
    +            var seg = segs[i];
    +            if (isPolyline) {
    +                for (var j = 1; j < seg.length; j++) {
    +                    if (containStroke$1(
    +                        seg[j - 1][0], seg[j - 1][1], seg[j][0], seg[j][1], lineWidth, x, y
    +                    )) {
    +                        return i;
    +                    }
    +                }
    +            }
    +            else {
    +                if (seg.length > 2) {
    +                    if (containStroke$3(
    +                        seg[0][0], seg[0][1], seg[2][0], seg[2][1], seg[1][0], seg[1][1], lineWidth, x, y
    +                    )) {
    +                        return i;
    +                    }
    +                }
    +                else {
    +                    if (containStroke$1(
    +                        seg[0][0], seg[0][1], seg[1][0], seg[1][1], lineWidth, x, y
    +                    )) {
    +                        return i;
    +                    }
    +                }
    +            }
    +        }
    +
    +        return -1;
    +    }
    +});
    +
    +function LargeLineDraw() {
    +    this.group = new Group();
    +
    +    this._lineEl = new LargeLineShape();
    +}
    +
    +var largeLineProto = LargeLineDraw.prototype;
    +
    +/**
    + * Update symbols draw by new data
    + * @param {module:echarts/data/List} data
    + */
    +largeLineProto.updateData = function (data) {
    +    this.group.removeAll();
    +
    +    var lineEl = this._lineEl;
    +
    +    var seriesModel = data.hostModel;
    +
    +    lineEl.setShape({
    +        segs: data.mapArray(data.getItemLayout),
    +        polyline: seriesModel.get('polyline')
    +    });
    +
    +    lineEl.useStyle(
    +        seriesModel.getModel('lineStyle.normal').getLineStyle()
    +    );
    +
    +    var visualColor = data.getVisual('color');
    +    if (visualColor) {
    +        lineEl.setStyle('stroke', visualColor);
    +    }
    +    lineEl.setStyle('fill');
    +
    +    // Enable tooltip
    +    // PENDING May have performance issue when path is extremely large
    +    lineEl.seriesIndex = seriesModel.seriesIndex;
    +    lineEl.on('mousemove', function (e) {
    +        lineEl.dataIndex = null;
    +        var dataIndex = lineEl.findDataIndex(e.offsetX, e.offsetY);
    +        if (dataIndex > 0) {
    +            // Provide dataIndex for tooltip
    +            lineEl.dataIndex = dataIndex;
    +        }
    +    });
    +
    +    // Add back
    +    this.group.add(lineEl);
    +};
    +
    +largeLineProto.updateLayout = function (seriesModel) {
    +    var data = seriesModel.getData();
    +    this._lineEl.setShape({
    +        segs: data.mapArray(data.getItemLayout)
    +    });
    +};
    +
    +largeLineProto.remove = function () {
    +    this.group.removeAll();
    +};
    +
    +extendChartView({
    +
    +    type: 'lines',
    +
    +    init: function () {},
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var data = seriesModel.getData();
    +        var lineDraw = this._lineDraw;
    +
    +        var hasEffect = seriesModel.get('effect.show');
    +        var isPolyline = seriesModel.get('polyline');
    +        var isLarge = seriesModel.get('large') && data.count() >= seriesModel.get('largeThreshold');
    +
    +        if (__DEV__) {
    +            if (hasEffect && isLarge) {
    +                console.warn('Large lines not support effect');
    +            }
    +        }
    +        if (hasEffect !== this._hasEffet || isPolyline !== this._isPolyline || isLarge !== this._isLarge) {
    +            if (lineDraw) {
    +                lineDraw.remove();
    +            }
    +            lineDraw = this._lineDraw = isLarge
    +                ? new LargeLineDraw()
    +                : new LineDraw(
    +                    isPolyline
    +                        ? (hasEffect ? EffectPolyline : Polyline$2)
    +                        : (hasEffect ? EffectLine : Line$1)
    +                );
    +            this._hasEffet = hasEffect;
    +            this._isPolyline = isPolyline;
    +            this._isLarge = isLarge;
    +        }
    +
    +        var zlevel = seriesModel.get('zlevel');
    +        var trailLength = seriesModel.get('effect.trailLength');
    +
    +        var zr = api.getZr();
    +        // Avoid the drag cause ghost shadow
    +        // FIXME Better way ?
    +        // SVG doesn't support
    +        var isSvg = zr.painter.getType() === 'svg';
    +        if (!isSvg) {
    +            zr.painter.getLayer(zlevel).clear(true);
    +        }
    +        // Config layer with motion blur
    +        if (this._lastZlevel != null && !isSvg) {
    +            zr.configLayer(this._lastZlevel, {
    +                motionBlur: false
    +            });
    +        }
    +        if (hasEffect && trailLength) {
    +            if (__DEV__) {
    +                var notInIndividual = false;
    +                ecModel.eachSeries(function (otherSeriesModel) {
    +                    if (otherSeriesModel !== seriesModel && otherSeriesModel.get('zlevel') === zlevel) {
    +                        notInIndividual = true;
    +                    }
    +                });
    +                notInIndividual && console.warn('Lines with trail effect should have an individual zlevel');
    +            }
    +
    +            if (!isSvg) {
    +                zr.configLayer(zlevel, {
    +                    motionBlur: true,
    +                    lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)
    +                });
    +            }
    +        }
    +
    +        this.group.add(lineDraw.group);
    +
    +        lineDraw.updateData(data);
    +
    +        this._lastZlevel = zlevel;
    +    },
    +
    +    updateLayout: function (seriesModel, ecModel, api) {
    +        this._lineDraw.updateLayout(seriesModel);
    +        // Not use motion when dragging or zooming
    +        var zr = api.getZr();
    +        var isSvg = zr.painter.getType() === 'svg';
    +        if (!isSvg) {
    +            zr.painter.getLayer(this._lastZlevel).clear(true);
    +        }
    +    },
    +
    +    remove: function (ecModel, api) {
    +        this._lineDraw && this._lineDraw.remove(api, true);
    +        // Clear motion when lineDraw is removed
    +        var zr = api.getZr();
    +        var isSvg = zr.painter.getType() === 'svg';
    +        if (!isSvg) {
    +            zr.painter.getLayer(this._lastZlevel).clear(true);
    +        }
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +var linesLayout = function (ecModel) {
    +    ecModel.eachSeriesByType('lines', function (seriesModel) {
    +        var coordSys = seriesModel.coordinateSystem;
    +        var lineData = seriesModel.getData();
    +
    +        // FIXME Use data dimensions ?
    +        lineData.each(function (idx) {
    +            var itemModel = lineData.getItemModel(idx);
    +
    +            var coords = (itemModel.option instanceof Array) ?
    +                itemModel.option : itemModel.get('coords');
    +
    +            if (__DEV__) {
    +                if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) {
    +                    throw new Error('Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.');
    +                }
    +            }
    +            var pts = [];
    +
    +            if (seriesModel.get('polyline')) {
    +                for (var i = 0; i < coords.length; i++) {
    +                    pts.push(coordSys.dataToPoint(coords[i]));
    +                }
    +            }
    +            else {
    +                pts[0] = coordSys.dataToPoint(coords[0]);
    +                pts[1] = coordSys.dataToPoint(coords[1]);
    +
    +                var curveness = itemModel.get('lineStyle.normal.curveness');
    +                if (+curveness) {
    +                    pts[2] = [
    +                        (pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness,
    +                        (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness
    +                    ];
    +                }
    +            }
    +            lineData.setItemLayout(idx, pts);
    +        });
    +    });
    +};
    +
    +function normalize$2(a) {
    +    if (!(a instanceof Array)) {
    +        a = [a, a];
    +    }
    +    return a;
    +}
    +
    +var linesVisual = function (ecModel) {
    +    ecModel.eachSeriesByType('lines', function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var symbolType = normalize$2(seriesModel.get('symbol'));
    +        var symbolSize = normalize$2(seriesModel.get('symbolSize'));
    +
    +        var opacityQuery = 'lineStyle.normal.opacity'.split('.');
    +
    +        data.setVisual('fromSymbol', symbolType && symbolType[0]);
    +        data.setVisual('toSymbol', symbolType && symbolType[1]);
    +        data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);
    +        data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);
    +        data.setVisual('opacity', seriesModel.get(opacityQuery));
    +
    +        data.each(function (idx) {
    +            var itemModel = data.getItemModel(idx);
    +            var symbolType = normalize$2(itemModel.getShallow('symbol', true));
    +            var symbolSize = normalize$2(itemModel.getShallow('symbolSize', true));
    +            var opacity = itemModel.get(opacityQuery);
    +
    +            symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);
    +            symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);
    +            symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);
    +            symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);
    +
    +            data.setItemVisual(idx, 'opacity', opacity);
    +        });
    +    });
    +};
    +
    +registerLayout(linesLayout);
    +registerVisual(linesVisual);
    +
    +SeriesModel.extend({
    +    type: 'series.heatmap',
    +
    +    getInitialData: function (option, ecModel) {
    +        return createListFromArray(option.data, this, ecModel);
    +    },
    +
    +    defaultOption: {
    +
    +        // Cartesian2D or geo
    +        coordinateSystem: 'cartesian2d',
    +
    +        zlevel: 0,
    +
    +        z: 2,
    +
    +        // Cartesian coordinate system
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        // Geo coordinate system
    +        geoIndex: 0,
    +
    +        blurSize: 30,
    +
    +        pointSize: 20,
    +
    +        maxOpacity: 1,
    +
    +        minOpacity: 0
    +    }
    +});
    +
    +/**
    + * @file defines echarts Heatmap Chart
    + * @author Ovilia (me@zhangwenli.com)
    + * Inspired by https://github.com/mourner/simpleheat
    + *
    + * @module
    + */
    +
    +var GRADIENT_LEVELS = 256;
    +
    +/**
    + * Heatmap Chart
    + *
    + * @class
    + */
    +function Heatmap() {
    +    var canvas = createCanvas();
    +    this.canvas = canvas;
    +
    +    this.blurSize = 30;
    +    this.pointSize = 20;
    +
    +    this.maxOpacity = 1;
    +    this.minOpacity = 0;
    +
    +    this._gradientPixels = {};
    +}
    +
    +Heatmap.prototype = {
    +    /**
    +     * Renders Heatmap and returns the rendered canvas
    +     * @param {Array} data array of data, each has x, y, value
    +     * @param {number} width canvas width
    +     * @param {number} height canvas height
    +     */
    +    update: function(data, width, height, normalize, colorFunc, isInRange) {
    +        var brush = this._getBrush();
    +        var gradientInRange = this._getGradient(data, colorFunc, 'inRange');
    +        var gradientOutOfRange = this._getGradient(data, colorFunc, 'outOfRange');
    +        var r = this.pointSize + this.blurSize;
    +
    +        var canvas = this.canvas;
    +        var ctx = canvas.getContext('2d');
    +        var len = data.length;
    +        canvas.width = width;
    +        canvas.height = height;
    +        for (var i = 0; i < len; ++i) {
    +            var p = data[i];
    +            var x = p[0];
    +            var y = p[1];
    +            var value = p[2];
    +
    +            // calculate alpha using value
    +            var alpha = normalize(value);
    +
    +            // draw with the circle brush with alpha
    +            ctx.globalAlpha = alpha;
    +            ctx.drawImage(brush, x - r, y - r);
    +        }
    +
    +        if (!canvas.width || !canvas.height) {
    +            // Avoid "Uncaught DOMException: Failed to execute 'getImageData' on
    +            // 'CanvasRenderingContext2D': The source height is 0."
    +            return canvas;
    +        }
    +
    +        // colorize the canvas using alpha value and set with gradient
    +        var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
    +
    +        var pixels = imageData.data;
    +        var offset = 0;
    +        var pixelLen = pixels.length;
    +        var minOpacity = this.minOpacity;
    +        var maxOpacity = this.maxOpacity;
    +        var diffOpacity = maxOpacity - minOpacity;
    +
    +        while(offset < pixelLen) {
    +            var alpha = pixels[offset + 3] / 256;
    +            var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4;
    +            // Simple optimize to ignore the empty data
    +            if (alpha > 0) {
    +                var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange;
    +                // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]
    +                alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);
    +                pixels[offset++] = gradient[gradientOffset];
    +                pixels[offset++] = gradient[gradientOffset + 1];
    +                pixels[offset++] = gradient[gradientOffset + 2];
    +                pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;
    +            }
    +            else {
    +                offset += 4;
    +            }
    +        }
    +        ctx.putImageData(imageData, 0, 0);
    +
    +        return canvas;
    +    },
    +
    +    /**
    +     * get canvas of a black circle brush used for canvas to draw later
    +     * @private
    +     * @returns {Object} circle brush canvas
    +     */
    +    _getBrush: function() {
    +        var brushCanvas = this._brushCanvas || (this._brushCanvas = createCanvas());
    +        // set brush size
    +        var r = this.pointSize + this.blurSize;
    +        var d = r * 2;
    +        brushCanvas.width = d;
    +        brushCanvas.height = d;
    +
    +        var ctx = brushCanvas.getContext('2d');
    +        ctx.clearRect(0, 0, d, d);
    +
    +        // in order to render shadow without the distinct circle,
    +        // draw the distinct circle in an invisible place,
    +        // and use shadowOffset to draw shadow in the center of the canvas
    +        ctx.shadowOffsetX = d;
    +        ctx.shadowBlur = this.blurSize;
    +        // draw the shadow in black, and use alpha and shadow blur to generate
    +        // color in color map
    +        ctx.shadowColor = '#000';
    +
    +        // draw circle in the left to the canvas
    +        ctx.beginPath();
    +        ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);
    +        ctx.closePath();
    +        ctx.fill();
    +        return brushCanvas;
    +    },
    +
    +    /**
    +     * get gradient color map
    +     * @private
    +     */
    +    _getGradient: function (data, colorFunc, state) {
    +        var gradientPixels = this._gradientPixels;
    +        var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));
    +        var color = [0, 0, 0, 0];
    +        var off = 0;
    +        for (var i = 0; i < 256; i++) {
    +            colorFunc[state](i / 255, true, color);
    +            pixelsSingleState[off++] = color[0];
    +            pixelsSingleState[off++] = color[1];
    +            pixelsSingleState[off++] = color[2];
    +            pixelsSingleState[off++] = color[3];
    +        }
    +        return pixelsSingleState;
    +    }
    +};
    +
    +function getIsInPiecewiseRange(dataExtent, pieceList, selected) {
    +    var dataSpan = dataExtent[1] - dataExtent[0];
    +    pieceList = map(pieceList, function (piece) {
    +        return {
    +            interval: [
    +                (piece.interval[0] - dataExtent[0]) / dataSpan,
    +                (piece.interval[1] - dataExtent[0]) / dataSpan
    +            ]
    +        };
    +    });
    +    var len = pieceList.length;
    +    var lastIndex = 0;
    +
    +    return function (val) {
    +        // Try to find in the location of the last found
    +        for (var i = lastIndex; i < len; i++) {
    +            var interval = pieceList[i].interval;
    +            if (interval[0] <= val && val <= interval[1]) {
    +                lastIndex = i;
    +                break;
    +            }
    +        }
    +        if (i === len) { // Not found, back interation
    +            for (var i = lastIndex - 1; i >= 0; i--) {
    +                var interval = pieceList[i].interval;
    +                if (interval[0] <= val && val <= interval[1]) {
    +                    lastIndex = i;
    +                    break;
    +                }
    +            }
    +        }
    +        return i >= 0 && i < len && selected[i];
    +    };
    +}
    +
    +function getIsInContinuousRange(dataExtent, range) {
    +    var dataSpan = dataExtent[1] - dataExtent[0];
    +    range = [
    +        (range[0] - dataExtent[0]) / dataSpan,
    +        (range[1] - dataExtent[0]) / dataSpan
    +    ];
    +    return function (val) {
    +        return val >= range[0] && val <= range[1];
    +    };
    +}
    +
    +function isGeoCoordSys(coordSys) {
    +    var dimensions = coordSys.dimensions;
    +    // Not use coorSys.type === 'geo' because coordSys maybe extended
    +    return dimensions[0] === 'lng' && dimensions[1] === 'lat';
    +}
    +
    +extendChartView({
    +
    +    type: 'heatmap',
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var visualMapOfThisSeries;
    +        ecModel.eachComponent('visualMap', function (visualMap) {
    +            visualMap.eachTargetSeries(function (targetSeries) {
    +                if (targetSeries === seriesModel) {
    +                    visualMapOfThisSeries = visualMap;
    +                }
    +            });
    +        });
    +
    +        if (__DEV__) {
    +            if (!visualMapOfThisSeries) {
    +                throw new Error('Heatmap must use with visualMap');
    +            }
    +        }
    +
    +        this.group.removeAll();
    +        var coordSys = seriesModel.coordinateSystem;
    +        if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') {
    +            this._renderOnCartesianAndCalendar(coordSys, seriesModel, api);
    +        }
    +        else if (isGeoCoordSys(coordSys)) {
    +            this._renderOnGeo(
    +                coordSys, seriesModel, visualMapOfThisSeries, api
    +            );
    +        }
    +    },
    +
    +    dispose: function () {},
    +
    +    _renderOnCartesianAndCalendar: function (coordSys, seriesModel, api) {
    +
    +        if (coordSys.type === 'cartesian2d') {
    +            var xAxis = coordSys.getAxis('x');
    +            var yAxis = coordSys.getAxis('y');
    +
    +            if (__DEV__) {
    +                if (!(xAxis.type === 'category' && yAxis.type === 'category')) {
    +                    throw new Error('Heatmap on cartesian must have two category axes');
    +                }
    +                if (!(xAxis.onBand && yAxis.onBand)) {
    +                    throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');
    +                }
    +            }
    +
    +            var width = xAxis.getBandWidth();
    +            var height = yAxis.getBandWidth();
    +
    +        }
    +
    +        var group = this.group;
    +        var data = seriesModel.getData();
    +
    +        var itemStyleQuery = 'itemStyle.normal';
    +        var hoverItemStyleQuery = 'itemStyle.emphasis';
    +        var labelQuery = 'label.normal';
    +        var hoverLabelQuery = 'label.emphasis';
    +        var style = seriesModel.getModel(itemStyleQuery).getItemStyle(['color']);
    +        var hoverStl = seriesModel.getModel(hoverItemStyleQuery).getItemStyle();
    +        var labelModel = seriesModel.getModel('label.normal');
    +        var hoverLabelModel = seriesModel.getModel('label.emphasis');
    +        var coordSysType = coordSys.type;
    +
    +        var dataDims = coordSysType === 'cartesian2d'
    +            ? [
    +                seriesModel.coordDimToDataDim('x')[0],
    +                seriesModel.coordDimToDataDim('y')[0],
    +                seriesModel.coordDimToDataDim('value')[0]
    +            ]
    +            : [
    +                seriesModel.coordDimToDataDim('time')[0],
    +                seriesModel.coordDimToDataDim('value')[0]
    +            ];
    +
    +        data.each(function (idx) {
    +            var rect;
    +
    +            if (coordSysType === 'cartesian2d') {
    +                // Ignore empty data
    +                if (isNaN(data.get(dataDims[2], idx))) {
    +                    return;
    +                }
    +
    +                var point = coordSys.dataToPoint([
    +                    data.get(dataDims[0], idx),
    +                    data.get(dataDims[1], idx)
    +                ]);
    +
    +                rect = new Rect({
    +                    shape: {
    +                        x: point[0] - width / 2,
    +                        y: point[1] - height / 2,
    +                        width: width,
    +                        height: height
    +                    },
    +                    style: {
    +                        fill: data.getItemVisual(idx, 'color'),
    +                        opacity: data.getItemVisual(idx, 'opacity')
    +                    }
    +                });
    +            }
    +            else {
    +                // Ignore empty data
    +                if (isNaN(data.get(dataDims[1], idx))) {
    +                    return;
    +                }
    +
    +                rect = new Rect({
    +                    z2: 1,
    +                    shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape,
    +                    style: {
    +                        fill: data.getItemVisual(idx, 'color'),
    +                        opacity: data.getItemVisual(idx, 'opacity')
    +                    }
    +                });
    +            }
    +
    +            var itemModel = data.getItemModel(idx);
    +
    +            // Optimization for large datset
    +            if (data.hasItemOption) {
    +                style = itemModel.getModel(itemStyleQuery).getItemStyle(['color']);
    +                hoverStl = itemModel.getModel(hoverItemStyleQuery).getItemStyle();
    +                labelModel = itemModel.getModel(labelQuery);
    +                hoverLabelModel = itemModel.getModel(hoverLabelQuery);
    +            }
    +
    +            var rawValue = seriesModel.getRawValue(idx);
    +            var defaultText = '-';
    +            if (rawValue && rawValue[2] != null) {
    +                defaultText = rawValue[2];
    +            }
    +
    +            setLabelStyle(
    +                style, hoverStl, labelModel, hoverLabelModel,
    +                {
    +                    labelFetcher: seriesModel,
    +                    labelDataIndex: idx,
    +                    defaultText: defaultText,
    +                    isRectText: true
    +                }
    +            );
    +
    +            rect.setStyle(style);
    +            setHoverStyle(rect, data.hasItemOption ? hoverStl : extend({}, hoverStl));
    +
    +            group.add(rect);
    +            data.setItemGraphicEl(idx, rect);
    +        });
    +    },
    +
    +    _renderOnGeo: function (geo, seriesModel, visualMapModel, api) {
    +        var inRangeVisuals = visualMapModel.targetVisuals.inRange;
    +        var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange;
    +        // if (!visualMapping) {
    +        //     throw new Error('Data range must have color visuals');
    +        // }
    +
    +        var data = seriesModel.getData();
    +        var hmLayer = this._hmLayer || (this._hmLayer || new Heatmap());
    +        hmLayer.blurSize = seriesModel.get('blurSize');
    +        hmLayer.pointSize = seriesModel.get('pointSize');
    +        hmLayer.minOpacity = seriesModel.get('minOpacity');
    +        hmLayer.maxOpacity = seriesModel.get('maxOpacity');
    +
    +        var rect = geo.getViewRect().clone();
    +        var roamTransform = geo.getRoamTransform().transform;
    +        rect.applyTransform(roamTransform);
    +
    +        // Clamp on viewport
    +        var x = Math.max(rect.x, 0);
    +        var y = Math.max(rect.y, 0);
    +        var x2 = Math.min(rect.width + rect.x, api.getWidth());
    +        var y2 = Math.min(rect.height + rect.y, api.getHeight());
    +        var width = x2 - x;
    +        var height = y2 - y;
    +
    +        var points = data.mapArray(['lng', 'lat', 'value'], function (lng, lat, value) {
    +            var pt = geo.dataToPoint([lng, lat]);
    +            pt[0] -= x;
    +            pt[1] -= y;
    +            pt.push(value);
    +            return pt;
    +        });
    +
    +        var dataExtent = visualMapModel.getExtent();
    +        var isInRange = visualMapModel.type === 'visualMap.continuous'
    +            ? getIsInContinuousRange(dataExtent, visualMapModel.option.range)
    +            : getIsInPiecewiseRange(
    +                dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected
    +            );
    +
    +        hmLayer.update(
    +            points, width, height,
    +            inRangeVisuals.color.getNormalizer(),
    +            {
    +                inRange: inRangeVisuals.color.getColorMapper(),
    +                outOfRange: outOfRangeVisuals.color.getColorMapper()
    +            },
    +            isInRange
    +        );
    +        var img = new ZImage({
    +            style: {
    +                width: width,
    +                height: height,
    +                x: x,
    +                y: y,
    +                image: hmLayer.canvas
    +            },
    +            silent: true
    +        });
    +        this.group.add(img);
    +    }
    +});
    +
    +var PictorialBarSeries = BaseBarSeries.extend({
    +
    +    type: 'series.pictorialBar',
    +
    +    dependencies: ['grid'],
    +
    +    defaultOption: {
    +        symbol: 'circle',     // Customized bar shape
    +        symbolSize: null,     // Can be ['100%', '100%'], null means auto.
    +        symbolRotate: null,
    +
    +        symbolPosition: null, // 'start' or 'end' or 'center', null means auto.
    +        symbolOffset: null,
    +        symbolMargin: null,   // start margin and end margin. Can be a number or a percent string.
    +                                // Auto margin by defualt.
    +        symbolRepeat: false,  // false/null/undefined, means no repeat.
    +                                // Can be true, means auto calculate repeat times and cut by data.
    +                                // Can be a number, specifies repeat times, and do not cut by data.
    +                                // Can be 'fixed', means auto calculate repeat times but do not cut by data.
    +        symbolRepeatDirection: 'end', // 'end' means from 'start' to 'end'.
    +
    +        symbolClip: false,
    +        symbolBoundingData: null, // Can be 60 or -40 or [-40, 60]
    +        symbolPatternSize: 400, // 400 * 400 px
    +
    +        barGap: '-100%',      // In most case, overlap is needed.
    +
    +        // z can be set in data item, which is z2 actually.
    +
    +        // Disable progressive
    +        progressive: 0,
    +        hoverAnimation: false // Open only when needed.
    +    },
    +
    +    getInitialData: function (option) {
    +        // Disable stack.
    +        option.stack = null;
    +        return PictorialBarSeries.superApply(this, 'getInitialData', arguments);
    +    }
    +});
    +
    +var BAR_BORDER_WIDTH_QUERY$1 = ['itemStyle', 'normal', 'borderWidth'];
    +
    +// index: +isHorizontal
    +var LAYOUT_ATTRS = [
    +    {xy: 'x', wh: 'width', index: 0, posDesc: ['left', 'right']},
    +    {xy: 'y', wh: 'height', index: 1, posDesc: ['top', 'bottom']}
    +];
    +
    +var pathForLineWidth = new Circle();
    +
    +var BarView$1 = extendChartView({
    +
    +    type: 'pictorialBar',
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var group = this.group;
    +        var data = seriesModel.getData();
    +        var oldData = this._data;
    +
    +        var cartesian = seriesModel.coordinateSystem;
    +        var baseAxis = cartesian.getBaseAxis();
    +        var isHorizontal = !!baseAxis.isHorizontal();
    +        var coordSysRect = cartesian.grid.getRect();
    +
    +        var opt = {
    +            ecSize: {width: api.getWidth(), height: api.getHeight()},
    +            seriesModel: seriesModel,
    +            coordSys: cartesian,
    +            coordSysExtent: [
    +                [coordSysRect.x, coordSysRect.x + coordSysRect.width],
    +                [coordSysRect.y, coordSysRect.y + coordSysRect.height]
    +            ],
    +            isHorizontal: isHorizontal,
    +            valueDim: LAYOUT_ATTRS[+isHorizontal],
    +            categoryDim: LAYOUT_ATTRS[1 - isHorizontal]
    +        };
    +
    +        data.diff(oldData)
    +            .add(function (dataIndex) {
    +                if (!data.hasValue(dataIndex)) {
    +                    return;
    +                }
    +
    +                var itemModel = getItemModel(data, dataIndex);
    +                var symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt);
    +
    +                var bar = createBar(data, opt, symbolMeta);
    +
    +                data.setItemGraphicEl(dataIndex, bar);
    +                group.add(bar);
    +
    +                updateCommon$1(bar, opt, symbolMeta);
    +            })
    +            .update(function (newIndex, oldIndex) {
    +                var bar = oldData.getItemGraphicEl(oldIndex);
    +
    +                if (!data.hasValue(newIndex)) {
    +                    group.remove(bar);
    +                    return;
    +                }
    +
    +                var itemModel = getItemModel(data, newIndex);
    +                var symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt);
    +
    +                var pictorialShapeStr = getShapeStr(data, symbolMeta);
    +                if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) {
    +                    group.remove(bar);
    +                    data.setItemGraphicEl(newIndex, null);
    +                    bar = null;
    +                }
    +
    +                if (bar) {
    +                    updateBar(bar, opt, symbolMeta);
    +                }
    +                else {
    +                    bar = createBar(data, opt, symbolMeta, true);
    +                }
    +
    +                data.setItemGraphicEl(newIndex, bar);
    +                bar.__pictorialSymbolMeta = symbolMeta;
    +                // Add back
    +                group.add(bar);
    +
    +                updateCommon$1(bar, opt, symbolMeta);
    +            })
    +            .remove(function (dataIndex) {
    +                var bar = oldData.getItemGraphicEl(dataIndex);
    +                bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar);
    +            })
    +            .execute();
    +
    +        this._data = data;
    +
    +        return this.group;
    +    },
    +
    +    dispose: noop,
    +
    +    remove: function (ecModel, api) {
    +        var group = this.group;
    +        var data = this._data;
    +        if (ecModel.get('animation')) {
    +            if (data) {
    +                data.eachItemGraphicEl(function (bar) {
    +                    removeBar(data, bar.dataIndex, ecModel, bar);
    +                });
    +            }
    +        }
    +        else {
    +            group.removeAll();
    +        }
    +    }
    +});
    +
    +
    +// Set or calculate default value about symbol, and calculate layout info.
    +function getSymbolMeta(data, dataIndex, itemModel, opt) {
    +    var layout = data.getItemLayout(dataIndex);
    +    var symbolRepeat = itemModel.get('symbolRepeat');
    +    var symbolClip = itemModel.get('symbolClip');
    +    var symbolPosition = itemModel.get('symbolPosition') || 'start';
    +    var symbolRotate = itemModel.get('symbolRotate');
    +    var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;
    +    var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;
    +    var isAnimationEnabled = itemModel.isAnimationEnabled();
    +
    +    var symbolMeta = {
    +        dataIndex: dataIndex,
    +        layout: layout,
    +        itemModel: itemModel,
    +        symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',
    +        color: data.getItemVisual(dataIndex, 'color'),
    +        symbolClip: symbolClip,
    +        symbolRepeat: symbolRepeat,
    +        symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),
    +        symbolPatternSize: symbolPatternSize,
    +        rotation: rotation,
    +        animationModel: isAnimationEnabled ? itemModel : null,
    +        hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'),
    +        z2: itemModel.getShallow('z', true) || 0
    +    };
    +
    +    prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);
    +
    +    prepareSymbolSize(
    +        data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength,
    +        symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta
    +    );
    +
    +    prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);
    +
    +    var symbolSize = symbolMeta.symbolSize;
    +    var symbolOffset = itemModel.get('symbolOffset');
    +    if (isArray(symbolOffset)) {
    +        symbolOffset = [
    +            parsePercent$1(symbolOffset[0], symbolSize[0]),
    +            parsePercent$1(symbolOffset[1], symbolSize[1])
    +        ];
    +    }
    +
    +    prepareLayoutInfo(
    +        itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset,
    +        symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength,
    +        opt, symbolMeta
    +    );
    +
    +    return symbolMeta;
    +}
    +
    +// bar length can be negative.
    +function prepareBarLength(itemModel, symbolRepeat, layout, opt, output) {
    +    var valueDim = opt.valueDim;
    +    var symbolBoundingData = itemModel.get('symbolBoundingData');
    +    var valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis());
    +    var zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));
    +    var pxSignIdx = 1 - +(layout[valueDim.wh] <= 0);
    +    var boundingLength;
    +
    +    if (isArray(symbolBoundingData)) {
    +        var symbolBoundingExtent = [
    +            convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx,
    +            convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx
    +        ];
    +        symbolBoundingExtent[1] < symbolBoundingExtent[0] && (symbolBoundingExtent.reverse());
    +        boundingLength = symbolBoundingExtent[pxSignIdx];
    +    }
    +    else if (symbolBoundingData != null) {
    +        boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx;
    +    }
    +    else if (symbolRepeat) {
    +        boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx;
    +    }
    +    else {
    +        boundingLength = layout[valueDim.wh];
    +    }
    +
    +    output.boundingLength = boundingLength;
    +
    +    if (symbolRepeat) {
    +        output.repeatCutLength = layout[valueDim.wh];
    +    }
    +
    +    output.pxSign = boundingLength > 0 ? 1 : boundingLength < 0 ? -1 : 0;
    +}
    +
    +function convertToCoordOnAxis(axis, value) {
    +    return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value)));
    +}
    +
    +// Support ['100%', '100%']
    +function prepareSymbolSize(
    +    data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength,
    +    pxSign, symbolPatternSize, opt, output
    +) {
    +    var valueDim = opt.valueDim;
    +    var categoryDim = opt.categoryDim;
    +    var categorySize = Math.abs(layout[categoryDim.wh]);
    +
    +    var symbolSize = data.getItemVisual(dataIndex, 'symbolSize');
    +    if (isArray(symbolSize)) {
    +        symbolSize = symbolSize.slice();
    +    }
    +    else {
    +        if (symbolSize == null) {
    +            symbolSize = '100%';
    +        }
    +        symbolSize = [symbolSize, symbolSize];
    +    }
    +
    +    // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is
    +    // to complicated to calculate real percent value if considering scaled lineWidth.
    +    // So the actual size will bigger than layout size if lineWidth is bigger than zero,
    +    // which can be tolerated in pictorial chart.
    +
    +    symbolSize[categoryDim.index] = parsePercent$1(
    +        symbolSize[categoryDim.index],
    +        categorySize
    +    );
    +    symbolSize[valueDim.index] = parsePercent$1(
    +        symbolSize[valueDim.index],
    +        symbolRepeat ? categorySize : Math.abs(boundingLength)
    +    );
    +
    +    output.symbolSize = symbolSize;
    +
    +    // If x or y is less than zero, show reversed shape.
    +    var symbolScale = output.symbolScale = [
    +        symbolSize[0] / symbolPatternSize,
    +        symbolSize[1] / symbolPatternSize
    +    ];
    +    // Follow convention, 'right' and 'top' is the normal scale.
    +    symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign;
    +}
    +
    +function prepareLineWidth(itemModel, symbolScale, rotation, opt, output) {
    +    // In symbols are drawn with scale, so do not need to care about the case that width
    +    // or height are too small. But symbol use strokeNoScale, where acture lineWidth should
    +    // be calculated.
    +    var valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY$1) || 0;
    +
    +    if (valueLineWidth) {
    +        pathForLineWidth.attr({
    +            scale: symbolScale.slice(),
    +            rotation: rotation
    +        });
    +        pathForLineWidth.updateTransform();
    +        valueLineWidth /= pathForLineWidth.getLineScale();
    +        valueLineWidth *= symbolScale[opt.valueDim.index];
    +    }
    +
    +    output.valueLineWidth = valueLineWidth;
    +}
    +
    +function prepareLayoutInfo(
    +    itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset,
    +    symbolPosition, valueLineWidth, boundingLength, repeatCutLength, opt, output
    +) {
    +    var categoryDim = opt.categoryDim;
    +    var valueDim = opt.valueDim;
    +    var pxSign = output.pxSign;
    +
    +    var unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0);
    +    var pathLen = unitLength;
    +
    +    // Note: rotation will not effect the layout of symbols, because user may
    +    // want symbols to rotate on its center, which should not be translated
    +    // when rotating.
    +
    +    if (symbolRepeat) {
    +        var absBoundingLength = Math.abs(boundingLength);
    +
    +        var symbolMargin = retrieve(itemModel.get('symbolMargin'), '15%') + '';
    +        var hasEndGap = false;
    +        if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) {
    +            hasEndGap = true;
    +            symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1);
    +        }
    +        symbolMargin = parsePercent$1(symbolMargin, symbolSize[valueDim.index]);
    +
    +        var uLenWithMargin = Math.max(unitLength + symbolMargin * 2, 0);
    +
    +        // When symbol margin is less than 0, margin at both ends will be subtracted
    +        // to ensure that all of the symbols will not be overflow the given area.
    +        var endFix = hasEndGap ? 0 : symbolMargin * 2;
    +
    +        // Both final repeatTimes and final symbolMargin area calculated based on
    +        // boundingLength.
    +        var repeatSpecified = isNumeric(symbolRepeat);
    +        var repeatTimes = repeatSpecified
    +            ? symbolRepeat
    +            : toIntTimes((absBoundingLength + endFix) / uLenWithMargin);
    +
    +        // Adjust calculate margin, to ensure each symbol is displayed
    +        // entirely in the given layout area.
    +        var mDiff = absBoundingLength - repeatTimes * unitLength;
    +        symbolMargin = mDiff / 2 / (hasEndGap ? repeatTimes : repeatTimes - 1);
    +        uLenWithMargin = unitLength + symbolMargin * 2;
    +        endFix = hasEndGap ? 0 : symbolMargin * 2;
    +
    +        // Update repeatTimes when not all symbol will be shown.
    +        if (!repeatSpecified && symbolRepeat !== 'fixed') {
    +            repeatTimes = repeatCutLength
    +                ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin)
    +                : 0;
    +        }
    +
    +        pathLen = repeatTimes * uLenWithMargin - endFix;
    +        output.repeatTimes = repeatTimes;
    +        output.symbolMargin = symbolMargin;
    +    }
    +
    +    var sizeFix = pxSign * (pathLen / 2);
    +    var pathPosition = output.pathPosition = [];
    +    pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2;
    +    pathPosition[valueDim.index] = symbolPosition === 'start'
    +        ? sizeFix
    +        : symbolPosition === 'end'
    +        ? boundingLength - sizeFix
    +        : boundingLength / 2; // 'center'
    +    if (symbolOffset) {
    +        pathPosition[0] += symbolOffset[0];
    +        pathPosition[1] += symbolOffset[1];
    +    }
    +
    +    var bundlePosition = output.bundlePosition = [];
    +    bundlePosition[categoryDim.index] = layout[categoryDim.xy];
    +    bundlePosition[valueDim.index] = layout[valueDim.xy];
    +
    +    var barRectShape = output.barRectShape = extend({}, layout);
    +    barRectShape[valueDim.wh] = pxSign * Math.max(
    +        Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix)
    +    );
    +    barRectShape[categoryDim.wh] = layout[categoryDim.wh];
    +
    +    var clipShape = output.clipShape = {};
    +    // Consider that symbol may be overflow layout rect.
    +    clipShape[categoryDim.xy] = -layout[categoryDim.xy];
    +    clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh];
    +    clipShape[valueDim.xy] = 0;
    +    clipShape[valueDim.wh] = layout[valueDim.wh];
    +}
    +
    +function createPath(symbolMeta) {
    +    var symbolPatternSize = symbolMeta.symbolPatternSize;
    +    var path = createSymbol(
    +        // Consider texture img, make a big size.
    +        symbolMeta.symbolType,
    +        -symbolPatternSize / 2,
    +        -symbolPatternSize / 2,
    +        symbolPatternSize,
    +        symbolPatternSize,
    +        symbolMeta.color
    +    );
    +    path.attr({
    +        culling: true
    +    });
    +    path.type !== 'image' && path.setStyle({
    +        strokeNoScale: true
    +    });
    +
    +    return path;
    +}
    +
    +function createOrUpdateRepeatSymbols(bar, opt, symbolMeta, isUpdate) {
    +    var bundle = bar.__pictorialBundle;
    +    var symbolSize = symbolMeta.symbolSize;
    +    var valueLineWidth = symbolMeta.valueLineWidth;
    +    var pathPosition = symbolMeta.pathPosition;
    +    var valueDim = opt.valueDim;
    +    var repeatTimes = symbolMeta.repeatTimes || 0;
    +
    +    var index = 0;
    +    var unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2;
    +
    +    eachPath(bar, function (path) {
    +        path.__pictorialAnimationIndex = index;
    +        path.__pictorialRepeatTimes = repeatTimes;
    +        if (index < repeatTimes) {
    +            updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate);
    +        }
    +        else {
    +            updateAttr(path, null, {scale: [0, 0]}, symbolMeta, isUpdate, function () {
    +                bundle.remove(path);
    +            });
    +        }
    +
    +        updateHoverAnimation(path, symbolMeta);
    +
    +        index++;
    +    });
    +
    +    for (; index < repeatTimes; index++) {
    +        var path = createPath(symbolMeta);
    +        path.__pictorialAnimationIndex = index;
    +        path.__pictorialRepeatTimes = repeatTimes;
    +        bundle.add(path);
    +
    +        var target = makeTarget(index);
    +
    +        updateAttr(
    +            path,
    +            {
    +                position: target.position,
    +                scale: [0, 0]
    +            },
    +            {
    +                scale: target.scale,
    +                rotation: target.rotation
    +            },
    +            symbolMeta,
    +            isUpdate
    +        );
    +
    +        // FIXME
    +        // If all emphasis/normal through action.
    +        path
    +            .on('mouseover', onMouseOver)
    +            .on('mouseout', onMouseOut);
    +
    +        updateHoverAnimation(path, symbolMeta);
    +    }
    +
    +    function makeTarget(index) {
    +        var position = pathPosition.slice();
    +        // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index
    +        // Otherwise: i = index;
    +        var pxSign = symbolMeta.pxSign;
    +        var i = index;
    +        if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) {
    +            i = repeatTimes - 1 - index;
    +        }
    +        position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index];
    +
    +        return {
    +            position: position,
    +            scale: symbolMeta.symbolScale.slice(),
    +            rotation: symbolMeta.rotation
    +        };
    +    }
    +
    +    function onMouseOver() {
    +        eachPath(bar, function (path) {
    +            path.trigger('emphasis');
    +        });
    +    }
    +
    +    function onMouseOut() {
    +        eachPath(bar, function (path) {
    +            path.trigger('normal');
    +        });
    +    }
    +}
    +
    +function createOrUpdateSingleSymbol(bar, opt, symbolMeta, isUpdate) {
    +    var bundle = bar.__pictorialBundle;
    +    var mainPath = bar.__pictorialMainPath;
    +
    +    if (!mainPath) {
    +        mainPath = bar.__pictorialMainPath = createPath(symbolMeta);
    +        bundle.add(mainPath);
    +
    +        updateAttr(
    +            mainPath,
    +            {
    +                position: symbolMeta.pathPosition.slice(),
    +                scale: [0, 0],
    +                rotation: symbolMeta.rotation
    +            },
    +            {
    +                scale: symbolMeta.symbolScale.slice()
    +            },
    +            symbolMeta,
    +            isUpdate
    +        );
    +
    +        mainPath
    +            .on('mouseover', onMouseOver)
    +            .on('mouseout', onMouseOut);
    +    }
    +    else {
    +        updateAttr(
    +            mainPath,
    +            null,
    +            {
    +                position: symbolMeta.pathPosition.slice(),
    +                scale: symbolMeta.symbolScale.slice(),
    +                rotation: symbolMeta.rotation
    +            },
    +            symbolMeta,
    +            isUpdate
    +        );
    +    }
    +
    +    updateHoverAnimation(mainPath, symbolMeta);
    +
    +    function onMouseOver() {
    +        this.trigger('emphasis');
    +    }
    +
    +    function onMouseOut() {
    +        this.trigger('normal');
    +    }
    +}
    +
    +// bar rect is used for label.
    +function createOrUpdateBarRect(bar, symbolMeta, isUpdate) {
    +    var rectShape = extend({}, symbolMeta.barRectShape);
    +
    +    var barRect = bar.__pictorialBarRect;
    +    if (!barRect) {
    +        barRect = bar.__pictorialBarRect = new Rect({
    +            z2: 2,
    +            shape: rectShape,
    +            silent: true,
    +            style: {
    +                stroke: 'transparent',
    +                fill: 'transparent',
    +                lineWidth: 0
    +            }
    +        });
    +
    +        bar.add(barRect);
    +    }
    +    else {
    +        updateAttr(barRect, null, {shape: rectShape}, symbolMeta, isUpdate);
    +    }
    +}
    +
    +function createOrUpdateClip(bar, opt, symbolMeta, isUpdate) {
    +    // If not clip, symbol will be remove and rebuilt.
    +    if (symbolMeta.symbolClip) {
    +        var clipPath = bar.__pictorialClipPath;
    +        var clipShape = extend({}, symbolMeta.clipShape);
    +        var valueDim = opt.valueDim;
    +        var animationModel = symbolMeta.animationModel;
    +        var dataIndex = symbolMeta.dataIndex;
    +
    +        if (clipPath) {
    +            updateProps(
    +                clipPath, {shape: clipShape}, animationModel, dataIndex
    +            );
    +        }
    +        else {
    +            clipShape[valueDim.wh] = 0;
    +            clipPath = new Rect({shape: clipShape});
    +            bar.__pictorialBundle.setClipPath(clipPath);
    +            bar.__pictorialClipPath = clipPath;
    +
    +            var target = {};
    +            target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];
    +
    +            graphic[isUpdate ? 'updateProps' : 'initProps'](
    +                clipPath, {shape: target}, animationModel, dataIndex
    +            );
    +        }
    +    }
    +}
    +
    +function getItemModel(data, dataIndex) {
    +    var itemModel = data.getItemModel(dataIndex);
    +    itemModel.getAnimationDelayParams = getAnimationDelayParams;
    +    itemModel.isAnimationEnabled = isAnimationEnabled;
    +    return itemModel;
    +}
    +
    +function getAnimationDelayParams(path) {
    +    // The order is the same as the z-order, see `symbolRepeatDiretion`.
    +    return {
    +        index: path.__pictorialAnimationIndex,
    +        count: path.__pictorialRepeatTimes
    +    };
    +}
    +
    +function isAnimationEnabled() {
    +    // `animation` prop can be set on itemModel in pictorial bar chart.
    +    return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation');
    +}
    +
    +function updateHoverAnimation(path, symbolMeta) {
    +    path.off('emphasis').off('normal');
    +
    +    var scale = symbolMeta.symbolScale.slice();
    +
    +    symbolMeta.hoverAnimation && path
    +        .on('emphasis', function() {
    +            this.animateTo({
    +                scale: [scale[0] * 1.1, scale[1] * 1.1]
    +            }, 400, 'elasticOut');
    +        })
    +        .on('normal', function() {
    +            this.animateTo({
    +                scale: scale.slice()
    +            }, 400, 'elasticOut');
    +        });
    +}
    +
    +function createBar(data, opt, symbolMeta, isUpdate) {
    +    // bar is the main element for each data.
    +    var bar = new Group();
    +    // bundle is used for location and clip.
    +    var bundle = new Group();
    +    bar.add(bundle);
    +    bar.__pictorialBundle = bundle;
    +    bundle.attr('position', symbolMeta.bundlePosition.slice());
    +
    +    if (symbolMeta.symbolRepeat) {
    +        createOrUpdateRepeatSymbols(bar, opt, symbolMeta);
    +    }
    +    else {
    +        createOrUpdateSingleSymbol(bar, opt, symbolMeta);
    +    }
    +
    +    createOrUpdateBarRect(bar, symbolMeta, isUpdate);
    +
    +    createOrUpdateClip(bar, opt, symbolMeta, isUpdate);
    +
    +    bar.__pictorialShapeStr = getShapeStr(data, symbolMeta);
    +    bar.__pictorialSymbolMeta = symbolMeta;
    +
    +    return bar;
    +}
    +
    +function updateBar(bar, opt, symbolMeta) {
    +    var animationModel = symbolMeta.animationModel;
    +    var dataIndex = symbolMeta.dataIndex;
    +    var bundle = bar.__pictorialBundle;
    +
    +    updateProps(
    +        bundle, {position: symbolMeta.bundlePosition.slice()}, animationModel, dataIndex
    +    );
    +
    +    if (symbolMeta.symbolRepeat) {
    +        createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true);
    +    }
    +    else {
    +        createOrUpdateSingleSymbol(bar, opt, symbolMeta, true);
    +    }
    +
    +    createOrUpdateBarRect(bar, symbolMeta, true);
    +
    +    createOrUpdateClip(bar, opt, symbolMeta, true);
    +}
    +
    +function removeBar(data, dataIndex, animationModel, bar) {
    +    // Not show text when animating
    +    var labelRect = bar.__pictorialBarRect;
    +    labelRect && (labelRect.style.text = null);
    +
    +    var pathes = [];
    +    eachPath(bar, function (path) {
    +        pathes.push(path);
    +    });
    +    bar.__pictorialMainPath && pathes.push(bar.__pictorialMainPath);
    +
    +    // I do not find proper remove animation for clip yet.
    +    bar.__pictorialClipPath && (animationModel = null);
    +
    +    each$1(pathes, function (path) {
    +        updateProps(
    +            path, {scale: [0, 0]}, animationModel, dataIndex,
    +            function () {
    +                bar.parent && bar.parent.remove(bar);
    +            }
    +        );
    +    });
    +
    +    data.setItemGraphicEl(dataIndex, null);
    +}
    +
    +function getShapeStr(data, symbolMeta) {
    +    return [
    +        data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none',
    +        !!symbolMeta.symbolRepeat,
    +        !!symbolMeta.symbolClip
    +    ].join(':');
    +}
    +
    +function eachPath(bar, cb, context) {
    +    // Do not use Group#eachChild, because it do not support remove.
    +    each$1(bar.__pictorialBundle.children(), function (el) {
    +        el !== bar.__pictorialBarRect && cb.call(context, el);
    +    });
    +}
    +
    +function updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) {
    +    immediateAttrs && el.attr(immediateAttrs);
    +    // when symbolCip used, only clip path has init animation, otherwise it would be weird effect.
    +    if (symbolMeta.symbolClip && !isUpdate) {
    +        animationAttrs && el.attr(animationAttrs);
    +    }
    +    else {
    +        animationAttrs && graphic[isUpdate ? 'updateProps' : 'initProps'](
    +            el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb
    +        );
    +    }
    +}
    +
    +function updateCommon$1(bar, opt, symbolMeta) {
    +    var color = symbolMeta.color;
    +    var dataIndex = symbolMeta.dataIndex;
    +    var itemModel = symbolMeta.itemModel;
    +    // Color must be excluded.
    +    // Because symbol provide setColor individually to set fill and stroke
    +    var normalStyle = itemModel.getModel('itemStyle.normal').getItemStyle(['color']);
    +    var hoverStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();
    +    var cursorStyle = itemModel.getShallow('cursor');
    +
    +    eachPath(bar, function (path) {
    +        // PENDING setColor should be before setStyle!!!
    +        path.setColor(color);
    +        path.setStyle(defaults(
    +            {
    +                fill: color,
    +                opacity: symbolMeta.opacity
    +            },
    +            normalStyle
    +        ));
    +        setHoverStyle(path, hoverStyle);
    +
    +        cursorStyle && (path.cursor = cursorStyle);
    +        path.z2 = symbolMeta.z2;
    +    });
    +
    +    var barRectHoverStyle = {};
    +    var barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)];
    +    var barRect = bar.__pictorialBarRect;
    +
    +    setLabel(
    +        barRect.style, barRectHoverStyle, itemModel,
    +        color, opt.seriesModel, dataIndex, barPositionOutside
    +    );
    +
    +    setHoverStyle(barRect, barRectHoverStyle);
    +}
    +
    +function toIntTimes(times) {
    +    var roundedTimes = Math.round(times);
    +    // Escapse accurate error
    +    return Math.abs(times - roundedTimes) < 1e-4
    +        ? roundedTimes
    +        : Math.ceil(times);
    +}
    +
    +// In case developer forget to include grid component
    +registerLayout(curry(
    +    barLayoutGrid, 'pictorialBar'
    +));
    +registerVisual(curry(
    +    visualSymbol, 'pictorialBar', 'roundRect', null
    +));
    +
    +/**
    + * @constructor  module:echarts/coord/single/SingleAxis
    + * @extends {module:echarts/coord/Axis}
    + * @param {string} dim
    + * @param {*} scale
    + * @param {Array.<number>} coordExtent
    + * @param {string} axisType
    + * @param {string} position
    + */
    +var SingleAxis = function (dim, scale, coordExtent, axisType, position) {
    +
    +    Axis.call(this, dim, scale, coordExtent);
    +
    +    /**
    +     * Axis type
    +     * - 'category'
    +     * - 'value'
    +     * - 'time'
    +     * - 'log'
    +     * @type {string}
    +     */
    +    this.type = axisType || 'value';
    +
    +    /**
    +     * Axis position
    +     *  - 'top'
    +     *  - 'bottom'
    +     *  - 'left'
    +     *  - 'right'
    +     *  @type {string}
    +     */
    +    this.position = position || 'bottom';
    +
    +    /**
    +     * Axis orient
    +     *  - 'horizontal'
    +     *  - 'vertical'
    +     * @type {[type]}
    +     */
    +    this.orient = null;
    +
    +    /**
    +     * @type {number}
    +     */
    +    this._labelInterval = null;
    +
    +};
    +
    +SingleAxis.prototype = {
    +
    +    constructor: SingleAxis,
    +
    +    /**
    +     * Axis model
    +     * @type {module:echarts/coord/single/AxisModel}
    +     */
    +    model: null,
    +
    +    /**
    +     * Judge the orient of the axis.
    +     * @return {boolean}
    +     */
    +    isHorizontal: function () {
    +        var position = this.position;
    +        return position === 'top' || position === 'bottom';
    +
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    pointToData: function (point, clamp) {
    +        return this.coordinateSystem.pointToData(point, clamp)[0];
    +    },
    +
    +    /**
    +     * Convert the local coord(processed by dataToCoord())
    +     * to global coord(concrete pixel coord).
    +     * designated by module:echarts/coord/single/Single.
    +     * @type {Function}
    +     */
    +    toGlobalCoord: null,
    +
    +    /**
    +     * Convert the global coord to local coord.
    +     * designated by module:echarts/coord/single/Single.
    +     * @type {Function}
    +     */
    +    toLocalCoord: null
    +
    +};
    +
    +inherits(SingleAxis, Axis);
    +
    +/**
    + * Single coordinates system.
    + */
    +
    +/**
    + * Create a single coordinates system.
    + *
    + * @param {module:echarts/coord/single/AxisModel} axisModel
    + * @param {module:echarts/model/Global} ecModel
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function Single(axisModel, ecModel, api) {
    +
    +    /**
    +     * @type {string}
    +     * @readOnly
    +     */
    +    this.dimension = 'single';
    +
    +    /**
    +     * Add it just for draw tooltip.
    +     *
    +     * @type {Array.<string>}
    +     * @readOnly
    +     */
    +    this.dimensions = ['single'];
    +
    +    /**
    +     * @private
    +     * @type {module:echarts/coord/single/SingleAxis}.
    +     */
    +    this._axis = null;
    +
    +    /**
    +     * @private
    +     * @type {module:zrender/core/BoundingRect}
    +     */
    +    this._rect;
    +
    +    this._init(axisModel, ecModel, api);
    +
    +    /**
    +     * @type {module:echarts/coord/single/AxisModel}
    +     */
    +    this.model = axisModel;
    +}
    +
    +Single.prototype = {
    +
    +    type: 'singleAxis',
    +
    +    axisPointerEnabled: true,
    +
    +    constructor: Single,
    +
    +    /**
    +     * Initialize single coordinate system.
    +     *
    +     * @param  {module:echarts/coord/single/AxisModel} axisModel
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     * @private
    +     */
    +    _init: function (axisModel, ecModel, api) {
    +
    +        var dim = this.dimension;
    +
    +        var axis = new SingleAxis(
    +            dim,
    +            createScaleByModel(axisModel),
    +            [0, 0],
    +            axisModel.get('type'),
    +            axisModel.get('position')
    +        );
    +
    +        var isCategory = axis.type === 'category';
    +        axis.onBand = isCategory && axisModel.get('boundaryGap');
    +        axis.inverse = axisModel.get('inverse');
    +        axis.orient = axisModel.get('orient');
    +
    +        axisModel.axis = axis;
    +        axis.model = axisModel;
    +        axis.coordinateSystem = this;
    +        this._axis = axis;
    +    },
    +
    +    /**
    +     * Update axis scale after data processed
    +     * @param  {module:echarts/model/Global} ecModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    update: function (ecModel, api) {
    +        ecModel.eachSeries(function (seriesModel) {
    +            if (seriesModel.coordinateSystem === this) {
    +                var data = seriesModel.getData();
    +                var dim = this.dimension;
    +                this._axis.scale.unionExtentFromData(
    +                    data, seriesModel.coordDimToDataDim(dim)
    +                );
    +                niceScaleExtent(this._axis.scale, this._axis.model);
    +            }
    +        }, this);
    +    },
    +
    +    /**
    +     * Resize the single coordinate system.
    +     *
    +     * @param  {module:echarts/coord/single/AxisModel} axisModel
    +     * @param  {module:echarts/ExtensionAPI} api
    +     */
    +    resize: function (axisModel, api) {
    +        this._rect = getLayoutRect(
    +            {
    +                left: axisModel.get('left'),
    +                top: axisModel.get('top'),
    +                right: axisModel.get('right'),
    +                bottom: axisModel.get('bottom'),
    +                width: axisModel.get('width'),
    +                height: axisModel.get('height')
    +            },
    +            {
    +                width: api.getWidth(),
    +                height: api.getHeight()
    +            }
    +        );
    +
    +        this._adjustAxis();
    +    },
    +
    +    /**
    +     * @return {module:zrender/core/BoundingRect}
    +     */
    +    getRect: function () {
    +        return this._rect;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _adjustAxis: function () {
    +
    +        var rect = this._rect;
    +        var axis = this._axis;
    +
    +        var isHorizontal = axis.isHorizontal();
    +        var extent = isHorizontal ? [0, rect.width] : [0, rect.height];
    +        var idx =  axis.reverse ? 1 : 0;
    +
    +        axis.setExtent(extent[idx], extent[1 - idx]);
    +
    +        this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);
    +
    +    },
    +
    +    /**
    +     * @param  {module:echarts/coord/single/SingleAxis} axis
    +     * @param  {number} coordBase
    +     */
    +    _updateAxisTransform: function (axis, coordBase) {
    +
    +        var axisExtent = axis.getExtent();
    +        var extentSum = axisExtent[0] + axisExtent[1];
    +        var isHorizontal = axis.isHorizontal();
    +
    +        axis.toGlobalCoord = isHorizontal
    +            ? function (coord) {
    +                return coord + coordBase;
    +            }
    +            : function (coord) {
    +                return extentSum - coord + coordBase;
    +            };
    +
    +        axis.toLocalCoord = isHorizontal
    +            ? function (coord) {
    +                return coord - coordBase;
    +            }
    +            : function (coord) {
    +                return extentSum - coord + coordBase;
    +            };
    +    },
    +
    +    /**
    +     * Get axis.
    +     *
    +     * @return {module:echarts/coord/single/SingleAxis}
    +     */
    +    getAxis: function () {
    +        return this._axis;
    +    },
    +
    +    /**
    +     * Get axis, add it just for draw tooltip.
    +     *
    +     * @return {[type]} [description]
    +     */
    +    getBaseAxis: function () {
    +        return this._axis;
    +    },
    +
    +    /**
    +     * @return {Array.<module:echarts/coord/Axis>}
    +     */
    +    getAxes: function () {
    +        return [this._axis];
    +    },
    +
    +    /**
    +     * @return {Object} {baseAxes: [], otherAxes: []}
    +     */
    +    getTooltipAxes: function () {
    +        return {baseAxes: [this.getAxis()]};
    +    },
    +
    +    /**
    +     * If contain point.
    +     *
    +     * @param  {Array.<number>} point
    +     * @return {boolean}
    +     */
    +    containPoint: function (point) {
    +        var rect = this.getRect();
    +        var axis = this.getAxis();
    +        var orient = axis.orient;
    +        if (orient === 'horizontal') {
    +            return axis.contain(axis.toLocalCoord(point[0]))
    +            && (point[1] >= rect.y && point[1] <= (rect.y + rect.height));
    +        }
    +        else {
    +            return axis.contain(axis.toLocalCoord(point[1]))
    +            && (point[0] >= rect.y && point[0] <= (rect.y + rect.height));
    +        }
    +    },
    +
    +    /**
    +     * @param {Array.<number>} point
    +     * @return {Array.<number>}
    +     */
    +    pointToData: function (point) {
    +        var axis = this.getAxis();
    +        return [axis.coordToData(axis.toLocalCoord(
    +            point[axis.orient === 'horizontal' ? 0 : 1]
    +        ))];
    +    },
    +
    +    /**
    +     * Convert the series data to concrete point.
    +     *
    +     * @param  {number|Array.<number>} val
    +     * @return {Array.<number>}
    +     */
    +    dataToPoint: function (val) {
    +        var axis = this.getAxis();
    +        var rect = this.getRect();
    +        var pt = [];
    +        var idx = axis.orient === 'horizontal' ? 0 : 1;
    +
    +        if (val instanceof Array) {
    +            val = val[0];
    +        }
    +
    +        pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val));
    +        pt[1 - idx] = idx === 0 ? (rect.y + rect.height / 2) : (rect.x + rect.width / 2);
    +        return pt;
    +    }
    +
    +};
    +
    +/**
    + * Single coordinate system creator.
    + */
    +
    +/**
    + * Create single coordinate system and inject it into seriesModel.
    + *
    + * @param {module:echarts/model/Global} ecModel
    + * @param {module:echarts/ExtensionAPI} api
    + * @return {Array.<module:echarts/coord/single/Single>}
    + */
    +function create$3(ecModel, api) {
    +    var singles = [];
    +
    +    ecModel.eachComponent('singleAxis', function(axisModel, idx) {
    +
    +        var single = new Single(axisModel, ecModel, api);
    +        single.name = 'single_' + idx;
    +        single.resize(axisModel, api);
    +        axisModel.coordinateSystem = single;
    +        singles.push(single);
    +
    +    });
    +
    +    ecModel.eachSeries(function (seriesModel) {
    +        if (seriesModel.get('coordinateSystem') === 'singleAxis') {
    +            var singleAxisModel = ecModel.queryComponents({
    +                mainType: 'singleAxis',
    +                index: seriesModel.get('singleAxisIndex'),
    +                id: seriesModel.get('singleAxisId')
    +            })[0];
    +            seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;
    +        }
    +    });
    +
    +    return singles;
    +}
    +
    +CoordinateSystemManager.register('single', {
    +    create: create$3,
    +    dimensions: Single.prototype.dimensions
    +});
    +
    +/**
    + * @param {Object} opt {labelInside}
    + * @return {Object} {
    + *  position, rotation, labelDirection, labelOffset,
    + *  tickDirection, labelRotate, labelInterval, z2
    + * }
    + */
    +function layout$1 (axisModel, opt) {
    +    opt = opt || {};
    +    var single = axisModel.coordinateSystem;
    +    var axis = axisModel.axis;
    +    var layout = {};
    +
    +    var axisPosition = axis.position;
    +    var orient = axis.orient;
    +
    +    var rect = single.getRect();
    +    var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];
    +
    +    var positionMap = {
    +        horizontal: {top: rectBound[2], bottom: rectBound[3]},
    +        vertical: {left: rectBound[0], right: rectBound[1]}
    +    };
    +
    +    layout.position = [
    +        orient === 'vertical'
    +            ? positionMap.vertical[axisPosition]
    +            : rectBound[0],
    +        orient === 'horizontal'
    +            ? positionMap.horizontal[axisPosition]
    +            : rectBound[3]
    +    ];
    +
    +    var r = {horizontal: 0, vertical: 1};
    +    layout.rotation = Math.PI / 2 * r[orient];
    +
    +    var directionMap = {top: -1, bottom: 1, right: 1, left: -1};
    +
    +    layout.labelDirection = layout.tickDirection
    +        = layout.nameDirection
    +        = directionMap[axisPosition];
    +
    +    if (axisModel.get('axisTick.inside')) {
    +        layout.tickDirection = -layout.tickDirection;
    +    }
    +
    +    if (retrieve(opt.labelInside, axisModel.get('axisLabel.inside'))) {
    +        layout.labelDirection = -layout.labelDirection;
    +    }
    +
    +    var labelRotation = opt.rotate;
    +    labelRotation == null && (labelRotation = axisModel.get('axisLabel.rotate'));
    +    layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;
    +
    +    layout.labelInterval = axis.getLabelInterval();
    +
    +    layout.z2 = 1;
    +
    +    return layout;
    +}
    +
    +var getInterval$2 = AxisBuilder.getInterval;
    +var ifIgnoreOnTick$2 = AxisBuilder.ifIgnoreOnTick;
    +
    +var axisBuilderAttrs$2 = [
    +    'axisLine', 'axisTickLabel', 'axisName'
    +];
    +
    +var selfBuilderAttr = 'splitLine';
    +
    +var SingleAxisView = AxisView.extend({
    +
    +    type: 'singleAxis',
    +
    +    axisPointerClass: 'SingleAxisPointer',
    +
    +    render: function (axisModel, ecModel, api, payload) {
    +
    +        var group = this.group;
    +
    +        group.removeAll();
    +
    +        var layout =  layout$1(axisModel);
    +
    +        var axisBuilder = new AxisBuilder(axisModel, layout);
    +
    +        each$1(axisBuilderAttrs$2, axisBuilder.add, axisBuilder);
    +
    +        group.add(axisBuilder.getGroup());
    +
    +        if (axisModel.get(selfBuilderAttr + '.show')) {
    +            this['_' + selfBuilderAttr](axisModel, layout.labelInterval);
    +        }
    +
    +        SingleAxisView.superCall(this, 'render', axisModel, ecModel, api, payload);
    +    },
    +
    +    _splitLine: function(axisModel, labelInterval) {
    +        var axis = axisModel.axis;
    +
    +        if (axis.scale.isBlank()) {
    +            return;
    +        }
    +
    +        var splitLineModel = axisModel.getModel('splitLine');
    +        var lineStyleModel = splitLineModel.getModel('lineStyle');
    +        var lineWidth = lineStyleModel.get('width');
    +        var lineColors = lineStyleModel.get('color');
    +        var lineInterval = getInterval$2(splitLineModel, labelInterval);
    +
    +        lineColors = lineColors instanceof Array ? lineColors : [lineColors];
    +
    +        var gridRect = axisModel.coordinateSystem.getRect();
    +        var isHorizontal = axis.isHorizontal();
    +
    +        var splitLines = [];
    +        var lineCount = 0;
    +
    +        var ticksCoords = axis.getTicksCoords();
    +
    +        var p1 = [];
    +        var p2 = [];
    +
    +        var showMinLabel = axisModel.get('axisLabel.showMinLabel');
    +        var showMaxLabel = axisModel.get('axisLabel.showMaxLabel');
    +
    +        for (var i = 0; i < ticksCoords.length; ++i) {
    +            if (ifIgnoreOnTick$2(
    +                axis, i, lineInterval, ticksCoords.length,
    +                showMinLabel, showMaxLabel
    +            )) {
    +                continue;
    +            }
    +            var tickCoord = axis.toGlobalCoord(ticksCoords[i]);
    +            if (isHorizontal) {
    +                p1[0] = tickCoord;
    +                p1[1] = gridRect.y;
    +                p2[0] = tickCoord;
    +                p2[1] = gridRect.y + gridRect.height;
    +            }
    +            else {
    +                p1[0] = gridRect.x;
    +                p1[1] = tickCoord;
    +                p2[0] = gridRect.x + gridRect.width;
    +                p2[1] = tickCoord;
    +            }
    +            var colorIndex = (lineCount++) % lineColors.length;
    +            splitLines[colorIndex] = splitLines[colorIndex] || [];
    +            splitLines[colorIndex].push(new Line(
    +                subPixelOptimizeLine({
    +                    shape: {
    +                        x1: p1[0],
    +                        y1: p1[1],
    +                        x2: p2[0],
    +                        y2: p2[1]
    +                    },
    +                    style: {
    +                        lineWidth: lineWidth
    +                    },
    +                    silent: true
    +                })));
    +        }
    +
    +        for (var i = 0; i < splitLines.length; ++i) {
    +            this.group.add(mergePath(splitLines[i], {
    +                style: {
    +                    stroke: lineColors[i % lineColors.length],
    +                    lineDash: lineStyleModel.getLineDash(lineWidth),
    +                    lineWidth: lineWidth
    +                },
    +                silent: true
    +            }));
    +        }
    +    }
    +});
    +
    +var AxisModel$4 = ComponentModel.extend({
    +
    +    type: 'singleAxis',
    +
    +    layoutMode: 'box',
    +
    +    /**
    +     * @type {module:echarts/coord/single/SingleAxis}
    +     */
    +    axis: null,
    +
    +    /**
    +     * @type {module:echarts/coord/single/Single}
    +     */
    +    coordinateSystem: null,
    +
    +    /**
    +     * @override
    +     */
    +    getCoordSysModel: function () {
    +        return this;
    +    }
    +
    +});
    +
    +var defaultOption$2 = {
    +
    +    left: '5%',
    +    top: '5%',
    +    right: '5%',
    +    bottom: '5%',
    +
    +    type: 'value',
    +
    +    position: 'bottom',
    +
    +    orient: 'horizontal',
    +
    +    axisLine: {
    +        show: true,
    +        lineStyle: {
    +            width: 2,
    +            type: 'solid'
    +        }
    +    },
    +
    +    // Single coordinate system and single axis is the,
    +    // which is used as the parent tooltip model.
    +    // same model, so we set default tooltip show as true.
    +    tooltip: {
    +        show: true
    +    },
    +
    +    axisTick: {
    +        show: true,
    +        length: 6,
    +        lineStyle: {
    +            width: 2
    +        }
    +    },
    +
    +    axisLabel: {
    +        show: true,
    +        interval: 'auto'
    +    },
    +
    +    splitLine: {
    +        show: true,
    +        lineStyle: {
    +            type: 'dashed',
    +            opacity: 0.2
    +        }
    +    }
    +};
    +
    +function getAxisType$2(axisName, option) {
    +    return option.type || (option.data ? 'category' : 'value');
    +}
    +
    +merge(AxisModel$4.prototype, axisModelCommonMixin);
    +
    +axisModelCreator('single', AxisModel$4, getAxisType$2, defaultOption$2);
    +
    +/**
    + * @param {Object} finder contains {seriesIndex, dataIndex, dataIndexInside}
    + * @param {module:echarts/model/Global} ecModel
    + * @return {Object} {point: [x, y], el: ...} point Will not be null.
    + */
    +var findPointFromSeries = function (finder, ecModel) {
    +    var point = [];
    +    var seriesIndex = finder.seriesIndex;
    +    var seriesModel;
    +    if (seriesIndex == null || !(
    +        seriesModel = ecModel.getSeriesByIndex(seriesIndex)
    +    )) {
    +        return {point: []};
    +    }
    +
    +    var data = seriesModel.getData();
    +    var dataIndex = queryDataIndex(data, finder);
    +    if (dataIndex == null || isArray(dataIndex)) {
    +        return {point: []};
    +    }
    +
    +    var el = data.getItemGraphicEl(dataIndex);
    +    var coordSys = seriesModel.coordinateSystem;
    +
    +    if (seriesModel.getTooltipPosition) {
    +        point = seriesModel.getTooltipPosition(dataIndex) || [];
    +    }
    +    else if (coordSys && coordSys.dataToPoint) {
    +        point = coordSys.dataToPoint(
    +            data.getValues(
    +                map(coordSys.dimensions, function (dim) {
    +                    return seriesModel.coordDimToDataDim(dim)[0];
    +                }), dataIndex, true
    +            )
    +        ) || [];
    +    }
    +    else if (el) {
    +        // Use graphic bounding rect
    +        var rect = el.getBoundingRect().clone();
    +        rect.applyTransform(el.transform);
    +        point = [
    +            rect.x + rect.width / 2,
    +            rect.y + rect.height / 2
    +        ];
    +    }
    +
    +    return {point: point, el: el};
    +};
    +
    +var each$17 = each$1;
    +var curry$3 = curry;
    +var get$2 = makeGetter();
    +
    +/**
    + * Basic logic: check all axis, if they do not demand show/highlight,
    + * then hide/downplay them.
    + *
    + * @param {Object} coordSysAxesInfo
    + * @param {Object} payload
    + * @param {string} [payload.currTrigger] 'click' | 'mousemove' | 'leave'
    + * @param {Array.<number>} [payload.x] x and y, which are mandatory, specify a point to
    + *              trigger axisPointer and tooltip.
    + * @param {Array.<number>} [payload.y] x and y, which are mandatory, specify a point to
    + *              trigger axisPointer and tooltip.
    + * @param {Object} [payload.seriesIndex] finder, optional, restrict target axes.
    + * @param {Object} [payload.dataIndex] finder, restrict target axes.
    + * @param {Object} [payload.axesInfo] finder, restrict target axes.
    + *        [{
    + *          axisDim: 'x'|'y'|'angle'|...,
    + *          axisIndex: ...,
    + *          value: ...
    + *        }, ...]
    + * @param {Function} [payload.dispatchAction]
    + * @param {Object} [payload.tooltipOption]
    + * @param {Object|Array.<number>|Function} [payload.position] Tooltip position,
    + *        which can be specified in dispatchAction
    + * @param {module:echarts/model/Global} ecModel
    + * @param {module:echarts/ExtensionAPI} api
    + * @return {Object} content of event obj for echarts.connect.
    + */
    +var axisTrigger = function (payload, ecModel, api) {
    +    var currTrigger = payload.currTrigger;
    +    var point = [payload.x, payload.y];
    +    var finder = payload;
    +    var dispatchAction = payload.dispatchAction || bind(api.dispatchAction, api);
    +    var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;
    +
    +    // Pending
    +    // See #6121. But we are not able to reproduce it yet.
    +    if (!coordSysAxesInfo) {
    +        return;
    +    }
    +
    +    if (illegalPoint(point)) {
    +        // Used in the default behavior of `connection`: use the sample seriesIndex
    +        // and dataIndex. And also used in the tooltipView trigger.
    +        point = findPointFromSeries({
    +            seriesIndex: finder.seriesIndex,
    +            // Do not use dataIndexInside from other ec instance.
    +            // FIXME: auto detect it?
    +            dataIndex: finder.dataIndex
    +        }, ecModel).point;
    +    }
    +    var isIllegalPoint = illegalPoint(point);
    +
    +    // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).
    +    // Notice: In this case, it is difficult to get the `point` (which is necessary to show
    +    // tooltip, so if point is not given, we just use the point found by sample seriesIndex
    +    // and dataIndex.
    +    var inputAxesInfo = finder.axesInfo;
    +
    +    var axesInfo = coordSysAxesInfo.axesInfo;
    +    var shouldHide = currTrigger === 'leave' || illegalPoint(point);
    +    var outputFinder = {};
    +
    +    var showValueMap = {};
    +    var dataByCoordSys = {list: [], map: {}};
    +    var updaters = {
    +        showPointer: curry$3(showPointer, showValueMap),
    +        showTooltip: curry$3(showTooltip, dataByCoordSys)
    +    };
    +
    +    // Process for triggered axes.
    +    each$17(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {
    +        // If a point given, it must be contained by the coordinate system.
    +        var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);
    +
    +        each$17(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {
    +            var axis = axisInfo.axis;
    +            var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo);
    +            // If no inputAxesInfo, no axis is restricted.
    +            if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {
    +                var val = inputAxisInfo && inputAxisInfo.value;
    +                if (val == null && !isIllegalPoint) {
    +                    val = axis.pointToData(point);
    +                }
    +                val != null && processOnAxis(axisInfo, val, updaters, false, outputFinder);
    +            }
    +        });
    +    });
    +
    +    // Process for linked axes.
    +    var linkTriggers = {};
    +    each$17(axesInfo, function (tarAxisInfo, tarKey) {
    +        var linkGroup = tarAxisInfo.linkGroup;
    +
    +        // If axis has been triggered in the previous stage, it should not be triggered by link.
    +        if (linkGroup && !showValueMap[tarKey]) {
    +            each$17(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {
    +                var srcValItem = showValueMap[srcKey];
    +                // If srcValItem exist, source axis is triggered, so link to target axis.
    +                if (srcAxisInfo !== tarAxisInfo && srcValItem) {
    +                    var val = srcValItem.value;
    +                    linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(
    +                        val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo)
    +                    )));
    +                    linkTriggers[tarAxisInfo.key] = val;
    +                }
    +            });
    +        }
    +    });
    +    each$17(linkTriggers, function (val, tarKey) {
    +        processOnAxis(axesInfo[tarKey], val, updaters, true, outputFinder);
    +    });
    +
    +    updateModelActually(showValueMap, axesInfo, outputFinder);
    +    dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction);
    +    dispatchHighDownActually(axesInfo, dispatchAction, api);
    +
    +    return outputFinder;
    +};
    +
    +function processOnAxis(axisInfo, newValue, updaters, dontSnap, outputFinder) {
    +    var axis = axisInfo.axis;
    +
    +    if (axis.scale.isBlank() || !axis.containData(newValue)) {
    +        return;
    +    }
    +
    +    if (!axisInfo.involveSeries) {
    +        updaters.showPointer(axisInfo, newValue);
    +        return;
    +    }
    +
    +    // Heavy calculation. So put it after axis.containData checking.
    +    var payloadInfo = buildPayloadsBySeries(newValue, axisInfo);
    +    var payloadBatch = payloadInfo.payloadBatch;
    +    var snapToValue = payloadInfo.snapToValue;
    +
    +    // Fill content of event obj for echarts.connect.
    +    // By defualt use the first involved series data as a sample to connect.
    +    if (payloadBatch[0] && outputFinder.seriesIndex == null) {
    +        extend(outputFinder, payloadBatch[0]);
    +    }
    +
    +    // If no linkSource input, this process is for collecting link
    +    // target, where snap should not be accepted.
    +    if (!dontSnap && axisInfo.snap) {
    +        if (axis.containData(snapToValue) && snapToValue != null) {
    +            newValue = snapToValue;
    +        }
    +    }
    +
    +    updaters.showPointer(axisInfo, newValue, payloadBatch, outputFinder);
    +    // Tooltip should always be snapToValue, otherwise there will be
    +    // incorrect "axis value ~ series value" mapping displayed in tooltip.
    +    updaters.showTooltip(axisInfo, payloadInfo, snapToValue);
    +}
    +
    +function buildPayloadsBySeries(value, axisInfo) {
    +    var axis = axisInfo.axis;
    +    var dim = axis.dim;
    +    var snapToValue = value;
    +    var payloadBatch = [];
    +    var minDist = Number.MAX_VALUE;
    +    var minDiff = -1;
    +
    +    each$17(axisInfo.seriesModels, function (series, idx) {
    +        var dataDim = series.coordDimToDataDim(dim);
    +        var seriesNestestValue;
    +        var dataIndices;
    +
    +        if (series.getAxisTooltipData) {
    +            var result = series.getAxisTooltipData(dataDim, value, axis);
    +            dataIndices = result.dataIndices;
    +            seriesNestestValue = result.nestestValue;
    +        }
    +        else {
    +            dataIndices = series.getData().indicesOfNearest(
    +                dataDim[0],
    +                value,
    +                // Add a threshold to avoid find the wrong dataIndex
    +                // when data length is not same.
    +                false, axis.type === 'category' ? 0.5 : null
    +            );
    +            if (!dataIndices.length) {
    +                return;
    +            }
    +            seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]);
    +        }
    +
    +        if (seriesNestestValue == null || !isFinite(seriesNestestValue)) {
    +            return;
    +        }
    +
    +        var diff = value - seriesNestestValue;
    +        var dist = Math.abs(diff);
    +        // Consider category case
    +        if (dist <= minDist) {
    +            if (dist < minDist || (diff >= 0 && minDiff < 0)) {
    +                minDist = dist;
    +                minDiff = diff;
    +                snapToValue = seriesNestestValue;
    +                payloadBatch.length = 0;
    +            }
    +            each$17(dataIndices, function (dataIndex) {
    +                payloadBatch.push({
    +                    seriesIndex: series.seriesIndex,
    +                    dataIndexInside: dataIndex,
    +                    dataIndex: series.getData().getRawIndex(dataIndex)
    +                });
    +            });
    +        }
    +    });
    +
    +    return {
    +        payloadBatch: payloadBatch,
    +        snapToValue: snapToValue
    +    };
    +}
    +
    +function showPointer(showValueMap, axisInfo, value, payloadBatch) {
    +    showValueMap[axisInfo.key] = {value: value, payloadBatch: payloadBatch};
    +}
    +
    +function showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) {
    +    var payloadBatch = payloadInfo.payloadBatch;
    +    var axis = axisInfo.axis;
    +    var axisModel = axis.model;
    +    var axisPointerModel = axisInfo.axisPointerModel;
    +
    +    // If no data, do not create anything in dataByCoordSys,
    +    // whose length will be used to judge whether dispatch action.
    +    if (!axisInfo.triggerTooltip || !payloadBatch.length) {
    +        return;
    +    }
    +
    +    var coordSysModel = axisInfo.coordSys.model;
    +    var coordSysKey = makeKey(coordSysModel);
    +    var coordSysItem = dataByCoordSys.map[coordSysKey];
    +    if (!coordSysItem) {
    +        coordSysItem = dataByCoordSys.map[coordSysKey] = {
    +            coordSysId: coordSysModel.id,
    +            coordSysIndex: coordSysModel.componentIndex,
    +            coordSysType: coordSysModel.type,
    +            coordSysMainType: coordSysModel.mainType,
    +            dataByAxis: []
    +        };
    +        dataByCoordSys.list.push(coordSysItem);
    +    }
    +
    +    coordSysItem.dataByAxis.push({
    +        axisDim: axis.dim,
    +        axisIndex: axisModel.componentIndex,
    +        axisType: axisModel.type,
    +        axisId: axisModel.id,
    +        value: value,
    +        // Caustion: viewHelper.getValueLabel is actually on "view stage", which
    +        // depends that all models have been updated. So it should not be performed
    +        // here. Considering axisPointerModel used here is volatile, which is hard
    +        // to be retrieve in TooltipView, we prepare parameters here.
    +        valueLabelOpt: {
    +            precision: axisPointerModel.get('label.precision'),
    +            formatter: axisPointerModel.get('label.formatter')
    +        },
    +        seriesDataIndices: payloadBatch.slice()
    +    });
    +}
    +
    +function updateModelActually(showValueMap, axesInfo, outputFinder) {
    +    var outputAxesInfo = outputFinder.axesInfo = [];
    +    // Basic logic: If no 'show' required, 'hide' this axisPointer.
    +    each$17(axesInfo, function (axisInfo, key) {
    +        var option = axisInfo.axisPointerModel.option;
    +        var valItem = showValueMap[key];
    +
    +        if (valItem) {
    +            !axisInfo.useHandle && (option.status = 'show');
    +            option.value = valItem.value;
    +            // For label formatter param and highlight.
    +            option.seriesDataIndices = (valItem.payloadBatch || []).slice();
    +        }
    +        // When always show (e.g., handle used), remain
    +        // original value and status.
    +        else {
    +            // If hide, value still need to be set, consider
    +            // click legend to toggle axis blank.
    +            !axisInfo.useHandle && (option.status = 'hide');
    +        }
    +
    +        // If status is 'hide', should be no info in payload.
    +        option.status === 'show' && outputAxesInfo.push({
    +            axisDim: axisInfo.axis.dim,
    +            axisIndex: axisInfo.axis.model.componentIndex,
    +            value: option.value
    +        });
    +    });
    +}
    +
    +function dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction) {
    +    // Basic logic: If no showTip required, hideTip will be dispatched.
    +    if (illegalPoint(point) || !dataByCoordSys.list.length) {
    +        dispatchAction({type: 'hideTip'});
    +        return;
    +    }
    +
    +    // In most case only one axis (or event one series is used). It is
    +    // convinient to fetch payload.seriesIndex and payload.dataIndex
    +    // dirtectly. So put the first seriesIndex and dataIndex of the first
    +    // axis on the payload.
    +    var sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
    +
    +    dispatchAction({
    +        type: 'showTip',
    +        escapeConnect: true,
    +        x: point[0],
    +        y: point[1],
    +        tooltipOption: payload.tooltipOption,
    +        position: payload.position,
    +        dataIndexInside: sampleItem.dataIndexInside,
    +        dataIndex: sampleItem.dataIndex,
    +        seriesIndex: sampleItem.seriesIndex,
    +        dataByCoordSys: dataByCoordSys.list
    +    });
    +}
    +
    +function dispatchHighDownActually(axesInfo, dispatchAction, api) {
    +    // FIXME
    +    // highlight status modification shoule be a stage of main process?
    +    // (Consider confilct (e.g., legend and axisPointer) and setOption)
    +
    +    var zr = api.getZr();
    +    var highDownKey = 'axisPointerLastHighlights';
    +    var lastHighlights = get$2(zr)[highDownKey] || {};
    +    var newHighlights = get$2(zr)[highDownKey] = {};
    +
    +    // Update highlight/downplay status according to axisPointer model.
    +    // Build hash map and remove duplicate incidentally.
    +    each$17(axesInfo, function (axisInfo, key) {
    +        var option = axisInfo.axisPointerModel.option;
    +        option.status === 'show' && each$17(option.seriesDataIndices, function (batchItem) {
    +            var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;
    +            newHighlights[key] = batchItem;
    +        });
    +    });
    +
    +    // Diff.
    +    var toHighlight = [];
    +    var toDownplay = [];
    +    each$1(lastHighlights, function (batchItem, key) {
    +        !newHighlights[key] && toDownplay.push(batchItem);
    +    });
    +    each$1(newHighlights, function (batchItem, key) {
    +        !lastHighlights[key] && toHighlight.push(batchItem);
    +    });
    +
    +    toDownplay.length && api.dispatchAction({
    +        type: 'downplay', escapeConnect: true, batch: toDownplay
    +    });
    +    toHighlight.length && api.dispatchAction({
    +        type: 'highlight', escapeConnect: true, batch: toHighlight
    +    });
    +}
    +
    +function findInputAxisInfo(inputAxesInfo, axisInfo) {
    +    for (var i = 0; i < (inputAxesInfo || []).length; i++) {
    +        var inputAxisInfo = inputAxesInfo[i];
    +        if (axisInfo.axis.dim === inputAxisInfo.axisDim
    +            && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex
    +        ) {
    +            return inputAxisInfo;
    +        }
    +    }
    +}
    +
    +function makeMapperParam(axisInfo) {
    +    var axisModel = axisInfo.axis.model;
    +    var item = {};
    +    var dim = item.axisDim = axisInfo.axis.dim;
    +    item.axisIndex = item[dim + 'AxisIndex'] = axisModel.componentIndex;
    +    item.axisName = item[dim + 'AxisName'] = axisModel.name;
    +    item.axisId = item[dim + 'AxisId'] = axisModel.id;
    +    return item;
    +}
    +
    +function illegalPoint(point) {
    +    return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);
    +}
    +
    +var AxisPointerModel = extendComponentModel({
    +
    +    type: 'axisPointer',
    +
    +    coordSysAxesInfo: null,
    +
    +    defaultOption: {
    +        // 'auto' means that show when triggered by tooltip or handle.
    +        show: 'auto',
    +        // 'click' | 'mousemove' | 'none'
    +        triggerOn: null, // set default in AxisPonterView.js
    +
    +        zlevel: 0,
    +        z: 50,
    +
    +        type: 'line',
    +        // axispointer triggered by tootip determine snap automatically,
    +        // see `modelHelper`.
    +        snap: false,
    +        triggerTooltip: true,
    +
    +        value: null,
    +        status: null, // Init value depends on whether handle is used.
    +
    +        // [group0, group1, ...]
    +        // Each group can be: {
    +        //      mapper: function () {},
    +        //      singleTooltip: 'multiple',  // 'multiple' or 'single'
    +        //      xAxisId: ...,
    +        //      yAxisName: ...,
    +        //      angleAxisIndex: ...
    +        // }
    +        // mapper: can be ignored.
    +        //      input: {axisInfo, value}
    +        //      output: {axisInfo, value}
    +        link: [],
    +
    +        // Do not set 'auto' here, otherwise global animation: false
    +        // will not effect at this axispointer.
    +        animation: null,
    +        animationDurationUpdate: 200,
    +
    +        lineStyle: {
    +            color: '#aaa',
    +            width: 1,
    +            type: 'solid'
    +        },
    +
    +        shadowStyle: {
    +            color: 'rgba(150,150,150,0.3)'
    +        },
    +
    +        label: {
    +            show: true,
    +            formatter: null, // string | Function
    +            precision: 'auto', // Or a number like 0, 1, 2 ...
    +            margin: 3,
    +            color: '#fff',
    +            padding: [5, 7, 5, 7],
    +            backgroundColor: 'auto', // default: axis line color
    +            borderColor: null,
    +            borderWidth: 0,
    +            shadowBlur: 3,
    +            shadowColor: '#aaa'
    +            // Considering applicability, common style should
    +            // better not have shadowOffset.
    +            // shadowOffsetX: 0,
    +            // shadowOffsetY: 2
    +        },
    +
    +        handle: {
    +            show: false,
    +            icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z', // jshint ignore:line
    +            size: 45,
    +            // handle margin is from symbol center to axis, which is stable when circular move.
    +            margin: 50,
    +            // color: '#1b8bbd'
    +            // color: '#2f4554'
    +            color: '#333',
    +            shadowBlur: 3,
    +            shadowColor: '#aaa',
    +            shadowOffsetX: 0,
    +            shadowOffsetY: 2,
    +
    +            // For mobile performance
    +            throttle: 40
    +        }
    +    }
    +
    +});
    +
    +var get$3 = makeGetter();
    +var each$18 = each$1;
    +
    +/**
    + * @param {string} key
    + * @param {module:echarts/ExtensionAPI} api
    + * @param {Function} handler
    + *      param: {string} currTrigger
    + *      param: {Array.<number>} point
    + */
    +function register(key, api, handler) {
    +    if (env$1.node) {
    +        return;
    +    }
    +
    +    var zr = api.getZr();
    +    get$3(zr).records || (get$3(zr).records = {});
    +
    +    initGlobalListeners(zr, api);
    +
    +    var record = get$3(zr).records[key] || (get$3(zr).records[key] = {});
    +    record.handler = handler;
    +}
    +
    +function initGlobalListeners(zr, api) {
    +    if (get$3(zr).initialized) {
    +        return;
    +    }
    +
    +    get$3(zr).initialized = true;
    +
    +    useHandler('click', curry(doEnter, 'click'));
    +    useHandler('mousemove', curry(doEnter, 'mousemove'));
    +    // useHandler('mouseout', onLeave);
    +    useHandler('globalout', onLeave);
    +
    +    function useHandler(eventType, cb) {
    +        zr.on(eventType, function (e) {
    +            var dis = makeDispatchAction(api);
    +
    +            each$18(get$3(zr).records, function (record) {
    +                record && cb(record, e, dis.dispatchAction);
    +            });
    +
    +            dispatchTooltipFinally(dis.pendings, api);
    +        });
    +    }
    +}
    +
    +function dispatchTooltipFinally(pendings, api) {
    +    var showLen = pendings.showTip.length;
    +    var hideLen = pendings.hideTip.length;
    +
    +    var actuallyPayload;
    +    if (showLen) {
    +        actuallyPayload = pendings.showTip[showLen - 1];
    +    }
    +    else if (hideLen) {
    +        actuallyPayload = pendings.hideTip[hideLen - 1];
    +    }
    +    if (actuallyPayload) {
    +        actuallyPayload.dispatchAction = null;
    +        api.dispatchAction(actuallyPayload);
    +    }
    +}
    +
    +function onLeave(record, e, dispatchAction) {
    +    record.handler('leave', null, dispatchAction);
    +}
    +
    +function doEnter(currTrigger, record, e, dispatchAction) {
    +    record.handler(currTrigger, e, dispatchAction);
    +}
    +
    +function makeDispatchAction(api) {
    +    var pendings = {
    +        showTip: [],
    +        hideTip: []
    +    };
    +    // FIXME
    +    // better approach?
    +    // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,
    +    // which may be conflict, (axisPointer call showTip but tooltip call hideTip);
    +    // So we have to add "final stage" to merge those dispatched actions.
    +    var dispatchAction = function (payload) {
    +        var pendingList = pendings[payload.type];
    +        if (pendingList) {
    +            pendingList.push(payload);
    +        }
    +        else {
    +            payload.dispatchAction = dispatchAction;
    +            api.dispatchAction(payload);
    +        }
    +    };
    +
    +    return {
    +        dispatchAction: dispatchAction,
    +        pendings: pendings
    +    };
    +}
    +
    +/**
    + * @param {string} key
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function unregister(key, api) {
    +    if (env$1.node) {
    +        return;
    +    }
    +    var zr = api.getZr();
    +    var record = (get$3(zr).records || {})[key];
    +    if (record) {
    +        get$3(zr).records[key] = null;
    +    }
    +}
    +
    +var AxisPointerView = extendComponentView({
    +
    +    type: 'axisPointer',
    +
    +    render: function (globalAxisPointerModel, ecModel, api) {
    +        var globalTooltipModel = ecModel.getComponent('tooltip');
    +        var triggerOn = globalAxisPointerModel.get('triggerOn')
    +            || (globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click');
    +
    +        // Register global listener in AxisPointerView to enable
    +        // AxisPointerView to be independent to Tooltip.
    +        register(
    +            'axisPointer',
    +            api,
    +            function (currTrigger, e, dispatchAction) {
    +                // If 'none', it is not controlled by mouse totally.
    +                if (triggerOn !== 'none'
    +                    && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)
    +                ) {
    +                    dispatchAction({
    +                        type: 'updateAxisPointer',
    +                        currTrigger: currTrigger,
    +                        x: e && e.offsetX,
    +                        y: e && e.offsetY
    +                    });
    +                }
    +            }
    +        );
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function (ecModel, api) {
    +        unregister(api.getZr(), 'axisPointer');
    +        AxisPointerView.superApply(this._model, 'remove', arguments);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function (ecModel, api) {
    +        unregister('axisPointer', api);
    +        AxisPointerView.superApply(this._model, 'dispose', arguments);
    +    }
    +
    +});
    +
    +var get$4 = makeGetter();
    +var clone$3 = clone;
    +var bind$2 = bind;
    +
    +/**
    + * Base axis pointer class in 2D.
    + * Implemenents {module:echarts/component/axis/IAxisPointer}.
    + */
    +function BaseAxisPointer () {
    +}
    +
    +BaseAxisPointer.prototype = {
    +
    +    /**
    +     * @private
    +     */
    +    _group: null,
    +
    +    /**
    +     * @private
    +     */
    +    _lastGraphicKey: null,
    +
    +    /**
    +     * @private
    +     */
    +    _handle: null,
    +
    +    /**
    +     * @private
    +     */
    +    _dragging: false,
    +
    +    /**
    +     * @private
    +     */
    +    _lastValue: null,
    +
    +    /**
    +     * @private
    +     */
    +    _lastStatus: null,
    +
    +    /**
    +     * @private
    +     */
    +    _payloadInfo: null,
    +
    +    /**
    +     * In px, arbitrary value. Do not set too small,
    +     * no animation is ok for most cases.
    +     * @protected
    +     */
    +    animationThreshold: 15,
    +
    +    /**
    +     * @implement
    +     */
    +    render: function (axisModel, axisPointerModel, api, forceRender) {
    +        var value = axisPointerModel.get('value');
    +        var status = axisPointerModel.get('status');
    +
    +        // Bind them to `this`, not in closure, otherwise they will not
    +        // be replaced when user calling setOption in not merge mode.
    +        this._axisModel = axisModel;
    +        this._axisPointerModel = axisPointerModel;
    +        this._api = api;
    +
    +        // Optimize: `render` will be called repeatly during mouse move.
    +        // So it is power consuming if performing `render` each time,
    +        // especially on mobile device.
    +        if (!forceRender
    +            && this._lastValue === value
    +            && this._lastStatus === status
    +        ) {
    +            return;
    +        }
    +        this._lastValue = value;
    +        this._lastStatus = status;
    +
    +        var group = this._group;
    +        var handle = this._handle;
    +
    +        if (!status || status === 'hide') {
    +            // Do not clear here, for animation better.
    +            group && group.hide();
    +            handle && handle.hide();
    +            return;
    +        }
    +        group && group.show();
    +        handle && handle.show();
    +
    +        // Otherwise status is 'show'
    +        var elOption = {};
    +        this.makeElOption(elOption, value, axisModel, axisPointerModel, api);
    +
    +        // Enable change axis pointer type.
    +        var graphicKey = elOption.graphicKey;
    +        if (graphicKey !== this._lastGraphicKey) {
    +            this.clear(api);
    +        }
    +        this._lastGraphicKey = graphicKey;
    +
    +        var moveAnimation = this._moveAnimation =
    +            this.determineAnimation(axisModel, axisPointerModel);
    +
    +        if (!group) {
    +            group = this._group = new Group();
    +            this.createPointerEl(group, elOption, axisModel, axisPointerModel);
    +            this.createLabelEl(group, elOption, axisModel, axisPointerModel);
    +            api.getZr().add(group);
    +        }
    +        else {
    +            var doUpdateProps = curry(updateProps$1, axisPointerModel, moveAnimation);
    +            this.updatePointerEl(group, elOption, doUpdateProps, axisPointerModel);
    +            this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);
    +        }
    +
    +        updateMandatoryProps(group, axisPointerModel, true);
    +
    +        this._renderHandle(value);
    +    },
    +
    +    /**
    +     * @implement
    +     */
    +    remove: function (api) {
    +        this.clear(api);
    +    },
    +
    +    /**
    +     * @implement
    +     */
    +    dispose: function (api) {
    +        this.clear(api);
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    determineAnimation: function (axisModel, axisPointerModel) {
    +        var animation = axisPointerModel.get('animation');
    +        var axis = axisModel.axis;
    +        var isCategoryAxis = axis.type === 'category';
    +        var useSnap = axisPointerModel.get('snap');
    +
    +        // Value axis without snap always do not snap.
    +        if (!useSnap && !isCategoryAxis) {
    +            return false;
    +        }
    +
    +        if (animation === 'auto' || animation == null) {
    +            var animationThreshold = this.animationThreshold;
    +            if (isCategoryAxis && axis.getBandWidth() > animationThreshold) {
    +                return true;
    +            }
    +
    +            // It is important to auto animation when snap used. Consider if there is
    +            // a dataZoom, animation will be disabled when too many points exist, while
    +            // it will be enabled for better visual effect when little points exist.
    +            if (useSnap) {
    +                var seriesDataCount = getAxisInfo(axisModel).seriesDataCount;
    +                var axisExtent = axis.getExtent();
    +                // Approximate band width
    +                return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold;
    +            }
    +
    +            return false;
    +        }
    +
    +        return animation === true;
    +    },
    +
    +    /**
    +     * add {pointer, label, graphicKey} to elOption
    +     * @protected
    +     */
    +    makeElOption: function (elOption, value, axisModel, axisPointerModel, api) {
    +        // Shoule be implemenented by sub-class.
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    createPointerEl: function (group, elOption, axisModel, axisPointerModel) {
    +        var pointerOption = elOption.pointer;
    +        if (pointerOption) {
    +            var pointerEl = get$4(group).pointerEl = new graphic[pointerOption.type](
    +                clone$3(elOption.pointer)
    +            );
    +            group.add(pointerEl);
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    createLabelEl: function (group, elOption, axisModel, axisPointerModel) {
    +        if (elOption.label) {
    +            var labelEl = get$4(group).labelEl = new Rect(
    +                clone$3(elOption.label)
    +            );
    +
    +            group.add(labelEl);
    +            updateLabelShowHide(labelEl, axisPointerModel);
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    updatePointerEl: function (group, elOption, updateProps$$1) {
    +        var pointerEl = get$4(group).pointerEl;
    +        if (pointerEl) {
    +            pointerEl.setStyle(elOption.pointer.style);
    +            updateProps$$1(pointerEl, {shape: elOption.pointer.shape});
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    updateLabelEl: function (group, elOption, updateProps$$1, axisPointerModel) {
    +        var labelEl = get$4(group).labelEl;
    +        if (labelEl) {
    +            labelEl.setStyle(elOption.label.style);
    +            updateProps$$1(labelEl, {
    +                // Consider text length change in vertical axis, animation should
    +                // be used on shape, otherwise the effect will be weird.
    +                shape: elOption.label.shape,
    +                position: elOption.label.position
    +            });
    +
    +            updateLabelShowHide(labelEl, axisPointerModel);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderHandle: function (value) {
    +        if (this._dragging || !this.updateHandleTransform) {
    +            return;
    +        }
    +
    +        var axisPointerModel = this._axisPointerModel;
    +        var zr = this._api.getZr();
    +        var handle = this._handle;
    +        var handleModel = axisPointerModel.getModel('handle');
    +
    +        var status = axisPointerModel.get('status');
    +        if (!handleModel.get('show') || !status || status === 'hide') {
    +            handle && zr.remove(handle);
    +            this._handle = null;
    +            return;
    +        }
    +
    +        var isInit;
    +        if (!this._handle) {
    +            isInit = true;
    +            handle = this._handle = createIcon(
    +                handleModel.get('icon'),
    +                {
    +                    cursor: 'move',
    +                    draggable: true,
    +                    onmousemove: function (e) {
    +                        // Fot mobile devicem, prevent screen slider on the button.
    +                        stop(e.event);
    +                    },
    +                    onmousedown: bind$2(this._onHandleDragMove, this, 0, 0),
    +                    drift: bind$2(this._onHandleDragMove, this),
    +                    ondragend: bind$2(this._onHandleDragEnd, this)
    +                }
    +            );
    +            zr.add(handle);
    +        }
    +
    +        updateMandatoryProps(handle, axisPointerModel, false);
    +
    +        // update style
    +        var includeStyles = [
    +            'color', 'borderColor', 'borderWidth', 'opacity',
    +            'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'
    +        ];
    +        handle.setStyle(handleModel.getItemStyle(null, includeStyles));
    +
    +        // update position
    +        var handleSize = handleModel.get('size');
    +        if (!isArray(handleSize)) {
    +            handleSize = [handleSize, handleSize];
    +        }
    +        handle.attr('scale', [handleSize[0] / 2, handleSize[1] / 2]);
    +
    +        createOrUpdate(
    +            this,
    +            '_doDispatchAxisPointer',
    +            handleModel.get('throttle') || 0,
    +            'fixRate'
    +        );
    +
    +        this._moveHandleToValue(value, isInit);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _moveHandleToValue: function (value, isInit) {
    +        updateProps$1(
    +            this._axisPointerModel,
    +            !isInit && this._moveAnimation,
    +            this._handle,
    +            getHandleTransProps(this.getHandleTransform(
    +                value, this._axisModel, this._axisPointerModel
    +            ))
    +        );
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onHandleDragMove: function (dx, dy) {
    +        var handle = this._handle;
    +        if (!handle) {
    +            return;
    +        }
    +
    +        this._dragging = true;
    +
    +        // Persistent for throttle.
    +        var trans = this.updateHandleTransform(
    +            getHandleTransProps(handle),
    +            [dx, dy],
    +            this._axisModel,
    +            this._axisPointerModel
    +        );
    +        this._payloadInfo = trans;
    +
    +        handle.stopAnimation();
    +        handle.attr(getHandleTransProps(trans));
    +        get$4(handle).lastProp = null;
    +
    +        this._doDispatchAxisPointer();
    +    },
    +
    +    /**
    +     * Throttled method.
    +     * @private
    +     */
    +    _doDispatchAxisPointer: function () {
    +        var handle = this._handle;
    +        if (!handle) {
    +            return;
    +        }
    +
    +        var payloadInfo = this._payloadInfo;
    +        var axisModel = this._axisModel;
    +        this._api.dispatchAction({
    +            type: 'updateAxisPointer',
    +            x: payloadInfo.cursorPoint[0],
    +            y: payloadInfo.cursorPoint[1],
    +            tooltipOption: payloadInfo.tooltipOption,
    +            axesInfo: [{
    +                axisDim: axisModel.axis.dim,
    +                axisIndex: axisModel.componentIndex
    +            }]
    +        });
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onHandleDragEnd: function (moveAnimation) {
    +        this._dragging = false;
    +        var handle = this._handle;
    +        if (!handle) {
    +            return;
    +        }
    +
    +        var value = this._axisPointerModel.get('value');
    +        // Consider snap or categroy axis, handle may be not consistent with
    +        // axisPointer. So move handle to align the exact value position when
    +        // drag ended.
    +        this._moveHandleToValue(value);
    +
    +        // For the effect: tooltip will be shown when finger holding on handle
    +        // button, and will be hidden after finger left handle button.
    +        this._api.dispatchAction({
    +            type: 'hideTip'
    +        });
    +    },
    +
    +    /**
    +     * Should be implemenented by sub-class if support `handle`.
    +     * @protected
    +     * @param {number} value
    +     * @param {module:echarts/model/Model} axisModel
    +     * @param {module:echarts/model/Model} axisPointerModel
    +     * @return {Object} {position: [x, y], rotation: 0}
    +     */
    +    getHandleTransform: null,
    +
    +    /**
    +     * * Should be implemenented by sub-class if support `handle`.
    +     * @protected
    +     * @param {Object} transform {position, rotation}
    +     * @param {Array.<number>} delta [dx, dy]
    +     * @param {module:echarts/model/Model} axisModel
    +     * @param {module:echarts/model/Model} axisPointerModel
    +     * @return {Object} {position: [x, y], rotation: 0, cursorPoint: [x, y]}
    +     */
    +    updateHandleTransform: null,
    +
    +    /**
    +     * @private
    +     */
    +    clear: function (api) {
    +        this._lastValue = null;
    +        this._lastStatus = null;
    +
    +        var zr = api.getZr();
    +        var group = this._group;
    +        var handle = this._handle;
    +        if (zr && group) {
    +            this._lastGraphicKey = null;
    +            group && zr.remove(group);
    +            handle && zr.remove(handle);
    +            this._group = null;
    +            this._handle = null;
    +            this._payloadInfo = null;
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    doClear: function () {
    +        // Implemented by sub-class if necessary.
    +    },
    +
    +    /**
    +     * @protected
    +     * @param {Array.<number>} xy
    +     * @param {Array.<number>} wh
    +     * @param {number} [xDimIndex=0] or 1
    +     */
    +    buildLabel: function (xy, wh, xDimIndex) {
    +        xDimIndex = xDimIndex || 0;
    +        return {
    +            x: xy[xDimIndex],
    +            y: xy[1 - xDimIndex],
    +            width: wh[xDimIndex],
    +            height: wh[1 - xDimIndex]
    +        };
    +    }
    +};
    +
    +BaseAxisPointer.prototype.constructor = BaseAxisPointer;
    +
    +
    +function updateProps$1(animationModel, moveAnimation, el, props) {
    +    // Animation optimize.
    +    if (!propsEqual(get$4(el).lastProp, props)) {
    +        get$4(el).lastProp = props;
    +        moveAnimation
    +            ? updateProps(el, props, animationModel)
    +            : (el.stopAnimation(), el.attr(props));
    +    }
    +}
    +
    +function propsEqual(lastProps, newProps) {
    +    if (isObject(lastProps) && isObject(newProps)) {
    +        var equals = true;
    +        each$1(newProps, function (item, key) {
    +            equals = equals && propsEqual(lastProps[key], item);
    +        });
    +        return !!equals;
    +    }
    +    else {
    +        return lastProps === newProps;
    +    }
    +}
    +
    +function updateLabelShowHide(labelEl, axisPointerModel) {
    +    labelEl[axisPointerModel.get('label.show') ? 'show' : 'hide']();
    +}
    +
    +function getHandleTransProps(trans) {
    +    return {
    +        position: trans.position.slice(),
    +        rotation: trans.rotation || 0
    +    };
    +}
    +
    +function updateMandatoryProps(group, axisPointerModel, silent) {
    +    var z = axisPointerModel.get('z');
    +    var zlevel = axisPointerModel.get('zlevel');
    +
    +    group && group.traverse(function (el) {
    +        if (el.type !== 'group') {
    +            z != null && (el.z = z);
    +            zlevel != null && (el.zlevel = zlevel);
    +            el.silent = silent;
    +        }
    +    });
    +}
    +
    +enableClassExtend(BaseAxisPointer);
    +
    +/**
    + * @param {module:echarts/model/Model} axisPointerModel
    + */
    +function buildElStyle(axisPointerModel) {
    +    var axisPointerType = axisPointerModel.get('type');
    +    var styleModel = axisPointerModel.getModel(axisPointerType + 'Style');
    +    var style;
    +    if (axisPointerType === 'line') {
    +        style = styleModel.getLineStyle();
    +        style.fill = null;
    +    }
    +    else if (axisPointerType === 'shadow') {
    +        style = styleModel.getAreaStyle();
    +        style.stroke = null;
    +    }
    +    return style;
    +}
    +
    +/**
    + * @param {Function} labelPos {align, verticalAlign, position}
    + */
    +function buildLabelElOption(
    +    elOption, axisModel, axisPointerModel, api, labelPos
    +) {
    +    var value = axisPointerModel.get('value');
    +    var text = getValueLabel(
    +        value, axisModel.axis, axisModel.ecModel,
    +        axisPointerModel.get('seriesDataIndices'),
    +        {
    +            precision: axisPointerModel.get('label.precision'),
    +            formatter: axisPointerModel.get('label.formatter')
    +        }
    +    );
    +    var labelModel = axisPointerModel.getModel('label');
    +    var paddings = normalizeCssArray$1(labelModel.get('padding') || 0);
    +
    +    var font = labelModel.getFont();
    +    var textRect = getBoundingRect(text, font);
    +
    +    var position = labelPos.position;
    +    var width = textRect.width + paddings[1] + paddings[3];
    +    var height = textRect.height + paddings[0] + paddings[2];
    +
    +    // Adjust by align.
    +    var align = labelPos.align;
    +    align === 'right' && (position[0] -= width);
    +    align === 'center' && (position[0] -= width / 2);
    +    var verticalAlign = labelPos.verticalAlign;
    +    verticalAlign === 'bottom' && (position[1] -= height);
    +    verticalAlign === 'middle' && (position[1] -= height / 2);
    +
    +    // Not overflow ec container
    +    confineInContainer(position, width, height, api);
    +
    +    var bgColor = labelModel.get('backgroundColor');
    +    if (!bgColor || bgColor === 'auto') {
    +        bgColor = axisModel.get('axisLine.lineStyle.color');
    +    }
    +
    +    elOption.label = {
    +        shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},
    +        position: position.slice(),
    +        // TODO: rich
    +        style: {
    +            text: text,
    +            textFont: font,
    +            textFill: labelModel.getTextColor(),
    +            textPosition: 'inside',
    +            fill: bgColor,
    +            stroke: labelModel.get('borderColor') || 'transparent',
    +            lineWidth: labelModel.get('borderWidth') || 0,
    +            shadowBlur: labelModel.get('shadowBlur'),
    +            shadowColor: labelModel.get('shadowColor'),
    +            shadowOffsetX: labelModel.get('shadowOffsetX'),
    +            shadowOffsetY: labelModel.get('shadowOffsetY')
    +        },
    +        // Lable should be over axisPointer.
    +        z2: 10
    +    };
    +}
    +
    +// Do not overflow ec container
    +function confineInContainer(position, width, height, api) {
    +    var viewWidth = api.getWidth();
    +    var viewHeight = api.getHeight();
    +    position[0] = Math.min(position[0] + width, viewWidth) - width;
    +    position[1] = Math.min(position[1] + height, viewHeight) - height;
    +    position[0] = Math.max(position[0], 0);
    +    position[1] = Math.max(position[1], 0);
    +}
    +
    +/**
    + * @param {number} value
    + * @param {module:echarts/coord/Axis} axis
    + * @param {module:echarts/model/Global} ecModel
    + * @param {Object} opt
    + * @param {Array.<Object>} seriesDataIndices
    + * @param {number|string} opt.precision 'auto' or a number
    + * @param {string|Function} opt.formatter label formatter
    + */
    +function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {
    +    var text = axis.scale.getLabel(
    +        // If `precision` is set, width can be fixed (like '12.00500'), which
    +        // helps to debounce when when moving label.
    +        value, {precision: opt.precision}
    +    );
    +    var formatter = opt.formatter;
    +
    +    if (formatter) {
    +        var params = {
    +            value: getAxisRawValue(axis, value),
    +            seriesData: []
    +        };
    +        each$1(seriesDataIndices, function (idxItem) {
    +            var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);
    +            var dataIndex = idxItem.dataIndexInside;
    +            var dataParams = series && series.getDataParams(dataIndex);
    +            dataParams && params.seriesData.push(dataParams);
    +        });
    +
    +        if (isString(formatter)) {
    +            text = formatter.replace('{value}', text);
    +        }
    +        else if (isFunction(formatter)) {
    +            text = formatter(params);
    +        }
    +    }
    +
    +    return text;
    +}
    +
    +/**
    + * @param {module:echarts/coord/Axis} axis
    + * @param {number} value
    + * @param {Object} layoutInfo {
    + *  rotation, position, labelOffset, labelDirection, labelMargin
    + * }
    + */
    +function getTransformedPosition (axis, value, layoutInfo) {
    +    var transform = create$1();
    +    rotate(transform, transform, layoutInfo.rotation);
    +    translate(transform, transform, layoutInfo.position);
    +
    +    return applyTransform$1([
    +        axis.dataToCoord(value),
    +        (layoutInfo.labelOffset || 0)
    +            + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)
    +    ], transform);
    +}
    +
    +function buildCartesianSingleLabelElOption(
    +    value, elOption, layoutInfo, axisModel, axisPointerModel, api
    +) {
    +    var textLayout = AxisBuilder.innerTextLayout(
    +        layoutInfo.rotation, 0, layoutInfo.labelDirection
    +    );
    +    layoutInfo.labelMargin = axisPointerModel.get('label.margin');
    +    buildLabelElOption(elOption, axisModel, axisPointerModel, api, {
    +        position: getTransformedPosition(axisModel.axis, value, layoutInfo),
    +        align: textLayout.textAlign,
    +        verticalAlign: textLayout.textVerticalAlign
    +    });
    +}
    +
    +/**
    + * @param {Array.<number>} p1
    + * @param {Array.<number>} p2
    + * @param {number} [xDimIndex=0] or 1
    + */
    +function makeLineShape(p1, p2, xDimIndex) {
    +    xDimIndex = xDimIndex || 0;
    +    return {
    +        x1: p1[xDimIndex],
    +        y1: p1[1 - xDimIndex],
    +        x2: p2[xDimIndex],
    +        y2: p2[1 - xDimIndex]
    +    };
    +}
    +
    +/**
    + * @param {Array.<number>} xy
    + * @param {Array.<number>} wh
    + * @param {number} [xDimIndex=0] or 1
    + */
    +function makeRectShape(xy, wh, xDimIndex) {
    +    xDimIndex = xDimIndex || 0;
    +    return {
    +        x: xy[xDimIndex],
    +        y: xy[1 - xDimIndex],
    +        width: wh[xDimIndex],
    +        height: wh[1 - xDimIndex]
    +    };
    +}
    +
    +function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) {
    +    return {
    +        cx: cx,
    +        cy: cy,
    +        r0: r0,
    +        r: r,
    +        startAngle: startAngle,
    +        endAngle: endAngle,
    +        clockwise: true
    +    };
    +}
    +
    +var CartesianAxisPointer = BaseAxisPointer.extend({
    +
    +    /**
    +     * @override
    +     */
    +    makeElOption: function (elOption, value, axisModel, axisPointerModel, api) {
    +        var axis = axisModel.axis;
    +        var grid = axis.grid;
    +        var axisPointerType = axisPointerModel.get('type');
    +        var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();
    +        var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));
    +
    +        if (axisPointerType && axisPointerType !== 'none') {
    +            var elStyle = buildElStyle(axisPointerModel);
    +            var pointerOption = pointerShapeBuilder[axisPointerType](
    +                axis, pixelValue, otherExtent, elStyle
    +            );
    +            pointerOption.style = elStyle;
    +            elOption.graphicKey = pointerOption.type;
    +            elOption.pointer = pointerOption;
    +        }
    +
    +        var layoutInfo = layout(grid.model, axisModel);
    +        buildCartesianSingleLabelElOption(
    +            value, elOption, layoutInfo, axisModel, axisPointerModel, api
    +        );
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    getHandleTransform: function (value, axisModel, axisPointerModel) {
    +        var layoutInfo = layout(axisModel.axis.grid.model, axisModel, {
    +            labelInside: false
    +        });
    +        layoutInfo.labelMargin = axisPointerModel.get('handle.margin');
    +        return {
    +            position: getTransformedPosition(axisModel.axis, value, layoutInfo),
    +            rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)
    +        };
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    updateHandleTransform: function (transform, delta, axisModel, axisPointerModel) {
    +        var axis = axisModel.axis;
    +        var grid = axis.grid;
    +        var axisExtent = axis.getGlobalExtent(true);
    +        var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();
    +        var dimIndex = axis.dim === 'x' ? 0 : 1;
    +
    +        var currPosition = transform.position;
    +        currPosition[dimIndex] += delta[dimIndex];
    +        currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);
    +        currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);
    +
    +        var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;
    +        var cursorPoint = [cursorOtherValue, cursorOtherValue];
    +        cursorPoint[dimIndex] = currPosition[dimIndex];
    +
    +        // Make tooltip do not overlap axisPointer and in the middle of the grid.
    +        var tooltipOptions = [{verticalAlign: 'middle'}, {align: 'center'}];
    +
    +        return {
    +            position: currPosition,
    +            rotation: transform.rotation,
    +            cursorPoint: cursorPoint,
    +            tooltipOption: tooltipOptions[dimIndex]
    +        };
    +    }
    +
    +});
    +
    +function getCartesian(grid, axis) {
    +    var opt = {};
    +    opt[axis.dim + 'AxisIndex'] = axis.index;
    +    return grid.getCartesian(opt);
    +}
    +
    +var pointerShapeBuilder = {
    +
    +    line: function (axis, pixelValue, otherExtent, elStyle) {
    +        var targetShape = makeLineShape(
    +            [pixelValue, otherExtent[0]],
    +            [pixelValue, otherExtent[1]],
    +            getAxisDimIndex(axis)
    +        );
    +        subPixelOptimizeLine({
    +            shape: targetShape,
    +            style: elStyle
    +        });
    +        return {
    +            type: 'Line',
    +            shape: targetShape
    +        };
    +    },
    +
    +    shadow: function (axis, pixelValue, otherExtent, elStyle) {
    +        var bandWidth = axis.getBandWidth();
    +        var span = otherExtent[1] - otherExtent[0];
    +        return {
    +            type: 'Rect',
    +            shape: makeRectShape(
    +                [pixelValue - bandWidth / 2, otherExtent[0]],
    +                [bandWidth, span],
    +                getAxisDimIndex(axis)
    +            )
    +        };
    +    }
    +};
    +
    +function getAxisDimIndex(axis) {
    +    return axis.dim === 'x' ? 0 : 1;
    +}
    +
    +AxisView.registerAxisPointerClass('CartesianAxisPointer', CartesianAxisPointer);
    +
    +// CartesianAxisPointer is not supposed to be required here. But consider
    +// echarts.simple.js and online build tooltip, which only require gridSimple,
    +// CartesianAxisPointer should be able to required somewhere.
    +registerPreprocessor(function (option) {
    +    // Always has a global axisPointerModel for default setting.
    +    if (option) {
    +        (!option.axisPointer || option.axisPointer.length === 0)
    +            && (option.axisPointer = {});
    +
    +        var link = option.axisPointer.link;
    +        // Normalize to array to avoid object mergin. But if link
    +        // is not set, remain null/undefined, otherwise it will
    +        // override existent link setting.
    +        if (link && !isArray(link)) {
    +            option.axisPointer.link = [link];
    +        }
    +    }
    +});
    +
    +// This process should proformed after coordinate systems created
    +// and series data processed. So put it on statistic processing stage.
    +registerProcessor(PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {
    +    // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.
    +    // allAxesInfo should be updated when setOption performed.
    +    ecModel.getComponent('axisPointer').coordSysAxesInfo
    +        = collect(ecModel, api);
    +});
    +
    +// Broadcast to all views.
    +registerAction({
    +    type: 'updateAxisPointer',
    +    event: 'updateAxisPointer',
    +    update: ':updateAxisPointer'
    +}, axisTrigger);
    +
    +var XY = ['x', 'y'];
    +var WH = ['width', 'height'];
    +
    +var SingleAxisPointer = BaseAxisPointer.extend({
    +
    +    /**
    +     * @override
    +     */
    +    makeElOption: function (elOption, value, axisModel, axisPointerModel, api) {
    +        var axis = axisModel.axis;
    +        var coordSys = axis.coordinateSystem;
    +        var otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis));
    +        var pixelValue = coordSys.dataToPoint(value)[0];
    +
    +        var axisPointerType = axisPointerModel.get('type');
    +        if (axisPointerType && axisPointerType !== 'none') {
    +            var elStyle = buildElStyle(axisPointerModel);
    +            var pointerOption = pointerShapeBuilder$1[axisPointerType](
    +                axis, pixelValue, otherExtent, elStyle
    +            );
    +            pointerOption.style = elStyle;
    +
    +            elOption.graphicKey = pointerOption.type;
    +            elOption.pointer = pointerOption;
    +        }
    +
    +        var layoutInfo = layout$1(axisModel);
    +        buildCartesianSingleLabelElOption(
    +            value, elOption, layoutInfo, axisModel, axisPointerModel, api
    +        );
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    getHandleTransform: function (value, axisModel, axisPointerModel) {
    +        var layoutInfo = layout$1(axisModel, {labelInside: false});
    +        layoutInfo.labelMargin = axisPointerModel.get('handle.margin');
    +        return {
    +            position: getTransformedPosition(axisModel.axis, value, layoutInfo),
    +            rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)
    +        };
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    updateHandleTransform: function (transform, delta, axisModel, axisPointerModel) {
    +        var axis = axisModel.axis;
    +        var coordSys = axis.coordinateSystem;
    +        var dimIndex = getPointDimIndex(axis);
    +        var axisExtent = getGlobalExtent(coordSys, dimIndex);
    +        var currPosition = transform.position;
    +        currPosition[dimIndex] += delta[dimIndex];
    +        currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);
    +        currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);
    +        var otherExtent = getGlobalExtent(coordSys, 1 - dimIndex);
    +        var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;
    +        var cursorPoint = [cursorOtherValue, cursorOtherValue];
    +        cursorPoint[dimIndex] = currPosition[dimIndex];
    +
    +        return {
    +            position: currPosition,
    +            rotation: transform.rotation,
    +            cursorPoint: cursorPoint,
    +            tooltipOption: {
    +                verticalAlign: 'middle'
    +            }
    +        };
    +    }
    +});
    +
    +var pointerShapeBuilder$1 = {
    +
    +    line: function (axis, pixelValue, otherExtent, elStyle) {
    +        var targetShape = makeLineShape(
    +            [pixelValue, otherExtent[0]],
    +            [pixelValue, otherExtent[1]],
    +            getPointDimIndex(axis)
    +        );
    +        subPixelOptimizeLine({
    +            shape: targetShape,
    +            style: elStyle
    +        });
    +        return {
    +            type: 'Line',
    +            shape: targetShape
    +        };
    +    },
    +
    +    shadow: function (axis, pixelValue, otherExtent, elStyle) {
    +        var bandWidth = axis.getBandWidth();
    +        var span = otherExtent[1] - otherExtent[0];
    +        return {
    +            type: 'Rect',
    +            shape: makeRectShape(
    +                [pixelValue - bandWidth / 2, otherExtent[0]],
    +                [bandWidth, span],
    +                getPointDimIndex(axis)
    +            )
    +        };
    +    }
    +};
    +
    +function getPointDimIndex(axis) {
    +    return axis.isHorizontal() ? 0 : 1;
    +}
    +
    +function getGlobalExtent(coordSys, dimIndex) {
    +    var rect = coordSys.getRect();
    +    return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]];
    +}
    +
    +AxisView.registerAxisPointerClass('SingleAxisPointer', SingleAxisPointer);
    +
    +extendComponentView({
    +    type: 'single'
    +});
    +
    +/**
    + * @file  Define the themeRiver view's series model
    + * @author Deqing Li(annong035@gmail.com)
    + */
    +
    +var DATA_NAME_INDEX = 2;
    +
    +var ThemeRiverSeries = SeriesModel.extend({
    +
    +    type: 'series.themeRiver',
    +
    +    dependencies: ['singleAxis'],
    +
    +    /**
    +     * @readOnly
    +     * @type {module:zrender/core/util#HashMap}
    +     */
    +    nameMap: null,
    +
    +    /**
    +     * @override
    +     */
    +    init: function (option) {
    +        ThemeRiverSeries.superApply(this, 'init', arguments);
    +
    +        // Put this function here is for the sake of consistency of code style.
    +        // Enable legend selection for each data item
    +        // Use a function instead of direct access because data reference may changed
    +        this.legendDataProvider = function () {
    +            return this.getRawData();
    +        };
    +    },
    +
    +    /**
    +     * If there is no value of a certain point in the time for some event,set it value to 0.
    +     *
    +     * @param {Array} data  initial data in the option
    +     * @return {Array}
    +     */
    +    fixData: function (data) {
    +        var rawDataLength = data.length;
    +
    +        // grouped data by name
    +        var dataByName = nest()
    +            .key(function (dataItem) {
    +                return dataItem[2];
    +            })
    +            .entries(data);
    +
    +        // data group in each layer
    +        var layData = map(dataByName, function (d) {
    +            return {
    +                name: d.key,
    +                dataList: d.values
    +            };
    +        });
    +
    +        var layerNum = layData.length;
    +        var largestLayer = -1;
    +        var index = -1;
    +        for (var i = 0; i < layerNum; ++i) {
    +            var len = layData[i].dataList.length;
    +            if (len > largestLayer) {
    +                largestLayer = len;
    +                index = i;
    +            }
    +        }
    +
    +        for (var k = 0; k < layerNum; ++k) {
    +            if (k === index) {
    +                continue;
    +            }
    +            var name = layData[k].name;
    +            for (var j = 0; j < largestLayer; ++j) {
    +                var timeValue = layData[index].dataList[j][0];
    +                var length = layData[k].dataList.length;
    +                var keyIndex = -1;
    +                for (var l = 0; l < length; ++l) {
    +                    var value = layData[k].dataList[l][0];
    +                    if (value === timeValue) {
    +                        keyIndex = l;
    +                        break;
    +                    }
    +                }
    +                if (keyIndex === -1) {
    +                    data[rawDataLength] = [];
    +                    data[rawDataLength][0] = timeValue;
    +                    data[rawDataLength][1] = 0;
    +                    data[rawDataLength][2] = name;
    +                    rawDataLength++;
    +
    +                }
    +            }
    +        }
    +        return data;
    +    },
    +
    +    /**
    +     * @override
    +     * @param  {Object} option  the initial option that user gived
    +     * @param  {module:echarts/model/Model} ecModel  the model object for themeRiver option
    +     * @return {module:echarts/data/List}
    +     */
    +    getInitialData: function (option, ecModel) {
    +
    +        var dimensions = [];
    +
    +        var singleAxisModel = ecModel.queryComponents({
    +            mainType: 'singleAxis',
    +            index: this.get('singleAxisIndex'),
    +            id: this.get('singleAxisId')
    +        })[0];
    +
    +        var axisType = singleAxisModel.get('type');
    +
    +        dimensions = [
    +            {
    +                name: 'time',
    +                // FIXME common?
    +                type: axisType === 'category'
    +                    ? 'ordinal'
    +                    : axisType === 'time'
    +                    ? 'time'
    +                    : 'float'
    +            },
    +            {
    +                name: 'value',
    +                type: 'float'
    +            },
    +            {
    +                name: 'name',
    +                type: 'ordinal'
    +            }
    +        ];
    +
    +        // filter the data item with the value of label is undefined
    +        var filterData = filter(option.data, function (dataItem) {
    +            return dataItem[2] !== undefined;
    +        });
    +
    +        var data = this.fixData(filterData || []);
    +        var nameList = [];
    +        var nameMap = this.nameMap = createHashMap();
    +        var count = 0;
    +
    +        for (var i = 0; i < data.length; ++i) {
    +            nameList.push(data[i][DATA_NAME_INDEX]);
    +            if (!nameMap.get(data[i][DATA_NAME_INDEX])) {
    +                nameMap.set(data[i][DATA_NAME_INDEX], count);
    +                count++;
    +            }
    +        }
    +
    +        dimensions = completeDimensions(dimensions, data);
    +
    +        var list = new List(dimensions, this);
    +
    +        list.initData(data, nameList);
    +
    +        return list;
    +    },
    +
    +    /**
    +     * Used by single coordinate
    +     *
    +     * @param {string} axisDim  the dimension for single coordinate
    +     * @return {Array.<string> } specified dimensions on the axis.
    +     */
    +    coordDimToDataDim: function (axisDim) {
    +        return ['time'];
    +    },
    +
    +    /**
    +     * The raw data is divided into multiple layers and each layer
    +     *     has same name.
    +     *
    +     * @return {Array.<Array.<number>>}
    +     */
    +    getLayerSeries: function () {
    +        var data = this.getData();
    +        var lenCount = data.count();
    +        var indexArr = [];
    +
    +        for (var i = 0; i < lenCount; ++i) {
    +            indexArr[i] = i;
    +        }
    +        // data group by name
    +        var dataByName = nest()
    +            .key(function (index) {
    +                return data.get('name', index);
    +            })
    +            .entries(indexArr);
    +
    +        var layerSeries = map(dataByName, function (d) {
    +            return {
    +                name: d.key,
    +                indices: d.values
    +            };
    +        });
    +
    +        for (var j = 0; j < layerSeries.length; ++j) {
    +            layerSeries[j].indices.sort(comparer);
    +        }
    +
    +        function comparer(index1, index2) {
    +            return data.get('time', index1) - data.get('time', index2);
    +        }
    +
    +        return layerSeries;
    +    },
    +
    +    /**
    +     * Get data indices for show tooltip content
    +     *
    +     * @param {Array.<string>|string} dim  single coordinate dimension
    +     * @param {number} value axis value
    +     * @param {module:echarts/coord/single/SingleAxis} baseAxis  single Axis used
    +     *     the themeRiver.
    +     * @return {Object} {dataIndices, nestestValue}
    +     */
    +    getAxisTooltipData: function (dim, value, baseAxis) {
    +        if (!isArray(dim)) {
    +            dim = dim ? [dim] : [];
    +        }
    +
    +        var data = this.getData();
    +        var layerSeries = this.getLayerSeries();
    +        var indices = [];
    +        var layerNum = layerSeries.length;
    +        var nestestValue;
    +
    +        for (var i = 0; i < layerNum; ++i) {
    +            var minDist = Number.MAX_VALUE;
    +            var nearestIdx = -1;
    +            var pointNum = layerSeries[i].indices.length;
    +            for (var j = 0; j < pointNum; ++j) {
    +                var theValue = data.get(dim[0], layerSeries[i].indices[j]);
    +                var dist = Math.abs(theValue - value);
    +                if (dist <= minDist) {
    +                    nestestValue = theValue;
    +                    minDist = dist;
    +                    nearestIdx = layerSeries[i].indices[j];
    +                }
    +            }
    +            indices.push(nearestIdx);
    +        }
    +
    +        return {dataIndices: indices, nestestValue: nestestValue};
    +    },
    +
    +    /**
    +     * @override
    +     * @param {number} dataIndex  index of data
    +     */
    +    formatTooltip: function (dataIndex) {
    +        var data = this.getData();
    +        var htmlName = data.get('name', dataIndex);
    +        var htmlValue = data.get('value', dataIndex);
    +        if (isNaN(htmlValue) || htmlValue == null) {
    +            htmlValue = '-';
    +        }
    +        return encodeHTML(htmlName + ' : ' + htmlValue);
    +    },
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +
    +        coordinateSystem: 'singleAxis',
    +
    +        // gap in axis's orthogonal orientation
    +        boundaryGap: ['10%', '10%'],
    +
    +        // legendHoverLink: true,
    +
    +        singleAxisIndex: 0,
    +
    +        animationEasing: 'linear',
    +
    +        label: {
    +            normal: {
    +                margin: 4,
    +                textAlign: 'right',
    +                show: true,
    +                position: 'left',
    +                color: '#000',
    +                fontSize: 11
    +            },
    +            emphasis: {
    +                show: true
    +            }
    +        }
    +    }
    +});
    +
    +/**
    + * @file  The file used to draw themeRiver view
    + * @author  Deqing Li(annong035@gmail.com)
    + */
    +
    +extendChartView({
    +
    +    type: 'themeRiver',
    +
    +    init: function () {
    +        this._layers = [];
    +    },
    +
    +    render: function (seriesModel, ecModel, api) {
    +        var data = seriesModel.getData();
    +
    +        var group = this.group;
    +
    +        var layerSeries = seriesModel.getLayerSeries();
    +
    +        var layoutInfo = data.getLayout('layoutInfo');
    +        var rect = layoutInfo.rect;
    +        var boundaryGap = layoutInfo.boundaryGap;
    +
    +        group.attr('position', [0, rect.y + boundaryGap[0]]);
    +
    +        function keyGetter(item) {
    +            return item.name;
    +        }
    +        var dataDiffer = new DataDiffer(
    +            this._layersSeries || [], layerSeries,
    +            keyGetter, keyGetter
    +        );
    +
    +        var newLayersGroups = {};
    +
    +        dataDiffer
    +            .add(bind(process, this, 'add'))
    +            .update(bind(process, this, 'update'))
    +            .remove(bind(process, this, 'remove'))
    +            .execute();
    +
    +        function process(status, idx, oldIdx) {
    +            var oldLayersGroups = this._layers;
    +            if (status === 'remove') {
    +                group.remove(oldLayersGroups[idx]);
    +                return;
    +            }
    +            var points0 = [];
    +            var points1 = [];
    +            var color;
    +            var indices = layerSeries[idx].indices;
    +            for (var j = 0; j < indices.length; j++) {
    +                var layout = data.getItemLayout(indices[j]);
    +                var x = layout.x;
    +                var y0 = layout.y0;
    +                var y = layout.y;
    +
    +                points0.push([x, y0]);
    +                points1.push([x, y0 + y]);
    +
    +                color = data.getItemVisual(indices[j], 'color');
    +            }
    +
    +            var polygon;
    +            var text;
    +            var textLayout = data.getItemLayout(indices[0]);
    +            var itemModel = data.getItemModel(indices[j - 1]);
    +            var labelModel = itemModel.getModel('label.normal');
    +            var margin = labelModel.get('margin');
    +            if (status === 'add') {
    +                var layerGroup = newLayersGroups[idx] = new Group();
    +                polygon = new Polygon$1({
    +                    shape: {
    +                        points: points0,
    +                        stackedOnPoints: points1,
    +                        smooth: 0.4,
    +                        stackedOnSmooth: 0.4,
    +                        smoothConstraint: false
    +                    },
    +                    z2: 0
    +                });
    +                text = new Text({
    +                    style: {
    +                        x: textLayout.x - margin,
    +                        y: textLayout.y0 + textLayout.y / 2
    +                    }
    +                });
    +                layerGroup.add(polygon);
    +                layerGroup.add(text);
    +                group.add(layerGroup);
    +
    +                polygon.setClipPath(createGridClipShape$3(polygon.getBoundingRect(), seriesModel, function () {
    +                    polygon.removeClipPath();
    +                }));
    +            }
    +            else {
    +                var layerGroup = oldLayersGroups[oldIdx];
    +                polygon = layerGroup.childAt(0);
    +                text = layerGroup.childAt(1);
    +                group.add(layerGroup);
    +
    +                newLayersGroups[idx] = layerGroup;
    +
    +                updateProps(polygon, {
    +                    shape: {
    +                        points: points0,
    +                        stackedOnPoints: points1
    +                    }
    +                }, seriesModel);
    +
    +                updateProps(text, {
    +                    style: {
    +                        x: textLayout.x - margin,
    +                        y: textLayout.y0 + textLayout.y / 2
    +                    }
    +                }, seriesModel);
    +            }
    +
    +            var hoverItemStyleModel = itemModel.getModel('itemStyle.emphasis');
    +            var itemStyleModel = itemModel.getModel('itemStyle.normal');
    +
    +            setTextStyle(text.style, labelModel, {
    +                text: labelModel.get('show')
    +                    ? seriesModel.getFormattedLabel(indices[j - 1], 'normal')
    +                        || data.getName(indices[j - 1])
    +                    : null,
    +                textVerticalAlign: 'middle'
    +            });
    +
    +            polygon.setStyle(extend({
    +                fill: color
    +            }, itemStyleModel.getItemStyle(['color'])));
    +
    +            setHoverStyle(polygon, hoverItemStyleModel.getItemStyle());
    +        }
    +
    +        this._layersSeries = layerSeries;
    +        this._layers = newLayersGroups;
    +    },
    +
    +    dispose: function () {}
    +});
    +
    +// add animation to the view
    +function createGridClipShape$3(rect, seriesModel, cb) {
    +    var rectEl = new Rect({
    +        shape: {
    +            x: rect.x - 10,
    +            y: rect.y - 10,
    +            width: 0,
    +            height: rect.height + 20
    +        }
    +    });
    +    initProps(rectEl, {
    +        shape: {
    +            width: rect.width + 20,
    +            height: rect.height + 20
    +        }
    +    }, seriesModel, cb);
    +
    +    return rectEl;
    +}
    +
    +/**
    + * @file  Using layout algorithm transform the raw data to layout information.
    + * @author Deqing Li(annong035@gmail.com)
    + */
    +
    +var themeRiverLayout = function (ecModel, api) {
    +
    +    ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
    +
    +        var data = seriesModel.getData();
    +
    +        var single = seriesModel.coordinateSystem;
    +
    +        var layoutInfo = {};
    +
    +        // use the axis boundingRect for view
    +        var rect = single.getRect();
    +
    +        layoutInfo.rect = rect;
    +
    +        var boundaryGap = seriesModel.get('boundaryGap');
    +
    +        var axis = single.getAxis();
    +
    +        layoutInfo.boundaryGap = boundaryGap;
    +
    +        if (axis.orient === 'horizontal') {
    +            boundaryGap[0] = parsePercent$1(boundaryGap[0], rect.height);
    +            boundaryGap[1] = parsePercent$1(boundaryGap[1], rect.height);
    +            var height = rect.height - boundaryGap[0] - boundaryGap[1];
    +            themeRiverLayout$1(data, seriesModel, height);
    +        }
    +        else {
    +            boundaryGap[0] = parsePercent$1(boundaryGap[0], rect.width);
    +            boundaryGap[1] = parsePercent$1(boundaryGap[1], rect.width);
    +            var width = rect.width - boundaryGap[0] - boundaryGap[1];
    +            themeRiverLayout$1(data, seriesModel, width);
    +        }
    +
    +        data.setLayout('layoutInfo', layoutInfo);
    +    });
    +};
    +
    +/**
    + * The layout information about themeriver
    + *
    + * @param {module:echarts/data/List} data  data in the series
    + * @param {module:echarts/model/Series} seriesModel  the model object of themeRiver series
    + * @param {number} height  value used to compute every series height
    + */
    +function themeRiverLayout$1(data, seriesModel, height) {
    +    if (!data.count()) {
    +        return;
    +    }
    +    var coordSys = seriesModel.coordinateSystem;
    +    // the data in each layer are organized into a series.
    +    var layerSeries = seriesModel.getLayerSeries();
    +
    +    // the points in each layer.
    +    var layerPoints = map(layerSeries, function (singleLayer) {
    +        return map(singleLayer.indices, function (idx) {
    +            var pt = coordSys.dataToPoint(data.get('time', idx));
    +            pt[1] = data.get('value', idx);
    +            return pt;
    +        });
    +    });
    +
    +    var base = computeBaseline(layerPoints);
    +    var baseLine = base.y0;
    +    var ky = height / base.max;
    +
    +    // set layout information for each item.
    +    var n = layerSeries.length;
    +    var m = layerSeries[0].indices.length;
    +    var baseY0;
    +    for (var j = 0; j < m; ++j) {
    +        baseY0 = baseLine[j] * ky;
    +        data.setItemLayout(layerSeries[0].indices[j], {
    +            layerIndex: 0,
    +            x: layerPoints[0][j][0],
    +            y0: baseY0,
    +            y: layerPoints[0][j][1] * ky
    +        });
    +        for (var i = 1; i < n; ++i) {
    +            baseY0 += layerPoints[i - 1][j][1] * ky;
    +            data.setItemLayout(layerSeries[i].indices[j], {
    +                layerIndex: i,
    +                x: layerPoints[i][j][0],
    +                y0: baseY0,
    +                y: layerPoints[i][j][1] * ky
    +            });
    +        }
    +    }
    +}
    +
    +/**
    + * Compute the baseLine of the rawdata
    + * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics
    + *
    + * @param  {Array.<Array>} data  the points in each layer
    + * @return {Object}
    + */
    +function computeBaseline(data) {
    +    var layerNum = data.length;
    +    var pointNum = data[0].length;
    +    var sums = [];
    +    var y0 = [];
    +    var max = 0;
    +    var temp;
    +    var base = {};
    +
    +    for (var i = 0; i < pointNum; ++i) {
    +        for (var j = 0, temp = 0; j < layerNum; ++j) {
    +            temp += data[j][i][1];
    +        }
    +        if (temp > max) {
    +            max = temp;
    +        }
    +        sums.push(temp);
    +    }
    +
    +    for (var k = 0; k < pointNum; ++k) {
    +        y0[k] = (max - sums[k]) / 2;
    +    }
    +    max = 0;
    +
    +    for (var l = 0; l < pointNum; ++l) {
    +        var sum = sums[l] + y0[l];
    +        if (sum > max) {
    +            max = sum;
    +        }
    +    }
    +    base.y0 = y0;
    +    base.max = max;
    +
    +    return base;
    +}
    +
    +/**
    + * @file Visual encoding for themeRiver view
    + * @author  Deqing Li(annong035@gmail.com)
    + */
    +
    +var themeRiverVisual = function (ecModel) {
    +    ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var rawData = seriesModel.getRawData();
    +        var colorList = seriesModel.get('color');
    +        var idxMap = createHashMap();
    +
    +        data.each(function (idx) {
    +            idxMap.set(data.getRawIndex(idx), idx);
    +        });
    +
    +        rawData.each(function (rawIndex) {
    +            var name = rawData.getName(rawIndex);
    +            var color = colorList[(seriesModel.nameMap.get(name) - 1) % colorList.length];
    +
    +            rawData.setItemVisual(rawIndex, 'color', color);
    +
    +            var idx = idxMap.get(rawIndex);
    +
    +            if (idx != null) {
    +                data.setItemVisual(idx, 'color', color);
    +            }
    +        });
    +    });
    +};
    +
    +registerLayout(themeRiverLayout);
    +registerVisual(themeRiverVisual);
    +registerProcessor(curry(dataFilter, 'themeRiver'));
    +
    +function dataToCoordSize(dataSize, dataItem) {
    +    // dataItem is necessary in log axis.
    +    dataItem = dataItem || [0, 0];
    +    return map(['x', 'y'], function (dim, dimIdx) {
    +        var axis = this.getAxis(dim);
    +        var val = dataItem[dimIdx];
    +        var halfSize = dataSize[dimIdx] / 2;
    +        return axis.type === 'category'
    +            ? axis.getBandWidth()
    +            : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));
    +    }, this);
    +}
    +
    +var prepareCartesian2d = function (coordSys) {
    +    var rect = coordSys.grid.getRect();
    +    return {
    +        coordSys: {
    +            // The name exposed to user is always 'cartesian2d' but not 'grid'.
    +            type: 'cartesian2d',
    +            x: rect.x,
    +            y: rect.y,
    +            width: rect.width,
    +            height: rect.height
    +        },
    +        api: {
    +            coord: bind(coordSys.dataToPoint, coordSys),
    +            size: bind(dataToCoordSize, coordSys)
    +        }
    +    };
    +};
    +
    +function dataToCoordSize$1(dataSize, dataItem) {
    +    dataItem = dataItem || [0, 0];
    +    return map([0, 1], function (dimIdx) {
    +        var val = dataItem[dimIdx];
    +        var halfSize = dataSize[dimIdx] / 2;
    +        var p1 = [];
    +        var p2 = [];
    +        p1[dimIdx] = val - halfSize;
    +        p2[dimIdx] = val + halfSize;
    +        p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx];
    +        return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]);
    +    }, this);
    +}
    +
    +var prepareGeo = function (coordSys) {
    +    var rect = coordSys.getBoundingRect();
    +    return {
    +        coordSys: {
    +            type: 'geo',
    +            x: rect.x,
    +            y: rect.y,
    +            width: rect.width,
    +            height: rect.height
    +        },
    +        api: {
    +            coord: bind(coordSys.dataToPoint, coordSys),
    +            size: bind(dataToCoordSize$1, coordSys)
    +        }
    +    };
    +};
    +
    +function dataToCoordSize$2(dataSize, dataItem) {
    +    // dataItem is necessary in log axis.
    +    var axis = this.getAxis();
    +    var val = dataItem instanceof Array ? dataItem[0] : dataItem;
    +    var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;
    +    return axis.type === 'category'
    +        ? axis.getBandWidth()
    +        : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));
    +}
    +
    +var prepareSingleAxis = function (coordSys) {
    +    var rect = coordSys.getRect();
    +
    +    return {
    +        coordSys: {
    +            type: 'singleAxis',
    +            x: rect.x,
    +            y: rect.y,
    +            width: rect.width,
    +            height: rect.height
    +        },
    +        api: {
    +            coord: bind(coordSys.dataToPoint, coordSys),
    +            size: bind(dataToCoordSize$2, coordSys)
    +        }
    +    };
    +};
    +
    +function dataToCoordSize$3(dataSize, dataItem) {
    +    // dataItem is necessary in log axis.
    +    return map(['Radius', 'Angle'], function (dim, dimIdx) {
    +        var axis = this['get' + dim + 'Axis']();
    +        var val = dataItem[dimIdx];
    +        var halfSize = dataSize[dimIdx] / 2;
    +        var method = 'dataTo' + dim;
    +
    +        var result = axis.type === 'category'
    +            ? axis.getBandWidth()
    +            : Math.abs(axis[method](val - halfSize) - axis[method](val + halfSize));
    +
    +        if (dim === 'Angle') {
    +            result = result * Math.PI / 180;
    +        }
    +
    +        return result;
    +
    +    }, this);
    +}
    +
    +var preparePolar = function (coordSys) {
    +    var radiusAxis = coordSys.getRadiusAxis();
    +    var angleAxis = coordSys.getAngleAxis();
    +    var radius = radiusAxis.getExtent();
    +    radius[0] > radius[1] && radius.reverse();
    +
    +    return {
    +        coordSys: {
    +            type: 'polar',
    +            cx: coordSys.cx,
    +            cy: coordSys.cy,
    +            r: radius[1],
    +            r0: radius[0]
    +        },
    +        api: {
    +            coord: bind(function (data) {
    +                var radius = radiusAxis.dataToRadius(data[0]);
    +                var angle = angleAxis.dataToAngle(data[1]);
    +                var coord = coordSys.coordToPoint([radius, angle]);
    +                coord.push(radius, angle * Math.PI / 180);
    +                return coord;
    +            }),
    +            size: bind(dataToCoordSize$3, coordSys)
    +        }
    +    };
    +};
    +
    +var prepareCalendar = function (coordSys) {
    +    var rect = coordSys.getRect();
    +    var rangeInfo = coordSys.getRangeInfo();
    +
    +    return {
    +        coordSys: {
    +            type: 'calendar',
    +            x: rect.x,
    +            y: rect.y,
    +            width: rect.width,
    +            height: rect.height,
    +            cellWidth: coordSys.getCellWidth(),
    +            cellHeight: coordSys.getCellHeight(),
    +            rangeInfo: {
    +                start: rangeInfo.start,
    +                end: rangeInfo.end,
    +                weeks: rangeInfo.weeks,
    +                dayCount: rangeInfo.allDay
    +            }
    +        },
    +        api: {
    +            coord: bind(coordSys.dataToPoint, coordSys)
    +        }
    +    };
    +};
    +
    +var ITEM_STYLE_NORMAL_PATH = ['itemStyle', 'normal'];
    +var ITEM_STYLE_EMPHASIS_PATH = ['itemStyle', 'emphasis'];
    +var LABEL_NORMAL = ['label', 'normal'];
    +var LABEL_EMPHASIS = ['label', 'emphasis'];
    +// Use prefix to avoid index to be the same as el.name,
    +// which will cause weird udpate animation.
    +var GROUP_DIFF_PREFIX = 'e\0\0';
    +
    +/**
    + * To reduce total package size of each coordinate systems, the modules `prepareCustom`
    + * of each coordinate systems are not required by each coordinate systems directly, but
    + * required by the module `custom`.
    + *
    + * prepareInfoForCustomSeries {Function}: optional
    + *     @return {Object} {coordSys: {...}, api: {
    + *         coord: function (data, clamp) {}, // return point in global.
    + *         size: function (dataSize, dataItem) {} // return size of each axis in coordSys.
    + *     }}
    + */
    +var prepareCustoms = {
    +    cartesian2d: prepareCartesian2d,
    +    geo: prepareGeo,
    +    singleAxis: prepareSingleAxis,
    +    polar: preparePolar,
    +    calendar: prepareCalendar
    +};
    +
    +// ------
    +// Model
    +// ------
    +
    +extendSeriesModel({
    +
    +    type: 'series.custom',
    +
    +    dependencies: ['grid', 'polar', 'geo', 'singleAxis', 'calendar'],
    +
    +    defaultOption: {
    +        coordinateSystem: 'cartesian2d', // Can be set as 'none'
    +        zlevel: 0,
    +        z: 2,
    +        legendHoverLink: true
    +
    +        // Cartesian coordinate system
    +        // xAxisIndex: 0,
    +        // yAxisIndex: 0,
    +
    +        // Polar coordinate system
    +        // polarIndex: 0,
    +
    +        // Geo coordinate system
    +        // geoIndex: 0,
    +
    +        // label: {}
    +        // itemStyle: {}
    +    },
    +
    +    getInitialData: function (option, ecModel) {
    +        return createListFromArray(option.data, this, ecModel);
    +    }
    +});
    +
    +// -----
    +// View
    +// -----
    +
    +extendChartView({
    +
    +    type: 'custom',
    +
    +    /**
    +     * @private
    +     * @type {module:echarts/data/List}
    +     */
    +    _data: null,
    +
    +    /**
    +     * @override
    +     */
    +    render: function (customSeries, ecModel, api) {
    +        var oldData = this._data;
    +        var data = customSeries.getData();
    +        var group = this.group;
    +        var renderItem = makeRenderItem(customSeries, data, ecModel, api);
    +
    +        data.diff(oldData)
    +            .add(function (newIdx) {
    +                data.hasValue(newIdx) && createOrUpdate$1(
    +                    null, newIdx, renderItem(newIdx), customSeries, group, data
    +                );
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var el = oldData.getItemGraphicEl(oldIdx);
    +                data.hasValue(newIdx)
    +                    ? createOrUpdate$1(
    +                        el, newIdx, renderItem(newIdx), customSeries, group, data
    +                    )
    +                    : (el && group.remove(el));
    +            })
    +            .remove(function (oldIdx) {
    +                var el = oldData.getItemGraphicEl(oldIdx);
    +                el && group.remove(el);
    +            })
    +            .execute();
    +
    +        this._data = data;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: noop
    +});
    +
    +
    +function createEl(elOption) {
    +    var graphicType = elOption.type;
    +    var el;
    +
    +    if (graphicType === 'path') {
    +        var shape = elOption.shape;
    +        el = makePath(
    +            shape.pathData,
    +            null,
    +            {
    +                x: shape.x || 0,
    +                y: shape.y || 0,
    +                width: shape.width || 0,
    +                height: shape.height || 0
    +            },
    +            'center'
    +        );
    +        el.__customPathData = elOption.pathData;
    +    }
    +    else if (graphicType === 'image') {
    +        el = new ZImage({
    +        });
    +        el.__customImagePath = elOption.style.image;
    +    }
    +    else if (graphicType === 'text') {
    +        el = new Text({
    +        });
    +        el.__customText = elOption.style.text;
    +    }
    +    else {
    +        var Clz = graphic[graphicType.charAt(0).toUpperCase() + graphicType.slice(1)];
    +
    +        if (__DEV__) {
    +            assert(Clz, 'graphic type "' + graphicType + '" can not be found.');
    +        }
    +
    +        el = new Clz();
    +    }
    +
    +    el.__customGraphicType = graphicType;
    +    el.name = elOption.name;
    +
    +    return el;
    +}
    +
    +function updateEl(el, dataIndex, elOption, animatableModel, data, isInit) {
    +    var targetProps = {};
    +    var elOptionStyle = elOption.style || {};
    +
    +    elOption.shape && (targetProps.shape = clone(elOption.shape));
    +    elOption.position && (targetProps.position = elOption.position.slice());
    +    elOption.scale && (targetProps.scale = elOption.scale.slice());
    +    elOption.origin && (targetProps.origin = elOption.origin.slice());
    +    elOption.rotation && (targetProps.rotation = elOption.rotation);
    +
    +    if (el.type === 'image' && elOption.style) {
    +        var targetStyle = targetProps.style = {};
    +        each$1(['x', 'y', 'width', 'height'], function (prop) {
    +            prepareStyleTransition(prop, targetStyle, elOptionStyle, el.style, isInit);
    +        });
    +    }
    +
    +    if (el.type === 'text' && elOption.style) {
    +        var targetStyle = targetProps.style = {};
    +        each$1(['x', 'y'], function (prop) {
    +            prepareStyleTransition(prop, targetStyle, elOptionStyle, el.style, isInit);
    +        });
    +        // Compatible with previous: both support
    +        // textFill and fill, textStroke and stroke in 'text' element.
    +        !elOptionStyle.hasOwnProperty('textFill') && elOptionStyle.fill && (
    +            elOptionStyle.textFill = elOptionStyle.fill
    +        );
    +        !elOptionStyle.hasOwnProperty('textStroke') && elOptionStyle.stroke && (
    +            elOptionStyle.textStroke = elOptionStyle.stroke
    +        );
    +    }
    +
    +    if (el.type !== 'group') {
    +        el.useStyle(elOptionStyle);
    +
    +        // Init animation.
    +        if (isInit) {
    +            el.style.opacity = 0;
    +            var targetOpacity = elOptionStyle.opacity;
    +            targetOpacity == null && (targetOpacity = 1);
    +            initProps(el, {style: {opacity: targetOpacity}}, animatableModel, dataIndex);
    +        }
    +    }
    +
    +    if (isInit) {
    +        el.attr(targetProps);
    +    }
    +    else {
    +        updateProps(el, targetProps, animatableModel, dataIndex);
    +    }
    +
    +    // z2 must not be null/undefined, otherwise sort error may occur.
    +    el.attr({z2: elOption.z2 || 0, silent: elOption.silent});
    +
    +    elOption.styleEmphasis !== false && setHoverStyle(el, elOption.styleEmphasis);
    +}
    +
    +function prepareStyleTransition(prop, targetStyle, elOptionStyle, oldElStyle, isInit) {
    +    if (elOptionStyle[prop] != null && !isInit) {
    +        targetStyle[prop] = elOptionStyle[prop];
    +        elOptionStyle[prop] = oldElStyle[prop];
    +    }
    +}
    +
    +function makeRenderItem(customSeries, data, ecModel, api) {
    +    var renderItem = customSeries.get('renderItem');
    +    var coordSys = customSeries.coordinateSystem;
    +    var prepareResult = {};
    +
    +    if (coordSys) {
    +        if (__DEV__) {
    +            assert(renderItem, 'series.render is required.');
    +            assert(
    +                coordSys.prepareCustoms || prepareCustoms[coordSys.type],
    +                'This coordSys does not support custom series.'
    +            );
    +        }
    +
    +        prepareResult = coordSys.prepareCustoms
    +            ? coordSys.prepareCustoms()
    +            : prepareCustoms[coordSys.type](coordSys);
    +    }
    +
    +    var userAPI = defaults({
    +        getWidth: api.getWidth,
    +        getHeight: api.getHeight,
    +        getZr: api.getZr,
    +        getDevicePixelRatio: api.getDevicePixelRatio,
    +        value: value,
    +        style: style,
    +        styleEmphasis: styleEmphasis,
    +        visual: visual,
    +        barLayout: barLayout,
    +        currentSeriesIndices: currentSeriesIndices,
    +        font: font
    +    }, prepareResult.api || {});
    +
    +    var userParams = {
    +        context: {},
    +        seriesId: customSeries.id,
    +        seriesName: customSeries.name,
    +        seriesIndex: customSeries.seriesIndex,
    +        coordSys: prepareResult.coordSys,
    +        dataInsideLength: data.count(),
    +        encode: wrapEncodeDef(customSeries.getData())
    +    };
    +
    +    // Do not support call `api` asynchronously without dataIndexInside input.
    +    var currDataIndexInside;
    +    var currDirty = true;
    +    var currItemModel;
    +    var currLabelNormalModel;
    +    var currLabelEmphasisModel;
    +    var currLabelValueDim;
    +    var currVisualColor;
    +
    +    return function (dataIndexInside) {
    +        currDataIndexInside = dataIndexInside;
    +        currDirty = true;
    +        return renderItem && renderItem(
    +            defaults({
    +                dataIndexInside: dataIndexInside,
    +                dataIndex: data.getRawIndex(dataIndexInside)
    +            }, userParams),
    +            userAPI
    +        ) || {};
    +    };
    +
    +    // Do not update cache until api called.
    +    function updateCache(dataIndexInside) {
    +        dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    +        if (currDirty) {
    +            currItemModel = data.getItemModel(dataIndexInside);
    +            currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);
    +            currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);
    +            currLabelValueDim = findLabelValueDim(data);
    +            currVisualColor = data.getItemVisual(dataIndexInside, 'color');
    +
    +            currDirty = false;
    +        }
    +    }
    +
    +    /**
    +     * @public
    +     * @param {number|string} dim
    +     * @param {number} [dataIndexInside=currDataIndexInside]
    +     * @return {number|string} value
    +     */
    +    function value(dim, dataIndexInside) {
    +        dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    +        return data.get(data.getDimension(dim || 0), dataIndexInside);
    +    }
    +
    +    /**
    +     * By default, `visual` is applied to style (to support visualMap).
    +     * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,
    +     * it can be implemented as:
    +     * `api.style({stroke: api.visual('color'), fill: null})`;
    +     * @public
    +     * @param {Object} [extra]
    +     * @param {number} [dataIndexInside=currDataIndexInside]
    +     */
    +    function style(extra, dataIndexInside) {
    +        dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    +        updateCache(dataIndexInside);
    +
    +        var itemStyle = currItemModel.getModel(ITEM_STYLE_NORMAL_PATH).getItemStyle();
    +
    +        currVisualColor != null && (itemStyle.fill = currVisualColor);
    +        var opacity = data.getItemVisual(dataIndexInside, 'opacity');
    +        opacity != null && (itemStyle.opacity = opacity);
    +
    +        if (currLabelValueDim != null) {
    +            setTextStyle(itemStyle, currLabelNormalModel, null, {
    +                autoColor: currVisualColor,
    +                isRectText: true
    +            });
    +
    +            itemStyle.text = currLabelNormalModel.getShallow('show')
    +                ? retrieve2(
    +                    customSeries.getFormattedLabel(dataIndexInside, 'normal'),
    +                    data.get(currLabelValueDim, dataIndexInside)
    +                )
    +                : null;
    +        }
    +
    +        extra && extend(itemStyle, extra);
    +        return itemStyle;
    +    }
    +
    +    /**
    +     * @public
    +     * @param {Object} [extra]
    +     * @param {number} [dataIndexInside=currDataIndexInside]
    +     */
    +    function styleEmphasis(extra, dataIndexInside) {
    +        dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    +        updateCache(dataIndexInside);
    +
    +        var itemStyle = currItemModel.getModel(ITEM_STYLE_EMPHASIS_PATH).getItemStyle();
    +
    +        if (currLabelValueDim != null) {
    +            setTextStyle(itemStyle, currLabelEmphasisModel, null, {
    +                isRectText: true
    +            }, true);
    +
    +            itemStyle.text = currLabelEmphasisModel.getShallow('show')
    +                ? retrieve3(
    +                    customSeries.getFormattedLabel(dataIndexInside, 'emphasis'),
    +                    customSeries.getFormattedLabel(dataIndexInside, 'normal'),
    +                    data.get(currLabelValueDim, dataIndexInside)
    +                )
    +                : null;
    +        }
    +
    +        extra && extend(itemStyle, extra);
    +        return itemStyle;
    +    }
    +
    +    /**
    +     * @public
    +     * @param {string} visualType
    +     * @param {number} [dataIndexInside=currDataIndexInside]
    +     */
    +    function visual(visualType, dataIndexInside) {
    +        dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    +        return data.getItemVisual(dataIndexInside, visualType);
    +    }
    +
    +    /**
    +     * @public
    +     * @param {number} opt.count Positive interger.
    +     * @param {number} [opt.barWidth]
    +     * @param {number} [opt.barMaxWidth]
    +     * @param {number} [opt.barGap]
    +     * @param {number} [opt.barCategoryGap]
    +     * @return {Object} {width, offset, offsetCenter} is not support, return undefined.
    +     */
    +    function barLayout(opt) {
    +        if (coordSys.getBaseAxis) {
    +            var baseAxis = coordSys.getBaseAxis();
    +            return barLayoutGrid.getLayoutOnAxis(defaults({axis: baseAxis}, opt), api);
    +        }
    +    }
    +
    +    /**
    +     * @public
    +     * @return {Array.<number>}
    +     */
    +    function currentSeriesIndices() {
    +        return ecModel.getCurrentSeriesIndices();
    +    }
    +
    +    /**
    +     * @public
    +     * @param {Object} opt
    +     * @param {string} [opt.fontStyle]
    +     * @param {number} [opt.fontWeight]
    +     * @param {number} [opt.fontSize]
    +     * @param {string} [opt.fontFamily]
    +     * @return {string} font string
    +     */
    +    function font(opt) {
    +        return getFont(opt, ecModel);
    +    }
    +}
    +
    +function wrapEncodeDef(data) {
    +    var encodeDef = {};
    +    each$1(data.dimensions, function (dimName, dataDimIndex) {
    +        var dimInfo = data.getDimensionInfo(dimName);
    +        if (!dimInfo.isExtraCoord) {
    +            var coordDim = dimInfo.coordDim;
    +            var dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];
    +            dataDims[dimInfo.coordDimIndex] = dataDimIndex;
    +        }
    +    });
    +    return encodeDef;
    +}
    +
    +function createOrUpdate$1(el, dataIndex, elOption, animatableModel, group, data) {
    +    el = doCreateOrUpdate(el, dataIndex, elOption, animatableModel, group, data);
    +    el && data.setItemGraphicEl(dataIndex, el);
    +}
    +
    +function doCreateOrUpdate(el, dataIndex, elOption, animatableModel, group, data) {
    +    var elOptionType = elOption.type;
    +    if (el
    +        && elOptionType !== el.__customGraphicType
    +        && (elOptionType !== 'path' || elOption.pathData !== el.__customPathData)
    +        && (elOptionType !== 'image' || elOption.style.image !== el.__customImagePath)
    +        && (elOptionType !== 'text' || elOption.style.text !== el.__customText)
    +    ) {
    +        group.remove(el);
    +        el = null;
    +    }
    +
    +    // `elOption.type` is undefined when `renderItem` returns nothing.
    +    if (elOptionType == null) {
    +        return;
    +    }
    +
    +    var isInit = !el;
    +    !el && (el = createEl(elOption));
    +    updateEl(el, dataIndex, elOption, animatableModel, data, isInit);
    +
    +    if (elOptionType === 'group') {
    +        var oldChildren = el.children() || [];
    +        var newChildren = elOption.children || [];
    +
    +        if (elOption.diffChildrenByName) {
    +            // lower performance.
    +            diffGroupChildren({
    +                oldChildren: oldChildren,
    +                newChildren: newChildren,
    +                dataIndex: dataIndex,
    +                animatableModel: animatableModel,
    +                group: el,
    +                data: data
    +            });
    +        }
    +        else {
    +            // better performance.
    +            var index = 0;
    +            for (; index < newChildren.length; index++) {
    +                doCreateOrUpdate(
    +                    el.childAt(index),
    +                    dataIndex,
    +                    newChildren[index],
    +                    animatableModel,
    +                    el,
    +                    data
    +                );
    +            }
    +            for (; index < oldChildren.length; index++) {
    +                oldChildren[index] && el.remove(oldChildren[index]);
    +            }
    +        }
    +    }
    +
    +    group.add(el);
    +
    +    return el;
    +}
    +
    +function diffGroupChildren(context) {
    +    (new DataDiffer(
    +        context.oldChildren,
    +        context.newChildren,
    +        getKey,
    +        getKey,
    +        context
    +    ))
    +        .add(processAddUpdate)
    +        .update(processAddUpdate)
    +        .remove(processRemove)
    +        .execute();
    +}
    +
    +function getKey(item, idx) {
    +    var name = item && item.name;
    +    return name != null ? name : GROUP_DIFF_PREFIX + idx;
    +}
    +
    +function processAddUpdate(newIndex, oldIndex) {
    +    var context = this.context;
    +    var childOption = newIndex != null ? context.newChildren[newIndex] : null;
    +    var child = oldIndex != null ? context.oldChildren[oldIndex] : null;
    +
    +    doCreateOrUpdate(
    +        child,
    +        context.dataIndex,
    +        childOption,
    +        context.animatableModel,
    +        context.group,
    +        context.data
    +    );
    +}
    +
    +function processRemove(oldIndex) {
    +    var context = this.context;
    +    var child = context.oldChildren[oldIndex];
    +    child && context.group.remove(child);
    +}
    +
    +// -------------
    +// Preprocessor
    +// -------------
    +
    +registerPreprocessor(function (option) {
    +    var graphicOption = option.graphic;
    +
    +    // Convert
    +    // {graphic: [{left: 10, type: 'circle'}, ...]}
    +    // or
    +    // {graphic: {left: 10, type: 'circle'}}
    +    // to
    +    // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}
    +    if (isArray(graphicOption)) {
    +        if (!graphicOption[0] || !graphicOption[0].elements) {
    +            option.graphic = [{elements: graphicOption}];
    +        }
    +        else {
    +            // Only one graphic instance can be instantiated. (We dont
    +            // want that too many views are created in echarts._viewMap)
    +            option.graphic = [option.graphic[0]];
    +        }
    +    }
    +    else if (graphicOption && !graphicOption.elements) {
    +        option.graphic = [{elements: [graphicOption]}];
    +    }
    +});
    +
    +// ------
    +// Model
    +// ------
    +
    +var GraphicModel = extendComponentModel({
    +
    +    type: 'graphic',
    +
    +    defaultOption: {
    +
    +        // Extra properties for each elements:
    +        //
    +        // left/right/top/bottom: (like 12, '22%', 'center', default undefined)
    +        //      If left/rigth is set, shape.x/shape.cx/position will not be used.
    +        //      If top/bottom is set, shape.y/shape.cy/position will not be used.
    +        //      This mechanism is useful when you want to position a group/element
    +        //      against the right side or the center of this container.
    +        //
    +        // width/height: (can only be pixel value, default 0)
    +        //      Only be used to specify contianer(group) size, if needed. And
    +        //      can not be percentage value (like '33%'). See the reason in the
    +        //      layout algorithm below.
    +        //
    +        // bounding: (enum: 'all' (default) | 'raw')
    +        //      Specify how to calculate boundingRect when locating.
    +        //      'all': Get uioned and transformed boundingRect
    +        //          from both itself and its descendants.
    +        //          This mode simplies confining a group of elements in the bounding
    +        //          of their ancester container (e.g., using 'right: 0').
    +        //      'raw': Only use the boundingRect of itself and before transformed.
    +        //          This mode is similar to css behavior, which is useful when you
    +        //          want an element to be able to overflow its container. (Consider
    +        //          a rotated circle needs to be located in a corner.)
    +
    +        // Note: elements is always behind its ancestors in this elements array.
    +        elements: [],
    +        parentId: null
    +    },
    +
    +    /**
    +     * Save el options for the sake of the performance (only update modified graphics).
    +     * The order is the same as those in option. (ancesters -> descendants)
    +     *
    +     * @private
    +     * @type {Array.<Object>}
    +     */
    +    _elOptionsToUpdate: null,
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function (option) {
    +        // Prevent default merge to elements
    +        var elements = this.option.elements;
    +        this.option.elements = null;
    +
    +        GraphicModel.superApply(this, 'mergeOption', arguments);
    +
    +        this.option.elements = elements;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    optionUpdated: function (newOption, isInit) {
    +        var thisOption = this.option;
    +        var newList = (isInit ? thisOption : newOption).elements;
    +        var existList = thisOption.elements = isInit ? [] : thisOption.elements;
    +
    +        var flattenedList = [];
    +        this._flatten(newList, flattenedList);
    +
    +        var mappingResult = mappingToExists(existList, flattenedList);
    +        makeIdAndName(mappingResult);
    +
    +        // Clear elOptionsToUpdate
    +        var elOptionsToUpdate = this._elOptionsToUpdate = [];
    +
    +        each$1(mappingResult, function (resultItem, index) {
    +            var newElOption = resultItem.option;
    +
    +            if (__DEV__) {
    +                assert(
    +                    isObject(newElOption) || resultItem.exist,
    +                    'Empty graphic option definition'
    +                );
    +            }
    +
    +            if (!newElOption) {
    +                return;
    +            }
    +
    +            elOptionsToUpdate.push(newElOption);
    +
    +            setKeyInfoToNewElOption(resultItem, newElOption);
    +
    +            mergeNewElOptionToExist(existList, index, newElOption);
    +
    +            setLayoutInfoToExist(existList[index], newElOption);
    +
    +        }, this);
    +
    +        // Clean
    +        for (var i = existList.length - 1; i >= 0; i--) {
    +            if (existList[i] == null) {
    +                existList.splice(i, 1);
    +            }
    +            else {
    +                // $action should be volatile, otherwise option gotten from
    +                // `getOption` will contain unexpected $action.
    +                delete existList[i].$action;
    +            }
    +        }
    +    },
    +
    +    /**
    +     * Convert
    +     * [{
    +     *  type: 'group',
    +     *  id: 'xx',
    +     *  children: [{type: 'circle'}, {type: 'polygon'}]
    +     * }]
    +     * to
    +     * [
    +     *  {type: 'group', id: 'xx'},
    +     *  {type: 'circle', parentId: 'xx'},
    +     *  {type: 'polygon', parentId: 'xx'}
    +     * ]
    +     *
    +     * @private
    +     * @param {Array.<Object>} optionList option list
    +     * @param {Array.<Object>} result result of flatten
    +     * @param {Object} parentOption parent option
    +     */
    +    _flatten: function (optionList, result, parentOption) {
    +        each$1(optionList, function (option) {
    +            if (!option) {
    +                return;
    +            }
    +
    +            if (parentOption) {
    +                option.parentOption = parentOption;
    +            }
    +
    +            result.push(option);
    +
    +            var children = option.children;
    +            if (option.type === 'group' && children) {
    +                this._flatten(children, result, option);
    +            }
    +            // Deleting for JSON output, and for not affecting group creation.
    +            delete option.children;
    +        }, this);
    +    },
    +
    +    // FIXME
    +    // Pass to view using payload? setOption has a payload?
    +    useElOptionsToUpdate: function () {
    +        var els = this._elOptionsToUpdate;
    +        // Clear to avoid render duplicately when zooming.
    +        this._elOptionsToUpdate = null;
    +        return els;
    +    }
    +});
    +
    +// -----
    +// View
    +// -----
    +
    +extendComponentView({
    +
    +    type: 'graphic',
    +
    +    /**
    +     * @override
    +     */
    +    init: function (ecModel, api) {
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/core/util.HashMap}
    +         */
    +        this._elMap = createHashMap();
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/graphic/GraphicModel}
    +         */
    +        this._lastGraphicModel;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (graphicModel, ecModel, api) {
    +
    +        // Having leveraged between use cases and algorithm complexity, a very
    +        // simple layout mechanism is used:
    +        // The size(width/height) can be determined by itself or its parent (not
    +        // implemented yet), but can not by its children. (Top-down travel)
    +        // The location(x/y) can be determined by the bounding rect of itself
    +        // (can including its descendants or not) and the size of its parent.
    +        // (Bottom-up travel)
    +
    +        // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,
    +        // view will be reused.
    +        if (graphicModel !== this._lastGraphicModel) {
    +            this._clear();
    +        }
    +        this._lastGraphicModel = graphicModel;
    +
    +        this._updateElements(graphicModel, api);
    +        this._relocate(graphicModel, api);
    +    },
    +
    +    /**
    +     * Update graphic elements.
    +     *
    +     * @private
    +     * @param {Object} graphicModel graphic model
    +     * @param {module:echarts/ExtensionAPI} api extension API
    +     */
    +    _updateElements: function (graphicModel, api) {
    +        var elOptionsToUpdate = graphicModel.useElOptionsToUpdate();
    +
    +        if (!elOptionsToUpdate) {
    +            return;
    +        }
    +
    +        var elMap = this._elMap;
    +        var rootGroup = this.group;
    +
    +        // Top-down tranverse to assign graphic settings to each elements.
    +        each$1(elOptionsToUpdate, function (elOption) {
    +            var $action = elOption.$action;
    +            var id = elOption.id;
    +            var existEl = elMap.get(id);
    +            var parentId = elOption.parentId;
    +            var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup;
    +
    +            if (elOption.type === 'text') {
    +                var elOptionStyle = elOption.style;
    +
    +                // In top/bottom mode, textVerticalAlign should not be used, which cause
    +                // inaccurately locating.
    +                if (elOption.hv && elOption.hv[1]) {
    +                    elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = null;
    +                }
    +
    +                // Compatible with previous setting: both support fill and textFill,
    +                // stroke and textStroke.
    +                !elOptionStyle.hasOwnProperty('textFill') && elOptionStyle.fill && (
    +                    elOptionStyle.textFill = elOptionStyle.fill
    +                );
    +                !elOptionStyle.hasOwnProperty('textStroke') && elOptionStyle.stroke && (
    +                    elOptionStyle.textStroke = elOptionStyle.stroke
    +                );
    +            }
    +
    +            // Remove unnecessary props to avoid potential problems.
    +            var elOptionCleaned = getCleanedElOption(elOption);
    +
    +            // For simple, do not support parent change, otherwise reorder is needed.
    +            if (__DEV__) {
    +                existEl && assert(
    +                    targetElParent === existEl.parent,
    +                    'Changing parent is not supported.'
    +                );
    +            }
    +
    +            if (!$action || $action === 'merge') {
    +                existEl
    +                    ? existEl.attr(elOptionCleaned)
    +                    : createEl$1(id, targetElParent, elOptionCleaned, elMap);
    +            }
    +            else if ($action === 'replace') {
    +                removeEl(existEl, elMap);
    +                createEl$1(id, targetElParent, elOptionCleaned, elMap);
    +            }
    +            else if ($action === 'remove') {
    +                removeEl(existEl, elMap);
    +            }
    +
    +            var el = elMap.get(id);
    +            if (el) {
    +                el.__ecGraphicWidth = elOption.width;
    +                el.__ecGraphicHeight = elOption.height;
    +            }
    +        });
    +    },
    +
    +    /**
    +     * Locate graphic elements.
    +     *
    +     * @private
    +     * @param {Object} graphicModel graphic model
    +     * @param {module:echarts/ExtensionAPI} api extension API
    +     */
    +    _relocate: function (graphicModel, api) {
    +        var elOptions = graphicModel.option.elements;
    +        var rootGroup = this.group;
    +        var elMap = this._elMap;
    +
    +        // Bottom-up tranvese all elements (consider ec resize) to locate elements.
    +        for (var i = elOptions.length - 1; i >= 0; i--) {
    +            var elOption = elOptions[i];
    +            var el = elMap.get(elOption.id);
    +
    +            if (!el) {
    +                continue;
    +            }
    +
    +            var parentEl = el.parent;
    +            var containerInfo = parentEl === rootGroup
    +                ? {
    +                    width: api.getWidth(),
    +                    height: api.getHeight()
    +                }
    +                : { // Like 'position:absolut' in css, default 0.
    +                    width: parentEl.__ecGraphicWidth || 0,
    +                    height: parentEl.__ecGraphicHeight || 0
    +                };
    +
    +            positionElement(
    +                el, elOption, containerInfo, null,
    +                {hv: elOption.hv, boundingMode: elOption.bounding}
    +            );
    +        }
    +    },
    +
    +    /**
    +     * Clear all elements.
    +     *
    +     * @private
    +     */
    +    _clear: function () {
    +        var elMap = this._elMap;
    +        elMap.each(function (el) {
    +            removeEl(el, elMap);
    +        });
    +        this._elMap = createHashMap();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        this._clear();
    +    }
    +});
    +
    +function createEl$1(id, targetElParent, elOption, elMap) {
    +    var graphicType = elOption.type;
    +
    +    if (__DEV__) {
    +        assert(graphicType, 'graphic type MUST be set');
    +    }
    +
    +    var Clz = graphic[graphicType.charAt(0).toUpperCase() + graphicType.slice(1)];
    +
    +    if (__DEV__) {
    +        assert(Clz, 'graphic type can not be found');
    +    }
    +
    +    var el = new Clz(elOption);
    +    targetElParent.add(el);
    +    elMap.set(id, el);
    +    el.__ecGraphicId = id;
    +}
    +
    +function removeEl(existEl, elMap) {
    +    var existElParent = existEl && existEl.parent;
    +    if (existElParent) {
    +        existEl.type === 'group' && existEl.traverse(function (el) {
    +            removeEl(el, elMap);
    +        });
    +        elMap.removeKey(existEl.__ecGraphicId);
    +        existElParent.remove(existEl);
    +    }
    +}
    +
    +// Remove unnecessary props to avoid potential problems.
    +function getCleanedElOption(elOption) {
    +    elOption = extend({}, elOption);
    +    each$1(
    +        ['id', 'parentId', '$action', 'hv', 'bounding'].concat(LOCATION_PARAMS),
    +        function (name) {
    +            delete elOption[name];
    +        }
    +    );
    +    return elOption;
    +}
    +
    +function isSetLoc(obj, props) {
    +    var isSet;
    +    each$1(props, function (prop) {
    +        obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);
    +    });
    +    return isSet;
    +}
    +
    +function setKeyInfoToNewElOption(resultItem, newElOption) {
    +    var existElOption = resultItem.exist;
    +
    +    // Set id and type after id assigned.
    +    newElOption.id = resultItem.keyInfo.id;
    +    !newElOption.type && existElOption && (newElOption.type = existElOption.type);
    +
    +    // Set parent id if not specified
    +    if (newElOption.parentId == null) {
    +        var newElParentOption = newElOption.parentOption;
    +        if (newElParentOption) {
    +            newElOption.parentId = newElParentOption.id;
    +        }
    +        else if (existElOption) {
    +            newElOption.parentId = existElOption.parentId;
    +        }
    +    }
    +
    +    // Clear
    +    newElOption.parentOption = null;
    +}
    +
    +function mergeNewElOptionToExist(existList, index, newElOption) {
    +    // Update existing options, for `getOption` feature.
    +    var newElOptCopy = extend({}, newElOption);
    +    var existElOption = existList[index];
    +
    +    var $action = newElOption.$action || 'merge';
    +    if ($action === 'merge') {
    +        if (existElOption) {
    +
    +            if (__DEV__) {
    +                var newType = newElOption.type;
    +                assert(
    +                    !newType || existElOption.type === newType,
    +                    'Please set $action: "replace" to change `type`'
    +                );
    +            }
    +
    +            // We can ensure that newElOptCopy and existElOption are not
    +            // the same object, so `merge` will not change newElOptCopy.
    +            merge(existElOption, newElOptCopy, true);
    +            // Rigid body, use ignoreSize.
    +            mergeLayoutParam(existElOption, newElOptCopy, {ignoreSize: true});
    +            // Will be used in render.
    +            copyLayoutParams(newElOption, existElOption);
    +        }
    +        else {
    +            existList[index] = newElOptCopy;
    +        }
    +    }
    +    else if ($action === 'replace') {
    +        existList[index] = newElOptCopy;
    +    }
    +    else if ($action === 'remove') {
    +        // null will be cleaned later.
    +        existElOption && (existList[index] = null);
    +    }
    +}
    +
    +function setLayoutInfoToExist(existItem, newElOption) {
    +    if (!existItem) {
    +        return;
    +    }
    +    existItem.hv = newElOption.hv = [
    +        // Rigid body, dont care `width`.
    +        isSetLoc(newElOption, ['left', 'right']),
    +        // Rigid body, dont care `height`.
    +        isSetLoc(newElOption, ['top', 'bottom'])
    +    ];
    +    // Give default group size. Otherwise layout error may occur.
    +    if (existItem.type === 'group') {
    +        existItem.width == null && (existItem.width = newElOption.width = 0);
    +        existItem.height == null && (existItem.height = newElOption.height = 0);
    +    }
    +}
    +
    +var LegendModel = extendComponentModel({
    +
    +    type: 'legend.plain',
    +
    +    dependencies: ['series'],
    +
    +    layoutMode: {
    +        type: 'box',
    +        // legend.width/height are maxWidth/maxHeight actually,
    +        // whereas realy width/height is calculated by its content.
    +        // (Setting {left: 10, right: 10} does not make sense).
    +        // So consider the case:
    +        // `setOption({legend: {left: 10});`
    +        // then `setOption({legend: {right: 10});`
    +        // The previous `left` should be cleared by setting `ignoreSize`.
    +        ignoreSize: true
    +    },
    +
    +    init: function (option, parentModel, ecModel) {
    +        this.mergeDefaultAndTheme(option, ecModel);
    +
    +        option.selected = option.selected || {};
    +    },
    +
    +    mergeOption: function (option) {
    +        LegendModel.superCall(this, 'mergeOption', option);
    +    },
    +
    +    optionUpdated: function () {
    +        this._updateData(this.ecModel);
    +
    +        var legendData = this._data;
    +
    +        // If selectedMode is single, try to select one
    +        if (legendData[0] && this.get('selectedMode') === 'single') {
    +            var hasSelected = false;
    +            // If has any selected in option.selected
    +            for (var i = 0; i < legendData.length; i++) {
    +                var name = legendData[i].get('name');
    +                if (this.isSelected(name)) {
    +                    // Force to unselect others
    +                    this.select(name);
    +                    hasSelected = true;
    +                    break;
    +                }
    +            }
    +            // Try select the first if selectedMode is single
    +            !hasSelected && this.select(legendData[0].get('name'));
    +        }
    +    },
    +
    +    _updateData: function (ecModel) {
    +        var legendData = map(this.get('data') || [], function (dataItem) {
    +            // Can be string or number
    +            if (typeof dataItem === 'string' || typeof dataItem === 'number') {
    +                dataItem = {
    +                    name: dataItem
    +                };
    +            }
    +            return new Model(dataItem, this, this.ecModel);
    +        }, this);
    +        this._data = legendData;
    +
    +        var availableNames = map(ecModel.getSeries(), function (series) {
    +            return series.name;
    +        });
    +        ecModel.eachSeries(function (seriesModel) {
    +            if (seriesModel.legendDataProvider) {
    +                var data = seriesModel.legendDataProvider();
    +                availableNames = availableNames.concat(data.mapArray(data.getName));
    +            }
    +        });
    +        /**
    +         * @type {Array.<string>}
    +         * @private
    +         */
    +        this._availableNames = availableNames;
    +    },
    +
    +    /**
    +     * @return {Array.<module:echarts/model/Model>}
    +     */
    +    getData: function () {
    +        return this._data;
    +    },
    +
    +    /**
    +     * @param {string} name
    +     */
    +    select: function (name) {
    +        var selected = this.option.selected;
    +        var selectedMode = this.get('selectedMode');
    +        if (selectedMode === 'single') {
    +            var data = this._data;
    +            each$1(data, function (dataItem) {
    +                selected[dataItem.get('name')] = false;
    +            });
    +        }
    +        selected[name] = true;
    +    },
    +
    +    /**
    +     * @param {string} name
    +     */
    +    unSelect: function (name) {
    +        if (this.get('selectedMode') !== 'single') {
    +            this.option.selected[name] = false;
    +        }
    +    },
    +
    +    /**
    +     * @param {string} name
    +     */
    +    toggleSelected: function (name) {
    +        var selected = this.option.selected;
    +        // Default is true
    +        if (!selected.hasOwnProperty(name)) {
    +            selected[name] = true;
    +        }
    +        this[selected[name] ? 'unSelect' : 'select'](name);
    +    },
    +
    +    /**
    +     * @param {string} name
    +     */
    +    isSelected: function (name) {
    +        var selected = this.option.selected;
    +        return !(selected.hasOwnProperty(name) && !selected[name])
    +            && indexOf(this._availableNames, name) >= 0;
    +    },
    +
    +    defaultOption: {
    +        // 一级层叠
    +        zlevel: 0,
    +        // 二级层叠
    +        z: 4,
    +        show: true,
    +
    +        // 布局方式,默认为水平布局,可选为:
    +        // 'horizontal' | 'vertical'
    +        orient: 'horizontal',
    +
    +        left: 'center',
    +        // right: 'center',
    +
    +        top: 0,
    +        // bottom: null,
    +
    +        // 水平对齐
    +        // 'auto' | 'left' | 'right'
    +        // 默认为 'auto', 根据 x 的位置判断是左对齐还是右对齐
    +        align: 'auto',
    +
    +        backgroundColor: 'rgba(0,0,0,0)',
    +        // 图例边框颜色
    +        borderColor: '#ccc',
    +        borderRadius: 0,
    +        // 图例边框线宽,单位px,默认为0(无边框)
    +        borderWidth: 0,
    +        // 图例内边距,单位px,默认各方向内边距为5,
    +        // 接受数组分别设定上右下左边距,同css
    +        padding: 5,
    +        // 各个item之间的间隔,单位px,默认为10,
    +        // 横向布局时为水平间隔,纵向布局时为纵向间隔
    +        itemGap: 10,
    +        // 图例图形宽度
    +        itemWidth: 25,
    +        // 图例图形高度
    +        itemHeight: 14,
    +
    +        // 图例关闭时候的颜色
    +        inactiveColor: '#ccc',
    +
    +        textStyle: {
    +            // 图例文字颜色
    +            color: '#333'
    +        },
    +        // formatter: '',
    +        // 选择模式,默认开启图例开关
    +        selectedMode: true,
    +        // 配置默认选中状态,可配合LEGEND.SELECTED事件做动态数据载入
    +        // selected: null,
    +        // 图例内容(详见legend.data,数组中每一项代表一个item
    +        // data: [],
    +
    +        // Tooltip 相关配置
    +        tooltip: {
    +            show: false
    +        }
    +    }
    +});
    +
    +function legendSelectActionHandler(methodName, payload, ecModel) {
    +    var selectedMap = {};
    +    var isToggleSelect = methodName === 'toggleSelected';
    +    var isSelected;
    +    // Update all legend components
    +    ecModel.eachComponent('legend', function (legendModel) {
    +        if (isToggleSelect && isSelected != null) {
    +            // Force other legend has same selected status
    +            // Or the first is toggled to true and other are toggled to false
    +            // In the case one legend has some item unSelected in option. And if other legend
    +            // doesn't has the item, they will assume it is selected.
    +            legendModel[isSelected ? 'select' : 'unSelect'](payload.name);
    +        }
    +        else {
    +            legendModel[methodName](payload.name);
    +            isSelected = legendModel.isSelected(payload.name);
    +        }
    +        var legendData = legendModel.getData();
    +        each$1(legendData, function (model) {
    +            var name = model.get('name');
    +            // Wrap element
    +            if (name === '\n' || name === '') {
    +                return;
    +            }
    +            var isItemSelected = legendModel.isSelected(name);
    +            if (selectedMap.hasOwnProperty(name)) {
    +                // Unselected if any legend is unselected
    +                selectedMap[name] = selectedMap[name] && isItemSelected;
    +            }
    +            else {
    +                selectedMap[name] = isItemSelected;
    +            }
    +        });
    +    });
    +    // Return the event explicitly
    +    return {
    +        name: payload.name,
    +        selected: selectedMap
    +    };
    +}
    +/**
    + * @event legendToggleSelect
    + * @type {Object}
    + * @property {string} type 'legendToggleSelect'
    + * @property {string} [from]
    + * @property {string} name Series name or data item name
    + */
    +registerAction(
    +    'legendToggleSelect', 'legendselectchanged',
    +    curry(legendSelectActionHandler, 'toggleSelected')
    +);
    +
    +/**
    + * @event legendSelect
    + * @type {Object}
    + * @property {string} type 'legendSelect'
    + * @property {string} name Series name or data item name
    + */
    +registerAction(
    +    'legendSelect', 'legendselected',
    +    curry(legendSelectActionHandler, 'select')
    +);
    +
    +/**
    + * @event legendUnSelect
    + * @type {Object}
    + * @property {string} type 'legendUnSelect'
    + * @property {string} name Series name or data item name
    + */
    +registerAction(
    +    'legendUnSelect', 'legendunselected',
    +    curry(legendSelectActionHandler, 'unSelect')
    +);
    +
    +/**
    + * Layout list like component.
    + * It will box layout each items in group of component and then position the whole group in the viewport
    + * @param {module:zrender/group/Group} group
    + * @param {module:echarts/model/Component} componentModel
    + * @param {module:echarts/ExtensionAPI}
    + */
    +function layout$2(group, componentModel, api) {
    +    var boxLayoutParams = componentModel.getBoxLayoutParams();
    +    var padding = componentModel.get('padding');
    +    var viewportSize = {width: api.getWidth(), height: api.getHeight()};
    +
    +    var rect = getLayoutRect(
    +        boxLayoutParams,
    +        viewportSize,
    +        padding
    +    );
    +
    +    box(
    +        componentModel.get('orient'),
    +        group,
    +        componentModel.get('itemGap'),
    +        rect.width,
    +        rect.height
    +    );
    +
    +    positionElement(
    +        group,
    +        boxLayoutParams,
    +        viewportSize,
    +        padding
    +    );
    +}
    +
    +function makeBackground(rect, componentModel) {
    +    var padding = normalizeCssArray$1(
    +        componentModel.get('padding')
    +    );
    +    var style = componentModel.getItemStyle(['color', 'opacity']);
    +    style.fill = componentModel.get('backgroundColor');
    +    var rect = new Rect({
    +        shape: {
    +            x: rect.x - padding[3],
    +            y: rect.y - padding[0],
    +            width: rect.width + padding[1] + padding[3],
    +            height: rect.height + padding[0] + padding[2],
    +            r: componentModel.get('borderRadius')
    +        },
    +        style: style,
    +        silent: true,
    +        z2: -1
    +    });
    +    // FIXME
    +    // `subPixelOptimizeRect` may bring some gap between edge of viewpart
    +    // and background rect when setting like `left: 0`, `top: 0`.
    +    // graphic.subPixelOptimizeRect(rect);
    +
    +    return rect;
    +}
    +
    +var curry$4 = curry;
    +var each$19 = each$1;
    +var Group$3 = Group;
    +
    +var LegendView = extendComponentView({
    +
    +    type: 'legend.plain',
    +
    +    newlineDisabled: false,
    +
    +    /**
    +     * @override
    +     */
    +    init: function () {
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/container/Group}
    +         */
    +        this.group.add(this._contentGroup = new Group$3());
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/Element}
    +         */
    +        this._backgroundEl;
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    getContentGroup: function () {
    +        return this._contentGroup;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (legendModel, ecModel, api) {
    +
    +        this.resetInner();
    +
    +        if (!legendModel.get('show', true)) {
    +            return;
    +        }
    +
    +        var itemAlign = legendModel.get('align');
    +        if (!itemAlign || itemAlign === 'auto') {
    +            itemAlign = (
    +                legendModel.get('left') === 'right'
    +                && legendModel.get('orient') === 'vertical'
    +            ) ? 'right' : 'left';
    +        }
    +
    +        this.renderInner(itemAlign, legendModel, ecModel, api);
    +
    +        // Perform layout.
    +        var positionInfo = legendModel.getBoxLayoutParams();
    +        var viewportSize = {width: api.getWidth(), height: api.getHeight()};
    +        var padding = legendModel.get('padding');
    +
    +        var maxSize = getLayoutRect(positionInfo, viewportSize, padding);
    +        var mainRect = this.layoutInner(legendModel, itemAlign, maxSize);
    +
    +        // Place mainGroup, based on the calculated `mainRect`.
    +        var layoutRect = getLayoutRect(
    +            defaults({width: mainRect.width, height: mainRect.height}, positionInfo),
    +            viewportSize,
    +            padding
    +        );
    +        this.group.attr('position', [layoutRect.x - mainRect.x, layoutRect.y - mainRect.y]);
    +
    +        // Render background after group is layout.
    +        this.group.add(
    +            this._backgroundEl = makeBackground(mainRect, legendModel)
    +        );
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    resetInner: function () {
    +        this.getContentGroup().removeAll();
    +        this._backgroundEl && this.group.remove(this._backgroundEl);
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    renderInner: function (itemAlign, legendModel, ecModel, api) {
    +        var contentGroup = this.getContentGroup();
    +        var legendDrawnMap = createHashMap();
    +        var selectMode = legendModel.get('selectedMode');
    +
    +        each$19(legendModel.getData(), function (itemModel, dataIndex) {
    +            var name = itemModel.get('name');
    +
    +            // Use empty string or \n as a newline string
    +            if (!this.newlineDisabled && (name === '' || name === '\n')) {
    +                contentGroup.add(new Group$3({
    +                    newline: true
    +                }));
    +                return;
    +            }
    +
    +            var seriesModel = ecModel.getSeriesByName(name)[0];
    +
    +            if (legendDrawnMap.get(name)) {
    +                // Have been drawed
    +                return;
    +            }
    +
    +            // Series legend
    +            if (seriesModel) {
    +                var data = seriesModel.getData();
    +                var color = data.getVisual('color');
    +
    +                // If color is a callback function
    +                if (typeof color === 'function') {
    +                    // Use the first data
    +                    color = color(seriesModel.getDataParams(0));
    +                }
    +
    +                // Using rect symbol defaultly
    +                var legendSymbolType = data.getVisual('legendSymbol') || 'roundRect';
    +                var symbolType = data.getVisual('symbol');
    +
    +                var itemGroup = this._createItem(
    +                    name, dataIndex, itemModel, legendModel,
    +                    legendSymbolType, symbolType,
    +                    itemAlign, color,
    +                    selectMode
    +                );
    +
    +                itemGroup.on('click', curry$4(dispatchSelectAction, name, api))
    +                    .on('mouseover', curry$4(dispatchHighlightAction, seriesModel, null, api))
    +                    .on('mouseout', curry$4(dispatchDownplayAction, seriesModel, null, api));
    +
    +                legendDrawnMap.set(name, true);
    +            }
    +            else {
    +                // Data legend of pie, funnel
    +                ecModel.eachRawSeries(function (seriesModel) {
    +                    // In case multiple series has same data name
    +                    if (legendDrawnMap.get(name)) {
    +                        return;
    +                    }
    +                    if (seriesModel.legendDataProvider) {
    +                        var data = seriesModel.legendDataProvider();
    +                        var idx = data.indexOfName(name);
    +                        if (idx < 0) {
    +                            return;
    +                        }
    +
    +                        var color = data.getItemVisual(idx, 'color');
    +
    +                        var legendSymbolType = 'roundRect';
    +
    +                        var itemGroup = this._createItem(
    +                            name, dataIndex, itemModel, legendModel,
    +                            legendSymbolType, null,
    +                            itemAlign, color,
    +                            selectMode
    +                        );
    +
    +                        itemGroup.on('click', curry$4(dispatchSelectAction, name, api))
    +                            // FIXME Should not specify the series name
    +                            .on('mouseover', curry$4(dispatchHighlightAction, seriesModel, name, api))
    +                            .on('mouseout', curry$4(dispatchDownplayAction, seriesModel, name, api));
    +
    +                        legendDrawnMap.set(name, true);
    +                    }
    +                }, this);
    +            }
    +
    +            if (__DEV__) {
    +                if (!legendDrawnMap.get(name)) {
    +                    console.warn(name + ' series not exists. Legend data should be same with series name or data name.');
    +                }
    +            }
    +        }, this);
    +    },
    +
    +    _createItem: function (
    +        name, dataIndex, itemModel, legendModel,
    +        legendSymbolType, symbolType,
    +        itemAlign, color, selectMode
    +    ) {
    +        var itemWidth = legendModel.get('itemWidth');
    +        var itemHeight = legendModel.get('itemHeight');
    +        var inactiveColor = legendModel.get('inactiveColor');
    +
    +        var isSelected = legendModel.isSelected(name);
    +        var itemGroup = new Group$3();
    +
    +        var textStyleModel = itemModel.getModel('textStyle');
    +
    +        var itemIcon = itemModel.get('icon');
    +
    +        var tooltipModel = itemModel.getModel('tooltip');
    +        var legendGlobalTooltipModel = tooltipModel.parentModel;
    +
    +        // Use user given icon first
    +        legendSymbolType = itemIcon || legendSymbolType;
    +        itemGroup.add(createSymbol(
    +            legendSymbolType,
    +            0,
    +            0,
    +            itemWidth,
    +            itemHeight,
    +            isSelected ? color : inactiveColor,
    +            true
    +        ));
    +
    +        // Compose symbols
    +        // PENDING
    +        if (!itemIcon && symbolType
    +            // At least show one symbol, can't be all none
    +            && ((symbolType !== legendSymbolType) || symbolType == 'none')
    +        ) {
    +            var size = itemHeight * 0.8;
    +            if (symbolType === 'none') {
    +                symbolType = 'circle';
    +            }
    +            // Put symbol in the center
    +            itemGroup.add(createSymbol(
    +                symbolType, (itemWidth - size) / 2, (itemHeight - size) / 2, size, size,
    +                isSelected ? color : inactiveColor
    +            ));
    +        }
    +
    +        var textX = itemAlign === 'left' ? itemWidth + 5 : -5;
    +        var textAlign = itemAlign;
    +
    +        var formatter = legendModel.get('formatter');
    +        var content = name;
    +        if (typeof formatter === 'string' && formatter) {
    +            content = formatter.replace('{name}', name != null ? name : '');
    +        }
    +        else if (typeof formatter === 'function') {
    +            content = formatter(name);
    +        }
    +
    +        itemGroup.add(new Text({
    +            style: setTextStyle({}, textStyleModel, {
    +                text: content,
    +                x: textX,
    +                y: itemHeight / 2,
    +                textFill: isSelected ? textStyleModel.getTextColor() : inactiveColor,
    +                textAlign: textAlign,
    +                textVerticalAlign: 'middle'
    +            })
    +        }));
    +
    +        // Add a invisible rect to increase the area of mouse hover
    +        var hitRect = new Rect({
    +            shape: itemGroup.getBoundingRect(),
    +            invisible: true,
    +            tooltip: tooltipModel.get('show') ? extend({
    +                content: name,
    +                // Defaul formatter
    +                formatter: legendGlobalTooltipModel.get('formatter', true) || function () {
    +                    return name;
    +                },
    +                formatterParams: {
    +                    componentType: 'legend',
    +                    legendIndex: legendModel.componentIndex,
    +                    name: name,
    +                    $vars: ['name']
    +                }
    +            }, tooltipModel.option) : null
    +        });
    +        itemGroup.add(hitRect);
    +
    +        itemGroup.eachChild(function (child) {
    +            child.silent = true;
    +        });
    +
    +        hitRect.silent = !selectMode;
    +
    +        this.getContentGroup().add(itemGroup);
    +
    +        setHoverStyle(itemGroup);
    +
    +        itemGroup.__legendDataIndex = dataIndex;
    +
    +        return itemGroup;
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    layoutInner: function (legendModel, itemAlign, maxSize) {
    +        var contentGroup = this.getContentGroup();
    +
    +        // Place items in contentGroup.
    +        box(
    +            legendModel.get('orient'),
    +            contentGroup,
    +            legendModel.get('itemGap'),
    +            maxSize.width,
    +            maxSize.height
    +        );
    +
    +        var contentRect = contentGroup.getBoundingRect();
    +        contentGroup.attr('position', [-contentRect.x, -contentRect.y]);
    +
    +        return this.group.getBoundingRect();
    +    }
    +
    +});
    +
    +function dispatchSelectAction(name, api) {
    +    api.dispatchAction({
    +        type: 'legendToggleSelect',
    +        name: name
    +    });
    +}
    +
    +function dispatchHighlightAction(seriesModel, dataName, api) {
    +    // If element hover will move to a hoverLayer.
    +    var el = api.getZr().storage.getDisplayList()[0];
    +    if (!(el && el.useHoverLayer)) {
    +        seriesModel.get('legendHoverLink') && api.dispatchAction({
    +            type: 'highlight',
    +            seriesName: seriesModel.name,
    +            name: dataName
    +        });
    +    }
    +}
    +
    +function dispatchDownplayAction(seriesModel, dataName, api) {
    +    // If element hover will move to a hoverLayer.
    +    var el = api.getZr().storage.getDisplayList()[0];
    +    if (!(el && el.useHoverLayer)) {
    +        seriesModel.get('legendHoverLink') && api.dispatchAction({
    +            type: 'downplay',
    +            seriesName: seriesModel.name,
    +            name: dataName
    +        });
    +    }
    +}
    +
    +var legendFilter = function (ecModel) {
    +
    +    var legendModels = ecModel.findComponents({
    +        mainType: 'legend'
    +    });
    +    if (legendModels && legendModels.length) {
    +        ecModel.filterSeries(function (series) {
    +            // If in any legend component the status is not selected.
    +            // Because in legend series is assumed selected when it is not in the legend data.
    +            for (var i = 0; i < legendModels.length; i++) {
    +                if (!legendModels[i].isSelected(series.name)) {
    +                    return false;
    +                }
    +            }
    +            return true;
    +        });
    +    }
    +
    +};
    +
    +// Do not contain scrollable legend, for sake of file size.
    +
    +// Series Filter
    +registerProcessor(legendFilter);
    +
    +ComponentModel.registerSubTypeDefaulter('legend', function () {
    +    // Default 'plain' when no type specified.
    +    return 'plain';
    +});
    +
    +var ScrollableLegendModel = LegendModel.extend({
    +
    +    type: 'legend.scroll',
    +
    +    /**
    +     * @param {number} scrollDataIndex
    +     */
    +    setScrollDataIndex: function (scrollDataIndex) {
    +        this.option.scrollDataIndex = scrollDataIndex;
    +    },
    +
    +    defaultOption: {
    +        scrollDataIndex: 0,
    +        pageButtonItemGap: 5,
    +        pageButtonGap: null,
    +        pageButtonPosition: 'end', // 'start' or 'end'
    +        pageFormatter: '{current}/{total}', // If null/undefined, do not show page.
    +        pageIcons: {
    +            horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],
    +            vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']
    +        },
    +        pageIconColor: '#2f4554',
    +        pageIconInactiveColor: '#aaa',
    +        pageIconSize: 15, // Can be [10, 3], which represents [width, height]
    +        pageTextStyle: {
    +            color: '#333'
    +        },
    +
    +        animationDurationUpdate: 800
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    init: function (option, parentModel, ecModel, extraOpt) {
    +        var inputPositionParams = getLayoutParams(option);
    +
    +        ScrollableLegendModel.superCall(this, 'init', option, parentModel, ecModel, extraOpt);
    +
    +        mergeAndNormalizeLayoutParams(this, option, inputPositionParams);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function (option, extraOpt) {
    +        ScrollableLegendModel.superCall(this, 'mergeOption', option, extraOpt);
    +
    +        mergeAndNormalizeLayoutParams(this, this.option, option);
    +    },
    +
    +    getOrient: function () {
    +        return this.get('orient') === 'vertical'
    +            ? {index: 1, name: 'vertical'}
    +            : {index: 0, name: 'horizontal'};
    +    }
    +
    +});
    +
    +// Do not `ignoreSize` to enable setting {left: 10, right: 10}.
    +function mergeAndNormalizeLayoutParams(legendModel, target, raw) {
    +    var orient = legendModel.getOrient();
    +    var ignoreSize = [1, 1];
    +    ignoreSize[orient.index] = 0;
    +    mergeLayoutParam(target, raw, {
    +        type: 'box', ignoreSize: ignoreSize
    +    });
    +}
    +
    +/**
    + * Separate legend and scrollable legend to reduce package size.
    + */
    +
    +var Group$4 = Group;
    +
    +var WH$1 = ['width', 'height'];
    +var XY$1 = ['x', 'y'];
    +
    +var ScrollableLegendView = LegendView.extend({
    +
    +    type: 'legend.scroll',
    +
    +    newlineDisabled: true,
    +
    +    init: function () {
    +
    +        ScrollableLegendView.superCall(this, 'init');
    +
    +        /**
    +         * @private
    +         * @type {number} For `scroll`.
    +         */
    +        this._currentIndex = 0;
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/container/Group}
    +         */
    +        this.group.add(this._containerGroup = new Group$4());
    +        this._containerGroup.add(this.getContentGroup());
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/container/Group}
    +         */
    +        this.group.add(this._controllerGroup = new Group$4());
    +
    +        /**
    +         *
    +         * @private
    +         */
    +        this._showController;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    resetInner: function () {
    +        ScrollableLegendView.superCall(this, 'resetInner');
    +
    +        this._controllerGroup.removeAll();
    +        this._containerGroup.removeClipPath();
    +        this._containerGroup.__rectSize = null;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    renderInner: function (itemAlign, legendModel, ecModel, api) {
    +        var me = this;
    +
    +        // Render content items.
    +        ScrollableLegendView.superCall(this, 'renderInner', itemAlign, legendModel, ecModel, api);
    +
    +        var controllerGroup = this._controllerGroup;
    +
    +        var pageIconSize = legendModel.get('pageIconSize', true);
    +        if (!isArray(pageIconSize)) {
    +            pageIconSize = [pageIconSize, pageIconSize];
    +        }
    +
    +        createPageButton('pagePrev', 0);
    +
    +        var pageTextStyleModel = legendModel.getModel('pageTextStyle');
    +        controllerGroup.add(new Text({
    +            name: 'pageText',
    +            style: {
    +                textFill: pageTextStyleModel.getTextColor(),
    +                font: pageTextStyleModel.getFont(),
    +                textVerticalAlign: 'middle',
    +                textAlign: 'center'
    +            },
    +            silent: true
    +        }));
    +
    +        createPageButton('pageNext', 1);
    +
    +        function createPageButton(name, iconIdx) {
    +            var pageDataIndexName = name + 'DataIndex';
    +            var icon = createIcon(
    +                legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx],
    +                {
    +                    // Buttons will be created in each render, so we do not need
    +                    // to worry about avoiding using legendModel kept in scope.
    +                    onclick: bind(
    +                        me._pageGo, me, pageDataIndexName, legendModel, api
    +                    )
    +                },
    +                {
    +                    x: -pageIconSize[0] / 2,
    +                    y: -pageIconSize[1] / 2,
    +                    width: pageIconSize[0],
    +                    height: pageIconSize[1]
    +                }
    +            );
    +            icon.name = name;
    +            controllerGroup.add(icon);
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    layoutInner: function (legendModel, itemAlign, maxSize) {
    +        var contentGroup = this.getContentGroup();
    +        var containerGroup = this._containerGroup;
    +        var controllerGroup = this._controllerGroup;
    +
    +        var orientIdx = legendModel.getOrient().index;
    +        var wh = WH$1[orientIdx];
    +        var hw = WH$1[1 - orientIdx];
    +        var yx = XY$1[1 - orientIdx];
    +
    +        // Place items in contentGroup.
    +        box(
    +            legendModel.get('orient'),
    +            contentGroup,
    +            legendModel.get('itemGap'),
    +            !orientIdx ? null : maxSize.width,
    +            orientIdx ? null : maxSize.height
    +        );
    +
    +        box(
    +            // Buttons in controller are layout always horizontally.
    +            'horizontal',
    +            controllerGroup,
    +            legendModel.get('pageButtonItemGap', true)
    +        );
    +
    +        var contentRect = contentGroup.getBoundingRect();
    +        var controllerRect = controllerGroup.getBoundingRect();
    +        var showController = this._showController = contentRect[wh] > maxSize[wh];
    +
    +        var contentPos = [-contentRect.x, -contentRect.y];
    +        // Remain contentPos when scroll animation perfroming.
    +        contentPos[orientIdx] = contentGroup.position[orientIdx];
    +
    +        // Layout container group based on 0.
    +        var containerPos = [0, 0];
    +        var controllerPos = [-controllerRect.x, -controllerRect.y];
    +        var pageButtonGap = retrieve2(
    +            legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)
    +        );
    +
    +        // Place containerGroup and controllerGroup and contentGroup.
    +        if (showController) {
    +            var pageButtonPosition = legendModel.get('pageButtonPosition', true);
    +            // controller is on the right / bottom.
    +            if (pageButtonPosition === 'end') {
    +                controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];
    +            }
    +            // controller is on the left / top.
    +            else {
    +                containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;
    +            }
    +        }
    +
    +        // Always align controller to content as 'middle'.
    +        controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;
    +
    +        contentGroup.attr('position', contentPos);
    +        containerGroup.attr('position', containerPos);
    +        controllerGroup.attr('position', controllerPos);
    +
    +        // Calculate `mainRect` and set `clipPath`.
    +        // mainRect should not be calculated by `this.group.getBoundingRect()`
    +        // for sake of the overflow.
    +        var mainRect = this.group.getBoundingRect();
    +        var mainRect = {x: 0, y: 0};
    +        // Consider content may be overflow (should be clipped).
    +        mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];
    +        mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]);
    +        // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.
    +        mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);
    +
    +        containerGroup.__rectSize = maxSize[wh];
    +        if (showController) {
    +            var clipShape = {x: 0, y: 0};
    +            clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);
    +            clipShape[hw] = mainRect[hw];
    +            containerGroup.setClipPath(new Rect({shape: clipShape}));
    +            // Consider content may be larger than container, container rect
    +            // can not be obtained from `containerGroup.getBoundingRect()`.
    +            containerGroup.__rectSize = clipShape[wh];
    +        }
    +        else {
    +            // Do not remove or ignore controller. Keep them set as place holders.
    +            controllerGroup.eachChild(function (child) {
    +                child.attr({invisible: true, silent: true});
    +            });
    +        }
    +
    +        // Content translate animation.
    +        var pageInfo = this._getPageInfo(legendModel);
    +        pageInfo.pageIndex != null && updateProps(
    +            contentGroup,
    +            {position: pageInfo.contentPosition},
    +            // When switch from "show controller" to "not show controller", view should be
    +            // updated immediately without animation, otherwise causes weird efffect.
    +            showController ? legendModel : false
    +        );
    +
    +        this._updatePageInfoView(legendModel, pageInfo);
    +
    +        return mainRect;
    +    },
    +
    +    _pageGo: function (to, legendModel, api) {
    +        var scrollDataIndex = this._getPageInfo(legendModel)[to];
    +
    +        scrollDataIndex != null && api.dispatchAction({
    +            type: 'legendScroll',
    +            scrollDataIndex: scrollDataIndex,
    +            legendId: legendModel.id
    +        });
    +    },
    +
    +    _updatePageInfoView: function (legendModel, pageInfo) {
    +        var controllerGroup = this._controllerGroup;
    +
    +        each$1(['pagePrev', 'pageNext'], function (name) {
    +            var canJump = pageInfo[name + 'DataIndex'] != null;
    +            var icon = controllerGroup.childOfName(name);
    +            if (icon) {
    +                icon.setStyle(
    +                    'fill',
    +                    canJump
    +                        ? legendModel.get('pageIconColor', true)
    +                        : legendModel.get('pageIconInactiveColor', true)
    +                );
    +                icon.cursor = canJump ? 'pointer' : 'default';
    +            }
    +        });
    +
    +        var pageText = controllerGroup.childOfName('pageText');
    +        var pageFormatter = legendModel.get('pageFormatter');
    +        var pageIndex = pageInfo.pageIndex;
    +        var current = pageIndex != null ? pageIndex + 1 : 0;
    +        var total = pageInfo.pageCount;
    +
    +        pageText && pageFormatter && pageText.setStyle(
    +            'text',
    +            isString(pageFormatter)
    +                ? pageFormatter.replace('{current}', current).replace('{total}', total)
    +                : pageFormatter({current: current, total: total})
    +        );
    +    },
    +
    +    /**
    +     * @param {module:echarts/model/Model} legendModel
    +     * @return {Object} {
    +     *  contentPosition: Array.<number>, null when data item not found.
    +     *  pageIndex: number, null when data item not found.
    +     *  pageCount: number, always be a number, can be 0.
    +     *  pagePrevDataIndex: number, null when no next page.
    +     *  pageNextDataIndex: number, null when no previous page.
    +     * }
    +     */
    +    _getPageInfo: function (legendModel) {
    +        // Align left or top by the current dataIndex.
    +        var currDataIndex = legendModel.get('scrollDataIndex', true);
    +        var contentGroup = this.getContentGroup();
    +        var contentRect = contentGroup.getBoundingRect();
    +        var containerRectSize = this._containerGroup.__rectSize;
    +
    +        var orientIdx = legendModel.getOrient().index;
    +        var wh = WH$1[orientIdx];
    +        var hw = WH$1[1 - orientIdx];
    +        var xy = XY$1[orientIdx];
    +        var contentPos = contentGroup.position.slice();
    +
    +        var pageIndex;
    +        var pagePrevDataIndex;
    +        var pageNextDataIndex;
    +
    +        var targetItemGroup;
    +        if (this._showController) {
    +            contentGroup.eachChild(function (child) {
    +                if (child.__legendDataIndex === currDataIndex) {
    +                    targetItemGroup = child;
    +                }
    +            });
    +        }
    +        else {
    +            targetItemGroup = contentGroup.childAt(0);
    +        }
    +
    +        var pageCount = containerRectSize ? Math.ceil(contentRect[wh] / containerRectSize) : 0;
    +
    +        if (targetItemGroup) {
    +            var itemRect = targetItemGroup.getBoundingRect();
    +            var itemLoc = targetItemGroup.position[orientIdx] + itemRect[xy];
    +            contentPos[orientIdx] = -itemLoc - contentRect[xy];
    +            pageIndex = Math.floor(
    +                pageCount * (itemLoc + itemRect[xy] + containerRectSize / 2) / contentRect[wh]
    +            );
    +            pageIndex = (contentRect[wh] && pageCount)
    +                ? Math.max(0, Math.min(pageCount - 1, pageIndex))
    +                : -1;
    +
    +            var winRect = {x: 0, y: 0};
    +            winRect[wh] = containerRectSize;
    +            winRect[hw] = contentRect[hw];
    +            winRect[xy] = -contentPos[orientIdx] - contentRect[xy];
    +
    +            var startIdx;
    +            var children = contentGroup.children();
    +
    +            contentGroup.eachChild(function (child, index) {
    +                var itemRect = getItemRect(child);
    +
    +                if (itemRect.intersect(winRect)) {
    +                    startIdx == null && (startIdx = index);
    +                    // It is user-friendly that the last item shown in the
    +                    // current window is shown at the begining of next window.
    +                    pageNextDataIndex = child.__legendDataIndex;
    +                }
    +
    +                // If the last item is shown entirely, no next page.
    +                if (index === children.length - 1
    +                    && itemRect[xy] + itemRect[wh] <= winRect[xy] + winRect[wh]
    +                ) {
    +                    pageNextDataIndex = null;
    +                }
    +            });
    +
    +            // Always align based on the left/top most item, so the left/top most
    +            // item in the previous window is needed to be found here.
    +            if (startIdx != null) {
    +                var startItem = children[startIdx];
    +                var startRect = getItemRect(startItem);
    +                winRect[xy] = startRect[xy] + startRect[wh] - winRect[wh];
    +
    +                // If the first item is shown entirely, no previous page.
    +                if (startIdx <= 0 && startRect[xy] >= winRect[xy]) {
    +                    pagePrevDataIndex = null;
    +                }
    +                else {
    +                    while (startIdx > 0 && getItemRect(children[startIdx - 1]).intersect(winRect)) {
    +                        startIdx--;
    +                    }
    +                    pagePrevDataIndex = children[startIdx].__legendDataIndex;
    +                }
    +            }
    +        }
    +
    +        return {
    +            contentPosition: contentPos,
    +            pageIndex: pageIndex,
    +            pageCount: pageCount,
    +            pagePrevDataIndex: pagePrevDataIndex,
    +            pageNextDataIndex: pageNextDataIndex
    +        };
    +
    +        function getItemRect(el) {
    +            var itemRect = el.getBoundingRect().clone();
    +            itemRect[xy] += el.position[orientIdx];
    +            return itemRect;
    +        }
    +    }
    +
    +});
    +
    +/**
    + * @event legendScroll
    + * @type {Object}
    + * @property {string} type 'legendScroll'
    + * @property {string} scrollDataIndex
    + */
    +registerAction(
    +    'legendScroll', 'legendscroll',
    +    function (payload, ecModel) {
    +        var scrollDataIndex = payload.scrollDataIndex;
    +
    +        scrollDataIndex != null && ecModel.eachComponent(
    +            {mainType: 'legend', subType: 'scroll', query: payload},
    +            function (legendModel) {
    +                legendModel.setScrollDataIndex(scrollDataIndex);
    +            }
    +        );
    +    }
    +);
    +
    +/**
    + * Legend component entry file8
    + */
    +
    +extendComponentModel({
    +
    +    type: 'tooltip',
    +
    +    dependencies: ['axisPointer'],
    +
    +    defaultOption: {
    +        zlevel: 0,
    +
    +        z: 8,
    +
    +        show: true,
    +
    +        // tooltip主体内容
    +        showContent: true,
    +
    +        // 'trigger' only works on coordinate system.
    +        // 'item' | 'axis' | 'none'
    +        trigger: 'item',
    +
    +        // 'click' | 'mousemove' | 'none'
    +        triggerOn: 'mousemove|click',
    +
    +        alwaysShowContent: false,
    +
    +        displayMode: 'single', // 'single' | 'multipleByCoordSys'
    +
    +        // 位置 {Array} | {Function}
    +        // position: null
    +        // Consider triggered from axisPointer handle, verticalAlign should be 'middle'
    +        // align: null,
    +        // verticalAlign: null,
    +
    +        // 是否约束 content 在 viewRect 中。默认 false 是为了兼容以前版本。
    +        confine: false,
    +
    +        // 内容格式器:{string}(Template) ¦ {Function}
    +        // formatter: null
    +
    +        showDelay: 0,
    +
    +        // 隐藏延迟,单位ms
    +        hideDelay: 100,
    +
    +        // 动画变换时间,单位s
    +        transitionDuration: 0.4,
    +
    +        enterable: false,
    +
    +        // 提示背景颜色,默认为透明度为0.7的黑色
    +        backgroundColor: 'rgba(50,50,50,0.7)',
    +
    +        // 提示边框颜色
    +        borderColor: '#333',
    +
    +        // 提示边框圆角,单位px,默认为4
    +        borderRadius: 4,
    +
    +        // 提示边框线宽,单位px,默认为0(无边框)
    +        borderWidth: 0,
    +
    +        // 提示内边距,单位px,默认各方向内边距为5,
    +        // 接受数组分别设定上右下左边距,同css
    +        padding: 5,
    +
    +        // Extra css text
    +        extraCssText: '',
    +
    +        // 坐标轴指示器,坐标轴触发有效
    +        axisPointer: {
    +            // 默认为直线
    +            // 可选为:'line' | 'shadow' | 'cross'
    +            type: 'line',
    +
    +            // type 为 line 的时候有效,指定 tooltip line 所在的轴,可选
    +            // 可选 'x' | 'y' | 'angle' | 'radius' | 'auto'
    +            // 默认 'auto',会选择类型为 cateogry 的轴,对于双数值轴,笛卡尔坐标系会默认选择 x 轴
    +            // 极坐标系会默认选择 angle 轴
    +            axis: 'auto',
    +
    +            animation: 'auto',
    +            animationDurationUpdate: 200,
    +            animationEasingUpdate: 'exponentialOut',
    +
    +            crossStyle: {
    +                color: '#999',
    +                width: 1,
    +                type: 'dashed',
    +
    +                // TODO formatter
    +                textStyle: {}
    +            }
    +
    +            // lineStyle and shadowStyle should not be specified here,
    +            // otherwise it will always override those styles on option.axisPointer.
    +        },
    +        textStyle: {
    +            color: '#fff',
    +            fontSize: 14
    +        }
    +    }
    +});
    +
    +var each$21 = each$1;
    +var toCamelCase$1 = toCamelCase;
    +
    +var vendors = ['', '-webkit-', '-moz-', '-o-'];
    +
    +var gCssText = 'position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;';
    +
    +/**
    + * @param {number} duration
    + * @return {string}
    + * @inner
    + */
    +function assembleTransition(duration) {
    +    var transitionCurve = 'cubic-bezier(0.23, 1, 0.32, 1)';
    +    var transitionText = 'left ' + duration + 's ' + transitionCurve + ','
    +                        + 'top ' + duration + 's ' + transitionCurve;
    +    return map(vendors, function (vendorPrefix) {
    +        return vendorPrefix + 'transition:' + transitionText;
    +    }).join(';');
    +}
    +
    +/**
    + * @param {Object} textStyle
    + * @return {string}
    + * @inner
    + */
    +function assembleFont(textStyleModel) {
    +    var cssText = [];
    +
    +    var fontSize = textStyleModel.get('fontSize');
    +    var color = textStyleModel.getTextColor();
    +
    +    color && cssText.push('color:' + color);
    +
    +    cssText.push('font:' + textStyleModel.getFont());
    +
    +    fontSize &&
    +        cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');
    +
    +    each$21(['decoration', 'align'], function (name) {
    +        var val = textStyleModel.get(name);
    +        val && cssText.push('text-' + name + ':' + val);
    +    });
    +
    +    return cssText.join(';');
    +}
    +
    +/**
    + * @param {Object} tooltipModel
    + * @return {string}
    + * @inner
    + */
    +function assembleCssText(tooltipModel) {
    +
    +    var cssText = [];
    +
    +    var transitionDuration = tooltipModel.get('transitionDuration');
    +    var backgroundColor = tooltipModel.get('backgroundColor');
    +    var textStyleModel = tooltipModel.getModel('textStyle');
    +    var padding = tooltipModel.get('padding');
    +
    +    // Animation transition. Do not animate when transitionDuration is 0.
    +    transitionDuration &&
    +        cssText.push(assembleTransition(transitionDuration));
    +
    +    if (backgroundColor) {
    +        if (env$1.canvasSupported) {
    +            cssText.push('background-Color:' + backgroundColor);
    +        }
    +        else {
    +            // for ie
    +            cssText.push(
    +                'background-Color:#' + toHex(backgroundColor)
    +            );
    +            cssText.push('filter:alpha(opacity=70)');
    +        }
    +    }
    +
    +    // Border style
    +    each$21(['width', 'color', 'radius'], function (name) {
    +        var borderName = 'border-' + name;
    +        var camelCase = toCamelCase$1(borderName);
    +        var val = tooltipModel.get(camelCase);
    +        val != null &&
    +            cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));
    +    });
    +
    +    // Text style
    +    cssText.push(assembleFont(textStyleModel));
    +
    +    // Padding
    +    if (padding != null) {
    +        cssText.push('padding:' + normalizeCssArray$1(padding).join('px ') + 'px');
    +    }
    +
    +    return cssText.join(';') + ';';
    +}
    +
    +/**
    + * @alias module:echarts/component/tooltip/TooltipContent
    + * @constructor
    + */
    +function TooltipContent(container, api) {
    +    var el = document.createElement('div');
    +    var zr = this._zr = api.getZr();
    +
    +    this.el = el;
    +
    +    this._x = api.getWidth() / 2;
    +    this._y = api.getHeight() / 2;
    +
    +    container.appendChild(el);
    +
    +    this._container = container;
    +
    +    this._show = false;
    +
    +    /**
    +     * @private
    +     */
    +    this._hideTimeout;
    +
    +    var self = this;
    +    el.onmouseenter = function () {
    +        // clear the timeout in hideLater and keep showing tooltip
    +        if (self._enterable) {
    +            clearTimeout(self._hideTimeout);
    +            self._show = true;
    +        }
    +        self._inContent = true;
    +    };
    +    el.onmousemove = function (e) {
    +        e = e || window.event;
    +        if (!self._enterable) {
    +            // Try trigger zrender event to avoid mouse
    +            // in and out shape too frequently
    +            var handler = zr.handler;
    +            normalizeEvent(container, e, true);
    +            handler.dispatch('mousemove', e);
    +        }
    +    };
    +    el.onmouseleave = function () {
    +        if (self._enterable) {
    +            if (self._show) {
    +                self.hideLater(self._hideDelay);
    +            }
    +        }
    +        self._inContent = false;
    +    };
    +}
    +
    +TooltipContent.prototype = {
    +
    +    constructor: TooltipContent,
    +
    +    /**
    +     * @private
    +     * @type {boolean}
    +     */
    +    _enterable: true,
    +
    +    /**
    +     * Update when tooltip is rendered
    +     */
    +    update: function () {
    +        // FIXME
    +        // Move this logic to ec main?
    +        var container = this._container;
    +        var stl = container.currentStyle
    +            || document.defaultView.getComputedStyle(container);
    +        var domStyle = container.style;
    +        if (domStyle.position !== 'absolute' && stl.position !== 'absolute') {
    +            domStyle.position = 'relative';
    +        }
    +        // Hide the tooltip
    +        // PENDING
    +        // this.hide();
    +    },
    +
    +    show: function (tooltipModel) {
    +        clearTimeout(this._hideTimeout);
    +        var el = this.el;
    +
    +        el.style.cssText = gCssText + assembleCssText(tooltipModel)
    +            // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
    +            + ';left:' + this._x + 'px;top:' + this._y + 'px;'
    +            + (tooltipModel.get('extraCssText') || '');
    +
    +        el.style.display = el.innerHTML ?  'block' : 'none';
    +
    +        this._show = true;
    +    },
    +
    +    setContent: function (content) {
    +        this.el.innerHTML = content == null ? '' : content;
    +    },
    +
    +    setEnterable: function (enterable) {
    +        this._enterable = enterable;
    +    },
    +
    +    getSize: function () {
    +        var el = this.el;
    +        return [el.clientWidth, el.clientHeight];
    +    },
    +
    +    moveTo: function (x, y) {
    +        // xy should be based on canvas root. But tooltipContent is
    +        // the sibling of canvas root. So padding of ec container
    +        // should be considered here.
    +        var zr = this._zr;
    +        var viewportRootOffset;
    +        if (zr && zr.painter && (viewportRootOffset = zr.painter.getViewportRootOffset())) {
    +            x += viewportRootOffset.offsetLeft;
    +            y += viewportRootOffset.offsetTop;
    +        }
    +
    +        var style = this.el.style;
    +        style.left = x + 'px';
    +        style.top = y + 'px';
    +
    +        this._x = x;
    +        this._y = y;
    +    },
    +
    +    hide: function () {
    +        this.el.style.display = 'none';
    +        this._show = false;
    +    },
    +
    +    hideLater: function (time) {
    +        if (this._show && !(this._inContent && this._enterable)) {
    +            if (time) {
    +                this._hideDelay = time;
    +                // Set show false to avoid invoke hideLater mutiple times
    +                this._show = false;
    +                this._hideTimeout = setTimeout(bind(this.hide, this), time);
    +            }
    +            else {
    +                this.hide();
    +            }
    +        }
    +    },
    +
    +    isShow: function () {
    +        return this._show;
    +    }
    +};
    +
    +var bind$3 = bind;
    +var each$20 = each$1;
    +var parsePercent$2 = parsePercent$1;
    +
    +var proxyRect = new Rect({
    +    shape: {x: -1, y: -1, width: 2, height: 2}
    +});
    +
    +extendComponentView({
    +
    +    type: 'tooltip',
    +
    +    init: function (ecModel, api) {
    +        if (env$1.node) {
    +            return;
    +        }
    +        var tooltipContent = new TooltipContent(api.getDom(), api);
    +        this._tooltipContent = tooltipContent;
    +    },
    +
    +    render: function (tooltipModel, ecModel, api) {
    +        if (env$1.node) {
    +            return;
    +        }
    +
    +        // Reset
    +        this.group.removeAll();
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/component/tooltip/TooltipModel}
    +         */
    +        this._tooltipModel = tooltipModel;
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/model/Global}
    +         */
    +        this._ecModel = ecModel;
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/ExtensionAPI}
    +         */
    +        this._api = api;
    +
    +        /**
    +         * Should be cleaned when render.
    +         * @private
    +         * @type {Array.<Array.<Object>>}
    +         */
    +        this._lastDataByCoordSys = null;
    +
    +        /**
    +         * @private
    +         * @type {boolean}
    +         */
    +        this._alwaysShowContent = tooltipModel.get('alwaysShowContent');
    +
    +        var tooltipContent = this._tooltipContent;
    +        tooltipContent.update();
    +        tooltipContent.setEnterable(tooltipModel.get('enterable'));
    +
    +        this._initGlobalListener();
    +
    +        this._keepShow();
    +    },
    +
    +    _initGlobalListener: function () {
    +        var tooltipModel = this._tooltipModel;
    +        var triggerOn = tooltipModel.get('triggerOn');
    +
    +        register(
    +            'itemTooltip',
    +            this._api,
    +            bind$3(function (currTrigger, e, dispatchAction) {
    +                // If 'none', it is not controlled by mouse totally.
    +                if (triggerOn !== 'none') {
    +                    if (triggerOn.indexOf(currTrigger) >= 0) {
    +                        this._tryShow(e, dispatchAction);
    +                    }
    +                    else if (currTrigger === 'leave') {
    +                        this._hide(dispatchAction);
    +                    }
    +                }
    +            }, this)
    +        );
    +    },
    +
    +    _keepShow: function () {
    +        var tooltipModel = this._tooltipModel;
    +        var ecModel = this._ecModel;
    +        var api = this._api;
    +
    +        // Try to keep the tooltip show when refreshing
    +        if (this._lastX != null
    +            && this._lastY != null
    +            // When user is willing to control tooltip totally using API,
    +            // self.manuallyShowTip({x, y}) might cause tooltip hide,
    +            // which is not expected.
    +            && tooltipModel.get('triggerOn') !== 'none'
    +        ) {
    +            var self = this;
    +            clearTimeout(this._refreshUpdateTimeout);
    +            this._refreshUpdateTimeout = setTimeout(function () {
    +                // Show tip next tick after other charts are rendered
    +                // In case highlight action has wrong result
    +                // FIXME
    +                self.manuallyShowTip(tooltipModel, ecModel, api, {
    +                    x: self._lastX,
    +                    y: self._lastY
    +                });
    +            });
    +        }
    +    },
    +
    +    /**
    +     * Show tip manually by
    +     * dispatchAction({
    +     *     type: 'showTip',
    +     *     x: 10,
    +     *     y: 10
    +     * });
    +     * Or
    +     * dispatchAction({
    +     *      type: 'showTip',
    +     *      seriesIndex: 0,
    +     *      dataIndex or dataIndexInside or name
    +     * });
    +     *
    +     *  TODO Batch
    +     */
    +    manuallyShowTip: function (tooltipModel, ecModel, api, payload) {
    +        if (payload.from === this.uid || env$1.node) {
    +            return;
    +        }
    +
    +        var dispatchAction = makeDispatchAction$1(payload, api);
    +
    +        // Reset ticket
    +        this._ticket = '';
    +
    +        // When triggered from axisPointer.
    +        var dataByCoordSys = payload.dataByCoordSys;
    +
    +        if (payload.tooltip && payload.x != null && payload.y != null) {
    +            var el = proxyRect;
    +            el.position = [payload.x, payload.y];
    +            el.update();
    +            el.tooltip = payload.tooltip;
    +            // Manually show tooltip while view is not using zrender elements.
    +            this._tryShow({
    +                offsetX: payload.x,
    +                offsetY: payload.y,
    +                target: el
    +            }, dispatchAction);
    +        }
    +        else if (dataByCoordSys) {
    +            this._tryShow({
    +                offsetX: payload.x,
    +                offsetY: payload.y,
    +                position: payload.position,
    +                event: {},
    +                dataByCoordSys: payload.dataByCoordSys,
    +                tooltipOption: payload.tooltipOption
    +            }, dispatchAction);
    +        }
    +        else if (payload.seriesIndex != null) {
    +
    +            if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) {
    +                return;
    +            }
    +
    +            var pointInfo = findPointFromSeries(payload, ecModel);
    +            var cx = pointInfo.point[0];
    +            var cy = pointInfo.point[1];
    +            if (cx != null && cy != null) {
    +                this._tryShow({
    +                    offsetX: cx,
    +                    offsetY: cy,
    +                    position: payload.position,
    +                    target: pointInfo.el,
    +                    event: {}
    +                }, dispatchAction);
    +            }
    +        }
    +        else if (payload.x != null && payload.y != null) {
    +            // FIXME
    +            // should wrap dispatchAction like `axisPointer/globalListener` ?
    +            api.dispatchAction({
    +                type: 'updateAxisPointer',
    +                x: payload.x,
    +                y: payload.y
    +            });
    +
    +            this._tryShow({
    +                offsetX: payload.x,
    +                offsetY: payload.y,
    +                position: payload.position,
    +                target: api.getZr().findHover(payload.x, payload.y).target,
    +                event: {}
    +            }, dispatchAction);
    +        }
    +    },
    +
    +    manuallyHideTip: function (tooltipModel, ecModel, api, payload) {
    +        var tooltipContent = this._tooltipContent;
    +
    +        if (!this._alwaysShowContent) {
    +            tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));
    +        }
    +
    +        this._lastX = this._lastY = null;
    +
    +        if (payload.from !== this.uid) {
    +            this._hide(makeDispatchAction$1(payload, api));
    +        }
    +    },
    +
    +    // Be compatible with previous design, that is, when tooltip.type is 'axis' and
    +    // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer
    +    // and tooltip.
    +    _manuallyAxisShowTip: function (tooltipModel, ecModel, api, payload) {
    +        var seriesIndex = payload.seriesIndex;
    +        var dataIndex = payload.dataIndex;
    +        var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;
    +
    +        if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {
    +            return;
    +        }
    +
    +        var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
    +        if (!seriesModel) {
    +            return;
    +        }
    +
    +        var data = seriesModel.getData();
    +        var tooltipModel = buildTooltipModel([
    +            data.getItemModel(dataIndex),
    +            seriesModel,
    +            (seriesModel.coordinateSystem || {}).model,
    +            tooltipModel
    +        ]);
    +
    +        if (tooltipModel.get('trigger') !== 'axis') {
    +            return;
    +        }
    +
    +        api.dispatchAction({
    +            type: 'updateAxisPointer',
    +            seriesIndex: seriesIndex,
    +            dataIndex: dataIndex,
    +            position: payload.position
    +        });
    +
    +        return true;
    +    },
    +
    +    _tryShow: function (e, dispatchAction) {
    +        var el = e.target;
    +        var tooltipModel = this._tooltipModel;
    +
    +        if (!tooltipModel) {
    +            return;
    +        }
    +
    +        // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed
    +        this._lastX = e.offsetX;
    +        this._lastY = e.offsetY;
    +
    +        var dataByCoordSys = e.dataByCoordSys;
    +        if (dataByCoordSys && dataByCoordSys.length) {
    +            this._showAxisTooltip(dataByCoordSys, e);
    +        }
    +        // Always show item tooltip if mouse is on the element with dataIndex
    +        else if (el && el.dataIndex != null) {
    +            this._lastDataByCoordSys = null;
    +            this._showSeriesItemTooltip(e, el, dispatchAction);
    +        }
    +        // Tooltip provided directly. Like legend.
    +        else if (el && el.tooltip) {
    +            this._lastDataByCoordSys = null;
    +            this._showComponentItemTooltip(e, el, dispatchAction);
    +        }
    +        else {
    +            this._lastDataByCoordSys = null;
    +            this._hide(dispatchAction);
    +        }
    +    },
    +
    +    _showOrMove: function (tooltipModel, cb) {
    +        // showDelay is used in this case: tooltip.enterable is set
    +        // as true. User intent to move mouse into tooltip and click
    +        // something. `showDelay` makes it easyer to enter the content
    +        // but tooltip do not move immediately.
    +        var delay = tooltipModel.get('showDelay');
    +        cb = bind(cb, this);
    +        clearTimeout(this._showTimout);
    +        delay > 0
    +            ? (this._showTimout = setTimeout(cb, delay))
    +            : cb();
    +    },
    +
    +    _showAxisTooltip: function (dataByCoordSys, e) {
    +        var ecModel = this._ecModel;
    +        var globalTooltipModel = this._tooltipModel;
    +        var point = [e.offsetX, e.offsetY];
    +        var singleDefaultHTML = [];
    +        var singleParamsList = [];
    +        var singleTooltipModel = buildTooltipModel([
    +            e.tooltipOption,
    +            globalTooltipModel
    +        ]);
    +
    +        each$20(dataByCoordSys, function (itemCoordSys) {
    +            // var coordParamList = [];
    +            // var coordDefaultHTML = [];
    +            // var coordTooltipModel = buildTooltipModel([
    +            //     e.tooltipOption,
    +            //     itemCoordSys.tooltipOption,
    +            //     ecModel.getComponent(itemCoordSys.coordSysMainType, itemCoordSys.coordSysIndex),
    +            //     globalTooltipModel
    +            // ]);
    +            // var displayMode = coordTooltipModel.get('displayMode');
    +            // var paramsList = displayMode === 'single' ? singleParamsList : [];
    +
    +            each$20(itemCoordSys.dataByAxis, function (item) {
    +                var axisModel = ecModel.getComponent(item.axisDim + 'Axis', item.axisIndex);
    +                var axisValue = item.value;
    +                var seriesDefaultHTML = [];
    +
    +                if (!axisModel || axisValue == null) {
    +                    return;
    +                }
    +
    +                var valueLabel = getValueLabel(
    +                    axisValue, axisModel.axis, ecModel,
    +                    item.seriesDataIndices,
    +                    item.valueLabelOpt
    +                );
    +
    +                each$1(item.seriesDataIndices, function (idxItem) {
    +                    var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);
    +                    var dataIndex = idxItem.dataIndexInside;
    +                    var dataParams = series && series.getDataParams(dataIndex);
    +                    dataParams.axisDim = item.axisDim;
    +                    dataParams.axisIndex = item.axisIndex;
    +                    dataParams.axisType = item.axisType;
    +                    dataParams.axisId = item.axisId;
    +                    dataParams.axisValue = getAxisRawValue(axisModel.axis, axisValue);
    +                    dataParams.axisValueLabel = valueLabel;
    +
    +                    if (dataParams) {
    +                        singleParamsList.push(dataParams);
    +                        seriesDefaultHTML.push(series.formatTooltip(dataIndex, true));
    +                    }
    +                });
    +
    +                // Default tooltip content
    +                // FIXME
    +                // (1) shold be the first data which has name?
    +                // (2) themeRiver, firstDataIndex is array, and first line is unnecessary.
    +                var firstLine = valueLabel;
    +                singleDefaultHTML.push(
    +                    (firstLine ? encodeHTML(firstLine) + '<br />' : '')
    +                    + seriesDefaultHTML.join('<br />')
    +                );
    +            });
    +        }, this);
    +
    +        // In most case, the second axis is shown upper than the first one.
    +        singleDefaultHTML.reverse();
    +        singleDefaultHTML = singleDefaultHTML.join('<br /><br />');
    +
    +        var positionExpr = e.position;
    +        this._showOrMove(singleTooltipModel, function () {
    +            if (this._updateContentNotChangedOnAxis(dataByCoordSys)) {
    +                this._updatePosition(
    +                    singleTooltipModel,
    +                    positionExpr,
    +                    point[0], point[1],
    +                    this._tooltipContent,
    +                    singleParamsList
    +                );
    +            }
    +            else {
    +                this._showTooltipContent(
    +                    singleTooltipModel, singleDefaultHTML, singleParamsList, Math.random(),
    +                    point[0], point[1], positionExpr
    +                );
    +            }
    +        });
    +
    +        // Do not trigger events here, because this branch only be entered
    +        // from dispatchAction.
    +    },
    +
    +    _showSeriesItemTooltip: function (e, el, dispatchAction) {
    +        var ecModel = this._ecModel;
    +        // Use dataModel in element if possible
    +        // Used when mouseover on a element like markPoint or edge
    +        // In which case, the data is not main data in series.
    +        var seriesIndex = el.seriesIndex;
    +        var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
    +
    +        // For example, graph link.
    +        var dataModel = el.dataModel || seriesModel;
    +        var dataIndex = el.dataIndex;
    +        var dataType = el.dataType;
    +        var data = dataModel.getData();
    +
    +        var tooltipModel = buildTooltipModel([
    +            data.getItemModel(dataIndex),
    +            dataModel,
    +            seriesModel && (seriesModel.coordinateSystem || {}).model,
    +            this._tooltipModel
    +        ]);
    +
    +        var tooltipTrigger = tooltipModel.get('trigger');
    +        if (tooltipTrigger != null && tooltipTrigger !== 'item') {
    +            return;
    +        }
    +
    +        var params = dataModel.getDataParams(dataIndex, dataType);
    +        var defaultHtml = dataModel.formatTooltip(dataIndex, false, dataType);
    +        var asyncTicket = 'item_' + dataModel.name + '_' + dataIndex;
    +
    +        this._showOrMove(tooltipModel, function () {
    +            this._showTooltipContent(
    +                tooltipModel, defaultHtml, params, asyncTicket,
    +                e.offsetX, e.offsetY, e.position, e.target
    +            );
    +        });
    +
    +        // FIXME
    +        // duplicated showtip if manuallyShowTip is called from dispatchAction.
    +        dispatchAction({
    +            type: 'showTip',
    +            dataIndexInside: dataIndex,
    +            dataIndex: data.getRawIndex(dataIndex),
    +            seriesIndex: seriesIndex,
    +            from: this.uid
    +        });
    +    },
    +
    +    _showComponentItemTooltip: function (e, el, dispatchAction) {
    +        var tooltipOpt = el.tooltip;
    +        if (typeof tooltipOpt === 'string') {
    +            var content = tooltipOpt;
    +            tooltipOpt = {
    +                content: content,
    +                // Fixed formatter
    +                formatter: content
    +            };
    +        }
    +        var subTooltipModel = new Model(tooltipOpt, this._tooltipModel, this._ecModel);
    +        var defaultHtml = subTooltipModel.get('content');
    +        var asyncTicket = Math.random();
    +
    +        // Do not check whether `trigger` is 'none' here, because `trigger`
    +        // only works on cooridinate system. In fact, we have not found case
    +        // that requires setting `trigger` nothing on component yet.
    +
    +        this._showOrMove(subTooltipModel, function () {
    +            this._showTooltipContent(
    +                subTooltipModel, defaultHtml, subTooltipModel.get('formatterParams') || {},
    +                asyncTicket, e.offsetX, e.offsetY, e.position, el
    +            );
    +        });
    +
    +        // If not dispatch showTip, tip may be hide triggered by axis.
    +        dispatchAction({
    +            type: 'showTip',
    +            from: this.uid
    +        });
    +    },
    +
    +    _showTooltipContent: function (
    +        tooltipModel, defaultHtml, params, asyncTicket, x, y, positionExpr, el
    +    ) {
    +        // Reset ticket
    +        this._ticket = '';
    +
    +        if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) {
    +            return;
    +        }
    +
    +        var tooltipContent = this._tooltipContent;
    +
    +        var formatter = tooltipModel.get('formatter');
    +        positionExpr = positionExpr || tooltipModel.get('position');
    +        var html = defaultHtml;
    +
    +        if (formatter && typeof formatter === 'string') {
    +            html = formatTpl(formatter, params, true);
    +        }
    +        else if (typeof formatter === 'function') {
    +            var callback = bind$3(function (cbTicket, html) {
    +                if (cbTicket === this._ticket) {
    +                    tooltipContent.setContent(html);
    +                    this._updatePosition(
    +                        tooltipModel, positionExpr, x, y, tooltipContent, params, el
    +                    );
    +                }
    +            }, this);
    +            this._ticket = asyncTicket;
    +            html = formatter(params, asyncTicket, callback);
    +        }
    +
    +        tooltipContent.setContent(html);
    +        tooltipContent.show(tooltipModel);
    +
    +        this._updatePosition(
    +            tooltipModel, positionExpr, x, y, tooltipContent, params, el
    +        );
    +    },
    +
    +    /**
    +     * @param  {string|Function|Array.<number>|Object} positionExpr
    +     * @param  {number} x Mouse x
    +     * @param  {number} y Mouse y
    +     * @param  {boolean} confine Whether confine tooltip content in view rect.
    +     * @param  {Object|<Array.<Object>} params
    +     * @param  {module:zrender/Element} el target element
    +     * @param  {module:echarts/ExtensionAPI} api
    +     * @return {Array.<number>}
    +     */
    +    _updatePosition: function (tooltipModel, positionExpr, x, y, content, params, el) {
    +        var viewWidth = this._api.getWidth();
    +        var viewHeight = this._api.getHeight();
    +        positionExpr = positionExpr || tooltipModel.get('position');
    +
    +        var contentSize = content.getSize();
    +        var align = tooltipModel.get('align');
    +        var vAlign = tooltipModel.get('verticalAlign');
    +        var rect = el && el.getBoundingRect().clone();
    +        el && rect.applyTransform(el.transform);
    +
    +        if (typeof positionExpr === 'function') {
    +            // Callback of position can be an array or a string specify the position
    +            positionExpr = positionExpr([x, y], params, content.el, rect, {
    +                viewSize: [viewWidth, viewHeight],
    +                contentSize: contentSize.slice()
    +            });
    +        }
    +
    +        if (isArray(positionExpr)) {
    +            x = parsePercent$2(positionExpr[0], viewWidth);
    +            y = parsePercent$2(positionExpr[1], viewHeight);
    +        }
    +        else if (isObject(positionExpr)) {
    +            positionExpr.width = contentSize[0];
    +            positionExpr.height = contentSize[1];
    +            var layoutRect = getLayoutRect(
    +                positionExpr, {width: viewWidth, height: viewHeight}
    +            );
    +            x = layoutRect.x;
    +            y = layoutRect.y;
    +            align = null;
    +            // When positionExpr is left/top/right/bottom,
    +            // align and verticalAlign will not work.
    +            vAlign = null;
    +        }
    +        // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element
    +        else if (typeof positionExpr === 'string' && el) {
    +            var pos = calcTooltipPosition(
    +                positionExpr, rect, contentSize
    +            );
    +            x = pos[0];
    +            y = pos[1];
    +        }
    +        else {
    +            var pos = refixTooltipPosition(
    +                x, y, content.el, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20
    +            );
    +            x = pos[0];
    +            y = pos[1];
    +        }
    +
    +        align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0);
    +        vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0);
    +
    +        if (tooltipModel.get('confine')) {
    +            var pos = confineTooltipPosition(
    +                x, y, content.el, viewWidth, viewHeight
    +            );
    +            x = pos[0];
    +            y = pos[1];
    +        }
    +
    +        content.moveTo(x, y);
    +    },
    +
    +    // FIXME
    +    // Should we remove this but leave this to user?
    +    _updateContentNotChangedOnAxis: function (dataByCoordSys) {
    +        var lastCoordSys = this._lastDataByCoordSys;
    +        var contentNotChanged = !!lastCoordSys
    +            && lastCoordSys.length === dataByCoordSys.length;
    +
    +        contentNotChanged && each$20(lastCoordSys, function (lastItemCoordSys, indexCoordSys) {
    +            var lastDataByAxis = lastItemCoordSys.dataByAxis || {};
    +            var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {};
    +            var thisDataByAxis = thisItemCoordSys.dataByAxis || [];
    +            contentNotChanged &= lastDataByAxis.length === thisDataByAxis.length;
    +
    +            contentNotChanged && each$20(lastDataByAxis, function (lastItem, indexAxis) {
    +                var thisItem = thisDataByAxis[indexAxis] || {};
    +                var lastIndices = lastItem.seriesDataIndices || [];
    +                var newIndices = thisItem.seriesDataIndices || [];
    +
    +                contentNotChanged &=
    +                    lastItem.value === thisItem.value
    +                    && lastItem.axisType === thisItem.axisType
    +                    && lastItem.axisId === thisItem.axisId
    +                    && lastIndices.length === newIndices.length;
    +
    +                contentNotChanged && each$20(lastIndices, function (lastIdxItem, j) {
    +                    var newIdxItem = newIndices[j];
    +                    contentNotChanged &=
    +                        lastIdxItem.seriesIndex === newIdxItem.seriesIndex
    +                        && lastIdxItem.dataIndex === newIdxItem.dataIndex;
    +                });
    +            });
    +        });
    +
    +        this._lastDataByCoordSys = dataByCoordSys;
    +
    +        return !!contentNotChanged;
    +    },
    +
    +    _hide: function (dispatchAction) {
    +        // Do not directly hideLater here, because this behavior may be prevented
    +        // in dispatchAction when showTip is dispatched.
    +
    +        // FIXME
    +        // duplicated hideTip if manuallyHideTip is called from dispatchAction.
    +        this._lastDataByCoordSys = null;
    +        dispatchAction({
    +            type: 'hideTip',
    +            from: this.uid
    +        });
    +    },
    +
    +    dispose: function (ecModel, api) {
    +        if (env$1.node) {
    +            return;
    +        }
    +        this._tooltipContent.hide();
    +        unregister('itemTooltip', api);
    +    }
    +});
    +
    +
    +/**
    + * @param {Array.<Object|module:echarts/model/Model>} modelCascade
    + * From top to bottom. (the last one should be globalTooltipModel);
    + */
    +function buildTooltipModel(modelCascade) {
    +    var resultModel = modelCascade.pop();
    +    while (modelCascade.length) {
    +        var tooltipOpt = modelCascade.pop();
    +        if (tooltipOpt) {
    +            if (tooltipOpt instanceof Model) {
    +                tooltipOpt = tooltipOpt.get('tooltip', true);
    +            }
    +            // In each data item tooltip can be simply write:
    +            // {
    +            //  value: 10,
    +            //  tooltip: 'Something you need to know'
    +            // }
    +            if (typeof tooltipOpt === 'string') {
    +                tooltipOpt = {formatter: tooltipOpt};
    +            }
    +            resultModel = new Model(tooltipOpt, resultModel, resultModel.ecModel);
    +        }
    +    }
    +    return resultModel;
    +}
    +
    +function makeDispatchAction$1(payload, api) {
    +    return payload.dispatchAction || bind(api.dispatchAction, api);
    +}
    +
    +function refixTooltipPosition(x, y, el, viewWidth, viewHeight, gapH, gapV) {
    +    var size = getOuterSize(el);
    +    var width = size.width;
    +    var height = size.height;
    +
    +    if (gapH != null) {
    +        if (x + width + gapH > viewWidth) {
    +            x -= width + gapH;
    +        }
    +        else {
    +            x += gapH;
    +        }
    +    }
    +    if (gapV != null) {
    +        if (y + height + gapV > viewHeight) {
    +            y -= height + gapV;
    +        }
    +        else {
    +            y += gapV;
    +        }
    +    }
    +    return [x, y];
    +}
    +
    +function confineTooltipPosition(x, y, el, viewWidth, viewHeight) {
    +    var size = getOuterSize(el);
    +    var width = size.width;
    +    var height = size.height;
    +
    +    x = Math.min(x + width, viewWidth) - width;
    +    y = Math.min(y + height, viewHeight) - height;
    +    x = Math.max(x, 0);
    +    y = Math.max(y, 0);
    +
    +    return [x, y];
    +}
    +
    +function getOuterSize(el) {
    +    var width = el.clientWidth;
    +    var height = el.clientHeight;
    +
    +    // Consider browser compatibility.
    +    // IE8 does not support getComputedStyle.
    +    if (document.defaultView && document.defaultView.getComputedStyle) {
    +        var stl = document.defaultView.getComputedStyle(el);
    +        if (stl) {
    +            width += parseInt(stl.paddingLeft, 10) + parseInt(stl.paddingRight, 10)
    +                + parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10);
    +            height += parseInt(stl.paddingTop, 10) + parseInt(stl.paddingBottom, 10)
    +                + parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10);
    +        }
    +    }
    +
    +    return {width: width, height: height};
    +}
    +
    +function calcTooltipPosition(position, rect, contentSize) {
    +    var domWidth = contentSize[0];
    +    var domHeight = contentSize[1];
    +    var gap = 5;
    +    var x = 0;
    +    var y = 0;
    +    var rectWidth = rect.width;
    +    var rectHeight = rect.height;
    +    switch (position) {
    +        case 'inside':
    +            x = rect.x + rectWidth / 2 - domWidth / 2;
    +            y = rect.y + rectHeight / 2 - domHeight / 2;
    +            break;
    +        case 'top':
    +            x = rect.x + rectWidth / 2 - domWidth / 2;
    +            y = rect.y - domHeight - gap;
    +            break;
    +        case 'bottom':
    +            x = rect.x + rectWidth / 2 - domWidth / 2;
    +            y = rect.y + rectHeight + gap;
    +            break;
    +        case 'left':
    +            x = rect.x - domWidth - gap;
    +            y = rect.y + rectHeight / 2 - domHeight / 2;
    +            break;
    +        case 'right':
    +            x = rect.x + rectWidth + gap;
    +            y = rect.y + rectHeight / 2 - domHeight / 2;
    +    }
    +    return [x, y];
    +}
    +
    +function isCenterAlign(align) {
    +    return align === 'center' || align === 'middle';
    +}
    +
    +// FIXME Better way to pack data in graphic element
    +
    +/**
    + * @action
    + * @property {string} type
    + * @property {number} seriesIndex
    + * @property {number} dataIndex
    + * @property {number} [x]
    + * @property {number} [y]
    + */
    +registerAction(
    +    {
    +        type: 'showTip',
    +        event: 'showTip',
    +        update: 'tooltip:manuallyShowTip'
    +    },
    +    // noop
    +    function () {}
    +);
    +
    +registerAction(
    +    {
    +        type: 'hideTip',
    +        event: 'hideTip',
    +        update: 'tooltip:manuallyHideTip'
    +    },
    +    // noop
    +    function () {}
    +);
    +
    +function getSeriesStackId$1(seriesModel) {
    +    return seriesModel.get('stack')
    +        || '__ec_stack_' + seriesModel.seriesIndex;
    +}
    +
    +function getAxisKey$1(axis) {
    +    return axis.dim;
    +}
    +
    +/**
    + * @param {string} seriesType
    + * @param {module:echarts/model/Global} ecModel
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function barLayoutPolar(seriesType, ecModel, api) {
    +
    +    var width = api.getWidth();
    +    var height = api.getHeight();
    +
    +    var lastStackCoords = {};
    +    var lastStackCoordsOrigin = {};
    +
    +    var barWidthAndOffset = calRadialBar(
    +        filter(
    +            ecModel.getSeriesByType(seriesType),
    +            function (seriesModel) {
    +                return !ecModel.isSeriesFiltered(seriesModel)
    +                    && seriesModel.coordinateSystem
    +                    && seriesModel.coordinateSystem.type === 'polar';
    +            }
    +        )
    +    );
    +
    +    ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    +        // Check series coordinate, do layout for polar only
    +        if (seriesModel.coordinateSystem.type !== 'polar') {
    +            return;
    +        }
    +
    +        var data = seriesModel.getData();
    +        var polar = seriesModel.coordinateSystem;
    +        var angleAxis = polar.getAngleAxis();
    +        var baseAxis = polar.getBaseAxis();
    +
    +        var stackId = getSeriesStackId$1(seriesModel);
    +        var columnLayoutInfo
    +            = barWidthAndOffset[getAxisKey$1(baseAxis)][stackId];
    +        var columnOffset = columnLayoutInfo.offset;
    +        var columnWidth = columnLayoutInfo.width;
    +        var valueAxis = polar.getOtherAxis(baseAxis);
    +
    +        var center = seriesModel.get('center') || ['50%', '50%'];
    +        var cx = parsePercent$1(center[0], width);
    +        var cy = parsePercent$1(center[1], height);
    +
    +        var barMinHeight = seriesModel.get('barMinHeight') || 0;
    +        var barMinAngle = seriesModel.get('barMinAngle') || 0;
    +
    +        var valueAxisStart = valueAxis.getExtent()[0];
    +        var valueMax = valueAxis.model.get('max');
    +        var valueMin = valueAxis.model.get('min');
    +
    +        var coordDims = [
    +            seriesModel.coordDimToDataDim('radius')[0],
    +            seriesModel.coordDimToDataDim('angle')[0]
    +        ];
    +        var coords = data.mapArray(coordDims, function (radius, angle) {
    +            return polar.dataToPoint([radius, angle]);
    +        }, true);
    +
    +        lastStackCoords[stackId] = lastStackCoords[stackId] || [];
    +        lastStackCoordsOrigin[stackId] = lastStackCoordsOrigin[stackId] || []; // Fix #4243
    +
    +        data.each(seriesModel.coordDimToDataDim(valueAxis.dim)[0], function (value, idx) {
    +            if (isNaN(value)) {
    +                return;
    +            }
    +
    +            if (!lastStackCoords[stackId][idx]) {
    +                lastStackCoords[stackId][idx] = {
    +                    p: valueAxisStart, // Positive stack
    +                    n: valueAxisStart  // Negative stack
    +                };
    +                lastStackCoordsOrigin[stackId][idx] = {
    +                    p: valueAxisStart, // Positive stack
    +                    n: valueAxisStart  // Negative stack
    +                };
    +            }
    +            var sign = value >= 0 ? 'p' : 'n';
    +            var coord = polar.pointToCoord(coords[idx]);
    +
    +            var lastCoordOrigin = lastStackCoordsOrigin[stackId][idx][sign];
    +            var r0;
    +            var r;
    +            var startAngle;
    +            var endAngle;
    +
    +            if (valueAxis.dim === 'radius') {
    +                // radial sector
    +                r0 = lastCoordOrigin;
    +                r = coord[0];
    +                startAngle = (-coord[1] + columnOffset) * Math.PI / 180;
    +                endAngle = startAngle + columnWidth * Math.PI / 180;
    +
    +                if (Math.abs(r) < barMinHeight) {
    +                    r = r0 + (r < 0 ? -1 : 1) * barMinHeight;
    +                }
    +
    +                lastStackCoordsOrigin[stackId][idx][sign] = r;
    +            }
    +            else {
    +                // tangential sector
    +                r0 = coord[0] + columnOffset;
    +                r = r0 + columnWidth;
    +
    +                // clamp data if min or max is defined for valueAxis
    +                if (valueMax != null) {
    +                    value = Math.min(value, valueMax);
    +                }
    +                if (valueMin != null) {
    +                    value = Math.max(value, valueMin);
    +                }
    +
    +                var angle = angleAxis.dataToAngle(value);
    +                if (Math.abs(angle - lastCoordOrigin) < barMinAngle) {
    +                    angle = lastCoordOrigin - (value < 0 ? -1 : 1)
    +                        * barMinAngle;
    +                }
    +
    +                startAngle = -lastCoordOrigin * Math.PI / 180;
    +                endAngle = -angle * Math.PI / 180;
    +
    +                // if the previous stack is at the end of the ring,
    +                // add a round to differentiate it from origin
    +                var extent = angleAxis.getExtent();
    +                var stackCoord = angle;
    +                if (stackCoord === extent[0] && value > 0) {
    +                    stackCoord = extent[1];
    +                }
    +                else if (stackCoord === extent[1] && value < 0) {
    +                    stackCoord = extent[0];
    +                }
    +                lastStackCoordsOrigin[stackId][idx][sign] = stackCoord;
    +            }
    +
    +            data.setItemLayout(idx, {
    +                cx: cx,
    +                cy: cy,
    +                r0: r0,
    +                r: r,
    +                startAngle: startAngle,
    +                endAngle: endAngle
    +            });
    +
    +        }, true);
    +
    +    }, this);
    +
    +}
    +
    +/**
    + * Calculate bar width and offset for radial bar charts
    + */
    +function calRadialBar(barSeries, api) {
    +    // Columns info on each category axis. Key is polar name
    +    var columnsMap = {};
    +
    +    each$1(barSeries, function (seriesModel, idx) {
    +        var data = seriesModel.getData();
    +        var polar = seriesModel.coordinateSystem;
    +
    +        var baseAxis = polar.getBaseAxis();
    +
    +        var axisExtent = baseAxis.getExtent();
    +        var bandWidth = baseAxis.type === 'category'
    +            ? baseAxis.getBandWidth()
    +            : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count());
    +
    +        var columnsOnAxis = columnsMap[getAxisKey$1(baseAxis)] || {
    +            bandWidth: bandWidth,
    +            remainedWidth: bandWidth,
    +            autoWidthCount: 0,
    +            categoryGap: '20%',
    +            gap: '30%',
    +            stacks: {}
    +        };
    +        var stacks = columnsOnAxis.stacks;
    +        columnsMap[getAxisKey$1(baseAxis)] = columnsOnAxis;
    +
    +        var stackId = getSeriesStackId$1(seriesModel);
    +
    +        if (!stacks[stackId]) {
    +            columnsOnAxis.autoWidthCount++;
    +        }
    +        stacks[stackId] = stacks[stackId] || {
    +            width: 0,
    +            maxWidth: 0
    +        };
    +
    +        var barWidth = parsePercent$1(
    +            seriesModel.get('barWidth'),
    +            bandWidth
    +        );
    +        var barMaxWidth = parsePercent$1(
    +            seriesModel.get('barMaxWidth'),
    +            bandWidth
    +        );
    +        var barGap = seriesModel.get('barGap');
    +        var barCategoryGap = seriesModel.get('barCategoryGap');
    +
    +        if (barWidth && !stacks[stackId].width) {
    +            barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
    +            stacks[stackId].width = barWidth;
    +            columnsOnAxis.remainedWidth -= barWidth;
    +        }
    +
    +        barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);
    +        (barGap != null) && (columnsOnAxis.gap = barGap);
    +        (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);
    +    });
    +
    +
    +    var result = {};
    +
    +    each$1(columnsMap, function (columnsOnAxis, coordSysName) {
    +
    +        result[coordSysName] = {};
    +
    +        var stacks = columnsOnAxis.stacks;
    +        var bandWidth = columnsOnAxis.bandWidth;
    +        var categoryGap = parsePercent$1(columnsOnAxis.categoryGap, bandWidth);
    +        var barGapPercent = parsePercent$1(columnsOnAxis.gap, 1);
    +
    +        var remainedWidth = columnsOnAxis.remainedWidth;
    +        var autoWidthCount = columnsOnAxis.autoWidthCount;
    +        var autoWidth = (remainedWidth - categoryGap)
    +            / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    +        autoWidth = Math.max(autoWidth, 0);
    +
    +        // Find if any auto calculated bar exceeded maxBarWidth
    +        each$1(stacks, function (column, stack) {
    +            var maxWidth = column.maxWidth;
    +            if (maxWidth && maxWidth < autoWidth) {
    +                maxWidth = Math.min(maxWidth, remainedWidth);
    +                if (column.width) {
    +                    maxWidth = Math.min(maxWidth, column.width);
    +                }
    +                remainedWidth -= maxWidth;
    +                column.width = maxWidth;
    +                autoWidthCount--;
    +            }
    +        });
    +
    +        // Recalculate width again
    +        autoWidth = (remainedWidth - categoryGap)
    +            / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    +        autoWidth = Math.max(autoWidth, 0);
    +
    +        var widthSum = 0;
    +        var lastColumn;
    +        each$1(stacks, function (column, idx) {
    +            if (!column.width) {
    +                column.width = autoWidth;
    +            }
    +            lastColumn = column;
    +            widthSum += column.width * (1 + barGapPercent);
    +        });
    +        if (lastColumn) {
    +            widthSum -= lastColumn.width * barGapPercent;
    +        }
    +
    +        var offset = -widthSum / 2;
    +        each$1(stacks, function (column, stackId) {
    +            result[coordSysName][stackId] = result[coordSysName][stackId] || {
    +                offset: offset,
    +                width: column.width
    +            };
    +
    +            offset += column.width * (1 + barGapPercent);
    +        });
    +    });
    +
    +    return result;
    +}
    +
    +function RadiusAxis(scale, radiusExtent) {
    +
    +    Axis.call(this, 'radius', scale, radiusExtent);
    +
    +    /**
    +     * Axis type
    +     *  - 'category'
    +     *  - 'value'
    +     *  - 'time'
    +     *  - 'log'
    +     * @type {string}
    +     */
    +    this.type = 'category';
    +}
    +
    +RadiusAxis.prototype = {
    +
    +    constructor: RadiusAxis,
    +
    +    /**
    +     * @override
    +     */
    +    pointToData: function (point, clamp) {
    +        return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];
    +    },
    +
    +    dataToRadius: Axis.prototype.dataToCoord,
    +
    +    radiusToData: Axis.prototype.coordToData
    +};
    +
    +inherits(RadiusAxis, Axis);
    +
    +function AngleAxis(scale, angleExtent) {
    +
    +    angleExtent = angleExtent || [0, 360];
    +
    +    Axis.call(this, 'angle', scale, angleExtent);
    +
    +    /**
    +     * Axis type
    +     *  - 'category'
    +     *  - 'value'
    +     *  - 'time'
    +     *  - 'log'
    +     * @type {string}
    +     */
    +    this.type = 'category';
    +}
    +
    +AngleAxis.prototype = {
    +
    +    constructor: AngleAxis,
    +
    +    /**
    +     * @override
    +     */
    +    pointToData: function (point, clamp) {
    +        return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];
    +    },
    +
    +    dataToAngle: Axis.prototype.dataToCoord,
    +
    +    angleToData: Axis.prototype.coordToData
    +};
    +
    +inherits(AngleAxis, Axis);
    +
    +/**
    + * @module echarts/coord/polar/Polar
    + */
    +
    +/**
    + * @alias {module:echarts/coord/polar/Polar}
    + * @constructor
    + * @param {string} name
    + */
    +var Polar = function (name) {
    +
    +    /**
    +     * @type {string}
    +     */
    +    this.name = name || '';
    +
    +    /**
    +     * x of polar center
    +     * @type {number}
    +     */
    +    this.cx = 0;
    +
    +    /**
    +     * y of polar center
    +     * @type {number}
    +     */
    +    this.cy = 0;
    +
    +    /**
    +     * @type {module:echarts/coord/polar/RadiusAxis}
    +     * @private
    +     */
    +    this._radiusAxis = new RadiusAxis();
    +
    +    /**
    +     * @type {module:echarts/coord/polar/AngleAxis}
    +     * @private
    +     */
    +    this._angleAxis = new AngleAxis();
    +
    +    this._radiusAxis.polar = this._angleAxis.polar = this;
    +};
    +
    +Polar.prototype = {
    +
    +    type: 'polar',
    +
    +    axisPointerEnabled: true,
    +
    +    constructor: Polar,
    +
    +    /**
    +     * @param {Array.<string>}
    +     * @readOnly
    +     */
    +    dimensions: ['radius', 'angle'],
    +
    +    /**
    +     * @type {module:echarts/coord/PolarModel}
    +     */
    +    model: null,
    +
    +    /**
    +     * If contain coord
    +     * @param {Array.<number>} point
    +     * @return {boolean}
    +     */
    +    containPoint: function (point) {
    +        var coord = this.pointToCoord(point);
    +        return this._radiusAxis.contain(coord[0])
    +            && this._angleAxis.contain(coord[1]);
    +    },
    +
    +    /**
    +     * If contain data
    +     * @param {Array.<number>} data
    +     * @return {boolean}
    +     */
    +    containData: function (data) {
    +        return this._radiusAxis.containData(data[0])
    +            && this._angleAxis.containData(data[1]);
    +    },
    +
    +    /**
    +     * @param {string} dim
    +     * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
    +     */
    +    getAxis: function (dim) {
    +        return this['_' + dim + 'Axis'];
    +    },
    +
    +    /**
    +     * @return {Array.<module:echarts/coord/Axis>}
    +     */
    +    getAxes: function () {
    +        return [this._radiusAxis, this._angleAxis];
    +    },
    +
    +    /**
    +     * Get axes by type of scale
    +     * @param {string} scaleType
    +     * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
    +     */
    +    getAxesByScale: function (scaleType) {
    +        var axes = [];
    +        var angleAxis = this._angleAxis;
    +        var radiusAxis = this._radiusAxis;
    +        angleAxis.scale.type === scaleType && axes.push(angleAxis);
    +        radiusAxis.scale.type === scaleType && axes.push(radiusAxis);
    +
    +        return axes;
    +    },
    +
    +    /**
    +     * @return {module:echarts/coord/polar/AngleAxis}
    +     */
    +    getAngleAxis: function () {
    +        return this._angleAxis;
    +    },
    +
    +    /**
    +     * @return {module:echarts/coord/polar/RadiusAxis}
    +     */
    +    getRadiusAxis: function () {
    +        return this._radiusAxis;
    +    },
    +
    +    /**
    +     * @param {module:echarts/coord/polar/Axis}
    +     * @return {module:echarts/coord/polar/Axis}
    +     */
    +    getOtherAxis: function (axis) {
    +        var angleAxis = this._angleAxis;
    +        return axis === angleAxis ? this._radiusAxis : angleAxis;
    +    },
    +
    +    /**
    +     * Base axis will be used on stacking.
    +     *
    +     * @return {module:echarts/coord/polar/Axis}
    +     */
    +    getBaseAxis: function () {
    +        return this.getAxesByScale('ordinal')[0]
    +            || this.getAxesByScale('time')[0]
    +            || this.getAngleAxis();
    +    },
    +
    +    /**
    +     * @param {string} [dim] 'radius' or 'angle' or 'auto' or null/undefined
    +     * @return {Object} {baseAxes: [], otherAxes: []}
    +     */
    +    getTooltipAxes: function (dim) {
    +        var baseAxis = (dim != null && dim !== 'auto')
    +            ? this.getAxis(dim) : this.getBaseAxis();
    +        return {
    +            baseAxes: [baseAxis],
    +            otherAxes: [this.getOtherAxis(baseAxis)]
    +        };
    +    },
    +
    +    /**
    +     * Convert a single data item to (x, y) point.
    +     * Parameter data is an array which the first element is radius and the second is angle
    +     * @param {Array.<number>} data
    +     * @param {boolean} [clamp=false]
    +     * @return {Array.<number>}
    +     */
    +    dataToPoint: function (data, clamp) {
    +        return this.coordToPoint([
    +            this._radiusAxis.dataToRadius(data[0], clamp),
    +            this._angleAxis.dataToAngle(data[1], clamp)
    +        ]);
    +    },
    +
    +    /**
    +     * Convert a (x, y) point to data
    +     * @param {Array.<number>} point
    +     * @param {boolean} [clamp=false]
    +     * @return {Array.<number>}
    +     */
    +    pointToData: function (point, clamp) {
    +        var coord = this.pointToCoord(point);
    +        return [
    +            this._radiusAxis.radiusToData(coord[0], clamp),
    +            this._angleAxis.angleToData(coord[1], clamp)
    +        ];
    +    },
    +
    +    /**
    +     * Convert a (x, y) point to (radius, angle) coord
    +     * @param {Array.<number>} point
    +     * @return {Array.<number>}
    +     */
    +    pointToCoord: function (point) {
    +        var dx = point[0] - this.cx;
    +        var dy = point[1] - this.cy;
    +        var angleAxis = this.getAngleAxis();
    +        var extent = angleAxis.getExtent();
    +        var minAngle = Math.min(extent[0], extent[1]);
    +        var maxAngle = Math.max(extent[0], extent[1]);
    +        // Fix fixed extent in polarCreator
    +        // FIXME
    +        angleAxis.inverse
    +            ? (minAngle = maxAngle - 360)
    +            : (maxAngle = minAngle + 360);
    +
    +        var radius = Math.sqrt(dx * dx + dy * dy);
    +        dx /= radius;
    +        dy /= radius;
    +
    +        var radian = Math.atan2(-dy, dx) / Math.PI * 180;
    +
    +        // move to angleExtent
    +        var dir = radian < minAngle ? 1 : -1;
    +        while (radian < minAngle || radian > maxAngle) {
    +            radian += dir * 360;
    +        }
    +
    +        return [radius, radian];
    +    },
    +
    +    /**
    +     * Convert a (radius, angle) coord to (x, y) point
    +     * @param {Array.<number>} coord
    +     * @return {Array.<number>}
    +     */
    +    coordToPoint: function (coord) {
    +        var radius = coord[0];
    +        var radian = coord[1] / 180 * Math.PI;
    +        var x = Math.cos(radian) * radius + this.cx;
    +        // Inverse the y
    +        var y = -Math.sin(radian) * radius + this.cy;
    +
    +        return [x, y];
    +    }
    +
    +};
    +
    +var PolarAxisModel = ComponentModel.extend({
    +
    +    type: 'polarAxis',
    +
    +    /**
    +     * @type {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
    +     */
    +    axis: null,
    +
    +    /**
    +     * @override
    +     */
    +    getCoordSysModel: function () {
    +        return this.ecModel.queryComponents({
    +            mainType: 'polar',
    +            index: this.option.polarIndex,
    +            id: this.option.polarId
    +        })[0];
    +    }
    +
    +});
    +
    +merge(PolarAxisModel.prototype, axisModelCommonMixin);
    +
    +var polarAxisDefaultExtendedOption = {
    +    angle: {
    +        // polarIndex: 0,
    +        // polarId: '',
    +
    +        startAngle: 90,
    +
    +        clockwise: true,
    +
    +        splitNumber: 12,
    +
    +        axisLabel: {
    +            rotate: false
    +        }
    +    },
    +    radius: {
    +        // polarIndex: 0,
    +        // polarId: '',
    +
    +        splitNumber: 5
    +    }
    +};
    +
    +function getAxisType$3(axisDim, option) {
    +    // Default axis with data is category axis
    +    return option.type || (option.data ? 'category' : 'value');
    +}
    +
    +axisModelCreator('angle', PolarAxisModel, getAxisType$3, polarAxisDefaultExtendedOption.angle);
    +axisModelCreator('radius', PolarAxisModel, getAxisType$3, polarAxisDefaultExtendedOption.radius);
    +
    +extendComponentModel({
    +
    +    type: 'polar',
    +
    +    dependencies: ['polarAxis', 'angleAxis'],
    +
    +    /**
    +     * @type {module:echarts/coord/polar/Polar}
    +     */
    +    coordinateSystem: null,
    +
    +    /**
    +     * @param {string} axisType
    +     * @return {module:echarts/coord/polar/AxisModel}
    +     */
    +    findAxisModel: function (axisType) {
    +        var foundAxisModel;
    +        var ecModel = this.ecModel;
    +
    +        ecModel.eachComponent(axisType, function (axisModel) {
    +            if (axisModel.getCoordSysModel() === this) {
    +                foundAxisModel = axisModel;
    +            }
    +        }, this);
    +        return foundAxisModel;
    +    },
    +
    +    defaultOption: {
    +
    +        zlevel: 0,
    +
    +        z: 0,
    +
    +        center: ['50%', '50%'],
    +
    +        radius: '80%'
    +    }
    +});
    +
    +// TODO Axis scale
    +
    +// 依赖 PolarModel 做预处理
    +/**
    + * Resize method bound to the polar
    + * @param {module:echarts/coord/polar/PolarModel} polarModel
    + * @param {module:echarts/ExtensionAPI} api
    + */
    +function resizePolar(polar, polarModel, api) {
    +    var center = polarModel.get('center');
    +    var width = api.getWidth();
    +    var height = api.getHeight();
    +
    +    polar.cx = parsePercent$1(center[0], width);
    +    polar.cy = parsePercent$1(center[1], height);
    +
    +    var radiusAxis = polar.getRadiusAxis();
    +    var size = Math.min(width, height) / 2;
    +    var radius = parsePercent$1(polarModel.get('radius'), size);
    +    radiusAxis.inverse
    +        ? radiusAxis.setExtent(radius, 0)
    +        : radiusAxis.setExtent(0, radius);
    +}
    +
    +/**
    + * Update polar
    + */
    +function updatePolarScale(ecModel, api) {
    +    var polar = this;
    +    var angleAxis = polar.getAngleAxis();
    +    var radiusAxis = polar.getRadiusAxis();
    +    // Reset scale
    +    angleAxis.scale.setExtent(Infinity, -Infinity);
    +    radiusAxis.scale.setExtent(Infinity, -Infinity);
    +
    +    ecModel.eachSeries(function (seriesModel) {
    +        if (seriesModel.coordinateSystem === polar) {
    +            var data = seriesModel.getData();
    +            radiusAxis.scale.unionExtentFromData(data, 'radius');
    +            angleAxis.scale.unionExtentFromData(data, 'angle');
    +        }
    +    });
    +
    +    niceScaleExtent(angleAxis.scale, angleAxis.model);
    +    niceScaleExtent(radiusAxis.scale, radiusAxis.model);
    +
    +    // Fix extent of category angle axis
    +    if (angleAxis.type === 'category' && !angleAxis.onBand) {
    +        var extent = angleAxis.getExtent();
    +        var diff = 360 / angleAxis.scale.count();
    +        angleAxis.inverse ? (extent[1] += diff) : (extent[1] -= diff);
    +        angleAxis.setExtent(extent[0], extent[1]);
    +    }
    +}
    +
    +/**
    + * Set common axis properties
    + * @param {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
    + * @param {module:echarts/coord/polar/AxisModel}
    + * @inner
    + */
    +function setAxis(axis, axisModel) {
    +    axis.type = axisModel.get('type');
    +    axis.scale = createScaleByModel(axisModel);
    +    axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';
    +    axis.inverse = axisModel.get('inverse');
    +
    +    if (axisModel.mainType === 'angleAxis') {
    +        axis.inverse ^= axisModel.get('clockwise');
    +        var startAngle = axisModel.get('startAngle');
    +        axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));
    +    }
    +
    +    // Inject axis instance
    +    axisModel.axis = axis;
    +    axis.model = axisModel;
    +}
    +
    +
    +var polarCreator = {
    +
    +    dimensions: Polar.prototype.dimensions,
    +
    +    create: function (ecModel, api) {
    +        var polarList = [];
    +        ecModel.eachComponent('polar', function (polarModel, idx) {
    +            var polar = new Polar(idx);
    +            // Inject resize and update method
    +            polar.update = updatePolarScale;
    +
    +            var radiusAxis = polar.getRadiusAxis();
    +            var angleAxis = polar.getAngleAxis();
    +
    +            var radiusAxisModel = polarModel.findAxisModel('radiusAxis');
    +            var angleAxisModel = polarModel.findAxisModel('angleAxis');
    +
    +            setAxis(radiusAxis, radiusAxisModel);
    +            setAxis(angleAxis, angleAxisModel);
    +
    +            resizePolar(polar, polarModel, api);
    +
    +            polarList.push(polar);
    +
    +            polarModel.coordinateSystem = polar;
    +            polar.model = polarModel;
    +        });
    +        // Inject coordinateSystem to series
    +        ecModel.eachSeries(function (seriesModel) {
    +            if (seriesModel.get('coordinateSystem') === 'polar') {
    +                var polarModel = ecModel.queryComponents({
    +                    mainType: 'polar',
    +                    index: seriesModel.get('polarIndex'),
    +                    id: seriesModel.get('polarId')
    +                })[0];
    +
    +                if (__DEV__) {
    +                    if (!polarModel) {
    +                        throw new Error(
    +                            'Polar "' + retrieve(
    +                                seriesModel.get('polarIndex'),
    +                                seriesModel.get('polarId'),
    +                                0
    +                            ) + '" not found'
    +                        );
    +                    }
    +                }
    +                seriesModel.coordinateSystem = polarModel.coordinateSystem;
    +            }
    +        });
    +
    +        return polarList;
    +    }
    +};
    +
    +CoordinateSystemManager.register('polar', polarCreator);
    +
    +var elementList$1 = ['axisLine', 'axisLabel', 'axisTick', 'splitLine', 'splitArea'];
    +
    +function getAxisLineShape(polar, rExtent, angle) {
    +    rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());
    +    var start = polar.coordToPoint([rExtent[0], angle]);
    +    var end = polar.coordToPoint([rExtent[1], angle]);
    +
    +    return {
    +        x1: start[0],
    +        y1: start[1],
    +        x2: end[0],
    +        y2: end[1]
    +    };
    +}
    +
    +function getRadiusIdx(polar) {
    +    var radiusAxis = polar.getRadiusAxis();
    +    return radiusAxis.inverse ? 0 : 1;
    +}
    +
    +AxisView.extend({
    +
    +    type: 'angleAxis',
    +
    +    axisPointerClass: 'PolarAxisPointer',
    +
    +    render: function (angleAxisModel, ecModel) {
    +        this.group.removeAll();
    +        if (!angleAxisModel.get('show')) {
    +            return;
    +        }
    +
    +        var angleAxis = angleAxisModel.axis;
    +        var polar = angleAxis.polar;
    +        var radiusExtent = polar.getRadiusAxis().getExtent();
    +        var ticksAngles = angleAxis.getTicksCoords();
    +
    +        if (angleAxis.type !== 'category') {
    +            // Remove the last tick which will overlap the first tick
    +            ticksAngles.pop();
    +        }
    +
    +        each$1(elementList$1, function (name) {
    +            if (angleAxisModel.get(name +'.show')
    +                && (!angleAxis.scale.isBlank() || name === 'axisLine')
    +            ) {
    +                this['_' + name](angleAxisModel, polar, ticksAngles, radiusExtent);
    +            }
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _axisLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
    +        var lineStyleModel = angleAxisModel.getModel('axisLine.lineStyle');
    +
    +        var circle = new Circle({
    +            shape: {
    +                cx: polar.cx,
    +                cy: polar.cy,
    +                r: radiusExtent[getRadiusIdx(polar)]
    +            },
    +            style: lineStyleModel.getLineStyle(),
    +            z2: 1,
    +            silent: true
    +        });
    +        circle.style.fill = null;
    +
    +        this.group.add(circle);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _axisTick: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
    +        var tickModel = angleAxisModel.getModel('axisTick');
    +
    +        var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');
    +        var radius = radiusExtent[getRadiusIdx(polar)];
    +
    +        var lines = map(ticksAngles, function (tickAngle) {
    +            return new Line({
    +                shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngle)
    +            });
    +        });
    +        this.group.add(mergePath(
    +            lines, {
    +                style: defaults(
    +                    tickModel.getModel('lineStyle').getLineStyle(),
    +                    {
    +                        stroke: angleAxisModel.get('axisLine.lineStyle.color')
    +                    }
    +                )
    +            }
    +        ));
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _axisLabel: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
    +        var axis = angleAxisModel.axis;
    +
    +        var categoryData = angleAxisModel.get('data');
    +
    +        var labelModel = angleAxisModel.getModel('axisLabel');
    +        var labels = angleAxisModel.getFormattedLabels();
    +
    +        var labelMargin = labelModel.get('margin');
    +        var labelsAngles = axis.getLabelsCoords();
    +
    +        // Use length of ticksAngles because it may remove the last tick to avoid overlapping
    +        for (var i = 0; i < ticksAngles.length; i++) {
    +            var r = radiusExtent[getRadiusIdx(polar)];
    +            var p = polar.coordToPoint([r + labelMargin, labelsAngles[i]]);
    +            var cx = polar.cx;
    +            var cy = polar.cy;
    +
    +            var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3
    +                ? 'center' : (p[0] > cx ? 'left' : 'right');
    +            var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3
    +                ? 'middle' : (p[1] > cy ? 'top' : 'bottom');
    +
    +            if (categoryData && categoryData[i] && categoryData[i].textStyle) {
    +                labelModel = new Model(categoryData[i].textStyle, labelModel, labelModel.ecModel);
    +            }
    +
    +            var textEl = new Text({silent: true});
    +            this.group.add(textEl);
    +            setTextStyle(textEl.style, labelModel, {
    +                x: p[0],
    +                y: p[1],
    +                textFill: labelModel.getTextColor() || angleAxisModel.get('axisLine.lineStyle.color'),
    +                text: labels[i],
    +                textAlign: labelTextAlign,
    +                textVerticalAlign: labelTextVerticalAlign
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _splitLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
    +        var splitLineModel = angleAxisModel.getModel('splitLine');
    +        var lineStyleModel = splitLineModel.getModel('lineStyle');
    +        var lineColors = lineStyleModel.get('color');
    +        var lineCount = 0;
    +
    +        lineColors = lineColors instanceof Array ? lineColors : [lineColors];
    +
    +        var splitLines = [];
    +
    +        for (var i = 0; i < ticksAngles.length; i++) {
    +            var colorIndex = (lineCount++) % lineColors.length;
    +            splitLines[colorIndex] = splitLines[colorIndex] || [];
    +            splitLines[colorIndex].push(new Line({
    +                shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i])
    +            }));
    +        }
    +
    +        // Simple optimization
    +        // Batching the lines if color are the same
    +        for (var i = 0; i < splitLines.length; i++) {
    +            this.group.add(mergePath(splitLines[i], {
    +                style: defaults({
    +                    stroke: lineColors[i % lineColors.length]
    +                }, lineStyleModel.getLineStyle()),
    +                silent: true,
    +                z: angleAxisModel.get('z')
    +            }));
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _splitArea: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
    +
    +        var splitAreaModel = angleAxisModel.getModel('splitArea');
    +        var areaStyleModel = splitAreaModel.getModel('areaStyle');
    +        var areaColors = areaStyleModel.get('color');
    +        var lineCount = 0;
    +
    +        areaColors = areaColors instanceof Array ? areaColors : [areaColors];
    +
    +        var splitAreas = [];
    +
    +        var RADIAN = Math.PI / 180;
    +        var prevAngle = -ticksAngles[0] * RADIAN;
    +        var r0 = Math.min(radiusExtent[0], radiusExtent[1]);
    +        var r1 = Math.max(radiusExtent[0], radiusExtent[1]);
    +
    +        var clockwise = angleAxisModel.get('clockwise');
    +
    +        for (var i = 1; i < ticksAngles.length; i++) {
    +            var colorIndex = (lineCount++) % areaColors.length;
    +            splitAreas[colorIndex] = splitAreas[colorIndex] || [];
    +            splitAreas[colorIndex].push(new Sector({
    +                shape: {
    +                    cx: polar.cx,
    +                    cy: polar.cy,
    +                    r0: r0,
    +                    r: r1,
    +                    startAngle: prevAngle,
    +                    endAngle: -ticksAngles[i] * RADIAN,
    +                    clockwise: clockwise
    +                },
    +                silent: true
    +            }));
    +            prevAngle = -ticksAngles[i] * RADIAN;
    +        }
    +
    +        // Simple optimization
    +        // Batching the lines if color are the same
    +        for (var i = 0; i < splitAreas.length; i++) {
    +            this.group.add(mergePath(splitAreas[i], {
    +                style: defaults({
    +                    fill: areaColors[i % areaColors.length]
    +                }, areaStyleModel.getAreaStyle()),
    +                silent: true
    +            }));
    +        }
    +    }
    +});
    +
    +var axisBuilderAttrs$3 = [
    +    'axisLine', 'axisTickLabel', 'axisName'
    +];
    +var selfBuilderAttrs$1 = [
    +    'splitLine', 'splitArea'
    +];
    +
    +AxisView.extend({
    +
    +    type: 'radiusAxis',
    +
    +    axisPointerClass: 'PolarAxisPointer',
    +
    +    render: function (radiusAxisModel, ecModel) {
    +        this.group.removeAll();
    +        if (!radiusAxisModel.get('show')) {
    +            return;
    +        }
    +        var radiusAxis = radiusAxisModel.axis;
    +        var polar = radiusAxis.polar;
    +        var angleAxis = polar.getAngleAxis();
    +        var ticksCoords = radiusAxis.getTicksCoords();
    +        var axisAngle = angleAxis.getExtent()[0];
    +        var radiusExtent = radiusAxis.getExtent();
    +
    +        var layout = layoutAxis(polar, radiusAxisModel, axisAngle);
    +        var axisBuilder = new AxisBuilder(radiusAxisModel, layout);
    +        each$1(axisBuilderAttrs$3, axisBuilder.add, axisBuilder);
    +        this.group.add(axisBuilder.getGroup());
    +
    +        each$1(selfBuilderAttrs$1, function (name) {
    +            if (radiusAxisModel.get(name +'.show') && !radiusAxis.scale.isBlank()) {
    +                this['_' + name](radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords);
    +            }
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _splitLine: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
    +        var splitLineModel = radiusAxisModel.getModel('splitLine');
    +        var lineStyleModel = splitLineModel.getModel('lineStyle');
    +        var lineColors = lineStyleModel.get('color');
    +        var lineCount = 0;
    +
    +        lineColors = lineColors instanceof Array ? lineColors : [lineColors];
    +
    +        var splitLines = [];
    +
    +        for (var i = 0; i < ticksCoords.length; i++) {
    +            var colorIndex = (lineCount++) % lineColors.length;
    +            splitLines[colorIndex] = splitLines[colorIndex] || [];
    +            splitLines[colorIndex].push(new Circle({
    +                shape: {
    +                    cx: polar.cx,
    +                    cy: polar.cy,
    +                    r: ticksCoords[i]
    +                },
    +                silent: true
    +            }));
    +        }
    +
    +        // Simple optimization
    +        // Batching the lines if color are the same
    +        for (var i = 0; i < splitLines.length; i++) {
    +            this.group.add(mergePath(splitLines[i], {
    +                style: defaults({
    +                    stroke: lineColors[i % lineColors.length],
    +                    fill: null
    +                }, lineStyleModel.getLineStyle()),
    +                silent: true
    +            }));
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _splitArea: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
    +
    +        var splitAreaModel = radiusAxisModel.getModel('splitArea');
    +        var areaStyleModel = splitAreaModel.getModel('areaStyle');
    +        var areaColors = areaStyleModel.get('color');
    +        var lineCount = 0;
    +
    +        areaColors = areaColors instanceof Array ? areaColors : [areaColors];
    +
    +        var splitAreas = [];
    +
    +        var prevRadius = ticksCoords[0];
    +        for (var i = 1; i < ticksCoords.length; i++) {
    +            var colorIndex = (lineCount++) % areaColors.length;
    +            splitAreas[colorIndex] = splitAreas[colorIndex] || [];
    +            splitAreas[colorIndex].push(new Sector({
    +                shape: {
    +                    cx: polar.cx,
    +                    cy: polar.cy,
    +                    r0: prevRadius,
    +                    r: ticksCoords[i],
    +                    startAngle: 0,
    +                    endAngle: Math.PI * 2
    +                },
    +                silent: true
    +            }));
    +            prevRadius = ticksCoords[i];
    +        }
    +
    +        // Simple optimization
    +        // Batching the lines if color are the same
    +        for (var i = 0; i < splitAreas.length; i++) {
    +            this.group.add(mergePath(splitAreas[i], {
    +                style: defaults({
    +                    fill: areaColors[i % areaColors.length]
    +                }, areaStyleModel.getAreaStyle()),
    +                silent: true
    +            }));
    +        }
    +    }
    +});
    +
    +/**
    + * @inner
    + */
    +function layoutAxis(polar, radiusAxisModel, axisAngle) {
    +    return {
    +        position: [polar.cx, polar.cy],
    +        rotation: axisAngle / 180 * Math.PI,
    +        labelDirection: -1,
    +        tickDirection: -1,
    +        nameDirection: 1,
    +        labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),
    +        // Over splitLine and splitArea
    +        z2: 1
    +    };
    +}
    +
    +var PolarAxisPointer = BaseAxisPointer.extend({
    +
    +    /**
    +     * @override
    +     */
    +    makeElOption: function (elOption, value, axisModel, axisPointerModel, api) {
    +        var axis = axisModel.axis;
    +
    +        if (axis.dim === 'angle') {
    +            this.animationThreshold = Math.PI / 18;
    +        }
    +
    +        var polar = axis.polar;
    +        var otherAxis = polar.getOtherAxis(axis);
    +        var otherExtent = otherAxis.getExtent();
    +
    +        var coordValue;
    +        coordValue = axis['dataTo' + capitalFirst(axis.dim)](value);
    +
    +        var axisPointerType = axisPointerModel.get('type');
    +        if (axisPointerType && axisPointerType !== 'none') {
    +            var elStyle = buildElStyle(axisPointerModel);
    +            var pointerOption = pointerShapeBuilder$2[axisPointerType](
    +                axis, polar, coordValue, otherExtent, elStyle
    +            );
    +            pointerOption.style = elStyle;
    +            elOption.graphicKey = pointerOption.type;
    +            elOption.pointer = pointerOption;
    +        }
    +
    +        var labelMargin = axisPointerModel.get('label.margin');
    +        var labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin);
    +        buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos);
    +    }
    +
    +    // Do not support handle, utill any user requires it.
    +
    +});
    +
    +function getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin) {
    +    var axis = axisModel.axis;
    +    var coord = axis.dataToCoord(value);
    +    var axisAngle = polar.getAngleAxis().getExtent()[0];
    +    axisAngle = axisAngle / 180 * Math.PI;
    +    var radiusExtent = polar.getRadiusAxis().getExtent();
    +    var position;
    +    var align;
    +    var verticalAlign;
    +
    +    if (axis.dim === 'radius') {
    +        var transform = create$1();
    +        rotate(transform, transform, axisAngle);
    +        translate(transform, transform, [polar.cx, polar.cy]);
    +        position = applyTransform$1([coord, -labelMargin], transform);
    +
    +        var labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0;
    +        var labelLayout = AxisBuilder.innerTextLayout(
    +            axisAngle, labelRotation * Math.PI / 180, -1
    +        );
    +        align = labelLayout.textAlign;
    +        verticalAlign = labelLayout.textVerticalAlign;
    +    }
    +    else { // angle axis
    +        var r = radiusExtent[1];
    +        position = polar.coordToPoint([r + labelMargin, coord]);
    +        var cx = polar.cx;
    +        var cy = polar.cy;
    +        align = Math.abs(position[0] - cx) / r < 0.3
    +            ? 'center' : (position[0] > cx ? 'left' : 'right');
    +        verticalAlign = Math.abs(position[1] - cy) / r < 0.3
    +            ? 'middle' : (position[1] > cy ? 'top' : 'bottom');
    +    }
    +
    +    return {
    +        position: position,
    +        align: align,
    +        verticalAlign: verticalAlign
    +    };
    +}
    +
    +
    +var pointerShapeBuilder$2 = {
    +
    +    line: function (axis, polar, coordValue, otherExtent, elStyle) {
    +        return axis.dim === 'angle'
    +            ? {
    +                type: 'Line',
    +                shape: makeLineShape(
    +                    polar.coordToPoint([otherExtent[0], coordValue]),
    +                    polar.coordToPoint([otherExtent[1], coordValue])
    +                )
    +            }
    +            : {
    +                type: 'Circle',
    +                shape: {
    +                    cx: polar.cx,
    +                    cy: polar.cy,
    +                    r: coordValue
    +                }
    +            };
    +    },
    +
    +    shadow: function (axis, polar, coordValue, otherExtent, elStyle) {
    +        var bandWidth = axis.getBandWidth();
    +        var radian = Math.PI / 180;
    +
    +        return axis.dim === 'angle'
    +            ? {
    +                type: 'Sector',
    +                shape: makeSectorShape(
    +                    polar.cx, polar.cy,
    +                    otherExtent[0], otherExtent[1],
    +                    // In ECharts y is negative if angle is positive
    +                    (-coordValue - bandWidth / 2) * radian,
    +                    (-coordValue + bandWidth / 2) * radian
    +                )
    +            }
    +            : {
    +                type: 'Sector',
    +                shape: makeSectorShape(
    +                    polar.cx, polar.cy,
    +                    coordValue - bandWidth / 2,
    +                    coordValue + bandWidth / 2,
    +                    0, Math.PI * 2
    +                )
    +            };
    +    }
    +};
    +
    +AxisView.registerAxisPointerClass('PolarAxisPointer', PolarAxisPointer);
    +
    +// For reducing size of echarts.min, barLayoutPolar is required by polar.
    +registerLayout(curry(barLayoutPolar, 'bar'));
    +
    +// Polar view
    +extendComponentView({
    +    type: 'polar'
    +});
    +
    +var GeoModel = ComponentModel.extend({
    +
    +    type: 'geo',
    +
    +    /**
    +     * @type {module:echarts/coord/geo/Geo}
    +     */
    +    coordinateSystem: null,
    +
    +    layoutMode: 'box',
    +
    +    init: function (option) {
    +        ComponentModel.prototype.init.apply(this, arguments);
    +
    +        // Default label emphasis `show`
    +        defaultEmphasis(option.label, ['show']);
    +    },
    +
    +    optionUpdated: function () {
    +        var option = this.option;
    +        var self = this;
    +
    +        option.regions = geoCreator.getFilledRegions(option.regions, option.map, option.nameMap);
    +
    +        this._optionModelMap = reduce(option.regions || [], function (optionModelMap, regionOpt) {
    +            if (regionOpt.name) {
    +                optionModelMap.set(regionOpt.name, new Model(regionOpt, self));
    +            }
    +            return optionModelMap;
    +        }, createHashMap());
    +
    +        this.updateSelectedMap(option.regions);
    +    },
    +
    +    defaultOption: {
    +
    +        zlevel: 0,
    +
    +        z: 0,
    +
    +        show: true,
    +
    +        left: 'center',
    +
    +        top: 'center',
    +
    +
    +        // width:,
    +        // height:,
    +        // right
    +        // bottom
    +
    +        // Aspect is width / height. Inited to be geoJson bbox aspect
    +        // This parameter is used for scale this aspect
    +        aspectScale: 0.75,
    +
    +        ///// Layout with center and size
    +        // If you wan't to put map in a fixed size box with right aspect ratio
    +        // This two properties may more conveninet
    +        // layoutCenter: [50%, 50%]
    +        // layoutSize: 100
    +
    +
    +        silent: false,
    +
    +        // Map type
    +        map: '',
    +
    +        // Define left-top, right-bottom coords to control view
    +        // For example, [ [180, 90], [-180, -90] ]
    +        boundingCoords: null,
    +
    +        // Default on center of map
    +        center: null,
    +
    +        zoom: 1,
    +
    +        scaleLimit: null,
    +
    +        // selectedMode: false
    +
    +        label: {
    +            normal: {
    +                show: false,
    +                color: '#000'
    +            },
    +            emphasis: {
    +                show: true,
    +                color: 'rgb(100,0,0)'
    +            }
    +        },
    +
    +        itemStyle: {
    +            normal: {
    +                // color: 各异,
    +                borderWidth: 0.5,
    +                borderColor: '#444',
    +                color: '#eee'
    +            },
    +            emphasis: {                 // 也是选中样式
    +                color: 'rgba(255,215,0,0.8)'
    +            }
    +        },
    +
    +        regions: []
    +    },
    +
    +    /**
    +     * Get model of region
    +     * @param  {string} name
    +     * @return {module:echarts/model/Model}
    +     */
    +    getRegionModel: function (name) {
    +        return this._optionModelMap.get(name) || new Model(null, this, this.ecModel);
    +    },
    +
    +    /**
    +     * Format label
    +     * @param {string} name Region name
    +     * @param {string} [status='normal'] 'normal' or 'emphasis'
    +     * @return {string}
    +     */
    +    getFormattedLabel: function (name, status) {
    +        var regionModel = this.getRegionModel(name);
    +        var formatter = regionModel.get('label.' + status + '.formatter');
    +        var params = {
    +            name: name
    +        };
    +        if (typeof formatter === 'function') {
    +            params.status = status;
    +            return formatter(params);
    +        }
    +        else if (typeof formatter === 'string') {
    +            return formatter.replace('{a}', name != null ? name : '');
    +        }
    +    },
    +
    +    setZoom: function (zoom) {
    +        this.option.zoom = zoom;
    +    },
    +
    +    setCenter: function (center) {
    +        this.option.center = center;
    +    }
    +});
    +
    +mixin(GeoModel, selectableMixin);
    +
    +extendComponentView({
    +
    +    type: 'geo',
    +
    +    init: function (ecModel, api) {
    +        var mapDraw = new MapDraw(api, true);
    +        this._mapDraw = mapDraw;
    +
    +        this.group.add(mapDraw.group);
    +    },
    +
    +    render: function (geoModel, ecModel, api, payload) {
    +        // Not render if it is an toggleSelect action from self
    +        if (payload && payload.type === 'geoToggleSelect'
    +            && payload.from === this.uid
    +        ) {
    +            return;
    +        }
    +
    +        var mapDraw = this._mapDraw;
    +        if (geoModel.get('show')) {
    +            mapDraw.draw(geoModel, ecModel, api, this, payload);
    +        }
    +        else {
    +            this._mapDraw.group.removeAll();
    +        }
    +
    +        this.group.silent = geoModel.get('silent');
    +    },
    +
    +    dispose: function () {
    +        this._mapDraw && this._mapDraw.remove();
    +    }
    +
    +});
    +
    +function makeAction(method, actionInfo) {
    +    actionInfo.update = 'updateView';
    +    registerAction(actionInfo, function (payload, ecModel) {
    +        var selected = {};
    +
    +        ecModel.eachComponent(
    +            { mainType: 'geo', query: payload},
    +            function (geoModel) {
    +                geoModel[method](payload.name);
    +                var geo = geoModel.coordinateSystem;
    +                each$1(geo.regions, function (region) {
    +                    selected[region.name] = geoModel.isSelected(region.name) || false;
    +                });
    +            }
    +        );
    +
    +        return {
    +            selected: selected,
    +            name: payload.name
    +        };
    +    });
    +}
    +
    +makeAction('toggleSelected', {
    +    type: 'geoToggleSelect',
    +    event: 'geoselectchanged'
    +});
    +makeAction('select', {
    +    type: 'geoSelect',
    +    event: 'geoselected'
    +});
    +makeAction('unSelect', {
    +    type: 'geoUnSelect',
    +    event: 'geounselected'
    +});
    +
    +var DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear'];
    +
    +var preprocessor$1 = function (option, isNew) {
    +    var brushComponents = option && option.brush;
    +    if (!isArray(brushComponents)) {
    +        brushComponents = brushComponents ? [brushComponents] : [];
    +    }
    +
    +    if (!brushComponents.length) {
    +        return;
    +    }
    +
    +    var brushComponentSpecifiedBtns = [];
    +
    +    each$1(brushComponents, function (brushOpt) {
    +        var tbs = brushOpt.hasOwnProperty('toolbox')
    +            ? brushOpt.toolbox : [];
    +
    +        if (tbs instanceof Array) {
    +            brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs);
    +        }
    +    });
    +
    +    var toolbox = option && option.toolbox;
    +
    +    if (isArray(toolbox)) {
    +        toolbox = toolbox[0];
    +    }
    +    if (!toolbox) {
    +        toolbox = {feature: {}};
    +        option.toolbox = [toolbox];
    +    }
    +
    +    var toolboxFeature = (toolbox.feature || (toolbox.feature = {}));
    +    var toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {});
    +    var brushTypes = toolboxBrush.type || (toolboxBrush.type = []);
    +
    +    brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns);
    +
    +    removeDuplicate(brushTypes);
    +
    +    if (isNew && !brushTypes.length) {
    +        brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS);
    +    }
    +};
    +
    +function removeDuplicate(arr) {
    +    var map$$1 = {};
    +    each$1(arr, function (val) {
    +        map$$1[val] = 1;
    +    });
    +    arr.length = 0;
    +    each$1(map$$1, function (flag, val) {
    +        arr.push(val);
    +    });
    +}
    +
    +/**
    + * @file Visual solution, for consistent option specification.
    + */
    +
    +var each$22 = each$1;
    +
    +function hasKeys(obj) {
    +    if (obj) {
    +        for (var name in obj){
    +            if (obj.hasOwnProperty(name)) {
    +                return true;
    +            }
    +        }
    +    }
    +}
    +
    +/**
    + * @param {Object} option
    + * @param {Array.<string>} stateList
    + * @param {Function} [supplementVisualOption]
    + * @return {Object} visualMappings <state, <visualType, module:echarts/visual/VisualMapping>>
    + */
    +function createVisualMappings(option, stateList, supplementVisualOption) {
    +    var visualMappings = {};
    +
    +    each$22(stateList, function (state) {
    +        var mappings = visualMappings[state] = createMappings();
    +
    +        each$22(option[state], function (visualData, visualType) {
    +            if (!VisualMapping.isValidType(visualType)) {
    +                return;
    +            }
    +            var mappingOption = {
    +                type: visualType,
    +                visual: visualData
    +            };
    +            supplementVisualOption && supplementVisualOption(mappingOption, state);
    +            mappings[visualType] = new VisualMapping(mappingOption);
    +
    +            // Prepare a alpha for opacity, for some case that opacity
    +            // is not supported, such as rendering using gradient color.
    +            if (visualType === 'opacity') {
    +                mappingOption = clone(mappingOption);
    +                mappingOption.type = 'colorAlpha';
    +                mappings.__hidden.__alphaForOpacity = new VisualMapping(mappingOption);
    +            }
    +        });
    +    });
    +
    +    return visualMappings;
    +
    +    function createMappings() {
    +        var Creater = function () {};
    +        // Make sure hidden fields will not be visited by
    +        // object iteration (with hasOwnProperty checking).
    +        Creater.prototype.__hidden = Creater.prototype;
    +        var obj = new Creater();
    +        return obj;
    +    }
    +}
    +
    +/**
    + * @param {Object} thisOption
    + * @param {Object} newOption
    + * @param {Array.<string>} keys
    + */
    +function replaceVisualOption(thisOption, newOption, keys) {
    +    // Visual attributes merge is not supported, otherwise it
    +    // brings overcomplicated merge logic. See #2853. So if
    +    // newOption has anyone of these keys, all of these keys
    +    // will be reset. Otherwise, all keys remain.
    +    var has;
    +    each$1(keys, function (key) {
    +        if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {
    +            has = true;
    +        }
    +    });
    +    has && each$1(keys, function (key) {
    +        if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {
    +            thisOption[key] = clone(newOption[key]);
    +        }
    +        else {
    +            delete thisOption[key];
    +        }
    +    });
    +}
    +
    +/**
    + * @param {Array.<string>} stateList
    + * @param {Object} visualMappings <state, Object.<visualType, module:echarts/visual/VisualMapping>>
    + * @param {module:echarts/data/List} list
    + * @param {Function} getValueState param: valueOrIndex, return: state.
    + * @param {object} [scope] Scope for getValueState
    + * @param {string} [dimension] Concrete dimension, if used.
    + */
    +function applyVisual(stateList, visualMappings, data, getValueState, scope, dimension) {
    +    var visualTypesMap = {};
    +    each$1(stateList, function (state) {
    +        var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);
    +        visualTypesMap[state] = visualTypes;
    +    });
    +
    +    var dataIndex;
    +
    +    function getVisual(key) {
    +        return data.getItemVisual(dataIndex, key);
    +    }
    +
    +    function setVisual(key, value) {
    +        data.setItemVisual(dataIndex, key, value);
    +    }
    +
    +    if (dimension == null) {
    +        data.each(eachItem, true);
    +    }
    +    else {
    +        data.each([dimension], eachItem, true);
    +    }
    +
    +    function eachItem(valueOrIndex, index) {
    +        dataIndex = dimension == null ? valueOrIndex : index;
    +
    +        var rawDataItem = data.getRawDataItem(dataIndex);
    +        // Consider performance
    +        if (rawDataItem && rawDataItem.visualMap === false) {
    +            return;
    +        }
    +
    +        var valueState = getValueState.call(scope, valueOrIndex);
    +        var mappings = visualMappings[valueState];
    +        var visualTypes = visualTypesMap[valueState];
    +
    +        for (var i = 0, len = visualTypes.length; i < len; i++) {
    +            var type = visualTypes[i];
    +            mappings[type] && mappings[type].applyVisual(
    +                valueOrIndex, getVisual, setVisual
    +            );
    +        }
    +    }
    +}
    +
    +// Key of the first level is brushType: `line`, `rect`, `polygon`.
    +// Key of the second level is chart element type: `point`, `rect`.
    +// See moudule:echarts/component/helper/BrushController
    +// function param:
    +//      {Object} itemLayout fetch from data.getItemLayout(dataIndex)
    +//      {Object} selectors {point: selector, rect: selector, ...}
    +//      {Object} area {range: [[], [], ..], boudingRect}
    +// function return:
    +//      {boolean} Whether in the given brush.
    +var selector = {
    +    lineX: getLineSelectors(0),
    +    lineY: getLineSelectors(1),
    +    rect: {
    +        point: function (itemLayout, selectors, area) {
    +            return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]);
    +        },
    +        rect: function (itemLayout, selectors, area) {
    +            return itemLayout && area.boundingRect.intersect(itemLayout);
    +        }
    +    },
    +    polygon: {
    +        point: function (itemLayout, selectors, area) {
    +            return itemLayout
    +                && area.boundingRect.contain(itemLayout[0], itemLayout[1])
    +                && contain$1(area.range, itemLayout[0], itemLayout[1]);
    +        },
    +        rect: function (itemLayout, selectors, area) {
    +            var points = area.range;
    +
    +            if (!itemLayout || points.length <= 1) {
    +                return false;
    +            }
    +
    +            var x = itemLayout.x;
    +            var y = itemLayout.y;
    +            var width = itemLayout.width;
    +            var height = itemLayout.height;
    +            var p = points[0];
    +
    +            if (contain$1(points, x, y)
    +                || contain$1(points, x + width, y)
    +                || contain$1(points, x, y + height)
    +                || contain$1(points, x + width, y + height)
    +                || BoundingRect.create(itemLayout).contain(p[0], p[1])
    +                || lineIntersectPolygon(x, y, x + width, y, points)
    +                || lineIntersectPolygon(x, y, x, y + height, points)
    +                || lineIntersectPolygon(x + width, y, x + width, y + height, points)
    +                || lineIntersectPolygon(x, y + height, x + width, y + height, points)
    +            ) {
    +                return true;
    +            }
    +        }
    +    }
    +};
    +
    +function getLineSelectors(xyIndex) {
    +    var xy = ['x', 'y'];
    +    var wh = ['width', 'height'];
    +
    +    return {
    +        point: function (itemLayout, selectors, area) {
    +            if (itemLayout) {
    +                var range = area.range;
    +                var p = itemLayout[xyIndex];
    +                return inLineRange(p, range);
    +            }
    +        },
    +        rect: function (itemLayout, selectors, area) {
    +            if (itemLayout) {
    +                var range = area.range;
    +                var layoutRange = [
    +                    itemLayout[xy[xyIndex]],
    +                    itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]
    +                ];
    +                layoutRange[1] < layoutRange[0] && layoutRange.reverse();
    +                return inLineRange(layoutRange[0], range)
    +                    || inLineRange(layoutRange[1], range)
    +                    || inLineRange(range[0], layoutRange)
    +                    || inLineRange(range[1], layoutRange);
    +            }
    +        }
    +    };
    +}
    +
    +function inLineRange(p, range) {
    +    return range[0] <= p && p <= range[1];
    +}
    +
    +function lineIntersectPolygon(lx, ly, l2x, l2y, points) {
    +    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
    +        var p = points[i];
    +        if (lineIntersect(lx, ly, l2x, l2y, p[0], p[1], p2[0], p2[1])) {
    +            return true;
    +        }
    +        p2 = p;
    +    }
    +}
    +
    +// Code from <http://blog.csdn.net/rickliuxiao/article/details/6259322> with some fix.
    +// See <https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection>
    +function lineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
    +    var delta = determinant(a2x - a1x, b1x - b2x, a2y - a1y, b1y - b2y);
    +    if (nearZero(delta)) { // parallel
    +        return false;
    +    }
    +    var namenda = determinant(b1x - a1x, b1x - b2x, b1y - a1y, b1y - b2y) / delta;
    +    if (namenda < 0 || namenda > 1) {
    +        return false;
    +    }
    +    var miu = determinant(a2x - a1x, b1x - a1x, a2y - a1y, b1y - a1y) / delta;
    +    if (miu < 0 || miu > 1) {
    +        return false;
    +    }
    +    return true;
    +}
    +
    +function nearZero(val) {
    +    return val <= (1e-6) && val >= -(1e-6);
    +}
    +
    +function determinant(v1, v2, v3, v4) {
    +    return v1 * v4 - v2 * v3;
    +}
    +
    +var each$23 = each$1;
    +var indexOf$2 = indexOf;
    +var curry$5 = curry;
    +
    +var COORD_CONVERTS = ['dataToPoint', 'pointToData'];
    +
    +// FIXME
    +// how to genarialize to more coordinate systems.
    +var INCLUDE_FINDER_MAIN_TYPES = [
    +    'grid', 'xAxis', 'yAxis', 'geo', 'graph',
    +    'polar', 'radiusAxis', 'angleAxis', 'bmap'
    +];
    +
    +/**
    + * [option in constructor]:
    + * {
    + *     Index/Id/Name of geo, xAxis, yAxis, grid: See util/model#parseFinder.
    + * }
    + *
    + *
    + * [targetInfo]:
    + *
    + * There can be multiple axes in a single targetInfo. Consider the case
    + * of `grid` component, a targetInfo represents a grid which contains one or more
    + * cartesian and one or more axes. And consider the case of parallel system,
    + * which has multiple axes in a coordinate system.
    + * Can be {
    + *     panelId: ...,
    + *     coordSys: <a representitive cartesian in grid (first cartesian by default)>,
    + *     coordSyses: all cartesians.
    + *     gridModel: <grid component>
    + *     xAxes: correspond to coordSyses on index
    + *     yAxes: correspond to coordSyses on index
    + * }
    + * or {
    + *     panelId: ...,
    + *     coordSys: <geo coord sys>
    + *     coordSyses: [<geo coord sys>]
    + *     geoModel: <geo component>
    + * }
    + *
    + *
    + * [panelOpt]:
    + *
    + * Make from targetInfo. Input to BrushController.
    + * {
    + *     panelId: ...,
    + *     rect: ...
    + * }
    + *
    + *
    + * [area]:
    + *
    + * Generated by BrushController or user input.
    + * {
    + *     panelId: Used to locate coordInfo directly. If user inpput, no panelId.
    + *     brushType: determine how to convert to/from coord('rect' or 'polygon' or 'lineX/Y').
    + *     Index/Id/Name of geo, xAxis, yAxis, grid: See util/model#parseFinder.
    + *     range: pixel range.
    + *     coordRange: representitive coord range (the first one of coordRanges).
    + *     coordRanges: <Array> coord ranges, used in multiple cartesian in one grid.
    + * }
    + */
    +
    +/**
    + * @param {Object} option contains Index/Id/Name of xAxis/yAxis/geo/grid
    + *        Each can be {number|Array.<number>}. like: {xAxisIndex: [3, 4]}
    + * @param {module:echarts/model/Global} ecModel
    + * @param {Object} [opt]
    + * @param {Array.<string>} [opt.include] include coordinate system types.
    + */
    +function BrushTargetManager(option, ecModel, opt) {
    +    /**
    +     * @private
    +     * @type {Array.<Object>}
    +     */
    +    var targetInfoList = this._targetInfoList = [];
    +    var info = {};
    +    var foundCpts = parseFinder$1(ecModel, option);
    +
    +    each$23(targetInfoBuilders, function (builder, type) {
    +        if (!opt || !opt.include || indexOf$2(opt.include, type) >= 0) {
    +            builder(foundCpts, targetInfoList, info);
    +        }
    +    });
    +}
    +
    +var proto = BrushTargetManager.prototype;
    +
    +proto.setOutputRanges = function (areas, ecModel) {
    +    this.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {
    +        (area.coordRanges || (area.coordRanges = [])).push(coordRange);
    +        // area.coordRange is the first of area.coordRanges
    +        if (!area.coordRange) {
    +            area.coordRange = coordRange;
    +            // In 'category' axis, coord to pixel is not reversible, so we can not
    +            // rebuild range by coordRange accrately, which may bring trouble when
    +            // brushing only one item. So we use __rangeOffset to rebuilding range
    +            // by coordRange. And this it only used in brush component so it is no
    +            // need to be adapted to coordRanges.
    +            var result = coordConvert[area.brushType](0, coordSys, coordRange);
    +            area.__rangeOffset = {
    +                offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]),
    +                xyMinMax: result.xyMinMax
    +            };
    +        }
    +    });
    +};
    +
    +proto.matchOutputRanges = function (areas, ecModel, cb) {
    +    each$23(areas, function (area) {
    +        var targetInfo = this.findTargetInfo(area, ecModel);
    +
    +        if (targetInfo && targetInfo !== true) {
    +            each$1(
    +                targetInfo.coordSyses,
    +                function (coordSys) {
    +                    var result = coordConvert[area.brushType](1, coordSys, area.range);
    +                    cb(area, result.values, coordSys, ecModel);
    +                }
    +            );
    +        }
    +    }, this);
    +};
    +
    +proto.setInputRanges = function (areas, ecModel) {
    +    each$23(areas, function (area) {
    +        var targetInfo = this.findTargetInfo(area, ecModel);
    +
    +        if (__DEV__) {
    +            assert(
    +                !targetInfo || targetInfo === true || area.coordRange,
    +                'coordRange must be specified when coord index specified.'
    +            );
    +            assert(
    +                !targetInfo || targetInfo !== true || area.range,
    +                'range must be specified in global brush.'
    +            );
    +        }
    +
    +        area.range = area.range || [];
    +
    +        // convert coordRange to global range and set panelId.
    +        if (targetInfo && targetInfo !== true) {
    +            area.panelId = targetInfo.panelId;
    +            // (1) area.range shoule always be calculate from coordRange but does
    +            // not keep its original value, for the sake of the dataZoom scenario,
    +            // where area.coordRange remains unchanged but area.range may be changed.
    +            // (2) Only support converting one coordRange to pixel range in brush
    +            // component. So do not consider `coordRanges`.
    +            // (3) About __rangeOffset, see comment above.
    +            var result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange);
    +            var rangeOffset = area.__rangeOffset;
    +            area.range = rangeOffset
    +                ? diffProcessor[area.brushType](
    +                    result.values,
    +                    rangeOffset.offset,
    +                    getScales(result.xyMinMax, rangeOffset.xyMinMax)
    +                )
    +                : result.values;
    +        }
    +    }, this);
    +};
    +
    +proto.makePanelOpts = function (api, getDefaultBrushType) {
    +    return map(this._targetInfoList, function (targetInfo) {
    +        var rect = targetInfo.getPanelRect();
    +        return {
    +            panelId: targetInfo.panelId,
    +            defaultBrushType: getDefaultBrushType && getDefaultBrushType(targetInfo),
    +            clipPath: makeRectPanelClipPath(rect),
    +            isTargetByCursor: makeRectIsTargetByCursor(
    +                rect, api, targetInfo.coordSysModel
    +            ),
    +            getLinearBrushOtherExtent: makeLinearBrushOtherExtent(rect)
    +        };
    +    });
    +};
    +
    +proto.controlSeries = function (area, seriesModel, ecModel) {
    +    // Check whether area is bound in coord, and series do not belong to that coord.
    +    // If do not do this check, some brush (like lineX) will controll all axes.
    +    var targetInfo = this.findTargetInfo(area, ecModel);
    +    return targetInfo === true || (
    +        targetInfo && indexOf$2(targetInfo.coordSyses, seriesModel.coordinateSystem) >= 0
    +    );
    +};
    +
    +/**
    + * If return Object, a coord found.
    + * If reutrn true, global found.
    + * Otherwise nothing found.
    + *
    + * @param {Object} area
    + * @param {Array} targetInfoList
    + * @return {Object|boolean}
    + */
    +proto.findTargetInfo = function (area, ecModel) {
    +    var targetInfoList = this._targetInfoList;
    +    var foundCpts = parseFinder$1(ecModel, area);
    +
    +    for (var i = 0; i < targetInfoList.length; i++) {
    +        var targetInfo = targetInfoList[i];
    +        var areaPanelId = area.panelId;
    +        if (areaPanelId) {
    +            if (targetInfo.panelId === areaPanelId) {
    +                return targetInfo;
    +            }
    +        }
    +        else {
    +            for (var i = 0; i < targetInfoMatchers.length; i++) {
    +                if (targetInfoMatchers[i](foundCpts, targetInfo)) {
    +                    return targetInfo;
    +                }
    +            }
    +        }
    +    }
    +
    +    return true;
    +};
    +
    +function formatMinMax(minMax) {
    +    minMax[0] > minMax[1] && minMax.reverse();
    +    return minMax;
    +}
    +
    +function parseFinder$1(ecModel, option) {
    +    return parseFinder(
    +        ecModel, option, {includeMainTypes: INCLUDE_FINDER_MAIN_TYPES}
    +    );
    +}
    +
    +var targetInfoBuilders = {
    +
    +    grid: function (foundCpts, targetInfoList) {
    +        var xAxisModels = foundCpts.xAxisModels;
    +        var yAxisModels = foundCpts.yAxisModels;
    +        var gridModels = foundCpts.gridModels;
    +        // Remove duplicated.
    +        var gridModelMap = createHashMap();
    +        var xAxesHas = {};
    +        var yAxesHas = {};
    +
    +        if (!xAxisModels && !yAxisModels && !gridModels) {
    +            return;
    +        }
    +
    +        each$23(xAxisModels, function (axisModel) {
    +            var gridModel = axisModel.axis.grid.model;
    +            gridModelMap.set(gridModel.id, gridModel);
    +            xAxesHas[gridModel.id] = true;
    +        });
    +        each$23(yAxisModels, function (axisModel) {
    +            var gridModel = axisModel.axis.grid.model;
    +            gridModelMap.set(gridModel.id, gridModel);
    +            yAxesHas[gridModel.id] = true;
    +        });
    +        each$23(gridModels, function (gridModel) {
    +            gridModelMap.set(gridModel.id, gridModel);
    +            xAxesHas[gridModel.id] = true;
    +            yAxesHas[gridModel.id] = true;
    +        });
    +
    +        gridModelMap.each(function (gridModel) {
    +            var grid = gridModel.coordinateSystem;
    +            var cartesians = [];
    +
    +            each$23(grid.getCartesians(), function (cartesian, index) {
    +                if (indexOf$2(xAxisModels, cartesian.getAxis('x').model) >= 0
    +                    || indexOf$2(yAxisModels, cartesian.getAxis('y').model) >= 0
    +                ) {
    +                    cartesians.push(cartesian);
    +                }
    +            });
    +            targetInfoList.push({
    +                panelId: 'grid--' + gridModel.id,
    +                gridModel: gridModel,
    +                coordSysModel: gridModel,
    +                // Use the first one as the representitive coordSys.
    +                coordSys: cartesians[0],
    +                coordSyses: cartesians,
    +                getPanelRect: panelRectBuilder.grid,
    +                xAxisDeclared: xAxesHas[gridModel.id],
    +                yAxisDeclared: yAxesHas[gridModel.id]
    +            });
    +        });
    +    },
    +
    +    geo: function (foundCpts, targetInfoList) {
    +        each$23(foundCpts.geoModels, function (geoModel) {
    +            var coordSys = geoModel.coordinateSystem;
    +            targetInfoList.push({
    +                panelId: 'geo--' + geoModel.id,
    +                geoModel: geoModel,
    +                coordSysModel: geoModel,
    +                coordSys: coordSys,
    +                coordSyses: [coordSys],
    +                getPanelRect: panelRectBuilder.geo
    +            });
    +        });
    +    }
    +};
    +
    +var targetInfoMatchers = [
    +
    +    // grid
    +    function (foundCpts, targetInfo) {
    +        var xAxisModel = foundCpts.xAxisModel;
    +        var yAxisModel = foundCpts.yAxisModel;
    +        var gridModel = foundCpts.gridModel;
    +
    +        !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model);
    +        !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model);
    +
    +        return gridModel && gridModel === targetInfo.gridModel;
    +    },
    +
    +    // geo
    +    function (foundCpts, targetInfo) {
    +        var geoModel = foundCpts.geoModel;
    +        return geoModel && geoModel === targetInfo.geoModel;
    +    }
    +];
    +
    +var panelRectBuilder = {
    +
    +    grid: function () {
    +        // grid is not Transformable.
    +        return this.coordSys.grid.getRect().clone();
    +    },
    +
    +    geo: function () {
    +        var coordSys = this.coordSys;
    +        var rect = coordSys.getBoundingRect().clone();
    +        // geo roam and zoom transform
    +        rect.applyTransform(getTransform(coordSys));
    +        return rect;
    +    }
    +};
    +
    +var coordConvert = {
    +
    +    lineX: curry$5(axisConvert, 0),
    +
    +    lineY: curry$5(axisConvert, 1),
    +
    +    rect: function (to, coordSys, rangeOrCoordRange) {
    +        var xminymin = coordSys[COORD_CONVERTS[to]]([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]]);
    +        var xmaxymax = coordSys[COORD_CONVERTS[to]]([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]]);
    +        var values = [
    +            formatMinMax([xminymin[0], xmaxymax[0]]),
    +            formatMinMax([xminymin[1], xmaxymax[1]])
    +        ];
    +        return {values: values, xyMinMax: values};
    +    },
    +
    +    polygon: function (to, coordSys, rangeOrCoordRange) {
    +        var xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]];
    +        var values = map(rangeOrCoordRange, function (item) {
    +            var p = coordSys[COORD_CONVERTS[to]](item);
    +            xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]);
    +            xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]);
    +            xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]);
    +            xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]);
    +            return p;
    +        });
    +        return {values: values, xyMinMax: xyMinMax};
    +    }
    +};
    +
    +function axisConvert(axisNameIndex, to, coordSys, rangeOrCoordRange) {
    +    if (__DEV__) {
    +        assert(
    +            coordSys.type === 'cartesian2d',
    +            'lineX/lineY brush is available only in cartesian2d.'
    +        );
    +    }
    +
    +    var axis = coordSys.getAxis(['x', 'y'][axisNameIndex]);
    +    var values = formatMinMax(map([0, 1], function (i) {
    +        return to
    +            ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]))
    +            : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i]));
    +    }));
    +    var xyMinMax = [];
    +    xyMinMax[axisNameIndex] = values;
    +    xyMinMax[1 - axisNameIndex] = [NaN, NaN];
    +
    +    return {values: values, xyMinMax: xyMinMax};
    +}
    +
    +var diffProcessor = {
    +    lineX: curry$5(axisDiffProcessor, 0),
    +
    +    lineY: curry$5(axisDiffProcessor, 1),
    +
    +    rect: function (values, refer, scales) {
    +        return [
    +            [values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]],
    +            [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]
    +        ];
    +    },
    +
    +    polygon: function (values, refer, scales) {
    +        return map(values, function (item, idx) {
    +            return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]];
    +        });
    +    }
    +};
    +
    +function axisDiffProcessor(axisNameIndex, values, refer, scales) {
    +    return [
    +        values[0] - scales[axisNameIndex] * refer[0],
    +        values[1] - scales[axisNameIndex] * refer[1]
    +    ];
    +}
    +
    +// We have to process scale caused by dataZoom manually,
    +// although it might be not accurate.
    +function getScales(xyMinMaxCurr, xyMinMaxOrigin) {
    +    var sizeCurr = getSize(xyMinMaxCurr);
    +    var sizeOrigin = getSize(xyMinMaxOrigin);
    +    var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];
    +    isNaN(scales[0]) && (scales[0] = 1);
    +    isNaN(scales[1]) && (scales[1] = 1);
    +    return scales;
    +}
    +
    +function getSize(xyMinMax) {
    +    return xyMinMax
    +        ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]]
    +        : [NaN, NaN];
    +}
    +
    +var STATE_LIST = ['inBrush', 'outOfBrush'];
    +var DISPATCH_METHOD = '__ecBrushSelect';
    +var DISPATCH_FLAG = '__ecInBrushSelectEvent';
    +var PRIORITY_BRUSH = PRIORITY.VISUAL.BRUSH;
    +
    +/**
    + * Layout for visual, the priority higher than other layout, and before brush visual.
    + */
    +registerLayout(PRIORITY_BRUSH, function (ecModel, api, payload) {
    +    ecModel.eachComponent({mainType: 'brush'}, function (brushModel) {
    +
    +        payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(
    +            payload.key === 'brush' ? payload.brushOption : {brushType: false}
    +        );
    +
    +        var brushTargetManager = brushModel.brushTargetManager = new BrushTargetManager(brushModel.option, ecModel);
    +
    +        brushTargetManager.setInputRanges(brushModel.areas, ecModel);
    +    });
    +});
    +
    +/**
    + * Register the visual encoding if this modules required.
    + */
    +registerVisual(PRIORITY_BRUSH, function (ecModel, api, payload) {
    +
    +    var brushSelected = [];
    +    var throttleType;
    +    var throttleDelay;
    +
    +    ecModel.eachComponent({mainType: 'brush'}, function (brushModel, brushIndex) {
    +
    +        var thisBrushSelected = {
    +            brushId: brushModel.id,
    +            brushIndex: brushIndex,
    +            brushName: brushModel.name,
    +            areas: clone(brushModel.areas),
    +            selected: []
    +        };
    +        // Every brush component exists in event params, convenient
    +        // for user to find by index.
    +        brushSelected.push(thisBrushSelected);
    +
    +        var brushOption = brushModel.option;
    +        var brushLink = brushOption.brushLink;
    +        var linkedSeriesMap = [];
    +        var selectedDataIndexForLink = [];
    +        var rangeInfoBySeries = [];
    +        var hasBrushExists = 0;
    +
    +        if (!brushIndex) { // Only the first throttle setting works.
    +            throttleType = brushOption.throttleType;
    +            throttleDelay = brushOption.throttleDelay;
    +        }
    +
    +        // Add boundingRect and selectors to range.
    +        var areas = map(brushModel.areas, function (area) {
    +            return bindSelector(
    +                defaults(
    +                    {boundingRect: boundingRectBuilders[area.brushType](area)},
    +                    area
    +                )
    +            );
    +        });
    +
    +        var visualMappings = createVisualMappings(
    +            brushModel.option, STATE_LIST, function (mappingOption) {
    +                mappingOption.mappingMethod = 'fixed';
    +            }
    +        );
    +
    +        isArray(brushLink) && each$1(brushLink, function (seriesIndex) {
    +            linkedSeriesMap[seriesIndex] = 1;
    +        });
    +
    +        function linkOthers(seriesIndex) {
    +            return brushLink === 'all' || linkedSeriesMap[seriesIndex];
    +        }
    +
    +        // If no supported brush or no brush on the series,
    +        // all visuals should be in original state.
    +        function brushed(rangeInfoList) {
    +            return !!rangeInfoList.length;
    +        }
    +
    +        /**
    +         * Logic for each series: (If the logic has to be modified one day, do it carefully!)
    +         *
    +         * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers  ) => StepA: ┬record, ┬ StepB: ┬visualByRecord.
    +         *   !brushed┘    ├hasBrushExist ┤                            └nothing,┘        ├visualByRecord.
    +         *                └!hasBrushExist┘                                              └nothing.
    +         * ( !brushed  && ┬hasBrushExist ┬ && linkOthers  ) => StepA:  nothing,  StepB: ┬visualByRecord.
    +         *                └!hasBrushExist┘                                              └nothing.
    +         * ( brushed ┬ &&                     !linkOthers ) => StepA:  nothing,  StepB: ┬visualByCheck.
    +         *   !brushed┘                                                                  └nothing.
    +         * ( !brushed  &&                     !linkOthers ) => StepA:  nothing,  StepB:  nothing.
    +         */
    +
    +        // Step A
    +        ecModel.eachSeries(function (seriesModel, seriesIndex) {
    +            var rangeInfoList = rangeInfoBySeries[seriesIndex] = [];
    +
    +            seriesModel.subType === 'parallel'
    +                ? stepAParallel(seriesModel, seriesIndex, rangeInfoList)
    +                : stepAOthers(seriesModel, seriesIndex, rangeInfoList);
    +        });
    +
    +        function stepAParallel(seriesModel, seriesIndex) {
    +            var coordSys = seriesModel.coordinateSystem;
    +            hasBrushExists |= coordSys.hasAxisBrushed();
    +
    +            linkOthers(seriesIndex) && coordSys.eachActiveState(
    +                seriesModel.getData(),
    +                function (activeState, dataIndex) {
    +                    activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1);
    +                }
    +            );
    +        }
    +
    +        function stepAOthers(seriesModel, seriesIndex, rangeInfoList) {
    +            var selectorsByBrushType = getSelectorsByBrushType(seriesModel);
    +            if (!selectorsByBrushType || brushModelNotControll(brushModel, seriesIndex)) {
    +                return;
    +            }
    +
    +            each$1(areas, function (area) {
    +                selectorsByBrushType[area.brushType]
    +                    && brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)
    +                    && rangeInfoList.push(area);
    +                hasBrushExists |= brushed(rangeInfoList);
    +            });
    +
    +            if (linkOthers(seriesIndex) && brushed(rangeInfoList)) {
    +                var data = seriesModel.getData();
    +                data.each(function (dataIndex) {
    +                    if (checkInRange(selectorsByBrushType, rangeInfoList, data, dataIndex)) {
    +                        selectedDataIndexForLink[dataIndex] = 1;
    +                    }
    +                });
    +            }
    +        }
    +
    +        // Step B
    +        ecModel.eachSeries(function (seriesModel, seriesIndex) {
    +            var seriesBrushSelected = {
    +                seriesId: seriesModel.id,
    +                seriesIndex: seriesIndex,
    +                seriesName: seriesModel.name,
    +                dataIndex: []
    +            };
    +            // Every series exists in event params, convenient
    +            // for user to find series by seriesIndex.
    +            thisBrushSelected.selected.push(seriesBrushSelected);
    +
    +            var selectorsByBrushType = getSelectorsByBrushType(seriesModel);
    +            var rangeInfoList = rangeInfoBySeries[seriesIndex];
    +
    +            var data = seriesModel.getData();
    +            var getValueState = linkOthers(seriesIndex)
    +                ? function (dataIndex) {
    +                    return selectedDataIndexForLink[dataIndex]
    +                        ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush')
    +                        : 'outOfBrush';
    +                }
    +                : function (dataIndex) {
    +                    return checkInRange(selectorsByBrushType, rangeInfoList, data, dataIndex)
    +                        ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush')
    +                        : 'outOfBrush';
    +                };
    +
    +            // If no supported brush or no brush, all visuals are in original state.
    +            (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList))
    +                && applyVisual(
    +                    STATE_LIST, visualMappings, data, getValueState
    +                );
    +        });
    +
    +    });
    +
    +    dispatchAction(api, throttleType, throttleDelay, brushSelected, payload);
    +});
    +
    +function dispatchAction(api, throttleType, throttleDelay, brushSelected, payload) {
    +    // This event will not be triggered when `setOpion`, otherwise dead lock may
    +    // triggered when do `setOption` in event listener, which we do not find
    +    // satisfactory way to solve yet. Some considered resolutions:
    +    // (a) Diff with prevoius selected data ant only trigger event when changed.
    +    // But store previous data and diff precisely (i.e., not only by dataIndex, but
    +    // also detect value changes in selected data) might bring complexity or fragility.
    +    // (b) Use spectial param like `silent` to suppress event triggering.
    +    // But such kind of volatile param may be weird in `setOption`.
    +    if (!payload) {
    +        return;
    +    }
    +
    +    var zr = api.getZr();
    +    if (zr[DISPATCH_FLAG]) {
    +        return;
    +    }
    +
    +    if (!zr[DISPATCH_METHOD]) {
    +        zr[DISPATCH_METHOD] = doDispatch;
    +    }
    +
    +    var fn = createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType);
    +
    +    fn(api, brushSelected);
    +}
    +
    +function doDispatch(api, brushSelected) {
    +    if (!api.isDisposed()) {
    +        var zr = api.getZr();
    +        zr[DISPATCH_FLAG] = true;
    +        api.dispatchAction({
    +            type: 'brushSelect',
    +            batch: brushSelected
    +        });
    +        zr[DISPATCH_FLAG] = false;
    +    }
    +}
    +
    +function checkInRange(selectorsByBrushType, rangeInfoList, data, dataIndex) {
    +    for (var i = 0, len = rangeInfoList.length; i < len; i++) {
    +        var area = rangeInfoList[i];
    +        if (selectorsByBrushType[area.brushType](
    +            dataIndex, data, area.selectors, area
    +        )) {
    +            return true;
    +        }
    +    }
    +}
    +
    +function getSelectorsByBrushType(seriesModel) {
    +    var brushSelector = seriesModel.brushSelector;
    +    if (isString(brushSelector)) {
    +        var sels = [];
    +        each$1(selector, function (selectorsByElementType, brushType) {
    +            sels[brushType] = function (dataIndex, data, selectors, area) {
    +                var itemLayout = data.getItemLayout(dataIndex);
    +                return selectorsByElementType[brushSelector](itemLayout, selectors, area);
    +            };
    +        });
    +        return sels;
    +    }
    +    else if (isFunction(brushSelector)) {
    +        var bSelector = {};
    +        each$1(selector, function (sel, brushType) {
    +            bSelector[brushType] = brushSelector;
    +        });
    +        return bSelector;
    +    }
    +    return brushSelector;
    +}
    +
    +function brushModelNotControll(brushModel, seriesIndex) {
    +    var seriesIndices = brushModel.option.seriesIndex;
    +    return seriesIndices != null
    +        && seriesIndices !== 'all'
    +        && (
    +            isArray(seriesIndices)
    +            ? indexOf(seriesIndices, seriesIndex) < 0
    +            : seriesIndex !== seriesIndices
    +        );
    +}
    +
    +function bindSelector(area) {
    +    var selectors = area.selectors = {};
    +    each$1(selector[area.brushType], function (selFn, elType) {
    +        // Do not use function binding or curry for performance.
    +        selectors[elType] = function (itemLayout) {
    +            return selFn(itemLayout, selectors, area);
    +        };
    +    });
    +    return area;
    +}
    +
    +var boundingRectBuilders = {
    +
    +    lineX: noop,
    +
    +    lineY: noop,
    +
    +    rect: function (area) {
    +        return getBoundingRectFromMinMax(area.range);
    +    },
    +
    +    polygon: function (area) {
    +        var minMax;
    +        var range = area.range;
    +
    +        for (var i = 0, len = range.length; i < len; i++) {
    +            minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]];
    +            var rg = range[i];
    +            rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]);
    +            rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]);
    +            rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]);
    +            rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]);
    +        }
    +
    +        return minMax && getBoundingRectFromMinMax(minMax);
    +    }
    +};
    +
    +function getBoundingRectFromMinMax(minMax) {
    +    return new BoundingRect(
    +        minMax[0][0],
    +        minMax[1][0],
    +        minMax[0][1] - minMax[0][0],
    +        minMax[1][1] - minMax[1][0]
    +    );
    +}
    +
    +var DEFAULT_OUT_OF_BRUSH_COLOR = ['#ddd'];
    +
    +var BrushModel = extendComponentModel({
    +
    +    type: 'brush',
    +
    +    dependencies: ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'],
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        // inBrush: null,
    +        // outOfBrush: null,
    +        toolbox: null,          // Default value see preprocessor.
    +        brushLink: null,        // Series indices array, broadcast using dataIndex.
    +                                // or 'all', which means all series. 'none' or null means no series.
    +        seriesIndex: 'all',     // seriesIndex array, specify series controlled by this brush component.
    +        geoIndex: null,         //
    +        xAxisIndex: null,
    +        yAxisIndex: null,
    +
    +        brushType: 'rect',      // Default brushType, see BrushController.
    +        brushMode: 'single',    // Default brushMode, 'single' or 'multiple'
    +        transformable: true,    // Default transformable.
    +        brushStyle: {           // Default brushStyle
    +            borderWidth: 1,
    +            color: 'rgba(120,140,180,0.3)',
    +            borderColor: 'rgba(120,140,180,0.8)'
    +        },
    +
    +        throttleType: 'fixRate',// Throttle in brushSelected event. 'fixRate' or 'debounce'.
    +                                // If null, no throttle. Valid only in the first brush component
    +        throttleDelay: 0,       // Unit: ms, 0 means every event will be triggered.
    +
    +        // FIXME
    +        // 试验效果
    +        removeOnClick: true,
    +
    +        z: 10000
    +    },
    +
    +    /**
    +     * @readOnly
    +     * @type {Array.<Object>}
    +     */
    +    areas: [],
    +
    +    /**
    +     * Current activated brush type.
    +     * If null, brush is inactived.
    +     * see module:echarts/component/helper/BrushController
    +     * @readOnly
    +     * @type {string}
    +     */
    +    brushType: null,
    +
    +    /**
    +     * Current brush opt.
    +     * see module:echarts/component/helper/BrushController
    +     * @readOnly
    +     * @type {Object}
    +     */
    +    brushOption: {},
    +
    +    /**
    +     * @readOnly
    +     * @type {Array.<Object>}
    +     */
    +    coordInfoList: [],
    +
    +    optionUpdated: function (newOption, isInit) {
    +        var thisOption = this.option;
    +
    +        !isInit && replaceVisualOption(
    +            thisOption, newOption, ['inBrush', 'outOfBrush']
    +        );
    +
    +        thisOption.inBrush = thisOption.inBrush || {};
    +        // Always give default visual, consider setOption at the second time.
    +        thisOption.outOfBrush = thisOption.outOfBrush || {color: DEFAULT_OUT_OF_BRUSH_COLOR};
    +    },
    +
    +    /**
    +     * If ranges is null/undefined, range state remain.
    +     *
    +     * @param {Array.<Object>} [ranges]
    +     */
    +    setAreas: function (areas) {
    +        if (__DEV__) {
    +            assert(isArray(areas));
    +            each$1(areas, function (area) {
    +                assert(area.brushType, 'Illegal areas');
    +            });
    +        }
    +
    +        // If ranges is null/undefined, range state remain.
    +        // This helps user to dispatchAction({type: 'brush'}) with no areas
    +        // set but just want to get the current brush select info from a `brush` event.
    +        if (!areas) {
    +            return;
    +        }
    +
    +        this.areas = map(areas, function (area) {
    +            return generateBrushOption(this.option, area);
    +        }, this);
    +    },
    +
    +    /**
    +     * see module:echarts/component/helper/BrushController
    +     * @param {Object} brushOption
    +     */
    +    setBrushOption: function (brushOption) {
    +        this.brushOption = generateBrushOption(this.option, brushOption);
    +        this.brushType = this.brushOption.brushType;
    +    }
    +
    +});
    +
    +function generateBrushOption(option, brushOption) {
    +    return merge(
    +        {
    +            brushType: option.brushType,
    +            brushMode: option.brushMode,
    +            transformable: option.transformable,
    +            brushStyle: new Model(option.brushStyle).getItemStyle(),
    +            removeOnClick: option.removeOnClick,
    +            z: option.z
    +        },
    +        brushOption,
    +        true
    +    );
    +}
    +
    +extendComponentView({
    +
    +    type: 'brush',
    +
    +    init: function (ecModel, api) {
    +
    +        /**
    +         * @readOnly
    +         * @type {module:echarts/model/Global}
    +         */
    +        this.ecModel = ecModel;
    +
    +        /**
    +         * @readOnly
    +         * @type {module:echarts/ExtensionAPI}
    +         */
    +        this.api = api;
    +
    +        /**
    +         * @readOnly
    +         * @type {module:echarts/component/brush/BrushModel}
    +         */
    +        this.model;
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/component/helper/BrushController}
    +         */
    +        (this._brushController = new BrushController(api.getZr()))
    +            .on('brush', bind(this._onBrush, this))
    +            .mount();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (brushModel) {
    +        this.model = brushModel;
    +        return updateController.apply(this, arguments);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    updateView: updateController,
    +
    +    /**
    +     * @override
    +     */
    +    updateLayout: updateController,
    +
    +    /**
    +     * @override
    +     */
    +    updateVisual: updateController,
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        this._brushController.dispose();
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onBrush: function (areas, opt) {
    +        var modelId = this.model.id;
    +
    +        this.model.brushTargetManager.setOutputRanges(areas, this.ecModel);
    +
    +        // Action is not dispatched on drag end, because the drag end
    +        // emits the same params with the last drag move event, and
    +        // may have some delay when using touch pad, which makes
    +        // animation not smooth (when using debounce).
    +        (!opt.isEnd || opt.removeOnClick) && this.api.dispatchAction({
    +            type: 'brush',
    +            brushId: modelId,
    +            areas: clone(areas),
    +            $from: modelId
    +        });
    +    }
    +
    +});
    +
    +function updateController(brushModel, ecModel, api, payload) {
    +    // Do not update controller when drawing.
    +    (!payload || payload.$from !== brushModel.id) && this._brushController
    +        .setPanels(brushModel.brushTargetManager.makePanelOpts(api))
    +        .enableBrush(brushModel.brushOption)
    +        .updateCovers(brushModel.areas.slice());
    +}
    +
    +/**
    + * payload: {
    + *      brushIndex: number, or,
    + *      brushId: string, or,
    + *      brushName: string,
    + *      globalRanges: Array
    + * }
    + */
    +registerAction(
    +        {type: 'brush', event: 'brush', update: 'updateView'},
    +    function (payload, ecModel) {
    +        ecModel.eachComponent({mainType: 'brush', query: payload}, function (brushModel) {
    +            brushModel.setAreas(payload.areas);
    +        });
    +    }
    +);
    +
    +/**
    + * payload: {
    + *      brushComponents: [
    + *          {
    + *              brushId,
    + *              brushIndex,
    + *              brushName,
    + *              series: [
    + *                  {
    + *                      seriesId,
    + *                      seriesIndex,
    + *                      seriesName,
    + *                      rawIndices: [21, 34, ...]
    + *                  },
    + *                  ...
    + *              ]
    + *          },
    + *          ...
    + *      ]
    + * }
    + */
    +registerAction(
    +        {type: 'brushSelect', event: 'brushSelected', update: 'none'},
    +    function () {}
    +);
    +
    +var features = {};
    +
    +function register$1(name, ctor) {
    +    features[name] = ctor;
    +}
    +
    +function get$5(name) {
    +    return features[name];
    +}
    +
    +var lang = {
    +    toolbox: {
    +        brush: {
    +            title: {
    +                rect: '矩形选择',
    +                polygon: '圈选',
    +                lineX: '横向选择',
    +                lineY: '纵向选择',
    +                keep: '保持选择',
    +                clear: '清除选择'
    +            }
    +        },
    +        dataView: {
    +            title: '数据视图',
    +            lang: ['数据视图', '关闭', '刷新']
    +        },
    +        dataZoom: {
    +            title: {
    +                zoom: '区域缩放',
    +                back: '区域缩放还原'
    +            }
    +        },
    +        magicType: {
    +            title: {
    +                line: '切换为折线图',
    +                bar: '切换为柱状图',
    +                stack: '切换为堆叠',
    +                tiled: '切换为平铺'
    +            }
    +        },
    +        restore: {
    +            title: '还原'
    +        },
    +        saveAsImage: {
    +            title: '保存为图片',
    +            lang: ['右键另存为图片']
    +        }
    +    }
    +};
    +
    +var brushLang = lang.toolbox.brush;
    +
    +function Brush(model, ecModel, api) {
    +    this.model = model;
    +    this.ecModel = ecModel;
    +    this.api = api;
    +
    +    /**
    +     * @private
    +     * @type {string}
    +     */
    +    this._brushType;
    +
    +    /**
    +     * @private
    +     * @type {string}
    +     */
    +    this._brushMode;
    +}
    +
    +Brush.defaultOption = {
    +    show: true,
    +    type: ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'],
    +    icon: {
    +        rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13', // jshint ignore:line
    +        polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2', // jshint ignore:line
    +        lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4', // jshint ignore:line
    +        lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4', // jshint ignore:line
    +        keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z', // jshint ignore:line
    +        clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line
    +    },
    +    // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`
    +    title: clone(brushLang.title)
    +};
    +
    +var proto$1 = Brush.prototype;
    +
    +proto$1.render =
    +proto$1.updateView =
    +proto$1.updateLayout = function (featureModel, ecModel, api) {
    +    var brushType;
    +    var brushMode;
    +    var isBrushed;
    +
    +    ecModel.eachComponent({mainType: 'brush'}, function (brushModel) {
    +        brushType = brushModel.brushType;
    +        brushMode = brushModel.brushOption.brushMode || 'single';
    +        isBrushed |= brushModel.areas.length;
    +    });
    +    this._brushType = brushType;
    +    this._brushMode = brushMode;
    +
    +    each$1(featureModel.get('type', true), function (type) {
    +        featureModel.setIconStatus(
    +            type,
    +            (
    +                type === 'keep'
    +                ? brushMode === 'multiple'
    +                : type === 'clear'
    +                ? isBrushed
    +                : type === brushType
    +            ) ? 'emphasis' : 'normal'
    +        );
    +    });
    +};
    +
    +proto$1.getIcons = function () {
    +    var model = this.model;
    +    var availableIcons = model.get('icon', true);
    +    var icons = {};
    +    each$1(model.get('type', true), function (type) {
    +        if (availableIcons[type]) {
    +            icons[type] = availableIcons[type];
    +        }
    +    });
    +    return icons;
    +};
    +
    +proto$1.onclick = function (ecModel, api, type) {
    +    var brushType = this._brushType;
    +    var brushMode = this._brushMode;
    +
    +    if (type === 'clear') {
    +        // Trigger parallel action firstly
    +        api.dispatchAction({
    +            type: 'axisAreaSelect',
    +            intervals: []
    +        });
    +
    +        api.dispatchAction({
    +            type: 'brush',
    +            command: 'clear',
    +            // Clear all areas of all brush components.
    +            areas: []
    +        });
    +    }
    +    else {
    +        api.dispatchAction({
    +            type: 'takeGlobalCursor',
    +            key: 'brush',
    +            brushOption: {
    +                brushType: type === 'keep'
    +                    ? brushType
    +                    : (brushType === type ? false : type),
    +                brushMode: type === 'keep'
    +                    ? (brushMode === 'multiple' ? 'single' : 'multiple')
    +                    : brushMode
    +            }
    +        });
    +    }
    +};
    +
    +register$1('brush', Brush);
    +
    +/**
    + * Brush component entry
    + */
    +
    +registerPreprocessor(preprocessor$1);
    +
    +// (24*60*60*1000)
    +var PROXIMATE_ONE_DAY = 86400000;
    +
    +/**
    + * Calendar
    + *
    + * @constructor
    + *
    + * @param {Object} calendarModel calendarModel
    + * @param {Object} ecModel       ecModel
    + * @param {Object} api           api
    + */
    +function Calendar(calendarModel, ecModel, api) {
    +    this._model = calendarModel;
    +}
    +
    +Calendar.prototype = {
    +
    +    constructor: Calendar,
    +
    +    type: 'calendar',
    +
    +    dimensions: ['time', 'value'],
    +
    +    // Required in createListFromData
    +    getDimensionsInfo: function () {
    +        return [{name: 'time', type: 'time'}];
    +    },
    +
    +    getRangeInfo: function () {
    +        return this._rangeInfo;
    +    },
    +
    +    getModel: function () {
    +        return this._model;
    +    },
    +
    +    getRect: function () {
    +        return this._rect;
    +    },
    +
    +    getCellWidth: function () {
    +        return this._sw;
    +    },
    +
    +    getCellHeight: function () {
    +        return this._sh;
    +    },
    +
    +    getOrient: function () {
    +        return this._orient;
    +    },
    +
    +    /**
    +     * getFirstDayOfWeek
    +     *
    +     * @example
    +     *     0 : start at Sunday
    +     *     1 : start at Monday
    +     *
    +     * @return {number}
    +     */
    +    getFirstDayOfWeek: function () {
    +        return this._firstDayOfWeek;
    +    },
    +
    +    /**
    +     * get date info
    +     *
    +     * @param  {string|number} date date
    +     * @return {Object}
    +     * {
    +     *      y: string, local full year, eg., '1940',
    +     *      m: string, local month, from '01' ot '12',
    +     *      d: string, local date, from '01' to '31' (if exists),
    +     *      day: It is not date.getDay(). It is the location of the cell in a week, from 0 to 6,
    +     *      time: timestamp,
    +     *      formatedDate: string, yyyy-MM-dd,
    +     *      date: original date object.
    +     * }
    +     */
    +    getDateInfo: function (date) {
    +
    +        date = parseDate(date);
    +
    +        var y = date.getFullYear();
    +
    +        var m = date.getMonth() + 1;
    +        m = m < 10 ? '0' + m : m;
    +
    +        var d = date.getDate();
    +        d = d < 10 ? '0' + d : d;
    +
    +        var day = date.getDay();
    +
    +        day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);
    +
    +        return {
    +            y: y,
    +            m: m,
    +            d: d,
    +            day: day,
    +            time: date.getTime(),
    +            formatedDate: y + '-' + m + '-' + d,
    +            date: date
    +        };
    +    },
    +
    +    getNextNDay: function (date, n) {
    +        n = n || 0;
    +        if (n === 0) {
    +            return this.getDateInfo(date);
    +        }
    +
    +        date = new Date(this.getDateInfo(date).time);
    +        date.setDate(date.getDate() + n);
    +
    +        return this.getDateInfo(date);
    +    },
    +
    +    update: function (ecModel, api) {
    +
    +        this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay');
    +        this._orient = this._model.get('orient');
    +        this._lineWidth = this._model.getModel('itemStyle.normal').getItemStyle().lineWidth || 0;
    +
    +
    +        this._rangeInfo = this._getRangeInfo(this._initRangeOption());
    +        var weeks = this._rangeInfo.weeks || 1;
    +        var whNames = ['width', 'height'];
    +        var cellSize = this._model.get('cellSize').slice();
    +        var layoutParams = this._model.getBoxLayoutParams();
    +        var cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks];
    +
    +        each$1([0, 1], function (idx) {
    +            if (cellSizeSpecified(cellSize, idx)) {
    +                layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx];
    +            }
    +        });
    +
    +        var whGlobal = {
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        };
    +        var calendarRect = this._rect = getLayoutRect(layoutParams, whGlobal);
    +
    +        each$1([0, 1], function (idx) {
    +            if (!cellSizeSpecified(cellSize, idx)) {
    +                cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx];
    +            }
    +        });
    +
    +        function cellSizeSpecified(cellSize, idx) {
    +            return cellSize[idx] != null && cellSize[idx] !== 'auto';
    +        }
    +
    +        this._sw = cellSize[0];
    +        this._sh = cellSize[1];
    +    },
    +
    +
    +    /**
    +     * Convert a time data(time, value) item to (x, y) point.
    +     *
    +     * @override
    +     * @param  {Array|number} data data
    +     * @param  {boolean} [clamp=true] out of range
    +     * @return {Array} point
    +     */
    +    dataToPoint: function (data, clamp) {
    +        isArray(data) && (data = data[0]);
    +        clamp == null && (clamp = true);
    +
    +        var dayInfo = this.getDateInfo(data);
    +        var range = this._rangeInfo;
    +        var date = dayInfo.formatedDate;
    +
    +        // if not in range return [NaN, NaN]
    +        if (clamp && !(dayInfo.time >= range.start.time && dayInfo.time <= range.end.time)) {
    +            return [NaN, NaN];
    +        }
    +
    +        var week = dayInfo.day;
    +        var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;
    +
    +        if (this._orient === 'vertical') {
    +            return [
    +                this._rect.x + week * this._sw + this._sw / 2,
    +                this._rect.y + nthWeek * this._sh + this._sh / 2
    +            ];
    +
    +        }
    +
    +        return [
    +            this._rect.x + nthWeek * this._sw + this._sw / 2,
    +            this._rect.y + week * this._sh + this._sh / 2
    +        ];
    +
    +    },
    +
    +    /**
    +     * Convert a (x, y) point to time data
    +     *
    +     * @override
    +     * @param  {string} point point
    +     * @return {string}       data
    +     */
    +    pointToData: function (point) {
    +
    +        var date = this.pointToDate(point);
    +
    +        return date && date.time;
    +    },
    +
    +    /**
    +     * Convert a time date item to (x, y) four point.
    +     *
    +     * @param  {Array} data  date[0] is date
    +     * @param  {boolean} [clamp=true]  out of range
    +     * @return {Object}       point
    +     */
    +    dataToRect: function (data, clamp) {
    +        var point = this.dataToPoint(data, clamp);
    +
    +        return {
    +            contentShape: {
    +                x: point[0] - (this._sw - this._lineWidth) / 2,
    +                y: point[1] - (this._sh - this._lineWidth) / 2,
    +                width: this._sw - this._lineWidth,
    +                height: this._sh - this._lineWidth
    +            },
    +
    +            center: point,
    +
    +            tl: [
    +                point[0] - this._sw / 2,
    +                point[1] - this._sh / 2
    +            ],
    +
    +            tr: [
    +                point[0] + this._sw / 2,
    +                point[1] - this._sh / 2
    +            ],
    +
    +            br: [
    +                point[0] + this._sw / 2,
    +                point[1] + this._sh / 2
    +            ],
    +
    +            bl: [
    +                point[0] - this._sw / 2,
    +                point[1] + this._sh / 2
    +            ]
    +
    +        };
    +    },
    +
    +    /**
    +     * Convert a (x, y) point to time date
    +     *
    +     * @param  {Array} point point
    +     * @return {Object}       date
    +     */
    +    pointToDate: function (point) {
    +        var nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1;
    +        var nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1;
    +        var range = this._rangeInfo.range;
    +
    +        if (this._orient === 'vertical') {
    +            return this._getDateByWeeksAndDay(nthY, nthX - 1, range);
    +        }
    +
    +        return this._getDateByWeeksAndDay(nthX, nthY - 1, range);
    +    },
    +
    +    /**
    +     * @inheritDoc
    +     */
    +    convertToPixel: curry(doConvert$2, 'dataToPoint'),
    +
    +    /**
    +     * @inheritDoc
    +     */
    +    convertFromPixel: curry(doConvert$2, 'pointToData'),
    +
    +    /**
    +     * initRange
    +     *
    +     * @private
    +     * @return {Array} [start, end]
    +     */
    +    _initRangeOption: function () {
    +        var range = this._model.get('range');
    +
    +        var rg = range;
    +
    +        if (isArray(rg) && rg.length === 1) {
    +            rg = rg[0];
    +        }
    +
    +        if (/^\d{4}$/.test(rg)) {
    +            range = [rg + '-01-01', rg + '-12-31'];
    +        }
    +
    +        if (/^\d{4}[\/|-]\d{1,2}$/.test(rg)) {
    +
    +            var start = this.getDateInfo(rg);
    +            var firstDay = start.date;
    +            firstDay.setMonth(firstDay.getMonth() + 1);
    +
    +            var end = this.getNextNDay(firstDay, -1);
    +            range = [start.formatedDate, end.formatedDate];
    +        }
    +
    +        if (/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(rg)) {
    +            range = [rg, rg];
    +        }
    +
    +        var tmp = this._getRangeInfo(range);
    +
    +        if (tmp.start.time > tmp.end.time) {
    +            range.reverse();
    +        }
    +
    +        return range;
    +    },
    +
    +    /**
    +     * range info
    +     *
    +     * @private
    +     * @param  {Array} range range ['2017-01-01', '2017-07-08']
    +     *  If range[0] > range[1], they will not be reversed.
    +     * @return {Object}       obj
    +     */
    +    _getRangeInfo: function (range) {
    +        range = [
    +            this.getDateInfo(range[0]),
    +            this.getDateInfo(range[1])
    +        ];
    +
    +        var reversed;
    +        if (range[0].time > range[1].time) {
    +            reversed = true;
    +            range.reverse();
    +        }
    +
    +        var allDay = Math.floor(range[1].time / PROXIMATE_ONE_DAY)
    +            - Math.floor(range[0].time / PROXIMATE_ONE_DAY) + 1;
    +
    +        // Consider case:
    +        // Firstly set system timezone as "Time Zone: America/Toronto",
    +        // ```
    +        // var first = new Date(1478412000000 - 3600 * 1000 * 2.5);
    +        // var second = new Date(1478412000000);
    +        // var allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;
    +        // ```
    +        // will get wrong result because of DST. So we should fix it.
    +        var date = new Date(range[0].time);
    +        var startDateNum = date.getDate();
    +        var endDateNum = range[1].date.getDate();
    +        date.setDate(startDateNum + allDay - 1);
    +        // The bias can not over a month, so just compare date.
    +        if (date.getDate() !== endDateNum) {
    +            var sign = date.getTime() - range[1].time > 0 ? 1 : -1;
    +            while (date.getDate() !== endDateNum && (date.getTime() - range[1].time) * sign > 0) {
    +                allDay -= sign;
    +                date.setDate(startDateNum + allDay - 1);
    +            }
    +        }
    +
    +        var weeks = Math.floor((allDay + range[0].day + 6) / 7);
    +        var nthWeek = reversed ? -weeks + 1: weeks - 1;
    +
    +        reversed && range.reverse();
    +
    +        return {
    +            range: [range[0].formatedDate, range[1].formatedDate],
    +            start: range[0],
    +            end: range[1],
    +            allDay: allDay,
    +            weeks: weeks,
    +            // From 0.
    +            nthWeek: nthWeek,
    +            fweek: range[0].day,
    +            lweek: range[1].day
    +        };
    +    },
    +
    +    /**
    +     * get date by nthWeeks and week day in range
    +     *
    +     * @private
    +     * @param  {number} nthWeek the week
    +     * @param  {number} day   the week day
    +     * @param  {Array} range [d1, d2]
    +     * @return {Object}
    +     */
    +    _getDateByWeeksAndDay: function (nthWeek, day, range) {
    +        var rangeInfo = this._getRangeInfo(range);
    +
    +        if (nthWeek > rangeInfo.weeks
    +            || (nthWeek === 0 && day < rangeInfo.fweek)
    +            || (nthWeek === rangeInfo.weeks && day > rangeInfo.lweek)
    +        ) {
    +            return false;
    +        }
    +
    +        var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;
    +        var date = new Date(rangeInfo.start.time);
    +        date.setDate(rangeInfo.start.d + nthDay);
    +
    +        return this.getDateInfo(date);
    +    }
    +};
    +
    +Calendar.dimensions =  Calendar.prototype.dimensions;
    +
    +Calendar.getDimensionsInfo =  Calendar.prototype.getDimensionsInfo;
    +
    +Calendar.create = function (ecModel, api) {
    +    var calendarList = [];
    +
    +    ecModel.eachComponent('calendar', function (calendarModel) {
    +        var calendar = new Calendar(calendarModel, ecModel, api);
    +        calendarList.push(calendar);
    +        calendarModel.coordinateSystem = calendar;
    +    });
    +
    +    ecModel.eachSeries(function (calendarSeries) {
    +        if (calendarSeries.get('coordinateSystem') === 'calendar') {
    +            // Inject coordinate system
    +            calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0];
    +        }
    +    });
    +    return calendarList;
    +};
    +
    +function doConvert$2(methodName, ecModel, finder, value) {
    +    var calendarModel = finder.calendarModel;
    +    var seriesModel = finder.seriesModel;
    +
    +    var coordSys = calendarModel
    +        ? calendarModel.coordinateSystem
    +        : seriesModel
    +        ? seriesModel.coordinateSystem
    +        : null;
    +
    +    return coordSys === this ? coordSys[methodName](value) : null;
    +}
    +
    +CoordinateSystemManager.register('calendar', Calendar);
    +
    +var CalendarModel = ComponentModel.extend({
    +
    +    type: 'calendar',
    +
    +    /**
    +     * @type {module:echarts/coord/calendar/Calendar}
    +     */
    +    coordinateSystem: null,
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 2,
    +        left: 80,
    +        top: 60,
    +
    +        cellSize: 20,
    +
    +        // horizontal vertical
    +        orient: 'horizontal',
    +
    +        // month separate line style
    +        splitLine: {
    +            show: true,
    +            lineStyle: {
    +                color: '#000',
    +                width: 1,
    +                type: 'solid'
    +            }
    +        },
    +
    +        // rect style  temporarily unused emphasis
    +        itemStyle: {
    +            normal: {
    +                color: '#fff',
    +                borderWidth: 1,
    +                borderColor: '#ccc'
    +            }
    +        },
    +
    +        // week text style
    +        dayLabel: {
    +            show: true,
    +
    +            // a week first day
    +            firstDay: 0,
    +
    +            // start end
    +            position: 'start',
    +            margin: '50%', // 50% of cellSize
    +            nameMap: 'en',
    +            color: '#000'
    +        },
    +
    +        // month text style
    +        monthLabel: {
    +            show: true,
    +
    +            // start end
    +            position: 'start',
    +            margin: 5,
    +
    +            // center or left
    +            align: 'center',
    +
    +            // cn en []
    +            nameMap: 'en',
    +            formatter: null,
    +            color: '#000'
    +        },
    +
    +        // year text style
    +        yearLabel: {
    +            show: true,
    +
    +            // top bottom left right
    +            position: null,
    +            margin: 30,
    +            formatter: null,
    +            color: '#ccc',
    +            fontFamily: 'sans-serif',
    +            fontWeight: 'bolder',
    +            fontSize: 20
    +        }
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    init: function (option, parentModel, ecModel, extraOpt) {
    +        var inputPositionParams = getLayoutParams(option);
    +
    +        CalendarModel.superApply(this, 'init', arguments);
    +
    +        mergeAndNormalizeLayoutParams$1(option, inputPositionParams);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function (option, extraOpt) {
    +        CalendarModel.superApply(this, 'mergeOption', arguments);
    +
    +        mergeAndNormalizeLayoutParams$1(this.option, option);
    +    }
    +});
    +
    +function mergeAndNormalizeLayoutParams$1(target, raw) {
    +    // Normalize cellSize
    +    var cellSize = target.cellSize;
    +
    +    if (!isArray(cellSize)) {
    +        cellSize = target.cellSize = [cellSize, cellSize];
    +    }
    +    else if (cellSize.length === 1) {
    +        cellSize[1] = cellSize[0];
    +    }
    +
    +    var ignoreSize = map([0, 1], function (hvIdx) {
    +        // If user have set `width` or both `left` and `right`, cellSize
    +        // will be automatically set to 'auto', otherwise the default
    +        // setting of cellSize will make `width` setting not work.
    +        if (sizeCalculable(raw, hvIdx)) {
    +            cellSize[hvIdx] = 'auto';
    +        }
    +        return cellSize[hvIdx] != null && cellSize[hvIdx] !== 'auto';
    +    });
    +
    +    mergeLayoutParam(target, raw, {
    +        type: 'box', ignoreSize: ignoreSize
    +    });
    +}
    +
    +var MONTH_TEXT = {
    +    EN: [
    +        'Jan', 'Feb', 'Mar',
    +        'Apr', 'May', 'Jun',
    +        'Jul', 'Aug', 'Sep',
    +        'Oct', 'Nov', 'Dec'
    +    ],
    +    CN: [
    +        '一月', '二月', '三月',
    +        '四月', '五月', '六月',
    +        '七月', '八月', '九月',
    +        '十月', '十一月', '十二月'
    +    ]
    +};
    +
    +var WEEK_TEXT = {
    +    EN: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
    +    CN: ['日', '一', '二', '三', '四', '五', '六']
    +};
    +
    +extendComponentView({
    +
    +    type: 'calendar',
    +
    +    /**
    +     * top/left line points
    +     *  @private
    +     */
    +    _tlpoints: null,
    +
    +    /**
    +     * bottom/right line points
    +     *  @private
    +     */
    +    _blpoints: null,
    +
    +    /**
    +     * first day of month
    +     *  @private
    +     */
    +    _firstDayOfMonth: null,
    +
    +    /**
    +     * first day point of month
    +     *  @private
    +     */
    +    _firstDayPoints: null,
    +
    +    render: function (calendarModel, ecModel, api) {
    +
    +        var group = this.group;
    +
    +        group.removeAll();
    +
    +        var coordSys = calendarModel.coordinateSystem;
    +
    +        // range info
    +        var rangeData = coordSys.getRangeInfo();
    +        var orient = coordSys.getOrient();
    +
    +        this._renderDayRect(calendarModel, rangeData, group);
    +
    +        // _renderLines must be called prior to following function
    +        this._renderLines(calendarModel, rangeData, orient, group);
    +
    +        this._renderYearText(calendarModel, rangeData, orient, group);
    +
    +        this._renderMonthText(calendarModel, orient, group);
    +
    +        this._renderWeekText(calendarModel, rangeData, orient, group);
    +    },
    +
    +    // render day rect
    +    _renderDayRect: function (calendarModel, rangeData, group) {
    +        var coordSys = calendarModel.coordinateSystem;
    +        var itemRectStyleModel = calendarModel.getModel('itemStyle.normal').getItemStyle();
    +        var sw = coordSys.getCellWidth();
    +        var sh = coordSys.getCellHeight();
    +
    +        for (var i = rangeData.start.time;
    +            i <= rangeData.end.time;
    +            i = coordSys.getNextNDay(i, 1).time
    +        ) {
    +
    +            var point = coordSys.dataToRect([i], false).tl;
    +
    +            // every rect
    +            var rect = new Rect({
    +                shape: {
    +                    x: point[0],
    +                    y: point[1],
    +                    width: sw,
    +                    height: sh
    +                },
    +                cursor: 'default',
    +                style: itemRectStyleModel
    +            });
    +
    +            group.add(rect);
    +        }
    +
    +    },
    +
    +    // render separate line
    +    _renderLines: function (calendarModel, rangeData, orient, group) {
    +
    +        var self = this;
    +
    +        var coordSys = calendarModel.coordinateSystem;
    +
    +        var lineStyleModel = calendarModel.getModel('splitLine.lineStyle').getLineStyle();
    +        var show = calendarModel.get('splitLine.show');
    +
    +        var lineWidth = lineStyleModel.lineWidth;
    +
    +        this._tlpoints = [];
    +        this._blpoints = [];
    +        this._firstDayOfMonth = [];
    +        this._firstDayPoints = [];
    +
    +
    +        var firstDay = rangeData.start;
    +
    +        for (var i = 0; firstDay.time <= rangeData.end.time; i++) {
    +            addPoints(firstDay.formatedDate);
    +
    +            if (i === 0) {
    +                firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m);
    +            }
    +
    +            var date = firstDay.date;
    +            date.setMonth(date.getMonth() + 1);
    +            firstDay = coordSys.getDateInfo(date);
    +        }
    +
    +        addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);
    +
    +        function addPoints(date) {
    +
    +            self._firstDayOfMonth.push(coordSys.getDateInfo(date));
    +            self._firstDayPoints.push(coordSys.dataToRect([date], false).tl);
    +
    +            var points = self._getLinePointsOfOneWeek(calendarModel, date, orient);
    +
    +            self._tlpoints.push(points[0]);
    +            self._blpoints.push(points[points.length - 1]);
    +
    +            show && self._drawSplitline(points, lineStyleModel, group);
    +        }
    +
    +
    +        // render top/left line
    +        show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group);
    +
    +        // render bottom/right line
    +        show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group);
    +
    +    },
    +
    +    // get points at both ends
    +    _getEdgesPoints: function (points, lineWidth, orient) {
    +        var rs = [points[0].slice(), points[points.length - 1].slice()];
    +        var idx = orient === 'horizontal' ? 0 : 1;
    +
    +        // both ends of the line are extend half lineWidth
    +        rs[0][idx] = rs[0][idx] - lineWidth / 2;
    +        rs[1][idx] = rs[1][idx] + lineWidth / 2;
    +
    +        return rs;
    +    },
    +
    +    // render split line
    +    _drawSplitline: function (points, lineStyleModel, group) {
    +
    +        var poyline = new Polyline({
    +            z2: 20,
    +            shape: {
    +                points: points
    +            },
    +            style: lineStyleModel
    +        });
    +
    +        group.add(poyline);
    +    },
    +
    +    // render month line of one week points
    +    _getLinePointsOfOneWeek: function (calendarModel, date, orient) {
    +
    +        var coordSys = calendarModel.coordinateSystem;
    +        date = coordSys.getDateInfo(date);
    +
    +        var points = [];
    +
    +        for (var i = 0; i < 7; i++) {
    +
    +            var tmpD = coordSys.getNextNDay(date.time, i);
    +            var point = coordSys.dataToRect([tmpD.time], false);
    +
    +            points[2 * tmpD.day] = point.tl;
    +            points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr'];
    +        }
    +
    +        return points;
    +
    +    },
    +
    +    _formatterLabel: function (formatter, params) {
    +
    +        if (typeof formatter === 'string' && formatter) {
    +            return formatTplSimple(formatter, params);
    +        }
    +
    +        if (typeof formatter === 'function') {
    +            return formatter(params);
    +        }
    +
    +        return params.nameMap;
    +
    +    },
    +
    +    _yearTextPositionControl: function (textEl, point, orient, position, margin) {
    +
    +        point = point.slice();
    +        var aligns = ['center', 'bottom'];
    +
    +        if (position === 'bottom') {
    +            point[1] += margin;
    +            aligns = ['center', 'top'];
    +        }
    +        else if (position === 'left') {
    +            point[0] -= margin;
    +        }
    +        else if (position === 'right') {
    +            point[0] += margin;
    +            aligns = ['center', 'top'];
    +        }
    +        else { // top
    +            point[1] -= margin;
    +        }
    +
    +        var rotate = 0;
    +        if (position === 'left' || position === 'right') {
    +            rotate = Math.PI / 2;
    +        }
    +
    +        return {
    +            rotation: rotate,
    +            position: point,
    +            style: {
    +                textAlign: aligns[0],
    +                textVerticalAlign: aligns[1]
    +            }
    +        };
    +    },
    +
    +    // render year
    +    _renderYearText: function (calendarModel, rangeData, orient, group) {
    +        var yearLabel = calendarModel.getModel('yearLabel');
    +
    +        if (!yearLabel.get('show')) {
    +            return;
    +        }
    +
    +        var margin = yearLabel.get('margin');
    +        var pos = yearLabel.get('position');
    +
    +        if (!pos) {
    +            pos = orient !== 'horizontal' ? 'top' : 'left';
    +        }
    +
    +        var points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]];
    +        var xc = (points[0][0] + points[1][0]) / 2;
    +        var yc = (points[0][1] + points[1][1]) / 2;
    +
    +        var idx = orient === 'horizontal' ? 0 : 1;
    +
    +        var posPoints = {
    +            top: [xc, points[idx][1]],
    +            bottom: [xc, points[1 - idx][1]],
    +            left: [points[1 - idx][0], yc],
    +            right: [points[idx][0], yc]
    +        };
    +
    +        var name = rangeData.start.y;
    +
    +        if (+rangeData.end.y > +rangeData.start.y) {
    +            name = name + '-' + rangeData.end.y;
    +        }
    +
    +        var formatter = yearLabel.get('formatter');
    +
    +        var params = {
    +            start: rangeData.start.y,
    +            end: rangeData.end.y,
    +            nameMap: name
    +        };
    +
    +        var content = this._formatterLabel(formatter, params);
    +
    +        var yearText = new Text({z2: 30});
    +        setTextStyle(yearText.style, yearLabel, {text: content}),
    +        yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));
    +
    +        group.add(yearText);
    +    },
    +
    +    _monthTextPositionControl: function (point, isCenter, orient, position, margin) {
    +        var align = 'left';
    +        var vAlign = 'top';
    +        var x = point[0];
    +        var y = point[1];
    +
    +        if (orient === 'horizontal') {
    +            y = y + margin;
    +
    +            if (isCenter) {
    +                align = 'center';
    +            }
    +
    +            if (position === 'start') {
    +                vAlign = 'bottom';
    +            }
    +        }
    +        else {
    +            x = x + margin;
    +
    +            if (isCenter) {
    +                vAlign = 'middle';
    +            }
    +
    +            if (position === 'start') {
    +                align = 'right';
    +            }
    +        }
    +
    +        return {
    +            x: x,
    +            y: y,
    +            textAlign: align,
    +            textVerticalAlign: vAlign
    +        };
    +    },
    +
    +    // render month and year text
    +    _renderMonthText: function (calendarModel, orient, group) {
    +        var monthLabel = calendarModel.getModel('monthLabel');
    +
    +        if (!monthLabel.get('show')) {
    +            return;
    +        }
    +
    +        var nameMap = monthLabel.get('nameMap');
    +        var margin = monthLabel.get('margin');
    +        var pos = monthLabel.get('position');
    +        var align = monthLabel.get('align');
    +
    +        var termPoints = [this._tlpoints, this._blpoints];
    +
    +        if (isString(nameMap)) {
    +            nameMap = MONTH_TEXT[nameMap.toUpperCase()] || [];
    +        }
    +
    +        var idx = pos === 'start' ? 0 : 1;
    +        var axis = orient === 'horizontal' ? 0 : 1;
    +        margin = pos === 'start' ? -margin : margin;
    +        var isCenter = (align === 'center');
    +
    +        for (var i = 0; i < termPoints[idx].length - 1; i++) {
    +
    +            var tmp = termPoints[idx][i].slice();
    +            var firstDay = this._firstDayOfMonth[i];
    +
    +            if (isCenter) {
    +                var firstDayPoints = this._firstDayPoints[i];
    +                tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;
    +            }
    +
    +            var formatter = monthLabel.get('formatter');
    +            var name = nameMap[+firstDay.m - 1];
    +            var params = {
    +                yyyy: firstDay.y,
    +                yy: (firstDay.y + '').slice(2),
    +                MM: firstDay.m,
    +                M: +firstDay.m,
    +                nameMap: name
    +            };
    +
    +            var content = this._formatterLabel(formatter, params);
    +
    +            var monthText = new Text({z2: 30});
    +            extend(
    +                setTextStyle(monthText.style, monthLabel, {text: content}),
    +                this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)
    +            );
    +
    +            group.add(monthText);
    +        }
    +    },
    +
    +    _weekTextPositionControl: function (point, orient, position, margin, cellSize) {
    +        var align = 'center';
    +        var vAlign = 'middle';
    +        var x = point[0];
    +        var y = point[1];
    +        var isStart = position === 'start';
    +
    +        if (orient === 'horizontal') {
    +            x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2;
    +            align = isStart ? 'right' : 'left';
    +        }
    +        else {
    +            y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2;
    +            vAlign = isStart ? 'bottom' : 'top';
    +        }
    +
    +        return {
    +            x: x,
    +            y: y,
    +            textAlign: align,
    +            textVerticalAlign: vAlign
    +        };
    +    },
    +
    +    // render weeks
    +    _renderWeekText: function (calendarModel, rangeData, orient, group) {
    +        var dayLabel = calendarModel.getModel('dayLabel');
    +
    +        if (!dayLabel.get('show')) {
    +            return;
    +        }
    +
    +        var coordSys = calendarModel.coordinateSystem;
    +        var pos = dayLabel.get('position');
    +        var nameMap = dayLabel.get('nameMap');
    +        var margin = dayLabel.get('margin');
    +        var firstDayOfWeek = coordSys.getFirstDayOfWeek();
    +
    +        if (isString(nameMap)) {
    +            nameMap = WEEK_TEXT[nameMap.toUpperCase()] || [];
    +        }
    +
    +        var start = coordSys.getNextNDay(
    +            rangeData.end.time, (7 - rangeData.lweek)
    +        ).time;
    +
    +        var cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];
    +        margin = parsePercent$1(margin, cellSize[orient === 'horizontal' ? 0 : 1]);
    +
    +        if (pos === 'start') {
    +            start = coordSys.getNextNDay(
    +                rangeData.start.time, -(7 + rangeData.fweek)
    +            ).time;
    +            margin = -margin;
    +        }
    +
    +        for (var i = 0; i < 7; i++) {
    +
    +            var tmpD = coordSys.getNextNDay(start, i);
    +            var point = coordSys.dataToRect([tmpD.time], false).center;
    +            var day = i;
    +            day = Math.abs((i + firstDayOfWeek) % 7);
    +            var weekText = new Text({z2: 30});
    +
    +            extend(
    +                setTextStyle(weekText.style, dayLabel, {text: nameMap[day]}),
    +                this._weekTextPositionControl(point, orient, pos, margin, cellSize)
    +            );
    +            group.add(weekText);
    +        }
    +    }
    +});
    +
    +/**
    + * @file calendar.js
    + * @author dxh
    + */
    +
    +// Model
    +extendComponentModel({
    +
    +    type: 'title',
    +
    +    layoutMode: {type: 'box', ignoreSize: true},
    +
    +    defaultOption: {
    +        // 一级层叠
    +        zlevel: 0,
    +        // 二级层叠
    +        z: 6,
    +        show: true,
    +
    +        text: '',
    +        // 超链接跳转
    +        // link: null,
    +        // 仅支持self | blank
    +        target: 'blank',
    +        subtext: '',
    +
    +        // 超链接跳转
    +        // sublink: null,
    +        // 仅支持self | blank
    +        subtarget: 'blank',
    +
    +        // 'center' ¦ 'left' ¦ 'right'
    +        // ¦ {number}(x坐标,单位px)
    +        left: 0,
    +        // 'top' ¦ 'bottom' ¦ 'center'
    +        // ¦ {number}(y坐标,单位px)
    +        top: 0,
    +
    +        // 水平对齐
    +        // 'auto' | 'left' | 'right' | 'center'
    +        // 默认根据 left 的位置判断是左对齐还是右对齐
    +        // textAlign: null
    +        //
    +        // 垂直对齐
    +        // 'auto' | 'top' | 'bottom' | 'middle'
    +        // 默认根据 top 位置判断是上对齐还是下对齐
    +        // textBaseline: null
    +
    +        backgroundColor: 'rgba(0,0,0,0)',
    +
    +        // 标题边框颜色
    +        borderColor: '#ccc',
    +
    +        // 标题边框线宽,单位px,默认为0(无边框)
    +        borderWidth: 0,
    +
    +        // 标题内边距,单位px,默认各方向内边距为5,
    +        // 接受数组分别设定上右下左边距,同css
    +        padding: 5,
    +
    +        // 主副标题纵向间隔,单位px,默认为10,
    +        itemGap: 10,
    +        textStyle: {
    +            fontSize: 18,
    +            fontWeight: 'bolder',
    +            color: '#333'
    +        },
    +        subtextStyle: {
    +            color: '#aaa'
    +        }
    +    }
    +});
    +
    +// View
    +extendComponentView({
    +
    +    type: 'title',
    +
    +    render: function (titleModel, ecModel, api) {
    +        this.group.removeAll();
    +
    +        if (!titleModel.get('show')) {
    +            return;
    +        }
    +
    +        var group = this.group;
    +
    +        var textStyleModel = titleModel.getModel('textStyle');
    +        var subtextStyleModel = titleModel.getModel('subtextStyle');
    +
    +        var textAlign = titleModel.get('textAlign');
    +        var textBaseline = titleModel.get('textBaseline');
    +
    +        var textEl = new Text({
    +            style: setTextStyle({}, textStyleModel, {
    +                text: titleModel.get('text'),
    +                textFill: textStyleModel.getTextColor()
    +            }, {disableBox: true}),
    +            z2: 10
    +        });
    +
    +        var textRect = textEl.getBoundingRect();
    +
    +        var subText = titleModel.get('subtext');
    +        var subTextEl = new Text({
    +            style: setTextStyle({}, subtextStyleModel, {
    +                text: subText,
    +                textFill: subtextStyleModel.getTextColor(),
    +                y: textRect.height + titleModel.get('itemGap'),
    +                textVerticalAlign: 'top'
    +            }, {disableBox: true}),
    +            z2: 10
    +        });
    +
    +        var link = titleModel.get('link');
    +        var sublink = titleModel.get('sublink');
    +
    +        textEl.silent = !link;
    +        subTextEl.silent = !sublink;
    +
    +        if (link) {
    +            textEl.on('click', function () {
    +                window.open(link, '_' + titleModel.get('target'));
    +            });
    +        }
    +        if (sublink) {
    +            subTextEl.on('click', function () {
    +                window.open(sublink, '_' + titleModel.get('subtarget'));
    +            });
    +        }
    +
    +        group.add(textEl);
    +        subText && group.add(subTextEl);
    +        // If no subText, but add subTextEl, there will be an empty line.
    +
    +        var groupRect = group.getBoundingRect();
    +        var layoutOption = titleModel.getBoxLayoutParams();
    +        layoutOption.width = groupRect.width;
    +        layoutOption.height = groupRect.height;
    +        var layoutRect = getLayoutRect(
    +            layoutOption, {
    +                width: api.getWidth(),
    +                height: api.getHeight()
    +            }, titleModel.get('padding')
    +        );
    +        // Adjust text align based on position
    +        if (!textAlign) {
    +            // Align left if title is on the left. center and right is same
    +            textAlign = titleModel.get('left') || titleModel.get('right');
    +            if (textAlign === 'middle') {
    +                textAlign = 'center';
    +            }
    +            // Adjust layout by text align
    +            if (textAlign === 'right') {
    +                layoutRect.x += layoutRect.width;
    +            }
    +            else if (textAlign === 'center') {
    +                layoutRect.x += layoutRect.width / 2;
    +            }
    +        }
    +        if (!textBaseline) {
    +            textBaseline = titleModel.get('top') || titleModel.get('bottom');
    +            if (textBaseline === 'center') {
    +                textBaseline = 'middle';
    +            }
    +            if (textBaseline === 'bottom') {
    +                layoutRect.y += layoutRect.height;
    +            }
    +            else if (textBaseline === 'middle') {
    +                layoutRect.y += layoutRect.height / 2;
    +            }
    +
    +            textBaseline = textBaseline || 'top';
    +        }
    +
    +        group.attr('position', [layoutRect.x, layoutRect.y]);
    +        var alignStyle = {
    +            textAlign: textAlign,
    +            textVerticalAlign: textBaseline
    +        };
    +        textEl.setStyle(alignStyle);
    +        subTextEl.setStyle(alignStyle);
    +
    +        // Render background
    +        // Get groupRect again because textAlign has been changed
    +        groupRect = group.getBoundingRect();
    +        var padding = layoutRect.margin;
    +        var style = titleModel.getItemStyle(['color', 'opacity']);
    +        style.fill = titleModel.get('backgroundColor');
    +        var rect = new Rect({
    +            shape: {
    +                x: groupRect.x - padding[3],
    +                y: groupRect.y - padding[0],
    +                width: groupRect.width + padding[1] + padding[3],
    +                height: groupRect.height + padding[0] + padding[2],
    +                r: titleModel.get('borderRadius')
    +            },
    +            style: style,
    +            silent: true
    +        });
    +        subPixelOptimizeRect(rect);
    +
    +        group.add(rect);
    +    }
    +});
    +
    +ComponentModel.registerSubTypeDefaulter('dataZoom', function () {
    +    // Default 'slider' when no type specified.
    +    return 'slider';
    +});
    +
    +var AXIS_DIMS = ['x', 'y', 'z', 'radius', 'angle', 'single'];
    +// Supported coords.
    +var COORDS = ['cartesian2d', 'polar', 'singleAxis'];
    +
    +/**
    + * @param {string} coordType
    + * @return {boolean}
    + */
    +function isCoordSupported(coordType) {
    +    return indexOf(COORDS, coordType) >= 0;
    +}
    +
    +/**
    + * Create "each" method to iterate names.
    + *
    + * @pubilc
    + * @param  {Array.<string>} names
    + * @param  {Array.<string>=} attrs
    + * @return {Function}
    + */
    +function createNameEach(names, attrs) {
    +    names = names.slice();
    +    var capitalNames = map(names, capitalFirst);
    +    attrs = (attrs || []).slice();
    +    var capitalAttrs = map(attrs, capitalFirst);
    +
    +    return function (callback, context) {
    +        each$1(names, function (name, index) {
    +            var nameObj = {name: name, capital: capitalNames[index]};
    +
    +            for (var j = 0; j < attrs.length; j++) {
    +                nameObj[attrs[j]] = name + capitalAttrs[j];
    +            }
    +
    +            callback.call(context, nameObj);
    +        });
    +    };
    +}
    +
    +/**
    + * Iterate each dimension name.
    + *
    + * @public
    + * @param {Function} callback The parameter is like:
    + *                            {
    + *                                name: 'angle',
    + *                                capital: 'Angle',
    + *                                axis: 'angleAxis',
    + *                                axisIndex: 'angleAixs',
    + *                                index: 'angleIndex'
    + *                            }
    + * @param {Object} context
    + */
    +var eachAxisDim$1 = createNameEach(AXIS_DIMS, ['axisIndex', 'axis', 'index', 'id']);
    +
    +/**
    + * If tow dataZoomModels has the same axis controlled, we say that they are 'linked'.
    + * dataZoomModels and 'links' make up one or more graphics.
    + * This function finds the graphic where the source dataZoomModel is in.
    + *
    + * @public
    + * @param {Function} forEachNode Node iterator.
    + * @param {Function} forEachEdgeType edgeType iterator
    + * @param {Function} edgeIdGetter Giving node and edgeType, return an array of edge id.
    + * @return {Function} Input: sourceNode, Output: Like {nodes: [], dims: {}}
    + */
    +function createLinkedNodesFinder(forEachNode, forEachEdgeType, edgeIdGetter) {
    +
    +    return function (sourceNode) {
    +        var result = {
    +            nodes: [],
    +            records: {} // key: edgeType.name, value: Object (key: edge id, value: boolean).
    +        };
    +
    +        forEachEdgeType(function (edgeType) {
    +            result.records[edgeType.name] = {};
    +        });
    +
    +        if (!sourceNode) {
    +            return result;
    +        }
    +
    +        absorb(sourceNode, result);
    +
    +        var existsLink;
    +        do {
    +            existsLink = false;
    +            forEachNode(processSingleNode);
    +        }
    +        while (existsLink);
    +
    +        function processSingleNode(node) {
    +            if (!isNodeAbsorded(node, result) && isLinked(node, result)) {
    +                absorb(node, result);
    +                existsLink = true;
    +            }
    +        }
    +
    +        return result;
    +    };
    +
    +    function isNodeAbsorded(node, result) {
    +        return indexOf(result.nodes, node) >= 0;
    +    }
    +
    +    function isLinked(node, result) {
    +        var hasLink = false;
    +        forEachEdgeType(function (edgeType) {
    +            each$1(edgeIdGetter(node, edgeType) || [], function (edgeId) {
    +                result.records[edgeType.name][edgeId] && (hasLink = true);
    +            });
    +        });
    +        return hasLink;
    +    }
    +
    +    function absorb(node, result) {
    +        result.nodes.push(node);
    +        forEachEdgeType(function (edgeType) {
    +            each$1(edgeIdGetter(node, edgeType) || [], function (edgeId) {
    +                result.records[edgeType.name][edgeId] = true;
    +            });
    +        });
    +    }
    +}
    +
    +var each$25 = each$1;
    +var asc$1 = asc;
    +
    +/**
    + * Operate single axis.
    + * One axis can only operated by one axis operator.
    + * Different dataZoomModels may be defined to operate the same axis.
    + * (i.e. 'inside' data zoom and 'slider' data zoom components)
    + * So dataZoomModels share one axisProxy in that case.
    + *
    + * @class
    + */
    +var AxisProxy = function (dimName, axisIndex, dataZoomModel, ecModel) {
    +
    +    /**
    +     * @private
    +     * @type {string}
    +     */
    +    this._dimName = dimName;
    +
    +    /**
    +     * @private
    +     */
    +    this._axisIndex = axisIndex;
    +
    +    /**
    +     * @private
    +     * @type {Array.<number>}
    +     */
    +    this._valueWindow;
    +
    +    /**
    +     * @private
    +     * @type {Array.<number>}
    +     */
    +    this._percentWindow;
    +
    +    /**
    +     * @private
    +     * @type {Array.<number>}
    +     */
    +    this._dataExtent;
    +
    +    /**
    +     * {minSpan, maxSpan, minValueSpan, maxValueSpan}
    +     * @private
    +     * @type {Object}
    +     */
    +    this._minMaxSpan;
    +
    +    /**
    +     * @readOnly
    +     * @type {module: echarts/model/Global}
    +     */
    +    this.ecModel = ecModel;
    +
    +    /**
    +     * @private
    +     * @type {module: echarts/component/dataZoom/DataZoomModel}
    +     */
    +    this._dataZoomModel = dataZoomModel;
    +};
    +
    +AxisProxy.prototype = {
    +
    +    constructor: AxisProxy,
    +
    +    /**
    +     * Whether the axisProxy is hosted by dataZoomModel.
    +     *
    +     * @public
    +     * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
    +     * @return {boolean}
    +     */
    +    hostedBy: function (dataZoomModel) {
    +        return this._dataZoomModel === dataZoomModel;
    +    },
    +
    +    /**
    +     * @return {Array.<number>} Value can only be NaN or finite value.
    +     */
    +    getDataValueWindow: function () {
    +        return this._valueWindow.slice();
    +    },
    +
    +    /**
    +     * @return {Array.<number>}
    +     */
    +    getDataPercentWindow: function () {
    +        return this._percentWindow.slice();
    +    },
    +
    +    /**
    +     * @public
    +     * @param {number} axisIndex
    +     * @return {Array} seriesModels
    +     */
    +    getTargetSeriesModels: function () {
    +        var seriesModels = [];
    +        var ecModel = this.ecModel;
    +
    +        ecModel.eachSeries(function (seriesModel) {
    +            if (isCoordSupported(seriesModel.get('coordinateSystem'))) {
    +                var dimName = this._dimName;
    +                var axisModel = ecModel.queryComponents({
    +                    mainType: dimName + 'Axis',
    +                    index: seriesModel.get(dimName + 'AxisIndex'),
    +                    id: seriesModel.get(dimName + 'AxisId')
    +                })[0];
    +                if (this._axisIndex === (axisModel && axisModel.componentIndex)) {
    +                    seriesModels.push(seriesModel);
    +                }
    +            }
    +        }, this);
    +
    +        return seriesModels;
    +    },
    +
    +    getAxisModel: function () {
    +        return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex);
    +    },
    +
    +    getOtherAxisModel: function () {
    +        var axisDim = this._dimName;
    +        var ecModel = this.ecModel;
    +        var axisModel = this.getAxisModel();
    +        var isCartesian = axisDim === 'x' || axisDim === 'y';
    +        var otherAxisDim;
    +        var coordSysIndexName;
    +        if (isCartesian) {
    +            coordSysIndexName = 'gridIndex';
    +            otherAxisDim = axisDim === 'x' ? 'y' : 'x';
    +        }
    +        else {
    +            coordSysIndexName = 'polarIndex';
    +            otherAxisDim = axisDim === 'angle' ? 'radius' : 'angle';
    +        }
    +        var foundOtherAxisModel;
    +        ecModel.eachComponent(otherAxisDim + 'Axis', function (otherAxisModel) {
    +            if ((otherAxisModel.get(coordSysIndexName) || 0)
    +                === (axisModel.get(coordSysIndexName) || 0)
    +            ) {
    +                foundOtherAxisModel = otherAxisModel;
    +            }
    +        });
    +        return foundOtherAxisModel;
    +    },
    +
    +    getMinMaxSpan: function () {
    +        return clone(this._minMaxSpan);
    +    },
    +
    +    /**
    +     * Only calculate by given range and this._dataExtent, do not change anything.
    +     *
    +     * @param {Object} opt
    +     * @param {number} [opt.start]
    +     * @param {number} [opt.end]
    +     * @param {number} [opt.startValue]
    +     * @param {number} [opt.endValue]
    +     */
    +    calculateDataWindow: function (opt) {
    +        var dataExtent = this._dataExtent;
    +        var axisModel = this.getAxisModel();
    +        var scale = axisModel.axis.scale;
    +        var rangePropMode = this._dataZoomModel.getRangePropMode();
    +        var percentExtent = [0, 100];
    +        var percentWindow = [
    +            opt.start,
    +            opt.end
    +        ];
    +        var valueWindow = [];
    +
    +        each$25(['startValue', 'endValue'], function (prop) {
    +            valueWindow.push(opt[prop] != null ? scale.parse(opt[prop]) : null);
    +        });
    +
    +        // Normalize bound.
    +        each$25([0, 1], function (idx) {
    +            var boundValue = valueWindow[idx];
    +            var boundPercent = percentWindow[idx];
    +
    +            // Notice: dataZoom is based either on `percentProp` ('start', 'end') or
    +            // on `valueProp` ('startValue', 'endValue'). The former one is suitable
    +            // for cases that a dataZoom component controls multiple axes with different
    +            // unit or extent, and the latter one is suitable for accurate zoom by pixel
    +            // (e.g., in dataZoomSelect). `valueProp` can be calculated from `percentProp`,
    +            // but it is awkward that `percentProp` can not be obtained from `valueProp`
    +            // accurately (because all of values that are overflow the `dataExtent` will
    +            // be calculated to percent '100%'). So we have to use
    +            // `dataZoom.getRangePropMode()` to mark which prop is used.
    +            // `rangePropMode` is updated only when setOption or dispatchAction, otherwise
    +            // it remains its original value.
    +
    +            if (rangePropMode[idx] === 'percent') {
    +                if (boundPercent == null) {
    +                    boundPercent = percentExtent[idx];
    +                }
    +                // Use scale.parse to math round for category or time axis.
    +                boundValue = scale.parse(linearMap(
    +                    boundPercent, percentExtent, dataExtent, true
    +                ));
    +            }
    +            else {
    +                // Calculating `percent` from `value` may be not accurate, because
    +                // This calculation can not be inversed, because all of values that
    +                // are overflow the `dataExtent` will be calculated to percent '100%'
    +                boundPercent = linearMap(
    +                    boundValue, dataExtent, percentExtent, true
    +                );
    +            }
    +
    +            // valueWindow[idx] = round(boundValue);
    +            // percentWindow[idx] = round(boundPercent);
    +            valueWindow[idx] = boundValue;
    +            percentWindow[idx] = boundPercent;
    +        });
    +
    +        return {
    +            valueWindow: asc$1(valueWindow),
    +            percentWindow: asc$1(percentWindow)
    +        };
    +    },
    +
    +    /**
    +     * Notice: reset should not be called before series.restoreData() called,
    +     * so it is recommanded to be called in "process stage" but not "model init
    +     * stage".
    +     *
    +     * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
    +     */
    +    reset: function (dataZoomModel) {
    +        if (dataZoomModel !== this._dataZoomModel) {
    +            return;
    +        }
    +
    +        // Culculate data window and data extent, and record them.
    +        this._dataExtent = calculateDataExtent(
    +            this, this._dimName, this.getTargetSeriesModels()
    +        );
    +
    +        var dataWindow = this.calculateDataWindow(dataZoomModel.option);
    +
    +        this._valueWindow = dataWindow.valueWindow;
    +        this._percentWindow = dataWindow.percentWindow;
    +
    +        setMinMaxSpan(this);
    +
    +        // Update axis setting then.
    +        setAxisModel(this);
    +    },
    +
    +    /**
    +     * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
    +     */
    +    restore: function (dataZoomModel) {
    +        if (dataZoomModel !== this._dataZoomModel) {
    +            return;
    +        }
    +
    +        this._valueWindow = this._percentWindow = null;
    +        setAxisModel(this, true);
    +    },
    +
    +    /**
    +     * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
    +     */
    +    filterData: function (dataZoomModel) {
    +        if (dataZoomModel !== this._dataZoomModel) {
    +            return;
    +        }
    +
    +        var axisDim = this._dimName;
    +        var seriesModels = this.getTargetSeriesModels();
    +        var filterMode = dataZoomModel.get('filterMode');
    +        var valueWindow = this._valueWindow;
    +
    +        if (filterMode === 'none') {
    +            return;
    +        }
    +
    +        // FIXME
    +        // Toolbox may has dataZoom injected. And if there are stacked bar chart
    +        // with NaN data, NaN will be filtered and stack will be wrong.
    +        // So we need to force the mode to be set empty.
    +        // In fect, it is not a big deal that do not support filterMode-'filter'
    +        // when using toolbox#dataZoom, utill tooltip#dataZoom support "single axis
    +        // selection" some day, which might need "adapt to data extent on the
    +        // otherAxis", which is disabled by filterMode-'empty'.
    +        var otherAxisModel = this.getOtherAxisModel();
    +        if (dataZoomModel.get('$fromToolbox')
    +            && otherAxisModel
    +            && otherAxisModel.get('type') === 'category'
    +        ) {
    +            filterMode = 'empty';
    +        }
    +
    +        // Process series data
    +        each$25(seriesModels, function (seriesModel) {
    +            var seriesData = seriesModel.getData();
    +            var dataDims = seriesModel.coordDimToDataDim(axisDim);
    +
    +            if (filterMode === 'weakFilter') {
    +                seriesData && seriesData.filterSelf(function (dataIndex) {
    +                    var leftOut;
    +                    var rightOut;
    +                    var hasValue;
    +                    for (var i = 0; i < dataDims.length; i++) {
    +                        var value = seriesData.get(dataDims[i], dataIndex);
    +                        var thisHasValue = !isNaN(value);
    +                        var thisLeftOut = value < valueWindow[0];
    +                        var thisRightOut = value > valueWindow[1];
    +                        if (thisHasValue && !thisLeftOut && !thisRightOut) {
    +                            return true;
    +                        }
    +                        thisHasValue && (hasValue = true);
    +                        thisLeftOut && (leftOut = true);
    +                        thisRightOut && (rightOut = true);
    +                    }
    +                    // If both left out and right out, do not filter.
    +                    return hasValue && leftOut && rightOut;
    +                });
    +            }
    +            else {
    +                seriesData && each$25(dataDims, function (dim) {
    +                    if (filterMode === 'empty') {
    +                        seriesModel.setData(
    +                            seriesData.map(dim, function (value) {
    +                                return !isInWindow(value) ? NaN : value;
    +                            })
    +                        );
    +                    }
    +                    else {
    +                        seriesData.filterSelf(dim, isInWindow);
    +                    }
    +                });
    +            }
    +        });
    +
    +        function isInWindow(value) {
    +            return value >= valueWindow[0] && value <= valueWindow[1];
    +        }
    +    }
    +};
    +
    +function calculateDataExtent(axisProxy, axisDim, seriesModels) {
    +    var dataExtent = [Infinity, -Infinity];
    +
    +    each$25(seriesModels, function (seriesModel) {
    +        var seriesData = seriesModel.getData();
    +        if (seriesData) {
    +            each$25(seriesModel.coordDimToDataDim(axisDim), function (dim) {
    +                var seriesExtent = seriesData.getDataExtent(dim);
    +                seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);
    +                seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);
    +            });
    +        }
    +    });
    +
    +    if (dataExtent[1] < dataExtent[0]) {
    +        dataExtent = [NaN, NaN];
    +    }
    +
    +    // It is important to get "consistent" extent when more then one axes is
    +    // controlled by a `dataZoom`, otherwise those axes will not be synchronized
    +    // when zooming. But it is difficult to know what is "consistent", considering
    +    // axes have different type or even different meanings (For example, two
    +    // time axes are used to compare data of the same date in different years).
    +    // So basically dataZoom just obtains extent by series.data (in category axis
    +    // extent can be obtained from axis.data).
    +    // Nevertheless, user can set min/max/scale on axes to make extent of axes
    +    // consistent.
    +    fixExtentByAxis(axisProxy, dataExtent);
    +
    +    return dataExtent;
    +}
    +
    +function fixExtentByAxis(axisProxy, dataExtent) {
    +    var axisModel = axisProxy.getAxisModel();
    +    var min = axisModel.getMin(true);
    +
    +    // For category axis, if min/max/scale are not set, extent is determined
    +    // by axis.data by default.
    +    var isCategoryAxis = axisModel.get('type') === 'category';
    +    var axisDataLen = isCategoryAxis && (axisModel.get('data') || []).length;
    +
    +    if (min != null && min !== 'dataMin' && typeof min !== 'function') {
    +        dataExtent[0] = min;
    +    }
    +    else if (isCategoryAxis) {
    +        dataExtent[0] = axisDataLen > 0 ? 0 : NaN;
    +    }
    +
    +    var max = axisModel.getMax(true);
    +    if (max != null && max !== 'dataMax' && typeof max !== 'function') {
    +        dataExtent[1] = max;
    +    }
    +    else if (isCategoryAxis) {
    +        dataExtent[1] = axisDataLen > 0 ? axisDataLen - 1 : NaN;
    +    }
    +
    +    if (!axisModel.get('scale', true)) {
    +        dataExtent[0] > 0 && (dataExtent[0] = 0);
    +        dataExtent[1] < 0 && (dataExtent[1] = 0);
    +    }
    +
    +    // For value axis, if min/max/scale are not set, we just use the extent obtained
    +    // by series data, which may be a little different from the extent calculated by
    +    // `axisHelper.getScaleExtent`. But the different just affects the experience a
    +    // little when zooming. So it will not be fixed until some users require it strongly.
    +
    +    return dataExtent;
    +}
    +
    +function setAxisModel(axisProxy, isRestore) {
    +    var axisModel = axisProxy.getAxisModel();
    +
    +    var percentWindow = axisProxy._percentWindow;
    +    var valueWindow = axisProxy._valueWindow;
    +
    +    if (!percentWindow) {
    +        return;
    +    }
    +
    +    // [0, 500]: arbitrary value, guess axis extent.
    +    var precision = getPixelPrecision(valueWindow, [0, 500]);
    +    precision = Math.min(precision, 20);
    +    // isRestore or isFull
    +    var useOrigin = isRestore || (percentWindow[0] === 0 && percentWindow[1] === 100);
    +
    +    axisModel.setRange(
    +        useOrigin ? null : +valueWindow[0].toFixed(precision),
    +        useOrigin ? null : +valueWindow[1].toFixed(precision)
    +    );
    +}
    +
    +function setMinMaxSpan(axisProxy) {
    +    var minMaxSpan = axisProxy._minMaxSpan = {};
    +    var dataZoomModel = axisProxy._dataZoomModel;
    +
    +    each$25(['min', 'max'], function (minMax) {
    +        minMaxSpan[minMax + 'Span'] = dataZoomModel.get(minMax + 'Span');
    +
    +        // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan
    +        var valueSpan = dataZoomModel.get(minMax + 'ValueSpan');
    +
    +        if (valueSpan != null) {
    +            minMaxSpan[minMax + 'ValueSpan'] = valueSpan;
    +            valueSpan = axisProxy.getAxisModel().axis.scale.parse(valueSpan);
    +
    +            if (valueSpan != null) {
    +                var dataExtent = axisProxy._dataExtent;
    +                minMaxSpan[minMax + 'Span'] = linearMap(
    +                    dataExtent[0] + valueSpan, dataExtent, [0, 100], true
    +                );
    +            }
    +        }
    +    });
    +}
    +
    +var each$24 = each$1;
    +var eachAxisDim = eachAxisDim$1;
    +
    +var DataZoomModel = extendComponentModel({
    +
    +    type: 'dataZoom',
    +
    +    dependencies: [
    +        'xAxis', 'yAxis', 'zAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series'
    +    ],
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 4,                   // Higher than normal component (z: 2).
    +        orient: null,           // Default auto by axisIndex. Possible value: 'horizontal', 'vertical'.
    +        xAxisIndex: null,       // Default the first horizontal category axis.
    +        yAxisIndex: null,       // Default the first vertical category axis.
    +
    +        filterMode: 'filter',   // Possible values: 'filter' or 'empty' or 'weakFilter'.
    +                                // 'filter': data items which are out of window will be removed. This option is
    +                                //          applicable when filtering outliers. For each data item, it will be
    +                                //          filtered if one of the relevant dimensions is out of the window.
    +                                // 'weakFilter': data items which are out of window will be removed. This option
    +                                //          is applicable when filtering outliers. For each data item, it will be
    +                                //          filtered only if all  of the relevant dimensions are out of the same
    +                                //          side of the window.
    +                                // 'empty': data items which are out of window will be set to empty.
    +                                //          This option is applicable when user should not neglect
    +                                //          that there are some data items out of window.
    +                                // 'none': Do not filter.
    +                                // Taking line chart as an example, line will be broken in
    +                                // the filtered points when filterModel is set to 'empty', but
    +                                // be connected when set to 'filter'.
    +
    +        throttle: null,         // Dispatch action by the fixed rate, avoid frequency.
    +                                // default 100. Do not throttle when use null/undefined.
    +                                // If animation === true and animationDurationUpdate > 0,
    +                                // default value is 100, otherwise 20.
    +        start: 0,               // Start percent. 0 ~ 100
    +        end: 100,               // End percent. 0 ~ 100
    +        startValue: null,       // Start value. If startValue specified, start is ignored.
    +        endValue: null,         // End value. If endValue specified, end is ignored.
    +        minSpan: null,          // 0 ~ 100
    +        maxSpan: null,          // 0 ~ 100
    +        minValueSpan: null,     // The range of dataZoom can not be smaller than that.
    +        maxValueSpan: null,     // The range of dataZoom can not be larger than that.
    +        rangeMode: null         // Array, can be 'value' or 'percent'.
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    init: function (option, parentModel, ecModel) {
    +
    +        /**
    +         * key like x_0, y_1
    +         * @private
    +         * @type {Object}
    +         */
    +        this._dataIntervalByAxis = {};
    +
    +        /**
    +         * @private
    +         */
    +        this._dataInfo = {};
    +
    +        /**
    +         * key like x_0, y_1
    +         * @private
    +         */
    +        this._axisProxies = {};
    +
    +        /**
    +         * @readOnly
    +         */
    +        this.textStyleModel;
    +
    +        /**
    +         * @private
    +         */
    +        this._autoThrottle = true;
    +
    +        /**
    +         * 'percent' or 'value'
    +         * @private
    +         */
    +        this._rangePropMode = ['percent', 'percent'];
    +
    +        var rawOption = retrieveRaw(option);
    +
    +        this.mergeDefaultAndTheme(option, ecModel);
    +
    +        this.doInit(rawOption);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function (newOption) {
    +        var rawOption = retrieveRaw(newOption);
    +
    +        //FIX #2591
    +        merge(this.option, newOption, true);
    +
    +        this.doInit(rawOption);
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    doInit: function (rawOption) {
    +        var thisOption = this.option;
    +
    +        // Disable realtime view update if canvas is not supported.
    +        if (!env$1.canvasSupported) {
    +            thisOption.realtime = false;
    +        }
    +
    +        this._setDefaultThrottle(rawOption);
    +
    +        updateRangeUse(this, rawOption);
    +
    +        each$24([['start', 'startValue'], ['end', 'endValue']], function (names, index) {
    +            // start/end has higher priority over startValue/endValue if they
    +            // both set, but we should make chart.setOption({endValue: 1000})
    +            // effective, rather than chart.setOption({endValue: 1000, end: null}).
    +            if (this._rangePropMode[index] === 'value') {
    +                thisOption[names[0]] = null;
    +            }
    +            // Otherwise do nothing and use the merge result.
    +        }, this);
    +
    +        this.textStyleModel = this.getModel('textStyle');
    +
    +        this._resetTarget();
    +
    +        this._giveAxisProxies();
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _giveAxisProxies: function () {
    +        var axisProxies = this._axisProxies;
    +
    +        this.eachTargetAxis(function (dimNames, axisIndex, dataZoomModel, ecModel) {
    +            var axisModel = this.dependentModels[dimNames.axis][axisIndex];
    +
    +            // If exists, share axisProxy with other dataZoomModels.
    +            var axisProxy = axisModel.__dzAxisProxy || (
    +                // Use the first dataZoomModel as the main model of axisProxy.
    +                axisModel.__dzAxisProxy = new AxisProxy(
    +                    dimNames.name, axisIndex, this, ecModel
    +                )
    +            );
    +            // FIXME
    +            // dispose __dzAxisProxy
    +
    +            axisProxies[dimNames.name + '_' + axisIndex] = axisProxy;
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _resetTarget: function () {
    +        var thisOption = this.option;
    +
    +        var autoMode = this._judgeAutoMode();
    +
    +        eachAxisDim(function (dimNames) {
    +            var axisIndexName = dimNames.axisIndex;
    +            thisOption[axisIndexName] = normalizeToArray(
    +                thisOption[axisIndexName]
    +            );
    +        }, this);
    +
    +        if (autoMode === 'axisIndex') {
    +            this._autoSetAxisIndex();
    +        }
    +        else if (autoMode === 'orient') {
    +            this._autoSetOrient();
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _judgeAutoMode: function () {
    +        // Auto set only works for setOption at the first time.
    +        // The following is user's reponsibility. So using merged
    +        // option is OK.
    +        var thisOption = this.option;
    +
    +        var hasIndexSpecified = false;
    +        eachAxisDim(function (dimNames) {
    +            // When user set axisIndex as a empty array, we think that user specify axisIndex
    +            // but do not want use auto mode. Because empty array may be encountered when
    +            // some error occured.
    +            if (thisOption[dimNames.axisIndex] != null) {
    +                hasIndexSpecified = true;
    +            }
    +        }, this);
    +
    +        var orient = thisOption.orient;
    +
    +        if (orient == null && hasIndexSpecified) {
    +            return 'orient';
    +        }
    +        else if (!hasIndexSpecified) {
    +            if (orient == null) {
    +                thisOption.orient = 'horizontal';
    +            }
    +            return 'axisIndex';
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _autoSetAxisIndex: function () {
    +        var autoAxisIndex = true;
    +        var orient = this.get('orient', true);
    +        var thisOption = this.option;
    +        var dependentModels = this.dependentModels;
    +
    +        if (autoAxisIndex) {
    +            // Find axis that parallel to dataZoom as default.
    +            var dimName = orient === 'vertical' ? 'y' : 'x';
    +
    +            if (dependentModels[dimName + 'Axis'].length) {
    +                thisOption[dimName + 'AxisIndex'] = [0];
    +                autoAxisIndex = false;
    +            }
    +            else {
    +                each$24(dependentModels.singleAxis, function (singleAxisModel) {
    +                    if (autoAxisIndex && singleAxisModel.get('orient', true) === orient) {
    +                        thisOption.singleAxisIndex = [singleAxisModel.componentIndex];
    +                        autoAxisIndex = false;
    +                    }
    +                });
    +            }
    +        }
    +
    +        if (autoAxisIndex) {
    +            // Find the first category axis as default. (consider polar)
    +            eachAxisDim(function (dimNames) {
    +                if (!autoAxisIndex) {
    +                    return;
    +                }
    +                var axisIndices = [];
    +                var axisModels = this.dependentModels[dimNames.axis];
    +                if (axisModels.length && !axisIndices.length) {
    +                    for (var i = 0, len = axisModels.length; i < len; i++) {
    +                        if (axisModels[i].get('type') === 'category') {
    +                            axisIndices.push(i);
    +                        }
    +                    }
    +                }
    +                thisOption[dimNames.axisIndex] = axisIndices;
    +                if (axisIndices.length) {
    +                    autoAxisIndex = false;
    +                }
    +            }, this);
    +        }
    +
    +        if (autoAxisIndex) {
    +            // FIXME
    +            // 这里是兼容ec2的写法(没指定xAxisIndex和yAxisIndex时把scatter和双数值轴折柱纳入dataZoom控制),
    +            // 但是实际是否需要Grid.js#getScaleByOption来判断(考虑time,log等axis type)?
    +
    +            // If both dataZoom.xAxisIndex and dataZoom.yAxisIndex is not specified,
    +            // dataZoom component auto adopts series that reference to
    +            // both xAxis and yAxis which type is 'value'.
    +            this.ecModel.eachSeries(function (seriesModel) {
    +                if (this._isSeriesHasAllAxesTypeOf(seriesModel, 'value')) {
    +                    eachAxisDim(function (dimNames) {
    +                        var axisIndices = thisOption[dimNames.axisIndex];
    +
    +                        var axisIndex = seriesModel.get(dimNames.axisIndex);
    +                        var axisId = seriesModel.get(dimNames.axisId);
    +
    +                        var axisModel = seriesModel.ecModel.queryComponents({
    +                            mainType: dimNames.axis,
    +                            index: axisIndex,
    +                            id: axisId
    +                        })[0];
    +
    +                        if (__DEV__) {
    +                            if (!axisModel) {
    +                                throw new Error(
    +                                    dimNames.axis + ' "' + retrieve(
    +                                        axisIndex,
    +                                        axisId,
    +                                        0
    +                                    ) + '" not found'
    +                                );
    +                            }
    +                        }
    +                        axisIndex = axisModel.componentIndex;
    +
    +                        if (indexOf(axisIndices, axisIndex) < 0) {
    +                            axisIndices.push(axisIndex);
    +                        }
    +                    });
    +                }
    +            }, this);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _autoSetOrient: function () {
    +        var dim;
    +
    +        // Find the first axis
    +        this.eachTargetAxis(function (dimNames) {
    +            !dim && (dim = dimNames.name);
    +        }, this);
    +
    +        this.option.orient = dim === 'y' ? 'vertical' : 'horizontal';
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _isSeriesHasAllAxesTypeOf: function (seriesModel, axisType) {
    +        // FIXME
    +        // 需要series的xAxisIndex和yAxisIndex都首先自动设置上。
    +        // 例如series.type === scatter时。
    +
    +        var is = true;
    +        eachAxisDim(function (dimNames) {
    +            var seriesAxisIndex = seriesModel.get(dimNames.axisIndex);
    +            var axisModel = this.dependentModels[dimNames.axis][seriesAxisIndex];
    +
    +            if (!axisModel || axisModel.get('type') !== axisType) {
    +                is = false;
    +            }
    +        }, this);
    +        return is;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _setDefaultThrottle: function (rawOption) {
    +        // When first time user set throttle, auto throttle ends.
    +        if (rawOption.hasOwnProperty('throttle')) {
    +            this._autoThrottle = false;
    +        }
    +        if (this._autoThrottle) {
    +            var globalOption = this.ecModel.option;
    +            this.option.throttle =
    +                (globalOption.animation && globalOption.animationDurationUpdate > 0)
    +                ? 100 : 20;
    +        }
    +    },
    +
    +    /**
    +     * @public
    +     */
    +    getFirstTargetAxisModel: function () {
    +        var firstAxisModel;
    +        eachAxisDim(function (dimNames) {
    +            if (firstAxisModel == null) {
    +                var indices = this.get(dimNames.axisIndex);
    +                if (indices.length) {
    +                    firstAxisModel = this.dependentModels[dimNames.axis][indices[0]];
    +                }
    +            }
    +        }, this);
    +
    +        return firstAxisModel;
    +    },
    +
    +    /**
    +     * @public
    +     * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel
    +     */
    +    eachTargetAxis: function (callback, context) {
    +        var ecModel = this.ecModel;
    +        eachAxisDim(function (dimNames) {
    +            each$24(
    +                this.get(dimNames.axisIndex),
    +                function (axisIndex) {
    +                    callback.call(context, dimNames, axisIndex, this, ecModel);
    +                },
    +                this
    +            );
    +        }, this);
    +    },
    +
    +    /**
    +     * @param {string} dimName
    +     * @param {number} axisIndex
    +     * @return {module:echarts/component/dataZoom/AxisProxy} If not found, return null/undefined.
    +     */
    +    getAxisProxy: function (dimName, axisIndex) {
    +        return this._axisProxies[dimName + '_' + axisIndex];
    +    },
    +
    +    /**
    +     * @param {string} dimName
    +     * @param {number} axisIndex
    +     * @return {module:echarts/model/Model} If not found, return null/undefined.
    +     */
    +    getAxisModel: function (dimName, axisIndex) {
    +        var axisProxy = this.getAxisProxy(dimName, axisIndex);
    +        return axisProxy && axisProxy.getAxisModel();
    +    },
    +
    +    /**
    +     * If not specified, set to undefined.
    +     *
    +     * @public
    +     * @param {Object} opt
    +     * @param {number} [opt.start]
    +     * @param {number} [opt.end]
    +     * @param {number} [opt.startValue]
    +     * @param {number} [opt.endValue]
    +     * @param {boolean} [ignoreUpdateRangeUsg=false]
    +     */
    +    setRawRange: function (opt, ignoreUpdateRangeUsg) {
    +        var option = this.option;
    +        each$24([['start', 'startValue'], ['end', 'endValue']], function (names) {
    +            // If only one of 'start' and 'startValue' is not null/undefined, the other
    +            // should be cleared, which enable clear the option.
    +            // If both of them are not set, keep option with the original value, which
    +            // enable use only set start but not set end when calling `dispatchAction`.
    +            // The same as 'end' and 'endValue'.
    +            if (opt[names[0]] != null || opt[names[1]] != null) {
    +                option[names[0]] = opt[names[0]];
    +                option[names[1]] = opt[names[1]];
    +            }
    +        }, this);
    +
    +        !ignoreUpdateRangeUsg && updateRangeUse(this, opt);
    +    },
    +
    +    /**
    +     * @public
    +     * @return {Array.<number>} [startPercent, endPercent]
    +     */
    +    getPercentRange: function () {
    +        var axisProxy = this.findRepresentativeAxisProxy();
    +        if (axisProxy) {
    +            return axisProxy.getDataPercentWindow();
    +        }
    +    },
    +
    +    /**
    +     * @public
    +     * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);
    +     *
    +     * @param {string} [axisDimName]
    +     * @param {number} [axisIndex]
    +     * @return {Array.<number>} [startValue, endValue] value can only be '-' or finite number.
    +     */
    +    getValueRange: function (axisDimName, axisIndex) {
    +        if (axisDimName == null && axisIndex == null) {
    +            var axisProxy = this.findRepresentativeAxisProxy();
    +            if (axisProxy) {
    +                return axisProxy.getDataValueWindow();
    +            }
    +        }
    +        else {
    +            return this.getAxisProxy(axisDimName, axisIndex).getDataValueWindow();
    +        }
    +    },
    +
    +    /**
    +     * @public
    +     * @param {module:echarts/model/Model} [axisModel] If axisModel given, find axisProxy
    +     *      corresponding to the axisModel
    +     * @return {module:echarts/component/dataZoom/AxisProxy}
    +     */
    +    findRepresentativeAxisProxy: function (axisModel) {
    +        if (axisModel) {
    +            return axisModel.__dzAxisProxy;
    +        }
    +
    +        // Find the first hosted axisProxy
    +        var axisProxies = this._axisProxies;
    +        for (var key in axisProxies) {
    +            if (axisProxies.hasOwnProperty(key) && axisProxies[key].hostedBy(this)) {
    +                return axisProxies[key];
    +            }
    +        }
    +
    +        // If no hosted axis find not hosted axisProxy.
    +        // Consider this case: dataZoomModel1 and dataZoomModel2 control the same axis,
    +        // and the option.start or option.end settings are different. The percentRange
    +        // should follow axisProxy.
    +        // (We encounter this problem in toolbox data zoom.)
    +        for (var key in axisProxies) {
    +            if (axisProxies.hasOwnProperty(key) && !axisProxies[key].hostedBy(this)) {
    +                return axisProxies[key];
    +            }
    +        }
    +    },
    +
    +    /**
    +     * @return {Array.<string>}
    +     */
    +    getRangePropMode: function () {
    +        return this._rangePropMode.slice();
    +    }
    +
    +});
    +
    +function retrieveRaw(option) {
    +    var ret = {};
    +    each$24(
    +        ['start', 'end', 'startValue', 'endValue', 'throttle'],
    +        function (name) {
    +            option.hasOwnProperty(name) && (ret[name] = option[name]);
    +        }
    +    );
    +    return ret;
    +}
    +
    +function updateRangeUse(dataZoomModel, rawOption) {
    +    var rangePropMode = dataZoomModel._rangePropMode;
    +    var rangeModeInOption = dataZoomModel.get('rangeMode');
    +
    +    each$24([['start', 'startValue'], ['end', 'endValue']], function (names, index) {
    +        var percentSpecified = rawOption[names[0]] != null;
    +        var valueSpecified = rawOption[names[1]] != null;
    +        if (percentSpecified && !valueSpecified) {
    +            rangePropMode[index] = 'percent';
    +        }
    +        else if (!percentSpecified && valueSpecified) {
    +            rangePropMode[index] = 'value';
    +        }
    +        else if (rangeModeInOption) {
    +            rangePropMode[index] = rangeModeInOption[index];
    +        }
    +        else if (percentSpecified) { // percentSpecified && valueSpecified
    +            rangePropMode[index] = 'percent';
    +        }
    +        // else remain its original setting.
    +    });
    +}
    +
    +var DataZoomView = Component.extend({
    +
    +    type: 'dataZoom',
    +
    +    render: function (dataZoomModel, ecModel, api, payload) {
    +        this.dataZoomModel = dataZoomModel;
    +        this.ecModel = ecModel;
    +        this.api = api;
    +    },
    +
    +    /**
    +     * Find the first target coordinate system.
    +     *
    +     * @protected
    +     * @return {Object} {
    +     *                   grid: [
    +     *                       {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},
    +     *                       {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},
    +     *                       ...
    +     *                   ],  // cartesians must not be null/undefined.
    +     *                   polar: [
    +     *                       {model: coord0, axisModels: [axis4], coordIndex: 0},
    +     *                       ...
    +     *                   ],  // polars must not be null/undefined.
    +     *                   singleAxis: [
    +     *                       {model: coord0, axisModels: [], coordIndex: 0}
    +     *                   ]
    +     */
    +    getTargetCoordInfo: function () {
    +        var dataZoomModel = this.dataZoomModel;
    +        var ecModel = this.ecModel;
    +        var coordSysLists = {};
    +
    +        dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) {
    +            var axisModel = ecModel.getComponent(dimNames.axis, axisIndex);
    +            if (axisModel) {
    +                var coordModel = axisModel.getCoordSysModel();
    +                coordModel && save(
    +                    coordModel,
    +                    axisModel,
    +                    coordSysLists[coordModel.mainType] || (coordSysLists[coordModel.mainType] = []),
    +                    coordModel.componentIndex
    +                );
    +            }
    +        }, this);
    +
    +        function save(coordModel, axisModel, store, coordIndex) {
    +            var item;
    +            for (var i = 0; i < store.length; i++) {
    +                if (store[i].model === coordModel) {
    +                    item = store[i];
    +                    break;
    +                }
    +            }
    +            if (!item) {
    +                store.push(item = {
    +                    model: coordModel, axisModels: [], coordIndex: coordIndex
    +                });
    +            }
    +            item.axisModels.push(axisModel);
    +        }
    +
    +        return coordSysLists;
    +    }
    +
    +});
    +
    +var SliderZoomModel = DataZoomModel.extend({
    +
    +    type: 'dataZoom.slider',
    +
    +    layoutMode: 'box',
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        show: true,
    +
    +        // ph => placeholder. Using placehoder here because
    +        // deault value can only be drived in view stage.
    +        right: 'ph',  // Default align to grid rect.
    +        top: 'ph',    // Default align to grid rect.
    +        width: 'ph',  // Default align to grid rect.
    +        height: 'ph', // Default align to grid rect.
    +        left: null,   // Default align to grid rect.
    +        bottom: null, // Default align to grid rect.
    +
    +        backgroundColor: 'rgba(47,69,84,0)',    // Background of slider zoom component.
    +        // dataBackgroundColor: '#ddd',         // Background coor of data shadow and border of box,
    +                                                // highest priority, remain for compatibility of
    +                                                // previous version, but not recommended any more.
    +        dataBackground: {
    +            lineStyle: {
    +                color: '#2f4554',
    +                width: 0.5,
    +                opacity: 0.3
    +            },
    +            areaStyle: {
    +                color: 'rgba(47,69,84,0.3)',
    +                opacity: 0.3
    +            }
    +        },
    +        borderColor: '#ddd',                    // border color of the box. For compatibility,
    +                                                // if dataBackgroundColor is set, borderColor
    +                                                // is ignored.
    +
    +        fillerColor: 'rgba(167,183,204,0.4)',     // Color of selected area.
    +        // handleColor: 'rgba(89,170,216,0.95)',     // Color of handle.
    +        // handleIcon: 'path://M4.9,17.8c0-1.4,4.5-10.5,5.5-12.4c0-0.1,0.6-1.1,0.9-1.1c0.4,0,0.9,1,0.9,1.1c1.1,2.2,5.4,11,5.4,12.4v17.8c0,1.5-0.6,2.1-1.3,2.1H6.1c-0.7,0-1.3-0.6-1.3-2.1V17.8z',
    +        handleIcon: 'M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z',
    +        // Percent of the slider height
    +        handleSize: '100%',
    +
    +        handleStyle: {
    +            color: '#a7b7cc'
    +        },
    +
    +        labelPrecision: null,
    +        labelFormatter: null,
    +        showDetail: true,
    +        showDataShadow: 'auto',                 // Default auto decision.
    +        realtime: true,
    +        zoomLock: false,                        // Whether disable zoom.
    +        textStyle: {
    +            color: '#333'
    +        }
    +    }
    +
    +});
    +
    +var Rect$2 = Rect;
    +var linearMap$2 = linearMap;
    +var asc$2 = asc;
    +var bind$4 = bind;
    +var each$26 = each$1;
    +
    +// Constants
    +var DEFAULT_LOCATION_EDGE_GAP = 7;
    +var DEFAULT_FRAME_BORDER_WIDTH = 1;
    +var DEFAULT_FILLER_SIZE = 30;
    +var HORIZONTAL = 'horizontal';
    +var VERTICAL = 'vertical';
    +var LABEL_GAP = 5;
    +var SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];
    +
    +var SliderZoomView = DataZoomView.extend({
    +
    +    type: 'dataZoom.slider',
    +
    +    init: function (ecModel, api) {
    +
    +        /**
    +         * @private
    +         * @type {Object}
    +         */
    +        this._displayables = {};
    +
    +        /**
    +         * @private
    +         * @type {string}
    +         */
    +        this._orient;
    +
    +        /**
    +         * [0, 100]
    +         * @private
    +         */
    +        this._range;
    +
    +        /**
    +         * [coord of the first handle, coord of the second handle]
    +         * @private
    +         */
    +        this._handleEnds;
    +
    +        /**
    +         * [length, thick]
    +         * @private
    +         * @type {Array.<number>}
    +         */
    +        this._size;
    +
    +        /**
    +         * @private
    +         * @type {number}
    +         */
    +        this._handleWidth;
    +
    +        /**
    +         * @private
    +         * @type {number}
    +         */
    +        this._handleHeight;
    +
    +        /**
    +         * @private
    +         */
    +        this._location;
    +
    +        /**
    +         * @private
    +         */
    +        this._dragging;
    +
    +        /**
    +         * @private
    +         */
    +        this._dataShadowInfo;
    +
    +        this.api = api;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (dataZoomModel, ecModel, api, payload) {
    +        SliderZoomView.superApply(this, 'render', arguments);
    +
    +        createOrUpdate(
    +            this,
    +            '_dispatchZoomAction',
    +            this.dataZoomModel.get('throttle'),
    +            'fixRate'
    +        );
    +
    +        this._orient = dataZoomModel.get('orient');
    +
    +        if (this.dataZoomModel.get('show') === false) {
    +            this.group.removeAll();
    +            return;
    +        }
    +
    +        // Notice: this._resetInterval() should not be executed when payload.type
    +        // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'
    +        // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,
    +        if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {
    +            this._buildView();
    +        }
    +
    +        this._updateView();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function () {
    +        SliderZoomView.superApply(this, 'remove', arguments);
    +        clear(this, '_dispatchZoomAction');
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        SliderZoomView.superApply(this, 'dispose', arguments);
    +        clear(this, '_dispatchZoomAction');
    +    },
    +
    +    _buildView: function () {
    +        var thisGroup = this.group;
    +
    +        thisGroup.removeAll();
    +
    +        this._resetLocation();
    +        this._resetInterval();
    +
    +        var barGroup = this._displayables.barGroup = new Group();
    +
    +        this._renderBackground();
    +
    +        this._renderHandle();
    +
    +        this._renderDataShadow();
    +
    +        thisGroup.add(barGroup);
    +
    +        this._positionGroup();
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _resetLocation: function () {
    +        var dataZoomModel = this.dataZoomModel;
    +        var api = this.api;
    +
    +        // If some of x/y/width/height are not specified,
    +        // auto-adapt according to target grid.
    +        var coordRect = this._findCoordRect();
    +        var ecSize = {width: api.getWidth(), height: api.getHeight()};
    +        // Default align by coordinate system rect.
    +        var positionInfo = this._orient === HORIZONTAL
    +            ? {
    +                // Why using 'right', because right should be used in vertical,
    +                // and it is better to be consistent for dealing with position param merge.
    +                right: ecSize.width - coordRect.x - coordRect.width,
    +                top: (ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP),
    +                width: coordRect.width,
    +                height: DEFAULT_FILLER_SIZE
    +            }
    +            : { // vertical
    +                right: DEFAULT_LOCATION_EDGE_GAP,
    +                top: coordRect.y,
    +                width: DEFAULT_FILLER_SIZE,
    +                height: coordRect.height
    +            };
    +
    +        // Do not write back to option and replace value 'ph', because
    +        // the 'ph' value should be recalculated when resize.
    +        var layoutParams = getLayoutParams(dataZoomModel.option);
    +
    +        // Replace the placeholder value.
    +        each$1(['right', 'top', 'width', 'height'], function (name) {
    +            if (layoutParams[name] === 'ph') {
    +                layoutParams[name] = positionInfo[name];
    +            }
    +        });
    +
    +        var layoutRect = getLayoutRect(
    +            layoutParams,
    +            ecSize,
    +            dataZoomModel.padding
    +        );
    +
    +        this._location = {x: layoutRect.x, y: layoutRect.y};
    +        this._size = [layoutRect.width, layoutRect.height];
    +        this._orient === VERTICAL && this._size.reverse();
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _positionGroup: function () {
    +        var thisGroup = this.group;
    +        var location = this._location;
    +        var orient = this._orient;
    +
    +        // Just use the first axis to determine mapping.
    +        var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();
    +        var inverse = targetAxisModel && targetAxisModel.get('inverse');
    +
    +        var barGroup = this._displayables.barGroup;
    +        var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse;
    +
    +        // Transform barGroup.
    +        barGroup.attr(
    +            (orient === HORIZONTAL && !inverse)
    +            ? {scale: otherAxisInverse ? [1, 1] : [1, -1]}
    +            : (orient === HORIZONTAL && inverse)
    +            ? {scale: otherAxisInverse ? [-1, 1] : [-1, -1]}
    +            : (orient === VERTICAL && !inverse)
    +            ? {scale: otherAxisInverse ? [1, -1] : [1, 1], rotation: Math.PI / 2}
    +            // Dont use Math.PI, considering shadow direction.
    +            : {scale: otherAxisInverse ? [-1, -1] : [-1, 1], rotation: Math.PI / 2}
    +        );
    +
    +        // Position barGroup
    +        var rect = thisGroup.getBoundingRect([barGroup]);
    +        thisGroup.attr('position', [location.x - rect.x, location.y - rect.y]);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _getViewExtent: function () {
    +        return [0, this._size[0]];
    +    },
    +
    +    _renderBackground: function () {
    +        var dataZoomModel = this.dataZoomModel;
    +        var size = this._size;
    +        var barGroup = this._displayables.barGroup;
    +
    +        barGroup.add(new Rect$2({
    +            silent: true,
    +            shape: {
    +                x: 0, y: 0, width: size[0], height: size[1]
    +            },
    +            style: {
    +                fill: dataZoomModel.get('backgroundColor')
    +            },
    +            z2: -40
    +        }));
    +
    +        // Click panel, over shadow, below handles.
    +        barGroup.add(new Rect$2({
    +            shape: {
    +                x: 0, y: 0, width: size[0], height: size[1]
    +            },
    +            style: {
    +                fill: 'transparent'
    +            },
    +            z2: 0,
    +            onclick: bind(this._onClickPanelClick, this)
    +        }));
    +    },
    +
    +    _renderDataShadow: function () {
    +        var info = this._dataShadowInfo = this._prepareDataShadowInfo();
    +
    +        if (!info) {
    +            return;
    +        }
    +
    +        var size = this._size;
    +        var seriesModel = info.series;
    +        var data = seriesModel.getRawData();
    +        var otherDim = seriesModel.getShadowDim
    +            ? seriesModel.getShadowDim() // @see candlestick
    +            : info.otherDim;
    +
    +        if (otherDim == null) {
    +            return;
    +        }
    +
    +        var otherDataExtent = data.getDataExtent(otherDim);
    +        // Nice extent.
    +        var otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3;
    +        otherDataExtent = [
    +            otherDataExtent[0] - otherOffset,
    +            otherDataExtent[1] + otherOffset
    +        ];
    +        var otherShadowExtent = [0, size[1]];
    +
    +        var thisShadowExtent = [0, size[0]];
    +
    +        var areaPoints = [[size[0], 0], [0, 0]];
    +        var linePoints = [];
    +        var step = thisShadowExtent[1] / (data.count() - 1);
    +        var thisCoord = 0;
    +
    +        // Optimize for large data shadow
    +        var stride = Math.round(data.count() / size[0]);
    +        var lastIsEmpty;
    +        data.each([otherDim], function (value, index) {
    +            if (stride > 0 && (index % stride)) {
    +                thisCoord += step;
    +                return;
    +            }
    +
    +            // FIXME
    +            // Should consider axis.min/axis.max when drawing dataShadow.
    +
    +            // FIXME
    +            // 应该使用统一的空判断?还是在list里进行空判断?
    +            var isEmpty = value == null || isNaN(value) || value === '';
    +            // See #4235.
    +            var otherCoord = isEmpty
    +                ? 0 : linearMap$2(value, otherDataExtent, otherShadowExtent, true);
    +
    +            // Attempt to draw data shadow precisely when there are empty value.
    +            if (isEmpty && !lastIsEmpty && index) {
    +                areaPoints.push([areaPoints[areaPoints.length - 1][0], 0]);
    +                linePoints.push([linePoints[linePoints.length - 1][0], 0]);
    +            }
    +            else if (!isEmpty && lastIsEmpty) {
    +                areaPoints.push([thisCoord, 0]);
    +                linePoints.push([thisCoord, 0]);
    +            }
    +
    +            areaPoints.push([thisCoord, otherCoord]);
    +            linePoints.push([thisCoord, otherCoord]);
    +
    +            thisCoord += step;
    +            lastIsEmpty = isEmpty;
    +        });
    +
    +        var dataZoomModel = this.dataZoomModel;
    +        // var dataBackgroundModel = dataZoomModel.getModel('dataBackground');
    +        this._displayables.barGroup.add(new Polygon({
    +            shape: {points: areaPoints},
    +            style: defaults(
    +                {fill: dataZoomModel.get('dataBackgroundColor')},
    +                dataZoomModel.getModel('dataBackground.areaStyle').getAreaStyle()
    +            ),
    +            silent: true,
    +            z2: -20
    +        }));
    +        this._displayables.barGroup.add(new Polyline({
    +            shape: {points: linePoints},
    +            style: dataZoomModel.getModel('dataBackground.lineStyle').getLineStyle(),
    +            silent: true,
    +            z2: -19
    +        }));
    +    },
    +
    +    _prepareDataShadowInfo: function () {
    +        var dataZoomModel = this.dataZoomModel;
    +        var showDataShadow = dataZoomModel.get('showDataShadow');
    +
    +        if (showDataShadow === false) {
    +            return;
    +        }
    +
    +        // Find a representative series.
    +        var result;
    +        var ecModel = this.ecModel;
    +
    +        dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) {
    +            var seriesModels = dataZoomModel
    +                .getAxisProxy(dimNames.name, axisIndex)
    +                .getTargetSeriesModels();
    +
    +            each$1(seriesModels, function (seriesModel) {
    +                if (result) {
    +                    return;
    +                }
    +
    +                if (showDataShadow !== true && indexOf(
    +                        SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')
    +                    ) < 0
    +                ) {
    +                    return;
    +                }
    +
    +                var thisAxis = ecModel.getComponent(dimNames.axis, axisIndex).axis;
    +                var otherDim = getOtherDim(dimNames.name);
    +                var otherAxisInverse;
    +                var coordSys = seriesModel.coordinateSystem;
    +                if (otherDim != null && coordSys.getOtherAxis) {
    +                    otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse;
    +                }
    +
    +                result = {
    +                    thisAxis: thisAxis,
    +                    series: seriesModel,
    +                    thisDim: dimNames.name,
    +                    otherDim: otherDim,
    +                    otherAxisInverse: otherAxisInverse
    +                };
    +
    +            }, this);
    +
    +        }, this);
    +
    +        return result;
    +    },
    +
    +    _renderHandle: function () {
    +        var displaybles = this._displayables;
    +        var handles = displaybles.handles = [];
    +        var handleLabels = displaybles.handleLabels = [];
    +        var barGroup = this._displayables.barGroup;
    +        var size = this._size;
    +        var dataZoomModel = this.dataZoomModel;
    +
    +        barGroup.add(displaybles.filler = new Rect$2({
    +            draggable: true,
    +            cursor: getCursor(this._orient),
    +            drift: bind$4(this._onDragMove, this, 'all'),
    +            onmousemove: function (e) {
    +                // Fot mobile devicem, prevent screen slider on the button.
    +                stop(e.event);
    +            },
    +            ondragstart: bind$4(this._showDataInfo, this, true),
    +            ondragend: bind$4(this._onDragEnd, this),
    +            onmouseover: bind$4(this._showDataInfo, this, true),
    +            onmouseout: bind$4(this._showDataInfo, this, false),
    +            style: {
    +                fill: dataZoomModel.get('fillerColor'),
    +                textPosition : 'inside'
    +            }
    +        }));
    +
    +        // Frame border.
    +        barGroup.add(new Rect$2(subPixelOptimizeRect({
    +            silent: true,
    +            shape: {
    +                x: 0,
    +                y: 0,
    +                width: size[0],
    +                height: size[1]
    +            },
    +            style: {
    +                stroke: dataZoomModel.get('dataBackgroundColor')
    +                    || dataZoomModel.get('borderColor'),
    +                lineWidth: DEFAULT_FRAME_BORDER_WIDTH,
    +                fill: 'rgba(0,0,0,0)'
    +            }
    +        })));
    +
    +        each$26([0, 1], function (handleIndex) {
    +            var path = createIcon(
    +                dataZoomModel.get('handleIcon'),
    +                {
    +                    cursor: getCursor(this._orient),
    +                    draggable: true,
    +                    drift: bind$4(this._onDragMove, this, handleIndex),
    +                    onmousemove: function (e) {
    +                        // Fot mobile devicem, prevent screen slider on the button.
    +                        stop(e.event);
    +                    },
    +                    ondragend: bind$4(this._onDragEnd, this),
    +                    onmouseover: bind$4(this._showDataInfo, this, true),
    +                    onmouseout: bind$4(this._showDataInfo, this, false)
    +                },
    +                {x: -1, y: 0, width: 2, height: 2}
    +            );
    +
    +            var bRect = path.getBoundingRect();
    +            this._handleHeight = parsePercent$1(dataZoomModel.get('handleSize'), this._size[1]);
    +            this._handleWidth = bRect.width / bRect.height * this._handleHeight;
    +
    +            path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle());
    +            var handleColor = dataZoomModel.get('handleColor');
    +            // Compatitable with previous version
    +            if (handleColor != null) {
    +                path.style.fill = handleColor;
    +            }
    +
    +            barGroup.add(handles[handleIndex] = path);
    +
    +            var textStyleModel = dataZoomModel.textStyleModel;
    +
    +            this.group.add(
    +                handleLabels[handleIndex] = new Text({
    +                silent: true,
    +                invisible: true,
    +                style: {
    +                    x: 0, y: 0, text: '',
    +                    textVerticalAlign: 'middle',
    +                    textAlign: 'center',
    +                    textFill: textStyleModel.getTextColor(),
    +                    textFont: textStyleModel.getFont()
    +                },
    +                z2: 10
    +            }));
    +
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _resetInterval: function () {
    +        var range = this._range = this.dataZoomModel.getPercentRange();
    +        var viewExtent = this._getViewExtent();
    +
    +        this._handleEnds = [
    +            linearMap$2(range[0], [0, 100], viewExtent, true),
    +            linearMap$2(range[1], [0, 100], viewExtent, true)
    +        ];
    +    },
    +
    +    /**
    +     * @private
    +     * @param {(number|string)} handleIndex 0 or 1 or 'all'
    +     * @param {number} delta
    +     */
    +    _updateInterval: function (handleIndex, delta) {
    +        var dataZoomModel = this.dataZoomModel;
    +        var handleEnds = this._handleEnds;
    +        var viewExtend = this._getViewExtent();
    +        var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
    +        var percentExtent = [0, 100];
    +
    +        sliderMove(
    +            delta,
    +            handleEnds,
    +            viewExtend,
    +            dataZoomModel.get('zoomLock') ? 'all' : handleIndex,
    +            minMaxSpan.minSpan != null
    +                ? linearMap$2(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null,
    +            minMaxSpan.maxSpan != null
    +                ? linearMap$2(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null
    +        );
    +
    +        this._range = asc$2([
    +            linearMap$2(handleEnds[0], viewExtend, percentExtent, true),
    +            linearMap$2(handleEnds[1], viewExtend, percentExtent, true)
    +        ]);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _updateView: function (nonRealtime) {
    +        var displaybles = this._displayables;
    +        var handleEnds = this._handleEnds;
    +        var handleInterval = asc$2(handleEnds.slice());
    +        var size = this._size;
    +
    +        each$26([0, 1], function (handleIndex) {
    +            // Handles
    +            var handle = displaybles.handles[handleIndex];
    +            var handleHeight = this._handleHeight;
    +            handle.attr({
    +                scale: [handleHeight / 2, handleHeight / 2],
    +                position: [handleEnds[handleIndex], size[1] / 2 - handleHeight / 2]
    +            });
    +        }, this);
    +
    +        // Filler
    +        displaybles.filler.setShape({
    +            x: handleInterval[0],
    +            y: 0,
    +            width: handleInterval[1] - handleInterval[0],
    +            height: size[1]
    +        });
    +
    +        this._updateDataInfo(nonRealtime);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _updateDataInfo: function (nonRealtime) {
    +        var dataZoomModel = this.dataZoomModel;
    +        var displaybles = this._displayables;
    +        var handleLabels = displaybles.handleLabels;
    +        var orient = this._orient;
    +        var labelTexts = ['', ''];
    +
    +        // FIXME
    +        // date型,支持formatter,autoformatter(ec2 date.getAutoFormatter)
    +        if (dataZoomModel.get('showDetail')) {
    +            var axisProxy = dataZoomModel.findRepresentativeAxisProxy();
    +
    +            if (axisProxy) {
    +                var axis = axisProxy.getAxisModel().axis;
    +                var range = this._range;
    +
    +                var dataInterval = nonRealtime
    +                    // See #4434, data and axis are not processed and reset yet in non-realtime mode.
    +                    ? axisProxy.calculateDataWindow({
    +                        start: range[0], end: range[1]
    +                    }).valueWindow
    +                    : axisProxy.getDataValueWindow();
    +
    +                labelTexts = [
    +                    this._formatLabel(dataInterval[0], axis),
    +                    this._formatLabel(dataInterval[1], axis)
    +                ];
    +            }
    +        }
    +
    +        var orderedHandleEnds = asc$2(this._handleEnds.slice());
    +
    +        setLabel.call(this, 0);
    +        setLabel.call(this, 1);
    +
    +        function setLabel(handleIndex) {
    +            // Label
    +            // Text should not transform by barGroup.
    +            // Ignore handlers transform
    +            var barTransform = getTransform(
    +                displaybles.handles[handleIndex].parent, this.group
    +            );
    +            var direction = transformDirection(
    +                handleIndex === 0 ? 'right' : 'left', barTransform
    +            );
    +            var offset = this._handleWidth / 2 + LABEL_GAP;
    +            var textPoint = applyTransform$1(
    +                [
    +                    orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset),
    +                    this._size[1] / 2
    +                ],
    +                barTransform
    +            );
    +            handleLabels[handleIndex].setStyle({
    +                x: textPoint[0],
    +                y: textPoint[1],
    +                textVerticalAlign: orient === HORIZONTAL ? 'middle' : direction,
    +                textAlign: orient === HORIZONTAL ? direction : 'center',
    +                text: labelTexts[handleIndex]
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _formatLabel: function (value, axis) {
    +        var dataZoomModel = this.dataZoomModel;
    +        var labelFormatter = dataZoomModel.get('labelFormatter');
    +
    +        var labelPrecision = dataZoomModel.get('labelPrecision');
    +        if (labelPrecision == null || labelPrecision === 'auto') {
    +            labelPrecision = axis.getPixelPrecision();
    +        }
    +
    +        var valueStr = (value == null || isNaN(value))
    +            ? ''
    +            // FIXME Glue code
    +            : (axis.type === 'category' || axis.type === 'time')
    +                ? axis.scale.getLabel(Math.round(value))
    +                // param of toFixed should less then 20.
    +                : value.toFixed(Math.min(labelPrecision, 20));
    +
    +        return isFunction(labelFormatter)
    +            ? labelFormatter(value, valueStr)
    +            : isString(labelFormatter)
    +            ? labelFormatter.replace('{value}', valueStr)
    +            : valueStr;
    +    },
    +
    +    /**
    +     * @private
    +     * @param {boolean} showOrHide true: show, false: hide
    +     */
    +    _showDataInfo: function (showOrHide) {
    +        // Always show when drgging.
    +        showOrHide = this._dragging || showOrHide;
    +
    +        var handleLabels = this._displayables.handleLabels;
    +        handleLabels[0].attr('invisible', !showOrHide);
    +        handleLabels[1].attr('invisible', !showOrHide);
    +    },
    +
    +    _onDragMove: function (handleIndex, dx, dy) {
    +        this._dragging = true;
    +
    +        // Transform dx, dy to bar coordination.
    +        var barTransform = this._displayables.barGroup.getLocalTransform();
    +        var vertex = applyTransform$1([dx, dy], barTransform, true);
    +
    +        this._updateInterval(handleIndex, vertex[0]);
    +
    +        var realtime = this.dataZoomModel.get('realtime');
    +
    +        this._updateView(!realtime);
    +
    +        if (realtime) {
    +            realtime && this._dispatchZoomAction();
    +        }
    +    },
    +
    +    _onDragEnd: function () {
    +        this._dragging = false;
    +        this._showDataInfo(false);
    +        this._dispatchZoomAction();
    +    },
    +
    +    _onClickPanelClick: function (e) {
    +        var size = this._size;
    +        var localPoint = this._displayables.barGroup.transformCoordToLocal(e.offsetX, e.offsetY);
    +
    +        if (localPoint[0] < 0 || localPoint[0] > size[0]
    +            || localPoint[1] < 0 || localPoint[1] > size[1]
    +        ) {
    +            return;
    +        }
    +
    +        var handleEnds = this._handleEnds;
    +        var center = (handleEnds[0] + handleEnds[1]) / 2;
    +
    +        this._updateInterval('all', localPoint[0] - center);
    +        this._updateView();
    +        this._dispatchZoomAction();
    +    },
    +
    +    /**
    +     * This action will be throttled.
    +     * @private
    +     */
    +    _dispatchZoomAction: function () {
    +        var range = this._range;
    +
    +        this.api.dispatchAction({
    +            type: 'dataZoom',
    +            from: this.uid,
    +            dataZoomId: this.dataZoomModel.id,
    +            start: range[0],
    +            end: range[1]
    +        });
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _findCoordRect: function () {
    +        // Find the grid coresponding to the first axis referred by dataZoom.
    +        var rect;
    +        each$26(this.getTargetCoordInfo(), function (coordInfoList) {
    +            if (!rect && coordInfoList.length) {
    +                var coordSys = coordInfoList[0].model.coordinateSystem;
    +                rect = coordSys.getRect && coordSys.getRect();
    +            }
    +        });
    +        if (!rect) {
    +            var width = this.api.getWidth();
    +            var height = this.api.getHeight();
    +            rect = {
    +                x: width * 0.2,
    +                y: height * 0.2,
    +                width: width * 0.6,
    +                height: height * 0.6
    +            };
    +        }
    +
    +        return rect;
    +    }
    +
    +});
    +
    +function getOtherDim(thisDim) {
    +    // FIXME
    +    // 这个逻辑和getOtherAxis里一致,但是写在这里是否不好
    +    var map$$1 = {x: 'y', y: 'x', radius: 'angle', angle: 'radius'};
    +    return map$$1[thisDim];
    +}
    +
    +function getCursor(orient) {
    +    return orient === 'vertical' ? 'ns-resize' : 'ew-resize';
    +}
    +
    +DataZoomModel.extend({
    +
    +    type: 'dataZoom.inside',
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        disabled: false,   // Whether disable this inside zoom.
    +        zoomLock: false,   // Whether disable zoom but only pan.
    +        zoomOnMouseWheel: true, // Can be: true / false / 'shift' / 'ctrl' / 'alt'.
    +        moveOnMouseMove: true,   // Can be: true / false / 'shift' / 'ctrl' / 'alt'.
    +        preventDefaultMouseMove: true
    +    }
    +});
    +
    +// Only create one roam controller for each coordinate system.
    +// one roam controller might be refered by two inside data zoom
    +// components (for example, one for x and one for y). When user
    +// pan or zoom, only dispatch one action for those data zoom
    +// components.
    +
    +var curry$6 = curry;
    +
    +var ATTR$1 = '\0_ec_dataZoom_roams';
    +
    +
    +/**
    + * @public
    + * @param {module:echarts/ExtensionAPI} api
    + * @param {Object} dataZoomInfo
    + * @param {string} dataZoomInfo.coordId
    + * @param {Function} dataZoomInfo.containsPoint
    + * @param {Array.<string>} dataZoomInfo.allCoordIds
    + * @param {string} dataZoomInfo.dataZoomId
    + * @param {number} dataZoomInfo.throttleRate
    + * @param {Function} dataZoomInfo.panGetRange
    + * @param {Function} dataZoomInfo.zoomGetRange
    + * @param {boolean} [dataZoomInfo.zoomLock]
    + * @param {boolean} [dataZoomInfo.disabled]
    + */
    +function register$2(api, dataZoomInfo) {
    +    var store = giveStore(api);
    +    var theDataZoomId = dataZoomInfo.dataZoomId;
    +    var theCoordId = dataZoomInfo.coordId;
    +
    +    // Do clean when a dataZoom changes its target coordnate system.
    +    // Avoid memory leak, dispose all not-used-registered.
    +    each$1(store, function (record, coordId) {
    +        var dataZoomInfos = record.dataZoomInfos;
    +        if (dataZoomInfos[theDataZoomId]
    +            && indexOf(dataZoomInfo.allCoordIds, theCoordId) < 0
    +        ) {
    +            delete dataZoomInfos[theDataZoomId];
    +            record.count--;
    +        }
    +    });
    +
    +    cleanStore(store);
    +
    +    var record = store[theCoordId];
    +    // Create if needed.
    +    if (!record) {
    +        record = store[theCoordId] = {
    +            coordId: theCoordId,
    +            dataZoomInfos: {},
    +            count: 0
    +        };
    +        record.controller = createController(api, record);
    +        record.dispatchAction = curry(dispatchAction$1, api);
    +    }
    +
    +    // Update reference of dataZoom.
    +    !(record.dataZoomInfos[theDataZoomId]) && record.count++;
    +    record.dataZoomInfos[theDataZoomId] = dataZoomInfo;
    +
    +    var controllerParams = mergeControllerParams(record.dataZoomInfos);
    +    record.controller.enable(controllerParams.controlType, controllerParams.opt);
    +
    +    // Consider resize, area should be always updated.
    +    record.controller.setPointerChecker(dataZoomInfo.containsPoint);
    +
    +    // Update throttle.
    +    createOrUpdate(
    +        record,
    +        'dispatchAction',
    +        dataZoomInfo.throttleRate,
    +        'fixRate'
    +    );
    +}
    +
    +/**
    + * @public
    + * @param {module:echarts/ExtensionAPI} api
    + * @param {string} dataZoomId
    + */
    +function unregister$1(api, dataZoomId) {
    +    var store = giveStore(api);
    +
    +    each$1(store, function (record) {
    +        record.controller.dispose();
    +        var dataZoomInfos = record.dataZoomInfos;
    +        if (dataZoomInfos[dataZoomId]) {
    +            delete dataZoomInfos[dataZoomId];
    +            record.count--;
    +        }
    +    });
    +
    +    cleanStore(store);
    +}
    +
    +/**
    + * @public
    + */
    +function shouldRecordRange(payload, dataZoomId) {
    +    if (payload && payload.type === 'dataZoom' && payload.batch) {
    +        for (var i = 0, len = payload.batch.length; i < len; i++) {
    +            if (payload.batch[i].dataZoomId === dataZoomId) {
    +                return false;
    +            }
    +        }
    +    }
    +    return true;
    +}
    +
    +/**
    + * @public
    + */
    +function generateCoordId(coordModel) {
    +    return coordModel.type + '\0_' + coordModel.id;
    +}
    +
    +/**
    + * Key: coordId, value: {dataZoomInfos: [], count, controller}
    + * @type {Array.<Object>}
    + */
    +function giveStore(api) {
    +    // Mount store on zrender instance, so that we do not
    +    // need to worry about dispose.
    +    var zr = api.getZr();
    +    return zr[ATTR$1] || (zr[ATTR$1] = {});
    +}
    +
    +function createController(api, newRecord) {
    +    var controller = new RoamController(api.getZr());
    +    controller.on('pan', curry$6(onPan, newRecord));
    +    controller.on('zoom', curry$6(onZoom, newRecord));
    +
    +    return controller;
    +}
    +
    +function cleanStore(store) {
    +    each$1(store, function (record, coordId) {
    +        if (!record.count) {
    +            record.controller.dispose();
    +            delete store[coordId];
    +        }
    +    });
    +}
    +
    +function onPan(record, dx, dy, oldX, oldY, newX, newY) {
    +    wrapAndDispatch(record, function (info) {
    +        return info.panGetRange(record.controller, dx, dy, oldX, oldY, newX, newY);
    +    });
    +}
    +
    +function onZoom(record, scale, mouseX, mouseY) {
    +    wrapAndDispatch(record, function (info) {
    +        return info.zoomGetRange(record.controller, scale, mouseX, mouseY);
    +    });
    +}
    +
    +function wrapAndDispatch(record, getRange) {
    +    var batch = [];
    +
    +    each$1(record.dataZoomInfos, function (info) {
    +        var range = getRange(info);
    +        !info.disabled && range && batch.push({
    +            dataZoomId: info.dataZoomId,
    +            start: range[0],
    +            end: range[1]
    +        });
    +    });
    +
    +    record.dispatchAction(batch);
    +}
    +
    +/**
    + * This action will be throttled.
    + */
    +function dispatchAction$1(api, batch) {
    +    api.dispatchAction({
    +        type: 'dataZoom',
    +        batch: batch
    +    });
    +}
    +
    +/**
    + * Merge roamController settings when multiple dataZooms share one roamController.
    + */
    +function mergeControllerParams(dataZoomInfos) {
    +    var controlType;
    +    var opt = {};
    +    var typePriority = {
    +        'true': 2,
    +        'move': 1,
    +        'false': 0,
    +        'undefined': -1
    +    };
    +    each$1(dataZoomInfos, function (dataZoomInfo) {
    +        var oneType = dataZoomInfo.disabled ? false : dataZoomInfo.zoomLock ? 'move' : true;
    +        typePriority[oneType] > typePriority[controlType] && (controlType = oneType);
    +        // Do not support that different 'shift'/'ctrl'/'alt' setting used in one coord sys.
    +        extend(opt, dataZoomInfo.roamControllerOpt);
    +    });
    +
    +    return {
    +        controlType: controlType,
    +        opt: opt
    +    };
    +}
    +
    +var bind$5 = bind;
    +
    +var InsideZoomView = DataZoomView.extend({
    +
    +    type: 'dataZoom.inside',
    +
    +    /**
    +     * @override
    +     */
    +    init: function (ecModel, api) {
    +        /**
    +         * 'throttle' is used in this.dispatchAction, so we save range
    +         * to avoid missing some 'pan' info.
    +         * @private
    +         * @type {Array.<number>}
    +         */
    +        this._range;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (dataZoomModel, ecModel, api, payload) {
    +        InsideZoomView.superApply(this, 'render', arguments);
    +
    +        // Notice: origin this._range should be maintained, and should not be re-fetched
    +        // from dataZoomModel when payload.type is 'dataZoom', otherwise 'pan' or 'zoom'
    +        // info will be missed because of 'throttle' of this.dispatchAction.
    +        if (shouldRecordRange(payload, dataZoomModel.id)) {
    +            this._range = dataZoomModel.getPercentRange();
    +        }
    +
    +        // Reset controllers.
    +        each$1(this.getTargetCoordInfo(), function (coordInfoList, coordSysName) {
    +
    +            var allCoordIds = map(coordInfoList, function (coordInfo) {
    +                return generateCoordId(coordInfo.model);
    +            });
    +
    +            each$1(coordInfoList, function (coordInfo) {
    +                var coordModel = coordInfo.model;
    +                var dataZoomOption = dataZoomModel.option;
    +
    +                register$2(
    +                    api,
    +                    {
    +                        coordId: generateCoordId(coordModel),
    +                        allCoordIds: allCoordIds,
    +                        containsPoint: function (e, x, y) {
    +                            return coordModel.coordinateSystem.containPoint([x, y]);
    +                        },
    +                        dataZoomId: dataZoomModel.id,
    +                        throttleRate: dataZoomModel.get('throttle', true),
    +                        panGetRange: bind$5(this._onPan, this, coordInfo, coordSysName),
    +                        zoomGetRange: bind$5(this._onZoom, this, coordInfo, coordSysName),
    +                        zoomLock: dataZoomOption.zoomLock,
    +                        disabled: dataZoomOption.disabled,
    +                        roamControllerOpt: {
    +                            zoomOnMouseWheel: dataZoomOption.zoomOnMouseWheel,
    +                            moveOnMouseMove: dataZoomOption.moveOnMouseMove,
    +                            preventDefaultMouseMove: dataZoomOption.preventDefaultMouseMove
    +                        }
    +                    }
    +                );
    +            }, this);
    +
    +        }, this);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        unregister$1(this.api, this.dataZoomModel.id);
    +        InsideZoomView.superApply(this, 'dispose', arguments);
    +        this._range = null;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onPan: function (coordInfo, coordSysName, controller, dx, dy, oldX, oldY, newX, newY) {
    +        var range = this._range.slice();
    +
    +        // Calculate transform by the first axis.
    +        var axisModel = coordInfo.axisModels[0];
    +        if (!axisModel) {
    +            return;
    +        }
    +
    +        var directionInfo = getDirectionInfo[coordSysName](
    +            [oldX, oldY], [newX, newY], axisModel, controller, coordInfo
    +        );
    +
    +        var percentDelta = directionInfo.signal
    +            * (range[1] - range[0])
    +            * directionInfo.pixel / directionInfo.pixelLength;
    +
    +        sliderMove(percentDelta, range, [0, 100], 'all');
    +
    +        return (this._range = range);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onZoom: function (coordInfo, coordSysName, controller, scale, mouseX, mouseY) {
    +        var range = this._range.slice();
    +
    +        // Calculate transform by the first axis.
    +        var axisModel = coordInfo.axisModels[0];
    +        if (!axisModel) {
    +            return;
    +        }
    +
    +        var directionInfo = getDirectionInfo[coordSysName](
    +            null, [mouseX, mouseY], axisModel, controller, coordInfo
    +        );
    +        var percentPoint = (
    +            directionInfo.signal > 0
    +                ? (directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel)
    +                : (directionInfo.pixel - directionInfo.pixelStart)
    +            ) / directionInfo.pixelLength * (range[1] - range[0]) + range[0];
    +
    +        scale = Math.max(1 / scale, 0);
    +        range[0] = (range[0] - percentPoint) * scale + percentPoint;
    +        range[1] = (range[1] - percentPoint) * scale + percentPoint;
    +
    +        // Restrict range.
    +        var minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
    +
    +        sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan);
    +
    +        return (this._range = range);
    +    }
    +
    +});
    +
    +var getDirectionInfo = {
    +
    +    grid: function (oldPoint, newPoint, axisModel, controller, coordInfo) {
    +        var axis = axisModel.axis;
    +        var ret = {};
    +        var rect = coordInfo.model.coordinateSystem.getRect();
    +        oldPoint = oldPoint || [0, 0];
    +
    +        if (axis.dim === 'x') {
    +            ret.pixel = newPoint[0] - oldPoint[0];
    +            ret.pixelLength = rect.width;
    +            ret.pixelStart = rect.x;
    +            ret.signal = axis.inverse ? 1 : -1;
    +        }
    +        else { // axis.dim === 'y'
    +            ret.pixel = newPoint[1] - oldPoint[1];
    +            ret.pixelLength = rect.height;
    +            ret.pixelStart = rect.y;
    +            ret.signal = axis.inverse ? -1 : 1;
    +        }
    +
    +        return ret;
    +    },
    +
    +    polar: function (oldPoint, newPoint, axisModel, controller, coordInfo) {
    +        var axis = axisModel.axis;
    +        var ret = {};
    +        var polar = coordInfo.model.coordinateSystem;
    +        var radiusExtent = polar.getRadiusAxis().getExtent();
    +        var angleExtent = polar.getAngleAxis().getExtent();
    +
    +        oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0];
    +        newPoint = polar.pointToCoord(newPoint);
    +
    +        if (axisModel.mainType === 'radiusAxis') {
    +            ret.pixel = newPoint[0] - oldPoint[0];
    +            // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);
    +            // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);
    +            ret.pixelLength = radiusExtent[1] - radiusExtent[0];
    +            ret.pixelStart = radiusExtent[0];
    +            ret.signal = axis.inverse ? 1 : -1;
    +        }
    +        else { // 'angleAxis'
    +            ret.pixel = newPoint[1] - oldPoint[1];
    +            // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);
    +            // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);
    +            ret.pixelLength = angleExtent[1] - angleExtent[0];
    +            ret.pixelStart = angleExtent[0];
    +            ret.signal = axis.inverse ? -1 : 1;
    +        }
    +
    +        return ret;
    +    },
    +
    +    singleAxis: function (oldPoint, newPoint, axisModel, controller, coordInfo) {
    +        var axis = axisModel.axis;
    +        var rect = coordInfo.model.coordinateSystem.getRect();
    +        var ret = {};
    +
    +        oldPoint = oldPoint || [0, 0];
    +
    +        if (axis.orient === 'horizontal') {
    +            ret.pixel = newPoint[0] - oldPoint[0];
    +            ret.pixelLength = rect.width;
    +            ret.pixelStart = rect.x;
    +            ret.signal = axis.inverse ? 1 : -1;
    +        }
    +        else { // 'vertical'
    +            ret.pixel = newPoint[1] - oldPoint[1];
    +            ret.pixelLength = rect.height;
    +            ret.pixelStart = rect.y;
    +            ret.signal = axis.inverse ? -1 : 1;
    +        }
    +
    +        return ret;
    +    }
    +};
    +
    +registerProcessor(function (ecModel, api) {
    +
    +    ecModel.eachComponent('dataZoom', function (dataZoomModel) {
    +        // We calculate window and reset axis here but not in model
    +        // init stage and not after action dispatch handler, because
    +        // reset should be called after seriesData.restoreData.
    +        dataZoomModel.eachTargetAxis(resetSingleAxis);
    +
    +        // Caution: data zoom filtering is order sensitive when using
    +        // percent range and no min/max/scale set on axis.
    +        // For example, we have dataZoom definition:
    +        // [
    +        //      {xAxisIndex: 0, start: 30, end: 70},
    +        //      {yAxisIndex: 0, start: 20, end: 80}
    +        // ]
    +        // In this case, [20, 80] of y-dataZoom should be based on data
    +        // that have filtered by x-dataZoom using range of [30, 70],
    +        // but should not be based on full raw data. Thus sliding
    +        // x-dataZoom will change both ranges of xAxis and yAxis,
    +        // while sliding y-dataZoom will only change the range of yAxis.
    +        // So we should filter x-axis after reset x-axis immediately,
    +        // and then reset y-axis and filter y-axis.
    +        dataZoomModel.eachTargetAxis(filterSingleAxis);
    +    });
    +
    +    ecModel.eachComponent('dataZoom', function (dataZoomModel) {
    +        // Fullfill all of the range props so that user
    +        // is able to get them from chart.getOption().
    +        var axisProxy = dataZoomModel.findRepresentativeAxisProxy();
    +        var percentRange = axisProxy.getDataPercentWindow();
    +        var valueRange = axisProxy.getDataValueWindow();
    +
    +        dataZoomModel.setRawRange({
    +            start: percentRange[0],
    +            end: percentRange[1],
    +            startValue: valueRange[0],
    +            endValue: valueRange[1]
    +        }, true);
    +    });
    +});
    +
    +function resetSingleAxis(dimNames, axisIndex, dataZoomModel) {
    +    dataZoomModel.getAxisProxy(dimNames.name, axisIndex).reset(dataZoomModel);
    +}
    +
    +function filterSingleAxis(dimNames, axisIndex, dataZoomModel) {
    +    dataZoomModel.getAxisProxy(dimNames.name, axisIndex).filterData(dataZoomModel);
    +}
    +
    +registerAction('dataZoom', function (payload, ecModel) {
    +
    +    var linkedNodesFinder = createLinkedNodesFinder(
    +        bind(ecModel.eachComponent, ecModel, 'dataZoom'),
    +        eachAxisDim$1,
    +        function (model, dimNames) {
    +            return model.get(dimNames.axisIndex);
    +        }
    +    );
    +
    +    var effectedModels = [];
    +
    +    ecModel.eachComponent(
    +        {mainType: 'dataZoom', query: payload},
    +        function (model, index) {
    +            effectedModels.push.apply(
    +                effectedModels, linkedNodesFinder(model).nodes
    +            );
    +        }
    +    );
    +
    +    each$1(effectedModels, function (dataZoomModel, index) {
    +        dataZoomModel.setRawRange({
    +            start: payload.start,
    +            end: payload.end,
    +            startValue: payload.startValue,
    +            endValue: payload.endValue
    +        });
    +    });
    +
    +});
    +
    +/**
    + * DataZoom component entry
    + */
    +
    +var each$27 = each$1;
    +
    +var preprocessor$2 = function (option) {
    +    var visualMap = option && option.visualMap;
    +
    +    if (!isArray(visualMap)) {
    +        visualMap = visualMap ? [visualMap] : [];
    +    }
    +
    +    each$27(visualMap, function (opt) {
    +        if (!opt) {
    +            return;
    +        }
    +
    +        // rename splitList to pieces
    +        if (has$1(opt, 'splitList') && !has$1(opt, 'pieces')) {
    +            opt.pieces = opt.splitList;
    +            delete opt.splitList;
    +        }
    +
    +        var pieces = opt.pieces;
    +        if (pieces && isArray(pieces)) {
    +            each$27(pieces, function (piece) {
    +                if (isObject(piece)) {
    +                    if (has$1(piece, 'start') && !has$1(piece, 'min')) {
    +                        piece.min = piece.start;
    +                    }
    +                    if (has$1(piece, 'end') && !has$1(piece, 'max')) {
    +                        piece.max = piece.end;
    +                    }
    +                }
    +            });
    +        }
    +    });
    +};
    +
    +function has$1(obj, name) {
    +    return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);
    +}
    +
    +ComponentModel.registerSubTypeDefaulter('visualMap', function (option) {
    +    // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.
    +    return (
    +            !option.categories
    +            && (
    +                !(
    +                    option.pieces
    +                        ? option.pieces.length > 0
    +                        : option.splitNumber > 0
    +                )
    +                || option.calculable
    +            )
    +        )
    +        ? 'continuous' : 'piecewise';
    +});
    +
    +registerVisual(PRIORITY.VISUAL.COMPONENT, function (ecModel) {
    +    ecModel.eachComponent('visualMap', function (visualMapModel) {
    +        processSingleVisualMap(visualMapModel, ecModel);
    +    });
    +
    +    prepareVisualMeta(ecModel);
    +});
    +
    +function processSingleVisualMap(visualMapModel, ecModel) {
    +    visualMapModel.eachTargetSeries(function (seriesModel) {
    +        var data = seriesModel.getData();
    +
    +        applyVisual(
    +            visualMapModel.stateList,
    +            visualMapModel.targetVisuals,
    +            data,
    +            visualMapModel.getValueState,
    +            visualMapModel,
    +            visualMapModel.getDataDimension(data)
    +        );
    +    });
    +}
    +
    +// Only support color.
    +function prepareVisualMeta(ecModel) {
    +    ecModel.eachSeries(function (seriesModel) {
    +        var data = seriesModel.getData();
    +        var visualMetaList = [];
    +
    +        ecModel.eachComponent('visualMap', function (visualMapModel) {
    +            if (visualMapModel.isTargetSeries(seriesModel)) {
    +                var visualMeta = visualMapModel.getVisualMeta(
    +                    bind(getColorVisual, null, seriesModel, visualMapModel)
    +                ) || {stops: [], outerColors: []};
    +                visualMeta.dimension = visualMapModel.getDataDimension(data);
    +                visualMetaList.push(visualMeta);
    +            }
    +        });
    +
    +        // console.log(JSON.stringify(visualMetaList.map(a => a.stops)));
    +        seriesModel.getData().setVisual('visualMeta', visualMetaList);
    +    });
    +}
    +
    +// FIXME
    +// performance and export for heatmap?
    +// value can be Infinity or -Infinity
    +function getColorVisual(seriesModel, visualMapModel, value, valueState) {
    +    var mappings = visualMapModel.targetVisuals[valueState];
    +    var visualTypes = VisualMapping.prepareVisualTypes(mappings);
    +    var resultVisual = {
    +        color: seriesModel.getData().getVisual('color') // default color.
    +    };
    +
    +    for (var i = 0, len = visualTypes.length; i < len; i++) {
    +        var type = visualTypes[i];
    +        var mapping = mappings[
    +            type === 'opacity' ? '__alphaForOpacity' : type
    +        ];
    +        mapping && mapping.applyVisual(value, getVisual, setVisual);
    +    }
    +
    +    return resultVisual.color;
    +
    +    function getVisual(key) {
    +        return resultVisual[key];
    +    }
    +
    +    function setVisual(key, value) {
    +        resultVisual[key] = value;
    +    }
    +}
    +
    +/**
    + * @file Visual mapping.
    + */
    +
    +var visualDefault = {
    +
    +    /**
    +     * @public
    +     */
    +    get: function (visualType, key, isCategory) {
    +        var value = clone(
    +            (defaultOption$3[visualType] || {})[key]
    +        );
    +
    +        return isCategory
    +            ? (isArray(value) ? value[value.length - 1] : value)
    +            : value;
    +    }
    +
    +};
    +
    +var defaultOption$3 = {
    +
    +    color: {
    +        active: ['#006edd', '#e0ffff'],
    +        inactive: ['rgba(0,0,0,0)']
    +    },
    +
    +    colorHue: {
    +        active: [0, 360],
    +        inactive: [0, 0]
    +    },
    +
    +    colorSaturation: {
    +        active: [0.3, 1],
    +        inactive: [0, 0]
    +    },
    +
    +    colorLightness: {
    +        active: [0.9, 0.5],
    +        inactive: [0, 0]
    +    },
    +
    +    colorAlpha: {
    +        active: [0.3, 1],
    +        inactive: [0, 0]
    +    },
    +
    +    opacity: {
    +        active: [0.3, 1],
    +        inactive: [0, 0]
    +    },
    +
    +    symbol: {
    +        active: ['circle', 'roundRect', 'diamond'],
    +        inactive: ['none']
    +    },
    +
    +    symbolSize: {
    +        active: [10, 50],
    +        inactive: [0, 0]
    +    }
    +};
    +
    +var mapVisual$2 = VisualMapping.mapVisual;
    +var eachVisual = VisualMapping.eachVisual;
    +var isArray$3 = isArray;
    +var each$28 = each$1;
    +var asc$3 = asc;
    +var linearMap$3 = linearMap;
    +var noop$2 = noop;
    +
    +var DEFAULT_COLOR = ['#f6efa6', '#d88273', '#bf444c'];
    +
    +var VisualMapModel = extendComponentModel({
    +
    +    type: 'visualMap',
    +
    +    dependencies: ['series'],
    +
    +    /**
    +     * @readOnly
    +     * @type {Array.<string>}
    +     */
    +    stateList: ['inRange', 'outOfRange'],
    +
    +    /**
    +     * @readOnly
    +     * @type {Array.<string>}
    +     */
    +    replacableOptionKeys: [
    +        'inRange', 'outOfRange', 'target', 'controller', 'color'
    +    ],
    +
    +    /**
    +     * [lowerBound, upperBound]
    +     *
    +     * @readOnly
    +     * @type {Array.<number>}
    +     */
    +    dataBound: [-Infinity, Infinity],
    +
    +    /**
    +     * @readOnly
    +     * @type {string|Object}
    +     */
    +    layoutMode: {type: 'box', ignoreSize: true},
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        show: true,
    +
    +        zlevel: 0,
    +        z: 4,
    +
    +        seriesIndex: 'all',     // 'all' or null/undefined: all series.
    +                                // A number or an array of number: the specified series.
    +
    +                                // set min: 0, max: 200, only for campatible with ec2.
    +                                // In fact min max should not have default value.
    +        min: 0,                 // min value, must specified if pieces is not specified.
    +        max: 200,               // max value, must specified if pieces is not specified.
    +
    +        dimension: null,
    +        inRange: null,          // 'color', 'colorHue', 'colorSaturation', 'colorLightness', 'colorAlpha',
    +                                // 'symbol', 'symbolSize'
    +        outOfRange: null,       // 'color', 'colorHue', 'colorSaturation',
    +                                // 'colorLightness', 'colorAlpha',
    +                                // 'symbol', 'symbolSize'
    +
    +        left: 0,                // 'center' ¦ 'left' ¦ 'right' ¦ {number} (px)
    +        right: null,            // The same as left.
    +        top: null,              // 'top' ¦ 'bottom' ¦ 'center' ¦ {number} (px)
    +        bottom: 0,              // The same as top.
    +
    +        itemWidth: null,
    +        itemHeight: null,
    +        inverse: false,
    +        orient: 'vertical',        // 'horizontal' ¦ 'vertical'
    +
    +        backgroundColor: 'rgba(0,0,0,0)',
    +        borderColor: '#ccc',       // 值域边框颜色
    +        contentColor: '#5793f3',
    +        inactiveColor: '#aaa',
    +        borderWidth: 0,            // 值域边框线宽,单位px,默认为0(无边框)
    +        padding: 5,                // 值域内边距,单位px,默认各方向内边距为5,
    +                                    // 接受数组分别设定上右下左边距,同css
    +        textGap: 10,               //
    +        precision: 0,              // 小数精度,默认为0,无小数点
    +        color: null,               //颜色(deprecated,兼容ec2,顺序同pieces,不同于inRange/outOfRange)
    +
    +        formatter: null,
    +        text: null,                // 文本,如['高', '低'],兼容ec2,text[0]对应高值,text[1]对应低值
    +        textStyle: {
    +            color: '#333'          // 值域文字颜色
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    init: function (option, parentModel, ecModel) {
    +
    +        /**
    +         * @private
    +         * @type {Array.<number>}
    +         */
    +        this._dataExtent;
    +
    +        /**
    +         * @readOnly
    +         */
    +        this.targetVisuals = {};
    +
    +        /**
    +         * @readOnly
    +         */
    +        this.controllerVisuals = {};
    +
    +        /**
    +         * @readOnly
    +         */
    +        this.textStyleModel;
    +
    +        /**
    +         * [width, height]
    +         * @readOnly
    +         * @type {Array.<number>}
    +         */
    +        this.itemSize;
    +
    +        this.mergeDefaultAndTheme(option, ecModel);
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    optionUpdated: function (newOption, isInit) {
    +        var thisOption = this.option;
    +
    +        // FIXME
    +        // necessary?
    +        // Disable realtime view update if canvas is not supported.
    +        if (!env$1.canvasSupported) {
    +            thisOption.realtime = false;
    +        }
    +
    +        !isInit && replaceVisualOption(
    +            thisOption, newOption, this.replacableOptionKeys
    +        );
    +
    +        this.textStyleModel = this.getModel('textStyle');
    +
    +        this.resetItemSize();
    +
    +        this.completeVisualOption();
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    resetVisual: function (supplementVisualOption) {
    +        var stateList = this.stateList;
    +        supplementVisualOption = bind(supplementVisualOption, this);
    +
    +        this.controllerVisuals = createVisualMappings(
    +            this.option.controller, stateList, supplementVisualOption
    +        );
    +        this.targetVisuals = createVisualMappings(
    +            this.option.target, stateList, supplementVisualOption
    +        );
    +    },
    +
    +    /**
    +     * @protected
    +     * @return {Array.<number>} An array of series indices.
    +     */
    +    getTargetSeriesIndices: function () {
    +        var optionSeriesIndex = this.option.seriesIndex;
    +        var seriesIndices = [];
    +
    +        if (optionSeriesIndex == null || optionSeriesIndex === 'all') {
    +            this.ecModel.eachSeries(function (seriesModel, index) {
    +                seriesIndices.push(index);
    +            });
    +        }
    +        else {
    +            seriesIndices = normalizeToArray(optionSeriesIndex);
    +        }
    +
    +        return seriesIndices;
    +    },
    +
    +    /**
    +     * @public
    +     */
    +    eachTargetSeries: function (callback, context) {
    +        each$1(this.getTargetSeriesIndices(), function (seriesIndex) {
    +            callback.call(context, this.ecModel.getSeriesByIndex(seriesIndex));
    +        }, this);
    +    },
    +
    +    /**
    +     * @pubilc
    +     */
    +    isTargetSeries: function (seriesModel) {
    +        var is = false;
    +        this.eachTargetSeries(function (model) {
    +            model === seriesModel && (is = true);
    +        });
    +        return is;
    +    },
    +
    +    /**
    +     * @example
    +     * this.formatValueText(someVal); // format single numeric value to text.
    +     * this.formatValueText(someVal, true); // format single category value to text.
    +     * this.formatValueText([min, max]); // format numeric min-max to text.
    +     * this.formatValueText([this.dataBound[0], max]); // using data lower bound.
    +     * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.
    +     *
    +     * @param {number|Array.<number>} value Real value, or this.dataBound[0 or 1].
    +     * @param {boolean} [isCategory=false] Only available when value is number.
    +     * @param {Array.<string>} edgeSymbols Open-close symbol when value is interval.
    +     * @return {string}
    +     * @protected
    +     */
    +    formatValueText: function(value, isCategory, edgeSymbols) {
    +        var option = this.option;
    +        var precision = option.precision;
    +        var dataBound = this.dataBound;
    +        var formatter = option.formatter;
    +        var isMinMax;
    +        var textValue;
    +        edgeSymbols = edgeSymbols || ['<', '>'];
    +
    +        if (isArray(value)) {
    +            value = value.slice();
    +            isMinMax = true;
    +        }
    +
    +        textValue = isCategory
    +            ? value
    +            : (isMinMax
    +                ? [toFixed(value[0]), toFixed(value[1])]
    +                : toFixed(value)
    +            );
    +
    +        if (isString(formatter)) {
    +            return formatter
    +                .replace('{value}', isMinMax ? textValue[0] : textValue)
    +                .replace('{value2}', isMinMax ? textValue[1] : textValue);
    +        }
    +        else if (isFunction(formatter)) {
    +            return isMinMax
    +                ? formatter(value[0], value[1])
    +                : formatter(value);
    +        }
    +
    +        if (isMinMax) {
    +            if (value[0] === dataBound[0]) {
    +                return edgeSymbols[0] + ' ' + textValue[1];
    +            }
    +            else if (value[1] === dataBound[1]) {
    +                return edgeSymbols[1] + ' ' + textValue[0];
    +            }
    +            else {
    +                return textValue[0] + ' - ' + textValue[1];
    +            }
    +        }
    +        else { // Format single value (includes category case).
    +            return textValue;
    +        }
    +
    +        function toFixed(val) {
    +            return val === dataBound[0]
    +                ? 'min'
    +                : val === dataBound[1]
    +                ? 'max'
    +                : (+val).toFixed(Math.min(precision, 20));
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    resetExtent: function () {
    +        var thisOption = this.option;
    +
    +        // Can not calculate data extent by data here.
    +        // Because series and data may be modified in processing stage.
    +        // So we do not support the feature "auto min/max".
    +
    +        var extent = asc$3([thisOption.min, thisOption.max]);
    +
    +        this._dataExtent = extent;
    +    },
    +
    +    /**
    +     * @public
    +     * @param {module:echarts/data/List} list
    +     * @return {string} Concrete dimention. If return null/undefined,
    +     *                  no dimension used.
    +     */
    +    getDataDimension: function (list) {
    +        var optDim = this.option.dimension;
    +        return optDim != null
    +            ? optDim : list.dimensions.length - 1;
    +    },
    +
    +    /**
    +     * @public
    +     * @override
    +     */
    +    getExtent: function () {
    +        return this._dataExtent.slice();
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    completeVisualOption: function () {
    +        var thisOption = this.option;
    +        var base = {inRange: thisOption.inRange, outOfRange: thisOption.outOfRange};
    +
    +        var target = thisOption.target || (thisOption.target = {});
    +        var controller = thisOption.controller || (thisOption.controller = {});
    +
    +        merge(target, base); // Do not override
    +        merge(controller, base); // Do not override
    +
    +        var isCategory = this.isCategory();
    +
    +        completeSingle.call(this, target);
    +        completeSingle.call(this, controller);
    +        completeInactive.call(this, target, 'inRange', 'outOfRange');
    +        // completeInactive.call(this, target, 'outOfRange', 'inRange');
    +        completeController.call(this, controller);
    +
    +        function completeSingle(base) {
    +            // Compatible with ec2 dataRange.color.
    +            // The mapping order of dataRange.color is: [high value, ..., low value]
    +            // whereas inRange.color and outOfRange.color is [low value, ..., high value]
    +            // Notice: ec2 has no inverse.
    +            if (isArray$3(thisOption.color)
    +                // If there has been inRange: {symbol: ...}, adding color is a mistake.
    +                // So adding color only when no inRange defined.
    +                && !base.inRange
    +            ) {
    +                base.inRange = {color: thisOption.color.slice().reverse()};
    +            }
    +
    +            // Compatible with previous logic, always give a defautl color, otherwise
    +            // simple config with no inRange and outOfRange will not work.
    +            // Originally we use visualMap.color as the default color, but setOption at
    +            // the second time the default color will be erased. So we change to use
    +            // constant DEFAULT_COLOR.
    +            // If user do not want the defualt color, set inRange: {color: null}.
    +            base.inRange = base.inRange || {color: DEFAULT_COLOR};
    +
    +            // If using shortcut like: {inRange: 'symbol'}, complete default value.
    +            each$28(this.stateList, function (state) {
    +                var visualType = base[state];
    +
    +                if (isString(visualType)) {
    +                    var defa = visualDefault.get(visualType, 'active', isCategory);
    +                    if (defa) {
    +                        base[state] = {};
    +                        base[state][visualType] = defa;
    +                    }
    +                    else {
    +                        // Mark as not specified.
    +                        delete base[state];
    +                    }
    +                }
    +            }, this);
    +        }
    +
    +        function completeInactive(base, stateExist, stateAbsent) {
    +            var optExist = base[stateExist];
    +            var optAbsent = base[stateAbsent];
    +
    +            if (optExist && !optAbsent) {
    +                optAbsent = base[stateAbsent] = {};
    +                each$28(optExist, function (visualData, visualType) {
    +                    if (!VisualMapping.isValidType(visualType)) {
    +                        return;
    +                    }
    +
    +                    var defa = visualDefault.get(visualType, 'inactive', isCategory);
    +
    +                    if (defa != null) {
    +                        optAbsent[visualType] = defa;
    +
    +                        // Compatibable with ec2:
    +                        // Only inactive color to rgba(0,0,0,0) can not
    +                        // make label transparent, so use opacity also.
    +                        if (visualType === 'color'
    +                            && !optAbsent.hasOwnProperty('opacity')
    +                            && !optAbsent.hasOwnProperty('colorAlpha')
    +                        ) {
    +                            optAbsent.opacity = [0, 0];
    +                        }
    +                    }
    +                });
    +            }
    +        }
    +
    +        function completeController(controller) {
    +            var symbolExists = (controller.inRange || {}).symbol
    +                || (controller.outOfRange || {}).symbol;
    +            var symbolSizeExists = (controller.inRange || {}).symbolSize
    +                || (controller.outOfRange || {}).symbolSize;
    +            var inactiveColor = this.get('inactiveColor');
    +
    +            each$28(this.stateList, function (state) {
    +
    +                var itemSize = this.itemSize;
    +                var visuals = controller[state];
    +
    +                // Set inactive color for controller if no other color
    +                // attr (like colorAlpha) specified.
    +                if (!visuals) {
    +                    visuals = controller[state] = {
    +                        color: isCategory ? inactiveColor : [inactiveColor]
    +                    };
    +                }
    +
    +                // Consistent symbol and symbolSize if not specified.
    +                if (visuals.symbol == null) {
    +                    visuals.symbol = symbolExists
    +                        && clone(symbolExists)
    +                        || (isCategory ? 'roundRect' : ['roundRect']);
    +                }
    +                if (visuals.symbolSize == null) {
    +                    visuals.symbolSize = symbolSizeExists
    +                        && clone(symbolSizeExists)
    +                        || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);
    +                }
    +
    +                // Filter square and none.
    +                visuals.symbol = mapVisual$2(visuals.symbol, function (symbol) {
    +                    return (symbol === 'none' || symbol === 'square') ? 'roundRect' : symbol;
    +                });
    +
    +                // Normalize symbolSize
    +                var symbolSize = visuals.symbolSize;
    +
    +                if (symbolSize != null) {
    +                    var max = -Infinity;
    +                    // symbolSize can be object when categories defined.
    +                    eachVisual(symbolSize, function (value) {
    +                        value > max && (max = value);
    +                    });
    +                    visuals.symbolSize = mapVisual$2(symbolSize, function (value) {
    +                        return linearMap$3(value, [0, max], [0, itemSize[0]], true);
    +                    });
    +                }
    +
    +            }, this);
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    resetItemSize: function () {
    +        this.itemSize = [
    +            parseFloat(this.get('itemWidth')),
    +            parseFloat(this.get('itemHeight'))
    +        ];
    +    },
    +
    +    /**
    +     * @public
    +     */
    +    isCategory: function () {
    +        return !!this.option.categories;
    +    },
    +
    +    /**
    +     * @public
    +     * @abstract
    +     */
    +    setSelected: noop$2,
    +
    +    /**
    +     * @public
    +     * @abstract
    +     * @param {*|module:echarts/data/List} valueOrData
    +     * @param {number} dataIndex
    +     * @return {string} state See this.stateList
    +     */
    +    getValueState: noop$2,
    +
    +    /**
    +     * FIXME
    +     * Do not publish to thirt-part-dev temporarily
    +     * util the interface is stable. (Should it return
    +     * a function but not visual meta?)
    +     *
    +     * @pubilc
    +     * @abstract
    +     * @param {Function} getColorVisual
    +     *        params: value, valueState
    +     *        return: color
    +     * @return {Object} visualMeta
    +     *        should includes {stops, outerColors}
    +     *        outerColor means [colorBeyondMinValue, colorBeyondMaxValue]
    +     */
    +    getVisualMeta: noop$2
    +
    +});
    +
    +// Constant
    +var DEFAULT_BAR_BOUND = [20, 140];
    +
    +var ContinuousModel = VisualMapModel.extend({
    +
    +    type: 'visualMap.continuous',
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        align: 'auto',          // 'auto', 'left', 'right', 'top', 'bottom'
    +        calculable: false,      // This prop effect default component type determine,
    +                                // See echarts/component/visualMap/typeDefaulter.
    +        range: null,            // selected range. In default case `range` is [min, max]
    +                                // and can auto change along with modification of min max,
    +                                // util use specifid a range.
    +        realtime: true,         // Whether realtime update.
    +        itemHeight: null,       // The length of the range control edge.
    +        itemWidth: null,        // The length of the other side.
    +        hoverLink: true,        // Enable hover highlight.
    +        hoverLinkDataSize: null,// The size of hovered data.
    +        hoverLinkOnHandle: null // Whether trigger hoverLink when hover handle.
    +                                // If not specified, follow the value of `realtime`.
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    optionUpdated: function (newOption, isInit) {
    +        ContinuousModel.superApply(this, 'optionUpdated', arguments);
    +
    +        this.resetExtent();
    +
    +        this.resetVisual(function (mappingOption) {
    +            mappingOption.mappingMethod = 'linear';
    +            mappingOption.dataExtent = this.getExtent();
    +        });
    +
    +        this._resetRange();
    +    },
    +
    +    /**
    +     * @protected
    +     * @override
    +     */
    +    resetItemSize: function () {
    +        ContinuousModel.superApply(this, 'resetItemSize', arguments);
    +
    +        var itemSize = this.itemSize;
    +
    +        this._orient === 'horizontal' && itemSize.reverse();
    +
    +        (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);
    +        (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _resetRange: function () {
    +        var dataExtent = this.getExtent();
    +        var range = this.option.range;
    +
    +        if (!range || range.auto) {
    +            // `range` should always be array (so we dont use other
    +            // value like 'auto') for user-friend. (consider getOption).
    +            dataExtent.auto = 1;
    +            this.option.range = dataExtent;
    +        }
    +        else if (isArray(range)) {
    +            if (range[0] > range[1]) {
    +                range.reverse();
    +            }
    +            range[0] = Math.max(range[0], dataExtent[0]);
    +            range[1] = Math.min(range[1], dataExtent[1]);
    +        }
    +    },
    +
    +    /**
    +     * @protected
    +     * @override
    +     */
    +    completeVisualOption: function () {
    +        VisualMapModel.prototype.completeVisualOption.apply(this, arguments);
    +
    +        each$1(this.stateList, function (state) {
    +            var symbolSize = this.option.controller[state].symbolSize;
    +            if (symbolSize && symbolSize[0] !== symbolSize[1]) {
    +                symbolSize[0] = 0; // For good looking.
    +            }
    +        }, this);
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    setSelected: function (selected) {
    +        this.option.range = selected.slice();
    +        this._resetRange();
    +    },
    +
    +    /**
    +     * @public
    +     */
    +    getSelected: function () {
    +        var dataExtent = this.getExtent();
    +
    +        var dataInterval = asc(
    +            (this.get('range') || []).slice()
    +        );
    +
    +        // Clamp
    +        dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);
    +        dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);
    +        dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);
    +        dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);
    +
    +        return dataInterval;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    getValueState: function (value) {
    +        var range = this.option.range;
    +        var dataExtent = this.getExtent();
    +
    +        // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.
    +        // range[1] is processed likewise.
    +        return (
    +            (range[0] <= dataExtent[0] || range[0] <= value)
    +            && (range[1] >= dataExtent[1] || value <= range[1])
    +        ) ? 'inRange' : 'outOfRange';
    +    },
    +
    +    /**
    +     * @params {Array.<number>} range target value: range[0] <= value && value <= range[1]
    +     * @return {Array.<Object>} [{seriesId, dataIndices: <Array.<number>>}, ...]
    +     */
    +    findTargetDataIndices: function (range) {
    +        var result = [];
    +
    +        this.eachTargetSeries(function (seriesModel) {
    +            var dataIndices = [];
    +            var data = seriesModel.getData();
    +
    +            data.each(this.getDataDimension(data), function (value, dataIndex) {
    +                range[0] <= value && value <= range[1] && dataIndices.push(dataIndex);
    +            }, true, this);
    +
    +            result.push({seriesId: seriesModel.id, dataIndex: dataIndices});
    +        }, this);
    +
    +        return result;
    +    },
    +
    +    /**
    +     * @implement
    +     */
    +    getVisualMeta: function (getColorVisual) {
    +        var oVals = getColorStopValues(this, 'outOfRange', this.getExtent());
    +        var iVals = getColorStopValues(this, 'inRange', this.option.range.slice());
    +        var stops = [];
    +
    +        function setStop(value, valueState) {
    +            stops.push({
    +                value: value,
    +                color: getColorVisual(value, valueState)
    +            });
    +        }
    +
    +        // Format to: outOfRange -- inRange -- outOfRange.
    +        var iIdx = 0;
    +        var oIdx = 0;
    +        var iLen = iVals.length;
    +        var oLen = oVals.length;
    +
    +        for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) {
    +            // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.
    +            if (oVals[oIdx] < iVals[iIdx]) {
    +                setStop(oVals[oIdx], 'outOfRange');
    +            }
    +        }
    +        for (var first = 1; iIdx < iLen; iIdx++, first = 0) {
    +            // If range is full, value beyond min, max will be clamped.
    +            // make a singularity
    +            first && stops.length && setStop(iVals[iIdx], 'outOfRange');
    +            setStop(iVals[iIdx], 'inRange');
    +        }
    +        for (var first = 1; oIdx < oLen; oIdx++) {
    +            if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) {
    +                // make a singularity
    +                if (first) {
    +                    stops.length && setStop(stops[stops.length - 1].value, 'outOfRange');
    +                    first = 0;
    +                }
    +                setStop(oVals[oIdx], 'outOfRange');
    +            }
    +        }
    +
    +        var stopsLen = stops.length;
    +
    +        return {
    +            stops: stops,
    +            outerColors: [
    +                stopsLen ? stops[0].color : 'transparent',
    +                stopsLen ? stops[stopsLen - 1].color : 'transparent'
    +            ]
    +        };
    +    }
    +
    +});
    +
    +function getColorStopValues(visualMapModel, valueState, dataExtent) {
    +    if (dataExtent[0] === dataExtent[1]) {
    +        return dataExtent.slice();
    +    }
    +
    +    // When using colorHue mapping, it is not linear color any more.
    +    // Moreover, canvas gradient seems not to be accurate linear.
    +    // FIXME
    +    // Should be arbitrary value 100? or based on pixel size?
    +    var count = 200;
    +    var step = (dataExtent[1] - dataExtent[0]) / count;
    +
    +    var value = dataExtent[0];
    +    var stopValues = [];
    +    for (var i = 0; i <= count && value < dataExtent[1]; i++) {
    +        stopValues.push(value);
    +        value += step;
    +    }
    +    stopValues.push(dataExtent[1]);
    +
    +    return stopValues;
    +}
    +
    +var VisualMapView = extendComponentView({
    +
    +    type: 'visualMap',
    +
    +    /**
    +     * @readOnly
    +     * @type {Object}
    +     */
    +    autoPositionValues: {left: 1, right: 1, top: 1, bottom: 1},
    +
    +    init: function (ecModel, api) {
    +        /**
    +         * @readOnly
    +         * @type {module:echarts/model/Global}
    +         */
    +        this.ecModel = ecModel;
    +
    +        /**
    +         * @readOnly
    +         * @type {module:echarts/ExtensionAPI}
    +         */
    +        this.api = api;
    +
    +        /**
    +         * @readOnly
    +         * @type {module:echarts/component/visualMap/visualMapModel}
    +         */
    +        this.visualMapModel;
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    render: function (visualMapModel, ecModel, api, payload) {
    +        this.visualMapModel = visualMapModel;
    +
    +        if (visualMapModel.get('show') === false) {
    +            this.group.removeAll();
    +            return;
    +        }
    +
    +        this.doRender.apply(this, arguments);
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    renderBackground: function (group) {
    +        var visualMapModel = this.visualMapModel;
    +        var padding = normalizeCssArray$1(visualMapModel.get('padding') || 0);
    +        var rect = group.getBoundingRect();
    +
    +        group.add(new Rect({
    +            z2: -1, // Lay background rect on the lowest layer.
    +            silent: true,
    +            shape: {
    +                x: rect.x - padding[3],
    +                y: rect.y - padding[0],
    +                width: rect.width + padding[3] + padding[1],
    +                height: rect.height + padding[0] + padding[2]
    +            },
    +            style: {
    +                fill: visualMapModel.get('backgroundColor'),
    +                stroke: visualMapModel.get('borderColor'),
    +                lineWidth: visualMapModel.get('borderWidth')
    +            }
    +        }));
    +    },
    +
    +    /**
    +     * @protected
    +     * @param {number} targetValue can be Infinity or -Infinity
    +     * @param {string=} visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'
    +     * @param {Object} [opts]
    +     * @param {string=} [opts.forceState] Specify state, instead of using getValueState method.
    +     * @param {string=} [opts.convertOpacityToAlpha=false] For color gradient in controller widget.
    +     * @return {*} Visual value.
    +     */
    +    getControllerVisual: function (targetValue, visualCluster, opts) {
    +        opts = opts || {};
    +
    +        var forceState = opts.forceState;
    +        var visualMapModel = this.visualMapModel;
    +        var visualObj = {};
    +
    +        // Default values.
    +        if (visualCluster === 'symbol') {
    +            visualObj.symbol = visualMapModel.get('itemSymbol');
    +        }
    +        if (visualCluster === 'color') {
    +            var defaultColor = visualMapModel.get('contentColor');
    +            visualObj.color = defaultColor;
    +        }
    +
    +        function getter(key) {
    +            return visualObj[key];
    +        }
    +
    +        function setter(key, value) {
    +            visualObj[key] = value;
    +        }
    +
    +        var mappings = visualMapModel.controllerVisuals[
    +            forceState || visualMapModel.getValueState(targetValue)
    +        ];
    +        var visualTypes = VisualMapping.prepareVisualTypes(mappings);
    +
    +        each$1(visualTypes, function (type) {
    +            var visualMapping = mappings[type];
    +            if (opts.convertOpacityToAlpha && type === 'opacity') {
    +                type = 'colorAlpha';
    +                visualMapping = mappings.__alphaForOpacity;
    +            }
    +            if (VisualMapping.dependsOn(type, visualCluster)) {
    +                visualMapping && visualMapping.applyVisual(
    +                    targetValue, getter, setter
    +                );
    +            }
    +        });
    +
    +        return visualObj[visualCluster];
    +    },
    +
    +    /**
    +     * @protected
    +     */
    +    positionGroup: function (group) {
    +        var model = this.visualMapModel;
    +        var api = this.api;
    +
    +        positionElement(
    +            group,
    +            model.getBoxLayoutParams(),
    +            {width: api.getWidth(), height: api.getHeight()}
    +        );
    +    },
    +
    +    /**
    +     * @protected
    +     * @abstract
    +     */
    +    doRender: noop
    +
    +});
    +
    +/**
    + * @param {module:echarts/component/visualMap/VisualMapModel} visualMapModel\
    + * @param {module:echarts/ExtensionAPI} api
    + * @param {Array.<number>} itemSize always [short, long]
    + * @return {string} 'left' or 'right' or 'top' or 'bottom'
    + */
    +function getItemAlign(visualMapModel, api, itemSize) {
    +    var modelOption = visualMapModel.option;
    +    var itemAlign = modelOption.align;
    +
    +    if (itemAlign != null && itemAlign !== 'auto') {
    +        return itemAlign;
    +    }
    +
    +    // Auto decision align.
    +    var ecSize = {width: api.getWidth(), height: api.getHeight()};
    +    var realIndex = modelOption.orient === 'horizontal' ? 1 : 0;
    +
    +    var paramsSet = [
    +        ['left', 'right', 'width'],
    +        ['top', 'bottom', 'height']
    +    ];
    +    var reals = paramsSet[realIndex];
    +    var fakeValue = [0, null, 10];
    +
    +    var layoutInput = {};
    +    for (var i = 0; i < 3; i++) {
    +        layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];
    +        layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];
    +    }
    +
    +    var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex];
    +    var rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);
    +
    +    return reals[
    +        (rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5
    +            < ecSize[rParam[1]] * 0.5 ? 0 : 1
    +    ];
    +}
    +
    +/**
    + * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and
    + * dataIndexInside means filtered index.
    + */
    +function convertDataIndex(batch) {
    +    each$1(batch || [], function (batchItem) {
    +        if (batch.dataIndex != null) {
    +            batch.dataIndexInside = batch.dataIndex;
    +            batch.dataIndex = null;
    +        }
    +    });
    +    return batch;
    +}
    +
    +var linearMap$4 = linearMap;
    +var each$29 = each$1;
    +var mathMin$7 = Math.min;
    +var mathMax$7 = Math.max;
    +
    +// Arbitrary value
    +var HOVER_LINK_SIZE = 12;
    +var HOVER_LINK_OUT = 6;
    +
    +// Notice:
    +// Any "interval" should be by the order of [low, high].
    +// "handle0" (handleIndex === 0) maps to
    +// low data value: this._dataInterval[0] and has low coord.
    +// "handle1" (handleIndex === 1) maps to
    +// high data value: this._dataInterval[1] and has high coord.
    +// The logic of transform is implemented in this._createBarGroup.
    +
    +var ContinuousView = VisualMapView.extend({
    +
    +    type: 'visualMap.continuous',
    +
    +    /**
    +     * @override
    +     */
    +    init: function () {
    +
    +        ContinuousView.superApply(this, 'init', arguments);
    +
    +        /**
    +         * @private
    +         */
    +        this._shapes = {};
    +
    +        /**
    +         * @private
    +         */
    +        this._dataInterval = [];
    +
    +        /**
    +         * @private
    +         */
    +        this._handleEnds = [];
    +
    +        /**
    +         * @private
    +         */
    +        this._orient;
    +
    +        /**
    +         * @private
    +         */
    +        this._useHandle;
    +
    +        /**
    +         * @private
    +         */
    +        this._hoverLinkDataIndices = [];
    +
    +        /**
    +         * @private
    +         */
    +        this._dragging;
    +
    +        /**
    +         * @private
    +         */
    +        this._hovering;
    +    },
    +
    +    /**
    +     * @protected
    +     * @override
    +     */
    +    doRender: function (visualMapModel, ecModel, api, payload) {
    +        if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {
    +            this._buildView();
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _buildView: function () {
    +        this.group.removeAll();
    +
    +        var visualMapModel = this.visualMapModel;
    +        var thisGroup = this.group;
    +
    +        this._orient = visualMapModel.get('orient');
    +        this._useHandle = visualMapModel.get('calculable');
    +
    +        this._resetInterval();
    +
    +        this._renderBar(thisGroup);
    +
    +        var dataRangeText = visualMapModel.get('text');
    +        this._renderEndsText(thisGroup, dataRangeText, 0);
    +        this._renderEndsText(thisGroup, dataRangeText, 1);
    +
    +        // Do this for background size calculation.
    +        this._updateView(true);
    +
    +        // After updating view, inner shapes is built completely,
    +        // and then background can be rendered.
    +        this.renderBackground(thisGroup);
    +
    +        // Real update view
    +        this._updateView();
    +
    +        this._enableHoverLinkToSeries();
    +        this._enableHoverLinkFromSeries();
    +
    +        this.positionGroup(thisGroup);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderEndsText: function (group, dataRangeText, endsIndex) {
    +        if (!dataRangeText) {
    +            return;
    +        }
    +
    +        // Compatible with ec2, text[0] map to high value, text[1] map low value.
    +        var text = dataRangeText[1 - endsIndex];
    +        text = text != null ? text + '' : '';
    +
    +        var visualMapModel = this.visualMapModel;
    +        var textGap = visualMapModel.get('textGap');
    +        var itemSize = visualMapModel.itemSize;
    +
    +        var barGroup = this._shapes.barGroup;
    +        var position = this._applyTransform(
    +            [
    +                itemSize[0] / 2,
    +                endsIndex === 0 ? -textGap : itemSize[1] + textGap
    +            ],
    +            barGroup
    +        );
    +        var align = this._applyTransform(
    +            endsIndex === 0 ? 'bottom' : 'top',
    +            barGroup
    +        );
    +        var orient = this._orient;
    +        var textStyleModel = this.visualMapModel.textStyleModel;
    +
    +        this.group.add(new Text({
    +            style: {
    +                x: position[0],
    +                y: position[1],
    +                textVerticalAlign: orient === 'horizontal' ? 'middle' : align,
    +                textAlign: orient === 'horizontal' ? align : 'center',
    +                text: text,
    +                textFont: textStyleModel.getFont(),
    +                textFill: textStyleModel.getTextColor()
    +            }
    +        }));
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderBar: function (targetGroup) {
    +        var visualMapModel = this.visualMapModel;
    +        var shapes = this._shapes;
    +        var itemSize = visualMapModel.itemSize;
    +        var orient = this._orient;
    +        var useHandle = this._useHandle;
    +        var itemAlign = getItemAlign(visualMapModel, this.api, itemSize);
    +        var barGroup = shapes.barGroup = this._createBarGroup(itemAlign);
    +
    +        // Bar
    +        barGroup.add(shapes.outOfRange = createPolygon());
    +        barGroup.add(shapes.inRange = createPolygon(
    +            null,
    +            useHandle ? getCursor$1(this._orient) : null,
    +            bind(this._dragHandle, this, 'all', false),
    +            bind(this._dragHandle, this, 'all', true)
    +        ));
    +
    +        var textRect = visualMapModel.textStyleModel.getTextRect('国');
    +        var textSize = mathMax$7(textRect.width, textRect.height);
    +
    +        // Handle
    +        if (useHandle) {
    +            shapes.handleThumbs = [];
    +            shapes.handleLabels = [];
    +            shapes.handleLabelPoints = [];
    +
    +            this._createHandle(barGroup, 0, itemSize, textSize, orient, itemAlign);
    +            this._createHandle(barGroup, 1, itemSize, textSize, orient, itemAlign);
    +        }
    +
    +        this._createIndicator(barGroup, itemSize, textSize, orient);
    +
    +        targetGroup.add(barGroup);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _createHandle: function (barGroup, handleIndex, itemSize, textSize, orient) {
    +        var onDrift = bind(this._dragHandle, this, handleIndex, false);
    +        var onDragEnd = bind(this._dragHandle, this, handleIndex, true);
    +        var handleThumb = createPolygon(
    +            createHandlePoints(handleIndex, textSize),
    +            getCursor$1(this._orient),
    +            onDrift,
    +            onDragEnd
    +        );
    +        handleThumb.position[0] = itemSize[0];
    +        barGroup.add(handleThumb);
    +
    +        // Text is always horizontal layout but should not be effected by
    +        // transform (orient/inverse). So label is built separately but not
    +        // use zrender/graphic/helper/RectText, and is located based on view
    +        // group (according to handleLabelPoint) but not barGroup.
    +        var textStyleModel = this.visualMapModel.textStyleModel;
    +        var handleLabel = new Text({
    +            draggable: true,
    +            drift: onDrift,
    +            onmousemove: function (e) {
    +                // Fot mobile devicem, prevent screen slider on the button.
    +                stop(e.event);
    +            },
    +            ondragend: onDragEnd,
    +            style: {
    +                x: 0, y: 0, text: '',
    +                textFont: textStyleModel.getFont(),
    +                textFill: textStyleModel.getTextColor()
    +            }
    +        });
    +        this.group.add(handleLabel);
    +
    +        var handleLabelPoint = [
    +            orient === 'horizontal'
    +                ? textSize / 2
    +                : textSize * 1.5,
    +            orient === 'horizontal'
    +                ? (handleIndex === 0 ? -(textSize * 1.5) : (textSize * 1.5))
    +                : (handleIndex === 0 ? -textSize / 2 : textSize / 2)
    +        ];
    +
    +        var shapes = this._shapes;
    +        shapes.handleThumbs[handleIndex] = handleThumb;
    +        shapes.handleLabelPoints[handleIndex] = handleLabelPoint;
    +        shapes.handleLabels[handleIndex] = handleLabel;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _createIndicator: function (barGroup, itemSize, textSize, orient) {
    +        var indicator = createPolygon([[0, 0]], 'move');
    +        indicator.position[0] = itemSize[0];
    +        indicator.attr({invisible: true, silent: true});
    +        barGroup.add(indicator);
    +
    +        var textStyleModel = this.visualMapModel.textStyleModel;
    +        var indicatorLabel = new Text({
    +            silent: true,
    +            invisible: true,
    +            style: {
    +                x: 0, y: 0, text: '',
    +                textFont: textStyleModel.getFont(),
    +                textFill: textStyleModel.getTextColor()
    +            }
    +        });
    +        this.group.add(indicatorLabel);
    +
    +        var indicatorLabelPoint = [
    +            orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT + 3,
    +            0
    +        ];
    +
    +        var shapes = this._shapes;
    +        shapes.indicator = indicator;
    +        shapes.indicatorLabel = indicatorLabel;
    +        shapes.indicatorLabelPoint = indicatorLabelPoint;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _dragHandle: function (handleIndex, isEnd, dx, dy) {
    +        if (!this._useHandle) {
    +            return;
    +        }
    +
    +        this._dragging = !isEnd;
    +
    +        if (!isEnd) {
    +            // Transform dx, dy to bar coordination.
    +            var vertex = this._applyTransform([dx, dy], this._shapes.barGroup, true);
    +            this._updateInterval(handleIndex, vertex[1]);
    +
    +            // Considering realtime, update view should be executed
    +            // before dispatch action.
    +            this._updateView();
    +        }
    +
    +        // dragEnd do not dispatch action when realtime.
    +        if (isEnd === !this.visualMapModel.get('realtime')) { // jshint ignore:line
    +            this.api.dispatchAction({
    +                type: 'selectDataRange',
    +                from: this.uid,
    +                visualMapId: this.visualMapModel.id,
    +                selected: this._dataInterval.slice()
    +            });
    +        }
    +
    +        if (isEnd) {
    +            !this._hovering && this._clearHoverLinkToSeries();
    +        }
    +        else if (useHoverLinkOnHandle(this.visualMapModel)) {
    +            this._doHoverLinkToSeries(this._handleEnds[handleIndex], false);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _resetInterval: function () {
    +        var visualMapModel = this.visualMapModel;
    +
    +        var dataInterval = this._dataInterval = visualMapModel.getSelected();
    +        var dataExtent = visualMapModel.getExtent();
    +        var sizeExtent = [0, visualMapModel.itemSize[1]];
    +
    +        this._handleEnds = [
    +            linearMap$4(dataInterval[0], dataExtent, sizeExtent, true),
    +            linearMap$4(dataInterval[1], dataExtent, sizeExtent, true)
    +        ];
    +    },
    +
    +    /**
    +     * @private
    +     * @param {(number|string)} handleIndex 0 or 1 or 'all'
    +     * @param {number} dx
    +     * @param {number} dy
    +     */
    +    _updateInterval: function (handleIndex, delta) {
    +        delta = delta || 0;
    +        var visualMapModel = this.visualMapModel;
    +        var handleEnds = this._handleEnds;
    +        var sizeExtent = [0, visualMapModel.itemSize[1]];
    +
    +        sliderMove(
    +            delta,
    +            handleEnds,
    +            sizeExtent,
    +            handleIndex,
    +            // cross is forbiden
    +            0
    +        );
    +
    +        var dataExtent = visualMapModel.getExtent();
    +        // Update data interval.
    +        this._dataInterval = [
    +            linearMap$4(handleEnds[0], sizeExtent, dataExtent, true),
    +            linearMap$4(handleEnds[1], sizeExtent, dataExtent, true)
    +        ];
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _updateView: function (forSketch) {
    +        var visualMapModel = this.visualMapModel;
    +        var dataExtent = visualMapModel.getExtent();
    +        var shapes = this._shapes;
    +
    +        var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];
    +        var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;
    +
    +        var visualInRange = this._createBarVisual(
    +            this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange'
    +        );
    +        var visualOutOfRange = this._createBarVisual(
    +            dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange'
    +        );
    +
    +        shapes.inRange
    +            .setStyle({
    +                fill: visualInRange.barColor,
    +                opacity: visualInRange.opacity
    +            })
    +            .setShape('points', visualInRange.barPoints);
    +        shapes.outOfRange
    +            .setStyle({
    +                fill: visualOutOfRange.barColor,
    +                opacity: visualOutOfRange.opacity
    +            })
    +            .setShape('points', visualOutOfRange.barPoints);
    +
    +        this._updateHandle(inRangeHandleEnds, visualInRange);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _createBarVisual: function (dataInterval, dataExtent, handleEnds, forceState) {
    +        var opts = {
    +            forceState: forceState,
    +            convertOpacityToAlpha: true
    +        };
    +        var colorStops = this._makeColorGradient(dataInterval, opts);
    +
    +        var symbolSizes = [
    +            this.getControllerVisual(dataInterval[0], 'symbolSize', opts),
    +            this.getControllerVisual(dataInterval[1], 'symbolSize', opts)
    +        ];
    +        var barPoints = this._createBarPoints(handleEnds, symbolSizes);
    +
    +        return {
    +            barColor: new LinearGradient(0, 0, 0, 1, colorStops),
    +            barPoints: barPoints,
    +            handlesColor: [
    +                colorStops[0].color,
    +                colorStops[colorStops.length - 1].color
    +            ]
    +        };
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _makeColorGradient: function (dataInterval, opts) {
    +        // Considering colorHue, which is not linear, so we have to sample
    +        // to calculate gradient color stops, but not only caculate head
    +        // and tail.
    +        var sampleNumber = 100; // Arbitrary value.
    +        var colorStops = [];
    +        var step = (dataInterval[1] - dataInterval[0]) / sampleNumber;
    +
    +        colorStops.push({
    +            color: this.getControllerVisual(dataInterval[0], 'color', opts),
    +            offset: 0
    +        });
    +
    +        for (var i = 1; i < sampleNumber; i++) {
    +            var currValue = dataInterval[0] + step * i;
    +            if (currValue > dataInterval[1]) {
    +                break;
    +            }
    +            colorStops.push({
    +                color: this.getControllerVisual(currValue, 'color', opts),
    +                offset: i / sampleNumber
    +            });
    +        }
    +
    +        colorStops.push({
    +            color: this.getControllerVisual(dataInterval[1], 'color', opts),
    +            offset: 1
    +        });
    +
    +        return colorStops;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _createBarPoints: function (handleEnds, symbolSizes) {
    +        var itemSize = this.visualMapModel.itemSize;
    +
    +        return [
    +            [itemSize[0] - symbolSizes[0], handleEnds[0]],
    +            [itemSize[0], handleEnds[0]],
    +            [itemSize[0], handleEnds[1]],
    +            [itemSize[0] - symbolSizes[1], handleEnds[1]]
    +        ];
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _createBarGroup: function (itemAlign) {
    +        var orient = this._orient;
    +        var inverse = this.visualMapModel.get('inverse');
    +
    +        return new Group(
    +            (orient === 'horizontal' && !inverse)
    +            ? {scale: itemAlign === 'bottom' ? [1, 1] : [-1, 1], rotation: Math.PI / 2}
    +            : (orient === 'horizontal' && inverse)
    +            ? {scale: itemAlign === 'bottom' ? [-1, 1] : [1, 1], rotation: -Math.PI / 2}
    +            : (orient === 'vertical' && !inverse)
    +            ? {scale: itemAlign === 'left' ? [1, -1] : [-1, -1]}
    +            : {scale: itemAlign === 'left' ? [1, 1] : [-1, 1]}
    +        );
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _updateHandle: function (handleEnds, visualInRange) {
    +        if (!this._useHandle) {
    +            return;
    +        }
    +
    +        var shapes = this._shapes;
    +        var visualMapModel = this.visualMapModel;
    +        var handleThumbs = shapes.handleThumbs;
    +        var handleLabels = shapes.handleLabels;
    +
    +        each$29([0, 1], function (handleIndex) {
    +            var handleThumb = handleThumbs[handleIndex];
    +            handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]);
    +            handleThumb.position[1] = handleEnds[handleIndex];
    +
    +            // Update handle label position.
    +            var textPoint = applyTransform$1(
    +                shapes.handleLabelPoints[handleIndex],
    +                getTransform(handleThumb, this.group)
    +            );
    +            handleLabels[handleIndex].setStyle({
    +                x: textPoint[0],
    +                y: textPoint[1],
    +                text: visualMapModel.formatValueText(this._dataInterval[handleIndex]),
    +                textVerticalAlign: 'middle',
    +                textAlign: this._applyTransform(
    +                    this._orient === 'horizontal'
    +                        ? (handleIndex === 0 ? 'bottom' : 'top')
    +                        : 'left',
    +                    shapes.barGroup
    +                )
    +            });
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     * @param {number} cursorValue
    +     * @param {number} textValue
    +     * @param {string} [rangeSymbol]
    +     * @param {number} [halfHoverLinkSize]
    +     */
    +    _showIndicator: function (cursorValue, textValue, rangeSymbol, halfHoverLinkSize) {
    +        var visualMapModel = this.visualMapModel;
    +        var dataExtent = visualMapModel.getExtent();
    +        var itemSize = visualMapModel.itemSize;
    +        var sizeExtent = [0, itemSize[1]];
    +        var pos = linearMap$4(cursorValue, dataExtent, sizeExtent, true);
    +
    +        var shapes = this._shapes;
    +        var indicator = shapes.indicator;
    +        if (!indicator) {
    +            return;
    +        }
    +
    +        indicator.position[1] = pos;
    +        indicator.attr('invisible', false);
    +        indicator.setShape('points', createIndicatorPoints(
    +            !!rangeSymbol, halfHoverLinkSize, pos, itemSize[1]
    +        ));
    +
    +        var opts = {convertOpacityToAlpha: true};
    +        var color = this.getControllerVisual(cursorValue, 'color', opts);
    +        indicator.setStyle('fill', color);
    +
    +        // Update handle label position.
    +        var textPoint = applyTransform$1(
    +            shapes.indicatorLabelPoint,
    +            getTransform(indicator, this.group)
    +        );
    +
    +        var indicatorLabel = shapes.indicatorLabel;
    +        indicatorLabel.attr('invisible', false);
    +        var align = this._applyTransform('left', shapes.barGroup);
    +        var orient = this._orient;
    +        indicatorLabel.setStyle({
    +            text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue),
    +            textVerticalAlign: orient === 'horizontal' ? align : 'middle',
    +            textAlign: orient === 'horizontal' ? 'center' : align,
    +            x: textPoint[0],
    +            y: textPoint[1]
    +        });
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _enableHoverLinkToSeries: function () {
    +        var self = this;
    +        this._shapes.barGroup
    +
    +            .on('mousemove', function (e) {
    +                self._hovering = true;
    +
    +                if (!self._dragging) {
    +                    var itemSize = self.visualMapModel.itemSize;
    +                    var pos = self._applyTransform(
    +                        [e.offsetX, e.offsetY], self._shapes.barGroup, true, true
    +                    );
    +                    // For hover link show when hover handle, which might be
    +                    // below or upper than sizeExtent.
    +                    pos[1] = mathMin$7(mathMax$7(0, pos[1]), itemSize[1]);
    +                    self._doHoverLinkToSeries(
    +                        pos[1],
    +                        0 <= pos[0] && pos[0] <= itemSize[0]
    +                    );
    +                }
    +            })
    +
    +            .on('mouseout', function () {
    +                // When mouse is out of handle, hoverLink still need
    +                // to be displayed when realtime is set as false.
    +                self._hovering = false;
    +                !self._dragging && self._clearHoverLinkToSeries();
    +            });
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _enableHoverLinkFromSeries: function () {
    +        var zr = this.api.getZr();
    +
    +        if (this.visualMapModel.option.hoverLink) {
    +            zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this);
    +            zr.on('mouseout', this._hideIndicator, this);
    +        }
    +        else {
    +            this._clearHoverLinkFromSeries();
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _doHoverLinkToSeries: function (cursorPos, hoverOnBar) {
    +        var visualMapModel = this.visualMapModel;
    +        var itemSize = visualMapModel.itemSize;
    +
    +        if (!visualMapModel.option.hoverLink) {
    +            return;
    +        }
    +
    +        var sizeExtent = [0, itemSize[1]];
    +        var dataExtent = visualMapModel.getExtent();
    +
    +        // For hover link show when hover handle, which might be below or upper than sizeExtent.
    +        cursorPos = mathMin$7(mathMax$7(sizeExtent[0], cursorPos), sizeExtent[1]);
    +
    +        var halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent);
    +        var hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize];
    +        var cursorValue = linearMap$4(cursorPos, sizeExtent, dataExtent, true);
    +        var valueRange = [
    +            linearMap$4(hoverRange[0], sizeExtent, dataExtent, true),
    +            linearMap$4(hoverRange[1], sizeExtent, dataExtent, true)
    +        ];
    +        // Consider data range is out of visualMap range, see test/visualMap-continuous.html,
    +        // where china and india has very large population.
    +        hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity);
    +        hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity);
    +
    +        // Do not show indicator when mouse is over handle,
    +        // otherwise labels overlap, especially when dragging.
    +        if (hoverOnBar) {
    +            if (valueRange[0] === -Infinity) {
    +                this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize);
    +            }
    +            else if (valueRange[1] === Infinity) {
    +                this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize);
    +            }
    +            else {
    +                this._showIndicator(cursorValue, cursorValue, '≈ ', halfHoverLinkSize);
    +            }
    +        }
    +
    +        // When realtime is set as false, handles, which are in barGroup,
    +        // also trigger hoverLink, which help user to realize where they
    +        // focus on when dragging. (see test/heatmap-large.html)
    +        // When realtime is set as true, highlight will not show when hover
    +        // handle, because the label on handle, which displays a exact value
    +        // but not range, might mislead users.
    +        var oldBatch = this._hoverLinkDataIndices;
    +        var newBatch = [];
    +        if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) {
    +            newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange);
    +        }
    +
    +        var resultBatches = compressBatches(oldBatch, newBatch);
    +
    +        this._dispatchHighDown('downplay', convertDataIndex(resultBatches[0]));
    +        this._dispatchHighDown('highlight', convertDataIndex(resultBatches[1]));
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _hoverLinkFromSeriesMouseOver: function (e) {
    +        var el = e.target;
    +        var visualMapModel = this.visualMapModel;
    +
    +        if (!el || el.dataIndex == null) {
    +            return;
    +        }
    +
    +        var dataModel = this.ecModel.getSeriesByIndex(el.seriesIndex);
    +
    +        if (!visualMapModel.isTargetSeries(dataModel)) {
    +            return;
    +        }
    +
    +        var data = dataModel.getData(el.dataType);
    +        var dim = data.getDimension(visualMapModel.getDataDimension(data));
    +        var value = data.get(dim, el.dataIndex, true);
    +
    +        if (!isNaN(value)) {
    +            this._showIndicator(value, value);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _hideIndicator: function () {
    +        var shapes = this._shapes;
    +        shapes.indicator && shapes.indicator.attr('invisible', true);
    +        shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _clearHoverLinkToSeries: function () {
    +        this._hideIndicator();
    +
    +        var indices = this._hoverLinkDataIndices;
    +        this._dispatchHighDown('downplay', convertDataIndex(indices));
    +
    +        indices.length = 0;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _clearHoverLinkFromSeries: function () {
    +        this._hideIndicator();
    +
    +        var zr = this.api.getZr();
    +        zr.off('mouseover', this._hoverLinkFromSeriesMouseOver);
    +        zr.off('mouseout', this._hideIndicator);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _applyTransform: function (vertex, element, inverse, global) {
    +        var transform = getTransform(element, global ? null : this.group);
    +
    +        return graphic[
    +            isArray(vertex) ? 'applyTransform' : 'transformDirection'
    +        ](vertex, transform, inverse);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _dispatchHighDown: function (type, batch) {
    +        batch && batch.length && this.api.dispatchAction({
    +            type: type,
    +            batch: batch
    +        });
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        this._clearHoverLinkFromSeries();
    +        this._clearHoverLinkToSeries();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function () {
    +        this._clearHoverLinkFromSeries();
    +        this._clearHoverLinkToSeries();
    +    }
    +
    +});
    +
    +function createPolygon(points, cursor, onDrift, onDragEnd) {
    +    return new Polygon({
    +        shape: {points: points},
    +        draggable: !!onDrift,
    +        cursor: cursor,
    +        drift: onDrift,
    +        onmousemove: function (e) {
    +            // Fot mobile devicem, prevent screen slider on the button.
    +            stop(e.event);
    +        },
    +        ondragend: onDragEnd
    +    });
    +}
    +
    +function createHandlePoints(handleIndex, textSize) {
    +    return handleIndex === 0
    +        ? [[0, 0], [textSize, 0], [textSize, -textSize]]
    +        : [[0, 0], [textSize, 0], [textSize, textSize]];
    +}
    +
    +function createIndicatorPoints(isRange, halfHoverLinkSize, pos, extentMax) {
    +    return isRange
    +        ? [ // indicate range
    +            [0, -mathMin$7(halfHoverLinkSize, mathMax$7(pos, 0))],
    +            [HOVER_LINK_OUT, 0],
    +            [0, mathMin$7(halfHoverLinkSize, mathMax$7(extentMax - pos, 0))]
    +        ]
    +        : [ // indicate single value
    +            [0, 0], [5, -5], [5, 5]
    +        ];
    +}
    +
    +function getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent) {
    +    var halfHoverLinkSize = HOVER_LINK_SIZE / 2;
    +    var hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize');
    +    if (hoverLinkDataSize) {
    +        halfHoverLinkSize = linearMap$4(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2;
    +    }
    +    return halfHoverLinkSize;
    +}
    +
    +function useHoverLinkOnHandle(visualMapModel) {
    +    var hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle');
    +    return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle);
    +}
    +
    +function getCursor$1(orient) {
    +    return orient === 'vertical' ? 'ns-resize' : 'ew-resize';
    +}
    +
    +var actionInfo$2 = {
    +    type: 'selectDataRange',
    +    event: 'dataRangeSelected',
    +    // FIXME use updateView appears wrong
    +    update: 'update'
    +};
    +
    +registerAction(actionInfo$2, function (payload, ecModel) {
    +
    +    ecModel.eachComponent({mainType: 'visualMap', query: payload}, function (model) {
    +        model.setSelected(payload.selected);
    +    });
    +
    +});
    +
    +/**
    + * DataZoom component entry
    + */
    +
    +registerPreprocessor(preprocessor$2);
    +
    +var PiecewiseModel = VisualMapModel.extend({
    +
    +    type: 'visualMap.piecewise',
    +
    +    /**
    +     * Order Rule:
    +     *
    +     * option.categories / option.pieces / option.text / option.selected:
    +     *     If !option.inverse,
    +     *     Order when vertical: ['top', ..., 'bottom'].
    +     *     Order when horizontal: ['left', ..., 'right'].
    +     *     If option.inverse, the meaning of
    +     *     the order should be reversed.
    +     *
    +     * this._pieceList:
    +     *     The order is always [low, ..., high].
    +     *
    +     * Mapping from location to low-high:
    +     *     If !option.inverse
    +     *     When vertical, top is high.
    +     *     When horizontal, right is high.
    +     *     If option.inverse, reverse.
    +     */
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +        selected: null,             // Object. If not specified, means selected.
    +                                    // When pieces and splitNumber: {'0': true, '5': true}
    +                                    // When categories: {'cate1': false, 'cate3': true}
    +                                    // When selected === false, means all unselected.
    +
    +        minOpen: false,             // Whether include values that smaller than `min`.
    +        maxOpen: false,             // Whether include values that bigger than `max`.
    +
    +        align: 'auto',              // 'auto', 'left', 'right'
    +        itemWidth: 20,              // When put the controller vertically, it is the length of
    +                                    // horizontal side of each item. Otherwise, vertical side.
    +        itemHeight: 14,             // When put the controller vertically, it is the length of
    +                                    // vertical side of each item. Otherwise, horizontal side.
    +        itemSymbol: 'roundRect',
    +        pieceList: null,            // Each item is Object, with some of those attrs:
    +                                    // {min, max, lt, gt, lte, gte, value,
    +                                    // color, colorSaturation, colorAlpha, opacity,
    +                                    // symbol, symbolSize}, which customize the range or visual
    +                                    // coding of the certain piece. Besides, see "Order Rule".
    +        categories: null,           // category names, like: ['some1', 'some2', 'some3'].
    +                                    // Attr min/max are ignored when categories set. See "Order Rule"
    +        splitNumber: 5,             // If set to 5, auto split five pieces equally.
    +                                    // If set to 0 and component type not set, component type will be
    +                                    // determined as "continuous". (It is less reasonable but for ec2
    +                                    // compatibility, see echarts/component/visualMap/typeDefaulter)
    +        selectedMode: 'multiple',   // Can be 'multiple' or 'single'.
    +        itemGap: 10,                // The gap between two items, in px.
    +        hoverLink: true,            // Enable hover highlight.
    +
    +        showLabel: null             // By default, when text is used, label will hide (the logic
    +                                    // is remained for compatibility reason)
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    optionUpdated: function (newOption, isInit) {
    +        PiecewiseModel.superApply(this, 'optionUpdated', arguments);
    +
    +        /**
    +         * The order is always [low, ..., high].
    +         * [{text: string, interval: Array.<number>}, ...]
    +         * @private
    +         * @type {Array.<Object>}
    +         */
    +        this._pieceList = [];
    +
    +        this.resetExtent();
    +
    +        /**
    +         * 'pieces', 'categories', 'splitNumber'
    +         * @type {string}
    +         */
    +        var mode = this._mode = this._determineMode();
    +
    +        resetMethods[this._mode].call(this);
    +
    +        this._resetSelected(newOption, isInit);
    +
    +        var categories = this.option.categories;
    +
    +        this.resetVisual(function (mappingOption, state) {
    +            if (mode === 'categories') {
    +                mappingOption.mappingMethod = 'category';
    +                mappingOption.categories = clone(categories);
    +            }
    +            else {
    +                mappingOption.dataExtent = this.getExtent();
    +                mappingOption.mappingMethod = 'piecewise';
    +                mappingOption.pieceList = map(this._pieceList, function (piece) {
    +                    var piece = clone(piece);
    +                    if (state !== 'inRange') {
    +                        // FIXME
    +                        // outOfRange do not support special visual in pieces.
    +                        piece.visual = null;
    +                    }
    +                    return piece;
    +                });
    +            }
    +        });
    +    },
    +
    +    /**
    +     * @protected
    +     * @override
    +     */
    +    completeVisualOption: function () {
    +        // Consider this case:
    +        // visualMap: {
    +        //      pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]
    +        // }
    +        // where no inRange/outOfRange set but only pieces. So we should make
    +        // default inRange/outOfRange for this case, otherwise visuals that only
    +        // appear in `pieces` will not be taken into account in visual encoding.
    +
    +        var option = this.option;
    +        var visualTypesInPieces = {};
    +        var visualTypes = VisualMapping.listVisualTypes();
    +        var isCategory = this.isCategory();
    +
    +        each$1(option.pieces, function (piece) {
    +            each$1(visualTypes, function (visualType) {
    +                if (piece.hasOwnProperty(visualType)) {
    +                    visualTypesInPieces[visualType] = 1;
    +                }
    +            });
    +        });
    +
    +        each$1(visualTypesInPieces, function (v, visualType) {
    +            var exists = 0;
    +            each$1(this.stateList, function (state) {
    +                exists |= has(option, state, visualType)
    +                    || has(option.target, state, visualType);
    +            }, this);
    +
    +            !exists && each$1(this.stateList, function (state) {
    +                (option[state] || (option[state] = {}))[visualType] = visualDefault.get(
    +                    visualType, state === 'inRange' ? 'active' : 'inactive', isCategory
    +                );
    +            });
    +        }, this);
    +
    +        function has(obj, state, visualType) {
    +            return obj && obj[state] && (
    +                isObject(obj[state])
    +                    ? obj[state].hasOwnProperty(visualType)
    +                    : obj[state] === visualType // e.g., inRange: 'symbol'
    +            );
    +        }
    +
    +        VisualMapModel.prototype.completeVisualOption.apply(this, arguments);
    +    },
    +
    +    _resetSelected: function (newOption, isInit) {
    +        var thisOption = this.option;
    +        var pieceList = this._pieceList;
    +
    +        // Selected do not merge but all override.
    +        var selected = (isInit ? thisOption : newOption).selected || {};
    +        thisOption.selected = selected;
    +
    +        // Consider 'not specified' means true.
    +        each$1(pieceList, function (piece, index) {
    +            var key = this.getSelectedMapKey(piece);
    +            if (!selected.hasOwnProperty(key)) {
    +                selected[key] = true;
    +            }
    +        }, this);
    +
    +        if (thisOption.selectedMode === 'single') {
    +            // Ensure there is only one selected.
    +            var hasSel = false;
    +
    +            each$1(pieceList, function (piece, index) {
    +                var key = this.getSelectedMapKey(piece);
    +                if (selected[key]) {
    +                    hasSel
    +                        ? (selected[key] = false)
    +                        : (hasSel = true);
    +                }
    +            }, this);
    +        }
    +        // thisOption.selectedMode === 'multiple', default: all selected.
    +    },
    +
    +    /**
    +     * @public
    +     */
    +    getSelectedMapKey: function (piece) {
    +        return this._mode === 'categories'
    +            ? piece.value + '' : piece.index + '';
    +    },
    +
    +    /**
    +     * @public
    +     */
    +    getPieceList: function () {
    +        return this._pieceList;
    +    },
    +
    +    /**
    +     * @private
    +     * @return {string}
    +     */
    +    _determineMode: function () {
    +        var option = this.option;
    +
    +        return option.pieces && option.pieces.length > 0
    +            ? 'pieces'
    +            : this.option.categories
    +            ? 'categories'
    +            : 'splitNumber';
    +    },
    +
    +    /**
    +     * @public
    +     * @override
    +     */
    +    setSelected: function (selected) {
    +        this.option.selected = clone(selected);
    +    },
    +
    +    /**
    +     * @public
    +     * @override
    +     */
    +    getValueState: function (value) {
    +        var index = VisualMapping.findPieceIndex(value, this._pieceList);
    +
    +        return index != null
    +            ? (this.option.selected[this.getSelectedMapKey(this._pieceList[index])]
    +                ? 'inRange' : 'outOfRange'
    +            )
    +            : 'outOfRange';
    +    },
    +
    +    /**
    +     * @public
    +     * @params {number} pieceIndex piece index in visualMapModel.getPieceList()
    +     * @return {Array.<Object>} [{seriesId, dataIndices: <Array.<number>>}, ...]
    +     */
    +    findTargetDataIndices: function (pieceIndex) {
    +        var result = [];
    +
    +        this.eachTargetSeries(function (seriesModel) {
    +            var dataIndices = [];
    +            var data = seriesModel.getData();
    +
    +            data.each(this.getDataDimension(data), function (value, dataIndex) {
    +                // Should always base on model pieceList, because it is order sensitive.
    +                var pIdx = VisualMapping.findPieceIndex(value, this._pieceList);
    +                pIdx === pieceIndex && dataIndices.push(dataIndex);
    +            }, true, this);
    +
    +            result.push({seriesId: seriesModel.id, dataIndex: dataIndices});
    +        }, this);
    +
    +        return result;
    +    },
    +
    +    /**
    +     * @private
    +     * @param {Object} piece piece.value or piece.interval is required.
    +     * @return {number} Can be Infinity or -Infinity
    +     */
    +    getRepresentValue: function (piece) {
    +        var representValue;
    +        if (this.isCategory()) {
    +            representValue = piece.value;
    +        }
    +        else {
    +            if (piece.value != null) {
    +                representValue = piece.value;
    +            }
    +            else {
    +                var pieceInterval = piece.interval || [];
    +                representValue = (pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity)
    +                    ? 0
    +                    : (pieceInterval[0] + pieceInterval[1]) / 2;
    +            }
    +        }
    +        return representValue;
    +    },
    +
    +    getVisualMeta: function (getColorVisual) {
    +        // Do not support category. (category axis is ordinal, numerical)
    +        if (this.isCategory()) {
    +            return;
    +        }
    +
    +        var stops = [];
    +        var outerColors = [];
    +        var visualMapModel = this;
    +
    +        function setStop(interval, valueState) {
    +            var representValue = visualMapModel.getRepresentValue({interval: interval});
    +            if (!valueState) {
    +                valueState = visualMapModel.getValueState(representValue);
    +            }
    +            var color = getColorVisual(representValue, valueState);
    +            if (interval[0] === -Infinity) {
    +                outerColors[0] = color;
    +            }
    +            else if (interval[1] === Infinity) {
    +                outerColors[1] = color;
    +            }
    +            else {
    +                stops.push(
    +                    {value: interval[0], color: color},
    +                    {value: interval[1], color: color}
    +                );
    +            }
    +        }
    +
    +        // Suplement
    +        var pieceList = this._pieceList.slice();
    +        if (!pieceList.length) {
    +            pieceList.push({interval: [-Infinity, Infinity]});
    +        }
    +        else {
    +            var edge = pieceList[0].interval[0];
    +            edge !== -Infinity && pieceList.unshift({interval: [-Infinity, edge]});
    +            edge = pieceList[pieceList.length - 1].interval[1];
    +            edge !== Infinity && pieceList.push({interval: [edge, Infinity]});
    +        }
    +
    +        var curr = -Infinity;
    +        each$1(pieceList, function (piece) {
    +            var interval = piece.interval;
    +            if (interval) {
    +                // Fulfill gap.
    +                interval[0] > curr && setStop([curr, interval[0]], 'outOfRange');
    +                setStop(interval.slice());
    +                curr = interval[1];
    +            }
    +        }, this);
    +
    +        return {stops: stops, outerColors: outerColors};
    +    }
    +
    +});
    +
    +/**
    + * Key is this._mode
    + * @type {Object}
    + * @this {module:echarts/component/viusalMap/PiecewiseMode}
    + */
    +var resetMethods = {
    +
    +    splitNumber: function () {
    +        var thisOption = this.option;
    +        var pieceList = this._pieceList;
    +        var precision = Math.min(thisOption.precision, 20);
    +        var dataExtent = this.getExtent();
    +        var splitNumber = thisOption.splitNumber;
    +        splitNumber = Math.max(parseInt(splitNumber, 10), 1);
    +        thisOption.splitNumber = splitNumber;
    +
    +        var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber;
    +        // Precision auto-adaption
    +        while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {
    +            precision++;
    +        }
    +        thisOption.precision = precision;
    +        splitStep = +splitStep.toFixed(precision);
    +
    +        var index = 0;
    +
    +        if (thisOption.minOpen) {
    +            pieceList.push({
    +                index: index++,
    +                interval: [-Infinity, dataExtent[0]],
    +                close: [0, 0]
    +            });
    +        }
    +
    +        for (
    +            var curr = dataExtent[0], len = index + splitNumber;
    +            index < len;
    +            curr += splitStep
    +        ) {
    +            var max = index === splitNumber - 1 ? dataExtent[1] : (curr + splitStep);
    +
    +            pieceList.push({
    +                index: index++,
    +                interval: [curr, max],
    +                close: [1, 1]
    +            });
    +        }
    +
    +        if (thisOption.maxOpen) {
    +            pieceList.push({
    +                index: index++,
    +                interval: [dataExtent[1], Infinity],
    +                close: [0, 0]
    +            });
    +        }
    +
    +        reformIntervals(pieceList);
    +
    +        each$1(pieceList, function (piece) {
    +            piece.text = this.formatValueText(piece.interval);
    +        }, this);
    +    },
    +
    +    categories: function () {
    +        var thisOption = this.option;
    +        each$1(thisOption.categories, function (cate) {
    +            // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。
    +            // 是否改一致。
    +            this._pieceList.push({
    +                text: this.formatValueText(cate, true),
    +                value: cate
    +            });
    +        }, this);
    +
    +        // See "Order Rule".
    +        normalizeReverse(thisOption, this._pieceList);
    +    },
    +
    +    pieces: function () {
    +        var thisOption = this.option;
    +        var pieceList = this._pieceList;
    +
    +        each$1(thisOption.pieces, function (pieceListItem, index) {
    +
    +            if (!isObject(pieceListItem)) {
    +                pieceListItem = {value: pieceListItem};
    +            }
    +
    +            var item = {text: '', index: index};
    +
    +            if (pieceListItem.label != null) {
    +                item.text = pieceListItem.label;
    +            }
    +
    +            if (pieceListItem.hasOwnProperty('value')) {
    +                var value = item.value = pieceListItem.value;
    +                item.interval = [value, value];
    +                item.close = [1, 1];
    +            }
    +            else {
    +                // `min` `max` is legacy option.
    +                // `lt` `gt` `lte` `gte` is recommanded.
    +                var interval = item.interval = [];
    +                var close = item.close = [0, 0];
    +
    +                var closeList = [1, 0, 1];
    +                var infinityList = [-Infinity, Infinity];
    +
    +                var useMinMax = [];
    +                for (var lg = 0; lg < 2; lg++) {
    +                    var names = [['gte', 'gt', 'min'], ['lte', 'lt', 'max']][lg];
    +                    for (var i = 0; i < 3 && interval[lg] == null; i++) {
    +                        interval[lg] = pieceListItem[names[i]];
    +                        close[lg] = closeList[i];
    +                        useMinMax[lg] = i === 2;
    +                    }
    +                    interval[lg] == null && (interval[lg] = infinityList[lg]);
    +                }
    +                useMinMax[0] && interval[1] === Infinity && (close[0] = 0);
    +                useMinMax[1] && interval[0] === -Infinity && (close[1] = 0);
    +
    +                if (__DEV__) {
    +                    if (interval[0] > interval[1]) {
    +                        console.warn(
    +                            'Piece ' + index + 'is illegal: ' + interval
    +                            + ' lower bound should not greater then uppper bound.'
    +                        );
    +                    }
    +                }
    +
    +                if (interval[0] === interval[1] && close[0] && close[1]) {
    +                    // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],
    +                    // we use value to lift the priority when min === max
    +                    item.value = interval[0];
    +                }
    +            }
    +
    +            item.visual = VisualMapping.retrieveVisuals(pieceListItem);
    +
    +            pieceList.push(item);
    +
    +        }, this);
    +
    +        // See "Order Rule".
    +        normalizeReverse(thisOption, pieceList);
    +        // Only pieces
    +        reformIntervals(pieceList);
    +
    +        each$1(pieceList, function (piece) {
    +            var close = piece.close;
    +            var edgeSymbols = [['<', '≤'][close[1]], ['>', '≥'][close[0]]];
    +            piece.text = piece.text || this.formatValueText(
    +                piece.value != null ? piece.value : piece.interval,
    +                false,
    +                edgeSymbols
    +            );
    +        }, this);
    +    }
    +};
    +
    +function normalizeReverse(thisOption, pieceList) {
    +    var inverse = thisOption.inverse;
    +    if (thisOption.orient === 'vertical' ? !inverse : inverse) {
    +            pieceList.reverse();
    +    }
    +}
    +
    +var PiecewiseVisualMapView = VisualMapView.extend({
    +
    +    type: 'visualMap.piecewise',
    +
    +    /**
    +     * @protected
    +     * @override
    +     */
    +    doRender: function () {
    +        var thisGroup = this.group;
    +
    +        thisGroup.removeAll();
    +
    +        var visualMapModel = this.visualMapModel;
    +        var textGap = visualMapModel.get('textGap');
    +        var textStyleModel = visualMapModel.textStyleModel;
    +        var textFont = textStyleModel.getFont();
    +        var textFill = textStyleModel.getTextColor();
    +        var itemAlign = this._getItemAlign();
    +        var itemSize = visualMapModel.itemSize;
    +        var viewData = this._getViewData();
    +        var endsText = viewData.endsText;
    +        var showLabel = retrieve(visualMapModel.get('showLabel', true), !endsText);
    +
    +        endsText && this._renderEndsText(
    +            thisGroup, endsText[0], itemSize, showLabel, itemAlign
    +        );
    +
    +        each$1(viewData.viewPieceList, renderItem, this);
    +
    +        endsText && this._renderEndsText(
    +            thisGroup, endsText[1], itemSize, showLabel, itemAlign
    +        );
    +
    +        box(
    +            visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap')
    +        );
    +
    +        this.renderBackground(thisGroup);
    +
    +        this.positionGroup(thisGroup);
    +
    +        function renderItem(item) {
    +            var piece = item.piece;
    +
    +            var itemGroup = new Group();
    +            itemGroup.onclick = bind(this._onItemClick, this, piece);
    +
    +            this._enableHoverLink(itemGroup, item.indexInModelPieceList);
    +
    +            var representValue = visualMapModel.getRepresentValue(piece);
    +
    +            this._createItemSymbol(
    +                itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]]
    +            );
    +
    +            if (showLabel) {
    +                var visualState = this.visualMapModel.getValueState(representValue);
    +
    +                itemGroup.add(new Text({
    +                    style: {
    +                        x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,
    +                        y: itemSize[1] / 2,
    +                        text: piece.text,
    +                        textVerticalAlign: 'middle',
    +                        textAlign: itemAlign,
    +                        textFont: textFont,
    +                        textFill: textFill,
    +                        opacity: visualState === 'outOfRange' ? 0.5 : 1
    +                    }
    +                }));
    +            }
    +
    +            thisGroup.add(itemGroup);
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _enableHoverLink: function (itemGroup, pieceIndex) {
    +        itemGroup
    +            .on('mouseover', bind(onHoverLink, this, 'highlight'))
    +            .on('mouseout', bind(onHoverLink, this, 'downplay'));
    +
    +        function onHoverLink(method) {
    +            var visualMapModel = this.visualMapModel;
    +
    +            visualMapModel.option.hoverLink && this.api.dispatchAction({
    +                type: method,
    +                batch: convertDataIndex(
    +                    visualMapModel.findTargetDataIndices(pieceIndex)
    +                )
    +            });
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _getItemAlign: function () {
    +        var visualMapModel = this.visualMapModel;
    +        var modelOption = visualMapModel.option;
    +
    +        if (modelOption.orient === 'vertical') {
    +            return getItemAlign(
    +                visualMapModel, this.api, visualMapModel.itemSize
    +            );
    +        }
    +        else { // horizontal, most case left unless specifying right.
    +            var align = modelOption.align;
    +            if (!align || align === 'auto') {
    +                align = 'left';
    +            }
    +            return align;
    +        }
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderEndsText: function (group, text, itemSize, showLabel, itemAlign) {
    +        if (!text) {
    +            return;
    +        }
    +
    +        var itemGroup = new Group();
    +        var textStyleModel = this.visualMapModel.textStyleModel;
    +
    +        itemGroup.add(new Text({
    +            style: {
    +                x: showLabel ? (itemAlign === 'right' ? itemSize[0] : 0) : itemSize[0] / 2,
    +                y: itemSize[1] / 2,
    +                textVerticalAlign: 'middle',
    +                textAlign: showLabel ? itemAlign : 'center',
    +                text: text,
    +                textFont: textStyleModel.getFont(),
    +                textFill: textStyleModel.getTextColor()
    +            }
    +        }));
    +
    +        group.add(itemGroup);
    +    },
    +
    +    /**
    +     * @private
    +     * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.
    +     */
    +    _getViewData: function () {
    +        var visualMapModel = this.visualMapModel;
    +
    +        var viewPieceList = map(visualMapModel.getPieceList(), function (piece, index) {
    +            return {piece: piece, indexInModelPieceList: index};
    +        });
    +        var endsText = visualMapModel.get('text');
    +
    +        // Consider orient and inverse.
    +        var orient = visualMapModel.get('orient');
    +        var inverse = visualMapModel.get('inverse');
    +
    +        // Order of model pieceList is always [low, ..., high]
    +        if (orient === 'horizontal' ? inverse : !inverse) {
    +            viewPieceList.reverse();
    +        }
    +        // Origin order of endsText is [high, low]
    +        else if (endsText) {
    +            endsText = endsText.slice().reverse();
    +        }
    +
    +        return {viewPieceList: viewPieceList, endsText: endsText};
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _createItemSymbol: function (group, representValue, shapeParam) {
    +        group.add(createSymbol(
    +            this.getControllerVisual(representValue, 'symbol'),
    +            shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3],
    +            this.getControllerVisual(representValue, 'color')
    +        ));
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _onItemClick: function (piece) {
    +        var visualMapModel = this.visualMapModel;
    +        var option = visualMapModel.option;
    +        var selected = clone(option.selected);
    +        var newKey = visualMapModel.getSelectedMapKey(piece);
    +
    +        if (option.selectedMode === 'single') {
    +            selected[newKey] = true;
    +            each$1(selected, function (o, key) {
    +                selected[key] = key === newKey;
    +            });
    +        }
    +        else {
    +            selected[newKey] = !selected[newKey];
    +        }
    +
    +        this.api.dispatchAction({
    +            type: 'selectDataRange',
    +            from: this.uid,
    +            visualMapId: this.visualMapModel.id,
    +            selected: selected
    +        });
    +    }
    +});
    +
    +/**
    + * DataZoom component entry
    + */
    +
    +registerPreprocessor(preprocessor$2);
    +
    +/**
    + * visualMap component entry
    + */
    +
    +var addCommas$1 = addCommas;
    +var encodeHTML$1 = encodeHTML;
    +
    +function fillLabel(opt) {
    +    defaultEmphasis(opt.label, ['show']);
    +}
    +var MarkerModel = extendComponentModel({
    +
    +    type: 'marker',
    +
    +    dependencies: ['series', 'grid', 'polar', 'geo'],
    +
    +    /**
    +     * @overrite
    +     */
    +    init: function (option, parentModel, ecModel, extraOpt) {
    +
    +        if (__DEV__) {
    +            if (this.type === 'marker') {
    +                throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.');
    +            }
    +        }
    +        this.mergeDefaultAndTheme(option, ecModel);
    +        this.mergeOption(option, ecModel, extraOpt.createdBySelf, true);
    +    },
    +
    +    /**
    +     * @return {boolean}
    +     */
    +    isAnimationEnabled: function () {
    +        if (env$1.node) {
    +            return false;
    +        }
    +
    +        var hostSeries = this.__hostSeries;
    +        return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled();
    +    },
    +
    +    mergeOption: function (newOpt, ecModel, createdBySelf, isInit) {
    +        var MarkerModel = this.constructor;
    +        var modelPropName = this.mainType + 'Model';
    +        if (!createdBySelf) {
    +            ecModel.eachSeries(function (seriesModel) {
    +
    +                var markerOpt = seriesModel.get(this.mainType);
    +
    +                var markerModel = seriesModel[modelPropName];
    +                if (!markerOpt || !markerOpt.data) {
    +                    seriesModel[modelPropName] = null;
    +                    return;
    +                }
    +                if (!markerModel) {
    +                    if (isInit) {
    +                        // Default label emphasis `position` and `show`
    +                        fillLabel(markerOpt);
    +                    }
    +                    each$1(markerOpt.data, function (item) {
    +                        // FIXME Overwrite fillLabel method ?
    +                        if (item instanceof Array) {
    +                            fillLabel(item[0]);
    +                            fillLabel(item[1]);
    +                        }
    +                        else {
    +                            fillLabel(item);
    +                        }
    +                    });
    +
    +                    markerModel = new MarkerModel(
    +                        markerOpt, this, ecModel
    +                    );
    +
    +                    extend(markerModel, {
    +                        mainType: this.mainType,
    +                        // Use the same series index and name
    +                        seriesIndex: seriesModel.seriesIndex,
    +                        name: seriesModel.name,
    +                        createdBySelf: true
    +                    });
    +
    +                    markerModel.__hostSeries = seriesModel;
    +                }
    +                else {
    +                    markerModel.mergeOption(markerOpt, ecModel, true);
    +                }
    +                seriesModel[modelPropName] = markerModel;
    +            }, this);
    +        }
    +    },
    +
    +    formatTooltip: function (dataIndex) {
    +        var data = this.getData();
    +        var value = this.getRawValue(dataIndex);
    +        var formattedValue = isArray(value)
    +            ? map(value, addCommas$1).join(', ') : addCommas$1(value);
    +        var name = data.getName(dataIndex);
    +        var html = encodeHTML$1(this.name);
    +        if (value != null || name) {
    +            html += '<br />';
    +        }
    +        if (name) {
    +            html += encodeHTML$1(name);
    +            if (value != null) {
    +                html += ' : ';
    +            }
    +        }
    +        if (value != null) {
    +            html += encodeHTML$1(formattedValue);
    +        }
    +        return html;
    +    },
    +
    +    getData: function () {
    +        return this._data;
    +    },
    +
    +    setData: function (data) {
    +        this._data = data;
    +    }
    +});
    +
    +mixin(MarkerModel, dataFormatMixin);
    +
    +MarkerModel.extend({
    +
    +    type: 'markPoint',
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 5,
    +        symbol: 'pin',
    +        symbolSize: 50,
    +        //symbolRotate: 0,
    +        //symbolOffset: [0, 0]
    +        tooltip: {
    +            trigger: 'item'
    +        },
    +        label: {
    +            normal: {
    +                show: true,
    +                position: 'inside'
    +            },
    +            emphasis: {
    +                show: true
    +            }
    +        },
    +        itemStyle: {
    +            normal: {
    +                borderWidth: 2
    +            }
    +        }
    +    }
    +});
    +
    +var indexOf$3 = indexOf;
    +
    +function hasXOrY(item) {
    +    return !(isNaN(parseFloat(item.x)) && isNaN(parseFloat(item.y)));
    +}
    +
    +function hasXAndY(item) {
    +    return !isNaN(parseFloat(item.x)) && !isNaN(parseFloat(item.y));
    +}
    +
    +function getPrecision$1(data, valueAxisDim, dataIndex) {
    +    var precision = -1;
    +    do {
    +        precision = Math.max(
    +            getPrecision(data.get(
    +                valueAxisDim, dataIndex
    +            )),
    +            precision
    +        );
    +        data = data.stackedOn;
    +    } while (data);
    +
    +    return precision;
    +}
    +
    +function markerTypeCalculatorWithExtent(
    +    mlType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex
    +) {
    +    var coordArr = [];
    +    var value = numCalculate(data, targetDataDim, mlType);
    +
    +    var dataIndex = data.indicesOfNearest(targetDataDim, value, true)[0];
    +    coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex, true);
    +    coordArr[targetCoordIndex] = data.get(targetDataDim, dataIndex, true);
    +
    +    var precision = getPrecision$1(data, targetDataDim, dataIndex);
    +    precision = Math.min(precision, 20);
    +    if (precision >= 0) {
    +        coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision);
    +    }
    +
    +    return coordArr;
    +}
    +
    +var curry$7 = curry;
    +// TODO Specified percent
    +var markerTypeCalculator = {
    +    /**
    +     * @method
    +     * @param {module:echarts/data/List} data
    +     * @param {string} baseAxisDim
    +     * @param {string} valueAxisDim
    +     */
    +    min: curry$7(markerTypeCalculatorWithExtent, 'min'),
    +    /**
    +     * @method
    +     * @param {module:echarts/data/List} data
    +     * @param {string} baseAxisDim
    +     * @param {string} valueAxisDim
    +     */
    +    max: curry$7(markerTypeCalculatorWithExtent, 'max'),
    +
    +    /**
    +     * @method
    +     * @param {module:echarts/data/List} data
    +     * @param {string} baseAxisDim
    +     * @param {string} valueAxisDim
    +     */
    +    average: curry$7(markerTypeCalculatorWithExtent, 'average')
    +};
    +
    +/**
    + * Transform markPoint data item to format used in List by do the following
    + * 1. Calculate statistic like `max`, `min`, `average`
    + * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array
    + * @param  {module:echarts/model/Series} seriesModel
    + * @param  {module:echarts/coord/*} [coordSys]
    + * @param  {Object} item
    + * @return {Object}
    + */
    +function dataTransform(seriesModel, item) {
    +    var data = seriesModel.getData();
    +    var coordSys = seriesModel.coordinateSystem;
    +
    +    // 1. If not specify the position with pixel directly
    +    // 2. If `coord` is not a data array. Which uses `xAxis`,
    +    // `yAxis` to specify the coord on each dimension
    +
    +    // parseFloat first because item.x and item.y can be percent string like '20%'
    +    if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) {
    +        var dims = coordSys.dimensions;
    +        var axisInfo = getAxisInfo$1(item, data, coordSys, seriesModel);
    +
    +        // Clone the option
    +        // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value
    +        item = clone(item);
    +
    +        if (item.type
    +            && markerTypeCalculator[item.type]
    +            && axisInfo.baseAxis && axisInfo.valueAxis
    +        ) {
    +            var otherCoordIndex = indexOf$3(dims, axisInfo.baseAxis.dim);
    +            var targetCoordIndex = indexOf$3(dims, axisInfo.valueAxis.dim);
    +
    +            item.coord = markerTypeCalculator[item.type](
    +                data, axisInfo.baseDataDim, axisInfo.valueDataDim,
    +                otherCoordIndex, targetCoordIndex
    +            );
    +            // Force to use the value of calculated value.
    +            item.value = item.coord[targetCoordIndex];
    +        }
    +        else {
    +            // FIXME Only has one of xAxis and yAxis.
    +            var coord = [
    +                item.xAxis != null ? item.xAxis : item.radiusAxis,
    +                item.yAxis != null ? item.yAxis : item.angleAxis
    +            ];
    +            // Each coord support max, min, average
    +            for (var i = 0; i < 2; i++) {
    +                if (markerTypeCalculator[coord[i]]) {
    +                    var dataDim = seriesModel.coordDimToDataDim(dims[i])[0];
    +                    coord[i] = numCalculate(data, dataDim, coord[i]);
    +                }
    +            }
    +            item.coord = coord;
    +        }
    +    }
    +    return item;
    +}
    +
    +function getAxisInfo$1(item, data, coordSys, seriesModel) {
    +    var ret = {};
    +
    +    if (item.valueIndex != null || item.valueDim != null) {
    +        ret.valueDataDim = item.valueIndex != null
    +            ? data.getDimension(item.valueIndex) : item.valueDim;
    +        ret.valueAxis = coordSys.getAxis(seriesModel.dataDimToCoordDim(ret.valueDataDim));
    +        ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);
    +        ret.baseDataDim = seriesModel.coordDimToDataDim(ret.baseAxis.dim)[0];
    +    }
    +    else {
    +        ret.baseAxis = seriesModel.getBaseAxis();
    +        ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);
    +        ret.baseDataDim = seriesModel.coordDimToDataDim(ret.baseAxis.dim)[0];
    +        ret.valueDataDim = seriesModel.coordDimToDataDim(ret.valueAxis.dim)[0];
    +    }
    +
    +    return ret;
    +}
    +
    +/**
    + * Filter data which is out of coordinateSystem range
    + * [dataFilter description]
    + * @param  {module:echarts/coord/*} [coordSys]
    + * @param  {Object} item
    + * @return {boolean}
    + */
    +function dataFilter$1(coordSys, item) {
    +    // Alwalys return true if there is no coordSys
    +    return (coordSys && coordSys.containData && item.coord && !hasXOrY(item))
    +        ? coordSys.containData(item.coord) : true;
    +}
    +
    +function dimValueGetter(item, dimName, dataIndex, dimIndex) {
    +    // x, y, radius, angle
    +    if (dimIndex < 2) {
    +        return item.coord && item.coord[dimIndex];
    +    }
    +    return item.value;
    +}
    +
    +function numCalculate(data, valueDataDim, type) {
    +    if (type === 'average') {
    +        var sum = 0;
    +        var count = 0;
    +        data.each(valueDataDim, function (val, idx) {
    +            if (!isNaN(val)) {
    +                sum += val;
    +                count++;
    +            }
    +        }, true);
    +        return sum / count;
    +    }
    +    else {
    +        return data.getDataExtent(valueDataDim, true)[type === 'max' ? 1 : 0];
    +    }
    +}
    +
    +var MarkerView = extendComponentView({
    +
    +    type: 'marker',
    +
    +    init: function () {
    +        /**
    +         * Markline grouped by series
    +         * @private
    +         * @type {module:zrender/core/util.HashMap}
    +         */
    +        this.markerGroupMap = createHashMap();
    +    },
    +
    +    render: function (markerModel, ecModel, api) {
    +        var markerGroupMap = this.markerGroupMap;
    +        markerGroupMap.each(function (item) {
    +            item.__keep = false;
    +        });
    +
    +        var markerModelKey = this.type + 'Model';
    +        ecModel.eachSeries(function (seriesModel) {
    +            var markerModel = seriesModel[markerModelKey];
    +            markerModel && this.renderSeries(seriesModel, markerModel, ecModel, api);
    +        }, this);
    +
    +        markerGroupMap.each(function (item) {
    +            !item.__keep && this.group.remove(item.group);
    +        }, this);
    +    },
    +
    +    renderSeries: function () {}
    +});
    +
    +function updateMarkerLayout(mpData, seriesModel, api) {
    +    var coordSys = seriesModel.coordinateSystem;
    +    mpData.each(function (idx) {
    +        var itemModel = mpData.getItemModel(idx);
    +        var point;
    +        var xPx = parsePercent$1(itemModel.get('x'), api.getWidth());
    +        var yPx = parsePercent$1(itemModel.get('y'), api.getHeight());
    +        if (!isNaN(xPx) && !isNaN(yPx)) {
    +            point = [xPx, yPx];
    +        }
    +        // Chart like bar may have there own marker positioning logic
    +        else if (seriesModel.getMarkerPosition) {
    +            // Use the getMarkerPoisition
    +            point = seriesModel.getMarkerPosition(
    +                mpData.getValues(mpData.dimensions, idx)
    +            );
    +        }
    +        else if (coordSys) {
    +            var x = mpData.get(coordSys.dimensions[0], idx);
    +            var y = mpData.get(coordSys.dimensions[1], idx);
    +            point = coordSys.dataToPoint([x, y]);
    +
    +        }
    +
    +        // Use x, y if has any
    +        if (!isNaN(xPx)) {
    +            point[0] = xPx;
    +        }
    +        if (!isNaN(yPx)) {
    +            point[1] = yPx;
    +        }
    +
    +        mpData.setItemLayout(idx, point);
    +    });
    +}
    +
    +MarkerView.extend({
    +
    +    type: 'markPoint',
    +
    +    updateLayout: function (markPointModel, ecModel, api) {
    +        ecModel.eachSeries(function (seriesModel) {
    +            var mpModel = seriesModel.markPointModel;
    +            if (mpModel) {
    +                updateMarkerLayout(mpModel.getData(), seriesModel, api);
    +                this.markerGroupMap.get(seriesModel.id).updateLayout(mpModel);
    +            }
    +        }, this);
    +    },
    +
    +    renderSeries: function (seriesModel, mpModel, ecModel, api) {
    +        var coordSys = seriesModel.coordinateSystem;
    +        var seriesId = seriesModel.id;
    +        var seriesData = seriesModel.getData();
    +
    +        var symbolDrawMap = this.markerGroupMap;
    +        var symbolDraw = symbolDrawMap.get(seriesId)
    +            || symbolDrawMap.set(seriesId, new SymbolDraw());
    +
    +        var mpData = createList$1(coordSys, seriesModel, mpModel);
    +
    +        // FIXME
    +        mpModel.setData(mpData);
    +
    +        updateMarkerLayout(mpModel.getData(), seriesModel, api);
    +
    +        mpData.each(function (idx) {
    +            var itemModel = mpData.getItemModel(idx);
    +            var symbolSize = itemModel.getShallow('symbolSize');
    +            if (typeof symbolSize === 'function') {
    +                // FIXME 这里不兼容 ECharts 2.x,2.x 貌似参数是整个数据?
    +                symbolSize = symbolSize(
    +                    mpModel.getRawValue(idx), mpModel.getDataParams(idx)
    +                );
    +            }
    +            mpData.setItemVisual(idx, {
    +                symbolSize: symbolSize,
    +                color: itemModel.get('itemStyle.normal.color')
    +                    || seriesData.getVisual('color'),
    +                symbol: itemModel.getShallow('symbol')
    +            });
    +        });
    +
    +        // TODO Text are wrong
    +        symbolDraw.updateData(mpData);
    +        this.group.add(symbolDraw.group);
    +
    +        // Set host model for tooltip
    +        // FIXME
    +        mpData.eachItemGraphicEl(function (el) {
    +            el.traverse(function (child) {
    +                child.dataModel = mpModel;
    +            });
    +        });
    +
    +        symbolDraw.__keep = true;
    +
    +        symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent');
    +    }
    +});
    +
    +/**
    + * @inner
    + * @param {module:echarts/coord/*} [coordSys]
    + * @param {module:echarts/model/Series} seriesModel
    + * @param {module:echarts/model/Model} mpModel
    + */
    +function createList$1(coordSys, seriesModel, mpModel) {
    +    var coordDimsInfos;
    +    if (coordSys) {
    +        coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {
    +            var info = seriesModel.getData().getDimensionInfo(
    +                seriesModel.coordDimToDataDim(coordDim)[0]
    +            ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
    +            info.name = coordDim;
    +            return info;
    +        });
    +    }
    +    else {
    +        coordDimsInfos =[{
    +            name: 'value',
    +            type: 'float'
    +        }];
    +    }
    +
    +    var mpData = new List(coordDimsInfos, mpModel);
    +    var dataOpt = map(mpModel.get('data'), curry(
    +            dataTransform, seriesModel
    +        ));
    +    if (coordSys) {
    +        dataOpt = filter(
    +            dataOpt, curry(dataFilter$1, coordSys)
    +        );
    +    }
    +
    +    mpData.initData(dataOpt, null,
    +        coordSys ? dimValueGetter : function (item) {
    +            return item.value;
    +        }
    +    );
    +
    +    return mpData;
    +}
    +
    +// HINT Markpoint can't be used too much
    +registerPreprocessor(function (opt) {
    +    // Make sure markPoint component is enabled
    +    opt.markPoint = opt.markPoint || {};
    +});
    +
    +MarkerModel.extend({
    +
    +    type: 'markLine',
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        z: 5,
    +
    +        symbol: ['circle', 'arrow'],
    +        symbolSize: [8, 16],
    +
    +        //symbolRotate: 0,
    +
    +        precision: 2,
    +        tooltip: {
    +            trigger: 'item'
    +        },
    +        label: {
    +            normal: {
    +                show: true,
    +                position: 'end'
    +            },
    +            emphasis: {
    +                show: true
    +            }
    +        },
    +        lineStyle: {
    +            normal: {
    +                type: 'dashed'
    +            },
    +            emphasis: {
    +                width: 3
    +            }
    +        },
    +        animationEasing: 'linear'
    +    }
    +});
    +
    +var markLineTransform = function (seriesModel, coordSys, mlModel, item) {
    +    var data = seriesModel.getData();
    +    // Special type markLine like 'min', 'max', 'average'
    +    var mlType = item.type;
    +
    +    if (!isArray(item)
    +        && (
    +            mlType === 'min' || mlType === 'max' || mlType === 'average'
    +            // In case
    +            // data: [{
    +            //   yAxis: 10
    +            // }]
    +            || (item.xAxis != null || item.yAxis != null)
    +        )
    +    ) {
    +        var valueAxis;
    +        var valueDataDim;
    +        var value;
    +
    +        if (item.yAxis != null || item.xAxis != null) {
    +            valueDataDim = item.yAxis != null ? 'y' : 'x';
    +            valueAxis = coordSys.getAxis(valueDataDim);
    +
    +            value = retrieve(item.yAxis, item.xAxis);
    +        }
    +        else {
    +            var axisInfo = getAxisInfo$1(item, data, coordSys, seriesModel);
    +            valueDataDim = axisInfo.valueDataDim;
    +            valueAxis = axisInfo.valueAxis;
    +            value = numCalculate(data, valueDataDim, mlType);
    +        }
    +        var valueIndex = valueDataDim === 'x' ? 0 : 1;
    +        var baseIndex = 1 - valueIndex;
    +
    +        var mlFrom = clone(item);
    +        var mlTo = {};
    +
    +        mlFrom.type = null;
    +
    +        mlFrom.coord = [];
    +        mlTo.coord = [];
    +        mlFrom.coord[baseIndex] = -Infinity;
    +        mlTo.coord[baseIndex] = Infinity;
    +
    +        var precision = mlModel.get('precision');
    +        if (precision >= 0 && typeof value === 'number') {
    +            value = +value.toFixed(Math.min(precision, 20));
    +        }
    +
    +        mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value;
    +
    +        item = [mlFrom, mlTo, { // Extra option for tooltip and label
    +            type: mlType,
    +            valueIndex: item.valueIndex,
    +            // Force to use the value of calculated value.
    +            value: value
    +        }];
    +    }
    +
    +    item = [
    +        dataTransform(seriesModel, item[0]),
    +        dataTransform(seriesModel, item[1]),
    +        extend({}, item[2])
    +    ];
    +
    +    // Avoid line data type is extended by from(to) data type
    +    item[2].type = item[2].type || '';
    +
    +    // Merge from option and to option into line option
    +    merge(item[2], item[0]);
    +    merge(item[2], item[1]);
    +
    +    return item;
    +};
    +
    +function isInifinity(val) {
    +    return !isNaN(val) && !isFinite(val);
    +}
    +
    +// If a markLine has one dim
    +function ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {
    +    var otherDimIndex = 1 - dimIndex;
    +    var dimName = coordSys.dimensions[dimIndex];
    +    return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex])
    +        && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);
    +}
    +
    +function markLineFilter(coordSys, item) {
    +    if (coordSys.type === 'cartesian2d') {
    +        var fromCoord = item[0].coord;
    +        var toCoord = item[1].coord;
    +        // In case
    +        // {
    +        //  markLine: {
    +        //    data: [{ yAxis: 2 }]
    +        //  }
    +        // }
    +        if (
    +            fromCoord && toCoord &&
    +            (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys)
    +            || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))
    +        ) {
    +            return true;
    +        }
    +    }
    +    return dataFilter$1(coordSys, item[0])
    +        && dataFilter$1(coordSys, item[1]);
    +}
    +
    +function updateSingleMarkerEndLayout(
    +    data, idx, isFrom, seriesModel, api
    +) {
    +    var coordSys = seriesModel.coordinateSystem;
    +    var itemModel = data.getItemModel(idx);
    +
    +    var point;
    +    var xPx = parsePercent$1(itemModel.get('x'), api.getWidth());
    +    var yPx = parsePercent$1(itemModel.get('y'), api.getHeight());
    +    if (!isNaN(xPx) && !isNaN(yPx)) {
    +        point = [xPx, yPx];
    +    }
    +    else {
    +        // Chart like bar may have there own marker positioning logic
    +        if (seriesModel.getMarkerPosition) {
    +            // Use the getMarkerPoisition
    +            point = seriesModel.getMarkerPosition(
    +                data.getValues(data.dimensions, idx)
    +            );
    +        }
    +        else {
    +            var dims = coordSys.dimensions;
    +            var x = data.get(dims[0], idx);
    +            var y = data.get(dims[1], idx);
    +            point = coordSys.dataToPoint([x, y]);
    +        }
    +        // Expand line to the edge of grid if value on one axis is Inifnity
    +        // In case
    +        //  markLine: {
    +        //    data: [{
    +        //      yAxis: 2
    +        //      // or
    +        //      type: 'average'
    +        //    }]
    +        //  }
    +        if (coordSys.type === 'cartesian2d') {
    +            var xAxis = coordSys.getAxis('x');
    +            var yAxis = coordSys.getAxis('y');
    +            var dims = coordSys.dimensions;
    +            if (isInifinity(data.get(dims[0], idx))) {
    +                point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]);
    +            }
    +            else if (isInifinity(data.get(dims[1], idx))) {
    +                point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]);
    +            }
    +        }
    +
    +        // Use x, y if has any
    +        if (!isNaN(xPx)) {
    +            point[0] = xPx;
    +        }
    +        if (!isNaN(yPx)) {
    +            point[1] = yPx;
    +        }
    +    }
    +
    +    data.setItemLayout(idx, point);
    +}
    +
    +MarkerView.extend({
    +
    +    type: 'markLine',
    +
    +    updateLayout: function (markLineModel, ecModel, api) {
    +        ecModel.eachSeries(function (seriesModel) {
    +            var mlModel = seriesModel.markLineModel;
    +            if (mlModel) {
    +                var mlData = mlModel.getData();
    +                var fromData = mlModel.__from;
    +                var toData = mlModel.__to;
    +                // Update visual and layout of from symbol and to symbol
    +                fromData.each(function (idx) {
    +                    updateSingleMarkerEndLayout(fromData, idx, true, seriesModel, api);
    +                    updateSingleMarkerEndLayout(toData, idx, false, seriesModel, api);
    +                });
    +                // Update layout of line
    +                mlData.each(function (idx) {
    +                    mlData.setItemLayout(idx, [
    +                        fromData.getItemLayout(idx),
    +                        toData.getItemLayout(idx)
    +                    ]);
    +                });
    +
    +                this.markerGroupMap.get(seriesModel.id).updateLayout();
    +
    +            }
    +        }, this);
    +    },
    +
    +    renderSeries: function (seriesModel, mlModel, ecModel, api) {
    +        var coordSys = seriesModel.coordinateSystem;
    +        var seriesId = seriesModel.id;
    +        var seriesData = seriesModel.getData();
    +
    +        var lineDrawMap = this.markerGroupMap;
    +        var lineDraw = lineDrawMap.get(seriesId)
    +            || lineDrawMap.set(seriesId, new LineDraw());
    +        this.group.add(lineDraw.group);
    +
    +        var mlData = createList$2(coordSys, seriesModel, mlModel);
    +
    +        var fromData = mlData.from;
    +        var toData = mlData.to;
    +        var lineData = mlData.line;
    +
    +        mlModel.__from = fromData;
    +        mlModel.__to = toData;
    +        // Line data for tooltip and formatter
    +        mlModel.setData(lineData);
    +
    +        var symbolType = mlModel.get('symbol');
    +        var symbolSize = mlModel.get('symbolSize');
    +        if (!isArray(symbolType)) {
    +            symbolType = [symbolType, symbolType];
    +        }
    +        if (typeof symbolSize === 'number') {
    +            symbolSize = [symbolSize, symbolSize];
    +        }
    +
    +        // Update visual and layout of from symbol and to symbol
    +        mlData.from.each(function (idx) {
    +            updateDataVisualAndLayout(fromData, idx, true);
    +            updateDataVisualAndLayout(toData, idx, false);
    +        });
    +
    +        // Update visual and layout of line
    +        lineData.each(function (idx) {
    +            var lineColor = lineData.getItemModel(idx).get('lineStyle.normal.color');
    +            lineData.setItemVisual(idx, {
    +                color: lineColor || fromData.getItemVisual(idx, 'color')
    +            });
    +            lineData.setItemLayout(idx, [
    +                fromData.getItemLayout(idx),
    +                toData.getItemLayout(idx)
    +            ]);
    +
    +            lineData.setItemVisual(idx, {
    +                'fromSymbolSize': fromData.getItemVisual(idx, 'symbolSize'),
    +                'fromSymbol': fromData.getItemVisual(idx, 'symbol'),
    +                'toSymbolSize': toData.getItemVisual(idx, 'symbolSize'),
    +                'toSymbol': toData.getItemVisual(idx, 'symbol')
    +            });
    +        });
    +
    +        lineDraw.updateData(lineData);
    +
    +        // Set host model for tooltip
    +        // FIXME
    +        mlData.line.eachItemGraphicEl(function (el, idx) {
    +            el.traverse(function (child) {
    +                child.dataModel = mlModel;
    +            });
    +        });
    +
    +        function updateDataVisualAndLayout(data, idx, isFrom) {
    +            var itemModel = data.getItemModel(idx);
    +
    +            updateSingleMarkerEndLayout(
    +                data, idx, isFrom, seriesModel, api
    +            );
    +
    +            data.setItemVisual(idx, {
    +                symbolSize: itemModel.get('symbolSize') || symbolSize[isFrom ? 0 : 1],
    +                symbol: itemModel.get('symbol', true) || symbolType[isFrom ? 0 : 1],
    +                color: itemModel.get('itemStyle.normal.color') || seriesData.getVisual('color')
    +            });
    +        }
    +
    +        lineDraw.__keep = true;
    +
    +        lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent');
    +    }
    +});
    +
    +/**
    + * @inner
    + * @param {module:echarts/coord/*} coordSys
    + * @param {module:echarts/model/Series} seriesModel
    + * @param {module:echarts/model/Model} mpModel
    + */
    +function createList$2(coordSys, seriesModel, mlModel) {
    +
    +    var coordDimsInfos;
    +    if (coordSys) {
    +        coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {
    +            var info = seriesModel.getData().getDimensionInfo(
    +                seriesModel.coordDimToDataDim(coordDim)[0]
    +            ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
    +            info.name = coordDim;
    +            return info;
    +        });
    +    }
    +    else {
    +        coordDimsInfos =[{
    +            name: 'value',
    +            type: 'float'
    +        }];
    +    }
    +
    +    var fromData = new List(coordDimsInfos, mlModel);
    +    var toData = new List(coordDimsInfos, mlModel);
    +    // No dimensions
    +    var lineData = new List([], mlModel);
    +
    +    var optData = map(mlModel.get('data'), curry(
    +        markLineTransform, seriesModel, coordSys, mlModel
    +    ));
    +    if (coordSys) {
    +        optData = filter(
    +            optData, curry(markLineFilter, coordSys)
    +        );
    +    }
    +    var dimValueGetter$$1 = coordSys ? dimValueGetter : function (item) {
    +        return item.value;
    +    };
    +    fromData.initData(
    +        map(optData, function (item) { return item[0]; }),
    +        null, dimValueGetter$$1
    +    );
    +    toData.initData(
    +        map(optData, function (item) { return item[1]; }),
    +        null, dimValueGetter$$1
    +    );
    +    lineData.initData(
    +        map(optData, function (item) { return item[2]; })
    +    );
    +    lineData.hasItemOption = true;
    +
    +    return {
    +        from: fromData,
    +        to: toData,
    +        line: lineData
    +    };
    +}
    +
    +registerPreprocessor(function (opt) {
    +    // Make sure markLine component is enabled
    +    opt.markLine = opt.markLine || {};
    +});
    +
    +MarkerModel.extend({
    +
    +    type: 'markArea',
    +
    +    defaultOption: {
    +        zlevel: 0,
    +        // PENDING
    +        z: 1,
    +        tooltip: {
    +            trigger: 'item'
    +        },
    +        // markArea should fixed on the coordinate system
    +        animation: false,
    +        label: {
    +            normal: {
    +                show: true,
    +                position: 'top'
    +            },
    +            emphasis: {
    +                show: true,
    +                position: 'top'
    +            }
    +        },
    +        itemStyle: {
    +            normal: {
    +                // color and borderColor default to use color from series
    +                // color: 'auto'
    +                // borderColor: 'auto'
    +                borderWidth: 0
    +            }
    +        }
    +    }
    +});
    +
    +// TODO Better on polar
    +
    +var markAreaTransform = function (seriesModel, coordSys, maModel, item) {
    +    var lt = dataTransform(seriesModel, item[0]);
    +    var rb = dataTransform(seriesModel, item[1]);
    +    var retrieve$$1 = retrieve;
    +
    +    // FIXME make sure lt is less than rb
    +    var ltCoord = lt.coord;
    +    var rbCoord = rb.coord;
    +    ltCoord[0] = retrieve$$1(ltCoord[0], -Infinity);
    +    ltCoord[1] = retrieve$$1(ltCoord[1], -Infinity);
    +
    +    rbCoord[0] = retrieve$$1(rbCoord[0], Infinity);
    +    rbCoord[1] = retrieve$$1(rbCoord[1], Infinity);
    +
    +    // Merge option into one
    +    var result = mergeAll([{}, lt, rb]);
    +
    +    result.coord = [
    +        lt.coord, rb.coord
    +    ];
    +    result.x0 = lt.x;
    +    result.y0 = lt.y;
    +    result.x1 = rb.x;
    +    result.y1 = rb.y;
    +    return result;
    +};
    +
    +function isInifinity$1(val) {
    +    return !isNaN(val) && !isFinite(val);
    +}
    +
    +// If a markArea has one dim
    +function ifMarkLineHasOnlyDim$1(dimIndex, fromCoord, toCoord, coordSys) {
    +    var otherDimIndex = 1 - dimIndex;
    +    return isInifinity$1(fromCoord[otherDimIndex]) && isInifinity$1(toCoord[otherDimIndex]);
    +}
    +
    +function markAreaFilter(coordSys, item) {
    +    var fromCoord = item.coord[0];
    +    var toCoord = item.coord[1];
    +    if (coordSys.type === 'cartesian2d') {
    +        // In case
    +        // {
    +        //  markArea: {
    +        //    data: [{ yAxis: 2 }]
    +        //  }
    +        // }
    +        if (
    +            fromCoord && toCoord &&
    +            (ifMarkLineHasOnlyDim$1(1, fromCoord, toCoord, coordSys)
    +            || ifMarkLineHasOnlyDim$1(0, fromCoord, toCoord, coordSys))
    +        ) {
    +            return true;
    +        }
    +    }
    +    return dataFilter$1(coordSys, {
    +            coord: fromCoord,
    +            x: item.x0,
    +            y: item.y0
    +        })
    +        || dataFilter$1(coordSys, {
    +            coord: toCoord,
    +            x: item.x1,
    +            y: item.y1
    +        });
    +}
    +
    +// dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']
    +function getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) {
    +    var coordSys = seriesModel.coordinateSystem;
    +    var itemModel = data.getItemModel(idx);
    +
    +    var point;
    +    var xPx = parsePercent$1(itemModel.get(dims[0]), api.getWidth());
    +    var yPx = parsePercent$1(itemModel.get(dims[1]), api.getHeight());
    +    if (!isNaN(xPx) && !isNaN(yPx)) {
    +        point = [xPx, yPx];
    +    }
    +    else {
    +        // Chart like bar may have there own marker positioning logic
    +        if (seriesModel.getMarkerPosition) {
    +            // Use the getMarkerPoisition
    +            point = seriesModel.getMarkerPosition(
    +                data.getValues(dims, idx)
    +            );
    +        }
    +        else {
    +            var x = data.get(dims[0], idx);
    +            var y = data.get(dims[1], idx);
    +            point = coordSys.dataToPoint([x, y], true);
    +        }
    +        if (coordSys.type === 'cartesian2d') {
    +            var xAxis = coordSys.getAxis('x');
    +            var yAxis = coordSys.getAxis('y');
    +            var x = data.get(dims[0], idx);
    +            var y = data.get(dims[1], idx);
    +            if (isInifinity$1(x)) {
    +                point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);
    +            }
    +            else if (isInifinity$1(y)) {
    +                point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);
    +            }
    +        }
    +
    +        // Use x, y if has any
    +        if (!isNaN(xPx)) {
    +            point[0] = xPx;
    +        }
    +        if (!isNaN(yPx)) {
    +            point[1] = yPx;
    +        }
    +    }
    +
    +    return point;
    +}
    +
    +var dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']];
    +
    +MarkerView.extend({
    +
    +    type: 'markArea',
    +
    +    updateLayout: function (markAreaModel, ecModel, api) {
    +        ecModel.eachSeries(function (seriesModel) {
    +            var maModel = seriesModel.markAreaModel;
    +            if (maModel) {
    +                var areaData = maModel.getData();
    +                areaData.each(function (idx) {
    +                    var points = map(dimPermutations, function (dim) {
    +                        return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);
    +                    });
    +                    // Layout
    +                    areaData.setItemLayout(idx, points);
    +                    var el = areaData.getItemGraphicEl(idx);
    +                    el.setShape('points', points);
    +                });
    +            }
    +        }, this);
    +    },
    +
    +    renderSeries: function (seriesModel, maModel, ecModel, api) {
    +        var coordSys = seriesModel.coordinateSystem;
    +        var seriesName = seriesModel.name;
    +        var seriesData = seriesModel.getData();
    +
    +        var areaGroupMap = this.markerGroupMap;
    +        var polygonGroup = areaGroupMap.get(seriesName)
    +            || areaGroupMap.set(seriesName, {group: new Group()});
    +
    +        this.group.add(polygonGroup.group);
    +        polygonGroup.__keep = true;
    +
    +        var areaData = createList$3(coordSys, seriesModel, maModel);
    +
    +        // Line data for tooltip and formatter
    +        maModel.setData(areaData);
    +
    +        // Update visual and layout of line
    +        areaData.each(function (idx) {
    +            // Layout
    +            areaData.setItemLayout(idx, map(dimPermutations, function (dim) {
    +                return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);
    +            }));
    +
    +            // Visual
    +            areaData.setItemVisual(idx, {
    +                color: seriesData.getVisual('color')
    +            });
    +        });
    +
    +
    +        areaData.diff(polygonGroup.__data)
    +            .add(function (idx) {
    +                var polygon = new Polygon({
    +                    shape: {
    +                        points: areaData.getItemLayout(idx)
    +                    }
    +                });
    +                areaData.setItemGraphicEl(idx, polygon);
    +                polygonGroup.group.add(polygon);
    +            })
    +            .update(function (newIdx, oldIdx) {
    +                var polygon = polygonGroup.__data.getItemGraphicEl(oldIdx);
    +                updateProps(polygon, {
    +                    shape: {
    +                        points: areaData.getItemLayout(newIdx)
    +                    }
    +                }, maModel, newIdx);
    +                polygonGroup.group.add(polygon);
    +                areaData.setItemGraphicEl(newIdx, polygon);
    +            })
    +            .remove(function (idx) {
    +                var polygon = polygonGroup.__data.getItemGraphicEl(idx);
    +                polygonGroup.group.remove(polygon);
    +            })
    +            .execute();
    +
    +        areaData.eachItemGraphicEl(function (polygon, idx) {
    +            var itemModel = areaData.getItemModel(idx);
    +            var labelModel = itemModel.getModel('label.normal');
    +            var labelHoverModel = itemModel.getModel('label.emphasis');
    +            var color = areaData.getItemVisual(idx, 'color');
    +            polygon.useStyle(
    +                defaults(
    +                    itemModel.getModel('itemStyle.normal').getItemStyle(),
    +                    {
    +                        fill: modifyAlpha(color, 0.4),
    +                        stroke: color
    +                    }
    +                )
    +            );
    +
    +            polygon.hoverStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();
    +
    +            setLabelStyle(
    +                polygon.style, polygon.hoverStyle, labelModel, labelHoverModel,
    +                {
    +                    labelFetcher: maModel,
    +                    labelDataIndex: idx,
    +                    defaultText: areaData.getName(idx) || '',
    +                    isRectText: true,
    +                    autoColor: color
    +                }
    +            );
    +
    +            setHoverStyle(polygon, {});
    +
    +            polygon.dataModel = maModel;
    +        });
    +
    +        polygonGroup.__data = areaData;
    +
    +        polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent');
    +    }
    +});
    +
    +/**
    + * @inner
    + * @param {module:echarts/coord/*} coordSys
    + * @param {module:echarts/model/Series} seriesModel
    + * @param {module:echarts/model/Model} mpModel
    + */
    +function createList$3(coordSys, seriesModel, maModel) {
    +
    +    var coordDimsInfos;
    +    var areaData;
    +    var dims = ['x0', 'y0', 'x1', 'y1'];
    +    if (coordSys) {
    +        coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {
    +            var info = seriesModel.getData().getDimensionInfo(
    +                seriesModel.coordDimToDataDim(coordDim)[0]
    +            ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
    +            info.name = coordDim;
    +            return info;
    +        });
    +        areaData = new List(map(dims, function (dim, idx) {
    +            return {
    +                name: dim,
    +                type: coordDimsInfos[idx % 2].type
    +            };
    +        }), maModel);
    +    }
    +    else {
    +        coordDimsInfos =[{
    +            name: 'value',
    +            type: 'float'
    +        }];
    +        areaData = new List(coordDimsInfos, maModel);
    +    }
    +
    +    var optData = map(maModel.get('data'), curry(
    +        markAreaTransform, seriesModel, coordSys, maModel
    +    ));
    +    if (coordSys) {
    +        optData = filter(
    +            optData, curry(markAreaFilter, coordSys)
    +        );
    +    }
    +
    +    var dimValueGetter$$1 = coordSys ? function (item, dimName, dataIndex, dimIndex) {
    +        return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2];
    +    } : function (item) {
    +        return item.value;
    +    };
    +    areaData.initData(optData, null, dimValueGetter$$1);
    +    areaData.hasItemOption = true;
    +    return areaData;
    +}
    +
    +registerPreprocessor(function (opt) {
    +    // Make sure markArea component is enabled
    +    opt.markArea = opt.markArea || {};
    +});
    +
    +var preprocessor$3 = function (option) {
    +    var timelineOpt = option && option.timeline;
    +
    +    if (!isArray(timelineOpt)) {
    +        timelineOpt = timelineOpt ? [timelineOpt] : [];
    +    }
    +
    +    each$1(timelineOpt, function (opt) {
    +        if (!opt) {
    +            return;
    +        }
    +
    +        compatibleEC2(opt);
    +    });
    +};
    +
    +function compatibleEC2(opt) {
    +    var type = opt.type;
    +
    +    var ec2Types = {'number': 'value', 'time': 'time'};
    +
    +    // Compatible with ec2
    +    if (ec2Types[type]) {
    +        opt.axisType = ec2Types[type];
    +        delete opt.type;
    +    }
    +
    +    transferItem(opt);
    +
    +    if (has$2(opt, 'controlPosition')) {
    +        var controlStyle = opt.controlStyle || (opt.controlStyle = {});
    +        if (!has$2(controlStyle, 'position')) {
    +            controlStyle.position = opt.controlPosition;
    +        }
    +        if (controlStyle.position === 'none' && !has$2(controlStyle, 'show')) {
    +            controlStyle.show = false;
    +            delete controlStyle.position;
    +        }
    +        delete opt.controlPosition;
    +    }
    +
    +    each$1(opt.data || [], function (dataItem) {
    +        if (isObject(dataItem) && !isArray(dataItem)) {
    +            if (!has$2(dataItem, 'value') && has$2(dataItem, 'name')) {
    +                // In ec2, using name as value.
    +                dataItem.value = dataItem.name;
    +            }
    +            transferItem(dataItem);
    +        }
    +    });
    +}
    +
    +function transferItem(opt) {
    +    var itemStyle = opt.itemStyle || (opt.itemStyle = {});
    +
    +    var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {});
    +
    +    // Transfer label out
    +    var label = opt.label || (opt.label || {});
    +    var labelNormal = label.normal || (label.normal = {});
    +    var excludeLabelAttr = {normal: 1, emphasis: 1};
    +
    +    each$1(label, function (value, name) {
    +        if (!excludeLabelAttr[name] && !has$2(labelNormal, name)) {
    +            labelNormal[name] = value;
    +        }
    +    });
    +
    +    if (itemStyleEmphasis.label && !has$2(label, 'emphasis')) {
    +        label.emphasis = itemStyleEmphasis.label;
    +        delete itemStyleEmphasis.label;
    +    }
    +}
    +
    +function has$2(obj, attr) {
    +    return obj.hasOwnProperty(attr);
    +}
    +
    +ComponentModel.registerSubTypeDefaulter('timeline', function () {
    +    // Only slider now.
    +    return 'slider';
    +});
    +
    +registerAction(
    +
    +    {type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate'},
    +
    +    function (payload, ecModel) {
    +
    +        var timelineModel = ecModel.getComponent('timeline');
    +        if (timelineModel && payload.currentIndex != null) {
    +            timelineModel.setCurrentIndex(payload.currentIndex);
    +
    +            if (!timelineModel.get('loop', true) && timelineModel.isIndexMax()) {
    +                timelineModel.setPlayState(false);
    +            }
    +        }
    +
    +        // Set normalized currentIndex to payload.
    +        ecModel.resetOption('timeline');
    +
    +        return defaults({
    +            currentIndex: timelineModel.option.currentIndex
    +        }, payload);
    +    }
    +);
    +
    +registerAction(
    +
    +    {type: 'timelinePlayChange', event: 'timelinePlayChanged', update: 'update'},
    +
    +    function (payload, ecModel) {
    +        var timelineModel = ecModel.getComponent('timeline');
    +        if (timelineModel && payload.playState != null) {
    +            timelineModel.setPlayState(payload.playState);
    +        }
    +    }
    +);
    +
    +var TimelineModel = ComponentModel.extend({
    +
    +    type: 'timeline',
    +
    +    layoutMode: 'box',
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +
    +        zlevel: 0,                  // 一级层叠
    +        z: 4,                       // 二级层叠
    +        show: true,
    +
    +        axisType: 'time',  // 模式是时间类型,支持 value, category
    +
    +        realtime: true,
    +
    +        left: '20%',
    +        top: null,
    +        right: '20%',
    +        bottom: 0,
    +        width: null,
    +        height: 40,
    +        padding: 5,
    +
    +        controlPosition: 'left',           // 'left' 'right' 'top' 'bottom' 'none'
    +        autoPlay: false,
    +        rewind: false,                     // 反向播放
    +        loop: true,
    +        playInterval: 2000,                // 播放时间间隔,单位ms
    +
    +        currentIndex: 0,
    +
    +        itemStyle: {
    +            normal: {},
    +            emphasis: {}
    +        },
    +        label: {
    +            normal: {
    +                color: '#000'
    +            },
    +            emphasis: {}
    +        },
    +
    +        data: []
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    init: function (option, parentModel, ecModel) {
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/data/List}
    +         */
    +        this._data;
    +
    +        /**
    +         * @private
    +         * @type {Array.<string>}
    +         */
    +        this._names;
    +
    +        this.mergeDefaultAndTheme(option, ecModel);
    +        this._initData();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    mergeOption: function (option) {
    +        TimelineModel.superApply(this, 'mergeOption', arguments);
    +        this._initData();
    +    },
    +
    +    /**
    +     * @param {number} [currentIndex]
    +     */
    +    setCurrentIndex: function (currentIndex) {
    +        if (currentIndex == null) {
    +            currentIndex = this.option.currentIndex;
    +        }
    +        var count = this._data.count();
    +
    +        if (this.option.loop) {
    +            currentIndex = (currentIndex % count + count) % count;
    +        }
    +        else {
    +            currentIndex >= count && (currentIndex = count - 1);
    +            currentIndex < 0 && (currentIndex = 0);
    +        }
    +
    +        this.option.currentIndex = currentIndex;
    +    },
    +
    +    /**
    +     * @return {number} currentIndex
    +     */
    +    getCurrentIndex: function () {
    +        return this.option.currentIndex;
    +    },
    +
    +    /**
    +     * @return {boolean}
    +     */
    +    isIndexMax: function () {
    +        return this.getCurrentIndex() >= this._data.count() - 1;
    +    },
    +
    +    /**
    +     * @param {boolean} state true: play, false: stop
    +     */
    +    setPlayState: function (state) {
    +        this.option.autoPlay = !!state;
    +    },
    +
    +    /**
    +     * @return {boolean} true: play, false: stop
    +     */
    +    getPlayState: function () {
    +        return !!this.option.autoPlay;
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _initData: function () {
    +        var thisOption = this.option;
    +        var dataArr = thisOption.data || [];
    +        var axisType = thisOption.axisType;
    +        var names = this._names = [];
    +
    +        if (axisType === 'category') {
    +            var idxArr = [];
    +            each$1(dataArr, function (item, index) {
    +                var value = getDataItemValue(item);
    +                var newItem;
    +
    +                if (isObject(item)) {
    +                    newItem = clone(item);
    +                    newItem.value = index;
    +                }
    +                else {
    +                    newItem = index;
    +                }
    +
    +                idxArr.push(newItem);
    +
    +                if (!isString(value) && (value == null || isNaN(value))) {
    +                    value = '';
    +                }
    +
    +                names.push(value + '');
    +            });
    +            dataArr = idxArr;
    +        }
    +
    +        var dimType = ({category: 'ordinal', time: 'time'})[axisType] || 'number';
    +
    +        var data = this._data = new List([{name: 'value', type: dimType}], this);
    +
    +        data.initData(dataArr, names);
    +    },
    +
    +    getData: function () {
    +        return this._data;
    +    },
    +
    +    /**
    +     * @public
    +     * @return {Array.<string>} categoreis
    +     */
    +    getCategories: function () {
    +        if (this.get('axisType') === 'category') {
    +            return this._names.slice();
    +        }
    +    }
    +
    +});
    +
    +var SliderTimelineModel = TimelineModel.extend({
    +
    +    type: 'timeline.slider',
    +
    +    /**
    +     * @protected
    +     */
    +    defaultOption: {
    +
    +        backgroundColor: 'rgba(0,0,0,0)',   // 时间轴背景颜色
    +        borderColor: '#ccc',               // 时间轴边框颜色
    +        borderWidth: 0,                    // 时间轴边框线宽,单位px,默认为0(无边框)
    +
    +        orient: 'horizontal',              // 'vertical'
    +        inverse: false,
    +
    +        tooltip: {                          // boolean or Object
    +            trigger: 'item'                 // data item may also have tootip attr.
    +        },
    +
    +        symbol: 'emptyCircle',
    +        symbolSize: 10,
    +
    +        lineStyle: {
    +            show: true,
    +            width: 2,
    +            color: '#304654'
    +        },
    +        label: {                            // 文本标签
    +            position: 'auto',           // auto left right top bottom
    +                                        // When using number, label position is not
    +                                        // restricted by viewRect.
    +                                        // positive: right/bottom, negative: left/top
    +            normal: {
    +                show: true,
    +                interval: 'auto',
    +                rotate: 0,
    +                // formatter: null,
    +                // 其余属性默认使用全局文本样式,详见TEXTSTYLE
    +                color: '#304654'
    +            },
    +            emphasis: {
    +                show: true,
    +                // 其余属性默认使用全局文本样式,详见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: true,
    +            animationDuration: 300,
    +            animationEasing: 'quinticInOut'
    +        },
    +
    +        controlStyle: {
    +            show: true,
    +            showPlayBtn: true,
    +            showPrevBtn: true,
    +            showNextBtn: true,
    +            itemSize: 22,
    +            itemGap: 12,
    +            position: 'left',  // 'left' 'right' 'top' 'bottom'
    +            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', // jshint ignore:line
    +            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', // jshint ignore:line
    +            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', // jshint ignore:line
    +            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', // jshint ignore:line
    +            normal: {
    +                color: '#304654',
    +                borderColor: '#304654',
    +                borderWidth: 1
    +            },
    +            emphasis: {
    +                color: '#c23531',
    +                borderColor: '#c23531',
    +                borderWidth: 2
    +            }
    +        },
    +        data: []
    +    }
    +
    +});
    +
    +mixin(SliderTimelineModel, dataFormatMixin);
    +
    +var TimelineView = Component.extend({
    +    type: 'timeline'
    +});
    +
    +/**
    + * Extend axis 2d
    + * @constructor module:echarts/coord/cartesian/Axis2D
    + * @extends {module:echarts/coord/cartesian/Axis}
    + * @param {string} dim
    + * @param {*} scale
    + * @param {Array.<number>} coordExtent
    + * @param {string} axisType
    + * @param {string} position
    + */
    +var TimelineAxis = function (dim, scale, coordExtent, axisType) {
    +
    +    Axis.call(this, dim, scale, coordExtent);
    +
    +    /**
    +     * Axis type
    +     *  - 'category'
    +     *  - 'value'
    +     *  - 'time'
    +     *  - 'log'
    +     * @type {string}
    +     */
    +    this.type = axisType || 'value';
    +
    +    /**
    +     * @private
    +     * @type {number}
    +     */
    +    this._autoLabelInterval;
    +
    +    /**
    +     * Axis model
    +     * @param {module:echarts/component/TimelineModel}
    +     */
    +    this.model = null;
    +};
    +
    +TimelineAxis.prototype = {
    +
    +    constructor: TimelineAxis,
    +
    +    /**
    +     * @public
    +     * @return {number}
    +     */
    +    getLabelInterval: function () {
    +        var timelineModel = this.model;
    +        var labelModel = timelineModel.getModel('label.normal');
    +        var labelInterval = labelModel.get('interval');
    +
    +        if (labelInterval != null && labelInterval != 'auto') {
    +            return labelInterval;
    +        }
    +
    +        var labelInterval = this._autoLabelInterval;
    +
    +        if (!labelInterval) {
    +            labelInterval = this._autoLabelInterval = getAxisLabelInterval(
    +                map(this.scale.getTicks(), this.dataToCoord, this),
    +                getFormattedLabels(this, labelModel.get('formatter')),
    +                labelModel.getFont(),
    +                timelineModel.get('orient') === 'horizontal' ? 0 : 90,
    +                labelModel.get('rotate')
    +            );
    +        }
    +
    +        return labelInterval;
    +    },
    +
    +    /**
    +     * If label is ignored.
    +     * Automatically used when axis is category and label can not be all shown
    +     * @public
    +     * @param  {number} idx
    +     * @return {boolean}
    +     */
    +    isLabelIgnored: function (idx) {
    +        if (this.type === 'category') {
    +            var labelInterval = this.getLabelInterval();
    +            return ((typeof labelInterval === 'function')
    +                && !labelInterval(idx, this.scale.getLabel(idx)))
    +                || idx % (labelInterval + 1);
    +        }
    +    }
    +
    +};
    +
    +inherits(TimelineAxis, Axis);
    +
    +var bind$6 = bind;
    +var each$30 = each$1;
    +
    +var PI$4 = Math.PI;
    +
    +TimelineView.extend({
    +
    +    type: 'timeline.slider',
    +
    +    init: function (ecModel, api) {
    +
    +        this.api = api;
    +
    +        /**
    +         * @private
    +         * @type {module:echarts/component/timeline/TimelineAxis}
    +         */
    +        this._axis;
    +
    +        /**
    +         * @private
    +         * @type {module:zrender/core/BoundingRect}
    +         */
    +        this._viewRect;
    +
    +        /**
    +         * @type {number}
    +         */
    +        this._timer;
    +
    +        /**
    +         * @type {module:zrender/Element}
    +         */
    +        this._currentPointer;
    +
    +        /**
    +         * @type {module:zrender/container/Group}
    +         */
    +        this._mainGroup;
    +
    +        /**
    +         * @type {module:zrender/container/Group}
    +         */
    +        this._labelGroup;
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    render: function (timelineModel, ecModel, api, payload) {
    +        this.model = timelineModel;
    +        this.api = api;
    +        this.ecModel = ecModel;
    +
    +        this.group.removeAll();
    +
    +        if (timelineModel.get('show', true)) {
    +
    +            var layoutInfo = this._layout(timelineModel, api);
    +            var mainGroup = this._createGroup('mainGroup');
    +            var labelGroup = this._createGroup('labelGroup');
    +
    +            /**
    +             * @private
    +             * @type {module:echarts/component/timeline/TimelineAxis}
    +             */
    +            var axis = this._axis = this._createAxis(layoutInfo, timelineModel);
    +
    +            timelineModel.formatTooltip = function (dataIndex) {
    +                return encodeHTML(axis.scale.getLabel(dataIndex));
    +            };
    +
    +            each$30(
    +                ['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'],
    +                function (name) {
    +                    this['_render' + name](layoutInfo, mainGroup, axis, timelineModel);
    +                },
    +                this
    +            );
    +
    +            this._renderAxisLabel(layoutInfo, labelGroup, axis, timelineModel);
    +            this._position(layoutInfo, timelineModel);
    +        }
    +
    +        this._doPlayStop();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    remove: function () {
    +        this._clearTimer();
    +        this.group.removeAll();
    +    },
    +
    +    /**
    +     * @override
    +     */
    +    dispose: function () {
    +        this._clearTimer();
    +    },
    +
    +    _layout: function (timelineModel, api) {
    +        var labelPosOpt = timelineModel.get('label.normal.position');
    +        var orient = timelineModel.get('orient');
    +        var viewRect = getViewRect$4(timelineModel, api);
    +        // Auto label offset.
    +        if (labelPosOpt == null || labelPosOpt === 'auto') {
    +            labelPosOpt = orient === 'horizontal'
    +                ? ((viewRect.y + viewRect.height / 2) < api.getHeight() / 2 ? '-' : '+')
    +                : ((viewRect.x + viewRect.width / 2) < api.getWidth() / 2 ? '+' : '-');
    +        }
    +        else if (isNaN(labelPosOpt)) {
    +            labelPosOpt = ({
    +                horizontal: {top: '-', bottom: '+'},
    +                vertical: {left: '-', right: '+'}
    +            })[orient][labelPosOpt];
    +        }
    +
    +        var labelAlignMap = {
    +            horizontal: 'center',
    +            vertical: (labelPosOpt >= 0 || labelPosOpt === '+') ? 'left' : 'right'
    +        };
    +
    +        var labelBaselineMap = {
    +            horizontal: (labelPosOpt >= 0 || labelPosOpt === '+') ? 'top' : 'bottom',
    +            vertical: 'middle'
    +        };
    +        var rotationMap = {
    +            horizontal: 0,
    +            vertical: PI$4 / 2
    +        };
    +
    +        // Position
    +        var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;
    +
    +        var controlModel = timelineModel.getModel('controlStyle');
    +        var showControl = controlModel.get('show');
    +        var controlSize = showControl ? controlModel.get('itemSize') : 0;
    +        var controlGap = showControl ? controlModel.get('itemGap') : 0;
    +        var sizePlusGap = controlSize + controlGap;
    +
    +        // Special label rotate.
    +        var labelRotation = timelineModel.get('label.normal.rotate') || 0;
    +        labelRotation = labelRotation * PI$4 / 180; // To radian.
    +
    +        var playPosition;
    +        var prevBtnPosition;
    +        var nextBtnPosition;
    +        var axisExtent;
    +        var controlPosition = controlModel.get('position', true);
    +        var showControl = controlModel.get('show', true);
    +        var showPlayBtn = showControl && controlModel.get('showPlayBtn', true);
    +        var showPrevBtn = showControl && controlModel.get('showPrevBtn', true);
    +        var showNextBtn = showControl && controlModel.get('showNextBtn', true);
    +        var xLeft = 0;
    +        var xRight = mainLength;
    +
    +        // position[0] means left, position[1] means middle.
    +        if (controlPosition === 'left' || controlPosition === 'bottom') {
    +            showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);
    +            showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);
    +            showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
    +        }
    +        else { // 'top' 'right'
    +            showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
    +            showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);
    +            showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
    +        }
    +        axisExtent = [xLeft, xRight];
    +
    +        if (timelineModel.get('inverse')) {
    +            axisExtent.reverse();
    +        }
    +
    +        return {
    +            viewRect: viewRect,
    +            mainLength: mainLength,
    +            orient: orient,
    +
    +            rotation: rotationMap[orient],
    +            labelRotation: labelRotation,
    +            labelPosOpt: labelPosOpt,
    +            labelAlign: timelineModel.get('label.normal.align') || labelAlignMap[orient],
    +            labelBaseline: timelineModel.get('label.normal.verticalAlign')
    +                || timelineModel.get('label.normal.baseline')
    +                || labelBaselineMap[orient],
    +
    +            // Based on mainGroup.
    +            playPosition: playPosition,
    +            prevBtnPosition: prevBtnPosition,
    +            nextBtnPosition: nextBtnPosition,
    +            axisExtent: axisExtent,
    +
    +            controlSize: controlSize,
    +            controlGap: controlGap
    +        };
    +    },
    +
    +    _position: function (layoutInfo, timelineModel) {
    +        // Position is be called finally, because bounding rect is needed for
    +        // adapt content to fill viewRect (auto adapt offset).
    +
    +        // Timeline may be not all in the viewRect when 'offset' is specified
    +        // as a number, because it is more appropriate that label aligns at
    +        // 'offset' but not the other edge defined by viewRect.
    +
    +        var mainGroup = this._mainGroup;
    +        var labelGroup = this._labelGroup;
    +
    +        var viewRect = layoutInfo.viewRect;
    +        if (layoutInfo.orient === 'vertical') {
    +            // transfrom to horizontal, inverse rotate by left-top point.
    +            var m = create$1();
    +            var rotateOriginX = viewRect.x;
    +            var rotateOriginY = viewRect.y + viewRect.height;
    +            translate(m, m, [-rotateOriginX, -rotateOriginY]);
    +            rotate(m, m, -PI$4 / 2);
    +            translate(m, m, [rotateOriginX, rotateOriginY]);
    +            viewRect = viewRect.clone();
    +            viewRect.applyTransform(m);
    +        }
    +
    +        var viewBound = getBound(viewRect);
    +        var mainBound = getBound(mainGroup.getBoundingRect());
    +        var labelBound = getBound(labelGroup.getBoundingRect());
    +
    +        var mainPosition = mainGroup.position;
    +        var labelsPosition = labelGroup.position;
    +
    +        labelsPosition[0] = mainPosition[0] = viewBound[0][0];
    +
    +        var labelPosOpt = layoutInfo.labelPosOpt;
    +
    +        if (isNaN(labelPosOpt)) { // '+' or '-'
    +            var mainBoundIdx = labelPosOpt === '+' ? 0 : 1;
    +            toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);
    +            toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);
    +        }
    +        else {
    +            var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;
    +            toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);
    +            labelsPosition[1] = mainPosition[1] + labelPosOpt;
    +        }
    +
    +        mainGroup.attr('position', mainPosition);
    +        labelGroup.attr('position', labelsPosition);
    +        mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;
    +
    +        setOrigin(mainGroup);
    +        setOrigin(labelGroup);
    +
    +        function setOrigin(targetGroup) {
    +            var pos = targetGroup.position;
    +            targetGroup.origin = [
    +                viewBound[0][0] - pos[0],
    +                viewBound[1][0] - pos[1]
    +            ];
    +        }
    +
    +        function getBound(rect) {
    +            // [[xmin, xmax], [ymin, ymax]]
    +            return [
    +                [rect.x, rect.x + rect.width],
    +                [rect.y, rect.y + rect.height]
    +            ];
    +        }
    +
    +        function toBound(fromPos, from, to, dimIdx, boundIdx) {
    +            fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];
    +        }
    +    },
    +
    +    _createAxis: function (layoutInfo, timelineModel) {
    +        var data = timelineModel.getData();
    +        var axisType = timelineModel.get('axisType');
    +
    +        var scale = createScaleByModel(timelineModel, axisType);
    +        var dataExtent = data.getDataExtent('value');
    +        scale.setExtent(dataExtent[0], dataExtent[1]);
    +        this._customizeScale(scale, data);
    +        scale.niceTicks();
    +
    +        var axis = new TimelineAxis('value', scale, layoutInfo.axisExtent, axisType);
    +        axis.model = timelineModel;
    +
    +        return axis;
    +    },
    +
    +    _customizeScale: function (scale, data) {
    +
    +        scale.getTicks = function () {
    +            return data.mapArray(['value'], function (value) {
    +                return value;
    +            });
    +        };
    +
    +        scale.getTicksLabels = function () {
    +            return map(this.getTicks(), scale.getLabel, scale);
    +        };
    +    },
    +
    +    _createGroup: function (name) {
    +        var newGroup = this['_' + name] = new Group();
    +        this.group.add(newGroup);
    +        return newGroup;
    +    },
    +
    +    _renderAxisLine: function (layoutInfo, group, axis, timelineModel) {
    +        var axisExtent = axis.getExtent();
    +
    +        if (!timelineModel.get('lineStyle.show')) {
    +            return;
    +        }
    +
    +        group.add(new Line({
    +            shape: {
    +                x1: axisExtent[0], y1: 0,
    +                x2: axisExtent[1], y2: 0
    +            },
    +            style: extend(
    +                {lineCap: 'round'},
    +                timelineModel.getModel('lineStyle').getLineStyle()
    +            ),
    +            silent: true,
    +            z2: 1
    +        }));
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderAxisTick: function (layoutInfo, group, axis, timelineModel) {
    +        var data = timelineModel.getData();
    +        var ticks = axis.scale.getTicks();
    +
    +        each$30(ticks, function (value, dataIndex) {
    +
    +            var tickCoord = axis.dataToCoord(value);
    +            var itemModel = data.getItemModel(dataIndex);
    +            var itemStyleModel = itemModel.getModel('itemStyle.normal');
    +            var hoverStyleModel = itemModel.getModel('itemStyle.emphasis');
    +            var symbolOpt = {
    +                position: [tickCoord, 0],
    +                onclick: bind$6(this._changeTimeline, this, dataIndex)
    +            };
    +            var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);
    +            setHoverStyle(el, hoverStyleModel.getItemStyle());
    +
    +            if (itemModel.get('tooltip')) {
    +                el.dataIndex = dataIndex;
    +                el.dataModel = timelineModel;
    +            }
    +            else {
    +                el.dataIndex = el.dataModel = null;
    +            }
    +
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderAxisLabel: function (layoutInfo, group, axis, timelineModel) {
    +        var labelModel = timelineModel.getModel('label.normal');
    +
    +        if (!labelModel.get('show')) {
    +            return;
    +        }
    +
    +        var data = timelineModel.getData();
    +        var ticks = axis.scale.getTicks();
    +        var labels = getFormattedLabels(
    +            axis, labelModel.get('formatter')
    +        );
    +        var labelInterval = axis.getLabelInterval();
    +
    +        each$30(ticks, function (tick, dataIndex) {
    +            if (axis.isLabelIgnored(dataIndex, labelInterval)) {
    +                return;
    +            }
    +
    +            var itemModel = data.getItemModel(dataIndex);
    +            var normalLabelModel = itemModel.getModel('label.normal');
    +            var hoverLabelModel = itemModel.getModel('label.emphasis');
    +            var tickCoord = axis.dataToCoord(tick);
    +            var textEl = new Text({
    +                position: [tickCoord, 0],
    +                rotation: layoutInfo.labelRotation - layoutInfo.rotation,
    +                onclick: bind$6(this._changeTimeline, this, dataIndex),
    +                silent: false
    +            });
    +            setTextStyle(textEl.style, normalLabelModel, {
    +                text: labels[dataIndex],
    +                textAlign: layoutInfo.labelAlign,
    +                textVerticalAlign: layoutInfo.labelBaseline
    +            });
    +
    +            group.add(textEl);
    +            setHoverStyle(
    +                textEl, setTextStyle({}, hoverLabelModel)
    +            );
    +
    +        }, this);
    +    },
    +
    +    /**
    +     * @private
    +     */
    +    _renderControl: function (layoutInfo, group, axis, timelineModel) {
    +        var controlSize = layoutInfo.controlSize;
    +        var rotation = layoutInfo.rotation;
    +
    +        var itemStyle = timelineModel.getModel('controlStyle.normal').getItemStyle();
    +        var hoverStyle = timelineModel.getModel('controlStyle.emphasis').getItemStyle();
    +        var rect = [0, -controlSize / 2, controlSize, controlSize];
    +        var playState = timelineModel.getPlayState();
    +        var inverse = timelineModel.get('inverse', true);
    +
    +        makeBtn(
    +            layoutInfo.nextBtnPosition,
    +            'controlStyle.nextIcon',
    +            bind$6(this._changeTimeline, this, inverse ? '-' : '+')
    +        );
    +        makeBtn(
    +            layoutInfo.prevBtnPosition,
    +            'controlStyle.prevIcon',
    +            bind$6(this._changeTimeline, this, inverse ? '+' : '-')
    +        );
    +        makeBtn(
    +            layoutInfo.playPosition,
    +            'controlStyle.' + (playState ? 'stopIcon' : 'playIcon'),
    +            bind$6(this._handlePlayClick, this, !playState),
    +            true
    +        );
    +
    +        function makeBtn(position, iconPath, onclick, willRotate) {
    +            if (!position) {
    +                return;
    +            }
    +            var opt = {
    +                position: position,
    +                origin: [controlSize / 2, 0],
    +                rotation: willRotate ? -rotation : 0,
    +                rectHover: true,
    +                style: itemStyle,
    +                onclick: onclick
    +            };
    +            var btn = makeIcon(timelineModel, iconPath, rect, opt);
    +            group.add(btn);
    +            setHoverStyle(btn, hoverStyle);
    +        }
    +    },
    +
    +    _renderCurrentPointer: function (layoutInfo, group, axis, timelineModel) {
    +        var data = timelineModel.getData();
    +        var currentIndex = timelineModel.getCurrentIndex();
    +        var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle');
    +        var me = this;
    +
    +        var callback = {
    +            onCreate: function (pointer) {
    +                pointer.draggable = true;
    +                pointer.drift = bind$6(me._handlePointerDrag, me);
    +                pointer.ondragend = bind$6(me._handlePointerDragend, me);
    +                pointerMoveTo(pointer, currentIndex, axis, timelineModel, true);
    +            },
    +            onUpdate: function (pointer) {
    +                pointerMoveTo(pointer, currentIndex, axis, timelineModel);
    +            }
    +        };
    +
    +        // Reuse when exists, for animation and drag.
    +        this._currentPointer = giveSymbol(
    +            pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback
    +        );
    +    },
    +
    +    _handlePlayClick: function (nextState) {
    +        this._clearTimer();
    +        this.api.dispatchAction({
    +            type: 'timelinePlayChange',
    +            playState: nextState,
    +            from: this.uid
    +        });
    +    },
    +
    +    _handlePointerDrag: function (dx, dy, e) {
    +        this._clearTimer();
    +        this._pointerChangeTimeline([e.offsetX, e.offsetY]);
    +    },
    +
    +    _handlePointerDragend: function (e) {
    +        this._pointerChangeTimeline([e.offsetX, e.offsetY], true);
    +    },
    +
    +    _pointerChangeTimeline: function (mousePos, trigger) {
    +        var toCoord = this._toAxisCoord(mousePos)[0];
    +
    +        var axis = this._axis;
    +        var axisExtent = asc(axis.getExtent().slice());
    +
    +        toCoord > axisExtent[1] && (toCoord = axisExtent[1]);
    +        toCoord < axisExtent[0] && (toCoord = axisExtent[0]);
    +
    +        this._currentPointer.position[0] = toCoord;
    +        this._currentPointer.dirty();
    +
    +        var targetDataIndex = this._findNearestTick(toCoord);
    +        var timelineModel = this.model;
    +
    +        if (trigger || (
    +            targetDataIndex !== timelineModel.getCurrentIndex()
    +            && timelineModel.get('realtime')
    +        )) {
    +            this._changeTimeline(targetDataIndex);
    +        }
    +    },
    +
    +    _doPlayStop: function () {
    +        this._clearTimer();
    +
    +        if (this.model.getPlayState()) {
    +            this._timer = setTimeout(
    +                bind$6(handleFrame, this),
    +                this.model.get('playInterval')
    +            );
    +        }
    +
    +        function handleFrame() {
    +            // Do not cache
    +            var timelineModel = this.model;
    +            this._changeTimeline(
    +                timelineModel.getCurrentIndex()
    +                + (timelineModel.get('rewind', true) ? -1 : 1)
    +            );
    +        }
    +    },
    +
    +    _toAxisCoord: function (vertex) {
    +        var trans = this._mainGroup.getLocalTransform();
    +        return applyTransform$1(vertex, trans, true);
    +    },
    +
    +    _findNearestTick: function (axisCoord) {
    +        var data = this.model.getData();
    +        var dist = Infinity;
    +        var targetDataIndex;
    +        var axis = this._axis;
    +
    +        data.each(['value'], function (value, dataIndex) {
    +            var coord = axis.dataToCoord(value);
    +            var d = Math.abs(coord - axisCoord);
    +            if (d < dist) {
    +                dist = d;
    +                targetDataIndex = dataIndex;
    +            }
    +        });
    +
    +        return targetDataIndex;
    +    },
    +
    +    _clearTimer: function () {
    +        if (this._timer) {
    +            clearTimeout(this._timer);
    +            this._timer = null;
    +        }
    +    },
    +
    +    _changeTimeline: function (nextIndex) {
    +        var currentIndex = this.model.getCurrentIndex();
    +
    +        if (nextIndex === '+') {
    +            nextIndex = currentIndex + 1;
    +        }
    +        else if (nextIndex === '-') {
    +            nextIndex = currentIndex - 1;
    +        }
    +
    +        this.api.dispatchAction({
    +            type: 'timelineChange',
    +            currentIndex: nextIndex,
    +            from: this.uid
    +        });
    +    }
    +
    +});
    +
    +function getViewRect$4(model, api) {
    +    return getLayoutRect(
    +        model.getBoxLayoutParams(),
    +        {
    +            width: api.getWidth(),
    +            height: api.getHeight()
    +        },
    +        model.get('padding')
    +    );
    +}
    +
    +function makeIcon(timelineModel, objPath, rect, opts) {
    +    var icon = makePath(
    +        timelineModel.get(objPath).replace(/^path:\/\//, ''),
    +        clone(opts || {}),
    +        new BoundingRect(rect[0], rect[1], rect[2], rect[3]),
    +        'center'
    +    );
    +
    +    return icon;
    +}
    +
    +/**
    + * Create symbol or update symbol
    + * opt: basic position and event handlers
    + */
    +function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {
    +    var color = itemStyleModel.get('color');
    +
    +    if (!symbol) {
    +        var symbolType = hostModel.get('symbol');
    +        symbol = createSymbol(symbolType, -1, -1, 2, 2, color);
    +        symbol.setStyle('strokeNoScale', true);
    +        group.add(symbol);
    +        callback && callback.onCreate(symbol);
    +    }
    +    else {
    +        symbol.setColor(color);
    +        group.add(symbol); // Group may be new, also need to add.
    +        callback && callback.onUpdate(symbol);
    +    }
    +
    +    // Style
    +    var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);
    +    symbol.setStyle(itemStyle);
    +
    +    // Transform and events.
    +    opt = merge({
    +        rectHover: true,
    +        z2: 100
    +    }, opt, true);
    +
    +    var symbolSize = hostModel.get('symbolSize');
    +    symbolSize = symbolSize instanceof Array
    +        ? symbolSize.slice()
    +        : [+symbolSize, +symbolSize];
    +    symbolSize[0] /= 2;
    +    symbolSize[1] /= 2;
    +    opt.scale = symbolSize;
    +
    +    var symbolOffset = hostModel.get('symbolOffset');
    +    if (symbolOffset) {
    +        var pos = opt.position = opt.position || [0, 0];
    +        pos[0] += parsePercent$1(symbolOffset[0], symbolSize[0]);
    +        pos[1] += parsePercent$1(symbolOffset[1], symbolSize[1]);
    +    }
    +
    +    var symbolRotate = hostModel.get('symbolRotate');
    +    opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;
    +
    +    symbol.attr(opt);
    +
    +    // FIXME
    +    // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,
    +    // getBoundingRect will return wrong result.
    +    // (This is supposed to be resolved in zrender, but it is a little difficult to
    +    // leverage performance and auto updateTransform)
    +    // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.
    +    symbol.updateTransform();
    +
    +    return symbol;
    +}
    +
    +function pointerMoveTo(pointer, dataIndex, axis, timelineModel, noAnimation) {
    +    if (pointer.dragging) {
    +        return;
    +    }
    +
    +    var pointerModel = timelineModel.getModel('checkpointStyle');
    +    var toCoord = axis.dataToCoord(timelineModel.getData().get(['value'], dataIndex));
    +
    +    if (noAnimation || !pointerModel.get('animation', true)) {
    +        pointer.attr({position: [toCoord, 0]});
    +    }
    +    else {
    +        pointer.stopAnimation(true);
    +        pointer.animateTo(
    +            {position: [toCoord, 0]},
    +            pointerModel.get('animationDuration', true),
    +            pointerModel.get('animationEasing', true)
    +        );
    +    }
    +}
    +
    +/**
    + * DataZoom component entry
    + */
    +
    +registerPreprocessor(preprocessor$3);
    +
    +var ToolboxModel = extendComponentModel({
    +
    +    type: 'toolbox',
    +
    +    layoutMode: {
    +        type: 'box',
    +        ignoreSize: true
    +    },
    +
    +    mergeDefaultAndTheme: function (option) {
    +        ToolboxModel.superApply(this, 'mergeDefaultAndTheme', arguments);
    +
    +        each$1(this.option.feature, function (featureOpt, featureName) {
    +            var Feature = get$5(featureName);
    +            Feature && merge(featureOpt, Feature.defaultOption);
    +        });
    +    },
    +
    +    defaultOption: {
    +
    +        show: true,
    +
    +        z: 6,
    +
    +        zlevel: 0,
    +
    +        orient: 'horizontal',
    +
    +        left: 'right',
    +
    +        top: 'top',
    +
    +        // right
    +        // bottom
    +
    +        backgroundColor: 'transparent',
    +
    +        borderColor: '#ccc',
    +
    +        borderRadius: 0,
    +
    +        borderWidth: 0,
    +
    +        padding: 5,
    +
    +        itemSize: 15,
    +
    +        itemGap: 8,
    +
    +        showTitle: true,
    +
    +        iconStyle: {
    +            normal: {
    +                borderColor: '#666',
    +                color: 'none'
    +            },
    +            emphasis: {
    +                borderColor: '#3E98C5'
    +            }
    +        }
    +        // textStyle: {},
    +
    +        // feature
    +    }
    +});
    +
    +extendComponentView({
    +
    +    type: 'toolbox',
    +
    +    render: function (toolboxModel, ecModel, api, payload) {
    +        var group = this.group;
    +        group.removeAll();
    +
    +        if (!toolboxModel.get('show')) {
    +            return;
    +        }
    +
    +        var itemSize = +toolboxModel.get('itemSize');
    +        var featureOpts = toolboxModel.get('feature') || {};
    +        var features = this._features || (this._features = {});
    +
    +        var featureNames = [];
    +        each$1(featureOpts, function (opt, name) {
    +            featureNames.push(name);
    +        });
    +
    +        (new DataDiffer(this._featureNames || [], featureNames))
    +            .add(processFeature)
    +            .update(processFeature)
    +            .remove(curry(processFeature, null))
    +            .execute();
    +
    +        // Keep for diff.
    +        this._featureNames = featureNames;
    +
    +        function processFeature(newIndex, oldIndex) {
    +            var featureName = featureNames[newIndex];
    +            var oldName = featureNames[oldIndex];
    +            var featureOpt = featureOpts[featureName];
    +            var featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel);
    +            var feature;
    +
    +            if (featureName && !oldName) { // Create
    +                if (isUserFeatureName(featureName)) {
    +                    feature = {
    +                        model: featureModel,
    +                        onclick: featureModel.option.onclick,
    +                        featureName: featureName
    +                    };
    +                }
    +                else {
    +                    var Feature = get$5(featureName);
    +                    if (!Feature) {
    +                        return;
    +                    }
    +                    feature = new Feature(featureModel, ecModel, api);
    +                }
    +                features[featureName] = feature;
    +            }
    +            else {
    +                feature = features[oldName];
    +                // If feature does not exsit.
    +                if (!feature) {
    +                    return;
    +                }
    +                feature.model = featureModel;
    +                feature.ecModel = ecModel;
    +                feature.api = api;
    +            }
    +
    +            if (!featureName && oldName) {
    +                feature.dispose && feature.dispose(ecModel, api);
    +                return;
    +            }
    +
    +            if (!featureModel.get('show') || feature.unusable) {
    +                feature.remove && feature.remove(ecModel, api);
    +                return;
    +            }
    +
    +            createIconPaths(featureModel, feature, featureName);
    +
    +            featureModel.setIconStatus = function (iconName, status) {
    +                var option = this.option;
    +                var iconPaths = this.iconPaths;
    +                option.iconStatus = option.iconStatus || {};
    +                option.iconStatus[iconName] = status;
    +                // FIXME
    +                iconPaths[iconName] && iconPaths[iconName].trigger(status);
    +            };
    +
    +            if (feature.render) {
    +                feature.render(featureModel, ecModel, api, payload);
    +            }
    +        }
    +
    +        function createIconPaths(featureModel, feature, featureName) {
    +            var iconStyleModel = featureModel.getModel('iconStyle');
    +
    +            // If one feature has mutiple icon. they are orginaized as
    +            // {
    +            //     icon: {
    +            //         foo: '',
    +            //         bar: ''
    +            //     },
    +            //     title: {
    +            //         foo: '',
    +            //         bar: ''
    +            //     }
    +            // }
    +            var icons = feature.getIcons ? feature.getIcons() : featureModel.get('icon');
    +            var titles = featureModel.get('title') || {};
    +            if (typeof icons === 'string') {
    +                var icon = icons;
    +                var title = titles;
    +                icons = {};
    +                titles = {};
    +                icons[featureName] = icon;
    +                titles[featureName] = title;
    +            }
    +            var iconPaths = featureModel.iconPaths = {};
    +            each$1(icons, function (iconStr, iconName) {
    +                var path = createIcon(
    +                    iconStr,
    +                    {},
    +                    {
    +                        x: -itemSize / 2,
    +                        y: -itemSize / 2,
    +                        width: itemSize,
    +                        height: itemSize
    +                    }
    +                );
    +                path.setStyle(iconStyleModel.getModel('normal').getItemStyle());
    +                path.hoverStyle = iconStyleModel.getModel('emphasis').getItemStyle();
    +
    +                setHoverStyle(path);
    +
    +                if (toolboxModel.get('showTitle')) {
    +                    path.__title = titles[iconName];
    +                    path.on('mouseover', function () {
    +                            // Should not reuse above hoverStyle, which might be modified.
    +                            var hoverStyle = iconStyleModel.getModel('emphasis').getItemStyle();
    +                            path.setStyle({
    +                                text: titles[iconName],
    +                                textPosition: hoverStyle.textPosition || 'bottom',
    +                                textFill: hoverStyle.fill || hoverStyle.stroke || '#000',
    +                                textAlign: hoverStyle.textAlign || 'center'
    +                            });
    +                        })
    +                        .on('mouseout', function () {
    +                            path.setStyle({
    +                                textFill: null
    +                            });
    +                        });
    +                }
    +                path.trigger(featureModel.get('iconStatus.' + iconName) || 'normal');
    +
    +                group.add(path);
    +                path.on('click', bind(
    +                    feature.onclick, feature, ecModel, api, iconName
    +                ));
    +
    +                iconPaths[iconName] = path;
    +            });
    +        }
    +
    +        layout$2(group, toolboxModel, api);
    +        // Render background after group is layout
    +        // FIXME
    +        group.add(makeBackground(group.getBoundingRect(), toolboxModel));
    +
    +        // Adjust icon title positions to avoid them out of screen
    +        group.eachChild(function (icon) {
    +            var titleText = icon.__title;
    +            var hoverStyle = icon.hoverStyle;
    +            // May be background element
    +            if (hoverStyle && titleText) {
    +                var rect = getBoundingRect(
    +                    titleText, makeFont(hoverStyle)
    +                );
    +                var offsetX = icon.position[0] + group.position[0];
    +                var offsetY = icon.position[1] + group.position[1] + itemSize;
    +
    +                var needPutOnTop = false;
    +                if (offsetY + rect.height > api.getHeight()) {
    +                    hoverStyle.textPosition = 'top';
    +                    needPutOnTop = true;
    +                }
    +                var topOffset = needPutOnTop ? (-5 - rect.height) : (itemSize + 8);
    +                if (offsetX + rect.width /  2 > api.getWidth()) {
    +                    hoverStyle.textPosition = ['100%', topOffset];
    +                    hoverStyle.textAlign = 'right';
    +                }
    +                else if (offsetX - rect.width / 2 < 0) {
    +                    hoverStyle.textPosition = [0, topOffset];
    +                    hoverStyle.textAlign = 'left';
    +                }
    +            }
    +        });
    +    },
    +
    +    updateView: function (toolboxModel, ecModel, api, payload) {
    +        each$1(this._features, function (feature) {
    +            feature.updateView && feature.updateView(feature.model, ecModel, api, payload);
    +        });
    +    },
    +
    +    updateLayout: function (toolboxModel, ecModel, api, payload) {
    +        each$1(this._features, function (feature) {
    +            feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);
    +        });
    +    },
    +
    +    remove: function (ecModel, api) {
    +        each$1(this._features, function (feature) {
    +            feature.remove && feature.remove(ecModel, api);
    +        });
    +        this.group.removeAll();
    +    },
    +
    +    dispose: function (ecModel, api) {
    +        each$1(this._features, function (feature) {
    +            feature.dispose && feature.dispose(ecModel, api);
    +        });
    +    }
    +});
    +
    +function isUserFeatureName(featureName) {
    +    return featureName.indexOf('my') === 0;
    +}
    +
    +var saveAsImageLang = lang.toolbox.saveAsImage;
    +
    +function SaveAsImage(model) {
    +    this.model = model;
    +}
    +
    +SaveAsImage.defaultOption = {
    +    show: true,
    +    icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',
    +    title: saveAsImageLang.title,
    +    type: 'png',
    +    // Default use option.backgroundColor
    +    // backgroundColor: '#fff',
    +    name: '',
    +    excludeComponents: ['toolbox'],
    +    pixelRatio: 1,
    +    lang: saveAsImageLang.lang.slice()
    +};
    +
    +SaveAsImage.prototype.unusable = !env$1.canvasSupported;
    +
    +var proto$2 = SaveAsImage.prototype;
    +
    +proto$2.onclick = function (ecModel, api) {
    +    var model = this.model;
    +    var title = model.get('name') || ecModel.get('title.0.text') || 'echarts';
    +    var $a = document.createElement('a');
    +    var type = model.get('type', true) || 'png';
    +    $a.download = title + '.' + type;
    +    $a.target = '_blank';
    +    var url = api.getConnectedDataURL({
    +        type: type,
    +        backgroundColor: model.get('backgroundColor', true)
    +            || ecModel.get('backgroundColor') || '#fff',
    +        excludeComponents: model.get('excludeComponents'),
    +        pixelRatio: model.get('pixelRatio')
    +    });
    +    $a.href = url;
    +    // Chrome and Firefox
    +    if (typeof MouseEvent === 'function' && !env$1.browser.ie && !env$1.browser.edge) {
    +        var evt = new MouseEvent('click', {
    +            view: window,
    +            bubbles: true,
    +            cancelable: false
    +        });
    +        $a.dispatchEvent(evt);
    +    }
    +    // IE
    +    else {
    +        if (window.navigator.msSaveOrOpenBlob) {
    +            var bstr = atob(url.split(',')[1]);
    +            var n = bstr.length;
    +            var u8arr = new Uint8Array(n);
    +            while(n--) {
    +                u8arr[n] = bstr.charCodeAt(n);
    +            }
    +            var blob = new Blob([u8arr]);
    +            window.navigator.msSaveOrOpenBlob(blob, title + '.' + type);
    +        }
    +        else {
    +            var lang$$1 = model.get('lang');
    +            var html = '' +
    +                '<body style="margin:0;">' +
    +                '<img src="' + url + '" style="max-width:100%;" title="' + ((lang$$1 && lang$$1[0]) || '') + '" />' +
    +                '</body>';
    +            var tab = window.open();
    +            tab.document.write(html);
    +        }
    +    }
    +};
    +
    +register$1(
    +    'saveAsImage', SaveAsImage
    +);
    +
    +var magicTypeLang = lang.toolbox.magicType;
    +
    +function MagicType(model) {
    +    this.model = model;
    +}
    +
    +MagicType.defaultOption = {
    +    show: true,
    +    type: [],
    +    // Icon group
    +    icon: {
    +        line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',
    +        bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',
    +        stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z', // jshint ignore:line
    +        tiled: 'M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z'
    +    },
    +    // `line`, `bar`, `stack`, `tiled`
    +    title: clone(magicTypeLang.title),
    +    option: {},
    +    seriesIndex: {}
    +};
    +
    +var proto$3 = MagicType.prototype;
    +
    +proto$3.getIcons = function () {
    +    var model = this.model;
    +    var availableIcons = model.get('icon');
    +    var icons = {};
    +    each$1(model.get('type'), function (type) {
    +        if (availableIcons[type]) {
    +            icons[type] = availableIcons[type];
    +        }
    +    });
    +    return icons;
    +};
    +
    +var seriesOptGenreator = {
    +    'line': function (seriesType, seriesId, seriesModel, model) {
    +        if (seriesType === 'bar') {
    +            return merge({
    +                id: seriesId,
    +                type: 'line',
    +                // Preserve data related option
    +                data: seriesModel.get('data'),
    +                stack: seriesModel.get('stack'),
    +                markPoint: seriesModel.get('markPoint'),
    +                markLine: seriesModel.get('markLine')
    +            }, model.get('option.line') || {}, true);
    +        }
    +    },
    +    'bar': function (seriesType, seriesId, seriesModel, model) {
    +        if (seriesType === 'line') {
    +            return merge({
    +                id: seriesId,
    +                type: 'bar',
    +                // Preserve data related option
    +                data: seriesModel.get('data'),
    +                stack: seriesModel.get('stack'),
    +                markPoint: seriesModel.get('markPoint'),
    +                markLine: seriesModel.get('markLine')
    +            }, model.get('option.bar') || {}, true);
    +        }
    +    },
    +    'stack': function (seriesType, seriesId, seriesModel, model) {
    +        if (seriesType === 'line' || seriesType === 'bar') {
    +            return merge({
    +                id: seriesId,
    +                stack: '__ec_magicType_stack__'
    +            }, model.get('option.stack') || {}, true);
    +        }
    +    },
    +    'tiled': function (seriesType, seriesId, seriesModel, model) {
    +        if (seriesType === 'line' || seriesType === 'bar') {
    +            return merge({
    +                id: seriesId,
    +                stack: ''
    +            }, model.get('option.tiled') || {}, true);
    +        }
    +    }
    +};
    +
    +var radioTypes = [
    +    ['line', 'bar'],
    +    ['stack', 'tiled']
    +];
    +
    +proto$3.onclick = function (ecModel, api, type) {
    +    var model = this.model;
    +    var seriesIndex = model.get('seriesIndex.' + type);
    +    // Not supported magicType
    +    if (!seriesOptGenreator[type]) {
    +        return;
    +    }
    +    var newOption = {
    +        series: []
    +    };
    +    var generateNewSeriesTypes = function (seriesModel) {
    +        var seriesType = seriesModel.subType;
    +        var seriesId = seriesModel.id;
    +        var newSeriesOpt = seriesOptGenreator[type](
    +            seriesType, seriesId, seriesModel, model
    +        );
    +        if (newSeriesOpt) {
    +            // PENDING If merge original option?
    +            defaults(newSeriesOpt, seriesModel.option);
    +            newOption.series.push(newSeriesOpt);
    +        }
    +        // Modify boundaryGap
    +        var coordSys = seriesModel.coordinateSystem;
    +        if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {
    +            var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
    +            if (categoryAxis) {
    +                var axisDim = categoryAxis.dim;
    +                var axisType = axisDim + 'Axis';
    +                var axisModel = ecModel.queryComponents({
    +                    mainType: axisType,
    +                    index: seriesModel.get(name + 'Index'),
    +                    id: seriesModel.get(name + 'Id')
    +                })[0];
    +                var axisIndex = axisModel.componentIndex;
    +
    +                newOption[axisType] = newOption[axisType] || [];
    +                for (var i = 0; i <= axisIndex; i++) {
    +                    newOption[axisType][axisIndex] = newOption[axisType][axisIndex] || {};
    +                }
    +                newOption[axisType][axisIndex].boundaryGap = type === 'bar' ? true : false;
    +            }
    +        }
    +    };
    +
    +    each$1(radioTypes, function (radio) {
    +        if (indexOf(radio, type) >= 0) {
    +            each$1(radio, function (item) {
    +                model.setIconStatus(item, 'normal');
    +            });
    +        }
    +    });
    +
    +    model.setIconStatus(type, 'emphasis');
    +
    +    ecModel.eachComponent(
    +        {
    +            mainType: 'series',
    +            query: seriesIndex == null ? null : {
    +                seriesIndex: seriesIndex
    +            }
    +        }, generateNewSeriesTypes
    +    );
    +    api.dispatchAction({
    +        type: 'changeMagicType',
    +        currentType: type,
    +        newOption: newOption
    +    });
    +};
    +
    +registerAction({
    +    type: 'changeMagicType',
    +    event: 'magicTypeChanged',
    +    update: 'prepareAndUpdate'
    +}, function (payload, ecModel) {
    +    ecModel.mergeOption(payload.newOption);
    +});
    +
    +register$1('magicType', MagicType);
    +
    +var dataViewLang = lang.toolbox.dataView;
    +
    +var BLOCK_SPLITER = new Array(60).join('-');
    +var ITEM_SPLITER = '\t';
    +/**
    + * Group series into two types
    + *  1. on category axis, like line, bar
    + *  2. others, like scatter, pie
    + * @param {module:echarts/model/Global} ecModel
    + * @return {Object}
    + * @inner
    + */
    +function groupSeries(ecModel) {
    +    var seriesGroupByCategoryAxis = {};
    +    var otherSeries = [];
    +    var meta = [];
    +    ecModel.eachRawSeries(function (seriesModel) {
    +        var coordSys = seriesModel.coordinateSystem;
    +
    +        if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {
    +            var baseAxis = coordSys.getBaseAxis();
    +            if (baseAxis.type === 'category') {
    +                var key = baseAxis.dim + '_' + baseAxis.index;
    +                if (!seriesGroupByCategoryAxis[key]) {
    +                    seriesGroupByCategoryAxis[key] = {
    +                        categoryAxis: baseAxis,
    +                        valueAxis: coordSys.getOtherAxis(baseAxis),
    +                        series: []
    +                    };
    +                    meta.push({
    +                        axisDim: baseAxis.dim,
    +                        axisIndex: baseAxis.index
    +                    });
    +                }
    +                seriesGroupByCategoryAxis[key].series.push(seriesModel);
    +            }
    +            else {
    +                otherSeries.push(seriesModel);
    +            }
    +        }
    +        else {
    +            otherSeries.push(seriesModel);
    +        }
    +    });
    +
    +    return {
    +        seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,
    +        other: otherSeries,
    +        meta: meta
    +    };
    +}
    +
    +/**
    + * Assemble content of series on cateogory axis
    + * @param {Array.<module:echarts/model/Series>} series
    + * @return {string}
    + * @inner
    + */
    +function assembleSeriesWithCategoryAxis(series) {
    +    var tables = [];
    +    each$1(series, function (group, key) {
    +        var categoryAxis = group.categoryAxis;
    +        var valueAxis = group.valueAxis;
    +        var valueAxisDim = valueAxis.dim;
    +
    +        var headers = [' '].concat(map(group.series, function (series) {
    +            return series.name;
    +        }));
    +        var columns = [categoryAxis.model.getCategories()];
    +        each$1(group.series, function (series) {
    +            columns.push(series.getRawData().mapArray(valueAxisDim, function (val) {
    +                return val;
    +            }));
    +        });
    +        // Assemble table content
    +        var lines = [headers.join(ITEM_SPLITER)];
    +        for (var i = 0; i < columns[0].length; i++) {
    +            var items = [];
    +            for (var j = 0; j < columns.length; j++) {
    +                items.push(columns[j][i]);
    +            }
    +            lines.push(items.join(ITEM_SPLITER));
    +        }
    +        tables.push(lines.join('\n'));
    +    });
    +    return tables.join('\n\n' +  BLOCK_SPLITER + '\n\n');
    +}
    +
    +/**
    + * Assemble content of other series
    + * @param {Array.<module:echarts/model/Series>} series
    + * @return {string}
    + * @inner
    + */
    +function assembleOtherSeries(series) {
    +    return map(series, function (series) {
    +        var data = series.getRawData();
    +        var lines = [series.name];
    +        var vals = [];
    +        data.each(data.dimensions, function () {
    +            var argLen = arguments.length;
    +            var dataIndex = arguments[argLen - 1];
    +            var name = data.getName(dataIndex);
    +            for (var i = 0; i < argLen - 1; i++) {
    +                vals[i] = arguments[i];
    +            }
    +            lines.push((name ? (name + ITEM_SPLITER) : '') + vals.join(ITEM_SPLITER));
    +        });
    +        return lines.join('\n');
    +    }).join('\n\n' + BLOCK_SPLITER + '\n\n');
    +}
    +
    +/**
    + * @param {module:echarts/model/Global}
    + * @return {Object}
    + * @inner
    + */
    +function getContentFromModel(ecModel) {
    +
    +    var result = groupSeries(ecModel);
    +
    +    return {
    +        value: filter([
    +                assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis),
    +                assembleOtherSeries(result.other)
    +            ], function (str) {
    +                return str.replace(/[\n\t\s]/g, '');
    +            }).join('\n\n' + BLOCK_SPLITER + '\n\n'),
    +
    +        meta: result.meta
    +    };
    +}
    +
    +
    +function trim(str) {
    +    return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
    +}
    +/**
    + * If a block is tsv format
    + */
    +function isTSVFormat(block) {
    +    // Simple method to find out if a block is tsv format
    +    var firstLine = block.slice(0, block.indexOf('\n'));
    +    if (firstLine.indexOf(ITEM_SPLITER) >= 0) {
    +        return true;
    +    }
    +}
    +
    +var itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');
    +/**
    + * @param {string} tsv
    + * @return {Object}
    + */
    +function parseTSVContents(tsv) {
    +    var tsvLines = tsv.split(/\n+/g);
    +    var headers = trim(tsvLines.shift()).split(itemSplitRegex);
    +
    +    var categories = [];
    +    var series = map(headers, function (header) {
    +        return {
    +            name: header,
    +            data: []
    +        };
    +    });
    +    for (var i = 0; i < tsvLines.length; i++) {
    +        var items = trim(tsvLines[i]).split(itemSplitRegex);
    +        categories.push(items.shift());
    +        for (var j = 0; j < items.length; j++) {
    +            series[j] && (series[j].data[i] = items[j]);
    +        }
    +    }
    +    return {
    +        series: series,
    +        categories: categories
    +    };
    +}
    +
    +/**
    + * @param {string} str
    + * @return {Array.<Object>}
    + * @inner
    + */
    +function parseListContents(str) {
    +    var lines = str.split(/\n+/g);
    +    var seriesName = trim(lines.shift());
    +
    +    var data = [];
    +    for (var i = 0; i < lines.length; i++) {
    +        var items = trim(lines[i]).split(itemSplitRegex);
    +        var name = '';
    +        var value;
    +        var hasName = false;
    +        if (isNaN(items[0])) { // First item is name
    +            hasName = true;
    +            name = items[0];
    +            items = items.slice(1);
    +            data[i] = {
    +                name: name,
    +                value: []
    +            };
    +            value = data[i].value;
    +        }
    +        else {
    +            value = data[i] = [];
    +        }
    +        for (var j = 0; j < items.length; j++) {
    +            value.push(+items[j]);
    +        }
    +        if (value.length === 1) {
    +            hasName ? (data[i].value = value[0]) : (data[i] = value[0]);
    +        }
    +    }
    +
    +    return {
    +        name: seriesName,
    +        data: data
    +    };
    +}
    +
    +/**
    + * @param {string} str
    + * @param {Array.<Object>} blockMetaList
    + * @return {Object}
    + * @inner
    + */
    +function parseContents(str, blockMetaList) {
    +    var blocks = str.split(new RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g'));
    +    var newOption = {
    +        series: []
    +    };
    +    each$1(blocks, function (block, idx) {
    +        if (isTSVFormat(block)) {
    +            var result = parseTSVContents(block);
    +            var blockMeta = blockMetaList[idx];
    +            var axisKey = blockMeta.axisDim + 'Axis';
    +
    +            if (blockMeta) {
    +                newOption[axisKey] = newOption[axisKey] || [];
    +                newOption[axisKey][blockMeta.axisIndex] = {
    +                    data: result.categories
    +                };
    +                newOption.series = newOption.series.concat(result.series);
    +            }
    +        }
    +        else {
    +            var result = parseListContents(block);
    +            newOption.series.push(result);
    +        }
    +    });
    +    return newOption;
    +}
    +
    +/**
    + * @alias {module:echarts/component/toolbox/feature/DataView}
    + * @constructor
    + * @param {module:echarts/model/Model} model
    + */
    +function DataView(model) {
    +
    +    this._dom = null;
    +
    +    this.model = model;
    +}
    +
    +DataView.defaultOption = {
    +    show: true,
    +    readOnly: false,
    +    optionToContent: null,
    +    contentToOption: null,
    +
    +    icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',
    +    title: clone(dataViewLang.title),
    +    lang: clone(dataViewLang.lang),
    +    backgroundColor: '#fff',
    +    textColor: '#000',
    +    textareaColor: '#fff',
    +    textareaBorderColor: '#333',
    +    buttonColor: '#c23531',
    +    buttonTextColor: '#fff'
    +};
    +
    +DataView.prototype.onclick = function (ecModel, api) {
    +    var container = api.getDom();
    +    var model = this.model;
    +    if (this._dom) {
    +        container.removeChild(this._dom);
    +    }
    +    var root = document.createElement('div');
    +    root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;';
    +    root.style.backgroundColor = model.get('backgroundColor') || '#fff';
    +
    +    // Create elements
    +    var header = document.createElement('h4');
    +    var lang$$1 = model.get('lang') || [];
    +    header.innerHTML = lang$$1[0] || model.get('title');
    +    header.style.cssText = 'margin: 10px 20px;';
    +    header.style.color = model.get('textColor');
    +
    +    var viewMain = document.createElement('div');
    +    var textarea = document.createElement('textarea');
    +    viewMain.style.cssText = 'display:block;width:100%;overflow:auto;';
    +
    +    var optionToContent = model.get('optionToContent');
    +    var contentToOption = model.get('contentToOption');
    +    var result = getContentFromModel(ecModel);
    +    if (typeof optionToContent === 'function') {
    +        var htmlOrDom = optionToContent(api.getOption());
    +        if (typeof htmlOrDom === 'string') {
    +            viewMain.innerHTML = htmlOrDom;
    +        }
    +        else if (isDom(htmlOrDom)) {
    +            viewMain.appendChild(htmlOrDom);
    +        }
    +    }
    +    else {
    +        // Use default textarea
    +        viewMain.appendChild(textarea);
    +        textarea.readOnly = model.get('readOnly');
    +        textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;';
    +        textarea.style.color = model.get('textColor');
    +        textarea.style.borderColor = model.get('textareaBorderColor');
    +        textarea.style.backgroundColor = model.get('textareaColor');
    +        textarea.value = result.value;
    +    }
    +
    +    var blockMetaList = result.meta;
    +
    +    var buttonContainer = document.createElement('div');
    +    buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;';
    +
    +    var buttonStyle = 'float:right;margin-right:20px;border:none;'
    +        + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';
    +    var closeButton = document.createElement('div');
    +    var refreshButton = document.createElement('div');
    +
    +    buttonStyle += ';background-color:' + model.get('buttonColor');
    +    buttonStyle += ';color:' + model.get('buttonTextColor');
    +
    +    var self = this;
    +
    +    function close() {
    +        container.removeChild(root);
    +        self._dom = null;
    +    }
    +    addEventListener(closeButton, 'click', close);
    +
    +    addEventListener(refreshButton, 'click', function () {
    +        var newOption;
    +        try {
    +            if (typeof contentToOption === 'function') {
    +                newOption = contentToOption(viewMain, api.getOption());
    +            }
    +            else {
    +                newOption = parseContents(textarea.value, blockMetaList);
    +            }
    +        }
    +        catch (e) {
    +            close();
    +            throw new Error('Data view format error ' + e);
    +        }
    +        if (newOption) {
    +            api.dispatchAction({
    +                type: 'changeDataView',
    +                newOption: newOption
    +            });
    +        }
    +
    +        close();
    +    });
    +
    +    closeButton.innerHTML = lang$$1[1];
    +    refreshButton.innerHTML = lang$$1[2];
    +    refreshButton.style.cssText = buttonStyle;
    +    closeButton.style.cssText = buttonStyle;
    +
    +    !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
    +    buttonContainer.appendChild(closeButton);
    +
    +    // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
    +    addEventListener(textarea, 'keydown', function (e) {
    +        if ((e.keyCode || e.which) === 9) {
    +            // get caret position/selection
    +            var val = this.value;
    +            var start = this.selectionStart;
    +            var end = this.selectionEnd;
    +
    +            // set textarea value to: text before caret + tab + text after caret
    +            this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end);
    +
    +            // put caret at right position again
    +            this.selectionStart = this.selectionEnd = start + 1;
    +
    +            // prevent the focus lose
    +            stop(e);
    +        }
    +    });
    +
    +    root.appendChild(header);
    +    root.appendChild(viewMain);
    +    root.appendChild(buttonContainer);
    +
    +    viewMain.style.height = (container.clientHeight - 80) + 'px';
    +
    +    container.appendChild(root);
    +    this._dom = root;
    +};
    +
    +DataView.prototype.remove = function (ecModel, api) {
    +    this._dom && api.getDom().removeChild(this._dom);
    +};
    +
    +DataView.prototype.dispose = function (ecModel, api) {
    +    this.remove(ecModel, api);
    +};
    +
    +/**
    + * @inner
    + */
    +function tryMergeDataOption(newData, originalData) {
    +    return map(newData, function (newVal, idx) {
    +        var original = originalData && originalData[idx];
    +        if (isObject(original) && !isArray(original)) {
    +            if (isObject(newVal) && !isArray(newVal)) {
    +                newVal = newVal.value;
    +            }
    +            // Original data has option
    +            return defaults({
    +                value: newVal
    +            }, original);
    +        }
    +        else {
    +            return newVal;
    +        }
    +    });
    +}
    +
    +register$1('dataView', DataView);
    +
    +registerAction({
    +    type: 'changeDataView',
    +    event: 'dataViewChanged',
    +    update: 'prepareAndUpdate'
    +}, function (payload, ecModel) {
    +    var newSeriesOptList = [];
    +    each$1(payload.newOption.series, function (seriesOpt) {
    +        var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];
    +        if (!seriesModel) {
    +            // New created series
    +            // Geuss the series type
    +            newSeriesOptList.push(extend({
    +                // Default is scatter
    +                type: 'scatter'
    +            }, seriesOpt));
    +        }
    +        else {
    +            var originalData = seriesModel.get('data');
    +            newSeriesOptList.push({
    +                name: seriesOpt.name,
    +                data: tryMergeDataOption(seriesOpt.data, originalData)
    +            });
    +        }
    +    });
    +
    +    ecModel.mergeOption(defaults({
    +        series: newSeriesOptList
    +    }, payload.newOption));
    +});
    +
    +var each$32 = each$1;
    +
    +var ATTR$2 = '\0_ec_hist_store';
    +
    +/**
    + * @param {module:echarts/model/Global} ecModel
    + * @param {Object} newSnapshot {dataZoomId, batch: [payloadInfo, ...]}
    + */
    +function push(ecModel, newSnapshot) {
    +    var store = giveStore$1(ecModel);
    +
    +    // If previous dataZoom can not be found,
    +    // complete an range with current range.
    +    each$32(newSnapshot, function (batchItem, dataZoomId) {
    +        var i = store.length - 1;
    +        for (; i >= 0; i--) {
    +            var snapshot = store[i];
    +            if (snapshot[dataZoomId]) {
    +                break;
    +            }
    +        }
    +        if (i < 0) {
    +            // No origin range set, create one by current range.
    +            var dataZoomModel = ecModel.queryComponents(
    +                {mainType: 'dataZoom', subType: 'select', id: dataZoomId}
    +            )[0];
    +            if (dataZoomModel) {
    +                var percentRange = dataZoomModel.getPercentRange();
    +                store[0][dataZoomId] = {
    +                    dataZoomId: dataZoomId,
    +                    start: percentRange[0],
    +                    end: percentRange[1]
    +                };
    +            }
    +        }
    +    });
    +
    +    store.push(newSnapshot);
    +}
    +
    +/**
    + * @param {module:echarts/model/Global} ecModel
    + * @return {Object} snapshot
    + */
    +function pop(ecModel) {
    +    var store = giveStore$1(ecModel);
    +    var head = store[store.length - 1];
    +    store.length > 1 && store.pop();
    +
    +    // Find top for all dataZoom.
    +    var snapshot = {};
    +    each$32(head, function (batchItem, dataZoomId) {
    +        for (var i = store.length - 1; i >= 0; i--) {
    +            var batchItem = store[i][dataZoomId];
    +            if (batchItem) {
    +                snapshot[dataZoomId] = batchItem;
    +                break;
    +            }
    +        }
    +    });
    +
    +    return snapshot;
    +}
    +
    +/**
    + * @param {module:echarts/model/Global} ecModel
    + */
    +function clear$1(ecModel) {
    +    ecModel[ATTR$2] = null;
    +}
    +
    +/**
    + * @param {module:echarts/model/Global} ecModel
    + * @return {number} records. always >= 1.
    + */
    +function count(ecModel) {
    +    return giveStore$1(ecModel).length;
    +}
    +
    +/**
    + * [{key: dataZoomId, value: {dataZoomId, range}}, ...]
    + * History length of each dataZoom may be different.
    + * this._history[0] is used to store origin range.
    + * @type {Array.<Object>}
    + */
    +function giveStore$1(ecModel) {
    +    var store = ecModel[ATTR$2];
    +    if (!store) {
    +        store = ecModel[ATTR$2] = [{}];
    +    }
    +    return store;
    +}
    +
    +DataZoomModel.extend({
    +    type: 'dataZoom.select'
    +});
    +
    +DataZoomView.extend({
    +    type: 'dataZoom.select'
    +});
    +
    +/**
    + * DataZoom component entry
    + */
    +
    +// Use dataZoomSelect
    +var dataZoomLang = lang.toolbox.dataZoom;
    +var each$31 = each$1;
    +
    +// Spectial component id start with \0ec\0, see echarts/model/Global.js~hasInnerId
    +var DATA_ZOOM_ID_BASE = '\0_ec_\0toolbox-dataZoom_';
    +
    +function DataZoom(model, ecModel, api) {
    +
    +    /**
    +     * @private
    +     * @type {module:echarts/component/helper/BrushController}
    +     */
    +    (this._brushController = new BrushController(api.getZr()))
    +        .on('brush', bind(this._onBrush, this))
    +        .mount();
    +
    +    /**
    +     * @private
    +     * @type {boolean}
    +     */
    +    this._isZoomActive;
    +}
    +
    +DataZoom.defaultOption = {
    +    show: true,
    +    // Icon group
    +    icon: {
    +        zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',
    +        back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'
    +    },
    +    // `zoom`, `back`
    +    title: clone(dataZoomLang.title)
    +};
    +
    +var proto$4 = DataZoom.prototype;
    +
    +proto$4.render = function (featureModel, ecModel, api, payload) {
    +    this.model = featureModel;
    +    this.ecModel = ecModel;
    +    this.api = api;
    +
    +    updateZoomBtnStatus(featureModel, ecModel, this, payload, api);
    +    updateBackBtnStatus(featureModel, ecModel);
    +};
    +
    +proto$4.onclick = function (ecModel, api, type) {
    +    handlers$1[type].call(this);
    +};
    +
    +proto$4.remove = function (ecModel, api) {
    +    this._brushController.unmount();
    +};
    +
    +proto$4.dispose = function (ecModel, api) {
    +    this._brushController.dispose();
    +};
    +
    +/**
    + * @private
    + */
    +var handlers$1 = {
    +
    +    zoom: function () {
    +        var nextActive = !this._isZoomActive;
    +
    +        this.api.dispatchAction({
    +            type: 'takeGlobalCursor',
    +            key: 'dataZoomSelect',
    +            dataZoomSelectActive: nextActive
    +        });
    +    },
    +
    +    back: function () {
    +        this._dispatchZoomAction(pop(this.ecModel));
    +    }
    +};
    +
    +/**
    + * @private
    + */
    +proto$4._onBrush = function (areas, opt) {
    +    if (!opt.isEnd || !areas.length) {
    +        return;
    +    }
    +    var snapshot = {};
    +    var ecModel = this.ecModel;
    +
    +    this._brushController.updateCovers([]); // remove cover
    +
    +    var brushTargetManager = new BrushTargetManager(
    +        retrieveAxisSetting(this.model.option), ecModel, {include: ['grid']}
    +    );
    +    brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {
    +        if (coordSys.type !== 'cartesian2d') {
    +            return;
    +        }
    +
    +        var brushType = area.brushType;
    +        if (brushType === 'rect') {
    +            setBatch('x', coordSys, coordRange[0]);
    +            setBatch('y', coordSys, coordRange[1]);
    +        }
    +        else {
    +            setBatch(({lineX: 'x', lineY: 'y'})[brushType], coordSys, coordRange);
    +        }
    +    });
    +
    +    push(ecModel, snapshot);
    +
    +    this._dispatchZoomAction(snapshot);
    +
    +    function setBatch(dimName, coordSys, minMax) {
    +        var axis = coordSys.getAxis(dimName);
    +        var axisModel = axis.model;
    +        var dataZoomModel = findDataZoom(dimName, axisModel, ecModel);
    +
    +        // Restrict range.
    +        var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan();
    +        if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) {
    +            minMax = sliderMove(
    +                0, minMax.slice(), axis.scale.getExtent(), 0,
    +                minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan
    +            );
    +        }
    +
    +        dataZoomModel && (snapshot[dataZoomModel.id] = {
    +            dataZoomId: dataZoomModel.id,
    +            startValue: minMax[0],
    +            endValue: minMax[1]
    +        });
    +    }
    +
    +    function findDataZoom(dimName, axisModel, ecModel) {
    +        var found;
    +        ecModel.eachComponent({mainType: 'dataZoom', subType: 'select'}, function (dzModel) {
    +            var has = dzModel.getAxisModel(dimName, axisModel.componentIndex);
    +            has && (found = dzModel);
    +        });
    +        return found;
    +    }
    +};
    +
    +/**
    + * @private
    + */
    +proto$4._dispatchZoomAction = function (snapshot) {
    +    var batch = [];
    +
    +    // Convert from hash map to array.
    +    each$31(snapshot, function (batchItem, dataZoomId) {
    +        batch.push(clone(batchItem));
    +    });
    +
    +    batch.length && this.api.dispatchAction({
    +        type: 'dataZoom',
    +        from: this.uid,
    +        batch: batch
    +    });
    +};
    +
    +function retrieveAxisSetting(option) {
    +    var setting = {};
    +    // Compatible with previous setting: null => all axis, false => no axis.
    +    each$1(['xAxisIndex', 'yAxisIndex'], function (name) {
    +        setting[name] = option[name];
    +        setting[name] == null && (setting[name] = 'all');
    +        (setting[name] === false || setting[name] === 'none') && (setting[name] = []);
    +    });
    +    return setting;
    +}
    +
    +function updateBackBtnStatus(featureModel, ecModel) {
    +    featureModel.setIconStatus(
    +        'back',
    +        count(ecModel) > 1 ? 'emphasis' : 'normal'
    +    );
    +}
    +
    +function updateZoomBtnStatus(featureModel, ecModel, view, payload, api) {
    +    var zoomActive = view._isZoomActive;
    +
    +    if (payload && payload.type === 'takeGlobalCursor') {
    +        zoomActive = payload.key === 'dataZoomSelect'
    +            ? payload.dataZoomSelectActive : false;
    +    }
    +
    +    view._isZoomActive = zoomActive;
    +
    +    featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal');
    +
    +    var brushTargetManager = new BrushTargetManager(
    +        retrieveAxisSetting(featureModel.option), ecModel, {include: ['grid']}
    +    );
    +
    +    view._brushController
    +        .setPanels(brushTargetManager.makePanelOpts(api, function (targetInfo) {
    +            return (targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared)
    +                ? 'lineX'
    +                : (!targetInfo.xAxisDeclared && targetInfo.yAxisDeclared)
    +                ? 'lineY'
    +                : 'rect';
    +        }))
    +        .enableBrush(
    +            zoomActive
    +            ? {
    +                brushType: 'auto',
    +                brushStyle: {
    +                    // FIXME user customized?
    +                    lineWidth: 0,
    +                    fill: 'rgba(0,0,0,0.2)'
    +                }
    +            }
    +            : false
    +        );
    +}
    +
    +
    +register$1('dataZoom', DataZoom);
    +
    +
    +// Create special dataZoom option for select
    +registerPreprocessor(function (option) {
    +    if (!option) {
    +        return;
    +    }
    +
    +    var dataZoomOpts = option.dataZoom || (option.dataZoom = []);
    +    if (!isArray(dataZoomOpts)) {
    +        option.dataZoom = dataZoomOpts = [dataZoomOpts];
    +    }
    +
    +    var toolboxOpt = option.toolbox;
    +    if (toolboxOpt) {
    +        // Assume there is only one toolbox
    +        if (isArray(toolboxOpt)) {
    +            toolboxOpt = toolboxOpt[0];
    +        }
    +
    +        if (toolboxOpt && toolboxOpt.feature) {
    +            var dataZoomOpt = toolboxOpt.feature.dataZoom;
    +            addForAxis('xAxis', dataZoomOpt);
    +            addForAxis('yAxis', dataZoomOpt);
    +        }
    +    }
    +
    +    function addForAxis(axisName, dataZoomOpt) {
    +        if (!dataZoomOpt) {
    +            return;
    +        }
    +
    +        // Try not to modify model, because it is not merged yet.
    +        var axisIndicesName = axisName + 'Index';
    +        var givenAxisIndices = dataZoomOpt[axisIndicesName];
    +        if (givenAxisIndices != null
    +            && givenAxisIndices != 'all'
    +            && !isArray(givenAxisIndices)
    +        ) {
    +            givenAxisIndices = (givenAxisIndices === false || givenAxisIndices === 'none') ? [] : [givenAxisIndices];
    +        }
    +
    +        forEachComponent(axisName, function (axisOpt, axisIndex) {
    +            if (givenAxisIndices != null
    +                && givenAxisIndices != 'all'
    +                && indexOf(givenAxisIndices, axisIndex) === -1
    +            ) {
    +                return;
    +            }
    +            var newOpt = {
    +                type: 'select',
    +                $fromToolbox: true,
    +                // Id for merge mapping.
    +                id: DATA_ZOOM_ID_BASE + axisName + axisIndex
    +            };
    +            // FIXME
    +            // Only support one axis now.
    +            newOpt[axisIndicesName] = axisIndex;
    +            dataZoomOpts.push(newOpt);
    +        });
    +    }
    +
    +    function forEachComponent(mainType, cb) {
    +        var opts = option[mainType];
    +        if (!isArray(opts)) {
    +            opts = opts ? [opts] : [];
    +        }
    +        each$31(opts, cb);
    +    }
    +});
    +
    +var restoreLang = lang.toolbox.restore;
    +
    +function Restore(model) {
    +    this.model = model;
    +}
    +
    +Restore.defaultOption = {
    +    show: true,
    +    icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',
    +    title: restoreLang.title
    +};
    +
    +var proto$5 = Restore.prototype;
    +
    +proto$5.onclick = function (ecModel, api, type) {
    +    clear$1(ecModel);
    +
    +    api.dispatchAction({
    +        type: 'restore',
    +        from: this.uid
    +    });
    +};
    +
    +register$1('restore', Restore);
    +
    +registerAction(
    +    {type: 'restore', event: 'restore', update: 'prepareAndUpdate'},
    +    function (payload, ecModel) {
    +        ecModel.resetOption('recreate');
    +    }
    +);
    +
    +var urn = 'urn:schemas-microsoft-com:vml';
    +var win = typeof window === 'undefined' ? null : window;
    +
    +var vmlInited = false;
    +
    +var doc = win && win.document;
    +
    +function createNode(tagName) {
    +    return doCreateNode(tagName);
    +}
    +
    +// Avoid assign to an exported variable, for transforming to cjs.
    +var doCreateNode;
    +
    +if (doc && !env$1.canvasSupported) {
    +    try {
    +        !doc.namespaces.zrvml && doc.namespaces.add('zrvml', urn);
    +        doCreateNode = function (tagName) {
    +            return doc.createElement('<zrvml:' + tagName + ' class="zrvml">');
    +        };
    +    }
    +    catch (e) {
    +        doCreateNode = function (tagName) {
    +            return doc.createElement('<' + tagName + ' xmlns="' + urn + '" class="zrvml">');
    +        };
    +    }
    +}
    +
    +// From raphael
    +function initVML() {
    +    if (vmlInited || !doc) {
    +        return;
    +    }
    +    vmlInited = true;
    +
    +    var styleSheets = doc.styleSheets;
    +    if (styleSheets.length < 31) {
    +        doc.createStyleSheet().addRule('.zrvml', 'behavior:url(#default#VML)');
    +    }
    +    else {
    +        // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx
    +        styleSheets[0].addRule('.zrvml', 'behavior:url(#default#VML)');
    +    }
    +}
    +
    +// http://www.w3.org/TR/NOTE-VML
    +// TODO Use proxy like svg instead of overwrite brush methods
    +
    +var CMD$3 = PathProxy.CMD;
    +var round$3 = Math.round;
    +var sqrt = Math.sqrt;
    +var abs$1 = Math.abs;
    +var cos = Math.cos;
    +var sin = Math.sin;
    +var mathMax$8 = Math.max;
    +
    +if (!env$1.canvasSupported) {
    +
    +    var comma = ',';
    +    var imageTransformPrefix = 'progid:DXImageTransform.Microsoft';
    +
    +    var Z = 21600;
    +    var Z2 = Z / 2;
    +
    +    var ZLEVEL_BASE = 100000;
    +    var Z_BASE$1 = 1000;
    +
    +    var initRootElStyle = function (el) {
    +        el.style.cssText = 'position:absolute;left:0;top:0;width:1px;height:1px;';
    +        el.coordsize = Z + ','  + Z;
    +        el.coordorigin = '0,0';
    +    };
    +
    +    var encodeHtmlAttribute = function (s) {
    +        return String(s).replace(/&/g, '&amp;').replace(/"/g, '&quot;');
    +    };
    +
    +    var rgb2Str = function (r, g, b) {
    +        return 'rgb(' + [r, g, b].join(',') + ')';
    +    };
    +
    +    var append = function (parent, child) {
    +        if (child && parent && child.parentNode !== parent) {
    +            parent.appendChild(child);
    +        }
    +    };
    +
    +    var remove = function (parent, child) {
    +        if (child && parent && child.parentNode === parent) {
    +            parent.removeChild(child);
    +        }
    +    };
    +
    +    var getZIndex = function (zlevel, z, z2) {
    +        // z 的取值范围为 [0, 1000]
    +        return (parseFloat(zlevel) || 0) * ZLEVEL_BASE + (parseFloat(z) || 0) * Z_BASE$1 + z2;
    +    };
    +
    +    var parsePercent$3 = function (value, maxValue) {
    +        if (typeof value === 'string') {
    +            if (value.lastIndexOf('%') >= 0) {
    +                return parseFloat(value) / 100 * maxValue;
    +            }
    +            return parseFloat(value);
    +        }
    +        return value;
    +    };
    +
    +    /***************************************************
    +     * PATH
    +     **************************************************/
    +
    +    var setColorAndOpacity = function (el, color, opacity) {
    +        var colorArr = parse(color);
    +        opacity = +opacity;
    +        if (isNaN(opacity)) {
    +            opacity = 1;
    +        }
    +        if (colorArr) {
    +            el.color = rgb2Str(colorArr[0], colorArr[1], colorArr[2]);
    +            el.opacity = opacity * colorArr[3];
    +        }
    +    };
    +
    +    var getColorAndAlpha = function (color) {
    +        var colorArr = parse(color);
    +        return [
    +            rgb2Str(colorArr[0], colorArr[1], colorArr[2]),
    +            colorArr[3]
    +        ];
    +    };
    +
    +    var updateFillNode = function (el, style, zrEl) {
    +        // TODO pattern
    +        var fill = style.fill;
    +        if (fill != null) {
    +            // Modified from excanvas
    +            if (fill instanceof Gradient) {
    +                var gradientType;
    +                var angle = 0;
    +                var focus = [0, 0];
    +                // additional offset
    +                var shift = 0;
    +                // scale factor for offset
    +                var expansion = 1;
    +                var rect = zrEl.getBoundingRect();
    +                var rectWidth = rect.width;
    +                var rectHeight = rect.height;
    +                if (fill.type === 'linear') {
    +                    gradientType = 'gradient';
    +                    var transform = zrEl.transform;
    +                    var p0 = [fill.x * rectWidth, fill.y * rectHeight];
    +                    var p1 = [fill.x2 * rectWidth, fill.y2 * rectHeight];
    +                    if (transform) {
    +                        applyTransform(p0, p0, transform);
    +                        applyTransform(p1, p1, transform);
    +                    }
    +                    var dx = p1[0] - p0[0];
    +                    var dy = p1[1] - p0[1];
    +                    angle = Math.atan2(dx, dy) * 180 / Math.PI;
    +                    // The angle should be a non-negative number.
    +                    if (angle < 0) {
    +                        angle += 360;
    +                    }
    +
    +                    // Very small angles produce an unexpected result because they are
    +                    // converted to a scientific notation string.
    +                    if (angle < 1e-6) {
    +                        angle = 0;
    +                    }
    +                }
    +                else {
    +                    gradientType = 'gradientradial';
    +                    var p0 = [fill.x * rectWidth, fill.y * rectHeight];
    +                    var transform = zrEl.transform;
    +                    var scale$$1 = zrEl.scale;
    +                    var width = rectWidth;
    +                    var height = rectHeight;
    +                    focus = [
    +                        // Percent in bounding rect
    +                        (p0[0] - rect.x) / width,
    +                        (p0[1] - rect.y) / height
    +                    ];
    +                    if (transform) {
    +                        applyTransform(p0, p0, transform);
    +                    }
    +
    +                    width /= scale$$1[0] * Z;
    +                    height /= scale$$1[1] * Z;
    +                    var dimension = mathMax$8(width, height);
    +                    shift = 2 * 0 / dimension;
    +                    expansion = 2 * fill.r / dimension - shift;
    +                }
    +
    +                // We need to sort the color stops in ascending order by offset,
    +                // otherwise IE won't interpret it correctly.
    +                var stops = fill.colorStops.slice();
    +                stops.sort(function(cs1, cs2) {
    +                    return cs1.offset - cs2.offset;
    +                });
    +
    +                var length$$1 = stops.length;
    +                // Color and alpha list of first and last stop
    +                var colorAndAlphaList = [];
    +                var colors = [];
    +                for (var i = 0; i < length$$1; i++) {
    +                    var stop = stops[i];
    +                    var colorAndAlpha = getColorAndAlpha(stop.color);
    +                    colors.push(stop.offset * expansion + shift + ' ' + colorAndAlpha[0]);
    +                    if (i === 0 || i === length$$1 - 1) {
    +                        colorAndAlphaList.push(colorAndAlpha);
    +                    }
    +                }
    +
    +                if (length$$1 >= 2) {
    +                    var color1 = colorAndAlphaList[0][0];
    +                    var color2 = colorAndAlphaList[1][0];
    +                    var opacity1 = colorAndAlphaList[0][1] * style.opacity;
    +                    var opacity2 = colorAndAlphaList[1][1] * style.opacity;
    +
    +                    el.type = gradientType;
    +                    el.method = 'none';
    +                    el.focus = '100%';
    +                    el.angle = angle;
    +                    el.color = color1;
    +                    el.color2 = color2;
    +                    el.colors = colors.join(',');
    +                    // When colors attribute is used, the meanings of opacity and o:opacity2
    +                    // are reversed.
    +                    el.opacity = opacity2;
    +                    // FIXME g_o_:opacity ?
    +                    el.opacity2 = opacity1;
    +                }
    +                if (gradientType === 'radial') {
    +                    el.focusposition = focus.join(',');
    +                }
    +            }
    +            else {
    +                // FIXME Change from Gradient fill to color fill
    +                setColorAndOpacity(el, fill, style.opacity);
    +            }
    +        }
    +    };
    +
    +    var updateStrokeNode = function (el, style) {
    +        // if (style.lineJoin != null) {
    +        //     el.joinstyle = style.lineJoin;
    +        // }
    +        // if (style.miterLimit != null) {
    +        //     el.miterlimit = style.miterLimit * Z;
    +        // }
    +        // if (style.lineCap != null) {
    +        //     el.endcap = style.lineCap;
    +        // }
    +        if (style.lineDash != null) {
    +            el.dashstyle = style.lineDash.join(' ');
    +        }
    +        if (style.stroke != null && !(style.stroke instanceof Gradient)) {
    +            setColorAndOpacity(el, style.stroke, style.opacity);
    +        }
    +    };
    +
    +    var updateFillAndStroke = function (vmlEl, type, style, zrEl) {
    +        var isFill = type == 'fill';
    +        var el = vmlEl.getElementsByTagName(type)[0];
    +        // Stroke must have lineWidth
    +        if (style[type] != null && style[type] !== 'none' && (isFill || (!isFill && style.lineWidth))) {
    +            vmlEl[isFill ? 'filled' : 'stroked'] = 'true';
    +            // FIXME Remove before updating, or set `colors` will throw error
    +            if (style[type] instanceof Gradient) {
    +                remove(vmlEl, el);
    +            }
    +            if (!el) {
    +                el = createNode(type);
    +            }
    +
    +            isFill ? updateFillNode(el, style, zrEl) : updateStrokeNode(el, style);
    +            append(vmlEl, el);
    +        }
    +        else {
    +            vmlEl[isFill ? 'filled' : 'stroked'] = 'false';
    +            remove(vmlEl, el);
    +        }
    +    };
    +
    +    var points$3 = [[], [], []];
    +    var pathDataToString = function (path, m) {
    +        var M = CMD$3.M;
    +        var C = CMD$3.C;
    +        var L = CMD$3.L;
    +        var A = CMD$3.A;
    +        var Q = CMD$3.Q;
    +
    +        var str = [];
    +        var nPoint;
    +        var cmdStr;
    +        var cmd;
    +        var i;
    +        var xi;
    +        var yi;
    +        var data = path.data;
    +        var dataLength = path.len();
    +        for (i = 0; i < dataLength;) {
    +            cmd = data[i++];
    +            cmdStr = '';
    +            nPoint = 0;
    +            switch (cmd) {
    +                case M:
    +                    cmdStr = ' m ';
    +                    nPoint = 1;
    +                    xi = data[i++];
    +                    yi = data[i++];
    +                    points$3[0][0] = xi;
    +                    points$3[0][1] = yi;
    +                    break;
    +                case L:
    +                    cmdStr = ' l ';
    +                    nPoint = 1;
    +                    xi = data[i++];
    +                    yi = data[i++];
    +                    points$3[0][0] = xi;
    +                    points$3[0][1] = yi;
    +                    break;
    +                case Q:
    +                case C:
    +                    cmdStr = ' c ';
    +                    nPoint = 3;
    +                    var x1 = data[i++];
    +                    var y1 = data[i++];
    +                    var x2 = data[i++];
    +                    var y2 = data[i++];
    +                    var x3;
    +                    var y3;
    +                    if (cmd === Q) {
    +                        // Convert quadratic to cubic using degree elevation
    +                        x3 = x2;
    +                        y3 = y2;
    +                        x2 = (x2 + 2 * x1) / 3;
    +                        y2 = (y2 + 2 * y1) / 3;
    +                        x1 = (xi + 2 * x1) / 3;
    +                        y1 = (yi + 2 * y1) / 3;
    +                    }
    +                    else {
    +                        x3 = data[i++];
    +                        y3 = data[i++];
    +                    }
    +                    points$3[0][0] = x1;
    +                    points$3[0][1] = y1;
    +                    points$3[1][0] = x2;
    +                    points$3[1][1] = y2;
    +                    points$3[2][0] = x3;
    +                    points$3[2][1] = y3;
    +
    +                    xi = x3;
    +                    yi = y3;
    +                    break;
    +                case A:
    +                    var x = 0;
    +                    var y = 0;
    +                    var sx = 1;
    +                    var sy = 1;
    +                    var angle = 0;
    +                    if (m) {
    +                        // Extract SRT from matrix
    +                        x = m[4];
    +                        y = m[5];
    +                        sx = sqrt(m[0] * m[0] + m[1] * m[1]);
    +                        sy = sqrt(m[2] * m[2] + m[3] * m[3]);
    +                        angle = Math.atan2(-m[1] / sy, m[0] / sx);
    +                    }
    +
    +                    var cx = data[i++];
    +                    var cy = data[i++];
    +                    var rx = data[i++];
    +                    var ry = data[i++];
    +                    var startAngle = data[i++] + angle;
    +                    var endAngle = data[i++] + startAngle + angle;
    +                    // FIXME
    +                    // var psi = data[i++];
    +                    i++;
    +                    var clockwise = data[i++];
    +
    +                    var x0 = cx + cos(startAngle) * rx;
    +                    var y0 = cy + sin(startAngle) * ry;
    +
    +                    var x1 = cx + cos(endAngle) * rx;
    +                    var y1 = cy + sin(endAngle) * ry;
    +
    +                    var type = clockwise ? ' wa ' : ' at ';
    +                    if (Math.abs(x0 - x1) < 1e-4) {
    +                        // IE won't render arches drawn counter clockwise if x0 == x1.
    +                        if (Math.abs(endAngle - startAngle) > 1e-2) {
    +                            // Offset x0 by 1/80 of a pixel. Use something
    +                            // that can be represented in binary
    +                            if (clockwise) {
    +                                x0 += 270 / Z;
    +                            }
    +                        }
    +                        else {
    +                            // Avoid case draw full circle
    +                            if (Math.abs(y0 - cy) < 1e-4) {
    +                                if ((clockwise && x0 < cx) || (!clockwise && x0 > cx)) {
    +                                    y1 -= 270 / Z;
    +                                }
    +                                else {
    +                                    y1 += 270 / Z;
    +                                }
    +                            }
    +                            else if ((clockwise && y0 < cy) || (!clockwise && y0 > cy)) {
    +                                x1 += 270 / Z;
    +                            }
    +                            else {
    +                                x1 -= 270 / Z;
    +                            }
    +                        }
    +                    }
    +                    str.push(
    +                        type,
    +                        round$3(((cx - rx) * sx + x) * Z - Z2), comma,
    +                        round$3(((cy - ry) * sy + y) * Z - Z2), comma,
    +                        round$3(((cx + rx) * sx + x) * Z - Z2), comma,
    +                        round$3(((cy + ry) * sy + y) * Z - Z2), comma,
    +                        round$3((x0 * sx + x) * Z - Z2), comma,
    +                        round$3((y0 * sy + y) * Z - Z2), comma,
    +                        round$3((x1 * sx + x) * Z - Z2), comma,
    +                        round$3((y1 * sy + y) * Z - Z2)
    +                    );
    +
    +                    xi = x1;
    +                    yi = y1;
    +                    break;
    +                case CMD$3.R:
    +                    var p0 = points$3[0];
    +                    var p1 = points$3[1];
    +                    // x0, y0
    +                    p0[0] = data[i++];
    +                    p0[1] = data[i++];
    +                    // x1, y1
    +                    p1[0] = p0[0] + data[i++];
    +                    p1[1] = p0[1] + data[i++];
    +
    +                    if (m) {
    +                        applyTransform(p0, p0, m);
    +                        applyTransform(p1, p1, m);
    +                    }
    +
    +                    p0[0] = round$3(p0[0] * Z - Z2);
    +                    p1[0] = round$3(p1[0] * Z - Z2);
    +                    p0[1] = round$3(p0[1] * Z - Z2);
    +                    p1[1] = round$3(p1[1] * Z - Z2);
    +                    str.push(
    +                        // x0, y0
    +                        ' m ', p0[0], comma, p0[1],
    +                        // x1, y0
    +                        ' l ', p1[0], comma, p0[1],
    +                        // x1, y1
    +                        ' l ', p1[0], comma, p1[1],
    +                        // x0, y1
    +                        ' l ', p0[0], comma, p1[1]
    +                    );
    +                    break;
    +                case CMD$3.Z:
    +                    // FIXME Update xi, yi
    +                    str.push(' x ');
    +            }
    +
    +            if (nPoint > 0) {
    +                str.push(cmdStr);
    +                for (var k = 0; k < nPoint; k++) {
    +                    var p = points$3[k];
    +
    +                    m && applyTransform(p, p, m);
    +                    // 不 round 会非常慢
    +                    str.push(
    +                        round$3(p[0] * Z - Z2), comma, round$3(p[1] * Z - Z2),
    +                        k < nPoint - 1 ? comma : ''
    +                    );
    +                }
    +            }
    +        }
    +
    +        return str.join('');
    +    };
    +
    +    // Rewrite the original path method
    +    Path.prototype.brushVML = function (vmlRoot) {
    +        var style = this.style;
    +
    +        var vmlEl = this._vmlEl;
    +        if (!vmlEl) {
    +            vmlEl = createNode('shape');
    +            initRootElStyle(vmlEl);
    +
    +            this._vmlEl = vmlEl;
    +        }
    +
    +        updateFillAndStroke(vmlEl, 'fill', style, this);
    +        updateFillAndStroke(vmlEl, 'stroke', style, this);
    +
    +        var m = this.transform;
    +        var needTransform = m != null;
    +        var strokeEl = vmlEl.getElementsByTagName('stroke')[0];
    +        if (strokeEl) {
    +            var lineWidth = style.lineWidth;
    +            // Get the line scale.
    +            // Determinant of this.m_ means how much the area is enlarged by the
    +            // transformation. So its square root can be used as a scale factor
    +            // for width.
    +            if (needTransform && !style.strokeNoScale) {
    +                var det = m[0] * m[3] - m[1] * m[2];
    +                lineWidth *= sqrt(abs$1(det));
    +            }
    +            strokeEl.weight = lineWidth + 'px';
    +        }
    +
    +        var path = this.path || (this.path = new PathProxy());
    +        if (this.__dirtyPath) {
    +            path.beginPath();
    +            this.buildPath(path, this.shape);
    +            path.toStatic();
    +            this.__dirtyPath = false;
    +        }
    +
    +        vmlEl.path = pathDataToString(path, this.transform);
    +
    +        vmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2);
    +
    +        // Append to root
    +        append(vmlRoot, vmlEl);
    +
    +        // Text
    +        if (style.text != null) {
    +            this.drawRectText(vmlRoot, this.getBoundingRect());
    +        }
    +        else {
    +            this.removeRectText(vmlRoot);
    +        }
    +    };
    +
    +    Path.prototype.onRemove = function (vmlRoot) {
    +        remove(vmlRoot, this._vmlEl);
    +        this.removeRectText(vmlRoot);
    +    };
    +
    +    Path.prototype.onAdd = function (vmlRoot) {
    +        append(vmlRoot, this._vmlEl);
    +        this.appendRectText(vmlRoot);
    +    };
    +
    +    /***************************************************
    +     * IMAGE
    +     **************************************************/
    +    var isImage = function (img) {
    +        // FIXME img instanceof Image 如果 img 是一个字符串的时候,IE8 下会报错
    +        return (typeof img === 'object') && img.tagName && img.tagName.toUpperCase() === 'IMG';
    +        // return img instanceof Image;
    +    };
    +
    +    // Rewrite the original path method
    +    ZImage.prototype.brushVML = function (vmlRoot) {
    +        var style = this.style;
    +        var image = style.image;
    +
    +        // Image original width, height
    +        var ow;
    +        var oh;
    +
    +        if (isImage(image)) {
    +            var src = image.src;
    +            if (src === this._imageSrc) {
    +                ow = this._imageWidth;
    +                oh = this._imageHeight;
    +            }
    +            else {
    +                var imageRuntimeStyle = image.runtimeStyle;
    +                var oldRuntimeWidth = imageRuntimeStyle.width;
    +                var oldRuntimeHeight = imageRuntimeStyle.height;
    +                imageRuntimeStyle.width = 'auto';
    +                imageRuntimeStyle.height = 'auto';
    +
    +                // get the original size
    +                ow = image.width;
    +                oh = image.height;
    +
    +                // and remove overides
    +                imageRuntimeStyle.width = oldRuntimeWidth;
    +                imageRuntimeStyle.height = oldRuntimeHeight;
    +
    +                // Caching image original width, height and src
    +                this._imageSrc = src;
    +                this._imageWidth = ow;
    +                this._imageHeight = oh;
    +            }
    +            image = src;
    +        }
    +        else {
    +            if (image === this._imageSrc) {
    +                ow = this._imageWidth;
    +                oh = this._imageHeight;
    +            }
    +        }
    +        if (!image) {
    +            return;
    +        }
    +
    +        var x = style.x || 0;
    +        var y = style.y || 0;
    +
    +        var dw = style.width;
    +        var dh = style.height;
    +
    +        var sw = style.sWidth;
    +        var sh = style.sHeight;
    +        var sx = style.sx || 0;
    +        var sy = style.sy || 0;
    +
    +        var hasCrop = sw && sh;
    +
    +        var vmlEl = this._vmlEl;
    +        if (!vmlEl) {
    +            // FIXME 使用 group 在 left, top 都不是 0 的时候就无法显示了。
    +            // vmlEl = vmlCore.createNode('group');
    +            vmlEl = doc.createElement('div');
    +            initRootElStyle(vmlEl);
    +
    +            this._vmlEl = vmlEl;
    +        }
    +
    +        var vmlElStyle = vmlEl.style;
    +        var hasRotation = false;
    +        var m;
    +        var scaleX = 1;
    +        var scaleY = 1;
    +        if (this.transform) {
    +            m = this.transform;
    +            scaleX = sqrt(m[0] * m[0] + m[1] * m[1]);
    +            scaleY = sqrt(m[2] * m[2] + m[3] * m[3]);
    +
    +            hasRotation = m[1] || m[2];
    +        }
    +        if (hasRotation) {
    +            // If filters are necessary (rotation exists), create them
    +            // filters are bog-slow, so only create them if abbsolutely necessary
    +            // The following check doesn't account for skews (which don't exist
    +            // in the canvas spec (yet) anyway.
    +            // From excanvas
    +            var p0 = [x, y];
    +            var p1 = [x + dw, y];
    +            var p2 = [x, y + dh];
    +            var p3 = [x + dw, y + dh];
    +            applyTransform(p0, p0, m);
    +            applyTransform(p1, p1, m);
    +            applyTransform(p2, p2, m);
    +            applyTransform(p3, p3, m);
    +
    +            var maxX = mathMax$8(p0[0], p1[0], p2[0], p3[0]);
    +            var maxY = mathMax$8(p0[1], p1[1], p2[1], p3[1]);
    +
    +            var transformFilter = [];
    +            transformFilter.push('M11=', m[0] / scaleX, comma,
    +                        'M12=', m[2] / scaleY, comma,
    +                        'M21=', m[1] / scaleX, comma,
    +                        'M22=', m[3] / scaleY, comma,
    +                        'Dx=', round$3(x * scaleX + m[4]), comma,
    +                        'Dy=', round$3(y * scaleY + m[5]));
    +
    +            vmlElStyle.padding = '0 ' + round$3(maxX) + 'px ' + round$3(maxY) + 'px 0';
    +            // FIXME DXImageTransform 在 IE11 的兼容模式下不起作用
    +            vmlElStyle.filter = imageTransformPrefix + '.Matrix('
    +                + transformFilter.join('') + ', SizingMethod=clip)';
    +
    +        }
    +        else {
    +            if (m) {
    +                x = x * scaleX + m[4];
    +                y = y * scaleY + m[5];
    +            }
    +            vmlElStyle.filter = '';
    +            vmlElStyle.left = round$3(x) + 'px';
    +            vmlElStyle.top = round$3(y) + 'px';
    +        }
    +
    +        var imageEl = this._imageEl;
    +        var cropEl = this._cropEl;
    +
    +        if (!imageEl) {
    +            imageEl = doc.createElement('div');
    +            this._imageEl = imageEl;
    +        }
    +        var imageELStyle = imageEl.style;
    +        if (hasCrop) {
    +            // Needs know image original width and height
    +            if (! (ow && oh)) {
    +                var tmpImage = new Image();
    +                var self = this;
    +                tmpImage.onload = function () {
    +                    tmpImage.onload = null;
    +                    ow = tmpImage.width;
    +                    oh = tmpImage.height;
    +                    // Adjust image width and height to fit the ratio destinationSize / sourceSize
    +                    imageELStyle.width = round$3(scaleX * ow * dw / sw) + 'px';
    +                    imageELStyle.height = round$3(scaleY * oh * dh / sh) + 'px';
    +
    +                    // Caching image original width, height and src
    +                    self._imageWidth = ow;
    +                    self._imageHeight = oh;
    +                    self._imageSrc = image;
    +                };
    +                tmpImage.src = image;
    +            }
    +            else {
    +                imageELStyle.width = round$3(scaleX * ow * dw / sw) + 'px';
    +                imageELStyle.height = round$3(scaleY * oh * dh / sh) + 'px';
    +            }
    +
    +            if (! cropEl) {
    +                cropEl = doc.createElement('div');
    +                cropEl.style.overflow = 'hidden';
    +                this._cropEl = cropEl;
    +            }
    +            var cropElStyle = cropEl.style;
    +            cropElStyle.width = round$3((dw + sx * dw / sw) * scaleX);
    +            cropElStyle.height = round$3((dh + sy * dh / sh) * scaleY);
    +            cropElStyle.filter = imageTransformPrefix + '.Matrix(Dx='
    +                    + (-sx * dw / sw * scaleX) + ',Dy=' + (-sy * dh / sh * scaleY) + ')';
    +
    +            if (! cropEl.parentNode) {
    +                vmlEl.appendChild(cropEl);
    +            }
    +            if (imageEl.parentNode != cropEl) {
    +                cropEl.appendChild(imageEl);
    +            }
    +        }
    +        else {
    +            imageELStyle.width = round$3(scaleX * dw) + 'px';
    +            imageELStyle.height = round$3(scaleY * dh) + 'px';
    +
    +            vmlEl.appendChild(imageEl);
    +
    +            if (cropEl && cropEl.parentNode) {
    +                vmlEl.removeChild(cropEl);
    +                this._cropEl = null;
    +            }
    +        }
    +
    +        var filterStr = '';
    +        var alpha = style.opacity;
    +        if (alpha < 1) {
    +            filterStr += '.Alpha(opacity=' + round$3(alpha * 100) + ') ';
    +        }
    +        filterStr += imageTransformPrefix + '.AlphaImageLoader(src=' + image + ', SizingMethod=scale)';
    +
    +        imageELStyle.filter = filterStr;
    +
    +        vmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2);
    +
    +        // Append to root
    +        append(vmlRoot, vmlEl);
    +
    +        // Text
    +        if (style.text != null) {
    +            this.drawRectText(vmlRoot, this.getBoundingRect());
    +        }
    +    };
    +
    +    ZImage.prototype.onRemove = function (vmlRoot) {
    +        remove(vmlRoot, this._vmlEl);
    +
    +        this._vmlEl = null;
    +        this._cropEl = null;
    +        this._imageEl = null;
    +
    +        this.removeRectText(vmlRoot);
    +    };
    +
    +    ZImage.prototype.onAdd = function (vmlRoot) {
    +        append(vmlRoot, this._vmlEl);
    +        this.appendRectText(vmlRoot);
    +    };
    +
    +
    +    /***************************************************
    +     * TEXT
    +     **************************************************/
    +
    +    var DEFAULT_STYLE_NORMAL = 'normal';
    +
    +    var fontStyleCache = {};
    +    var fontStyleCacheCount = 0;
    +    var MAX_FONT_CACHE_SIZE = 100;
    +    var fontEl = document.createElement('div');
    +
    +    var getFontStyle = function (fontString) {
    +        var fontStyle = fontStyleCache[fontString];
    +        if (!fontStyle) {
    +            // Clear cache
    +            if (fontStyleCacheCount > MAX_FONT_CACHE_SIZE) {
    +                fontStyleCacheCount = 0;
    +                fontStyleCache = {};
    +            }
    +
    +            var style = fontEl.style;
    +            var fontFamily;
    +            try {
    +                style.font = fontString;
    +                fontFamily = style.fontFamily.split(',')[0];
    +            }
    +            catch (e) {
    +            }
    +
    +            fontStyle = {
    +                style: style.fontStyle || DEFAULT_STYLE_NORMAL,
    +                variant: style.fontVariant || DEFAULT_STYLE_NORMAL,
    +                weight: style.fontWeight || DEFAULT_STYLE_NORMAL,
    +                size: parseFloat(style.fontSize || 12) | 0,
    +                family: fontFamily || 'Microsoft YaHei'
    +            };
    +
    +            fontStyleCache[fontString] = fontStyle;
    +            fontStyleCacheCount++;
    +        }
    +        return fontStyle;
    +    };
    +
    +    var textMeasureEl;
    +    // Overwrite measure text method
    +    $override$1('measureText', function (text, textFont) {
    +        var doc$$1 = doc;
    +        if (!textMeasureEl) {
    +            textMeasureEl = doc$$1.createElement('div');
    +            textMeasureEl.style.cssText = 'position:absolute;top:-20000px;left:0;'
    +                + 'padding:0;margin:0;border:none;white-space:pre;';
    +            doc.body.appendChild(textMeasureEl);
    +        }
    +
    +        try {
    +            textMeasureEl.style.font = textFont;
    +        } catch (ex) {
    +            // Ignore failures to set to invalid font.
    +        }
    +        textMeasureEl.innerHTML = '';
    +        // Don't use innerHTML or innerText because they allow markup/whitespace.
    +        textMeasureEl.appendChild(doc$$1.createTextNode(text));
    +        return {
    +            width: textMeasureEl.offsetWidth
    +        };
    +    });
    +
    +    var tmpRect$2 = new BoundingRect();
    +
    +    var drawRectText = function (vmlRoot, rect, textRect, fromTextEl) {
    +
    +        var style = this.style;
    +
    +        // Optimize, avoid normalize every time.
    +        this.__dirty && normalizeTextStyle(style, true);
    +
    +        var text = style.text;
    +        // Convert to string
    +        text != null && (text += '');
    +        if (!text) {
    +            return;
    +        }
    +
    +        // Convert rich text to plain text. Rich text is not supported in
    +        // IE8-, but tags in rich text template will be removed.
    +        if (style.rich) {
    +            var contentBlock = parseRichText(text, style);
    +            text = [];
    +            for (var i = 0; i < contentBlock.lines.length; i++) {
    +                var tokens = contentBlock.lines[i].tokens;
    +                var textLine = [];
    +                for (var j = 0; j < tokens.length; j++) {
    +                    textLine.push(tokens[j].text);
    +                }
    +                text.push(textLine.join(''));
    +            }
    +            text = text.join('\n');
    +        }
    +
    +        var x;
    +        var y;
    +        var align = style.textAlign;
    +        var verticalAlign = style.textVerticalAlign;
    +
    +        var fontStyle = getFontStyle(style.font);
    +        // FIXME encodeHtmlAttribute ?
    +        var font = fontStyle.style + ' ' + fontStyle.variant + ' ' + fontStyle.weight + ' '
    +            + fontStyle.size + 'px "' + fontStyle.family + '"';
    +
    +        textRect = textRect || getBoundingRect(text, font, align, verticalAlign);
    +
    +        // Transform rect to view space
    +        var m = this.transform;
    +        // Ignore transform for text in other element
    +        if (m && !fromTextEl) {
    +            tmpRect$2.copy(rect);
    +            tmpRect$2.applyTransform(m);
    +            rect = tmpRect$2;
    +        }
    +
    +        if (!fromTextEl) {
    +            var textPosition = style.textPosition;
    +            var distance$$1 = style.textDistance;
    +            // Text position represented by coord
    +            if (textPosition instanceof Array) {
    +                x = rect.x + parsePercent$3(textPosition[0], rect.width);
    +                y = rect.y + parsePercent$3(textPosition[1], rect.height);
    +
    +                align = align || 'left';
    +            }
    +            else {
    +                var res = adjustTextPositionOnRect(
    +                    textPosition, rect, distance$$1
    +                );
    +                x = res.x;
    +                y = res.y;
    +
    +                // Default align and baseline when has textPosition
    +                align = align || res.textAlign;
    +                verticalAlign = verticalAlign || res.textVerticalAlign;
    +            }
    +        }
    +        else {
    +            x = rect.x;
    +            y = rect.y;
    +        }
    +
    +        x = adjustTextX(x, textRect.width, align);
    +        y = adjustTextY(y, textRect.height, verticalAlign);
    +
    +        // Force baseline 'middle'
    +        y += textRect.height / 2;
    +
    +        // var fontSize = fontStyle.size;
    +        // 1.75 is an arbitrary number, as there is no info about the text baseline
    +        // switch (baseline) {
    +            // case 'hanging':
    +            // case 'top':
    +            //     y += fontSize / 1.75;
    +            //     break;
    +        //     case 'middle':
    +        //         break;
    +        //     default:
    +        //     // case null:
    +        //     // case 'alphabetic':
    +        //     // case 'ideographic':
    +        //     // case 'bottom':
    +        //         y -= fontSize / 2.25;
    +        //         break;
    +        // }
    +
    +        // switch (align) {
    +        //     case 'left':
    +        //         break;
    +        //     case 'center':
    +        //         x -= textRect.width / 2;
    +        //         break;
    +        //     case 'right':
    +        //         x -= textRect.width;
    +        //         break;
    +            // case 'end':
    +                // align = elementStyle.direction == 'ltr' ? 'right' : 'left';
    +                // break;
    +            // case 'start':
    +                // align = elementStyle.direction == 'rtl' ? 'right' : 'left';
    +                // break;
    +            // default:
    +            //     align = 'left';
    +        // }
    +
    +        var createNode$$1 = createNode;
    +
    +        var textVmlEl = this._textVmlEl;
    +        var pathEl;
    +        var textPathEl;
    +        var skewEl;
    +        if (!textVmlEl) {
    +            textVmlEl = createNode$$1('line');
    +            pathEl = createNode$$1('path');
    +            textPathEl = createNode$$1('textpath');
    +            skewEl = createNode$$1('skew');
    +
    +            // FIXME Why here is not cammel case
    +            // Align 'center' seems wrong
    +            textPathEl.style['v-text-align'] = 'left';
    +
    +            initRootElStyle(textVmlEl);
    +
    +            pathEl.textpathok = true;
    +            textPathEl.on = true;
    +
    +            textVmlEl.from = '0 0';
    +            textVmlEl.to = '1000 0.05';
    +
    +            append(textVmlEl, skewEl);
    +            append(textVmlEl, pathEl);
    +            append(textVmlEl, textPathEl);
    +
    +            this._textVmlEl = textVmlEl;
    +        }
    +        else {
    +            // 这里是在前面 appendChild 保证顺序的前提下
    +            skewEl = textVmlEl.firstChild;
    +            pathEl = skewEl.nextSibling;
    +            textPathEl = pathEl.nextSibling;
    +        }
    +
    +        var coords = [x, y];
    +        var textVmlElStyle = textVmlEl.style;
    +        // Ignore transform for text in other element
    +        if (m && fromTextEl) {
    +            applyTransform(coords, coords, m);
    +
    +            skewEl.on = true;
    +
    +            skewEl.matrix = m[0].toFixed(3) + comma + m[2].toFixed(3) + comma +
    +            m[1].toFixed(3) + comma + m[3].toFixed(3) + ',0,0';
    +
    +            // Text position
    +            skewEl.offset = (round$3(coords[0]) || 0) + ',' + (round$3(coords[1]) || 0);
    +            // Left top point as origin
    +            skewEl.origin = '0 0';
    +
    +            textVmlElStyle.left = '0px';
    +            textVmlElStyle.top = '0px';
    +        }
    +        else {
    +            skewEl.on = false;
    +            textVmlElStyle.left = round$3(x) + 'px';
    +            textVmlElStyle.top = round$3(y) + 'px';
    +        }
    +
    +        textPathEl.string = encodeHtmlAttribute(text);
    +        // TODO
    +        try {
    +            textPathEl.style.font = font;
    +        }
    +        // Error font format
    +        catch (e) {}
    +
    +        updateFillAndStroke(textVmlEl, 'fill', {
    +            fill: style.textFill,
    +            opacity: style.opacity
    +        }, this);
    +        updateFillAndStroke(textVmlEl, 'stroke', {
    +            stroke: style.textStroke,
    +            opacity: style.opacity,
    +            lineDash: style.lineDash
    +        }, this);
    +
    +        textVmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2);
    +
    +        // Attached to root
    +        append(vmlRoot, textVmlEl);
    +    };
    +
    +    var removeRectText = function (vmlRoot) {
    +        remove(vmlRoot, this._textVmlEl);
    +        this._textVmlEl = null;
    +    };
    +
    +    var appendRectText = function (vmlRoot) {
    +        append(vmlRoot, this._textVmlEl);
    +    };
    +
    +    var list = [RectText, Displayable, ZImage, Path, Text];
    +
    +    // In case Displayable has been mixed in RectText
    +    for (var i$3 = 0; i$3 < list.length; i$3++) {
    +        var proto$6 = list[i$3].prototype;
    +        proto$6.drawRectText = drawRectText;
    +        proto$6.removeRectText = removeRectText;
    +        proto$6.appendRectText = appendRectText;
    +    }
    +
    +    Text.prototype.brushVML = function (vmlRoot) {
    +        var style = this.style;
    +        if (style.text != null) {
    +            this.drawRectText(vmlRoot, {
    +                x: style.x || 0, y: style.y || 0,
    +                width: 0, height: 0
    +            }, this.getBoundingRect(), true);
    +        }
    +        else {
    +            this.removeRectText(vmlRoot);
    +        }
    +    };
    +
    +    Text.prototype.onRemove = function (vmlRoot) {
    +        this.removeRectText(vmlRoot);
    +    };
    +
    +    Text.prototype.onAdd = function (vmlRoot) {
    +        this.appendRectText(vmlRoot);
    +    };
    +}
    +
    +/**
    + * VML Painter.
    + *
    + * @module zrender/vml/Painter
    + */
    +
    +function parseInt10$1(val) {
    +    return parseInt(val, 10);
    +}
    +
    +/**
    + * @alias module:zrender/vml/Painter
    + */
    +function VMLPainter(root, storage) {
    +
    +    initVML();
    +
    +    this.root = root;
    +
    +    this.storage = storage;
    +
    +    var vmlViewport = document.createElement('div');
    +
    +    var vmlRoot = document.createElement('div');
    +
    +    vmlViewport.style.cssText = 'display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;';
    +
    +    vmlRoot.style.cssText = 'position:absolute;left:0;top:0;';
    +
    +    root.appendChild(vmlViewport);
    +
    +    this._vmlRoot = vmlRoot;
    +    this._vmlViewport = vmlViewport;
    +
    +    this.resize();
    +
    +    // Modify storage
    +    var oldDelFromStorage = storage.delFromStorage;
    +    var oldAddToStorage = storage.addToStorage;
    +    storage.delFromStorage = function (el) {
    +        oldDelFromStorage.call(storage, el);
    +
    +        if (el) {
    +            el.onRemove && el.onRemove(vmlRoot);
    +        }
    +    };
    +
    +    storage.addToStorage = function (el) {
    +        // Displayable already has a vml node
    +        el.onAdd && el.onAdd(vmlRoot);
    +
    +        oldAddToStorage.call(storage, el);
    +    };
    +
    +    this._firstPaint = true;
    +}
    +
    +VMLPainter.prototype = {
    +
    +    constructor: VMLPainter,
    +
    +    getType: function () {
    +        return 'vml';
    +    },
    +
    +    /**
    +     * @return {HTMLDivElement}
    +     */
    +    getViewportRoot: function () {
    +        return this._vmlViewport;
    +    },
    +
    +    getViewportRootOffset: function () {
    +        var viewportRoot = this.getViewportRoot();
    +        if (viewportRoot) {
    +            return {
    +                offsetLeft: viewportRoot.offsetLeft || 0,
    +                offsetTop: viewportRoot.offsetTop || 0
    +            };
    +        }
    +    },
    +
    +    /**
    +     * 刷新
    +     */
    +    refresh: function () {
    +
    +        var list = this.storage.getDisplayList(true, true);
    +
    +        this._paintList(list);
    +    },
    +
    +    _paintList: function (list) {
    +        var vmlRoot = this._vmlRoot;
    +        for (var i = 0; i < list.length; i++) {
    +            var el = list[i];
    +            if (el.invisible || el.ignore) {
    +                if (!el.__alreadyNotVisible) {
    +                    el.onRemove(vmlRoot);
    +                }
    +                // Set as already invisible
    +                el.__alreadyNotVisible = true;
    +            }
    +            else {
    +                if (el.__alreadyNotVisible) {
    +                    el.onAdd(vmlRoot);
    +                }
    +                el.__alreadyNotVisible = false;
    +                if (el.__dirty) {
    +                    el.beforeBrush && el.beforeBrush();
    +                    (el.brushVML || el.brush).call(el, vmlRoot);
    +                    el.afterBrush && el.afterBrush();
    +                }
    +            }
    +            el.__dirty = false;
    +        }
    +
    +        if (this._firstPaint) {
    +            // Detached from document at first time
    +            // to avoid page refreshing too many times
    +
    +            // FIXME 如果每次都先 removeChild 可能会导致一些填充和描边的效果改变
    +            this._vmlViewport.appendChild(vmlRoot);
    +            this._firstPaint = false;
    +        }
    +    },
    +
    +    resize: function (width, height) {
    +        var width = width == null ? this._getWidth() : width;
    +        var height = height == null ? this._getHeight() : height;
    +
    +        if (this._width != width || this._height != height) {
    +            this._width = width;
    +            this._height = height;
    +
    +            var vmlViewportStyle = this._vmlViewport.style;
    +            vmlViewportStyle.width = width + 'px';
    +            vmlViewportStyle.height = height + 'px';
    +        }
    +    },
    +
    +    dispose: function () {
    +        this.root.innerHTML = '';
    +
    +        this._vmlRoot =
    +        this._vmlViewport =
    +        this.storage = null;
    +    },
    +
    +    getWidth: function () {
    +        return this._width;
    +    },
    +
    +    getHeight: function () {
    +        return this._height;
    +    },
    +
    +    clear: function () {
    +        if (this._vmlViewport) {
    +            this.root.removeChild(this._vmlViewport);
    +        }
    +    },
    +
    +    _getWidth: function () {
    +        var root = this.root;
    +        var stl = root.currentStyle;
    +
    +        return ((root.clientWidth || parseInt10$1(stl.width))
    +                - parseInt10$1(stl.paddingLeft)
    +                - parseInt10$1(stl.paddingRight)) | 0;
    +    },
    +
    +    _getHeight: function () {
    +        var root = this.root;
    +        var stl = root.currentStyle;
    +
    +        return ((root.clientHeight || parseInt10$1(stl.height))
    +                - parseInt10$1(stl.paddingTop)
    +                - parseInt10$1(stl.paddingBottom)) | 0;
    +    }
    +};
    +
    +// Not supported methods
    +function createMethodNotSupport(method) {
    +    return function () {
    +        zrLog('In IE8.0 VML mode painter not support method "' + method + '"');
    +    };
    +}
    +
    +// Unsupported methods
    +each$1([
    +    'getLayer', 'insertLayer', 'eachLayer', 'eachBuiltinLayer', 'eachOtherLayer', 'getLayers',
    +    'modLayer', 'delLayer', 'clearLayer', 'toDataURL', 'pathToImage'
    +], function (name) {
    +    VMLPainter.prototype[name] = createMethodNotSupport(name);
    +});
    +
    +registerPainter('vml', VMLPainter);
    +
    +var svgURI = 'http://www.w3.org/2000/svg';
    +
    +function createElement(name) {
    +    return document.createElementNS(svgURI, name);
    +}
    +
    +// TODO
    +// 1. shadow
    +// 2. Image: sx, sy, sw, sh
    +
    +var CMD$4 = PathProxy.CMD;
    +var arrayJoin = Array.prototype.join;
    +
    +var NONE = 'none';
    +var mathRound = Math.round;
    +var mathSin$3 = Math.sin;
    +var mathCos$3 = Math.cos;
    +var PI$5 = Math.PI;
    +var PI2$6 = Math.PI * 2;
    +var degree = 180 / PI$5;
    +
    +var EPSILON$4 = 1e-4;
    +
    +function round4(val) {
    +    return mathRound(val * 1e4) / 1e4;
    +}
    +
    +function isAroundZero$1(val) {
    +    return val < EPSILON$4 && val > -EPSILON$4;
    +}
    +
    +function pathHasFill(style, isText) {
    +    var fill = isText ? style.textFill : style.fill;
    +    return fill != null && fill !== NONE;
    +}
    +
    +function pathHasStroke(style, isText) {
    +    var stroke = isText ? style.textStroke : style.stroke;
    +    return stroke != null && stroke !== NONE;
    +}
    +
    +function setTransform(svgEl, m) {
    +    if (m) {
    +        attr(svgEl, 'transform', 'matrix(' + arrayJoin.call(m, ',') + ')');
    +    }
    +}
    +
    +function attr(el, key, val) {
    +    if (!val || val.type !== 'linear' && val.type !== 'radial') {
    +        // Don't set attribute for gradient, since it need new dom nodes
    +        el.setAttribute(key, val);
    +    }
    +}
    +
    +function attrXLink(el, key, val) {
    +    el.setAttributeNS('http://www.w3.org/1999/xlink', key, val);
    +}
    +
    +function bindStyle(svgEl, style, isText) {
    +    if (pathHasFill(style, isText)) {
    +        var fill = isText ? style.textFill : style.fill;
    +        fill = fill === 'transparent' ? NONE : fill;
    +
    +        /**
    +         * FIXME:
    +         * This is a temporary fix for Chrome's clipping bug
    +         * that happens when a clip-path is referring another one.
    +         * This fix should be used before Chrome's bug is fixed.
    +         * For an element that has clip-path, and fill is none,
    +         * set it to be "rgba(0, 0, 0, 0.002)" will hide the element.
    +         * Otherwise, it will show black fill color.
    +         * 0.002 is used because this won't work for alpha values smaller
    +         * than 0.002.
    +         *
    +         * See
    +         * https://bugs.chromium.org/p/chromium/issues/detail?id=659790
    +         * for more information.
    +         */
    +        if (svgEl.getAttribute('clip-path') !== 'none' && fill === NONE) {
    +            fill = 'rgba(0, 0, 0, 0.002)';
    +        }
    +
    +        attr(svgEl, 'fill', fill);
    +        attr(svgEl, 'fill-opacity', style.opacity);
    +    }
    +    else {
    +        attr(svgEl, 'fill', NONE);
    +    }
    +
    +    if (pathHasStroke(style, isText)) {
    +        var stroke = isText ? style.textStroke : style.stroke;
    +        stroke = stroke === 'transparent' ? NONE : stroke;
    +        attr(svgEl, 'stroke', stroke);
    +        var strokeWidth = isText
    +            ? style.textStrokeWidth
    +            : style.lineWidth;
    +        var strokeScale = style.strokeNoScale
    +            ? style.host.getLineScale()
    +            : 1;
    +        attr(svgEl, 'stroke-width', strokeWidth / strokeScale);
    +        attr(svgEl, 'paint-order', 'stroke');
    +        attr(svgEl, 'stroke-opacity', style.opacity);
    +        var lineDash = style.lineDash;
    +        if (lineDash) {
    +            attr(svgEl, 'stroke-dasharray', style.lineDash.join(','));
    +            attr(svgEl, 'stroke-dashoffset', mathRound(style.lineDashOffset || 0));
    +        }
    +        else {
    +            attr(svgEl, 'stroke-dasharray', '');
    +        }
    +
    +        // PENDING
    +        style.lineCap && attr(svgEl, 'stroke-linecap', style.lineCap);
    +        style.lineJoin && attr(svgEl, 'stroke-linejoin', style.lineJoin);
    +        style.miterLimit && attr(svgEl, 'stroke-miterlimit', style.miterLimit);
    +    }
    +    else {
    +        attr(svgEl, 'stroke', NONE);
    +    }
    +}
    +
    +/***************************************************
    + * PATH
    + **************************************************/
    +function pathDataToString$1(path) {
    +    var str = [];
    +    var data = path.data;
    +    var dataLength = path.len();
    +    for (var i = 0; i < dataLength;) {
    +        var cmd = data[i++];
    +        var cmdStr = '';
    +        var nData = 0;
    +        switch (cmd) {
    +            case CMD$4.M:
    +                cmdStr = 'M';
    +                nData = 2;
    +                break;
    +            case CMD$4.L:
    +                cmdStr = 'L';
    +                nData = 2;
    +                break;
    +            case CMD$4.Q:
    +                cmdStr = 'Q';
    +                nData = 4;
    +                break;
    +            case CMD$4.C:
    +                cmdStr = 'C';
    +                nData = 6;
    +                break;
    +            case CMD$4.A:
    +                var cx = data[i++];
    +                var cy = data[i++];
    +                var rx = data[i++];
    +                var ry = data[i++];
    +                var theta = data[i++];
    +                var dTheta = data[i++];
    +                var psi = data[i++];
    +                var clockwise = data[i++];
    +
    +                var dThetaPositive = Math.abs(dTheta);
    +                var isCircle = isAroundZero$1(dThetaPositive % PI2$6)
    +                    && !isAroundZero$1(dThetaPositive);
    +
    +                var large = false;
    +                if (dThetaPositive >= PI2$6) {
    +                    large = true;
    +                }
    +                else if (isAroundZero$1(dThetaPositive)) {
    +                    large = false;
    +                }
    +                else {
    +                    large = (dTheta > -PI$5 && dTheta < 0 || dTheta > PI$5)
    +                        === !!clockwise;
    +                }
    +
    +                var x0 = round4(cx + rx * mathCos$3(theta));
    +                var y0 = round4(cy + ry * mathSin$3(theta));
    +
    +                // It will not draw if start point and end point are exactly the same
    +                // We need to shift the end point with a small value
    +                // FIXME A better way to draw circle ?
    +                if (isCircle) {
    +                    if (clockwise) {
    +                        dTheta = PI2$6 - 1e-4;
    +                    }
    +                    else {
    +                        dTheta = -PI2$6 + 1e-4;
    +                    }
    +
    +                    large = true;
    +
    +                    if (i === 9) {
    +                        // Move to (x0, y0) only when CMD.A comes at the
    +                        // first position of a shape.
    +                        // For instance, when drawing a ring, CMD.A comes
    +                        // after CMD.M, so it's unnecessary to move to
    +                        // (x0, y0).
    +                        str.push('M', x0, y0);
    +                    }
    +                }
    +
    +                var x = round4(cx + rx * mathCos$3(theta + dTheta));
    +                var y = round4(cy + ry * mathSin$3(theta + dTheta));
    +
    +                // FIXME Ellipse
    +                str.push('A', round4(rx), round4(ry),
    +                    mathRound(psi * degree), +large, +clockwise, x, y);
    +                break;
    +            case CMD$4.Z:
    +                cmdStr = 'Z';
    +                break;
    +            case CMD$4.R:
    +                var x = round4(data[i++]);
    +                var y = round4(data[i++]);
    +                var w = round4(data[i++]);
    +                var h = round4(data[i++]);
    +                str.push(
    +                    'M', x, y,
    +                    'L', x + w, y,
    +                    'L', x + w, y + h,
    +                    'L', x, y + h,
    +                    'L', x, y
    +                );
    +                break;
    +        }
    +        cmdStr && str.push(cmdStr);
    +        for (var j = 0; j < nData; j++) {
    +            // PENDING With scale
    +            str.push(round4(data[i++]));
    +        }
    +    }
    +    return str.join(' ');
    +}
    +
    +var svgPath = {};
    +svgPath.brush = function (el) {
    +    var style = el.style;
    +
    +    var svgEl = el.__svgEl;
    +    if (!svgEl) {
    +        svgEl = createElement('path');
    +        el.__svgEl = svgEl;
    +    }
    +
    +    if (!el.path) {
    +        el.createPathProxy();
    +    }
    +    var path = el.path;
    +
    +    if (el.__dirtyPath) {
    +        path.beginPath();
    +        el.buildPath(path, el.shape);
    +        el.__dirtyPath = false;
    +
    +        var pathStr = pathDataToString$1(path);
    +        if (pathStr.indexOf('NaN') < 0) {
    +            // Ignore illegal path, which may happen such in out-of-range
    +            // data in Calendar series.
    +            attr(svgEl, 'd', pathStr);
    +        }
    +    }
    +
    +    bindStyle(svgEl, style);
    +    setTransform(svgEl, el.transform);
    +
    +    if (style.text != null) {
    +        svgTextDrawRectText(el, el.getBoundingRect());
    +    }
    +};
    +
    +/***************************************************
    + * IMAGE
    + **************************************************/
    +var svgImage = {};
    +svgImage.brush = function (el) {
    +    var style = el.style;
    +    var image = style.image;
    +
    +    if (image instanceof HTMLImageElement) {
    +        var src = image.src;
    +        image = src;
    +    }
    +    if (! image) {
    +        return;
    +    }
    +
    +    var x = style.x || 0;
    +    var y = style.y || 0;
    +
    +    var dw = style.width;
    +    var dh = style.height;
    +
    +    var svgEl = el.__svgEl;
    +    if (! svgEl) {
    +        svgEl = createElement('image');
    +        el.__svgEl = svgEl;
    +    }
    +
    +    if (image !== el.__imageSrc) {
    +        attrXLink(svgEl, 'href', image);
    +        // Caching image src
    +        el.__imageSrc = image;
    +    }
    +
    +    attr(svgEl, 'width', dw);
    +    attr(svgEl, 'height', dh);
    +
    +    attr(svgEl, 'x', x);
    +    attr(svgEl, 'y', y);
    +
    +    setTransform(svgEl, el.transform);
    +
    +    if (style.text != null) {
    +        svgTextDrawRectText(el, el.getBoundingRect());
    +    }
    +};
    +
    +/***************************************************
    + * TEXT
    + **************************************************/
    +var svgText = {};
    +var tmpRect$3 = new BoundingRect();
    +
    +var svgTextDrawRectText = function (el, rect, textRect) {
    +    var style = el.style;
    +
    +    el.__dirty && normalizeTextStyle(style, true);
    +
    +    var text = style.text;
    +    // Convert to string
    +    if (text == null) {
    +        // Draw no text only when text is set to null, but not ''
    +        return;
    +    }
    +    else {
    +        text += '';
    +    }
    +
    +    var textSvgEl = el.__textSvgEl;
    +    if (! textSvgEl) {
    +        textSvgEl = createElement('text');
    +        el.__textSvgEl = textSvgEl;
    +    }
    +
    +    bindStyle(textSvgEl, style, true);
    +    if (el instanceof Text || el.style.transformText) {
    +        // Transform text with element
    +        setTransform(textSvgEl, el.transform);
    +    }
    +    else {
    +        if (el.transform) {
    +            tmpRect$3.copy(rect);
    +            tmpRect$3.applyTransform(el.transform);
    +            rect = tmpRect$3;
    +        }
    +        else {
    +            var pos = el.transformCoordToGlobal(rect.x, rect.y);
    +            rect.x = pos[0];
    +            rect.y = pos[1];
    +        }
    +    }
    +
    +    var x;
    +    var y;
    +    var textPosition = style.textPosition;
    +    var distance = style.textDistance;
    +    var align = style.textAlign || 'left';
    +
    +    if (typeof style.fontSize === 'number') {
    +        style.fontSize += 'px';
    +    }
    +    var font = style.font
    +        || [
    +            style.fontStyle || '',
    +            style.fontWeight || '',
    +            style.fontSize || '',
    +            style.fontFamily || ''
    +        ].join(' ')
    +        || DEFAULT_FONT;
    +
    +    var verticalAlign = getVerticalAlignForSvg(style.textVerticalAlign);
    +
    +    textRect = getBoundingRect(text, font, align,
    +        verticalAlign);
    +
    +    var lineHeight = textRect.lineHeight;
    +    // Text position represented by coord
    +    if (textPosition instanceof Array) {
    +        x = rect.x + textPosition[0];
    +        y = rect.y + textPosition[1];
    +    }
    +    else {
    +        var newPos = adjustTextPositionOnRect(
    +            textPosition, rect, distance
    +        );
    +        x = newPos.x;
    +        y = newPos.y;
    +        verticalAlign = getVerticalAlignForSvg(newPos.textVerticalAlign);
    +        align = newPos.textAlign;
    +    }
    +
    +    attr(textSvgEl, 'alignment-baseline', verticalAlign);
    +
    +    if (font) {
    +        textSvgEl.style.font = font;
    +    }
    +
    +    var textPadding = style.textPadding;
    +
    +    // Make baseline top
    +    attr(textSvgEl, 'x', x);
    +    attr(textSvgEl, 'y', y);
    +
    +    var textLines = text.split('\n');
    +    var nTextLines = textLines.length;
    +    var textAnchor = align;
    +    // PENDING
    +    if (textAnchor === 'left')  {
    +        textAnchor = 'start';
    +        textPadding && (x += textPadding[3]);
    +    }
    +    else if (textAnchor === 'right') {
    +        textAnchor = 'end';
    +        textPadding && (x -= textPadding[1]);
    +    }
    +    else if (textAnchor === 'center') {
    +        textAnchor = 'middle';
    +        textPadding && (x += (textPadding[3] - textPadding[1]) / 2);
    +    }
    +
    +    var dy = 0;
    +    if (verticalAlign === 'baseline') {
    +        dy = -textRect.height + lineHeight;
    +        textPadding && (dy -= textPadding[2]);
    +    }
    +    else if (verticalAlign === 'middle') {
    +        dy = (-textRect.height + lineHeight) / 2;
    +        textPadding && (y += (textPadding[0] - textPadding[2]) / 2);
    +    }
    +    else {
    +        textPadding && (dy += textPadding[0]);
    +    }
    +
    +    // Font may affect position of each tspan elements
    +    if (el.__text !== text || el.__textFont !== font) {
    +        var tspanList = el.__tspanList || [];
    +        el.__tspanList = tspanList;
    +        for (var i = 0; i < nTextLines; i++) {
    +            // Using cached tspan elements
    +            var tspan = tspanList[i];
    +            if (! tspan) {
    +                tspan = tspanList[i] = createElement('tspan');
    +                textSvgEl.appendChild(tspan);
    +                attr(tspan, 'alignment-baseline', verticalAlign);
    +                attr(tspan, 'text-anchor', textAnchor);
    +            }
    +            else {
    +                tspan.innerHTML = '';
    +            }
    +            attr(tspan, 'x', x);
    +            attr(tspan, 'y', y + i * lineHeight + dy);
    +            tspan.appendChild(document.createTextNode(textLines[i]));
    +        }
    +        // Remove unsed tspan elements
    +        for (; i < tspanList.length; i++) {
    +            textSvgEl.removeChild(tspanList[i]);
    +        }
    +        tspanList.length = nTextLines;
    +
    +        el.__text = text;
    +        el.__textFont = font;
    +    }
    +    else if (el.__tspanList.length) {
    +        // Update span x and y
    +        var len = el.__tspanList.length;
    +        for (var i = 0; i < len; ++i) {
    +            var tspan = el.__tspanList[i];
    +            if (tspan) {
    +                attr(tspan, 'x', x);
    +                attr(tspan, 'y', y + i * lineHeight + dy);
    +            }
    +        }
    +    }
    +};
    +
    +function getVerticalAlignForSvg(verticalAlign) {
    +    if (verticalAlign === 'middle') {
    +        return 'middle';
    +    }
    +    else if (verticalAlign === 'bottom') {
    +        return 'baseline';
    +    }
    +    else {
    +        return 'hanging';
    +    }
    +}
    +
    +svgText.drawRectText = svgTextDrawRectText;
    +
    +svgText.brush = function (el) {
    +    var style = el.style;
    +    if (style.text != null) {
    +        // 强制设置 textPosition
    +        style.textPosition = [0, 0];
    +        svgTextDrawRectText(el, {
    +            x: style.x || 0, y: style.y || 0,
    +            width: 0, height: 0
    +        }, el.getBoundingRect());
    +    }
    +};
    +
    +// Myers' Diff Algorithm
    +// Modified from https://github.com/kpdecker/jsdiff/blob/master/src/diff/base.js
    +
    +function Diff() {}
    +
    +Diff.prototype = {
    +    diff: function (oldArr, newArr, equals) {
    +        if (!equals) {
    +            equals = function (a, b) {
    +                return a === b;
    +            };
    +        }
    +        this.equals = equals;
    +
    +        var self = this;
    +
    +        oldArr = oldArr.slice();
    +        newArr = newArr.slice();
    +        // Allow subclasses to massage the input prior to running
    +        var newLen = newArr.length;
    +        var oldLen = oldArr.length;
    +        var editLength = 1;
    +        var maxEditLength = newLen + oldLen;
    +        var bestPath = [{ newPos: -1, components: [] }];
    +
    +        // Seed editLength = 0, i.e. the content starts with the same values
    +        var oldPos = this.extractCommon(bestPath[0], newArr, oldArr, 0);
    +        if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {
    +            var indices = [];
    +            for (var i = 0; i < newArr.length; i++) {
    +                indices.push(i);
    +            }
    +            // Identity per the equality and tokenizer
    +            return [{
    +                indices: indices, count: newArr.length
    +            }];
    +        }
    +
    +        // Main worker method. checks all permutations of a given edit length for acceptance.
    +        function execEditLength() {
    +            for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
    +                var basePath;
    +                var addPath = bestPath[diagonalPath - 1];
    +                var removePath = bestPath[diagonalPath + 1];
    +                var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
    +                if (addPath) {
    +                    // No one else is going to attempt to use this value, clear it
    +                    bestPath[diagonalPath - 1] = undefined;
    +                }
    +
    +                var canAdd = addPath && addPath.newPos + 1 < newLen;
    +                var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;
    +                if (!canAdd && !canRemove) {
    +                    // If this path is a terminal then prune
    +                    bestPath[diagonalPath] = undefined;
    +                    continue;
    +                }
    +
    +                // Select the diagonal that we want to branch from. We select the prior
    +                // path whose position in the new string is the farthest from the origin
    +                // and does not pass the bounds of the diff graph
    +                if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {
    +                    basePath = clonePath(removePath);
    +                    self.pushComponent(basePath.components, undefined, true);
    +                }
    +                else {
    +                    basePath = addPath;   // No need to clone, we've pulled it from the list
    +                    basePath.newPos++;
    +                    self.pushComponent(basePath.components, true, undefined);
    +                }
    +
    +                oldPos = self.extractCommon(basePath, newArr, oldArr, diagonalPath);
    +
    +                // If we have hit the end of both strings, then we are done
    +                if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) {
    +                    return buildValues(self, basePath.components, newArr, oldArr);
    +                }
    +                else {
    +                    // Otherwise track this path as a potential candidate and continue.
    +                    bestPath[diagonalPath] = basePath;
    +                }
    +            }
    +
    +            editLength++;
    +        }
    +
    +        while (editLength <= maxEditLength) {
    +            var ret = execEditLength();
    +            if (ret) {
    +                return ret;
    +            }
    +        }
    +    },
    +
    +    pushComponent: function (components, added, removed) {
    +        var last = components[components.length - 1];
    +        if (last && last.added === added && last.removed === removed) {
    +            // We need to clone here as the component clone operation is just
    +            // as shallow array clone
    +            components[components.length - 1] = {count: last.count + 1, added: added, removed: removed };
    +        }
    +        else {
    +            components.push({count: 1, added: added, removed: removed });
    +        }
    +    },
    +    extractCommon: function (basePath, newArr, oldArr, diagonalPath) {
    +        var newLen = newArr.length;
    +        var oldLen = oldArr.length;
    +        var newPos = basePath.newPos;
    +        var oldPos = newPos - diagonalPath;
    +        var commonCount = 0;
    +
    +        while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newArr[newPos + 1], oldArr[oldPos + 1])) {
    +            newPos++;
    +            oldPos++;
    +            commonCount++;
    +        }
    +
    +        if (commonCount) {
    +            basePath.components.push({count: commonCount});
    +        }
    +
    +        basePath.newPos = newPos;
    +        return oldPos;
    +    },
    +    tokenize: function (value) {
    +        return value.slice();
    +    },
    +    join: function (value) {
    +        return value.slice();
    +    }
    +};
    +
    +function buildValues(diff, components, newArr, oldArr) {
    +    var componentPos = 0;
    +    var componentLen = components.length;
    +    var newPos = 0;
    +    var oldPos = 0;
    +
    +    for (; componentPos < componentLen; componentPos++) {
    +        var component = components[componentPos];
    +        if (!component.removed) {
    +            var indices = [];
    +            for (var i = newPos; i < newPos + component.count; i++) {
    +                indices.push(i);
    +            }
    +            component.indices = indices;
    +            newPos += component.count;
    +            // Common case
    +            if (!component.added) {
    +                oldPos += component.count;
    +            }
    +        }
    +        else {
    +            var indices = [];
    +            for (var i = oldPos; i < oldPos + component.count; i++) {
    +                indices.push(i);
    +            }
    +            component.indices = indices;
    +            oldPos += component.count;
    +        }
    +    }
    +
    +    return components;
    +}
    +
    +function clonePath(path) {
    +    return { newPos: path.newPos, components: path.components.slice(0) };
    +}
    +
    +var arrayDiff = new Diff();
    +
    +var arrayDiff$1 = function (oldArr, newArr, callback) {
    +    return arrayDiff.diff(oldArr, newArr, callback);
    +};
    +
    +/**
    + * @file Manages elements that can be defined in <defs> in SVG,
    + *       e.g., gradients, clip path, etc.
    + * @author Zhang Wenli
    + */
    +
    +var MARK_UNUSED = '0';
    +var MARK_USED = '1';
    +
    +/**
    + * Manages elements that can be defined in <defs> in SVG,
    + * e.g., gradients, clip path, etc.
    + *
    + * @class
    + * @param {SVGElement}      svgRoot   root of SVG document
    + * @param {string|string[]} tagNames  possible tag names
    + * @param {string}          markLabel label name to make if the element
    + *                                    is used
    + */
    +function Definable(
    +    svgRoot,
    +    tagNames,
    +    markLabel
    +) {
    +
    +    this._svgRoot = svgRoot;
    +    this._tagNames = typeof tagNames === 'string' ? [tagNames] : tagNames;
    +    this._markLabel = markLabel;
    +
    +    this.nextId = 0;
    +}
    +
    +
    +Definable.prototype.createElement = createElement;
    +
    +
    +/**
    + * Get the <defs> tag for svgRoot; optionally creates one if not exists.
    + *
    + * @param {boolean} isForceCreating if need to create when not exists
    + * @return {SVGDefsElement} SVG <defs> element, null if it doesn't
    + * exist and isForceCreating is false
    + */
    +Definable.prototype.getDefs = function (isForceCreating) {
    +    var svgRoot = this._svgRoot;
    +    var defs = this._svgRoot.getElementsByTagName('defs');
    +    if (defs.length === 0) {
    +        // Not exist
    +        if (isForceCreating) {
    +            defs = svgRoot.insertBefore(
    +                this.createElement('defs'), // Create new tag
    +                svgRoot.firstChild // Insert in the front of svg
    +            );
    +            if (!defs.contains) {
    +                // IE doesn't support contains method
    +                defs.contains = function (el) {
    +                    var children = defs.children;
    +                    if (!children) {
    +                        return false;
    +                    }
    +                    for (var i = children.length - 1; i >= 0; --i) {
    +                        if (children[i] === el) {
    +                            return true;
    +                        }
    +                    }
    +                    return false;
    +                };
    +            }
    +            return defs;
    +        }
    +        else {
    +            return null;
    +        }
    +    }
    +    else {
    +        return defs[0];
    +    }
    +};
    +
    +
    +/**
    + * Update DOM element if necessary.
    + *
    + * @param {Object|string} element style element. e.g., for gradient,
    + *                                it may be '#ccc' or {type: 'linear', ...}
    + * @param {Function|undefined} onUpdate update callback
    + */
    +Definable.prototype.update = function (element, onUpdate) {
    +    if (!element) {
    +        return;
    +    }
    +
    +    var defs = this.getDefs(false);
    +    if (element._dom && defs.contains(element._dom)) {
    +        // Update DOM
    +        if (typeof onUpdate === 'function') {
    +            onUpdate();
    +        }
    +    }
    +    else {
    +        // No previous dom, create new
    +        var dom = this.add(element);
    +        if (dom) {
    +            element._dom = dom;
    +        }
    +    }
    +};
    +
    +
    +/**
    + * Add gradient dom to defs
    + *
    + * @param {SVGElement} dom DOM to be added to <defs>
    + */
    +Definable.prototype.addDom = function (dom) {
    +    var defs = this.getDefs(true);
    +    defs.appendChild(dom);
    +};
    +
    +
    +/**
    + * Remove DOM of a given element.
    + *
    + * @param {SVGElement} element element to remove dom
    + */
    +Definable.prototype.removeDom = function (element) {
    +    var defs = this.getDefs(false);
    +    defs.removeChild(element._dom);
    +};
    +
    +
    +/**
    + * Get DOMs of this element.
    + *
    + * @return {HTMLDomElement} doms of this defineable elements in <defs>
    + */
    +Definable.prototype.getDoms = function () {
    +    var defs = this.getDefs(false);
    +    if (!defs) {
    +        // No dom when defs is not defined
    +        return [];
    +    }
    +
    +    var doms = [];
    +    each$1(this._tagNames, function (tagName) {
    +        var tags = defs.getElementsByTagName(tagName);
    +        // Note that tags is HTMLCollection, which is array-like
    +        // rather than real array.
    +        // So `doms.concat(tags)` add tags as one object.
    +        doms = doms.concat([].slice.call(tags));
    +    });
    +
    +    return doms;
    +};
    +
    +
    +/**
    + * Mark DOMs to be unused before painting, and clear unused ones at the end
    + * of the painting.
    + */
    +Definable.prototype.markAllUnused = function () {
    +    var doms = this.getDoms();
    +    var that = this;
    +    each$1(doms, function (dom) {
    +        dom[that._markLabel] = MARK_UNUSED;
    +    });
    +};
    +
    +
    +/**
    + * Mark a single DOM to be used.
    + *
    + * @param {SVGElement} dom DOM to mark
    + */
    +Definable.prototype.markUsed = function (dom) {
    +    if (dom) {
    +        dom[this._markLabel] = MARK_USED;
    +    }
    +};
    +
    +
    +/**
    + * Remove unused DOMs defined in <defs>
    + */
    +Definable.prototype.removeUnused = function () {
    +    var defs = this.getDefs(false);
    +    if (!defs) {
    +        // Nothing to remove
    +        return;
    +    }
    +
    +    var doms = this.getDoms();
    +    var that = this;
    +    each$1(doms, function (dom) {
    +        if (dom[that._markLabel] !== MARK_USED) {
    +            // Remove gradient
    +            defs.removeChild(dom);
    +        }
    +    });
    +};
    +
    +
    +/**
    + * Get SVG proxy.
    + *
    + * @param {Displayable} displayable displayable element
    + * @return {Path|Image|Text} svg proxy of given element
    + */
    +Definable.prototype.getSvgProxy = function (displayable) {
    +    if (displayable instanceof Path) {
    +        return svgPath;
    +    }
    +    else if (displayable instanceof ZImage) {
    +        return svgImage;
    +    }
    +    else if (displayable instanceof Text) {
    +        return svgText;
    +    }
    +    else {
    +        return svgPath;
    +    }
    +};
    +
    +
    +/**
    + * Get text SVG element.
    + *
    + * @param {Displayable} displayable displayable element
    + * @return {SVGElement} SVG element of text
    + */
    +Definable.prototype.getTextSvgElement = function (displayable) {
    +    return displayable.__textSvgEl;
    +};
    +
    +
    +/**
    + * Get SVG element.
    + *
    + * @param {Displayable} displayable displayable element
    + * @return {SVGElement} SVG element
    + */
    +Definable.prototype.getSvgElement = function (displayable) {
    +    return displayable.__svgEl;
    +};
    +
    +/**
    + * @file Manages SVG gradient elements.
    + * @author Zhang Wenli
    + */
    +
    +/**
    + * Manages SVG gradient elements.
    + *
    + * @class
    + * @extends Definable
    + * @param   {SVGElement} svgRoot root of SVG document
    + */
    +function GradientManager(svgRoot) {
    +    Definable.call(
    +        this,
    +        svgRoot,
    +        ['linearGradient', 'radialGradient'],
    +        '__gradient_in_use__'
    +    );
    +}
    +
    +
    +inherits(GradientManager, Definable);
    +
    +
    +/**
    + * Create new gradient DOM for fill or stroke if not exist,
    + * but will not update gradient if exists.
    + *
    + * @param {SvgElement}  svgElement   SVG element to paint
    + * @param {Displayable} displayable  zrender displayable element
    + */
    +GradientManager.prototype.addWithoutUpdate = function (
    +    svgElement,
    +    displayable
    +) {
    +    if (displayable && displayable.style) {
    +        var that = this;
    +        each$1(['fill', 'stroke'], function (fillOrStroke) {
    +            if (displayable.style[fillOrStroke]
    +                && (displayable.style[fillOrStroke].type === 'linear'
    +                || displayable.style[fillOrStroke].type === 'radial')
    +            ) {
    +                var gradient = displayable.style[fillOrStroke];
    +                var defs = that.getDefs(true);
    +
    +                // Create dom in <defs> if not exists
    +                var dom;
    +                if (gradient._dom) {
    +                    // Gradient exists
    +                    dom = gradient._dom;
    +                    if (!defs.contains(gradient._dom)) {
    +                        // _dom is no longer in defs, recreate
    +                        that.addDom(dom);
    +                    }
    +                }
    +                else {
    +                    // New dom
    +                    dom = that.add(gradient);
    +                }
    +
    +                that.markUsed(displayable);
    +
    +                var id = dom.getAttribute('id');
    +                svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');
    +            }
    +        });
    +    }
    +};
    +
    +
    +/**
    + * Add a new gradient tag in <defs>
    + *
    + * @param   {Gradient} gradient zr gradient instance
    + * @return {SVGLinearGradientElement | SVGRadialGradientElement}
    + *                            created DOM
    + */
    +GradientManager.prototype.add = function (gradient) {
    +    var dom;
    +    if (gradient.type === 'linear') {
    +        dom = this.createElement('linearGradient');
    +    }
    +    else if (gradient.type === 'radial') {
    +        dom = this.createElement('radialGradient');
    +    }
    +    else {
    +        zrLog('Illegal gradient type.');
    +        return null;
    +    }
    +
    +    // Set dom id with gradient id, since each gradient instance
    +    // will have no more than one dom element.
    +    // id may exists before for those dirty elements, in which case
    +    // id should remain the same, and other attributes should be
    +    // updated.
    +    gradient.id = gradient.id || this.nextId++;
    +    dom.setAttribute('id', 'zr-gradient-' + gradient.id);
    +
    +    this.updateDom(gradient, dom);
    +    this.addDom(dom);
    +
    +    return dom;
    +};
    +
    +
    +/**
    + * Update gradient.
    + *
    + * @param {Gradient} gradient zr gradient instance
    + */
    +GradientManager.prototype.update = function (gradient) {
    +    var that = this;
    +    Definable.prototype.update.call(this, gradient, function () {
    +        var type = gradient.type;
    +        var tagName = gradient._dom.tagName;
    +        if (type === 'linear' && tagName === 'linearGradient'
    +            || type === 'radial' && tagName === 'radialGradient'
    +        ) {
    +            // Gradient type is not changed, update gradient
    +            that.updateDom(gradient, gradient._dom);
    +        }
    +        else {
    +            // Remove and re-create if type is changed
    +            that.removeDom(gradient);
    +            that.add(gradient);
    +        }
    +    });
    +};
    +
    +
    +/**
    + * Update gradient dom
    + *
    + * @param {Gradient} gradient zr gradient instance
    + * @param {SVGLinearGradientElement | SVGRadialGradientElement} dom
    + *                            DOM to update
    + */
    +GradientManager.prototype.updateDom = function (gradient, dom) {
    +    if (gradient.type === 'linear') {
    +        dom.setAttribute('x1', gradient.x);
    +        dom.setAttribute('y1', gradient.y);
    +        dom.setAttribute('x2', gradient.x2);
    +        dom.setAttribute('y2', gradient.y2);
    +    }
    +    else if (gradient.type === 'radial') {
    +        dom.setAttribute('cx', gradient.x);
    +        dom.setAttribute('cy', gradient.y);
    +        dom.setAttribute('r', gradient.r);
    +    }
    +    else {
    +        zrLog('Illegal gradient type.');
    +        return;
    +    }
    +
    +    if (gradient.global) {
    +        // x1, x2, y1, y2 in range of 0 to canvas width or height
    +        dom.setAttribute('gradientUnits', 'userSpaceOnUse');
    +    }
    +    else {
    +        // x1, x2, y1, y2 in range of 0 to 1
    +        dom.setAttribute('gradientUnits', 'objectBoundingBox');
    +    }
    +
    +    // Remove color stops if exists
    +    dom.innerHTML = '';
    +
    +    // Add color stops
    +    var colors = gradient.colorStops;
    +    for (var i = 0, len = colors.length; i < len; ++i) {
    +        var stop = this.createElement('stop');
    +        stop.setAttribute('offset', colors[i].offset * 100 + '%');
    +        stop.setAttribute('stop-color', colors[i].color);
    +        dom.appendChild(stop);
    +    }
    +
    +    // Store dom element in gradient, to avoid creating multiple
    +    // dom instances for the same gradient element
    +    gradient._dom = dom;
    +};
    +
    +/**
    + * Mark a single gradient to be used
    + *
    + * @param {Displayable} displayable displayable element
    + */
    +GradientManager.prototype.markUsed = function (displayable) {
    +    if (displayable.style) {
    +        var gradient = displayable.style.fill;
    +        if (gradient && gradient._dom) {
    +            Definable.prototype.markUsed.call(this, gradient._dom);
    +        }
    +
    +        gradient = displayable.style.stroke;
    +        if (gradient && gradient._dom) {
    +            Definable.prototype.markUsed.call(this, gradient._dom);
    +        }
    +    }
    +};
    +
    +/**
    + * @file Manages SVG clipPath elements.
    + * @author Zhang Wenli
    + */
    +
    +/**
    + * Manages SVG clipPath elements.
    + *
    + * @class
    + * @extends Definable
    + * @param   {SVGElement} svgRoot root of SVG document
    + */
    +function ClippathManager(svgRoot) {
    +    Definable.call(this, svgRoot, 'clipPath', '__clippath_in_use__');
    +}
    +
    +
    +inherits(ClippathManager, Definable);
    +
    +
    +/**
    + * Update clipPath.
    + *
    + * @param {Displayable} displayable displayable element
    + */
    +ClippathManager.prototype.update = function (displayable) {
    +    var svgEl = this.getSvgElement(displayable);
    +    if (svgEl) {
    +        this.updateDom(svgEl, displayable.__clipPaths, false);
    +    }
    +
    +    var textEl = this.getTextSvgElement(displayable);
    +    if (textEl) {
    +        // Make another clipPath for text, since it's transform
    +        // matrix is not the same with svgElement
    +        this.updateDom(textEl, displayable.__clipPaths, true);
    +    }
    +
    +    this.markUsed(displayable);
    +};
    +
    +
    +/**
    + * Create an SVGElement of displayable and create a <clipPath> of its
    + * clipPath
    + *
    + * @param {Displayable} parentEl  parent element
    + * @param {ClipPath[]}  clipPaths clipPaths of parent element
    + * @param {boolean}     isText    if parent element is Text
    + */
    +ClippathManager.prototype.updateDom = function (
    +    parentEl,
    +    clipPaths,
    +    isText
    +) {
    +    if (clipPaths && clipPaths.length > 0) {
    +        // Has clipPath, create <clipPath> with the first clipPath
    +        var defs = this.getDefs(true);
    +        var clipPath = clipPaths[0];
    +        var clipPathEl;
    +        var id;
    +
    +        var dom = isText ? '_textDom' : '_dom';
    +
    +        if (clipPath[dom]) {
    +            // Use a dom that is already in <defs>
    +            id = clipPath[dom].getAttribute('id');
    +            clipPathEl = clipPath[dom];
    +
    +            // Use a dom that is already in <defs>
    +            if (!defs.contains(clipPathEl)) {
    +                // This happens when set old clipPath that has
    +                // been previously removed
    +                defs.appendChild(clipPathEl);
    +            }
    +        }
    +        else {
    +            // New <clipPath>
    +            id = 'zr-clip-' + this.nextId;
    +            ++this.nextId;
    +            clipPathEl = this.createElement('clipPath');
    +            clipPathEl.setAttribute('id', id);
    +            defs.appendChild(clipPathEl);
    +
    +            clipPath[dom] = clipPathEl;
    +        }
    +
    +        // Build path and add to <clipPath>
    +        var svgProxy = this.getSvgProxy(clipPath);
    +        if (clipPath.transform
    +            && clipPath.parent.invTransform
    +            && !isText
    +        ) {
    +            /**
    +             * If a clipPath has a parent with transform, the transform
    +             * of parent should not be considered when setting transform
    +             * of clipPath. So we need to transform back from parent's
    +             * transform, which is done by multiplying parent's inverse
    +             * transform.
    +             */
    +            // Store old transform
    +            var transform = Array.prototype.slice.call(
    +                clipPath.transform
    +            );
    +
    +            // Transform back from parent, and brush path
    +            mul$1(
    +                clipPath.transform,
    +                clipPath.parent.invTransform,
    +                clipPath.transform
    +            );
    +            svgProxy.brush(clipPath);
    +
    +            // Set back transform of clipPath
    +            clipPath.transform = transform;
    +        }
    +        else {
    +            svgProxy.brush(clipPath);
    +        }
    +
    +        var pathEl = this.getSvgElement(clipPath);
    +        /**
    +         * Use `cloneNode()` here to appendChild to multiple parents,
    +         * which may happend when Text and other shapes are using the same
    +         * clipPath. Since Text will create an extra clipPath DOM due to
    +         * different transform rules.
    +         */
    +        clipPathEl.appendChild(pathEl.cloneNode());
    +
    +        parentEl.setAttribute('clip-path', 'url(#' + id + ')');
    +
    +        if (clipPaths.length > 1) {
    +            // Make the other clipPaths recursively
    +            this.updateDom(clipPathEl, clipPaths.slice(1), isText);
    +        }
    +    }
    +    else {
    +        // No clipPath
    +        if (parentEl) {
    +            parentEl.setAttribute('clip-path', 'none');
    +        }
    +    }
    +};
    +
    +/**
    + * Mark a single clipPath to be used
    + *
    + * @param {Displayable} displayable displayable element
    + */
    +ClippathManager.prototype.markUsed = function (displayable) {
    +    var that = this;
    +    if (displayable.__clipPaths && displayable.__clipPaths.length > 0) {
    +        each$1(displayable.__clipPaths, function (clipPath) {
    +            if (clipPath._dom) {
    +                Definable.prototype.markUsed.call(that, clipPath._dom);
    +            }
    +            if (clipPath._textDom) {
    +                Definable.prototype.markUsed.call(that, clipPath._textDom);
    +            }
    +        });
    +    }
    +};
    +
    +/**
    + * SVG Painter
    + * @module zrender/svg/Painter
    + */
    +
    +function parseInt10$2(val) {
    +    return parseInt(val, 10);
    +}
    +
    +function getSvgProxy(el) {
    +    if (el instanceof Path) {
    +        return svgPath;
    +    }
    +    else if (el instanceof ZImage) {
    +        return svgImage;
    +    }
    +    else if (el instanceof Text) {
    +        return svgText;
    +    }
    +    else {
    +        return svgPath;
    +    }
    +}
    +
    +function checkParentAvailable(parent, child) {
    +    return child && parent && child.parentNode !== parent;
    +}
    +
    +function insertAfter(parent, child, prevSibling) {
    +    if (checkParentAvailable(parent, child) && prevSibling) {
    +        var nextSibling = prevSibling.nextSibling;
    +        nextSibling ? parent.insertBefore(child, nextSibling)
    +            : parent.appendChild(child);
    +    }
    +}
    +
    +function prepend(parent, child) {
    +    if (checkParentAvailable(parent, child)) {
    +        var firstChild = parent.firstChild;
    +        firstChild ? parent.insertBefore(child, firstChild)
    +            : parent.appendChild(child);
    +    }
    +}
    +
    +function remove$1(parent, child) {
    +    if (child && parent && child.parentNode === parent) {
    +        parent.removeChild(child);
    +    }
    +}
    +
    +function getTextSvgElement(displayable) {
    +    return displayable.__textSvgEl;
    +}
    +
    +function getSvgElement(displayable) {
    +    return displayable.__svgEl;
    +}
    +
    +/**
    + * @alias module:zrender/svg/Painter
    + */
    +var SVGPainter = function (root, storage) {
    +
    +    this.root = root;
    +
    +    this.storage = storage;
    +
    +    var svgRoot = createElement('svg');
    +    svgRoot.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
    +    svgRoot.setAttribute('version', '1.1');
    +    svgRoot.setAttribute('baseProfile', 'full');
    +    svgRoot.style['user-select'] = 'none';
    +
    +    this.gradientManager = new GradientManager(svgRoot);
    +    this.clipPathManager = new ClippathManager(svgRoot);
    +
    +    var viewport = document.createElement('div');
    +    viewport.style.cssText = 'overflow: hidden;';
    +
    +    this._svgRoot = svgRoot;
    +    this._viewport = viewport;
    +
    +    root.appendChild(viewport);
    +    viewport.appendChild(svgRoot);
    +
    +    this.resize();
    +
    +    this._visibleList = [];
    +};
    +
    +SVGPainter.prototype = {
    +
    +    constructor: SVGPainter,
    +
    +    getType: function () {
    +        return 'svg';
    +    },
    +
    +    getViewportRoot: function () {
    +        return this._viewport;
    +    },
    +
    +    getViewportRootOffset: function () {
    +        var viewportRoot = this.getViewportRoot();
    +        if (viewportRoot) {
    +            return {
    +                offsetLeft: viewportRoot.offsetLeft || 0,
    +                offsetTop: viewportRoot.offsetTop || 0
    +            };
    +        }
    +    },
    +
    +    refresh: function () {
    +
    +        var list = this.storage.getDisplayList(true);
    +
    +        this._paintList(list);
    +    },
    +
    +    _paintList: function (list) {
    +        this.gradientManager.markAllUnused();
    +        this.clipPathManager.markAllUnused();
    +
    +        var svgRoot = this._svgRoot;
    +        var visibleList = this._visibleList;
    +        var listLen = list.length;
    +
    +        var newVisibleList = [];
    +        var i;
    +        for (i = 0; i < listLen; i++) {
    +            var displayable = list[i];
    +            var svgProxy = getSvgProxy(displayable);
    +            if (!displayable.invisible) {
    +                if (displayable.__dirty) {
    +                    svgProxy && svgProxy.brush(displayable);
    +
    +                    // Update clipPath
    +                    this.clipPathManager.update(displayable);
    +
    +                    // Update gradient
    +                    if (displayable.style) {
    +                        this.gradientManager
    +                            .update(displayable.style.fill);
    +                        this.gradientManager
    +                            .update(displayable.style.stroke);
    +                    }
    +
    +                    displayable.__dirty = false;
    +                }
    +                newVisibleList.push(displayable);
    +            }
    +        }
    +
    +        var diff = arrayDiff$1(visibleList, newVisibleList);
    +        var prevSvgElement;
    +
    +        // First do remove, in case element moved to the head and do remove
    +        // after add
    +        for (i = 0; i < diff.length; i++) {
    +            var item = diff[i];
    +            if (item.removed) {
    +                for (var k = 0; k < item.count; k++) {
    +                    var displayable = visibleList[item.indices[k]];
    +                    var svgElement = getSvgElement(displayable);
    +                    var textSvgElement = getTextSvgElement(displayable);
    +                    remove$1(svgRoot, svgElement);
    +                    remove$1(svgRoot, textSvgElement);
    +                }
    +            }
    +        }
    +        for (i = 0; i < diff.length; i++) {
    +            var item = diff[i];
    +            if (item.added) {
    +                for (var k = 0; k < item.count; k++) {
    +                    var displayable = newVisibleList[item.indices[k]];
    +                    var svgElement = getSvgElement(displayable);
    +                    var textSvgElement = getTextSvgElement(displayable);
    +                    prevSvgElement
    +                        ? insertAfter(svgRoot, svgElement, prevSvgElement)
    +                        : prepend(svgRoot, svgElement);
    +                    if (svgElement) {
    +                        insertAfter(svgRoot, textSvgElement, svgElement);
    +                    }
    +                    else if (prevSvgElement) {
    +                        insertAfter(
    +                            svgRoot, textSvgElement, prevSvgElement
    +                        );
    +                    }
    +                    else {
    +                        prepend(svgRoot, textSvgElement);
    +                    }
    +                    // Insert text
    +                    insertAfter(svgRoot, textSvgElement, svgElement);
    +                    prevSvgElement = textSvgElement || svgElement
    +                        || prevSvgElement;
    +
    +                    this.gradientManager
    +                        .addWithoutUpdate(svgElement, displayable);
    +                    this.clipPathManager.markUsed(displayable);
    +                }
    +            }
    +            else if (!item.removed) {
    +                for (var k = 0; k < item.count; k++) {
    +                    var displayable = newVisibleList[item.indices[k]];
    +                    prevSvgElement
    +                        = svgElement
    +                        = getTextSvgElement(displayable)
    +                        || getSvgElement(displayable)
    +                        || prevSvgElement;
    +
    +                    this.gradientManager.markUsed(displayable);
    +                    this.gradientManager
    +                        .addWithoutUpdate(svgElement, displayable);
    +
    +                    this.clipPathManager.markUsed(displayable);
    +                }
    +            }
    +        }
    +
    +        this.gradientManager.removeUnused();
    +        this.clipPathManager.removeUnused();
    +
    +        this._visibleList = newVisibleList;
    +    },
    +
    +    _getDefs: function (isForceCreating) {
    +        var svgRoot = this._svgRoot;
    +        var defs = this._svgRoot.getElementsByTagName('defs');
    +        if (defs.length === 0) {
    +            // Not exist
    +            if (isForceCreating) {
    +                var defs = svgRoot.insertBefore(
    +                    createElement('defs'), // Create new tag
    +                    svgRoot.firstChild // Insert in the front of svg
    +                );
    +                if (!defs.contains) {
    +                    // IE doesn't support contains method
    +                    defs.contains = function (el) {
    +                        var children = defs.children;
    +                        if (!children) {
    +                            return false;
    +                        }
    +                        for (var i = children.length - 1; i >= 0; --i) {
    +                            if (children[i] === el) {
    +                                return true;
    +                            }
    +                        }
    +                        return false;
    +                    };
    +                }
    +                return defs;
    +            }
    +            else {
    +                return null;
    +            }
    +        }
    +        else {
    +            return defs[0];
    +        }
    +    },
    +
    +    resize: function () {
    +        var width = this._getWidth();
    +        var height = this._getHeight();
    +
    +        if (this._width !== width && this._height !== height) {
    +            this._width = width;
    +            this._height = height;
    +
    +            var viewportStyle = this._viewport.style;
    +            viewportStyle.width = width + 'px';
    +            viewportStyle.height = height + 'px';
    +
    +            var svgRoot = this._svgRoot;
    +            // Set width by 'svgRoot.width = width' is invalid
    +            svgRoot.setAttribute('width', width);
    +            svgRoot.setAttribute('height', height);
    +        }
    +    },
    +
    +    getWidth: function () {
    +        return this._getWidth();
    +    },
    +
    +    getHeight: function () {
    +        return this._getHeight();
    +    },
    +
    +    _getWidth: function () {
    +        var root = this.root;
    +        var stl = document.defaultView.getComputedStyle(root);
    +
    +        return ((root.clientWidth || parseInt10$2(stl.width))
    +                - parseInt10$2(stl.paddingLeft)
    +                - parseInt10$2(stl.paddingRight)) | 0;
    +    },
    +
    +    _getHeight: function () {
    +        var root = this.root;
    +        var stl = document.defaultView.getComputedStyle(root);
    +
    +        return ((root.clientHeight || parseInt10$2(stl.height))
    +                - parseInt10$2(stl.paddingTop)
    +                - parseInt10$2(stl.paddingBottom)) | 0;
    +    },
    +
    +    dispose: function () {
    +        this.root.innerHTML = '';
    +
    +        this._svgRoot
    +            = this._viewport
    +            = this.storage
    +            = null;
    +    },
    +
    +    clear: function () {
    +        if (this._viewport) {
    +            this.root.removeChild(this._viewport);
    +        }
    +    },
    +
    +    pathToSvg: function () {
    +        this.refresh();
    +        var html = this._svgRoot.outerHTML;
    +        return 'data:img/svg+xml;utf-8,' + unescape(html);
    +    }
    +};
    +
    +// Not supported methods
    +function createMethodNotSupport$1(method) {
    +    return function () {
    +        zrLog('In SVG mode painter not support method "' + method + '"');
    +    };
    +}
    +
    +// Unsuppoted methods
    +each$1([
    +    'getLayer', 'insertLayer', 'eachLayer', 'eachBuiltinLayer',
    +    'eachOtherLayer', 'getLayers', 'modLayer', 'delLayer', 'clearLayer',
    +    'toDataURL', 'pathToImage'
    +], function (name) {
    +    SVGPainter.prototype[name] = createMethodNotSupport$1(name);
    +});
    +
    +registerPainter('svg', SVGPainter);
    +
    +// Import all charts and components
    +
    +exports.version = version;
    +exports.dependencies = dependencies;
    +exports.PRIORITY = PRIORITY;
    +exports.init = init;
    +exports.connect = connect;
    +exports.disConnect = disConnect;
    +exports.disconnect = disconnect;
    +exports.dispose = dispose;
    +exports.getInstanceByDom = getInstanceByDom;
    +exports.getInstanceById = getInstanceById;
    +exports.registerTheme = registerTheme;
    +exports.registerPreprocessor = registerPreprocessor;
    +exports.registerProcessor = registerProcessor;
    +exports.registerPostUpdate = registerPostUpdate;
    +exports.registerAction = registerAction;
    +exports.registerCoordinateSystem = registerCoordinateSystem;
    +exports.getCoordinateSystemDimensions = getCoordinateSystemDimensions;
    +exports.registerLayout = registerLayout;
    +exports.registerVisual = registerVisual;
    +exports.registerLoading = registerLoading;
    +exports.extendComponentModel = extendComponentModel;
    +exports.extendComponentView = extendComponentView;
    +exports.extendSeriesModel = extendSeriesModel;
    +exports.extendChartView = extendChartView;
    +exports.setCanvasCreator = setCanvasCreator;
    +exports.registerMap = registerMap;
    +exports.getMap = getMap;
    +exports.dataTool = dataTool;
    +exports.zrender = zrender;
    +exports.graphic = graphic;
    +exports.number = number;
    +exports.format = format;
    +exports.throttle = throttle;
    +exports.helper = helper;
    +exports.matrix = matrix;
    +exports.vector = vector;
    +exports.color = color;
    +exports.util = ecUtil;
    +exports.List = List;
    +exports.Model = Model;
    +exports.Axis = Axis;
    +exports.env = env$1;
    +exports.parseGeoJson = parseGeoJson;
    +
    +})));
    +//# sourceMappingURL=echarts.js.map
    diff --git a/fangija-zsyf/js/highcharts-4.2.3.js b/fangija-zsyf/js/highcharts-4.2.3.js
    new file mode 100644
    index 0000000..870dd01
    --- /dev/null
    +++ b/fangija-zsyf/js/highcharts-4.2.3.js
    @@ -0,0 +1,342 @@
    +// JavaScript Document
    +
    +/*
    + Highcharts JS v4.2.3 (2016-02-08)
    +
    + (c) 2009-2016 Torstein Honsi
    +
    + License: www.highcharts.com/license
    +*/
    +(function(E,X){typeof module==="object"&&module.exports?module.exports=E.document?X(E):X:E.Highcharts=X(E)})(typeof window!=="undefined"?window:this,function(E){function X(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw Error(c);E.console&&console.log(c)}function pb(a,b,c){this.options=b;this.elem=a;this.prop=c}function D(){var a,b=arguments,c,d={},e=function(a,b){var c,d;typeof a!=="object"&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&typeof c==="object"&&
    +Object.prototype.toString.call(c)!=="[object Array]"&&d!=="renderTo"&&typeof c.nodeType!=="number"?e(a[d]||{},c):b[d]);return a};b[0]===!0&&(d=b[1],b=Array.prototype.slice.call(b,2));c=b.length;for(a=0;a<c;a++)d=e(d,b[a]);return d}function C(a,b){return parseInt(a,b||10)}function xa(a){return typeof a==="string"}function Y(a){return a&&typeof a==="object"}function Ia(a){return Object.prototype.toString.call(a)==="[object Array]"}function ma(a){return typeof a==="number"}function Da(a){return W.log(a)/
    +W.LN10}function na(a){return W.pow(10,a)}function oa(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function q(a){return a!==z&&a!==null}function K(a,b,c){var d,e;if(xa(b))q(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(q(b)&&Y(b))for(d in b)a.setAttribute(d,b[d]);return e}function ta(a){return Ia(a)?a:[a]}function Pa(a,b,c){if(b)return setTimeout(a,b,c);a.call(0,c)}function L(a,b){if(ya&&!ca&&b&&b.opacity!==z)b.filter="alpha(opacity="+b.opacity*100+")";u(a.style,
    +b)}function Z(a,b,c,d,e){a=y.createElement(a);b&&u(a,b);e&&L(a,{padding:0,border:"none",margin:0});c&&L(a,c);d&&d.appendChild(a);return a}function pa(a,b){var c=function(){};c.prototype=new a;u(c.prototype,b);return c}function Ja(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function Ya(a){return(Za&&Za(a)||qb||0)*6E4}function Ka(a,b){for(var c="{",d=!1,e,f,g,h,i,k=[];(c=a.indexOf(c))!==-1;){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");i=g.length;e=b;for(h=0;h<i;h++)e=e[g[h]];
    +if(f.length)f=f.join(":"),g=/\.([0-9])/,h=N.lang,i=void 0,/f$/.test(f)?(i=(i=f.match(g))?i[1]:-1,e!==null&&(e=B.numberFormat(e,i,h.decimalPoint,f.indexOf(",")>-1?h.thousandsSep:""))):e=Qa(f,e)}k.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}k.push(a);return k.join("")}function rb(a){return W.pow(10,T(W.log(a)/W.LN10))}function sb(a,b,c,d,e){var f,g=a,c=p(c,1);f=a/c;b||(b=[1,2,2.5,5,10],d===!1&&(c===1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d<b.length;d++)if(g=b[d],e&&g*c>=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/
    +2)break;g*=c;return g}function ib(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].safeI=e;a.sort(function(a,c){d=b(a,c);return d===0?a.safeI-c.safeI:d});for(e=0;e<c;e++)delete a[e].safeI}function Ra(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function Ea(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function Sa(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Ta(a){jb||(jb=Z(La));a&&jb.appendChild(a);jb.innerHTML=""}function fa(a,b){return parseFloat(a.toPrecision(b||
    +14))}function Ua(a,b){b.renderer.globalAnimation=p(a,b.animation)}function Fb(){var a=N.global,b=a.useUTC,c=b?"getUTC":"get",d=b?"setUTC":"set";qa=a.Date||E.Date;qb=b&&a.timezoneOffset;Za=b&&a.getTimezoneOffset;kb=function(a,c,d,h,i,k){var j;b?(j=qa.UTC.apply(0,arguments),j+=Ya(j)):j=(new qa(a,c,p(d,1),p(h,0),p(i,0),p(k,0))).getTime();return j};tb=c+"Minutes";ub=c+"Hours";vb=c+"Day";$a=c+"Date";ab=c+"Month";bb=c+"FullYear";Gb=d+"Milliseconds";Hb=d+"Seconds";Ib=d+"Minutes";Jb=d+"Hours";wb=d+"Date";
    +xb=d+"Month";yb=d+"FullYear"}function ia(a){if(!(this instanceof ia))return new ia(a);this.init(a)}function O(){}function Va(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;!c&&!d&&this.addLabel()}function Kb(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.total=null;this.points={};this.stack=e;this.rightCliff=this.leftCliff=0;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":
    +"top"),y:p(b.y,f?4:c?14:-6),x:p(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":"center")}var z,y=E.document,W=Math,A=W.round,T=W.floor,ua=W.ceil,t=W.max,F=W.min,P=W.abs,U=W.cos,$=W.sin,ra=W.PI,ga=ra*2/360,za=E.navigator&&E.navigator.userAgent||"",Lb=E.opera,ya=/(msie|trident|edge)/i.test(za)&&!Lb,lb=y&&y.documentMode===8,mb=!ya&&/AppleWebKit/.test(za),Ma=/Firefox/.test(za),Mb=/(Mobile|Android|Windows Phone)/.test(za),Fa="http://www.w3.org/2000/svg",ca=y&&y.createElementNS&&!!y.createElementNS(Fa,
    +"svg").createSVGRect,Qb=Ma&&parseInt(za.split("Firefox/")[1],10)<4,ha=y&&!ca&&!ya&&!!y.createElement("canvas").getContext,cb,db,Nb={},zb=0,jb,N,Qa,G,Aa=function(){},S=[],eb=0,La="div",Rb=/^[0-9]+$/,nb=["plotTop","marginRight","marginBottom","plotLeft"],qa,kb,qb,Za,tb,ub,vb,$a,ab,bb,Gb,Hb,Ib,Jb,wb,xb,yb,I={},B;B=E.Highcharts?X(16,!0):{win:E};B.seriesTypes=I;var Ga=[],ja,sa,o,Na,Ab,Ba,M,V,H,Wa,Oa;pb.prototype={dSetter:function(){var a=this.paths[0],b=this.paths[1],c=[],d=this.now,e=a.length,f;if(d===
    +1)c=this.toD;else if(e===b.length&&d<1)for(;e--;)f=parseFloat(a[e]),c[e]=isNaN(f)?a[e]:d*parseFloat(b[e]-f)+f;else c=b;this.elem.attr("d",c)},update:function(){var a=this.elem,b=this.prop,c=this.now,d=this.options.step;if(this[b+"Setter"])this[b+"Setter"]();else a.attr?a.element&&a.attr(b,c):a.style[b]=c+this.unit;d&&d.call(a,c,this)},run:function(a,b,c){var d=this,e=function(a){return e.stopped?!1:d.step(a)},f;this.startTime=+new qa;this.start=a;this.end=b;this.unit=c;this.now=this.start;this.pos=
    +0;e.elem=this.elem;if(e()&&Ga.push(e)===1)e.timerId=setInterval(function(){for(f=0;f<Ga.length;f++)Ga[f]()||Ga.splice(f--,1);Ga.length||clearInterval(e.timerId)},13)},step:function(a){var b=+new qa,c,d=this.options;c=this.elem;var e=d.complete,f=d.duration,g=d.curAnim,h;if(c.attr&&!c.element)c=!1;else if(a||b>=f+this.startTime){this.now=this.end;this.pos=1;this.update();a=g[this.prop]=!0;for(h in g)g[h]!==!0&&(a=!1);a&&e&&e.call(c);c=!1}else this.pos=d.easing((b-this.startTime)/f),this.now=this.start+
    +(this.end-this.start)*this.pos,this.update(),c=!0;return c},initPath:function(a,b,c){var b=b||"",d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g,b=b.split(" "),c=[].concat(c),h=a.isArea,i=h?2:1,k=function(a){for(g=a.length;g--;)(a[g]==="M"||a[g]==="L")&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(k(b),k(c));if(d<=c.length/f&&b.length===c.length)for(;d--;)c=c.slice(0,f).concat(c),h&&(c=c.concat(c.slice(c.length-f)));a.shift=0;if(b.length)for(a=c.length;b.length<a;)d=b.slice().splice(b.length/i-f,f*i),
    +e&&(d[f-6]=d[f-2],d[f-5]=d[f-1]),[].splice.apply(b,[b.length/i,0].concat(d));return[b,c]}};var u=B.extend=function(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a},p=B.pick=function(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==z&&c!==null)return c},fb=B.wrap=function(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);a.unshift(d);return c.apply(this,a)}};Qa=function(a,b,c){if(!q(b)||isNaN(b))return N.lang.invalidDate||"";var a=p(a,"%Y-%m-%d %H:%M:%S"),
    +d=new qa(b-Ya(b)),e,f=d[ub](),g=d[vb](),h=d[$a](),i=d[ab](),k=d[bb](),j=N.lang,l=j.weekdays,d=u({a:l[g].substr(0,3),A:l[g],d:Ja(h),e:h,w:g,b:j.shortMonths[i],B:j.months[i],m:Ja(i+1),y:k.toString().substr(2,2),Y:k,H:Ja(f),k:f,I:Ja(f%12||12),l:f%12||12,M:Ja(d[tb]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:Ja(d.getSeconds()),L:Ja(A(b%1E3),3)},B.dateFormats);for(e in d)for(;a.indexOf("%"+e)!==-1;)a=a.replace("%"+e,typeof d[e]==="function"?d[e](b):d[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};
    +G={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};B.numberFormat=function(a,b,c,d){var a=+a||0,e=N.lang,f=(a.toString().split(".")[1]||"").length,g,h,i=Math.abs(a);b===-1?b=Math.min(f,20):isNaN(b)&&(b=2);g=String(C(i.toFixed(b)));h=g.length>3?g.length%3:0;c=p(c,e.decimalPoint);d=p(d,e.thousandsSep);a=a<0?"-":"";a+=h?g.substr(0,h)+d:"";a+=g.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+d);+b&&(d=Math.abs(i-g+Math.pow(10,-Math.max(b,f)-1)),a+=c+d.toFixed(b).slice(2));
    +return a};Math.easeInOutSine=function(a){return-0.5*(Math.cos(Math.PI*a)-1)};ja=function(a,b){var c;if(b==="width")return Math.min(a.offsetWidth,a.scrollWidth)-ja(a,"padding-left")-ja(a,"padding-right");else if(b==="height")return Math.min(a.offsetHeight,a.scrollHeight)-ja(a,"padding-top")-ja(a,"padding-bottom");return(c=E.getComputedStyle(a,void 0))&&C(c.getPropertyValue(b))};sa=function(a,b){return b.indexOf?b.indexOf(a):[].indexOf.call(b,a)};Na=function(a,b){return[].filter.call(a,b)};Ba=function(a,
    +b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c};Ab=function(a){var b=y.documentElement,a=a.getBoundingClientRect();return{top:a.top+(E.pageYOffset||b.scrollTop)-(b.clientTop||0),left:a.left+(E.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}};Oa=function(a){for(var b=Ga.length;b--;)if(Ga[b].elem===a)Ga[b].stopped=!0};o=function(a,b){return Array.prototype.forEach.call(a,b)};M=function(a,b,c){function d(b){b.target=b.srcElement||E;c.call(a,b)}var e=a.hcEvents=a.hcEvents||{};
    +if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent){if(!a.hcEventsIE)a.hcEventsIE={};a.hcEventsIE[c.toString()]=d;a.attachEvent("on"+b,d)}e[b]||(e[b]=[]);e[b].push(c)};V=function(a,b,c){function d(b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.attachEvent&&(c=a.hcEventsIE[c.toString()],a.detachEvent("on"+b,c))}function e(){var c,e,f;if(a.nodeName)for(f in b?(c={},c[b]=!0):c=g,c)if(g[f])for(e=g[f].length;e--;)d(f,g[f][e])}var f,g=a.hcEvents,h;if(g)b?(f=g[b]||[],c?(h=
    +sa(c,f),h>-1&&(f.splice(h,1),g[b]=f),d(b,c)):(e(),g[b]=[])):(e(),a.hcEvents={})};H=function(a,b,c,d){var e;e=a.hcEvents;var f,g,h,i,c=c||{};if(y.createEvent&&(a.dispatchEvent||a.fireEvent))e=y.createEvent("Events"),e.initEvent(b,!0,!0),e.target=a,u(e,c),a.dispatchEvent?a.dispatchEvent(e):a.fireEvent(b,e);else if(e){e=e[b]||[];f=e.length;h=function(){c.defaultPrevented=!0};for(g=0;g<f;g++){i=e[g];if(c.stopped)return;c.preventDefault=h;c.target=a;if(!c.type)c.type=b;i.call(a,c)===!1&&c.preventDefault()}}d&&
    +!c.defaultPrevented&&d(c)};Wa=function(a,b,c){var d,e="",f,g,h;Y(c)||(d=arguments,c={duration:d[2],easing:d[3],complete:d[4]});if(!ma(c.duration))c.duration=400;c.easing=Math[c.easing]||Math.easeInOutSine;c.curAnim=D(b);for(h in b)g=new pb(a,c,h),f=null,h==="d"?(g.paths=g.initPath(a,a.d,b.d),g.toD=b.d,d=0,f=1):a.attr?d=a.attr(h):(d=parseFloat(ja(a,h))||0,h!=="opacity"&&(e="px")),f||(f=b[h]),f.match&&f.match("px")&&(f=f.replace(/px/g,"")),g.run(d,f,e)};if(E.jQuery)E.jQuery.fn.highcharts=function(){var a=
    +[].slice.call(arguments);if(this[0])return a[0]?(new (B[xa(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),this):S[K(this[0],"data-highcharts-chart")]};y&&!y.defaultView&&(ja=function(a,b){var c;c={width:"clientWidth",height:"clientHeight"}[b];if(a.style[b])return C(a.style[b]);b==="opacity"&&(b="filter");if(c)return a.style.zoom=1,a[c]-2*ja(a,"padding");c=a.currentStyle[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];b==="filter"&&(c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/
    +100}));return c===""?1:C(c)});Array.prototype.forEach||(o=function(a,b){for(var c=0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===!1)return c});Array.prototype.indexOf||(sa=function(a,b){var c,d=0;if(b)for(c=b.length;d<c;d++)if(b[d]===a)return d;return-1});Array.prototype.filter||(Na=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)b(a[d],d)&&c.push(a[d]);return c});B.Fx=pb;B.inArray=sa;B.each=o;B.grep=Na;B.offset=Ab;B.map=Ba;B.addEvent=M;B.removeEvent=V;B.fireEvent=H;B.animate=Wa;B.stop=Oa;N={colors:"#7cb5ec,#434348,#90ed7d,#f7a35c,#8085e9,#f15c80,#e4d354,#2b908f,#f45b5b,#91e8e1".split(","),
    +symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,
    +canvasToolsURL:"http://code.highcharts.com/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.2.3/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"14px"}},subtitle:{text:"",
    +align:"center",style:{color:"#555555"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return this.y===null?"":B.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},
    +verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:0.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",
    +fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:!0,animation:ca,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
    +second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'<span style="font-size: 12px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:Mb?25:10,style:{color:"#666",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",
    +href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var aa=N.plotOptions,da=aa.line;Fb();ia.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[C(a[1]),C(a[2]),C(a[3]),parseFloat(a[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(a){return[C(a[1],16),C(a[2],16),C(a[3],16),
    +1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[C(a[1]),C(a[2]),C(a[3]),1]}}],init:function(a){var b,c,d,e;if((this.input=a)&&a.stops)this.stops=Ba(a.stops,function(a){return new ia(a[1])});else for(d=this.parsers.length;d--&&!c;)e=this.parsers[d],(b=e.regex.exec(a))&&(c=e.parse(b));this.rgba=c||[]},get:function(a){var b=this.input,c=this.rgba,d;this.stops?(d=D(b),d.stops=[].concat(d.stops),o(this.stops,function(b,c){d.stops[c]=[d.stops[c][0],
    +b.get(a)]})):d=c&&!isNaN(c[0])?a==="rgb"||!a&&c[3]===1?"rgb("+c[0]+","+c[1]+","+c[2]+")":a==="a"?c[3]:"rgba("+c.join(",")+")":b;return d},brighten:function(a){var b,c=this.rgba;if(this.stops)o(this.stops,function(b){b.brighten(a)});else if(ma(a)&&a!==0)for(b=0;b<3;b++)c[b]+=C(a*255),c[b]<0&&(c[b]=0),c[b]>255&&(c[b]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this}};O.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),
    +init:function(a,b){this.element=b==="span"?Z(b):y.createElementNS(Fa,b);this.renderer=a},animate:function(a,b,c){b=p(b,this.renderer.globalAnimation,!0);Oa(this);if(b){b=D(b,{});if(c)b.complete=c;Wa(this,a,b)}else this.attr(a,null,c);return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,h,i,k,j,l,m,n,r,s=[],p;a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");if(f){g=a[f];i=d.gradients;j=a.stops;n=c.radialReference;Ia(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],
    +gradientUnits:"userSpaceOnUse"});f==="radialGradient"&&n&&!q(g.gradientUnits)&&(h=g,g=D(g,d.getRadialAttr(n,h),{gradientUnits:"userSpaceOnUse"}));for(r in g)r!=="id"&&s.push(r,g[r]);for(r in j)s.push(j[r]);s=s.join(",");i[s]?n=i[s].attr("id"):(g.id=n="highcharts-"+zb++,i[s]=k=d.createElement(f).attr(g).add(d.defs),k.radAttr=h,k.stops=[],o(j,function(a){a[1].indexOf("rgba")===0?(e=ia(a[1]),l=e.get("rgb"),m=e.get("a")):(l=a[1],m=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":l,"stop-opacity":m}).add(k);
    +k.stops.push(a)}));p="url("+d.url+"#"+n+")";c.setAttribute(b,p);c.gradient=s;a.toString=function(){return p}}},applyTextShadow:function(a){var b=this.element,c,d=a.indexOf("contrast")!==-1,e={},f=this.renderer.forExport,g=f||b.style.textShadow!==z&&!ya;if(d)e.textShadow=a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill));if(mb||f)e.textRendering="geometricPrecision";g?this.css(e):(this.fakeTS=!0,this.ySetter=this.xSetter,c=[].slice.call(b.getElementsByTagName("tspan")),o(a.split(/\s?,\s?/g),
    +function(a){var d=b.firstChild,e,f,a=a.split(" ");e=a[a.length-1];(f=a[a.length-2])&&o(c,function(a,c){var g;c===0&&(a.setAttribute("x",b.getAttribute("x")),c=b.getAttribute("y"),a.setAttribute("y",c||0),c===null&&b.setAttribute("y",0));g=a.cloneNode(1);K(g,{"class":"highcharts-text-shadow",fill:e,stroke:e,"stroke-opacity":1/t(C(f),3),"stroke-width":f,"stroke-linejoin":"round"});b.insertBefore(g,d)})}))},attr:function(a,b,c){var d,e=this.element,f,g=this,h;typeof a==="string"&&b!==z&&(d=a,a={},a[d]=
    +b);if(typeof a==="string")g=(this[a+"Getter"]||this._defaultGetter).call(this,a,e);else{for(d in a){b=a[d];h=!1;this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(d)&&(f||(this.symbolAttr(a),f=!0),h=!0);if(this.rotation&&(d==="x"||d==="y"))this.doTransform=!0;h||(h=this[d+"Setter"]||this._defaultSetter,h.call(this,b,d,e),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(d)&&this.updateShadows(d,b,h))}if(this.doTransform)this.updateTransform(),this.doTransform=
    +!1}c&&c();return g},updateShadows:function(a,b,c){for(var d=this.shadows,e=d.length;e--;)c.call(null,a==="height"?Math.max(b-(d[e].cutHeight||0),0):a==="d"?this.d:b,a,d[e])},addClass:function(a){var b=this.element,c=K(b,"class")||"";c.indexOf(a)===-1&&K(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;o("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=p(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",
    +a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a){var b,c={},d,e=this.strokeWidth||0;d=A(e)%2/2;a.x=T(a.x||this.x||0)+d;a.y=T(a.y||this.y||0)+d;a.width=T((a.width||this.width||0)-2*d);a.height=T((a.height||this.height||0)-2*d);a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=c[b]=a[b]);return c},css:function(a){var b=this.styles,c={},d=this.element,e,f,g="";e=!b;if(a&&a.color)a.fill=a.color;if(b)for(f in a)a[f]!==b[f]&&(c[f]=a[f],e=!0);if(e){e=this.textWidth=a&&a.width&&d.nodeName.toLowerCase()===
    +"text"&&C(a.width)||this.textWidth;b&&(a=u(b,c));this.styles=a;e&&(ha||!ca&&this.renderer.forExport)&&delete a.width;if(ya&&!ca)L(this.element,a);else{b=function(a,b){return"-"+b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";K(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;db&&a==="click"?(d.ontouchstart=function(a){c.touchEventFired=qa.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(za.indexOf("Android")===
    +-1||qa.now()-(c.touchEventFired||0)>1100)&&b.call(d,a)}):d["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,
    +d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height"));a=["translate("+a+","+b+")"];e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")");(q(c)||q(d))&&a.push("scale("+p(c,1)+" "+p(d,1)+")");a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;f=e.alignedObjects;
    +if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||xa(c))this.alignTo=d=c||"renderer",oa(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=p(c,e[d],e);d=a.align;e=a.verticalAlign;f=(c.x||0)+(a.x||0);g=(c.y||0)+(a.y||0);if(d==="right"||d==="center")f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=A(f);if(e==="bottom"||e==="middle")g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=A(g);this[this.placed?
    +"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a,b){var c,d=this.renderer,e,f,g,h=this.element,i=this.styles;e=this.textStr;var k,j=h.style,l,m=d.cache,n=d.cacheKeys,r;f=p(b,this.rotation);g=f*ga;e!==z&&(r=["",f||0,i&&i.fontSize,h.style.width].join(","),r=e===""||Rb.test(e)?"num:"+e.toString().length+r:e+r);r&&!a&&(c=m[r]);if(!c){if(h.namespaceURI===Fa||d.forExport){try{l=this.fakeTS&&function(a){o(h.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=
    +a})},Ma&&j.textShadow?(k=j.textShadow,j.textShadow=""):l&&l("none"),c=h.getBBox?u({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight},k?j.textShadow=k:l&&l("")}catch(s){}if(!c||c.width<0)c={width:0,height:0}}else c=this.htmlGetBBox();if(d.isSVG){d=c.width;e=c.height;if(ya&&i&&i.fontSize==="11px"&&e.toPrecision(3)==="16.9")c.height=e=14;if(f)c.width=P(e*$(g))+P(d*U(g)),c.height=P(e*U(g))+P(d*$(g))}if(r){for(;n.length>250;)delete m[n.shift()];m[r]||n.push(r);m[r]=c}}return c},show:function(a){return this.attr({visibility:a?
    +"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer,c=this.element,d;if(a)this.parentGroup=a;this.parentInverted=a&&a.inverted;this.textStr!==void 0&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)d=this.zIndexSetter();d||(a?a.element:b.box).appendChild(c);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=
    +a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.renderer.isSVG&&b.nodeName==="SPAN"&&a.parentGroup,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;Oa(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f]=a.stops[f].destroy();a.stops=null}a.safeRemoveChild(b);for(c&&o(c,function(b){a.safeRemoveChild(b)});d&&d.div&&d.div.childNodes.length===0;)b=d.parentGroup,a.safeRemoveChild(d.div),delete d.div,
    +d=b;a.alignTo&&oa(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},shadow:function(a,b,c){var d=[],e,f,g=this.element,h,i,k,j;if(a){i=p(a.width,3);k=(a.opacity||0.15)/i;j=this.parentInverted?"(-1,-1)":"("+p(a.offsetX,1)+", "+p(a.offsetY,1)+")";for(e=1;e<=i;e++){f=g.cloneNode(0);h=i*2+1-2*e;K(f,{isShadow:"true",stroke:a.color||"black","stroke-opacity":k*e,"stroke-width":h,transform:"translate"+j,fill:"none"});if(c)K(f,"height",t(K(f,"height")-h,0)),f.cutHeight=h;b?b.element.appendChild(f):
    +g.parentNode.insertBefore(f,g);d.push(f)}this.shadows=d}return this},xGetter:function(a){this.element.nodeName==="circle"&&(a={x:"cx",y:"cy"}[a]||a);return this._defaultGetter(a)},_defaultGetter:function(a){a=p(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");c.setAttribute(b,a);this[b]=a},dashstyleSetter:function(a){var b;if(a=a&&a.toLowerCase()){a=
    +a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=a.length;b--;)a[b]=C(a[b])*this["stroke-width"];a=a.join(",").replace("NaN","none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,
    +b,c){this[b]=a;c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=y.createElementNS(Fa,"title"),this.element.appendChild(b));b.appendChild(y.createTextNode(String(p(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){if(a!==this.textStr)delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this)},fillSetter:function(a,b,c){typeof a==="string"?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},visibilitySetter:function(a,b,c){a===
    +"inherit"?c.removeAttribute(b):c.setAttribute(b,a)},zIndexSetter:function(a,b){var c=this.renderer,d=this.parentGroup,c=(d||c).element||c.box,e,f,g=this.element,h;e=this.added;var i;q(a)&&(g.setAttribute(b,a),a=+a,this[b]===a&&(e=!1),this[b]=a);if(e){if((a=this.zIndex)&&d)d.handleZ=!0;d=c.childNodes;for(i=0;i<d.length&&!h;i++)if(e=d[i],f=K(e,"zIndex"),e!==g&&(C(f)>a||!q(a)&&q(f)))c.insertBefore(g,e),h=!0;h||c.appendChild(g)}return h},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};O.prototype.yGetter=
    +O.prototype.xGetter;O.prototype.translateXSetter=O.prototype.translateYSetter=O.prototype.rotationSetter=O.prototype.verticalAlignSetter=O.prototype.scaleXSetter=O.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};O.prototype["stroke-widthSetter"]=O.prototype.strokeSetter=function(a,b,c){this[b]=a;if(this.stroke&&this["stroke-width"])this.strokeWidth=this["stroke-width"],O.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),
    +this.hasStroke=!0;else if(b==="stroke-width"&&a===0&&this.hasStroke)c.removeAttribute("stroke"),this.hasStroke=!1};var Ca=function(){this.init.apply(this,arguments)};Ca.prototype={Element:O,init:function(a,b,c,d,e,f){var g,d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));g=d.element;a.appendChild(g);a.innerHTML.indexOf("xmlns")===-1&&K(g,"xmlns",Fa);this.isSVG=!0;this.box=g;this.boxWrapper=d;this.alignedObjects=[];this.url=(Ma||mb)&&y.getElementsByTagName("base").length?E.location.href.replace(/#.*?$/,
    +"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 4.2.3"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=e;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,c,!1);var h;if(Ma&&a.getBoundingClientRect)this.subPixelFix=b=function(){L(a,{left:0,top:0});h=a.getBoundingClientRect();L(a,{left:ua(h.left)-h.left+"px",top:ua(h.top)-h.top+"px"})},b(),
    +M(E,"resize",b)},getStyle:function(a){return this.style=u({fontFamily:' Arial,"Lucida Grande", "Lucida Sans Unicode", Helvetica, sans-serif',fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();Sa(this.gradients||{});this.gradients=null;if(a)this.defs=a.destroy();this.subPixelFix&&V(E,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;
    +b.init(this,a);return b},draw:function(){},getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},buildText:function(a){for(var b=a.element,c=this,d=c.forExport,e=p(a.textStr,"").toString(),f=e.indexOf("<")!==-1,g=b.childNodes,h,i,k=K(b,"x"),j=a.styles,l=a.textWidth,m=j&&j.lineHeight,n=j&&j.textShadow,r=j&&j.textOverflow==="ellipsis",s=g.length,R=l&&!a.added&&this.box,v=function(a){return m?C(m):c.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:
    +j&&j.fontSize||c.style.fontSize||12,a).h},x=function(a){return a.replace(/</g,"<").replace(/>/g,">")};s--;)b.removeChild(g[s]);!f&&!n&&!r&&e.indexOf(" ")===-1?b.appendChild(y.createTextNode(x(e))):(h=/<.*style="([^"]+)".*>/,i=/<.*href="(http[^"]+)".*>/,R&&R.appendChild(b),e=f?e.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[e],e[e.length-1]===
    +""&&e.pop(),o(e,function(e,f){var g,m=0,e=e.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");g=e.split("|||");o(g,function(e){if(e!==""||g.length===1){var n={},s=y.createElementNS(Fa,"tspan"),p;h.test(e)&&(p=e.match(h)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),K(s,"style",p));i.test(e)&&!d&&(K(s,"onclick",'location.href="'+e.match(i)[1]+'"'),L(s,{cursor:"pointer"}));e=x(e.replace(/<(.|\n)*?>/g,"")||" ");if(e!==" "){s.appendChild(y.createTextNode(e));if(m)n.dx=0;else if(f&&k!==null)n.x=
    +k;K(s,n);b.appendChild(s);!m&&f&&(!ca&&d&&L(s,{display:"block"}),K(s,"dy",v(s)));if(l){for(var n=e.replace(/([^\^])-/g,"$1- ").split(" "),R=g.length>1||f||n.length>1&&j.whiteSpace!=="nowrap",o,w,q,t=[],u=v(s),A=1,z=a.rotation,B=e,D=B.length;(R||r)&&(n.length||t.length);)a.rotation=0,o=a.getBBox(!0),q=o.width,!ca&&c.forExport&&(q=c.measureSpanWidth(s.firstChild.data,a.styles)),o=q>l,w===void 0&&(w=o),r&&w?(D/=2,B===""||!o&&D<0.5?n=[]:(o&&(w=!0),B=e.substring(0,B.length+(o?-1:1)*ua(D)),n=[B+(l>3?"\u2026":
    +"")],s.removeChild(s.firstChild))):!o||n.length===1?(n=t,t=[],n.length&&(A++,s=y.createElementNS(Fa,"tspan"),K(s,{dy:u,x:k}),p&&K(s,"style",p),b.appendChild(s)),q>l&&(l=q)):(s.removeChild(s.firstChild),t.unshift(n.pop())),n.length&&s.appendChild(y.createTextNode(n.join(" ").replace(/- /g,"-")));w&&a.attr("title",a.textStr);a.rotation=z}m++}}})}),R&&R.removeChild(b),n&&a.applyTextShadow&&a.applyTextShadow(n))},getContrast:function(a){a=ia(a).rgba;return a[0]+a[1]+a[2]>384?"#000000":"#FFFFFF"},button:function(a,
    +b,c,d,e,f,g,h,i){var k=this.label(a,b,c,i,null,null,null,null,"button"),j=0,l,m,n,r,s,p,a={x1:0,y1:0,x2:0,y2:1},e=D({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);n=e.style;delete e.style;f=D(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);r=f.style;delete f.style;g=D(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);s=g.style;delete g.style;h=D(e,{style:{color:"#CCC"}},
    +h);p=h.style;delete h.style;M(k.element,ya?"mouseover":"mouseenter",function(){j!==3&&k.attr(f).css(r)});M(k.element,ya?"mouseout":"mouseleave",function(){j!==3&&(l=[e,f,g][j],m=[n,r,s][j],k.attr(l).css(m))});k.setState=function(a){(k.state=j=a)?a===2?k.attr(g).css(s):a===3&&k.attr(h).css(p):k.attr(e).css(n)};return k.on("click",function(a){j!==3&&d.call(k,a)}).attr(e).css(u({cursor:"default"},n))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=A(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=A(a[2])+b%2/
    +2);return a},path:function(a){var b={fill:"none"};Ia(a)?b.d=a:Y(a)&&u(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=Y(a)?a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,c){c.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,c,d,e,f){if(Y(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0});a.r=c;return a},rect:function(a,b,c,d,e,f){var e=Y(a)?a.r:e,g=this.createElement("rect"),
    +a=Y(a)?a:a===z?{}:{x:a,y:b,width:t(c,0),height:t(d,0)};if(f!==z)g.strokeWidth=f,a=g.crisp(a);if(e)a.r=e;g.rSetter=function(a,b,c){K(c,{rx:a,ry:a})};return g.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[p(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return q(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};arguments.length>
    +1&&u(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g=this,h,i=this.symbols[a],i=i&&i(A(b),A(c),d,e,f),k=/^url\((.*?)\)$/,j,l;if(i)h=this.path(i),u(h,{symbolName:a,x:b,y:c,width:d,height:e}),f&&u(h,f);else if(k.test(a))l=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(A((d-
    +b[0])/2),A((e-b[1])/2)))},j=a.match(k)[1],a=Nb[j]||f&&f.width&&f.height&&[f.width,f.height],h=this.image(j).attr({x:b,y:c}),h.isImg=!0,a?l(h,a):(h.attr({width:0,height:0}),Z("img",{onload:function(){this.width===0&&(L(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this));l(h,Nb[j]=[this.width,this.height]);this.parentNode&&this.parentNode.removeChild(this);g.imgCount--;if(!g.imgCount)S[g.chartIndex].onload()},src:j})),this.imgCount++;return h},symbols:{circle:function(a,b,c,d){var e=
    +0.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-0.001,d=e.innerR,h=e.open,i=U(f),k=$(f),j=U(g),g=$(g),
    +e=e.end-f<ra?0:1;return["M",a+c*i,b+c*k,"A",c,c,0,e,1,a+c*j,b+c*g,h?"M":"L",a+d*j,b+d*g,"A",d,d,0,e,0,a+d*i,b+d*k,h?"":"Z"]},callout:function(a,b,c,d,e){var f=F(e&&e.r||0,c,d),g=f+6,h=e&&e.anchorX,e=e&&e.anchorY,i;i=["M",a+f,b,"L",a+c-f,b,"C",a+c,b,a+c,b,a+c,b+f,"L",a+c,b+d-f,"C",a+c,b+d,a+c,b+d,a+c-f,b+d,"L",a+f,b+d,"C",a,b+d,a,b+d,a,b+d-f,"L",a,b+f,"C",a,b,a,b,a+f,b];h&&h>c&&e>b+g&&e<b+d-g?i.splice(13,3,"L",a+c,e-6,a+c+6,e,a+c,e+6,a+c,b+d-f):h&&h<0&&e>b+g&&e<b+d-g?i.splice(33,3,"L",a,e+6,a-6,e,
    +a,e-6,a,b+f):e&&e>d&&h>a+g&&h<a+c-g?i.splice(23,3,"L",h+6,b+d,h,b+d+6,h-6,b+d,a+f,b+d):e&&e<0&&h>a+g&&h<a+c-g&&i.splice(3,3,"L",h-6,b,h,b-6,h+6,b,c-f,b);return i}},clipRect:function(a,b,c,d){var e="highcharts-"+zb++,f=this.createElement("clipPath").attr({id:e}).add(this.defs),a=this.rect(a,b,c,d,0).add(f);a.id=e;a.clipPath=f;a.count=0;return a},text:function(a,b,c,d){var e=ha||!ca&&this.forExport,f={};if(d&&(this.allowHTML||!this.forExport))return this.html(a,b,c);f.x=Math.round(b||0);if(c)f.y=Math.round(c);
    +if(a||a===0)f.text=a;a=this.createElement("text").attr(f);e&&a.css({position:"absolute"});if(!d)a.xSetter=function(a,b,c){var d=c.getElementsByTagName("tspan"),e,f=c.getAttribute(b),m;for(m=0;m<d.length;m++)e=d[m],e.getAttribute(b)===f&&e.setAttribute(b,a);c.setAttribute(b,a)};return a},fontMetrics:function(a,b){var c,d,a=a||this.style.fontSize;!a&&b&&E.getComputedStyle&&(b=b.element||b,a=(c=E.getComputedStyle(b,""))&&c.fontSize);a=/px/.test(a)?C(a):/em/.test(a)?parseFloat(a)*12:12;c=a<24?a+3:A(a*
    +1.2);d=A(c*0.8);return{h:c,b:d,f:a}},rotCorr:function(a,b,c){var d=a;b&&c&&(d=t(d*U(b*ga),4));return{x:-a/3*$(b*ga),y:d}},label:function(a,b,c,d,e,f,g,h,i){var k=this,j=k.g(i),l=k.text("",0,0,g).attr({zIndex:1}),m,n,r=0,s=3,p=0,v,x,w,t,ba=0,gb={},B,y,Bb,F,E;Bb=function(){var a,b;a=l.element.style;n=(v===void 0||x===void 0||j.styles.textAlign)&&q(l.textStr)&&l.getBBox();j.width=(v||n.width||0)+2*s+p;j.height=(x||n.height||0)+2*s;B=s+k.fontMetrics(a&&a.fontSize,l).b;if(y){if(!m)a=ba,b=(h?-B:0)+ba,j.box=
    +m=d?k.symbol(d,a,b,j.width,j.height,gb):k.rect(a,b,j.width,j.height,0,gb["stroke-width"]),m.isImg||m.attr("fill","none"),m.add(j);m.isImg||m.attr(u({width:A(j.width),height:A(j.height)},gb));gb=null}};F=function(){var a=j.styles,a=a&&a.textAlign,b=p+s,c;c=h?0:B;if(q(v)&&n&&(a==="center"||a==="right"))b+={center:0.5,right:1}[a]*(v-n.width);if(b!==l.x||c!==l.y)l.attr("x",b),c!==z&&l.attr("y",c);l.x=b;l.y=c};E=function(a,b){m?m.attr(a,b):gb[a]=b};j.onAdd=function(){l.add(j);j.attr({text:a||a===0?a:"",
    +x:b,y:c});m&&q(e)&&j.attr({anchorX:e,anchorY:f})};j.widthSetter=function(a){v=a};j.heightSetter=function(a){x=a};j.paddingSetter=function(a){if(q(a)&&a!==s)s=j.padding=a,F()};j.paddingLeftSetter=function(a){q(a)&&a!==p&&(p=a,F())};j.alignSetter=function(a){a={left:0,center:0.5,right:1}[a];a!==r&&(r=a,n&&j.attr({x:b}))};j.textSetter=function(a){a!==z&&l.textSetter(a);Bb();F()};j["stroke-widthSetter"]=function(a,b){a&&(y=!0);ba=a%2/2;E(b,a)};j.strokeSetter=j.fillSetter=j.rSetter=function(a,b){b==="fill"&&
    +a&&(y=!0);E(b,a)};j.anchorXSetter=function(a,b){e=a;E(b,A(a)-ba-w)};j.anchorYSetter=function(a,b){f=a;E(b,a-t)};j.xSetter=function(a){j.x=a;r&&(a-=r*((v||n.width)+2*s));w=A(a);j.attr("translateX",w)};j.ySetter=function(a){t=j.y=A(a);j.attr("translateY",t)};var C=j.css;return u(j,{css:function(a){if(a){var b={},a=D(a);o(j.textProps,function(c){a[c]!==z&&(b[c]=a[c],delete a[c])});l.css(b)}return C.call(j,a)},getBBox:function(){return{width:n.width+2*s,height:n.height+2*s,x:n.x-s,y:n.y-s}},shadow:function(a){m&&
    +m.shadow(a);return j},destroy:function(){V(j.element,"mouseenter");V(j.element,"mouseleave");l&&(l=l.destroy());m&&(m=m.destroy());O.prototype.destroy.call(j);j=k=Bb=F=E=null}})}};cb=Ca;u(O.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&b.tagName==="SPAN"&&a.width)delete a.width,this.textWidth=b,this.updateTransform();if(a&&a.textOverflow==="ellipsis")a.whiteSpace="nowrap",a.overflow="hidden";this.styles=u(this.styles,a);L(this.element,a);return this},htmlGetBBox:function(){var a=this.element;
    +if(a.nodeName==="text")a.style.position="absolute";return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,d=this.translateY||0,e=this.x||0,f=this.y||0,g=this.textAlign||"left",h={left:0,center:0.5,right:1}[g],i=this.shadows,k=this.styles;L(b,{marginLeft:c,marginTop:d});i&&o(i,function(a){L(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&o(b.childNodes,function(c){a.invertChild(c,
    +b)});if(b.tagName==="SPAN"){var i=this.rotation,j=C(this.textWidth),l=k&&k.whiteSpace,m=[i,g,b.innerHTML,this.textWidth,this.textAlign].join(",");if(m!==this.cTT){k=a.fontMetrics(b.style.fontSize).b;q(i)&&this.setSpanRotation(i,h,k);if(b.offsetWidth>j&&/[ \-]/.test(b.textContent||b.innerText))L(b,{width:j+"px",display:"block",whiteSpace:l||"normal"}),this.hasTextWidth=!0;else if(this.hasTextWidth)L(b,{width:"",display:"",whiteSpace:l||"nowrap"}),this.hasTextWidth=!1;this.getSpanCorrection(this.hasTextWidth?
    +j:b.offsetWidth,k,h,i,g)}L(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});if(mb)k=b.offsetHeight;this.cTT=m}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=ya?"-ms-transform":mb?"-webkit-transform":Ma?"MozTransform":Lb?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)";d[e+(Ma?"Origin":"-origin")]=d.transformOrigin=b*100+"% "+c+"px";L(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});u(Ca.prototype,{html:function(a,b,c){var d=
    +this.createElement("span"),e=d.element,f=d.renderer,g=function(a,b){o(["opacity","visibility"],function(c){fb(a,c+"Setter",function(a,c,d,e){a.call(this,c,d,e);b[d]=c})})};d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;e.innerHTML=this.textStr=a;d.htmlUpdateTransform()};g(d,d.element.style);d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,b){b==="align"&&(b="textAlign");d[b]=a;d.htmlUpdateTransform()};d.attr({text:a,x:A(b),y:A(c)}).css({position:"absolute",fontFamily:this.style.fontFamily,
    +fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";d.css=d.htmlCss;if(f.isSVG)d.add=function(a){var b,c=f.box.parentNode,j=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)j.push(a),a=a.parentGroup;o(j.reverse(),function(a){var d,e=K(a.element,"class");e&&(e={className:e});b=a.div=a.div||Z(La,e,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px"},b||c);d=b.style;u(a,{translateXSetter:function(b,c){d.left=b+"px";a[c]=b;a.doTransform=!0},translateYSetter:function(b,c){d.top=
    +b+"px";a[c]=b;a.doTransform=!0}});g(a,d)})}}else b=c;b.appendChild(e);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d};return d}});var J;if(!ca&&!ha){J={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e=b===La;(b==="shape"||e)&&d.push("left:0;top:0;width:1px;height:1px;");d.push("visibility: ",e?"hidden":"visible");c.push(' style="',d.join(""),'"/>');if(b)c=e||b==="span"||b==="img"?c.join(""):a.prepVML(c),this.element=Z(c);this.renderer=a},add:function(a){var b=
    +this.renderer,c=this.element,d=b.box,e=a&&a.inverted,d=a?a.element||a:d;if(a)this.parentGroup=a;e&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();return this},updateTransform:O.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=this.rotation,b=U(a*ga),c=$(a*ga);L(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):
    +"none"})},getSpanCorrection:function(a,b,c,d,e){var f=d?U(d*ga):1,g=d?$(d*ga):0,h=p(this.elemHeight,this.element.offsetHeight),i;this.xCorr=f<0&&-a;this.yCorr=g<0&&-h;i=f*g<0;this.xCorr+=g*b*(i?1-c:c);this.yCorr-=f*b*(d?i?c:1-c:1);e&&e!=="left"&&(this.xCorr-=a*c*(f<0?-1:1),d&&(this.yCorr-=h*c*(g<0?-1:1)),L(this.element,{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)if(ma(a[b]))c[b]=A(a[b]*10)-5;else if(a[b]==="Z")c[b]="x";else if(c[b]=a[b],a.isArc&&(a[b]==="wa"||a[b]==="at"))c[b+
    +5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1);return c.join(" ")||"x"},clip:function(a){var b=this,c;a?(c=a.members,oa(c,b),c.push(b),b.destroyClip=function(){oa(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:lb?"inherit":"rect(auto)"});return b.css(a)},css:O.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&Ta(a)},destroy:function(){this.destroyClip&&this.destroyClip();return O.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+
    +a]=function(){var a=E.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c,a=a.split(/[ ,]/);c=a.length;if(c===9||c===11)a[c-4]=a[c-2]=C(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,i=f.style,k,j=f.path,l,m,n,r;j&&typeof j.value!=="string"&&(j="x");m=j;if(a){n=p(a.width,3);r=(a.opacity||0.15)/n;for(e=1;e<=3;e++){l=n*2+1-2*e;c&&(m=this.cutOffPath(j.value,l+0.5));k=['<shape isShadow="true" strokeweight="',l,'" filled="false" path="',
    +m,'" coordsize="10 10" style="',f.style.cssText,'" />'];h=Z(g.prepVML(k),null,{left:C(i.left)+p(a.offsetX,1),top:C(i.top)+p(a.offsetY,1)});if(c)h.cutOff=l+1;k=['<stroke color="',a.color||"black",'" opacity="',r*e,'"/>'];Z(g.prepVML(k),null,null,h);b?b.element.appendChild(h):f.parentNode.insertBefore(h,f);d.push(h)}this.shadows=d}return this},updateShadows:Aa,setAttr:function(a,b){lb?this.element[a]=b:this.element.setAttribute(a,b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a,
    +b,c){(c.getElementsByTagName("stroke")[0]||Z(this.renderer.prepVML(["<stroke/>"]),null,null,c))[b]=a||"solid";this[b]=a},dSetter:function(a,b,c){var d=this.shadows,a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;if(d==="SPAN")c.style.color=a;else if(d!=="IMG")c.filled=a!=="none",this.setAttr("fillcolor",this.renderer.color(a,c,b,this))},"fill-opacitySetter":function(a,
    +b,c){Z(this.renderer.prepVML(["<",b.split("-")[0],' opacity="',a,'"/>']),null,null,c)},opacitySetter:Aa,rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-A($(a*ga)+1)+"px";c.top=A(U(a*ga))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b,this))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;this[b]=a;ma(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){a==="inherit"&&
    +(a="visible");this.shadows&&o(this.shadows,function(c){c.style[b]=a});c.nodeName==="DIV"&&(a=a==="hidden"?"-999em":0,lb||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},xSetter:function(a,b,c){this[b]=a;b==="x"?b="left":b==="y"&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}};J["stroke-opacitySetter"]=J["fill-opacitySetter"];B.VMLElement=J=pa(O,J);J.prototype.ySetter=J.prototype.widthSetter=J.prototype.heightSetter=
    +J.prototype.xSetter;var Cb={Element:J,isIE8:za.indexOf("MSIE 8.0")>-1,init:function(a,b,c,d){var e;this.alignedObjects=[];d=this.createElement(La).css(u(this.getStyle(d),{position:"relative"}));e=d.element;a.appendChild(d.element);this.isVML=!0;this.box=e;this.boxWrapper=d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,c,!1);if(!y.namespaces.hcv){y.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{y.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){y.styleSheets[0].cssText+=
    +"hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=Y(a);return u(e,{members:[],count:0,left:(f?a.x:a)+1,top:(f?a.y:b)+1,width:(f?a.width:c)-1,height:(f?a.height:d)-1,getCSS:function(a){var b=a.element,c=b.nodeName,a=a.inverted,d=this.top-(c==="shape"?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+A(a?e:d)+"px,"+
    +A(a?f:b)+"px,"+A(a?b:f)+"px,"+A(a?d:e)+"px)"};!a&&lb&&c==="DIV"&&u(d,{width:b+"px",height:f+"px"});return d},updateClipping:function(){o(e.members,function(a){a.element&&a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,i,k="none";a&&a.linearGradient?i="gradient":a&&a.radialGradient&&(i="pattern");if(i){var j,l,m=a.linearGradient||a.radialGradient,n,r,s,p,v,x="",a=a.stops,w,q=[],ba=function(){h=['<fill colors="'+q.join(",")+'" opacity="',s,'" o:opacity2="',r,'" type="',i,'" ',
    +x,'focus="100%" method="any" />'];Z(e.prepVML(h),null,null,b)};n=a[0];w=a[a.length-1];n[0]>0&&a.unshift([0,n[1]]);w[0]<1&&a.push([1,w[1]]);o(a,function(a,b){g.test(a[1])?(f=ia(a[1]),j=f.get("rgb"),l=f.get("a")):(j=a[1],l=1);q.push(a[0]*100+"% "+j);b?(s=l,p=j):(r=l,v=j)});if(c==="fill")if(i==="gradient")c=m.x1||m[0]||0,a=m.y1||m[1]||0,n=m.x2||m[2]||0,m=m.y2||m[3]||0,x='angle="'+(90-W.atan((m-a)/(n-c))*180/ra)+'"',ba();else{var k=m.r,t=k*2,u=k*2,A=m.cx,B=m.cy,z=b.radialReference,y,k=function(){z&&(y=
    +d.getBBox(),A+=(z[0]-y.x)/y.width-0.5,B+=(z[1]-y.y)/y.height-0.5,t*=z[2]/y.width,u*=z[2]/y.height);x='src="'+N.global.VMLRadialGradientURL+'" size="'+t+","+u+'" origin="0.5,0.5" position="'+A+","+B+'" color2="'+v+'" ';ba()};d.added?k():d.onAdd=k;k=p}else k=j}else if(g.test(a)&&b.tagName!=="IMG")f=ia(a),d[c+"-opacitySetter"](f.get("a"),c,b),k=f.get("rgb");else{k=b.getElementsByTagName(c);if(k.length)k[0].opacity=1,k[0].type="solid";k=a}return k},prepVML:function(a){var b=this.isIE8,a=a.join("");b?
    +(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:");return a},text:Ca.prototype.html,path:function(a){var b={coordsize:"10 10"};Ia(a)?b.d=a:Y(a)&&u(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){var d=this.symbol("circle");if(Y(a))c=a.r,b=a.y,a=a.x;d.isCircle=
    +!0;d.r=c;return d.attr({x:a,y:b})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement(La).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.attr({x:b,y:c,width:d,height:e});return f},createElement:function(a){return a==="rect"?this.symbol(a):Ca.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this,d=b.style,e=a.tagName==="IMG"&&a.style;L(a,{flip:"x",left:C(d.width)-(e?C(e.top):
    +1),top:C(d.height)-(e?C(e.left):1),rotation:-90});o(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=e.innerR,d=U(f),i=$(f),k=U(g),j=$(g);if(g-f===0)return["x"];f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*i,a+h*k,b+h*j];e.open&&!c&&f.push("e","M",a,b);f.push("at",a-c,b-c,a+c,b+c,a+c*k,b+c*j,a+c*d,b+c*i,"x","e");f.isArc=!0;return f},circle:function(a,b,c,d,e){e&&(c=d=2*e.r);e&&e.isCircle&&(a-=c/2,b-=d/2);return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,
    +b+d/2,"e"]},rect:function(a,b,c,d,e){return Ca.prototype.symbols[!q(e)||!e.r?"square":"callout"].call(0,a,b,c,d,e)}}};B.VMLRenderer=J=function(){this.init.apply(this,arguments)};J.prototype=D(Ca.prototype,Cb);cb=J}Ca.prototype.measureSpanWidth=function(a,b){var c=y.createElement("span"),d;d=y.createTextNode(a);c.appendChild(d);L(c,b);this.box.appendChild(c);d=c.offsetWidth;Ta(c);return d};var Ob;if(ha)B.CanVGRenderer=J=function(){Fa="http://www.w3.org/1999/xhtml"},J.prototype.symbols={},Ob=function(){function a(){var a=
    +b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){if(b.length===0){var e=y.getElementsByTagName("head")[0],f=y.createElement("script");f.type="text/javascript";f.src=d;f.onload=a;e.appendChild(f)}b.push(c)}}}(),cb=J;Va.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.categories,e=a.names,f=this.pos,g=b.labels,h=a.tickPositions,i=f===h[0],k=f===h[h.length-1],e=d?p(d[f],e[f],f):f,d=this.label,h=h.info,j;a.isDatetimeAxis&&h&&(j=b.dateTimeLabelFormats[h.higherRanks[f]||
    +h.unitName]);this.isFirst=i;this.isLast=k;b=a.labelFormatter.call({axis:a,chart:c,isFirst:i,isLast:k,dateTimeLabelFormat:j,value:a.isLog?fa(na(e)):e});q(d)?d&&d.attr({text:b}):(this.labelLength=(this.label=d=q(b)&&g.enabled?c.renderer.text(b,0,0,g.useHTML).css(D(g.style)).add(a.labelGroup):null)&&d.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var b=this.axis,c=a.x,d=b.chart.chartWidth,
    +e=b.chart.spacing,f=p(b.labelLeft,F(b.pos,e[3])),e=p(b.labelRight,t(b.pos+b.len,d-e[1])),g=this.label,h=this.rotation,i={left:0,center:0.5,right:1}[b.labelAlign],k=g.getBBox().width,j=b.slotWidth,l=1,m,n={};if(h)h<0&&c-i*k<f?m=A(c/U(h*ga)-f):h>0&&c+i*k>e&&(m=A((d-c)/U(h*ga)));else if(d=c+(1-i)*k,c-i*k<f?j=a.x+j*(1-i)-f:d>e&&(j=e-a.x+j*i,l=-1),j=F(b.slotWidth,j),j<b.slotWidth&&b.labelAlign==="center"&&(a.x+=l*(b.slotWidth-j-i*(b.slotWidth-F(k,j)))),k>j||b.autoRotation&&g.styles.width)m=j;if(m){n.width=
    +m;if(!b.options.labels.style.textOverflow)n.textOverflow="ellipsis";g.css(n)}},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var i=this.axis,k=i.transA,j=i.reversed,l=i.staggerLines,m=i.tickRotCorr||
    +{x:0,y:0},n=e.y;q(n)||(n=i.side===2?m.y+8:n=U(c.rotation*ga)*(m.y-c.getBBox(!1,0).height/2));a=a+e.x+m.x-(f&&d?f*k*(j?-1:1):0);b=b+n-(f&&!d?f*k*(j?1:-1):0);l&&(c=g/(h||1)%l,i.opposite&&(c=l-c-1),b+=c*(i.labelOffset/l));return{x:a,y:A(b)}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,i=this.label,k=this.pos,j=e.labels,l=this.gridLine,m=h?h+"Grid":"grid",n=h?h+"Tick":
    +"tick",r=e[m+"LineWidth"],s=e[m+"LineColor"],o=e[m+"LineDashStyle"],v=e[n+"Length"],m=p(e[n+"Width"],!h&&d.isXAxis?1:0),x=e[n+"Color"],w=e[n+"Position"],n=this.mark,q=j.step,ba=!0,t=d.tickmarkOffset,u=this.getPosition(g,k,t,b),A=u.x,u=u.y,B=g&&A===d.pos+d.len||!g&&u===d.pos?-1:1,c=p(c,1);this.isActive=!0;if(r){k=d.getPlotLinePath(k+t,r*B,b,!0);if(l===z){l={stroke:s,"stroke-width":r};if(o)l.dashstyle=o;if(!h)l.zIndex=1;if(b)l.opacity=0;this.gridLine=l=r?f.path(k).attr(l).add(d.gridGroup):null}if(!b&&
    +l&&k)l[this.isNew?"attr":"animate"]({d:k,opacity:c})}if(m&&v)w==="inside"&&(v=-v),d.opposite&&(v=-v),h=this.getMarkPath(A,u,v,m*B,g,f),n?n.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:x,"stroke-width":m,opacity:c}).add(d.axisGroup);if(i&&!isNaN(A))i.xy=u=this.getLabelPosition(A,u,i,g,j,t,a,q),this.isFirst&&!this.isLast&&!p(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!p(e.showLastLabel,1)?ba=!1:g&&!d.isRadial&&!j.step&&!j.rotation&&!b&&c!==0&&this.handleOverflow(u),q&&a%q&&(ba=!1),
    +ba&&!isNaN(u.y)?(u.opacity=c,i[this.isNew?"attr":"animate"](u),this.isNew=!1):i.attr("y",-9999)},destroy:function(){Sa(this,this.axis)}};B.PlotLineOrBand=function(a,b){this.axis=a;if(b)this.options=b,this.id=b.id};B.PlotLineOrBand.prototype={render:function(){var a=this,b=a.axis,c=b.horiz,d=a.options,e=d.label,f=a.label,g=d.width,h=d.to,i=d.from,k=q(i)&&q(h),j=d.value,l=d.dashStyle,m=a.svgElem,n=[],r,s=d.color,o=p(d.zIndex,0),v=d.events,x={},w=b.chart.renderer;b.isLog&&(i=Da(i),h=Da(h),j=Da(j));if(g){if(n=
    +b.getPlotLinePath(j,g),x={stroke:s,"stroke-width":g},l)x.dashstyle=l}else if(k){n=b.getPlotBandPath(i,h,d);if(s)x.fill=s;if(d.borderWidth)x.stroke=d.borderColor,x["stroke-width"]=d.borderWidth}else return;x.zIndex=o;if(m)if(n)m.show(),m.animate({d:n});else{if(m.hide(),f)a.label=f=f.destroy()}else if(n&&n.length&&(a.svgElem=m=w.path(n).attr(x).add(),v))for(r in d=function(b){m.on(b,function(c){v[b].apply(a,[c])})},v)d(r);e&&q(e.text)&&n&&n.length&&b.width>0&&b.height>0&&!n.flat?(e=D({align:c&&k&&"center",
    +x:c?!k&&4:10,verticalAlign:!c&&k&&"middle",y:c?k?16:10:k?6:-4,rotation:c&&!k&&90},e),this.renderLabel(e,n,k,o)):f&&f.hide();return a},renderLabel:function(a,b,c,d){var e=this.label,f=this.axis.chart.renderer;if(!e)e={align:a.textAlign||a.align,rotation:a.rotation},e.zIndex=d,this.label=e=f.text(a.text,0,0,a.useHTML).attr(e).css(a.style).add();d=[b[1],b[4],c?b[6]:b[1]];b=[b[2],b[5],c?b[7]:b[2]];c=Ra(d);f=Ra(b);e.align(a,!1,{x:c,y:f,width:Ea(d)-c,height:Ea(b)-f});e.show()},destroy:function(){oa(this.axis.plotLinesAndBands,
    +this);delete this.axis;Sa(this)}};var ka=B.Axis=function(){this.init.apply(this,arguments)};ka.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#666",cursor:"default",fontSize:"12px"},x:0,y:15},lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,
    +minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return B.numberFormat(this.total,
    +-1)},style:D(aa.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0,y:-15},title:{rotation:0}},init:function(a,b){var c=b.isX;this.chart=a;this.horiz=a.inverted?!c:c;this.coll=(this.isXAxis=c)?"xAxis":"yAxis";this.opposite=b.opposite;this.side=
    +b.side||(this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.userOptions=b;this.minPixelPadding=0;this.reversed=d.reversed;this.visible=d.visible!==!1;this.zoomEnabled=d.zoomEnabled!==!1;this.categories=d.categories||e==="category";this.names=this.names||[];this.isLog=e==="logarithmic";this.isDatetimeAxis=e==="datetime";this.isLinked=q(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks=
    +{};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.oldStacks={};this.stacksTouched=0;this.min=this.max=null;this.crosshair=p(d.crosshair,ta(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;sa(this,a.axes)===-1&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];if(a.inverted&&
    +c&&this.reversed===z)this.reversed=!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)M(this,f,d[f]);if(this.isLog)this.val2lin=Da,this.lin2val=na},setOptions:function(a){this.options=D(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],D(N[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=
    +this.dateTimeLabelFormat,e=N.lang.numericSymbols,f=e&&e.length,g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=Ka(h,this);else if(c)g=b;else if(d)g=Qa(d,b);else if(f&&a>=1E3)for(;f--&&g===z;)c=Math.pow(1E3,f+1),a>=c&&b*10%c===0&&e[f]!==null&&(g=B.numberFormat(b/c,-1)+e[f]);g===z&&(g=P(b)>=1E4?B.numberFormat(b,-1):B.numberFormat(b,-1,z,""));return g},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;
    +a.buildStacks&&a.buildStacks();o(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d=c.options,e=d.threshold,f;a.hasVisibleSeries=!0;a.isLog&&e<=0&&(e=null);if(a.isXAxis){if(d=c.xData,d.length)a.dataMin=F(p(a.dataMin,d[0]),Ra(d)),a.dataMax=t(p(a.dataMax,d[0]),Ea(d))}else{c.getExtremes();f=c.dataMax;c=c.dataMin;if(q(c)&&q(f))a.dataMin=F(p(a.dataMin,c),c),a.dataMax=t(p(a.dataMax,f),f);if(q(e))a.threshold=e;if(!d.softThreshold||a.isLog)a.softThreshold=!1}}})},translate:function(a,
    +b,c,d,e,f){var g=this.linkedParent||this,h=1,i=0,k=d?g.oldTransA:g.transA,d=d?g.oldMin:g.min,j=g.minPixelPadding,e=(g.isOrdinal||g.isBroken||g.isLog&&e)&&g.lin2val;if(!k)k=g.transA;if(c)h*=-1,i=g.len;g.reversed&&(h*=-1,i-=h*(g.sector||g.len));b?(a=a*h+i,a-=j,a=a/k+d,e&&(a=g.lin2val(a))):(e&&(a=g.val2lin(a)),f==="between"&&(f=0.5),a=h*(a-d)*k+i+h*j+(ma(f)?k*f*g.pointRange:0));return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-
    +(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,d,e){var f=this.chart,g=this.left,h=this.top,i,k,j=c&&f.oldChartHeight||f.chartHeight,l=c&&f.oldChartWidth||f.chartWidth,m;i=this.transB;var n=function(a,b,c){if(a<b||a>c)d?a=F(t(b,a),c):m=!0;return a},e=p(e,this.translate(a,null,null,c)),a=c=A(e+i);i=k=A(j-e-i);isNaN(e)?m=!0:this.horiz?(i=h,k=j-this.bottom,a=c=n(a,g,g+this.width)):(a=g,c=l-this.right,i=k=n(i,h,h+this.height));return m&&!d?null:f.renderer.crispLine(["M",a,i,"L",
    +c,k],b||1)},getLinearTickPositions:function(a,b,c){var d,e=fa(T(b/a)*a),f=fa(ua(c/a)*a),g=[];if(b===c&&ma(b))return[b];for(b=e;b<=f;){g.push(b);b=fa(b+a);if(b===d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e,f=this.pointRangePadding||0;e=this.min-f;var f=this.max+f,g=f-e;if(g&&g/c<this.len/3)if(this.isLog){f=b.length;for(e=1;e<f;e++)d=d.concat(this.getLogTickPositions(c,b[e-1],b[e],!0))}else if(this.isDatetimeAxis&&a.minorTickInterval===
    +"auto")d=d.concat(this.getTimeTicks(this.normalizeTimeTickInterval(c),e,f,a.startOfWeek));else for(b=e+(b[0]-e)%c;b<=f;b+=c)d.push(b);d.length!==0&&this.trimTicks(d,a.startOnTick,a.endOnTick);return d},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,h,i,k,j;if(this.isXAxis&&this.minRange===z&&!this.isLog)q(a.min)||q(a.max)?this.minRange=null:(o(this.series,function(a){i=a.xData;for(g=k=a.xIncrement?1:i.length-1;g>0;g--)if(h=i[g]-
    +i[g-1],f===z||h<f)f=h}),this.minRange=F(f*5,this.dataMax-this.dataMin));if(c-b<this.minRange){j=this.minRange;d=(j-c+b)/2;d=[b-d,p(a.min,b-d)];if(e)d[2]=this.dataMin;b=Ea(d);c=[b+j,p(a.max,b+j)];if(e)c[2]=this.dataMax;c=Ra(c);c-b<j&&(d[0]=c-j,d[1]=p(a.min,c-j),b=Ea(d))}this.min=b;this.max=c},setAxisTranslation:function(a){var b=this,c=b.max-b.min,d=b.axisPointRange||0,e,f=0,g=0,h=b.linkedParent,i=!!b.categories,k=b.transA,j=b.isXAxis;if(j||i||d)if(h?(f=h.minPointOffset,g=h.pointRangePadding):(o(b.series,
    +function(a){var b=a.closestPointRange;!a.noSharedTooltip&&q(b)&&(e=q(e)?F(e,b):b)}),o(b.series,function(a){var c=i?1:j?p(a.options.pointRange,e,0):b.axisPointRange||0,a=a.options.pointPlacement;d=t(d,c);b.single||(f=t(f,xa(a)?0:c/2),g=t(g,a==="on"?0:c))})),h=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=h,b.pointRangePadding=g*=h,b.pointRange=F(d,c),j)b.closestPointRange=e;if(a)b.oldTransA=k;b.translationSlope=b.transA=k=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=
    +k*f},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,g=b.isXAxis,h=b.isLinked,i=d.maxPadding,k=d.minPadding,j=d.tickInterval,l=d.tickPixelInterval,m=b.categories,n=b.threshold,r=b.softThreshold,s,R,v,x;!f&&!m&&!h&&this.getTickAmount();v=p(b.userMin,d.min);x=p(b.userMax,d.max);h?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=p(c.min,c.dataMin),b.max=p(c.max,c.dataMax),d.type!==
    +b.linkedParent.options.type&&X(11,1)):(!r&&q(n)&&(b.dataMin>=n?(s=n,k=0):b.dataMax<=n&&(R=n,i=0)),b.min=p(v,s,b.dataMin),b.max=p(x,R,b.dataMax));if(e)!a&&F(b.min,p(b.dataMin,b.min))<=0&&X(10,1),b.min=fa(Da(b.min),15),b.max=fa(Da(b.max),15);if(b.range&&q(b.max))b.userMin=b.min=v=t(b.min,b.minFromRange()),b.userMax=x=b.max,b.range=null;b.beforePadding&&b.beforePadding();b.adjustForMinRange();if(!m&&!b.axisPointRange&&!b.usePercentage&&!h&&q(b.min)&&q(b.max)&&(c=b.max-b.min))!q(v)&&k&&(b.min-=c*k),!q(x)&&
    +i&&(b.max+=c*i);if(ma(d.floor))b.min=t(b.min,d.floor);if(ma(d.ceiling))b.max=F(b.max,d.ceiling);if(r&&q(b.dataMin))if(n=n||0,!q(v)&&b.min<n&&b.dataMin>=n)b.min=n;else if(!q(x)&&b.max>n&&b.dataMax<=n)b.max=n;b.tickInterval=b.min===b.max||b.min===void 0||b.max===void 0?1:h&&!j&&l===b.linkedParent.options.tickPixelInterval?j=b.linkedParent.tickInterval:p(j,this.tickAmount?(b.max-b.min)/t(this.tickAmount-1,1):void 0,m?1:(b.max-b.min)*l/t(b.len,l));g&&!a&&o(b.series,function(a){a.processData(b.min!==b.oldMin||
    +b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval);if(b.pointRange&&!j)b.tickInterval=t(b.pointRange,b.tickInterval);a=p(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);if(!j&&b.tickInterval<a)b.tickInterval=a;if(!f&&!e&&!j)b.tickInterval=sb(b.tickInterval,null,rb(b.tickInterval),p(d.allowDecimals,!(b.tickInterval>0.5&&b.tickInterval<5&&b.max>1E3&&b.max<9999)),
    +!!this.tickAmount);if(!this.tickAmount&&this.len)b.tickInterval=b.unsquish();this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions,d=a.tickPositioner,e=a.startOnTick,f=a.endOnTick,g;this.tickmarkOffset=this.categories&&a.tickmarkPlacement==="between"&&this.tickInterval===1?0.5:0;this.minorTickInterval=a.minorTickInterval==="auto"&&this.tickInterval?this.tickInterval/5:a.minorTickInterval;this.tickPositions=b=c&&c.slice();if(!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,
    +a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()]),this.tickPositions=b,d&&(d=d.apply(this,[this.min,this.max]))))this.tickPositions=b=d;if(!this.isLinked)this.trimTicks(b,e,f),this.min===this.max&&q(this.min)&&!this.tickAmount&&(g=!0,this.min-=0.5,this.max+=0.5),this.single=g,!c&&!d&&
    +this.adjustTickAmount()},trimTicks:function(a,b,c){var d=a[0],e=a[a.length-1],f=this.minPointOffset||0;if(b)this.min=d;else for(;this.min-f>a[0];)a.shift();if(c)this.max=e;else for(;this.max+f<a[a.length-1];)a.pop();a.length===0&&q(d)&&a.push((e+d)/2)},alignToOthers:function(){var a={},b,c=this.options;this.chart.options.chart.alignTicks!==!1&&c.alignTicks!==!1&&o(this.chart[this.coll],function(c){var e=c.options,e=[c.horiz?e.left:e.top,e.width,e.height,e.pane].join(",");c.series.length&&(a[e]?b=
    +!0:a[e]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!q(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=ua(this.len/c)+1);if(b<4)this.finalTickAmt=b,b=5;this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,d=this.finalTickAmt,e=b&&b.length;if(e<c){for(;b.length<c;)b.push(fa(b[b.length-1]+a));this.transA*=(e-1)/(c-1);this.max=
    +b[b.length-1]}else e>c&&(this.tickInterval*=2,this.setTickPositions());if(q(d)){for(a=c=b.length;a--;)(d===3&&a%2===1||d<=2&&a>0&&a<c-1)&&b.splice(a,1);this.finalTickAmt=z}},setScale:function(){var a,b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;o(this.series,function(b){if(b.isDirtyData||b.isDirty||b.xAxis.isDirty)a=!0});if(b||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||
    +this.alignToOthers()){if(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,!this.isDirty)this.isDirty=b||this.min!==this.oldMin||this.max!==this.oldMax}else this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart,c=p(c,!0);o(f.series,function(a){delete a.kdTree});e=u(e,{min:a,max:b});H(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.eventArgs=e;
    +c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options,f=F(c,p(e.min,c)),e=t(d,p(e.max,d));this.allowZoomOutside||(q(c)&&a<=f&&(a=f),q(d)&&b>=e&&(b=e));this.displayBtn=a!==z||b!==z;this.setExtremes(a,b,!1,z,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=p(b.width,a.plotWidth-c+(b.offsetRight||0)),f=p(b.height,a.plotHeight),g=p(b.top,a.plotTop),b=p(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=Math.round(parseFloat(f)/
    +100*a.plotHeight));c.test(g)&&(g=Math.round(parseFloat(g)/100*a.plotHeight+a.plotTop));this.left=b;this.top=g;this.width=e;this.height=f;this.bottom=a.chartHeight-f-g;this.right=a.chartWidth-e-b;this.len=t(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=this.isLog;return{min:a?fa(na(this.min)):this.min,max:a?fa(na(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?na(this.min):this.min,b=b?na(this.max):
    +this.max;a===null?a=b<0?b:c:c>a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(p(a,0)-this.side*90+720)%360;return a>15&&a<165?"right":a>195&&a<345?"left":"center"},unsquish:function(){var a=this.ticks,b=this.options.labels,c=this.horiz,d=this.tickInterval,e=d,f=this.len/(((this.categories?1:0)+this.max-this.min)/d),g,h=b.rotation,i=this.chart.renderer.fontMetrics(b.style.fontSize,a[0]&&a[0].label),k,j=Number.MAX_VALUE,l,m=function(a){a/=f||1;a=a>1?ua(a):1;return a*
    +d};c?(l=!b.staggerLines&&!b.step&&(q(h)?[h]:f<p(b.autoRotationLimit,80)&&b.autoRotation))&&o(l,function(a){var b;if(a===h||a&&a>=-90&&a<=90)k=m(P(i.h/$(ga*a))),b=k+P(a/360),b<j&&(j=b,g=a,e=k)}):b.step||(e=m(i.h));this.autoRotation=l;this.labelRotation=p(g,h);return e},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,d=this.ticks,e=this.options.labels,f=this.horiz,g=a.margin,h=this.categories?c.length:c.length-1,g=this.slotWidth=f&&(e.step||0)<2&&!e.rotation&&(this.staggerLines||
    +1)*a.plotWidth/h||!f&&(g[3]&&g[3]-a.spacing[3]||a.chartWidth*0.33),i=t(1,A(g-2*(e.padding||5))),k={},h=b.fontMetrics(e.style.fontSize,d[0]&&d[0].label),j=e.style.textOverflow,l,m=0,n,r;if(!xa(e.rotation))k.rotation=e.rotation||0;if(this.autoRotation)o(c,function(a){if((a=d[a])&&a.labelLength>m)m=a.labelLength}),m>i&&m>h.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(g&&(l={width:i+"px"},!j)){l.textOverflow="clip";for(n=c.length;!f&&n--;)if(r=c[n],i=d[r].label)if(i.styles.textOverflow===
    +"ellipsis"&&i.css({textOverflow:"clip"}),i.getBBox().height>this.len/c.length-(h.h-h.f)||d[r].labelLength>g)i.specCss={textOverflow:"ellipsis"}}if(k.rotation&&(l={width:(m>a.chartHeight*0.5?a.chartHeight*0.33:a.chartHeight)+"px"},!j))l.textOverflow="ellipsis";if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;o(c,function(a){var b=(a=d[a])&&a.label;if(b)b.attr(k),l&&b.css(D(l,b.specCss)),delete b.specCss,a.rotation=k.rotation});this.tickRotCorr=b.rotCorr(h.b,
    +this.labelRotation||0,this.side!==0)},hasData:function(){return this.hasVisibleSeries||q(this.min)&&q(this.max)&&!!this.tickPositions},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,f=a.ticks,g=a.horiz,h=a.side,i=b.inverted?[1,0,3,2][h]:h,k,j,l=0,m,n=0,r=d.title,s=d.labels,R=0,v=a.opposite,x=b.axisOffset,b=b.clipOffset,w=[-1,1,1,-1][h],u,ba=a.axisParent;k=a.hasData();a.showAxis=j=k||p(d.showEmpty,!0);a.staggerLines=a.horiz&&s.staggerLines;if(!a.axisGroup)a.gridGroup=
    +c.g("grid").attr({zIndex:d.gridZIndex||1}).add(ba),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(ba),a.labelGroup=c.g("axis-labels").attr({zIndex:s.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels").add(ba);if(k||a.isLinked){if(o(e,function(b){f[b]?f[b].addLabel():f[b]=new Va(a,b)}),a.renderUnsquish(),s.reserveSpace!==!1&&(h===0||h===2||{1:"left",3:"right"}[h]===a.labelAlign||a.labelAlign==="center")&&o(e,function(a){R=t(f[a].getLabelSize(),R)}),a.staggerLines)R*=a.staggerLines,
    +a.labelOffset=R*(a.opposite?-1:1)}else for(u in f)f[u].destroy(),delete f[u];if(r&&r.text&&r.enabled!==!1){if(!a.axisTitle)a.axisTitle=c.text(r.text,0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:r.textAlign||{low:v?"right":"left",middle:"center",high:v?"left":"right"}[r.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(r.style).add(a.axisGroup),a.axisTitle.isNew=!0;if(j)l=a.axisTitle.getBBox()[g?"height":"width"],m=r.offset,n=q(m)?0:p(r.margin,g?5:10);a.axisTitle[j?
    +"show":"hide"](!0)}a.offset=w*p(d.offset,x[h]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=h===2?a.tickRotCorr.y:0;g=Math.abs(R)+n+(R&&w*(g?p(s.y,a.tickRotCorr.y+8):s.x)-c);a.axisTitleMargin=p(m,g);x[h]=t(x[h],a.axisTitleMargin+l+w*a.offset,g);d=d.offset?0:T(d.lineWidth/2)*2;b[i]=t(b[i],d)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;c&&(a*=-1);return b.renderer.crispLine(["M",e?this.left:
    +f,e?d:this.top,"L",e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,i=e.x||0,k=e.y||0,j=C(e.style.fontSize||12),d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+(this.side===2?j:0);return{x:a?d+i:b+(g?this.width:0)+h+i,y:a?b+k-(g?this.height:0)+h:d+k}},render:function(){var a=this,
    +b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,g=a.tickPositions,h=a.axisTitle,i=a.ticks,k=a.minorTicks,j=a.alternateBands,l=d.stackLabels,m=d.alternateGridColor,n=a.tickmarkOffset,r=d.lineWidth,s,p=b.hasRendered&&q(a.oldMin)&&!isNaN(a.oldMin),v=a.showAxis,x=c.globalAnimation,w,t;a.labelEdge.length=0;a.overlap=!1;o([i,k,j],function(a){for(var b in a)a[b].isActive=!1});if(a.hasData()||f){a.minorTickInterval&&!a.categories&&o(a.getMinorTickPositions(),function(b){k[b]||(k[b]=new Va(a,b,"minor"));
    +p&&k[b].isNew&&k[b].render(null,!0);k[b].render(null,!1,1)});if(g.length&&(o(g,function(b,c){if(!f||b>=a.min&&b<=a.max)i[b]||(i[b]=new Va(a,b)),p&&i[b].isNew&&i[b].render(c,!0,0.1),i[b].render(c)}),n&&(a.min===0||a.single)))i[-1]||(i[-1]=new Va(a,-1,null,!0)),i[-1].render(-1);m&&o(g,function(c,d){t=g[d+1]!==z?g[d+1]+n:a.max-n;if(d%2===0&&c<a.max&&t<=a.max+(b.polar?-n:n))j[c]||(j[c]=new B.PlotLineOrBand(a)),w=c+n,j[c].options={from:e?na(w):w,to:e?na(t):t,color:m},j[c].render(),j[c].isActive=!0});if(!a._addedPlotLB)o((d.plotLines||
    +[]).concat(d.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0}o([i,k,j],function(a){var c,d,e=[],f=x?x.duration||500:0;for(c in a)if(!a[c].isActive)a[c].render(c,!1,0),a[c].isActive=!1,e.push(c);Pa(function(){for(d=e.length;d--;)a[e[d]]&&!a[e[d]].isActive&&(a[e[d]].destroy(),delete a[e[d]])},a===j||!b.hasRendered||!f?0:f)});if(r)s=a.getLinePath(r),a.axisLine?a.axisLine.animate({d:s}):a.axisLine=c.path(s).attr({stroke:d.lineColor,"stroke-width":r,zIndex:7}).add(a.axisGroup),a.axisLine[v?
    +"show":"hide"](!0);if(h&&v)h[h.isNew?"attr":"animate"](a.getTitlePosition()),h.isNew=!1;l&&l.enabled&&a.renderStackTotals();a.isDirty=!1},redraw:function(){this.visible&&(this.render(),o(this.plotLinesAndBands,function(a){a.render()}));o(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b=this,c=b.stacks,d,e=b.plotLinesAndBands;a||V(b);for(d in c)Sa(c[d]),c[d]=null;o([b.ticks,b.minorTicks,b.alternateBands],function(a){Sa(a)});for(a=e.length;a--;)e[a].destroy();o("stackTotalGroup,axisLine,axisTitle,axisGroup,cross,gridGroup,labelGroup".split(","),
    +function(a){b[a]&&(b[a]=b[a].destroy())});this.cross&&this.cross.destroy()},drawCrosshair:function(a,b){var c,d=this.crosshair,e,f;if(!this.crosshair||(q(b)||!p(d.snap,!0))===!1)this.hideCrosshair();else if(p(d.snap,!0)?q(b)&&(c=this.isXAxis?b.plotX:this.len-b.plotY):c=this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos,c=this.isRadial?this.getPlotLinePath(this.isXAxis?b.x:p(b.stackY,b.y))||null:this.getPlotLinePath(null,null,null,null,c)||null,c===null)this.hideCrosshair();else if(e=this.categories&&
    +!this.isRadial,f=p(d.width,e?this.transA:1),this.cross)this.cross.attr({d:c,visibility:"visible","stroke-width":f});else{e={"stroke-width":f,stroke:d.color||(e?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:p(d.zIndex,2)};if(d.dashStyle)e.dashstyle=d.dashStyle;this.cross=this.chart.renderer.path(c).attr(e).add()}},hideCrosshair:function(){this.cross&&this.cross.hide()}};u(ka.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b,null,null,!0),d=this.getPlotLinePath(a,null,null,!0);d&&c?
    +(d.flat=d.toString()===c.toString(),d.push(c[4],c[5],c[1],c[2])):d=null;return d},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(a,b){var c=(new B.PlotLineOrBand(this,a)).render(),d=this.userOptions;c&&(b&&(d[b]=d[b]||[],d[b].push(a)),this.plotLinesAndBands.push(c));return c},removePlotBandOrLine:function(a){for(var b=this.plotLinesAndBands,c=this.options,d=this.userOptions,e=b.length;e--;)b[e].id===
    +a&&b[e].destroy();o([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&oa(b,b[e])})}});ka.prototype.getTimeTicks=function(a,b,c,d){var e=[],f={},g=N.global.useUTC,h,i=new qa(b-Ya(b)),k=a.unitRange,j=a.count;if(q(b)){i[Gb](k>=G.second?0:j*T(i.getMilliseconds()/j));if(k>=G.second)i[Hb](k>=G.minute?0:j*T(i.getSeconds()/j));if(k>=G.minute)i[Ib](k>=G.hour?0:j*T(i[tb]()/j));if(k>=G.hour)i[Jb](k>=G.day?0:j*T(i[ub]()/j));if(k>=G.day)i[wb](k>=G.month?
    +1:j*T(i[$a]()/j));k>=G.month&&(i[xb](k>=G.year?0:j*T(i[ab]()/j)),h=i[bb]());k>=G.year&&(h-=h%j,i[yb](h));if(k===G.week)i[wb](i[$a]()-i[vb]()+p(d,1));b=1;if(qb||Za)i=i.getTime(),i=new qa(i+Ya(i));h=i[bb]();for(var d=i.getTime(),l=i[ab](),m=i[$a](),n=!g||!!Za,r=(G.day+(g?Ya(i):i.getTimezoneOffset()*6E4))%G.day;d<c;)e.push(d),k===G.year?d=kb(h+b*j,0):k===G.month?d=kb(h,l+b*j):n&&(k===G.day||k===G.week)?d=kb(h,l,m+b*j*(k===G.day?1:7)):d+=k*j,b++;e.push(d);o(Na(e,function(a){return k<=G.hour&&a%G.day===
    +r}),function(a){f[a]="day"})}e.info=u(a,{higherRanks:f,totalRange:k*j});return e};ka.prototype.normalizeTimeTickInterval=function(a,b){var c=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],d=c[c.length-1],e=G[d[0]],f=d[1],g;for(g=0;g<c.length;g++)if(d=c[g],e=G[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+G[c[g+1][0]])/2)break;e===G.year&&a<5*e&&(f=[1,
    +2,5]);c=sb(a/e,f,d[0]==="year"?t(rb(a/e),1):1);return{unitRange:e,count:c,unitName:d[0]}};ka.prototype.getLogTickPositions=function(a,b,c,d){var e=this.options,f=this.len,g=[];if(!d)this._minorAutoInterval=null;if(a>=0.5)a=A(a),g=this.getLinearTickPositions(a,b,c);else if(a>=0.08)for(var f=T(b),h,i,k,j,l,e=a>0.3?[1,2,4]:a>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!l;f++){i=e.length;for(h=0;h<i&&!l;h++)k=Da(na(f)*e[h]),k>b&&(!d||j<=c)&&j!==z&&g.push(j),j>c&&(l=!0),j=k}else if(b=na(b),c=na(c),a=e[d?
    +"minorTickInterval":"tickInterval"],a=p(a==="auto"?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=sb(a,null,rb(a)),g=Ba(this.getLinearTickPositions(a,b,c),Da),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g};var Pb=B.Tooltip=function(){this.init.apply(this,arguments)};Pb.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=C(d.padding);this.chart=a;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=
    +!0;this.label=a.renderer.label("",0,0,b.shape||"callout",null,null,b.useHTML,null,"tooltip").attr({padding:e,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,zIndex:8}).css(d).css({padding:0}).add().attr({y:-9999});ha||this.label.shadow(b.shadow);this.shared=b.shared},destroy:function(){if(this.label)this.label=this.label.destroy();clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=e.options.animation!==!1&&!e.isHidden&&(P(a-f.x)>1||
    +P(b-f.y)>1),h=e.followPointer||e.len>1;u(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?z:g?(2*f.anchorX+c)/3:c,anchorY:h?z:g?(f.anchorY+d)/2:d});e.label.attr(f);if(g)clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32)},hide:function(a){var b=this;clearTimeout(this.hideTimer);a=p(a,this.options.hideDelay,500);if(!this.isHidden)this.hideTimer=Pa(function(){b.label[a?"fadeOut":"hide"]();b.isHidden=!0},a)},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,
    +f=d.plotTop,g=d.plotLeft,h=0,i=0,k,j,a=ta(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===z&&(b=d.pointer.normalize(b)),c=[b.chartX-d.plotLeft,b.chartY-f]);c||(o(a,function(a){k=a.series.yAxis;j=a.series.xAxis;h+=a.plotX+(!e&&j?j.left-g:0);i+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&k?k.top-f:0)}),h/=a.length,i/=a.length,c=[e?d.plotWidth-i:h,this.shared&&!e&&a.length>1&&b?b.chartY-f:e?d.plotHeight-h:i]);return Ba(c,A)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,
    +f={},g=c.h||0,h,i=["y",d.chartHeight,b,c.plotY+d.plotTop,d.plotTop,d.plotTop+d.plotHeight],k=["x",d.chartWidth,a,c.plotX+d.plotLeft,d.plotLeft,d.plotLeft+d.plotWidth],j=p(c.ttBelow,d.inverted&&!c.negative||!d.inverted&&c.negative),l=function(a,b,c,d,h,i){var k=c<d-e,l=d+e+c<b,m=d-e-c;d+=e;if(j&&l)f[a]=d;else if(!j&&k)f[a]=m;else if(k)f[a]=F(i-c,m-g<0?m:m-g);else if(l)f[a]=t(h,d+g+c>b?d:d+g);else return!1},m=function(a,b,c,d){var g;d<e||d>b-e?g=!1:f[a]=d<c/2?1:d>b-c/2?b-c-2:d-c/2;return g},n=function(a){var b=
    +i;i=k;k=b;h=a},r=function(){l.apply(0,i)!==!1?m.apply(0,k)===!1&&!h&&(n(!0),r()):h?f.x=f.y=0:(n(!0),r())};(d.inverted||this.len>1)&&n();r();return f},defaultFormatter:function(a){var b=this.points||ta(this),c;c=[a.tooltipFooterHeaderFormatter(b[0])];c=c.concat(a.bodyFormatter(b));c.push(a.tooltipFooterHeaderFormatter(b[0],!0));return c.join("")},refresh:function(a,b){var c=this.chart,d=this.label,e=this.options,f,g,h,i={},k,j=[];k=e.formatter||this.defaultFormatter;var i=c.hoverPoints,l,m=this.shared;
    +clearTimeout(this.hideTimer);this.followPointer=ta(a)[0].series.tooltipOptions.followPointer;h=this.getAnchor(a,b);f=h[0];g=h[1];m&&(!a.series||!a.series.noSharedTooltip)?(c.hoverPoints=a,i&&o(i,function(a){a.setState()}),o(a,function(a){a.setState("hover");j.push(a.getLabelConfig())}),i={x:a[0].category,y:a[0].y},i.points=j,this.len=j.length,a=a[0]):i=a.getLabelConfig();k=k.call(i,this);i=a.series;this.distance=p(i.tooltipOptions.distance,16);k===!1?this.hide():(this.isHidden&&(Oa(d),d.attr("opacity",
    +1).show()),d.attr({text:k}),l=e.borderColor||a.color||i.color||"#666",d.attr({stroke:l}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:h[2]||0}),this.isHidden=!1);H(c,"tooltipRefresh",{text:k,x:f+c.plotLeft,y:g+c.plotTop,borderColor:l})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(A(c.x),A(c.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d,
    +b=b.dateTimeLabelFormats,e=c&&c.closestPointRange,f,g={millisecond:15,second:12,minute:9,hour:6,day:3},h,i="millisecond";if(e){h=Qa("%m-%d %H:%M:%S.%L",a.x);for(f in G){if(e===G.week&&+Qa("%w",a.x)===c.options.startOfWeek&&h.substr(6)==="00:00:00.000"){f="week";break}if(G[f]>e){f=i;break}if(g[f]&&h.substr(g[f])!=="01-01 00:00:00.000".substr(g[f]))break;f!=="week"&&(i=f)}f&&(d=b[f])}else d=b.day;return d||b.year},tooltipFooterHeaderFormatter:function(a,b){var c=b?"footer":"header",d=a.series,e=d.tooltipOptions,
    +f=e.xDateFormat,g=d.xAxis,h=g&&g.options.type==="datetime"&&ma(a.key),c=e[c+"Format"];h&&!f&&(f=this.getXDateFormat(a,e,g));h&&f&&(c=c.replace("{point.key}","{point.key:"+f+"}"));return Ka(c,{point:a,series:d})},bodyFormatter:function(a){return Ba(a,function(a){var c=a.series.tooltipOptions;return(c.pointFormatter||a.point.tooltipFormatter).call(a.point,c.pointFormat)})}};var ea;db=y&&y.documentElement.ontouchstart!==z;var Xa=B.Pointer=function(a,b){this.init(a,b)};Xa.prototype={init:function(a,b){var c=
    +b.chart,d=c.events,e=ha?"":c.zoomType,c=a.inverted,f;this.options=b;this.chart=a;this.zoomX=f=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=f&&!c||e&&c;this.zoomVert=e&&!c||f&&c;this.hasZoom=f||e;this.runChartClick=d&&!!d.click;this.pinchDown=[];this.lastValidTouch={};if(B.Tooltip&&b.tooltip.enabled)a.tooltip=new Pb(a,b.tooltip),this.followTouchMove=p(b.tooltip.followTouchMove,!0);this.setDOMEvents()},normalize:function(a,b){var c,d,a=a||E.event;if(!a.target)a.target=a.srcElement;d=a.touches?
    +a.touches.length?a.touches.item(0):a.changedTouches[0]:a;if(!b)this.chartPosition=b=Ab(this.chart.container);d.pageX===z?(c=t(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-b.top);return u(a,{chartX:A(c),chartY:A(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};o(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e=d?d.shared:!1,f=b.hoverPoint,
    +g=b.hoverSeries,h=[Number.MAX_VALUE,Number.MAX_VALUE],i,k,j=[],l=[],m;if(!e&&!g)for(b=0;b<c.length;b++)if(c[b].directTouch||!c[b].options.stickyTracking)c=[];g&&(e?g.noSharedTooltip:g.directTouch)&&f?l=[f]:(o(c,function(b){i=b.noSharedTooltip&&e;k=!e&&b.directTouch;b.visible&&!i&&!k&&p(b.options.enableMouseTracking,!0)&&(m=b.searchPoint(a,!i&&b.kdDimensions===1))&&j.push(m)}),o(j,function(a){a&&o(["dist","distX"],function(b,c){typeof a[b]==="number"&&a[b]<h[c]&&(h[c]=a[b],l[c]=a)})}));if(e)for(b=
    +j.length;b--;)(j[b].clientX!==l[1].clientX||j[b].series.noSharedTooltip)&&j.splice(b,1);if(l[0]&&(l[0]!==this.prevKDPoint||d&&d.isHidden))if(e&&!l[0].series.noSharedTooltip)j.length&&d&&d.refresh(j,a),o(j,function(b){b.onMouseOver(a,b!==(g&&g.directTouch&&f||l[0]))}),this.prevKDPoint=l[1];else{d&&d.refresh(l[0],a);if(!g||!g.directTouch)l[0].onMouseOver(a);this.prevKDPoint=l[0]}else c=g&&g.tooltipOptions.followPointer,d&&c&&!d.isHidden&&(c=d.getAnchor([{}],a),d.updatePosition({plotX:c[0],plotY:c[1]}));
    +if(!this._onDocumentMouseMove)this._onDocumentMouseMove=function(a){if(S[ea])S[ea].pointer.onDocumentMouseMove(a)},M(y,"mousemove",this._onDocumentMouseMove);o(e?j:[p(l[1],f)],function(b){var c=b&&b.series;c&&o(["xAxis","yAxis","colorAxis"],function(d){c[d]&&c[d].drawCrosshair(a,b)})})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.hoverPoints,g=c.tooltip,h=g&&g.shared?f:e;(a=a&&g&&h)&&o(ta(h),function(b){b.plotX===void 0&&(a=!1)});if(a)g.refresh(h),e&&(e.setState(e.state,
    +!0),o(c.axes,function(a){p(a.options.crosshair&&a.options.crosshair.snap,!0)?a.drawCrosshair(null,e):a.hideCrosshair()}));else{if(e)e.onMouseOut();f&&o(f,function(a){a.setState()});if(d)d.onMouseOut();g&&g.hide(b);if(this._onDocumentMouseMove)V(y,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null;o(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,d;o(c.series,function(e){d=a||e.getPlotBox();e.xAxis&&
    +e.xAxis.zoomEnabled&&(e.group.attr(d),e.markerGroup&&(e.markerGroup.attr(d),e.markerGroup.clip(b?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,e=a.chartY,f=this.zoomHor,g=this.zoomVert,h=b.plotLeft,i=b.plotTop,k=b.plotWidth,j=b.plotHeight,
    +l,m=this.selectionMarker,n=this.mouseDownX,r=this.mouseDownY,s=c.panKey&&a[c.panKey+"Key"];if(!m||!m.touch)if(d<h?d=h:d>h+k&&(d=h+k),e<i?e=i:e>i+j&&(e=i+j),this.hasDragged=Math.sqrt(Math.pow(n-d,2)+Math.pow(r-e,2)),this.hasDragged>10){l=b.isInsidePlot(n-h,r-i);if(b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&l&&!s&&!m)this.selectionMarker=m=b.renderer.rect(h,i,f?1:k,g?1:j,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();m&&f&&(d-=n,m.attr({width:P(d),x:(d>0?0:d)+n}));
    +m&&g&&(d=e-r,m.attr({height:P(d),y:(d>0?0:d)+r}));l&&!m&&c.panning&&b.pan(a,c.panning)}},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e={originalEvent:a,xAxis:[],yAxis:[]},f=this.selectionMarker,g=f.attr?f.attr("x"):f.x,h=f.attr?f.attr("y"):f.y,i=f.attr?f.attr("width"):f.width,k=f.attr?f.attr("height"):f.height,j;if(this.hasDragged||d)o(c.axes,function(c){if(c.zoomEnabled&&q(c.min)&&(d||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var f=c.horiz,n=a.type===
    +"touchend"?c.minPixelPadding:0,r=c.toValue((f?g:h)+n),f=c.toValue((f?g+i:h+k)-n);e[c.coll].push({axis:c,min:F(r,f),max:t(r,f)});j=!0}}),j&&H(c,"selection",e,function(a){c.zoom(u(a,d?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();d&&this.scaleGroups()}if(c)L(c.container,{cursor:c._cursor}),c.cancelClick=this.hasDragged>10,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[]},onContainerMouseDown:function(a){a=this.normalize(a);a.preventDefault&&a.preventDefault();
    +this.dragStart(a)},onDocumentMouseUp:function(a){S[ea]&&S[ea].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,a=this.normalize(a,c);c&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(a){var b=S[ea];if(b&&(a.relatedTarget||a.toElement))b.pointer.reset(),b.pointer.chartPosition=null},onContainerMouseMove:function(a){var b=this.chart;if(!q(ea)||!S[ea]||!S[ea].mouseIsDown)ea=
    +b.index;a=this.normalize(a);a.returnValue=!1;b.mouseIsDown==="mousedown"&&this.drag(a);(this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop))&&!b.openMenu&&this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=K(a,"class")){if(c.indexOf(b)!==-1)return!0;if(c.indexOf("highcharts-container")!==-1)return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries,a=a.relatedTarget||a.toElement;if(b&&a&&!b.options.stickyTracking&&
    +!this.inClass(a,"highcharts-tooltip")&&!this.inClass(a,"highcharts-series-"+b.index))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop,a=this.normalize(a);b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(H(c.series,"click",u(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(u(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&H(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container;b.onmousedown=
    +function(b){a.onContainerMouseDown(b)};b.onmousemove=function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};M(b,"mouseleave",a.onContainerMouseLeave);eb===1&&M(y,"mouseup",a.onDocumentMouseUp);if(db)b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},eb===1&&M(y,"touchend",a.onDocumentTouchEnd)},destroy:function(){var a;V(this.chart.container,"mouseleave",this.onContainerMouseLeave);eb||(V(y,"mouseup",this.onDocumentMouseUp),
    +V(y,"touchend",this.onDocumentTouchEnd));clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}};u(B.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f);(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var i=this.chart,k=a?"x":"y",j=a?"X":"Y",l="chart"+j,m=a?"width":"height",n=i["plot"+(a?"Left":"Top")],r,s,p=h||1,o=i.inverted,x=i.bounds[a?
    +"h":"v"],w=b.length===1,q=b[0][l],t=c[0][l],u=!w&&b[1][l],A=!w&&c[1][l],B,c=function(){!w&&P(q-u)>20&&(p=h||P(t-A)/P(q-u));s=(n-t)/p+q;r=i["plot"+(a?"Width":"Height")]/p};c();b=s;b<x.min?(b=x.min,B=!0):b+r>x.max&&(b=x.max-r,B=!0);B?(t-=0.8*(t-g[k][0]),w||(A-=0.8*(A-g[k][1])),c()):g[k]=[t,A];o||(f[k]=s-n,f[m]=r);f=o?1/p:p;e[m]=r;e[k]=b;d[o?a?"scaleY":"scaleX":"scale"+j]=p;d["translate"+j]=f*n+(t-f*q)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches,f=e.length,g=b.lastValidTouch,h=
    +b.hasZoom,i=b.selectionMarker,k={},j=f===1&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),l={};if(f>1)b.initiated=!0;h&&b.initiated&&!j&&a.preventDefault();Ba(e,function(a){return b.normalize(a)});if(a.type==="touchstart")o(e,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],o(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(p(a.options.min,
    +a.dataMin)),f=a.toPixels(p(a.options.max,a.dataMax)),g=F(e,f),e=t(e,f);b.min=F(a.pos,g-d);b.max=t(a.pos+a.len,e+d)}}),b.res=!0;else if(d.length){if(!i)b.selectionMarker=i=u({destroy:Aa,touch:!0},c.plotBox);b.pinchTranslate(d,e,k,i,l,g);b.hasPinched=h;b.scaleGroups(k,l);if(!h&&b.followTouchMove&&f===1)this.runPointActions(b.normalize(a));else if(b.res)b.res=!1,this.reset(!1,0)}},touch:function(a,b){var c=this.chart;ea=c.index;a.touches.length===1?(a=this.normalize(a),c.isInsidePlot(a.chartX-c.plotLeft,
    +a.chartY-c.plotTop)&&!c.openMenu?(b&&this.runPointActions(a),this.pinch(a)):b&&this.reset()):a.touches.length===2&&this.pinch(a)},onContainerTouchStart:function(a){this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(a){S[ea]&&S[ea].pointer.drop(a)}});if(E.PointerEvent||E.MSPointerEvent){var va={},Db=!!E.PointerEvent,Sb=function(){var a,b=[];b.item=function(a){return this[a]};for(a in va)va.hasOwnProperty(a)&&b.push({pageX:va[a].pageX,pageY:va[a].pageY,target:va[a].target});
    +return b},Eb=function(a,b,c,d){if((a.pointerType==="touch"||a.pointerType===a.MSPOINTER_TYPE_TOUCH)&&S[ea])d(a),d=S[ea].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:Aa,touches:Sb()})};u(Xa.prototype,{onContainerPointerDown:function(a){Eb(a,"onContainerTouchStart","touchstart",function(a){va[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){Eb(a,"onContainerTouchMove","touchmove",function(a){va[a.pointerId]={pageX:a.pageX,pageY:a.pageY};
    +if(!va[a.pointerId].target)va[a.pointerId].target=a.currentTarget})},onDocumentPointerUp:function(a){Eb(a,"onDocumentTouchEnd","touchend",function(a){delete va[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,Db?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,Db?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(y,Db?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});fb(Xa.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&
    +L(b.container,{"-ms-touch-action":"none","touch-action":"none"})});fb(Xa.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(M)});fb(Xa.prototype,"destroy",function(a){this.batchMSEvents(V);a.call(this)})}var ob=B.Legend=function(a,b){this.init(a,b)};ob.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=b.itemMarginTop||0;this.options=b;if(b.enabled)c.itemStyle=d,c.itemHiddenStyle=D(d,b.itemHiddenStyle),c.itemMarginTop=e,c.padding=d=p(b.padding,
    +8),c.initialItemX=d,c.initialItemY=d-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.symbolWidth=p(b.symbolWidth,16),c.pages=[],c.render(),M(c.chart,"endResize",function(){c.positionCheckboxes()})},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,h=b?a.legendColor||a.color||"#CCC":g,g=a.options&&a.options.marker,i={fill:h},k;d&&d.css({fill:c,color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(k in i.stroke=
    +h,g=a.convertAttribs(g),g)d=g[k],d!==z&&(i[k]=d);f.attr(i)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(b?e:this.legendWidth-e-2*c-4,d);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;o(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&Ta(a.checkbox)},destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();
    +if(a)this.group=a.destroy()},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight,e=this.titleHeight;if(b)c=b.translateY,o(this.allItems,function(f){var g=f.checkbox,h;g&&(h=c+e+g.y+(a||0)+3,L(g,{left:b.translateX+f.checkboxOffset+g.x-20+"px",top:h+"px",display:h>c-6&&h<c+d-6?"":"none"}))})},renderTitle:function(){var a=this.padding,b=this.options.title,c=0;if(b.text){if(!this.title)this.title=this.chart.renderer.label(b.text,a-3,a-4,null,null,null,null,
    +null,"legend-title").attr({zIndex:1}).css(b.style).add(this.group);a=this.title.getBBox();c=a.height;this.offsetWidth=a.width;this.contentGroup.attr({translateY:c})}this.titleHeight=c},setText:function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?Ka(b.labelFormat,a):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,e=d.layout==="horizontal",f=this.symbolWidth,g=d.symbolPadding,h=this.itemStyle,i=this.itemHiddenStyle,k=this.padding,j=e?p(d.itemDistance,
    +20):0,l=!d.rtl,m=d.width,n=d.itemMarginBottom||0,r=this.itemMarginTop,s=this.initialItemX,o=a.legendItem,v=a.series&&a.series.drawLegendSymbol?a.series:a,x=v.options,x=this.createCheckboxForItem&&x&&x.showCheckbox,w=d.useHTML;if(!o){a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup);a.legendItem=o=c.text("",l?f+g:-g,this.baseline||0,w).css(D(a.visible?h:i)).attr({align:l?"left":"right",zIndex:2}).add(a.legendGroup);if(!this.baseline)this.fontMetrics=c.fontMetrics(h.fontSize,o),
    +this.baseline=this.fontMetrics.f+3+r,o.attr("y",this.baseline);v.drawLegendSymbol(this,a);this.setItemEvents&&this.setItemEvents(a,o,w,h,i);x&&this.createCheckboxForItem(a)}this.colorizeItem(a,a.visible);this.setText(a);c=o.getBBox();f=a.checkboxOffset=d.itemWidth||a.legendItemWidth||f+g+c.width+j+(x?20:0);this.itemHeight=g=A(a.legendItemHeight||c.height);if(e&&this.itemX-s+f>(m||b.chartWidth-2*k-s-d.x))this.itemX=s,this.itemY+=r+this.lastLineHeight+n,this.lastLineHeight=0;this.maxItemWidth=t(this.maxItemWidth,
    +f);this.lastItemY=r+this.itemY+n;this.lastLineHeight=t(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=r+g+n,this.lastLineHeight=g);this.offsetWidth=m||t((e?this.itemX-s-j:f)+k,this.offsetWidth)},getAllItems:function(){var a=[];o(this.chart.series,function(b){var c=b.options;if(p(c.showInLegend,!q(c.linkedTo)?z:!1,!0))a=a.concat(b.legendItems||(c.legendType==="point"?b.data:b))});return a},adjustMargins:function(a,b){var c=this.chart,d=this.options,e=d.align.charAt(0)+
    +d.verticalAlign.charAt(0)+d.layout.charAt(0);this.display&&!d.floating&&o([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!q(a[g])&&(c[nb[g]]=t(c[nb[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+p(d.margin,12)+b[g]))})},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,i=a.box,k=a.options,j=a.padding,l=k.borderWidth,m=k.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=
    +0;if(!d)a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup);a.renderTitle();e=a.getAllItems();ib(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});k.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;a.lastLineHeight=0;o(e,function(b){a.renderItem(b)});g=(k.width||a.offsetWidth)+j;h=a.lastItemY+a.lastLineHeight+a.titleHeight;h=a.handleOverflow(h);h+=j;if(l||m){if(i){if(g>
    +0&&h>0)i[i.isNew?"attr":"animate"](i.crisp({width:g,height:h})),i.isNew=!1}else a.box=i=c.rect(0,0,g,h,k.borderRadius,l||0).attr({stroke:k.borderColor,"stroke-width":l||0,fill:m||"none"}).add(d).shadow(k.shadow),i.isNew=!0;i[f?"show":"hide"]()}a.legendWidth=g;a.legendHeight=h;o(e,function(b){a.positionItem(b)});f&&d.align(u({width:g,height:h},k),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+
    +(e.verticalAlign==="top"?-f:f)-this.padding,g=e.maxHeight,h,i=this.clipRect,k=e.navigation,j=p(k.animation,!0),l=k.arrowSize||12,m=this.nav,n=this.pages,r=this.padding,s,R=this.allItems,v=function(a){i.attr({height:a});if(b.contentGroup.div)b.contentGroup.div.style.clip="rect("+r+"px,9999px,"+(r+a)+"px,0)"};e.layout==="horizontal"&&(f/=2);g&&(f=F(f,g));n.length=0;if(a>f){this.clipHeight=h=t(f-20-this.titleHeight-r,0);this.currentPage=p(this.currentPage,1);this.fullHeight=a;o(R,function(a,b){var c=
    +a._legendItemPos[1],d=A(a.legendItem.getBBox().height),e=n.length;if(!e||c-n[e-1]>h&&(s||c)!==n[e-1])n.push(s||c),e++;b===R.length-1&&c+d-n[e-1]>h&&n.push(c);c!==s&&(s=c)});if(!i)i=b.clipRect=d.clipRect(0,r,9999,0),b.contentGroup.clip(i);v(h);if(!m)this.nav=m=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,l,l).on("click",function(){b.scroll(-1,j)}).add(m),this.pager=d.text("",15,10).css(k.style).add(m),this.down=d.symbol("triangle-down",0,0,l,l).on("click",function(){b.scroll(1,
    +j)}).add(m);b.scroll(0);a=f}else if(m)v(c.chartHeight),m.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0;return a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,i=this.pager,k=this.padding;e>d&&(e=d);if(e>0)b!==z&&Ua(b,this.chart),this.nav.attr({translateX:k,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:e===1?g:h}).css({cursor:e===1?"default":
    +"pointer"}),i.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c)}};J=B.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-c+1,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=
    +this.options,c=b.marker,d=a.symbolWidth,e=this.chart.renderer,f=this.legendGroup,a=a.baseline-A(a.fontMetrics.b*0.3),g;if(b.lineWidth){g={"stroke-width":b.lineWidth};if(b.dashStyle)g.dashstyle=b.dashStyle;this.legendLine=e.path(["M",0,a,"L",d,a]).attr(g).add(f)}if(c&&c.enabled!==!1)b=c.radius,this.legendSymbol=c=e.symbol(this.symbol,d/2-b,a-b,2*b,2*b,c).add(f),c.isMarker=!0}};(/Trident\/7\.0/.test(za)||Ma)&&fb(ob.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,
    +b)};d();setTimeout(d)});var hb=B.Chart=function(){this.getArgs.apply(this,arguments)};B.chart=function(a,b,c){return new hb(a,b,c)};hb.prototype={callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(xa(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(a,b){var c,d=a.series;a.series=null;c=D(N,a);c.series=a.series=d;this.userOptions=a;d=c.chart;this.margin=this.splashArray("margin",d);this.spacing=this.splashArray("spacing",d);var e=d.events;this.bounds=
    +{h:{},v:{}};this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=S.length;S.push(f);eb++;d.reflow!==!1&&M(f,"load",function(){f.initReflow()});if(e)for(g in e)M(f,g,e[g]);f.xAxis=[];f.yAxis=[];f.animation=ha?!1:p(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=I[a.type||b.type||b.defaultSeriesType])||X(17,!0);b=new b;b.init(this,a);return b},
    +isInsidePlot:function(a,b,c){var d=c?b:a,a=c?a:b;return d>=0&&d<=this.plotWidth&&a>=0&&a<=this.plotHeight},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,i=this.hasCartesianSeries,k=this.isDirtyBox,j=c.length,l=j,m=this.renderer,n=m.isHidden(),r=[];Ua(a,this);n&&this.cloneRenderTo();for(this.layOutTitles();l--;)if(a=c[l],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(l=j;l--;)if(a=c[l],a.options.stacking)a.isDirty=!0;o(c,function(a){a.isDirty&&
    +a.options.legendType==="point"&&(a.updateTotals&&a.updateTotals(),f=!0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend=!1;g&&this.getStacks();if(i&&!this.isResizing)this.maxTicks=null,o(b,function(a){a.setScale()});this.getMargins();i&&(o(b,function(a){a.isDirty&&(k=!0)}),o(b,function(a){var b=a.min+","+a.max;if(a.extKey!==b)a.extKey=b,r.push(function(){H(a,"afterSetExtremes",u(a.eventArgs,a.getExtremes()));delete a.eventArgs});(k||g)&&a.redraw()}));k&&this.drawChartBox();o(c,function(a){a.isDirty&&
    +a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset(!0);m.draw();H(this,"redraw");n&&this.cloneRenderTo(!0);o(r,function(a){a.call()})},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;d<b.length;d++)if(b[d].options.id===a)return b[d];for(d=0;d<c.length;d++)if(c[d].options.id===a)return c[d];for(d=0;d<c.length;d++){e=c[d].points||[];for(b=0;b<e.length;b++)if(e[b].id===a)return e[b]}return null},getAxes:function(){var a=this,b=this.options,c=b.xAxis=ta(b.xAxis||{}),b=b.yAxis=ta(b.yAxis||
    +{});o(c,function(a,b){a.index=b;a.isX=!0});o(b,function(a,b){a.index=b});c=c.concat(b);o(c,function(b){new ka(a,b)})},getSelectedPoints:function(){var a=[];o(this.series,function(b){a=a.concat(Na(b.points||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return Na(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var g;var d=this,e=d.options,f;f=e.title=D(e.title,a);g=e.subtitle=D(e.subtitle,b),e=g;o([["title",a,f],["subtitle",b,e]],function(a){var b=
    +a[0],c=d[b],e=a[1],a=a[2];c&&e&&(d[b]=c=c.destroy());a&&a.text&&!c&&(d[b]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add())});d.layOutTitles(c)},layOutTitles:function(a){var b=0,c=this.title,d=this.subtitle,e=this.options,f=e.title,e=e.subtitle,g=this.renderer,h=this.spacingBox.width-44;if(c&&(c.css({width:(f.width||h)+"px"}).align(u({y:g.fontMetrics(f.style.fontSize,c).b-3},f),!1,"spacingBox"),!f.floating&&!f.verticalAlign))b=
    +c.getBBox().height;d&&(d.css({width:(e.width||h)+"px"}).align(u({y:b+(f.margin-13)+g.fontMetrics(e.style.fontSize,c).b},e),!1,"spacingBox"),!e.floating&&!e.verticalAlign&&(b=ua(b+d.getBBox().height)));c=this.titleOffset!==b;this.titleOffset=b;if(!this.isDirtyBox&&c)this.isDirtyBox=c,this.hasRendered&&p(a,!0)&&this.isDirtyBox&&this.redraw()},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;if(!q(b))this.containerWidth=ja(c,"width");if(!q(a))this.containerHeight=
    +ja(c,"height");this.chartWidth=t(0,b||this.containerWidth||600);this.chartHeight=t(0,p(a,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Ta(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),L(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block",
    +"important"),y.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a,b=this.options,c=b.chart,d,e;a=this.renderTo;var f="highcharts-"+zb++;if(!a)this.renderTo=a=c.renderTo;if(xa(a))this.renderTo=a=y.getElementById(a);a||X(13,!0);d=C(K(a,"data-highcharts-chart"));!isNaN(d)&&S[d]&&S[d].hasRendered&&S[d].destroy();K(a,"data-highcharts-chart",this.index);a.innerHTML="";!c.skipClone&&!a.offsetWidth&&this.cloneRenderTo();this.getChartSize();d=this.chartWidth;e=this.chartHeight;this.container=
    +a=Z(La,{className:"highcharts-container"+(c.className?" "+c.className:""),id:f},u({position:"relative",overflow:"hidden",width:d+"px",height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},c.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=new (B[c.renderer]||cb)(a,d,e,c.style,c.forExport,b.exporting&&b.exporting.allowHTML);ha&&this.renderer.create(this,a,d,e);this.renderer.chartIndex=this.index},getMargins:function(a){var b=
    +this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();if(d&&!q(c[0]))this.plotTop=t(this.plotTop,d+this.options.title.margin+b[0]);this.legend.adjustMargins(c,b);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&o(a.axes,function(a){a.visible&&a.getOffset()});o(nb,function(d,e){q(c[e])||(a[d]+=
    +b[e])});a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=b.renderTo,e=c.width||ja(d,"width"),f=c.height||ja(d,"height"),c=a?a.target:E;if(!b.hasUserSize&&!b.isPrinting&&e&&f&&(c===E||c===y)){if(e!==b.containerWidth||f!==b.containerHeight)clearTimeout(b.reflowTimeout),b.reflowTimeout=Pa(function(){if(b.container)b.setSize(e,f,!1),b.hasUserSize=null},a?100:0);b.containerWidth=e;b.containerHeight=f}},initReflow:function(){var a=this,b=function(b){a.reflow(b)};M(E,"resize",b);M(a,"destroy",
    +function(){V(E,"resize",b)})},setSize:function(a,b,c){var d=this,e,f,g=d.renderer;d.isResizing+=1;Ua(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;if(q(a))d.chartWidth=e=t(0,A(a)),d.hasUserSize=!!e;if(q(b))d.chartHeight=f=t(0,A(b));a=g.globalAnimation;(a?Wa:L)(d.container,{width:e+"px",height:f+"px"},a);d.setChartSize(!0);g.setSize(e,f,c);d.maxTicks=null;o(d.axes,function(a){a.isDirty=!0;a.setScale()});o(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();
    +d.getMargins();d.redraw(c);d.oldChartHeight=null;H(d,"resize");a=g.globalAnimation;Pa(function(){d&&H(d,"endResize",null,function(){d.isResizing-=1})},a===!1?0:a&&a.duration||500)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,i,k,j,l;this.plotLeft=i=A(this.plotLeft);this.plotTop=k=A(this.plotTop);this.plotWidth=j=t(0,A(d-i-this.marginRight));this.plotHeight=l=t(0,A(e-k-this.marginBottom));this.plotSizeX=
    +b?l:j;this.plotSizeY=b?j:l;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=c.plotBox={x:i,y:k,width:j,height:l};d=2*T(this.plotBorderWidth/2);b=ua(t(d,h[3])/2);c=ua(t(d,h[0])/2);this.clipBox={x:b,y:c,width:T(this.plotSizeX-t(d,h[1])/2-b),height:t(0,T(this.plotSizeY-t(d,h[2])/2-c))};a||o(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this;o(nb,function(b,c){a[b]=p(a.margin[c],
    +a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,i=a.borderWidth||0,k=a.backgroundColor,j=a.plotBackgroundColor,l=a.plotBackgroundImage,m=a.plotBorderWidth||0,n,r=this.plotLeft,p=this.plotTop,o=this.plotWidth,v=this.plotHeight,x=this.plotBox,w=this.clipRect,t=this.clipBox;n=i+(a.shadow?8:0);if(i||k)if(e)e.animate(e.crisp({width:c-
    +n,height:d-n}));else{e={fill:k||"none"};if(i)e.stroke=a.borderColor,e["stroke-width"]=i;this.chartBackground=b.rect(n/2,n/2,c-n,d-n,a.borderRadius,i).attr(e).addClass("highcharts-background").add().shadow(a.shadow)}if(j)f?f.animate(x):this.plotBackground=b.rect(r,p,o,v,0).attr({fill:j}).add().shadow(a.plotShadow);if(l)h?h.animate(x):this.plotBGImage=b.image(l,r,p,o,v).add();w?w.animate({width:t.width,height:t.height}):this.clipRect=b.clipRect(t);if(m)g?(g.strokeWidth=-m,g.animate(g.crisp({x:r,y:p,
    +width:o,height:v}))):this.plotBorder=b.rect(r,p,o,v,0,-m).attr({stroke:a.plotBorderColor,"stroke-width":m,fill:"none",zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;o(["inverted","angular","polar"],function(g){c=I[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=I[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;o(b,function(a){a.linkedSeries.length=
    +0});o(b,function(b){var d=b.options.linkedTo;if(xa(d)&&(d=d===":previous"?a.series[b.index-1]:a.get(d)))d.linkedSeries.push(b),b.linkedParent=d,b.visible=p(b.options.visible,d.options.visible,b.visible)})},renderSeries:function(){o(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&o(b.items,function(c){var d=u(b.style,c.style),e=C(d.left)+a.plotLeft,f=C(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})},
    +render:function(){var a=this.axes,b=this.renderer,c=this.options,d,e,f,g;this.setTitle();this.legend=new ob(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;e=this.plotHeight-=21;o(a,function(a){a.setScale()});this.getAxisMargins();f=d/this.plotWidth>1.1;g=e/this.plotHeight>1.05;if(f||g)this.maxTicks=null,o(a,function(a){(a.horiz&&f||!a.horiz&&g)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&o(a,function(a){a.visible&&
    +a.render()});if(!this.seriesGroup)this.seriesGroup=b.g("series-group").attr({zIndex:3}).add();this.renderSeries();this.renderLabels();this.showCredits(c.credits);this.hasRendered=!0},showCredits:function(a){if(a.enabled&&!this.credits)this.credits=this.renderer.text(a.text,0,0).on("click",function(){if(a.href)E.location.href=a.href}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position)},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;H(a,
    +"destroy");S[a.index]=z;eb--;a.renderTo.removeAttribute("data-highcharts-chart");V(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();o("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});if(d)d.innerHTML="",V(d),f&&Ta(d);for(e in a)delete a[e]},isReadyToRender:function(){var a=this;
    +return!ca&&E==E.top&&y.readyState!=="complete"||ha&&!E.canvg?(ha?Ob.push(function(){a.firstRender()},a.options.global.canvasToolsURL):y.attachEvent("onreadystatechange",function(){y.detachEvent("onreadystatechange",a.firstRender);y.readyState==="complete"&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options;if(a.isReadyToRender()){a.getContainer();H(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();o(b.series||[],function(b){a.initSeries(b)});a.linkSeries();
    +H(a,"beforeRender");if(B.Pointer)a.pointer=new Xa(a,b);a.render();a.renderer.draw();if(!a.renderer.imgCount)a.onload();a.cloneRenderTo(!0)}},onload:function(){var a=this;o([this.callback].concat(this.callbacks),function(b){b&&a.index!==void 0&&b.apply(a,[a])});a.renderer.imgCount||H(a,"load")},splashArray:function(a,b){var c=b[a],c=Y(c)?c:[c,c,c,c];return[p(b[a+"Top"],c[0]),p(b[a+"Right"],c[1]),p(b[a+"Bottom"],c[2]),p(b[a+"Left"],c[3])]}};var Cb=B.CenteredSeriesMixin={getCenter:function(){var a=this.options,
    +b=this.chart,c=2*(a.slicedOffset||0),d=b.plotWidth-2*c,b=b.plotHeight-2*c,e=a.center,e=[p(e[0],"50%"),p(e[1],"50%"),a.size||"100%",a.innerSize||0],f=F(d,b),g,h;for(g=0;g<4;++g)h=e[g],a=g<2||g===2&&/%$/.test(h),e[g]=(/%$/.test(h)?[d,b,f,e[2]][g]*parseFloat(h)/100:parseFloat(h))+(a?c:0);e[3]>e[2]&&(e[3]=e[2]);return e}},Ha=function(){};Ha.prototype={init:function(a,b,c){this.series=a;this.color=a.color;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,
    +this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length))a.colorCounter=0;a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey,a=Ha.prototype.optionsToObject.call(this,a);u(this,a);this.options=this.options?u(this.options,a):a;if(d)this.y=this[d];this.isNull=this.y===null;if(typeof this.x!=="number"&&c)this.x=b===void 0?c.autoIncrement():b;return this},optionsToObject:function(a){var b={},c=this.series,d=c.options.keys,
    +e=d||c.pointArrayMap||["y"],f=e.length,g=0,h=0;if(typeof a==="number"||a===null)b[e[0]]=a;else if(Ia(a)){if(!d&&a.length>f){c=typeof a[0];if(c==="string")b.name=a[0];else if(c==="number")b.x=a[0];g++}for(;h<f;){if(!d||a[g]!==void 0)b[e[h]]=a[g];g++;h++}}else if(typeof a==="object"){b=a;if(a.dataLabels)c._hasPointLabels=!0;if(a.marker)c._hasPointMarkers=!0}return b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;if(b&&(this.setState(),oa(b,this),!b.length))a.hoverPoints=
    +null;if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)V(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,
    +total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=p(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";o(b.pointArrayMap||["y"],function(b){b="{point."+b;if(e||f)a=a.replace(b+"}",e+b+"}"+f);a=a.replace(b+"}",b+":,."+d+"f}")});return Ka(a,{point:this,series:this.series})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents();a==="click"&&
    +e.allowPointSelect&&(c=function(a){d.select&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});H(this,a,b,c)},visible:!0};var Q=B.Series=function(){};Q.prototype={isCartesian:!0,type:"line",pointClass:Ha,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(a,b){var c=this,d,e,f=a.series,g=function(a,b){return p(a.options.index,a._i)-
    +p(b.options.index,b._i)};c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();u(c,{name:b.name,state:"",pointAttr:{},visible:b.visible!==!1,selected:b.selected===!0});if(ha)b.animation=!1;e=b.events;for(d in e)M(c,d,e[d]);if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();o(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);if(c.isCartesian)a.hasCartesianSeries=!0;f.push(c);c._i=f.length-
    +1;ib(f,g);this.yAxis&&ib(this.yAxis.series,g);o(f,function(a,b){a.index=b;a.name=a.name||"Series "+(b+1)})},bindAxes:function(){var a=this,b=a.options,c=a.chart,d;o(a.axisTypes||[],function(e){o(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]!==z&&b[e]===d.id||b[e]===z&&d.index===0)c.series.push(a),a[e]=c,c.isDirty=!0});!a[e]&&a.optionalAxis!==e&&X(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments;o(c.parallelArrays,typeof b==="number"?function(d){var f=d==="y"&&c.toYData?
    +c.toYData(a):a[d];c[d+"Data"][b]=f}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))})},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,b=p(b,a.pointStart,0);this.pointInterval=c=p(this.pointInterval,a.pointInterval,1);if(d==="month"||d==="year")a=new qa(b),a=d==="month"?+a[xb](a[ab]()+c):+a[yb](a[bb]()+c),c=a-b;this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,c=b.options.plotOptions,b=b.userOptions||{},d=
    +b.plotOptions||{},e=c[this.type];this.userOptions=a;c=D(e,c.series,a);this.tooltipOptions=D(N.tooltip,N.plotOptions[this.type].tooltip,b.tooltip,d.series&&d.series.tooltip,d[this.type]&&d[this.type].tooltip,a.tooltip);e.marker===null&&delete c.marker;this.zoneAxis=c.zoneAxis;a=this.zones=(c.zones||[]).slice();if((c.negativeColor||c.negativeFillColor)&&!c.zones)a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,color:c.negativeColor,fillColor:c.negativeFillColor});a.length&&q(a[a.length-1].value)&&
    +a.push({color:this.color,fillColor:this.fillColor});return c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(q(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||aa[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols);if(/^url/.test(this.symbol))a.radius=
    +0},drawLegendSymbol:J.drawLineMarker,setData:function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,i=e.options,k=e.chart,j=null,l=e.xAxis,m=l&&!!l.categories,n=i.turboThreshold,r=this.xData,s=this.yData,t=(h=e.pointArrayMap)&&h.length,a=a||[];h=a.length;b=p(b,!0);if(d!==!1&&h&&g===h&&!e.cropped&&!e.hasGroupedData&&e.visible)o(a,function(a,b){f[b].update&&a!==i.data[b]&&f[b].update(a,!1,null,!1)});else{e.xIncrement=null;e.colorCounter=0;o(this.parallelArrays,function(a){e[a+"Data"].length=0});
    +if(n&&h>n){for(c=0;j===null&&c<h;)j=a[c],c++;if(ma(j)){m=p(i.pointStart,0);j=p(i.pointInterval,1);for(c=0;c<h;c++)r[c]=m,s[c]=a[c],m+=j;e.xIncrement=m}else if(Ia(j))if(t)for(c=0;c<h;c++)j=a[c],r[c]=j[0],s[c]=j.slice(1,t+1);else for(c=0;c<h;c++)j=a[c],r[c]=j[0],s[c]=j[1];else X(12)}else for(c=0;c<h;c++)if(a[c]!==z&&(j={series:e},e.pointClass.prototype.applyOptions.apply(j,[a[c]]),e.updateParallelArrays(j,c),m&&q(j.name)))l.names[j.x]=j.name;xa(s[0])&&X(14,!0);e.data=[];e.options.data=e.userOptions.data=
    +a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();if(l)l.minRange=l.userMinRange;e.isDirty=e.isDirtyData=k.isDirtyBox=!0;c=!1}i.legendType==="point"&&(this.processData(),this.generatePoints());b&&k.redraw(c)},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e;e=0;var f,g,h=this.xAxis,i,k=this.options;i=k.cropThreshold;var j=this.getExtremesFromAll||k.getExtremesFromAll,l=this.isCartesian,k=h&&h.val2lin,m=h&&h.isLog,n,p;if(l&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!a)return!1;
    +if(h)a=h.getExtremes(),n=a.min,p=a.max;if(l&&this.sorted&&!j&&(!i||d>i||this.forceCrop))if(b[d-1]<n||b[0]>p)b=[],c=[];else if(b[0]<n||b[d-1]>p)e=this.cropData(this.xData,this.yData,n,p),b=e.xData,c=e.yData,e=e.start,f=!0;for(i=b.length||1;--i;)d=m?k(b[i])-k(b[i-1]):b[i]-b[i-1],d>0&&(g===z||d<g)?g=d:d<0&&this.requireSorting&&X(15);this.cropped=f;this.cropStart=e;this.processedXData=b;this.processedYData=c;this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,f=0,g=e,h=p(this.cropShoulder,
    +1),i;for(i=0;i<e;i++)if(a[i]>=c){f=t(0,i-h);break}for(c=i;c<e;c++)if(a[c]>d){g=c+h;break}return{xData:a.slice(f,g),yData:b.slice(f,g),start:f,end:g}},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,i,k=this.hasGroupedData,j,l=[],m;if(!b&&!k)b=[],b.length=a.length,b=this.data=b;for(m=0;m<g;m++)i=h+m,k?l[m]=(new f).init(this,[d[m]].concat(ta(e[m]))):(b[i]?j=b[i]:a[i]!==z&&(b[i]=j=(new f).init(this,
    +a[i],d[m])),l[m]=j),l[m].index=i;if(b&&(g!==(c=b.length)||k))for(m=0;m<c;m++)if(m===h&&!k&&(m+=g),b[m])b[m].destroyElements(),b[m].plotX=z;this.data=b;this.points=l},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,e=[],f=0;d=this.xAxis.getExtremes();var g=d.min,h=d.max,i,k,j,l,a=a||this.stackedYData||this.processedYData;d=a.length;for(l=0;l<d;l++)if(k=c[l],j=a[l],i=j!==null&&j!==z&&(!b.isLog||j.length||j>0),k=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||
    +(c[l+1]||k)>=g&&(c[l-1]||k)<=h,i&&k)if(i=j.length)for(;i--;)j[i]!==null&&(e[f++]=j[i]);else e[f++]=j;this.dataMin=Ra(e);this.dataMax=Ea(e)},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,g=f.length,h=!!this.modifyValue,i=a.pointPlacement,k=i==="between"||ma(i),j=a.threshold,l=a.startFromThreshold?j:0,m,n,r,o,R=Number.MAX_VALUE,a=0;a<g;a++){var v=f[a],x=v.x,w=v.y;n=v.low;var u=
    +b&&e.stacks[(this.negStacks&&w<(l?0:j)?"-":"")+this.stackKey];if(e.isLog&&w!==null&&w<=0)v.y=w=null,X(10);v.plotX=m=F(t(-1E5,c.translate(x,0,0,0,1,i,this.type==="flags")),1E5);if(b&&this.visible&&!v.isNull&&u&&u[x])o=this.getStackIndicator(o,x,this.index),u=u[x],w=u.points[o.key],n=w[0],w=w[1],n===l&&(n=p(j,e.min)),e.isLog&&n<=0&&(n=null),v.total=v.stackTotal=u.total,v.percentage=u.total&&v.y/u.total*100,v.stackY=w,u.setOffset(this.pointXOffset||0,this.barW||0);v.yBottom=q(n)?e.translate(n,0,1,0,
    +1):null;h&&(w=this.modifyValue(w,v));v.plotY=n=typeof w==="number"&&w!==Infinity?F(t(-1E5,e.translate(w,0,1,0,1)),1E5):z;v.isInside=n!==z&&n>=0&&n<=e.len&&m>=0&&m<=c.len;v.clientX=k?c.translate(x,0,0,0,1):m;v.negative=v.y<(j||0);v.category=d&&d[v.x]!==z?d[v.x]:v.x;a&&(R=F(R,P(m-r)));r=m}this.closestPointRangePx=R},getValidPoints:function(a){return Na(a||this.points,function(a){return!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,e=b.inverted,f=this.clipBox,g=f||b.clipBox,
    +h=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,g.height,c.xAxis,c.yAxis].join(","),i=b[h],k=b[h+"m"];if(!i){if(a)g.width=0,b[h+"m"]=k=d.clipRect(-99,e?-b.plotLeft:-b.plotTop,99,e?b.chartWidth:b.chartHeight);b[h]=i=d.clipRect(g)}a&&(i.count+=1);if(c.clip!==!1)this.group.clip(a||f?i:b.clipRect),this.markerGroup.clip(k),this.sharedClipKey=h;a||(i.count-=1,i.count<=0&&h&&b[h]&&(f||(b[h]=b[h].destroy()),b[h+"m"]&&(b[h+"m"]=b[h+"m"].destroy())))},animate:function(a){var b=this.chart,c=this.options.animation,
    +d;if(c&&!Y(c))c=aa[this.type].animation;a?this.setClip(c):(d=this.sharedClipKey,(a=b[d])&&a.animate({width:b.plotSizeX},c),b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99},c),this.animate=null)},afterAnimate:function(){this.setClip();H(this,"afterAnimate")},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,i,k,j,l=this.options.marker,m=this.pointAttr[""],n,r,o,t=this.markerGroup,v=p(l.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*l.radius);if(l.enabled!==!1||this._hasPointMarkers)for(f=
    +b.length;f--;)if(g=b[f],d=T(g.plotX),e=g.plotY,j=g.graphic,n=g.marker||{},r=!!g.marker,a=v&&n.enabled===z||n.enabled,o=g.isInside,a&&e!==z&&!isNaN(e)&&g.y!==null)if(a=g.pointAttr[g.selected?"select":""]||m,h=a.r,i=p(n.symbol,this.symbol),k=i.indexOf("url")===0,j)j[o?"show":"hide"](!0).attr(a).animate(u({x:d-h,y:e-h},j.symbolName?{width:2*h,height:2*h}:{}));else{if(o&&(h>0||k))g.graphic=c.renderer.symbol(i,d-h,e-h,2*h,2*h,r?n:l).attr(a).add(t)}else if(j)g.graphic=j.destroy()},convertAttribs:function(a,
    +b,c,d){var e=this.pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=p(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=a.options,c=aa[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color,h=a.options.negativeColor;f={stroke:g,fill:g};var i=a.points||[],k,j,l=[],m=a.pointAttrToOptions;k=a.hasPointSpecificOptions;var n=c.lineColor,r=c.fillColor;j=b.turboThreshold;var s=a.zones,t=a.zoneAxis||"y",v;b.marker?(e.radius=e.radius||c.radius+e.radiusPlus,
    +e.lineWidth=e.lineWidth||c.lineWidth+e.lineWidthPlus):(e.color=e.color||ia(e.color||g).brighten(e.brightness).get(),e.negativeColor=e.negativeColor||ia(e.negativeColor||h).brighten(e.brightness).get());l[""]=a.convertAttribs(c,f);o(["hover","select"],function(b){l[b]=a.convertAttribs(d[b],l[""])});a.pointAttr=l;g=i.length;if(!j||g<j||k)for(;g--;){j=i[g];if((c=j.options&&j.options.marker||j.options)&&c.enabled===!1)c.radius=0;if(s.length){k=0;for(f=s[k];j[t]>=f.value;)f=s[++k];j.color=j.fillColor=
    +p(f.color,a.color)}k=b.colorByPoint||j.color;if(j.options)for(v in m)q(c[m[v]])&&(k=!0);if(k){c=c||{};k=[];d=c.states||{};f=d.hover=d.hover||{};if(!b.marker||j.negative&&!f.fillColor&&!e.fillColor)f[a.pointAttrToOptions.fill]=f.color||!j.options.color&&e[j.negative&&h?"negativeColor":"color"]||ia(j.color).brighten(f.brightness||e.brightness).get();f={color:j.color};if(!r)f.fillColor=j.color;if(!n)f.lineColor=j.color;c.hasOwnProperty("color")&&!c.color&&delete c.color;k[""]=a.convertAttribs(u(f,c),
    +l[""]);k.hover=a.convertAttribs(d.hover,l.hover,k[""]);k.select=a.convertAttribs(d.select,l.select,k[""])}else k=l;j.pointAttr=k}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(za),d,e=a.data||[],f,g,h;H(a,"destroy");V(a);o(a.axisTypes||[],function(b){if(h=a[b])oa(h.series,a),h.isDirty=h.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(d=e.length;d--;)(f=e[d])&&f.destroy&&f.destroy();a.points=null;clearTimeout(a.animationTimeout);for(g in a)a[g]instanceof O&&!a[g].survive&&
    +(d=c&&g==="group"?"hide":"destroy",a[g][d]());if(b.hoverSeries===a)b.hoverSeries=null;oa(b.series,a);for(g in a)delete a[g]},getGraphPath:function(a,b,c){var d=this,e=d.options,f=e.step,g,h=[],i,a=a||d.points;(g=a.reversed)&&a.reverse();(f={right:1,center:2}[f]||f&&3)&&g&&(f=4-f);e.connectNulls&&!b&&!c&&(a=this.getValidPoints(a));o(a,function(g,j){var l=g.plotX,m=g.plotY,n=a[j-1];if((g.leftCliff||n&&n.rightCliff)&&!c)i=!0;g.isNull&&!q(b)&&j>0?i=!e.connectNulls:g.isNull&&!b?i=!0:(j===0||i?n=["M",g.plotX,
    +g.plotY]:d.getPointSpline?n=d.getPointSpline(a,g,j):f?(n=f===1?["L",n.plotX,m]:f===2?["L",(n.plotX+l)/2,n.plotY,"L",(n.plotX+l)/2,m]:["L",l,n.plotY],n.push("L",l,m)):n=["L",l,m],h.push.apply(h,n),i=!1)});return d.graphPath=h},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||this.color,b.dashStyle]],d=b.lineWidth,e=b.linecap!=="square",f=(this.gappedPath||this.getGraphPath).call(this),g=this.fillGraph&&this.color||"none";o(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||
    +a.color,d.dashStyle||b.dashStyle])});o(c,function(c,i){var k=c[0],j=a[k];if(j)j.animate({d:f});else if((d||g)&&f.length)j={stroke:c[1],"stroke-width":d,fill:g,zIndex:1},c[2]?j.dashstyle=c[2]:e&&(j["stroke-linecap"]=j["stroke-linejoin"]="round"),a[k]=a.chart.renderer.path(f).attr(j).add(a.group).shadow(i<2&&b.shadow)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,f,g=this.clips||[],h,i=this.graph,k=this.area,j=t(b.chartWidth,b.chartHeight),l=this[(this.zoneAxis||"y")+
    +"Axis"],m,n=l.reversed,r=b.inverted,s=l.horiz,q,v,x,w=!1;if(d.length&&(i||k)&&l.min!==z)i&&i.hide(),k&&k.hide(),m=l.getExtremes(),o(d,function(d,o){e=n?s?b.plotWidth:0:s?0:l.toPixels(m.min);e=F(t(p(f,e),0),j);f=F(t(A(l.toPixels(p(d.value,m.max),!0)),0),j);w&&(e=f=l.toPixels(m.max));q=Math.abs(e-f);v=F(e,f);x=t(e,f);if(l.isXAxis){if(h={x:r?x:v,y:0,width:q,height:j},!s)h.x=b.plotHeight-h.x}else if(h={x:0,y:r?x:v,width:j,height:q},s)h.y=b.plotWidth-h.y;b.inverted&&c.isVML&&(h=l.isXAxis?{x:0,y:n?v:x,
    +height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});g[o]?g[o].animate(h):(g[o]=c.clipRect(h),i&&a["zoneGraph"+o].clip(g[o]),k&&a["zoneArea"+o].clip(g[o]));w=d.value>m.max}),this.clips=g},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};o(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;if(b.xAxis)M(c,"resize",a),M(b,"destroy",function(){V(c,"resize",a)}),a(),b.invertGroups=
    +a},plotGroup:function(a,b,c,d,e){var f=this[a],g=!f;g&&(this[a]=f=this.chart.renderer.g(b).attr({zIndex:d||0.1}).add(e),f.addClass("highcharts-series-"+this.index));f.attr({visibility:c})[g?"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;if(a.inverted)b=c,c=this.xAxis;return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,c,d=a.options,e=(c=d.animation)&&!!a.animate&&
    +b.renderer.isSVG&&p(c.duration,500)||0,f=a.visible?"inherit":"hidden",g=d.zIndex,h=a.hasRendered,i=b.seriesGroup;c=a.plotGroup("group","series",f,g,i);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,i);e&&a.animate(!0);a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());o(a.points,function(a){a.redraw&&a.redraw()});a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&a.options.enableMouseTracking!==!1&&a.drawTracker();b.inverted&&
    +a.invertGroups();d.clip!==!1&&!a.sharedClipKey&&!h&&c.clip(b.clipRect);e&&a.animate();if(!h)a.animationTimeout=Pa(function(){a.afterAnimate()},e);a.isDirty=a.isDirtyData=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.isDirty,d=this.group,e=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:p(e&&e.left,a.plotLeft),translateY:p(f&&f.top,a.plotTop)}));this.translate();this.render();b&&H(this,"updatedData");
    +(c||b)&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(c,e,f){var g,h;if(h=c&&c.length)return g=b.kdAxisArray[e%f],c.sort(function(a,b){return a[g]-b[g]}),h=Math.floor(h/2),{point:c[h],left:a(c.slice(0,h),e+1,f),right:a(c.slice(h+1),e+1,f)}}var b=this,
    +c=b.kdDimensions;delete b.kdTree;Pa(function(){b.kdTree=a(b.getValidPoints(),c,c)},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,k,j){var l=b.point,m=d.kdAxisArray[k%j],n,p,o=l;p=q(a[e])&&q(l[e])?Math.pow(a[e]-l[e],2):null;n=q(a[f])&&q(l[f])?Math.pow(a[f]-l[f],2):null;n=(p||0)+(n||0);l.dist=q(n)?Math.sqrt(n):Number.MAX_VALUE;l.distX=q(p)?Math.sqrt(p):Number.MAX_VALUE;m=a[m]-l[m];n=m<0?"left":"right";p=m<0?"right":"left";b[n]&&(n=c(a,b[n],k+1,j),o=n[g]<o[g]?n:l);b[p]&&Math.sqrt(m*
    +m)<o[g]&&(a=c(a,b[p],k+1,j),o=a[g]<o[g]?a:o);return o}var d=this,e=this.kdAxisArray[0],f=this.kdAxisArray[1],g=b?"distX":"dist";this.kdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,this.kdDimensions,this.kdDimensions)}};Kb.prototype={destroy:function(){Sa(this,this.axis)},render:function(a){var b=this.options,c=b.format,c=c?Ka(c,this):b.formatter.call(this);this.label?this.label.attr({text:c,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(c,null,null,b.useHTML).css(b.style).attr({align:this.textAlign,
    +rotation:b.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=c.reversed,f=this.isNegative&&!f||!this.isNegative&&f,g=c.translate(c.usePercentage?100:this.total,0,0,0,1),c=c.translate(0),c=P(g-c),h=d.xAxis[0].translate(this.x)+a,i=d.plotHeight,f={x:e?f?g:g-c:h,y:e?i-h-b:f?i-g-c:i-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e[this.options.crop===!1||d.isInsidePlot(f.x,f.y)?"show":"hide"](!0)}};hb.prototype.getStacks=
    +function(){var a=this;o(a.yAxis,function(a){if(a.stacks&&a.hasVisibleSeries)a.oldStacks=a.stacks});o(a.series,function(b){if(b.options.stacking&&(b.visible===!0||a.options.chart.ignoreHiddenSeries===!1))b.stackKey=b.type+p(b.options.stack,"")})};ka.prototype.buildStacks=function(){var a=this.series,b,c=p(this.options.reversedStacks,!0),d=a.length,e;if(!this.isXAxis){this.usePercentage=!1;for(e=d;e--;)a[c?e:d-e-1].setStackedPoints();for(e=d;e--;)b=a[c?e:d-e-1],b.setStackCliffs&&b.setStackCliffs();
    +if(this.usePercentage)for(e=0;e<d;e++)a[e].setPercentStacks()}};ka.prototype.renderStackTotals=function(){var a=this.chart,b=a.renderer,c=this.stacks,d,e,f=this.stackTotalGroup;if(!f)this.stackTotalGroup=f=b.g("stack-labels").attr({visibility:"visible",zIndex:6}).add();f.translate(a.plotLeft,a.plotTop);for(d in c)for(e in a=c[d],a)a[e].render(f)};ka.prototype.resetStacks=function(){var a=this.stacks,b,c;if(!this.isXAxis)for(b in a)for(c in a[b])a[b][c].touched<this.stacksTouched?(a[b][c].destroy(),
    +delete a[b][c]):(a[b][c].total=null,a[b][c].cum=0)};ka.prototype.cleanStacks=function(){var a,b,c;if(!this.isXAxis){if(this.oldStacks)a=this.stacks=this.oldStacks;for(b in a)for(c in a[b])a[b][c].cum=a[b][c].total}};Q.prototype.setStackedPoints=function(){if(this.options.stacking&&!(this.visible!==!0&&this.chart.options.chart.ignoreHiddenSeries!==!1)){var a=this.processedXData,b=this.processedYData,c=[],d=b.length,e=this.options,f=e.threshold,g=e.startFromThreshold?f:0,h=e.stack,e=e.stacking,i=this.stackKey,
    +k="-"+i,j=this.negStacks,l=this.yAxis,m=l.stacks,n=l.oldStacks,o,s,q,v,x,w,u;l.stacksTouched+=1;for(x=0;x<d;x++){w=a[x];u=b[x];o=this.getStackIndicator(o,w,this.index);v=o.key;q=(s=j&&u<(g?0:f))?k:i;m[q]||(m[q]={});if(!m[q][w])n[q]&&n[q][w]?(m[q][w]=n[q][w],m[q][w].total=null):m[q][w]=new Kb(l,l.options.stackLabels,s,w,h);q=m[q][w];if(u!==null)q.points[v]=q.points[this.index]=[p(q.cum,g)],q.touched=l.stacksTouched,o.index>0&&this.singleStacks===!1&&(q.points[v][0]=q.points[this.index+","+w+",0"][0]);
    +e==="percent"?(s=s?i:k,j&&m[s]&&m[s][w]?(s=m[s][w],q.total=s.total=t(s.total,q.total)+P(u)||0):q.total=fa(q.total+(P(u)||0))):q.total=fa(q.total+(u||0));q.cum=p(q.cum,g)+(u||0);u!==null&&q.points[v].push(q.cum);c[x]=q.cum}if(e==="percent")l.usePercentage=!0;this.stackedYData=c;l.oldStacks={}}};Q.prototype.setPercentStacks=function(){var a=this,b=a.stackKey,c=a.yAxis.stacks,d=a.processedXData,e;o([b,"-"+b],function(b){var f;for(var g=d.length,h,i;g--;)if(h=d[g],e=a.getStackIndicator(e,h,a.index),f=
    +(i=c[b]&&c[b][h])&&i.points[e.key],h=f)i=i.total?100/i.total:0,h[0]=fa(h[0]*i),h[1]=fa(h[1]*i),a.stackedYData[g]=h[1]})};Q.prototype.getStackIndicator=function(a,b,c){!q(a)||a.x!==b?a={x:b,index:0}:a.index++;a.key=[c,b,a.index].join(",");return a};u(hb.prototype,{addSeries:function(a,b,c){var d,e=this;a&&(b=p(b,!0),H(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;e.linkSeries();b&&e.redraw(c)}));return d},addAxis:function(a,b,c,d){var e=b?"xAxis":"yAxis",f=this.options;
    +new ka(this,D(a,{index:this[e].length,isX:b}));f[e]=ta(f[e]||{});f[e].push(a);p(c,!0)&&this.redraw(d)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&L(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};if(!d)b.loadingDiv=d=Z(La,{className:"highcharts-loading"},u(e.style,{zIndex:10,display:"none"}),b.container),b.loadingSpan=Z("span",null,e.labelStyle,d),M(b,"redraw",f);b.loadingSpan.innerHTML=a||c.lang.loading;
    +if(!b.loadingShown)L(d,{opacity:0,display:""}),Wa(d,{opacity:e.style.opacity},{duration:e.showDuration||0}),b.loadingShown=!0;f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&Wa(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){L(b,{display:"none"})}});this.loadingShown=!1}});u(Ha.prototype,{update:function(a,b,c,d){function e(){f.applyOptions(a);if(f.y===null&&h)f.graphic=h.destroy();if(Y(a)&&!Ia(a))f.redraw=function(){if(h&&h.element&&a&&a.marker&&a.marker.symbol)f.graphic=
    +h.destroy();if(a&&a.dataLabels&&f.dataLabel)f.dataLabel=f.dataLabel.destroy();f.redraw=null};i=f.index;g.updateParallelArrays(f,i);if(l&&f.name)l[f.x]=f.name;j.data[i]=Y(j.data[i])?f.options:a;g.isDirty=g.isDirtyData=!0;if(!g.fixedBox&&g.hasCartesianSeries)k.isDirtyBox=!0;if(j.legendType==="point")k.isDirtyLegend=!0;b&&k.redraw(c)}var f=this,g=f.series,h=f.graphic,i,k=g.chart,j=g.options,l=g.xAxis&&g.xAxis.names,b=p(b,!0);d===!1?e():f.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(sa(this,
    +this.series.data),a,b)}});u(Q.prototype,{addPoint:function(a,b,c,d){var e=this,f=e.options,g=e.data,h=e.graph,i=e.area,k=e.chart,j=e.xAxis&&e.xAxis.names,l=h&&h.shift||0,m=["graph","area"],h=f.data,n,r=e.xData;Ua(d,k);if(c){for(d=e.zones.length;d--;)m.push("zoneGraph"+d,"zoneArea"+d);o(m,function(a){if(e[a])e[a].shift=l+(f.step?2:1)})}if(i)i.isArea=!0;b=p(b,!0);i={series:e};e.pointClass.prototype.applyOptions.apply(i,[a]);m=i.x;d=r.length;if(e.requireSorting&&m<r[d-1])for(n=!0;d&&r[d-1]>m;)d--;e.updateParallelArrays(i,
    +"splice",d,0,0);e.updateParallelArrays(i,d);if(j&&i.name)j[m]=i.name;h.splice(d,0,a);n&&(e.data.splice(d,0,null),e.processData());f.legendType==="point"&&e.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),e.updateParallelArrays(i,"shift"),h.shift()));e.isDirty=!0;e.isDirtyData=!0;b&&(e.getAttribs(),k.redraw())},removePoint:function(a,b,c){var d=this,e=d.data,f=e[a],g=d.points,h=d.chart,i=function(){g&&g.length===e.length&&g.splice(a,1);e.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(f||
    +{series:d},"splice",a,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&h.redraw()};Ua(c,h);b=p(b,!0);f?f.firePointEvent("remove",null,i):i()},remove:function(a,b){var c=this,d=c.chart;H(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=!0;d.linkSeries();p(a,!0)&&d.redraw(b)})},update:function(a,b){var c=this,d=this.chart,e=this.userOptions,f=this.type,g=I[f].prototype,h=["group","markerGroup","dataLabelsGroup"],i;if(a.type&&a.type!==f||a.zIndex!==void 0)h.length=0;o(h,function(a){h[a]=
    +c[a];delete c[a]});a=D(e,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},a);this.remove(!1);for(i in g)this[i]=z;u(this,I[a.type||f].prototype);o(h,function(a){c[a]=h[a]});this.init(d,a);d.linkSeries();p(b,!0)&&d.redraw(!1)}});u(ka.prototype,{update:function(a,b){var c=this.chart,a=c.options[this.coll][this.options.index]=D(this.userOptions,a);this.destroy(!0);this._addedPlotLB=this.chart._labelPanes=z;this.init(c,u(a,{events:z}));c.isDirtyBox=!0;p(b,!0)&&c.redraw()},
    +remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);oa(b.axes,this);oa(b[c],this);b.options[c].splice(this.options.index,1);o(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;p(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}});var wa=pa(Q);I.line=wa;aa.area=D(da,{softThreshold:!1,threshold:0});var la=pa(Q,{type:"area",singleStacks:!1,getStackPoints:function(){var a=
    +[],b=[],c=this.xAxis,d=this.yAxis,e=d.stacks[this.stackKey],f={},g=this.points,h=this.index,i=d.series,k=i.length,j,l=p(d.options.reversedStacks,!0)?1:-1,m,n;if(this.options.stacking){for(m=0;m<g.length;m++)f[g[m].x]=g[m];for(n in e)e[n].total!==null&&b.push(+n);b.sort(function(a,b){return a-b});j=Ba(i,function(){return this.visible});o(b,function(g,i){var n=0,p,q;if(f[g]&&!f[g].isNull)a.push(f[g]),o([-1,1],function(a){var c=a===1?"rightNull":"leftNull",d=0,n=e[b[i+a]];if(n)for(m=h;m>=0&&m<k;)p=n.points[m],
    +p||(m===h?f[g][c]=!0:j[m]&&(q=e[g].points[m])&&(d-=q[1]-q[0])),m+=l;f[g][a===1?"rightCliff":"leftCliff"]=d});else{for(m=h;m>=0&&m<k;){if(p=e[g].points[m]){n=p[1];break}m+=l}n=d.toPixels(n,!0);a.push({isNull:!0,plotX:c.toPixels(g,!0),plotY:n,yBottom:n})}})}return a},getGraphPath:function(a){var b=Q.prototype.getGraphPath,c=this.options,d=c.stacking,e=this.yAxis,f,g,h=[],i=[],k=this.index,j,l=e.stacks[this.stackKey],m=c.threshold,n=e.getThreshold(c.threshold),o,c=c.connectNulls||d==="percent",s=function(b,
    +c,f){var g=a[b],b=d&&l[g.x].points[k],p=g[f+"Null"]||0,f=g[f+"Cliff"]||0,o,r,g=!0;f||p?(o=(p?b[0]:b[1])+f,r=b[0]+f,g=!!p):!d&&a[c]&&a[c].isNull&&(o=r=m);o!==void 0&&(i.push({plotX:j,plotY:o===null?n:e.toPixels(o,!0),isNull:g}),h.push({plotX:j,plotY:r===null?n:e.toPixels(r,!0)}))},a=a||this.points;d&&(a=this.getStackPoints());for(f=0;f<a.length;f++)if(g=a[f].isNull,j=p(a[f].rectPlotX,a[f].plotX),o=p(a[f].yBottom,n),!g||c){c||s(f,f-1,"left");if(!g||d||!c)i.push(a[f]),h.push({x:f,plotX:j,plotY:o});c||
    +s(f,f+1,"right")}f=b.call(this,i,!0,!0);h.reversed=!0;g=b.call(this,h,!0,!0);g.length&&(g[0]="L");f=f.concat(g);b=b.call(this,i,!1,c);this.areaPath=f;return b},drawGraph:function(){this.areaPath=[];Q.prototype.drawGraph.apply(this);var a=this,b=this.areaPath,c=this.options,d=[["area",this.color,c.fillColor]];o(this.zones,function(b,f){d.push(["zoneArea"+f,b.color||a.color,b.fillColor||c.fillColor])});o(d,function(d){var f=d[0],g=a[f];g?g.animate({d:b}):(g={fill:d[2]||d[1],zIndex:0},d[2]||(g["fill-opacity"]=
    +p(c.fillOpacity,0.75)),a[f]=a.chart.renderer.path(b).attr(g).add(a.group))})},drawLegendSymbol:J.drawRectangle});I.area=la;aa.spline=D(da);wa=pa(Q,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],c=a[c+1],g,h,i,k;if(f&&!f.isNull&&c&&!c.isNull){a=f.plotY;i=c.plotX;var c=c.plotY,j=0;g=(1.5*d+f.plotX)/2.5;h=(1.5*e+a)/2.5;i=(1.5*d+i)/2.5;k=(1.5*e+c)/2.5;i!==g&&(j=(k-h)*(i-d)/(i-g)+e-k);h+=j;k+=j;h>a&&h>e?(h=t(a,e),k=2*e-h):h<a&&h<e&&(h=F(a,e),k=2*e-h);k>c&&k>e?(k=t(c,e),
    +h=2*e-k):k<c&&k<e&&(k=F(c,e),h=2*e-k);b.rightContX=i;b.rightContY=k}b=["C",p(f.rightContX,f.plotX),p(f.rightContY,f.plotY),p(g,d),p(h,e),d,e];f.rightContX=f.rightContY=null;return b}});I.spline=wa;aa.areaspline=D(aa.area);la=la.prototype;wa=pa(wa,{type:"areaspline",getStackPoints:la.getStackPoints,getGraphPath:la.getGraphPath,setStackCliffs:la.setStackCliffs,drawGraph:la.drawGraph,drawLegendSymbol:J.drawRectangle});I.areaspline=wa;aa.column=D(da,{borderColor:"#b2b2b2",borderRadius:0,groupPadding:0.2,
    +marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0});wa=pa(Q,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,
    +init:function(){Q.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&o(b.series,function(b){if(b.type===a.type)b.isDirty=!0})},getColumnMetrics:function(){var a=this,b=a.options,c=a.xAxis,d=a.yAxis,e=c.reversed,f,g={},h=0;b.grouping===!1?h=1:o(a.chart.series,function(b){var c=b.options,e=b.yAxis,i;if(b.type===a.type&&b.visible&&d.len===e.len&&d.pos===e.pos)c.stacking?(f=b.stackKey,g[f]===z&&(g[f]=h++),i=g[f]):c.grouping!==!1&&(i=h++),b.columnIndex=i});var i=F(P(c.transA)*(c.ordinalSlope||
    +b.pointRange||c.closestPointRange||c.tickInterval||1),c.len),k=i*b.groupPadding,j=(i-2*k)/h,b=F(b.maxPointWidth||c.len,p(b.pointWidth,j*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(j-b)/2+(k+((a.columnIndex||0)+(e?1:0))*j-i/2)*(e?-1:1)};return a.columnMetrics},crispCol:function(a,b,c,d){var e=this.chart,f=this.borderWidth,g=-(f%2?0.5:0),f=f%2?0.5:1;e.inverted&&e.renderer.isVML&&(f+=1);c=Math.round(a+c)+g;a=Math.round(a)+g;c-=a;d=Math.round(b+d)+f;g=P(b)<=0.5&&d>0.5;b=Math.round(b)+f;d-=
    +b;g&&(b-=1,d+=1);return{x:a,y:b,width:c,height:d}},translate:function(){var a=this,b=a.chart,c=a.options,d=a.borderWidth=p(c.borderWidth,a.closestPointRange*a.xAxis.transA<2?0:1),e=a.yAxis,f=a.translatedThreshold=e.getThreshold(c.threshold),g=p(c.minPointLength,5),h=a.getColumnMetrics(),i=h.width,k=a.barW=t(i,1+2*d),j=a.pointXOffset=h.offset;b.inverted&&(f-=0.5);c.pointPadding&&(k=ua(k));Q.prototype.translate.apply(a);o(a.points,function(c){var d=F(p(c.yBottom,f),9E4),h=999+P(d),h=F(t(-h,c.plotY),
    +e.len+h),o=c.plotX+j,s=k,q=F(h,d),v,u=t(h,d)-q;P(u)<g&&g&&(u=g,v=!e.reversed&&!c.negative||e.reversed&&c.negative,q=P(q-f)>g?d-g:f-(v?g:0));c.barX=o;c.pointWidth=i;c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-h,a.xAxis.len-o-s/2,u]:[o+s/2,h+e.pos-b.plotTop,u];c.shapeType="rect";c.shapeArgs=a.crispCol(o,q,s,u)})},getSymbol:Aa,drawLegendSymbol:J.drawRectangle,drawGraph:Aa,drawPoints:function(){var a=this,b=this.chart,c=a.options,d=b.renderer,e=c.animationLimit||250,f,g;o(a.points,function(h){var i=
    +h.plotY,k=h.graphic;if(i!==z&&!isNaN(i)&&h.y!==null)f=h.shapeArgs,i=q(a.borderWidth)?{"stroke-width":a.borderWidth}:{},g=h.pointAttr[h.selected?"select":""]||a.pointAttr[""],k?(Oa(k),k.attr(i).attr(g)[b.pointCount<e?"animate":"attr"](D(f))):h.graphic=d[h.shapeType](f).attr(i).attr(g).add(h.group||a.group).shadow(c.shadow,null,c.stacking&&!c.borderRadius);else if(k)h.graphic=k.destroy()})},animate:function(a){var b=this.yAxis,c=this.options,d=this.chart.inverted,e={};if(ca)a?(e.scaleY=0.001,a=F(b.pos+
    +b.len,t(b.pos,b.toPixels(c.threshold))),d?e.translateX=a-b.len:e.translateY=a,this.group.attr(e)):(e.scaleY=1,e[d?"translateX":"translateY"]=b.pos,this.group.animate(e,this.options.animation),this.animate=null)},remove:function(){var a=this,b=a.chart;b.hasRendered&&o(b.series,function(b){if(b.type===a.type)b.isDirty=!0});Q.prototype.remove.apply(a,arguments)}});I.column=wa;aa.bar=D(aa.column);la=pa(wa,{type:"bar",inverted:!0});I.bar=la;aa.scatter=D(da,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px;"> {series.name}</span><br/>',
    +pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});la=pa(Q,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&Q.prototype.drawGraph.call(this)}});I.scatter=la;aa.pie=D(da,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.y===null?void 0:
    +this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});da={type:"pie",isCartesian:!1,pointClass:pa(Ha,{init:function(){Ha.prototype.init.apply(this,arguments);var a=this,b;a.name=p(a.name,"Slice");b=function(b){a.slice(b.type==="select")};M(a,"select",b);M(a,"unselect",b);return a},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=d.options.ignoreHiddenPoint,
    +b=p(b,f);if(a!==c.visible){c.visible=c.options.visible=a=a===z?!c.visible:a;d.options.data[sa(c,d.data)]=c.options;o(["graphic","dataLabel","connector","shadowGroup"],function(b){if(c[b])c[b][a?"show":"hide"](!0)});c.legendItem&&e.legend.colorizeItem(c,a);!a&&c.state==="hover"&&c.setState("");if(f)d.isDirty=!0;b&&e.redraw()}},slice:function(a,b,c){var d=this.series;Ua(c,d.chart);p(b,!0);this.sliced=this.options.sliced=a=q(a)?a:!this.sliced;d.options.data[sa(this,d.data)]=this.options;a=a?this.slicedTranslation:
    +{translateX:0,translateY:0};this.graphic.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)},haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,start:b.start,end:b.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",
    +fill:"color"},animate:function(a){var b=this,c=b.points,d=b.startAngleRad;if(!a)o(c,function(a){var c=a.graphic,g=a.shapeArgs;c&&(c.attr({r:a.startR||b.center[3]/2,start:d,end:d}),c.animate({r:g.r,start:g.start,end:g.end},b.options.animation))}),b.animate=null},updateTotals:function(){var a,b=0,c=this.points,d=c.length,e,f=this.options.ignoreHiddenPoint;for(a=0;a<d;a++)e=c[a],b+=f&&!e.visible?0:e.y;this.total=b;for(a=0;a<d;a++)e=c[a],e.percentage=b>0&&(e.visible||!f)?e.y/b*100:0,e.total=b},generatePoints:function(){Q.prototype.generatePoints.call(this);
    +this.updateTotals()},translate:function(a){this.generatePoints();var b=0,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g,h,i=c.startAngle||0,k=this.startAngleRad=ra/180*(i-90),i=(this.endAngleRad=ra/180*(p(c.endAngle,i+360)-90))-k,j=this.points,l=c.dataLabels.distance,c=c.ignoreHiddenPoint,m,n=j.length,o;if(!a)this.center=a=this.getCenter();this.getX=function(b,c){h=W.asin(F((b-a[1])/(a[2]/2+l),1));return a[0]+(c?-1:1)*U(h)*(a[2]/2+l)};for(m=0;m<n;m++){o=j[m];f=k+b*i;if(!c||o.visible)b+=o.percentage/
    +100;g=k+b*i;o.shapeType="arc";o.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:A(f*1E3)/1E3,end:A(g*1E3)/1E3};h=(g+f)/2;h>1.5*ra?h-=2*ra:h<-ra/2&&(h+=2*ra);o.slicedTranslation={translateX:A(U(h)*d),translateY:A($(h)*d)};f=U(h)*a[2]/2;g=$(h)*a[2]/2;o.tooltipPos=[a[0]+f*0.7,a[1]+g*0.7];o.half=h<-ra/2||h>ra/2?1:0;o.angle=h;e=F(e,l/2);o.labelPos=[a[0]+f+U(h)*l,a[1]+g+$(h)*l,a[0]+f+U(h)*e,a[1]+g+$(h)*e,a[0]+f,a[1]+g,l<0?"center":o.half?"right":"left",h]}},drawGraph:null,drawPoints:function(){var a=
    +this,b=a.chart.renderer,c,d,e=a.options.shadow,f,g,h,i;if(e&&!a.shadowGroup)a.shadowGroup=b.g("shadow").add(a.group);o(a.points,function(k){if(k.y!==null){d=k.graphic;h=k.shapeArgs;f=k.shadowGroup;g=k.pointAttr[k.selected?"select":""];if(!g.stroke)g.stroke=g.fill;if(e&&!f)f=k.shadowGroup=b.g("shadow").add(a.shadowGroup);c=k.sliced?k.slicedTranslation:{translateX:0,translateY:0};f&&f.attr(c);if(d)d.setRadialReference(a.center).attr(g).animate(u(h,c));else{i={"stroke-linejoin":"round"};if(!k.visible)i.visibility=
    +"hidden";k.graphic=d=b[k.shapeType](h).setRadialReference(a.center).attr(g).attr(i).attr(c).add(a.group).shadow(e,f)}}})},searchPoint:Aa,sortByAngle:function(a,b){a.sort(function(a,d){return a.angle!==void 0&&(d.angle-a.angle)*b})},drawLegendSymbol:J.drawRectangle,getCenter:Cb.getCenter,getSymbol:Aa};da=pa(Q,da);I.pie=da;Q.prototype.drawDataLabels=function(){var a=this,b=a.options,c=b.cursor,d=b.dataLabels,e=a.points,f,g,h=a.hasRendered||0,i,k,j=a.chart.renderer;if(d.enabled||a._hasPointLabels)a.dlProcessOptions&&
    +a.dlProcessOptions(d),k=a.plotGroup("dataLabelsGroup","data-labels",d.defer?"hidden":"visible",d.zIndex||6),p(d.defer,!0)&&(k.attr({opacity:+h}),h||M(a,"afterAnimate",function(){a.visible&&k.show();k[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),g=d,o(e,function(e){var h,n=e.dataLabel,o,s,t=e.connector,v=!0,x,w={};f=e.dlOptions||e.options&&e.options.dataLabels;h=p(f&&f.enabled,g.enabled)&&e.y!==null;if(n&&!h)e.dataLabel=n.destroy();else if(h){d=D(g,f);x=d.style;h=d.rotation;o=e.getLabelConfig();
    +i=d.format?Ka(d.format,o):d.formatter.call(o,d);x.color=p(d.color,x.color,a.color,"black");if(n)if(q(i))n.attr({text:i}),v=!1;else{if(e.dataLabel=n=n.destroy(),t)e.connector=t.destroy()}else if(q(i)){n={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:h,padding:d.padding,zIndex:1};if(x.color==="contrast")w.color=d.inside||d.distance<0||b.stacking?j.getContrast(e.color||a.color):"#000000";if(c)w.cursor=c;for(s in n)n[s]===z&&delete n[s];n=e.dataLabel=
    +j[h?"text":"label"](i,0,-9999,d.shape,null,null,d.useHTML).attr(n).css(u(x,w)).add(k).shadow(d.shadow)}n&&a.alignDataLabel(e,n,d,null,v)}})};Q.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=p(a.plotX,-9999),i=p(a.plotY,-9999),k=b.getBBox(),j=f.renderer.fontMetrics(c.style.fontSize).b,l=c.rotation,m=c.align,n=this.visible&&(a.series.forceDL||f.isInsidePlot(h,A(i),g)||d&&f.isInsidePlot(h,g?d.x+1:d.y+d.height-1,g)),o=p(c.overflow,"justify")==="justify";if(n)d=u({x:g?f.plotWidth-
    +i:h,y:A(g?f.plotHeight-h:i),width:0,height:0},d),u(c,{width:k.width,height:k.height}),l?(o=!1,g=f.renderer.rotCorr(j,l),g={x:d.x+c.x+d.width/2+g.x,y:d.y+c.y+d.height/2},b[e?"attr":"animate"](g).attr({align:c.align}),h=(l+720)%360,h=h>180&&h<360,m==="left"?g.y-=h?k.height:0:m==="center"?(g.x-=k.width/2,g.y-=k.height/2):m==="right"&&(g.x-=k.width,g.y-=h?0:k.height)):(b.align(c,null,d),g=b.alignAttr),o?this.justifyDataLabel(b,c,g,k,d,e):p(c.crop,!0)&&(n=f.isInsidePlot(g.x,g.y)&&f.isInsidePlot(g.x+k.width,
    +g.y+k.height)),c.shape&&!l&&b.attr({anchorX:a.plotX,anchorY:a.plotY});if(!n)Oa(b),b.attr({y:-9999}),b.placed=!1};Q.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g=this.chart,h=b.align,i=b.verticalAlign,k,j,l=a.box?0:a.padding||0;k=c.x+l;if(k<0)h==="right"?b.align="left":b.x=-k,j=!0;k=c.x+d.width-l;if(k>g.plotWidth)h==="left"?b.align="right":b.x=g.plotWidth-k,j=!0;k=c.y+l;if(k<0)i==="bottom"?b.verticalAlign="top":b.y=-k,j=!0;k=c.y+d.height-l;if(k>g.plotHeight)i==="top"?b.verticalAlign="bottom":
    +b.y=g.plotHeight-k,j=!0;if(j)a.placed=!f,a.align(b,null,e)};if(I.pie)I.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,d=a.chart,e=a.options.dataLabels,f=p(e.connectorPadding,10),g=p(e.connectorWidth,1),h=d.plotWidth,i=d.plotHeight,k,j,l=p(e.softConnector,!0),m=e.distance,n=a.center,r=n[2]/2,q=n[1],u=m>0,v,x,w,B=[[],[]],z,y,E,D,C,G=[0,0,0,0],L=function(a,b){return b.y-a.y};if(a.visible&&(e.enabled||a._hasPointLabels)){Q.prototype.drawDataLabels.apply(a);o(b,function(a){if(a.dataLabel&&
    +a.visible)B[a.half].push(a),a.dataLabel._pos=null});for(D=2;D--;){var H=[],M=[],I=B[D],K=I.length,J;if(K){a.sortByAngle(I,D-0.5);for(C=b=0;!b&&I[C];)b=I[C]&&I[C].dataLabel&&(I[C].dataLabel.getBBox().height||21),C++;if(m>0){x=F(q+r+m,d.plotHeight);for(C=t(0,q-r-m);C<=x;C+=b)H.push(C);x=H.length;if(K>x){c=[].concat(I);c.sort(L);for(C=K;C--;)c[C].rank=C;for(C=K;C--;)I[C].rank>=x&&I.splice(C,1);K=I.length}for(C=0;C<K;C++){c=I[C];w=c.labelPos;c=9999;var O,N;for(N=0;N<x;N++)O=P(H[N]-w[1]),O<c&&(c=O,J=N);
    +if(J<C&&H[C]!==null)J=C;else for(x<K-C+J&&H[C]!==null&&(J=x-K+C);H[J]===null;)J++;M.push({i:J,y:H[J]});H[J]=null}M.sort(L)}for(C=0;C<K;C++){c=I[C];w=c.labelPos;v=c.dataLabel;E=c.visible===!1?"hidden":"inherit";c=w[1];if(m>0){if(x=M.pop(),J=x.i,y=x.y,c>y&&H[J+1]!==null||c<y&&H[J-1]!==null)y=F(t(0,c),d.plotHeight)}else y=c;z=e.justify?n[0]+(D?-1:1)*(r+m):a.getX(y===q-r-m||y===q+r+m?c:y,D);v._attr={visibility:E,align:w[6]};v._pos={x:z+e.x+({left:f,right:-f}[w[6]]||0),y:y+e.y-10};v.connX=z;v.connY=y;
    +if(this.options.size===null)x=v.width,z-x<f?G[3]=t(A(x-z+f),G[3]):z+x>h-f&&(G[1]=t(A(z+x-h+f),G[1])),y-b/2<0?G[0]=t(A(-y+b/2),G[0]):y+b/2>i&&(G[2]=t(A(y+b/2-i),G[2]))}}}if(Ea(G)===0||this.verifyDataLabelOverflow(G))this.placeDataLabels(),u&&g&&o(this.points,function(b){k=b.connector;w=b.labelPos;if((v=b.dataLabel)&&v._pos&&b.visible)E=v._attr.visibility,z=v.connX,y=v.connY,j=l?["M",z+(w[6]==="left"?5:-5),y,"C",z,y,2*w[2]-w[4],2*w[3]-w[5],w[2],w[3],"L",w[4],w[5]]:["M",z+(w[6]==="left"?5:-5),y,"L",
    +w[2],w[3],"L",w[4],w[5]],k?(k.animate({d:j}),k.attr("visibility",E)):b.connector=k=a.chart.renderer.path(j).attr({"stroke-width":g,stroke:e.connectorColor||b.color||"#666",visibility:E}).add(a.dataLabelsGroup);else if(k)b.connector=k.destroy()})}},I.pie.prototype.placeDataLabels=function(){o(this.points,function(a){var b=a.dataLabel;if(b&&a.visible)(a=b._pos)?(b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999})})},I.pie.prototype.alignDataLabel=Aa,I.pie.prototype.verifyDataLabelOverflow=
    +function(a){var b=this.center,c=this.options,d=c.center,e=c.minSize||80,f=e,g;d[0]!==null?f=t(b[2]-t(a[1],a[3]),e):(f=t(b[2]-a[1]-a[3],e),b[0]+=(a[3]-a[1])/2);d[1]!==null?f=t(F(f,b[2]-t(a[0],a[2])),e):(f=t(F(f,b[2]-a[0]-a[2]),e),b[1]+=(a[0]-a[2])/2);f<b[2]?(b[2]=f,b[3]=Math.min(/%$/.test(c.innerSize||0)?f*parseFloat(c.innerSize||0)/100:parseFloat(c.innerSize||0),f),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):g=!0;return g};if(I.column)I.column.prototype.alignDataLabel=function(a,
    +b,c,d,e){var f=this.chart.inverted,g=a.series,h=a.dlBox||a.shapeArgs,i=p(a.below,a.plotY>p(this.translatedThreshold,g.yAxis.len)),k=p(c.inside,!!this.options.stacking);if(h){d=D(h);if(d.y<0)d.height+=d.y,d.y=0;h=d.y+d.height-g.yAxis.len;h>0&&(d.height-=h);f&&(d={x:g.yAxis.len-d.y-d.height,y:g.xAxis.len-d.x-d.width,width:d.height,height:d.width});if(!k)f?(d.x+=i?0:d.width,d.width=0):(d.y+=i?d.height:0,d.height=0)}c.align=p(c.align,!f||k?"center":i?"right":"left");c.verticalAlign=p(c.verticalAlign,
    +f||k?"middle":i?"top":"bottom");Q.prototype.alignDataLabel.call(this,a,b,c,d,e)};(function(a){var b=a.Chart,c=a.each,d=a.pick,e=a.addEvent;b.prototype.callbacks.push(function(a){function b(){var e=[];c(a.series,function(a){var b=a.options.dataLabels,f=a.dataLabelCollections||["dataLabel"];(b.enabled||a._hasPointLabels)&&!b.allowOverlap&&a.visible&&c(f,function(b){c(a.points,function(a){if(a[b])a[b].labelrank=d(a.labelrank,a.shapeArgs&&a.shapeArgs.height),e.push(a[b])})})});a.hideOverlappingLabels(e)}
    +b();e(a,"redraw",b)});b.prototype.hideOverlappingLabels=function(a){var b=a.length,d,e,k,j,l,m,n,o,p;for(e=0;e<b;e++)if(d=a[e])d.oldOpacity=d.opacity,d.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(e=0;e<b;e++){k=a[e];for(d=e+1;d<b;++d)if(j=a[d],k&&j&&k.placed&&j.placed&&k.newOpacity!==0&&j.newOpacity!==0&&(l=k.alignAttr,m=j.alignAttr,n=k.parentGroup,o=j.parentGroup,p=2*(k.box?0:k.padding),l=!(m.x+o.translateX>l.x+n.translateX+(k.width-p)||m.x+o.translateX+(j.width-
    +p)<l.x+n.translateX||m.y+o.translateY>l.y+n.translateY+(k.height-p)||m.y+o.translateY+(j.height-p)<l.y+n.translateY)))(k.labelrank<j.labelrank?k:j).newOpacity=0}c(a,function(a){var b,c;if(a){c=a.newOpacity;if(a.oldOpacity!==c&&a.placed)c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b);a.isOld=!0}})}})(B);da=B.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(a){for(var c=
    +a.target,d;c&&!d;)d=c.point,c=c.parentNode;if(d!==z&&d!==b.hoverPoint)d.onMouseOver(a)};o(a.points,function(a){if(a.graphic)a.graphic.element.point=a;if(a.dataLabel)a.dataLabel.element.point=a});if(!a._hasTracking)o(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),db))a[b].on("touchstart",f)}),a._hasTracking=!0},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:
    +a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,i=f.options.tooltip.snap,k=a.tracker,j=b.cursor,l=j&&{cursor:j},m=function(){if(f.hoverSeries!==a)a.onMouseOver()},n="rgba(192,192,192,"+(ca?1.0E-4:0.002)+")";if(e&&!c)for(j=e+1;j--;)d[j]==="M"&&d.splice(j+1,0,d[j+1]-i,d[j+2],"L"),(j&&d[j]==="M"||j===e)&&d.splice(j,0,"L",d[j-2]+i,d[j-1]);k?k.attr({d:d}):(a.tracker=h.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:n,fill:c?n:"none","stroke-width":b.lineWidth+
    +(c?0:2*i),zIndex:2}).add(a.group),o([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(l);if(db)a.on("touchstart",m)}))}};if(I.column)wa.prototype.drawTracker=da.drawTrackerPoint;if(I.pie)I.pie.prototype.drawTracker=da.drawTrackerPoint;if(I.scatter)la.prototype.drawTracker=da.drawTrackerPoint;u(ob.prototype,{setItemEvents:function(a,b,c,d,e){var f=this;(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");
    +b.css(f.options.itemHoverStyle)}).on("mouseout",function(){b.css(a.visible?d:e);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()},b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):H(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=Z("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);M(a.checkbox,"click",function(b){H(a.series||a,"checkboxClick",
    +{checked:b.target.checked,item:a},function(){a.select()})})}});N.legend.itemStyle.cursor="pointer";u(hb.prototype,{showResetZoom:function(){var a=this,b=N.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f=c.relativeTo==="chart"?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).add().align(c.position,!1,f)},zoomOut:function(){var a=this;H(a,"selection",{resetSelection:!0},
    +function(){a.zoom()})},zoom:function(a){var b,c=this.pointer,d=!1,e;!a||a.resetSelection?o(this.axes,function(a){b=a.zoom()}):o(a.xAxis.concat(a.yAxis),function(a){var e=a.axis,h=e.isXAxis;if(c[h?"zoomX":"zoomY"]||c[h?"pinchX":"pinchY"])b=e.zoom(a.min,a.max),e.displayBtn&&(d=!0)});e=this.resetZoomButton;if(d&&!e)this.showResetZoom();else if(!d&&Y(e))this.resetZoomButton=e.destroy();b&&this.redraw(p(this.options.chart.animation,a&&a.animation,this.pointCount<100))},pan:function(a,b){var c=this,d=c.hoverPoints,
    +e;d&&o(d,function(a){a.setState()});o(b==="xy"?[1,0]:[1],function(b){var b=c[b?"xAxis":"yAxis"][0],d=b.horiz,h=a[d?"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",i=c[d],k=(b.pointRange||0)/2,j=b.getExtremes(),l=b.toValue(i-h,!0)+k,k=b.toValue(i+b.len-h,!0)-k,i=i>h;if(b.series.length&&(i||l>F(j.dataMin,j.min))&&(!i||k<t(j.dataMax,j.max)))b.setExtremes(l,k,!1,!1,{trigger:"pan"}),e=!0;c[d]=h});e&&c.redraw(!1);L(c.container,{cursor:"move"})}});u(Ha.prototype,{select:function(a,b){var c=this,d=c.series,
    +e=d.chart,a=p(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;d.options.data[sa(c,d.data)]=c.options;c.setState(a&&"select");b||o(e.getSelectedPoints(),function(a){if(a.selected&&a!==c)a.selected=a.options.selected=!1,d.options.data[sa(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect")})})},onMouseOver:function(a,b){var c=this.series,d=c.chart,e=d.tooltip,f=d.hoverPoint;if(d.hoverSeries!==c)c.onMouseOver();if(f&&f!==this)f.onMouseOut();
    +if(this.series&&(this.firePointEvent("mouseOver"),e&&(!e.shared||c.noSharedTooltip)&&e.refresh(this,a),this.setState("hover"),!b))d.hoverPoint=this},onMouseOut:function(){var a=this.series.chart,b=a.hoverPoints;this.firePointEvent("mouseOut");if(!b||sa(this,b)===-1)this.setState(),a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var a=D(this.series.options.point,this.options).events,b;this.events=a;for(b in a)M(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a,b){var c=
    +T(this.plotX),d=this.plotY,e=this.series,f=e.options.states,g=aa[e.type].marker&&e.options.marker,h=g&&!g.enabled,i=g&&g.states[a],k=i&&i.enabled===!1,j=e.stateMarkerGraphic,l=this.marker||{},m=e.chart,n=e.halo,o,a=a||"";o=this.pointAttr[a]||e.pointAttr[a];if(!(a===this.state&&!b||this.selected&&a!=="select"||f[a]&&f[a].enabled===!1||a&&(k||h&&i.enabled===!1)||a&&l.states&&l.states[a]&&l.states[a].enabled===!1)){if(this.graphic)g=g&&this.graphic.symbolName&&o.r,this.graphic.attr(D(o,g?{x:c-g,y:d-
    +g,width:2*g,height:2*g}:{})),j&&j.hide();else{if(a&&i)if(g=i.radius,l=l.symbol||e.symbol,j&&j.currentSymbol!==l&&(j=j.destroy()),j)j[b?"animate":"attr"]({x:c-g,y:d-g});else if(l)e.stateMarkerGraphic=j=m.renderer.symbol(l,c-g,d-g,2*g,2*g).attr(o).add(e.markerGroup),j.currentSymbol=l;if(j)j[a&&m.isInsidePlot(c,d,m.inverted)?"show":"hide"](),j.element.point=this}if((c=f[a]&&f[a].halo)&&c.size){if(!n)e.halo=n=m.renderer.path().add(m.seriesGroup);n.attr(u({fill:this.color||e.color,"fill-opacity":c.opacity,
    +zIndex:-1},c.attributes))[b?"animate":"attr"]({d:this.haloPath(c.size)})}else n&&n.attr({d:[]});this.state=a}},haloPath:function(a){var b=this.series,c=b.chart,d=b.getPlotBox(),e=c.inverted,f=Math.floor(this.plotX);return c.renderer.symbols.circle(d.translateX+(e?b.yAxis.len-this.plotY:f)-a,d.translateY+(e?b.xAxis.len-f:this.plotY)-a,a*2,a*2)}});u(Q.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&H(this,"mouseOver");this.setState("hover");
    +a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&H(this,"mouseOut");c&&!a.stickyTracking&&(!c.shared||this.noSharedTooltip)&&c.hide();this.setState()},setState:function(a){var b=this.options,c=this.graph,d=b.states,e=b.lineWidth,b=0,a=a||"";if(this.state!==a&&(this.state=a,!(d[a]&&d[a].enabled===!1)&&(a&&(e=d[a].lineWidth||e+(d[a].lineWidthPlus||0)),c&&!c.dashstyle))){a={"stroke-width":e};
    +for(c.attr(a);this["zoneGraph"+b];)this["zoneGraph"+b].attr(a),b+=1}},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,g=d.options.chart.ignoreHiddenSeries,h=c.visible;f=(c.visible=a=c.userOptions.visible=a===z?!h:a)?"show":"hide";o(["group","dataLabelsGroup","markerGroup","tracker"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&o(d.series,function(a){if(a.options.stacking&&
    +a.visible)a.isDirty=!0});o(c.linkedSeries,function(b){b.setVisible(a,!1)});if(g)d.isDirtyBox=!0;b!==!1&&d.redraw();H(c,f)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===z?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;H(this,a?"select":"unselect")},drawTracker:da.drawTrackerGraph});u(B,{Color:ia,Point:Ha,Tick:Va,Renderer:cb,SVGElement:O,SVGRenderer:Ca,arrayMin:Ra,arrayMax:Ea,charts:S,dateFormat:Qa,error:X,format:Ka,pathAnim:void 0,
    +getOptions:function(){return N},hasBidiBug:Qb,isTouchDevice:Mb,setOptions:function(a){N=D(!0,N,a);Fb();return N},addEvent:M,removeEvent:V,createElement:Z,discardElement:Ta,css:L,each:o,map:Ba,merge:D,splat:ta,stableSort:ib,extendClass:pa,pInt:C,svg:ca,canvas:ha,vml:!ca&&!ha,product:"Highcharts",version:"4.2.3"});return B});
    diff --git a/fangija-zsyf/js/iSlider.js b/fangija-zsyf/js/iSlider.js
    new file mode 100644
    index 0000000..c072e5b
    --- /dev/null
    +++ b/fangija-zsyf/js/iSlider.js
    @@ -0,0 +1,567 @@
    +
    +/**
    + * iSlider 高性能全屏滑动组件 
    + * @class iSlider
    + * @param {object} opts
    + * @param {string} opts.wrap='.wrap' 容器 
    + * @param {string} opts.item='.item'  滚动单元的元素
    + * @param {string} opts.playClass='play'  触发播放动画的class
    + * @param {number} [opts.index=0]  设置初始显示的页码
    + * @param {array} [opts.noslide=[]]  设置禁止滑动的页面序号(0开始), 禁止后 需要开发者手动绑定页面中的某个按钮事件进行滑动 
    + * @param {number} [opts.speed=400] 动画速度 单位:ms
    + * @param {number} [opts.triggerDist=30] 触发滑动的手指移动最小位移 单位:像素
    + * @param {boolean} [opts.isVertical=true] 是否是垂直滑动 默认是.  设成false为水平滑动.
    + * @param {boolean} [opts.useACC=true] 是否启用硬件加速 默认启用
    + * @param {boolean} [opts.fullScr=true] 是否是全屏的 默认是. 如果是局部滑动,请设为false
    + * @param {boolean} [opts.preventMove=false] 是否阻止系统默认的touchmove移动事件,  默认不阻止, 该参数仅在局部滚动时有效,   如果是局部滚动 如果为true 那么在这个区域滑动的时候 将不会滚动页面.  如果是全屏情况 则会阻止
    + * @param {boolean} [opts.lastLocate=true] 后退后定位到上次浏览的位置 默认true
    + * @param {function} [opts.onslide]  滑动后回调函数  会回传index参数
    + * @param {array} [opts.loadingImgs]  loading需要加载的图片地址列表
    + * @param {function} [opts.onloading]  loading时每加载完成一个图片都会触发这个回调  回调时参数值为 (已加载个数,总数)
    + * @param {number} [opts.loadingOverTime=15]  预加载超时时间 单位:秒
    + * @desc 
    +
    +-  如丝般高性能全屏动画滑屏组件, 主要应用于微信H5宣传页,海报,推广介绍等场景. 基于iSlider,可以快速搭建效果炫丽的H5滑屏页面.
    +-  简洁,易用.  无css依赖.
    +-  专注于页面滑动, 没有冗余代码 , 保证性能.
    +-  组件没有任何依赖.
    +-  imgcache 引用地址 : http://imgcache.gtimg.cn/music/h5/lib/js/module/iSlider-1.0.min.js?_bid=363&max_age=2592000
    +-  github: https://github.com/kele527/iSlider
    +
    +
    + * @example
    +
    +    //极简用法
    +    new iSlider(); //容器默认是 .wrap  元素默认是 .item   动画播放class默认是 play
    +
    +    //普通用法
    +    new iSlider({
    +        wrap:'.wrap',
    +        item:'.item',
    +        playClass:'play',
    +        onslide:function (index) {
    +            console.info(index)
    +        }
    +    });
    +
    +    //带loading进度条用法
    +    new iSlider({
    +        wrap:'.wrap',
    +        item:'.item',
    +        playClass:'play',
    +        onslide:function (index) {
    +            console.info(index)
    +        },
    +        loadingImgs:[
    +            'http://imgcache.gtimg.cn/mediastyle/mobile/event/20141118_ten_jason/img/open_cover.jpg?max_age=2592000',
    +            'http://imgcache.gtimg.cn/mediastyle/mobile/event/20141118_ten_jason/img/im_cover.jpg?max_age=2592000',
    +            'http://imgcache.gtimg.cn/mediastyle/mobile/event/20141118_ten_jason/img/bg1.jpg?max_age=2592000',
    +            'http://imgcache.gtimg.cn/mediastyle/mobile/event/20141118_ten_jason/img/bg2.jpg?max_age=2592000'
    +        ],
    +        onloading:function (loaded,total) {
    +            this.$('#loading div').style.width=loaded/total*100+'%';
    +            if (loaded==total) {
    +                this.$('#loading').style.display="none"
    +            }
    +        }
    +    });
    +
    +    demo http://kele527.github.io/iSlider/demo1.html
    +
    + * @date 2014/11/3 星期一
    + * @author rowanyang
    + * 
    + */
    +function iSlider(opts) {
    +    this.opts={
    +        wrap:'.wrap',
    +        item:'.item',
    +        playClass:'play',
    +        index:0,
    +        noslide:[],
    +        noslideBack:false, //当noslide生效的时候 是否允许往回滑动  默认不允许, 如果有需要可以开启
    +        speed:400, //滑屏速度 单位:ms
    +        triggerDist:30,//触发滑动的手指移动最小位移 单位:像素
    +        isVertical:true,//垂直滑还是水平滑动
    +        useACC:true, //是否启用硬件加速 默认启用
    +        fullScr:true, //是否是全屏的 默认是. 如果是局部滑动,请设为false
    +        preventMove:false, //是否阻止系统默认的touchmove移动事件,  默认不阻止, 该参数仅在局部滚动时有效,   如果是局部滚动 如果为true 那么在这个区域滑动的时候 将不会滚动页面.  如果是全屏情况 则会阻止
    +        lastLocate:true, //后退后定位到上次浏览的位置 默认开启
    +        loadingImgs:[], //loading 预加载图片地址列表
    +        onslide:function (index) {},//滑动回调 参数是本对象
    +        onloading:function (loaded,total) {},
    +        loadingOverTime:15 //预加载超时时间 单位:秒
    +    }
    +
    +    for (var i in opts) {
    +        this.opts[i]=opts[i];
    +    }
    +
    +    this.SS=false;
    +    try {
    +        this.SS=sessionStorage;
    +        this.SS['spt']=1;//检测是否是ios私密浏览模式 如果是私密模式 这一行会报错 进入到catch
    +    }catch (e) {
    +        this.SS=0;
    +    }
    +
    +    this.init();
    +}
    +/**  @lends iSlider */
    +iSlider.prototype={
    +    wrap:null,
    +    index : 0,
    +    length:0,
    +    _tpl:[],
    +    _delayTime:150,
    +    _sessionKey : location.host+location.pathname,
    +    _prev:null,
    +    _current:null,
    +    _next:null,
    +    $:function (o,p) {
    +        return (p||document).querySelector(o);
    +    },
    +    addClass:function (o,cls) {
    +        if (o.classList) {
    +            o.classList.add(cls)
    +        }else {
    +            o.className+=' '+cls;
    +        }
    +    },
    +    removeClass:function (o,cls) {
    +        if (o.classList) {
    +            o.classList.remove(cls)
    +        }else {
    +            o.className=o.className.replace(new RegExp('\\s*\\b'+cls+'\\b','g'),'')
    +        }
    +    },
    +	init:function () {
    +        var self = this;
    +        this.wrap = typeof this.opts.wrap=='string' ? this.$(this.opts.wrap) : this.opts.wrap ;
    +
    +        if (this.SS) {
    +            //使用sessionStorage来保存当前浏览到第几页了   后退回来的时候 定位到这一页
    +            this._sessionKey=btoa(encodeURIComponent(this._sessionKey+this.wrap.id+this.wrap.className));
    +
    +            var lastLocateIndex=parseInt(this.SS[this._sessionKey]);
    +            this.index = (this.opts.lastLocate && lastLocateIndex>=0) ? lastLocateIndex : 0;
    +        }else {
    +            this.index = this.opts.index || 0;
    +        }
    +        
    +
    +        if (!this.wrap) {
    +            throw Error('"wrap" param can not be empty!');
    +            return ;
    +        }
    +
    +        this._tpl = this.wrap.cloneNode(true);
    +        this._tpl = this.opts.item ? this._tpl.querySelectorAll(this.opts.item) : this._tpl.children;
    +
    +        for (var i=0; i<this._tpl.length; i++) {
    +            this._tpl[i].style.cssText+='display:block;position:absolute;left:0;top:0;width:100%;height:100%'
    +        };
    +
    +        this.length=this._tpl.length; //总页数数据
    +        this.touchInitPos = 0;//手指初始位置
    +        this.startPos = 0;//移动开始的位置
    +        this.totalDist = 0,//移动的总距离
    +        this.deltaX1 = 0;//每次移动的正负
    +        this.deltaX2 = 0;//每次移动的正负
    +        
    +        //全屏滑动 设置样式
    +        if (this.opts.fullScr) {
    +            var s = document.createElement('style');
    +            s.innerHTML = 'html,body{width:100%;height:100%;overflow:hidden}';
    +            document.head.appendChild(s);
    +            s = null;
    +        }
    +
    +        this.wrap.style.cssText+="display:block;position:relative;"+(this.opts.fullScr ? 'width:100%;height:100%':'');
    +        
    +        //必须要在前面的布局都设置好后 再来获取尺寸
    +        this.displayWidth = this.wrap.clientWidth; //滑动区域最大宽度
    +        this.displayHeight = this.wrap.clientHeight; //滑动区域最大高度
    +
    +        this.scrollDist=this.opts.isVertical ? this.displayHeight : this.displayWidth;//滚动的区域尺寸 
    +
    +        this._setHTML();// 填充初始DOM
    +
    +        if (this.opts.loadingImgs && this.opts.loadingImgs.length) {
    +            this._loading();
    +        }else {
    +            this._pageInit();
    +        }
    +
    +        if (/iPhone|iPod|iPad/.test(navigator.userAgent)) {
    +            this._delayTime=50;
    +        }
    +
    +        this._bindEvt();
    +	},
    +    _bindEvt:function () {
    +        var self = this;
    +        var handlrElm= this.opts.fullScr ? this.$('body') : this.wrap;
    +        handlrElm.addEventListener('touchstart',function (e) {
    +            self._touchstart(e);
    +        },false);
    +        handlrElm.addEventListener('touchmove',function (e) {
    +            self._touchmove(e);
    +            if (!self.opts.fullScr) { //修复手Q中局部使用时的一个bug
    +                e.stopPropagation();
    +                e.preventDefault();
    +            }
    +        },false);
    +        handlrElm.addEventListener('touchend',function (e) {
    +            self._touchend(e);
    +        },false);
    +        handlrElm.addEventListener('touchcancel',function (e) {
    +            self._touchend(e);
    +        },false);
    +
    +        if (this.opts.fullScr || this.opts.preventMove) {
    +            handlrElm.addEventListener('touchmove', function (e) {e.target.getAttribute('data-stop') !== "true" && e.preventDefault(); }, false);
    +        }
    +    },
    +    _setHTML:function (index) {
    +        if (index>=0) {
    +            this.index=parseInt(index);
    +        }
    +        this.wrap.innerHTML='';
    +
    +        var initDom = document.createDocumentFragment();
    +
    +        if (this.index>0) {
    +            this._prev=this._tpl[this.index-1].cloneNode(true);
    +            this._prev.style.cssText+=this._getTransform('-'+this.scrollDist+'px');
    +            initDom.appendChild(this._prev)
    +        }else {
    +            this._prev=null;
    +        }
    +        this._current =this._tpl[this.index].cloneNode(true);
    +
    +        this._current.style.cssText+=this._getTransform(0);
    +        initDom.appendChild(this._current);
    +        
    +        if (this.index<this.length-1) {
    +            this._next=this._tpl[this.index+1].cloneNode(true);
    +            this._next.style.cssText+=this._getTransform(this.scrollDist+'px');
    +            initDom.appendChild(this._next)
    +        }else {
    +            this._next=null;
    +        }
    +
    +        this.wrap.appendChild(initDom);
    +
    +    },
    +    _pageInit:function () {
    +        var self = this;
    +        setTimeout(function () {
    +            self.addClass(self._current,self.opts.playClass);
    +
    +            try {
    +                self.opts.onslide.call(self,self.index);
    +            } catch (e) {
    +//                console.info(e)
    +            }
    +        },this._delayTime);
    +    },
    +	_touchstart : function (e) {
    +        var self=this;
    +        if(e.target.getAttribute("data-stop") === "true")return;
    +		if(e.touches.length !== 1){return;}//如果大于1个手指,则不处理
    +        
    +        this.lockSlide=false;
    +        this._touchstartX=e.touches[0].pageX;
    +        this._touchstartY=e.touches[0].pageY;
    +
    +		this.touchInitPos = this.opts.isVertical ? e.touches[0].pageY:e.touches[0].pageX; // 每次move的触点位置
    +		this.deltaX1 = this.touchInitPos;//touchstart的时候的原始位置
    +
    +		this.startPos = 0;
    +		this.startPosPrev = -this.scrollDist;
    +		this.startPosNext = this.scrollDist;
    +		//手指滑动的时候禁用掉动画
    +		if (this._next) {
    +			self._next.style.cssText+='-webkit-transition-duration:0;'
    +		}
    +
    +		self._current.style.cssText+='-webkit-transition-duration:0;'
    +		if (this._prev) {
    +			self._prev.style.cssText+='-webkit-transition-duration:0;'
    +		}
    +	},
    +	_touchmove : function (e) {
    +        var parent=e.target;
    +        if(parent.getAttribute("stop") === "true")return;
    +
    +        do {
    +            parent=parent.parentNode;
    +        } while (parent && parent!=this.wrap);
    + 
    +        if (!parent && e.target!=this.wrap ) {
    +            return ;
    +        }
    +
    +        var self = this;
    +		if(e.touches.length !== 1 || this.lockSlide){return;}
    +
    +        var gx=Math.abs(e.touches[0].pageX - this._touchstartX);
    +        var gy=Math.abs(e.touches[0].pageY - this._touchstartY);
    +        
    +        //如果手指初始滑动的方向跟页面设置的方向不一致  就不会触发滑动  这个主要是避免误操作, 比如页面是垂直滑动, 在某一页加了横向滑动的局部动画, 那么左右滑动的时候要保证页面不能上下移动. 这里就是做这个的.
    +        if (gx>gy && this.opts.isVertical) { //水平滑动
    +            this.lockSlide=true;
    +            return ;
    +        }else if(gx<gy && !this.opts.isVertical){ //垂直滑动
    +            this.lockSlide=true;
    +            return ;
    +        }
    +
    +        if (this.opts.noslide && this.opts.noslide.indexOf(this.index)>=0) {
    +            //noslideBack 默认值是false   默认是禁用滑动后 前后都不能再滑动,
    +            //但是当noslideBack为true时, 禁用了这一页的滑动, 那么往下是划不动了  但是可以往上滑
    +            if ( !this.opts.noslideBack || (this.opts.isVertical ? (e.touches[0].pageY - this._touchstartY < 0) : (e.touches[0].pageX - this._touchstartX < 0)) ) {
    +                return ;
    +            }
    +        }
    +
    +
    +		var currentX = this.opts.isVertical ? e.touches[0].pageY:e.touches[0].pageX;
    +		this.deltaX2 = currentX - this.deltaX1;//记录当次移动的偏移量
    +		this.totalDist = this.startPos + currentX - this.touchInitPos;
    +
    +		self._current.style.cssText+=this._getTransform(this.totalDist+'px');
    +		this.startPos = this.totalDist;
    +		
    +		//处理上一张和下一张
    +		if (this.totalDist<0) {//露出下一张
    +			if (this._next) {
    +				this.totalDist2 = this.startPosNext + currentX - this.touchInitPos;
    +				self._next.style.cssText += this._getTransform(this.totalDist2+'px');
    +				this.startPosNext = this.totalDist2;
    +			}
    +		}else {//露出上一张
    +			if (this._prev) {
    +				this.totalDist2 = this.startPosPrev + currentX - this.touchInitPos;
    +				self._prev.style.cssText += this._getTransform(this.totalDist2+'px');
    +				this.startPosPrev = this.totalDist2;
    +			}
    +		}
    +
    +		this.touchInitPos = currentX;
    +	},
    +	_touchend : function (e) {
    +        if(e.target.getAttribute("stop") === "true")return;
    +		if(this.deltaX2 < -this.opts.triggerDist){
    +			this.next();
    +		}else if(this.deltaX2 > this.opts.triggerDist){
    +			this.prev();
    +		}else{
    +			this._itemReset();
    +		}
    +		this.deltaX2 = 0;
    +	},
    +    _getTransform:function (dist) {
    +        var pos= this.opts.isVertical? '0,'+dist : dist+',0';
    +        return ';-webkit-transform:' + (this.opts.useACC ? 'translate3d('+pos+',0)' : 'translate('+pos+')');
    +    },
    +
    +    _itemReset:function () {
    +        var self = this;
    +        self._current.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform(0);
    +        if (self._prev) {
    +            self._prev.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform('-'+this.scrollDist+'px');
    +        }
    +        if (self._next) {
    +           self._next.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform(this.scrollDist+'px');
    +        }
    +		this.deltaX2 = 0;
    +    },
    +
    +    _loading:function () {
    +        var self = this;
    +        var imgurls=this.opts.loadingImgs;
    +        var fallback=setTimeout(function () {
    +            try {
    +                self.opts.onloading.call(self,total,total);
    +            } catch (e) { }
    +            
    +            self._pageInit();
    +        },this.opts.loadingOverTime*1000);//loading超时时间  万一进度条卡那了 15秒后直接显示
    +
    +        var imgs=[], loaded=1;
    +        var total=imgurls.length+1;
    +        for (var i=0; i<imgurls.length; i++) {
    +            imgs[i]=new Image();
    +            imgs[i].src=imgurls[i];
    +            imgs[i].onload=imgs[i].onerror=imgs[i].onabort=function (e) {
    +                loaded++;
    +                if (this.src === imgurls[0] && e.type === 'load') {
    +                    clearTimeout(fallback)
    +                }
    +                checkloaded();
    +                this.onload=this.onerror=this.onabort=null;
    +            }
    +        }
    +
    +        try {
    +            self.opts.onloading.call(self,1,total);
    +        } catch (e) { }
    +
    +        function checkloaded() {
    +            try {
    +                self.opts.onloading.call(self,loaded,total);
    +            } catch (e) { }
    +            if (loaded==total) {
    +                if (fallback) {
    +                    clearTimeout(fallback)
    +                }
    +                self._pageInit();
    +                imgs=null;
    +                if (self.opts.preLoadingImgs && self.opts.preLoadingImgs.length) {
    +                    self.preloading();
    +                }
    +            }
    +        }
    +    },
    +    /** 
    +     * 滑动到上一页
    +     * @example
    +        s1.prev();
    +     */
    +    prev:function () {
    +        var self = this;
    +
    +        if (!this._current || !this._prev) {
    +            this._itemReset();
    +            return ;
    +        }
    +        if (this.index > 0) {
    +            this.index--;
    +        }else {
    +            this._itemReset();
    +            return false;
    +        }
    +
    +//        var nextIndex = this.index+1 > this.length-1 ? 0 : this.index+1;
    +
    +        if (this._next) {
    +            this.wrap.removeChild(this._next);
    +        }
    +
    +        this._next=this._current;
    +        this._current=this._prev;
    +        this._prev=null;
    +
    +        this._next.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform(this.scrollDist+'px');
    +        this._current.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform(0);
    +        if (this.SS) {
    +            this.SS[this._sessionKey]=this.index;
    +        }
    +
    +        setTimeout(function () {
    +
    +            if (self.$('.'+self.opts.playClass,self.wrap)) {
    +                self.removeClass(self.$('.'+self.opts.playClass,self.wrap),self.opts.playClass)
    +            }
    +            self.addClass(self._current,self.opts.playClass)
    +
    +            try {
    +                self.opts.onslide.call(self,self.index);
    +            } catch (e) {
    +//                console.info(e)
    +            }
    +
    +            var prevIndex = self.index-1;
    +            if (prevIndex < 0) {
    +                prevIndex =  self.length-1;
    +                return false;
    +            }
    +
    +            self._prev = self._tpl[prevIndex].cloneNode(true);
    +            self._prev.style.cssText+='-webkit-transition-duration:0ms;'+self._getTransform('-'+self.scrollDist+'px');
    +            self.wrap.insertBefore(self._prev,self._current);
    +
    +        },this._delayTime)
    +
    +    },
    +
    +    /** 
    +     * 滑动到下一页
    +     * @example
    +        s1.next();
    +     */
    +    next:function () {
    +        var self = this;
    +
    +        if (!this._current || !this._next) {
    +            this._itemReset();
    +            return ;
    +        }
    +
    +        if (this.index < this.length-1) {
    +            this.index++;
    +        }else {
    +            this._itemReset();
    +            return false;
    +        }
    +        
    +//        var prevIndex = this.index===0 ? this.length-1 : this.index-1;
    +
    +        if (this._prev) {
    +            this.wrap.removeChild(this._prev);
    +        }
    +
    +        this._prev=this._current;
    +        this._current=this._next;
    +        this._next=null;
    +
    +        this._prev.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform('-'+this.scrollDist+'px');
    +        this._current.style.cssText+='-webkit-transition-duration:'+this.opts.speed+'ms;'+this._getTransform(0);
    +        if (this.SS) {
    +            this.SS[this._sessionKey]=this.index;
    +        }
    +
    +        setTimeout(function () {
    +            if (self.$('.'+self.opts.playClass,self.wrap)) {
    +                self.removeClass(self.$('.'+self.opts.playClass,self.wrap),self.opts.playClass)
    +            }
    +            self.addClass(self._current,self.opts.playClass)
    +
    +            try {
    +                self.opts.onslide.call(self,self.index);
    +            } catch (e) {
    +//                console.info(e)
    +            }
    +
    +            var nextIndex = self.index+1;
    +            if (nextIndex >= self.length) {
    +                return false;
    +            }
    +
    +            self._next = self._tpl[nextIndex].cloneNode(true);
    +            self._next.style.cssText+='-webkit-transition-duration:0ms;'+self._getTransform(self.scrollDist+'px');
    +            self.wrap.appendChild(self._next);
    +
    +        },this._delayTime)
    +
    +    },
    +    /** 
    +     * 跳转到指定页码
    +     * @param {number} index 页码 从0开始的
    +     * @example
    +        s1.slideTo(3);
    +     */
    +    slideTo:function (index) {
    +        this._setHTML(index);
    +        this._pageInit();
    +    }
    +
    +}
    +
    +if (typeof module == 'object') {
    +    module.exports=iSlider;
    +}else {
    +    window.iSlider=iSlider;
    +}
    diff --git a/fangija-zsyf/js/immersed.js b/fangija-zsyf/js/immersed.js
    new file mode 100644
    index 0000000..747e146
    --- /dev/null
    +++ b/fangija-zsyf/js/immersed.js
    @@ -0,0 +1,29 @@
    +(function(w){
    +
    +document.addEventListener('plusready',function(){
    +	console.log("Immersed-UserAgent: "+navigator.userAgent);
    +},false);
    +
    +var immersed = 0;
    +var ms=(/Html5Plus\/.+\s\(.*(Immersed\/(\d+\.?\d*).*)\)/gi).exec(navigator.userAgent);
    +if(ms&&ms.length>=3){
    +	immersed=parseFloat(ms[2]);
    +}
    +w.immersed=immersed;
    +
    +if(!immersed){
    +	return;
    +}
    +var t=document.getElementById('header');
    +//t&&(t.style.paddingTop=immersed+'px',t.style.background='-webkit-linear-gradient(top,rgba(215,75,40,1),rgba(215,75,40,0.8))',t.style.color='#FFF');
    +t&&(t.style.paddingTop=immersed+'px',t.style.background='#D74B28',t.style.color='#FFF');
    +t=document.getElementById('content');
    +t&&(t.style.marginTop=immersed+'px');
    +t=document.getElementById('scontent');
    +t&&(t.style.marginTop=immersed+'px');
    +t=document.getElementById('dcontent');
    +t&&(t.style.marginTop=immersed+'px');
    +t=document.getElementById('map');
    +t&&(t.style.marginTop=immersed+'px');
    +
    +})(window);
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/jquery.cookie.js b/fangija-zsyf/js/jquery.cookie.js
    new file mode 100644
    index 0000000..c7f3a59
    --- /dev/null
    +++ b/fangija-zsyf/js/jquery.cookie.js
    @@ -0,0 +1,117 @@
    +/*!
    + * jQuery Cookie Plugin v1.4.1
    + * https://github.com/carhartl/jquery-cookie
    + *
    + * Copyright 2013 Klaus Hartl
    + * Released under the MIT license
    + */
    +(function (factory) {
    +	if (typeof define === 'function' && define.amd) {
    +		// AMD
    +		define(['jquery'], factory);
    +	} else if (typeof exports === 'object') {
    +		// CommonJS
    +		factory(require('jquery'));
    +	} else {
    +		// Browser globals
    +		factory(jQuery);
    +	}
    +}(function ($) {
    +
    +	var pluses = /\+/g;
    +
    +	function encode(s) {
    +		return config.raw ? s : encodeURIComponent(s);
    +	}
    +
    +	function decode(s) {
    +		return config.raw ? s : decodeURIComponent(s);
    +	}
    +
    +	function stringifyCookieValue(value) {
    +		return encode(config.json ? JSON.stringify(value) : String(value));
    +	}
    +
    +	function parseCookieValue(s) {
    +		if (s.indexOf('"') === 0) {
    +			// This is a quoted cookie as according to RFC2068, unescape...
    +			s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
    +		}
    +
    +		try {
    +			// Replace server-side written pluses with spaces.
    +			// If we can't decode the cookie, ignore it, it's unusable.
    +			// If we can't parse the cookie, ignore it, it's unusable.
    +			s = decodeURIComponent(s.replace(pluses, ' '));
    +			return config.json ? JSON.parse(s) : s;
    +		} catch(e) {}
    +	}
    +
    +	function read(s, converter) {
    +		var value = config.raw ? s : parseCookieValue(s);
    +		return $.isFunction(converter) ? converter(value) : value;
    +	}
    +
    +	var config = $.cookie = function (key, value, options) {
    +
    +		// Write
    +
    +		if (value !== undefined && !$.isFunction(value)) {
    +			options = $.extend({}, config.defaults, options);
    +
    +			if (typeof options.expires === 'number') {
    +				var days = options.expires, t = options.expires = new Date();
    +				t.setTime(+t + days * 864e+5);
    +			}
    +
    +			return (document.cookie = [
    +				encode(key), '=', stringifyCookieValue(value),
    +				options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
    +				options.path    ? '; path=' + options.path : '',
    +				options.domain  ? '; domain=' + options.domain : '',
    +				options.secure  ? '; secure' : ''
    +			].join(''));
    +		}
    +
    +		// Read
    +
    +		var result = key ? undefined : {};
    +
    +		// To prevent the for loop in the first place assign an empty array
    +		// in case there are no cookies at all. Also prevents odd result when
    +		// calling $.cookie().
    +		var cookies = document.cookie ? document.cookie.split('; ') : [];
    +
    +		for (var i = 0, l = cookies.length; i < l; i++) {
    +			var parts = cookies[i].split('=');
    +			var name = decode(parts.shift());
    +			var cookie = parts.join('=');
    +
    +			if (key && key === name) {
    +				// If second argument (value) is a function it's a converter...
    +				result = read(cookie, value);
    +				break;
    +			}
    +
    +			// Prevent storing a cookie that we couldn't decode.
    +			if (!key && (cookie = read(cookie)) !== undefined) {
    +				result[name] = cookie;
    +			}
    +		}
    +
    +		return result;
    +	};
    +
    +	config.defaults = {};
    +
    +	$.removeCookie = function (key, options) {
    +		if ($.cookie(key) === undefined) {
    +			return false;
    +		}
    +
    +		// Must not alter options, thus extending a fresh object...
    +		$.cookie(key, '', $.extend({}, options, { expires: -1 }));
    +		return !$.cookie(key);
    +	};
    +
    +}));
    diff --git a/fangija-zsyf/js/light7-2.js b/fangija-zsyf/js/light7-2.js
    new file mode 100644
    index 0000000..891d41f
    --- /dev/null
    +++ b/fangija-zsyf/js/light7-2.js
    @@ -0,0 +1,5474 @@
    +/*!
    + * =====================================================
    + * light7 V0.4.3 - http://light7.org/
    + *
    + * =====================================================
    + */
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  //全局配置
    +  var defaults = {
    +    autoInit: false, //自动初始化页面
    +    showPageLoadingIndicator: true, //push.js加载页面的时候显示一个加载提示
    +    router: true, //默认使用router
    +    swipePanel: "left", //滑动打开侧栏
    +    swipePanelOnlyClose: false,  //只允许滑动关闭,不允许滑动打开侧栏
    +    pushAnimationDuration: 400  //不要动这个,这是解决安卓 animationEnd 事件无法触发的bug
    +  };
    +
    +  $.smConfig = $.extend(defaults, $.config);
    +
    +}($);
    +
    +/*===========================
    +Device/OS Detection
    +===========================*/
    +/* global $:true */
    +;(function ($) {
    +    "use strict";
    +    var device = {};
    +    var ua = navigator.userAgent;
    +
    +    var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
    +    var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
    +    var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
    +    var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/);
    +
    +    device.ios = device.android = device.iphone = device.ipad = device.androidChrome = false;
    +    
    +    // Android
    +    if (android) {
    +        device.os = 'android';
    +        device.osVersion = android[2];
    +        device.android = true;
    +        device.androidChrome = ua.toLowerCase().indexOf('chrome') >= 0;
    +    }
    +    if (ipad || iphone || ipod) {
    +        device.os = 'ios';
    +        device.ios = true;
    +    }
    +    // iOS
    +    if (iphone && !ipod) {
    +        device.osVersion = iphone[2].replace(/_/g, '.');
    +        device.iphone = true;
    +    }
    +    if (ipad) {
    +        device.osVersion = ipad[2].replace(/_/g, '.');
    +        device.ipad = true;
    +    }
    +    if (ipod) {
    +        device.osVersion = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
    +        device.iphone = true;
    +    }
    +    // iOS 8+ changed UA
    +    if (device.ios && device.osVersion && ua.indexOf('Version/') >= 0) {
    +        if (device.osVersion.split('.')[0] === '10') {
    +            device.osVersion = ua.toLowerCase().split('version/')[1].split(' ')[0];
    +        }
    +    }
    +
    +    // Webview
    +    device.webView = (iphone || ipad || ipod) && ua.match(/.*AppleWebKit(?!.*Safari)/i);
    +        
    +    // Minimal UI
    +    if (device.os && device.os === 'ios') {
    +        var osVersionArr = device.osVersion.split('.');
    +        device.minimalUi = !device.webView &&
    +                            (ipod || iphone) &&
    +                            (osVersionArr[0] * 1 === 7 ? osVersionArr[1] * 1 >= 1 : osVersionArr[0] * 1 > 7) &&
    +                            $('meta[name="viewport"]').length > 0 && $('meta[name="viewport"]').attr('content').indexOf('minimal-ui') >= 0;
    +    }
    +
    +    // Check for status bar and fullscreen app mode
    +    var windowWidth = $(window).width();
    +    var windowHeight = $(window).height();
    +    device.statusBar = false;
    +    if (device.webView && (windowWidth * windowHeight === screen.width * screen.height)) {
    +        device.statusBar = true;
    +    }
    +    else {
    +        device.statusBar = false;
    +    }
    +
    +    // Classes
    +    var classNames = [];
    +
    +    // Pixel Ratio
    +    device.pixelRatio = window.devicePixelRatio || 1;
    +    classNames.push('pixel-ratio-' + Math.floor(device.pixelRatio));
    +    if (device.pixelRatio >= 2) {
    +        classNames.push('retina');
    +    }
    +
    +    // OS classes
    +    if (device.os) {
    +        classNames.push(device.os, device.os + '-' + device.osVersion.split('.')[0], device.os + '-' + device.osVersion.replace(/\./g, '-'));
    +        if (device.os === 'ios') {
    +            var major = parseInt(device.osVersion.split('.')[0], 10);
    +            for (var i = major - 1; i >= 6; i--) {
    +                classNames.push('ios-gt-' + i);
    +            }
    +        }
    +        
    +    }
    +    // Status bar classes
    +    if (device.statusBar) {
    +        classNames.push('with-statusbar-overlay');
    +    }
    +    else {
    +        $('html').removeClass('with-statusbar-overlay');
    +    }
    +
    +    // Add html classes
    +    if (classNames.length > 0) $('html').addClass(classNames.join(' '));
    +
    +    $.device = device;
    +})($);
    +
    +/* global $:true */
    ++ function($) {
    +  "use strict";
    +
    +  //比较一个字符串版本号
    +  //a > b === 1
    +  //a = b === 0
    +  //a < b === -1
    +  $.compareVersion = function(a, b) {
    +    var as = a.split('.');
    +    var bs = b.split('.');
    +    if (a === b) return 0;
    +
    +    for (var i = 0; i < as.length; i++) {
    +      var x = parseInt(as[i]);
    +      if (!bs[i]) return 1;
    +      var y = parseInt(bs[i]);
    +      if (x < y) return -1;
    +      if (x > y) return 1;
    +    }
    +    return 1;
    +  };
    +
    +  $.getTouchPosition = function(e) {
    +    e = e.originalEvent || e; //jquery wrap the originevent
    +    if(e.type === 'touchstart' || e.type === 'touchmove' || e.type === 'touchend') {
    +      return {
    +        x: e.targetTouches[0].pageX,
    +        y: e.targetTouches[0].pageY
    +      };
    +    } else {
    +      return {
    +        x: e.pageX,
    +        y: e.pageY
    +      };
    +    }
    +  };
    +
    +}($);
    +
    +//     Zepto.js
    +//     (c) 2010-2015 Thomas Fuchs
    +//     Zepto.js may be freely distributed under the MIT license.
    ++ function($) {
    +  "use strict";
    +    function detect(ua, platform) {
    +        var os = this.os = {}, // jshint ignore:line
    +            browser = this.browser = {},// jshint ignore:line
    +            webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/),
    +            android = ua.match(/(Android);?[\s\/]+([\d.]+)?/),
    +            osx = !!ua.match(/\(Macintosh\; Intel /),
    +            ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
    +            ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/),
    +            iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),
    +            webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),
    +            win = /Win\d{2}|Windows/.test(platform),
    +            wp = ua.match(/Windows Phone ([\d.]+)/),
    +            touchpad = webos && ua.match(/TouchPad/),
    +            kindle = ua.match(/Kindle\/([\d.]+)/),
    +            silk = ua.match(/Silk\/([\d._]+)/),
    +            blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/),
    +            bb10 = ua.match(/(BB10).*Version\/([\d.]+)/),
    +            rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/),
    +            playbook = ua.match(/PlayBook/),
    +            chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/),
    +            firefox = ua.match(/Firefox\/([\d.]+)/),
    +            firefoxos = ua.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),
    +            ie = ua.match(/MSIE\s([\d.]+)/) || ua.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),
    +            webview = !chrome && ua.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),
    +            safari = webview || ua.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);
    +
    +        // Todo: clean this up with a better OS/browser seperation:
    +        // - discern (more) between multiple browsers on android
    +        // - decide if kindle fire in silk mode is android or not
    +        // - Firefox on Android doesn't specify the Android version
    +        // - possibly devide in os, device and browser hashes
    +
    +        if (browser.webkit = !!webkit) browser.version = webkit[1]; // jshint ignore:line
    +
    +        if (android) os.android = true, os.version = android[2];
    +        if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.');
    +        if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.');
    +        if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
    +        if (wp) os.wp = true, os.version = wp[1];
    +        if (webos) os.webos = true, os.version = webos[2];
    +        if (touchpad) os.touchpad = true;
    +        if (blackberry) os.blackberry = true, os.version = blackberry[2];
    +        if (bb10) os.bb10 = true, os.version = bb10[2];
    +        if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2];
    +        if (playbook) browser.playbook = true;
    +        if (kindle) os.kindle = true, os.version = kindle[1];
    +        if (silk) browser.silk = true, browser.version = silk[1];
    +        if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true;
    +        if (chrome) browser.chrome = true, browser.version = chrome[1];
    +        if (firefox) browser.firefox = true, browser.version = firefox[1];
    +        if (firefoxos) os.firefoxos = true, os.version = firefoxos[1];
    +        if (ie) browser.ie = true, browser.version = ie[1];
    +        if (safari && (osx || os.ios || win)) {
    +            browser.safari = true;
    +            if (!os.ios) browser.version = safari[1];
    +        }
    +        if (webview) browser.webview = true;
    +
    +        os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) ||
    +            (firefox && ua.match(/Tablet/)) || (ie && !ua.match(/Phone/) && ua.match(/Touch/)));
    +        os.phone = !!(!os.tablet && !os.ipod && (android || iphone || webos || blackberry || bb10 ||
    +            (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) ||
    +            (firefox && ua.match(/Mobile/)) || (ie && ua.match(/Touch/))));
    +    }
    +
    +    detect.call($, navigator.userAgent, navigator.platform);
    +        // make available to unit tests
    +    $.__detect = detect;
    +
    +}($); // jshint ignore:line
    +
    +/* global $:true */
    +/* global WebKitCSSMatrix:true */
    +
    +(function($) {
    +     "use strict";
    +    ['width', 'height'].forEach(function(dimension) {
    +        var  Dimension = dimension.replace(/./, function(m) {
    +            return m[0].toUpperCase();
    +        });
    +        $.fn['outer' + Dimension] = function(margin) {
    +            var elem = this;
    +            if (elem) {
    +                var size = elem[dimension]();
    +                var sides = {
    +                    'width': ['left', 'right'],
    +                    'height': ['top', 'bottom']
    +                };
    +                sides[dimension].forEach(function(side) {
    +                    if (margin) size += parseInt(elem.css('margin-' + side), 10);
    +                });
    +                return size;
    +            } else {
    +                return null;
    +            }
    +        };
    +    });
    +
    +    $.noop = function() {};
    +    
    +    //support
    +    $.support = (function() {
    +        var support = {
    +            touch: !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch)
    +        };
    +        return support;
    +    })();
    +
    +    $.touchEvents = {
    +        start: $.support.touch ? 'touchstart' : 'mousedown',
    +        move: $.support.touch ? 'touchmove' : 'mousemove',
    +        end: $.support.touch ? 'touchend' : 'mouseup'
    +    };
    +
    +    $.getTranslate = function (el, axis) {
    +      var matrix, curTransform, curStyle, transformMatrix;
    +
    +      // automatic axis detection
    +      if (typeof axis === 'undefined') {
    +        axis = 'x';
    +      }
    +
    +      curStyle = window.getComputedStyle(el, null);
    +      if (window.WebKitCSSMatrix) {
    +        // Some old versions of Webkit choke when 'none' is passed; pass
    +        // empty string instead in this case
    +        transformMatrix = new WebKitCSSMatrix(curStyle.webkitTransform === 'none' ? '' : curStyle.webkitTransform);
    +      }
    +      else {
    +        transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform  || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
    +        matrix = transformMatrix.toString().split(',');
    +      }
    +
    +      if (axis === 'x') {
    +        //Latest Chrome and webkits Fix
    +        if (window.WebKitCSSMatrix)
    +          curTransform = transformMatrix.m41;
    +        //Crazy IE10 Matrix
    +        else if (matrix.length === 16)
    +          curTransform = parseFloat(matrix[12]);
    +        //Normal Browsers
    +        else
    +          curTransform = parseFloat(matrix[4]);
    +      }
    +      if (axis === 'y') {
    +        //Latest Chrome and webkits Fix
    +        if (window.WebKitCSSMatrix)
    +          curTransform = transformMatrix.m42;
    +        //Crazy IE10 Matrix
    +        else if (matrix.length === 16)
    +          curTransform = parseFloat(matrix[13]);
    +        //Normal Browsers
    +        else
    +          curTransform = parseFloat(matrix[5]);
    +      }
    +
    +      return curTransform || 0;
    +    };
    +    $.requestAnimationFrame = function (callback) {
    +      if (window.requestAnimationFrame) return window.requestAnimationFrame(callback);
    +      else if (window.webkitRequestAnimationFrame) return window.webkitRequestAnimationFrame(callback);
    +      else if (window.mozRequestAnimationFrame) return window.mozRequestAnimationFrame(callback);
    +      else {
    +        return window.setTimeout(callback, 1000 / 60);
    +      }
    +    };
    +
    +    $.cancelAnimationFrame = function (id) {
    +      if (window.cancelAnimationFrame) return window.cancelAnimationFrame(id);
    +      else if (window.webkitCancelAnimationFrame) return window.webkitCancelAnimationFrame(id);
    +      else if (window.mozCancelAnimationFrame) return window.mozCancelAnimationFrame(id);
    +      else {
    +        return window.clearTimeout(id);
    +      }  
    +    };
    +
    +
    +    $.fn.transitionEnd = function(callback) {
    +        var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'],
    +            i, dom = this;
    +
    +        function fireCallBack(e) {
    +            /*jshint validthis:true */
    +            if (e.target !== this) return;
    +            callback.call(this, e);
    +            for (i = 0; i < events.length; i++) {
    +                dom.off(events[i], fireCallBack);
    +            }
    +        }
    +        if (callback) {
    +            for (i = 0; i < events.length; i++) {
    +                dom.on(events[i], fireCallBack);
    +            }
    +        }
    +        return this;
    +    };
    +    $.fn.dataset = function() {
    +        var el = this[0];
    +        if (el) {
    +            var dataset = {};
    +            if (el.dataset) {
    +
    +                for (var dataKey in el.dataset) { // jshint ignore:line
    +                    dataset[dataKey] = el.dataset[dataKey];
    +                }
    +            } else {
    +                for (var i = 0; i < el.attributes.length; i++) {
    +                    var attr = el.attributes[i];
    +                    if (attr.name.indexOf('data-') >= 0) {
    +                        dataset[$.toCamelCase(attr.name.split('data-')[1])] = attr.value;
    +                    }
    +                }
    +            }
    +            for (var key in dataset) {
    +                if (dataset[key] === 'false') dataset[key] = false;
    +                else if (dataset[key] === 'true') dataset[key] = true;
    +                else if (parseFloat(dataset[key]) === dataset[key] * 1) dataset[key] = dataset[key] * 1;
    +            }
    +            return dataset;
    +        } else return undefined;
    +    };
    +    $.fn.data = function(key, value) {
    +        if (typeof value === 'undefined') {
    +            // Get value
    +            if (this[0] && this[0].getAttribute) {
    +                var dataKey = this[0].getAttribute('data-' + key);
    +
    +                if (dataKey) {
    +                    return dataKey;
    +                } else if (this[0].smElementDataStorage && (key in this[0].smElementDataStorage)) {
    +                
    +
    +                    return this[0].smElementDataStorage[key];
    +
    +                } else {
    +                    return undefined;
    +                }
    +            } else return undefined;
    +
    +        } else {
    +            // Set value
    +            for (var i = 0; i < this.length; i++) {
    +                var el = this[i];
    +                if (!el.smElementDataStorage) el.smElementDataStorage = {};
    +                el.smElementDataStorage[key] = value;
    +            }
    +            return this;
    +        }
    +    };
    +    $.fn.animationEnd = function(callback) {
    +        var events = ['webkitAnimationEnd', 'OAnimationEnd', 'MSAnimationEnd', 'animationend'],
    +            i, dom = this;
    +
    +        function fireCallBack(e) {
    +            callback(e);
    +            for (i = 0; i < events.length; i++) {
    +                dom.off(events[i], fireCallBack);
    +            }
    +        }
    +        if (callback) {
    +            for (i = 0; i < events.length; i++) {
    +                dom.on(events[i], fireCallBack);
    +            }
    +        }
    +        return this;
    +    };
    +    $.fn.transition = function(duration) {
    +        if (typeof duration !== 'string') {
    +            duration = duration + 'ms';
    +        }
    +        for (var i = 0; i < this.length; i++) {
    +            var elStyle = this[i].style;
    +            elStyle.webkitTransitionDuration = elStyle.MsTransitionDuration = elStyle.msTransitionDuration = elStyle.MozTransitionDuration = elStyle.OTransitionDuration = elStyle.transitionDuration = duration;
    +        }
    +        return this;
    +    };
    +    $.fn.transform = function(transform) {
    +        for (var i = 0; i < this.length; i++) {
    +            var elStyle = this[i].style;
    +            elStyle.webkitTransform = elStyle.MsTransform = elStyle.msTransform = elStyle.MozTransform = elStyle.OTransform = elStyle.transform = transform;
    +        }
    +        return this;
    +    };
    +    $.fn.prevAll = function (selector) {
    +      var prevEls = [];
    +      var el = this[0];
    +      if (!el) return $([]);
    +      while (el.previousElementSibling) {
    +        var prev = el.previousElementSibling;
    +        if (selector) {
    +          if($(prev).is(selector)) prevEls.push(prev);
    +        }
    +        else prevEls.push(prev);
    +        el = prev;
    +      }
    +      return $(prevEls);
    +    };
    +    $.fn.nextAll = function (selector) {
    +      var nextEls = [];
    +      var el = this[0];
    +      if (!el) return $([]);
    +      while (el.nextElementSibling) {
    +        var next = el.nextElementSibling;
    +        if (selector) {
    +          if($(next).is(selector)) nextEls.push(next);
    +        }
    +        else nextEls.push(next);
    +        el = next;
    +      }
    +      return $(nextEls);
    +    };
    +
    +    //重置zepto的show方法,防止有些人引用的版本中 show 方法操作 opacity 属性影响动画执行
    +    $.fn.show = function(){
    +      var elementDisplay = {};
    +      function defaultDisplay(nodeName) {
    +        var element, display;
    +        if (!elementDisplay[nodeName]) {
    +          element = document.createElement(nodeName);
    +          document.body.appendChild(element);
    +          display = getComputedStyle(element, '').getPropertyValue("display");
    +          element.parentNode.removeChild(element);
    +          display === "none" && (display = "block");
    +          elementDisplay[nodeName] = display;
    +        }
    +        return elementDisplay[nodeName];
    +      }
    +
    +      return this.each(function(){
    +        this.style.display === "none" && (this.style.display = '');
    +        if (getComputedStyle(this, '').getPropertyValue("display") === "none");
    +          this.style.display = defaultDisplay(this.nodeName);
    +      });
    +    };
    +
    +    $.fn.scrollHeight = function() {
    +      return this[0].scrollHeight;
    +    };
    +})($);
    +
    +/* global $:true */
    +;(function ($) {
    +	'use strict';
    +
    +	/**
    +	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
    +	 *
    +	 * @codingstandard ftlabs-jsv2
    +	 * @copyright The Financial Times Limited [All Rights Reserved]
    +	 * @license MIT License (see LICENSE.txt)
    +	 */
    +
    +	/*jslint browser:true, node:true, elision:true*/
    +	/*global Event, Node*/
    +
    +
    +	/**
    +	 * Instantiate fast-clicking listeners on the specified layer.
    +	 *
    +	 * @constructor
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	function FastClick(layer, options) {
    +		var oldOnClick;
    +
    +		options = options || {};
    +
    +		/**
    +		 * Whether a click is currently being tracked.
    +		 *
    +		 * @type boolean
    +		 */
    +		this.trackingClick = false;
    +
    +
    +		/**
    +		 * Timestamp for when click tracking started.
    +		 *
    +		 * @type number
    +		 */
    +		this.trackingClickStart = 0;
    +
    +
    +		/**
    +		 * The element being tracked for a click.
    +		 *
    +		 * @type EventTarget
    +		 */
    +		this.targetElement = null;
    +
    +
    +		/**
    +		 * X-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartX = 0;
    +
    +
    +		/**
    +		 * Y-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartY = 0;
    +
    +
    +		/**
    +		 * ID of the last touch, retrieved from Touch.identifier.
    +		 *
    +		 * @type number
    +		 */
    +		this.lastTouchIdentifier = 0;
    +
    +
    +		/**
    +		 * Touchmove boundary, beyond which a click will be cancelled.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchBoundary = options.touchBoundary || 10;
    +
    +
    +		/**
    +		 * The FastClick layer.
    +		 *
    +		 * @type Element
    +		 */
    +		this.layer = layer;
    +
    +		/**
    +		 * The minimum time between tap(touchstart and touchend) events
    +		 *
    +		 * @type number
    +		 */
    +		this.tapDelay = options.tapDelay || 200;
    +
    +		/**
    +		 * The maximum time for a tap
    +		 *
    +		 * @type number
    +		 */
    +		this.tapTimeout = options.tapTimeout || 700;
    +
    +		if (FastClick.notNeeded(layer)) {
    +			return;
    +		}
    +
    +		// Some old versions of Android don't have Function.prototype.bind
    +		function bind(method, context) {
    +			return function() { return method.apply(context, arguments); };
    +		}
    +
    +
    +		var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
    +		var context = this;
    +		for (var i = 0, l = methods.length; i < l; i++) {
    +			context[methods[i]] = bind(context[methods[i]], context);
    +		}
    +
    +		// Set up event handlers as required
    +		if (deviceIsAndroid) {
    +			layer.addEventListener('mouseover', this.onMouse, true);
    +			layer.addEventListener('mousedown', this.onMouse, true);
    +			layer.addEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.addEventListener('click', this.onClick, true);
    +		layer.addEventListener('touchstart', this.onTouchStart, false);
    +		layer.addEventListener('touchmove', this.onTouchMove, false);
    +		layer.addEventListener('touchend', this.onTouchEnd, false);
    +		layer.addEventListener('touchcancel', this.onTouchCancel, false);
    +
    +		// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +		// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
    +		// layer when they are cancelled.
    +		if (!Event.prototype.stopImmediatePropagation) {
    +			layer.removeEventListener = function(type, callback, capture) {
    +				var rmv = Node.prototype.removeEventListener;
    +				if (type === 'click') {
    +					rmv.call(layer, type, callback.hijacked || callback, capture);
    +				} else {
    +					rmv.call(layer, type, callback, capture);
    +				}
    +			};
    +
    +			layer.addEventListener = function(type, callback, capture) {
    +				var adv = Node.prototype.addEventListener;
    +				if (type === 'click') {
    +					adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
    +						if (!event.propagationStopped) {
    +							callback(event);
    +						}
    +					}), capture);
    +				} else {
    +					adv.call(layer, type, callback, capture);
    +				}
    +			};
    +		}
    +
    +		// If a handler is already declared in the element's onclick attribute, it will be fired before
    +		// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
    +		// adding it as listener.
    +		if (typeof layer.onclick === 'function') {
    +
    +			// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
    +			// - the old one won't work if passed to addEventListener directly.
    +			oldOnClick = layer.onclick;
    +			layer.addEventListener('click', function(event) {
    +				oldOnClick(event);
    +			}, false);
    +			layer.onclick = null;
    +		}
    +	}
    +
    +	/**
    +	* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
    +	*
    +	* @type boolean
    +	*/
    +	var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
    +
    +	/**
    +	 * Android requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS 4 requires an exception for select elements.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
    +
    +
    +	/**
    +	 * iOS 6.0-7.* requires the target element to be manually derived
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
    +
    +	/**
    +	 * BlackBerry requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
    +
    +	/**
    +	 * Determine whether a given element requires a native click.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element needs a native click
    +	 */
    +	FastClick.prototype.needsClick = function(target) {
    +
    +		switch (target.nodeName.toLowerCase()) {
    +
    +		// Don't send a synthetic click to disabled inputs (issue #62)
    +		case 'button':
    +		case 'select':
    +		case 'textarea':
    +			if (target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'input':
    +
    +			// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
    +			if ((deviceIsIOS && target.type === 'file') || target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'label':
    +		case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
    +		case 'video':
    +			return true;
    +    default:
    +		}
    +
    +
    +    
    +
    +		return (/\bneedsclick\b/).test(target.className);
    +	};
    +
    +
    +	/**
    +	 * Determine whether a given element requires a call to focus to simulate click into element.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
    +	 */
    +	FastClick.prototype.needsFocus = function(target) {
    +		switch (target.nodeName.toLowerCase()) {
    +		case 'textarea':
    +			return true;
    +		case 'select':
    +			return !deviceIsAndroid;
    +		case 'input':
    +			switch (target.type) {
    +			case 'button':
    +			case 'checkbox':
    +			case 'file':
    +			case 'image':
    +			case 'radio':
    +			case 'submit':
    +				return false;
    +			}
    +
    +			// No point in attempting to focus disabled inputs
    +			return !target.disabled && !target.readOnly;
    +		default:
    +			return (/\bneedsfocus\b/).test(target.className);
    +		}
    +	};
    +
    +
    +	/**
    +	 * Send a click event to the specified element.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 * @param {Event} event
    +	 */
    +	FastClick.prototype.sendClick = function(targetElement, event) {
    +		var clickEvent, touch;
    +
    +		// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
    +		if (document.activeElement && document.activeElement !== targetElement) {
    +			document.activeElement.blur();
    +		}
    +
    +		touch = event.changedTouches[0];
    +
    +		// Synthesise a click event, with an extra attribute so it can be tracked
    +		clickEvent = document.createEvent('MouseEvents');
    +		clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
    +		clickEvent.forwardedTouchEvent = true;
    +		targetElement.dispatchEvent(clickEvent);
    +	};
    +
    +	FastClick.prototype.determineEventType = function(targetElement) {
    +
    +		//Issue #159: Android Chrome Select Box does not open with a synthetic click event
    +		if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
    +			return 'mousedown';
    +		}
    +
    +		return 'click';
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.focus = function(targetElement) {
    +		var length;
    +
    +		// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
    +		if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
    +			length = targetElement.value.length;
    +			targetElement.setSelectionRange(length, length);
    +		} else {
    +			targetElement.focus();
    +		}
    +	};
    +
    +
    +	/**
    +	 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.updateScrollParent = function(targetElement) {
    +		var scrollParent, parentElement;
    +
    +		scrollParent = targetElement.fastClickScrollParent;
    +
    +		// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
    +		// target element was moved to another parent.
    +		if (!scrollParent || !scrollParent.contains(targetElement)) {
    +			parentElement = targetElement;
    +			do {
    +				if (parentElement.scrollHeight > parentElement.offsetHeight) {
    +					scrollParent = parentElement;
    +					targetElement.fastClickScrollParent = parentElement;
    +					break;
    +				}
    +
    +				parentElement = parentElement.parentElement;
    +			} while (parentElement);
    +		}
    +
    +		// Always update the scroll top tracker if possible.
    +		if (scrollParent) {
    +			scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
    +		}
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget} targetElement
    +	 * @returns {Element|EventTarget}
    +	 */
    +	FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
    +
    +		// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
    +		if (eventTarget.nodeType === Node.TEXT_NODE) {
    +			return eventTarget.parentNode;
    +		}
    +
    +		return eventTarget;
    +	};
    +
    +
    +	/**
    +	 * On touch start, record the position and scroll offset.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchStart = function(event) {
    +		var targetElement, touch, selection;
    +
    +		// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
    +		if (event.targetTouches.length > 1) {
    +			return true;
    +		}
    +
    +		targetElement = this.getTargetElementFromEventTarget(event.target);
    +		touch = event.targetTouches[0];
    +
    +		if (deviceIsIOS) {
    +
    +			// Only trusted events will deselect text on iOS (issue #49)
    +			selection = window.getSelection();
    +			if (selection.rangeCount && !selection.isCollapsed) {
    +				return true;
    +			}
    +
    +			if (!deviceIsIOS4) {
    +
    +				// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
    +				// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
    +				// with the same identifier as the touch event that previously triggered the click that triggered the alert.
    +				// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
    +				// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
    +				// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
    +				// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
    +				// random integers, it's safe to to continue if the identifier is 0 here.
    +				if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
    +					event.preventDefault();
    +					return false;
    +				}
    +
    +				this.lastTouchIdentifier = touch.identifier;
    +
    +				// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
    +				// 1) the user does a fling scroll on the scrollable layer
    +				// 2) the user stops the fling scroll with another tap
    +				// then the event.target of the last 'touchend' event will be the element that was under the user's finger
    +				// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
    +				// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
    +				this.updateScrollParent(targetElement);
    +			}
    +		}
    +
    +		this.trackingClick = true;
    +		this.trackingClickStart = event.timeStamp;
    +		this.targetElement = targetElement;
    +
    +		this.touchStartX = touch.pageX;
    +		this.touchStartY = touch.pageY;
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			event.preventDefault();
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.touchHasMoved = function(event) {
    +		var touch = event.changedTouches[0], boundary = this.touchBoundary;
    +
    +		if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Update the last position.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchMove = function(event) {
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// If the touch has moved, cancel the click tracking
    +		if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
    +			this.trackingClick = false;
    +			this.targetElement = null;
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Attempt to find the labelled control for the given label element.
    +	 *
    +	 * @param {EventTarget|HTMLLabelElement} labelElement
    +	 * @returns {Element|null}
    +	 */
    +	FastClick.prototype.findControl = function(labelElement) {
    +
    +		// Fast path for newer browsers supporting the HTML5 control attribute
    +		if (labelElement.control !== undefined) {
    +			return labelElement.control;
    +		}
    +
    +		// All browsers under test that support touch events also support the HTML5 htmlFor attribute
    +		if (labelElement.htmlFor) {
    +			return document.getElementById(labelElement.htmlFor);
    +		}
    +
    +		// If no for attribute exists, attempt to retrieve the first labellable descendant element
    +		// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
    +		return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
    +	};
    +
    +
    +	/**
    +	 * On touch end, determine whether to send a click event at once.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchEnd = function(event) {
    +		var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
    +
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			this.cancelNextClick = true;
    +			return true;
    +		}
    +
    +		if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
    +			return true;
    +		}
    +
    +		// Reset to prevent wrong click cancel on input (issue #156).
    +		this.cancelNextClick = false;
    +
    +		this.lastClickTime = event.timeStamp;
    +
    +		trackingClickStart = this.trackingClickStart;
    +		this.trackingClick = false;
    +		this.trackingClickStart = 0;
    +
    +		// On some iOS devices, the targetElement supplied with the event is invalid if the layer
    +		// is performing a transition or scroll, and has to be re-detected manually. Note that
    +		// for this to function correctly, it must be called *after* the event target is checked!
    +		// See issue #57; also filed as rdar://13048589 .
    +		if (deviceIsIOSWithBadTarget) {
    +			touch = event.changedTouches[0];
    +
    +			// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
    +			targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
    +			targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
    +		}
    +
    +		targetTagName = targetElement.tagName.toLowerCase();
    +		if (targetTagName === 'label') {
    +			forElement = this.findControl(targetElement);
    +			if (forElement) {
    +				this.focus(targetElement);
    +				if (deviceIsAndroid) {
    +					return false;
    +				}
    +
    +				targetElement = forElement;
    +			}
    +		} else if (this.needsFocus(targetElement)) {
    +
    +			// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
    +			// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
    +			if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
    +				this.targetElement = null;
    +				return false;
    +			}
    +
    +			this.focus(targetElement);
    +			this.sendClick(targetElement, event);
    +
    +			// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
    +			// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
    +			if (!deviceIsIOS || targetTagName !== 'select') {
    +				this.targetElement = null;
    +				event.preventDefault();
    +			}
    +
    +			return false;
    +    } else {
    +      var parent = targetElement;
    +      while(parent && (parent.tagName.toUpperCase() !== "BODY")) {
    +        if(parent.tagName.toUpperCase() === "LABEL") {
    +          $(parent).find("input").click();
    +        }
    +        parent = parent.parentNode;
    +      }
    +    }
    +
    +		if (deviceIsIOS && !deviceIsIOS4) {
    +
    +			// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
    +			// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
    +			scrollParent = targetElement.fastClickScrollParent;
    +			if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
    +				return true;
    +			}
    +		}
    +
    +		// Prevent the actual click from going though - unless the target node is marked as requiring
    +		// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
    +		if (!this.needsClick(targetElement)) {
    +			event.preventDefault();
    +			this.sendClick(targetElement, event);
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * On touch cancel, stop tracking the click.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.onTouchCancel = function() {
    +		this.trackingClick = false;
    +		this.targetElement = null;
    +	};
    +
    +
    +	/**
    +	 * Determine mouse events which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onMouse = function(event) {
    +
    +		// If a target element was never set (because a touch event was never fired) allow the event
    +		if (!this.targetElement) {
    +			return true;
    +		}
    +
    +		if (event.forwardedTouchEvent) {
    +			return true;
    +		}
    +
    +		// Programmatically generated events targeting a specific element should be permitted
    +		if (!event.cancelable) {
    +			return true;
    +		}
    +
    +		// Derive and check the target element to see whether the mouse event needs to be permitted;
    +		// unless explicitly enabled, prevent non-touch click events from triggering actions,
    +		// to prevent ghost/doubleclicks.
    +		if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
    +
    +			// Prevent any user-added listeners declared on FastClick element from being fired.
    +			if (event.stopImmediatePropagation) {
    +				event.stopImmediatePropagation();
    +			} else {
    +
    +				// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +				event.propagationStopped = true;
    +			}
    +
    +			// Cancel the event
    +			event.stopPropagation();
    +			event.preventDefault();
    +
    +			return false;
    +		}
    +
    +		// If the mouse event is permitted, return true for the action to go through.
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * On actual clicks, determine whether this is a touch-generated click, a click action occurring
    +	 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
    +	 * an actual click which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onClick = function(event) {
    +		var permitted;
    +
    +		// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
    +		if (this.trackingClick) {
    +			this.targetElement = null;
    +			this.trackingClick = false;
    +			return true;
    +		}
    +
    +		// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
    +		if (event.target.type === 'submit' && event.detail === 0) {
    +			return true;
    +		}
    +
    +		permitted = this.onMouse(event);
    +
    +		// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
    +		if (!permitted) {
    +			this.targetElement = null;
    +		}
    +
    +		// If clicks are permitted, return true for the action to go through.
    +		return permitted;
    +	};
    +
    +
    +	/**
    +	 * Remove all FastClick's event listeners.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.destroy = function() {
    +		var layer = this.layer;
    +
    +		if (deviceIsAndroid) {
    +			layer.removeEventListener('mouseover', this.onMouse, true);
    +			layer.removeEventListener('mousedown', this.onMouse, true);
    +			layer.removeEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.removeEventListener('click', this.onClick, true);
    +		layer.removeEventListener('touchstart', this.onTouchStart, false);
    +		layer.removeEventListener('touchmove', this.onTouchMove, false);
    +		layer.removeEventListener('touchend', this.onTouchEnd, false);
    +		layer.removeEventListener('touchcancel', this.onTouchCancel, false);
    +	};
    +
    +
    +	/**
    +	 * Check whether FastClick is needed.
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 */
    +	FastClick.notNeeded = function(layer) {
    +		var metaViewport;
    +		var chromeVersion;
    +		var blackberryVersion;
    +		var firefoxVersion;
    +
    +		// Devices that don't support touch don't need FastClick
    +		if (typeof window.ontouchstart === 'undefined') {
    +			return true;
    +		}
    +
    +		// Chrome version - zero for other browsers
    +		chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (chromeVersion) {
    +
    +			if (deviceIsAndroid) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// Chrome 32 and above with width=device-width or less don't need FastClick
    +					if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +
    +			// Chrome desktop doesn't need FastClick (issue #15)
    +			} else {
    +				return true;
    +			}
    +		}
    +
    +		if (deviceIsBlackBerry10) {
    +			blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
    +
    +			// BlackBerry 10.3+ does not require Fastclick library.
    +			// https://github.com/ftlabs/fastclick/issues/251
    +			if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// user-scalable=no eliminates click delay.
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// width=device-width (or less than device-width) eliminates click delay.
    +					if (document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +			}
    +		}
    +
    +		// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
    +		if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		// Firefox version - zero for other browsers
    +		firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (firefoxVersion >= 27) {
    +			// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
    +
    +			metaViewport = document.querySelector('meta[name=viewport]');
    +			if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
    +				return true;
    +			}
    +		}
    +
    +		// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
    +		// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
    +		if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Factory method for creating a FastClick object
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	FastClick.attach = function(layer, options) {
    +		return new FastClick(layer, options);
    +	};
    +
    +  //直接绑定
    +  $(function() {
    +    FastClick.attach(document.body);
    +  });
    +}($));
    +
    +/*===========================
    +  Template7 Template engine
    +  ===========================*/
    +/* global $:true */
    +/* jshint unused:false */
    +/* jshint forin:false */
    ++function ($) {
    +  "use strict";
    +  $.Template7 = $.t7 = (function () {
    +    function isArray(arr) {
    +      return Object.prototype.toString.apply(arr) === '[object Array]';
    +    }
    +    function isObject(obj) {
    +      return obj instanceof Object;
    +    }
    +    function isFunction(func) {
    +      return typeof func === 'function';
    +    }
    +    var cache = {};
    +    function helperToSlices(string) {
    +      var helperParts = string.replace(/[{}#}]/g, '').split(' ');
    +      var slices = [];
    +      var shiftIndex, i, j;
    +      for (i = 0; i < helperParts.length; i++) {
    +        var part = helperParts[i];
    +        if (i === 0) slices.push(part);
    +        else {
    +          if (part.indexOf('"') === 0) {
    +            // Plain String
    +            if (part.match(/"/g).length === 2) {
    +              // One word string
    +              slices.push(part);
    +            }
    +            else {
    +              // Find closed Index
    +              shiftIndex = 0;
    +              for (j = i + 1; j < helperParts.length; j++) {
    +                part += ' ' + helperParts[j];
    +                if (helperParts[j].indexOf('"') >= 0) {
    +                  shiftIndex = j;
    +                  slices.push(part);
    +                  break;
    +                }
    +              }
    +              if (shiftIndex) i = shiftIndex;
    +            }
    +          }
    +          else {
    +            if (part.indexOf('=') > 0) {
    +              // Hash
    +              var hashParts = part.split('=');
    +              var hashName = hashParts[0];
    +              var hashContent = hashParts[1];
    +              if (hashContent.match(/"/g).length !== 2) {
    +                shiftIndex = 0;
    +                for (j = i + 1; j < helperParts.length; j++) {
    +                  hashContent += ' ' + helperParts[j];
    +                  if (helperParts[j].indexOf('"') >= 0) {
    +                    shiftIndex = j;
    +                    break;
    +                  }
    +                }
    +                if (shiftIndex) i = shiftIndex;
    +              }
    +              var hash = [hashName, hashContent.replace(/"/g,'')];
    +              slices.push(hash);
    +            }
    +            else {
    +              // Plain variable
    +              slices.push(part);
    +            }
    +          }
    +        }
    +      }
    +      return slices;
    +    }
    +    function stringToBlocks(string) {
    +      var blocks = [], i, j, k;
    +      if (!string) return [];
    +      var _blocks = string.split(/({{[^{^}]*}})/);
    +      for (i = 0; i < _blocks.length; i++) {
    +        var block = _blocks[i];
    +        if (block === '') continue;
    +        if (block.indexOf('{{') < 0) {
    +          blocks.push({
    +            type: 'plain',
    +            content: block
    +          });
    +        }
    +        else {
    +          if (block.indexOf('{/') >= 0) {
    +            continue;
    +          }
    +          if (block.indexOf('{#') < 0 && block.indexOf(' ') < 0 && block.indexOf('else') < 0) {
    +            // Simple variable
    +            blocks.push({
    +              type: 'variable',
    +              contextName: block.replace(/[{}]/g, '')
    +            });
    +            continue;
    +          }
    +          // Helpers
    +          var helperSlices = helperToSlices(block);
    +          var helperName = helperSlices[0];
    +          var helperContext = [];
    +          var helperHash = {};
    +          for (j = 1; j < helperSlices.length; j++) {
    +            var slice = helperSlices[j];
    +            if (isArray(slice)) {
    +              // Hash
    +              helperHash[slice[0]] = slice[1] === 'false' ? false : slice[1];
    +            }
    +            else {
    +              helperContext.push(slice);
    +            }
    +          }
    +
    +          if (block.indexOf('{#') >= 0) {
    +            // Condition/Helper
    +            var helperStartIndex = i;
    +            var helperContent = '';
    +            var elseContent = '';
    +            var toSkip = 0;
    +            var shiftIndex;
    +            var foundClosed = false, foundElse = false, foundClosedElse = false, depth = 0;
    +            for (j = i + 1; j < _blocks.length; j++) {
    +              if (_blocks[j].indexOf('{{#') >= 0) {
    +                depth ++;
    +              }
    +              if (_blocks[j].indexOf('{{/') >= 0) {
    +                depth --;
    +              }
    +              if (_blocks[j].indexOf('{{#' + helperName) >= 0) {
    +                helperContent += _blocks[j];
    +                if (foundElse) elseContent += _blocks[j];
    +                toSkip ++;
    +              }
    +              else if (_blocks[j].indexOf('{{/' + helperName) >= 0) {
    +                if (toSkip > 0) {
    +                  toSkip--;
    +                  helperContent += _blocks[j];
    +                  if (foundElse) elseContent += _blocks[j];
    +                }
    +                else {
    +                  shiftIndex = j;
    +                  foundClosed = true;
    +                  break;
    +                }
    +              }
    +              else if (_blocks[j].indexOf('else') >= 0 && depth === 0) {
    +                foundElse = true;
    +              }
    +              else {
    +                if (!foundElse) helperContent += _blocks[j];
    +                if (foundElse) elseContent += _blocks[j];
    +              }
    +
    +            }
    +            if (foundClosed) {
    +              if (shiftIndex) i = shiftIndex;
    +              blocks.push({
    +                type: 'helper',
    +                helperName: helperName,
    +                contextName: helperContext,
    +                content: helperContent,
    +                inverseContent: elseContent,
    +                hash: helperHash
    +              });
    +            }
    +          }
    +          else if (block.indexOf(' ') > 0) {
    +            blocks.push({
    +              type: 'helper',
    +              helperName: helperName,
    +              contextName: helperContext,
    +              hash: helperHash
    +            });
    +          }
    +        }
    +      }
    +      return blocks;
    +    }
    +    var Template7 = function (template) {
    +      var t = this;
    +      t.template = template;
    +
    +      function getCompileFn(block, depth) {
    +        if (block.content) return compile(block.content, depth);
    +        else return function () {return ''; };
    +      }
    +      function getCompileInverse(block, depth) {
    +        if (block.inverseContent) return compile(block.inverseContent, depth);
    +        else return function () {return ''; };
    +      }
    +      function getCompileVar(name, ctx) {
    +        var variable, parts, levelsUp = 0, initialCtx = ctx;
    +        if (name.indexOf('../') === 0) {
    +          levelsUp = name.split('../').length - 1;
    +          var newDepth = ctx.split('_')[1] - levelsUp;
    +          ctx = 'ctx_' + (newDepth >= 1 ? newDepth : 1);
    +          parts = name.split('../')[levelsUp].split('.');
    +        }
    +        else if (name.indexOf('@global') === 0) {
    +          ctx = '$.Template7.global';
    +          parts = name.split('@global.')[1].split('.');
    +        }
    +        else if (name.indexOf('@root') === 0) {
    +          ctx = 'ctx_1';
    +          parts = name.split('@root.')[1].split('.');
    +        }
    +        else {
    +          parts = name.split('.');
    +        }
    +        variable = ctx;
    +        for (var i = 0; i < parts.length; i++) {
    +          var part = parts[i];
    +          if (part.indexOf('@') === 0) {
    +            if (i > 0) {
    +              variable += '[(data && data.' + part.replace('@', '') + ')]';
    +            }
    +            else {
    +              variable = '(data && data.' + name.replace('@', '') + ')';
    +            }
    +          }
    +          else {
    +            if (isFinite(part)) {
    +              variable += '[' + part + ']';
    +            }
    +            else {
    +              if (part.indexOf('this') === 0) {
    +                variable = part.replace('this', ctx);
    +              }
    +              else {
    +                variable += '.' + part;       
    +              }
    +            }
    +          }
    +        }
    +
    +        return variable;
    +      }
    +      function getCompiledArguments(contextArray, ctx) {
    +        var arr = [];
    +        for (var i = 0; i < contextArray.length; i++) {
    +          if (contextArray[i].indexOf('"') === 0) arr.push(contextArray[i]);
    +          else {
    +            arr.push(getCompileVar(contextArray[i], ctx));
    +          }
    +        }
    +        return arr.join(', ');
    +      }
    +      function compile(template, depth) {
    +        depth = depth || 1;
    +        template = template || t.template;
    +        if (typeof template !== 'string') {
    +          throw new Error('Template7: Template must be a string');
    +        }
    +        var blocks = stringToBlocks(template);
    +        if (blocks.length === 0) {
    +          return function () { return ''; };
    +        }
    +        var ctx = 'ctx_' + depth;
    +        var resultString = '(function (' + ctx + ', data) {\n';
    +        if (depth === 1) {
    +          resultString += 'function isArray(arr){return Object.prototype.toString.apply(arr) === \'[object Array]\';}\n';
    +          resultString += 'function isFunction(func){return (typeof func === \'function\');}\n';
    +          resultString += 'function c(val, ctx) {if (typeof val !== "undefined") {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n';
    +        }
    +        resultString += 'var r = \'\';\n';
    +        var i, j, context;
    +        for (i = 0; i < blocks.length; i++) {
    +          var block = blocks[i];
    +          // Plain block
    +          if (block.type === 'plain') {
    +            resultString += 'r +=\'' + (block.content).replace(/\r/g, '\\r').replace(/\n/g, '\\n').replace(/'/g, '\\' + '\'') + '\';';
    +            continue;
    +          }
    +          var variable, compiledArguments;
    +          // Variable block
    +          if (block.type === 'variable') {
    +            variable = getCompileVar(block.contextName, ctx);
    +            resultString += 'r += c(' + variable + ', ' + ctx + ');';
    +          }
    +          // Helpers block
    +          if (block.type === 'helper') {
    +            if (block.helperName in t.helpers) {
    +              compiledArguments = getCompiledArguments(block.contextName, ctx);
    +              resultString += 'r += ($.Template7.helpers.' + block.helperName + ').call(' + ctx + ', ' + (compiledArguments && (compiledArguments + ', ')) +'{hash:' + JSON.stringify(block.hash) + ', data: data || {}, fn: ' + getCompileFn(block, depth+1) + ', inverse: ' + getCompileInverse(block, depth+1) + ', root: ctx_1});';
    +            }
    +            else {
    +              if (block.contextName.length > 0) {
    +                throw new Error('Template7: Missing helper: "' + block.helperName + '"');
    +              }
    +              else {
    +                variable = getCompileVar(block.helperName, ctx);
    +                resultString += 'if (' + variable + ') {';
    +                resultString += 'if (isArray(' + variable + ')) {';
    +                resultString += 'r += ($.Template7.helpers.each).call(' + ctx + ', ' + variable + ', {hash:' + JSON.stringify(block.hash) + ', data: data || {}, fn: ' + getCompileFn(block, depth+1) + ', inverse: ' + getCompileInverse(block, depth+1) + ', root: ctx_1});';
    +                resultString += '}else {';
    +                resultString += 'r += ($.Template7.helpers.with).call(' + ctx + ', ' + variable + ', {hash:' + JSON.stringify(block.hash) + ', data: data || {}, fn: ' + getCompileFn(block, depth+1) + ', inverse: ' + getCompileInverse(block, depth+1) + ', root: ctx_1});';
    +                resultString += '}}';
    +              }
    +            }
    +          }
    +        }
    +        resultString += '\nreturn r;})';
    +        return eval.call(window, resultString);
    +      }
    +      t.compile = function (template) {
    +        if (!t.compiled) {
    +          t.compiled = compile(template);
    +        }
    +        return t.compiled;
    +      };
    +    };
    +    Template7.prototype = {
    +      options: {},
    +      helpers: {
    +        'if': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          if (context) {
    +            return options.fn(this, options.data);
    +          }
    +          else {
    +            return options.inverse(this, options.data);
    +          }
    +        },
    +        'unless': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          if (!context) {
    +            return options.fn(this, options.data);
    +          }
    +          else {
    +            return options.inverse(this, options.data);
    +          }
    +        },
    +        'each': function (context, options) {
    +          var ret = '', i = 0;
    +          if (isFunction(context)) { context = context.call(this); }
    +          if (isArray(context)) {
    +            if (options.hash.reverse) {
    +              context = context.reverse();
    +            }
    +            for (i = 0; i < context.length; i++) {
    +              ret += options.fn(context[i], {first: i === 0, last: i === context.length - 1, index: i});
    +            }
    +            if (options.hash.reverse) {
    +              context = context.reverse();
    +            }
    +          }
    +          else {
    +            for (var key in context) {
    +              i++;
    +              ret += options.fn(context[key], {key: key});
    +            }
    +          }
    +          if (i > 0) return ret;
    +          else return options.inverse(this);
    +        },
    +        'with': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          return options.fn(context);
    +        },
    +        'join': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          return context.join(options.hash.delimiter || options.hash.delimeter);
    +        },
    +        'js': function (expression, options) {
    +          var func;
    +          if (expression.indexOf('return')>=0) {
    +            func = '(function(){'+expression+'})';
    +          }
    +          else {
    +            func = '(function(){return ('+expression+')})';
    +          }
    +          return eval.call(this, func).call(this);
    +        },
    +        'js_compare': function (expression, options) {
    +          var func;
    +          if (expression.indexOf('return')>=0) {
    +            func = '(function(){'+expression+'})';
    +          }
    +          else {
    +            func = '(function(){return ('+expression+')})';
    +          }
    +          var condition = eval.call(this, func).call(this);
    +          if (condition) {
    +            return options.fn(this, options.data);
    +          }
    +          else {
    +            return options.inverse(this, options.data);   
    +          }
    +        }
    +      }
    +    };
    +    var t7 = function (template, data) {
    +      if (arguments.length === 2) {
    +        var instance = new Template7(template);
    +        var rendered = instance.compile()(data);
    +        instance = null;
    +        return (rendered);
    +      }
    +      else return new Template7(template);
    +    };
    +    t7.registerHelper = function (name, fn) {
    +      Template7.prototype.helpers[name] = fn;
    +    };
    +    t7.unregisterHelper = function (name) {
    +      Template7.prototype.helpers[name] = undefined;  
    +      delete Template7.prototype.helpers[name];
    +    };
    +
    +    t7.compile = function (template, options) {
    +      var instance = new Template7(template, options);
    +      return instance.compile();
    +    };
    +
    +    t7.options = Template7.prototype.options;
    +    t7.helpers = Template7.prototype.helpers;
    +    return t7;
    +  })();
    +}($);
    +
    +/* global $:true */
    ++ function($) {
    +  "use strict";
    +  
    +  $.getCurrentPage = function() {
    +    return $(".page")[0] || document.body;
    +  };
    +}($);
    +
    +/* ===============================================================================
    +************   Tabs   ************
    +=============================================================================== */
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  var showTab = function (tab, tabLink, force) {
    +    var newTab = $(tab);
    +
    +    var activeClass = newTab.hasClass("page") ? "page-current" : "active";
    +    if (arguments.length === 2) {
    +      if (typeof tabLink === 'boolean') {
    +        force = tabLink;
    +      }
    +    }
    +    if (newTab.length === 0) return false;
    +    if (newTab.hasClass(activeClass)) {
    +      if (force) newTab.trigger('show');
    +      return false;
    +    }
    +    var tabs = newTab.parent('.tabs');
    +    if (tabs.length === 0) return false;
    +
    +    // Animated tabs
    +    /*var isAnimatedTabs = tabs.parent().hasClass('tabs-animated-wrap');
    +      if (isAnimatedTabs) {
    +      tabs.transform('translate3d(' + -newTab.index() * 100 + '%,0,0)');
    +      }*/
    +
    +    // Remove active class from old tabs
    +    var oldTab = tabs.children('.tab.'+activeClass).removeClass(activeClass);
    +    // Add active class to new tab
    +    newTab.addClass(activeClass);
    +    // Trigger 'show' event on new tab
    +    newTab.trigger('show');
    +
    +    // Update navbars in new tab
    +    /*if (!isAnimatedTabs && newTab.find('.navbar').length > 0) {
    +    // Find tab's view
    +    var viewContainer;
    +    if (newTab.hasClass(app.params.viewClass)) viewContainer = newTab[0];
    +    else viewContainer = newTab.parents('.' + app.params.viewClass)[0];
    +    app.sizeNavbars(viewContainer);
    +    }*/
    +
    +    // Find related link for new tab
    +    if (tabLink) tabLink = $(tabLink);
    +    else {
    +      // Search by id
    +      if (typeof tab === 'string') tabLink = $('.tab-link[href="' + tab + '"]');
    +      else tabLink = $('.tab-link[href="#' + newTab.attr('id') + '"]');
    +      // Search by data-tab
    +      if (!tabLink || tabLink && tabLink.length === 0) {
    +        $('[data-tab]').each(function () {
    +          if (newTab.is($(this).attr('data-tab'))) tabLink = $(this);
    +        });
    +      }
    +    }
    +    if (tabLink.length === 0) return;
    +
    +    // Find related link for old tab
    +    var oldTabLink;
    +    if (oldTab && oldTab.length > 0) {
    +      // Search by id
    +      var oldTabId = oldTab.attr('id');
    +      if (oldTabId) oldTabLink = $('.tab-link[href="#' + oldTabId + '"]');
    +      // Search by data-tab
    +      if (!oldTabLink || oldTabLink && oldTabLink.length === 0) {
    +        $('[data-tab]').each(function () {
    +          if (oldTab.is($(this).attr('data-tab'))) oldTabLink = $(this);
    +        });
    +      }
    +    }
    +
    +    // Update links' classes
    +    if (tabLink && tabLink.length > 0) tabLink.addClass('active');
    +    if (oldTabLink && oldTabLink.length > 0) oldTabLink.removeClass('active');
    +
    +    return true;
    +  };
    +
    +  var old = $.showTab;
    +  $.showTab = showTab;
    +
    +  $.showTab.noConflict = function () {
    +    $.showTab = old;
    +    return this;
    +  };
    +
    +
    +  $(document).on("click", ".tab-link", function(e) {
    +    e.preventDefault();
    +    var clicked = $(this);
    +    showTab(clicked.data("tab") || clicked.attr('href'), clicked);
    +  });
    +}($);
    +
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +  $(document).on("click", ".tab-item", function(e) {
    +    var $target = $(e.currentTarget);
    +    if(!$target.hasClass("tab-link")) {
    +      $target.parent().find(".active").removeClass("active");
    +      $target.addClass("active");
    +    }
    +  });
    +
    +  var highlight = function(e, pageId) {
    +    var $tab = $(".bar-tab .tab-item[href='#"+pageId+"']");
    +    $tab.parent().find(".active").removeClass("active");
    +    $tab.addClass("active");
    +  };
    +  $(document).on("pageInit", highlight);
    +  $(document).on("pageReinit", highlight);
    +
    +  $.showToolbar = function(show) {
    +    $(document.body)[show ? "removeClass" : "addClass"]("tabbar-hidden");
    +  };
    +
    +}($);
    +
    +/*======================================================
    +************   Modals   ************
    +======================================================*/
    +/*jshint unused: false*/
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +    var _modalTemplateTempDiv = document.createElement('div');
    +
    +    $.modalStack = [];
    +    var t7 = $.Template7;
    +
    +    $.modalStackClearQueue = function () {
    +        if ($.modalStack.length) {
    +            ($.modalStack.shift())();
    +        }
    +    };
    +    $.modal = function (params) {
    +        params = params || {};
    +        var modalHTML = '';
    +        if (defaults.modalTemplate) {
    +            if (!$._compiledTemplates.modal) $._compiledTemplates.modal = t7.compile(defaults.modalTemplate);
    +            modalHTML = $._compiledTemplates.modal(params);
    +        }
    +        else {
    +            var buttonsHTML = '';
    +            if (params.buttons && params.buttons.length > 0) {
    +                for (var i = 0; i < params.buttons.length; i++) {
    +                    buttonsHTML += '<span class="modal-button' + (params.buttons[i].bold ? ' modal-button-bold' : '') + '">' + params.buttons[i].text + '</span>';
    +                }
    +            }
    +            var titleHTML = params.title ? '<div class="modal-title">' + params.title + '</div>' : '';
    +            var textHTML = params.text ? '<div class="modal-text">' + params.text + '</div>' : '';
    +            var afterTextHTML = params.afterText ? params.afterText : '';
    +            var noButtons = !params.buttons || params.buttons.length === 0 ? 'modal-no-buttons' : '';
    +            var verticalButtons = params.verticalButtons ? 'modal-buttons-vertical' : '';
    +            modalHTML = '<div class="modal ' + noButtons + '"><div class="modal-inner">' + (titleHTML + textHTML + afterTextHTML) + '</div><div class="modal-buttons ' + verticalButtons + '">' + buttonsHTML + '</div></div>';
    +        }
    +        
    +        _modalTemplateTempDiv.innerHTML = modalHTML;
    +
    +        var modal = $(_modalTemplateTempDiv).children();
    +
    +        $(defaults.modalContainer).append(modal[0]);
    +        
    +        // Add events on buttons
    +        modal.find('.modal-button').each(function (index, el) {
    +            $(el).on('click', function (e) {
    +                if (params.buttons[index].close !== false) $.closeModal(modal);
    +                if (params.buttons[index].onClick) params.buttons[index].onClick(modal, e);
    +                if (params.onClick) params.onClick(modal, index);
    +            });
    +        });
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.alert = function (text, title, callbackOk) {
    +        if (typeof title === 'function') {
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            buttons: [ {text: defaults.modalButtonOk, bold: true, onClick: callbackOk} ]
    +        });
    +    };
    +    $.confirm = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            buttons: [
    +                {text: defaults.modalButtonCancel, onClick: callbackCancel},
    +                {text: defaults.modalButtonOk, bold: true, onClick: callbackOk}
    +            ]
    +        });
    +    };
    +    $.prompt = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            afterText: '<input type="text" class="modal-text-input">',
    +            buttons: [
    +                {
    +                    text: defaults.modalButtonCancel
    +                },
    +                {
    +                    text: defaults.modalButtonOk,
    +                    bold: true
    +                }
    +            ],
    +            onClick: function (modal, index) {
    +                if (index === 0 && callbackCancel) callbackCancel($(modal).find('.modal-text-input').val());
    +                if (index === 1 && callbackOk) callbackOk($(modal).find('.modal-text-input').val());
    +            }
    +        });
    +    };
    +    $.modalLogin = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            afterText: '<input type="text" name="modal-username" placeholder="' + defaults.modalUsernamePlaceholder + '" class="modal-text-input modal-text-input-double"><input type="password" name="modal-password" placeholder="' + defaults.modalPasswordPlaceholder + '" class="modal-text-input modal-text-input-double">',
    +            buttons: [
    +                {
    +                    text: defaults.modalButtonCancel
    +                },
    +                {
    +                    text: defaults.modalButtonOk,
    +                    bold: true
    +                }
    +            ],
    +            onClick: function (modal, index) {
    +                var username = $(modal).find('.modal-text-input[name="modal-username"]').val();
    +                var password = $(modal).find('.modal-text-input[name="modal-password"]').val();
    +                if (index === 0 && callbackCancel) callbackCancel(username, password);
    +                if (index === 1 && callbackOk) callbackOk(username, password);
    +            }
    +        });
    +    };
    +    $.modalPassword = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            afterText: '<input type="password" name="modal-password" placeholder="' + defaults.modalPasswordPlaceholder + '" class="modal-text-input">',
    +            buttons: [
    +                {
    +                    text: defaults.modalButtonCancel
    +                },
    +                {
    +                    text: defaults.modalButtonOk,
    +                    bold: true
    +                }
    +            ],
    +            onClick: function (modal, index) {
    +                var password = $(modal).find('.modal-text-input[name="modal-password"]').val();
    +                if (index === 0 && callbackCancel) callbackCancel(password);
    +                if (index === 1 && callbackOk) callbackOk(password);
    +            }
    +        });
    +    };
    +    $.showPreloader = function (title) {
    +        return $.modal({
    +            title: title || defaults.modalPreloaderTitle,
    +            text: '<div class="preloader"></div>'
    +        });
    +    };
    +    $.hidePreloader = function () {
    +        $.closeModal('.modal.modal-in');
    +    };
    +    $.showIndicator = function () {
    +        $(defaults.modalContainer).append('<div class="preloader-indicator-overlay"></div><div class="preloader-indicator-modal"><span class="preloader preloader-white"></span></div>');
    +    };
    +    $.hideIndicator = function () {
    +        $('.preloader-indicator-overlay, .preloader-indicator-modal').remove();
    +    };
    +    // Action Sheet
    +    $.actions = function (target, params) {
    +        var toPopover = false, modal, groupSelector, buttonSelector;
    +        if (arguments.length === 1) {
    +            // Actions
    +            params = target;
    +        } 
    +        else {
    +            // Popover
    +            if ($.device.ios) {
    +                if ($.device.ipad) toPopover = true;
    +            }
    +            else {
    +                if ($(window).width() >= 768) toPopover = true;
    +            }
    +        }
    +        params = params || [];
    +        
    +        if (params.length > 0 && !$.isArray(params[0])) {
    +            params = [params];
    +        }
    +        var modalHTML;
    +        if (toPopover) {
    +            var actionsToPopoverTemplate = defaults.modalActionsToPopoverTemplate || 
    +                '<div class="popover actions-popover">' +
    +                  '<div class="popover-inner">' +
    +                    '{{#each this}}' +
    +                    '<div class="list-block">' +
    +                      '<ul>' +
    +                        '{{#each this}}' +
    +                        '{{#if label}}' +
    +                        '<li class="actions-popover-label {{#if color}}color-{{color}}{{/if}} {{#if bold}}actions-popover-bold{{/if}}">{{text}}</li>' +
    +                        '{{else}}' +
    +                        '<li><a href="#" class="item-link list-button {{#if color}}color-{{color}}{{/if}} {{#if bg}}bg-{{bg}}{{/if}} {{#if bold}}actions-popover-bold{{/if}} {{#if disabled}}disabled{{/if}}">{{text}}</a></li>' +
    +                        '{{/if}}' +
    +                        '{{/each}}' +
    +                      '</ul>' +
    +                    '</div>' +
    +                    '{{/each}}' +
    +                  '</div>' +
    +                '</div>';
    +            if (!$._compiledTemplates.actionsToPopover) {
    +                $._compiledTemplates.actionsToPopover = t7.compile(actionsToPopoverTemplate);
    +            }
    +            var popoverHTML = $._compiledTemplates.actionsToPopover(params);
    +            modal = $($.popover(popoverHTML, target, true));
    +            groupSelector = '.list-block ul';
    +            buttonSelector = '.list-button';
    +        }
    +        else {
    +            if (defaults.modalActionsTemplate) {
    +                if (!$._compiledTemplates.actions) $._compiledTemplates.actions = t7.compile(defaults.modalActionsTemplate);
    +                modalHTML = $._compiledTemplates.actions(params);
    +            }
    +            else {
    +                var buttonsHTML = '';
    +                for (var i = 0; i < params.length; i++) {
    +                    for (var j = 0; j < params[i].length; j++) {
    +                        if (j === 0) buttonsHTML += '<div class="actions-modal-group">';
    +                        var button = params[i][j];
    +                        var buttonClass = button.label ? 'actions-modal-label' : 'actions-modal-button';
    +                        if (button.bold) buttonClass += ' actions-modal-button-bold';
    +                        if (button.color) buttonClass += ' color-' + button.color;
    +                        if (button.bg) buttonClass += ' bg-' + button.bg;
    +                        if (button.disabled) buttonClass += ' disabled';
    +                        buttonsHTML += '<span class="' + buttonClass + '">' + button.text + '</span>';
    +                        if (j === params[i].length - 1) buttonsHTML += '</div>';
    +                    }
    +                }
    +                modalHTML = '<div class="actions-modal">' + buttonsHTML + '</div>';
    +            }
    +            _modalTemplateTempDiv.innerHTML = modalHTML;
    +            modal = $(_modalTemplateTempDiv).children();
    +            $(defaults.modalContainer).append(modal[0]);
    +            groupSelector = '.actions-modal-group';
    +            buttonSelector = '.actions-modal-button';
    +        }
    +        
    +        var groups = modal.find(groupSelector);
    +        groups.each(function (index, el) {
    +            var groupIndex = index;
    +            $(el).children().each(function (index, el) {
    +                var buttonIndex = index;
    +                var buttonParams = params[groupIndex][buttonIndex];
    +                var clickTarget;
    +                if (!toPopover && $(el).is(buttonSelector)) clickTarget = $(el);
    +                if (toPopover && $(el).find(buttonSelector).length > 0) clickTarget = $(el).find(buttonSelector);
    +
    +                if (clickTarget) {
    +                    clickTarget.on('click', function (e) {
    +                        if (buttonParams.close !== false) $.closeModal(modal);
    +                        if (buttonParams.onClick) buttonParams.onClick(modal, e);
    +                    });
    +                }
    +            });
    +        });
    +        if (!toPopover) $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.popover = function (modal, target, removeOnClose) {
    +        if (typeof removeOnClose === 'undefined') removeOnClose = true;
    +        if (typeof modal === 'string' && modal.indexOf('<') >= 0) {
    +            var _modal = document.createElement('div');
    +            _modal.innerHTML = modal.trim();
    +            if (_modal.childNodes.length > 0) {
    +                modal = _modal.childNodes[0];
    +                if (removeOnClose) modal.classList.add('remove-on-close');
    +                $(defaults.modalContainer).append(modal);
    +            }
    +            else return false; //nothing found
    +        }
    +        modal = $(modal);
    +        target = $(target);
    +        if (modal.length === 0 || target.length === 0) return false;
    +        if (modal.find('.popover-angle').length === 0) {
    +            modal.append('<div class="popover-angle"></div>');
    +        }
    +        modal.show();
    +
    +        function sizePopover() {
    +            modal.css({left: '', top: ''});
    +            var modalWidth =  modal.width();
    +            var modalHeight =  modal.height(); // 13 - height of angle
    +            var modalAngle = modal.find('.popover-angle');
    +            var modalAngleSize = modalAngle.width() / 2;
    +            var modalAngleLeft, modalAngleTop;
    +            modalAngle.removeClass('on-left on-right on-top on-bottom').css({left: '', top: ''});
    +
    +            var targetWidth = target.outerWidth();
    +            var targetHeight = target.outerHeight();
    +            var targetOffset = target.offset();
    +            var targetParentPage = target.parents('.page');
    +            if (targetParentPage.length > 0) {
    +                targetOffset.top = targetOffset.top - targetParentPage[0].scrollTop;
    +            }
    +
    +            var windowHeight = $(window).height();
    +            var windowWidth = $(window).width();
    +
    +            var modalTop = 0;
    +            var modalLeft = 0;
    +            var diff = 0;
    +            // Top Position
    +            var modalPosition = 'top';
    +
    +            if ((modalHeight + modalAngleSize) < targetOffset.top) {
    +                // On top
    +                modalTop = targetOffset.top - modalHeight - modalAngleSize;
    +            }
    +            else if ((modalHeight + modalAngleSize) < windowHeight - targetOffset.top - targetHeight) {
    +                // On bottom
    +                modalPosition = 'bottom';
    +                modalTop = targetOffset.top + targetHeight + modalAngleSize;
    +            }
    +            else {
    +                // On middle
    +                modalPosition = 'middle';
    +                modalTop = targetHeight / 2 + targetOffset.top - modalHeight / 2;
    +                diff = modalTop;
    +                if (modalTop < 0) {
    +                    modalTop = 5;
    +                }
    +                else if (modalTop + modalHeight > windowHeight) {
    +                    modalTop = windowHeight - modalHeight - 5;
    +                }
    +                diff = diff - modalTop;
    +            }
    +            // Horizontal Position
    +            if (modalPosition === 'top' || modalPosition === 'bottom') {
    +                modalLeft = targetWidth / 2 + targetOffset.left - modalWidth / 2;
    +                diff = modalLeft;
    +                if (modalLeft < 5) modalLeft = 5;
    +                if (modalLeft + modalWidth > windowWidth) modalLeft = windowWidth - modalWidth - 5;
    +                if (modalPosition === 'top') modalAngle.addClass('on-bottom');
    +                if (modalPosition === 'bottom') modalAngle.addClass('on-top');
    +                diff = diff - modalLeft;
    +                modalAngleLeft = (modalWidth / 2 - modalAngleSize + diff);
    +                modalAngleLeft = Math.max(Math.min(modalAngleLeft, modalWidth - modalAngleSize * 2 - 6), 6);
    +                modalAngle.css({left: modalAngleLeft + 'px'});
    +            }
    +            else if (modalPosition === 'middle') {
    +                modalLeft = targetOffset.left - modalWidth - modalAngleSize;
    +                modalAngle.addClass('on-right');
    +                if (modalLeft < 5) {
    +                    modalLeft = targetOffset.left + targetWidth + modalAngleSize;
    +                    modalAngle.removeClass('on-right').addClass('on-left');
    +                }
    +                if (modalLeft + modalWidth > windowWidth) {
    +                    modalLeft = windowWidth - modalWidth - 5;
    +                    modalAngle.removeClass('on-right').addClass('on-left');
    +                }
    +                modalAngleTop = (modalHeight / 2 - modalAngleSize + diff);
    +                modalAngleTop = Math.max(Math.min(modalAngleTop, modalHeight - modalAngleSize * 2 - 6), 6);
    +                modalAngle.css({top: modalAngleTop + 'px'});
    +            }
    +
    +            // Apply Styles
    +            modal.css({top: modalTop + 'px', left: modalLeft + 'px'});
    +        }
    +        sizePopover();
    +
    +        $(window).on('resize', sizePopover);
    +        modal.on('close', function () {
    +            $(window).off('resize', sizePopover);
    +        });
    +        
    +        if (modal.find('.' + defaults.viewClass).length > 0) {
    +            $.sizeNavbars(modal.find('.' + defaults.viewClass)[0]);
    +        }
    +
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.popup = function (modal, removeOnClose) {
    +        if (typeof removeOnClose === 'undefined') removeOnClose = true;
    +        if (typeof modal === 'string' && modal.indexOf('<') >= 0) {
    +            var _modal = document.createElement('div');
    +            _modal.innerHTML = modal.trim();
    +            if (_modal.childNodes.length > 0) {
    +                modal = _modal.childNodes[0];
    +                if (removeOnClose) modal.classList.add('remove-on-close');
    +                $(defaults.modalContainer).append(modal);
    +            }
    +            else return false; //nothing found
    +        }
    +        modal = $(modal);
    +        if (modal.length === 0) return false;
    +        modal.show();
    +        if (modal.find('.' + defaults.viewClass).length > 0) {
    +            $.sizeNavbars(modal.find('.' + defaults.viewClass)[0]);
    +        }
    +        $.openModal(modal);
    +     
    +        return modal[0];
    +    };
    +    $.pickerModal = function (pickerModal, removeOnClose) {
    +        if (typeof removeOnClose === 'undefined') removeOnClose = true;
    +        if (typeof pickerModal === 'string' && pickerModal.indexOf('<') >= 0) {
    +            pickerModal = $(pickerModal);
    +            if (pickerModal.length > 0) {
    +                if (removeOnClose) pickerModal.addClass('remove-on-close');
    +                $(defaults.modalContainer).append(pickerModal[0]);
    +            }
    +            else return false; //nothing found
    +        }
    +        pickerModal = $(pickerModal);
    +        if (pickerModal.length === 0) return false;
    +        pickerModal.show();
    +        $.openModal(pickerModal);
    +        return pickerModal[0];
    +    };
    +    $.loginScreen = function (modal) {
    +        if (!modal) modal = '.login-screen';
    +        modal = $(modal);
    +        if (modal.length === 0) return false;
    +        modal.show();
    +        if (modal.find('.' + defaults.viewClass).length > 0) {
    +            $.sizeNavbars(modal.find('.' + defaults.viewClass)[0]);
    +        }
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    //显示一个消息,会在2秒钟后自动消失
    +    $.toast = function(msg, time) {
    +      var $toast = $("<div class='modal toast'>"+msg+"</div>").appendTo(document.body);
    +      $.openModal($toast);
    +      setTimeout(function() {
    +        $.closeModal($toast);
    +      }, time || 2000);
    +    };
    +    $.openModal = function (modal) {
    +        if(defaults.closePrevious) $.closeModal();
    +        modal = $(modal);
    +        var isModal = modal.hasClass('modal');
    +        if ($('.modal.modal-in:not(.modal-out)').length && defaults.modalStack && isModal) {
    +            $.modalStack.push(function () {
    +                $.openModal(modal);
    +            });
    +            return;
    +        }
    +        var isPopover = modal.hasClass('popover');
    +        var isPopup = modal.hasClass('popup');
    +        var isLoginScreen = modal.hasClass('login-screen');
    +        var isPickerModal = modal.hasClass('picker-modal');
    +        var isToast = modal.hasClass('toast');
    +        if (isModal) {
    +            modal.show();
    +            modal.css({
    +                marginTop: - Math.round(modal.outerHeight() / 2) + 'px'
    +            });
    +        }
    +        if (isToast) {
    +            modal.show();
    +            modal.css({
    +                marginLeft: - Math.round(parseInt(window.getComputedStyle(modal[0]).width) / 2)  + 'px' //
    +            });
    +        }
    +
    +        var overlay;
    +        if (!isLoginScreen && !isPickerModal && !isToast) {
    +            if ($('.modal-overlay').length === 0 && !isPopup) {
    +                $(defaults.modalContainer).append('<div class="modal-overlay"></div>');
    +            }
    +            if ($('.popup-overlay').length === 0 && isPopup) {
    +                $(defaults.modalContainer).append('<div class="popup-overlay"></div>');
    +            }
    +            overlay = isPopup ? $('.popup-overlay') : $('.modal-overlay');
    +        }
    +
    +        //Make sure that styles are applied, trigger relayout;
    +        var clientLeft = modal[0].clientLeft;
    +
    +        // Trugger open event
    +        modal.trigger('open');
    +
    +        // Picker modal body class
    +        if (isPickerModal) {
    +            $(defaults.modalContainer).addClass('with-picker-modal');
    +        }
    +
    +        // Classes for transition in
    +        if (!isLoginScreen && !isPickerModal && !isToast) overlay.addClass('modal-overlay-visible');
    +        modal.removeClass('modal-out').addClass('modal-in').transitionEnd(function (e) {
    +            if (modal.hasClass('modal-out')) modal.trigger('closed');
    +            else modal.trigger('opened');
    +        });
    +        return true;
    +    };
    +    $.closeModal = function (modal) {
    +        modal = $(modal || '.modal-in');
    +        if (typeof modal !== 'undefined' && modal.length === 0) {
    +            return;
    +        }
    +        var isModal = modal.hasClass('modal');
    +        var isPopover = modal.hasClass('popover');
    +        var isPopup = modal.hasClass('popup');
    +        var isLoginScreen = modal.hasClass('login-screen');
    +        var isPickerModal = modal.hasClass('picker-modal');
    +
    +        var removeOnClose = modal.hasClass('remove-on-close');
    +
    +        var overlay = isPopup ? $('.popup-overlay') : $('.modal-overlay');
    +        if (isPopup){
    +            if (modal.length === $('.popup.modal-in').length) {
    +                overlay.removeClass('modal-overlay-visible');    
    +            }  
    +        }
    +        else if (!isPickerModal) {
    +            overlay.removeClass('modal-overlay-visible');
    +        }
    +
    +        modal.trigger('close');
    +        
    +        // Picker modal body class
    +        if (isPickerModal) {
    +            $(defaults.modalContainer).removeClass('with-picker-modal');
    +            $(defaults.modalContainer).addClass('picker-modal-closing');
    +        }
    +
    +        if (!isPopover) {
    +            modal.removeClass('modal-in').addClass('modal-out').transitionEnd(function (e) {
    +                if (modal.hasClass('modal-out')) modal.trigger('closed');
    +                else modal.trigger('opened');
    +                
    +                if (isPickerModal) {
    +                    $(defaults.modalContainer).removeClass('picker-modal-closing');
    +                }
    +                if (isPopup || isLoginScreen || isPickerModal) {
    +                    modal.removeClass('modal-out').hide();
    +                    if (removeOnClose && modal.length > 0) {
    +                        modal.remove();
    +                    }
    +                }
    +                else {
    +                    modal.remove();
    +                }
    +            });
    +            if (isModal &&  defaults.modalStack ) {
    +                $.modalStackClearQueue();
    +            }
    +        }
    +        else {
    +            modal.removeClass('modal-in modal-out').trigger('closed').hide();
    +            if (removeOnClose) {
    +                modal.remove();
    +            }
    +        }
    +        return true;
    +    };
    +    function handleClicks(e) {
    +        /*jshint validthis:true */
    +        var clicked = $(this);
    +        var url = clicked.attr('href');
    +
    +        //Collect Clicked data- attributes
    +        var clickedData = clicked.dataset();
    +
    +        // Popover
    +        if (clicked.hasClass('open-popover')) {
    +            var popover;
    +            if (clickedData.popover) {
    +                popover = clickedData.popover;
    +            }
    +            else popover = '.popover';
    +            $.popover(popover, clicked);
    +        }
    +        if (clicked.hasClass('close-popover')) {
    +            $.closeModal('.popover.modal-in');
    +        }
    +        // Popup
    +        var popup;
    +        if (clicked.hasClass('open-popup')) {
    +            if (clickedData.popup) {
    +                popup = clickedData.popup;
    +            }
    +            else popup = '.popup';
    +            $.popup(popup);
    +        }
    +        if (clicked.hasClass('close-popup')) {
    +            if (clickedData.popup) {
    +                popup = clickedData.popup;
    +            }
    +            else popup = '.popup.modal-in';
    +            $.closeModal(popup);
    +        }
    +     
    +        // Close Modal
    +        if (clicked.hasClass('modal-overlay')) {
    +            if ($('.modal.modal-in').length > 0 && defaults.modalCloseByOutside)
    +                $.closeModal('.modal.modal-in');
    +            if ($('.actions-modal.modal-in').length > 0 && defaults.actionsCloseByOutside)
    +                $.closeModal('.actions-modal.modal-in');
    +            
    +            if ($('.popover.modal-in').length > 0) $.closeModal('.popover.modal-in');
    +        }
    +        if (clicked.hasClass('popup-overlay')) {
    +            if ($('.popup.modal-in').length > 0 && defaults.popupCloseByOutside)
    +                $.closeModal('.popup.modal-in');
    +        }
    +    }
    +
    +    var defaults = $.modal.prototype.defaults = {
    +      modalButtonOk: 'OK',
    +      modalButtonCancel: 'Cancel',
    +      modalPreloaderTitle: 'Loading...',
    +      modalContainer : document.body,
    +      modalCloseByOutside: true,
    +      actionsCloseByOutside: false,
    +      popupCloseByOutside: true,
    +      closePrevious: true  //close all previous modal before open
    +    };
    +
    +    $(function() {
    +      $(document).on('click', ' .modal-overlay, .popup-overlay, .close-popup, .open-popup, .open-popover, .close-popover, .close-picker', handleClicks);
    +      defaults.modalContainer = defaults.modalContainer || document.body;  //incase some one include js in head
    +    });
    +}($);
    +
    +/*======================================================
    +************   Calendar   ************
    +======================================================*/
    +/* global $:true */
    +/*jshint unused: false*/
    ++function ($) {
    +  "use strict";
    +  var rtl = false;
    +  var defaults;
    +  var Calendar = function (params) {
    +      var p = this;
    +      params = params || {};
    +      for (var def in defaults) {
    +          if (typeof params[def] === 'undefined') {
    +              params[def] = defaults[def];
    +          }
    +      }
    +      p.params = params;
    +      p.initialized = false;
    +
    +      // Inline flag
    +      p.inline = p.params.container ? true : false;
    +
    +      // Is horizontal
    +      p.isH = p.params.direction === 'horizontal';
    +
    +      // RTL inverter
    +      var inverter = p.isH ? (rtl ? -1 : 1) : 1;
    +
    +      // Animating flag
    +      p.animating = false;
    +
    +      // Should be converted to popover
    +      function isPopover() {
    +          var toPopover = false;
    +          if (!p.params.convertToPopover && !p.params.onlyInPopover) return toPopover;
    +          if (!p.inline && p.params.input) {
    +              if (p.params.onlyInPopover) toPopover = true;
    +              else {
    +                  if ($.device.ios) {
    +                      toPopover = $.device.ipad ? true : false;
    +                  }
    +                  else {
    +                      if ($(window).width() >= 768) toPopover = true;
    +                  }
    +              }
    +          } 
    +          return toPopover; 
    +      }
    +      function inPopover() {
    +          if (p.opened && p.container && p.container.length > 0 && p.container.parents('.popover').length > 0) return true;
    +          else return false;
    +      }
    +
    +      // Format date
    +      function formatDate(date) {
    +          date = new Date(date);
    +          var year = date.getFullYear();
    +          var month = date.getMonth();
    +          var month1 = month + 1;
    +          var day = date.getDate();
    +          var weekDay = date.getDay();
    +          return p.params.dateFormat
    +              .replace(/yyyy/g, year)
    +              .replace(/yy/g, (year + '').substring(2))
    +              .replace(/mm/g, month1 < 10 ? '0' + month1 : month1)
    +              .replace(/m/g, month1)
    +              .replace(/MM/g, p.params.monthNames[month])
    +              .replace(/M/g, p.params.monthNamesShort[month])
    +              .replace(/dd/g, day < 10 ? '0' + day : day)
    +              .replace(/d/g, day)
    +              .replace(/DD/g, p.params.dayNames[weekDay])
    +              .replace(/D/g, p.params.dayNamesShort[weekDay]);
    +      }
    +
    +
    +      // Value
    +      p.addValue = function (value) {
    +          if (p.params.multiple) {
    +              if (!p.value) p.value = [];
    +              var inValuesIndex;
    +              for (var i = 0; i < p.value.length; i++) {
    +                  if (new Date(value).getTime() === new Date(p.value[i]).getTime()) {
    +                      inValuesIndex = i;
    +                  }
    +              }
    +              if (typeof inValuesIndex === 'undefined') {
    +                  p.value.push(value);
    +              }
    +              else {
    +                  p.value.splice(inValuesIndex, 1);
    +              }
    +              p.updateValue();
    +          }
    +          else {
    +              p.value = [value];
    +              p.updateValue();
    +          }
    +      };
    +      p.setValue = function (arrValues) {
    +          p.value = arrValues;
    +          p.updateValue();   
    +      };
    +      p.updateValue = function () {
    +          p.wrapper.find('.picker-calendar-day-selected').removeClass('picker-calendar-day-selected');
    +          var i, inputValue;
    +          for (i = 0; i < p.value.length; i++) {
    +              var valueDate = new Date(p.value[i]);
    +              p.wrapper.find('.picker-calendar-day[data-date="' + valueDate.getFullYear() + '-' + valueDate.getMonth() + '-' + valueDate.getDate() + '"]').addClass('picker-calendar-day-selected');
    +          }
    +          if (p.params.onChange) {
    +              p.params.onChange(p, p.value, p.value.map(formatDate));
    +          }
    +          if (p.input && p.input.length > 0) {
    +              if (p.params.formatValue) inputValue = p.params.formatValue(p, p.value);
    +              else {
    +                  inputValue = [];
    +                  for (i = 0; i < p.value.length; i++) {
    +                      inputValue.push(formatDate(p.value[i]));
    +                  }
    +                  inputValue = inputValue.join(', ');
    +              } 
    +              $(p.input).val(inputValue);
    +              $(p.input).trigger('change');
    +          }
    +      };
    +
    +      // Columns Handlers
    +      p.initCalendarEvents = function () {
    +          var col;
    +          var allowItemClick = true;
    +          var isTouched, isMoved, touchStartX, touchStartY, touchCurrentX, touchCurrentY, touchStartTime, touchEndTime, startTranslate, currentTranslate, wrapperWidth, wrapperHeight, percentage, touchesDiff, isScrolling;
    +          function handleTouchStart (e) {
    +              if (isMoved || isTouched) return;
    +              // e.preventDefault();
    +              isTouched = true;
    +              var position = $.getTouchPosition(e);
    +              touchStartX = touchCurrentY = position.x;
    +              touchStartY = touchCurrentY = position.y;
    +              touchStartTime = (new Date()).getTime();
    +              percentage = 0;
    +              allowItemClick = true;
    +              isScrolling = undefined;
    +              startTranslate = currentTranslate = p.monthsTranslate;
    +          }
    +          function handleTouchMove (e) {
    +              if (!isTouched) return;
    +              var position = $.getTouchPosition(e);
    +              touchCurrentX = position.x;
    +              touchCurrentY = position.y;
    +              if (typeof isScrolling === 'undefined') {
    +                  isScrolling = !!(isScrolling || Math.abs(touchCurrentY - touchStartY) > Math.abs(touchCurrentX - touchStartX));
    +              }
    +              if (p.isH && isScrolling) {
    +                  isTouched = false;
    +                  return;
    +              }
    +              e.preventDefault();
    +              if (p.animating) {
    +                  isTouched = false;
    +                  return;   
    +              }
    +              allowItemClick = false;
    +              if (!isMoved) {
    +                  // First move
    +                  isMoved = true;
    +                  wrapperWidth = p.wrapper[0].offsetWidth;
    +                  wrapperHeight = p.wrapper[0].offsetHeight;
    +                  p.wrapper.transition(0);
    +              }
    +              e.preventDefault();
    +
    +              touchesDiff = p.isH ? touchCurrentX - touchStartX : touchCurrentY - touchStartY;
    +              percentage = touchesDiff/(p.isH ? wrapperWidth : wrapperHeight);
    +              currentTranslate = (p.monthsTranslate * inverter + percentage) * 100;
    +
    +              // Transform wrapper
    +              p.wrapper.transform('translate3d(' + (p.isH ? currentTranslate : 0) + '%, ' + (p.isH ? 0 : currentTranslate) + '%, 0)');
    +
    +          }
    +          function handleTouchEnd (e) {
    +              if (!isTouched || !isMoved) {
    +                  isTouched = isMoved = false;
    +                  return;
    +              }
    +              isTouched = isMoved = false;
    +              
    +              touchEndTime = new Date().getTime();
    +              if (touchEndTime - touchStartTime < 300) {
    +                  if (Math.abs(touchesDiff) < 10) {
    +                      p.resetMonth();
    +                  }
    +                  else if (touchesDiff >= 10) {
    +                      if (rtl) p.nextMonth();
    +                      else p.prevMonth();
    +                  }
    +                  else {
    +                      if (rtl) p.prevMonth();
    +                      else p.nextMonth();   
    +                  }
    +              }
    +              else {
    +                  if (percentage <= -0.5) {
    +                      if (rtl) p.prevMonth();
    +                      else p.nextMonth();
    +                  }
    +                  else if (percentage >= 0.5) {
    +                      if (rtl) p.nextMonth();
    +                      else p.prevMonth();
    +                  }
    +                  else {
    +                      p.resetMonth();
    +                  }
    +              }
    +
    +              // Allow click
    +              setTimeout(function () {
    +                  allowItemClick = true;
    +              }, 100);
    +          }
    +
    +          function handleDayClick(e) {
    +              if (!allowItemClick) return;
    +              var day = $(e.target).parents('.picker-calendar-day');
    +              if (day.length === 0 && $(e.target).hasClass('picker-calendar-day')) {
    +                  day = $(e.target);
    +              }
    +              if (day.length === 0) return;
    +              if (day.hasClass('picker-calendar-day-selected') && !p.params.multiple) return;
    +              if (day.hasClass('picker-calendar-day-disabled')) return;
    +              if (day.hasClass('picker-calendar-day-next')) p.nextMonth();
    +              if (day.hasClass('picker-calendar-day-prev')) p.prevMonth();
    +              var dateYear = day.attr('data-year');
    +              var dateMonth = day.attr('data-month');
    +              var dateDay = day.attr('data-day');
    +              if (p.params.onDayClick) {
    +                  p.params.onDayClick(p, day[0], dateYear, dateMonth, dateDay);
    +              }
    +              p.addValue(new Date(dateYear, dateMonth, dateDay).getTime());
    +              if (p.params.closeOnSelect) p.close();
    +          }
    +
    +          p.container.find('.picker-calendar-prev-month').on('click', p.prevMonth);
    +          p.container.find('.picker-calendar-next-month').on('click', p.nextMonth);
    +          p.container.find('.picker-calendar-prev-year').on('click', p.prevYear);
    +          p.container.find('.picker-calendar-next-year').on('click', p.nextYear);
    +          p.wrapper.on('click', handleDayClick);
    +          if (p.params.touchMove) {
    +              p.wrapper.on($.touchEvents.start, handleTouchStart);
    +              p.wrapper.on($.touchEvents.move, handleTouchMove);
    +              p.wrapper.on($.touchEvents.end, handleTouchEnd);
    +          }
    +              
    +          p.container[0].f7DestroyCalendarEvents = function () {
    +              p.container.find('.picker-calendar-prev-month').off('click', p.prevMonth);
    +              p.container.find('.picker-calendar-next-month').off('click', p.nextMonth);
    +              p.container.find('.picker-calendar-prev-year').off('click', p.prevYear);
    +              p.container.find('.picker-calendar-next-year').off('click', p.nextYear);
    +              p.wrapper.off('click', handleDayClick);
    +              if (p.params.touchMove) {
    +                  p.wrapper.off($.touchEvents.start, handleTouchStart);
    +                  p.wrapper.off($.touchEvents.move, handleTouchMove);
    +                  p.wrapper.off($.touchEvents.end, handleTouchEnd);
    +              }
    +          };
    +          
    +
    +      };
    +      p.destroyCalendarEvents = function (colContainer) {
    +          if ('f7DestroyCalendarEvents' in p.container[0]) p.container[0].f7DestroyCalendarEvents();
    +      };
    +
    +      // Calendar Methods
    +      p.daysInMonth = function (date) {
    +          var d = new Date(date);
    +          return new Date(d.getFullYear(), d.getMonth() + 1, 0).getDate();
    +      };
    +      p.monthHTML = function (date, offset) {
    +          date = new Date(date);
    +          var year = date.getFullYear(),
    +              month = date.getMonth(),
    +              day = date.getDate();
    +          if (offset === 'next') {
    +              if (month === 11) date = new Date(year + 1, 0);
    +              else date = new Date(year, month + 1, 1);
    +          }
    +          if (offset === 'prev') {
    +              if (month === 0) date = new Date(year - 1, 11);
    +              else date = new Date(year, month - 1, 1);
    +          }
    +          if (offset === 'next' || offset === 'prev') {
    +              month = date.getMonth();
    +              year = date.getFullYear();
    +          }
    +          var daysInPrevMonth = p.daysInMonth(new Date(date.getFullYear(), date.getMonth()).getTime() - 10 * 24 * 60 * 60 * 1000),
    +              daysInMonth = p.daysInMonth(date),
    +              firstDayOfMonthIndex = new Date(date.getFullYear(), date.getMonth()).getDay();
    +          if (firstDayOfMonthIndex === 0) firstDayOfMonthIndex = 7;
    +          
    +          var dayDate, currentValues = [], i, j,
    +              rows = 6, cols = 7,
    +              monthHTML = '',
    +              dayIndex = 0 + (p.params.firstDay - 1),    
    +              today = new Date().setHours(0,0,0,0),
    +              minDate = p.params.minDate ? new Date(p.params.minDate).getTime() : null,
    +              maxDate = p.params.maxDate ? new Date(p.params.maxDate).getTime() : null;
    +
    +          if (p.value && p.value.length) {
    +              for (i = 0; i < p.value.length; i++) {
    +                  currentValues.push(new Date(p.value[i]).setHours(0,0,0,0));
    +              }
    +          }
    +              
    +          for (i = 1; i <= rows; i++) {
    +              var rowHTML = '';
    +              var row = i;
    +              for (j = 1; j <= cols; j++) {
    +                  var col = j;
    +                  dayIndex ++;
    +                  var dayNumber = dayIndex - firstDayOfMonthIndex;
    +                  var addClass = '';
    +                  if (dayNumber < 0) {
    +                      dayNumber = daysInPrevMonth + dayNumber + 1;
    +                      addClass += ' picker-calendar-day-prev';
    +                      dayDate = new Date(month - 1 < 0 ? year - 1 : year, month - 1 < 0 ? 11 : month - 1, dayNumber).getTime();
    +                  }
    +                  else {
    +                      dayNumber = dayNumber + 1;
    +                      if (dayNumber > daysInMonth) {
    +                          dayNumber = dayNumber - daysInMonth;
    +                          addClass += ' picker-calendar-day-next';
    +                          dayDate = new Date(month + 1 > 11 ? year + 1 : year, month + 1 > 11 ? 0 : month + 1, dayNumber).getTime();
    +                      }
    +                      else {
    +                          dayDate = new Date(year, month, dayNumber).getTime();    
    +                      }
    +                  }
    +                  // Today
    +                  if (dayDate === today) addClass += ' picker-calendar-day-today';
    +                  // Selected
    +                  if (currentValues.indexOf(dayDate) >= 0) addClass += ' picker-calendar-day-selected';
    +                  // Weekend
    +                  if (p.params.weekendDays.indexOf(col - 1) >= 0) {
    +                      addClass += ' picker-calendar-day-weekend';
    +                  }
    +                  // Disabled
    +                  if ((minDate && dayDate < minDate) || (maxDate && dayDate > maxDate)) {
    +                      addClass += ' picker-calendar-day-disabled';   
    +                  }
    +
    +                  dayDate = new Date(dayDate);
    +                  var dayYear = dayDate.getFullYear();
    +                  var dayMonth = dayDate.getMonth();
    +                  rowHTML += '<div data-year="' + dayYear + '" data-month="' + dayMonth + '" data-day="' + dayNumber + '" class="picker-calendar-day' + (addClass) + '" data-date="' + (dayYear + '-' + dayMonth + '-' + dayNumber) + '"><span>'+dayNumber+'</span></div>';
    +              }
    +              monthHTML += '<div class="picker-calendar-row">' + rowHTML + '</div>';
    +          }
    +          monthHTML = '<div class="picker-calendar-month" data-year="' + year + '" data-month="' + month + '">' + monthHTML + '</div>';
    +          return monthHTML;
    +      };
    +      p.animating = false;
    +      p.updateCurrentMonthYear = function (dir) {
    +          if (typeof dir === 'undefined') {
    +              p.currentMonth = parseInt(p.months.eq(1).attr('data-month'), 10);
    +              p.currentYear = parseInt(p.months.eq(1).attr('data-year'), 10);   
    +          }
    +          else {
    +              p.currentMonth = parseInt(p.months.eq(dir === 'next' ? (p.months.length - 1) : 0).attr('data-month'), 10);
    +              p.currentYear = parseInt(p.months.eq(dir === 'next' ? (p.months.length - 1) : 0).attr('data-year'), 10);
    +          }
    +          p.container.find('.current-month-value').text(p.params.monthNames[p.currentMonth]);
    +          p.container.find('.current-year-value').text(p.currentYear);
    +              
    +      };
    +      p.onMonthChangeStart = function (dir) {
    +          p.updateCurrentMonthYear(dir);
    +          p.months.removeClass('picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next');
    +          var currentIndex = dir === 'next' ? p.months.length - 1 : 0;
    +
    +          p.months.eq(currentIndex).addClass('picker-calendar-month-current');
    +          p.months.eq(dir === 'next' ? currentIndex - 1 : currentIndex + 1).addClass(dir === 'next' ? 'picker-calendar-month-prev' : 'picker-calendar-month-next');
    +
    +          if (p.params.onMonthYearChangeStart) {
    +              p.params.onMonthYearChangeStart(p, p.currentYear, p.currentMonth);
    +          }
    +      };
    +      p.onMonthChangeEnd = function (dir, rebuildBoth) {
    +          p.animating = false;
    +          var nextMonthHTML, prevMonthHTML, newMonthHTML;
    +          p.wrapper.find('.picker-calendar-month:not(.picker-calendar-month-prev):not(.picker-calendar-month-current):not(.picker-calendar-month-next)').remove();
    +          
    +          if (typeof dir === 'undefined') {
    +              dir = 'next';
    +              rebuildBoth = true;
    +          }
    +          if (!rebuildBoth) {
    +              newMonthHTML = p.monthHTML(new Date(p.currentYear, p.currentMonth), dir);
    +          }
    +          else {
    +              p.wrapper.find('.picker-calendar-month-next, .picker-calendar-month-prev').remove();
    +              prevMonthHTML = p.monthHTML(new Date(p.currentYear, p.currentMonth), 'prev');
    +              nextMonthHTML = p.monthHTML(new Date(p.currentYear, p.currentMonth), 'next');
    +          }
    +          if (dir === 'next' || rebuildBoth) {
    +              p.wrapper.append(newMonthHTML || nextMonthHTML);
    +          }
    +          if (dir === 'prev' || rebuildBoth) {
    +              p.wrapper.prepend(newMonthHTML || prevMonthHTML);
    +          }
    +          p.months = p.wrapper.find('.picker-calendar-month');
    +          p.setMonthsTranslate(p.monthsTranslate);
    +          if (p.params.onMonthAdd) {
    +              p.params.onMonthAdd(p, dir === 'next' ? p.months.eq(p.months.length - 1)[0] : p.months.eq(0)[0]);
    +          }
    +          if (p.params.onMonthYearChangeEnd) {
    +              p.params.onMonthYearChangeEnd(p, p.currentYear, p.currentMonth);
    +          }
    +      };
    +      p.setMonthsTranslate = function (translate) {
    +          translate = translate || p.monthsTranslate || 0;
    +          if (typeof p.monthsTranslate === 'undefined') p.monthsTranslate = translate;
    +          p.months.removeClass('picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next');
    +          var prevMonthTranslate = -(translate + 1) * 100 * inverter;
    +          var currentMonthTranslate = -translate * 100 * inverter;
    +          var nextMonthTranslate = -(translate - 1) * 100 * inverter;
    +          p.months.eq(0).transform('translate3d(' + (p.isH ? prevMonthTranslate : 0) + '%, ' + (p.isH ? 0 : prevMonthTranslate) + '%, 0)').addClass('picker-calendar-month-prev');
    +          p.months.eq(1).transform('translate3d(' + (p.isH ? currentMonthTranslate : 0) + '%, ' + (p.isH ? 0 : currentMonthTranslate) + '%, 0)').addClass('picker-calendar-month-current');
    +          p.months.eq(2).transform('translate3d(' + (p.isH ? nextMonthTranslate : 0) + '%, ' + (p.isH ? 0 : nextMonthTranslate) + '%, 0)').addClass('picker-calendar-month-next');
    +      };
    +      p.nextMonth = function (transition) {
    +          if (typeof transition === 'undefined' || typeof transition === 'object') {
    +              transition = '';
    +              if (!p.params.animate) transition = 0;
    +          }
    +          var nextMonth = parseInt(p.months.eq(p.months.length - 1).attr('data-month'), 10);
    +          var nextYear = parseInt(p.months.eq(p.months.length - 1).attr('data-year'), 10);
    +          var nextDate = new Date(nextYear, nextMonth);
    +          var nextDateTime = nextDate.getTime();
    +          var transitionEndCallback = p.animating ? false : true;
    +          if (p.params.maxDate) {
    +              if (nextDateTime > new Date(p.params.maxDate).getTime()) {
    +                  return p.resetMonth();
    +              }
    +          }
    +          p.monthsTranslate --;
    +          if (nextMonth === p.currentMonth) {
    +              var nextMonthTranslate = -(p.monthsTranslate) * 100 * inverter;
    +              var nextMonthHTML = $(p.monthHTML(nextDateTime, 'next')).transform('translate3d(' + (p.isH ? nextMonthTranslate : 0) + '%, ' + (p.isH ? 0 : nextMonthTranslate) + '%, 0)').addClass('picker-calendar-month-next');
    +              p.wrapper.append(nextMonthHTML[0]);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              if (p.params.onMonthAdd) {
    +                  p.params.onMonthAdd(p, p.months.eq(p.months.length - 1)[0]);
    +              }
    +          }
    +          p.animating = true;
    +          p.onMonthChangeStart('next');
    +          var translate = (p.monthsTranslate * 100) * inverter;
    +
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? translate : 0) + '%, ' + (p.isH ? 0 : translate) + '%, 0)');
    +          if (transitionEndCallback) {
    +              p.wrapper.transitionEnd(function () {
    +                  p.onMonthChangeEnd('next');
    +              });
    +          }
    +          if (!p.params.animate) {
    +              p.onMonthChangeEnd('next');
    +          }
    +      };
    +      p.prevMonth = function (transition) {
    +          if (typeof transition === 'undefined' || typeof transition === 'object') {
    +              transition = '';
    +              if (!p.params.animate) transition = 0;
    +          }
    +          var prevMonth = parseInt(p.months.eq(0).attr('data-month'), 10);
    +          var prevYear = parseInt(p.months.eq(0).attr('data-year'), 10);
    +          var prevDate = new Date(prevYear, prevMonth + 1, -1);
    +          var prevDateTime = prevDate.getTime();
    +          var transitionEndCallback = p.animating ? false : true;
    +          if (p.params.minDate) {
    +              if (prevDateTime < new Date(p.params.minDate).getTime()) {
    +                  return p.resetMonth();
    +              }
    +          }
    +          p.monthsTranslate ++;
    +          if (prevMonth === p.currentMonth) {
    +              var prevMonthTranslate = -(p.monthsTranslate) * 100 * inverter;
    +              var prevMonthHTML = $(p.monthHTML(prevDateTime, 'prev')).transform('translate3d(' + (p.isH ? prevMonthTranslate : 0) + '%, ' + (p.isH ? 0 : prevMonthTranslate) + '%, 0)').addClass('picker-calendar-month-prev');
    +              p.wrapper.prepend(prevMonthHTML[0]);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              if (p.params.onMonthAdd) {
    +                  p.params.onMonthAdd(p, p.months.eq(0)[0]);
    +              }
    +          }
    +          p.animating = true;
    +          p.onMonthChangeStart('prev');
    +          var translate = (p.monthsTranslate * 100) * inverter;
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? translate : 0) + '%, ' + (p.isH ? 0 : translate) + '%, 0)');
    +          if (transitionEndCallback) {
    +              p.wrapper.transitionEnd(function () {
    +                  p.onMonthChangeEnd('prev');
    +              });
    +          }
    +          if (!p.params.animate) {
    +              p.onMonthChangeEnd('prev');
    +          }
    +      };
    +      p.resetMonth = function (transition) {
    +          if (typeof transition === 'undefined') transition = '';
    +          var translate = (p.monthsTranslate * 100) * inverter;
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? translate : 0) + '%, ' + (p.isH ? 0 : translate) + '%, 0)');
    +      };
    +      p.setYearMonth = function (year, month, transition) {
    +          if (typeof year === 'undefined') year = p.currentYear;
    +          if (typeof month === 'undefined') month = p.currentMonth;
    +          if (typeof transition === 'undefined' || typeof transition === 'object') {
    +              transition = '';
    +              if (!p.params.animate) transition = 0;
    +          }
    +          var targetDate;
    +          if (year < p.currentYear) {
    +              targetDate = new Date(year, month + 1, -1).getTime();
    +          }
    +          else {
    +              targetDate = new Date(year, month).getTime();
    +          }
    +          if (p.params.maxDate && targetDate > new Date(p.params.maxDate).getTime()) {
    +              return false;
    +          }
    +          if (p.params.minDate && targetDate < new Date(p.params.minDate).getTime()) {
    +              return false;
    +          }
    +          var currentDate = new Date(p.currentYear, p.currentMonth).getTime();
    +          var dir = targetDate > currentDate ? 'next' : 'prev';
    +          var newMonthHTML = p.monthHTML(new Date(year, month));
    +          p.monthsTranslate = p.monthsTranslate || 0;
    +          var prevTranslate = p.monthsTranslate;
    +          var monthTranslate, wrapperTranslate;
    +          var transitionEndCallback = p.animating ? false : true;
    +          if (targetDate > currentDate) {
    +              // To next
    +              p.monthsTranslate --;
    +              if (!p.animating) p.months.eq(p.months.length - 1).remove();
    +              p.wrapper.append(newMonthHTML);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              monthTranslate = -(prevTranslate - 1) * 100 * inverter;
    +              p.months.eq(p.months.length - 1).transform('translate3d(' + (p.isH ? monthTranslate : 0) + '%, ' + (p.isH ? 0 : monthTranslate) + '%, 0)').addClass('picker-calendar-month-next');
    +          }
    +          else {
    +              // To prev
    +              p.monthsTranslate ++;
    +              if (!p.animating) p.months.eq(0).remove();
    +              p.wrapper.prepend(newMonthHTML);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              monthTranslate = -(prevTranslate + 1) * 100 * inverter;
    +              p.months.eq(0).transform('translate3d(' + (p.isH ? monthTranslate : 0) + '%, ' + (p.isH ? 0 : monthTranslate) + '%, 0)').addClass('picker-calendar-month-prev');
    +          }
    +          if (p.params.onMonthAdd) {
    +              p.params.onMonthAdd(p, dir === 'next' ? p.months.eq(p.months.length - 1)[0] : p.months.eq(0)[0]);
    +          }
    +          p.animating = true;
    +          p.onMonthChangeStart(dir);
    +          wrapperTranslate = (p.monthsTranslate * 100) * inverter;
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? wrapperTranslate : 0) + '%, ' + (p.isH ? 0 : wrapperTranslate) + '%, 0)');
    +          if (transitionEndCallback) {
    +             p.wrapper.transitionEnd(function () {
    +                  p.onMonthChangeEnd(dir, true);
    +              }); 
    +          }
    +          if (!p.params.animate) {
    +              p.onMonthChangeEnd(dir);
    +          }
    +      };
    +      p.nextYear = function () {
    +          p.setYearMonth(p.currentYear + 1);
    +      };
    +      p.prevYear = function () {
    +          p.setYearMonth(p.currentYear - 1);
    +      };
    +      
    +
    +      // HTML Layout
    +      p.layout = function () {
    +          var pickerHTML = '';
    +          var pickerClass = '';
    +          var i;
    +          
    +          var layoutDate = p.value && p.value.length ? p.value[0] : new Date().setHours(0,0,0,0);
    +          var prevMonthHTML = p.monthHTML(layoutDate, 'prev');
    +          var currentMonthHTML = p.monthHTML(layoutDate);
    +          var nextMonthHTML = p.monthHTML(layoutDate, 'next');
    +          var monthsHTML = '<div class="picker-calendar-months"><div class="picker-calendar-months-wrapper">' + (prevMonthHTML + currentMonthHTML + nextMonthHTML) + '</div></div>';
    +          // Week days header
    +          var weekHeaderHTML = '';
    +          if (p.params.weekHeader) {
    +              for (i = 0; i < 7; i++) {
    +                  var weekDayIndex = (i + p.params.firstDay > 6) ? (i - 7 + p.params.firstDay) : (i + p.params.firstDay);
    +                  var dayName = p.params.dayNamesShort[weekDayIndex];
    +                  weekHeaderHTML += '<div class="picker-calendar-week-day ' + ((p.params.weekendDays.indexOf(weekDayIndex) >= 0) ? 'picker-calendar-week-day-weekend' : '') + '"> ' + dayName + '</div>';
    +                  
    +              }
    +              weekHeaderHTML = '<div class="picker-calendar-week-days">' + weekHeaderHTML + '</div>';
    +          }
    +          pickerClass = 'picker-modal picker-calendar ' + (p.params.cssClass || '');
    +          var toolbarHTML = p.params.toolbar ? p.params.toolbarTemplate.replace(/{{closeText}}/g, p.params.toolbarCloseText) : '';
    +          if (p.params.toolbar) {
    +              toolbarHTML = p.params.toolbarTemplate
    +                  .replace(/{{closeText}}/g, p.params.toolbarCloseText)
    +                  .replace(/{{monthPicker}}/g, (p.params.monthPicker ? p.params.monthPickerTemplate : ''))
    +                  .replace(/{{yearPicker}}/g, (p.params.yearPicker ? p.params.yearPickerTemplate : ''));
    +          }
    +
    +          pickerHTML =
    +              '<div class="' + (pickerClass) + '">' +
    +                  toolbarHTML +
    +                  '<div class="picker-modal-inner">' +
    +                      weekHeaderHTML +
    +                      monthsHTML +
    +                  '</div>' +
    +              '</div>';
    +              
    +              
    +          p.pickerHTML = pickerHTML;    
    +      };
    +
    +      // Input Events
    +      function openOnInput(e) {
    +          e.preventDefault();
    +          if (p.opened) return;
    +          p.open();
    +          if (p.params.scrollToInput && !isPopover()) {
    +              var pageContent = p.input.parents('.page-content');
    +              if (pageContent.length === 0) return;
    +
    +              var paddingTop = parseInt(pageContent.css('padding-top'), 10),
    +                  paddingBottom = parseInt(pageContent.css('padding-bottom'), 10),
    +                  pageHeight = pageContent[0].offsetHeight - paddingTop - p.container.height(),
    +                  pageScrollHeight = pageContent[0].scrollHeight - paddingTop - p.container.height(),
    +                  newPaddingBottom;
    +
    +              var inputTop = p.input.offset().top - paddingTop + p.input[0].offsetHeight;
    +              if (inputTop > pageHeight) {
    +                  var scrollTop = pageContent.scrollTop() + inputTop - pageHeight;
    +                  if (scrollTop + pageHeight > pageScrollHeight) {
    +                      newPaddingBottom = scrollTop + pageHeight - pageScrollHeight + paddingBottom;
    +                      if (pageHeight === pageScrollHeight) {
    +                          newPaddingBottom = p.container.height();
    +                      }
    +                      pageContent.css({'padding-bottom': (newPaddingBottom) + 'px'});
    +                  }
    +                  pageContent.scrollTop(scrollTop, 300);
    +              }
    +          }
    +      }
    +      function closeOnHTMLClick(e) {
    +          if (inPopover()) return;
    +          if (p.input && p.input.length > 0) {
    +              if (e.target !== p.input[0] && $(e.target).parents('.picker-modal').length === 0) p.close();
    +          }
    +          else {
    +              if ($(e.target).parents('.picker-modal').length === 0) p.close();   
    +          }
    +      }
    +
    +      if (p.params.input) {
    +          p.input = $(p.params.input);
    +          if (p.input.length > 0) {
    +              if (p.params.inputReadOnly) p.input.prop('readOnly', true);
    +              if (!p.inline) {
    +                  p.input.on("click", function(e) {
    +                    openOnInput(e);
    +                    //修复部分安卓系统下,即使设置了readonly依然会弹出系统键盘的bug
    +                    if (p.params.inputReadOnly) {
    +                      this.focus();
    +                      this.blur();
    +                    }
    +                  });
    +              }
    +              if (p.params.inputReadOnly) {
    +                  p.input.on('focus mousedown', function (e) {
    +                      e.preventDefault();
    +                  });
    +              }
    +          }
    +      }
    +      
    +      if (!p.inline) $('html').on('click', closeOnHTMLClick);
    +
    +      // Open
    +      function onPickerClose() {
    +          p.opened = false;
    +          if (p.input && p.input.length > 0) p.input.parents('.page-content').css({'padding-bottom': ''});
    +          if (p.params.onClose) p.params.onClose(p);
    +
    +          // Destroy events
    +          p.destroyCalendarEvents();
    +      }
    +
    +      p.opened = false;
    +      p.open = function () {
    +          var toPopover = isPopover();
    +          var updateValue = false;
    +          if (!p.opened) {
    +              // Set date value
    +              if (!p.value) {
    +                  if (p.params.value) {
    +                      p.value = p.params.value;
    +                      updateValue = true;
    +                  }
    +              }
    +
    +              // Layout
    +              p.layout();
    +
    +              // Append
    +              if (toPopover) {
    +                  p.pickerHTML = '<div class="popover popover-picker-calendar"><div class="popover-inner">' + p.pickerHTML + '</div></div>';
    +                  p.popover = $.popover(p.pickerHTML, p.params.input, true);
    +                  p.container = $(p.popover).find('.picker-modal');
    +                  $(p.popover).on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +              else if (p.inline) {
    +                  p.container = $(p.pickerHTML);
    +                  p.container.addClass('picker-modal-inline');
    +                  $(p.params.container).append(p.container);
    +              }
    +              else {
    +                  p.container = $($.pickerModal(p.pickerHTML));
    +                  $(p.container)
    +                  .on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +
    +              // Store calendar instance
    +              p.container[0].f7Calendar = p;
    +              p.wrapper = p.container.find('.picker-calendar-months-wrapper');
    +
    +              // Months
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +
    +              // Update current month and year
    +              p.updateCurrentMonthYear();
    +
    +              // Set initial translate
    +              p.monthsTranslate = 0;
    +              p.setMonthsTranslate();
    +
    +              // Init events
    +              p.initCalendarEvents();
    +
    +              // Update input value
    +              if (updateValue) p.updateValue();
    +              
    +          }
    +
    +          // Set flag
    +          p.opened = true;
    +          p.initialized = true;
    +          if (p.params.onMonthAdd) {
    +              p.months.each(function () {
    +                  p.params.onMonthAdd(p, this);
    +              });
    +          }
    +          if (p.params.onOpen) p.params.onOpen(p);
    +      };
    +
    +      // Close
    +      p.close = function () {
    +          if (!p.opened || p.inline) return;
    +          if (inPopover()) {
    +              $.closeModal(p.popover);
    +              return;
    +          }
    +          else {
    +              $.closeModal(p.container);
    +              return;
    +          }
    +      };
    +
    +      // Destroy
    +      p.destroy = function () {
    +          p.close();
    +          if (p.params.input && p.input.length > 0) {
    +              p.input.off('click focus', openOnInput);
    +          }
    +          $('html').off('click', closeOnHTMLClick);
    +      };
    +
    +      if (p.inline) {
    +          p.open();
    +      }
    +
    +      return p;
    +  };
    +  $.fn.calendar = function (params) {
    +      return this.each(function() {
    +        var $this = $(this);
    +        if(!$this[0]) return;
    +        var calendar = $this.data("calendar");
    +        if(!calendar) {
    +          var p = {};
    +          if($this[0].tagName.toUpperCase() === "INPUT") {
    +            p.input = $this;
    +          } else {
    +            p.container = $this;
    +          }
    +          $this.data("calendar", new Calendar($.extend(p, params)));
    +        }
    +      });
    +  };
    +
    +  defaults = $.fn.calendar.prototype.defaults = {
    +    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August' , 'September' , 'October', 'November', 'December'],
    +    monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    +    dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
    +    dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
    +    firstDay: 1, // First day of the week, Monday
    +    weekendDays: [0, 6], // Sunday and Saturday
    +    multiple: false,
    +    dateFormat: 'yyyy-mm-dd',
    +    direction: 'horizontal', // or 'vertical'
    +    minDate: null,
    +    maxDate: null,
    +    touchMove: true,
    +    animate: true,
    +    closeOnSelect: true,
    +    monthPicker: true,
    +    monthPickerTemplate: 
    +        '<div class="picker-calendar-month-picker">' +
    +            '<a href="#" class="link icon-only picker-calendar-prev-month"><i class="icon icon-prev"></i></a>' +
    +            '<div class="current-month-value"></div>' +
    +            '<a href="#" class="link icon-only picker-calendar-next-month"><i class="icon icon-next"></i></a>' +
    +        '</div>',
    +    yearPicker: true,
    +    yearPickerTemplate: 
    +        '<div class="picker-calendar-year-picker">' +
    +            '<a href="#" class="link icon-only picker-calendar-prev-year"><i class="icon icon-prev"></i></a>' +
    +            '<span class="current-year-value"></span>' +
    +            '<a href="#" class="link icon-only picker-calendar-next-year"><i class="icon icon-next"></i></a>' +
    +        '</div>',
    +    weekHeader: true,
    +    // Common settings
    +    scrollToInput: true,
    +    inputReadOnly: true,
    +    convertToPopover: true,
    +    onlyInPopover: false,
    +    toolbar: true,
    +    toolbarCloseText: 'Done',
    +    toolbarTemplate: 
    +        '<div class="toolbar">' +
    +            '<div class="toolbar-inner">' +
    +                '{{monthPicker}}' +
    +                '{{yearPicker}}' +
    +                // '<a href="#" class="link close-picker">{{closeText}}</a>' +
    +            '</div>' +
    +        '</div>',
    +    /* Callbacks
    +    onMonthAdd
    +    onChange
    +    onOpen
    +    onClose
    +    onDayClick
    +    onMonthYearChangeStart
    +    onMonthYearChangeEnd
    +    */
    +  };
    +
    +  $.initCalendar = function(content) {
    +    var $content = content ? $(content) : $(document.body);
    +    $content.find("[data-toggle='date']").each(function() {
    +      $(this).calendar();
    +    });
    +  };
    +}($);
    +
    +/*======================================================
    +************   Picker   ************
    +======================================================*/
    +/* global $:true */
    +/* jshint unused:false */
    +/* jshint multistr:true */
    ++ function($) {
    +  "use strict";
    +  var Picker = function (params) {
    +      var p = this;
    +      var defaults = {
    +          updateValuesOnMomentum: false,
    +          updateValuesOnTouchmove: true,
    +          rotateEffect: false,
    +          momentumRatio: 7,
    +          freeMode: false,
    +          // Common settings
    +          scrollToInput: true,
    +          inputReadOnly: true,
    +          convertToPopover: true,
    +          onlyInPopover: false,
    +          toolbar: true,
    +          toolbarCloseText: 'OK',
    +          toolbarTemplate: '<header class="bar bar-nav">\
    +          <button class="button button-link pull-right close-picker">OK</button>\
    +          <h1 class="title"></h1>\
    +          </header>',
    +      };
    +      params = params || {};
    +      for (var def in defaults) {
    +          if (typeof params[def] === 'undefined') {
    +              params[def] = defaults[def];
    +          }
    +      }
    +      p.params = params;
    +      p.cols = [];
    +      p.initialized = false;
    +      
    +      // Inline flag
    +      p.inline = p.params.container ? true : false;
    +
    +      // 3D Transforms origin bug, only on safari
    +      var originBug = $.device.ios || (navigator.userAgent.toLowerCase().indexOf('safari') >= 0 && navigator.userAgent.toLowerCase().indexOf('chrome') < 0) && !$.device.android;
    +
    +      // Should be converted to popover
    +      function isPopover() {
    +          var toPopover = false;
    +          if (!p.params.convertToPopover && !p.params.onlyInPopover) return toPopover;
    +          if (!p.inline && p.params.input) {
    +              if (p.params.onlyInPopover) toPopover = true;
    +              else {
    +                  if ($.device.ios) {
    +                      toPopover = $.device.ipad ? true : false;
    +                  }
    +                  else {
    +                      if ($(window).width() >= 768) toPopover = true;
    +                  }
    +              }
    +          } 
    +          return toPopover; 
    +      }
    +      function inPopover() {
    +          if (p.opened && p.container && p.container.length > 0 && p.container.parents('.popover').length > 0) return true;
    +          else return false;
    +      }
    +
    +      // Value
    +      p.setValue = function (arrValues, transition) {
    +          var valueIndex = 0;
    +          for (var i = 0; i < p.cols.length; i++) {
    +              if (p.cols[i] && !p.cols[i].divider) {
    +                  p.cols[i].setValue(arrValues[valueIndex], transition);
    +                  valueIndex++;
    +              }
    +          }
    +      };
    +      p.updateValue = function () {
    +          var newValue = [];
    +          var newDisplayValue = [];
    +          for (var i = 0; i < p.cols.length; i++) {
    +              if (!p.cols[i].divider) {
    +                  newValue.push(p.cols[i].value);
    +                  newDisplayValue.push(p.cols[i].displayValue);
    +              }
    +          }
    +          if (newValue.indexOf(undefined) >= 0) {
    +              return;
    +          }
    +          p.value = newValue;
    +          p.displayValue = newDisplayValue;
    +          if (p.params.onChange) {
    +              p.params.onChange(p, p.value, p.displayValue);
    +          }
    +          if (p.input && p.input.length > 0) {
    +              $(p.input).val(p.params.formatValue ? p.params.formatValue(p, p.value, p.displayValue) : p.value.join(' '));
    +              $(p.input).trigger('change');
    +          }
    +      };
    +
    +      // Columns Handlers
    +      p.initPickerCol = function (colElement, updateItems) {
    +          var colContainer = $(colElement);
    +          var colIndex = colContainer.index();
    +          var col = p.cols[colIndex];
    +          if (col.divider) return;
    +          col.container = colContainer;
    +          col.wrapper = col.container.find('.picker-items-col-wrapper');
    +          col.items = col.wrapper.find('.picker-item');
    +          
    +          var i, j;
    +          var wrapperHeight, itemHeight, itemsHeight, minTranslate, maxTranslate;
    +          col.replaceValues = function (values, displayValues) {
    +              col.destroyEvents();
    +              col.values = values;
    +              col.displayValues = displayValues;
    +              var newItemsHTML = p.columnHTML(col, true);
    +              col.wrapper.html(newItemsHTML);
    +              col.items = col.wrapper.find('.picker-item');
    +              col.calcSize();
    +              col.setValue(col.values[0], 0, true);
    +              col.initEvents();
    +          };
    +          col.calcSize = function () {
    +              if (p.params.rotateEffect) {
    +                  col.container.removeClass('picker-items-col-absolute');
    +                  if (!col.width) col.container.css({width:''});
    +              }
    +              var colWidth, colHeight;
    +              colWidth = 0;
    +              colHeight = col.container[0].offsetHeight;
    +              wrapperHeight = col.wrapper[0].offsetHeight;
    +              itemHeight = col.items[0].offsetHeight;
    +              itemsHeight = itemHeight * col.items.length;
    +              minTranslate = colHeight / 2 - itemsHeight + itemHeight / 2;
    +              maxTranslate = colHeight / 2 - itemHeight / 2;    
    +              if (col.width) {
    +                  colWidth = col.width;
    +                  if (parseInt(colWidth, 10) === colWidth) colWidth = colWidth + 'px';
    +                  col.container.css({width: colWidth});
    +              }
    +              if (p.params.rotateEffect) {
    +                  if (!col.width) {
    +                      col.items.each(function () {
    +                          var item = $(this);
    +                          item.css({width:'auto'});
    +                          colWidth = Math.max(colWidth, item[0].offsetWidth);
    +                          item.css({width:''});
    +                      });
    +                      col.container.css({width: (colWidth + 2) + 'px'});
    +                  }
    +                  col.container.addClass('picker-items-col-absolute');
    +              }
    +          };
    +          col.calcSize();
    +          
    +          col.wrapper.transform('translate3d(0,' + maxTranslate + 'px,0)').transition(0);
    +
    +
    +          var activeIndex = 0;
    +          var animationFrameId;
    +
    +          // Set Value Function
    +          col.setValue = function (newValue, transition, valueCallbacks) {
    +              if (typeof transition === 'undefined') transition = '';
    +              var newActiveIndex = col.wrapper.find('.picker-item[data-picker-value="' + newValue + '"]').index();
    +              if(typeof newActiveIndex === 'undefined' || newActiveIndex === -1) {
    +                  return;
    +              }
    +              var newTranslate = -newActiveIndex * itemHeight + maxTranslate;
    +              // Update wrapper
    +              col.wrapper.transition(transition);
    +              col.wrapper.transform('translate3d(0,' + (newTranslate) + 'px,0)');
    +                  
    +              // Watch items
    +              if (p.params.updateValuesOnMomentum && col.activeIndex && col.activeIndex !== newActiveIndex ) {
    +                  $.cancelAnimationFrame(animationFrameId);
    +                  col.wrapper.transitionEnd(function(){
    +                      $.cancelAnimationFrame(animationFrameId);
    +                  });
    +                  updateDuringScroll();
    +              }
    +
    +              // Update items
    +              col.updateItems(newActiveIndex, newTranslate, transition, valueCallbacks);
    +          };
    +
    +          col.updateItems = function (activeIndex, translate, transition, valueCallbacks) {
    +              if (typeof translate === 'undefined') {
    +                  translate = $.getTranslate(col.wrapper[0], 'y');
    +              }
    +              if(typeof activeIndex === 'undefined') activeIndex = -Math.round((translate - maxTranslate)/itemHeight);
    +              if (activeIndex < 0) activeIndex = 0;
    +              if (activeIndex >= col.items.length) activeIndex = col.items.length - 1;
    +              var previousActiveIndex = col.activeIndex;
    +              col.activeIndex = activeIndex;
    +              /*
    +              col.wrapper.find('.picker-selected, .picker-after-selected, .picker-before-selected').removeClass('picker-selected picker-after-selected picker-before-selected');
    +
    +              col.items.transition(transition);
    +              var selectedItem = col.items.eq(activeIndex).addClass('picker-selected').transform('');
    +              var prevItems = selectedItem.prevAll().addClass('picker-before-selected');
    +              var nextItems = selectedItem.nextAll().addClass('picker-after-selected');
    +              */
    +              //去掉 .picker-after-selected, .picker-before-selected 以提高性能
    +              col.wrapper.find('.picker-selected').removeClass('picker-selected');
    +              if (p.params.rotateEffect) {
    +                col.items.transition(transition);
    +              }
    +              var selectedItem = col.items.eq(activeIndex).addClass('picker-selected').transform('');
    +
    +              if (valueCallbacks || typeof valueCallbacks === 'undefined') {
    +                  // Update values
    +                  col.value = selectedItem.attr('data-picker-value');
    +                  col.displayValue = col.displayValues ? col.displayValues[activeIndex] : col.value;
    +                  // On change callback
    +                  if (previousActiveIndex !== activeIndex) {
    +                      if (col.onChange) {
    +                          col.onChange(p, col.value, col.displayValue);
    +                      }
    +                      p.updateValue();
    +                  }
    +              }
    +                  
    +              // Set 3D rotate effect
    +              if (!p.params.rotateEffect) {
    +                  return;
    +              }
    +              var percentage = (translate - (Math.floor((translate - maxTranslate)/itemHeight) * itemHeight + maxTranslate)) / itemHeight;
    +              
    +              col.items.each(function () {
    +                  var item = $(this);
    +                  var itemOffsetTop = item.index() * itemHeight;
    +                  var translateOffset = maxTranslate - translate;
    +                  var itemOffset = itemOffsetTop - translateOffset;
    +                  var percentage = itemOffset / itemHeight;
    +
    +                  var itemsFit = Math.ceil(col.height / itemHeight / 2) + 1;
    +                  
    +                  var angle = (-18*percentage);
    +                  if (angle > 180) angle = 180;
    +                  if (angle < -180) angle = -180;
    +                  // Far class
    +                  if (Math.abs(percentage) > itemsFit) item.addClass('picker-item-far');
    +                  else item.removeClass('picker-item-far');
    +                  // Set transform
    +                  item.transform('translate3d(0, ' + (-translate + maxTranslate) + 'px, ' + (originBug ? -110 : 0) + 'px) rotateX(' + angle + 'deg)');
    +              });
    +          };
    +
    +          function updateDuringScroll() {
    +              animationFrameId = $.requestAnimationFrame(function () {
    +                  col.updateItems(undefined, undefined, 0);
    +                  updateDuringScroll();
    +              });
    +          }
    +
    +          // Update items on init
    +          if (updateItems) col.updateItems(0, maxTranslate, 0);
    +
    +          var allowItemClick = true;
    +          var isTouched, isMoved, touchStartY, touchCurrentY, touchStartTime, touchEndTime, startTranslate, returnTo, currentTranslate, prevTranslate, velocityTranslate, velocityTime;
    +          function handleTouchStart (e) {
    +              if (isMoved || isTouched) return;
    +              e.preventDefault();
    +              isTouched = true;
    +              var position = $.getTouchPosition(e);
    +              touchStartY = touchCurrentY = position.y;
    +              touchStartTime = (new Date()).getTime();
    +              
    +              allowItemClick = true;
    +              startTranslate = currentTranslate = $.getTranslate(col.wrapper[0], 'y');
    +          }
    +          function handleTouchMove (e) {
    +              if (!isTouched) return;
    +              e.preventDefault();
    +              allowItemClick = false;
    +              var position = $.getTouchPosition(e);
    +              touchCurrentY = position.y;
    +              if (!isMoved) {
    +                  // First move
    +                  $.cancelAnimationFrame(animationFrameId);
    +                  isMoved = true;
    +                  startTranslate = currentTranslate = $.getTranslate(col.wrapper[0], 'y');
    +                  col.wrapper.transition(0);
    +              }
    +              e.preventDefault();
    +
    +              var diff = touchCurrentY - touchStartY;
    +              currentTranslate = startTranslate + diff;
    +              returnTo = undefined;
    +
    +              // Normalize translate
    +              if (currentTranslate < minTranslate) {
    +                  currentTranslate = minTranslate - Math.pow(minTranslate - currentTranslate, 0.8);
    +                  returnTo = 'min';
    +              }
    +              if (currentTranslate > maxTranslate) {
    +                  currentTranslate = maxTranslate + Math.pow(currentTranslate - maxTranslate, 0.8);
    +                  returnTo = 'max';
    +              }
    +              // Transform wrapper
    +              col.wrapper.transform('translate3d(0,' + currentTranslate + 'px,0)');
    +
    +              // Update items
    +              col.updateItems(undefined, currentTranslate, 0, p.params.updateValuesOnTouchmove);
    +              
    +              // Calc velocity
    +              velocityTranslate = currentTranslate - prevTranslate || currentTranslate;
    +              velocityTime = (new Date()).getTime();
    +              prevTranslate = currentTranslate;
    +          }
    +          function handleTouchEnd (e) {
    +              if (!isTouched || !isMoved) {
    +                  isTouched = isMoved = false;
    +                  return;
    +              }
    +              isTouched = isMoved = false;
    +              col.wrapper.transition('');
    +              if (returnTo) {
    +                  if (returnTo === 'min') {
    +                      col.wrapper.transform('translate3d(0,' + minTranslate + 'px,0)');
    +                  }
    +                  else col.wrapper.transform('translate3d(0,' + maxTranslate + 'px,0)');
    +              }
    +              touchEndTime = new Date().getTime();
    +              var velocity, newTranslate;
    +              if (touchEndTime - touchStartTime > 300) {
    +                  newTranslate = currentTranslate;
    +              }
    +              else {
    +                  velocity = Math.abs(velocityTranslate / (touchEndTime - velocityTime));
    +                  newTranslate = currentTranslate + velocityTranslate * p.params.momentumRatio;
    +              }
    +
    +              newTranslate = Math.max(Math.min(newTranslate, maxTranslate), minTranslate);
    +
    +              // Active Index
    +              var activeIndex = -Math.floor((newTranslate - maxTranslate)/itemHeight);
    +
    +              // Normalize translate
    +              if (!p.params.freeMode) newTranslate = -activeIndex * itemHeight + maxTranslate;
    +
    +              // Transform wrapper
    +              col.wrapper.transform('translate3d(0,' + (parseInt(newTranslate,10)) + 'px,0)');
    +
    +              // Update items
    +              col.updateItems(activeIndex, newTranslate, '', true);
    +
    +              // Watch items
    +              if (p.params.updateValuesOnMomentum) {
    +                  updateDuringScroll();
    +                  col.wrapper.transitionEnd(function(){
    +                      $.cancelAnimationFrame(animationFrameId);
    +                  });
    +              }
    +
    +              // Allow click
    +              setTimeout(function () {
    +                  allowItemClick = true;
    +              }, 100);
    +          }
    +
    +          function handleClick(e) {
    +              if (!allowItemClick) return;
    +              $.cancelAnimationFrame(animationFrameId);
    +              /*jshint validthis:true */
    +              var value = $(this).attr('data-picker-value');
    +              col.setValue(value);
    +          }
    +
    +          col.initEvents = function (detach) {
    +              var method = detach ? 'off' : 'on';
    +              col.container[method]($.touchEvents.start, handleTouchStart);
    +              col.container[method]($.touchEvents.move, handleTouchMove);
    +              col.container[method]($.touchEvents.end, handleTouchEnd);
    +              col.items[method]('click', handleClick);
    +          };
    +          col.destroyEvents = function () {
    +              col.initEvents(true);
    +          };
    +
    +          col.container[0].f7DestroyPickerCol = function () {
    +              col.destroyEvents();
    +          };
    +
    +          col.initEvents();
    +
    +      };
    +      p.destroyPickerCol = function (colContainer) {
    +          colContainer = $(colContainer);
    +          if ('f7DestroyPickerCol' in colContainer[0]) colContainer[0].f7DestroyPickerCol();
    +      };
    +      // Resize cols
    +      function resizeCols() {
    +          if (!p.opened) return;
    +          for (var i = 0; i < p.cols.length; i++) {
    +              if (!p.cols[i].divider) {
    +                  p.cols[i].calcSize();
    +                  p.cols[i].setValue(p.cols[i].value, 0, false);
    +              }
    +          }
    +      }
    +      $(window).on('resize', resizeCols);
    +
    +      // HTML Layout
    +      p.columnHTML = function (col, onlyItems) {
    +          var columnItemsHTML = '';
    +          var columnHTML = '';
    +          if (col.divider) {
    +              columnHTML += '<div class="picker-items-col picker-items-col-divider ' + (col.textAlign ? 'picker-items-col-' + col.textAlign : '') + ' ' + (col.cssClass || '') + '">' + col.content + '</div>';
    +          }
    +          else {
    +              for (var j = 0; j < col.values.length; j++) {
    +                  columnItemsHTML += '<div class="picker-item" data-picker-value="' + col.values[j] + '">' + (col.displayValues ? col.displayValues[j] : col.values[j]) + '</div>';
    +              }
    +              columnHTML += '<div class="picker-items-col ' + (col.textAlign ? 'picker-items-col-' + col.textAlign : '') + ' ' + (col.cssClass || '') + '"><div class="picker-items-col-wrapper">' + columnItemsHTML + '</div></div>';
    +          }
    +          return onlyItems ? columnItemsHTML : columnHTML;
    +      };
    +      p.layout = function () {
    +          var pickerHTML = '';
    +          var pickerClass = '';
    +          var i;
    +          p.cols = [];
    +          var colsHTML = '';
    +          for (i = 0; i < p.params.cols.length; i++) {
    +              var col = p.params.cols[i];
    +              colsHTML += p.columnHTML(p.params.cols[i]);
    +              p.cols.push(col);
    +          }
    +          pickerClass = 'picker-modal picker-columns ' + (p.params.cssClass || '') + (p.params.rotateEffect ? ' picker-3d' : '');
    +          pickerHTML =
    +              '<div class="' + (pickerClass) + '">' +
    +                  (p.params.toolbar ? p.params.toolbarTemplate.replace(/{{closeText}}/g, p.params.toolbarCloseText) : '') +
    +                  '<div class="picker-modal-inner picker-items">' +
    +                      colsHTML +
    +                      '<div class="picker-center-highlight"></div>' +
    +                  '</div>' +
    +              '</div>';
    +              
    +          p.pickerHTML = pickerHTML;    
    +      };
    +
    +      // Input Events
    +      function openOnInput(e) {
    +          e.preventDefault();
    +          if (p.opened) return;
    +          p.open();
    +          if (p.params.scrollToInput && !isPopover()) {
    +              var pageContent = p.input.parents('.content');
    +              if (pageContent.length === 0) return;
    +
    +              var paddingTop = parseInt(pageContent.css('padding-top'), 10),
    +                  paddingBottom = parseInt(pageContent.css('padding-bottom'), 10),
    +                  pageHeight = pageContent[0].offsetHeight - paddingTop - p.container.height(),
    +                  pageScrollHeight = pageContent[0].scrollHeight - paddingTop - p.container.height(),
    +                  newPaddingBottom;
    +              var inputTop = p.input.offset().top - paddingTop + p.input[0].offsetHeight;
    +              if (inputTop > pageHeight) {
    +                  var scrollTop = pageContent.scrollTop() + inputTop - pageHeight;
    +                  if (scrollTop + pageHeight > pageScrollHeight) {
    +                      newPaddingBottom = scrollTop + pageHeight - pageScrollHeight + paddingBottom;
    +                      if (pageHeight === pageScrollHeight) {
    +                          newPaddingBottom = p.container.height();
    +                      }
    +                      pageContent.css({'padding-bottom': (newPaddingBottom) + 'px'});
    +                  }
    +                  pageContent.scrollTop(scrollTop, 300);
    +              }
    +          }
    +      }
    +      function closeOnHTMLClick(e) {
    +          if (inPopover()) return;
    +          if (p.input && p.input.length > 0) {
    +              if (e.target !== p.input[0] && $(e.target).parents('.picker-modal').length === 0) p.close();
    +          }
    +          else {
    +              if ($(e.target).parents('.picker-modal').length === 0) p.close();   
    +          }
    +      }
    +
    +      if (p.params.input) {
    +          p.input = $(p.params.input);
    +          if (p.input.length > 0) {
    +              if (p.params.inputReadOnly) p.input.prop('readOnly', true);
    +              if (!p.inline) {
    +                p.input.on("click", function(e) {
    +                  openOnInput(e);
    +                  //修复部分安卓系统下,即使设置了readonly依然会弹出系统键盘的bug
    +                  if (p.params.inputReadOnly) {
    +                    this.focus();
    +                    this.blur();
    +                  }
    +                });
    +              }
    +              if (p.params.inputReadOnly) {
    +                  p.input.on('focus mousedown', function (e) {
    +                      e.preventDefault();
    +                  });
    +              }
    +          }
    +              
    +      }
    +      
    +      if (!p.inline) $('html').on('click', closeOnHTMLClick);
    +
    +      // Open
    +      function onPickerClose() {
    +          p.opened = false;
    +          if (p.input && p.input.length > 0) p.input.parents('.page-content').css({'padding-bottom': ''});
    +          if (p.params.onClose) p.params.onClose(p);
    +
    +          // Destroy events
    +          p.container.find('.picker-items-col').each(function () {
    +              p.destroyPickerCol(this);
    +          });
    +      }
    +
    +      p.opened = false;
    +      p.open = function () {
    +          var toPopover = isPopover();
    +
    +          if (!p.opened) {
    +
    +              // Layout
    +              p.layout();
    +
    +              // Append
    +              if (toPopover) {
    +                  p.pickerHTML = '<div class="popover popover-picker-columns"><div class="popover-inner">' + p.pickerHTML + '</div></div>';
    +                  p.popover = $.popover(p.pickerHTML, p.params.input, true);
    +                  p.container = $(p.popover).find('.picker-modal');
    +                  $(p.popover).on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +              else if (p.inline) {
    +                  p.container = $(p.pickerHTML);
    +                  p.container.addClass('picker-modal-inline');
    +                  $(p.params.container).append(p.container);
    +              }
    +              else {
    +                  p.container = $($.pickerModal(p.pickerHTML));
    +                  $(p.container)
    +                  .on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +
    +              // Store picker instance
    +              p.container[0].f7Picker = p;
    +
    +              // Init Events
    +              p.container.find('.picker-items-col').each(function () {
    +                  var updateItems = true;
    +                  if ((!p.initialized && p.params.value) || (p.initialized && p.value)) updateItems = false;
    +                  p.initPickerCol(this, updateItems);
    +              });
    +              
    +              // Set value
    +              if (!p.initialized) {
    +                  if (p.params.value) {
    +                      p.setValue(p.params.value, 0);
    +                  }
    +              }
    +              else {
    +                  if (p.value) p.setValue(p.value, 0);
    +              }
    +          }
    +
    +          // Set flag
    +          p.opened = true;
    +          p.initialized = true;
    +
    +          if (p.params.onOpen) p.params.onOpen(p);
    +      };
    +
    +      // Close
    +      p.close = function () {
    +          if (!p.opened || p.inline) return;
    +          if (inPopover()) {
    +              $.closeModal(p.popover);
    +              return;
    +          }
    +          else {
    +              $.closeModal(p.container);
    +              return;
    +          }
    +      };
    +
    +      // Destroy
    +      p.destroy = function () {
    +          p.close();
    +          if (p.params.input && p.input.length > 0) {
    +              p.input.off('click focus', openOnInput);
    +          }
    +          $('html').off('click', closeOnHTMLClick);
    +          $(window).off('resize', resizeCols);
    +      };
    +
    +      if (p.inline) {
    +          p.open();
    +      }
    +
    +      return p;
    +  };
    +
    +  $(document).on("click", ".close-picker", function() {
    +    var pickerToClose = $('.picker-modal.modal-in');
    +    if (pickerToClose.length > 0) {
    +      $.closeModal(pickerToClose);
    +    }
    +    else {
    +      pickerToClose = $('.popover.modal-in .picker-modal');
    +      if (pickerToClose.length > 0) {
    +        $.closeModal(pickerToClose.parents('.popover'));
    +      }
    +    }
    +  });
    +
    +  //修复picker会滚动页面的bug
    +  $(document).on($.touchEvents.move, ".picker-modal-inner", function(e) {
    +    e.preventDefault();
    +  });
    +
    +  $.fn.picker = function(params) {
    +    var args = arguments;
    +    return this.each(function() {
    +      if(!this) return;
    +      var $this = $(this);
    +      
    +      var picker = $this.data("picker");
    +      if(!picker) {
    +        params = params || {};
    +        var inputValue = $this.val();
    +        if(params.value === undefined && inputValue !== "") {
    +          params.value = params.cols.length > 1 ? inputValue.split(" ") : [inputValue];
    +        }
    +        var p = $.extend({input: this}, params);
    +        picker = new Picker(p);
    +        $this.data("picker", picker);
    +      }
    +      if(typeof params === typeof "a") {
    +        picker[params].apply(picker, Array.prototype.slice.call(args, 1));
    +      }
    +    });
    +  };
    +}($);
    +
    +/* global $:true */
    +/* jshint unused:false*/
    +
    ++ function($) {
    +  "use strict";
    +
    +  
    +  $.fn.datetimePicker = function(params) {
    +    return this.each(function() {
    +
    +      if(!this) return;
    +
    +      var today = new Date();
    +
    +      var getDays = function(max) {
    +        var days = [];
    +        for(var i=1; i<= (max||31);i++) {
    +          days.push(i < 10 ? "0"+i : i);
    +        }
    +        return days;
    +      };
    +
    +      var getDaysByMonthAndYear = function(month, year) {
    +        var int_d = new Date(year, parseInt(month)+1-1, 1);
    +        var d = new Date(int_d - 1);
    +        return getDays(d.getDate());
    +      };
    +
    +      var formatNumber = function (n) {
    +        return n < 10 ? "0" + n : n;
    +      };
    +
    +      var initMonthes = ('01 02 03 04 05 06 07 08 09 10 11 12').split(' ');
    +
    +      var initYears = (function () {
    +        var arr = [];
    +        for (var i = 1950; i <= 2030; i++) { arr.push(i); }
    +        return arr;
    +      })();
    +
    +
    +      var defaults = {
    +
    +        rotateEffect: false,  //为了性能
    +
    +        value: [today.getFullYear(), formatNumber(today.getMonth()+1), today.getDate(), formatNumber(today.getHours()), formatNumber(today.getMinutes())],
    +
    +        onChange: function (picker, values, displayValues) {
    +          var days = getDaysByMonthAndYear(picker.cols[1].value, picker.cols[0].value);
    +          var currentValue = picker.cols[2].value;
    +          if(currentValue > days.length) currentValue = days.length;
    +          picker.cols[2].setValue(currentValue);
    +        },
    +
    +        formatValue: function (p, values, displayValues) {
    +          return displayValues[0] + '-' + values[1] + '-' + values[2] + ' ';
    +        },
    +
    +        cols: [
    +          // Years
    +          {
    +            values: initYears
    +          },
    +          // Months
    +          {
    +            values: initMonthes
    +          },
    +          // Days
    +          {
    +            values: getDays()
    +          },
    +
    +//          // Space divider
    +//          {
    +//            divider: true,
    +//            content: '  '
    +//          },
    +//          // Hours
    +//          {
    +//            values: (function () {
    +//              var arr = [];
    +//              for (var i = 0; i <= 23; i++) { arr.push(formatNumber(i)); }
    +//              return arr;
    +//            })(),
    +//          },
    +//          // Divider
    +//          {
    +//            divider: true,
    +//            content: ':'
    +//          },
    +//          // Minutes
    +//          {
    +//            values: (function () {
    +//              var arr = [];
    +//              for (var i = 0; i <= 59; i++) { arr.push(formatNumber(i)); }
    +//              return arr;
    +//            })(),
    +//          }
    +        ]
    +      };
    +
    +      params = params || {};
    +      var inputValue = $(this).val();
    +      if(params.value === undefined && inputValue !== "") {
    +        params.value = [].concat(inputValue.split(" ")[0].split("-"), inputValue.split(" ")[1].split(":"));
    +      }
    +
    +      var p = $.extend(defaults, params);
    +      $(this).picker(p);
    +    });
    +  };
    +
    +}($);
    +
    ++ function($) {
    +    'use strict';
    +
    +    $.initPullToRefresh = function(pageContainer) {
    +        var eventsTarget = $(pageContainer);
    +        if (!eventsTarget.hasClass('pull-to-refresh-content')) {
    +            eventsTarget = eventsTarget.find('.pull-to-refresh-content');
    +        }
    +        if (!eventsTarget || eventsTarget.length === 0) return;
    +
    +        var isTouched, isMoved, touchesStart = {},
    +            isScrolling, touchesDiff, touchStartTime, container, refresh = false,
    +            useTranslate = false,
    +            startTranslate = 0,
    +            translate, scrollTop, wasScrolled, triggerDistance, dynamicTriggerDistance;
    +        
    +        container = eventsTarget;
    +
    +        // Define trigger distance
    +        if (container.attr('data-ptr-distance')) {
    +            dynamicTriggerDistance = true;
    +        } else {
    +            triggerDistance = 44;
    +        }
    +
    +        function handleTouchStart(e) {
    +            if (isTouched) {
    +                if ($.os.android) {
    +                    if ('targetTouches' in e && e.targetTouches.length > 1) return;
    +                } else return;
    +            }
    +            isMoved = false;
    +            isTouched = true;
    +            isScrolling = undefined;
    +            wasScrolled = undefined;
    +            var position = $.getTouchPosition(e);
    +            touchesStart.x = position.x;
    +            touchesStart.y = position.y;
    +            touchStartTime = (new Date()).getTime();
    +            /*jshint validthis:true */
    +            container = $(this);
    +        }
    +
    +        function handleTouchMove(e) {
    +            if (!isTouched) return;
    +            var position = $.getTouchPosition(e);
    +            var pageX = position.x;
    +            var pageY = position.y;
    +            if (typeof isScrolling === 'undefined') {
    +                isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x));
    +            }
    +            if (!isScrolling) {
    +                isTouched = false;
    +                return;
    +            }
    +
    +            scrollTop = container[0].scrollTop;
    +            if (typeof wasScrolled === 'undefined' && scrollTop !== 0) wasScrolled = true;
    +
    +            if (!isMoved) {
    +                /*jshint validthis:true */
    +                container.removeClass('transitioning');
    +                if (scrollTop > container[0].offsetHeight) {
    +                    isTouched = false;
    +                    return;
    +                }
    +                if (dynamicTriggerDistance) {
    +                    triggerDistance = container.attr('data-ptr-distance');
    +                    if (triggerDistance.indexOf('%') >= 0) triggerDistance = container[0].offsetHeight * parseInt(triggerDistance, 10) / 100;
    +                }
    +                startTranslate = container.hasClass('refreshing') ? triggerDistance : 0;
    +                if (container[0].scrollHeight === container[0].offsetHeight || !$.os.ios) {
    +                    useTranslate = true;
    +                } else {
    +                    useTranslate = false;
    +                }
    +                useTranslate = true;
    +            }
    +            isMoved = true;
    +            touchesDiff = pageY - touchesStart.y;
    +
    +            if (touchesDiff > 0 && scrollTop <= 0 || scrollTop < 0) {
    +                // iOS 8 fix
    +                if ($.os.ios && parseInt($.os.version.split('.')[0], 10) > 7 && scrollTop === 0 && !wasScrolled) useTranslate = true;
    +
    +                if (useTranslate) {
    +                    e.preventDefault();
    +                    translate = (Math.pow(touchesDiff, 0.85) + startTranslate);
    +                    container.transform('translate3d(0,' + translate + 'px,0)');
    +                } else {}
    +                if ((useTranslate && Math.pow(touchesDiff, 0.85) > triggerDistance) || (!useTranslate && touchesDiff >= triggerDistance * 2)) {
    +                    refresh = true;
    +                    container.addClass('pull-up').removeClass('pull-down');
    +                } else {
    +                    refresh = false;
    +                    container.removeClass('pull-up').addClass('pull-down');
    +                }
    +            } else {
    +
    +                container.removeClass('pull-up pull-down');
    +                refresh = false;
    +                return;
    +            }
    +        }
    +
    +        function handleTouchEnd() {
    +            if (!isTouched || !isMoved) {
    +                isTouched = false;
    +                isMoved = false;
    +                return;
    +            }
    +            if (translate) {
    +                container.addClass('transitioning');
    +                translate = 0;
    +            }
    +            container.transform('');
    +            if (refresh) {
    +                container.addClass('refreshing');
    +                container.trigger('refresh', {
    +                    done: function() {
    +                        $.pullToRefreshDone(container);
    +                    }
    +                });
    +            } else {
    +                container.removeClass('pull-down');
    +            }
    +            isTouched = false;
    +            isMoved = false;
    +        }
    +
    +        // Attach Events
    +        eventsTarget.on($.touchEvents.start, handleTouchStart);
    +        eventsTarget.on($.touchEvents.move, handleTouchMove);
    +        eventsTarget.on($.touchEvents.end, handleTouchEnd);
    +
    +
    +        function destroyPullToRefresh() {
    +            eventsTarget.off($.touchEvents.start, handleTouchStart);
    +            eventsTarget.off($.touchEvents.move, handleTouchMove);
    +            eventsTarget.off($.touchEvents.end, handleTouchEnd);
    +        }
    +        eventsTarget[0].destroyPullToRefresh = destroyPullToRefresh;
    +
    +    };
    +    $.pullToRefreshDone = function(container) {
    +        container = $(container);
    +        if (container.length === 0) container = $('.pull-to-refresh-content.refreshing');
    +        container.removeClass('refreshing').addClass('transitioning');
    +        container.transitionEnd(function() {
    +            container.removeClass('transitioning pull-up pull-down');
    +        });
    +    };
    +    $.pullToRefreshTrigger = function(container) {
    +        container = $(container);
    +        if (container.length === 0) container = $('.pull-to-refresh-content');
    +        if (container.hasClass('refreshing')) return;
    +        container.addClass('transitioning refreshing');
    +        container.trigger('refresh', {
    +            done: function() {
    +                $.pullToRefreshDone(container);
    +            }
    +        });
    +    };
    +
    +    $.destroyPullToRefresh = function(pageContainer) {
    +        pageContainer = $(pageContainer);
    +        var pullToRefreshContent = pageContainer.hasClass('pull-to-refresh-content') ? pageContainer : pageContainer.find('.pull-to-refresh-content');
    +        if (pullToRefreshContent.length === 0) return;
    +        if (pullToRefreshContent[0].destroyPullToRefresh) pullToRefreshContent[0].destroyPullToRefresh();
    +    };
    +
    +}($); //jshint ignore:line
    +
    +/* global $:true */
    ++ function($) {
    +    'use strict';
    +   
    +    function handleInfiniteScroll() {
    +        /*jshint validthis:true */
    +        var inf = $(this);
    +        var scrollTop = inf.scrollTop();
    +        var scrollHeight = inf.scrollHeight();
    +        var height = inf[0].offsetHeight;
    +        var distance = inf[0].getAttribute('data-distance');
    +        var virtualListContainer = inf.find('.virtual-list');
    +        var virtualList;
    +        var onTop = inf.hasClass('infinite-scroll-top');
    +        if (!distance) distance = 50;
    +        if (typeof distance === 'string' && distance.indexOf('%') >= 0) {
    +            distance = parseInt(distance, 10) / 100 * height;
    +        }
    +        if (distance > height) distance = height;
    +        if (onTop) {
    +            if (scrollTop < distance) {
    +                inf.trigger('infinite');
    +            }
    +        } else {
    +            if (scrollTop + height >= scrollHeight - distance) {
    +                if (virtualListContainer.length > 0) {
    +                    virtualList = virtualListContainer[0].f7VirtualList;
    +                    if (virtualList && !virtualList.reachEnd) return;
    +                }
    +                inf.trigger('infinite');
    +            }
    +        }
    +
    +    }
    +    $.attachInfiniteScroll = function(infiniteContent) {
    +        $(infiniteContent).on('scroll', handleInfiniteScroll);
    +    };
    +    $.detachInfiniteScroll = function(infiniteContent) {
    +        $(infiniteContent).off('scroll', handleInfiniteScroll);
    +    };
    +
    +    $.initInfiniteScroll = function(pageContainer) {
    +        pageContainer = $(pageContainer);
    +        var infiniteContent = pageContainer.hasClass('infinite-scroll')?pageContainer:pageContainer.find('.infinite-scroll');
    +        if (infiniteContent.length === 0) return;
    +        $.attachInfiniteScroll(infiniteContent);
    +
    +        function detachEvents() {
    +            $.detachInfiniteScroll(infiniteContent);
    +            pageContainer.off('pageBeforeRemove', detachEvents);
    +        }
    +        pageContainer.on('pageBeforeRemove', detachEvents);
    +    };
    +}($); 
    +
    +/* ===============================================================================
    +************   Notification ************
    +=============================================================================== */
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  var noti, defaults, timeout, start, diffX, diffY;
    +
    +  var touchStart = function(e) {
    +    var p = $.getTouchPosition(e);
    +    start = p;
    +    diffX = diffY = 0;
    +    noti.addClass("touching");
    +  };
    +  var touchMove = function(e) {
    +    if(!start) return false;
    +    e.preventDefault();
    +    e.stopPropagation();
    +    var p = $.getTouchPosition(e);
    +    diffX = p.x - start.x;
    +    diffY = p.y - start.y;
    +    if(diffY > 0) {
    +      diffY = Math.sqrt(diffY);
    +    }
    +
    +    noti.css("transform", "translate3d(0, "+diffY+"px, 0)");
    +  };
    +  var touchEnd = function() {
    +    noti.removeClass("touching");
    +    noti.attr("style", "");
    +    if(diffY < 0 && (Math.abs(diffY) > noti.height()*0.38)) {
    +      $.closeNotification();
    +    }
    +
    +    if(Math.abs(diffX) <= 1 && Math.abs(diffY) <= 1) {
    +      noti.trigger("noti-click");
    +    }
    +
    +    start = false;
    +  };
    +
    +  var attachEvents = function(el) {
    +    el.on($.touchEvents.start, touchStart);
    +    el.on($.touchEvents.move, touchMove);
    +    el.on($.touchEvents.end, touchEnd);
    +  };
    +
    +  $.notification = $.noti = function(params) {
    +    params = $.extend({}, defaults, params);
    +    noti = $(".notification");
    +    if(!noti[0]) { // create a new notification
    +      noti = $('<div class="notification"></div>').appendTo(document.body);
    +      attachEvents(noti);
    +    }
    +
    +    noti.off("noti-click"); //the click event is not correct sometime: it will trigger when user is draging.
    +    if(params.onClick) noti.on("noti-click", function() {
    +      params.onClick(params.data);
    +    });
    +
    +    noti.html($.t7.compile(params.tpl)(params));
    +
    +    noti.show();
    +
    +    noti.addClass("notification-in");
    +    noti.data("params", params);
    +
    +    var startTimeout = function() {
    +      if(timeout) {
    +        clearTimeout(timeout);
    +        timeout = null;
    +      }
    +
    +      timeout = setTimeout(function() {
    +        if(noti.hasClass("touching")) {
    +          startTimeout();
    +        } else {
    +          $.closeNotification();
    +        }
    +      }, params.time);
    +    };
    +
    +    startTimeout();
    +
    +  };
    +
    +  $.closeNotification = function() {
    +    timeout && clearTimeout(timeout);
    +    timeout = null;
    +    var noti = $(".notification").removeClass("notification-in").transitionEnd(function() {
    +      $(this).remove();
    +    });
    +
    +    if(noti[0]) {
    +      var params = $(".notification").data("params");
    +      if(params && params.onClose) {
    +        params.onClose(params.data);
    +      }
    +    }
    +  };
    +
    +  defaults = $.noti.prototype.defaults = {
    +    title: undefined,
    +    text: undefined,
    +    media: undefined,
    +    time: 4000,
    +    onClick: undefined,
    +    onClose: undefined,
    +    data: undefined,
    +    tpl:  '<div class="notification-inner">' +
    +            '{{#if media}}<div class="notification-media">{{media}}</div>{{/if}}' +
    +            '<div class="notification-content">' +
    +            '{{#if title}}<div class="notification-title">{{title}}</div>{{/if}}' +
    +            '{{#if text}}<div class="notification-text">{{text}}</div>{{/if}}' +
    +            '</div>' +
    +            '<div class="notification-handle-bar"></div>' +
    +          '</div>'
    +  };
    +
    +}($);
    +
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  var Index = function(params) {
    +    this.params = params;
    +    this.tpl = $.t7(this.params.indexListTemplate).compile();
    +  };
    +
    +  Index.prototype.render = function(list) {
    +    this.list = $(list || ".list");
    +    this.draw();
    +  };
    +
    +  Index.prototype.draw = function() {
    +    if(this.indexList) this.indexList.remove();
    +    this.titles = this.list.find(this.params.titleSelector);
    +    var titleTexts = this.titles.map(function(i, t) {
    +      return $(t).data("index") || $(t).text();
    +    }).toArray();
    +
    +    this.indexList = $("<ul class='index-list-bar'></ul>").appendTo(this.list.parents(".page"));
    +    this.indexList.html(this.tpl({indexes: titleTexts}));
    +    this.indexList.on($.touchEvents.start, $.proxy(this.touchStart, this));
    +    this.indexList.on($.touchEvents.start + " " + $.touchEvents.move, $.proxy(this.touchMove, this));
    +    this.indexList.on($.touchEvents.end, $.proxy(this.touchEnd, this));
    +
    +    this.content = this.list.parents(".content");
    +  };
    +
    +  Index.prototype.touchStart = function() {
    +    this.pageOffsetTop = this.content.offset().top;
    +    this.touching = true;
    +  };
    +
    +  Index.prototype.touchMove = function(e) {
    +    if(!this.touching) return;
    +    e.preventDefault();
    +    var li = this.getElementOnTouch($.getTouchPosition(e));
    +    if(!li) return;
    +    var title = this.titles.eq(li.data("index"));
    +    var titleTop = title.parent().offset().top; // if a element has class list-group-title, it will be sticky in safari, so it's offset is not correct
    +    var top =  titleTop - this.pageOffsetTop + this.content.scrollTop();
    +    this.content.scrollTop(top);
    +  };
    +
    +  Index.prototype.touchEnd = function() {
    +    this.touching = false;
    +  };
    +
    +  Index.prototype.getElementOnTouch = function(position) {
    +    var result = null;
    +    this.indexList.find("li").each(function() {
    +      if(result) return;
    +      var $this = $(this);
    +      var offset = $this.offset();
    +      if(offset.top < position.y && offset.top + $this.outerHeight() > position.y) {
    +        result = $this;
    +      }
    +    });
    +    return result;
    +  };
    +
    +  $.fn.indexList = function(params) {
    +    return this.each(function() {
    +      if(!this) return;
    +
    +      var list = $(this);
    +
    +      var index = list.data("index");
    +
    +      if(!index) {
    +        params = $.extend({}, $.fn.indexList.prototype.defaults, params);
    +        index = new Index(params).render(list);
    +        list.data("index", index);
    +      }
    +
    +      return index;
    +
    +    });
    +  };
    +
    +
    +  $.fn.indexList.prototype.defaults = {
    +    titleSelector: ".list-group-title",
    +    indexListTemplate: "{{#indexes}}<li data-index={{@index}}><strong>{{this}}</strong></li>{{/indexes}}"
    +  };
    +
    +  $.initIndexList = function(selector) {
    +    var container = $(selector);
    +    if(container.hasClass(".contacts-block")) {
    +      container.indexList();
    +    } else {
    +      container.find(".contacts-block").indexList();
    +    }
    +  };
    +
    +}($);
    +
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +  $(function() {
    +    $(document).on("focus", ".searchbar input", function(e) {
    +      var $input = $(e.target);
    +      $input.parents(".searchbar").addClass("searchbar-active");
    +    });
    +    $(document).on("click", ".searchbar-cancel", function(e) {
    +      var $btn = $(e.target);
    +      $btn.parents(".searchbar").removeClass("searchbar-active");
    +    });
    +    $(document).on("blur", ".searchbar input", function(e) {
    +      var $input = $(e.target);
    +      $input.parents(".searchbar").removeClass("searchbar-active");
    +    });
    +  });
    +}($);
    +
    +/*======================================================
    +************   Panels   ************
    +======================================================*/
    +/* global $:true */
    +/*jshint unused: false*/
    ++function ($) {
    +  "use strict";
    +  $.allowPanelOpen = true;
    +  $.openPanel = function (panel) {
    +      if (!$.allowPanelOpen) return false;
    +      if(panel === 'left' || panel === 'right') panel = ".panel-" + panel;  //可以传入一个方向
    +      panel = panel ? $(panel) : $(".panel").eq(0);
    +      var direction = panel.hasClass("panel-right") ? "right" : "left";
    +      if (panel.length === 0 || panel.hasClass('active')) return false;
    +      $.closePanel(); // Close if some panel is opened
    +      $.allowPanelOpen = false;
    +      var effect = panel.hasClass('panel-reveal') ? 'reveal' : 'cover';
    +      panel.css({display: 'block'}).addClass('active');
    +      panel.trigger('open');
    +
    +      // Trigger reLayout
    +      var clientLeft = panel[0].clientLeft;
    +      
    +      // Transition End;
    +      var transitionEndTarget = effect === 'reveal' ? $($.getCurrentPage()) : panel;
    +      var openedTriggered = false;
    +      
    +      function panelTransitionEnd() {
    +          transitionEndTarget.transitionEnd(function (e) {
    +              if (e.target === transitionEndTarget[0]) {
    +                  if (panel.hasClass('active')) {
    +                      panel.trigger('opened');
    +                  }
    +                  else {
    +                      panel.trigger('closed');
    +                  }
    +                  $.allowPanelOpen = true;
    +              }
    +              else panelTransitionEnd();
    +          });
    +      }
    +      panelTransitionEnd();
    +
    +      $(document.body).addClass('with-panel-' + direction + '-' + effect);
    +      return true;
    +  };
    +  $.closePanel = function () {
    +      var activePanel = $('.panel.active');
    +      if (activePanel.length === 0) return false;
    +      var effect = activePanel.hasClass('panel-reveal') ? 'reveal' : 'cover';
    +      var panelPosition = activePanel.hasClass('panel-left') ? 'left' : 'right';
    +      activePanel.removeClass('active');
    +      var transitionEndTarget = effect === 'reveal' ? $('.page') : activePanel;
    +      activePanel.trigger('close');
    +      $.allowPanelOpen = false;
    +
    +      transitionEndTarget.transitionEnd(function () {
    +          if (activePanel.hasClass('active')) return;
    +          activePanel.css({display: ''});
    +          activePanel.trigger('closed');
    +          $('body').removeClass('panel-closing');
    +          $.allowPanelOpen = true;
    +      });
    +
    +      $('body').addClass('panel-closing').removeClass('with-panel-' + panelPosition + '-' + effect);
    +  };
    +
    +  $(document).on("click", ".open-panel", function(e) {
    +    var panel = $(e.target).data(panel);
    +    $.openPanel(panel);
    +  });
    +  $(document).on("click", ".close-panel, .panel-overlay", function(e) {
    +    $.closePanel();
    +  });
    +  /*======================================================
    +  ************   Swipe panels   ************
    +  ======================================================*/
    +  $.initSwipePanels = function () {
    +      var panel, side;
    +      var swipePanel = $.smConfig.swipePanel;
    +      var swipePanelOnlyClose = $.smConfig.swipePanelOnlyClose;
    +      var swipePanelCloseOpposite = true;
    +      var swipePanelActiveArea = false;
    +      var swipePanelThreshold = 2;
    +      var swipePanelNoFollow = false;
    +
    +      if(!(swipePanel || swipePanelOnlyClose)) return;
    +
    +      var panelOverlay = $('.panel-overlay');
    +      var isTouched, isMoved, isScrolling, touchesStart = {}, touchStartTime, touchesDiff, translate, opened, panelWidth, effect, direction;
    +      var currentPage = $($.getCurrentPage());
    +
    +      function handleTouchStart(e) {
    +          currentPage = $($.getCurrentPage());  //page may changed
    +          if (!$.allowPanelOpen || (!swipePanel && !swipePanelOnlyClose) || isTouched) return;
    +          if ($('.modal-in, .photo-browser-in').length > 0) return;
    +          if (!(swipePanelCloseOpposite || swipePanelOnlyClose)) {
    +              if ($('.panel.active').length > 0 && !panel.hasClass('active')) return;
    +          }
    +          var position = $.getTouchPosition(e);
    +          touchesStart.x = position.x;
    +          touchesStart.y = position.y;
    +          if (swipePanelCloseOpposite || swipePanelOnlyClose) {
    +              if ($('.panel.active').length > 0) {
    +                  side = $('.panel.active').hasClass('panel-left') ? 'left' : 'right';
    +              }
    +              else {
    +                  if (swipePanelOnlyClose) return;
    +                  side = swipePanel;
    +              }
    +              if (!side) return;
    +          }
    +          panel = $('.panel.panel-' + side);
    +          if(!panel[0]) return;
    +          opened = panel.hasClass('active');
    +          if (swipePanelActiveArea && !opened) {
    +              if (side === 'left') {
    +                  if (touchesStart.x > swipePanelActiveArea) return;
    +              }
    +              if (side === 'right') {
    +                  if (touchesStart.x < window.innerWidth - swipePanelActiveArea) return;
    +              }
    +          }
    +          isMoved = false;
    +          isTouched = true;
    +          isScrolling = undefined;
    +          
    +          touchStartTime = (new Date()).getTime();
    +          direction = undefined;
    +      }
    +      function handleTouchMove(e) {
    +          if (!isTouched) return;
    +          if(!panel[0]) return;
    +          if (e.f7PreventPanelSwipe) return;
    +          var position = $.getTouchPosition(e);
    +          var pageX = position.x;
    +          var pageY = position.y;
    +          if (typeof isScrolling === 'undefined') {
    +              isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x));
    +          }
    +          if (isScrolling) {
    +              isTouched = false;
    +              return;
    +          }
    +          if (!direction) {
    +              if (pageX > touchesStart.x) {
    +                  direction = 'to-right';
    +              }
    +              else {
    +                  direction = 'to-left';
    +              }
    +
    +              if (
    +                  side === 'left' &&
    +                  (
    +                      direction === 'to-left' && !panel.hasClass('active')
    +                  ) ||
    +                  side === 'right' &&
    +                  (
    +                      direction === 'to-right' && !panel.hasClass('active')
    +                  )
    +              )
    +              {
    +                  isTouched = false;
    +                  return;
    +              }
    +          }
    +
    +          if (swipePanelNoFollow) {
    +              var timeDiff = (new Date()).getTime() - touchStartTime;
    +              if (timeDiff < 300) {
    +                  if (direction === 'to-left') {
    +                      if (side === 'right') $.openPanel(side);
    +                      if (side === 'left' && panel.hasClass('active')) $.closePanel();
    +                  }
    +                  if (direction === 'to-right') {
    +                      if (side === 'left') $.openPanel(side);
    +                      if (side === 'right' && panel.hasClass('active')) $.closePanel();
    +                  }
    +              }
    +              isTouched = false;
    +              isMoved = false;
    +              return;
    +          }
    +
    +          if (!isMoved) {
    +              effect = panel.hasClass('panel-cover') ? 'cover' : 'reveal';
    +              if (!opened) {
    +                  panel.show();
    +                  panelOverlay.show();
    +              }
    +              panelWidth = panel[0].offsetWidth;
    +              panel.transition(0);
    +              /*
    +              if (panel.find('.' + app.params.viewClass).length > 0) {
    +                  if (app.sizeNavbars) app.sizeNavbars(panel.find('.' + app.params.viewClass)[0]);
    +              }
    +              */
    +          }
    +
    +          isMoved = true;
    +
    +          e.preventDefault();
    +          var threshold = opened ? 0 : -swipePanelThreshold;
    +          if (side === 'right') threshold = -threshold;
    +          
    +          touchesDiff = pageX - touchesStart.x + threshold;
    +
    +          if (side === 'right') {
    +              translate = touchesDiff  - (opened ? panelWidth : 0);
    +              if (translate > 0) translate = 0;
    +              if (translate < -panelWidth) {
    +                  translate = -panelWidth;
    +              }
    +          }
    +          else {
    +              translate = touchesDiff  + (opened ? panelWidth : 0);
    +              if (translate < 0) translate = 0;
    +              if (translate > panelWidth) {
    +                  translate = panelWidth;
    +              }
    +          }
    +          if (effect === 'reveal') {
    +              currentPage.transform('translate3d(' + translate + 'px,0,0)').transition(0);
    +              panelOverlay.transform('translate3d(' + translate + 'px,0,0)');
    +              //app.pluginHook('swipePanelSetTransform', currentPage[0], panel[0], Math.abs(translate / panelWidth));
    +          }
    +          else {
    +              panel.transform('translate3d(' + translate + 'px,0,0)').transition(0);
    +              //app.pluginHook('swipePanelSetTransform', currentPage[0], panel[0], Math.abs(translate / panelWidth));
    +          }
    +      }
    +      function handleTouchEnd(e) {
    +          if (!isTouched || !isMoved) {
    +              isTouched = false;
    +              isMoved = false;
    +              return;
    +          }
    +          isTouched = false;
    +          isMoved = false;
    +          var timeDiff = (new Date()).getTime() - touchStartTime;
    +          var action;
    +          var edge = (translate === 0 || Math.abs(translate) === panelWidth);
    +
    +          if (!opened) {
    +              if (translate === 0) {
    +                  action = 'reset';
    +              }
    +              else if (
    +                  timeDiff < 300 && Math.abs(translate) > 0 ||
    +                  timeDiff >= 300 && (Math.abs(translate) >= panelWidth / 2)
    +              ) {
    +                  action = 'swap';
    +              }
    +              else {
    +                  action = 'reset';
    +              }
    +          }
    +          else {
    +              if (translate === -panelWidth) {
    +                  action = 'reset';
    +              }
    +              else if (
    +                  timeDiff < 300 && Math.abs(translate) >= 0 ||
    +                  timeDiff >= 300 && (Math.abs(translate) <= panelWidth / 2)
    +              ) {
    +                  if (side === 'left' && translate === panelWidth) action = 'reset';
    +                  else action = 'swap';
    +              }
    +              else {
    +                  action = 'reset';
    +              }
    +          }
    +          if (action === 'swap') {
    +              $.allowPanelOpen = true;
    +              if (opened) {
    +                  $.closePanel();
    +                  if (edge) {
    +                      panel.css({display: ''});
    +                      $('body').removeClass('panel-closing');
    +                  }
    +              }
    +              else {
    +                  $.openPanel(side);
    +              }
    +              if (edge) $.allowPanelOpen = true;
    +          }
    +          if (action === 'reset') {
    +              if (opened) {
    +                  $.allowPanelOpen = true;
    +                  $.openPanel(side);
    +              }
    +              else {
    +                  $.closePanel();
    +                  if (edge) {
    +                      $.allowPanelOpen = true;
    +                      panel.css({display: ''});
    +                  }
    +                  else {
    +                      var target = effect === 'reveal' ? currentPage : panel;
    +                      $('body').addClass('panel-closing');
    +                      target.transitionEnd(function () {
    +                          $.allowPanelOpen = true;
    +                          panel.css({display: ''});
    +                          $('body').removeClass('panel-closing');
    +                      });
    +                  }
    +              }
    +          }
    +          if (effect === 'reveal') {
    +              currentPage.transition('');
    +              currentPage.transform('');
    +          }
    +          panel.transition('').transform('');
    +          panelOverlay.css({display: ''}).transform('');
    +      }
    +      $(document).on($.touchEvents.start, handleTouchStart);
    +      $(document).on($.touchEvents.move, handleTouchMove);
    +      $(document).on($.touchEvents.end, handleTouchEnd);
    +  };
    +
    +  $.initSwipePanels();
    +}($);
    +
    +// jshint ignore: start
    +/*
    + * 路由器
    + */
    ++function ($) {
    +  "use strict";
    +
    +  if (!window.CustomEvent) {
    +    window.CustomEvent = function (type, config) {
    +      var e = document.createEvent('CustomEvent');
    +      e.initCustomEvent(type, config.bubbles, config.cancelable, config.detail, config.id);
    +      return e;
    +    };
    +  }
    +
    +  var Router = function() {
    +    this.state = sessionStorage;
    +    this.state.setItem("stateid", parseInt(this.state.getItem("stateid") || 1)+1);
    +    this.state.setItem("currentStateID", this.state.getItem("stateid"));
    +    this.stack = sessionStorage;
    +    this.stack.setItem("back", "[]");  //返回栈, {url, pageid, stateid}
    +    this.stack.setItem("forward", "[]");  //前进栈, {url, pageid, stateid}
    +    this.extras = {}; //page extra: popup, panel...
    +    this.init();
    +    this.xhr = null;
    +  }
    +
    +  Router.prototype.defaults = {
    +    transition: true
    +  };
    +
    +  Router.prototype.init = function() {
    +    var currentPage = this.getCurrentPage();
    +    if(!currentPage[0]) currentPage = $(".page").eq(0).addClass("page-current");
    +    var hash = location.hash;
    +    if(currentPage[0] && !currentPage[0].id) currentPage[0].id = (hash ? hash.slice(1) : this.genRandomID());
    +
    +    if(!currentPage[0]) throw new Error("can't find .page element");
    +    var newCurrentPage = $(hash);
    +
    +
    +    if(newCurrentPage[0] && (!currentPage[0] || hash.slice(1) !== currentPage[0].id)) {
    +      currentPage.removeClass("page-current");
    +      newCurrentPage.addClass("page-current");
    +      currentPage = newCurrentPage;
    +    }
    +
    +    //第一次加载的时候,初识话当前页面的state
    +    var state = history.state;
    +    if(!state) {
    +      var id = this.genStateID();
    +      this.replaceState(location.href, id);
    +      this.setCurrentStateID(id);
    +    }
    +
    +
    +    var self = this;
    +    window.addEventListener('load', function() {
    +      //解决safari的一个bug,safari会在首次加载页面的时候触发 popstate 事件,通过setTimeout 做延迟来忽略这个错误的事件。
    +      //参考 https://github.com/visionmedia/page.js/pull/239/files
    +      setTimeout(function() {
    +        window.addEventListener('popstate', $.proxy(self.onpopstate, self));
    +      }, 0);
    +    }, false);
    +  }
    +
    +  //load new page, and push to history
    +  Router.prototype.loadPage = function(url, noAnimation, replace, reload) {
    +
    +    var param = url;
    +
    +    if(noAnimation === undefined) {
    +      noAnimation = !this.defaults.transition;
    +    }
    +
    +    if(typeof url === typeof "a") {
    +      param = {
    +        url: url,
    +        noAnimation: noAnimation,
    +        replace: replace
    +      }
    +    }
    +
    +    var url = param.url, noAnimation = param.noAnimation, replace = param.replace;
    +
    +    this.getPage(url, function(page, extra) {
    +
    +      var currentPage = this.getCurrentPage();
    +
    +      var pageid = currentPage[0].id;
    +
    +      var action = "pushBack";
    +      if(replace) action = "replaceBack";
    +      if(reload) action = "reloadBack";
    +      this[action]({
    +        url: location.href,
    +        pageid: "#"+ pageid,
    +        id: this.getCurrentStateID(),
    +        animation: !noAnimation
    +      });
    +
    +      //remove all forward page
    +      var forward = JSON.parse(this.state.getItem("forward") || "[]");
    +      var self = this;
    +      for(var i=0;i<forward.length;i++) {
    +        $(forward[i].pageid).each(function() {
    +          var $page = $(this);
    +          if($page.data("page-remote")) {
    +            var pageExtra = self.extras[$page[0].id];
    +            pageExtra && pageExtra.remove();
    +            self.extras[$page[0].id] = undefined;
    +            $page.remove();
    +          }
    +        });
    +      }
    +      this.state.setItem("forward", "[]");  //clearforward
    +
    +      var duplicatePage = $("#"+$(page)[0].id);
    +
    +      page.insertBefore($(".page")[0]);
    +
    +      if(duplicatePage[0] !== page[0]) duplicatePage.remove(); //if inline mod, the duplicate page is current page
    +
    +      if(extra) self.extras[page[0].id] = extra.appendTo(document.body);
    +
    +      var id = this.genStateID();
    +      this.setCurrentStateID(id);
    +
    +      this[replace || reload ? "replaceState" : "pushState"](url, id);
    +
    +      this.forwardStack  = [];  //clear forward stack
    +      
    +      this.animatePages(this.getCurrentPage(), page, null, noAnimation);
    +    });
    +  }
    +
    +  //load new page and replace current page inhistory
    +  Router.prototype.replacePage = function(url, noAnimation) {
    +    return this.loadPage(url, noAnimation, true);
    +  }
    +
    +  //reload current page
    +  Router.prototype.reloadPage = function() {
    +    return this.loadPage(location.href, true, false, true);
    +  }
    +
    +  Router.prototype.animatePages = function (leftPage, rightPage, leftToRight, noTransition) {
    +    var removeClasses = 'page-left page-right page-from-center-to-left page-from-center-to-right page-from-right-to-center page-from-left-to-center';
    +    if(noTransition) {
    +      if (!leftToRight) {
    +        rightPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        leftPage.removeClass(removeClasses).removeClass('page-current');
    +        rightPage.removeClass(removeClasses).addClass("page-current");
    +        rightPage.trigger("pageInitInternal", [rightPage[0].id, rightPage]);
    +
    +        if(rightPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +      } else {
    +        leftPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        rightPage.removeClass(removeClasses).removeClass('page-current');
    +        leftPage.removeClass(removeClasses).addClass("page-current");
    +
    +        if(leftPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +        rightPage.trigger("pageInitInternal", [leftPage[0].id, leftPage]);
    +      }
    +    } else {
    +      if (!leftToRight) {
    +        rightPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        leftPage.removeClass(removeClasses).addClass("page-from-center-to-left").removeClass('page-current');
    +        rightPage.removeClass(removeClasses).addClass("page-from-right-to-center page-current");
    +
    +        leftPage.animationEnd(function() {
    +          leftPage.removeClass(removeClasses);
    +        });
    +        rightPage.animationEnd(function() {
    +          afterAnimation(rightPage);
    +        });
    +
    +        if(rightPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +        rightPage.trigger("pageInitInternal", [rightPage[0].id, rightPage]);
    +      } else {
    +        leftPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        rightPage.removeClass(removeClasses).addClass("page-from-center-to-right").removeClass('page-current');
    +        leftPage.removeClass(removeClasses).addClass("page-from-left-to-center page-current");
    +
    +        leftPage.animationEnd(function() {
    +          afterAnimation(leftPage);
    +        });
    +        rightPage.animationEnd(function() {
    +          rightPage.removeClass(removeClasses);
    +        });
    +        if(leftPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +        rightPage.trigger("pageInitInternal", [leftPage[0].id, leftPage]);
    +      }
    +    }
    +
    +    function afterAnimation(page) {
    +      page.removeClass(removeClasses);
    +      page.trigger("pageAnimationEnd", [page[0].id, page]);
    +    }
    +
    +  }
    +  Router.prototype.getCurrentPage = function () {
    +    return $(".page-current");
    +  }
    +  //如果无法前进,则加载对应的url
    +  Router.prototype.forward = function(url) {
    +    var stack = JSON.parse(this.stack.getItem("forward"));
    +    if(stack.length) {
    +      history.forward();
    +    } else {
    +      location.href = url;
    +    }
    +  }
    +  //如果无法后退,则加载对应的url
    +  Router.prototype.back = function(url) {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    if(stack.length) {
    +      history.back();
    +    } else if(url) {
    +      location.href = url;
    +    } else {
    +      history.back();
    +    }
    +  }
    +
    +  //后退
    +  Router.prototype._back = function() {
    +    var h = this.popBack();
    +    if(!h) return;
    +    var currentPage = this.getCurrentPage();
    +    var newPage = $(h.pageid);
    +    if(!newPage[0]) return;
    +    this.pushForward({url: location.href, pageid: "#"+currentPage[0].id, id: this.getCurrentStateID(), animation: h.animation});
    +    this.setCurrentStateID(h.id);
    +    this.animatePages(newPage, currentPage, true, !h.animation);
    +  }
    +
    +  //前进
    +  Router.prototype._forward = function() {
    +    var h = this.popForward();
    +    if(!h) return;
    +    var currentPage = this.getCurrentPage();
    +    var newPage = $(h.pageid);
    +    if(!newPage[0]) return;
    +    this.pushBack({url: location.href, pageid: "#"+currentPage[0].id, id: this.getCurrentStateID(), animation: h.animation});
    +    this.setCurrentStateID(h.id);
    +    this.animatePages(currentPage, newPage, false, !h.animation);
    +  }
    +
    +  Router.prototype.pushState = function(url, id) {
    +    history.pushState({url: url, id: id}, '', url);
    +  }
    +
    +  Router.prototype.replaceState = function(url, id) {
    +    history.replaceState({url: url, id: id}, '', url);
    +  }
    +
    +  Router.prototype.onpopstate = function(d) {
    +    var state = d.state;
    +    if(!state) {
    +      return true;
    +    }
    +
    +    if(state.id === this.getCurrentStateID()) {
    +      return false;
    +    }
    +    var forward = state.id > this.getCurrentStateID();
    +    if(forward) this._forward();
    +    else this._back();
    +  }
    +
    +
    +  //根据url获取页面的DOM,如果是一个内联页面,则直接返回,否则用ajax加载
    +  Router.prototype.getPage = function(url, callback) {
    +    if(url[0] === "#") return callback.apply(this, [$(url)]);
    +
    +    this.dispatch("pageLoadStart");
    +
    +    if(this.xhr && this.xhr.readyState < 4) {
    +      this.xhr.onreadystatechange = $.noop;
    +      this.xhr.abort();
    +      this.dispatch("pageLoadCancel");
    +    }
    +
    +    var self = this;
    +
    +    this.xhr = $.ajax({
    +      url: url,
    +      success: $.proxy(function(data, s, xhr) {
    +        var html = this.parseXHR(xhr);
    +        var $page = html[0];
    +        var $extra = html[1];
    +        if(!$page[0].id) $page[0].id = this.genRandomID();
    +        $page.data("page-remote", 1);
    +        callback.apply(this, [$page, $extra]);
    +      }, this),
    +      error: function() {
    +        self.dispatch("pageLoadError");
    +      },
    +      complete: function() {
    +        self.dispatch("pageLoadComplete");
    +      }
    +    });
    +  }
    +  Router.prototype.parseXHR = function(xhr) {
    +    var response = xhr.responseText;
    +    var body = response.match(/<body[^>]*>([\s\S.]*)<\/body>/i);
    +    var html = body ? body[1] : response;
    +    html = "<div>"+html+"</div>";
    +    var tmp = $(html);
    +
    +    var $extra = tmp.find(".popup, .popover, .panel, .panel-overlay");
    +
    +    var $page = tmp.find(".page");
    +    if(!$page[0]) $page = tmp.addClass("page");
    +    return [$page, $extra];
    +  }
    +
    +  Router.prototype.genStateID = function() {
    +    var id = parseInt(this.state.getItem("stateid")) + 1;
    +    this.state.setItem("stateid", id);
    +    return id;
    +  }
    +  Router.prototype.getCurrentStateID = function() {
    +    return parseInt(this.state.getItem("currentStateID"));
    +  }
    +  Router.prototype.setCurrentStateID = function(id) {
    +    this.state.setItem("currentStateID", id);
    +  }
    +  Router.prototype.genRandomID = function() {
    +    return "page-"+(+new Date());
    +  }
    +
    +  Router.prototype.popBack = function() {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    if(!stack.length) return null;
    +    var h = stack.splice(stack.length-1, 1)[0];
    +    this.stack.setItem("back", JSON.stringify(stack));
    +    return h;
    +  }
    +  Router.prototype.pushBack = function(h) {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    stack.push(h);
    +    this.stack.setItem("back", JSON.stringify(stack));
    +  }
    +  Router.prototype.replaceBack = function(h) {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    stack.pop();
    +    stack.push(h);
    +    this.stack.setItem("back", JSON.stringify(stack));
    +  }
    +  Router.prototype.reloadBack = function(h) {
    +    //do nothing;
    +    return;
    +  }
    +  Router.prototype.popForward = function() {
    +    var stack = JSON.parse(this.stack.getItem("forward"));
    +    if(!stack.length) return null;
    +    var h = stack.splice(stack.length-1, 1)[0];
    +    this.stack.setItem("forward", JSON.stringify(stack));
    +    return h;
    +  }
    +  Router.prototype.pushForward = function(h) {
    +    var stack = JSON.parse(this.stack.getItem("forward"));
    +    stack.push(h);
    +    this.stack.setItem("forward", JSON.stringify(stack));
    +  }
    +
    +  Router.prototype.dispatch = function (event) {
    +    var e = new CustomEvent(event, {
    +      bubbles: true,
    +      cancelable: true
    +    });
    +
    +    window.dispatchEvent(e);
    +  };
    +
    +
    +  $(function() {
    +    if(!$.smConfig.router) return;
    +
    +    var router = $.router = new Router();
    +    router.defaults = Router.prototype.defaults;
    +
    +    $(document).on("click", "a", function(e) {
    +      var $target = $(e.currentTarget);
    +      if($target.hasClass("external") ||
    +         $target[0].hasAttribute("external") ||
    +         $target.hasClass("tab-link") ||
    +         $target.hasClass("open-popup") ||
    +         $target.hasClass("open-panel")
    +        ) return;
    +      e.preventDefault();
    +      var url = $target.attr("href");
    +      if($target.hasClass("back")) {
    +        router.back(url);
    +        return;
    +      }
    +
    +      if(!url || url === "#" || /javascript:.*;/.test(url)) return;
    +      router.loadPage(url, $target.hasClass("no-transition") ? true : undefined, $target.hasClass("replace") ? true : undefined);  //undefined is different to false
    +    })
    +  });
    +}($);
    +// jshint ignore: end
    +
    +/* global $:true */
    +/*jshint unused: false*/
    ++function ($) {
    +  "use strict";
    +
    +  var getPage = function() {
    +    var $page = $(".page-current");
    +    if(!$page[0]) $page = $(".page").addClass("page-current");
    +    return $page;
    +  };
    +
    +  //初始化页面中的JS组件
    +  $.initPage = function(page) {
    +    var $page = page ? $(page) : getPage();
    +    if(!$page[0]) $page = $(document.body);
    +    var $content = $page.hasClass("content") ? $page : $page.find(".content");
    +
    +    $.initPullToRefresh($content);
    +    $.initInfiniteScroll($content);
    +    $.initCalendar($content);
    +    $.initIndexList($content);
    +
    +    //extend
    +    if($.initSwiper) $.initSwiper($content);
    +    if($.initSwipeout) $.initSwipeout();  // don't pass $content because the swipeout element is not $content
    +  };
    +
    +
    + /* if($.smConfig.showPageLoadingIndicator) {
    +    //这里的 以 push 开头的是私有事件,不要用
    +	  $(window).on("pageLoadStart", function() {
    +      $.showIndicator();
    +    });
    +    $(document).on("pageAnimationStart", function() {
    +      $.hideIndicator();
    +    });
    +    $(window).on("pageLoadCancel", function() {
    +      $.hideIndicator();
    +    });
    +    $(window).on("pageLoadError", function() {
    +      $.hideIndicator();
    +      $.toast("");
    +    });
    +  }*/
    +
    +
    +
    +  $.init = function() {
    +    var $page = getPage();
    +    var id = $page[0].id;
    +    if($page.hasClass("page-inited")) {
    +      $page.trigger("pageReinit", [id, $page]);
    +    } else {
    +      $.initPage();
    +      $page.addClass("page-inited");
    +      $page.trigger("pageInit", [id, $page]);
    +    }
    +  };
    +
    +  $(function() {
    +    if($.smConfig.autoInit) {
    +      $.init();
    +    }
    +
    +    $(document).on("pageInitInternal", function(e, id, $page) {
    +      $.init();
    +    });
    +  });
    +
    +
    +}($);
    diff --git a/fangija-zsyf/js/light7-swiper.js b/fangija-zsyf/js/light7-swiper.js
    new file mode 100644
    index 0000000..df50240
    --- /dev/null
    +++ b/fangija-zsyf/js/light7-swiper.js
    @@ -0,0 +1,4414 @@
    +/*!
    + * =====================================================
    + * light7 V0.4.3 - http://light7.org/
    + *
    + * =====================================================
    + */
    +/**
    + * Swiper 3.3.1
    + * Most modern mobile touch slider and framework with hardware accelerated transitions
    + * 
    + * http://www.idangero.us/swiper/
    + * 
    + * Copyright 2016, Vladimir Kharlampidi
    + * The iDangero.us
    + * http://www.idangero.us/
    + * 
    + * Licensed under MIT
    + * 
    + * Released on: February 7, 2016
    + */
    +/* global $:true, jQuery: true, Dom7:true, Modernizr: true, DocumentTouch: true */
    +/* jshint unused:false */
    +/*jshint forin: false */
    +/*jshint bitwise: false*/
    +(function ($) {
    +    'use strict';
    +    /*===========================
    +    Swiper
    +    ===========================*/
    +    var defaults = {
    +      direction: 'horizontal',
    +      touchEventsTarget: 'container',
    +      initialSlide: 0,
    +      speed: 300,
    +      // autoplay
    +      autoplay: false,
    +      autoplayDisableOnInteraction: true,
    +      autoplayStopOnLast: false,
    +      // To support iOS's swipe-to-go-back gesture (when being used in-app, with UIWebView).
    +      iOSEdgeSwipeDetection: false,
    +      iOSEdgeSwipeThreshold: 20,
    +      // Free mode
    +      freeMode: false,
    +      freeModeMomentum: true,
    +      freeModeMomentumRatio: 1,
    +      freeModeMomentumBounce: true,
    +      freeModeMomentumBounceRatio: 1,
    +      freeModeSticky: false,
    +      freeModeMinimumVelocity: 0.02,
    +      // Autoheight
    +      autoHeight: false,
    +      // Set wrapper width
    +      setWrapperSize: false,
    +      // Virtual Translate
    +      virtualTranslate: false,
    +      // Effects
    +      effect: 'slide', // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
    +      coverflow: {
    +        rotate: 50,
    +        stretch: 0,
    +        depth: 100,
    +        modifier: 1,
    +        slideShadows : true
    +      },
    +      flip: {
    +        slideShadows : true,
    +        limitRotation: true
    +      },
    +      cube: {
    +        slideShadows: true,
    +        shadow: true,
    +        shadowOffset: 20,
    +        shadowScale: 0.94
    +      },
    +      fade: {
    +        crossFade: false
    +      },
    +      // Parallax
    +      parallax: false,
    +      // Scrollbar
    +      scrollbar: null,
    +      scrollbarHide: true,
    +      scrollbarDraggable: false,
    +      scrollbarSnapOnRelease: false,
    +      // Keyboard Mousewheel
    +      keyboardControl: false,
    +      mousewheelControl: false,
    +      mousewheelReleaseOnEdges: false,
    +      mousewheelInvert: false,
    +      mousewheelForceToAxis: false,
    +      mousewheelSensitivity: 1,
    +      // Hash Navigation
    +      hashnav: false,
    +      // Breakpoints
    +      breakpoints: undefined,
    +      // Slides grid
    +      spaceBetween: 0,
    +      slidesPerView: 1,
    +      slidesPerColumn: 1,
    +      slidesPerColumnFill: 'column',
    +      slidesPerGroup: 1,
    +      centeredSlides: false,
    +      slidesOffsetBefore: 0, // in px
    +      slidesOffsetAfter: 0, // in px
    +      // Round length
    +      roundLengths: false,
    +      // Touches
    +      touchRatio: 1,
    +      touchAngle: 45,
    +      simulateTouch: true,
    +      shortSwipes: true,
    +      longSwipes: true,
    +      longSwipesRatio: 0.5,
    +      longSwipesMs: 300,
    +      followFinger: true,
    +      onlyExternal: false,
    +      threshold: 0,
    +      touchMoveStopPropagation: true,
    +      // Unique Navigation Elements
    +      uniqueNavElements: true,
    +      // Pagination
    +      pagination: null,
    +      paginationElement: 'span',
    +      paginationClickable: false,
    +      paginationHide: false,
    +      paginationBulletRender: null,
    +      paginationProgressRender: null,
    +      paginationFractionRender: null,
    +      paginationCustomRender: null,
    +      paginationType: 'bullets', // 'bullets' or 'progress' or 'fraction' or 'custom'
    +      // Resistance
    +      resistance: true,
    +      resistanceRatio: 0.85,
    +      // Next/prev buttons
    +      nextButton: null,
    +      prevButton: null,
    +      // Progress
    +      watchSlidesProgress: false,
    +      watchSlidesVisibility: false,
    +      // Cursor
    +      grabCursor: false,
    +      // Clicks
    +      preventClicks: true,
    +      preventClicksPropagation: true,
    +      slideToClickedSlide: false,
    +      // Lazy Loading
    +      lazyLoading: false,
    +      lazyLoadingInPrevNext: false,
    +      lazyLoadingInPrevNextAmount: 1,
    +      lazyLoadingOnTransitionStart: false,
    +      // Images
    +      preloadImages: true,
    +      updateOnImagesReady: true,
    +      // loop
    +      loop: false,
    +      loopAdditionalSlides: 0,
    +      loopedSlides: null,
    +      // Control
    +      control: undefined,
    +      controlInverse: false,
    +      controlBy: 'slide', //or 'container'
    +      // Swiping/no swiping
    +      allowSwipeToPrev: true,
    +      allowSwipeToNext: true,
    +      swipeHandler: null, //'.swipe-handler',
    +      noSwiping: true,
    +      noSwipingClass: 'swiper-no-swiping',
    +      // NS
    +      slideClass: 'swiper-slide',
    +      slideActiveClass: 'swiper-slide-active',
    +      slideVisibleClass: 'swiper-slide-visible',
    +      slideDuplicateClass: 'swiper-slide-duplicate',
    +      slideNextClass: 'swiper-slide-next',
    +      slidePrevClass: 'swiper-slide-prev',
    +      wrapperClass: 'swiper-wrapper',
    +      bulletClass: 'swiper-pagination-bullet',
    +      bulletActiveClass: 'swiper-pagination-bullet-active',
    +      buttonDisabledClass: 'swiper-button-disabled',
    +      paginationCurrentClass: 'swiper-pagination-current',
    +      paginationTotalClass: 'swiper-pagination-total',
    +      paginationHiddenClass: 'swiper-pagination-hidden',
    +      paginationProgressbarClass: 'swiper-pagination-progressbar',
    +      // Observer
    +      observer: false,
    +      observeParents: false,
    +      // Accessibility
    +      a11y: false,
    +      prevSlideMessage: 'Previous slide',
    +      nextSlideMessage: 'Next slide',
    +      firstSlideMessage: 'This is the first slide',
    +      lastSlideMessage: 'This is the last slide',
    +      paginationBulletMessage: 'Go to slide {{index}}',
    +      // Callbacks
    +      runCallbacksOnInit: true
    +      /*
    +         Callbacks:
    +         onInit: function (swiper)
    +         onDestroy: function (swiper)
    +         onClick: function (swiper, e)
    +         onTap: function (swiper, e)
    +         onDoubleTap: function (swiper, e)
    +         onSliderMove: function (swiper, e)
    +         onSlideChangeStart: function (swiper)
    +         onSlideChangeEnd: function (swiper)
    +         onTransitionStart: function (swiper)
    +         onTransitionEnd: function (swiper)
    +         onImagesReady: function (swiper)
    +         onProgress: function (swiper, progress)
    +         onTouchStart: function (swiper, e)
    +         onTouchMove: function (swiper, e)
    +         onTouchMoveOpposite: function (swiper, e)
    +         onTouchEnd: function (swiper, e)
    +         onReachBeginning: function (swiper)
    +         onReachEnd: function (swiper)
    +         onSetTransition: function (swiper, duration)
    +         onSetTranslate: function (swiper, translate)
    +         onAutoplayStart: function (swiper)
    +         onAutoplayStop: function (swiper),
    +         onLazyImageLoad: function (swiper, slide, image)
    +         onLazyImageReady: function (swiper, slide, image)
    +         */
    +
    +    };
    +    var Swiper = function (container, params) {
    +        if (!(this instanceof Swiper)) return new Swiper(container, params);
    +
    +
    +        var initialVirtualTranslate = params && params.virtualTranslate;
    +        
    +        params = params || {};
    +        var originalParams = {};
    +        for (var param in params) {
    +            if (typeof params[param] === 'object' && params[param] !== null && !(params[param].nodeType || params[param] === window || params[param] === document || (typeof Dom7 !== 'undefined' && params[param] instanceof Dom7) || (typeof jQuery !== 'undefined' && params[param] instanceof jQuery))) {
    +                originalParams[param] = {};
    +                for (var deepParam in params[param]) {
    +                    originalParams[param][deepParam] = params[param][deepParam];
    +                }
    +            }
    +            else {
    +                originalParams[param] = params[param];
    +            }
    +        }
    +        for (var def in defaults) {
    +            if (typeof params[def] === 'undefined') {
    +                params[def] = defaults[def];
    +            }
    +            else if (typeof params[def] === 'object') {
    +                for (var deepDef in defaults[def]) {
    +                    if (typeof params[def][deepDef] === 'undefined') {
    +                        params[def][deepDef] = defaults[def][deepDef];
    +                    }
    +                }
    +            }
    +        }
    +        
    +        // Swiper
    +        var s = this;
    +        
    +        // Params
    +        s.params = params;
    +        s.originalParams = originalParams;
    +        
    +        // Classname
    +        s.classNames = [];
    +        s.$ = $;
    +        
    +        /*=========================
    +          Breakpoints
    +          ===========================*/
    +        s.currentBreakpoint = undefined;
    +        s.getActiveBreakpoint = function () {
    +            //Get breakpoint for window width
    +            if (!s.params.breakpoints) return false;
    +            var breakpoint = false;
    +            var points = [], point;
    +            for ( point in s.params.breakpoints ) {
    +                if (s.params.breakpoints.hasOwnProperty(point)) {
    +                    points.push(point);
    +                }
    +            }
    +            points.sort(function (a, b) {
    +                return parseInt(a, 10) > parseInt(b, 10);
    +            });
    +            for (var i = 0; i < points.length; i++) {
    +                point = points[i];
    +                if (point >= window.innerWidth && !breakpoint) {
    +                    breakpoint = point;
    +                }
    +            }
    +            return breakpoint || 'max';
    +        };
    +        s.setBreakpoint = function () {
    +            //Set breakpoint for window width and update parameters
    +            var breakpoint = s.getActiveBreakpoint();
    +            if (breakpoint && s.currentBreakpoint !== breakpoint) {
    +                var breakPointsParams = breakpoint in s.params.breakpoints ? s.params.breakpoints[breakpoint] : s.originalParams;
    +                var needsReLoop = s.params.loop && (breakPointsParams.slidesPerView !== s.params.slidesPerView);
    +                for ( var param in breakPointsParams ) {
    +                    s.params[param] = breakPointsParams[param];
    +                }
    +                s.currentBreakpoint = breakpoint;
    +                if(needsReLoop && s.destroyLoop) {
    +                    s.reLoop(true);
    +                }
    +            }
    +        };
    +        // Set breakpoint on load
    +        if (s.params.breakpoints) {
    +            s.setBreakpoint();
    +        }
    +        
    +        /*=========================
    +          Preparation - Define Container, Wrapper and Pagination
    +          ===========================*/
    +        s.container = $(container);
    +        if (s.container.length === 0) return;
    +        if (s.container.length > 1) {
    +            var swipers = [];
    +            s.container.each(function () {
    +                var container = this;
    +                swipers.push(new Swiper(this, params));
    +            });
    +            return swipers;
    +        }
    +        
    +        // Save instance in container HTML Element and in data
    +        s.container[0].swiper = s;
    +        s.container.data('swiper', s);
    +        
    +        s.classNames.push('swiper-container-' + s.params.direction);
    +        
    +        if (s.params.freeMode) {
    +            s.classNames.push('swiper-container-free-mode');
    +        }
    +        if (!s.support.flexbox) {
    +            s.classNames.push('swiper-container-no-flexbox');
    +            s.params.slidesPerColumn = 1;
    +        }
    +        if (s.params.autoHeight) {
    +            s.classNames.push('swiper-container-autoheight');
    +        }
    +        // Enable slides progress when required
    +        if (s.params.parallax || s.params.watchSlidesVisibility) {
    +            s.params.watchSlidesProgress = true;
    +        }
    +        // Coverflow / 3D
    +        if (['cube', 'coverflow', 'flip'].indexOf(s.params.effect) >= 0) {
    +            if (s.support.transforms3d) {
    +                s.params.watchSlidesProgress = true;
    +                s.classNames.push('swiper-container-3d');
    +            }
    +            else {
    +                s.params.effect = 'slide';
    +            }
    +        }
    +        if (s.params.effect !== 'slide') {
    +            s.classNames.push('swiper-container-' + s.params.effect);
    +        }
    +        if (s.params.effect === 'cube') {
    +            s.params.resistanceRatio = 0;
    +            s.params.slidesPerView = 1;
    +            s.params.slidesPerColumn = 1;
    +            s.params.slidesPerGroup = 1;
    +            s.params.centeredSlides = false;
    +            s.params.spaceBetween = 0;
    +            s.params.virtualTranslate = true;
    +            s.params.setWrapperSize = false;
    +        }
    +        if (s.params.effect === 'fade' || s.params.effect === 'flip') {
    +            s.params.slidesPerView = 1;
    +            s.params.slidesPerColumn = 1;
    +            s.params.slidesPerGroup = 1;
    +            s.params.watchSlidesProgress = true;
    +            s.params.spaceBetween = 0;
    +            s.params.setWrapperSize = false;
    +            if (typeof initialVirtualTranslate === 'undefined') {
    +                s.params.virtualTranslate = true;
    +            }
    +        }
    +        
    +        // Grab Cursor
    +        if (s.params.grabCursor && s.support.touch) {
    +            s.params.grabCursor = false;
    +        }
    +        
    +        // Wrapper
    +        s.wrapper = s.container.children('.' + s.params.wrapperClass);
    +        
    +        // Pagination
    +        if (s.params.pagination) {
    +            s.paginationContainer = $(s.params.pagination);
    +            if (s.params.uniqueNavElements && typeof s.params.pagination === 'string' && s.paginationContainer.length > 1 && s.container.find(s.params.pagination).length === 1) {
    +                s.paginationContainer = s.container.find(s.params.pagination);
    +            }
    +        
    +            if (s.params.paginationType === 'bullets' && s.params.paginationClickable) {
    +                s.paginationContainer.addClass('swiper-pagination-clickable');
    +            }
    +            else {
    +                s.params.paginationClickable = false;
    +            }
    +            s.paginationContainer.addClass('swiper-pagination-' + s.params.paginationType);
    +        }
    +        // Next/Prev Buttons
    +        if (s.params.nextButton || s.params.prevButton) {
    +            if (s.params.nextButton) {
    +                s.nextButton = $(s.params.nextButton);
    +                if (s.params.uniqueNavElements && typeof s.params.nextButton === 'string' && s.nextButton.length > 1 && s.container.find(s.params.nextButton).length === 1) {
    +                    s.nextButton = s.container.find(s.params.nextButton);
    +                }
    +            }
    +            if (s.params.prevButton) {
    +                s.prevButton = $(s.params.prevButton);
    +                if (s.params.uniqueNavElements && typeof s.params.prevButton === 'string' && s.prevButton.length > 1 && s.container.find(s.params.prevButton).length === 1) {
    +                    s.prevButton = s.container.find(s.params.prevButton);
    +                }
    +            }
    +        }
    +        
    +        // Is Horizontal
    +        s.isHorizontal = function () {
    +            return s.params.direction === 'horizontal';
    +        };
    +        // s.isH = isH;
    +        
    +        // RTL
    +        s.rtl = s.isHorizontal() && (s.container[0].dir.toLowerCase() === 'rtl' || s.container.css('direction') === 'rtl');
    +        if (s.rtl) {
    +            s.classNames.push('swiper-container-rtl');
    +        }
    +        
    +        // Wrong RTL support
    +        if (s.rtl) {
    +            s.wrongRTL = s.wrapper.css('display') === '-webkit-box';
    +        }
    +        
    +        // Columns
    +        if (s.params.slidesPerColumn > 1) {
    +            s.classNames.push('swiper-container-multirow');
    +        }
    +        
    +        // Check for Android
    +        if (s.device.android) {
    +            s.classNames.push('swiper-container-android');
    +        }
    +        
    +        // Add classes
    +        s.container.addClass(s.classNames.join(' '));
    +        
    +        // Translate
    +        s.translate = 0;
    +        
    +        // Progress
    +        s.progress = 0;
    +        
    +        // Velocity
    +        s.velocity = 0;
    +        
    +        /*=========================
    +          Locks, unlocks
    +          ===========================*/
    +        s.lockSwipeToNext = function () {
    +            s.params.allowSwipeToNext = false;
    +        };
    +        s.lockSwipeToPrev = function () {
    +            s.params.allowSwipeToPrev = false;
    +        };
    +        s.lockSwipes = function () {
    +            s.params.allowSwipeToNext = s.params.allowSwipeToPrev = false;
    +        };
    +        s.unlockSwipeToNext = function () {
    +            s.params.allowSwipeToNext = true;
    +        };
    +        s.unlockSwipeToPrev = function () {
    +            s.params.allowSwipeToPrev = true;
    +        };
    +        s.unlockSwipes = function () {
    +            s.params.allowSwipeToNext = s.params.allowSwipeToPrev = true;
    +        };
    +        
    +        /*=========================
    +          Round helper
    +          ===========================*/
    +        function round(a) {
    +            return Math.floor(a);
    +        }
    +        /*=========================
    +          Set grab cursor
    +          ===========================*/
    +        if (s.params.grabCursor) {
    +            s.container[0].style.cursor = 'move';
    +            s.container[0].style.cursor = '-webkit-grab';
    +            s.container[0].style.cursor = '-moz-grab';
    +            s.container[0].style.cursor = 'grab';
    +        }
    +        /*=========================
    +          Update on Images Ready
    +          ===========================*/
    +        s.imagesToLoad = [];
    +        s.imagesLoaded = 0;
    +        
    +        s.loadImage = function (imgElement, src, srcset, checkForComplete, callback) {
    +            var image;
    +            function onReady () {
    +                if (callback) callback();
    +            }
    +            if (!imgElement.complete || !checkForComplete) {
    +                if (src) {
    +                    image = new window.Image();
    +                    image.onload = onReady;
    +                    image.onerror = onReady;
    +                    if (srcset) {
    +                        image.srcset = srcset;
    +                    }
    +                    if (src) {
    +                        image.src = src;
    +                    }
    +                } else {
    +                    onReady();
    +                }
    +        
    +            } else {//image already loaded...
    +                onReady();
    +            }
    +        };
    +        s.preloadImages = function () {
    +            s.imagesToLoad = s.container.find('img');
    +            function _onReady() {
    +                if (typeof s === 'undefined' || s === null) return;
    +                if (s.imagesLoaded !== undefined) s.imagesLoaded++;
    +                if (s.imagesLoaded === s.imagesToLoad.length) {
    +                    if (s.params.updateOnImagesReady) s.update();
    +                    s.emit('onImagesReady', s);
    +                }
    +            }
    +            for (var i = 0; i < s.imagesToLoad.length; i++) {
    +                s.loadImage(s.imagesToLoad[i], (s.imagesToLoad[i].currentSrc || s.imagesToLoad[i].getAttribute('src')), (s.imagesToLoad[i].srcset || s.imagesToLoad[i].getAttribute('srcset')), true, _onReady);
    +            }
    +        };
    +        
    +        /*=========================
    +          Autoplay
    +          ===========================*/
    +        s.autoplayTimeoutId = undefined;
    +        s.autoplaying = false;
    +        s.autoplayPaused = false;
    +        function autoplay() {
    +            s.autoplayTimeoutId = setTimeout(function () {
    +                if (s.params.loop) {
    +                    s.fixLoop();
    +                    s._slideNext();
    +                    s.emit('onAutoplay', s);
    +                }
    +                else {
    +                    if (!s.isEnd) {
    +                        s._slideNext();
    +                        s.emit('onAutoplay', s);
    +                    }
    +                    else {
    +                        if (!params.autoplayStopOnLast) {
    +                            s._slideTo(0);
    +                            s.emit('onAutoplay', s);
    +                        }
    +                        else {
    +                            s.stopAutoplay();
    +                        }
    +                    }
    +                }
    +            }, s.params.autoplay);
    +        }
    +        s.startAutoplay = function () {
    +            if (typeof s.autoplayTimeoutId !== 'undefined') return false;
    +            if (!s.params.autoplay) return false;
    +            if (s.autoplaying) return false;
    +            s.autoplaying = true;
    +            s.emit('onAutoplayStart', s);
    +            autoplay();
    +        };
    +        s.stopAutoplay = function (internal) {
    +            if (!s.autoplayTimeoutId) return;
    +            if (s.autoplayTimeoutId) clearTimeout(s.autoplayTimeoutId);
    +            s.autoplaying = false;
    +            s.autoplayTimeoutId = undefined;
    +            s.emit('onAutoplayStop', s);
    +        };
    +        s.pauseAutoplay = function (speed) {
    +            if (s.autoplayPaused) return;
    +            if (s.autoplayTimeoutId) clearTimeout(s.autoplayTimeoutId);
    +            s.autoplayPaused = true;
    +            if (speed === 0) {
    +                s.autoplayPaused = false;
    +                autoplay();
    +            }
    +            else {
    +                s.wrapper.transitionEnd(function () {
    +                    if (!s) return;
    +                    s.autoplayPaused = false;
    +                    if (!s.autoplaying) {
    +                        s.stopAutoplay();
    +                    }
    +                    else {
    +                        autoplay();
    +                    }
    +                });
    +            }
    +        };
    +        /*=========================
    +          Min/Max Translate
    +          ===========================*/
    +        s.minTranslate = function () {
    +            return (-s.snapGrid[0]);
    +        };
    +        s.maxTranslate = function () {
    +            return (-s.snapGrid[s.snapGrid.length - 1]);
    +        };
    +        /*=========================
    +          Slider/slides sizes
    +          ===========================*/
    +        s.updateAutoHeight = function () {
    +            // Update Height
    +            var slide = s.slides.eq(s.activeIndex)[0];
    +            if (typeof slide !== 'undefined') {
    +                var newHeight = slide.offsetHeight;
    +                if (newHeight) s.wrapper.css('height', newHeight + 'px');
    +            }
    +        };
    +        s.updateContainerSize = function () {
    +            var width, height;
    +            if (typeof s.params.width !== 'undefined') {
    +                width = s.params.width;
    +            }
    +            else {
    +                width = s.container[0].clientWidth;
    +            }
    +            if (typeof s.params.height !== 'undefined') {
    +                height = s.params.height;
    +            }
    +            else {
    +                height = s.container[0].clientHeight;
    +            }
    +            if (width === 0 && s.isHorizontal() || height === 0 && !s.isHorizontal()) {
    +                return;
    +            }
    +        
    +            //Subtract paddings
    +            width = width - parseInt(s.container.css('padding-left'), 10) - parseInt(s.container.css('padding-right'), 10);
    +            height = height - parseInt(s.container.css('padding-top'), 10) - parseInt(s.container.css('padding-bottom'), 10);
    +        
    +            // Store values
    +            s.width = width;
    +            s.height = height;
    +            s.size = s.isHorizontal() ? s.width : s.height;
    +        };
    +        
    +        s.updateSlidesSize = function () {
    +            s.slides = s.wrapper.children('.' + s.params.slideClass);
    +            s.snapGrid = [];
    +            s.slidesGrid = [];
    +            s.slidesSizesGrid = [];
    +        
    +            var spaceBetween = s.params.spaceBetween,
    +                slidePosition = -s.params.slidesOffsetBefore,
    +                i,
    +                prevSlideSize = 0,
    +                index = 0;
    +            if (typeof s.size === 'undefined') return;
    +            if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
    +                spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * s.size;
    +            }
    +        
    +            s.virtualSize = -spaceBetween;
    +            // reset margins
    +            if (s.rtl) s.slides.css({marginLeft: '', marginTop: ''});
    +            else s.slides.css({marginRight: '', marginBottom: ''});
    +        
    +            var slidesNumberEvenToRows;
    +            if (s.params.slidesPerColumn > 1) {
    +                if (Math.floor(s.slides.length / s.params.slidesPerColumn) === s.slides.length / s.params.slidesPerColumn) {
    +                    slidesNumberEvenToRows = s.slides.length;
    +                }
    +                else {
    +                    slidesNumberEvenToRows = Math.ceil(s.slides.length / s.params.slidesPerColumn) * s.params.slidesPerColumn;
    +                }
    +                if (s.params.slidesPerView !== 'auto' && s.params.slidesPerColumnFill === 'row') {
    +                    slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, s.params.slidesPerView * s.params.slidesPerColumn);
    +                }
    +            }
    +        
    +            // Calc slides
    +            var slideSize;
    +            var slidesPerColumn = s.params.slidesPerColumn;
    +            var slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;
    +            var numFullColumns = slidesPerRow - (s.params.slidesPerColumn * slidesPerRow - s.slides.length);
    +            for (i = 0; i < s.slides.length; i++) {
    +                slideSize = 0;
    +                var slide = s.slides.eq(i);
    +                if (s.params.slidesPerColumn > 1) {
    +                    // Set slides order
    +                    var newSlideOrderIndex;
    +                    var column, row;
    +                    if (s.params.slidesPerColumnFill === 'column') {
    +                        column = Math.floor(i / slidesPerColumn);
    +                        row = i - column * slidesPerColumn;
    +                        if (column > numFullColumns || (column === numFullColumns && row === slidesPerColumn-1)) {
    +                            if (++row >= slidesPerColumn) {
    +                                row = 0;
    +                                column++;
    +                            }
    +                        }
    +                        newSlideOrderIndex = column + row * slidesNumberEvenToRows / slidesPerColumn;
    +                        slide
    +                            .css({
    +                                '-webkit-box-ordinal-group': newSlideOrderIndex,
    +                                '-moz-box-ordinal-group': newSlideOrderIndex,
    +                                '-ms-flex-order': newSlideOrderIndex,
    +                                '-webkit-order': newSlideOrderIndex,
    +                                'order': newSlideOrderIndex
    +                            });
    +                    }
    +                    else {
    +                        row = Math.floor(i / slidesPerRow);
    +                        column = i - row * slidesPerRow;
    +                    }
    +                    slide
    +                        .css({
    +                            'margin-top': (row !== 0 && s.params.spaceBetween) && (s.params.spaceBetween + 'px')
    +                        })
    +                        .attr('data-swiper-column', column)
    +                        .attr('data-swiper-row', row);
    +        
    +                }
    +                if (slide.css('display') === 'none') continue;
    +                if (s.params.slidesPerView === 'auto') {
    +                    slideSize = s.isHorizontal() ? slide.outerWidth(true) : slide.outerHeight(true);
    +                    if (s.params.roundLengths) slideSize = round(slideSize);
    +                }
    +                else {
    +                    slideSize = (s.size - (s.params.slidesPerView - 1) * spaceBetween) / s.params.slidesPerView;
    +                    if (s.params.roundLengths) slideSize = round(slideSize);
    +        
    +                    if (s.isHorizontal()) {
    +                        s.slides[i].style.width = slideSize + 'px';
    +                    }
    +                    else {
    +                        s.slides[i].style.height = slideSize + 'px';
    +                    }
    +                }
    +                s.slides[i].swiperSlideSize = slideSize;
    +                s.slidesSizesGrid.push(slideSize);
    +        
    +        
    +                if (s.params.centeredSlides) {
    +                    slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;
    +                    if (i === 0) slidePosition = slidePosition - s.size / 2 - spaceBetween;
    +                    if (Math.abs(slidePosition) < 1 / 1000) slidePosition = 0;
    +                    if ((index) % s.params.slidesPerGroup === 0) s.snapGrid.push(slidePosition);
    +                    s.slidesGrid.push(slidePosition);
    +                }
    +                else {
    +                    if ((index) % s.params.slidesPerGroup === 0) s.snapGrid.push(slidePosition);
    +                    s.slidesGrid.push(slidePosition);
    +                    slidePosition = slidePosition + slideSize + spaceBetween;
    +                }
    +        
    +                s.virtualSize += slideSize + spaceBetween;
    +        
    +                prevSlideSize = slideSize;
    +        
    +                index ++;
    +            }
    +            s.virtualSize = Math.max(s.virtualSize, s.size) + s.params.slidesOffsetAfter;
    +            var newSlidesGrid;
    +        
    +            if (
    +                s.rtl && s.wrongRTL && (s.params.effect === 'slide' || s.params.effect === 'coverflow')) {
    +                s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
    +            }
    +            if (!s.support.flexbox || s.params.setWrapperSize) {
    +                if (s.isHorizontal()) s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
    +                else s.wrapper.css({height: s.virtualSize + s.params.spaceBetween + 'px'});
    +            }
    +        
    +            if (s.params.slidesPerColumn > 1) {
    +                s.virtualSize = (slideSize + s.params.spaceBetween) * slidesNumberEvenToRows;
    +                s.virtualSize = Math.ceil(s.virtualSize / s.params.slidesPerColumn) - s.params.spaceBetween;
    +                s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
    +                if (s.params.centeredSlides) {
    +                    newSlidesGrid = [];
    +                    for (i = 0; i < s.snapGrid.length; i++) {
    +                        if (s.snapGrid[i] < s.virtualSize + s.snapGrid[0]) newSlidesGrid.push(s.snapGrid[i]);
    +                    }
    +                    s.snapGrid = newSlidesGrid;
    +                }
    +            }
    +        
    +            // Remove last grid elements depending on width
    +            if (!s.params.centeredSlides) {
    +                newSlidesGrid = [];
    +                for (i = 0; i < s.snapGrid.length; i++) {
    +                    if (s.snapGrid[i] <= s.virtualSize - s.size) {
    +                        newSlidesGrid.push(s.snapGrid[i]);
    +                    }
    +                }
    +                s.snapGrid = newSlidesGrid;
    +                if (Math.floor(s.virtualSize - s.size) - Math.floor(s.snapGrid[s.snapGrid.length - 1]) > 1) {
    +                    s.snapGrid.push(s.virtualSize - s.size);
    +                }
    +            }
    +            if (s.snapGrid.length === 0) s.snapGrid = [0];
    +        
    +            if (s.params.spaceBetween !== 0) {
    +                if (s.isHorizontal()) {
    +                    if (s.rtl) s.slides.css({marginLeft: spaceBetween + 'px'});
    +                    else s.slides.css({marginRight: spaceBetween + 'px'});
    +                }
    +                else s.slides.css({marginBottom: spaceBetween + 'px'});
    +            }
    +            if (s.params.watchSlidesProgress) {
    +                s.updateSlidesOffset();
    +            }
    +        };
    +        s.updateSlidesOffset = function () {
    +            for (var i = 0; i < s.slides.length; i++) {
    +                s.slides[i].swiperSlideOffset = s.isHorizontal() ? s.slides[i].offsetLeft : s.slides[i].offsetTop;
    +            }
    +        };
    +        
    +        /*=========================
    +          Slider/slides progress
    +          ===========================*/
    +        s.updateSlidesProgress = function (translate) {
    +            if (typeof translate === 'undefined') {
    +                translate = s.translate || 0;
    +            }
    +            if (s.slides.length === 0) return;
    +            if (typeof s.slides[0].swiperSlideOffset === 'undefined') s.updateSlidesOffset();
    +        
    +            var offsetCenter = -translate;
    +            if (s.rtl) offsetCenter = translate;
    +        
    +            // Visible Slides
    +            s.slides.removeClass(s.params.slideVisibleClass);
    +            for (var i = 0; i < s.slides.length; i++) {
    +                var slide = s.slides[i];
    +                var slideProgress = (offsetCenter - slide.swiperSlideOffset) / (slide.swiperSlideSize + s.params.spaceBetween);
    +                if (s.params.watchSlidesVisibility) {
    +                    var slideBefore = -(offsetCenter - slide.swiperSlideOffset);
    +                    var slideAfter = slideBefore + s.slidesSizesGrid[i];
    +                    var isVisible =
    +                        (slideBefore >= 0 && slideBefore < s.size) ||
    +                        (slideAfter > 0 && slideAfter <= s.size) ||
    +                        (slideBefore <= 0 && slideAfter >= s.size);
    +                    if (isVisible) {
    +                        s.slides.eq(i).addClass(s.params.slideVisibleClass);
    +                    }
    +                }
    +                slide.progress = s.rtl ? -slideProgress : slideProgress;
    +            }
    +        };
    +        s.updateProgress = function (translate) {
    +            if (typeof translate === 'undefined') {
    +                translate = s.translate || 0;
    +            }
    +            var translatesDiff = s.maxTranslate() - s.minTranslate();
    +            var wasBeginning = s.isBeginning;
    +            var wasEnd = s.isEnd;
    +            if (translatesDiff === 0) {
    +                s.progress = 0;
    +                s.isBeginning = s.isEnd = true;
    +            }
    +            else {
    +                s.progress = (translate - s.minTranslate()) / (translatesDiff);
    +                s.isBeginning = s.progress <= 0;
    +                s.isEnd = s.progress >= 1;
    +            }
    +            if (s.isBeginning && !wasBeginning) s.emit('onReachBeginning', s);
    +            if (s.isEnd && !wasEnd) s.emit('onReachEnd', s);
    +        
    +            if (s.params.watchSlidesProgress) s.updateSlidesProgress(translate);
    +            s.emit('onProgress', s, s.progress);
    +        };
    +        s.updateActiveIndex = function () {
    +            var translate = s.rtl ? s.translate : -s.translate;
    +            var newActiveIndex, i, snapIndex;
    +            for (i = 0; i < s.slidesGrid.length; i ++) {
    +                if (typeof s.slidesGrid[i + 1] !== 'undefined') {
    +                    if (translate >= s.slidesGrid[i] && translate < s.slidesGrid[i + 1] - (s.slidesGrid[i + 1] - s.slidesGrid[i]) / 2) {
    +                        newActiveIndex = i;
    +                    }
    +                    else if (translate >= s.slidesGrid[i] && translate < s.slidesGrid[i + 1]) {
    +                        newActiveIndex = i + 1;
    +                    }
    +                }
    +                else {
    +                    if (translate >= s.slidesGrid[i]) {
    +                        newActiveIndex = i;
    +                    }
    +                }
    +            }
    +            // Normalize slideIndex
    +            if (newActiveIndex < 0 || typeof newActiveIndex === 'undefined') newActiveIndex = 0;
    +            // for (i = 0; i < s.slidesGrid.length; i++) {
    +                // if (- translate >= s.slidesGrid[i]) {
    +                    // newActiveIndex = i;
    +                // }
    +            // }
    +            snapIndex = Math.floor(newActiveIndex / s.params.slidesPerGroup);
    +            if (snapIndex >= s.snapGrid.length) snapIndex = s.snapGrid.length - 1;
    +        
    +            if (newActiveIndex === s.activeIndex) {
    +                return;
    +            }
    +            s.snapIndex = snapIndex;
    +            s.previousIndex = s.activeIndex;
    +            s.activeIndex = newActiveIndex;
    +            s.updateClasses();
    +        };
    +        
    +        /*=========================
    +          Classes
    +          ===========================*/
    +        s.updateClasses = function () {
    +            s.slides.removeClass(s.params.slideActiveClass + ' ' + s.params.slideNextClass + ' ' + s.params.slidePrevClass);
    +            var activeSlide = s.slides.eq(s.activeIndex);
    +            // Active classes
    +            activeSlide.addClass(s.params.slideActiveClass);
    +            // Next Slide
    +            var nextSlide = activeSlide.next('.' + s.params.slideClass).addClass(s.params.slideNextClass);
    +            if (s.params.loop && nextSlide.length === 0) {
    +                s.slides.eq(0).addClass(s.params.slideNextClass);
    +            }
    +            // Prev Slide
    +            var prevSlide = activeSlide.prev('.' + s.params.slideClass).addClass(s.params.slidePrevClass);
    +            if (s.params.loop && prevSlide.length === 0) {
    +                s.slides.eq(-1).addClass(s.params.slidePrevClass);
    +            }
    +        
    +            // Pagination
    +            if (s.paginationContainer && s.paginationContainer.length > 0) {
    +                // Current/Total
    +                var current,
    +                    total = s.params.loop ? Math.ceil((s.slides.length - s.loopedSlides * 2) / s.params.slidesPerGroup) : s.snapGrid.length;
    +                if (s.params.loop) {
    +                    current = Math.ceil((s.activeIndex - s.loopedSlides)/s.params.slidesPerGroup);
    +                    if (current > s.slides.length - 1 - s.loopedSlides * 2) {
    +                        current = current - (s.slides.length - s.loopedSlides * 2);
    +                    }
    +                    if (current > total - 1) current = current - total;
    +                    if (current < 0 && s.params.paginationType !== 'bullets') current = total + current;
    +                }
    +                else {
    +                    if (typeof s.snapIndex !== 'undefined') {
    +                        current = s.snapIndex;
    +                    }
    +                    else {
    +                        current = s.activeIndex || 0;
    +                    }
    +                }
    +                // Types
    +                if (s.params.paginationType === 'bullets' && s.bullets && s.bullets.length > 0) {
    +                    s.bullets.removeClass(s.params.bulletActiveClass);
    +                    if (s.paginationContainer.length > 1) {
    +                        s.bullets.each(function () {
    +                            if ($(this).index() === current) $(this).addClass(s.params.bulletActiveClass);
    +                        });
    +                    }
    +                    else {
    +                        s.bullets.eq(current).addClass(s.params.bulletActiveClass);
    +                    }
    +                }
    +                if (s.params.paginationType === 'fraction') {
    +                    s.paginationContainer.find('.' + s.params.paginationCurrentClass).text(current + 1);
    +                    s.paginationContainer.find('.' + s.params.paginationTotalClass).text(total);
    +                }
    +                if (s.params.paginationType === 'progress') {
    +                    var scale = (current + 1) / total,
    +                        scaleX = scale,
    +                        scaleY = 1;
    +                    if (!s.isHorizontal()) {
    +                        scaleY = scale;
    +                        scaleX = 1;
    +                    }
    +                    s.paginationContainer.find('.' + s.params.paginationProgressbarClass).transform('translate3d(0,0,0) scaleX(' + scaleX + ') scaleY(' + scaleY + ')').transition(s.params.speed);
    +                }
    +                if (s.params.paginationType === 'custom' && s.params.paginationCustomRender) {
    +                    s.paginationContainer.html(s.params.paginationCustomRender(s, current + 1, total));
    +                    s.emit('onPaginationRendered', s, s.paginationContainer[0]);
    +                }
    +            }
    +        
    +            // Next/active buttons
    +            if (!s.params.loop) {
    +                if (s.params.prevButton && s.prevButton && s.prevButton.length > 0) {
    +                    if (s.isBeginning) {
    +                        s.prevButton.addClass(s.params.buttonDisabledClass);
    +                        if (s.params.a11y && s.a11y) s.a11y.disable(s.prevButton);
    +                    }
    +                    else {
    +                        s.prevButton.removeClass(s.params.buttonDisabledClass);
    +                        if (s.params.a11y && s.a11y) s.a11y.enable(s.prevButton);
    +                    }
    +                }
    +                if (s.params.nextButton && s.nextButton && s.nextButton.length > 0) {
    +                    if (s.isEnd) {
    +                        s.nextButton.addClass(s.params.buttonDisabledClass);
    +                        if (s.params.a11y && s.a11y) s.a11y.disable(s.nextButton);
    +                    }
    +                    else {
    +                        s.nextButton.removeClass(s.params.buttonDisabledClass);
    +                        if (s.params.a11y && s.a11y) s.a11y.enable(s.nextButton);
    +                    }
    +                }
    +            }
    +        };
    +        
    +        /*=========================
    +          Pagination
    +          ===========================*/
    +        s.updatePagination = function () {
    +            if (!s.params.pagination) return;
    +            if (s.paginationContainer && s.paginationContainer.length > 0) {
    +                var paginationHTML = '';
    +                if (s.params.paginationType === 'bullets') {
    +                    var numberOfBullets = s.params.loop ? Math.ceil((s.slides.length - s.loopedSlides * 2) / s.params.slidesPerGroup) : s.snapGrid.length;
    +                    for (var i = 0; i < numberOfBullets; i++) {
    +                        if (s.params.paginationBulletRender) {
    +                            paginationHTML += s.params.paginationBulletRender(i, s.params.bulletClass);
    +                        }
    +                        else {
    +                            paginationHTML += '<' + s.params.paginationElement+' class="' + s.params.bulletClass + '"></' + s.params.paginationElement + '>';
    +                        }
    +                    }
    +                    s.paginationContainer.html(paginationHTML);
    +                    s.bullets = s.paginationContainer.find('.' + s.params.bulletClass);
    +                    if (s.params.paginationClickable && s.params.a11y && s.a11y) {
    +                        s.a11y.initPagination();
    +                    }
    +                }
    +                if (s.params.paginationType === 'fraction') {
    +                    if (s.params.paginationFractionRender) {
    +                        paginationHTML = s.params.paginationFractionRender(s, s.params.paginationCurrentClass, s.params.paginationTotalClass);
    +                    }
    +                    else {
    +                        paginationHTML =
    +                            '<span class="' + s.params.paginationCurrentClass + '"></span>' +
    +                            ' / ' +
    +                            '<span class="' + s.params.paginationTotalClass+'"></span>';
    +                    }
    +                    s.paginationContainer.html(paginationHTML);
    +                }
    +                if (s.params.paginationType === 'progress') {
    +                    if (s.params.paginationProgressRender) {
    +                        paginationHTML = s.params.paginationProgressRender(s, s.params.paginationProgressbarClass);
    +                    }
    +                    else {
    +                        paginationHTML = '<span class="' + s.params.paginationProgressbarClass + '"></span>';
    +                    }
    +                    s.paginationContainer.html(paginationHTML);
    +                }
    +                if (s.params.paginationType !== 'custom') {
    +                    s.emit('onPaginationRendered', s, s.paginationContainer[0]);
    +                }
    +            }
    +        };
    +        /*=========================
    +          Common update method
    +          ===========================*/
    +        s.update = function (updateTranslate) {
    +            s.updateContainerSize();
    +            s.updateSlidesSize();
    +            s.updateProgress();
    +            s.updatePagination();
    +            s.updateClasses();
    +            if (s.params.scrollbar && s.scrollbar) {
    +                s.scrollbar.set();
    +            }
    +            function forceSetTranslate() {
    +                newTranslate = Math.min(Math.max(s.translate, s.maxTranslate()), s.minTranslate());
    +                s.setWrapperTranslate(newTranslate);
    +                s.updateActiveIndex();
    +                s.updateClasses();
    +            }
    +            if (updateTranslate) {
    +                var translated, newTranslate;
    +                if (s.controller && s.controller.spline) {
    +                    s.controller.spline = undefined;
    +                }
    +                if (s.params.freeMode) {
    +                    forceSetTranslate();
    +                    if (s.params.autoHeight) {
    +                        s.updateAutoHeight();
    +                    }
    +                }
    +                else {
    +                    if ((s.params.slidesPerView === 'auto' || s.params.slidesPerView > 1) && s.isEnd && !s.params.centeredSlides) {
    +                        translated = s.slideTo(s.slides.length - 1, 0, false, true);
    +                    }
    +                    else {
    +                        translated = s.slideTo(s.activeIndex, 0, false, true);
    +                    }
    +                    if (!translated) {
    +                        forceSetTranslate();
    +                    }
    +                }
    +            }
    +            else if (s.params.autoHeight) {
    +                s.updateAutoHeight();
    +            }
    +        };
    +        
    +        /*=========================
    +          Resize Handler
    +          ===========================*/
    +        s.onResize = function (forceUpdatePagination) {
    +            //Breakpoints
    +            if (s.params.breakpoints) {
    +                s.setBreakpoint();
    +            }
    +        
    +            // Disable locks on resize
    +            var allowSwipeToPrev = s.params.allowSwipeToPrev;
    +            var allowSwipeToNext = s.params.allowSwipeToNext;
    +            s.params.allowSwipeToPrev = s.params.allowSwipeToNext = true;
    +        
    +            s.updateContainerSize();
    +            s.updateSlidesSize();
    +            if (s.params.slidesPerView === 'auto' || s.params.freeMode || forceUpdatePagination) s.updatePagination();
    +            if (s.params.scrollbar && s.scrollbar) {
    +                s.scrollbar.set();
    +            }
    +            if (s.controller && s.controller.spline) {
    +                s.controller.spline = undefined;
    +            }
    +            var slideChangedBySlideTo = false;
    +            if (s.params.freeMode) {
    +                var newTranslate = Math.min(Math.max(s.translate, s.maxTranslate()), s.minTranslate());
    +                s.setWrapperTranslate(newTranslate);
    +                s.updateActiveIndex();
    +                s.updateClasses();
    +        
    +                if (s.params.autoHeight) {
    +                    s.updateAutoHeight();
    +                }
    +            }
    +            else {
    +                s.updateClasses();
    +                if ((s.params.slidesPerView === 'auto' || s.params.slidesPerView > 1) && s.isEnd && !s.params.centeredSlides) {
    +                    slideChangedBySlideTo = s.slideTo(s.slides.length - 1, 0, false, true);
    +                }
    +                else {
    +                    slideChangedBySlideTo = s.slideTo(s.activeIndex, 0, false, true);
    +                }
    +            }
    +            if (s.params.lazyLoading && !slideChangedBySlideTo && s.lazy) {
    +                s.lazy.load();
    +            }
    +            // Return locks after resize
    +            s.params.allowSwipeToPrev = allowSwipeToPrev;
    +            s.params.allowSwipeToNext = allowSwipeToNext;
    +        };
    +        
    +        /*=========================
    +          Events
    +          ===========================*/
    +        
    +        //Define Touch Events
    +        var desktopEvents = ['mousedown', 'mousemove', 'mouseup'];
    +        if (window.navigator.pointerEnabled) desktopEvents = ['pointerdown', 'pointermove', 'pointerup'];
    +        else if (window.navigator.msPointerEnabled) desktopEvents = ['MSPointerDown', 'MSPointerMove', 'MSPointerUp'];
    +        s.touchEvents = {
    +            start : s.support.touch || !s.params.simulateTouch  ? 'touchstart' : desktopEvents[0],
    +            move : s.support.touch || !s.params.simulateTouch ? 'touchmove' : desktopEvents[1],
    +            end : s.support.touch || !s.params.simulateTouch ? 'touchend' : desktopEvents[2]
    +        };
    +        
    +        
    +        // WP8 Touch Events Fix
    +        if (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) {
    +            (s.params.touchEventsTarget === 'container' ? s.container : s.wrapper).addClass('swiper-wp8-' + s.params.direction);
    +        }
    +        
    +        // Attach/detach events
    +        s.initEvents = function (detach) {
    +            var actionDom = detach ? 'off' : 'on';
    +            var action = detach ? 'removeEventListener' : 'addEventListener';
    +            var touchEventsTarget = s.params.touchEventsTarget === 'container' ? s.container[0] : s.wrapper[0];
    +            var target = s.support.touch ? touchEventsTarget : document;
    +        
    +            var moveCapture = s.params.nested ? true : false;
    +        
    +            //Touch Events
    +            if (s.browser.ie) {
    +                touchEventsTarget[action](s.touchEvents.start, s.onTouchStart, false);
    +                target[action](s.touchEvents.move, s.onTouchMove, moveCapture);
    +                target[action](s.touchEvents.end, s.onTouchEnd, false);
    +            }
    +            else {
    +                if (s.support.touch) {
    +                    touchEventsTarget[action](s.touchEvents.start, s.onTouchStart, false);
    +                    touchEventsTarget[action](s.touchEvents.move, s.onTouchMove, moveCapture);
    +                    touchEventsTarget[action](s.touchEvents.end, s.onTouchEnd, false);
    +                }
    +                if (params.simulateTouch && !s.device.ios && !s.device.android) {
    +                    touchEventsTarget[action]('mousedown', s.onTouchStart, false);
    +                    document[action]('mousemove', s.onTouchMove, moveCapture);
    +                    document[action]('mouseup', s.onTouchEnd, false);
    +                }
    +            }
    +            window[action]('resize', s.onResize);
    +        
    +            // Next, Prev, Index
    +            if (s.params.nextButton && s.nextButton && s.nextButton.length > 0) {
    +                s.nextButton[actionDom]('click', s.onClickNext);
    +                if (s.params.a11y && s.a11y) s.nextButton[actionDom]('keydown', s.a11y.onEnterKey);
    +            }
    +            if (s.params.prevButton && s.prevButton && s.prevButton.length > 0) {
    +                s.prevButton[actionDom]('click', s.onClickPrev);
    +                if (s.params.a11y && s.a11y) s.prevButton[actionDom]('keydown', s.a11y.onEnterKey);
    +            }
    +            if (s.params.pagination && s.params.paginationClickable) {
    +                s.paginationContainer[actionDom]('click', '.' + s.params.bulletClass, s.onClickIndex);
    +                if (s.params.a11y && s.a11y) s.paginationContainer[actionDom]('keydown', '.' + s.params.bulletClass, s.a11y.onEnterKey);
    +            }
    +        
    +            // Prevent Links Clicks
    +            if (s.params.preventClicks || s.params.preventClicksPropagation) touchEventsTarget[action]('click', s.preventClicks, true);
    +        };
    +        s.attachEvents = function () {
    +            s.initEvents();
    +        };
    +        s.detachEvents = function () {
    +            s.initEvents(true);
    +        };
    +        
    +        /*=========================
    +          Handle Clicks
    +          ===========================*/
    +        // Prevent Clicks
    +        s.allowClick = true;
    +        s.preventClicks = function (e) {
    +            if (!s.allowClick) {
    +                if (s.params.preventClicks) e.preventDefault();
    +                if (s.params.preventClicksPropagation && s.animating) {
    +                    e.stopPropagation();
    +                    e.stopImmediatePropagation();
    +                }
    +            }
    +        };
    +        // Clicks
    +        s.onClickNext = function (e) {
    +            e.preventDefault();
    +            if (s.isEnd && !s.params.loop) return;
    +            s.slideNext();
    +        };
    +        s.onClickPrev = function (e) {
    +            e.preventDefault();
    +            if (s.isBeginning && !s.params.loop) return;
    +            s.slidePrev();
    +        };
    +        s.onClickIndex = function (e) {
    +            e.preventDefault();
    +            var index = $(this).index() * s.params.slidesPerGroup;
    +            if (s.params.loop) index = index + s.loopedSlides;
    +            s.slideTo(index);
    +        };
    +        
    +        /*=========================
    +          Handle Touches
    +          ===========================*/
    +        function findElementInEvent(e, selector) {
    +            var el = $(e.target);
    +            if (!el.is(selector)) {
    +                if (typeof selector === 'string') {
    +                    el = el.parents(selector);
    +                }
    +                else if (selector.nodeType) {
    +                    var found;
    +                    el.parents().each(function (index, _el) {
    +                        if (_el === selector) found = selector;
    +                    });
    +                    if (!found) return undefined;
    +                    else return selector;
    +                }
    +            }
    +            if (el.length === 0) {
    +                return undefined;
    +            }
    +            return el[0];
    +        }
    +        s.updateClickedSlide = function (e) {
    +            var slide = findElementInEvent(e, '.' + s.params.slideClass);
    +            var slideFound = false;
    +            if (slide) {
    +                for (var i = 0; i < s.slides.length; i++) {
    +                    if (s.slides[i] === slide) slideFound = true;
    +                }
    +            }
    +        
    +            if (slide && slideFound) {
    +                s.clickedSlide = slide;
    +                s.clickedIndex = $(slide).index();
    +            }
    +            else {
    +                s.clickedSlide = undefined;
    +                s.clickedIndex = undefined;
    +                return;
    +            }
    +            if (s.params.slideToClickedSlide && s.clickedIndex !== undefined && s.clickedIndex !== s.activeIndex) {
    +                var slideToIndex = s.clickedIndex,
    +                    realIndex,
    +                    duplicatedSlides;
    +                if (s.params.loop) {
    +                    if (s.animating) return;
    +                    realIndex = $(s.clickedSlide).attr('data-swiper-slide-index');
    +                    if (s.params.centeredSlides) {
    +                        if ((slideToIndex < s.loopedSlides - s.params.slidesPerView/2) || (slideToIndex > s.slides.length - s.loopedSlides + s.params.slidesPerView/2)) {
    +                            s.fixLoop();
    +                            slideToIndex = s.wrapper.children('.' + s.params.slideClass + '[data-swiper-slide-index="' + realIndex + '"]:not(.swiper-slide-duplicate)').eq(0).index();
    +                            setTimeout(function () {
    +                                s.slideTo(slideToIndex);
    +                            }, 0);
    +                        }
    +                        else {
    +                            s.slideTo(slideToIndex);
    +                        }
    +                    }
    +                    else {
    +                        if (slideToIndex > s.slides.length - s.params.slidesPerView) {
    +                            s.fixLoop();
    +                            slideToIndex = s.wrapper.children('.' + s.params.slideClass + '[data-swiper-slide-index="' + realIndex + '"]:not(.swiper-slide-duplicate)').eq(0).index();
    +                            setTimeout(function () {
    +                                s.slideTo(slideToIndex);
    +                            }, 0);
    +                        }
    +                        else {
    +                            s.slideTo(slideToIndex);
    +                        }
    +                    }
    +                }
    +                else {
    +                    s.slideTo(slideToIndex);
    +                }
    +            }
    +        };
    +        
    +        var isTouched,
    +            isMoved,
    +            allowTouchCallbacks,
    +            touchStartTime,
    +            isScrolling,
    +            currentTranslate,
    +            startTranslate,
    +            allowThresholdMove,
    +            // Form elements to match
    +            formElements = 'input, select, textarea, button',
    +            // Last click time
    +            lastClickTime = Date.now(), clickTimeout,
    +            //Velocities
    +            velocities = [],
    +            allowMomentumBounce;
    +        
    +        // Animating Flag
    +        s.animating = false;
    +        
    +        // Touches information
    +        s.touches = {
    +            startX: 0,
    +            startY: 0,
    +            currentX: 0,
    +            currentY: 0,
    +            diff: 0
    +        };
    +        
    +        // Touch handlers
    +        var isTouchEvent, startMoving;
    +        s.onTouchStart = function (e) {
    +            if (e.originalEvent) e = e.originalEvent;
    +            isTouchEvent = e.type === 'touchstart';
    +            if (!isTouchEvent && 'which' in e && e.which === 3) return;
    +            if (s.params.noSwiping && findElementInEvent(e, '.' + s.params.noSwipingClass)) {
    +                s.allowClick = true;
    +                return;
    +            }
    +            if (s.params.swipeHandler) {
    +                if (!findElementInEvent(e, s.params.swipeHandler)) return;
    +            }
    +        
    +            var startX = s.touches.currentX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
    +            var startY = s.touches.currentY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
    +        
    +            // Do NOT start if iOS edge swipe is detected. Otherwise iOS app (UIWebView) cannot swipe-to-go-back anymore
    +            if(s.device.ios && s.params.iOSEdgeSwipeDetection && startX <= s.params.iOSEdgeSwipeThreshold) {
    +                return;
    +            }
    +        
    +            isTouched = true;
    +            isMoved = false;
    +            allowTouchCallbacks = true;
    +            isScrolling = undefined;
    +            startMoving = undefined;
    +            s.touches.startX = startX;
    +            s.touches.startY = startY;
    +            touchStartTime = Date.now();
    +            s.allowClick = true;
    +            s.updateContainerSize();
    +            s.swipeDirection = undefined;
    +            if (s.params.threshold > 0) allowThresholdMove = false;
    +            if (e.type !== 'touchstart') {
    +                var preventDefault = true;
    +                if ($(e.target).is(formElements)) preventDefault = false;
    +                if (document.activeElement && $(document.activeElement).is(formElements)) {
    +                    document.activeElement.blur();
    +                }
    +                if (preventDefault) {
    +                    e.preventDefault();
    +                }
    +            }
    +            s.emit('onTouchStart', s, e);
    +        };
    +        
    +        s.onTouchMove = function (e) {
    +            if (e.originalEvent) e = e.originalEvent;
    +            if (isTouchEvent && e.type === 'mousemove') return;
    +            if (e.preventedByNestedSwiper) {
    +                s.touches.startX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
    +                s.touches.startY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
    +                return;
    +            }
    +            if (s.params.onlyExternal) {
    +                // isMoved = true;
    +                s.allowClick = false;
    +                if (isTouched) {
    +                    s.touches.startX = s.touches.currentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
    +                    s.touches.startY = s.touches.currentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
    +                    touchStartTime = Date.now();
    +                }
    +                return;
    +            }
    +            if (isTouchEvent && document.activeElement) {
    +                if (e.target === document.activeElement && $(e.target).is(formElements)) {
    +                    isMoved = true;
    +                    s.allowClick = false;
    +                    return;
    +                }
    +            }
    +            if (allowTouchCallbacks) {
    +                s.emit('onTouchMove', s, e);
    +            }
    +            if (e.targetTouches && e.targetTouches.length > 1) return;
    +        
    +            s.touches.currentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
    +            s.touches.currentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
    +        
    +            if (typeof isScrolling === 'undefined') {
    +                var touchAngle = Math.atan2(Math.abs(s.touches.currentY - s.touches.startY), Math.abs(s.touches.currentX - s.touches.startX)) * 180 / Math.PI;
    +                isScrolling = s.isHorizontal() ? touchAngle > s.params.touchAngle : (90 - touchAngle > s.params.touchAngle);
    +            }
    +            if (isScrolling) {
    +                s.emit('onTouchMoveOpposite', s, e);
    +            }
    +            if (typeof startMoving === 'undefined' && s.browser.ieTouch) {
    +                if (s.touches.currentX !== s.touches.startX || s.touches.currentY !== s.touches.startY) {
    +                    startMoving = true;
    +                }
    +            }
    +            if (!isTouched) return;
    +            if (isScrolling)  {
    +                isTouched = false;
    +                return;
    +            }
    +            if (!startMoving && s.browser.ieTouch) {
    +                return;
    +            }
    +            s.allowClick = false;
    +            s.emit('onSliderMove', s, e);
    +            e.preventDefault();
    +            if (s.params.touchMoveStopPropagation && !s.params.nested) {
    +                e.stopPropagation();
    +            }
    +        
    +            if (!isMoved) {
    +                if (params.loop) {
    +                    s.fixLoop();
    +                }
    +                startTranslate = s.getWrapperTranslate();
    +                s.setWrapperTransition(0);
    +                if (s.animating) {
    +                    s.wrapper.trigger('webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd');
    +                }
    +                if (s.params.autoplay && s.autoplaying) {
    +                    if (s.params.autoplayDisableOnInteraction) {
    +                        s.stopAutoplay();
    +                    }
    +                    else {
    +                        s.pauseAutoplay();
    +                    }
    +                }
    +                allowMomentumBounce = false;
    +                //Grab Cursor
    +                if (s.params.grabCursor) {
    +                    s.container[0].style.cursor = 'move';
    +                    s.container[0].style.cursor = '-webkit-grabbing';
    +                    s.container[0].style.cursor = '-moz-grabbin';
    +                    s.container[0].style.cursor = 'grabbing';
    +                }
    +            }
    +            isMoved = true;
    +        
    +            var diff = s.touches.diff = s.isHorizontal() ? s.touches.currentX - s.touches.startX : s.touches.currentY - s.touches.startY;
    +        
    +            diff = diff * s.params.touchRatio;
    +            if (s.rtl) diff = -diff;
    +        
    +            s.swipeDirection = diff > 0 ? 'prev' : 'next';
    +            currentTranslate = diff + startTranslate;
    +        
    +            var disableParentSwiper = true;
    +            if ((diff > 0 && currentTranslate > s.minTranslate())) {
    +                disableParentSwiper = false;
    +                if (s.params.resistance) currentTranslate = s.minTranslate() - 1 + Math.pow(-s.minTranslate() + startTranslate + diff, s.params.resistanceRatio);
    +            }
    +            else if (diff < 0 && currentTranslate < s.maxTranslate()) {
    +                disableParentSwiper = false;
    +                if (s.params.resistance) currentTranslate = s.maxTranslate() + 1 - Math.pow(s.maxTranslate() - startTranslate - diff, s.params.resistanceRatio);
    +            }
    +        
    +            if (disableParentSwiper) {
    +                e.preventedByNestedSwiper = true;
    +            }
    +        
    +            // Directions locks
    +            if (!s.params.allowSwipeToNext && s.swipeDirection === 'next' && currentTranslate < startTranslate) {
    +                currentTranslate = startTranslate;
    +            }
    +            if (!s.params.allowSwipeToPrev && s.swipeDirection === 'prev' && currentTranslate > startTranslate) {
    +                currentTranslate = startTranslate;
    +            }
    +        
    +            if (!s.params.followFinger) return;
    +        
    +            // Threshold
    +            if (s.params.threshold > 0) {
    +                if (Math.abs(diff) > s.params.threshold || allowThresholdMove) {
    +                    if (!allowThresholdMove) {
    +                        allowThresholdMove = true;
    +                        s.touches.startX = s.touches.currentX;
    +                        s.touches.startY = s.touches.currentY;
    +                        currentTranslate = startTranslate;
    +                        s.touches.diff = s.isHorizontal() ? s.touches.currentX - s.touches.startX : s.touches.currentY - s.touches.startY;
    +                        return;
    +                    }
    +                }
    +                else {
    +                    currentTranslate = startTranslate;
    +                    return;
    +                }
    +            }
    +            // Update active index in free mode
    +            if (s.params.freeMode || s.params.watchSlidesProgress) {
    +                s.updateActiveIndex();
    +            }
    +            if (s.params.freeMode) {
    +                //Velocity
    +                if (velocities.length === 0) {
    +                    velocities.push({
    +                        position: s.touches[s.isHorizontal() ? 'startX' : 'startY'],
    +                        time: touchStartTime
    +                    });
    +                }
    +                velocities.push({
    +                    position: s.touches[s.isHorizontal() ? 'currentX' : 'currentY'],
    +                    time: (new window.Date()).getTime()
    +                });
    +            }
    +            // Update progress
    +            s.updateProgress(currentTranslate);
    +            // Update translate
    +            s.setWrapperTranslate(currentTranslate);
    +        };
    +        s.onTouchEnd = function (e) {
    +            if (e.originalEvent) e = e.originalEvent;
    +            if (allowTouchCallbacks) {
    +                s.emit('onTouchEnd', s, e);
    +            }
    +            allowTouchCallbacks = false;
    +            if (!isTouched) return;
    +            //Return Grab Cursor
    +            if (s.params.grabCursor && isMoved && isTouched) {
    +                s.container[0].style.cursor = 'move';
    +                s.container[0].style.cursor = '-webkit-grab';
    +                s.container[0].style.cursor = '-moz-grab';
    +                s.container[0].style.cursor = 'grab';
    +            }
    +        
    +            // Time diff
    +            var touchEndTime = Date.now();
    +            var timeDiff = touchEndTime - touchStartTime;
    +        
    +            // Tap, doubleTap, Click
    +            if (s.allowClick) {
    +                s.updateClickedSlide(e);
    +                s.emit('onTap', s, e);
    +                if (timeDiff < 300 && (touchEndTime - lastClickTime) > 300) {
    +                    if (clickTimeout) clearTimeout(clickTimeout);
    +                    clickTimeout = setTimeout(function () {
    +                        if (!s) return;
    +                        if (s.params.paginationHide && s.paginationContainer.length > 0 && !$(e.target).hasClass(s.params.bulletClass)) {
    +                            s.paginationContainer.toggleClass(s.params.paginationHiddenClass);
    +                        }
    +                        s.emit('onClick', s, e);
    +                    }, 300);
    +        
    +                }
    +                if (timeDiff < 300 && (touchEndTime - lastClickTime) < 300) {
    +                    if (clickTimeout) clearTimeout(clickTimeout);
    +                    s.emit('onDoubleTap', s, e);
    +                }
    +            }
    +        
    +            lastClickTime = Date.now();
    +            setTimeout(function () {
    +                if (s) s.allowClick = true;
    +            }, 0);
    +        
    +            if (!isTouched || !isMoved || !s.swipeDirection || s.touches.diff === 0 || currentTranslate === startTranslate) {
    +                isTouched = isMoved = false;
    +                return;
    +            }
    +            isTouched = isMoved = false;
    +        
    +            var currentPos;
    +            if (s.params.followFinger) {
    +                currentPos = s.rtl ? s.translate : -s.translate;
    +            }
    +            else {
    +                currentPos = -currentTranslate;
    +            }
    +            if (s.params.freeMode) {
    +                if (currentPos < -s.minTranslate()) {
    +                    s.slideTo(s.activeIndex);
    +                    return;
    +                }
    +                else if (currentPos > -s.maxTranslate()) {
    +                    if (s.slides.length < s.snapGrid.length) {
    +                        s.slideTo(s.snapGrid.length - 1);
    +                    }
    +                    else {
    +                        s.slideTo(s.slides.length - 1);
    +                    }
    +                    return;
    +                }
    +        
    +                if (s.params.freeModeMomentum) {
    +                    if (velocities.length > 1) {
    +                        var lastMoveEvent = velocities.pop(), velocityEvent = velocities.pop();
    +        
    +                        var distance = lastMoveEvent.position - velocityEvent.position;
    +                        var time = lastMoveEvent.time - velocityEvent.time;
    +                        s.velocity = distance / time;
    +                        s.velocity = s.velocity / 2;
    +                        if (Math.abs(s.velocity) < s.params.freeModeMinimumVelocity) {
    +                            s.velocity = 0;
    +                        }
    +                        // this implies that the user stopped moving a finger then released.
    +                        // There would be no events with distance zero, so the last event is stale.
    +                        if (time > 150 || (new window.Date().getTime() - lastMoveEvent.time) > 300) {
    +                            s.velocity = 0;
    +                        }
    +                    } else {
    +                        s.velocity = 0;
    +                    }
    +        
    +                    velocities.length = 0;
    +                    var momentumDuration = 1000 * s.params.freeModeMomentumRatio;
    +                    var momentumDistance = s.velocity * momentumDuration;
    +        
    +                    var newPosition = s.translate + momentumDistance;
    +                    if (s.rtl) newPosition = - newPosition;
    +                    var doBounce = false;
    +                    var afterBouncePosition;
    +                    var bounceAmount = Math.abs(s.velocity) * 20 * s.params.freeModeMomentumBounceRatio;
    +                    if (newPosition < s.maxTranslate()) {
    +                        if (s.params.freeModeMomentumBounce) {
    +                            if (newPosition + s.maxTranslate() < -bounceAmount) {
    +                                newPosition = s.maxTranslate() - bounceAmount;
    +                            }
    +                            afterBouncePosition = s.maxTranslate();
    +                            doBounce = true;
    +                            allowMomentumBounce = true;
    +                        }
    +                        else {
    +                            newPosition = s.maxTranslate();
    +                        }
    +                    }
    +                    else if (newPosition > s.minTranslate()) {
    +                        if (s.params.freeModeMomentumBounce) {
    +                            if (newPosition - s.minTranslate() > bounceAmount) {
    +                                newPosition = s.minTranslate() + bounceAmount;
    +                            }
    +                            afterBouncePosition = s.minTranslate();
    +                            doBounce = true;
    +                            allowMomentumBounce = true;
    +                        }
    +                        else {
    +                            newPosition = s.minTranslate();
    +                        }
    +                    }
    +                    else if (s.params.freeModeSticky) {
    +                        var j = 0,
    +                            nextSlide;
    +                        for (j = 0; j < s.snapGrid.length; j += 1) {
    +                            if (s.snapGrid[j] > -newPosition) {
    +                                nextSlide = j;
    +                                break;
    +                            }
    +        
    +                        }
    +                        if (Math.abs(s.snapGrid[nextSlide] - newPosition) < Math.abs(s.snapGrid[nextSlide - 1] - newPosition) || s.swipeDirection === 'next') {
    +                            newPosition = s.snapGrid[nextSlide];
    +                        } else {
    +                            newPosition = s.snapGrid[nextSlide - 1];
    +                        }
    +                        if (!s.rtl) newPosition = - newPosition;
    +                    }
    +                    //Fix duration
    +                    if (s.velocity !== 0) {
    +                        if (s.rtl) {
    +                            momentumDuration = Math.abs((-newPosition - s.translate) / s.velocity);
    +                        }
    +                        else {
    +                            momentumDuration = Math.abs((newPosition - s.translate) / s.velocity);
    +                        }
    +                    }
    +                    else if (s.params.freeModeSticky) {
    +                        s.slideReset();
    +                        return;
    +                    }
    +        
    +                    if (s.params.freeModeMomentumBounce && doBounce) {
    +                        s.updateProgress(afterBouncePosition);
    +                        s.setWrapperTransition(momentumDuration);
    +                        s.setWrapperTranslate(newPosition);
    +                        s.onTransitionStart();
    +                        s.animating = true;
    +                        s.wrapper.transitionEnd(function () {
    +                            if (!s || !allowMomentumBounce) return;
    +                            s.emit('onMomentumBounce', s);
    +        
    +                            s.setWrapperTransition(s.params.speed);
    +                            s.setWrapperTranslate(afterBouncePosition);
    +                            s.wrapper.transitionEnd(function () {
    +                                if (!s) return;
    +                                s.onTransitionEnd();
    +                            });
    +                        });
    +                    } else if (s.velocity) {
    +                        s.updateProgress(newPosition);
    +                        s.setWrapperTransition(momentumDuration);
    +                        s.setWrapperTranslate(newPosition);
    +                        s.onTransitionStart();
    +                        if (!s.animating) {
    +                            s.animating = true;
    +                            s.wrapper.transitionEnd(function () {
    +                                if (!s) return;
    +                                s.onTransitionEnd();
    +                            });
    +                        }
    +        
    +                    } else {
    +                        s.updateProgress(newPosition);
    +                    }
    +        
    +                    s.updateActiveIndex();
    +                }
    +                if (!s.params.freeModeMomentum || timeDiff >= s.params.longSwipesMs) {
    +                    s.updateProgress();
    +                    s.updateActiveIndex();
    +                }
    +                return;
    +            }
    +        
    +            // Find current slide
    +            var i, stopIndex = 0, groupSize = s.slidesSizesGrid[0];
    +            for (i = 0; i < s.slidesGrid.length; i += s.params.slidesPerGroup) {
    +                if (typeof s.slidesGrid[i + s.params.slidesPerGroup] !== 'undefined') {
    +                    if (currentPos >= s.slidesGrid[i] && currentPos < s.slidesGrid[i + s.params.slidesPerGroup]) {
    +                        stopIndex = i;
    +                        groupSize = s.slidesGrid[i + s.params.slidesPerGroup] - s.slidesGrid[i];
    +                    }
    +                }
    +                else {
    +                    if (currentPos >= s.slidesGrid[i]) {
    +                        stopIndex = i;
    +                        groupSize = s.slidesGrid[s.slidesGrid.length - 1] - s.slidesGrid[s.slidesGrid.length - 2];
    +                    }
    +                }
    +            }
    +        
    +            // Find current slide size
    +            var ratio = (currentPos - s.slidesGrid[stopIndex]) / groupSize;
    +        
    +            if (timeDiff > s.params.longSwipesMs) {
    +                // Long touches
    +                if (!s.params.longSwipes) {
    +                    s.slideTo(s.activeIndex);
    +                    return;
    +                }
    +                if (s.swipeDirection === 'next') {
    +                    if (ratio >= s.params.longSwipesRatio) s.slideTo(stopIndex + s.params.slidesPerGroup);
    +                    else s.slideTo(stopIndex);
    +        
    +                }
    +                if (s.swipeDirection === 'prev') {
    +                    if (ratio > (1 - s.params.longSwipesRatio)) s.slideTo(stopIndex + s.params.slidesPerGroup);
    +                    else s.slideTo(stopIndex);
    +                }
    +            }
    +            else {
    +                // Short swipes
    +                if (!s.params.shortSwipes) {
    +                    s.slideTo(s.activeIndex);
    +                    return;
    +                }
    +                if (s.swipeDirection === 'next') {
    +                    s.slideTo(stopIndex + s.params.slidesPerGroup);
    +        
    +                }
    +                if (s.swipeDirection === 'prev') {
    +                    s.slideTo(stopIndex);
    +                }
    +            }
    +        };
    +        /*=========================
    +          Transitions
    +          ===========================*/
    +        s._slideTo = function (slideIndex, speed) {
    +            return s.slideTo(slideIndex, speed, true, true);
    +        };
    +        s.slideTo = function (slideIndex, speed, runCallbacks, internal) {
    +            if (typeof runCallbacks === 'undefined') runCallbacks = true;
    +            if (typeof slideIndex === 'undefined') slideIndex = 0;
    +            if (slideIndex < 0) slideIndex = 0;
    +            s.snapIndex = Math.floor(slideIndex / s.params.slidesPerGroup);
    +            if (s.snapIndex >= s.snapGrid.length) s.snapIndex = s.snapGrid.length - 1;
    +        
    +            var translate = - s.snapGrid[s.snapIndex];
    +            // Stop autoplay
    +            if (s.params.autoplay && s.autoplaying) {
    +                if (internal || !s.params.autoplayDisableOnInteraction) {
    +                    s.pauseAutoplay(speed);
    +                }
    +                else {
    +                    s.stopAutoplay();
    +                }
    +            }
    +            // Update progress
    +            s.updateProgress(translate);
    +        
    +            // Normalize slideIndex
    +            for (var i = 0; i < s.slidesGrid.length; i++) {
    +                if (- Math.floor(translate * 100) >= Math.floor(s.slidesGrid[i] * 100)) {
    +                    slideIndex = i;
    +                }
    +            }
    +        
    +            // Directions locks
    +            if (!s.params.allowSwipeToNext && translate < s.translate && translate < s.minTranslate()) {
    +                return false;
    +            }
    +            if (!s.params.allowSwipeToPrev && translate > s.translate && translate > s.maxTranslate()) {
    +                if ((s.activeIndex || 0) !== slideIndex ) return false;
    +            }
    +        
    +            // Update Index
    +            if (typeof speed === 'undefined') speed = s.params.speed;
    +            s.previousIndex = s.activeIndex || 0;
    +            s.activeIndex = slideIndex;
    +        
    +            if ((s.rtl && -translate === s.translate) || (!s.rtl && translate === s.translate)) {
    +                // Update Height
    +                if (s.params.autoHeight) {
    +                    s.updateAutoHeight();
    +                }
    +                s.updateClasses();
    +                if (s.params.effect !== 'slide') {
    +                    s.setWrapperTranslate(translate);
    +                }
    +                return false;
    +            }
    +            s.updateClasses();
    +            s.onTransitionStart(runCallbacks);
    +        
    +            if (speed === 0) {
    +                s.setWrapperTranslate(translate);
    +                s.setWrapperTransition(0);
    +                s.onTransitionEnd(runCallbacks);
    +            }
    +            else {
    +                s.setWrapperTranslate(translate);
    +                s.setWrapperTransition(speed);
    +                if (!s.animating) {
    +                    s.animating = true;
    +                    s.wrapper.transitionEnd(function () {
    +                        if (!s) return;
    +                        s.onTransitionEnd(runCallbacks);
    +                    });
    +                }
    +        
    +            }
    +        
    +            return true;
    +        };
    +        
    +        s.onTransitionStart = function (runCallbacks) {
    +            if (typeof runCallbacks === 'undefined') runCallbacks = true;
    +            if (s.params.autoHeight) {
    +                s.updateAutoHeight();
    +            }
    +            if (s.lazy) s.lazy.onTransitionStart();
    +            if (runCallbacks) {
    +                s.emit('onTransitionStart', s);
    +                if (s.activeIndex !== s.previousIndex) {
    +                    s.emit('onSlideChangeStart', s);
    +                    if (s.activeIndex > s.previousIndex) {
    +                        s.emit('onSlideNextStart', s);
    +                    }
    +                    else {
    +                        s.emit('onSlidePrevStart', s);
    +                    }
    +                }
    +        
    +            }
    +        };
    +        s.onTransitionEnd = function (runCallbacks) {
    +            s.animating = false;
    +            s.setWrapperTransition(0);
    +            if (typeof runCallbacks === 'undefined') runCallbacks = true;
    +            if (s.lazy) s.lazy.onTransitionEnd();
    +            if (runCallbacks) {
    +                s.emit('onTransitionEnd', s);
    +                if (s.activeIndex !== s.previousIndex) {
    +                    s.emit('onSlideChangeEnd', s);
    +                    if (s.activeIndex > s.previousIndex) {
    +                        s.emit('onSlideNextEnd', s);
    +                    }
    +                    else {
    +                        s.emit('onSlidePrevEnd', s);
    +                    }
    +                }
    +            }
    +            if (s.params.hashnav && s.hashnav) {
    +                s.hashnav.setHash();
    +            }
    +        
    +        };
    +        s.slideNext = function (runCallbacks, speed, internal) {
    +            if (s.params.loop) {
    +                if (s.animating) return false;
    +                s.fixLoop();
    +                var clientLeft = s.container[0].clientLeft;
    +                return s.slideTo(s.activeIndex + s.params.slidesPerGroup, speed, runCallbacks, internal);
    +            }
    +            else return s.slideTo(s.activeIndex + s.params.slidesPerGroup, speed, runCallbacks, internal);
    +        };
    +        s._slideNext = function (speed) {
    +            return s.slideNext(true, speed, true);
    +        };
    +        s.slidePrev = function (runCallbacks, speed, internal) {
    +            if (s.params.loop) {
    +                if (s.animating) return false;
    +                s.fixLoop();
    +                var clientLeft = s.container[0].clientLeft;
    +                return s.slideTo(s.activeIndex - 1, speed, runCallbacks, internal);
    +            }
    +            else return s.slideTo(s.activeIndex - 1, speed, runCallbacks, internal);
    +        };
    +        s._slidePrev = function (speed) {
    +            return s.slidePrev(true, speed, true);
    +        };
    +        s.slideReset = function (runCallbacks, speed, internal) {
    +            return s.slideTo(s.activeIndex, speed, runCallbacks);
    +        };
    +        
    +        /*=========================
    +          Translate/transition helpers
    +          ===========================*/
    +        s.setWrapperTransition = function (duration, byController) {
    +            s.wrapper.transition(duration);
    +            if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {
    +                s.effects[s.params.effect].setTransition(duration);
    +            }
    +            if (s.params.parallax && s.parallax) {
    +                s.parallax.setTransition(duration);
    +            }
    +            if (s.params.scrollbar && s.scrollbar) {
    +                s.scrollbar.setTransition(duration);
    +            }
    +            if (s.params.control && s.controller) {
    +                s.controller.setTransition(duration, byController);
    +            }
    +            s.emit('onSetTransition', s, duration);
    +        };
    +        s.setWrapperTranslate = function (translate, updateActiveIndex, byController) {
    +            var x = 0, y = 0, z = 0;
    +            if (s.isHorizontal()) {
    +                x = s.rtl ? -translate : translate;
    +            }
    +            else {
    +                y = translate;
    +            }
    +        
    +            if (s.params.roundLengths) {
    +                x = round(x);
    +                y = round(y);
    +            }
    +        
    +            if (!s.params.virtualTranslate) {
    +                if (s.support.transforms3d) s.wrapper.transform('translate3d(' + x + 'px, ' + y + 'px, ' + z + 'px)');
    +                else s.wrapper.transform('translate(' + x + 'px, ' + y + 'px)');
    +            }
    +        
    +            s.translate = s.isHorizontal() ? x : y;
    +        
    +            // Check if we need to update progress
    +            var progress;
    +            var translatesDiff = s.maxTranslate() - s.minTranslate();
    +            if (translatesDiff === 0) {
    +                progress = 0;
    +            }
    +            else {
    +                progress = (translate - s.minTranslate()) / (translatesDiff);
    +            }
    +            if (progress !== s.progress) {
    +                s.updateProgress(translate);
    +            }
    +        
    +            if (updateActiveIndex) s.updateActiveIndex();
    +            if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {
    +                s.effects[s.params.effect].setTranslate(s.translate);
    +            }
    +            if (s.params.parallax && s.parallax) {
    +                s.parallax.setTranslate(s.translate);
    +            }
    +            if (s.params.scrollbar && s.scrollbar) {
    +                s.scrollbar.setTranslate(s.translate);
    +            }
    +            if (s.params.control && s.controller) {
    +                s.controller.setTranslate(s.translate, byController);
    +            }
    +            s.emit('onSetTranslate', s, s.translate);
    +        };
    +        
    +        s.getTranslate = function (el, axis) {
    +            var matrix, curTransform, curStyle, transformMatrix;
    +        
    +            // automatic axis detection
    +            if (typeof axis === 'undefined') {
    +                axis = 'x';
    +            }
    +        
    +            if (s.params.virtualTranslate) {
    +                return s.rtl ? -s.translate : s.translate;
    +            }
    +        
    +            curStyle = window.getComputedStyle(el, null);
    +            if (window.WebKitCSSMatrix) {
    +                curTransform = curStyle.transform || curStyle.webkitTransform;
    +                if (curTransform.split(',').length > 6) {
    +                    curTransform = curTransform.split(', ').map(function(a){
    +                        return a.replace(',','.');
    +                    }).join(', ');
    +                }
    +                // Some old versions of Webkit choke when 'none' is passed; pass
    +                // empty string instead in this case
    +                transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
    +            }
    +            else {
    +                transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform  || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
    +                matrix = transformMatrix.toString().split(',');
    +            }
    +        
    +            if (axis === 'x') {
    +                //Latest Chrome and webkits Fix
    +                if (window.WebKitCSSMatrix)
    +                    curTransform = transformMatrix.m41;
    +                //Crazy IE10 Matrix
    +                else if (matrix.length === 16)
    +                    curTransform = parseFloat(matrix[12]);
    +                //Normal Browsers
    +                else
    +                    curTransform = parseFloat(matrix[4]);
    +            }
    +            if (axis === 'y') {
    +                //Latest Chrome and webkits Fix
    +                if (window.WebKitCSSMatrix)
    +                    curTransform = transformMatrix.m42;
    +                //Crazy IE10 Matrix
    +                else if (matrix.length === 16)
    +                    curTransform = parseFloat(matrix[13]);
    +                //Normal Browsers
    +                else
    +                    curTransform = parseFloat(matrix[5]);
    +            }
    +            if (s.rtl && curTransform) curTransform = -curTransform;
    +            return curTransform || 0;
    +        };
    +        s.getWrapperTranslate = function (axis) {
    +            if (typeof axis === 'undefined') {
    +                axis = s.isHorizontal() ? 'x' : 'y';
    +            }
    +            return s.getTranslate(s.wrapper[0], axis);
    +        };
    +        
    +        /*=========================
    +          Observer
    +          ===========================*/
    +        s.observers = [];
    +        function initObserver(target, options) {
    +            options = options || {};
    +            // create an observer instance
    +            var ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
    +            var observer = new ObserverFunc(function (mutations) {
    +                mutations.forEach(function (mutation) {
    +                    s.onResize(true);
    +                    s.emit('onObserverUpdate', s, mutation);
    +                });
    +            });
    +        
    +            observer.observe(target, {
    +                attributes: typeof options.attributes === 'undefined' ? true : options.attributes,
    +                childList: typeof options.childList === 'undefined' ? true : options.childList,
    +                characterData: typeof options.characterData === 'undefined' ? true : options.characterData
    +            });
    +        
    +            s.observers.push(observer);
    +        }
    +        s.initObservers = function () {
    +            if (s.params.observeParents) {
    +                var containerParents = s.container.parents();
    +                for (var i = 0; i < containerParents.length; i++) {
    +                    initObserver(containerParents[i]);
    +                }
    +            }
    +        
    +            // Observe container
    +            initObserver(s.container[0], {childList: false});
    +        
    +            // Observe wrapper
    +            initObserver(s.wrapper[0], {attributes: false});
    +        };
    +        s.disconnectObservers = function () {
    +            for (var i = 0; i < s.observers.length; i++) {
    +                s.observers[i].disconnect();
    +            }
    +            s.observers = [];
    +        };
    +        /*=========================
    +          Loop
    +          ===========================*/
    +        // Create looped slides
    +        s.createLoop = function () {
    +            // Remove duplicated slides
    +            s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass).remove();
    +        
    +            var slides = s.wrapper.children('.' + s.params.slideClass);
    +        
    +            if(s.params.slidesPerView === 'auto' && !s.params.loopedSlides) s.params.loopedSlides = slides.length;
    +        
    +            s.loopedSlides = parseInt(s.params.loopedSlides || s.params.slidesPerView, 10);
    +            s.loopedSlides = s.loopedSlides + s.params.loopAdditionalSlides;
    +            if (s.loopedSlides > slides.length) {
    +                s.loopedSlides = slides.length;
    +            }
    +        
    +            var prependSlides = [], appendSlides = [], i;
    +            slides.each(function (index, el) {
    +                var slide = $(this);
    +                if (index < s.loopedSlides) appendSlides.push(el);
    +                if (index < slides.length && index >= slides.length - s.loopedSlides) prependSlides.push(el);
    +                slide.attr('data-swiper-slide-index', index);
    +            });
    +            for (i = 0; i < appendSlides.length; i++) {
    +                s.wrapper.append($(appendSlides[i].cloneNode(true)).addClass(s.params.slideDuplicateClass));
    +            }
    +            for (i = prependSlides.length - 1; i >= 0; i--) {
    +                s.wrapper.prepend($(prependSlides[i].cloneNode(true)).addClass(s.params.slideDuplicateClass));
    +            }
    +        };
    +        s.destroyLoop = function () {
    +            s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass).remove();
    +            s.slides.removeAttr('data-swiper-slide-index');
    +        };
    +        s.reLoop = function (updatePosition) {
    +            var oldIndex = s.activeIndex - s.loopedSlides;
    +            s.destroyLoop();
    +            s.createLoop();
    +            s.updateSlidesSize();
    +            if (updatePosition) {
    +                s.slideTo(oldIndex + s.loopedSlides, 0, false);
    +            }
    +        
    +        };
    +        s.fixLoop = function () {
    +            var newIndex;
    +            //Fix For Negative Oversliding
    +            if (s.activeIndex < s.loopedSlides) {
    +                newIndex = s.slides.length - s.loopedSlides * 3 + s.activeIndex;
    +                newIndex = newIndex + s.loopedSlides;
    +                s.slideTo(newIndex, 0, false, true);
    +            }
    +            //Fix For Positive Oversliding
    +            else if ((s.params.slidesPerView === 'auto' && s.activeIndex >= s.loopedSlides * 2) || (s.activeIndex > s.slides.length - s.params.slidesPerView * 2)) {
    +                newIndex = -s.slides.length + s.activeIndex + s.loopedSlides;
    +                newIndex = newIndex + s.loopedSlides;
    +                s.slideTo(newIndex, 0, false, true);
    +            }
    +        };
    +        /*=========================
    +          Append/Prepend/Remove Slides
    +          ===========================*/
    +        s.appendSlide = function (slides) {
    +            if (s.params.loop) {
    +                s.destroyLoop();
    +            }
    +            if (typeof slides === 'object' && slides.length) {
    +                for (var i = 0; i < slides.length; i++) {
    +                    if (slides[i]) s.wrapper.append(slides[i]);
    +                }
    +            }
    +            else {
    +                s.wrapper.append(slides);
    +            }
    +            if (s.params.loop) {
    +                s.createLoop();
    +            }
    +            if (!(s.params.observer && s.support.observer)) {
    +                s.update(true);
    +            }
    +        };
    +        s.prependSlide = function (slides) {
    +            if (s.params.loop) {
    +                s.destroyLoop();
    +            }
    +            var newActiveIndex = s.activeIndex + 1;
    +            if (typeof slides === 'object' && slides.length) {
    +                for (var i = 0; i < slides.length; i++) {
    +                    if (slides[i]) s.wrapper.prepend(slides[i]);
    +                }
    +                newActiveIndex = s.activeIndex + slides.length;
    +            }
    +            else {
    +                s.wrapper.prepend(slides);
    +            }
    +            if (s.params.loop) {
    +                s.createLoop();
    +            }
    +            if (!(s.params.observer && s.support.observer)) {
    +                s.update(true);
    +            }
    +            s.slideTo(newActiveIndex, 0, false);
    +        };
    +        s.removeSlide = function (slidesIndexes) {
    +            if (s.params.loop) {
    +                s.destroyLoop();
    +                s.slides = s.wrapper.children('.' + s.params.slideClass);
    +            }
    +            var newActiveIndex = s.activeIndex,
    +                indexToRemove;
    +            if (typeof slidesIndexes === 'object' && slidesIndexes.length) {
    +                for (var i = 0; i < slidesIndexes.length; i++) {
    +                    indexToRemove = slidesIndexes[i];
    +                    if (s.slides[indexToRemove]) s.slides.eq(indexToRemove).remove();
    +                    if (indexToRemove < newActiveIndex) newActiveIndex--;
    +                }
    +                newActiveIndex = Math.max(newActiveIndex, 0);
    +            }
    +            else {
    +                indexToRemove = slidesIndexes;
    +                if (s.slides[indexToRemove]) s.slides.eq(indexToRemove).remove();
    +                if (indexToRemove < newActiveIndex) newActiveIndex--;
    +                newActiveIndex = Math.max(newActiveIndex, 0);
    +            }
    +        
    +            if (s.params.loop) {
    +                s.createLoop();
    +            }
    +        
    +            if (!(s.params.observer && s.support.observer)) {
    +                s.update(true);
    +            }
    +            if (s.params.loop) {
    +                s.slideTo(newActiveIndex + s.loopedSlides, 0, false);
    +            }
    +            else {
    +                s.slideTo(newActiveIndex, 0, false);
    +            }
    +        
    +        };
    +        s.removeAllSlides = function () {
    +            var slidesIndexes = [];
    +            for (var i = 0; i < s.slides.length; i++) {
    +                slidesIndexes.push(i);
    +            }
    +            s.removeSlide(slidesIndexes);
    +        };
    +        
    +
    +        /*=========================
    +          Effects
    +          ===========================*/
    +        s.effects = {
    +            fade: {
    +                setTranslate: function () {
    +                    for (var i = 0; i < s.slides.length; i++) {
    +                        var slide = s.slides.eq(i);
    +                        var offset = slide[0].swiperSlideOffset;
    +                        var tx = -offset;
    +                        if (!s.params.virtualTranslate) tx = tx - s.translate;
    +                        var ty = 0;
    +                        if (!s.isHorizontal()) {
    +                            ty = tx;
    +                            tx = 0;
    +                        }
    +                        var slideOpacity = s.params.fade.crossFade ?
    +                                Math.max(1 - Math.abs(slide[0].progress), 0) :
    +                                1 + Math.min(Math.max(slide[0].progress, -1), 0);
    +                        slide
    +                            .css({
    +                                opacity: slideOpacity
    +                            })
    +                            .transform('translate3d(' + tx + 'px, ' + ty + 'px, 0px)');
    +        
    +                    }
    +        
    +                },
    +                setTransition: function (duration) {
    +                    s.slides.transition(duration);
    +                    if (s.params.virtualTranslate && duration !== 0) {
    +                        var eventTriggered = false;
    +                        s.slides.transitionEnd(function () {
    +                            if (eventTriggered) return;
    +                            if (!s) return;
    +                            eventTriggered = true;
    +                            s.animating = false;
    +                            var triggerEvents = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'];
    +                            for (var i = 0; i < triggerEvents.length; i++) {
    +                                s.wrapper.trigger(triggerEvents[i]);
    +                            }
    +                        });
    +                    }
    +                }
    +            },
    +            flip: {
    +                setTranslate: function () {
    +                    for (var i = 0; i < s.slides.length; i++) {
    +                        var slide = s.slides.eq(i);
    +                        var progress = slide[0].progress;
    +                        if (s.params.flip.limitRotation) {
    +                            progress = Math.max(Math.min(slide[0].progress, 1), -1);
    +                        }
    +                        var offset = slide[0].swiperSlideOffset;
    +                        var rotate = -180 * progress,
    +                            rotateY = rotate,
    +                            rotateX = 0,
    +                            tx = -offset,
    +                            ty = 0;
    +                        if (!s.isHorizontal()) {
    +                            ty = tx;
    +                            tx = 0;
    +                            rotateX = -rotateY;
    +                            rotateY = 0;
    +                        }
    +                        else if (s.rtl) {
    +                            rotateY = -rotateY;
    +                        }
    +        
    +                        slide[0].style.zIndex = -Math.abs(Math.round(progress)) + s.slides.length;
    +        
    +                        if (s.params.flip.slideShadows) {
    +                            //Set shadows
    +                            var shadowBefore = s.isHorizontal() ? slide.find('.swiper-slide-shadow-left') : slide.find('.swiper-slide-shadow-top');
    +                            var shadowAfter = s.isHorizontal() ? slide.find('.swiper-slide-shadow-right') : slide.find('.swiper-slide-shadow-bottom');
    +                            if (shadowBefore.length === 0) {
    +                                shadowBefore = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'left' : 'top') + '"></div>');
    +                                slide.append(shadowBefore);
    +                            }
    +                            if (shadowAfter.length === 0) {
    +                                shadowAfter = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'right' : 'bottom') + '"></div>');
    +                                slide.append(shadowAfter);
    +                            }
    +                            if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);
    +                            if (shadowAfter.length) shadowAfter[0].style.opacity = Math.max(progress, 0);
    +                        }
    +        
    +                        slide
    +                            .transform('translate3d(' + tx + 'px, ' + ty + 'px, 0px) rotateX(' + rotateX + 'deg) rotateY(' + rotateY + 'deg)');
    +                    }
    +                },
    +                setTransition: function (duration) {
    +                    s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
    +                    if (s.params.virtualTranslate && duration !== 0) {
    +                        var eventTriggered = false;
    +                        s.slides.eq(s.activeIndex).transitionEnd(function () {
    +                            if (eventTriggered) return;
    +                            if (!s) return;
    +                            if (!$(this).hasClass(s.params.slideActiveClass)) return;
    +                            eventTriggered = true;
    +                            s.animating = false;
    +                            var triggerEvents = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'];
    +                            for (var i = 0; i < triggerEvents.length; i++) {
    +                                s.wrapper.trigger(triggerEvents[i]);
    +                            }
    +                        });
    +                    }
    +                }
    +            },
    +            cube: {
    +                setTranslate: function () {
    +                    var wrapperRotate = 0, cubeShadow;
    +                    if (s.params.cube.shadow) {
    +                        if (s.isHorizontal()) {
    +                            cubeShadow = s.wrapper.find('.swiper-cube-shadow');
    +                            if (cubeShadow.length === 0) {
    +                                cubeShadow = $('<div class="swiper-cube-shadow"></div>');
    +                                s.wrapper.append(cubeShadow);
    +                            }
    +                            cubeShadow.css({height: s.width + 'px'});
    +                        }
    +                        else {
    +                            cubeShadow = s.container.find('.swiper-cube-shadow');
    +                            if (cubeShadow.length === 0) {
    +                                cubeShadow = $('<div class="swiper-cube-shadow"></div>');
    +                                s.container.append(cubeShadow);
    +                            }
    +                        }
    +                    }
    +                    for (var i = 0; i < s.slides.length; i++) {
    +                        var slide = s.slides.eq(i);
    +                        var slideAngle = i * 90;
    +                        var round = Math.floor(slideAngle / 360);
    +                        if (s.rtl) {
    +                            slideAngle = -slideAngle;
    +                            round = Math.floor(-slideAngle / 360);
    +                        }
    +                        var progress = Math.max(Math.min(slide[0].progress, 1), -1);
    +                        var tx = 0, ty = 0, tz = 0;
    +                        if (i % 4 === 0) {
    +                            tx = - round * 4 * s.size;
    +                            tz = 0;
    +                        }
    +                        else if ((i - 1) % 4 === 0) {
    +                            tx = 0;
    +                            tz = - round * 4 * s.size;
    +                        }
    +                        else if ((i - 2) % 4 === 0) {
    +                            tx = s.size + round * 4 * s.size;
    +                            tz = s.size;
    +                        }
    +                        else if ((i - 3) % 4 === 0) {
    +                            tx = - s.size;
    +                            tz = 3 * s.size + s.size * 4 * round;
    +                        }
    +                        if (s.rtl) {
    +                            tx = -tx;
    +                        }
    +        
    +                        if (!s.isHorizontal()) {
    +                            ty = tx;
    +                            tx = 0;
    +                        }
    +        
    +                        var transform = 'rotateX(' + (s.isHorizontal() ? 0 : -slideAngle) + 'deg) rotateY(' + (s.isHorizontal() ? slideAngle : 0) + 'deg) translate3d(' + tx + 'px, ' + ty + 'px, ' + tz + 'px)';
    +                        if (progress <= 1 && progress > -1) {
    +                            wrapperRotate = i * 90 + progress * 90;
    +                            if (s.rtl) wrapperRotate = -i * 90 - progress * 90;
    +                        }
    +                        slide.transform(transform);
    +                        if (s.params.cube.slideShadows) {
    +                            //Set shadows
    +                            var shadowBefore = s.isHorizontal() ? slide.find('.swiper-slide-shadow-left') : slide.find('.swiper-slide-shadow-top');
    +                            var shadowAfter = s.isHorizontal() ? slide.find('.swiper-slide-shadow-right') : slide.find('.swiper-slide-shadow-bottom');
    +                            if (shadowBefore.length === 0) {
    +                                shadowBefore = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'left' : 'top') + '"></div>');
    +                                slide.append(shadowBefore);
    +                            }
    +                            if (shadowAfter.length === 0) {
    +                                shadowAfter = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'right' : 'bottom') + '"></div>');
    +                                slide.append(shadowAfter);
    +                            }
    +                            if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);
    +                            if (shadowAfter.length) shadowAfter[0].style.opacity = Math.max(progress, 0);
    +                        }
    +                    }
    +                    s.wrapper.css({
    +                        '-webkit-transform-origin': '50% 50% -' + (s.size / 2) + 'px',
    +                        '-moz-transform-origin': '50% 50% -' + (s.size / 2) + 'px',
    +                        '-ms-transform-origin': '50% 50% -' + (s.size / 2) + 'px',
    +                        'transform-origin': '50% 50% -' + (s.size / 2) + 'px'
    +                    });
    +        
    +                    if (s.params.cube.shadow) {
    +                        if (s.isHorizontal()) {
    +                            cubeShadow.transform('translate3d(0px, ' + (s.width / 2 + s.params.cube.shadowOffset) + 'px, ' + (-s.width / 2) + 'px) rotateX(90deg) rotateZ(0deg) scale(' + (s.params.cube.shadowScale) + ')');
    +                        }
    +                        else {
    +                            var shadowAngle = Math.abs(wrapperRotate) - Math.floor(Math.abs(wrapperRotate) / 90) * 90;
    +                            var multiplier = 1.5 - (Math.sin(shadowAngle * 2 * Math.PI / 360) / 2 + Math.cos(shadowAngle * 2 * Math.PI / 360) / 2);
    +                            var scale1 = s.params.cube.shadowScale,
    +                                scale2 = s.params.cube.shadowScale / multiplier,
    +                                offset = s.params.cube.shadowOffset;
    +                            cubeShadow.transform('scale3d(' + scale1 + ', 1, ' + scale2 + ') translate3d(0px, ' + (s.height / 2 + offset) + 'px, ' + (-s.height / 2 / scale2) + 'px) rotateX(-90deg)');
    +                        }
    +                    }
    +                    var zFactor = (s.isSafari || s.isUiWebView) ? (-s.size / 2) : 0;
    +                    s.wrapper.transform('translate3d(0px,0,' + zFactor + 'px) rotateX(' + (s.isHorizontal() ? 0 : wrapperRotate) + 'deg) rotateY(' + (s.isHorizontal() ? -wrapperRotate : 0) + 'deg)');
    +                },
    +                setTransition: function (duration) {
    +                    s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
    +                    if (s.params.cube.shadow && !s.isHorizontal()) {
    +                        s.container.find('.swiper-cube-shadow').transition(duration);
    +                    }
    +                }
    +            },
    +            coverflow: {
    +                setTranslate: function () {
    +                    var transform = s.translate;
    +                    var center = s.isHorizontal() ? -transform + s.width / 2 : -transform + s.height / 2;
    +                    var rotate = s.isHorizontal() ? s.params.coverflow.rotate: -s.params.coverflow.rotate;
    +                    var translate = s.params.coverflow.depth;
    +                    //Each slide offset from center
    +                    for (var i = 0, length = s.slides.length; i < length; i++) {
    +                        var slide = s.slides.eq(i);
    +                        var slideSize = s.slidesSizesGrid[i];
    +                        var slideOffset = slide[0].swiperSlideOffset;
    +                        var offsetMultiplier = (center - slideOffset - slideSize / 2) / slideSize * s.params.coverflow.modifier;
    +        
    +                        var rotateY = s.isHorizontal() ? rotate * offsetMultiplier : 0;
    +                        var rotateX = s.isHorizontal() ? 0 : rotate * offsetMultiplier;
    +                        // var rotateZ = 0
    +                        var translateZ = -translate * Math.abs(offsetMultiplier);
    +        
    +                        var translateY = s.isHorizontal() ? 0 : s.params.coverflow.stretch * (offsetMultiplier);
    +                        var translateX = s.isHorizontal() ? s.params.coverflow.stretch * (offsetMultiplier) : 0;
    +        
    +                        //Fix for ultra small values
    +                        if (Math.abs(translateX) < 0.001) translateX = 0;
    +                        if (Math.abs(translateY) < 0.001) translateY = 0;
    +                        if (Math.abs(translateZ) < 0.001) translateZ = 0;
    +                        if (Math.abs(rotateY) < 0.001) rotateY = 0;
    +                        if (Math.abs(rotateX) < 0.001) rotateX = 0;
    +        
    +                        var slideTransform = 'translate3d(' + translateX + 'px,' + translateY + 'px,' + translateZ + 'px)  rotateX(' + rotateX + 'deg) rotateY(' + rotateY + 'deg)';
    +        
    +                        slide.transform(slideTransform);
    +                        slide[0].style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;
    +                        if (s.params.coverflow.slideShadows) {
    +                            //Set shadows
    +                            var shadowBefore = s.isHorizontal() ? slide.find('.swiper-slide-shadow-left') : slide.find('.swiper-slide-shadow-top');
    +                            var shadowAfter = s.isHorizontal() ? slide.find('.swiper-slide-shadow-right') : slide.find('.swiper-slide-shadow-bottom');
    +                            if (shadowBefore.length === 0) {
    +                                shadowBefore = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'left' : 'top') + '"></div>');
    +                                slide.append(shadowBefore);
    +                            }
    +                            if (shadowAfter.length === 0) {
    +                                shadowAfter = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'right' : 'bottom') + '"></div>');
    +                                slide.append(shadowAfter);
    +                            }
    +                            if (shadowBefore.length) shadowBefore[0].style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0;
    +                            if (shadowAfter.length) shadowAfter[0].style.opacity = (-offsetMultiplier) > 0 ? -offsetMultiplier : 0;
    +                        }
    +                    }
    +        
    +                    //Set correct perspective for IE10
    +                    if (s.browser.ie) {
    +                        var ws = s.wrapper[0].style;
    +                        ws.perspectiveOrigin = center + 'px 50%';
    +                    }
    +                },
    +                setTransition: function (duration) {
    +                    s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
    +                }
    +            }
    +        };
    +
    +        /*=========================
    +          Images Lazy Loading
    +          ===========================*/
    +        s.lazy = {
    +            initialImageLoaded: false,
    +            loadImageInSlide: function (index, loadInDuplicate) {
    +                if (typeof index === 'undefined') return;
    +                if (typeof loadInDuplicate === 'undefined') loadInDuplicate = true;
    +                if (s.slides.length === 0) return;
    +        
    +                var slide = s.slides.eq(index);
    +                var img = slide.find('.swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)');
    +                if (slide.hasClass('swiper-lazy') && !slide.hasClass('swiper-lazy-loaded') && !slide.hasClass('swiper-lazy-loading')) {
    +                    img = img.add(slide[0]);
    +                }
    +                if (img.length === 0) return;
    +        
    +                img.each(function () {
    +                    var _img = $(this);
    +                    _img.addClass('swiper-lazy-loading');
    +                    var background = _img.attr('data-background');
    +                    var src = _img.attr('data-src'),
    +                        srcset = _img.attr('data-srcset');
    +                    s.loadImage(_img[0], (src || background), srcset, false, function () {
    +                        if (background) {
    +                            _img.css('background-image', 'url("' + background + '")');
    +                            _img.removeAttr('data-background');
    +                        }
    +                        else {
    +                            if (srcset) {
    +                                _img.attr('srcset', srcset);
    +                                _img.removeAttr('data-srcset');
    +                            }
    +                            if (src) {
    +                                _img.attr('src', src);
    +                                _img.removeAttr('data-src');
    +                            }
    +        
    +                        }
    +        
    +                        _img.addClass('swiper-lazy-loaded').removeClass('swiper-lazy-loading');
    +                        slide.find('.swiper-lazy-preloader, .preloader').remove();
    +                        if (s.params.loop && loadInDuplicate) {
    +                            var slideOriginalIndex = slide.attr('data-swiper-slide-index');
    +                            if (slide.hasClass(s.params.slideDuplicateClass)) {
    +                                var originalSlide = s.wrapper.children('[data-swiper-slide-index="' + slideOriginalIndex + '"]:not(.' + s.params.slideDuplicateClass + ')');
    +                                s.lazy.loadImageInSlide(originalSlide.index(), false);
    +                            }
    +                            else {
    +                                var duplicatedSlide = s.wrapper.children('.' + s.params.slideDuplicateClass + '[data-swiper-slide-index="' + slideOriginalIndex + '"]');
    +                                s.lazy.loadImageInSlide(duplicatedSlide.index(), false);
    +                            }
    +                        }
    +                        s.emit('onLazyImageReady', s, slide[0], _img[0]);
    +                    });
    +        
    +                    s.emit('onLazyImageLoad', s, slide[0], _img[0]);
    +                });
    +        
    +            },
    +            load: function () {
    +                var i;
    +                if (s.params.watchSlidesVisibility) {
    +                    s.wrapper.children('.' + s.params.slideVisibleClass).each(function () {
    +                        s.lazy.loadImageInSlide($(this).index());
    +                    });
    +                }
    +                else {
    +                    if (s.params.slidesPerView > 1) {
    +                        for (i = s.activeIndex; i < s.activeIndex + s.params.slidesPerView ; i++) {
    +                            if (s.slides[i]) s.lazy.loadImageInSlide(i);
    +                        }
    +                    }
    +                    else {
    +                        s.lazy.loadImageInSlide(s.activeIndex);
    +                    }
    +                }
    +                if (s.params.lazyLoadingInPrevNext) {
    +                    if (s.params.slidesPerView > 1 || (s.params.lazyLoadingInPrevNextAmount && s.params.lazyLoadingInPrevNextAmount > 1)) {
    +                        var amount = s.params.lazyLoadingInPrevNextAmount;
    +                        var spv = s.params.slidesPerView;
    +                        var maxIndex = Math.min(s.activeIndex + spv + Math.max(amount, spv), s.slides.length);
    +                        var minIndex = Math.max(s.activeIndex - Math.max(spv, amount), 0);
    +                        // Next Slides
    +                        for (i = s.activeIndex + s.params.slidesPerView; i < maxIndex; i++) {
    +                            if (s.slides[i]) s.lazy.loadImageInSlide(i);
    +                        }
    +                        // Prev Slides
    +                        for (i = minIndex; i < s.activeIndex ; i++) {
    +                            if (s.slides[i]) s.lazy.loadImageInSlide(i);
    +                        }
    +                    }
    +                    else {
    +                        var nextSlide = s.wrapper.children('.' + s.params.slideNextClass);
    +                        if (nextSlide.length > 0) s.lazy.loadImageInSlide(nextSlide.index());
    +        
    +                        var prevSlide = s.wrapper.children('.' + s.params.slidePrevClass);
    +                        if (prevSlide.length > 0) s.lazy.loadImageInSlide(prevSlide.index());
    +                    }
    +                }
    +            },
    +            onTransitionStart: function () {
    +                if (s.params.lazyLoading) {
    +                    if (s.params.lazyLoadingOnTransitionStart || (!s.params.lazyLoadingOnTransitionStart && !s.lazy.initialImageLoaded)) {
    +                        s.lazy.load();
    +                    }
    +                }
    +            },
    +            onTransitionEnd: function () {
    +                if (s.params.lazyLoading && !s.params.lazyLoadingOnTransitionStart) {
    +                    s.lazy.load();
    +                }
    +            }
    +        };
    +        
    +
    +        /*=========================
    +          Scrollbar
    +          ===========================*/
    +        s.scrollbar = {
    +            isTouched: false,
    +            setDragPosition: function (e) {
    +                var sb = s.scrollbar;
    +                var x = 0, y = 0;
    +                var translate;
    +                var pointerPosition = s.isHorizontal() ?
    +                    ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageX : e.pageX || e.clientX) :
    +                    ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageY : e.pageY || e.clientY) ;
    +                var position = (pointerPosition) - sb.track.offset()[s.isHorizontal() ? 'left' : 'top'] - sb.dragSize / 2;
    +                var positionMin = -s.minTranslate() * sb.moveDivider;
    +                var positionMax = -s.maxTranslate() * sb.moveDivider;
    +                if (position < positionMin) {
    +                    position = positionMin;
    +                }
    +                else if (position > positionMax) {
    +                    position = positionMax;
    +                }
    +                position = -position / sb.moveDivider;
    +                s.updateProgress(position);
    +                s.setWrapperTranslate(position, true);
    +            },
    +            dragStart: function (e) {
    +                var sb = s.scrollbar;
    +                sb.isTouched = true;
    +                e.preventDefault();
    +                e.stopPropagation();
    +        
    +                sb.setDragPosition(e);
    +                clearTimeout(sb.dragTimeout);
    +        
    +                sb.track.transition(0);
    +                if (s.params.scrollbarHide) {
    +                    sb.track.css('opacity', 1);
    +                }
    +                s.wrapper.transition(100);
    +                sb.drag.transition(100);
    +                s.emit('onScrollbarDragStart', s);
    +            },
    +            dragMove: function (e) {
    +                var sb = s.scrollbar;
    +                if (!sb.isTouched) return;
    +                if (e.preventDefault) e.preventDefault();
    +                else e.returnValue = false;
    +                sb.setDragPosition(e);
    +                s.wrapper.transition(0);
    +                sb.track.transition(0);
    +                sb.drag.transition(0);
    +                s.emit('onScrollbarDragMove', s);
    +            },
    +            dragEnd: function (e) {
    +                var sb = s.scrollbar;
    +                if (!sb.isTouched) return;
    +                sb.isTouched = false;
    +                if (s.params.scrollbarHide) {
    +                    clearTimeout(sb.dragTimeout);
    +                    sb.dragTimeout = setTimeout(function () {
    +                        sb.track.css('opacity', 0);
    +                        sb.track.transition(400);
    +                    }, 1000);
    +        
    +                }
    +                s.emit('onScrollbarDragEnd', s);
    +                if (s.params.scrollbarSnapOnRelease) {
    +                    s.slideReset();
    +                }
    +            },
    +            enableDraggable: function () {
    +                var sb = s.scrollbar;
    +                var target = s.support.touch ? sb.track : document;
    +                $(sb.track).on(s.touchEvents.start, sb.dragStart);
    +                $(target).on(s.touchEvents.move, sb.dragMove);
    +                $(target).on(s.touchEvents.end, sb.dragEnd);
    +            },
    +            disableDraggable: function () {
    +                var sb = s.scrollbar;
    +                var target = s.support.touch ? sb.track : document;
    +                $(sb.track).off(s.touchEvents.start, sb.dragStart);
    +                $(target).off(s.touchEvents.move, sb.dragMove);
    +                $(target).off(s.touchEvents.end, sb.dragEnd);
    +            },
    +            set: function () {
    +                if (!s.params.scrollbar) return;
    +                var sb = s.scrollbar;
    +                sb.track = $(s.params.scrollbar);
    +                if (s.params.uniqueNavElements && typeof s.params.scrollbar === 'string' && sb.track.length > 1 && s.container.find(s.params.scrollbar).length === 1) {
    +                    sb.track = s.container.find(s.params.scrollbar);
    +                }
    +                sb.drag = sb.track.find('.swiper-scrollbar-drag');
    +                if (sb.drag.length === 0) {
    +                    sb.drag = $('<div class="swiper-scrollbar-drag"></div>');
    +                    sb.track.append(sb.drag);
    +                }
    +                sb.drag[0].style.width = '';
    +                sb.drag[0].style.height = '';
    +                sb.trackSize = s.isHorizontal() ? sb.track[0].offsetWidth : sb.track[0].offsetHeight;
    +        
    +                sb.divider = s.size / s.virtualSize;
    +                sb.moveDivider = sb.divider * (sb.trackSize / s.size);
    +                sb.dragSize = sb.trackSize * sb.divider;
    +        
    +                if (s.isHorizontal()) {
    +                    sb.drag[0].style.width = sb.dragSize + 'px';
    +                }
    +                else {
    +                    sb.drag[0].style.height = sb.dragSize + 'px';
    +                }
    +        
    +                if (sb.divider >= 1) {
    +                    sb.track[0].style.display = 'none';
    +                }
    +                else {
    +                    sb.track[0].style.display = '';
    +                }
    +                if (s.params.scrollbarHide) {
    +                    sb.track[0].style.opacity = 0;
    +                }
    +            },
    +            setTranslate: function () {
    +                if (!s.params.scrollbar) return;
    +                var diff;
    +                var sb = s.scrollbar;
    +                var translate = s.translate || 0;
    +                var newPos;
    +        
    +                var newSize = sb.dragSize;
    +                newPos = (sb.trackSize - sb.dragSize) * s.progress;
    +                if (s.rtl && s.isHorizontal()) {
    +                    newPos = -newPos;
    +                    if (newPos > 0) {
    +                        newSize = sb.dragSize - newPos;
    +                        newPos = 0;
    +                    }
    +                    else if (-newPos + sb.dragSize > sb.trackSize) {
    +                        newSize = sb.trackSize + newPos;
    +                    }
    +                }
    +                else {
    +                    if (newPos < 0) {
    +                        newSize = sb.dragSize + newPos;
    +                        newPos = 0;
    +                    }
    +                    else if (newPos + sb.dragSize > sb.trackSize) {
    +                        newSize = sb.trackSize - newPos;
    +                    }
    +                }
    +                if (s.isHorizontal()) {
    +                    if (s.support.transforms3d) {
    +                        sb.drag.transform('translate3d(' + (newPos) + 'px, 0, 0)');
    +                    }
    +                    else {
    +                        sb.drag.transform('translateX(' + (newPos) + 'px)');
    +                    }
    +                    sb.drag[0].style.width = newSize + 'px';
    +                }
    +                else {
    +                    if (s.support.transforms3d) {
    +                        sb.drag.transform('translate3d(0px, ' + (newPos) + 'px, 0)');
    +                    }
    +                    else {
    +                        sb.drag.transform('translateY(' + (newPos) + 'px)');
    +                    }
    +                    sb.drag[0].style.height = newSize + 'px';
    +                }
    +                if (s.params.scrollbarHide) {
    +                    clearTimeout(sb.timeout);
    +                    sb.track[0].style.opacity = 1;
    +                    sb.timeout = setTimeout(function () {
    +                        sb.track[0].style.opacity = 0;
    +                        sb.track.transition(400);
    +                    }, 1000);
    +                }
    +            },
    +            setTransition: function (duration) {
    +                if (!s.params.scrollbar) return;
    +                s.scrollbar.drag.transition(duration);
    +            }
    +        };
    +
    +        /*=========================
    +          Controller
    +          ===========================*/
    +        s.controller = {
    +            LinearSpline: function (x, y) {
    +                this.x = x;
    +                this.y = y;
    +                this.lastIndex = x.length - 1;
    +                // Given an x value (x2), return the expected y2 value:
    +                // (x1,y1) is the known point before given value,
    +                // (x3,y3) is the known point after given value.
    +                var i1, i3;
    +                var l = this.x.length;
    +        
    +                this.interpolate = function (x2) {
    +                    if (!x2) return 0;
    +        
    +                    // Get the indexes of x1 and x3 (the array indexes before and after given x2):
    +                    i3 = binarySearch(this.x, x2);
    +                    i1 = i3 - 1;
    +        
    +                    // We have our indexes i1 & i3, so we can calculate already:
    +                    // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1
    +                    return ((x2 - this.x[i1]) * (this.y[i3] - this.y[i1])) / (this.x[i3] - this.x[i1]) + this.y[i1];
    +                };
    +        
    +                var binarySearch = (function() {
    +                    var maxIndex, minIndex, guess;
    +                    return function(array, val) {
    +                        minIndex = -1;
    +                        maxIndex = array.length;
    +                        while (maxIndex - minIndex > 1)
    +                            if (array[guess = maxIndex + minIndex >> 1] <= val) {
    +                                minIndex = guess;
    +                            } else {
    +                                maxIndex = guess;
    +                            }
    +                        return maxIndex;
    +                    };
    +                })();
    +            },
    +            //xxx: for now i will just save one spline function to to
    +            getInterpolateFunction: function(c){
    +                if(!s.controller.spline) s.controller.spline = s.params.loop ?
    +                    new s.controller.LinearSpline(s.slidesGrid, c.slidesGrid) :
    +                    new s.controller.LinearSpline(s.snapGrid, c.snapGrid);
    +            },
    +            setTranslate: function (translate, byController) {
    +               var controlled = s.params.control;
    +               var multiplier, controlledTranslate;
    +               function setControlledTranslate(c) {
    +                    // this will create an Interpolate function based on the snapGrids
    +                    // x is the Grid of the scrolled scroller and y will be the controlled scroller
    +                    // it makes sense to create this only once and recall it for the interpolation
    +                    // the function does a lot of value caching for performance
    +                    translate = c.rtl && c.params.direction === 'horizontal' ? -s.translate : s.translate;
    +                    if (s.params.controlBy === 'slide') {
    +                        s.controller.getInterpolateFunction(c);
    +                        // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid
    +                        // but it did not work out
    +                        controlledTranslate = -s.controller.spline.interpolate(-translate);
    +                    }
    +        
    +                    if(!controlledTranslate || s.params.controlBy === 'container'){
    +                        multiplier = (c.maxTranslate() - c.minTranslate()) / (s.maxTranslate() - s.minTranslate());
    +                        controlledTranslate = (translate - s.minTranslate()) * multiplier + c.minTranslate();
    +                    }
    +        
    +                    if (s.params.controlInverse) {
    +                        controlledTranslate = c.maxTranslate() - controlledTranslate;
    +                    }
    +                    c.updateProgress(controlledTranslate);
    +                    c.setWrapperTranslate(controlledTranslate, false, s);
    +                    c.updateActiveIndex();
    +               }
    +               if (s.isArray(controlled)) {
    +                   for (var i = 0; i < controlled.length; i++) {
    +                       if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
    +                           setControlledTranslate(controlled[i]);
    +                       }
    +                   }
    +               }
    +               else if (controlled instanceof Swiper && byController !== controlled) {
    +        
    +                   setControlledTranslate(controlled);
    +               }
    +            },
    +            setTransition: function (duration, byController) {
    +                var controlled = s.params.control;
    +                var i;
    +                function setControlledTransition(c) {
    +                    c.setWrapperTransition(duration, s);
    +                    if (duration !== 0) {
    +                        c.onTransitionStart();
    +                        c.wrapper.transitionEnd(function(){
    +                            if (!controlled) return;
    +                            if (c.params.loop && s.params.controlBy === 'slide') {
    +                                c.fixLoop();
    +                            }
    +                            c.onTransitionEnd();
    +        
    +                        });
    +                    }
    +                }
    +                if (s.isArray(controlled)) {
    +                    for (i = 0; i < controlled.length; i++) {
    +                        if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
    +                            setControlledTransition(controlled[i]);
    +                        }
    +                    }
    +                }
    +                else if (controlled instanceof Swiper && byController !== controlled) {
    +                    setControlledTransition(controlled);
    +                }
    +            }
    +        };
    +
    +        /*=========================
    +          Hash Navigation
    +          ===========================*/
    +        s.hashnav = {
    +            init: function () {
    +                if (!s.params.hashnav) return;
    +                s.hashnav.initialized = true;
    +                var hash = document.location.hash.replace('#', '');
    +                if (!hash) return;
    +                var speed = 0;
    +                for (var i = 0, length = s.slides.length; i < length; i++) {
    +                    var slide = s.slides.eq(i);
    +                    var slideHash = slide.attr('data-hash');
    +                    if (slideHash === hash && !slide.hasClass(s.params.slideDuplicateClass)) {
    +                        var index = slide.index();
    +                        s.slideTo(index, speed, s.params.runCallbacksOnInit, true);
    +                    }
    +                }
    +            },
    +            setHash: function () {
    +                if (!s.hashnav.initialized || !s.params.hashnav) return;
    +                document.location.hash = s.slides.eq(s.activeIndex).attr('data-hash') || '';
    +            }
    +        };
    +
    +        /*=========================
    +          Keyboard Control
    +          ===========================*/
    +        function handleKeyboard(e) {
    +            if (e.originalEvent) e = e.originalEvent; //jquery fix
    +            var kc = e.keyCode || e.charCode;
    +            // Directions locks
    +            if (!s.params.allowSwipeToNext && (s.isHorizontal() && kc === 39 || !s.isHorizontal() && kc === 40)) {
    +                return false;
    +            }
    +            if (!s.params.allowSwipeToPrev && (s.isHorizontal() && kc === 37 || !s.isHorizontal() && kc === 38)) {
    +                return false;
    +            }
    +            if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {
    +                return;
    +            }
    +            if (document.activeElement && document.activeElement.nodeName && (document.activeElement.nodeName.toLowerCase() === 'input' || document.activeElement.nodeName.toLowerCase() === 'textarea')) {
    +                return;
    +            }
    +            if (kc === 37 || kc === 39 || kc === 38 || kc === 40) {
    +                var inView = false;
    +                //Check that swiper should be inside of visible area of window
    +                if (s.container.parents('.swiper-slide').length > 0 && s.container.parents('.swiper-slide-active').length === 0) {
    +                    return;
    +                }
    +                var windowScroll = {
    +                    left: window.pageXOffset,
    +                    top: window.pageYOffset
    +                };
    +                var windowWidth = window.innerWidth;
    +                var windowHeight = window.innerHeight;
    +                var swiperOffset = s.container.offset();
    +                if (s.rtl) swiperOffset.left = swiperOffset.left - s.container[0].scrollLeft;
    +                var swiperCoord = [
    +                    [swiperOffset.left, swiperOffset.top],
    +                    [swiperOffset.left + s.width, swiperOffset.top],
    +                    [swiperOffset.left, swiperOffset.top + s.height],
    +                    [swiperOffset.left + s.width, swiperOffset.top + s.height]
    +                ];
    +                for (var i = 0; i < swiperCoord.length; i++) {
    +                    var point = swiperCoord[i];
    +                    if (
    +                        point[0] >= windowScroll.left && point[0] <= windowScroll.left + windowWidth &&
    +                        point[1] >= windowScroll.top && point[1] <= windowScroll.top + windowHeight
    +                    ) {
    +                        inView = true;
    +                    }
    +        
    +                }
    +                if (!inView) return;
    +            }
    +            if (s.isHorizontal()) {
    +                if (kc === 37 || kc === 39) {
    +                    if (e.preventDefault) e.preventDefault();
    +                    else e.returnValue = false;
    +                }
    +                if ((kc === 39 && !s.rtl) || (kc === 37 && s.rtl)) s.slideNext();
    +                if ((kc === 37 && !s.rtl) || (kc === 39 && s.rtl)) s.slidePrev();
    +            }
    +            else {
    +                if (kc === 38 || kc === 40) {
    +                    if (e.preventDefault) e.preventDefault();
    +                    else e.returnValue = false;
    +                }
    +                if (kc === 40) s.slideNext();
    +                if (kc === 38) s.slidePrev();
    +            }
    +        }
    +        s.disableKeyboardControl = function () {
    +            s.params.keyboardControl = false;
    +            $(document).off('keydown', handleKeyboard);
    +        };
    +        s.enableKeyboardControl = function () {
    +            s.params.keyboardControl = true;
    +            $(document).on('keydown', handleKeyboard);
    +        };
    +        
    +
    +        /*=========================
    +          Mousewheel Control
    +          ===========================*/
    +        s.mousewheel = {
    +            event: false,
    +            lastScrollTime: (new window.Date()).getTime()
    +        };
    +        if (s.params.mousewheelControl) {
    +            try {
    +                new window.WheelEvent('wheel');
    +                s.mousewheel.event = 'wheel';
    +            } catch (e) {
    +                if (window.WheelEvent || (s.container[0] && 'wheel' in s.container[0])) {
    +                    s.mousewheel.event = 'wheel';
    +                }
    +            }
    +            if (!s.mousewheel.event && window.WheelEvent) {
    +        
    +            }
    +            if (!s.mousewheel.event && document.onmousewheel !== undefined) {
    +                s.mousewheel.event = 'mousewheel';
    +            }
    +            if (!s.mousewheel.event) {
    +                s.mousewheel.event = 'DOMMouseScroll';
    +            }
    +        }
    +        function handleMousewheel(e) {
    +            if (e.originalEvent) e = e.originalEvent; //jquery fix
    +            var we = s.mousewheel.event;
    +            var delta = 0;
    +            var rtlFactor = s.rtl ? -1 : 1;
    +        
    +            //WebKits
    +            if (we === 'mousewheel') {
    +                if (s.params.mousewheelForceToAxis) {
    +                    if (s.isHorizontal()) {
    +                        if (Math.abs(e.wheelDeltaX) > Math.abs(e.wheelDeltaY)) delta = e.wheelDeltaX * rtlFactor;
    +                        else return;
    +                    }
    +                    else {
    +                        if (Math.abs(e.wheelDeltaY) > Math.abs(e.wheelDeltaX)) delta = e.wheelDeltaY;
    +                        else return;
    +                    }
    +                }
    +                else {
    +                    delta = Math.abs(e.wheelDeltaX) > Math.abs(e.wheelDeltaY) ? - e.wheelDeltaX * rtlFactor : - e.wheelDeltaY;
    +                }
    +            }
    +            //Old FireFox
    +            else if (we === 'DOMMouseScroll') delta = -e.detail;
    +            //New FireFox
    +            else if (we === 'wheel') {
    +                if (s.params.mousewheelForceToAxis) {
    +                    if (s.isHorizontal()) {
    +                        if (Math.abs(e.deltaX) > Math.abs(e.deltaY)) delta = -e.deltaX * rtlFactor;
    +                        else return;
    +                    }
    +                    else {
    +                        if (Math.abs(e.deltaY) > Math.abs(e.deltaX)) delta = -e.deltaY;
    +                        else return;
    +                    }
    +                }
    +                else {
    +                    delta = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? - e.deltaX * rtlFactor : - e.deltaY;
    +                }
    +            }
    +            if (delta === 0) return;
    +        
    +            if (s.params.mousewheelInvert) delta = -delta;
    +        
    +            if (!s.params.freeMode) {
    +                if ((new window.Date()).getTime() - s.mousewheel.lastScrollTime > 60) {
    +                    if (delta < 0) {
    +                        if ((!s.isEnd || s.params.loop) && !s.animating) s.slideNext();
    +                        else if (s.params.mousewheelReleaseOnEdges) return true;
    +                    }
    +                    else {
    +                        if ((!s.isBeginning || s.params.loop) && !s.animating) s.slidePrev();
    +                        else if (s.params.mousewheelReleaseOnEdges) return true;
    +                    }
    +                }
    +                s.mousewheel.lastScrollTime = (new window.Date()).getTime();
    +        
    +            }
    +            else {
    +                //Freemode or scrollContainer:
    +                var position = s.getWrapperTranslate() + delta * s.params.mousewheelSensitivity;
    +                var wasBeginning = s.isBeginning,
    +                    wasEnd = s.isEnd;
    +        
    +                if (position >= s.minTranslate()) position = s.minTranslate();
    +                if (position <= s.maxTranslate()) position = s.maxTranslate();
    +        
    +                s.setWrapperTransition(0);
    +                s.setWrapperTranslate(position);
    +                s.updateProgress();
    +                s.updateActiveIndex();
    +        
    +                if (!wasBeginning && s.isBeginning || !wasEnd && s.isEnd) {
    +                    s.updateClasses();
    +                }
    +        
    +                if (s.params.freeModeSticky) {
    +                    clearTimeout(s.mousewheel.timeout);
    +                    s.mousewheel.timeout = setTimeout(function () {
    +                        s.slideReset();
    +                    }, 300);
    +                }
    +                else {
    +                    if (s.params.lazyLoading && s.lazy) {
    +                        s.lazy.load();
    +                    }
    +                }
    +        
    +                // Return page scroll on edge positions
    +                if (position === 0 || position === s.maxTranslate()) return;
    +            }
    +            if (s.params.autoplay) s.stopAutoplay();
    +        
    +            if (e.preventDefault) e.preventDefault();
    +            else e.returnValue = false;
    +            return false;
    +        }
    +        s.disableMousewheelControl = function () {
    +            if (!s.mousewheel.event) return false;
    +            s.container.off(s.mousewheel.event, handleMousewheel);
    +            return true;
    +        };
    +        
    +        s.enableMousewheelControl = function () {
    +            if (!s.mousewheel.event) return false;
    +            s.container.on(s.mousewheel.event, handleMousewheel);
    +            return true;
    +        };
    +        
    +
    +        /*=========================
    +          Parallax
    +          ===========================*/
    +        function setParallaxTransform(el, progress) {
    +            el = $(el);
    +            var p, pX, pY;
    +            var rtlFactor = s.rtl ? -1 : 1;
    +        
    +            p = el.attr('data-swiper-parallax') || '0';
    +            pX = el.attr('data-swiper-parallax-x');
    +            pY = el.attr('data-swiper-parallax-y');
    +            if (pX || pY) {
    +                pX = pX || '0';
    +                pY = pY || '0';
    +            }
    +            else {
    +                if (s.isHorizontal()) {
    +                    pX = p;
    +                    pY = '0';
    +                }
    +                else {
    +                    pY = p;
    +                    pX = '0';
    +                }
    +            }
    +        
    +            if ((pX).indexOf('%') >= 0) {
    +                pX = parseInt(pX, 10) * progress * rtlFactor + '%';
    +            }
    +            else {
    +                pX = pX * progress * rtlFactor + 'px' ;
    +            }
    +            if ((pY).indexOf('%') >= 0) {
    +                pY = parseInt(pY, 10) * progress + '%';
    +            }
    +            else {
    +                pY = pY * progress + 'px' ;
    +            }
    +        
    +            el.transform('translate3d(' + pX + ', ' + pY + ',0px)');
    +        }
    +        s.parallax = {
    +            setTranslate: function () {
    +                s.container.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(){
    +                    setParallaxTransform(this, s.progress);
    +        
    +                });
    +                s.slides.each(function () {
    +                    var slide = $(this);
    +                    slide.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function () {
    +                        var progress = Math.min(Math.max(slide[0].progress, -1), 1);
    +                        setParallaxTransform(this, progress);
    +                    });
    +                });
    +            },
    +            setTransition: function (duration) {
    +                if (typeof duration === 'undefined') duration = s.params.speed;
    +                s.container.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(){
    +                    var el = $(this);
    +                    var parallaxDuration = parseInt(el.attr('data-swiper-parallax-duration'), 10) || duration;
    +                    if (duration === 0) parallaxDuration = 0;
    +                    el.transition(parallaxDuration);
    +                });
    +            }
    +        };
    +        
    +
    +        /*=========================
    +          Plugins API. Collect all and init all plugins
    +          ===========================*/
    +        s._plugins = [];
    +        for (var plugin in s.plugins) {
    +            var p = s.plugins[plugin](s, s.params[plugin]);
    +            if (p) s._plugins.push(p);
    +        }
    +        // Method to call all plugins event/method
    +        s.callPlugins = function (eventName) {
    +            for (var i = 0; i < s._plugins.length; i++) {
    +                if (eventName in s._plugins[i]) {
    +                    s._plugins[i][eventName](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
    +                }
    +            }
    +        };
    +
    +        /*=========================
    +          Events/Callbacks/Plugins Emitter
    +          ===========================*/
    +        function normalizeEventName (eventName) {
    +            if (eventName.indexOf('on') !== 0) {
    +                if (eventName[0] !== eventName[0].toUpperCase()) {
    +                    eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);
    +                }
    +                else {
    +                    eventName = 'on' + eventName;
    +                }
    +            }
    +            return eventName;
    +        }
    +        s.emitterEventListeners = {
    +        
    +        };
    +        s.emit = function (eventName) {
    +            // Trigger callbacks
    +            if (s.params[eventName]) {
    +                s.params[eventName](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
    +            }
    +            var i;
    +            // Trigger events
    +            if (s.emitterEventListeners[eventName]) {
    +                for (i = 0; i < s.emitterEventListeners[eventName].length; i++) {
    +                    s.emitterEventListeners[eventName][i](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
    +                }
    +            }
    +            // Trigger plugins
    +            if (s.callPlugins) s.callPlugins(eventName, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
    +        };
    +        s.on = function (eventName, handler) {
    +            eventName = normalizeEventName(eventName);
    +            if (!s.emitterEventListeners[eventName]) s.emitterEventListeners[eventName] = [];
    +            s.emitterEventListeners[eventName].push(handler);
    +            return s;
    +        };
    +        s.off = function (eventName, handler) {
    +            var i;
    +            eventName = normalizeEventName(eventName);
    +            if (typeof handler === 'undefined') {
    +                // Remove all handlers for such event
    +                s.emitterEventListeners[eventName] = [];
    +                return s;
    +            }
    +            if (!s.emitterEventListeners[eventName] || s.emitterEventListeners[eventName].length === 0) return;
    +            for (i = 0; i < s.emitterEventListeners[eventName].length; i++) {
    +                if(s.emitterEventListeners[eventName][i] === handler) s.emitterEventListeners[eventName].splice(i, 1);
    +            }
    +            return s;
    +        };
    +        s.once = function (eventName, handler) {
    +            eventName = normalizeEventName(eventName);
    +            var _handler = function () {
    +                handler(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
    +                s.off(eventName, _handler);
    +            };
    +            s.on(eventName, _handler);
    +            return s;
    +        };
    +
    +        // Accessibility tools
    +        s.a11y = {
    +            makeFocusable: function ($el) {
    +                $el.attr('tabIndex', '0');
    +                return $el;
    +            },
    +            addRole: function ($el, role) {
    +                $el.attr('role', role);
    +                return $el;
    +            },
    +        
    +            addLabel: function ($el, label) {
    +                $el.attr('aria-label', label);
    +                return $el;
    +            },
    +        
    +            disable: function ($el) {
    +                $el.attr('aria-disabled', true);
    +                return $el;
    +            },
    +        
    +            enable: function ($el) {
    +                $el.attr('aria-disabled', false);
    +                return $el;
    +            },
    +        
    +            onEnterKey: function (event) {
    +                if (event.keyCode !== 13) return;
    +                if ($(event.target).is(s.params.nextButton)) {
    +                    s.onClickNext(event);
    +                    if (s.isEnd) {
    +                        s.a11y.notify(s.params.lastSlideMessage);
    +                    }
    +                    else {
    +                        s.a11y.notify(s.params.nextSlideMessage);
    +                    }
    +                }
    +                else if ($(event.target).is(s.params.prevButton)) {
    +                    s.onClickPrev(event);
    +                    if (s.isBeginning) {
    +                        s.a11y.notify(s.params.firstSlideMessage);
    +                    }
    +                    else {
    +                        s.a11y.notify(s.params.prevSlideMessage);
    +                    }
    +                }
    +                if ($(event.target).is('.' + s.params.bulletClass)) {
    +                    $(event.target)[0].click();
    +                }
    +            },
    +        
    +            liveRegion: $('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),
    +        
    +            notify: function (message) {
    +                var notification = s.a11y.liveRegion;
    +                if (notification.length === 0) return;
    +                notification.html('');
    +                notification.html(message);
    +            },
    +            init: function () {
    +                // Setup accessibility
    +                if (s.params.nextButton && s.nextButton && s.nextButton.length > 0) {
    +                    s.a11y.makeFocusable(s.nextButton);
    +                    s.a11y.addRole(s.nextButton, 'button');
    +                    s.a11y.addLabel(s.nextButton, s.params.nextSlideMessage);
    +                }
    +                if (s.params.prevButton && s.prevButton && s.prevButton.length > 0) {
    +                    s.a11y.makeFocusable(s.prevButton);
    +                    s.a11y.addRole(s.prevButton, 'button');
    +                    s.a11y.addLabel(s.prevButton, s.params.prevSlideMessage);
    +                }
    +        
    +                $(s.container).append(s.a11y.liveRegion);
    +            },
    +            initPagination: function () {
    +                if (s.params.pagination && s.params.paginationClickable && s.bullets && s.bullets.length) {
    +                    s.bullets.each(function () {
    +                        var bullet = $(this);
    +                        s.a11y.makeFocusable(bullet);
    +                        s.a11y.addRole(bullet, 'button');
    +                        s.a11y.addLabel(bullet, s.params.paginationBulletMessage.replace(/{{index}}/, bullet.index() + 1));
    +                    });
    +                }
    +            },
    +            destroy: function () {
    +                if (s.a11y.liveRegion && s.a11y.liveRegion.length > 0) s.a11y.liveRegion.remove();
    +            }
    +        };
    +        
    +
    +        /*=========================
    +          Init/Destroy
    +          ===========================*/
    +        s.init = function () {
    +            if (s.params.loop) s.createLoop();
    +            s.updateContainerSize();
    +            s.updateSlidesSize();
    +            s.updatePagination();
    +            if (s.params.scrollbar && s.scrollbar) {
    +                s.scrollbar.set();
    +                if (s.params.scrollbarDraggable) {
    +                    s.scrollbar.enableDraggable();
    +                }
    +            }
    +            if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {
    +                if (!s.params.loop) s.updateProgress();
    +                s.effects[s.params.effect].setTranslate();
    +            }
    +            if (s.params.loop) {
    +                s.slideTo(s.params.initialSlide + s.loopedSlides, 0, s.params.runCallbacksOnInit);
    +            }
    +            else {
    +                s.slideTo(s.params.initialSlide, 0, s.params.runCallbacksOnInit);
    +                if (s.params.initialSlide === 0) {
    +                    if (s.parallax && s.params.parallax) s.parallax.setTranslate();
    +                    if (s.lazy && s.params.lazyLoading) {
    +                        s.lazy.load();
    +                        s.lazy.initialImageLoaded = true;
    +                    }
    +                }
    +            }
    +            s.attachEvents();
    +            if (s.params.observer && s.support.observer) {
    +                s.initObservers();
    +            }
    +            if (s.params.preloadImages && !s.params.lazyLoading) {
    +                s.preloadImages();
    +            }
    +            if (s.params.autoplay) {
    +                s.startAutoplay();
    +            }
    +            if (s.params.keyboardControl) {
    +                if (s.enableKeyboardControl) s.enableKeyboardControl();
    +            }
    +            if (s.params.mousewheelControl) {
    +                if (s.enableMousewheelControl) s.enableMousewheelControl();
    +            }
    +            if (s.params.hashnav) {
    +                if (s.hashnav) s.hashnav.init();
    +            }
    +            if (s.params.a11y && s.a11y) s.a11y.init();
    +            s.emit('onInit', s);
    +        };
    +        
    +        // Cleanup dynamic styles
    +        s.cleanupStyles = function () {
    +            // Container
    +            s.container.removeClass(s.classNames.join(' ')).removeAttr('style');
    +        
    +            // Wrapper
    +            s.wrapper.removeAttr('style');
    +        
    +            // Slides
    +            if (s.slides && s.slides.length) {
    +                s.slides
    +                    .removeClass([
    +                      s.params.slideVisibleClass,
    +                      s.params.slideActiveClass,
    +                      s.params.slideNextClass,
    +                      s.params.slidePrevClass
    +                    ].join(' '))
    +                    .removeAttr('style')
    +                    .removeAttr('data-swiper-column')
    +                    .removeAttr('data-swiper-row');
    +            }
    +        
    +            // Pagination/Bullets
    +            if (s.paginationContainer && s.paginationContainer.length) {
    +                s.paginationContainer.removeClass(s.params.paginationHiddenClass);
    +            }
    +            if (s.bullets && s.bullets.length) {
    +                s.bullets.removeClass(s.params.bulletActiveClass);
    +            }
    +        
    +            // Buttons
    +            if (s.params.prevButton) $(s.params.prevButton).removeClass(s.params.buttonDisabledClass);
    +            if (s.params.nextButton) $(s.params.nextButton).removeClass(s.params.buttonDisabledClass);
    +        
    +            // Scrollbar
    +            if (s.params.scrollbar && s.scrollbar) {
    +                if (s.scrollbar.track && s.scrollbar.track.length) s.scrollbar.track.removeAttr('style');
    +                if (s.scrollbar.drag && s.scrollbar.drag.length) s.scrollbar.drag.removeAttr('style');
    +            }
    +        };
    +        
    +        // Destroy
    +        s.destroy = function (deleteInstance, cleanupStyles) {
    +            // Detach evebts
    +            s.detachEvents();
    +            // Stop autoplay
    +            s.stopAutoplay();
    +            // Disable draggable
    +            if (s.params.scrollbar && s.scrollbar) {
    +                if (s.params.scrollbarDraggable) {
    +                    s.scrollbar.disableDraggable();
    +                }
    +            }
    +            // Destroy loop
    +            if (s.params.loop) {
    +                s.destroyLoop();
    +            }
    +            // Cleanup styles
    +            if (cleanupStyles) {
    +                s.cleanupStyles();
    +            }
    +            // Disconnect observer
    +            s.disconnectObservers();
    +            // Disable keyboard/mousewheel
    +            if (s.params.keyboardControl) {
    +                if (s.disableKeyboardControl) s.disableKeyboardControl();
    +            }
    +            if (s.params.mousewheelControl) {
    +                if (s.disableMousewheelControl) s.disableMousewheelControl();
    +            }
    +            // Disable a11y
    +            if (s.params.a11y && s.a11y) s.a11y.destroy();
    +            // Destroy callback
    +            s.emit('onDestroy');
    +            // Delete instance
    +            if (deleteInstance !== false) s = null;
    +        };
    +        
    +        s.init();
    +        
    +
    +    
    +        // Return swiper instance
    +        return s;
    +    };
    +    
    +
    +    /*==================================================
    +        Prototype
    +    ====================================================*/
    +    Swiper.prototype = {
    +        isSafari: (function () {
    +            var ua = navigator.userAgent.toLowerCase();
    +            return (ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0);
    +        })(),
    +        isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),
    +        isArray: function (arr) {
    +            return Object.prototype.toString.apply(arr) === '[object Array]';
    +        },
    +        /*==================================================
    +        Browser
    +        ====================================================*/
    +        browser: {
    +            ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
    +            ieTouch: (window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1) || (window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1)
    +        },
    +        /*==================================================
    +        Devices
    +        ====================================================*/
    +        device: (function () {
    +            var ua = navigator.userAgent;
    +            var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
    +            var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
    +            var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
    +            var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/);
    +            return {
    +                ios: ipad || iphone || ipod,
    +                android: android
    +            };
    +        })(),
    +        /*==================================================
    +        Feature Detection
    +        ====================================================*/
    +        support: {
    +            touch : (window.Modernizr && Modernizr.touch === true) || (function () {
    +                return !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch);
    +            })(),
    +    
    +            transforms3d : (window.Modernizr && Modernizr.csstransforms3d === true) || (function () {
    +                var div = document.createElement('div').style;
    +                return ('webkitPerspective' in div || 'MozPerspective' in div || 'OPerspective' in div || 'MsPerspective' in div || 'perspective' in div);
    +            })(),
    +    
    +            flexbox: (function () {
    +                var div = document.createElement('div').style;
    +                var styles = ('alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient').split(' ');
    +                for (var i = 0; i < styles.length; i++) {
    +                    if (styles[i] in div) return true;
    +                }
    +            })(),
    +    
    +            observer: (function () {
    +                return ('MutationObserver' in window || 'WebkitMutationObserver' in window);
    +            })()
    +        },
    +        /*==================================================
    +        Plugins
    +        ====================================================*/
    +        plugins: {}
    +    };
    +    
    +
    +    /*===========================
    +     Get Dom libraries
    +     ===========================*/
    +    var addLibraryPlugin = function (lib) {
    +        lib.fn.swiper = function (params) {
    +            var firstInstance;
    +            lib(this).each(function () {
    +                var s = new Swiper(this, params);
    +                if (!firstInstance) firstInstance = s;
    +            });
    +            return firstInstance;
    +        };
    +    };
    +    var swiperDomPlugins = ['jQuery', 'Zepto', 'Dom7'];
    +    for (var i = 0; i < swiperDomPlugins.length; i++) {
    +    	if (window[swiperDomPlugins[i]]) {
    +    		addLibraryPlugin(window[swiperDomPlugins[i]]);
    +    	}
    +    }
    +    // Required DOM Plugins
    +    var domLib;
    +    if (typeof Dom7 === 'undefined') {
    +    	domLib = window.Dom7 || window.Zepto || window.jQuery;
    +    }
    +    else {
    +    	domLib = Dom7;
    +    }
    +
    +    
    +    if (domLib) {
    +        if (!('transitionEnd' in domLib.fn)) {
    +            domLib.fn.transitionEnd = function (callback) {
    +                var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'],
    +                    i, j, dom = this;
    +                function fireCallBack(e) {
    +                    /*jshint validthis:true */
    +                    if (e.target !== this) return;
    +                    callback.call(this, e);
    +                    for (i = 0; i < events.length; i++) {
    +                        dom.off(events[i], fireCallBack);
    +                    }
    +                }
    +                if (callback) {
    +                    for (i = 0; i < events.length; i++) {
    +                        dom.on(events[i], fireCallBack);
    +                    }
    +                }
    +                return this;
    +            };
    +        }
    +        if (!('transform' in domLib.fn)) {
    +            domLib.fn.transform = function (transform) {
    +                for (var i = 0; i < this.length; i++) {
    +                    var elStyle = this[i].style;
    +                    elStyle.webkitTransform = elStyle.MsTransform = elStyle.msTransform = elStyle.MozTransform = elStyle.OTransform = elStyle.transform = transform;
    +                }
    +                return this;
    +            };
    +        }
    +        if (!('transition' in domLib.fn)) {
    +            domLib.fn.transition = function (duration) {
    +                if (typeof duration !== 'string') {
    +                    duration = duration + 'ms';
    +                }
    +                for (var i = 0; i < this.length; i++) {
    +                    var elStyle = this[i].style;
    +                    elStyle.webkitTransitionDuration = elStyle.MsTransitionDuration = elStyle.msTransitionDuration = elStyle.MozTransitionDuration = elStyle.OTransitionDuration = elStyle.transitionDuration = duration;
    +                }
    +                return this;
    +            };
    +        }
    +    }
    +
    +    $.Swiper = Swiper;
    +    $.Swiper.prototype.defaults = defaults;
    +})($);
    +
    +/*===========================
    +Framework7 Swiper Additions
    +===========================*/
    +/* global $:true */
    ++function($){
    +    'use strict';
    +    $.Swiper.prototype.defaults.pagination = '.swiper-pagination';
    +
    +    $.swiper = function (container, params) {
    +        return new $.Swiper(container, params);
    +    };
    +    $.fn.swiper = function (params) {
    +        return new $.Swiper(this, params);
    +    };
    +    $.initSwiper = function (pageContainer) {
    +        var page = $(pageContainer || document.body);
    +        var swipers = page.find('.swiper-container');
    +        if (swipers.length === 0) return;
    +        for (var i = 0; i < swipers.length; i++) {
    +            var swiper = swipers.eq(i);
    +            var params;
    +            if (swiper.data('swiper')) {
    +                swiper.data("swiper").update(true);
    +                continue;
    +            }
    +            else {
    +                params = swiper.dataset();
    +            }
    +            $.swiper(swiper[0], params);
    +        }
    +    };
    +    $.reinitSwiper = function (pageContainer) {
    +        var page = $(pageContainer);
    +        var sliders = page.find('.swiper-container');
    +        if (sliders.length === 0) return;
    +        for (var i = 0; i < sliders.length; i++) {
    +            var sliderInstance = sliders[0].swiper;
    +            if (sliderInstance) {
    +                sliderInstance.update(true);
    +            }
    +        }
    +    };
    +
    +}($);
    +
    +/*======================================================
    +************   Photo Browser   ************
    +======================================================*/
    +/* global $:true */
    ++function($){
    +    'use strict';
    +    var PhotoBrowser = function (params) {
    +
    +        var pb = this, i;
    +
    +        var defaults = this.defaults;
    +        
    +        params = params || {};
    +        for (var def in defaults) {
    +            if (typeof params[def] === 'undefined') {
    +                params[def] = defaults[def];
    +            }
    +        }
    +
    +        pb.params = params;
    +
    +        var navbarTemplate = pb.params.navbarTemplate ||
    +                            '<header class="bar bar-nav">' + 
    +                              '<a class="icon icon-left pull-left photo-browser-close-link' + (pb.params.type === 'popup' ?  " close-popup" : "") + '"></a>' + 
    +                              '<h1 class="title"><div class="center sliding"><span class="photo-browser-current"></span> <span class="photo-browser-of">' + pb.params.ofText + '</span> <span class="photo-browser-total"></span></div></h1>' +
    +                            '</header>';
    +
    +        var toolbarTemplate = pb.params.toolbarTemplate ||
    +                            '<nav class="bar bar-tab">' +
    +                              '<a class="tab-item photo-browser-prev" href="#">' +
    +                                '<i class="icon icon-prev"></i>' +
    +                              '</a>' +
    +                              '<a class="tab-item photo-browser-next" href="#">' +
    +                                '<i class="icon icon-next"></i>' +
    +                              '</a>' +
    +                            '</nav>';
    +
    +        var template = pb.params.template ||
    +                        '<div class="photo-browser photo-browser-' + pb.params.theme + '">' +
    +                            '{{navbar}}' +
    +                            '{{toolbar}}' +
    +                            '<div data-page="photo-browser-slides" class="content">' +
    +                                '{{captions}}' +
    +                                '<div class="photo-browser-swiper-container swiper-container">' +
    +                                    '<div class="photo-browser-swiper-wrapper swiper-wrapper">' +
    +                                        '{{photos}}' +
    +                                    '</div>' +
    +                                '</div>' +
    +                            '</div>' +
    +                        '</div>';
    +
    +        var photoTemplate = !pb.params.lazyLoading ? 
    +            (pb.params.photoTemplate || '<div class="photo-browser-slide swiper-slide"><span class="photo-browser-zoom-container"><img src="{{url}}"></span></div>') : 
    +            (pb.params.photoLazyTemplate || '<div class="photo-browser-slide photo-browser-slide-lazy swiper-slide"><div class="preloader' + (pb.params.theme === 'dark' ? ' preloader-white' : '') + '"></div><span class="photo-browser-zoom-container"><img data-src="{{url}}" class="swiper-lazy"></span></div>');
    +
    +        var captionsTheme = pb.params.captionsTheme || pb.params.theme;
    +        var captionsTemplate = pb.params.captionsTemplate || '<div class="photo-browser-captions photo-browser-captions-' + captionsTheme + '">{{captions}}</div>';
    +        var captionTemplate = pb.params.captionTemplate || '<div class="photo-browser-caption" data-caption-index="{{captionIndex}}">{{caption}}</div>';
    +
    +        var objectTemplate = pb.params.objectTemplate || '<div class="photo-browser-slide photo-browser-object-slide swiper-slide">{{html}}</div>';
    +        var photosHtml = '';
    +        var captionsHtml = '';
    +        for (i = 0; i < pb.params.photos.length; i ++) {
    +            var photo = pb.params.photos[i];
    +            var thisTemplate = '';
    +
    +            //check if photo is a string or string-like object, for backwards compatibility 
    +            if (typeof(photo) === 'string' || photo instanceof String) {
    +
    +                //check if "photo" is html object
    +                if (photo.indexOf('<') >= 0 || photo.indexOf('>') >= 0) {
    +                    thisTemplate = objectTemplate.replace(/{{html}}/g, photo);
    +                } else {
    +                    thisTemplate = photoTemplate.replace(/{{url}}/g, photo);
    +                }
    +
    +                //photo is a string, thus has no caption, so remove the caption template placeholder
    +                //otherwise check if photo is an object with a url property
    +            } else if (typeof(photo) === 'object') {
    +
    +                //check if "photo" is html object
    +                if (photo.hasOwnProperty('html') && photo.html.length > 0) {
    +                    thisTemplate = objectTemplate.replace(/{{html}}/g, photo.html);
    +                } else if (photo.hasOwnProperty('url') && photo.url.length > 0) {
    +                    thisTemplate = photoTemplate.replace(/{{url}}/g, photo.url);
    +                }
    +
    +                //check if photo has a caption
    +                if (photo.hasOwnProperty('caption') && photo.caption.length > 0) {
    +                    captionsHtml += captionTemplate.replace(/{{caption}}/g, photo.caption).replace(/{{captionIndex}}/g, i);
    +                } else {
    +                    thisTemplate = thisTemplate.replace(/{{caption}}/g, '');
    +                }
    +            }
    +
    +            photosHtml += thisTemplate;
    +
    +        }
    +
    +        var htmlTemplate = template
    +                            .replace('{{navbar}}', (pb.params.navbar ? navbarTemplate : ''))
    +                            .replace('{{noNavbar}}', (pb.params.navbar ? '' : 'no-navbar'))
    +                            .replace('{{photos}}', photosHtml)
    +                            .replace('{{captions}}', captionsTemplate.replace(/{{captions}}/g, captionsHtml))
    +                            .replace('{{toolbar}}', (pb.params.toolbar ? toolbarTemplate : ''));
    +
    +        pb.activeIndex = pb.params.initialSlide;
    +        pb.openIndex = pb.activeIndex;
    +        pb.opened = false;
    +
    +        pb.open = function (index) {
    +            if (typeof index === 'undefined') index = pb.activeIndex;
    +            index = parseInt(index, 10);
    +            if (pb.opened && pb.swiper) {
    +                pb.swiper.slideTo(index);
    +                return;
    +            }
    +            pb.opened = true;
    +            pb.openIndex = index;
    +            // pb.initialLazyLoaded = false;
    +            if (pb.params.type === 'standalone') {
    +                $(pb.params.container).append(htmlTemplate);
    +            }
    +            if (pb.params.type === 'popup') {
    +                pb.popup = $.popup('<div class="popup photo-browser-popup">' + htmlTemplate + '</div>');
    +                $(pb.popup).on('closed', pb.onPopupClose);
    +            }
    +            if (pb.params.type === 'page') {
    +                $(document).on('pageBeforeInit', pb.onPageBeforeInit);
    +                $(document).on('pageBeforeRemove', pb.onPageBeforeRemove);
    +                if (!pb.params.view) pb.params.view = $.mainView;
    +                pb.params.view.loadContent(htmlTemplate);
    +                return;
    +            }
    +            pb.layout(pb.openIndex);
    +            if (pb.params.onOpen) {
    +                pb.params.onOpen(pb);
    +            }
    +
    +        };
    +        pb.close = function () {
    +            pb.opened = false;
    +            if (!pb.swiperContainer || pb.swiperContainer.length === 0) {
    +                return;
    +            }
    +            if (pb.params.onClose) {
    +                pb.params.onClose(pb);
    +            }
    +            // Detach events
    +            pb.attachEvents(true);
    +            // Delete from DOM
    +            if (pb.params.type === 'standalone') {
    +                pb.container.removeClass('photo-browser-in').addClass('photo-browser-out').animationEnd(function () {
    +                    pb.container.remove();
    +                });
    +            }
    +            // Destroy slider
    +            pb.swiper.destroy();
    +            // Delete references
    +            pb.swiper = pb.swiperContainer = pb.swiperWrapper = pb.slides = gestureSlide = gestureImg = gestureImgWrap = undefined;
    +        };
    +
    +        pb.onPopupClose = function () {
    +            pb.close();
    +            $(pb.popup).off('pageBeforeInit', pb.onPopupClose);
    +        };
    +        pb.onPageBeforeInit = function (e) {
    +            if (e.detail.page.name === 'photo-browser-slides') {
    +                pb.layout(pb.openIndex);
    +            }
    +            $(document).off('pageBeforeInit', pb.onPageBeforeInit);
    +        };
    +        pb.onPageBeforeRemove = function (e) {
    +            if (e.detail.page.name === 'photo-browser-slides') {
    +                pb.close();
    +            }
    +            $(document).off('pageBeforeRemove', pb.onPageBeforeRemove);
    +        };
    +
    +        pb.onSliderTransitionStart = function (swiper) {
    +            pb.activeIndex = swiper.activeIndex;
    +
    +            var current = swiper.activeIndex + 1;
    +            var total = swiper.slides.length;
    +            if (pb.params.loop) {
    +                total = total - 2;
    +                current = current - swiper.loopedSlides;
    +                if (current < 1) current = total + current;
    +                if (current > total) current = current - total;
    +            }
    +            pb.container.find('.photo-browser-current').text(current);
    +            pb.container.find('.photo-browser-total').text(total);
    +
    +            $('.photo-browser-prev, .photo-browser-next').removeClass('photo-browser-link-inactive');
    +            
    +            if (swiper.isBeginning && !pb.params.loop) {
    +                $('.photo-browser-prev').addClass('photo-browser-link-inactive');
    +            }
    +            if (swiper.isEnd && !pb.params.loop) {
    +                $('.photo-browser-next').addClass('photo-browser-link-inactive');
    +            }
    +
    +            // Update captions
    +            if (pb.captions.length > 0) {
    +                pb.captionsContainer.find('.photo-browser-caption-active').removeClass('photo-browser-caption-active');
    +                var captionIndex = pb.params.loop ? swiper.slides.eq(swiper.activeIndex).attr('data-swiper-slide-index') : pb.activeIndex;
    +                pb.captionsContainer.find('[data-caption-index="' + captionIndex + '"]').addClass('photo-browser-caption-active');
    +            }
    +
    +
    +            // Stop Video
    +            var previousSlideVideo = swiper.slides.eq(swiper.previousIndex).find('video');
    +            if (previousSlideVideo.length > 0) {
    +                if ('pause' in previousSlideVideo[0]) previousSlideVideo[0].pause();
    +            }
    +            // Callback
    +            if (pb.params.onSlideChangeStart) pb.params.onSlideChangeStart(swiper);
    +        };
    +        pb.onSliderTransitionEnd = function (swiper) {
    +            // Reset zoom
    +            if (pb.params.zoom && gestureSlide && swiper.previousIndex !== swiper.activeIndex) {
    +                gestureImg.transform('translate3d(0,0,0) scale(1)');
    +                gestureImgWrap.transform('translate3d(0,0,0)');
    +                gestureSlide = gestureImg = gestureImgWrap = undefined;
    +                scale = currentScale = 1;
    +            }
    +            if (pb.params.onSlideChangeEnd) pb.params.onSlideChangeEnd(swiper);
    +        };
    +        
    +        pb.layout = function (index) {
    +            if (pb.params.type === 'page') {
    +                pb.container = $('.photo-browser-swiper-container').parents('.view');
    +            }
    +            else {
    +                pb.container = $('.photo-browser');
    +            }
    +            if (pb.params.type === 'standalone') {
    +                pb.container.addClass('photo-browser-in');
    +                // $.sizeNavbars(pb.container);
    +            }
    +            pb.swiperContainer = pb.container.find('.photo-browser-swiper-container');
    +            pb.swiperWrapper = pb.container.find('.photo-browser-swiper-wrapper');
    +            pb.slides = pb.container.find('.photo-browser-slide');
    +            pb.captionsContainer = pb.container.find('.photo-browser-captions');
    +            pb.captions = pb.container.find('.photo-browser-caption');
    +            
    +            var sliderSettings = {
    +                nextButton: pb.params.nextButton || '.photo-browser-next',
    +                prevButton: pb.params.prevButton || '.photo-browser-prev',
    +                indexButton: pb.params.indexButton,
    +                initialSlide: index,
    +                spaceBetween: pb.params.spaceBetween,
    +                speed: pb.params.speed,
    +                loop: pb.params.loop,
    +                lazyLoading: pb.params.lazyLoading,
    +                lazyLoadingInPrevNext: pb.params.lazyLoadingInPrevNext,
    +                lazyLoadingOnTransitionStart: pb.params.lazyLoadingOnTransitionStart,
    +                preloadImages: pb.params.lazyLoading ? false : true,
    +                onTap: function (swiper, e) {
    +                    if (pb.params.onTap) pb.params.onTap(swiper, e);
    +                },
    +                onClick: function (swiper, e) {
    +                    if (pb.params.exposition) pb.toggleExposition();
    +                    if (pb.params.onClick) pb.params.onClick(swiper, e);
    +                },
    +                onDoubleTap: function (swiper, e) {
    +                    pb.toggleZoom($(e.target).parents('.photo-browser-slide'));
    +                    if (pb.params.onDoubleTap) pb.params.onDoubleTap(swiper, e);
    +                },
    +                onTransitionStart: function (swiper) {
    +                    pb.onSliderTransitionStart(swiper);
    +                },
    +                onTransitionEnd: function (swiper) {
    +                    pb.onSliderTransitionEnd(swiper);  
    +                },
    +                onLazyImageLoad: function (swiper, slide, img) {
    +                    if (pb.params.onLazyImageLoad) pb.params.onLazyImageLoad(pb, slide, img);
    +                },
    +                onLazyImageReady: function (swiper, slide, img) {
    +                    $(slide).removeClass('photo-browser-slide-lazy');
    +                    if (pb.params.onLazyImageReady) pb.params.onLazyImageReady(pb, slide, img);
    +                }
    +            };
    +
    +            if (pb.params.swipeToClose && pb.params.type !== 'page') {
    +                sliderSettings.onTouchStart = pb.swipeCloseTouchStart;
    +                sliderSettings.onTouchMoveOpposite = pb.swipeCloseTouchMove;
    +                sliderSettings.onTouchEnd = pb.swipeCloseTouchEnd;
    +            }
    +
    +            pb.swiper = $.swiper(pb.swiperContainer, sliderSettings);
    +            if (index === 0) {
    +                pb.onSliderTransitionStart(pb.swiper);
    +            }
    +            pb.attachEvents();
    +        };
    +        pb.attachEvents = function (detach) {
    +            var action = detach ? 'off' : 'on';
    +            // Slide between photos
    +
    +            if (pb.params.zoom) {
    +                var target = pb.params.loop ? pb.swiper.slides : pb.slides;
    +                // Scale image
    +                target[action]('gesturestart', pb.onSlideGestureStart);
    +                target[action]('gesturechange', pb.onSlideGestureChange);
    +                target[action]('gestureend', pb.onSlideGestureEnd);
    +                // Move image
    +                target[action]('touchstart', pb.onSlideTouchStart);
    +                target[action]('touchmove', pb.onSlideTouchMove);
    +                target[action]('touchend', pb.onSlideTouchEnd);
    +            }
    +            pb.container.find('.photo-browser-close-link')[action]('click', pb.close);
    +        };
    +
    +        // Expose
    +        pb.exposed = false;
    +        pb.toggleExposition = function () {
    +            if (pb.container) pb.container.toggleClass('photo-browser-exposed');
    +            if (pb.params.expositionHideCaptions) pb.captionsContainer.toggleClass('photo-browser-captions-exposed');
    +            pb.exposed = !pb.exposed;
    +        };
    +        pb.enableExposition = function () {
    +            if (pb.container) pb.container.addClass('photo-browser-exposed');
    +            if (pb.params.expositionHideCaptions) pb.captionsContainer.addClass('photo-browser-captions-exposed');
    +            pb.exposed = true;
    +        };
    +        pb.disableExposition = function () {
    +            if (pb.container) pb.container.removeClass('photo-browser-exposed');
    +            if (pb.params.expositionHideCaptions) pb.captionsContainer.removeClass('photo-browser-captions-exposed');
    +            pb.exposed = false;
    +        };
    +        
    +        // Gestures
    +        var gestureSlide, gestureImg, gestureImgWrap, scale = 1, currentScale = 1, isScaling = false;
    +        pb.onSlideGestureStart = function () {
    +            if (!gestureSlide) {
    +                gestureSlide = $(this);
    +                gestureImg = gestureSlide.find('img, svg, canvas');
    +                gestureImgWrap = gestureImg.parent('.photo-browser-zoom-container');
    +                if (gestureImgWrap.length === 0) {
    +                    gestureImg = undefined;
    +                    return;
    +                }
    +            }
    +            gestureImg.transition(0);
    +            isScaling = true;
    +        };
    +        pb.onSlideGestureChange = function (e) {
    +            if (!gestureImg || gestureImg.length === 0) return;
    +            scale = (e.scale || e.originalEvent.scale) * currentScale;
    +            if (scale > pb.params.maxZoom) {
    +                scale = pb.params.maxZoom - 1 + Math.pow((scale - pb.params.maxZoom + 1), 0.5);
    +            }
    +            if (scale < pb.params.minZoom) {
    +                scale =  pb.params.minZoom + 1 - Math.pow((pb.params.minZoom - scale + 1), 0.5);
    +            }
    +            gestureImg.transform('translate3d(0,0,0) scale(' + scale + ')');
    +        };
    +        pb.onSlideGestureEnd = function () {
    +            if (!gestureImg || gestureImg.length === 0) return;
    +            scale = Math.max(Math.min(scale, pb.params.maxZoom), pb.params.minZoom);
    +            gestureImg.transition(pb.params.speed).transform('translate3d(0,0,0) scale(' + scale + ')');
    +            currentScale = scale;
    +            isScaling = false;
    +            if (scale === 1) gestureSlide = undefined;
    +        };
    +        pb.toggleZoom = function () {
    +            if (!gestureSlide) {
    +                gestureSlide = pb.swiper.slides.eq(pb.swiper.activeIndex);
    +                gestureImg = gestureSlide.find('img, svg, canvas');
    +                gestureImgWrap = gestureImg.parent('.photo-browser-zoom-container');
    +            }
    +            if (!gestureImg || gestureImg.length === 0) return;
    +            gestureImgWrap.transition(300).transform('translate3d(0,0,0)');
    +            if (scale && scale !== 1) {
    +                scale = currentScale = 1;
    +                gestureImg.transition(300).transform('translate3d(0,0,0) scale(1)');
    +                gestureSlide = undefined;
    +            }
    +            else {
    +                scale = currentScale = pb.params.maxZoom;
    +                gestureImg.transition(300).transform('translate3d(0,0,0) scale(' + scale + ')');
    +            }
    +        };
    +
    +        var imageIsTouched, imageIsMoved, imageCurrentX, imageCurrentY, imageMinX, imageMinY, imageMaxX, imageMaxY, imageWidth, imageHeight, imageTouchesStart = {}, imageTouchesCurrent = {}, imageStartX, imageStartY, velocityPrevPositionX, velocityPrevTime, velocityX, velocityPrevPositionY, velocityY;
    +
    +        pb.onSlideTouchStart = function (e) {
    +            if (!gestureImg || gestureImg.length === 0) return;
    +            if (imageIsTouched) return;
    +            if ($.device.os === 'android') e.preventDefault();
    +            imageIsTouched = true;
    +            imageTouchesStart = $.getTouchPosition(e);
    +        };
    +        pb.onSlideTouchMove = function (e) {
    +            if (!gestureImg || gestureImg.length === 0) return;
    +            pb.swiper.allowClick = false;
    +            if (!imageIsTouched || !gestureSlide) return;
    +
    +            if (!imageIsMoved) {
    +                imageWidth = gestureImg[0].offsetWidth;
    +                imageHeight = gestureImg[0].offsetHeight;
    +                imageStartX = $.getTranslate(gestureImgWrap[0], 'x') || 0;
    +                imageStartY = $.getTranslate(gestureImgWrap[0], 'y') || 0;
    +                gestureImgWrap.transition(0);
    +            }
    +            // Define if we need image drag
    +            var scaledWidth = imageWidth * scale;
    +            var scaledHeight = imageHeight * scale;
    +
    +            if (scaledWidth < pb.swiper.width && scaledHeight < pb.swiper.height) return;
    +
    +            imageMinX = Math.min((pb.swiper.width / 2 - scaledWidth / 2), 0);
    +            imageMaxX = -imageMinX;
    +            imageMinY = Math.min((pb.swiper.height / 2 - scaledHeight / 2), 0);
    +            imageMaxY = -imageMinY;
    +            
    +            imageTouchesCurrent = $.getTouchPosition(e);
    +
    +            if (!imageIsMoved && !isScaling) {
    +                if (
    +                    (Math.floor(imageMinX) === Math.floor(imageStartX) && imageTouchesCurrent.x < imageTouchesStart.x) ||
    +                    (Math.floor(imageMaxX) === Math.floor(imageStartX) && imageTouchesCurrent.x > imageTouchesStart.x)
    +                    ) {
    +                    imageIsTouched = false;
    +                    return;
    +                }
    +            }
    +            e.preventDefault();
    +            e.stopPropagation();
    +            imageIsMoved = true;
    +            imageCurrentX = imageTouchesCurrent.x - imageTouchesStart.x + imageStartX;
    +            imageCurrentY = imageTouchesCurrent.y - imageTouchesStart.y + imageStartY;
    +            
    +            if (imageCurrentX < imageMinX) {
    +                imageCurrentX =  imageMinX + 1 - Math.pow((imageMinX - imageCurrentX + 1), 0.8);
    +            }
    +            if (imageCurrentX > imageMaxX) {
    +                imageCurrentX = imageMaxX - 1 + Math.pow((imageCurrentX - imageMaxX + 1), 0.8);
    +            }
    +            
    +            if (imageCurrentY < imageMinY) {
    +                imageCurrentY =  imageMinY + 1 - Math.pow((imageMinY - imageCurrentY + 1), 0.8);
    +            }
    +            if (imageCurrentY > imageMaxY) {
    +                imageCurrentY = imageMaxY - 1 + Math.pow((imageCurrentY - imageMaxY + 1), 0.8);
    +            }
    +
    +            //Velocity
    +            if (!velocityPrevPositionX) velocityPrevPositionX = imageTouchesCurrent.x;
    +            if (!velocityPrevPositionY) velocityPrevPositionY = imageTouchesCurrent.y;
    +            if (!velocityPrevTime) velocityPrevTime = Date.now();
    +            velocityX = (imageTouchesCurrent.x - velocityPrevPositionX) / (Date.now() - velocityPrevTime) / 2;
    +            velocityY = (imageTouchesCurrent.y - velocityPrevPositionY) / (Date.now() - velocityPrevTime) / 2;
    +            if (Math.abs(imageTouchesCurrent.x - velocityPrevPositionX) < 2) velocityX = 0;
    +            if (Math.abs(imageTouchesCurrent.y - velocityPrevPositionY) < 2) velocityY = 0;
    +            velocityPrevPositionX = imageTouchesCurrent.x;
    +            velocityPrevPositionY = imageTouchesCurrent.y;
    +            velocityPrevTime = Date.now();
    +
    +            gestureImgWrap.transform('translate3d(' + imageCurrentX + 'px, ' + imageCurrentY + 'px,0)');
    +        };
    +        pb.onSlideTouchEnd = function () {
    +            if (!gestureImg || gestureImg.length === 0) return;
    +            if (!imageIsTouched || !imageIsMoved) {
    +                imageIsTouched = false;
    +                imageIsMoved = false;
    +                return;
    +            }
    +            imageIsTouched = false;
    +            imageIsMoved = false;
    +            var momentumDurationX = 300;
    +            var momentumDurationY = 300;
    +            var momentumDistanceX = velocityX * momentumDurationX;
    +            var newPositionX = imageCurrentX + momentumDistanceX;
    +            var momentumDistanceY = velocityY * momentumDurationY;
    +            var newPositionY = imageCurrentY + momentumDistanceY;
    +
    +            //Fix duration
    +            if (velocityX !== 0) momentumDurationX = Math.abs((newPositionX - imageCurrentX) / velocityX);
    +            if (velocityY !== 0) momentumDurationY = Math.abs((newPositionY - imageCurrentY) / velocityY);
    +            var momentumDuration = Math.max(momentumDurationX, momentumDurationY);
    +
    +            imageCurrentX = newPositionX;
    +            imageCurrentY = newPositionY;
    +
    +            // Define if we need image drag
    +            var scaledWidth = imageWidth * scale;
    +            var scaledHeight = imageHeight * scale;
    +            imageMinX = Math.min((pb.swiper.width / 2 - scaledWidth / 2), 0);
    +            imageMaxX = -imageMinX;
    +            imageMinY = Math.min((pb.swiper.height / 2 - scaledHeight / 2), 0);
    +            imageMaxY = -imageMinY;
    +            imageCurrentX = Math.max(Math.min(imageCurrentX, imageMaxX), imageMinX);
    +            imageCurrentY = Math.max(Math.min(imageCurrentY, imageMaxY), imageMinY);
    +
    +            gestureImgWrap.transition(momentumDuration).transform('translate3d(' + imageCurrentX + 'px, ' + imageCurrentY + 'px,0)');
    +        };
    +
    +        // Swipe Up To Close
    +        var swipeToCloseIsTouched = false;
    +        var allowSwipeToClose = true;
    +        var swipeToCloseDiff, swipeToCloseStart, swipeToCloseCurrent, swipeToCloseStarted = false, swipeToCloseActiveSlide, swipeToCloseTimeStart;
    +        pb.swipeCloseTouchStart = function () {
    +            if (!allowSwipeToClose) return;
    +            swipeToCloseIsTouched = true;
    +        };
    +        pb.swipeCloseTouchMove = function (swiper, e) {
    +            if (!swipeToCloseIsTouched) return;
    +            if (!swipeToCloseStarted) {
    +                swipeToCloseStarted = true;
    +                swipeToCloseStart = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
    +                swipeToCloseActiveSlide = pb.swiper.slides.eq(pb.swiper.activeIndex);
    +                swipeToCloseTimeStart = (new Date()).getTime();
    +            }
    +            e.preventDefault();
    +            swipeToCloseCurrent = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
    +            swipeToCloseDiff = swipeToCloseStart - swipeToCloseCurrent;
    +            var opacity = 1 - Math.abs(swipeToCloseDiff) / 300;
    +            swipeToCloseActiveSlide.transform('translate3d(0,' + (-swipeToCloseDiff) + 'px,0)');
    +            pb.swiper.container.css('opacity', opacity).transition(0);
    +        };
    +        pb.swipeCloseTouchEnd = function () {
    +            swipeToCloseIsTouched = false;
    +            if (!swipeToCloseStarted) {
    +                swipeToCloseStarted = false;
    +                return;
    +            }
    +            swipeToCloseStarted = false;
    +            allowSwipeToClose = false;
    +            var diff = Math.abs(swipeToCloseDiff);
    +            var timeDiff = (new Date()).getTime() - swipeToCloseTimeStart;
    +            if ((timeDiff < 300 && diff > 20) || (timeDiff >= 300 && diff > 100)) {
    +                setTimeout(function () {
    +                    if (pb.params.type === 'standalone') {
    +                        pb.close();
    +                    }
    +                    if (pb.params.type === 'popup') {
    +                        $.closeModal(pb.popup);
    +                    }
    +                    if (pb.params.onSwipeToClose) {
    +                        pb.params.onSwipeToClose(pb);
    +                    }
    +                    allowSwipeToClose = true;
    +                }, 0);
    +                return;
    +            }
    +            if (diff !== 0) {
    +                swipeToCloseActiveSlide.addClass('transitioning').transitionEnd(function () {
    +                    allowSwipeToClose = true;
    +                    swipeToCloseActiveSlide.removeClass('transitioning');
    +                });
    +            }
    +            else {
    +                allowSwipeToClose = true;
    +            }
    +            pb.swiper.container.css('opacity', '').transition('');
    +            swipeToCloseActiveSlide.transform('');
    +        };
    +
    +        return pb;
    +    };
    +
    +    PhotoBrowser.prototype = {
    +        defaults: {
    +            photos : [],
    +            container: 'body',
    +            initialSlide: 0,
    +            spaceBetween: 20,
    +            speed: 300,
    +            zoom: true,
    +            maxZoom: 3,
    +            minZoom: 1,
    +            exposition: true,
    +            expositionHideCaptions: false,
    +            type: 'standalone',
    +            navbar: true,
    +            toolbar: true,
    +            theme: 'light',
    +            swipeToClose: true,
    +            backLinkText: 'Close',
    +            ofText: 'of',
    +            loop: false,
    +            lazyLoading: false,
    +            lazyLoadingInPrevNext: false,
    +            lazyLoadingOnTransitionStart: false,
    +            /*
    +            Callbacks:
    +            onLazyImageLoad(pb, slide, img)
    +            onLazyImageReady(pb, slide, img)
    +            onOpen(pb)
    +            onClose(pb)
    +            onSlideChangeStart(swiper)
    +            onSlideChangeEnd(swiper)
    +            onTap(swiper, e)
    +            onClick(swiper, e)
    +            onDoubleTap(swiper, e)
    +            onSwipeToClose(pb)
    +            */
    +        }
    +    };
    +
    +    $.photoBrowser = function (params) {
    +        $.extend(params, $.photoBrowser.prototype.defaults);
    +        return new PhotoBrowser(params);
    +    };
    +
    +    $.photoBrowser.prototype = {
    +        defaults: {}
    +    };
    +
    +}($);
    diff --git a/fangija-zsyf/js/light7-swiper.min.js b/fangija-zsyf/js/light7-swiper.min.js
    new file mode 100644
    index 0000000..7c62e26
    --- /dev/null
    +++ b/fangija-zsyf/js/light7-swiper.min.js
    @@ -0,0 +1,9 @@
    +/*!
    + * =====================================================
    + * light7 V0.4.3 - http://light7.org/
    + *
    + * =====================================================
    + */
    +!function(a){"use strict";var b={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},c=function(d,e){function f(a){return Math.floor(a)}function g(){t.autoplayTimeoutId=setTimeout(function(){t.params.loop?(t.fixLoop(),t._slideNext(),t.emit("onAutoplay",t)):t.isEnd?e.autoplayStopOnLast?t.stopAutoplay():(t._slideTo(0),t.emit("onAutoplay",t)):(t._slideNext(),t.emit("onAutoplay",t))},t.params.autoplay)}function h(b,c){var d=a(b.target);if(!d.is(c))if("string"==typeof c)d=d.parents(c);else if(c.nodeType){var e;return d.parents().each(function(a,b){b===c&&(e=c)}),e?c:void 0}if(0!==d.length)return d[0]}function i(a,b){b=b||{};var c=window.MutationObserver||window.WebkitMutationObserver,d=new c(function(a){a.forEach(function(a){t.onResize(!0),t.emit("onObserverUpdate",t,a)})});d.observe(a,{attributes:"undefined"==typeof b.attributes?!0:b.attributes,childList:"undefined"==typeof b.childList?!0:b.childList,characterData:"undefined"==typeof b.characterData?!0:b.characterData}),t.observers.push(d)}function j(a){a.originalEvent&&(a=a.originalEvent);var b=a.keyCode||a.charCode;if(!t.params.allowSwipeToNext&&(t.isHorizontal()&&39===b||!t.isHorizontal()&&40===b))return!1;if(!t.params.allowSwipeToPrev&&(t.isHorizontal()&&37===b||!t.isHorizontal()&&38===b))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===b||39===b||38===b||40===b){var c=!1;if(t.container.parents(".swiper-slide").length>0&&0===t.container.parents(".swiper-slide-active").length)return;var d={left:window.pageXOffset,top:window.pageYOffset},e=window.innerWidth,f=window.innerHeight,g=t.container.offset();t.rtl&&(g.left=g.left-t.container[0].scrollLeft);for(var h=[[g.left,g.top],[g.left+t.width,g.top],[g.left,g.top+t.height],[g.left+t.width,g.top+t.height]],i=0;i<h.length;i++){var j=h[i];j[0]>=d.left&&j[0]<=d.left+e&&j[1]>=d.top&&j[1]<=d.top+f&&(c=!0)}if(!c)return}t.isHorizontal()?((37===b||39===b)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(39===b&&!t.rtl||37===b&&t.rtl)&&t.slideNext(),(37===b&&!t.rtl||39===b&&t.rtl)&&t.slidePrev()):((38===b||40===b)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),40===b&&t.slideNext(),38===b&&t.slidePrev())}}function k(a){a.originalEvent&&(a=a.originalEvent);var b=t.mousewheel.event,c=0,d=t.rtl?-1:1;if("mousewheel"===b)if(t.params.mousewheelForceToAxis)if(t.isHorizontal()){if(!(Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)))return;c=a.wheelDeltaX*d}else{if(!(Math.abs(a.wheelDeltaY)>Math.abs(a.wheelDeltaX)))return;c=a.wheelDeltaY}else c=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-a.wheelDeltaX*d:-a.wheelDeltaY;else if("DOMMouseScroll"===b)c=-a.detail;else if("wheel"===b)if(t.params.mousewheelForceToAxis)if(t.isHorizontal()){if(!(Math.abs(a.deltaX)>Math.abs(a.deltaY)))return;c=-a.deltaX*d}else{if(!(Math.abs(a.deltaY)>Math.abs(a.deltaX)))return;c=-a.deltaY}else c=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-a.deltaX*d:-a.deltaY;if(0!==c){if(t.params.mousewheelInvert&&(c=-c),t.params.freeMode){var e=t.getWrapperTranslate()+c*t.params.mousewheelSensitivity,f=t.isBeginning,g=t.isEnd;if(e>=t.minTranslate()&&(e=t.minTranslate()),e<=t.maxTranslate()&&(e=t.maxTranslate()),t.setWrapperTransition(0),t.setWrapperTranslate(e),t.updateProgress(),t.updateActiveIndex(),(!f&&t.isBeginning||!g&&t.isEnd)&&t.updateClasses(),t.params.freeModeSticky?(clearTimeout(t.mousewheel.timeout),t.mousewheel.timeout=setTimeout(function(){t.slideReset()},300)):t.params.lazyLoading&&t.lazy&&t.lazy.load(),0===e||e===t.maxTranslate())return}else{if((new window.Date).getTime()-t.mousewheel.lastScrollTime>60)if(0>c)if(t.isEnd&&!t.params.loop||t.animating){if(t.params.mousewheelReleaseOnEdges)return!0}else t.slideNext();else if(t.isBeginning&&!t.params.loop||t.animating){if(t.params.mousewheelReleaseOnEdges)return!0}else t.slidePrev();t.mousewheel.lastScrollTime=(new window.Date).getTime()}return t.params.autoplay&&t.stopAutoplay(),a.preventDefault?a.preventDefault():a.returnValue=!1,!1}}function l(b,c){b=a(b);var d,e,f,g=t.rtl?-1:1;d=b.attr("data-swiper-parallax")||"0",e=b.attr("data-swiper-parallax-x"),f=b.attr("data-swiper-parallax-y"),e||f?(e=e||"0",f=f||"0"):t.isHorizontal()?(e=d,f="0"):(f=d,e="0"),e=e.indexOf("%")>=0?parseInt(e,10)*c*g+"%":e*c*g+"px",f=f.indexOf("%")>=0?parseInt(f,10)*c+"%":f*c+"px",b.transform("translate3d("+e+", "+f+",0px)")}function m(a){return 0!==a.indexOf("on")&&(a=a[0]!==a[0].toUpperCase()?"on"+a[0].toUpperCase()+a.substring(1):"on"+a),a}if(!(this instanceof c))return new c(d,e);var n=e&&e.virtualTranslate;e=e||{};var o={};for(var p in e)if("object"!=typeof e[p]||null===e[p]||(e[p].nodeType||e[p]===window||e[p]===document||"undefined"!=typeof Dom7&&e[p]instanceof Dom7||"undefined"!=typeof jQuery&&e[p]instanceof jQuery))o[p]=e[p];else{o[p]={};for(var q in e[p])o[p][q]=e[p][q]}for(var r in b)if("undefined"==typeof e[r])e[r]=b[r];else if("object"==typeof e[r])for(var s in b[r])"undefined"==typeof e[r][s]&&(e[r][s]=b[r][s]);var t=this;if(t.params=e,t.originalParams=o,t.classNames=[],t.$=a,t.currentBreakpoint=void 0,t.getActiveBreakpoint=function(){if(!t.params.breakpoints)return!1;var a,b=!1,c=[];for(a in t.params.breakpoints)t.params.breakpoints.hasOwnProperty(a)&&c.push(a);c.sort(function(a,b){return parseInt(a,10)>parseInt(b,10)});for(var d=0;d<c.length;d++)a=c[d],a>=window.innerWidth&&!b&&(b=a);return b||"max"},t.setBreakpoint=function(){var a=t.getActiveBreakpoint();if(a&&t.currentBreakpoint!==a){var b=a in t.params.breakpoints?t.params.breakpoints[a]:t.originalParams,c=t.params.loop&&b.slidesPerView!==t.params.slidesPerView;for(var d in b)t.params[d]=b[d];t.currentBreakpoint=a,c&&t.destroyLoop&&t.reLoop(!0)}},t.params.breakpoints&&t.setBreakpoint(),t.container=a(d),0!==t.container.length){if(t.container.length>1){var u=[];return t.container.each(function(){u.push(new c(this,e))}),u}t.container[0].swiper=t,t.container.data("swiper",t),t.classNames.push("swiper-container-"+t.params.direction),t.params.freeMode&&t.classNames.push("swiper-container-free-mode"),t.support.flexbox||(t.classNames.push("swiper-container-no-flexbox"),t.params.slidesPerColumn=1),t.params.autoHeight&&t.classNames.push("swiper-container-autoheight"),(t.params.parallax||t.params.watchSlidesVisibility)&&(t.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(t.params.effect)>=0&&(t.support.transforms3d?(t.params.watchSlidesProgress=!0,t.classNames.push("swiper-container-3d")):t.params.effect="slide"),"slide"!==t.params.effect&&t.classNames.push("swiper-container-"+t.params.effect),"cube"===t.params.effect&&(t.params.resistanceRatio=0,t.params.slidesPerView=1,t.params.slidesPerColumn=1,t.params.slidesPerGroup=1,t.params.centeredSlides=!1,t.params.spaceBetween=0,t.params.virtualTranslate=!0,t.params.setWrapperSize=!1),("fade"===t.params.effect||"flip"===t.params.effect)&&(t.params.slidesPerView=1,t.params.slidesPerColumn=1,t.params.slidesPerGroup=1,t.params.watchSlidesProgress=!0,t.params.spaceBetween=0,t.params.setWrapperSize=!1,"undefined"==typeof n&&(t.params.virtualTranslate=!0)),t.params.grabCursor&&t.support.touch&&(t.params.grabCursor=!1),t.wrapper=t.container.children("."+t.params.wrapperClass),t.params.pagination&&(t.paginationContainer=a(t.params.pagination),t.params.uniqueNavElements&&"string"==typeof t.params.pagination&&t.paginationContainer.length>1&&1===t.container.find(t.params.pagination).length&&(t.paginationContainer=t.container.find(t.params.pagination)),"bullets"===t.params.paginationType&&t.params.paginationClickable?t.paginationContainer.addClass("swiper-pagination-clickable"):t.params.paginationClickable=!1,t.paginationContainer.addClass("swiper-pagination-"+t.params.paginationType)),(t.params.nextButton||t.params.prevButton)&&(t.params.nextButton&&(t.nextButton=a(t.params.nextButton),t.params.uniqueNavElements&&"string"==typeof t.params.nextButton&&t.nextButton.length>1&&1===t.container.find(t.params.nextButton).length&&(t.nextButton=t.container.find(t.params.nextButton))),t.params.prevButton&&(t.prevButton=a(t.params.prevButton),t.params.uniqueNavElements&&"string"==typeof t.params.prevButton&&t.prevButton.length>1&&1===t.container.find(t.params.prevButton).length&&(t.prevButton=t.container.find(t.params.prevButton)))),t.isHorizontal=function(){return"horizontal"===t.params.direction},t.rtl=t.isHorizontal()&&("rtl"===t.container[0].dir.toLowerCase()||"rtl"===t.container.css("direction")),t.rtl&&t.classNames.push("swiper-container-rtl"),t.rtl&&(t.wrongRTL="-webkit-box"===t.wrapper.css("display")),t.params.slidesPerColumn>1&&t.classNames.push("swiper-container-multirow"),t.device.android&&t.classNames.push("swiper-container-android"),t.container.addClass(t.classNames.join(" ")),t.translate=0,t.progress=0,t.velocity=0,t.lockSwipeToNext=function(){t.params.allowSwipeToNext=!1},t.lockSwipeToPrev=function(){t.params.allowSwipeToPrev=!1},t.lockSwipes=function(){t.params.allowSwipeToNext=t.params.allowSwipeToPrev=!1},t.unlockSwipeToNext=function(){t.params.allowSwipeToNext=!0},t.unlockSwipeToPrev=function(){t.params.allowSwipeToPrev=!0},t.unlockSwipes=function(){t.params.allowSwipeToNext=t.params.allowSwipeToPrev=!0},t.params.grabCursor&&(t.container[0].style.cursor="move",t.container[0].style.cursor="-webkit-grab",t.container[0].style.cursor="-moz-grab",t.container[0].style.cursor="grab"),t.imagesToLoad=[],t.imagesLoaded=0,t.loadImage=function(a,b,c,d,e){function f(){e&&e()}var g;a.complete&&d?f():b?(g=new window.Image,g.onload=f,g.onerror=f,c&&(g.srcset=c),b&&(g.src=b)):f()},t.preloadImages=function(){function a(){"undefined"!=typeof t&&null!==t&&(void 0!==t.imagesLoaded&&t.imagesLoaded++,t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("onImagesReady",t)))}t.imagesToLoad=t.container.find("img");for(var b=0;b<t.imagesToLoad.length;b++)t.loadImage(t.imagesToLoad[b],t.imagesToLoad[b].currentSrc||t.imagesToLoad[b].getAttribute("src"),t.imagesToLoad[b].srcset||t.imagesToLoad[b].getAttribute("srcset"),!0,a)},t.autoplayTimeoutId=void 0,t.autoplaying=!1,t.autoplayPaused=!1,t.startAutoplay=function(){return"undefined"!=typeof t.autoplayTimeoutId?!1:t.params.autoplay?t.autoplaying?!1:(t.autoplaying=!0,t.emit("onAutoplayStart",t),void g()):!1},t.stopAutoplay=function(a){t.autoplayTimeoutId&&(t.autoplayTimeoutId&&clearTimeout(t.autoplayTimeoutId),t.autoplaying=!1,t.autoplayTimeoutId=void 0,t.emit("onAutoplayStop",t))},t.pauseAutoplay=function(a){t.autoplayPaused||(t.autoplayTimeoutId&&clearTimeout(t.autoplayTimeoutId),t.autoplayPaused=!0,0===a?(t.autoplayPaused=!1,g()):t.wrapper.transitionEnd(function(){t&&(t.autoplayPaused=!1,t.autoplaying?g():t.stopAutoplay())}))},t.minTranslate=function(){return-t.snapGrid[0]},t.maxTranslate=function(){return-t.snapGrid[t.snapGrid.length-1]},t.updateAutoHeight=function(){var a=t.slides.eq(t.activeIndex)[0];if("undefined"!=typeof a){var b=a.offsetHeight;b&&t.wrapper.css("height",b+"px")}},t.updateContainerSize=function(){var a,b;a="undefined"!=typeof t.params.width?t.params.width:t.container[0].clientWidth,b="undefined"!=typeof t.params.height?t.params.height:t.container[0].clientHeight,0===a&&t.isHorizontal()||0===b&&!t.isHorizontal()||(a=a-parseInt(t.container.css("padding-left"),10)-parseInt(t.container.css("padding-right"),10),b=b-parseInt(t.container.css("padding-top"),10)-parseInt(t.container.css("padding-bottom"),10),t.width=a,t.height=b,t.size=t.isHorizontal()?t.width:t.height)},t.updateSlidesSize=function(){t.slides=t.wrapper.children("."+t.params.slideClass),t.snapGrid=[],t.slidesGrid=[],t.slidesSizesGrid=[];var a,b=t.params.spaceBetween,c=-t.params.slidesOffsetBefore,d=0,e=0;if("undefined"!=typeof t.size){"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*t.size),t.virtualSize=-b,t.rtl?t.slides.css({marginLeft:"",marginTop:""}):t.slides.css({marginRight:"",marginBottom:""});var g;t.params.slidesPerColumn>1&&(g=Math.floor(t.slides.length/t.params.slidesPerColumn)===t.slides.length/t.params.slidesPerColumn?t.slides.length:Math.ceil(t.slides.length/t.params.slidesPerColumn)*t.params.slidesPerColumn,"auto"!==t.params.slidesPerView&&"row"===t.params.slidesPerColumnFill&&(g=Math.max(g,t.params.slidesPerView*t.params.slidesPerColumn)));var h,i=t.params.slidesPerColumn,j=g/i,k=j-(t.params.slidesPerColumn*j-t.slides.length);for(a=0;a<t.slides.length;a++){h=0;var l=t.slides.eq(a);if(t.params.slidesPerColumn>1){var m,n,o;"column"===t.params.slidesPerColumnFill?(n=Math.floor(a/i),o=a-n*i,(n>k||n===k&&o===i-1)&&++o>=i&&(o=0,n++),m=n+o*g/i,l.css({"-webkit-box-ordinal-group":m,"-moz-box-ordinal-group":m,"-ms-flex-order":m,"-webkit-order":m,order:m})):(o=Math.floor(a/j),n=a-o*j),l.css({"margin-top":0!==o&&t.params.spaceBetween&&t.params.spaceBetween+"px"}).attr("data-swiper-column",n).attr("data-swiper-row",o)}"none"!==l.css("display")&&("auto"===t.params.slidesPerView?(h=t.isHorizontal()?l.outerWidth(!0):l.outerHeight(!0),t.params.roundLengths&&(h=f(h))):(h=(t.size-(t.params.slidesPerView-1)*b)/t.params.slidesPerView,t.params.roundLengths&&(h=f(h)),t.isHorizontal()?t.slides[a].style.width=h+"px":t.slides[a].style.height=h+"px"),t.slides[a].swiperSlideSize=h,t.slidesSizesGrid.push(h),t.params.centeredSlides?(c=c+h/2+d/2+b,0===a&&(c=c-t.size/2-b),Math.abs(c)<.001&&(c=0),e%t.params.slidesPerGroup===0&&t.snapGrid.push(c),t.slidesGrid.push(c)):(e%t.params.slidesPerGroup===0&&t.snapGrid.push(c),t.slidesGrid.push(c),c=c+h+b),t.virtualSize+=h+b,d=h,e++)}t.virtualSize=Math.max(t.virtualSize,t.size)+t.params.slidesOffsetAfter;var p;if(t.rtl&&t.wrongRTL&&("slide"===t.params.effect||"coverflow"===t.params.effect)&&t.wrapper.css({width:t.virtualSize+t.params.spaceBetween+"px"}),(!t.support.flexbox||t.params.setWrapperSize)&&(t.isHorizontal()?t.wrapper.css({width:t.virtualSize+t.params.spaceBetween+"px"}):t.wrapper.css({height:t.virtualSize+t.params.spaceBetween+"px"})),t.params.slidesPerColumn>1&&(t.virtualSize=(h+t.params.spaceBetween)*g,t.virtualSize=Math.ceil(t.virtualSize/t.params.slidesPerColumn)-t.params.spaceBetween,t.wrapper.css({width:t.virtualSize+t.params.spaceBetween+"px"}),t.params.centeredSlides)){for(p=[],a=0;a<t.snapGrid.length;a++)t.snapGrid[a]<t.virtualSize+t.snapGrid[0]&&p.push(t.snapGrid[a]);t.snapGrid=p}if(!t.params.centeredSlides){for(p=[],a=0;a<t.snapGrid.length;a++)t.snapGrid[a]<=t.virtualSize-t.size&&p.push(t.snapGrid[a]);t.snapGrid=p,Math.floor(t.virtualSize-t.size)-Math.floor(t.snapGrid[t.snapGrid.length-1])>1&&t.snapGrid.push(t.virtualSize-t.size)}0===t.snapGrid.length&&(t.snapGrid=[0]),0!==t.params.spaceBetween&&(t.isHorizontal()?t.rtl?t.slides.css({marginLeft:b+"px"}):t.slides.css({marginRight:b+"px"}):t.slides.css({marginBottom:b+"px"})),t.params.watchSlidesProgress&&t.updateSlidesOffset()}},t.updateSlidesOffset=function(){for(var a=0;a<t.slides.length;a++)t.slides[a].swiperSlideOffset=t.isHorizontal()?t.slides[a].offsetLeft:t.slides[a].offsetTop},t.updateSlidesProgress=function(a){if("undefined"==typeof a&&(a=t.translate||0),0!==t.slides.length){"undefined"==typeof t.slides[0].swiperSlideOffset&&t.updateSlidesOffset();var b=-a;t.rtl&&(b=a),t.slides.removeClass(t.params.slideVisibleClass);for(var c=0;c<t.slides.length;c++){var d=t.slides[c],e=(b-d.swiperSlideOffset)/(d.swiperSlideSize+t.params.spaceBetween);if(t.params.watchSlidesVisibility){var f=-(b-d.swiperSlideOffset),g=f+t.slidesSizesGrid[c],h=f>=0&&f<t.size||g>0&&g<=t.size||0>=f&&g>=t.size;h&&t.slides.eq(c).addClass(t.params.slideVisibleClass)}d.progress=t.rtl?-e:e}}},t.updateProgress=function(a){"undefined"==typeof a&&(a=t.translate||0);var b=t.maxTranslate()-t.minTranslate(),c=t.isBeginning,d=t.isEnd;0===b?(t.progress=0,t.isBeginning=t.isEnd=!0):(t.progress=(a-t.minTranslate())/b,t.isBeginning=t.progress<=0,t.isEnd=t.progress>=1),t.isBeginning&&!c&&t.emit("onReachBeginning",t),t.isEnd&&!d&&t.emit("onReachEnd",t),t.params.watchSlidesProgress&&t.updateSlidesProgress(a),t.emit("onProgress",t,t.progress)},t.updateActiveIndex=function(){var a,b,c,d=t.rtl?t.translate:-t.translate;for(b=0;b<t.slidesGrid.length;b++)"undefined"!=typeof t.slidesGrid[b+1]?d>=t.slidesGrid[b]&&d<t.slidesGrid[b+1]-(t.slidesGrid[b+1]-t.slidesGrid[b])/2?a=b:d>=t.slidesGrid[b]&&d<t.slidesGrid[b+1]&&(a=b+1):d>=t.slidesGrid[b]&&(a=b);(0>a||"undefined"==typeof a)&&(a=0),c=Math.floor(a/t.params.slidesPerGroup),c>=t.snapGrid.length&&(c=t.snapGrid.length-1),a!==t.activeIndex&&(t.snapIndex=c,t.previousIndex=t.activeIndex,t.activeIndex=a,t.updateClasses())},t.updateClasses=function(){t.slides.removeClass(t.params.slideActiveClass+" "+t.params.slideNextClass+" "+t.params.slidePrevClass);var b=t.slides.eq(t.activeIndex);b.addClass(t.params.slideActiveClass);var c=b.next("."+t.params.slideClass).addClass(t.params.slideNextClass);t.params.loop&&0===c.length&&t.slides.eq(0).addClass(t.params.slideNextClass);var d=b.prev("."+t.params.slideClass).addClass(t.params.slidePrevClass);if(t.params.loop&&0===d.length&&t.slides.eq(-1).addClass(t.params.slidePrevClass),t.paginationContainer&&t.paginationContainer.length>0){var e,f=t.params.loop?Math.ceil((t.slides.length-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(e=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),e>t.slides.length-1-2*t.loopedSlides&&(e-=t.slides.length-2*t.loopedSlides),e>f-1&&(e-=f),0>e&&"bullets"!==t.params.paginationType&&(e=f+e)):e="undefined"!=typeof t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===t.params.paginationType&&t.bullets&&t.bullets.length>0&&(t.bullets.removeClass(t.params.bulletActiveClass),t.paginationContainer.length>1?t.bullets.each(function(){a(this).index()===e&&a(this).addClass(t.params.bulletActiveClass)}):t.bullets.eq(e).addClass(t.params.bulletActiveClass)),"fraction"===t.params.paginationType&&(t.paginationContainer.find("."+t.params.paginationCurrentClass).text(e+1),t.paginationContainer.find("."+t.params.paginationTotalClass).text(f)),"progress"===t.params.paginationType){var g=(e+1)/f,h=g,i=1;t.isHorizontal()||(i=g,h=1),t.paginationContainer.find("."+t.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+h+") scaleY("+i+")").transition(t.params.speed)}"custom"===t.params.paginationType&&t.params.paginationCustomRender&&(t.paginationContainer.html(t.params.paginationCustomRender(t,e+1,f)),t.emit("onPaginationRendered",t,t.paginationContainer[0]))}t.params.loop||(t.params.prevButton&&t.prevButton&&t.prevButton.length>0&&(t.isBeginning?(t.prevButton.addClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.disable(t.prevButton)):(t.prevButton.removeClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.enable(t.prevButton))),t.params.nextButton&&t.nextButton&&t.nextButton.length>0&&(t.isEnd?(t.nextButton.addClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.disable(t.nextButton)):(t.nextButton.removeClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.enable(t.nextButton))))},t.updatePagination=function(){if(t.params.pagination&&t.paginationContainer&&t.paginationContainer.length>0){var a="";if("bullets"===t.params.paginationType){for(var b=t.params.loop?Math.ceil((t.slides.length-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length,c=0;b>c;c++)a+=t.params.paginationBulletRender?t.params.paginationBulletRender(c,t.params.bulletClass):"<"+t.params.paginationElement+' class="'+t.params.bulletClass+'"></'+t.params.paginationElement+">";t.paginationContainer.html(a),t.bullets=t.paginationContainer.find("."+t.params.bulletClass),t.params.paginationClickable&&t.params.a11y&&t.a11y&&t.a11y.initPagination()}"fraction"===t.params.paginationType&&(a=t.params.paginationFractionRender?t.params.paginationFractionRender(t,t.params.paginationCurrentClass,t.params.paginationTotalClass):'<span class="'+t.params.paginationCurrentClass+'"></span> / <span class="'+t.params.paginationTotalClass+'"></span>',t.paginationContainer.html(a)),"progress"===t.params.paginationType&&(a=t.params.paginationProgressRender?t.params.paginationProgressRender(t,t.params.paginationProgressbarClass):'<span class="'+t.params.paginationProgressbarClass+'"></span>',t.paginationContainer.html(a)),"custom"!==t.params.paginationType&&t.emit("onPaginationRendered",t,t.paginationContainer[0])}},t.update=function(a){function b(){d=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate()),t.setWrapperTranslate(d),t.updateActiveIndex(),t.updateClasses()}if(t.updateContainerSize(),t.updateSlidesSize(),t.updateProgress(),t.updatePagination(),t.updateClasses(),t.params.scrollbar&&t.scrollbar&&t.scrollbar.set(),a){var c,d;t.controller&&t.controller.spline&&(t.controller.spline=void 0),t.params.freeMode?(b(),t.params.autoHeight&&t.updateAutoHeight()):(c=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),c||b())}else t.params.autoHeight&&t.updateAutoHeight()},t.onResize=function(a){t.params.breakpoints&&t.setBreakpoint();var b=t.params.allowSwipeToPrev,c=t.params.allowSwipeToNext;t.params.allowSwipeToPrev=t.params.allowSwipeToNext=!0,t.updateContainerSize(),t.updateSlidesSize(),("auto"===t.params.slidesPerView||t.params.freeMode||a)&&t.updatePagination(),t.params.scrollbar&&t.scrollbar&&t.scrollbar.set(),t.controller&&t.controller.spline&&(t.controller.spline=void 0);var d=!1;if(t.params.freeMode){var e=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate());t.setWrapperTranslate(e),t.updateActiveIndex(),t.updateClasses(),t.params.autoHeight&&t.updateAutoHeight()}else t.updateClasses(),d=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.params.lazyLoading&&!d&&t.lazy&&t.lazy.load(),t.params.allowSwipeToPrev=b,t.params.allowSwipeToNext=c};var v=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?v=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(v=["MSPointerDown","MSPointerMove","MSPointerUp"]),t.touchEvents={start:t.support.touch||!t.params.simulateTouch?"touchstart":v[0],move:t.support.touch||!t.params.simulateTouch?"touchmove":v[1],end:t.support.touch||!t.params.simulateTouch?"touchend":v[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===t.params.touchEventsTarget?t.container:t.wrapper).addClass("swiper-wp8-"+t.params.direction),t.initEvents=function(a){var b=a?"off":"on",c=a?"removeEventListener":"addEventListener",d="container"===t.params.touchEventsTarget?t.container[0]:t.wrapper[0],f=t.support.touch?d:document,g=t.params.nested?!0:!1;t.browser.ie?(d[c](t.touchEvents.start,t.onTouchStart,!1),f[c](t.touchEvents.move,t.onTouchMove,g),f[c](t.touchEvents.end,t.onTouchEnd,!1)):(t.support.touch&&(d[c](t.touchEvents.start,t.onTouchStart,!1),d[c](t.touchEvents.move,t.onTouchMove,g),d[c](t.touchEvents.end,t.onTouchEnd,!1)),!e.simulateTouch||t.device.ios||t.device.android||(d[c]("mousedown",t.onTouchStart,!1),document[c]("mousemove",t.onTouchMove,g),document[c]("mouseup",t.onTouchEnd,!1))),window[c]("resize",t.onResize),t.params.nextButton&&t.nextButton&&t.nextButton.length>0&&(t.nextButton[b]("click",t.onClickNext),t.params.a11y&&t.a11y&&t.nextButton[b]("keydown",t.a11y.onEnterKey)),t.params.prevButton&&t.prevButton&&t.prevButton.length>0&&(t.prevButton[b]("click",t.onClickPrev),t.params.a11y&&t.a11y&&t.prevButton[b]("keydown",t.a11y.onEnterKey)),t.params.pagination&&t.params.paginationClickable&&(t.paginationContainer[b]("click","."+t.params.bulletClass,t.onClickIndex),t.params.a11y&&t.a11y&&t.paginationContainer[b]("keydown","."+t.params.bulletClass,t.a11y.onEnterKey)),(t.params.preventClicks||t.params.preventClicksPropagation)&&d[c]("click",t.preventClicks,!0)},t.attachEvents=function(){t.initEvents()},t.detachEvents=function(){t.initEvents(!0)},t.allowClick=!0,t.preventClicks=function(a){t.allowClick||(t.params.preventClicks&&a.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(a.stopPropagation(),a.stopImmediatePropagation()))},t.onClickNext=function(a){a.preventDefault(),(!t.isEnd||t.params.loop)&&t.slideNext()},t.onClickPrev=function(a){a.preventDefault(),(!t.isBeginning||t.params.loop)&&t.slidePrev()},t.onClickIndex=function(b){b.preventDefault();var c=a(this).index()*t.params.slidesPerGroup;t.params.loop&&(c+=t.loopedSlides),t.slideTo(c)},t.updateClickedSlide=function(b){var c=h(b,"."+t.params.slideClass),d=!1;if(c)for(var e=0;e<t.slides.length;e++)t.slides[e]===c&&(d=!0);if(!c||!d)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);if(t.clickedSlide=c,t.clickedIndex=a(c).index(),t.params.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex){var f,g=t.clickedIndex;if(t.params.loop){if(t.animating)return;f=a(t.clickedSlide).attr("data-swiper-slide-index"),t.params.centeredSlides?g<t.loopedSlides-t.params.slidesPerView/2||g>t.slides.length-t.loopedSlides+t.params.slidesPerView/2?(t.fixLoop(),g=t.wrapper.children("."+t.params.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){t.slideTo(g)},0)):t.slideTo(g):g>t.slides.length-t.params.slidesPerView?(t.fixLoop(),g=t.wrapper.children("."+t.params.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){t.slideTo(g)},0)):t.slideTo(g)}else t.slideTo(g)}};var w,x,y,z,A,B,C,D,E,F,G="input, select, textarea, button",H=Date.now(),I=[];t.animating=!1,t.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var J,K;if(t.onTouchStart=function(b){if(b.originalEvent&&(b=b.originalEvent),J="touchstart"===b.type,J||!("which"in b)||3!==b.which){if(t.params.noSwiping&&h(b,"."+t.params.noSwipingClass))return void(t.allowClick=!0);if(!t.params.swipeHandler||h(b,t.params.swipeHandler)){var c=t.touches.currentX="touchstart"===b.type?b.targetTouches[0].pageX:b.pageX,d=t.touches.currentY="touchstart"===b.type?b.targetTouches[0].pageY:b.pageY;if(!(t.device.ios&&t.params.iOSEdgeSwipeDetection&&c<=t.params.iOSEdgeSwipeThreshold)){if(w=!0,x=!1,y=!0,A=void 0,K=void 0,t.touches.startX=c,t.touches.startY=d,z=Date.now(),t.allowClick=!0,t.updateContainerSize(),t.swipeDirection=void 0,t.params.threshold>0&&(D=!1),"touchstart"!==b.type){var e=!0;a(b.target).is(G)&&(e=!1),document.activeElement&&a(document.activeElement).is(G)&&document.activeElement.blur(),e&&b.preventDefault()}t.emit("onTouchStart",t,b)}}}},t.onTouchMove=function(b){if(b.originalEvent&&(b=b.originalEvent),!J||"mousemove"!==b.type){if(b.preventedByNestedSwiper)return t.touches.startX="touchmove"===b.type?b.targetTouches[0].pageX:b.pageX,void(t.touches.startY="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY);if(t.params.onlyExternal)return t.allowClick=!1,void(w&&(t.touches.startX=t.touches.currentX="touchmove"===b.type?b.targetTouches[0].pageX:b.pageX,t.touches.startY=t.touches.currentY="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,z=Date.now()));if(J&&document.activeElement&&b.target===document.activeElement&&a(b.target).is(G))return x=!0,void(t.allowClick=!1);if(y&&t.emit("onTouchMove",t,b),!(b.targetTouches&&b.targetTouches.length>1)){if(t.touches.currentX="touchmove"===b.type?b.targetTouches[0].pageX:b.pageX,t.touches.currentY="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,"undefined"==typeof A){var c=180*Math.atan2(Math.abs(t.touches.currentY-t.touches.startY),Math.abs(t.touches.currentX-t.touches.startX))/Math.PI;A=t.isHorizontal()?c>t.params.touchAngle:90-c>t.params.touchAngle}if(A&&t.emit("onTouchMoveOpposite",t,b),"undefined"==typeof K&&t.browser.ieTouch&&(t.touches.currentX!==t.touches.startX||t.touches.currentY!==t.touches.startY)&&(K=!0),w){if(A)return void(w=!1);if(K||!t.browser.ieTouch){t.allowClick=!1,t.emit("onSliderMove",t,b),b.preventDefault(),t.params.touchMoveStopPropagation&&!t.params.nested&&b.stopPropagation(),x||(e.loop&&t.fixLoop(),C=t.getWrapperTranslate(),t.setWrapperTransition(0),t.animating&&t.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),t.params.autoplay&&t.autoplaying&&(t.params.autoplayDisableOnInteraction?t.stopAutoplay():t.pauseAutoplay()),F=!1,t.params.grabCursor&&(t.container[0].style.cursor="move",t.container[0].style.cursor="-webkit-grabbing",t.container[0].style.cursor="-moz-grabbin",t.container[0].style.cursor="grabbing")),x=!0;var d=t.touches.diff=t.isHorizontal()?t.touches.currentX-t.touches.startX:t.touches.currentY-t.touches.startY;d*=t.params.touchRatio,t.rtl&&(d=-d),t.swipeDirection=d>0?"prev":"next",B=d+C;var f=!0;if(d>0&&B>t.minTranslate()?(f=!1,t.params.resistance&&(B=t.minTranslate()-1+Math.pow(-t.minTranslate()+C+d,t.params.resistanceRatio))):0>d&&B<t.maxTranslate()&&(f=!1,t.params.resistance&&(B=t.maxTranslate()+1-Math.pow(t.maxTranslate()-C-d,t.params.resistanceRatio))),f&&(b.preventedByNestedSwiper=!0),!t.params.allowSwipeToNext&&"next"===t.swipeDirection&&C>B&&(B=C),!t.params.allowSwipeToPrev&&"prev"===t.swipeDirection&&B>C&&(B=C),t.params.followFinger){if(t.params.threshold>0){
    +if(!(Math.abs(d)>t.params.threshold||D))return void(B=C);if(!D)return D=!0,t.touches.startX=t.touches.currentX,t.touches.startY=t.touches.currentY,B=C,void(t.touches.diff=t.isHorizontal()?t.touches.currentX-t.touches.startX:t.touches.currentY-t.touches.startY)}(t.params.freeMode||t.params.watchSlidesProgress)&&t.updateActiveIndex(),t.params.freeMode&&(0===I.length&&I.push({position:t.touches[t.isHorizontal()?"startX":"startY"],time:z}),I.push({position:t.touches[t.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),t.updateProgress(B),t.setWrapperTranslate(B)}}}}}},t.onTouchEnd=function(b){if(b.originalEvent&&(b=b.originalEvent),y&&t.emit("onTouchEnd",t,b),y=!1,w){t.params.grabCursor&&x&&w&&(t.container[0].style.cursor="move",t.container[0].style.cursor="-webkit-grab",t.container[0].style.cursor="-moz-grab",t.container[0].style.cursor="grab");var c=Date.now(),d=c-z;if(t.allowClick&&(t.updateClickedSlide(b),t.emit("onTap",t,b),300>d&&c-H>300&&(E&&clearTimeout(E),E=setTimeout(function(){t&&(t.params.paginationHide&&t.paginationContainer.length>0&&!a(b.target).hasClass(t.params.bulletClass)&&t.paginationContainer.toggleClass(t.params.paginationHiddenClass),t.emit("onClick",t,b))},300)),300>d&&300>c-H&&(E&&clearTimeout(E),t.emit("onDoubleTap",t,b))),H=Date.now(),setTimeout(function(){t&&(t.allowClick=!0)},0),!w||!x||!t.swipeDirection||0===t.touches.diff||B===C)return void(w=x=!1);w=x=!1;var e;if(e=t.params.followFinger?t.rtl?t.translate:-t.translate:-B,t.params.freeMode){if(e<-t.minTranslate())return void t.slideTo(t.activeIndex);if(e>-t.maxTranslate())return void(t.slides.length<t.snapGrid.length?t.slideTo(t.snapGrid.length-1):t.slideTo(t.slides.length-1));if(t.params.freeModeMomentum){if(I.length>1){var f=I.pop(),g=I.pop(),h=f.position-g.position,i=f.time-g.time;t.velocity=h/i,t.velocity=t.velocity/2,Math.abs(t.velocity)<t.params.freeModeMinimumVelocity&&(t.velocity=0),(i>150||(new window.Date).getTime()-f.time>300)&&(t.velocity=0)}else t.velocity=0;I.length=0;var j=1e3*t.params.freeModeMomentumRatio,k=t.velocity*j,l=t.translate+k;t.rtl&&(l=-l);var m,n=!1,o=20*Math.abs(t.velocity)*t.params.freeModeMomentumBounceRatio;if(l<t.maxTranslate())t.params.freeModeMomentumBounce?(l+t.maxTranslate()<-o&&(l=t.maxTranslate()-o),m=t.maxTranslate(),n=!0,F=!0):l=t.maxTranslate();else if(l>t.minTranslate())t.params.freeModeMomentumBounce?(l-t.minTranslate()>o&&(l=t.minTranslate()+o),m=t.minTranslate(),n=!0,F=!0):l=t.minTranslate();else if(t.params.freeModeSticky){var p,q=0;for(q=0;q<t.snapGrid.length;q+=1)if(t.snapGrid[q]>-l){p=q;break}l=Math.abs(t.snapGrid[p]-l)<Math.abs(t.snapGrid[p-1]-l)||"next"===t.swipeDirection?t.snapGrid[p]:t.snapGrid[p-1],t.rtl||(l=-l)}if(0!==t.velocity)j=t.rtl?Math.abs((-l-t.translate)/t.velocity):Math.abs((l-t.translate)/t.velocity);else if(t.params.freeModeSticky)return void t.slideReset();t.params.freeModeMomentumBounce&&n?(t.updateProgress(m),t.setWrapperTransition(j),t.setWrapperTranslate(l),t.onTransitionStart(),t.animating=!0,t.wrapper.transitionEnd(function(){t&&F&&(t.emit("onMomentumBounce",t),t.setWrapperTransition(t.params.speed),t.setWrapperTranslate(m),t.wrapper.transitionEnd(function(){t&&t.onTransitionEnd()}))})):t.velocity?(t.updateProgress(l),t.setWrapperTransition(j),t.setWrapperTranslate(l),t.onTransitionStart(),t.animating||(t.animating=!0,t.wrapper.transitionEnd(function(){t&&t.onTransitionEnd()}))):t.updateProgress(l),t.updateActiveIndex()}return void((!t.params.freeModeMomentum||d>=t.params.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex()))}var r,s=0,u=t.slidesSizesGrid[0];for(r=0;r<t.slidesGrid.length;r+=t.params.slidesPerGroup)"undefined"!=typeof t.slidesGrid[r+t.params.slidesPerGroup]?e>=t.slidesGrid[r]&&e<t.slidesGrid[r+t.params.slidesPerGroup]&&(s=r,u=t.slidesGrid[r+t.params.slidesPerGroup]-t.slidesGrid[r]):e>=t.slidesGrid[r]&&(s=r,u=t.slidesGrid[t.slidesGrid.length-1]-t.slidesGrid[t.slidesGrid.length-2]);var v=(e-t.slidesGrid[s])/u;if(d>t.params.longSwipesMs){if(!t.params.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=t.params.longSwipesRatio?t.slideTo(s+t.params.slidesPerGroup):t.slideTo(s)),"prev"===t.swipeDirection&&(v>1-t.params.longSwipesRatio?t.slideTo(s+t.params.slidesPerGroup):t.slideTo(s))}else{if(!t.params.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(s+t.params.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(s)}}},t._slideTo=function(a,b){return t.slideTo(a,b,!0,!0)},t.slideTo=function(a,b,c,d){"undefined"==typeof c&&(c=!0),"undefined"==typeof a&&(a=0),0>a&&(a=0),t.snapIndex=Math.floor(a/t.params.slidesPerGroup),t.snapIndex>=t.snapGrid.length&&(t.snapIndex=t.snapGrid.length-1);var e=-t.snapGrid[t.snapIndex];t.params.autoplay&&t.autoplaying&&(d||!t.params.autoplayDisableOnInteraction?t.pauseAutoplay(b):t.stopAutoplay()),t.updateProgress(e);for(var f=0;f<t.slidesGrid.length;f++)-Math.floor(100*e)>=Math.floor(100*t.slidesGrid[f])&&(a=f);return!t.params.allowSwipeToNext&&e<t.translate&&e<t.minTranslate()?!1:!t.params.allowSwipeToPrev&&e>t.translate&&e>t.maxTranslate()&&(t.activeIndex||0)!==a?!1:("undefined"==typeof b&&(b=t.params.speed),t.previousIndex=t.activeIndex||0,t.activeIndex=a,t.rtl&&-e===t.translate||!t.rtl&&e===t.translate?(t.params.autoHeight&&t.updateAutoHeight(),t.updateClasses(),"slide"!==t.params.effect&&t.setWrapperTranslate(e),!1):(t.updateClasses(),t.onTransitionStart(c),0===b?(t.setWrapperTranslate(e),t.setWrapperTransition(0),t.onTransitionEnd(c)):(t.setWrapperTranslate(e),t.setWrapperTransition(b),t.animating||(t.animating=!0,t.wrapper.transitionEnd(function(){t&&t.onTransitionEnd(c)}))),!0))},t.onTransitionStart=function(a){"undefined"==typeof a&&(a=!0),t.params.autoHeight&&t.updateAutoHeight(),t.lazy&&t.lazy.onTransitionStart(),a&&(t.emit("onTransitionStart",t),t.activeIndex!==t.previousIndex&&(t.emit("onSlideChangeStart",t),t.activeIndex>t.previousIndex?t.emit("onSlideNextStart",t):t.emit("onSlidePrevStart",t)))},t.onTransitionEnd=function(a){t.animating=!1,t.setWrapperTransition(0),"undefined"==typeof a&&(a=!0),t.lazy&&t.lazy.onTransitionEnd(),a&&(t.emit("onTransitionEnd",t),t.activeIndex!==t.previousIndex&&(t.emit("onSlideChangeEnd",t),t.activeIndex>t.previousIndex?t.emit("onSlideNextEnd",t):t.emit("onSlidePrevEnd",t))),t.params.hashnav&&t.hashnav&&t.hashnav.setHash()},t.slideNext=function(a,b,c){if(t.params.loop){if(t.animating)return!1;t.fixLoop();t.container[0].clientLeft;return t.slideTo(t.activeIndex+t.params.slidesPerGroup,b,a,c)}return t.slideTo(t.activeIndex+t.params.slidesPerGroup,b,a,c)},t._slideNext=function(a){return t.slideNext(!0,a,!0)},t.slidePrev=function(a,b,c){if(t.params.loop){if(t.animating)return!1;t.fixLoop();t.container[0].clientLeft;return t.slideTo(t.activeIndex-1,b,a,c)}return t.slideTo(t.activeIndex-1,b,a,c)},t._slidePrev=function(a){return t.slidePrev(!0,a,!0)},t.slideReset=function(a,b,c){return t.slideTo(t.activeIndex,b,a)},t.setWrapperTransition=function(a,b){t.wrapper.transition(a),"slide"!==t.params.effect&&t.effects[t.params.effect]&&t.effects[t.params.effect].setTransition(a),t.params.parallax&&t.parallax&&t.parallax.setTransition(a),t.params.scrollbar&&t.scrollbar&&t.scrollbar.setTransition(a),t.params.control&&t.controller&&t.controller.setTransition(a,b),t.emit("onSetTransition",t,a)},t.setWrapperTranslate=function(a,b,c){var d=0,e=0,g=0;t.isHorizontal()?d=t.rtl?-a:a:e=a,t.params.roundLengths&&(d=f(d),e=f(e)),t.params.virtualTranslate||(t.support.transforms3d?t.wrapper.transform("translate3d("+d+"px, "+e+"px, "+g+"px)"):t.wrapper.transform("translate("+d+"px, "+e+"px)")),t.translate=t.isHorizontal()?d:e;var h,i=t.maxTranslate()-t.minTranslate();h=0===i?0:(a-t.minTranslate())/i,h!==t.progress&&t.updateProgress(a),b&&t.updateActiveIndex(),"slide"!==t.params.effect&&t.effects[t.params.effect]&&t.effects[t.params.effect].setTranslate(t.translate),t.params.parallax&&t.parallax&&t.parallax.setTranslate(t.translate),t.params.scrollbar&&t.scrollbar&&t.scrollbar.setTranslate(t.translate),t.params.control&&t.controller&&t.controller.setTranslate(t.translate,c),t.emit("onSetTranslate",t,t.translate)},t.getTranslate=function(a,b){var c,d,e,f;return"undefined"==typeof b&&(b="x"),t.params.virtualTranslate?t.rtl?-t.translate:t.translate:(e=window.getComputedStyle(a,null),window.WebKitCSSMatrix?(d=e.transform||e.webkitTransform,d.split(",").length>6&&(d=d.split(", ").map(function(a){return a.replace(",",".")}).join(", ")),f=new window.WebKitCSSMatrix("none"===d?"":d)):(f=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),c=f.toString().split(",")),"x"===b&&(d=window.WebKitCSSMatrix?f.m41:16===c.length?parseFloat(c[12]):parseFloat(c[4])),"y"===b&&(d=window.WebKitCSSMatrix?f.m42:16===c.length?parseFloat(c[13]):parseFloat(c[5])),t.rtl&&d&&(d=-d),d||0)},t.getWrapperTranslate=function(a){return"undefined"==typeof a&&(a=t.isHorizontal()?"x":"y"),t.getTranslate(t.wrapper[0],a)},t.observers=[],t.initObservers=function(){if(t.params.observeParents)for(var a=t.container.parents(),b=0;b<a.length;b++)i(a[b]);i(t.container[0],{childList:!1}),i(t.wrapper[0],{attributes:!1})},t.disconnectObservers=function(){for(var a=0;a<t.observers.length;a++)t.observers[a].disconnect();t.observers=[]},t.createLoop=function(){t.wrapper.children("."+t.params.slideClass+"."+t.params.slideDuplicateClass).remove();var b=t.wrapper.children("."+t.params.slideClass);"auto"!==t.params.slidesPerView||t.params.loopedSlides||(t.params.loopedSlides=b.length),t.loopedSlides=parseInt(t.params.loopedSlides||t.params.slidesPerView,10),t.loopedSlides=t.loopedSlides+t.params.loopAdditionalSlides,t.loopedSlides>b.length&&(t.loopedSlides=b.length);var c,d=[],e=[];for(b.each(function(c,f){var g=a(this);c<t.loopedSlides&&e.push(f),c<b.length&&c>=b.length-t.loopedSlides&&d.push(f),g.attr("data-swiper-slide-index",c)}),c=0;c<e.length;c++)t.wrapper.append(a(e[c].cloneNode(!0)).addClass(t.params.slideDuplicateClass));for(c=d.length-1;c>=0;c--)t.wrapper.prepend(a(d[c].cloneNode(!0)).addClass(t.params.slideDuplicateClass))},t.destroyLoop=function(){t.wrapper.children("."+t.params.slideClass+"."+t.params.slideDuplicateClass).remove(),t.slides.removeAttr("data-swiper-slide-index")},t.reLoop=function(a){var b=t.activeIndex-t.loopedSlides;t.destroyLoop(),t.createLoop(),t.updateSlidesSize(),a&&t.slideTo(b+t.loopedSlides,0,!1)},t.fixLoop=function(){var a;t.activeIndex<t.loopedSlides?(a=t.slides.length-3*t.loopedSlides+t.activeIndex,a+=t.loopedSlides,t.slideTo(a,0,!1,!0)):("auto"===t.params.slidesPerView&&t.activeIndex>=2*t.loopedSlides||t.activeIndex>t.slides.length-2*t.params.slidesPerView)&&(a=-t.slides.length+t.activeIndex+t.loopedSlides,a+=t.loopedSlides,t.slideTo(a,0,!1,!0))},t.appendSlide=function(a){if(t.params.loop&&t.destroyLoop(),"object"==typeof a&&a.length)for(var b=0;b<a.length;b++)a[b]&&t.wrapper.append(a[b]);else t.wrapper.append(a);t.params.loop&&t.createLoop(),t.params.observer&&t.support.observer||t.update(!0)},t.prependSlide=function(a){t.params.loop&&t.destroyLoop();var b=t.activeIndex+1;if("object"==typeof a&&a.length){for(var c=0;c<a.length;c++)a[c]&&t.wrapper.prepend(a[c]);b=t.activeIndex+a.length}else t.wrapper.prepend(a);t.params.loop&&t.createLoop(),t.params.observer&&t.support.observer||t.update(!0),t.slideTo(b,0,!1)},t.removeSlide=function(a){t.params.loop&&(t.destroyLoop(),t.slides=t.wrapper.children("."+t.params.slideClass));var b,c=t.activeIndex;if("object"==typeof a&&a.length){for(var d=0;d<a.length;d++)b=a[d],t.slides[b]&&t.slides.eq(b).remove(),c>b&&c--;c=Math.max(c,0)}else b=a,t.slides[b]&&t.slides.eq(b).remove(),c>b&&c--,c=Math.max(c,0);t.params.loop&&t.createLoop(),t.params.observer&&t.support.observer||t.update(!0),t.params.loop?t.slideTo(c+t.loopedSlides,0,!1):t.slideTo(c,0,!1)},t.removeAllSlides=function(){for(var a=[],b=0;b<t.slides.length;b++)a.push(b);t.removeSlide(a)},t.effects={fade:{setTranslate:function(){for(var a=0;a<t.slides.length;a++){var b=t.slides.eq(a),c=b[0].swiperSlideOffset,d=-c;t.params.virtualTranslate||(d-=t.translate);var e=0;t.isHorizontal()||(e=d,d=0);var f=t.params.fade.crossFade?Math.max(1-Math.abs(b[0].progress),0):1+Math.min(Math.max(b[0].progress,-1),0);b.css({opacity:f}).transform("translate3d("+d+"px, "+e+"px, 0px)")}},setTransition:function(a){if(t.slides.transition(a),t.params.virtualTranslate&&0!==a){var b=!1;t.slides.transitionEnd(function(){if(!b&&t){b=!0,t.animating=!1;for(var a=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],c=0;c<a.length;c++)t.wrapper.trigger(a[c])}})}}},flip:{setTranslate:function(){for(var b=0;b<t.slides.length;b++){var c=t.slides.eq(b),d=c[0].progress;t.params.flip.limitRotation&&(d=Math.max(Math.min(c[0].progress,1),-1));var e=c[0].swiperSlideOffset,f=-180*d,g=f,h=0,i=-e,j=0;if(t.isHorizontal()?t.rtl&&(g=-g):(j=i,i=0,h=-g,g=0),c[0].style.zIndex=-Math.abs(Math.round(d))+t.slides.length,t.params.flip.slideShadows){var k=t.isHorizontal()?c.find(".swiper-slide-shadow-left"):c.find(".swiper-slide-shadow-top"),l=t.isHorizontal()?c.find(".swiper-slide-shadow-right"):c.find(".swiper-slide-shadow-bottom");0===k.length&&(k=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),c.append(k)),0===l.length&&(l=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),c.append(l)),k.length&&(k[0].style.opacity=Math.max(-d,0)),l.length&&(l[0].style.opacity=Math.max(d,0))}c.transform("translate3d("+i+"px, "+j+"px, 0px) rotateX("+h+"deg) rotateY("+g+"deg)")}},setTransition:function(b){if(t.slides.transition(b).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(b),t.params.virtualTranslate&&0!==b){var c=!1;t.slides.eq(t.activeIndex).transitionEnd(function(){if(!c&&t&&a(this).hasClass(t.params.slideActiveClass)){c=!0,t.animating=!1;for(var b=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],d=0;d<b.length;d++)t.wrapper.trigger(b[d])}})}}},cube:{setTranslate:function(){var b,c=0;t.params.cube.shadow&&(t.isHorizontal()?(b=t.wrapper.find(".swiper-cube-shadow"),0===b.length&&(b=a('<div class="swiper-cube-shadow"></div>'),t.wrapper.append(b)),b.css({height:t.width+"px"})):(b=t.container.find(".swiper-cube-shadow"),0===b.length&&(b=a('<div class="swiper-cube-shadow"></div>'),t.container.append(b))));for(var d=0;d<t.slides.length;d++){var e=t.slides.eq(d),f=90*d,g=Math.floor(f/360);t.rtl&&(f=-f,g=Math.floor(-f/360));var h=Math.max(Math.min(e[0].progress,1),-1),i=0,j=0,k=0;d%4===0?(i=4*-g*t.size,k=0):(d-1)%4===0?(i=0,k=4*-g*t.size):(d-2)%4===0?(i=t.size+4*g*t.size,k=t.size):(d-3)%4===0&&(i=-t.size,k=3*t.size+4*t.size*g),t.rtl&&(i=-i),t.isHorizontal()||(j=i,i=0);var l="rotateX("+(t.isHorizontal()?0:-f)+"deg) rotateY("+(t.isHorizontal()?f:0)+"deg) translate3d("+i+"px, "+j+"px, "+k+"px)";if(1>=h&&h>-1&&(c=90*d+90*h,t.rtl&&(c=90*-d-90*h)),e.transform(l),t.params.cube.slideShadows){var m=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===m.length&&(m=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),e.append(m)),0===n.length&&(n=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),e.append(n)),m.length&&(m[0].style.opacity=Math.max(-h,0)),n.length&&(n[0].style.opacity=Math.max(h,0))}}if(t.wrapper.css({"-webkit-transform-origin":"50% 50% -"+t.size/2+"px","-moz-transform-origin":"50% 50% -"+t.size/2+"px","-ms-transform-origin":"50% 50% -"+t.size/2+"px","transform-origin":"50% 50% -"+t.size/2+"px"}),t.params.cube.shadow)if(t.isHorizontal())b.transform("translate3d(0px, "+(t.width/2+t.params.cube.shadowOffset)+"px, "+-t.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+t.params.cube.shadowScale+")");else{var o=Math.abs(c)-90*Math.floor(Math.abs(c)/90),p=1.5-(Math.sin(2*o*Math.PI/360)/2+Math.cos(2*o*Math.PI/360)/2),q=t.params.cube.shadowScale,r=t.params.cube.shadowScale/p,s=t.params.cube.shadowOffset;b.transform("scale3d("+q+", 1, "+r+") translate3d(0px, "+(t.height/2+s)+"px, "+-t.height/2/r+"px) rotateX(-90deg)")}var u=t.isSafari||t.isUiWebView?-t.size/2:0;t.wrapper.transform("translate3d(0px,0,"+u+"px) rotateX("+(t.isHorizontal()?0:c)+"deg) rotateY("+(t.isHorizontal()?-c:0)+"deg)")},setTransition:function(a){t.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),t.params.cube.shadow&&!t.isHorizontal()&&t.container.find(".swiper-cube-shadow").transition(a)}},coverflow:{setTranslate:function(){for(var b=t.translate,c=t.isHorizontal()?-b+t.width/2:-b+t.height/2,d=t.isHorizontal()?t.params.coverflow.rotate:-t.params.coverflow.rotate,e=t.params.coverflow.depth,f=0,g=t.slides.length;g>f;f++){var h=t.slides.eq(f),i=t.slidesSizesGrid[f],j=h[0].swiperSlideOffset,k=(c-j-i/2)/i*t.params.coverflow.modifier,l=t.isHorizontal()?d*k:0,m=t.isHorizontal()?0:d*k,n=-e*Math.abs(k),o=t.isHorizontal()?0:t.params.coverflow.stretch*k,p=t.isHorizontal()?t.params.coverflow.stretch*k:0;Math.abs(p)<.001&&(p=0),Math.abs(o)<.001&&(o=0),Math.abs(n)<.001&&(n=0),Math.abs(l)<.001&&(l=0),Math.abs(m)<.001&&(m=0);var q="translate3d("+p+"px,"+o+"px,"+n+"px)  rotateX("+m+"deg) rotateY("+l+"deg)";if(h.transform(q),h[0].style.zIndex=-Math.abs(Math.round(k))+1,t.params.coverflow.slideShadows){var r=t.isHorizontal()?h.find(".swiper-slide-shadow-left"):h.find(".swiper-slide-shadow-top"),s=t.isHorizontal()?h.find(".swiper-slide-shadow-right"):h.find(".swiper-slide-shadow-bottom");0===r.length&&(r=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),h.append(r)),0===s.length&&(s=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),h.append(s)),r.length&&(r[0].style.opacity=k>0?k:0),s.length&&(s[0].style.opacity=-k>0?-k:0)}}if(t.browser.ie){var u=t.wrapper[0].style;u.perspectiveOrigin=c+"px 50%"}},setTransition:function(a){t.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a)}}},t.lazy={initialImageLoaded:!1,loadImageInSlide:function(b,c){if("undefined"!=typeof b&&("undefined"==typeof c&&(c=!0),0!==t.slides.length)){var d=t.slides.eq(b),e=d.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!d.hasClass("swiper-lazy")||d.hasClass("swiper-lazy-loaded")||d.hasClass("swiper-lazy-loading")||(e=e.add(d[0])),0!==e.length&&e.each(function(){var b=a(this);b.addClass("swiper-lazy-loading");var e=b.attr("data-background"),f=b.attr("data-src"),g=b.attr("data-srcset");t.loadImage(b[0],f||e,g,!1,function(){if(e?(b.css("background-image",'url("'+e+'")'),b.removeAttr("data-background")):(g&&(b.attr("srcset",g),b.removeAttr("data-srcset")),f&&(b.attr("src",f),b.removeAttr("data-src"))),b.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),d.find(".swiper-lazy-preloader, .preloader").remove(),t.params.loop&&c){var a=d.attr("data-swiper-slide-index");if(d.hasClass(t.params.slideDuplicateClass)){var h=t.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+t.params.slideDuplicateClass+")");t.lazy.loadImageInSlide(h.index(),!1)}else{var i=t.wrapper.children("."+t.params.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]');t.lazy.loadImageInSlide(i.index(),!1)}}t.emit("onLazyImageReady",t,d[0],b[0])}),t.emit("onLazyImageLoad",t,d[0],b[0])})}},load:function(){var b;if(t.params.watchSlidesVisibility)t.wrapper.children("."+t.params.slideVisibleClass).each(function(){t.lazy.loadImageInSlide(a(this).index())});else if(t.params.slidesPerView>1)for(b=t.activeIndex;b<t.activeIndex+t.params.slidesPerView;b++)t.slides[b]&&t.lazy.loadImageInSlide(b);else t.lazy.loadImageInSlide(t.activeIndex);if(t.params.lazyLoadingInPrevNext)if(t.params.slidesPerView>1||t.params.lazyLoadingInPrevNextAmount&&t.params.lazyLoadingInPrevNextAmount>1){var c=t.params.lazyLoadingInPrevNextAmount,d=t.params.slidesPerView,e=Math.min(t.activeIndex+d+Math.max(c,d),t.slides.length),f=Math.max(t.activeIndex-Math.max(d,c),0);for(b=t.activeIndex+t.params.slidesPerView;e>b;b++)t.slides[b]&&t.lazy.loadImageInSlide(b);for(b=f;b<t.activeIndex;b++)t.slides[b]&&t.lazy.loadImageInSlide(b)}else{var g=t.wrapper.children("."+t.params.slideNextClass);g.length>0&&t.lazy.loadImageInSlide(g.index());var h=t.wrapper.children("."+t.params.slidePrevClass);h.length>0&&t.lazy.loadImageInSlide(h.index())}},onTransitionStart:function(){t.params.lazyLoading&&(t.params.lazyLoadingOnTransitionStart||!t.params.lazyLoadingOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},onTransitionEnd:function(){t.params.lazyLoading&&!t.params.lazyLoadingOnTransitionStart&&t.lazy.load()}},t.scrollbar={isTouched:!1,setDragPosition:function(a){var b=t.scrollbar,c=t.isHorizontal()?"touchstart"===a.type||"touchmove"===a.type?a.targetTouches[0].pageX:a.pageX||a.clientX:"touchstart"===a.type||"touchmove"===a.type?a.targetTouches[0].pageY:a.pageY||a.clientY,d=c-b.track.offset()[t.isHorizontal()?"left":"top"]-b.dragSize/2,e=-t.minTranslate()*b.moveDivider,f=-t.maxTranslate()*b.moveDivider;e>d?d=e:d>f&&(d=f),d=-d/b.moveDivider,t.updateProgress(d),t.setWrapperTranslate(d,!0)},dragStart:function(a){var b=t.scrollbar;b.isTouched=!0,a.preventDefault(),a.stopPropagation(),b.setDragPosition(a),clearTimeout(b.dragTimeout),b.track.transition(0),t.params.scrollbarHide&&b.track.css("opacity",1),t.wrapper.transition(100),b.drag.transition(100),t.emit("onScrollbarDragStart",t)},dragMove:function(a){var b=t.scrollbar;b.isTouched&&(a.preventDefault?a.preventDefault():a.returnValue=!1,b.setDragPosition(a),t.wrapper.transition(0),b.track.transition(0),b.drag.transition(0),t.emit("onScrollbarDragMove",t))},dragEnd:function(a){var b=t.scrollbar;b.isTouched&&(b.isTouched=!1,t.params.scrollbarHide&&(clearTimeout(b.dragTimeout),b.dragTimeout=setTimeout(function(){b.track.css("opacity",0),b.track.transition(400)},1e3)),t.emit("onScrollbarDragEnd",t),t.params.scrollbarSnapOnRelease&&t.slideReset())},enableDraggable:function(){var b=t.scrollbar,c=t.support.touch?b.track:document;a(b.track).on(t.touchEvents.start,b.dragStart),a(c).on(t.touchEvents.move,b.dragMove),a(c).on(t.touchEvents.end,b.dragEnd)},disableDraggable:function(){var b=t.scrollbar,c=t.support.touch?b.track:document;a(b.track).off(t.touchEvents.start,b.dragStart),a(c).off(t.touchEvents.move,b.dragMove),a(c).off(t.touchEvents.end,b.dragEnd)},set:function(){if(t.params.scrollbar){var b=t.scrollbar;b.track=a(t.params.scrollbar),t.params.uniqueNavElements&&"string"==typeof t.params.scrollbar&&b.track.length>1&&1===t.container.find(t.params.scrollbar).length&&(b.track=t.container.find(t.params.scrollbar)),b.drag=b.track.find(".swiper-scrollbar-drag"),0===b.drag.length&&(b.drag=a('<div class="swiper-scrollbar-drag"></div>'),b.track.append(b.drag)),b.drag[0].style.width="",b.drag[0].style.height="",b.trackSize=t.isHorizontal()?b.track[0].offsetWidth:b.track[0].offsetHeight,b.divider=t.size/t.virtualSize,b.moveDivider=b.divider*(b.trackSize/t.size),b.dragSize=b.trackSize*b.divider,t.isHorizontal()?b.drag[0].style.width=b.dragSize+"px":b.drag[0].style.height=b.dragSize+"px",b.divider>=1?b.track[0].style.display="none":b.track[0].style.display="",t.params.scrollbarHide&&(b.track[0].style.opacity=0)}},setTranslate:function(){if(t.params.scrollbar){var a,b=t.scrollbar,c=(t.translate||0,b.dragSize);a=(b.trackSize-b.dragSize)*t.progress,t.rtl&&t.isHorizontal()?(a=-a,a>0?(c=b.dragSize-a,a=0):-a+b.dragSize>b.trackSize&&(c=b.trackSize+a)):0>a?(c=b.dragSize+a,a=0):a+b.dragSize>b.trackSize&&(c=b.trackSize-a),t.isHorizontal()?(t.support.transforms3d?b.drag.transform("translate3d("+a+"px, 0, 0)"):b.drag.transform("translateX("+a+"px)"),b.drag[0].style.width=c+"px"):(t.support.transforms3d?b.drag.transform("translate3d(0px, "+a+"px, 0)"):b.drag.transform("translateY("+a+"px)"),b.drag[0].style.height=c+"px"),t.params.scrollbarHide&&(clearTimeout(b.timeout),b.track[0].style.opacity=1,b.timeout=setTimeout(function(){b.track[0].style.opacity=0,b.track.transition(400)},1e3))}},setTransition:function(a){t.params.scrollbar&&t.scrollbar.drag.transition(a)}},t.controller={LinearSpline:function(a,b){this.x=a,this.y=b,this.lastIndex=a.length-1;var c,d;this.x.length;this.interpolate=function(a){return a?(d=e(this.x,a),c=d-1,(a-this.x[c])*(this.y[d]-this.y[c])/(this.x[d]-this.x[c])+this.y[c]):0};var e=function(){var a,b,c;return function(d,e){for(b=-1,a=d.length;a-b>1;)d[c=a+b>>1]<=e?b=c:a=c;return a}}()},getInterpolateFunction:function(a){t.controller.spline||(t.controller.spline=t.params.loop?new t.controller.LinearSpline(t.slidesGrid,a.slidesGrid):new t.controller.LinearSpline(t.snapGrid,a.snapGrid))},setTranslate:function(a,b){function d(b){a=b.rtl&&"horizontal"===b.params.direction?-t.translate:t.translate,"slide"===t.params.controlBy&&(t.controller.getInterpolateFunction(b),f=-t.controller.spline.interpolate(-a)),f&&"container"!==t.params.controlBy||(e=(b.maxTranslate()-b.minTranslate())/(t.maxTranslate()-t.minTranslate()),f=(a-t.minTranslate())*e+b.minTranslate()),t.params.controlInverse&&(f=b.maxTranslate()-f),b.updateProgress(f),b.setWrapperTranslate(f,!1,t),b.updateActiveIndex()}var e,f,g=t.params.control;if(t.isArray(g))for(var h=0;h<g.length;h++)g[h]!==b&&g[h]instanceof c&&d(g[h]);else g instanceof c&&b!==g&&d(g)},setTransition:function(a,b){function d(b){b.setWrapperTransition(a,t),0!==a&&(b.onTransitionStart(),b.wrapper.transitionEnd(function(){f&&(b.params.loop&&"slide"===t.params.controlBy&&b.fixLoop(),b.onTransitionEnd())}))}var e,f=t.params.control;if(t.isArray(f))for(e=0;e<f.length;e++)f[e]!==b&&f[e]instanceof c&&d(f[e]);else f instanceof c&&b!==f&&d(f)}},t.hashnav={init:function(){if(t.params.hashnav){t.hashnav.initialized=!0;var a=document.location.hash.replace("#","");if(a)for(var b=0,c=0,d=t.slides.length;d>c;c++){var e=t.slides.eq(c),f=e.attr("data-hash");if(f===a&&!e.hasClass(t.params.slideDuplicateClass)){var g=e.index();t.slideTo(g,b,t.params.runCallbacksOnInit,!0)}}}},setHash:function(){t.hashnav.initialized&&t.params.hashnav&&(document.location.hash=t.slides.eq(t.activeIndex).attr("data-hash")||"")}},t.disableKeyboardControl=function(){t.params.keyboardControl=!1,a(document).off("keydown",j)},t.enableKeyboardControl=function(){t.params.keyboardControl=!0,a(document).on("keydown",j)},t.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},t.params.mousewheelControl){try{new window.WheelEvent("wheel"),t.mousewheel.event="wheel"}catch(L){(window.WheelEvent||t.container[0]&&"wheel"in t.container[0])&&(t.mousewheel.event="wheel")}!t.mousewheel.event&&window.WheelEvent,t.mousewheel.event||void 0===document.onmousewheel||(t.mousewheel.event="mousewheel"),t.mousewheel.event||(t.mousewheel.event="DOMMouseScroll")}t.disableMousewheelControl=function(){return t.mousewheel.event?(t.container.off(t.mousewheel.event,k),!0):!1},t.enableMousewheelControl=function(){return t.mousewheel.event?(t.container.on(t.mousewheel.event,k),!0):!1},t.parallax={setTranslate:function(){t.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){l(this,t.progress)}),t.slides.each(function(){var b=a(this);b.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(b[0].progress,-1),1);l(this,a)})})},setTransition:function(b){"undefined"==typeof b&&(b=t.params.speed),t.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var c=a(this),d=parseInt(c.attr("data-swiper-parallax-duration"),10)||b;0===b&&(d=0),c.transition(d)})}},t._plugins=[];for(var M in t.plugins){var N=t.plugins[M](t,t.params[M]);N&&t._plugins.push(N)}return t.callPlugins=function(a){for(var b=0;b<t._plugins.length;b++)a in t._plugins[b]&&t._plugins[b][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},t.emitterEventListeners={},t.emit=function(a){t.params[a]&&t.params[a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var b;if(t.emitterEventListeners[a])for(b=0;b<t.emitterEventListeners[a].length;b++)t.emitterEventListeners[a][b](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);t.callPlugins&&t.callPlugins(a,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},t.on=function(a,b){return a=m(a),t.emitterEventListeners[a]||(t.emitterEventListeners[a]=[]),t.emitterEventListeners[a].push(b),t},t.off=function(a,b){var c;if(a=m(a),"undefined"==typeof b)return t.emitterEventListeners[a]=[],t;if(t.emitterEventListeners[a]&&0!==t.emitterEventListeners[a].length){for(c=0;c<t.emitterEventListeners[a].length;c++)t.emitterEventListeners[a][c]===b&&t.emitterEventListeners[a].splice(c,1);return t}},t.once=function(a,b){a=m(a);var c=function(){b(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),t.off(a,c)};return t.on(a,c),t},t.a11y={makeFocusable:function(a){return a.attr("tabIndex","0"),a},addRole:function(a,b){return a.attr("role",b),a},addLabel:function(a,b){return a.attr("aria-label",b),a},disable:function(a){return a.attr("aria-disabled",!0),a},enable:function(a){return a.attr("aria-disabled",!1),a},onEnterKey:function(b){13===b.keyCode&&(a(b.target).is(t.params.nextButton)?(t.onClickNext(b),t.isEnd?t.a11y.notify(t.params.lastSlideMessage):t.a11y.notify(t.params.nextSlideMessage)):a(b.target).is(t.params.prevButton)&&(t.onClickPrev(b),t.isBeginning?t.a11y.notify(t.params.firstSlideMessage):t.a11y.notify(t.params.prevSlideMessage)),a(b.target).is("."+t.params.bulletClass)&&a(b.target)[0].click())},liveRegion:a('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(a){var b=t.a11y.liveRegion;0!==b.length&&(b.html(""),b.html(a))},init:function(){t.params.nextButton&&t.nextButton&&t.nextButton.length>0&&(t.a11y.makeFocusable(t.nextButton),t.a11y.addRole(t.nextButton,"button"),t.a11y.addLabel(t.nextButton,t.params.nextSlideMessage)),t.params.prevButton&&t.prevButton&&t.prevButton.length>0&&(t.a11y.makeFocusable(t.prevButton),t.a11y.addRole(t.prevButton,"button"),t.a11y.addLabel(t.prevButton,t.params.prevSlideMessage)),a(t.container).append(t.a11y.liveRegion)},initPagination:function(){t.params.pagination&&t.params.paginationClickable&&t.bullets&&t.bullets.length&&t.bullets.each(function(){var b=a(this);t.a11y.makeFocusable(b),t.a11y.addRole(b,"button"),t.a11y.addLabel(b,t.params.paginationBulletMessage.replace(/{{index}}/,b.index()+1))})},destroy:function(){t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove()}},t.init=function(){t.params.loop&&t.createLoop(),t.updateContainerSize(),t.updateSlidesSize(),t.updatePagination(),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.set(),t.params.scrollbarDraggable&&t.scrollbar.enableDraggable()),"slide"!==t.params.effect&&t.effects[t.params.effect]&&(t.params.loop||t.updateProgress(),t.effects[t.params.effect].setTranslate()),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):(t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),0===t.params.initialSlide&&(t.parallax&&t.params.parallax&&t.parallax.setTranslate(),t.lazy&&t.params.lazyLoading&&(t.lazy.load(),t.lazy.initialImageLoaded=!0))),t.attachEvents(),t.params.observer&&t.support.observer&&t.initObservers(),t.params.preloadImages&&!t.params.lazyLoading&&t.preloadImages(),t.params.autoplay&&t.startAutoplay(),t.params.keyboardControl&&t.enableKeyboardControl&&t.enableKeyboardControl(),t.params.mousewheelControl&&t.enableMousewheelControl&&t.enableMousewheelControl(),t.params.hashnav&&t.hashnav&&t.hashnav.init(),t.params.a11y&&t.a11y&&t.a11y.init(),t.emit("onInit",t)},t.cleanupStyles=function(){t.container.removeClass(t.classNames.join(" ")).removeAttr("style"),
    +t.wrapper.removeAttr("style"),t.slides&&t.slides.length&&t.slides.removeClass([t.params.slideVisibleClass,t.params.slideActiveClass,t.params.slideNextClass,t.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),t.paginationContainer&&t.paginationContainer.length&&t.paginationContainer.removeClass(t.params.paginationHiddenClass),t.bullets&&t.bullets.length&&t.bullets.removeClass(t.params.bulletActiveClass),t.params.prevButton&&a(t.params.prevButton).removeClass(t.params.buttonDisabledClass),t.params.nextButton&&a(t.params.nextButton).removeClass(t.params.buttonDisabledClass),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.track&&t.scrollbar.track.length&&t.scrollbar.track.removeAttr("style"),t.scrollbar.drag&&t.scrollbar.drag.length&&t.scrollbar.drag.removeAttr("style"))},t.destroy=function(a,b){t.detachEvents(),t.stopAutoplay(),t.params.scrollbar&&t.scrollbar&&t.params.scrollbarDraggable&&t.scrollbar.disableDraggable(),t.params.loop&&t.destroyLoop(),b&&t.cleanupStyles(),t.disconnectObservers(),t.params.keyboardControl&&t.disableKeyboardControl&&t.disableKeyboardControl(),t.params.mousewheelControl&&t.disableMousewheelControl&&t.disableMousewheelControl(),t.params.a11y&&t.a11y&&t.a11y.destroy(),t.emit("onDestroy"),a!==!1&&(t=null)},t.init(),t}};c.prototype={isSafari:function(){var a=navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(a){return"[object Array]"===Object.prototype.toString.apply(a)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var a=navigator.userAgent,b=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),d=a.match(/(iPod)(.*OS\s([\d_]+))?/),e=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:c||e||d,android:b}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var a=document.createElement("div").style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){for(var a=document.createElement("div").style,b="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),c=0;c<b.length;c++)if(b[c]in a)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var d=function(a){a.fn.swiper=function(b){var d;return a(this).each(function(){var a=new c(this,b);d||(d=a)}),d}},e=["jQuery","Zepto","Dom7"],f=0;f<e.length;f++)window[e[f]]&&d(window[e[f]]);var g;g="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,g&&("transitionEnd"in g.fn||(g.fn.transitionEnd=function(a){function b(f){if(f.target===this)for(a.call(this,f),c=0;c<d.length;c++)e.off(d[c],b)}var c,d=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],e=this;if(a)for(c=0;c<d.length;c++)e.on(d[c],b);return this}),"transform"in g.fn||(g.fn.transform=function(a){for(var b=0;b<this.length;b++){var c=this[b].style;c.webkitTransform=c.MsTransform=c.msTransform=c.MozTransform=c.OTransform=c.transform=a}return this}),"transition"in g.fn||(g.fn.transition=function(a){"string"!=typeof a&&(a+="ms");for(var b=0;b<this.length;b++){var c=this[b].style;c.webkitTransitionDuration=c.MsTransitionDuration=c.msTransitionDuration=c.MozTransitionDuration=c.OTransitionDuration=c.transitionDuration=a}return this})),a.Swiper=c,a.Swiper.prototype.defaults=b}($),+function(a){"use strict";a.Swiper.prototype.defaults.pagination=".swiper-pagination",a.swiper=function(b,c){return new a.Swiper(b,c)},a.fn.swiper=function(b){return new a.Swiper(this,b)},a.initSwiper=function(b){var c=a(b||document.body),d=c.find(".swiper-container");if(0!==d.length)for(var e=0;e<d.length;e++){var f,g=d.eq(e);g.data("swiper")?g.data("swiper").update(!0):(f=g.dataset(),a.swiper(g[0],f))}},a.reinitSwiper=function(b){var c=a(b),d=c.find(".swiper-container");if(0!==d.length)for(var e=0;e<d.length;e++){var f=d[0].swiper;f&&f.update(!0)}}}($),+function(a){"use strict";var b=function(b){var c,d=this,e=this.defaults;b=b||{};for(var f in e)"undefined"==typeof b[f]&&(b[f]=e[f]);d.params=b;var g=d.params.navbarTemplate||'<header class="bar bar-nav"><a class="icon icon-left pull-left photo-browser-close-link'+("popup"===d.params.type?" close-popup":"")+'"></a><h1 class="title"><div class="center sliding"><span class="photo-browser-current"></span> <span class="photo-browser-of">'+d.params.ofText+'</span> <span class="photo-browser-total"></span></div></h1></header>',h=d.params.toolbarTemplate||'<nav class="bar bar-tab"><a class="tab-item photo-browser-prev" href="#"><i class="icon icon-prev"></i></a><a class="tab-item photo-browser-next" href="#"><i class="icon icon-next"></i></a></nav>',i=d.params.template||'<div class="photo-browser photo-browser-'+d.params.theme+'">{{navbar}}{{toolbar}}<div data-page="photo-browser-slides" class="content">{{captions}}<div class="photo-browser-swiper-container swiper-container"><div class="photo-browser-swiper-wrapper swiper-wrapper">{{photos}}</div></div></div></div>',j=d.params.lazyLoading?d.params.photoLazyTemplate||'<div class="photo-browser-slide photo-browser-slide-lazy swiper-slide"><div class="preloader'+("dark"===d.params.theme?" preloader-white":"")+'"></div><span class="photo-browser-zoom-container"><img data-src="{{url}}" class="swiper-lazy"></span></div>':d.params.photoTemplate||'<div class="photo-browser-slide swiper-slide"><span class="photo-browser-zoom-container"><img src="{{url}}"></span></div>',k=d.params.captionsTheme||d.params.theme,l=d.params.captionsTemplate||'<div class="photo-browser-captions photo-browser-captions-'+k+'">{{captions}}</div>',m=d.params.captionTemplate||'<div class="photo-browser-caption" data-caption-index="{{captionIndex}}">{{caption}}</div>',n=d.params.objectTemplate||'<div class="photo-browser-slide photo-browser-object-slide swiper-slide">{{html}}</div>',o="",p="";for(c=0;c<d.params.photos.length;c++){var q=d.params.photos[c],r="";"string"==typeof q||q instanceof String?r=q.indexOf("<")>=0||q.indexOf(">")>=0?n.replace(/{{html}}/g,q):j.replace(/{{url}}/g,q):"object"==typeof q&&(q.hasOwnProperty("html")&&q.html.length>0?r=n.replace(/{{html}}/g,q.html):q.hasOwnProperty("url")&&q.url.length>0&&(r=j.replace(/{{url}}/g,q.url)),q.hasOwnProperty("caption")&&q.caption.length>0?p+=m.replace(/{{caption}}/g,q.caption).replace(/{{captionIndex}}/g,c):r=r.replace(/{{caption}}/g,"")),o+=r}var s=i.replace("{{navbar}}",d.params.navbar?g:"").replace("{{noNavbar}}",d.params.navbar?"":"no-navbar").replace("{{photos}}",o).replace("{{captions}}",l.replace(/{{captions}}/g,p)).replace("{{toolbar}}",d.params.toolbar?h:"");d.activeIndex=d.params.initialSlide,d.openIndex=d.activeIndex,d.opened=!1,d.open=function(b){return"undefined"==typeof b&&(b=d.activeIndex),b=parseInt(b,10),d.opened&&d.swiper?void d.swiper.slideTo(b):(d.opened=!0,d.openIndex=b,"standalone"===d.params.type&&a(d.params.container).append(s),"popup"===d.params.type&&(d.popup=a.popup('<div class="popup photo-browser-popup">'+s+"</div>"),a(d.popup).on("closed",d.onPopupClose)),"page"===d.params.type?(a(document).on("pageBeforeInit",d.onPageBeforeInit),a(document).on("pageBeforeRemove",d.onPageBeforeRemove),d.params.view||(d.params.view=a.mainView),void d.params.view.loadContent(s)):(d.layout(d.openIndex),void(d.params.onOpen&&d.params.onOpen(d))))},d.close=function(){d.opened=!1,d.swiperContainer&&0!==d.swiperContainer.length&&(d.params.onClose&&d.params.onClose(d),d.attachEvents(!0),"standalone"===d.params.type&&d.container.removeClass("photo-browser-in").addClass("photo-browser-out").animationEnd(function(){d.container.remove()}),d.swiper.destroy(),d.swiper=d.swiperContainer=d.swiperWrapper=d.slides=t=u=v=void 0)},d.onPopupClose=function(){d.close(),a(d.popup).off("pageBeforeInit",d.onPopupClose)},d.onPageBeforeInit=function(b){"photo-browser-slides"===b.detail.page.name&&d.layout(d.openIndex),a(document).off("pageBeforeInit",d.onPageBeforeInit)},d.onPageBeforeRemove=function(b){"photo-browser-slides"===b.detail.page.name&&d.close(),a(document).off("pageBeforeRemove",d.onPageBeforeRemove)},d.onSliderTransitionStart=function(b){d.activeIndex=b.activeIndex;var c=b.activeIndex+1,e=b.slides.length;if(d.params.loop&&(e-=2,c-=b.loopedSlides,1>c&&(c=e+c),c>e&&(c-=e)),d.container.find(".photo-browser-current").text(c),d.container.find(".photo-browser-total").text(e),a(".photo-browser-prev, .photo-browser-next").removeClass("photo-browser-link-inactive"),b.isBeginning&&!d.params.loop&&a(".photo-browser-prev").addClass("photo-browser-link-inactive"),b.isEnd&&!d.params.loop&&a(".photo-browser-next").addClass("photo-browser-link-inactive"),d.captions.length>0){d.captionsContainer.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active");var f=d.params.loop?b.slides.eq(b.activeIndex).attr("data-swiper-slide-index"):d.activeIndex;d.captionsContainer.find('[data-caption-index="'+f+'"]').addClass("photo-browser-caption-active")}var g=b.slides.eq(b.previousIndex).find("video");g.length>0&&"pause"in g[0]&&g[0].pause(),d.params.onSlideChangeStart&&d.params.onSlideChangeStart(b)},d.onSliderTransitionEnd=function(a){d.params.zoom&&t&&a.previousIndex!==a.activeIndex&&(u.transform("translate3d(0,0,0) scale(1)"),v.transform("translate3d(0,0,0)"),t=u=v=void 0,w=x=1),d.params.onSlideChangeEnd&&d.params.onSlideChangeEnd(a)},d.layout=function(b){"page"===d.params.type?d.container=a(".photo-browser-swiper-container").parents(".view"):d.container=a(".photo-browser"),"standalone"===d.params.type&&d.container.addClass("photo-browser-in"),d.swiperContainer=d.container.find(".photo-browser-swiper-container"),d.swiperWrapper=d.container.find(".photo-browser-swiper-wrapper"),d.slides=d.container.find(".photo-browser-slide"),d.captionsContainer=d.container.find(".photo-browser-captions"),d.captions=d.container.find(".photo-browser-caption");var c={nextButton:d.params.nextButton||".photo-browser-next",prevButton:d.params.prevButton||".photo-browser-prev",indexButton:d.params.indexButton,initialSlide:b,spaceBetween:d.params.spaceBetween,speed:d.params.speed,loop:d.params.loop,lazyLoading:d.params.lazyLoading,lazyLoadingInPrevNext:d.params.lazyLoadingInPrevNext,lazyLoadingOnTransitionStart:d.params.lazyLoadingOnTransitionStart,preloadImages:d.params.lazyLoading?!1:!0,onTap:function(a,b){d.params.onTap&&d.params.onTap(a,b)},onClick:function(a,b){d.params.exposition&&d.toggleExposition(),d.params.onClick&&d.params.onClick(a,b)},onDoubleTap:function(b,c){d.toggleZoom(a(c.target).parents(".photo-browser-slide")),d.params.onDoubleTap&&d.params.onDoubleTap(b,c)},onTransitionStart:function(a){d.onSliderTransitionStart(a)},onTransitionEnd:function(a){d.onSliderTransitionEnd(a)},onLazyImageLoad:function(a,b,c){d.params.onLazyImageLoad&&d.params.onLazyImageLoad(d,b,c)},onLazyImageReady:function(b,c,e){a(c).removeClass("photo-browser-slide-lazy"),d.params.onLazyImageReady&&d.params.onLazyImageReady(d,c,e)}};d.params.swipeToClose&&"page"!==d.params.type&&(c.onTouchStart=d.swipeCloseTouchStart,c.onTouchMoveOpposite=d.swipeCloseTouchMove,c.onTouchEnd=d.swipeCloseTouchEnd),d.swiper=a.swiper(d.swiperContainer,c),0===b&&d.onSliderTransitionStart(d.swiper),d.attachEvents()},d.attachEvents=function(a){var b=a?"off":"on";if(d.params.zoom){var c=d.params.loop?d.swiper.slides:d.slides;c[b]("gesturestart",d.onSlideGestureStart),c[b]("gesturechange",d.onSlideGestureChange),c[b]("gestureend",d.onSlideGestureEnd),c[b]("touchstart",d.onSlideTouchStart),c[b]("touchmove",d.onSlideTouchMove),c[b]("touchend",d.onSlideTouchEnd)}d.container.find(".photo-browser-close-link")[b]("click",d.close)},d.exposed=!1,d.toggleExposition=function(){d.container&&d.container.toggleClass("photo-browser-exposed"),d.params.expositionHideCaptions&&d.captionsContainer.toggleClass("photo-browser-captions-exposed"),d.exposed=!d.exposed},d.enableExposition=function(){d.container&&d.container.addClass("photo-browser-exposed"),d.params.expositionHideCaptions&&d.captionsContainer.addClass("photo-browser-captions-exposed"),d.exposed=!0},d.disableExposition=function(){d.container&&d.container.removeClass("photo-browser-exposed"),d.params.expositionHideCaptions&&d.captionsContainer.removeClass("photo-browser-captions-exposed"),d.exposed=!1};var t,u,v,w=1,x=1,y=!1;d.onSlideGestureStart=function(){return t||(t=a(this),u=t.find("img, svg, canvas"),v=u.parent(".photo-browser-zoom-container"),0!==v.length)?(u.transition(0),void(y=!0)):void(u=void 0)},d.onSlideGestureChange=function(a){u&&0!==u.length&&(w=(a.scale||a.originalEvent.scale)*x,w>d.params.maxZoom&&(w=d.params.maxZoom-1+Math.pow(w-d.params.maxZoom+1,.5)),w<d.params.minZoom&&(w=d.params.minZoom+1-Math.pow(d.params.minZoom-w+1,.5)),u.transform("translate3d(0,0,0) scale("+w+")"))},d.onSlideGestureEnd=function(){u&&0!==u.length&&(w=Math.max(Math.min(w,d.params.maxZoom),d.params.minZoom),u.transition(d.params.speed).transform("translate3d(0,0,0) scale("+w+")"),x=w,y=!1,1===w&&(t=void 0))},d.toggleZoom=function(){t||(t=d.swiper.slides.eq(d.swiper.activeIndex),u=t.find("img, svg, canvas"),v=u.parent(".photo-browser-zoom-container")),u&&0!==u.length&&(v.transition(300).transform("translate3d(0,0,0)"),w&&1!==w?(w=x=1,u.transition(300).transform("translate3d(0,0,0) scale(1)"),t=void 0):(w=x=d.params.maxZoom,u.transition(300).transform("translate3d(0,0,0) scale("+w+")")))};var z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q={},R={};d.onSlideTouchStart=function(b){u&&0!==u.length&&(z||("android"===a.device.os&&b.preventDefault(),z=!0,Q=a.getTouchPosition(b)))},d.onSlideTouchMove=function(b){if(u&&0!==u.length&&(d.swiper.allowClick=!1,z&&t)){A||(H=u[0].offsetWidth,I=u[0].offsetHeight,J=a.getTranslate(v[0],"x")||0,K=a.getTranslate(v[0],"y")||0,v.transition(0));var c=H*w,e=I*w;if(!(c<d.swiper.width&&e<d.swiper.height)){if(D=Math.min(d.swiper.width/2-c/2,0),F=-D,E=Math.min(d.swiper.height/2-e/2,0),G=-E,R=a.getTouchPosition(b),!A&&!y&&(Math.floor(D)===Math.floor(J)&&R.x<Q.x||Math.floor(F)===Math.floor(J)&&R.x>Q.x))return void(z=!1);b.preventDefault(),b.stopPropagation(),A=!0,B=R.x-Q.x+J,C=R.y-Q.y+K,D>B&&(B=D+1-Math.pow(D-B+1,.8)),B>F&&(B=F-1+Math.pow(B-F+1,.8)),E>C&&(C=E+1-Math.pow(E-C+1,.8)),C>G&&(C=G-1+Math.pow(C-G+1,.8)),L||(L=R.x),O||(O=R.y),M||(M=Date.now()),N=(R.x-L)/(Date.now()-M)/2,P=(R.y-O)/(Date.now()-M)/2,Math.abs(R.x-L)<2&&(N=0),Math.abs(R.y-O)<2&&(P=0),L=R.x,O=R.y,M=Date.now(),v.transform("translate3d("+B+"px, "+C+"px,0)")}}},d.onSlideTouchEnd=function(){if(u&&0!==u.length){if(!z||!A)return z=!1,void(A=!1);z=!1,A=!1;var a=300,b=300,c=N*a,e=B+c,f=P*b,g=C+f;0!==N&&(a=Math.abs((e-B)/N)),0!==P&&(b=Math.abs((g-C)/P));var h=Math.max(a,b);B=e,C=g;var i=H*w,j=I*w;D=Math.min(d.swiper.width/2-i/2,0),F=-D,E=Math.min(d.swiper.height/2-j/2,0),G=-E,B=Math.max(Math.min(B,F),D),C=Math.max(Math.min(C,G),E),v.transition(h).transform("translate3d("+B+"px, "+C+"px,0)")}};var S,T,U,V,W,X=!1,Y=!0,Z=!1;return d.swipeCloseTouchStart=function(){Y&&(X=!0)},d.swipeCloseTouchMove=function(a,b){if(X){Z||(Z=!0,T="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,V=d.swiper.slides.eq(d.swiper.activeIndex),W=(new Date).getTime()),b.preventDefault(),U="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,S=T-U;var c=1-Math.abs(S)/300;V.transform("translate3d(0,"+-S+"px,0)"),d.swiper.container.css("opacity",c).transition(0)}},d.swipeCloseTouchEnd=function(){if(X=!1,!Z)return void(Z=!1);Z=!1,Y=!1;var b=Math.abs(S),c=(new Date).getTime()-W;return 300>c&&b>20||c>=300&&b>100?void setTimeout(function(){"standalone"===d.params.type&&d.close(),"popup"===d.params.type&&a.closeModal(d.popup),d.params.onSwipeToClose&&d.params.onSwipeToClose(d),Y=!0},0):(0!==b?V.addClass("transitioning").transitionEnd(function(){Y=!0,V.removeClass("transitioning")}):Y=!0,d.swiper.container.css("opacity","").transition(""),void V.transform(""))},d};b.prototype={defaults:{photos:[],container:"body",initialSlide:0,spaceBetween:20,speed:300,zoom:!0,maxZoom:3,minZoom:1,exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",swipeToClose:!0,backLinkText:"Close",ofText:"of",loop:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1}},a.photoBrowser=function(c){return a.extend(c,a.photoBrowser.prototype.defaults),new b(c)},a.photoBrowser.prototype={defaults:{}}}($);
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/light7.js b/fangija-zsyf/js/light7.js
    new file mode 100644
    index 0000000..b3817db
    --- /dev/null
    +++ b/fangija-zsyf/js/light7.js
    @@ -0,0 +1,5474 @@
    +/*!
    + * =====================================================
    + * light7 V0.4.3 - http://light7.org/
    + *
    + * =====================================================
    + */
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  //全局配置
    +  var defaults = {
    +    autoInit: false, //自动初始化页面
    +    showPageLoadingIndicator: true, //push.js加载页面的时候显示一个加载提示
    +    router: true, //默认使用router
    +    swipePanel: "left", //滑动打开侧栏
    +    swipePanelOnlyClose: false,  //只允许滑动关闭,不允许滑动打开侧栏
    +    pushAnimationDuration: 400  //不要动这个,这是解决安卓 animationEnd 事件无法触发的bug
    +  };
    +
    +  $.smConfig = $.extend(defaults, $.config);
    +
    +}($);
    +
    +/*===========================
    +Device/OS Detection
    +===========================*/
    +/* global $:true */
    +;(function ($) {
    +    "use strict";
    +    var device = {};
    +    var ua = navigator.userAgent;
    +
    +    var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
    +    var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
    +    var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
    +    var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/);
    +
    +    device.ios = device.android = device.iphone = device.ipad = device.androidChrome = false;
    +    
    +    // Android
    +    if (android) {
    +        device.os = 'android';
    +        device.osVersion = android[2];
    +        device.android = true;
    +        device.androidChrome = ua.toLowerCase().indexOf('chrome') >= 0;
    +    }
    +    if (ipad || iphone || ipod) {
    +        device.os = 'ios';
    +        device.ios = true;
    +    }
    +    // iOS
    +    if (iphone && !ipod) {
    +        device.osVersion = iphone[2].replace(/_/g, '.');
    +        device.iphone = true;
    +    }
    +    if (ipad) {
    +        device.osVersion = ipad[2].replace(/_/g, '.');
    +        device.ipad = true;
    +    }
    +    if (ipod) {
    +        device.osVersion = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
    +        device.iphone = true;
    +    }
    +    // iOS 8+ changed UA
    +    if (device.ios && device.osVersion && ua.indexOf('Version/') >= 0) {
    +        if (device.osVersion.split('.')[0] === '10') {
    +            device.osVersion = ua.toLowerCase().split('version/')[1].split(' ')[0];
    +        }
    +    }
    +
    +    // Webview
    +    device.webView = (iphone || ipad || ipod) && ua.match(/.*AppleWebKit(?!.*Safari)/i);
    +        
    +    // Minimal UI
    +    if (device.os && device.os === 'ios') {
    +        var osVersionArr = device.osVersion.split('.');
    +        device.minimalUi = !device.webView &&
    +                            (ipod || iphone) &&
    +                            (osVersionArr[0] * 1 === 7 ? osVersionArr[1] * 1 >= 1 : osVersionArr[0] * 1 > 7) &&
    +                            $('meta[name="viewport"]').length > 0 && $('meta[name="viewport"]').attr('content').indexOf('minimal-ui') >= 0;
    +    }
    +
    +    // Check for status bar and fullscreen app mode
    +    var windowWidth = $(window).width();
    +    var windowHeight = $(window).height();
    +    device.statusBar = false;
    +    if (device.webView && (windowWidth * windowHeight === screen.width * screen.height)) {
    +        device.statusBar = true;
    +    }
    +    else {
    +        device.statusBar = false;
    +    }
    +
    +    // Classes
    +    var classNames = [];
    +
    +    // Pixel Ratio
    +    device.pixelRatio = window.devicePixelRatio || 1;
    +    classNames.push('pixel-ratio-' + Math.floor(device.pixelRatio));
    +    if (device.pixelRatio >= 2) {
    +        classNames.push('retina');
    +    }
    +
    +    // OS classes
    +    if (device.os) {
    +        classNames.push(device.os, device.os + '-' + device.osVersion.split('.')[0], device.os + '-' + device.osVersion.replace(/\./g, '-'));
    +        if (device.os === 'ios') {
    +            var major = parseInt(device.osVersion.split('.')[0], 10);
    +            for (var i = major - 1; i >= 6; i--) {
    +                classNames.push('ios-gt-' + i);
    +            }
    +        }
    +        
    +    }
    +    // Status bar classes
    +    if (device.statusBar) {
    +        classNames.push('with-statusbar-overlay');
    +    }
    +    else {
    +        $('html').removeClass('with-statusbar-overlay');
    +    }
    +
    +    // Add html classes
    +    if (classNames.length > 0) $('html').addClass(classNames.join(' '));
    +
    +    $.device = device;
    +})($);
    +
    +/* global $:true */
    ++ function($) {
    +  "use strict";
    +
    +  //比较一个字符串版本号
    +  //a > b === 1
    +  //a = b === 0
    +  //a < b === -1
    +  $.compareVersion = function(a, b) {
    +    var as = a.split('.');
    +    var bs = b.split('.');
    +    if (a === b) return 0;
    +
    +    for (var i = 0; i < as.length; i++) {
    +      var x = parseInt(as[i]);
    +      if (!bs[i]) return 1;
    +      var y = parseInt(bs[i]);
    +      if (x < y) return -1;
    +      if (x > y) return 1;
    +    }
    +    return 1;
    +  };
    +
    +  $.getTouchPosition = function(e) {
    +    e = e.originalEvent || e; //jquery wrap the originevent
    +    if(e.type === 'touchstart' || e.type === 'touchmove' || e.type === 'touchend') {
    +      return {
    +        x: e.targetTouches[0].pageX,
    +        y: e.targetTouches[0].pageY
    +      };
    +    } else {
    +      return {
    +        x: e.pageX,
    +        y: e.pageY
    +      };
    +    }
    +  };
    +
    +}($);
    +
    +//     Zepto.js
    +//     (c) 2010-2015 Thomas Fuchs
    +//     Zepto.js may be freely distributed under the MIT license.
    ++ function($) {
    +  "use strict";
    +    function detect(ua, platform) {
    +        var os = this.os = {}, // jshint ignore:line
    +            browser = this.browser = {},// jshint ignore:line
    +            webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/),
    +            android = ua.match(/(Android);?[\s\/]+([\d.]+)?/),
    +            osx = !!ua.match(/\(Macintosh\; Intel /),
    +            ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
    +            ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/),
    +            iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),
    +            webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),
    +            win = /Win\d{2}|Windows/.test(platform),
    +            wp = ua.match(/Windows Phone ([\d.]+)/),
    +            touchpad = webos && ua.match(/TouchPad/),
    +            kindle = ua.match(/Kindle\/([\d.]+)/),
    +            silk = ua.match(/Silk\/([\d._]+)/),
    +            blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/),
    +            bb10 = ua.match(/(BB10).*Version\/([\d.]+)/),
    +            rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/),
    +            playbook = ua.match(/PlayBook/),
    +            chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/),
    +            firefox = ua.match(/Firefox\/([\d.]+)/),
    +            firefoxos = ua.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),
    +            ie = ua.match(/MSIE\s([\d.]+)/) || ua.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),
    +            webview = !chrome && ua.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),
    +            safari = webview || ua.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);
    +
    +        // Todo: clean this up with a better OS/browser seperation:
    +        // - discern (more) between multiple browsers on android
    +        // - decide if kindle fire in silk mode is android or not
    +        // - Firefox on Android doesn't specify the Android version
    +        // - possibly devide in os, device and browser hashes
    +
    +        if (browser.webkit = !!webkit) browser.version = webkit[1]; // jshint ignore:line
    +
    +        if (android) os.android = true, os.version = android[2];
    +        if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.');
    +        if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.');
    +        if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
    +        if (wp) os.wp = true, os.version = wp[1];
    +        if (webos) os.webos = true, os.version = webos[2];
    +        if (touchpad) os.touchpad = true;
    +        if (blackberry) os.blackberry = true, os.version = blackberry[2];
    +        if (bb10) os.bb10 = true, os.version = bb10[2];
    +        if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2];
    +        if (playbook) browser.playbook = true;
    +        if (kindle) os.kindle = true, os.version = kindle[1];
    +        if (silk) browser.silk = true, browser.version = silk[1];
    +        if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true;
    +        if (chrome) browser.chrome = true, browser.version = chrome[1];
    +        if (firefox) browser.firefox = true, browser.version = firefox[1];
    +        if (firefoxos) os.firefoxos = true, os.version = firefoxos[1];
    +        if (ie) browser.ie = true, browser.version = ie[1];
    +        if (safari && (osx || os.ios || win)) {
    +            browser.safari = true;
    +            if (!os.ios) browser.version = safari[1];
    +        }
    +        if (webview) browser.webview = true;
    +
    +        os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) ||
    +            (firefox && ua.match(/Tablet/)) || (ie && !ua.match(/Phone/) && ua.match(/Touch/)));
    +        os.phone = !!(!os.tablet && !os.ipod && (android || iphone || webos || blackberry || bb10 ||
    +            (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) ||
    +            (firefox && ua.match(/Mobile/)) || (ie && ua.match(/Touch/))));
    +    }
    +
    +    detect.call($, navigator.userAgent, navigator.platform);
    +        // make available to unit tests
    +    $.__detect = detect;
    +
    +}($); // jshint ignore:line
    +
    +/* global $:true */
    +/* global WebKitCSSMatrix:true */
    +
    +(function($) {
    +     "use strict";
    +    ['width', 'height'].forEach(function(dimension) {
    +        var  Dimension = dimension.replace(/./, function(m) {
    +            return m[0].toUpperCase();
    +        });
    +        $.fn['outer' + Dimension] = function(margin) {
    +            var elem = this;
    +            if (elem) {
    +                var size = elem[dimension]();
    +                var sides = {
    +                    'width': ['left', 'right'],
    +                    'height': ['top', 'bottom']
    +                };
    +                sides[dimension].forEach(function(side) {
    +                    if (margin) size += parseInt(elem.css('margin-' + side), 10);
    +                });
    +                return size;
    +            } else {
    +                return null;
    +            }
    +        };
    +    });
    +
    +    $.noop = function() {};
    +    
    +    //support
    +    $.support = (function() {
    +        var support = {
    +            touch: !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch)
    +        };
    +        return support;
    +    })();
    +
    +    $.touchEvents = {
    +        start: $.support.touch ? 'touchstart' : 'mousedown',
    +        move: $.support.touch ? 'touchmove' : 'mousemove',
    +        end: $.support.touch ? 'touchend' : 'mouseup'
    +    };
    +
    +    $.getTranslate = function (el, axis) {
    +      var matrix, curTransform, curStyle, transformMatrix;
    +
    +      // automatic axis detection
    +      if (typeof axis === 'undefined') {
    +        axis = 'x';
    +      }
    +
    +      curStyle = window.getComputedStyle(el, null);
    +      if (window.WebKitCSSMatrix) {
    +        // Some old versions of Webkit choke when 'none' is passed; pass
    +        // empty string instead in this case
    +        transformMatrix = new WebKitCSSMatrix(curStyle.webkitTransform === 'none' ? '' : curStyle.webkitTransform);
    +      }
    +      else {
    +        transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform  || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
    +        matrix = transformMatrix.toString().split(',');
    +      }
    +
    +      if (axis === 'x') {
    +        //Latest Chrome and webkits Fix
    +        if (window.WebKitCSSMatrix)
    +          curTransform = transformMatrix.m41;
    +        //Crazy IE10 Matrix
    +        else if (matrix.length === 16)
    +          curTransform = parseFloat(matrix[12]);
    +        //Normal Browsers
    +        else
    +          curTransform = parseFloat(matrix[4]);
    +      }
    +      if (axis === 'y') {
    +        //Latest Chrome and webkits Fix
    +        if (window.WebKitCSSMatrix)
    +          curTransform = transformMatrix.m42;
    +        //Crazy IE10 Matrix
    +        else if (matrix.length === 16)
    +          curTransform = parseFloat(matrix[13]);
    +        //Normal Browsers
    +        else
    +          curTransform = parseFloat(matrix[5]);
    +      }
    +
    +      return curTransform || 0;
    +    };
    +    $.requestAnimationFrame = function (callback) {
    +      if (window.requestAnimationFrame) return window.requestAnimationFrame(callback);
    +      else if (window.webkitRequestAnimationFrame) return window.webkitRequestAnimationFrame(callback);
    +      else if (window.mozRequestAnimationFrame) return window.mozRequestAnimationFrame(callback);
    +      else {
    +        return window.setTimeout(callback, 1000 / 60);
    +      }
    +    };
    +
    +    $.cancelAnimationFrame = function (id) {
    +      if (window.cancelAnimationFrame) return window.cancelAnimationFrame(id);
    +      else if (window.webkitCancelAnimationFrame) return window.webkitCancelAnimationFrame(id);
    +      else if (window.mozCancelAnimationFrame) return window.mozCancelAnimationFrame(id);
    +      else {
    +        return window.clearTimeout(id);
    +      }  
    +    };
    +
    +
    +    $.fn.transitionEnd = function(callback) {
    +        var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'],
    +            i, dom = this;
    +
    +        function fireCallBack(e) {
    +            /*jshint validthis:true */
    +            if (e.target !== this) return;
    +            callback.call(this, e);
    +            for (i = 0; i < events.length; i++) {
    +                dom.off(events[i], fireCallBack);
    +            }
    +        }
    +        if (callback) {
    +            for (i = 0; i < events.length; i++) {
    +                dom.on(events[i], fireCallBack);
    +            }
    +        }
    +        return this;
    +    };
    +    $.fn.dataset = function() {
    +        var el = this[0];
    +        if (el) {
    +            var dataset = {};
    +            if (el.dataset) {
    +
    +                for (var dataKey in el.dataset) { // jshint ignore:line
    +                    dataset[dataKey] = el.dataset[dataKey];
    +                }
    +            } else {
    +                for (var i = 0; i < el.attributes.length; i++) {
    +                    var attr = el.attributes[i];
    +                    if (attr.name.indexOf('data-') >= 0) {
    +                        dataset[$.toCamelCase(attr.name.split('data-')[1])] = attr.value;
    +                    }
    +                }
    +            }
    +            for (var key in dataset) {
    +                if (dataset[key] === 'false') dataset[key] = false;
    +                else if (dataset[key] === 'true') dataset[key] = true;
    +                else if (parseFloat(dataset[key]) === dataset[key] * 1) dataset[key] = dataset[key] * 1;
    +            }
    +            return dataset;
    +        } else return undefined;
    +    };
    +    $.fn.data = function(key, value) {
    +        if (typeof value === 'undefined') {
    +            // Get value
    +            if (this[0] && this[0].getAttribute) {
    +                var dataKey = this[0].getAttribute('data-' + key);
    +
    +                if (dataKey) {
    +                    return dataKey;
    +                } else if (this[0].smElementDataStorage && (key in this[0].smElementDataStorage)) {
    +                
    +
    +                    return this[0].smElementDataStorage[key];
    +
    +                } else {
    +                    return undefined;
    +                }
    +            } else return undefined;
    +
    +        } else {
    +            // Set value
    +            for (var i = 0; i < this.length; i++) {
    +                var el = this[i];
    +                if (!el.smElementDataStorage) el.smElementDataStorage = {};
    +                el.smElementDataStorage[key] = value;
    +            }
    +            return this;
    +        }
    +    };
    +    $.fn.animationEnd = function(callback) {
    +        var events = ['webkitAnimationEnd', 'OAnimationEnd', 'MSAnimationEnd', 'animationend'],
    +            i, dom = this;
    +
    +        function fireCallBack(e) {
    +            callback(e);
    +            for (i = 0; i < events.length; i++) {
    +                dom.off(events[i], fireCallBack);
    +            }
    +        }
    +        if (callback) {
    +            for (i = 0; i < events.length; i++) {
    +                dom.on(events[i], fireCallBack);
    +            }
    +        }
    +        return this;
    +    };
    +    $.fn.transition = function(duration) {
    +        if (typeof duration !== 'string') {
    +            duration = duration + 'ms';
    +        }
    +        for (var i = 0; i < this.length; i++) {
    +            var elStyle = this[i].style;
    +            elStyle.webkitTransitionDuration = elStyle.MsTransitionDuration = elStyle.msTransitionDuration = elStyle.MozTransitionDuration = elStyle.OTransitionDuration = elStyle.transitionDuration = duration;
    +        }
    +        return this;
    +    };
    +    $.fn.transform = function(transform) {
    +        for (var i = 0; i < this.length; i++) {
    +            var elStyle = this[i].style;
    +            elStyle.webkitTransform = elStyle.MsTransform = elStyle.msTransform = elStyle.MozTransform = elStyle.OTransform = elStyle.transform = transform;
    +        }
    +        return this;
    +    };
    +    $.fn.prevAll = function (selector) {
    +      var prevEls = [];
    +      var el = this[0];
    +      if (!el) return $([]);
    +      while (el.previousElementSibling) {
    +        var prev = el.previousElementSibling;
    +        if (selector) {
    +          if($(prev).is(selector)) prevEls.push(prev);
    +        }
    +        else prevEls.push(prev);
    +        el = prev;
    +      }
    +      return $(prevEls);
    +    };
    +    $.fn.nextAll = function (selector) {
    +      var nextEls = [];
    +      var el = this[0];
    +      if (!el) return $([]);
    +      while (el.nextElementSibling) {
    +        var next = el.nextElementSibling;
    +        if (selector) {
    +          if($(next).is(selector)) nextEls.push(next);
    +        }
    +        else nextEls.push(next);
    +        el = next;
    +      }
    +      return $(nextEls);
    +    };
    +
    +    //重置zepto的show方法,防止有些人引用的版本中 show 方法操作 opacity 属性影响动画执行
    +    $.fn.show = function(){
    +      var elementDisplay = {};
    +      function defaultDisplay(nodeName) {
    +        var element, display;
    +        if (!elementDisplay[nodeName]) {
    +          element = document.createElement(nodeName);
    +          document.body.appendChild(element);
    +          display = getComputedStyle(element, '').getPropertyValue("display");
    +          element.parentNode.removeChild(element);
    +          display === "none" && (display = "block");
    +          elementDisplay[nodeName] = display;
    +        }
    +        return elementDisplay[nodeName];
    +      }
    +
    +      return this.each(function(){
    +        this.style.display === "none" && (this.style.display = '');
    +        if (getComputedStyle(this, '').getPropertyValue("display") === "none");
    +          this.style.display = defaultDisplay(this.nodeName);
    +      });
    +    };
    +
    +    $.fn.scrollHeight = function() {
    +      return this[0].scrollHeight;
    +    };
    +})($);
    +
    +/* global $:true */
    +;(function ($) {
    +	'use strict';
    +
    +	/**
    +	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
    +	 *
    +	 * @codingstandard ftlabs-jsv2
    +	 * @copyright The Financial Times Limited [All Rights Reserved]
    +	 * @license MIT License (see LICENSE.txt)
    +	 */
    +
    +	/*jslint browser:true, node:true, elision:true*/
    +	/*global Event, Node*/
    +
    +
    +	/**
    +	 * Instantiate fast-clicking listeners on the specified layer.
    +	 *
    +	 * @constructor
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	function FastClick(layer, options) {
    +		var oldOnClick;
    +
    +		options = options || {};
    +
    +		/**
    +		 * Whether a click is currently being tracked.
    +		 *
    +		 * @type boolean
    +		 */
    +		this.trackingClick = false;
    +
    +
    +		/**
    +		 * Timestamp for when click tracking started.
    +		 *
    +		 * @type number
    +		 */
    +		this.trackingClickStart = 0;
    +
    +
    +		/**
    +		 * The element being tracked for a click.
    +		 *
    +		 * @type EventTarget
    +		 */
    +		this.targetElement = null;
    +
    +
    +		/**
    +		 * X-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartX = 0;
    +
    +
    +		/**
    +		 * Y-coordinate of touch start event.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchStartY = 0;
    +
    +
    +		/**
    +		 * ID of the last touch, retrieved from Touch.identifier.
    +		 *
    +		 * @type number
    +		 */
    +		this.lastTouchIdentifier = 0;
    +
    +
    +		/**
    +		 * Touchmove boundary, beyond which a click will be cancelled.
    +		 *
    +		 * @type number
    +		 */
    +		this.touchBoundary = options.touchBoundary || 10;
    +
    +
    +		/**
    +		 * The FastClick layer.
    +		 *
    +		 * @type Element
    +		 */
    +		this.layer = layer;
    +
    +		/**
    +		 * The minimum time between tap(touchstart and touchend) events
    +		 *
    +		 * @type number
    +		 */
    +		this.tapDelay = options.tapDelay || 200;
    +
    +		/**
    +		 * The maximum time for a tap
    +		 *
    +		 * @type number
    +		 */
    +		this.tapTimeout = options.tapTimeout || 700;
    +
    +		if (FastClick.notNeeded(layer)) {
    +			return;
    +		}
    +
    +		// Some old versions of Android don't have Function.prototype.bind
    +		function bind(method, context) {
    +			return function() { return method.apply(context, arguments); };
    +		}
    +
    +
    +		var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
    +		var context = this;
    +		for (var i = 0, l = methods.length; i < l; i++) {
    +			context[methods[i]] = bind(context[methods[i]], context);
    +		}
    +
    +		// Set up event handlers as required
    +		if (deviceIsAndroid) {
    +			layer.addEventListener('mouseover', this.onMouse, true);
    +			layer.addEventListener('mousedown', this.onMouse, true);
    +			layer.addEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.addEventListener('click', this.onClick, true);
    +		layer.addEventListener('touchstart', this.onTouchStart, false);
    +		layer.addEventListener('touchmove', this.onTouchMove, false);
    +		layer.addEventListener('touchend', this.onTouchEnd, false);
    +		layer.addEventListener('touchcancel', this.onTouchCancel, false);
    +
    +		// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +		// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
    +		// layer when they are cancelled.
    +		if (!Event.prototype.stopImmediatePropagation) {
    +			layer.removeEventListener = function(type, callback, capture) {
    +				var rmv = Node.prototype.removeEventListener;
    +				if (type === 'click') {
    +					rmv.call(layer, type, callback.hijacked || callback, capture);
    +				} else {
    +					rmv.call(layer, type, callback, capture);
    +				}
    +			};
    +
    +			layer.addEventListener = function(type, callback, capture) {
    +				var adv = Node.prototype.addEventListener;
    +				if (type === 'click') {
    +					adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
    +						if (!event.propagationStopped) {
    +							callback(event);
    +						}
    +					}), capture);
    +				} else {
    +					adv.call(layer, type, callback, capture);
    +				}
    +			};
    +		}
    +
    +		// If a handler is already declared in the element's onclick attribute, it will be fired before
    +		// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
    +		// adding it as listener.
    +		if (typeof layer.onclick === 'function') {
    +
    +			// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
    +			// - the old one won't work if passed to addEventListener directly.
    +			oldOnClick = layer.onclick;
    +			layer.addEventListener('click', function(event) {
    +				oldOnClick(event);
    +			}, false);
    +			layer.onclick = null;
    +		}
    +	}
    +
    +	/**
    +	* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
    +	*
    +	* @type boolean
    +	*/
    +	var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
    +
    +	/**
    +	 * Android requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
    +
    +
    +	/**
    +	 * iOS 4 requires an exception for select elements.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
    +
    +
    +	/**
    +	 * iOS 6.0-7.* requires the target element to be manually derived
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
    +
    +	/**
    +	 * BlackBerry requires exceptions.
    +	 *
    +	 * @type boolean
    +	 */
    +	var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
    +
    +	/**
    +	 * Determine whether a given element requires a native click.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element needs a native click
    +	 */
    +	FastClick.prototype.needsClick = function(target) {
    +
    +		switch (target.nodeName.toLowerCase()) {
    +
    +		// Don't send a synthetic click to disabled inputs (issue #62)
    +		case 'button':
    +		case 'select':
    +		case 'textarea':
    +			if (target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'input':
    +
    +			// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
    +			if ((deviceIsIOS && target.type === 'file') || target.disabled) {
    +				return true;
    +			}
    +
    +			break;
    +		case 'label':
    +		case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
    +		case 'video':
    +			return true;
    +    default:
    +		}
    +
    +
    +    
    +
    +		return (/\bneedsclick\b/).test(target.className);
    +	};
    +
    +
    +	/**
    +	 * Determine whether a given element requires a call to focus to simulate click into element.
    +	 *
    +	 * @param {EventTarget|Element} target Target DOM element
    +	 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
    +	 */
    +	FastClick.prototype.needsFocus = function(target) {
    +		switch (target.nodeName.toLowerCase()) {
    +		case 'textarea':
    +			return true;
    +		case 'select':
    +			return !deviceIsAndroid;
    +		case 'input':
    +			switch (target.type) {
    +			case 'button':
    +			case 'checkbox':
    +			case 'file':
    +			case 'image':
    +			case 'radio':
    +			case 'submit':
    +				return false;
    +			}
    +
    +			// No point in attempting to focus disabled inputs
    +			return !target.disabled && !target.readOnly;
    +		default:
    +			return (/\bneedsfocus\b/).test(target.className);
    +		}
    +	};
    +
    +
    +	/**
    +	 * Send a click event to the specified element.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 * @param {Event} event
    +	 */
    +	FastClick.prototype.sendClick = function(targetElement, event) {
    +		var clickEvent, touch;
    +
    +		// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
    +		if (document.activeElement && document.activeElement !== targetElement) {
    +			document.activeElement.blur();
    +		}
    +
    +		touch = event.changedTouches[0];
    +
    +		// Synthesise a click event, with an extra attribute so it can be tracked
    +		clickEvent = document.createEvent('MouseEvents');
    +		clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
    +		clickEvent.forwardedTouchEvent = true;
    +		targetElement.dispatchEvent(clickEvent);
    +	};
    +
    +	FastClick.prototype.determineEventType = function(targetElement) {
    +
    +		//Issue #159: Android Chrome Select Box does not open with a synthetic click event
    +		if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
    +			return 'mousedown';
    +		}
    +
    +		return 'click';
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.focus = function(targetElement) {
    +		var length;
    +
    +		// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
    +		if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
    +			length = targetElement.value.length;
    +			targetElement.setSelectionRange(length, length);
    +		} else {
    +			targetElement.focus();
    +		}
    +	};
    +
    +
    +	/**
    +	 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
    +	 *
    +	 * @param {EventTarget|Element} targetElement
    +	 */
    +	FastClick.prototype.updateScrollParent = function(targetElement) {
    +		var scrollParent, parentElement;
    +
    +		scrollParent = targetElement.fastClickScrollParent;
    +
    +		// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
    +		// target element was moved to another parent.
    +		if (!scrollParent || !scrollParent.contains(targetElement)) {
    +			parentElement = targetElement;
    +			do {
    +				if (parentElement.scrollHeight > parentElement.offsetHeight) {
    +					scrollParent = parentElement;
    +					targetElement.fastClickScrollParent = parentElement;
    +					break;
    +				}
    +
    +				parentElement = parentElement.parentElement;
    +			} while (parentElement);
    +		}
    +
    +		// Always update the scroll top tracker if possible.
    +		if (scrollParent) {
    +			scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
    +		}
    +	};
    +
    +
    +	/**
    +	 * @param {EventTarget} targetElement
    +	 * @returns {Element|EventTarget}
    +	 */
    +	FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
    +
    +		// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
    +		if (eventTarget.nodeType === Node.TEXT_NODE) {
    +			return eventTarget.parentNode;
    +		}
    +
    +		return eventTarget;
    +	};
    +
    +
    +	/**
    +	 * On touch start, record the position and scroll offset.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchStart = function(event) {
    +		var targetElement, touch, selection;
    +
    +		// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
    +		if (event.targetTouches.length > 1) {
    +			return true;
    +		}
    +
    +		targetElement = this.getTargetElementFromEventTarget(event.target);
    +		touch = event.targetTouches[0];
    +
    +		if (deviceIsIOS) {
    +
    +			// Only trusted events will deselect text on iOS (issue #49)
    +			selection = window.getSelection();
    +			if (selection.rangeCount && !selection.isCollapsed) {
    +				return true;
    +			}
    +
    +			if (!deviceIsIOS4) {
    +
    +				// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
    +				// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
    +				// with the same identifier as the touch event that previously triggered the click that triggered the alert.
    +				// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
    +				// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
    +				// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
    +				// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
    +				// random integers, it's safe to to continue if the identifier is 0 here.
    +				if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
    +					event.preventDefault();
    +					return false;
    +				}
    +
    +				this.lastTouchIdentifier = touch.identifier;
    +
    +				// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
    +				// 1) the user does a fling scroll on the scrollable layer
    +				// 2) the user stops the fling scroll with another tap
    +				// then the event.target of the last 'touchend' event will be the element that was under the user's finger
    +				// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
    +				// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
    +				this.updateScrollParent(targetElement);
    +			}
    +		}
    +
    +		this.trackingClick = true;
    +		this.trackingClickStart = event.timeStamp;
    +		this.targetElement = targetElement;
    +
    +		this.touchStartX = touch.pageX;
    +		this.touchStartY = touch.pageY;
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			event.preventDefault();
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.touchHasMoved = function(event) {
    +		var touch = event.changedTouches[0], boundary = this.touchBoundary;
    +
    +		if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Update the last position.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchMove = function(event) {
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// If the touch has moved, cancel the click tracking
    +		if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
    +			this.trackingClick = false;
    +			this.targetElement = null;
    +		}
    +
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * Attempt to find the labelled control for the given label element.
    +	 *
    +	 * @param {EventTarget|HTMLLabelElement} labelElement
    +	 * @returns {Element|null}
    +	 */
    +	FastClick.prototype.findControl = function(labelElement) {
    +
    +		// Fast path for newer browsers supporting the HTML5 control attribute
    +		if (labelElement.control !== undefined) {
    +			return labelElement.control;
    +		}
    +
    +		// All browsers under test that support touch events also support the HTML5 htmlFor attribute
    +		if (labelElement.htmlFor) {
    +			return document.getElementById(labelElement.htmlFor);
    +		}
    +
    +		// If no for attribute exists, attempt to retrieve the first labellable descendant element
    +		// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
    +		return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
    +	};
    +
    +
    +	/**
    +	 * On touch end, determine whether to send a click event at once.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onTouchEnd = function(event) {
    +		var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
    +
    +		if (!this.trackingClick) {
    +			return true;
    +		}
    +
    +		// Prevent phantom clicks on fast double-tap (issue #36)
    +		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
    +			this.cancelNextClick = true;
    +			return true;
    +		}
    +
    +		if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
    +			return true;
    +		}
    +
    +		// Reset to prevent wrong click cancel on input (issue #156).
    +		this.cancelNextClick = false;
    +
    +		this.lastClickTime = event.timeStamp;
    +
    +		trackingClickStart = this.trackingClickStart;
    +		this.trackingClick = false;
    +		this.trackingClickStart = 0;
    +
    +		// On some iOS devices, the targetElement supplied with the event is invalid if the layer
    +		// is performing a transition or scroll, and has to be re-detected manually. Note that
    +		// for this to function correctly, it must be called *after* the event target is checked!
    +		// See issue #57; also filed as rdar://13048589 .
    +		if (deviceIsIOSWithBadTarget) {
    +			touch = event.changedTouches[0];
    +
    +			// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
    +			targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
    +			targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
    +		}
    +
    +		targetTagName = targetElement.tagName.toLowerCase();
    +		if (targetTagName === 'label') {
    +			forElement = this.findControl(targetElement);
    +			if (forElement) {
    +				this.focus(targetElement);
    +				if (deviceIsAndroid) {
    +					return false;
    +				}
    +
    +				targetElement = forElement;
    +			}
    +		} else if (this.needsFocus(targetElement)) {
    +
    +			// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
    +			// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
    +			if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
    +				this.targetElement = null;
    +				return false;
    +			}
    +
    +			this.focus(targetElement);
    +			this.sendClick(targetElement, event);
    +
    +			// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
    +			// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
    +			if (!deviceIsIOS || targetTagName !== 'select') {
    +				this.targetElement = null;
    +				event.preventDefault();
    +			}
    +
    +			return false;
    +    } else {
    +      var parent = targetElement;
    +      while(parent && (parent.tagName.toUpperCase() !== "BODY")) {
    +        if(parent.tagName.toUpperCase() === "LABEL") {
    +          $(parent).find("input").click();
    +        }
    +        parent = parent.parentNode;
    +      }
    +    }
    +
    +		if (deviceIsIOS && !deviceIsIOS4) {
    +
    +			// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
    +			// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
    +			scrollParent = targetElement.fastClickScrollParent;
    +			if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
    +				return true;
    +			}
    +		}
    +
    +		// Prevent the actual click from going though - unless the target node is marked as requiring
    +		// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
    +		if (!this.needsClick(targetElement)) {
    +			event.preventDefault();
    +			this.sendClick(targetElement, event);
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * On touch cancel, stop tracking the click.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.onTouchCancel = function() {
    +		this.trackingClick = false;
    +		this.targetElement = null;
    +	};
    +
    +
    +	/**
    +	 * Determine mouse events which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onMouse = function(event) {
    +
    +		// If a target element was never set (because a touch event was never fired) allow the event
    +		if (!this.targetElement) {
    +			return true;
    +		}
    +
    +		if (event.forwardedTouchEvent) {
    +			return true;
    +		}
    +
    +		// Programmatically generated events targeting a specific element should be permitted
    +		if (!event.cancelable) {
    +			return true;
    +		}
    +
    +		// Derive and check the target element to see whether the mouse event needs to be permitted;
    +		// unless explicitly enabled, prevent non-touch click events from triggering actions,
    +		// to prevent ghost/doubleclicks.
    +		if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
    +
    +			// Prevent any user-added listeners declared on FastClick element from being fired.
    +			if (event.stopImmediatePropagation) {
    +				event.stopImmediatePropagation();
    +			} else {
    +
    +				// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
    +				event.propagationStopped = true;
    +			}
    +
    +			// Cancel the event
    +			event.stopPropagation();
    +			event.preventDefault();
    +
    +			return false;
    +		}
    +
    +		// If the mouse event is permitted, return true for the action to go through.
    +		return true;
    +	};
    +
    +
    +	/**
    +	 * On actual clicks, determine whether this is a touch-generated click, a click action occurring
    +	 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
    +	 * an actual click which should be permitted.
    +	 *
    +	 * @param {Event} event
    +	 * @returns {boolean}
    +	 */
    +	FastClick.prototype.onClick = function(event) {
    +		var permitted;
    +
    +		// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
    +		if (this.trackingClick) {
    +			this.targetElement = null;
    +			this.trackingClick = false;
    +			return true;
    +		}
    +
    +		// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
    +		if (event.target.type === 'submit' && event.detail === 0) {
    +			return true;
    +		}
    +
    +		permitted = this.onMouse(event);
    +
    +		// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
    +		if (!permitted) {
    +			this.targetElement = null;
    +		}
    +
    +		// If clicks are permitted, return true for the action to go through.
    +		return permitted;
    +	};
    +
    +
    +	/**
    +	 * Remove all FastClick's event listeners.
    +	 *
    +	 * @returns {void}
    +	 */
    +	FastClick.prototype.destroy = function() {
    +		var layer = this.layer;
    +
    +		if (deviceIsAndroid) {
    +			layer.removeEventListener('mouseover', this.onMouse, true);
    +			layer.removeEventListener('mousedown', this.onMouse, true);
    +			layer.removeEventListener('mouseup', this.onMouse, true);
    +		}
    +
    +		layer.removeEventListener('click', this.onClick, true);
    +		layer.removeEventListener('touchstart', this.onTouchStart, false);
    +		layer.removeEventListener('touchmove', this.onTouchMove, false);
    +		layer.removeEventListener('touchend', this.onTouchEnd, false);
    +		layer.removeEventListener('touchcancel', this.onTouchCancel, false);
    +	};
    +
    +
    +	/**
    +	 * Check whether FastClick is needed.
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 */
    +	FastClick.notNeeded = function(layer) {
    +		var metaViewport;
    +		var chromeVersion;
    +		var blackberryVersion;
    +		var firefoxVersion;
    +
    +		// Devices that don't support touch don't need FastClick
    +		if (typeof window.ontouchstart === 'undefined') {
    +			return true;
    +		}
    +
    +		// Chrome version - zero for other browsers
    +		chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (chromeVersion) {
    +
    +			if (deviceIsAndroid) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// Chrome 32 and above with width=device-width or less don't need FastClick
    +					if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +
    +			// Chrome desktop doesn't need FastClick (issue #15)
    +			} else {
    +				return true;
    +			}
    +		}
    +
    +		if (deviceIsBlackBerry10) {
    +			blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
    +
    +			// BlackBerry 10.3+ does not require Fastclick library.
    +			// https://github.com/ftlabs/fastclick/issues/251
    +			if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
    +				metaViewport = document.querySelector('meta[name=viewport]');
    +
    +				if (metaViewport) {
    +					// user-scalable=no eliminates click delay.
    +					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
    +						return true;
    +					}
    +					// width=device-width (or less than device-width) eliminates click delay.
    +					if (document.documentElement.scrollWidth <= window.outerWidth) {
    +						return true;
    +					}
    +				}
    +			}
    +		}
    +
    +		// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
    +		if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		// Firefox version - zero for other browsers
    +		firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
    +
    +		if (firefoxVersion >= 27) {
    +			// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
    +
    +			metaViewport = document.querySelector('meta[name=viewport]');
    +			if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
    +				return true;
    +			}
    +		}
    +
    +		// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
    +		// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
    +		if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
    +			return true;
    +		}
    +
    +		return false;
    +	};
    +
    +
    +	/**
    +	 * Factory method for creating a FastClick object
    +	 *
    +	 * @param {Element} layer The layer to listen on
    +	 * @param {Object} [options={}] The options to override the defaults
    +	 */
    +	FastClick.attach = function(layer, options) {
    +		return new FastClick(layer, options);
    +	};
    +
    +  //直接绑定
    +  $(function() {
    +    FastClick.attach(document.body);
    +  });
    +}($));
    +
    +/*===========================
    +  Template7 Template engine
    +  ===========================*/
    +/* global $:true */
    +/* jshint unused:false */
    +/* jshint forin:false */
    ++function ($) {
    +  "use strict";
    +  $.Template7 = $.t7 = (function () {
    +    function isArray(arr) {
    +      return Object.prototype.toString.apply(arr) === '[object Array]';
    +    }
    +    function isObject(obj) {
    +      return obj instanceof Object;
    +    }
    +    function isFunction(func) {
    +      return typeof func === 'function';
    +    }
    +    var cache = {};
    +    function helperToSlices(string) {
    +      var helperParts = string.replace(/[{}#}]/g, '').split(' ');
    +      var slices = [];
    +      var shiftIndex, i, j;
    +      for (i = 0; i < helperParts.length; i++) {
    +        var part = helperParts[i];
    +        if (i === 0) slices.push(part);
    +        else {
    +          if (part.indexOf('"') === 0) {
    +            // Plain String
    +            if (part.match(/"/g).length === 2) {
    +              // One word string
    +              slices.push(part);
    +            }
    +            else {
    +              // Find closed Index
    +              shiftIndex = 0;
    +              for (j = i + 1; j < helperParts.length; j++) {
    +                part += ' ' + helperParts[j];
    +                if (helperParts[j].indexOf('"') >= 0) {
    +                  shiftIndex = j;
    +                  slices.push(part);
    +                  break;
    +                }
    +              }
    +              if (shiftIndex) i = shiftIndex;
    +            }
    +          }
    +          else {
    +            if (part.indexOf('=') > 0) {
    +              // Hash
    +              var hashParts = part.split('=');
    +              var hashName = hashParts[0];
    +              var hashContent = hashParts[1];
    +              if (hashContent.match(/"/g).length !== 2) {
    +                shiftIndex = 0;
    +                for (j = i + 1; j < helperParts.length; j++) {
    +                  hashContent += ' ' + helperParts[j];
    +                  if (helperParts[j].indexOf('"') >= 0) {
    +                    shiftIndex = j;
    +                    break;
    +                  }
    +                }
    +                if (shiftIndex) i = shiftIndex;
    +              }
    +              var hash = [hashName, hashContent.replace(/"/g,'')];
    +              slices.push(hash);
    +            }
    +            else {
    +              // Plain variable
    +              slices.push(part);
    +            }
    +          }
    +        }
    +      }
    +      return slices;
    +    }
    +    function stringToBlocks(string) {
    +      var blocks = [], i, j, k;
    +      if (!string) return [];
    +      var _blocks = string.split(/({{[^{^}]*}})/);
    +      for (i = 0; i < _blocks.length; i++) {
    +        var block = _blocks[i];
    +        if (block === '') continue;
    +        if (block.indexOf('{{') < 0) {
    +          blocks.push({
    +            type: 'plain',
    +            content: block
    +          });
    +        }
    +        else {
    +          if (block.indexOf('{/') >= 0) {
    +            continue;
    +          }
    +          if (block.indexOf('{#') < 0 && block.indexOf(' ') < 0 && block.indexOf('else') < 0) {
    +            // Simple variable
    +            blocks.push({
    +              type: 'variable',
    +              contextName: block.replace(/[{}]/g, '')
    +            });
    +            continue;
    +          }
    +          // Helpers
    +          var helperSlices = helperToSlices(block);
    +          var helperName = helperSlices[0];
    +          var helperContext = [];
    +          var helperHash = {};
    +          for (j = 1; j < helperSlices.length; j++) {
    +            var slice = helperSlices[j];
    +            if (isArray(slice)) {
    +              // Hash
    +              helperHash[slice[0]] = slice[1] === 'false' ? false : slice[1];
    +            }
    +            else {
    +              helperContext.push(slice);
    +            }
    +          }
    +
    +          if (block.indexOf('{#') >= 0) {
    +            // Condition/Helper
    +            var helperStartIndex = i;
    +            var helperContent = '';
    +            var elseContent = '';
    +            var toSkip = 0;
    +            var shiftIndex;
    +            var foundClosed = false, foundElse = false, foundClosedElse = false, depth = 0;
    +            for (j = i + 1; j < _blocks.length; j++) {
    +              if (_blocks[j].indexOf('{{#') >= 0) {
    +                depth ++;
    +              }
    +              if (_blocks[j].indexOf('{{/') >= 0) {
    +                depth --;
    +              }
    +              if (_blocks[j].indexOf('{{#' + helperName) >= 0) {
    +                helperContent += _blocks[j];
    +                if (foundElse) elseContent += _blocks[j];
    +                toSkip ++;
    +              }
    +              else if (_blocks[j].indexOf('{{/' + helperName) >= 0) {
    +                if (toSkip > 0) {
    +                  toSkip--;
    +                  helperContent += _blocks[j];
    +                  if (foundElse) elseContent += _blocks[j];
    +                }
    +                else {
    +                  shiftIndex = j;
    +                  foundClosed = true;
    +                  break;
    +                }
    +              }
    +              else if (_blocks[j].indexOf('else') >= 0 && depth === 0) {
    +                foundElse = true;
    +              }
    +              else {
    +                if (!foundElse) helperContent += _blocks[j];
    +                if (foundElse) elseContent += _blocks[j];
    +              }
    +
    +            }
    +            if (foundClosed) {
    +              if (shiftIndex) i = shiftIndex;
    +              blocks.push({
    +                type: 'helper',
    +                helperName: helperName,
    +                contextName: helperContext,
    +                content: helperContent,
    +                inverseContent: elseContent,
    +                hash: helperHash
    +              });
    +            }
    +          }
    +          else if (block.indexOf(' ') > 0) {
    +            blocks.push({
    +              type: 'helper',
    +              helperName: helperName,
    +              contextName: helperContext,
    +              hash: helperHash
    +            });
    +          }
    +        }
    +      }
    +      return blocks;
    +    }
    +    var Template7 = function (template) {
    +      var t = this;
    +      t.template = template;
    +
    +      function getCompileFn(block, depth) {
    +        if (block.content) return compile(block.content, depth);
    +        else return function () {return ''; };
    +      }
    +      function getCompileInverse(block, depth) {
    +        if (block.inverseContent) return compile(block.inverseContent, depth);
    +        else return function () {return ''; };
    +      }
    +      function getCompileVar(name, ctx) {
    +        var variable, parts, levelsUp = 0, initialCtx = ctx;
    +        if (name.indexOf('../') === 0) {
    +          levelsUp = name.split('../').length - 1;
    +          var newDepth = ctx.split('_')[1] - levelsUp;
    +          ctx = 'ctx_' + (newDepth >= 1 ? newDepth : 1);
    +          parts = name.split('../')[levelsUp].split('.');
    +        }
    +        else if (name.indexOf('@global') === 0) {
    +          ctx = '$.Template7.global';
    +          parts = name.split('@global.')[1].split('.');
    +        }
    +        else if (name.indexOf('@root') === 0) {
    +          ctx = 'ctx_1';
    +          parts = name.split('@root.')[1].split('.');
    +        }
    +        else {
    +          parts = name.split('.');
    +        }
    +        variable = ctx;
    +        for (var i = 0; i < parts.length; i++) {
    +          var part = parts[i];
    +          if (part.indexOf('@') === 0) {
    +            if (i > 0) {
    +              variable += '[(data && data.' + part.replace('@', '') + ')]';
    +            }
    +            else {
    +              variable = '(data && data.' + name.replace('@', '') + ')';
    +            }
    +          }
    +          else {
    +            if (isFinite(part)) {
    +              variable += '[' + part + ']';
    +            }
    +            else {
    +              if (part.indexOf('this') === 0) {
    +                variable = part.replace('this', ctx);
    +              }
    +              else {
    +                variable += '.' + part;       
    +              }
    +            }
    +          }
    +        }
    +
    +        return variable;
    +      }
    +      function getCompiledArguments(contextArray, ctx) {
    +        var arr = [];
    +        for (var i = 0; i < contextArray.length; i++) {
    +          if (contextArray[i].indexOf('"') === 0) arr.push(contextArray[i]);
    +          else {
    +            arr.push(getCompileVar(contextArray[i], ctx));
    +          }
    +        }
    +        return arr.join(', ');
    +      }
    +      function compile(template, depth) {
    +        depth = depth || 1;
    +        template = template || t.template;
    +        if (typeof template !== 'string') {
    +          throw new Error('Template7: Template must be a string');
    +        }
    +        var blocks = stringToBlocks(template);
    +        if (blocks.length === 0) {
    +          return function () { return ''; };
    +        }
    +        var ctx = 'ctx_' + depth;
    +        var resultString = '(function (' + ctx + ', data) {\n';
    +        if (depth === 1) {
    +          resultString += 'function isArray(arr){return Object.prototype.toString.apply(arr) === \'[object Array]\';}\n';
    +          resultString += 'function isFunction(func){return (typeof func === \'function\');}\n';
    +          resultString += 'function c(val, ctx) {if (typeof val !== "undefined") {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n';
    +        }
    +        resultString += 'var r = \'\';\n';
    +        var i, j, context;
    +        for (i = 0; i < blocks.length; i++) {
    +          var block = blocks[i];
    +          // Plain block
    +          if (block.type === 'plain') {
    +            resultString += 'r +=\'' + (block.content).replace(/\r/g, '\\r').replace(/\n/g, '\\n').replace(/'/g, '\\' + '\'') + '\';';
    +            continue;
    +          }
    +          var variable, compiledArguments;
    +          // Variable block
    +          if (block.type === 'variable') {
    +            variable = getCompileVar(block.contextName, ctx);
    +            resultString += 'r += c(' + variable + ', ' + ctx + ');';
    +          }
    +          // Helpers block
    +          if (block.type === 'helper') {
    +            if (block.helperName in t.helpers) {
    +              compiledArguments = getCompiledArguments(block.contextName, ctx);
    +              resultString += 'r += ($.Template7.helpers.' + block.helperName + ').call(' + ctx + ', ' + (compiledArguments && (compiledArguments + ', ')) +'{hash:' + JSON.stringify(block.hash) + ', data: data || {}, fn: ' + getCompileFn(block, depth+1) + ', inverse: ' + getCompileInverse(block, depth+1) + ', root: ctx_1});';
    +            }
    +            else {
    +              if (block.contextName.length > 0) {
    +                throw new Error('Template7: Missing helper: "' + block.helperName + '"');
    +              }
    +              else {
    +                variable = getCompileVar(block.helperName, ctx);
    +                resultString += 'if (' + variable + ') {';
    +                resultString += 'if (isArray(' + variable + ')) {';
    +                resultString += 'r += ($.Template7.helpers.each).call(' + ctx + ', ' + variable + ', {hash:' + JSON.stringify(block.hash) + ', data: data || {}, fn: ' + getCompileFn(block, depth+1) + ', inverse: ' + getCompileInverse(block, depth+1) + ', root: ctx_1});';
    +                resultString += '}else {';
    +                resultString += 'r += ($.Template7.helpers.with).call(' + ctx + ', ' + variable + ', {hash:' + JSON.stringify(block.hash) + ', data: data || {}, fn: ' + getCompileFn(block, depth+1) + ', inverse: ' + getCompileInverse(block, depth+1) + ', root: ctx_1});';
    +                resultString += '}}';
    +              }
    +            }
    +          }
    +        }
    +        resultString += '\nreturn r;})';
    +        return eval.call(window, resultString);
    +      }
    +      t.compile = function (template) {
    +        if (!t.compiled) {
    +          t.compiled = compile(template);
    +        }
    +        return t.compiled;
    +      };
    +    };
    +    Template7.prototype = {
    +      options: {},
    +      helpers: {
    +        'if': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          if (context) {
    +            return options.fn(this, options.data);
    +          }
    +          else {
    +            return options.inverse(this, options.data);
    +          }
    +        },
    +        'unless': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          if (!context) {
    +            return options.fn(this, options.data);
    +          }
    +          else {
    +            return options.inverse(this, options.data);
    +          }
    +        },
    +        'each': function (context, options) {
    +          var ret = '', i = 0;
    +          if (isFunction(context)) { context = context.call(this); }
    +          if (isArray(context)) {
    +            if (options.hash.reverse) {
    +              context = context.reverse();
    +            }
    +            for (i = 0; i < context.length; i++) {
    +              ret += options.fn(context[i], {first: i === 0, last: i === context.length - 1, index: i});
    +            }
    +            if (options.hash.reverse) {
    +              context = context.reverse();
    +            }
    +          }
    +          else {
    +            for (var key in context) {
    +              i++;
    +              ret += options.fn(context[key], {key: key});
    +            }
    +          }
    +          if (i > 0) return ret;
    +          else return options.inverse(this);
    +        },
    +        'with': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          return options.fn(context);
    +        },
    +        'join': function (context, options) {
    +          if (isFunction(context)) { context = context.call(this); }
    +          return context.join(options.hash.delimiter || options.hash.delimeter);
    +        },
    +        'js': function (expression, options) {
    +          var func;
    +          if (expression.indexOf('return')>=0) {
    +            func = '(function(){'+expression+'})';
    +          }
    +          else {
    +            func = '(function(){return ('+expression+')})';
    +          }
    +          return eval.call(this, func).call(this);
    +        },
    +        'js_compare': function (expression, options) {
    +          var func;
    +          if (expression.indexOf('return')>=0) {
    +            func = '(function(){'+expression+'})';
    +          }
    +          else {
    +            func = '(function(){return ('+expression+')})';
    +          }
    +          var condition = eval.call(this, func).call(this);
    +          if (condition) {
    +            return options.fn(this, options.data);
    +          }
    +          else {
    +            return options.inverse(this, options.data);   
    +          }
    +        }
    +      }
    +    };
    +    var t7 = function (template, data) {
    +      if (arguments.length === 2) {
    +        var instance = new Template7(template);
    +        var rendered = instance.compile()(data);
    +        instance = null;
    +        return (rendered);
    +      }
    +      else return new Template7(template);
    +    };
    +    t7.registerHelper = function (name, fn) {
    +      Template7.prototype.helpers[name] = fn;
    +    };
    +    t7.unregisterHelper = function (name) {
    +      Template7.prototype.helpers[name] = undefined;  
    +      delete Template7.prototype.helpers[name];
    +    };
    +
    +    t7.compile = function (template, options) {
    +      var instance = new Template7(template, options);
    +      return instance.compile();
    +    };
    +
    +    t7.options = Template7.prototype.options;
    +    t7.helpers = Template7.prototype.helpers;
    +    return t7;
    +  })();
    +}($);
    +
    +/* global $:true */
    ++ function($) {
    +  "use strict";
    +  
    +  $.getCurrentPage = function() {
    +    return $(".page")[0] || document.body;
    +  };
    +}($);
    +
    +/* ===============================================================================
    +************   Tabs   ************
    +=============================================================================== */
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  var showTab = function (tab, tabLink, force) {
    +    var newTab = $(tab);
    +
    +    var activeClass = newTab.hasClass("page") ? "page-current" : "active";
    +    if (arguments.length === 2) {
    +      if (typeof tabLink === 'boolean') {
    +        force = tabLink;
    +      }
    +    }
    +    if (newTab.length === 0) return false;
    +    if (newTab.hasClass(activeClass)) {
    +      if (force) newTab.trigger('show');
    +      return false;
    +    }
    +    var tabs = newTab.parent('.tabs');
    +    if (tabs.length === 0) return false;
    +
    +    // Animated tabs
    +    /*var isAnimatedTabs = tabs.parent().hasClass('tabs-animated-wrap');
    +      if (isAnimatedTabs) {
    +      tabs.transform('translate3d(' + -newTab.index() * 100 + '%,0,0)');
    +      }*/
    +
    +    // Remove active class from old tabs
    +    var oldTab = tabs.children('.tab.'+activeClass).removeClass(activeClass);
    +    // Add active class to new tab
    +    newTab.addClass(activeClass);
    +    // Trigger 'show' event on new tab
    +    newTab.trigger('show');
    +
    +    // Update navbars in new tab
    +    /*if (!isAnimatedTabs && newTab.find('.navbar').length > 0) {
    +    // Find tab's view
    +    var viewContainer;
    +    if (newTab.hasClass(app.params.viewClass)) viewContainer = newTab[0];
    +    else viewContainer = newTab.parents('.' + app.params.viewClass)[0];
    +    app.sizeNavbars(viewContainer);
    +    }*/
    +
    +    // Find related link for new tab
    +    if (tabLink) tabLink = $(tabLink);
    +    else {
    +      // Search by id
    +      if (typeof tab === 'string') tabLink = $('.tab-link[href="' + tab + '"]');
    +      else tabLink = $('.tab-link[href="#' + newTab.attr('id') + '"]');
    +      // Search by data-tab
    +      if (!tabLink || tabLink && tabLink.length === 0) {
    +        $('[data-tab]').each(function () {
    +          if (newTab.is($(this).attr('data-tab'))) tabLink = $(this);
    +        });
    +      }
    +    }
    +    if (tabLink.length === 0) return;
    +
    +    // Find related link for old tab
    +    var oldTabLink;
    +    if (oldTab && oldTab.length > 0) {
    +      // Search by id
    +      var oldTabId = oldTab.attr('id');
    +      if (oldTabId) oldTabLink = $('.tab-link[href="#' + oldTabId + '"]');
    +      // Search by data-tab
    +      if (!oldTabLink || oldTabLink && oldTabLink.length === 0) {
    +        $('[data-tab]').each(function () {
    +          if (oldTab.is($(this).attr('data-tab'))) oldTabLink = $(this);
    +        });
    +      }
    +    }
    +
    +    // Update links' classes
    +    if (tabLink && tabLink.length > 0) tabLink.addClass('active');
    +    if (oldTabLink && oldTabLink.length > 0) oldTabLink.removeClass('active');
    +
    +    return true;
    +  };
    +
    +  var old = $.showTab;
    +  $.showTab = showTab;
    +
    +  $.showTab.noConflict = function () {
    +    $.showTab = old;
    +    return this;
    +  };
    +
    +
    +  $(document).on("click", ".tab-link", function(e) {
    +    e.preventDefault();
    +    var clicked = $(this);
    +    showTab(clicked.data("tab") || clicked.attr('href'), clicked);
    +  });
    +}($);
    +
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +  $(document).on("click", ".tab-item", function(e) {
    +    var $target = $(e.currentTarget);
    +    if(!$target.hasClass("tab-link")) {
    +      $target.parent().find(".active").removeClass("active");
    +      $target.addClass("active");
    +    }
    +  });
    +
    +  var highlight = function(e, pageId) {
    +    var $tab = $(".bar-tab .tab-item[href='#"+pageId+"']");
    +    $tab.parent().find(".active").removeClass("active");
    +    $tab.addClass("active");
    +  };
    +  $(document).on("pageInit", highlight);
    +  $(document).on("pageReinit", highlight);
    +
    +  $.showToolbar = function(show) {
    +    $(document.body)[show ? "removeClass" : "addClass"]("tabbar-hidden");
    +  };
    +
    +}($);
    +
    +/*======================================================
    +************   Modals   ************
    +======================================================*/
    +/*jshint unused: false*/
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +    var _modalTemplateTempDiv = document.createElement('div');
    +
    +    $.modalStack = [];
    +    var t7 = $.Template7;
    +
    +    $.modalStackClearQueue = function () {
    +        if ($.modalStack.length) {
    +            ($.modalStack.shift())();
    +        }
    +    };
    +    $.modal = function (params) {
    +        params = params || {};
    +        var modalHTML = '';
    +        if (defaults.modalTemplate) {
    +            if (!$._compiledTemplates.modal) $._compiledTemplates.modal = t7.compile(defaults.modalTemplate);
    +            modalHTML = $._compiledTemplates.modal(params);
    +        }
    +        else {
    +            var buttonsHTML = '';
    +            if (params.buttons && params.buttons.length > 0) {
    +                for (var i = 0; i < params.buttons.length; i++) {
    +                    buttonsHTML += '<span class="modal-button' + (params.buttons[i].bold ? ' modal-button-bold' : '') + '">' + params.buttons[i].text + '</span>';
    +                }
    +            }
    +            var titleHTML = params.title ? '<div class="modal-title">' + params.title + '</div>' : '';
    +            var textHTML = params.text ? '<div class="modal-text">' + params.text + '</div>' : '';
    +            var afterTextHTML = params.afterText ? params.afterText : '';
    +            var noButtons = !params.buttons || params.buttons.length === 0 ? 'modal-no-buttons' : '';
    +            var verticalButtons = params.verticalButtons ? 'modal-buttons-vertical' : '';
    +            modalHTML = '<div class="modal ' + noButtons + '"><div class="modal-inner">' + (titleHTML + textHTML + afterTextHTML) + '</div><div class="modal-buttons ' + verticalButtons + '">' + buttonsHTML + '</div></div>';
    +        }
    +        
    +        _modalTemplateTempDiv.innerHTML = modalHTML;
    +
    +        var modal = $(_modalTemplateTempDiv).children();
    +
    +        $(defaults.modalContainer).append(modal[0]);
    +        
    +        // Add events on buttons
    +        modal.find('.modal-button').each(function (index, el) {
    +            $(el).on('click', function (e) {
    +                if (params.buttons[index].close !== false) $.closeModal(modal);
    +                if (params.buttons[index].onClick) params.buttons[index].onClick(modal, e);
    +                if (params.onClick) params.onClick(modal, index);
    +            });
    +        });
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.alert = function (text, title, callbackOk) {
    +        if (typeof title === 'function') {
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            buttons: [ {text: defaults.modalButtonOk, bold: true, onClick: callbackOk} ]
    +        });
    +    };
    +    $.confirm = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            buttons: [
    +                {text: defaults.modalButtonCancel, onClick: callbackCancel},
    +                {text: defaults.modalButtonOk, bold: true, onClick: callbackOk}
    +            ]
    +        });
    +    };
    +    $.prompt = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            afterText: '<input type="text" class="modal-text-input">',
    +            buttons: [
    +                {
    +                    text: defaults.modalButtonCancel
    +                },
    +                {
    +                    text: defaults.modalButtonOk,
    +                    bold: true
    +                }
    +            ],
    +            onClick: function (modal, index) {
    +                if (index === 0 && callbackCancel) callbackCancel($(modal).find('.modal-text-input').val());
    +                if (index === 1 && callbackOk) callbackOk($(modal).find('.modal-text-input').val());
    +            }
    +        });
    +    };
    +    $.modalLogin = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            afterText: '<input type="text" name="modal-username" placeholder="' + defaults.modalUsernamePlaceholder + '" class="modal-text-input modal-text-input-double"><input type="password" name="modal-password" placeholder="' + defaults.modalPasswordPlaceholder + '" class="modal-text-input modal-text-input-double">',
    +            buttons: [
    +                {
    +                    text: defaults.modalButtonCancel
    +                },
    +                {
    +                    text: defaults.modalButtonOk,
    +                    bold: true
    +                }
    +            ],
    +            onClick: function (modal, index) {
    +                var username = $(modal).find('.modal-text-input[name="modal-username"]').val();
    +                var password = $(modal).find('.modal-text-input[name="modal-password"]').val();
    +                if (index === 0 && callbackCancel) callbackCancel(username, password);
    +                if (index === 1 && callbackOk) callbackOk(username, password);
    +            }
    +        });
    +    };
    +    $.modalPassword = function (text, title, callbackOk, callbackCancel) {
    +        if (typeof title === 'function') {
    +            callbackCancel = arguments[2];
    +            callbackOk = arguments[1];
    +            title = undefined;
    +        }
    +        return $.modal({
    +            text: text || '',
    +            title: typeof title === 'undefined' ? defaults.modalTitle : title,
    +            afterText: '<input type="password" name="modal-password" placeholder="' + defaults.modalPasswordPlaceholder + '" class="modal-text-input">',
    +            buttons: [
    +                {
    +                    text: defaults.modalButtonCancel
    +                },
    +                {
    +                    text: defaults.modalButtonOk,
    +                    bold: true
    +                }
    +            ],
    +            onClick: function (modal, index) {
    +                var password = $(modal).find('.modal-text-input[name="modal-password"]').val();
    +                if (index === 0 && callbackCancel) callbackCancel(password);
    +                if (index === 1 && callbackOk) callbackOk(password);
    +            }
    +        });
    +    };
    +    $.showPreloader = function (title) {
    +        return $.modal({
    +            title: title || defaults.modalPreloaderTitle,
    +            text: '<div class="preloader"></div>'
    +        });
    +    };
    +    $.hidePreloader = function () {
    +        $.closeModal('.modal.modal-in');
    +    };
    +    $.showIndicator = function () {
    +        $(defaults.modalContainer).append('<div class="preloader-indicator-overlay"></div><div class="preloader-indicator-modal"><span class="preloader preloader-white"></span></div>');
    +    };
    +    $.hideIndicator = function () {
    +        $('.preloader-indicator-overlay, .preloader-indicator-modal').remove();
    +    };
    +    // Action Sheet
    +    $.actions = function (target, params) {
    +        var toPopover = false, modal, groupSelector, buttonSelector;
    +        if (arguments.length === 1) {
    +            // Actions
    +            params = target;
    +        } 
    +        else {
    +            // Popover
    +            if ($.device.ios) {
    +                if ($.device.ipad) toPopover = true;
    +            }
    +            else {
    +                if ($(window).width() >= 768) toPopover = true;
    +            }
    +        }
    +        params = params || [];
    +        
    +        if (params.length > 0 && !$.isArray(params[0])) {
    +            params = [params];
    +        }
    +        var modalHTML;
    +        if (toPopover) {
    +            var actionsToPopoverTemplate = defaults.modalActionsToPopoverTemplate || 
    +                '<div class="popover actions-popover">' +
    +                  '<div class="popover-inner">' +
    +                    '{{#each this}}' +
    +                    '<div class="list-block">' +
    +                      '<ul>' +
    +                        '{{#each this}}' +
    +                        '{{#if label}}' +
    +                        '<li class="actions-popover-label {{#if color}}color-{{color}}{{/if}} {{#if bold}}actions-popover-bold{{/if}}">{{text}}</li>' +
    +                        '{{else}}' +
    +                        '<li><a href="#" class="item-link list-button {{#if color}}color-{{color}}{{/if}} {{#if bg}}bg-{{bg}}{{/if}} {{#if bold}}actions-popover-bold{{/if}} {{#if disabled}}disabled{{/if}}">{{text}}</a></li>' +
    +                        '{{/if}}' +
    +                        '{{/each}}' +
    +                      '</ul>' +
    +                    '</div>' +
    +                    '{{/each}}' +
    +                  '</div>' +
    +                '</div>';
    +            if (!$._compiledTemplates.actionsToPopover) {
    +                $._compiledTemplates.actionsToPopover = t7.compile(actionsToPopoverTemplate);
    +            }
    +            var popoverHTML = $._compiledTemplates.actionsToPopover(params);
    +            modal = $($.popover(popoverHTML, target, true));
    +            groupSelector = '.list-block ul';
    +            buttonSelector = '.list-button';
    +        }
    +        else {
    +            if (defaults.modalActionsTemplate) {
    +                if (!$._compiledTemplates.actions) $._compiledTemplates.actions = t7.compile(defaults.modalActionsTemplate);
    +                modalHTML = $._compiledTemplates.actions(params);
    +            }
    +            else {
    +                var buttonsHTML = '';
    +                for (var i = 0; i < params.length; i++) {
    +                    for (var j = 0; j < params[i].length; j++) {
    +                        if (j === 0) buttonsHTML += '<div class="actions-modal-group">';
    +                        var button = params[i][j];
    +                        var buttonClass = button.label ? 'actions-modal-label' : 'actions-modal-button';
    +                        if (button.bold) buttonClass += ' actions-modal-button-bold';
    +                        if (button.color) buttonClass += ' color-' + button.color;
    +                        if (button.bg) buttonClass += ' bg-' + button.bg;
    +                        if (button.disabled) buttonClass += ' disabled';
    +                        buttonsHTML += '<span class="' + buttonClass + '">' + button.text + '</span>';
    +                        if (j === params[i].length - 1) buttonsHTML += '</div>';
    +                    }
    +                }
    +                modalHTML = '<div class="actions-modal">' + buttonsHTML + '</div>';
    +            }
    +            _modalTemplateTempDiv.innerHTML = modalHTML;
    +            modal = $(_modalTemplateTempDiv).children();
    +            $(defaults.modalContainer).append(modal[0]);
    +            groupSelector = '.actions-modal-group';
    +            buttonSelector = '.actions-modal-button';
    +        }
    +        
    +        var groups = modal.find(groupSelector);
    +        groups.each(function (index, el) {
    +            var groupIndex = index;
    +            $(el).children().each(function (index, el) {
    +                var buttonIndex = index;
    +                var buttonParams = params[groupIndex][buttonIndex];
    +                var clickTarget;
    +                if (!toPopover && $(el).is(buttonSelector)) clickTarget = $(el);
    +                if (toPopover && $(el).find(buttonSelector).length > 0) clickTarget = $(el).find(buttonSelector);
    +
    +                if (clickTarget) {
    +                    clickTarget.on('click', function (e) {
    +                        if (buttonParams.close !== false) $.closeModal(modal);
    +                        if (buttonParams.onClick) buttonParams.onClick(modal, e);
    +                    });
    +                }
    +            });
    +        });
    +        if (!toPopover) $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.popover = function (modal, target, removeOnClose) {
    +        if (typeof removeOnClose === 'undefined') removeOnClose = true;
    +        if (typeof modal === 'string' && modal.indexOf('<') >= 0) {
    +            var _modal = document.createElement('div');
    +            _modal.innerHTML = modal.trim();
    +            if (_modal.childNodes.length > 0) {
    +                modal = _modal.childNodes[0];
    +                if (removeOnClose) modal.classList.add('remove-on-close');
    +                $(defaults.modalContainer).append(modal);
    +            }
    +            else return false; //nothing found
    +        }
    +        modal = $(modal);
    +        target = $(target);
    +        if (modal.length === 0 || target.length === 0) return false;
    +        if (modal.find('.popover-angle').length === 0) {
    +            modal.append('<div class="popover-angle"></div>');
    +        }
    +        modal.show();
    +
    +        function sizePopover() {
    +            modal.css({left: '', top: ''});
    +            var modalWidth =  modal.width();
    +            var modalHeight =  modal.height(); // 13 - height of angle
    +            var modalAngle = modal.find('.popover-angle');
    +            var modalAngleSize = modalAngle.width() / 2;
    +            var modalAngleLeft, modalAngleTop;
    +            modalAngle.removeClass('on-left on-right on-top on-bottom').css({left: '', top: ''});
    +
    +            var targetWidth = target.outerWidth();
    +            var targetHeight = target.outerHeight();
    +            var targetOffset = target.offset();
    +            var targetParentPage = target.parents('.page');
    +            if (targetParentPage.length > 0) {
    +                targetOffset.top = targetOffset.top - targetParentPage[0].scrollTop;
    +            }
    +
    +            var windowHeight = $(window).height();
    +            var windowWidth = $(window).width();
    +
    +            var modalTop = 0;
    +            var modalLeft = 0;
    +            var diff = 0;
    +            // Top Position
    +            var modalPosition = 'top';
    +
    +            if ((modalHeight + modalAngleSize) < targetOffset.top) {
    +                // On top
    +                modalTop = targetOffset.top - modalHeight - modalAngleSize;
    +            }
    +            else if ((modalHeight + modalAngleSize) < windowHeight - targetOffset.top - targetHeight) {
    +                // On bottom
    +                modalPosition = 'bottom';
    +                modalTop = targetOffset.top + targetHeight + modalAngleSize;
    +            }
    +            else {
    +                // On middle
    +                modalPosition = 'middle';
    +                modalTop = targetHeight / 2 + targetOffset.top - modalHeight / 2;
    +                diff = modalTop;
    +                if (modalTop < 0) {
    +                    modalTop = 5;
    +                }
    +                else if (modalTop + modalHeight > windowHeight) {
    +                    modalTop = windowHeight - modalHeight - 5;
    +                }
    +                diff = diff - modalTop;
    +            }
    +            // Horizontal Position
    +            if (modalPosition === 'top' || modalPosition === 'bottom') {
    +                modalLeft = targetWidth / 2 + targetOffset.left - modalWidth / 2;
    +                diff = modalLeft;
    +                if (modalLeft < 5) modalLeft = 5;
    +                if (modalLeft + modalWidth > windowWidth) modalLeft = windowWidth - modalWidth - 5;
    +                if (modalPosition === 'top') modalAngle.addClass('on-bottom');
    +                if (modalPosition === 'bottom') modalAngle.addClass('on-top');
    +                diff = diff - modalLeft;
    +                modalAngleLeft = (modalWidth / 2 - modalAngleSize + diff);
    +                modalAngleLeft = Math.max(Math.min(modalAngleLeft, modalWidth - modalAngleSize * 2 - 6), 6);
    +                modalAngle.css({left: modalAngleLeft + 'px'});
    +            }
    +            else if (modalPosition === 'middle') {
    +                modalLeft = targetOffset.left - modalWidth - modalAngleSize;
    +                modalAngle.addClass('on-right');
    +                if (modalLeft < 5) {
    +                    modalLeft = targetOffset.left + targetWidth + modalAngleSize;
    +                    modalAngle.removeClass('on-right').addClass('on-left');
    +                }
    +                if (modalLeft + modalWidth > windowWidth) {
    +                    modalLeft = windowWidth - modalWidth - 5;
    +                    modalAngle.removeClass('on-right').addClass('on-left');
    +                }
    +                modalAngleTop = (modalHeight / 2 - modalAngleSize + diff);
    +                modalAngleTop = Math.max(Math.min(modalAngleTop, modalHeight - modalAngleSize * 2 - 6), 6);
    +                modalAngle.css({top: modalAngleTop + 'px'});
    +            }
    +
    +            // Apply Styles
    +            modal.css({top: modalTop + 'px', left: modalLeft + 'px'});
    +        }
    +        sizePopover();
    +
    +        $(window).on('resize', sizePopover);
    +        modal.on('close', function () {
    +            $(window).off('resize', sizePopover);
    +        });
    +        
    +        if (modal.find('.' + defaults.viewClass).length > 0) {
    +            $.sizeNavbars(modal.find('.' + defaults.viewClass)[0]);
    +        }
    +
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.popup = function (modal, removeOnClose) {
    +        if (typeof removeOnClose === 'undefined') removeOnClose = true;
    +        if (typeof modal === 'string' && modal.indexOf('<') >= 0) {
    +            var _modal = document.createElement('div');
    +            _modal.innerHTML = modal.trim();
    +            if (_modal.childNodes.length > 0) {
    +                modal = _modal.childNodes[0];
    +                if (removeOnClose) modal.classList.add('remove-on-close');
    +                $(defaults.modalContainer).append(modal);
    +            }
    +            else return false; //nothing found
    +        }
    +        modal = $(modal);
    +        if (modal.length === 0) return false;
    +        modal.show();
    +        if (modal.find('.' + defaults.viewClass).length > 0) {
    +            $.sizeNavbars(modal.find('.' + defaults.viewClass)[0]);
    +        }
    +        $.openModal(modal);
    +     
    +        return modal[0];
    +    };
    +    $.pickerModal = function (pickerModal, removeOnClose) {
    +        if (typeof removeOnClose === 'undefined') removeOnClose = true;
    +        if (typeof pickerModal === 'string' && pickerModal.indexOf('<') >= 0) {
    +            pickerModal = $(pickerModal);
    +            if (pickerModal.length > 0) {
    +                if (removeOnClose) pickerModal.addClass('remove-on-close');
    +                $(defaults.modalContainer).append(pickerModal[0]);
    +            }
    +            else return false; //nothing found
    +        }
    +        pickerModal = $(pickerModal);
    +        if (pickerModal.length === 0) return false;
    +        pickerModal.show();
    +        $.openModal(pickerModal);
    +        return pickerModal[0];
    +    };
    +    $.loginScreen = function (modal) {
    +        if (!modal) modal = '.login-screen';
    +        modal = $(modal);
    +        if (modal.length === 0) return false;
    +        modal.show();
    +        if (modal.find('.' + defaults.viewClass).length > 0) {
    +            $.sizeNavbars(modal.find('.' + defaults.viewClass)[0]);
    +        }
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    //显示一个消息,会在2秒钟后自动消失
    +    $.toast = function(msg, time) {
    +      var $toast = $("<div class='modal toast'>"+msg+"</div>").appendTo(document.body);
    +      $.openModal($toast);
    +      setTimeout(function() {
    +        $.closeModal($toast);
    +      }, time || 2000);
    +    };
    +    $.openModal = function (modal) {
    +        if(defaults.closePrevious) $.closeModal();
    +        modal = $(modal);
    +        var isModal = modal.hasClass('modal');
    +        if ($('.modal.modal-in:not(.modal-out)').length && defaults.modalStack && isModal) {
    +            $.modalStack.push(function () {
    +                $.openModal(modal);
    +            });
    +            return;
    +        }
    +        var isPopover = modal.hasClass('popover');
    +        var isPopup = modal.hasClass('popup');
    +        var isLoginScreen = modal.hasClass('login-screen');
    +        var isPickerModal = modal.hasClass('picker-modal');
    +        var isToast = modal.hasClass('toast');
    +        if (isModal) {
    +            modal.show();
    +            modal.css({
    +                marginTop: - Math.round(modal.outerHeight() / 2) + 'px'
    +            });
    +        }
    +        if (isToast) {
    +            modal.show();
    +            modal.css({
    +                marginLeft: - Math.round(parseInt(window.getComputedStyle(modal[0]).width) / 2)  + 'px' //
    +            });
    +        }
    +
    +        var overlay;
    +        if (!isLoginScreen && !isPickerModal && !isToast) {
    +            if ($('.modal-overlay').length === 0 && !isPopup) {
    +                $(defaults.modalContainer).append('<div class="modal-overlay"></div>');
    +            }
    +            if ($('.popup-overlay').length === 0 && isPopup) {
    +                $(defaults.modalContainer).append('<div class="popup-overlay"></div>');
    +            }
    +            overlay = isPopup ? $('.popup-overlay') : $('.modal-overlay');
    +        }
    +
    +        //Make sure that styles are applied, trigger relayout;
    +        var clientLeft = modal[0].clientLeft;
    +
    +        // Trugger open event
    +        modal.trigger('open');
    +
    +        // Picker modal body class
    +        if (isPickerModal) {
    +            $(defaults.modalContainer).addClass('with-picker-modal');
    +        }
    +
    +        // Classes for transition in
    +        if (!isLoginScreen && !isPickerModal && !isToast) overlay.addClass('modal-overlay-visible');
    +        modal.removeClass('modal-out').addClass('modal-in').transitionEnd(function (e) {
    +            if (modal.hasClass('modal-out')) modal.trigger('closed');
    +            else modal.trigger('opened');
    +        });
    +        return true;
    +    };
    +    $.closeModal = function (modal) {
    +        modal = $(modal || '.modal-in');
    +        if (typeof modal !== 'undefined' && modal.length === 0) {
    +            return;
    +        }
    +        var isModal = modal.hasClass('modal');
    +        var isPopover = modal.hasClass('popover');
    +        var isPopup = modal.hasClass('popup');
    +        var isLoginScreen = modal.hasClass('login-screen');
    +        var isPickerModal = modal.hasClass('picker-modal');
    +
    +        var removeOnClose = modal.hasClass('remove-on-close');
    +
    +        var overlay = isPopup ? $('.popup-overlay') : $('.modal-overlay');
    +        if (isPopup){
    +            if (modal.length === $('.popup.modal-in').length) {
    +                overlay.removeClass('modal-overlay-visible');    
    +            }  
    +        }
    +        else if (!isPickerModal) {
    +            overlay.removeClass('modal-overlay-visible');
    +        }
    +
    +        modal.trigger('close');
    +        
    +        // Picker modal body class
    +        if (isPickerModal) {
    +            $(defaults.modalContainer).removeClass('with-picker-modal');
    +            $(defaults.modalContainer).addClass('picker-modal-closing');
    +        }
    +
    +        if (!isPopover) {
    +            modal.removeClass('modal-in').addClass('modal-out').transitionEnd(function (e) {
    +                if (modal.hasClass('modal-out')) modal.trigger('closed');
    +                else modal.trigger('opened');
    +                
    +                if (isPickerModal) {
    +                    $(defaults.modalContainer).removeClass('picker-modal-closing');
    +                }
    +                if (isPopup || isLoginScreen || isPickerModal) {
    +                    modal.removeClass('modal-out').hide();
    +                    if (removeOnClose && modal.length > 0) {
    +                        modal.remove();
    +                    }
    +                }
    +                else {
    +                    modal.remove();
    +                }
    +            });
    +            if (isModal &&  defaults.modalStack ) {
    +                $.modalStackClearQueue();
    +            }
    +        }
    +        else {
    +            modal.removeClass('modal-in modal-out').trigger('closed').hide();
    +            if (removeOnClose) {
    +                modal.remove();
    +            }
    +        }
    +        return true;
    +    };
    +    function handleClicks(e) {
    +        /*jshint validthis:true */
    +        var clicked = $(this);
    +        var url = clicked.attr('href');
    +
    +        //Collect Clicked data- attributes
    +        var clickedData = clicked.dataset();
    +
    +        // Popover
    +        if (clicked.hasClass('open-popover')) {
    +            var popover;
    +            if (clickedData.popover) {
    +                popover = clickedData.popover;
    +            }
    +            else popover = '.popover';
    +            $.popover(popover, clicked);
    +        }
    +        if (clicked.hasClass('close-popover')) {
    +            $.closeModal('.popover.modal-in');
    +        }
    +        // Popup
    +        var popup;
    +        if (clicked.hasClass('open-popup')) {
    +            if (clickedData.popup) {
    +                popup = clickedData.popup;
    +            }
    +            else popup = '.popup';
    +            $.popup(popup);
    +        }
    +        if (clicked.hasClass('close-popup')) {
    +            if (clickedData.popup) {
    +                popup = clickedData.popup;
    +            }
    +            else popup = '.popup.modal-in';
    +            $.closeModal(popup);
    +        }
    +     
    +        // Close Modal
    +        if (clicked.hasClass('modal-overlay')) {
    +            if ($('.modal.modal-in').length > 0 && defaults.modalCloseByOutside)
    +                $.closeModal('.modal.modal-in');
    +            if ($('.actions-modal.modal-in').length > 0 && defaults.actionsCloseByOutside)
    +                $.closeModal('.actions-modal.modal-in');
    +            
    +            if ($('.popover.modal-in').length > 0) $.closeModal('.popover.modal-in');
    +        }
    +        if (clicked.hasClass('popup-overlay')) {
    +            if ($('.popup.modal-in').length > 0 && defaults.popupCloseByOutside)
    +                $.closeModal('.popup.modal-in');
    +        }
    +    }
    +
    +    var defaults = $.modal.prototype.defaults = {
    +      modalButtonOk: 'OK',
    +      modalButtonCancel: 'Cancel',
    +      modalPreloaderTitle: 'Loading...',
    +      modalContainer : document.body,
    +      modalCloseByOutside: true,
    +      actionsCloseByOutside: false,
    +      popupCloseByOutside: true,
    +      closePrevious: true  //close all previous modal before open
    +    };
    +
    +    $(function() {
    +      $(document).on('click', ' .modal-overlay, .popup-overlay, .close-popup, .open-popup, .open-popover, .close-popover, .close-picker', handleClicks);
    +      defaults.modalContainer = defaults.modalContainer || document.body;  //incase some one include js in head
    +    });
    +}($);
    +
    +/*======================================================
    +************   Calendar   ************
    +======================================================*/
    +/* global $:true */
    +/*jshint unused: false*/
    ++function ($) {
    +  "use strict";
    +  var rtl = false;
    +  var defaults;
    +  var Calendar = function (params) {
    +      var p = this;
    +      params = params || {};
    +      for (var def in defaults) {
    +          if (typeof params[def] === 'undefined') {
    +              params[def] = defaults[def];
    +          }
    +      }
    +      p.params = params;
    +      p.initialized = false;
    +
    +      // Inline flag
    +      p.inline = p.params.container ? true : false;
    +
    +      // Is horizontal
    +      p.isH = p.params.direction === 'horizontal';
    +
    +      // RTL inverter
    +      var inverter = p.isH ? (rtl ? -1 : 1) : 1;
    +
    +      // Animating flag
    +      p.animating = false;
    +
    +      // Should be converted to popover
    +      function isPopover() {
    +          var toPopover = false;
    +          if (!p.params.convertToPopover && !p.params.onlyInPopover) return toPopover;
    +          if (!p.inline && p.params.input) {
    +              if (p.params.onlyInPopover) toPopover = true;
    +              else {
    +                  if ($.device.ios) {
    +                      toPopover = $.device.ipad ? true : false;
    +                  }
    +                  else {
    +                      if ($(window).width() >= 768) toPopover = true;
    +                  }
    +              }
    +          } 
    +          return toPopover; 
    +      }
    +      function inPopover() {
    +          if (p.opened && p.container && p.container.length > 0 && p.container.parents('.popover').length > 0) return true;
    +          else return false;
    +      }
    +
    +      // Format date
    +      function formatDate(date) {
    +          date = new Date(date);
    +          var year = date.getFullYear();
    +          var month = date.getMonth();
    +          var month1 = month + 1;
    +          var day = date.getDate();
    +          var weekDay = date.getDay();
    +          return p.params.dateFormat
    +              .replace(/yyyy/g, year)
    +              .replace(/yy/g, (year + '').substring(2))
    +              .replace(/mm/g, month1 < 10 ? '0' + month1 : month1)
    +              .replace(/m/g, month1)
    +              .replace(/MM/g, p.params.monthNames[month])
    +              .replace(/M/g, p.params.monthNamesShort[month])
    +              .replace(/dd/g, day < 10 ? '0' + day : day)
    +              .replace(/d/g, day)
    +              .replace(/DD/g, p.params.dayNames[weekDay])
    +              .replace(/D/g, p.params.dayNamesShort[weekDay]);
    +      }
    +
    +
    +      // Value
    +      p.addValue = function (value) {
    +          if (p.params.multiple) {
    +              if (!p.value) p.value = [];
    +              var inValuesIndex;
    +              for (var i = 0; i < p.value.length; i++) {
    +                  if (new Date(value).getTime() === new Date(p.value[i]).getTime()) {
    +                      inValuesIndex = i;
    +                  }
    +              }
    +              if (typeof inValuesIndex === 'undefined') {
    +                  p.value.push(value);
    +              }
    +              else {
    +                  p.value.splice(inValuesIndex, 1);
    +              }
    +              p.updateValue();
    +          }
    +          else {
    +              p.value = [value];
    +              p.updateValue();
    +          }
    +      };
    +      p.setValue = function (arrValues) {
    +          p.value = arrValues;
    +          p.updateValue();   
    +      };
    +      p.updateValue = function () {
    +          p.wrapper.find('.picker-calendar-day-selected').removeClass('picker-calendar-day-selected');
    +          var i, inputValue;
    +          for (i = 0; i < p.value.length; i++) {
    +              var valueDate = new Date(p.value[i]);
    +              p.wrapper.find('.picker-calendar-day[data-date="' + valueDate.getFullYear() + '-' + valueDate.getMonth() + '-' + valueDate.getDate() + '"]').addClass('picker-calendar-day-selected');
    +          }
    +          if (p.params.onChange) {
    +              p.params.onChange(p, p.value, p.value.map(formatDate));
    +          }
    +          if (p.input && p.input.length > 0) {
    +              if (p.params.formatValue) inputValue = p.params.formatValue(p, p.value);
    +              else {
    +                  inputValue = [];
    +                  for (i = 0; i < p.value.length; i++) {
    +                      inputValue.push(formatDate(p.value[i]));
    +                  }
    +                  inputValue = inputValue.join(', ');
    +              } 
    +              $(p.input).val(inputValue);
    +              $(p.input).trigger('change');
    +          }
    +      };
    +
    +      // Columns Handlers
    +      p.initCalendarEvents = function () {
    +          var col;
    +          var allowItemClick = true;
    +          var isTouched, isMoved, touchStartX, touchStartY, touchCurrentX, touchCurrentY, touchStartTime, touchEndTime, startTranslate, currentTranslate, wrapperWidth, wrapperHeight, percentage, touchesDiff, isScrolling;
    +          function handleTouchStart (e) {
    +              if (isMoved || isTouched) return;
    +              // e.preventDefault();
    +              isTouched = true;
    +              var position = $.getTouchPosition(e);
    +              touchStartX = touchCurrentY = position.x;
    +              touchStartY = touchCurrentY = position.y;
    +              touchStartTime = (new Date()).getTime();
    +              percentage = 0;
    +              allowItemClick = true;
    +              isScrolling = undefined;
    +              startTranslate = currentTranslate = p.monthsTranslate;
    +          }
    +          function handleTouchMove (e) {
    +              if (!isTouched) return;
    +              var position = $.getTouchPosition(e);
    +              touchCurrentX = position.x;
    +              touchCurrentY = position.y;
    +              if (typeof isScrolling === 'undefined') {
    +                  isScrolling = !!(isScrolling || Math.abs(touchCurrentY - touchStartY) > Math.abs(touchCurrentX - touchStartX));
    +              }
    +              if (p.isH && isScrolling) {
    +                  isTouched = false;
    +                  return;
    +              }
    +              e.preventDefault();
    +              if (p.animating) {
    +                  isTouched = false;
    +                  return;   
    +              }
    +              allowItemClick = false;
    +              if (!isMoved) {
    +                  // First move
    +                  isMoved = true;
    +                  wrapperWidth = p.wrapper[0].offsetWidth;
    +                  wrapperHeight = p.wrapper[0].offsetHeight;
    +                  p.wrapper.transition(0);
    +              }
    +              e.preventDefault();
    +
    +              touchesDiff = p.isH ? touchCurrentX - touchStartX : touchCurrentY - touchStartY;
    +              percentage = touchesDiff/(p.isH ? wrapperWidth : wrapperHeight);
    +              currentTranslate = (p.monthsTranslate * inverter + percentage) * 100;
    +
    +              // Transform wrapper
    +              p.wrapper.transform('translate3d(' + (p.isH ? currentTranslate : 0) + '%, ' + (p.isH ? 0 : currentTranslate) + '%, 0)');
    +
    +          }
    +          function handleTouchEnd (e) {
    +              if (!isTouched || !isMoved) {
    +                  isTouched = isMoved = false;
    +                  return;
    +              }
    +              isTouched = isMoved = false;
    +              
    +              touchEndTime = new Date().getTime();
    +              if (touchEndTime - touchStartTime < 300) {
    +                  if (Math.abs(touchesDiff) < 10) {
    +                      p.resetMonth();
    +                  }
    +                  else if (touchesDiff >= 10) {
    +                      if (rtl) p.nextMonth();
    +                      else p.prevMonth();
    +                  }
    +                  else {
    +                      if (rtl) p.prevMonth();
    +                      else p.nextMonth();   
    +                  }
    +              }
    +              else {
    +                  if (percentage <= -0.5) {
    +                      if (rtl) p.prevMonth();
    +                      else p.nextMonth();
    +                  }
    +                  else if (percentage >= 0.5) {
    +                      if (rtl) p.nextMonth();
    +                      else p.prevMonth();
    +                  }
    +                  else {
    +                      p.resetMonth();
    +                  }
    +              }
    +
    +              // Allow click
    +              setTimeout(function () {
    +                  allowItemClick = true;
    +              }, 100);
    +          }
    +
    +          function handleDayClick(e) {
    +              if (!allowItemClick) return;
    +              var day = $(e.target).parents('.picker-calendar-day');
    +              if (day.length === 0 && $(e.target).hasClass('picker-calendar-day')) {
    +                  day = $(e.target);
    +              }
    +              if (day.length === 0) return;
    +              if (day.hasClass('picker-calendar-day-selected') && !p.params.multiple) return;
    +              if (day.hasClass('picker-calendar-day-disabled')) return;
    +              if (day.hasClass('picker-calendar-day-next')) p.nextMonth();
    +              if (day.hasClass('picker-calendar-day-prev')) p.prevMonth();
    +              var dateYear = day.attr('data-year');
    +              var dateMonth = day.attr('data-month');
    +              var dateDay = day.attr('data-day');
    +              if (p.params.onDayClick) {
    +                  p.params.onDayClick(p, day[0], dateYear, dateMonth, dateDay);
    +              }
    +              p.addValue(new Date(dateYear, dateMonth, dateDay).getTime());
    +              if (p.params.closeOnSelect) p.close();
    +          }
    +
    +          p.container.find('.picker-calendar-prev-month').on('click', p.prevMonth);
    +          p.container.find('.picker-calendar-next-month').on('click', p.nextMonth);
    +          p.container.find('.picker-calendar-prev-year').on('click', p.prevYear);
    +          p.container.find('.picker-calendar-next-year').on('click', p.nextYear);
    +          p.wrapper.on('click', handleDayClick);
    +          if (p.params.touchMove) {
    +              p.wrapper.on($.touchEvents.start, handleTouchStart);
    +              p.wrapper.on($.touchEvents.move, handleTouchMove);
    +              p.wrapper.on($.touchEvents.end, handleTouchEnd);
    +          }
    +              
    +          p.container[0].f7DestroyCalendarEvents = function () {
    +              p.container.find('.picker-calendar-prev-month').off('click', p.prevMonth);
    +              p.container.find('.picker-calendar-next-month').off('click', p.nextMonth);
    +              p.container.find('.picker-calendar-prev-year').off('click', p.prevYear);
    +              p.container.find('.picker-calendar-next-year').off('click', p.nextYear);
    +              p.wrapper.off('click', handleDayClick);
    +              if (p.params.touchMove) {
    +                  p.wrapper.off($.touchEvents.start, handleTouchStart);
    +                  p.wrapper.off($.touchEvents.move, handleTouchMove);
    +                  p.wrapper.off($.touchEvents.end, handleTouchEnd);
    +              }
    +          };
    +          
    +
    +      };
    +      p.destroyCalendarEvents = function (colContainer) {
    +          if ('f7DestroyCalendarEvents' in p.container[0]) p.container[0].f7DestroyCalendarEvents();
    +      };
    +
    +      // Calendar Methods
    +      p.daysInMonth = function (date) {
    +          var d = new Date(date);
    +          return new Date(d.getFullYear(), d.getMonth() + 1, 0).getDate();
    +      };
    +      p.monthHTML = function (date, offset) {
    +          date = new Date(date);
    +          var year = date.getFullYear(),
    +              month = date.getMonth(),
    +              day = date.getDate();
    +          if (offset === 'next') {
    +              if (month === 11) date = new Date(year + 1, 0);
    +              else date = new Date(year, month + 1, 1);
    +          }
    +          if (offset === 'prev') {
    +              if (month === 0) date = new Date(year - 1, 11);
    +              else date = new Date(year, month - 1, 1);
    +          }
    +          if (offset === 'next' || offset === 'prev') {
    +              month = date.getMonth();
    +              year = date.getFullYear();
    +          }
    +          var daysInPrevMonth = p.daysInMonth(new Date(date.getFullYear(), date.getMonth()).getTime() - 10 * 24 * 60 * 60 * 1000),
    +              daysInMonth = p.daysInMonth(date),
    +              firstDayOfMonthIndex = new Date(date.getFullYear(), date.getMonth()).getDay();
    +          if (firstDayOfMonthIndex === 0) firstDayOfMonthIndex = 7;
    +          
    +          var dayDate, currentValues = [], i, j,
    +              rows = 6, cols = 7,
    +              monthHTML = '',
    +              dayIndex = 0 + (p.params.firstDay - 1),    
    +              today = new Date().setHours(0,0,0,0),
    +              minDate = p.params.minDate ? new Date(p.params.minDate).getTime() : null,
    +              maxDate = p.params.maxDate ? new Date(p.params.maxDate).getTime() : null;
    +
    +          if (p.value && p.value.length) {
    +              for (i = 0; i < p.value.length; i++) {
    +                  currentValues.push(new Date(p.value[i]).setHours(0,0,0,0));
    +              }
    +          }
    +              
    +          for (i = 1; i <= rows; i++) {
    +              var rowHTML = '';
    +              var row = i;
    +              for (j = 1; j <= cols; j++) {
    +                  var col = j;
    +                  dayIndex ++;
    +                  var dayNumber = dayIndex - firstDayOfMonthIndex;
    +                  var addClass = '';
    +                  if (dayNumber < 0) {
    +                      dayNumber = daysInPrevMonth + dayNumber + 1;
    +                      addClass += ' picker-calendar-day-prev';
    +                      dayDate = new Date(month - 1 < 0 ? year - 1 : year, month - 1 < 0 ? 11 : month - 1, dayNumber).getTime();
    +                  }
    +                  else {
    +                      dayNumber = dayNumber + 1;
    +                      if (dayNumber > daysInMonth) {
    +                          dayNumber = dayNumber - daysInMonth;
    +                          addClass += ' picker-calendar-day-next';
    +                          dayDate = new Date(month + 1 > 11 ? year + 1 : year, month + 1 > 11 ? 0 : month + 1, dayNumber).getTime();
    +                      }
    +                      else {
    +                          dayDate = new Date(year, month, dayNumber).getTime();    
    +                      }
    +                  }
    +                  // Today
    +                  if (dayDate === today) addClass += ' picker-calendar-day-today';
    +                  // Selected
    +                  if (currentValues.indexOf(dayDate) >= 0) addClass += ' picker-calendar-day-selected';
    +                  // Weekend
    +                  if (p.params.weekendDays.indexOf(col - 1) >= 0) {
    +                      addClass += ' picker-calendar-day-weekend';
    +                  }
    +                  // Disabled
    +                  if ((minDate && dayDate < minDate) || (maxDate && dayDate > maxDate)) {
    +                      addClass += ' picker-calendar-day-disabled';   
    +                  }
    +
    +                  dayDate = new Date(dayDate);
    +                  var dayYear = dayDate.getFullYear();
    +                  var dayMonth = dayDate.getMonth();
    +                  rowHTML += '<div data-year="' + dayYear + '" data-month="' + dayMonth + '" data-day="' + dayNumber + '" class="picker-calendar-day' + (addClass) + '" data-date="' + (dayYear + '-' + dayMonth + '-' + dayNumber) + '"><span>'+dayNumber+'</span></div>';
    +              }
    +              monthHTML += '<div class="picker-calendar-row">' + rowHTML + '</div>';
    +          }
    +          monthHTML = '<div class="picker-calendar-month" data-year="' + year + '" data-month="' + month + '">' + monthHTML + '</div>';
    +          return monthHTML;
    +      };
    +      p.animating = false;
    +      p.updateCurrentMonthYear = function (dir) {
    +          if (typeof dir === 'undefined') {
    +              p.currentMonth = parseInt(p.months.eq(1).attr('data-month'), 10);
    +              p.currentYear = parseInt(p.months.eq(1).attr('data-year'), 10);   
    +          }
    +          else {
    +              p.currentMonth = parseInt(p.months.eq(dir === 'next' ? (p.months.length - 1) : 0).attr('data-month'), 10);
    +              p.currentYear = parseInt(p.months.eq(dir === 'next' ? (p.months.length - 1) : 0).attr('data-year'), 10);
    +          }
    +          p.container.find('.current-month-value').text(p.params.monthNames[p.currentMonth]);
    +          p.container.find('.current-year-value').text(p.currentYear);
    +              
    +      };
    +      p.onMonthChangeStart = function (dir) {
    +          p.updateCurrentMonthYear(dir);
    +          p.months.removeClass('picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next');
    +          var currentIndex = dir === 'next' ? p.months.length - 1 : 0;
    +
    +          p.months.eq(currentIndex).addClass('picker-calendar-month-current');
    +          p.months.eq(dir === 'next' ? currentIndex - 1 : currentIndex + 1).addClass(dir === 'next' ? 'picker-calendar-month-prev' : 'picker-calendar-month-next');
    +
    +          if (p.params.onMonthYearChangeStart) {
    +              p.params.onMonthYearChangeStart(p, p.currentYear, p.currentMonth);
    +          }
    +      };
    +      p.onMonthChangeEnd = function (dir, rebuildBoth) {
    +          p.animating = false;
    +          var nextMonthHTML, prevMonthHTML, newMonthHTML;
    +          p.wrapper.find('.picker-calendar-month:not(.picker-calendar-month-prev):not(.picker-calendar-month-current):not(.picker-calendar-month-next)').remove();
    +          
    +          if (typeof dir === 'undefined') {
    +              dir = 'next';
    +              rebuildBoth = true;
    +          }
    +          if (!rebuildBoth) {
    +              newMonthHTML = p.monthHTML(new Date(p.currentYear, p.currentMonth), dir);
    +          }
    +          else {
    +              p.wrapper.find('.picker-calendar-month-next, .picker-calendar-month-prev').remove();
    +              prevMonthHTML = p.monthHTML(new Date(p.currentYear, p.currentMonth), 'prev');
    +              nextMonthHTML = p.monthHTML(new Date(p.currentYear, p.currentMonth), 'next');
    +          }
    +          if (dir === 'next' || rebuildBoth) {
    +              p.wrapper.append(newMonthHTML || nextMonthHTML);
    +          }
    +          if (dir === 'prev' || rebuildBoth) {
    +              p.wrapper.prepend(newMonthHTML || prevMonthHTML);
    +          }
    +          p.months = p.wrapper.find('.picker-calendar-month');
    +          p.setMonthsTranslate(p.monthsTranslate);
    +          if (p.params.onMonthAdd) {
    +              p.params.onMonthAdd(p, dir === 'next' ? p.months.eq(p.months.length - 1)[0] : p.months.eq(0)[0]);
    +          }
    +          if (p.params.onMonthYearChangeEnd) {
    +              p.params.onMonthYearChangeEnd(p, p.currentYear, p.currentMonth);
    +          }
    +      };
    +      p.setMonthsTranslate = function (translate) {
    +          translate = translate || p.monthsTranslate || 0;
    +          if (typeof p.monthsTranslate === 'undefined') p.monthsTranslate = translate;
    +          p.months.removeClass('picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next');
    +          var prevMonthTranslate = -(translate + 1) * 100 * inverter;
    +          var currentMonthTranslate = -translate * 100 * inverter;
    +          var nextMonthTranslate = -(translate - 1) * 100 * inverter;
    +          p.months.eq(0).transform('translate3d(' + (p.isH ? prevMonthTranslate : 0) + '%, ' + (p.isH ? 0 : prevMonthTranslate) + '%, 0)').addClass('picker-calendar-month-prev');
    +          p.months.eq(1).transform('translate3d(' + (p.isH ? currentMonthTranslate : 0) + '%, ' + (p.isH ? 0 : currentMonthTranslate) + '%, 0)').addClass('picker-calendar-month-current');
    +          p.months.eq(2).transform('translate3d(' + (p.isH ? nextMonthTranslate : 0) + '%, ' + (p.isH ? 0 : nextMonthTranslate) + '%, 0)').addClass('picker-calendar-month-next');
    +      };
    +      p.nextMonth = function (transition) {
    +          if (typeof transition === 'undefined' || typeof transition === 'object') {
    +              transition = '';
    +              if (!p.params.animate) transition = 0;
    +          }
    +          var nextMonth = parseInt(p.months.eq(p.months.length - 1).attr('data-month'), 10);
    +          var nextYear = parseInt(p.months.eq(p.months.length - 1).attr('data-year'), 10);
    +          var nextDate = new Date(nextYear, nextMonth);
    +          var nextDateTime = nextDate.getTime();
    +          var transitionEndCallback = p.animating ? false : true;
    +          if (p.params.maxDate) {
    +              if (nextDateTime > new Date(p.params.maxDate).getTime()) {
    +                  return p.resetMonth();
    +              }
    +          }
    +          p.monthsTranslate --;
    +          if (nextMonth === p.currentMonth) {
    +              var nextMonthTranslate = -(p.monthsTranslate) * 100 * inverter;
    +              var nextMonthHTML = $(p.monthHTML(nextDateTime, 'next')).transform('translate3d(' + (p.isH ? nextMonthTranslate : 0) + '%, ' + (p.isH ? 0 : nextMonthTranslate) + '%, 0)').addClass('picker-calendar-month-next');
    +              p.wrapper.append(nextMonthHTML[0]);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              if (p.params.onMonthAdd) {
    +                  p.params.onMonthAdd(p, p.months.eq(p.months.length - 1)[0]);
    +              }
    +          }
    +          p.animating = true;
    +          p.onMonthChangeStart('next');
    +          var translate = (p.monthsTranslate * 100) * inverter;
    +
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? translate : 0) + '%, ' + (p.isH ? 0 : translate) + '%, 0)');
    +          if (transitionEndCallback) {
    +              p.wrapper.transitionEnd(function () {
    +                  p.onMonthChangeEnd('next');
    +              });
    +          }
    +          if (!p.params.animate) {
    +              p.onMonthChangeEnd('next');
    +          }
    +      };
    +      p.prevMonth = function (transition) {
    +          if (typeof transition === 'undefined' || typeof transition === 'object') {
    +              transition = '';
    +              if (!p.params.animate) transition = 0;
    +          }
    +          var prevMonth = parseInt(p.months.eq(0).attr('data-month'), 10);
    +          var prevYear = parseInt(p.months.eq(0).attr('data-year'), 10);
    +          var prevDate = new Date(prevYear, prevMonth + 1, -1);
    +          var prevDateTime = prevDate.getTime();
    +          var transitionEndCallback = p.animating ? false : true;
    +          if (p.params.minDate) {
    +              if (prevDateTime < new Date(p.params.minDate).getTime()) {
    +                  return p.resetMonth();
    +              }
    +          }
    +          p.monthsTranslate ++;
    +          if (prevMonth === p.currentMonth) {
    +              var prevMonthTranslate = -(p.monthsTranslate) * 100 * inverter;
    +              var prevMonthHTML = $(p.monthHTML(prevDateTime, 'prev')).transform('translate3d(' + (p.isH ? prevMonthTranslate : 0) + '%, ' + (p.isH ? 0 : prevMonthTranslate) + '%, 0)').addClass('picker-calendar-month-prev');
    +              p.wrapper.prepend(prevMonthHTML[0]);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              if (p.params.onMonthAdd) {
    +                  p.params.onMonthAdd(p, p.months.eq(0)[0]);
    +              }
    +          }
    +          p.animating = true;
    +          p.onMonthChangeStart('prev');
    +          var translate = (p.monthsTranslate * 100) * inverter;
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? translate : 0) + '%, ' + (p.isH ? 0 : translate) + '%, 0)');
    +          if (transitionEndCallback) {
    +              p.wrapper.transitionEnd(function () {
    +                  p.onMonthChangeEnd('prev');
    +              });
    +          }
    +          if (!p.params.animate) {
    +              p.onMonthChangeEnd('prev');
    +          }
    +      };
    +      p.resetMonth = function (transition) {
    +          if (typeof transition === 'undefined') transition = '';
    +          var translate = (p.monthsTranslate * 100) * inverter;
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? translate : 0) + '%, ' + (p.isH ? 0 : translate) + '%, 0)');
    +      };
    +      p.setYearMonth = function (year, month, transition) {
    +          if (typeof year === 'undefined') year = p.currentYear;
    +          if (typeof month === 'undefined') month = p.currentMonth;
    +          if (typeof transition === 'undefined' || typeof transition === 'object') {
    +              transition = '';
    +              if (!p.params.animate) transition = 0;
    +          }
    +          var targetDate;
    +          if (year < p.currentYear) {
    +              targetDate = new Date(year, month + 1, -1).getTime();
    +          }
    +          else {
    +              targetDate = new Date(year, month).getTime();
    +          }
    +          if (p.params.maxDate && targetDate > new Date(p.params.maxDate).getTime()) {
    +              return false;
    +          }
    +          if (p.params.minDate && targetDate < new Date(p.params.minDate).getTime()) {
    +              return false;
    +          }
    +          var currentDate = new Date(p.currentYear, p.currentMonth).getTime();
    +          var dir = targetDate > currentDate ? 'next' : 'prev';
    +          var newMonthHTML = p.monthHTML(new Date(year, month));
    +          p.monthsTranslate = p.monthsTranslate || 0;
    +          var prevTranslate = p.monthsTranslate;
    +          var monthTranslate, wrapperTranslate;
    +          var transitionEndCallback = p.animating ? false : true;
    +          if (targetDate > currentDate) {
    +              // To next
    +              p.monthsTranslate --;
    +              if (!p.animating) p.months.eq(p.months.length - 1).remove();
    +              p.wrapper.append(newMonthHTML);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              monthTranslate = -(prevTranslate - 1) * 100 * inverter;
    +              p.months.eq(p.months.length - 1).transform('translate3d(' + (p.isH ? monthTranslate : 0) + '%, ' + (p.isH ? 0 : monthTranslate) + '%, 0)').addClass('picker-calendar-month-next');
    +          }
    +          else {
    +              // To prev
    +              p.monthsTranslate ++;
    +              if (!p.animating) p.months.eq(0).remove();
    +              p.wrapper.prepend(newMonthHTML);
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +              monthTranslate = -(prevTranslate + 1) * 100 * inverter;
    +              p.months.eq(0).transform('translate3d(' + (p.isH ? monthTranslate : 0) + '%, ' + (p.isH ? 0 : monthTranslate) + '%, 0)').addClass('picker-calendar-month-prev');
    +          }
    +          if (p.params.onMonthAdd) {
    +              p.params.onMonthAdd(p, dir === 'next' ? p.months.eq(p.months.length - 1)[0] : p.months.eq(0)[0]);
    +          }
    +          p.animating = true;
    +          p.onMonthChangeStart(dir);
    +          wrapperTranslate = (p.monthsTranslate * 100) * inverter;
    +          p.wrapper.transition(transition).transform('translate3d(' + (p.isH ? wrapperTranslate : 0) + '%, ' + (p.isH ? 0 : wrapperTranslate) + '%, 0)');
    +          if (transitionEndCallback) {
    +             p.wrapper.transitionEnd(function () {
    +                  p.onMonthChangeEnd(dir, true);
    +              }); 
    +          }
    +          if (!p.params.animate) {
    +              p.onMonthChangeEnd(dir);
    +          }
    +      };
    +      p.nextYear = function () {
    +          p.setYearMonth(p.currentYear + 1);
    +      };
    +      p.prevYear = function () {
    +          p.setYearMonth(p.currentYear - 1);
    +      };
    +      
    +
    +      // HTML Layout
    +      p.layout = function () {
    +          var pickerHTML = '';
    +          var pickerClass = '';
    +          var i;
    +          
    +          var layoutDate = p.value && p.value.length ? p.value[0] : new Date().setHours(0,0,0,0);
    +          var prevMonthHTML = p.monthHTML(layoutDate, 'prev');
    +          var currentMonthHTML = p.monthHTML(layoutDate);
    +          var nextMonthHTML = p.monthHTML(layoutDate, 'next');
    +          var monthsHTML = '<div class="picker-calendar-months"><div class="picker-calendar-months-wrapper">' + (prevMonthHTML + currentMonthHTML + nextMonthHTML) + '</div></div>';
    +          // Week days header
    +          var weekHeaderHTML = '';
    +          if (p.params.weekHeader) {
    +              for (i = 0; i < 7; i++) {
    +                  var weekDayIndex = (i + p.params.firstDay > 6) ? (i - 7 + p.params.firstDay) : (i + p.params.firstDay);
    +                  var dayName = p.params.dayNamesShort[weekDayIndex];
    +                  weekHeaderHTML += '<div class="picker-calendar-week-day ' + ((p.params.weekendDays.indexOf(weekDayIndex) >= 0) ? 'picker-calendar-week-day-weekend' : '') + '"> ' + dayName + '</div>';
    +                  
    +              }
    +              weekHeaderHTML = '<div class="picker-calendar-week-days">' + weekHeaderHTML + '</div>';
    +          }
    +          pickerClass = 'picker-modal picker-calendar ' + (p.params.cssClass || '');
    +          var toolbarHTML = p.params.toolbar ? p.params.toolbarTemplate.replace(/{{closeText}}/g, p.params.toolbarCloseText) : '';
    +          if (p.params.toolbar) {
    +              toolbarHTML = p.params.toolbarTemplate
    +                  .replace(/{{closeText}}/g, p.params.toolbarCloseText)
    +                  .replace(/{{monthPicker}}/g, (p.params.monthPicker ? p.params.monthPickerTemplate : ''))
    +                  .replace(/{{yearPicker}}/g, (p.params.yearPicker ? p.params.yearPickerTemplate : ''));
    +          }
    +
    +          pickerHTML =
    +              '<div class="' + (pickerClass) + '">' +
    +                  toolbarHTML +
    +                  '<div class="picker-modal-inner">' +
    +                      weekHeaderHTML +
    +                      monthsHTML +
    +                  '</div>' +
    +              '</div>';
    +              
    +              
    +          p.pickerHTML = pickerHTML;    
    +      };
    +
    +      // Input Events
    +      function openOnInput(e) {
    +          e.preventDefault();
    +          if (p.opened) return;
    +          p.open();
    +          if (p.params.scrollToInput && !isPopover()) {
    +              var pageContent = p.input.parents('.page-content');
    +              if (pageContent.length === 0) return;
    +
    +              var paddingTop = parseInt(pageContent.css('padding-top'), 10),
    +                  paddingBottom = parseInt(pageContent.css('padding-bottom'), 10),
    +                  pageHeight = pageContent[0].offsetHeight - paddingTop - p.container.height(),
    +                  pageScrollHeight = pageContent[0].scrollHeight - paddingTop - p.container.height(),
    +                  newPaddingBottom;
    +
    +              var inputTop = p.input.offset().top - paddingTop + p.input[0].offsetHeight;
    +              if (inputTop > pageHeight) {
    +                  var scrollTop = pageContent.scrollTop() + inputTop - pageHeight;
    +                  if (scrollTop + pageHeight > pageScrollHeight) {
    +                      newPaddingBottom = scrollTop + pageHeight - pageScrollHeight + paddingBottom;
    +                      if (pageHeight === pageScrollHeight) {
    +                          newPaddingBottom = p.container.height();
    +                      }
    +                      pageContent.css({'padding-bottom': (newPaddingBottom) + 'px'});
    +                  }
    +                  pageContent.scrollTop(scrollTop, 300);
    +              }
    +          }
    +      }
    +      function closeOnHTMLClick(e) {
    +          if (inPopover()) return;
    +          if (p.input && p.input.length > 0) {
    +              if (e.target !== p.input[0] && $(e.target).parents('.picker-modal').length === 0) p.close();
    +          }
    +          else {
    +              if ($(e.target).parents('.picker-modal').length === 0) p.close();   
    +          }
    +      }
    +
    +      if (p.params.input) {
    +          p.input = $(p.params.input);
    +          if (p.input.length > 0) {
    +              if (p.params.inputReadOnly) p.input.prop('readOnly', true);
    +              if (!p.inline) {
    +                  p.input.on("click", function(e) {
    +                    openOnInput(e);
    +                    //修复部分安卓系统下,即使设置了readonly依然会弹出系统键盘的bug
    +                    if (p.params.inputReadOnly) {
    +                      this.focus();
    +                      this.blur();
    +                    }
    +                  });
    +              }
    +              if (p.params.inputReadOnly) {
    +                  p.input.on('focus mousedown', function (e) {
    +                      e.preventDefault();
    +                  });
    +              }
    +          }
    +      }
    +      
    +      if (!p.inline) $('html').on('click', closeOnHTMLClick);
    +
    +      // Open
    +      function onPickerClose() {
    +          p.opened = false;
    +          if (p.input && p.input.length > 0) p.input.parents('.page-content').css({'padding-bottom': ''});
    +          if (p.params.onClose) p.params.onClose(p);
    +
    +          // Destroy events
    +          p.destroyCalendarEvents();
    +      }
    +
    +      p.opened = false;
    +      p.open = function () {
    +          var toPopover = isPopover();
    +          var updateValue = false;
    +          if (!p.opened) {
    +              // Set date value
    +              if (!p.value) {
    +                  if (p.params.value) {
    +                      p.value = p.params.value;
    +                      updateValue = true;
    +                  }
    +              }
    +
    +              // Layout
    +              p.layout();
    +
    +              // Append
    +              if (toPopover) {
    +                  p.pickerHTML = '<div class="popover popover-picker-calendar"><div class="popover-inner">' + p.pickerHTML + '</div></div>';
    +                  p.popover = $.popover(p.pickerHTML, p.params.input, true);
    +                  p.container = $(p.popover).find('.picker-modal');
    +                  $(p.popover).on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +              else if (p.inline) {
    +                  p.container = $(p.pickerHTML);
    +                  p.container.addClass('picker-modal-inline');
    +                  $(p.params.container).append(p.container);
    +              }
    +              else {
    +                  p.container = $($.pickerModal(p.pickerHTML));
    +                  $(p.container)
    +                  .on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +
    +              // Store calendar instance
    +              p.container[0].f7Calendar = p;
    +              p.wrapper = p.container.find('.picker-calendar-months-wrapper');
    +
    +              // Months
    +              p.months = p.wrapper.find('.picker-calendar-month');
    +
    +              // Update current month and year
    +              p.updateCurrentMonthYear();
    +
    +              // Set initial translate
    +              p.monthsTranslate = 0;
    +              p.setMonthsTranslate();
    +
    +              // Init events
    +              p.initCalendarEvents();
    +
    +              // Update input value
    +              if (updateValue) p.updateValue();
    +              
    +          }
    +
    +          // Set flag
    +          p.opened = true;
    +          p.initialized = true;
    +          if (p.params.onMonthAdd) {
    +              p.months.each(function () {
    +                  p.params.onMonthAdd(p, this);
    +              });
    +          }
    +          if (p.params.onOpen) p.params.onOpen(p);
    +      };
    +
    +      // Close
    +      p.close = function () {
    +          if (!p.opened || p.inline) return;
    +          if (inPopover()) {
    +              $.closeModal(p.popover);
    +              return;
    +          }
    +          else {
    +              $.closeModal(p.container);
    +              return;
    +          }
    +      };
    +
    +      // Destroy
    +      p.destroy = function () {
    +          p.close();
    +          if (p.params.input && p.input.length > 0) {
    +              p.input.off('click focus', openOnInput);
    +          }
    +          $('html').off('click', closeOnHTMLClick);
    +      };
    +
    +      if (p.inline) {
    +          p.open();
    +      }
    +
    +      return p;
    +  };
    +  $.fn.calendar = function (params) {
    +      return this.each(function() {
    +        var $this = $(this);
    +        if(!$this[0]) return;
    +        var calendar = $this.data("calendar");
    +        if(!calendar) {
    +          var p = {};
    +          if($this[0].tagName.toUpperCase() === "INPUT") {
    +            p.input = $this;
    +          } else {
    +            p.container = $this;
    +          }
    +          $this.data("calendar", new Calendar($.extend(p, params)));
    +        }
    +      });
    +  };
    +
    +  defaults = $.fn.calendar.prototype.defaults = {
    +    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August' , 'September' , 'October', 'November', 'December'],
    +    monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    +    dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
    +    dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
    +    firstDay: 1, // First day of the week, Monday
    +    weekendDays: [0, 6], // Sunday and Saturday
    +    multiple: false,
    +    dateFormat: 'yyyy-mm-dd',
    +    direction: 'horizontal', // or 'vertical'
    +    minDate: null,
    +    maxDate: null,
    +    touchMove: true,
    +    animate: true,
    +    closeOnSelect: true,
    +    monthPicker: true,
    +    monthPickerTemplate: 
    +        '<div class="picker-calendar-month-picker">' +
    +            '<a href="#" class="link icon-only picker-calendar-prev-month"><i class="icon icon-prev"></i></a>' +
    +            '<div class="current-month-value"></div>' +
    +            '<a href="#" class="link icon-only picker-calendar-next-month"><i class="icon icon-next"></i></a>' +
    +        '</div>',
    +    yearPicker: true,
    +    yearPickerTemplate: 
    +        '<div class="picker-calendar-year-picker">' +
    +            '<a href="#" class="link icon-only picker-calendar-prev-year"><i class="icon icon-prev"></i></a>' +
    +            '<span class="current-year-value"></span>' +
    +            '<a href="#" class="link icon-only picker-calendar-next-year"><i class="icon icon-next"></i></a>' +
    +        '</div>',
    +    weekHeader: true,
    +    // Common settings
    +    scrollToInput: true,
    +    inputReadOnly: true,
    +    convertToPopover: true,
    +    onlyInPopover: false,
    +    toolbar: true,
    +    toolbarCloseText: 'Done',
    +    toolbarTemplate: 
    +        '<div class="toolbar">' +
    +            '<div class="toolbar-inner">' +
    +                '{{monthPicker}}' +
    +                '{{yearPicker}}' +
    +                // '<a href="#" class="link close-picker">{{closeText}}</a>' +
    +            '</div>' +
    +        '</div>',
    +    /* Callbacks
    +    onMonthAdd
    +    onChange
    +    onOpen
    +    onClose
    +    onDayClick
    +    onMonthYearChangeStart
    +    onMonthYearChangeEnd
    +    */
    +  };
    +
    +  $.initCalendar = function(content) {
    +    var $content = content ? $(content) : $(document.body);
    +    $content.find("[data-toggle='date']").each(function() {
    +      $(this).calendar();
    +    });
    +  };
    +}($);
    +
    +/*======================================================
    +************   Picker   ************
    +======================================================*/
    +/* global $:true */
    +/* jshint unused:false */
    +/* jshint multistr:true */
    ++ function($) {
    +  "use strict";
    +  var Picker = function (params) {
    +      var p = this;
    +      var defaults = {
    +          updateValuesOnMomentum: false,
    +          updateValuesOnTouchmove: true,
    +          rotateEffect: false,
    +          momentumRatio: 7,
    +          freeMode: false,
    +          // Common settings
    +          scrollToInput: true,
    +          inputReadOnly: true,
    +          convertToPopover: true,
    +          onlyInPopover: false,
    +          toolbar: true,
    +          toolbarCloseText: 'OK',
    +          toolbarTemplate: '<header class="bar bar-nav">\
    +          <button class="button button-link pull-right close-picker">OK</button>\
    +          <h1 class="title"></h1>\
    +          </header>',
    +      };
    +      params = params || {};
    +      for (var def in defaults) {
    +          if (typeof params[def] === 'undefined') {
    +              params[def] = defaults[def];
    +          }
    +      }
    +      p.params = params;
    +      p.cols = [];
    +      p.initialized = false;
    +      
    +      // Inline flag
    +      p.inline = p.params.container ? true : false;
    +
    +      // 3D Transforms origin bug, only on safari
    +      var originBug = $.device.ios || (navigator.userAgent.toLowerCase().indexOf('safari') >= 0 && navigator.userAgent.toLowerCase().indexOf('chrome') < 0) && !$.device.android;
    +
    +      // Should be converted to popover
    +      function isPopover() {
    +          var toPopover = false;
    +          if (!p.params.convertToPopover && !p.params.onlyInPopover) return toPopover;
    +          if (!p.inline && p.params.input) {
    +              if (p.params.onlyInPopover) toPopover = true;
    +              else {
    +                  if ($.device.ios) {
    +                      toPopover = $.device.ipad ? true : false;
    +                  }
    +                  else {
    +                      if ($(window).width() >= 768) toPopover = true;
    +                  }
    +              }
    +          } 
    +          return toPopover; 
    +      }
    +      function inPopover() {
    +          if (p.opened && p.container && p.container.length > 0 && p.container.parents('.popover').length > 0) return true;
    +          else return false;
    +      }
    +
    +      // Value
    +      p.setValue = function (arrValues, transition) {
    +          var valueIndex = 0;
    +          for (var i = 0; i < p.cols.length; i++) {
    +              if (p.cols[i] && !p.cols[i].divider) {
    +                  p.cols[i].setValue(arrValues[valueIndex], transition);
    +                  valueIndex++;
    +              }
    +          }
    +      };
    +      p.updateValue = function () {
    +          var newValue = [];
    +          var newDisplayValue = [];
    +          for (var i = 0; i < p.cols.length; i++) {
    +              if (!p.cols[i].divider) {
    +                  newValue.push(p.cols[i].value);
    +                  newDisplayValue.push(p.cols[i].displayValue);
    +              }
    +          }
    +          if (newValue.indexOf(undefined) >= 0) {
    +              return;
    +          }
    +          p.value = newValue;
    +          p.displayValue = newDisplayValue;
    +          if (p.params.onChange) {
    +              p.params.onChange(p, p.value, p.displayValue);
    +          }
    +          if (p.input && p.input.length > 0) {
    +              $(p.input).val(p.params.formatValue ? p.params.formatValue(p, p.value, p.displayValue) : p.value.join(' '));
    +              $(p.input).trigger('change');
    +          }
    +      };
    +
    +      // Columns Handlers
    +      p.initPickerCol = function (colElement, updateItems) {
    +          var colContainer = $(colElement);
    +          var colIndex = colContainer.index();
    +          var col = p.cols[colIndex];
    +          if (col.divider) return;
    +          col.container = colContainer;
    +          col.wrapper = col.container.find('.picker-items-col-wrapper');
    +          col.items = col.wrapper.find('.picker-item');
    +          
    +          var i, j;
    +          var wrapperHeight, itemHeight, itemsHeight, minTranslate, maxTranslate;
    +          col.replaceValues = function (values, displayValues) {
    +              col.destroyEvents();
    +              col.values = values;
    +              col.displayValues = displayValues;
    +              var newItemsHTML = p.columnHTML(col, true);
    +              col.wrapper.html(newItemsHTML);
    +              col.items = col.wrapper.find('.picker-item');
    +              col.calcSize();
    +              col.setValue(col.values[0], 0, true);
    +              col.initEvents();
    +          };
    +          col.calcSize = function () {
    +              if (p.params.rotateEffect) {
    +                  col.container.removeClass('picker-items-col-absolute');
    +                  if (!col.width) col.container.css({width:''});
    +              }
    +              var colWidth, colHeight;
    +              colWidth = 0;
    +              colHeight = col.container[0].offsetHeight;
    +              wrapperHeight = col.wrapper[0].offsetHeight;
    +              itemHeight = col.items[0].offsetHeight;
    +              itemsHeight = itemHeight * col.items.length;
    +              minTranslate = colHeight / 2 - itemsHeight + itemHeight / 2;
    +              maxTranslate = colHeight / 2 - itemHeight / 2;    
    +              if (col.width) {
    +                  colWidth = col.width;
    +                  if (parseInt(colWidth, 10) === colWidth) colWidth = colWidth + 'px';
    +                  col.container.css({width: colWidth});
    +              }
    +              if (p.params.rotateEffect) {
    +                  if (!col.width) {
    +                      col.items.each(function () {
    +                          var item = $(this);
    +                          item.css({width:'auto'});
    +                          colWidth = Math.max(colWidth, item[0].offsetWidth);
    +                          item.css({width:''});
    +                      });
    +                      col.container.css({width: (colWidth + 2) + 'px'});
    +                  }
    +                  col.container.addClass('picker-items-col-absolute');
    +              }
    +          };
    +          col.calcSize();
    +          
    +          col.wrapper.transform('translate3d(0,' + maxTranslate + 'px,0)').transition(0);
    +
    +
    +          var activeIndex = 0;
    +          var animationFrameId;
    +
    +          // Set Value Function
    +          col.setValue = function (newValue, transition, valueCallbacks) {
    +              if (typeof transition === 'undefined') transition = '';
    +              var newActiveIndex = col.wrapper.find('.picker-item[data-picker-value="' + newValue + '"]').index();
    +              if(typeof newActiveIndex === 'undefined' || newActiveIndex === -1) {
    +                  return;
    +              }
    +              var newTranslate = -newActiveIndex * itemHeight + maxTranslate;
    +              // Update wrapper
    +              col.wrapper.transition(transition);
    +              col.wrapper.transform('translate3d(0,' + (newTranslate) + 'px,0)');
    +                  
    +              // Watch items
    +              if (p.params.updateValuesOnMomentum && col.activeIndex && col.activeIndex !== newActiveIndex ) {
    +                  $.cancelAnimationFrame(animationFrameId);
    +                  col.wrapper.transitionEnd(function(){
    +                      $.cancelAnimationFrame(animationFrameId);
    +                  });
    +                  updateDuringScroll();
    +              }
    +
    +              // Update items
    +              col.updateItems(newActiveIndex, newTranslate, transition, valueCallbacks);
    +          };
    +
    +          col.updateItems = function (activeIndex, translate, transition, valueCallbacks) {
    +              if (typeof translate === 'undefined') {
    +                  translate = $.getTranslate(col.wrapper[0], 'y');
    +              }
    +              if(typeof activeIndex === 'undefined') activeIndex = -Math.round((translate - maxTranslate)/itemHeight);
    +              if (activeIndex < 0) activeIndex = 0;
    +              if (activeIndex >= col.items.length) activeIndex = col.items.length - 1;
    +              var previousActiveIndex = col.activeIndex;
    +              col.activeIndex = activeIndex;
    +              /*
    +              col.wrapper.find('.picker-selected, .picker-after-selected, .picker-before-selected').removeClass('picker-selected picker-after-selected picker-before-selected');
    +
    +              col.items.transition(transition);
    +              var selectedItem = col.items.eq(activeIndex).addClass('picker-selected').transform('');
    +              var prevItems = selectedItem.prevAll().addClass('picker-before-selected');
    +              var nextItems = selectedItem.nextAll().addClass('picker-after-selected');
    +              */
    +              //去掉 .picker-after-selected, .picker-before-selected 以提高性能
    +              col.wrapper.find('.picker-selected').removeClass('picker-selected');
    +              if (p.params.rotateEffect) {
    +                col.items.transition(transition);
    +              }
    +              var selectedItem = col.items.eq(activeIndex).addClass('picker-selected').transform('');
    +
    +              if (valueCallbacks || typeof valueCallbacks === 'undefined') {
    +                  // Update values
    +                  col.value = selectedItem.attr('data-picker-value');
    +                  col.displayValue = col.displayValues ? col.displayValues[activeIndex] : col.value;
    +                  // On change callback
    +                  if (previousActiveIndex !== activeIndex) {
    +                      if (col.onChange) {
    +                          col.onChange(p, col.value, col.displayValue);
    +                      }
    +                      p.updateValue();
    +                  }
    +              }
    +                  
    +              // Set 3D rotate effect
    +              if (!p.params.rotateEffect) {
    +                  return;
    +              }
    +              var percentage = (translate - (Math.floor((translate - maxTranslate)/itemHeight) * itemHeight + maxTranslate)) / itemHeight;
    +              
    +              col.items.each(function () {
    +                  var item = $(this);
    +                  var itemOffsetTop = item.index() * itemHeight;
    +                  var translateOffset = maxTranslate - translate;
    +                  var itemOffset = itemOffsetTop - translateOffset;
    +                  var percentage = itemOffset / itemHeight;
    +
    +                  var itemsFit = Math.ceil(col.height / itemHeight / 2) + 1;
    +                  
    +                  var angle = (-18*percentage);
    +                  if (angle > 180) angle = 180;
    +                  if (angle < -180) angle = -180;
    +                  // Far class
    +                  if (Math.abs(percentage) > itemsFit) item.addClass('picker-item-far');
    +                  else item.removeClass('picker-item-far');
    +                  // Set transform
    +                  item.transform('translate3d(0, ' + (-translate + maxTranslate) + 'px, ' + (originBug ? -110 : 0) + 'px) rotateX(' + angle + 'deg)');
    +              });
    +          };
    +
    +          function updateDuringScroll() {
    +              animationFrameId = $.requestAnimationFrame(function () {
    +                  col.updateItems(undefined, undefined, 0);
    +                  updateDuringScroll();
    +              });
    +          }
    +
    +          // Update items on init
    +          if (updateItems) col.updateItems(0, maxTranslate, 0);
    +
    +          var allowItemClick = true;
    +          var isTouched, isMoved, touchStartY, touchCurrentY, touchStartTime, touchEndTime, startTranslate, returnTo, currentTranslate, prevTranslate, velocityTranslate, velocityTime;
    +          function handleTouchStart (e) {
    +              if (isMoved || isTouched) return;
    +              e.preventDefault();
    +              isTouched = true;
    +              var position = $.getTouchPosition(e);
    +              touchStartY = touchCurrentY = position.y;
    +              touchStartTime = (new Date()).getTime();
    +              
    +              allowItemClick = true;
    +              startTranslate = currentTranslate = $.getTranslate(col.wrapper[0], 'y');
    +          }
    +          function handleTouchMove (e) {
    +              if (!isTouched) return;
    +              e.preventDefault();
    +              allowItemClick = false;
    +              var position = $.getTouchPosition(e);
    +              touchCurrentY = position.y;
    +              if (!isMoved) {
    +                  // First move
    +                  $.cancelAnimationFrame(animationFrameId);
    +                  isMoved = true;
    +                  startTranslate = currentTranslate = $.getTranslate(col.wrapper[0], 'y');
    +                  col.wrapper.transition(0);
    +              }
    +              e.preventDefault();
    +
    +              var diff = touchCurrentY - touchStartY;
    +              currentTranslate = startTranslate + diff;
    +              returnTo = undefined;
    +
    +              // Normalize translate
    +              if (currentTranslate < minTranslate) {
    +                  currentTranslate = minTranslate - Math.pow(minTranslate - currentTranslate, 0.8);
    +                  returnTo = 'min';
    +              }
    +              if (currentTranslate > maxTranslate) {
    +                  currentTranslate = maxTranslate + Math.pow(currentTranslate - maxTranslate, 0.8);
    +                  returnTo = 'max';
    +              }
    +              // Transform wrapper
    +              col.wrapper.transform('translate3d(0,' + currentTranslate + 'px,0)');
    +
    +              // Update items
    +              col.updateItems(undefined, currentTranslate, 0, p.params.updateValuesOnTouchmove);
    +              
    +              // Calc velocity
    +              velocityTranslate = currentTranslate - prevTranslate || currentTranslate;
    +              velocityTime = (new Date()).getTime();
    +              prevTranslate = currentTranslate;
    +          }
    +          function handleTouchEnd (e) {
    +              if (!isTouched || !isMoved) {
    +                  isTouched = isMoved = false;
    +                  return;
    +              }
    +              isTouched = isMoved = false;
    +              col.wrapper.transition('');
    +              if (returnTo) {
    +                  if (returnTo === 'min') {
    +                      col.wrapper.transform('translate3d(0,' + minTranslate + 'px,0)');
    +                  }
    +                  else col.wrapper.transform('translate3d(0,' + maxTranslate + 'px,0)');
    +              }
    +              touchEndTime = new Date().getTime();
    +              var velocity, newTranslate;
    +              if (touchEndTime - touchStartTime > 300) {
    +                  newTranslate = currentTranslate;
    +              }
    +              else {
    +                  velocity = Math.abs(velocityTranslate / (touchEndTime - velocityTime));
    +                  newTranslate = currentTranslate + velocityTranslate * p.params.momentumRatio;
    +              }
    +
    +              newTranslate = Math.max(Math.min(newTranslate, maxTranslate), minTranslate);
    +
    +              // Active Index
    +              var activeIndex = -Math.floor((newTranslate - maxTranslate)/itemHeight);
    +
    +              // Normalize translate
    +              if (!p.params.freeMode) newTranslate = -activeIndex * itemHeight + maxTranslate;
    +
    +              // Transform wrapper
    +              col.wrapper.transform('translate3d(0,' + (parseInt(newTranslate,10)) + 'px,0)');
    +
    +              // Update items
    +              col.updateItems(activeIndex, newTranslate, '', true);
    +
    +              // Watch items
    +              if (p.params.updateValuesOnMomentum) {
    +                  updateDuringScroll();
    +                  col.wrapper.transitionEnd(function(){
    +                      $.cancelAnimationFrame(animationFrameId);
    +                  });
    +              }
    +
    +              // Allow click
    +              setTimeout(function () {
    +                  allowItemClick = true;
    +              }, 100);
    +          }
    +
    +          function handleClick(e) {
    +              if (!allowItemClick) return;
    +              $.cancelAnimationFrame(animationFrameId);
    +              /*jshint validthis:true */
    +              var value = $(this).attr('data-picker-value');
    +              col.setValue(value);
    +          }
    +
    +          col.initEvents = function (detach) {
    +              var method = detach ? 'off' : 'on';
    +              col.container[method]($.touchEvents.start, handleTouchStart);
    +              col.container[method]($.touchEvents.move, handleTouchMove);
    +              col.container[method]($.touchEvents.end, handleTouchEnd);
    +              col.items[method]('click', handleClick);
    +          };
    +          col.destroyEvents = function () {
    +              col.initEvents(true);
    +          };
    +
    +          col.container[0].f7DestroyPickerCol = function () {
    +              col.destroyEvents();
    +          };
    +
    +          col.initEvents();
    +
    +      };
    +      p.destroyPickerCol = function (colContainer) {
    +          colContainer = $(colContainer);
    +          if ('f7DestroyPickerCol' in colContainer[0]) colContainer[0].f7DestroyPickerCol();
    +      };
    +      // Resize cols
    +      function resizeCols() {
    +          if (!p.opened) return;
    +          for (var i = 0; i < p.cols.length; i++) {
    +              if (!p.cols[i].divider) {
    +                  p.cols[i].calcSize();
    +                  p.cols[i].setValue(p.cols[i].value, 0, false);
    +              }
    +          }
    +      }
    +      $(window).on('resize', resizeCols);
    +
    +      // HTML Layout
    +      p.columnHTML = function (col, onlyItems) {
    +          var columnItemsHTML = '';
    +          var columnHTML = '';
    +          if (col.divider) {
    +              columnHTML += '<div class="picker-items-col picker-items-col-divider ' + (col.textAlign ? 'picker-items-col-' + col.textAlign : '') + ' ' + (col.cssClass || '') + '">' + col.content + '</div>';
    +          }
    +          else {
    +              for (var j = 0; j < col.values.length; j++) {
    +                  columnItemsHTML += '<div class="picker-item" data-picker-value="' + col.values[j] + '">' + (col.displayValues ? col.displayValues[j] : col.values[j]) + '</div>';
    +              }
    +              columnHTML += '<div class="picker-items-col ' + (col.textAlign ? 'picker-items-col-' + col.textAlign : '') + ' ' + (col.cssClass || '') + '"><div class="picker-items-col-wrapper">' + columnItemsHTML + '</div></div>';
    +          }
    +          return onlyItems ? columnItemsHTML : columnHTML;
    +      };
    +      p.layout = function () {
    +          var pickerHTML = '';
    +          var pickerClass = '';
    +          var i;
    +          p.cols = [];
    +          var colsHTML = '';
    +          for (i = 0; i < p.params.cols.length; i++) {
    +              var col = p.params.cols[i];
    +              colsHTML += p.columnHTML(p.params.cols[i]);
    +              p.cols.push(col);
    +          }
    +          pickerClass = 'picker-modal picker-columns ' + (p.params.cssClass || '') + (p.params.rotateEffect ? ' picker-3d' : '');
    +          pickerHTML =
    +              '<div class="' + (pickerClass) + '">' +
    +                  (p.params.toolbar ? p.params.toolbarTemplate.replace(/{{closeText}}/g, p.params.toolbarCloseText) : '') +
    +                  '<div class="picker-modal-inner picker-items">' +
    +                      colsHTML +
    +                      '<div class="picker-center-highlight"></div>' +
    +                  '</div>' +
    +              '</div>';
    +              
    +          p.pickerHTML = pickerHTML;    
    +      };
    +
    +      // Input Events
    +      function openOnInput(e) {
    +          e.preventDefault();
    +          if (p.opened) return;
    +          p.open();
    +          if (p.params.scrollToInput && !isPopover()) {
    +              var pageContent = p.input.parents('.content');
    +              if (pageContent.length === 0) return;
    +
    +              var paddingTop = parseInt(pageContent.css('padding-top'), 10),
    +                  paddingBottom = parseInt(pageContent.css('padding-bottom'), 10),
    +                  pageHeight = pageContent[0].offsetHeight - paddingTop - p.container.height(),
    +                  pageScrollHeight = pageContent[0].scrollHeight - paddingTop - p.container.height(),
    +                  newPaddingBottom;
    +              var inputTop = p.input.offset().top - paddingTop + p.input[0].offsetHeight;
    +              if (inputTop > pageHeight) {
    +                  var scrollTop = pageContent.scrollTop() + inputTop - pageHeight;
    +                  if (scrollTop + pageHeight > pageScrollHeight) {
    +                      newPaddingBottom = scrollTop + pageHeight - pageScrollHeight + paddingBottom;
    +                      if (pageHeight === pageScrollHeight) {
    +                          newPaddingBottom = p.container.height();
    +                      }
    +                      pageContent.css({'padding-bottom': (newPaddingBottom) + 'px'});
    +                  }
    +                  pageContent.scrollTop(scrollTop, 300);
    +              }
    +          }
    +      }
    +      function closeOnHTMLClick(e) {
    +          if (inPopover()) return;
    +          if (p.input && p.input.length > 0) {
    +              if (e.target !== p.input[0] && $(e.target).parents('.picker-modal').length === 0) p.close();
    +          }
    +          else {
    +              if ($(e.target).parents('.picker-modal').length === 0) p.close();   
    +          }
    +      }
    +
    +      if (p.params.input) {
    +          p.input = $(p.params.input);
    +          if (p.input.length > 0) {
    +              if (p.params.inputReadOnly) p.input.prop('readOnly', true);
    +              if (!p.inline) {
    +                p.input.on("click", function(e) {
    +                  openOnInput(e);
    +                  //修复部分安卓系统下,即使设置了readonly依然会弹出系统键盘的bug
    +                  if (p.params.inputReadOnly) {
    +                    this.focus();
    +                    this.blur();
    +                  }
    +                });
    +              }
    +              if (p.params.inputReadOnly) {
    +                  p.input.on('focus mousedown', function (e) {
    +                      e.preventDefault();
    +                  });
    +              }
    +          }
    +              
    +      }
    +      
    +      if (!p.inline) $('html').on('click', closeOnHTMLClick);
    +
    +      // Open
    +      function onPickerClose() {
    +          p.opened = false;
    +          if (p.input && p.input.length > 0) p.input.parents('.page-content').css({'padding-bottom': ''});
    +          if (p.params.onClose) p.params.onClose(p);
    +
    +          // Destroy events
    +          p.container.find('.picker-items-col').each(function () {
    +              p.destroyPickerCol(this);
    +          });
    +      }
    +
    +      p.opened = false;
    +      p.open = function () {
    +          var toPopover = isPopover();
    +
    +          if (!p.opened) {
    +
    +              // Layout
    +              p.layout();
    +
    +              // Append
    +              if (toPopover) {
    +                  p.pickerHTML = '<div class="popover popover-picker-columns"><div class="popover-inner">' + p.pickerHTML + '</div></div>';
    +                  p.popover = $.popover(p.pickerHTML, p.params.input, true);
    +                  p.container = $(p.popover).find('.picker-modal');
    +                  $(p.popover).on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +              else if (p.inline) {
    +                  p.container = $(p.pickerHTML);
    +                  p.container.addClass('picker-modal-inline');
    +                  $(p.params.container).append(p.container);
    +              }
    +              else {
    +                  p.container = $($.pickerModal(p.pickerHTML));
    +                  $(p.container)
    +                  .on('close', function () {
    +                      onPickerClose();
    +                  });
    +              }
    +
    +              // Store picker instance
    +              p.container[0].f7Picker = p;
    +
    +              // Init Events
    +              p.container.find('.picker-items-col').each(function () {
    +                  var updateItems = true;
    +                  if ((!p.initialized && p.params.value) || (p.initialized && p.value)) updateItems = false;
    +                  p.initPickerCol(this, updateItems);
    +              });
    +              
    +              // Set value
    +              if (!p.initialized) {
    +                  if (p.params.value) {
    +                      p.setValue(p.params.value, 0);
    +                  }
    +              }
    +              else {
    +                  if (p.value) p.setValue(p.value, 0);
    +              }
    +          }
    +
    +          // Set flag
    +          p.opened = true;
    +          p.initialized = true;
    +
    +          if (p.params.onOpen) p.params.onOpen(p);
    +      };
    +
    +      // Close
    +      p.close = function () {
    +          if (!p.opened || p.inline) return;
    +          if (inPopover()) {
    +              $.closeModal(p.popover);
    +              return;
    +          }
    +          else {
    +              $.closeModal(p.container);
    +              return;
    +          }
    +      };
    +
    +      // Destroy
    +      p.destroy = function () {
    +          p.close();
    +          if (p.params.input && p.input.length > 0) {
    +              p.input.off('click focus', openOnInput);
    +          }
    +          $('html').off('click', closeOnHTMLClick);
    +          $(window).off('resize', resizeCols);
    +      };
    +
    +      if (p.inline) {
    +          p.open();
    +      }
    +
    +      return p;
    +  };
    +
    +  $(document).on("click", ".close-picker", function() {
    +    var pickerToClose = $('.picker-modal.modal-in');
    +    if (pickerToClose.length > 0) {
    +      $.closeModal(pickerToClose);
    +    }
    +    else {
    +      pickerToClose = $('.popover.modal-in .picker-modal');
    +      if (pickerToClose.length > 0) {
    +        $.closeModal(pickerToClose.parents('.popover'));
    +      }
    +    }
    +  });
    +
    +  //修复picker会滚动页面的bug
    +  $(document).on($.touchEvents.move, ".picker-modal-inner", function(e) {
    +    e.preventDefault();
    +  });
    +
    +  $.fn.picker = function(params) {
    +    var args = arguments;
    +    return this.each(function() {
    +      if(!this) return;
    +      var $this = $(this);
    +      
    +      var picker = $this.data("picker");
    +      if(!picker) {
    +        params = params || {};
    +        var inputValue = $this.val();
    +        if(params.value === undefined && inputValue !== "") {
    +          params.value = params.cols.length > 1 ? inputValue.split(" ") : [inputValue];
    +        }
    +        var p = $.extend({input: this}, params);
    +        picker = new Picker(p);
    +        $this.data("picker", picker);
    +      }
    +      if(typeof params === typeof "a") {
    +        picker[params].apply(picker, Array.prototype.slice.call(args, 1));
    +      }
    +    });
    +  };
    +}($);
    +
    +/* global $:true */
    +/* jshint unused:false*/
    +
    ++ function($) {
    +  "use strict";
    +
    +  
    +  $.fn.datetimePicker = function(params) {
    +    return this.each(function() {
    +
    +      if(!this) return;
    +
    +      var today = new Date();
    +
    +      var getDays = function(max) {
    +        var days = [];
    +        for(var i=1; i<= (max||31);i++) {
    +          days.push(i < 10 ? "0"+i : i);
    +        }
    +        return days;
    +      };
    +
    +      var getDaysByMonthAndYear = function(month, year) {
    +        var int_d = new Date(year, parseInt(month)+1-1, 1);
    +        var d = new Date(int_d - 1);
    +        return getDays(d.getDate());
    +      };
    +
    +      var formatNumber = function (n) {
    +        return n < 10 ? "0" + n : n;
    +      };
    +
    +      var initMonthes = ('01 02 03 04 05 06 07 08 09 10 11 12').split(' ');
    +
    +      var initYears = (function () {
    +        var arr = [];
    +        for (var i = 1950; i <= 2030; i++) { arr.push(i); }
    +        return arr;
    +      })();
    +
    +
    +      var defaults = {
    +
    +        rotateEffect: false,  //为了性能
    +
    +        value: [today.getFullYear(), formatNumber(today.getMonth()+1), today.getDate(), formatNumber(today.getHours()), formatNumber(today.getMinutes())],
    +
    +        onChange: function (picker, values, displayValues) {
    +          var days = getDaysByMonthAndYear(picker.cols[1].value, picker.cols[0].value);
    +          var currentValue = picker.cols[2].value;
    +          if(currentValue > days.length) currentValue = days.length;
    +          picker.cols[2].setValue(currentValue);
    +        },
    +
    +        formatValue: function (p, values, displayValues) {
    +          return displayValues[0] + '-' + values[1] + '-' + values[2] + ' ';
    +        },
    +
    +        cols: [
    +          // Years
    +          {
    +            values: initYears
    +          },
    +          // Months
    +          {
    +            values: initMonthes
    +          },
    +          // Days
    +          {
    +            values: getDays()
    +          },
    +
    +//          // Space divider
    +//          {
    +//            divider: true,
    +//            content: '  '
    +//          },
    +//          // Hours
    +//          {
    +//            values: (function () {
    +//              var arr = [];
    +//              for (var i = 0; i <= 23; i++) { arr.push(formatNumber(i)); }
    +//              return arr;
    +//            })(),
    +//          },
    +//          // Divider
    +//          {
    +//            divider: true,
    +//            content: ':'
    +//          },
    +//          // Minutes
    +//          {
    +//            values: (function () {
    +//              var arr = [];
    +//              for (var i = 0; i <= 59; i++) { arr.push(formatNumber(i)); }
    +//              return arr;
    +//            })(),
    +//          }
    +        ]
    +      };
    +
    +      params = params || {};
    +      var inputValue = $(this).val();
    +      if(params.value === undefined && inputValue !== "") {
    +        params.value = [].concat(inputValue.split(" ")[0].split("-"), inputValue.split(" ")[1].split(":"));
    +      }
    +
    +      var p = $.extend(defaults, params);
    +      $(this).picker(p);
    +    });
    +  };
    +
    +}($);
    +
    ++ function($) {
    +    'use strict';
    +
    +    $.initPullToRefresh = function(pageContainer) {
    +        var eventsTarget = $(pageContainer);
    +        if (!eventsTarget.hasClass('pull-to-refresh-content')) {
    +            eventsTarget = eventsTarget.find('.pull-to-refresh-content');
    +        }
    +        if (!eventsTarget || eventsTarget.length === 0) return;
    +
    +        var isTouched, isMoved, touchesStart = {},
    +            isScrolling, touchesDiff, touchStartTime, container, refresh = false,
    +            useTranslate = false,
    +            startTranslate = 0,
    +            translate, scrollTop, wasScrolled, triggerDistance, dynamicTriggerDistance;
    +        
    +        container = eventsTarget;
    +
    +        // Define trigger distance
    +        if (container.attr('data-ptr-distance')) {
    +            dynamicTriggerDistance = true;
    +        } else {
    +            triggerDistance = 44;
    +        }
    +
    +        function handleTouchStart(e) {
    +            if (isTouched) {
    +                if ($.os.android) {
    +                    if ('targetTouches' in e && e.targetTouches.length > 1) return;
    +                } else return;
    +            }
    +            isMoved = false;
    +            isTouched = true;
    +            isScrolling = undefined;
    +            wasScrolled = undefined;
    +            var position = $.getTouchPosition(e);
    +            touchesStart.x = position.x;
    +            touchesStart.y = position.y;
    +            touchStartTime = (new Date()).getTime();
    +            /*jshint validthis:true */
    +            container = $(this);
    +        }
    +
    +        function handleTouchMove(e) {
    +            if (!isTouched) return;
    +            var position = $.getTouchPosition(e);
    +            var pageX = position.x;
    +            var pageY = position.y;
    +            if (typeof isScrolling === 'undefined') {
    +                isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x));
    +            }
    +            if (!isScrolling) {
    +                isTouched = false;
    +                return;
    +            }
    +
    +            scrollTop = container[0].scrollTop;
    +            if (typeof wasScrolled === 'undefined' && scrollTop !== 0) wasScrolled = true;
    +
    +            if (!isMoved) {
    +                /*jshint validthis:true */
    +                container.removeClass('transitioning');
    +                if (scrollTop > container[0].offsetHeight) {
    +                    isTouched = false;
    +                    return;
    +                }
    +                if (dynamicTriggerDistance) {
    +                    triggerDistance = container.attr('data-ptr-distance');
    +                    if (triggerDistance.indexOf('%') >= 0) triggerDistance = container[0].offsetHeight * parseInt(triggerDistance, 10) / 100;
    +                }
    +                startTranslate = container.hasClass('refreshing') ? triggerDistance : 0;
    +                if (container[0].scrollHeight === container[0].offsetHeight || !$.os.ios) {
    +                    useTranslate = true;
    +                } else {
    +                    useTranslate = false;
    +                }
    +                useTranslate = true;
    +            }
    +            isMoved = true;
    +            touchesDiff = pageY - touchesStart.y;
    +
    +            if (touchesDiff > 0 && scrollTop <= 0 || scrollTop < 0) {
    +                // iOS 8 fix
    +                if ($.os.ios && parseInt($.os.version.split('.')[0], 10) > 7 && scrollTop === 0 && !wasScrolled) useTranslate = true;
    +
    +                if (useTranslate) {
    +                    e.preventDefault();
    +                    translate = (Math.pow(touchesDiff, 0.85) + startTranslate);
    +                    container.transform('translate3d(0,' + translate + 'px,0)');
    +                } else {}
    +                if ((useTranslate && Math.pow(touchesDiff, 0.85) > triggerDistance) || (!useTranslate && touchesDiff >= triggerDistance * 2)) {
    +                    refresh = true;
    +                    container.addClass('pull-up').removeClass('pull-down');
    +                } else {
    +                    refresh = false;
    +                    container.removeClass('pull-up').addClass('pull-down');
    +                }
    +            } else {
    +
    +                container.removeClass('pull-up pull-down');
    +                refresh = false;
    +                return;
    +            }
    +        }
    +
    +        function handleTouchEnd() {
    +            if (!isTouched || !isMoved) {
    +                isTouched = false;
    +                isMoved = false;
    +                return;
    +            }
    +            if (translate) {
    +                container.addClass('transitioning');
    +                translate = 0;
    +            }
    +            container.transform('');
    +            if (refresh) {
    +                container.addClass('refreshing');
    +                container.trigger('refresh', {
    +                    done: function() {
    +                        $.pullToRefreshDone(container);
    +                    }
    +                });
    +            } else {
    +                container.removeClass('pull-down');
    +            }
    +            isTouched = false;
    +            isMoved = false;
    +        }
    +
    +        // Attach Events
    +        eventsTarget.on($.touchEvents.start, handleTouchStart);
    +        eventsTarget.on($.touchEvents.move, handleTouchMove);
    +        eventsTarget.on($.touchEvents.end, handleTouchEnd);
    +
    +
    +        function destroyPullToRefresh() {
    +            eventsTarget.off($.touchEvents.start, handleTouchStart);
    +            eventsTarget.off($.touchEvents.move, handleTouchMove);
    +            eventsTarget.off($.touchEvents.end, handleTouchEnd);
    +        }
    +        eventsTarget[0].destroyPullToRefresh = destroyPullToRefresh;
    +
    +    };
    +    $.pullToRefreshDone = function(container) {
    +        container = $(container);
    +        if (container.length === 0) container = $('.pull-to-refresh-content.refreshing');
    +        container.removeClass('refreshing').addClass('transitioning');
    +        container.transitionEnd(function() {
    +            container.removeClass('transitioning pull-up pull-down');
    +        });
    +    };
    +    $.pullToRefreshTrigger = function(container) {
    +        container = $(container);
    +        if (container.length === 0) container = $('.pull-to-refresh-content');
    +        if (container.hasClass('refreshing')) return;
    +        container.addClass('transitioning refreshing');
    +        container.trigger('refresh', {
    +            done: function() {
    +                $.pullToRefreshDone(container);
    +            }
    +        });
    +    };
    +
    +    $.destroyPullToRefresh = function(pageContainer) {
    +        pageContainer = $(pageContainer);
    +        var pullToRefreshContent = pageContainer.hasClass('pull-to-refresh-content') ? pageContainer : pageContainer.find('.pull-to-refresh-content');
    +        if (pullToRefreshContent.length === 0) return;
    +        if (pullToRefreshContent[0].destroyPullToRefresh) pullToRefreshContent[0].destroyPullToRefresh();
    +    };
    +
    +}($); //jshint ignore:line
    +
    +/* global $:true */
    ++ function($) {
    +    'use strict';
    +   
    +    function handleInfiniteScroll() {
    +        /*jshint validthis:true */
    +        var inf = $(this);
    +        var scrollTop = inf.scrollTop();
    +        var scrollHeight = inf.scrollHeight();
    +        var height = inf[0].offsetHeight;
    +        var distance = inf[0].getAttribute('data-distance');
    +        var virtualListContainer = inf.find('.virtual-list');
    +        var virtualList;
    +        var onTop = inf.hasClass('infinite-scroll-top');
    +        if (!distance) distance = 50;
    +        if (typeof distance === 'string' && distance.indexOf('%') >= 0) {
    +            distance = parseInt(distance, 10) / 100 * height;
    +        }
    +        if (distance > height) distance = height;
    +        if (onTop) {
    +            if (scrollTop < distance) {
    +                inf.trigger('infinite');
    +            }
    +        } else {
    +            if (scrollTop + height >= scrollHeight - distance) {
    +                if (virtualListContainer.length > 0) {
    +                    virtualList = virtualListContainer[0].f7VirtualList;
    +                    if (virtualList && !virtualList.reachEnd) return;
    +                }
    +                inf.trigger('infinite');
    +            }
    +        }
    +
    +    }
    +    $.attachInfiniteScroll = function(infiniteContent) {
    +        $(infiniteContent).on('scroll', handleInfiniteScroll);
    +    };
    +    $.detachInfiniteScroll = function(infiniteContent) {
    +        $(infiniteContent).off('scroll', handleInfiniteScroll);
    +    };
    +
    +    $.initInfiniteScroll = function(pageContainer) {
    +        pageContainer = $(pageContainer);
    +        var infiniteContent = pageContainer.hasClass('infinite-scroll')?pageContainer:pageContainer.find('.infinite-scroll');
    +        if (infiniteContent.length === 0) return;
    +        $.attachInfiniteScroll(infiniteContent);
    +
    +        function detachEvents() {
    +            $.detachInfiniteScroll(infiniteContent);
    +            pageContainer.off('pageBeforeRemove', detachEvents);
    +        }
    +        pageContainer.on('pageBeforeRemove', detachEvents);
    +    };
    +}($); 
    +
    +/* ===============================================================================
    +************   Notification ************
    +=============================================================================== */
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  var noti, defaults, timeout, start, diffX, diffY;
    +
    +  var touchStart = function(e) {
    +    var p = $.getTouchPosition(e);
    +    start = p;
    +    diffX = diffY = 0;
    +    noti.addClass("touching");
    +  };
    +  var touchMove = function(e) {
    +    if(!start) return false;
    +    e.preventDefault();
    +    e.stopPropagation();
    +    var p = $.getTouchPosition(e);
    +    diffX = p.x - start.x;
    +    diffY = p.y - start.y;
    +    if(diffY > 0) {
    +      diffY = Math.sqrt(diffY);
    +    }
    +
    +    noti.css("transform", "translate3d(0, "+diffY+"px, 0)");
    +  };
    +  var touchEnd = function() {
    +    noti.removeClass("touching");
    +    noti.attr("style", "");
    +    if(diffY < 0 && (Math.abs(diffY) > noti.height()*0.38)) {
    +      $.closeNotification();
    +    }
    +
    +    if(Math.abs(diffX) <= 1 && Math.abs(diffY) <= 1) {
    +      noti.trigger("noti-click");
    +    }
    +
    +    start = false;
    +  };
    +
    +  var attachEvents = function(el) {
    +    el.on($.touchEvents.start, touchStart);
    +    el.on($.touchEvents.move, touchMove);
    +    el.on($.touchEvents.end, touchEnd);
    +  };
    +
    +  $.notification = $.noti = function(params) {
    +    params = $.extend({}, defaults, params);
    +    noti = $(".notification");
    +    if(!noti[0]) { // create a new notification
    +      noti = $('<div class="notification"></div>').appendTo(document.body);
    +      attachEvents(noti);
    +    }
    +
    +    noti.off("noti-click"); //the click event is not correct sometime: it will trigger when user is draging.
    +    if(params.onClick) noti.on("noti-click", function() {
    +      params.onClick(params.data);
    +    });
    +
    +    noti.html($.t7.compile(params.tpl)(params));
    +
    +    noti.show();
    +
    +    noti.addClass("notification-in");
    +    noti.data("params", params);
    +
    +    var startTimeout = function() {
    +      if(timeout) {
    +        clearTimeout(timeout);
    +        timeout = null;
    +      }
    +
    +      timeout = setTimeout(function() {
    +        if(noti.hasClass("touching")) {
    +          startTimeout();
    +        } else {
    +          $.closeNotification();
    +        }
    +      }, params.time);
    +    };
    +
    +    startTimeout();
    +
    +  };
    +
    +  $.closeNotification = function() {
    +    timeout && clearTimeout(timeout);
    +    timeout = null;
    +    var noti = $(".notification").removeClass("notification-in").transitionEnd(function() {
    +      $(this).remove();
    +    });
    +
    +    if(noti[0]) {
    +      var params = $(".notification").data("params");
    +      if(params && params.onClose) {
    +        params.onClose(params.data);
    +      }
    +    }
    +  };
    +
    +  defaults = $.noti.prototype.defaults = {
    +    title: undefined,
    +    text: undefined,
    +    media: undefined,
    +    time: 4000,
    +    onClick: undefined,
    +    onClose: undefined,
    +    data: undefined,
    +    tpl:  '<div class="notification-inner">' +
    +            '{{#if media}}<div class="notification-media">{{media}}</div>{{/if}}' +
    +            '<div class="notification-content">' +
    +            '{{#if title}}<div class="notification-title">{{title}}</div>{{/if}}' +
    +            '{{#if text}}<div class="notification-text">{{text}}</div>{{/if}}' +
    +            '</div>' +
    +            '<div class="notification-handle-bar"></div>' +
    +          '</div>'
    +  };
    +
    +}($);
    +
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +
    +  var Index = function(params) {
    +    this.params = params;
    +    this.tpl = $.t7(this.params.indexListTemplate).compile();
    +  };
    +
    +  Index.prototype.render = function(list) {
    +    this.list = $(list || ".list");
    +    this.draw();
    +  };
    +
    +  Index.prototype.draw = function() {
    +    if(this.indexList) this.indexList.remove();
    +    this.titles = this.list.find(this.params.titleSelector);
    +    var titleTexts = this.titles.map(function(i, t) {
    +      return $(t).data("index") || $(t).text();
    +    }).toArray();
    +
    +    this.indexList = $("<ul class='index-list-bar'></ul>").appendTo(this.list.parents(".page"));
    +    this.indexList.html(this.tpl({indexes: titleTexts}));
    +    this.indexList.on($.touchEvents.start, $.proxy(this.touchStart, this));
    +    this.indexList.on($.touchEvents.start + " " + $.touchEvents.move, $.proxy(this.touchMove, this));
    +    this.indexList.on($.touchEvents.end, $.proxy(this.touchEnd, this));
    +
    +    this.content = this.list.parents(".content");
    +  };
    +
    +  Index.prototype.touchStart = function() {
    +    this.pageOffsetTop = this.content.offset().top;
    +    this.touching = true;
    +  };
    +
    +  Index.prototype.touchMove = function(e) {
    +    if(!this.touching) return;
    +    e.preventDefault();
    +    var li = this.getElementOnTouch($.getTouchPosition(e));
    +    if(!li) return;
    +    var title = this.titles.eq(li.data("index"));
    +    var titleTop = title.parent().offset().top; // if a element has class list-group-title, it will be sticky in safari, so it's offset is not correct
    +    var top =  titleTop - this.pageOffsetTop + this.content.scrollTop();
    +    this.content.scrollTop(top);
    +  };
    +
    +  Index.prototype.touchEnd = function() {
    +    this.touching = false;
    +  };
    +
    +  Index.prototype.getElementOnTouch = function(position) {
    +    var result = null;
    +    this.indexList.find("li").each(function() {
    +      if(result) return;
    +      var $this = $(this);
    +      var offset = $this.offset();
    +      if(offset.top < position.y && offset.top + $this.outerHeight() > position.y) {
    +        result = $this;
    +      }
    +    });
    +    return result;
    +  };
    +
    +  $.fn.indexList = function(params) {
    +    return this.each(function() {
    +      if(!this) return;
    +
    +      var list = $(this);
    +
    +      var index = list.data("index");
    +
    +      if(!index) {
    +        params = $.extend({}, $.fn.indexList.prototype.defaults, params);
    +        index = new Index(params).render(list);
    +        list.data("index", index);
    +      }
    +
    +      return index;
    +
    +    });
    +  };
    +
    +
    +  $.fn.indexList.prototype.defaults = {
    +    titleSelector: ".list-group-title",
    +    indexListTemplate: "{{#indexes}}<li data-index={{@index}}><strong>{{this}}</strong></li>{{/indexes}}"
    +  };
    +
    +  $.initIndexList = function(selector) {
    +    var container = $(selector);
    +    if(container.hasClass(".contacts-block")) {
    +      container.indexList();
    +    } else {
    +      container.find(".contacts-block").indexList();
    +    }
    +  };
    +
    +}($);
    +
    +/* global $:true */
    ++function ($) {
    +  "use strict";
    +  $(function() {
    +    $(document).on("focus", ".searchbar input", function(e) {
    +      var $input = $(e.target);
    +      $input.parents(".searchbar").addClass("searchbar-active");
    +    });
    +    $(document).on("click", ".searchbar-cancel", function(e) {
    +      var $btn = $(e.target);
    +      $btn.parents(".searchbar").removeClass("searchbar-active");
    +    });
    +    $(document).on("blur", ".searchbar input", function(e) {
    +      var $input = $(e.target);
    +      $input.parents(".searchbar").removeClass("searchbar-active");
    +    });
    +  });
    +}($);
    +
    +/*======================================================
    +************   Panels   ************
    +======================================================*/
    +/* global $:true */
    +/*jshint unused: false*/
    ++function ($) {
    +  "use strict";
    +  $.allowPanelOpen = true;
    +  $.openPanel = function (panel) {
    +      if (!$.allowPanelOpen) return false;
    +      if(panel === 'left' || panel === 'right') panel = ".panel-" + panel;  //可以传入一个方向
    +      panel = panel ? $(panel) : $(".panel").eq(0);
    +      var direction = panel.hasClass("panel-right") ? "right" : "left";
    +      if (panel.length === 0 || panel.hasClass('active')) return false;
    +      $.closePanel(); // Close if some panel is opened
    +      $.allowPanelOpen = false;
    +      var effect = panel.hasClass('panel-reveal') ? 'reveal' : 'cover';
    +      panel.css({display: 'block'}).addClass('active');
    +      panel.trigger('open');
    +
    +      // Trigger reLayout
    +      var clientLeft = panel[0].clientLeft;
    +      
    +      // Transition End;
    +      var transitionEndTarget = effect === 'reveal' ? $($.getCurrentPage()) : panel;
    +      var openedTriggered = false;
    +      
    +      function panelTransitionEnd() {
    +          transitionEndTarget.transitionEnd(function (e) {
    +              if (e.target === transitionEndTarget[0]) {
    +                  if (panel.hasClass('active')) {
    +                      panel.trigger('opened');
    +                  }
    +                  else {
    +                      panel.trigger('closed');
    +                  }
    +                  $.allowPanelOpen = true;
    +              }
    +              else panelTransitionEnd();
    +          });
    +      }
    +      panelTransitionEnd();
    +
    +      $(document.body).addClass('with-panel-' + direction + '-' + effect);
    +      return true;
    +  };
    +  $.closePanel = function () {
    +      var activePanel = $('.panel.active');
    +      if (activePanel.length === 0) return false;
    +      var effect = activePanel.hasClass('panel-reveal') ? 'reveal' : 'cover';
    +      var panelPosition = activePanel.hasClass('panel-left') ? 'left' : 'right';
    +      activePanel.removeClass('active');
    +      var transitionEndTarget = effect === 'reveal' ? $('.page') : activePanel;
    +      activePanel.trigger('close');
    +      $.allowPanelOpen = false;
    +
    +      transitionEndTarget.transitionEnd(function () {
    +          if (activePanel.hasClass('active')) return;
    +          activePanel.css({display: ''});
    +          activePanel.trigger('closed');
    +          $('body').removeClass('panel-closing');
    +          $.allowPanelOpen = true;
    +      });
    +
    +      $('body').addClass('panel-closing').removeClass('with-panel-' + panelPosition + '-' + effect);
    +  };
    +
    +  $(document).on("click", ".open-panel", function(e) {
    +    var panel = $(e.target).data(panel);
    +    $.openPanel(panel);
    +  });
    +  $(document).on("click", ".close-panel, .panel-overlay", function(e) {
    +    $.closePanel();
    +  });
    +  /*======================================================
    +  ************   Swipe panels   ************
    +  ======================================================*/
    +  $.initSwipePanels = function () {
    +      var panel, side;
    +      var swipePanel = $.smConfig.swipePanel;
    +      var swipePanelOnlyClose = $.smConfig.swipePanelOnlyClose;
    +      var swipePanelCloseOpposite = true;
    +      var swipePanelActiveArea = false;
    +      var swipePanelThreshold = 2;
    +      var swipePanelNoFollow = false;
    +
    +      if(!(swipePanel || swipePanelOnlyClose)) return;
    +
    +      var panelOverlay = $('.panel-overlay');
    +      var isTouched, isMoved, isScrolling, touchesStart = {}, touchStartTime, touchesDiff, translate, opened, panelWidth, effect, direction;
    +      var currentPage = $($.getCurrentPage());
    +
    +      function handleTouchStart(e) {
    +          currentPage = $($.getCurrentPage());  //page may changed
    +          if (!$.allowPanelOpen || (!swipePanel && !swipePanelOnlyClose) || isTouched) return;
    +          if ($('.modal-in, .photo-browser-in').length > 0) return;
    +          if (!(swipePanelCloseOpposite || swipePanelOnlyClose)) {
    +              if ($('.panel.active').length > 0 && !panel.hasClass('active')) return;
    +          }
    +          var position = $.getTouchPosition(e);
    +          touchesStart.x = position.x;
    +          touchesStart.y = position.y;
    +          if (swipePanelCloseOpposite || swipePanelOnlyClose) {
    +              if ($('.panel.active').length > 0) {
    +                  side = $('.panel.active').hasClass('panel-left') ? 'left' : 'right';
    +              }
    +              else {
    +                  if (swipePanelOnlyClose) return;
    +                  side = swipePanel;
    +              }
    +              if (!side) return;
    +          }
    +          panel = $('.panel.panel-' + side);
    +          if(!panel[0]) return;
    +          opened = panel.hasClass('active');
    +          if (swipePanelActiveArea && !opened) {
    +              if (side === 'left') {
    +                  if (touchesStart.x > swipePanelActiveArea) return;
    +              }
    +              if (side === 'right') {
    +                  if (touchesStart.x < window.innerWidth - swipePanelActiveArea) return;
    +              }
    +          }
    +          isMoved = false;
    +          isTouched = true;
    +          isScrolling = undefined;
    +          
    +          touchStartTime = (new Date()).getTime();
    +          direction = undefined;
    +      }
    +      function handleTouchMove(e) {
    +          if (!isTouched) return;
    +          if(!panel[0]) return;
    +          if (e.f7PreventPanelSwipe) return;
    +          var position = $.getTouchPosition(e);
    +          var pageX = position.x;
    +          var pageY = position.y;
    +          if (typeof isScrolling === 'undefined') {
    +              isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x));
    +          }
    +          if (isScrolling) {
    +              isTouched = false;
    +              return;
    +          }
    +          if (!direction) {
    +              if (pageX > touchesStart.x) {
    +                  direction = 'to-right';
    +              }
    +              else {
    +                  direction = 'to-left';
    +              }
    +
    +              if (
    +                  side === 'left' &&
    +                  (
    +                      direction === 'to-left' && !panel.hasClass('active')
    +                  ) ||
    +                  side === 'right' &&
    +                  (
    +                      direction === 'to-right' && !panel.hasClass('active')
    +                  )
    +              )
    +              {
    +                  isTouched = false;
    +                  return;
    +              }
    +          }
    +
    +          if (swipePanelNoFollow) {
    +              var timeDiff = (new Date()).getTime() - touchStartTime;
    +              if (timeDiff < 300) {
    +                  if (direction === 'to-left') {
    +                      if (side === 'right') $.openPanel(side);
    +                      if (side === 'left' && panel.hasClass('active')) $.closePanel();
    +                  }
    +                  if (direction === 'to-right') {
    +                      if (side === 'left') $.openPanel(side);
    +                      if (side === 'right' && panel.hasClass('active')) $.closePanel();
    +                  }
    +              }
    +              isTouched = false;
    +              isMoved = false;
    +              return;
    +          }
    +
    +          if (!isMoved) {
    +              effect = panel.hasClass('panel-cover') ? 'cover' : 'reveal';
    +              if (!opened) {
    +                  panel.show();
    +                  panelOverlay.show();
    +              }
    +              panelWidth = panel[0].offsetWidth;
    +              panel.transition(0);
    +              /*
    +              if (panel.find('.' + app.params.viewClass).length > 0) {
    +                  if (app.sizeNavbars) app.sizeNavbars(panel.find('.' + app.params.viewClass)[0]);
    +              }
    +              */
    +          }
    +
    +          isMoved = true;
    +
    +          e.preventDefault();
    +          var threshold = opened ? 0 : -swipePanelThreshold;
    +          if (side === 'right') threshold = -threshold;
    +          
    +          touchesDiff = pageX - touchesStart.x + threshold;
    +
    +          if (side === 'right') {
    +              translate = touchesDiff  - (opened ? panelWidth : 0);
    +              if (translate > 0) translate = 0;
    +              if (translate < -panelWidth) {
    +                  translate = -panelWidth;
    +              }
    +          }
    +          else {
    +              translate = touchesDiff  + (opened ? panelWidth : 0);
    +              if (translate < 0) translate = 0;
    +              if (translate > panelWidth) {
    +                  translate = panelWidth;
    +              }
    +          }
    +          if (effect === 'reveal') {
    +              currentPage.transform('translate3d(' + translate + 'px,0,0)').transition(0);
    +              panelOverlay.transform('translate3d(' + translate + 'px,0,0)');
    +              //app.pluginHook('swipePanelSetTransform', currentPage[0], panel[0], Math.abs(translate / panelWidth));
    +          }
    +          else {
    +              panel.transform('translate3d(' + translate + 'px,0,0)').transition(0);
    +              //app.pluginHook('swipePanelSetTransform', currentPage[0], panel[0], Math.abs(translate / panelWidth));
    +          }
    +      }
    +      function handleTouchEnd(e) {
    +          if (!isTouched || !isMoved) {
    +              isTouched = false;
    +              isMoved = false;
    +              return;
    +          }
    +          isTouched = false;
    +          isMoved = false;
    +          var timeDiff = (new Date()).getTime() - touchStartTime;
    +          var action;
    +          var edge = (translate === 0 || Math.abs(translate) === panelWidth);
    +
    +          if (!opened) {
    +              if (translate === 0) {
    +                  action = 'reset';
    +              }
    +              else if (
    +                  timeDiff < 300 && Math.abs(translate) > 0 ||
    +                  timeDiff >= 300 && (Math.abs(translate) >= panelWidth / 2)
    +              ) {
    +                  action = 'swap';
    +              }
    +              else {
    +                  action = 'reset';
    +              }
    +          }
    +          else {
    +              if (translate === -panelWidth) {
    +                  action = 'reset';
    +              }
    +              else if (
    +                  timeDiff < 300 && Math.abs(translate) >= 0 ||
    +                  timeDiff >= 300 && (Math.abs(translate) <= panelWidth / 2)
    +              ) {
    +                  if (side === 'left' && translate === panelWidth) action = 'reset';
    +                  else action = 'swap';
    +              }
    +              else {
    +                  action = 'reset';
    +              }
    +          }
    +          if (action === 'swap') {
    +              $.allowPanelOpen = true;
    +              if (opened) {
    +                  $.closePanel();
    +                  if (edge) {
    +                      panel.css({display: ''});
    +                      $('body').removeClass('panel-closing');
    +                  }
    +              }
    +              else {
    +                  $.openPanel(side);
    +              }
    +              if (edge) $.allowPanelOpen = true;
    +          }
    +          if (action === 'reset') {
    +              if (opened) {
    +                  $.allowPanelOpen = true;
    +                  $.openPanel(side);
    +              }
    +              else {
    +                  $.closePanel();
    +                  if (edge) {
    +                      $.allowPanelOpen = true;
    +                      panel.css({display: ''});
    +                  }
    +                  else {
    +                      var target = effect === 'reveal' ? currentPage : panel;
    +                      $('body').addClass('panel-closing');
    +                      target.transitionEnd(function () {
    +                          $.allowPanelOpen = true;
    +                          panel.css({display: ''});
    +                          $('body').removeClass('panel-closing');
    +                      });
    +                  }
    +              }
    +          }
    +          if (effect === 'reveal') {
    +              currentPage.transition('');
    +              currentPage.transform('');
    +          }
    +          panel.transition('').transform('');
    +          panelOverlay.css({display: ''}).transform('');
    +      }
    +      $(document).on($.touchEvents.start, handleTouchStart);
    +      $(document).on($.touchEvents.move, handleTouchMove);
    +      $(document).on($.touchEvents.end, handleTouchEnd);
    +  };
    +
    +  $.initSwipePanels();
    +}($);
    +
    +// jshint ignore: start
    +/*
    + * 路由器
    + */
    ++function ($) {
    +  "use strict";
    +
    +  if (!window.CustomEvent) {
    +    window.CustomEvent = function (type, config) {
    +      var e = document.createEvent('CustomEvent');
    +      e.initCustomEvent(type, config.bubbles, config.cancelable, config.detail, config.id);
    +      return e;
    +    };
    +  }
    +
    +  var Router = function() {
    +    this.state = sessionStorage;
    +    this.state.setItem("stateid", parseInt(this.state.getItem("stateid") || 1)+1);
    +    this.state.setItem("currentStateID", this.state.getItem("stateid"));
    +    this.stack = sessionStorage;
    +    this.stack.setItem("back", "[]");  //返回栈, {url, pageid, stateid}
    +    this.stack.setItem("forward", "[]");  //前进栈, {url, pageid, stateid}
    +    this.extras = {}; //page extra: popup, panel...
    +    this.init();
    +    this.xhr = null;
    +  }
    +
    +  Router.prototype.defaults = {
    +    transition: true
    +  };
    +
    +  Router.prototype.init = function() {
    +    var currentPage = this.getCurrentPage();
    +    if(!currentPage[0]) currentPage = $(".page").eq(0).addClass("page-current");
    +    var hash = location.hash;
    +    if(currentPage[0] && !currentPage[0].id) currentPage[0].id = (hash ? hash.slice(1) : this.genRandomID());
    +
    +    if(!currentPage[0]) throw new Error("can't find .page element");
    +    var newCurrentPage = $(hash);
    +
    +
    +    if(newCurrentPage[0] && (!currentPage[0] || hash.slice(1) !== currentPage[0].id)) {
    +      currentPage.removeClass("page-current");
    +      newCurrentPage.addClass("page-current");
    +      currentPage = newCurrentPage;
    +    }
    +
    +    //第一次加载的时候,初识话当前页面的state
    +    var state = history.state;
    +    if(!state) {
    +      var id = this.genStateID();
    +      this.replaceState(location.href, id);
    +      this.setCurrentStateID(id);
    +    }
    +
    +
    +    var self = this;
    +    window.addEventListener('load', function() {
    +      //解决safari的一个bug,safari会在首次加载页面的时候触发 popstate 事件,通过setTimeout 做延迟来忽略这个错误的事件。
    +      //参考 https://github.com/visionmedia/page.js/pull/239/files
    +      setTimeout(function() {
    +        window.addEventListener('popstate', $.proxy(self.onpopstate, self));
    +      }, 0);
    +    }, false);
    +  }
    +
    +  //load new page, and push to history
    +  Router.prototype.loadPage = function(url, noAnimation, replace, reload) {
    +
    +    var param = url;
    +
    +    if(noAnimation === undefined) {
    +      noAnimation = !this.defaults.transition;
    +    }
    +
    +    if(typeof url === typeof "a") {
    +      param = {
    +        url: url,
    +        noAnimation: noAnimation,
    +        replace: replace
    +      }
    +    }
    +
    +    var url = param.url, noAnimation = param.noAnimation, replace = param.replace;
    +
    +    this.getPage(url, function(page, extra) {
    +
    +      var currentPage = this.getCurrentPage();
    +
    +      var pageid = currentPage[0].id;
    +
    +      var action = "pushBack";
    +      if(replace) action = "replaceBack";
    +      if(reload) action = "reloadBack";
    +      this[action]({
    +        url: location.href,
    +        pageid: "#"+ pageid,
    +        id: this.getCurrentStateID(),
    +        animation: !noAnimation
    +      });
    +
    +      //remove all forward page
    +      var forward = JSON.parse(this.state.getItem("forward") || "[]");
    +      var self = this;
    +      for(var i=0;i<forward.length;i++) {
    +        $(forward[i].pageid).each(function() {
    +          var $page = $(this);
    +          if($page.data("page-remote")) {
    +            var pageExtra = self.extras[$page[0].id];
    +            pageExtra && pageExtra.remove();
    +            self.extras[$page[0].id] = undefined;
    +            $page.remove();
    +          }
    +        });
    +      }
    +      this.state.setItem("forward", "[]");  //clearforward
    +
    +      var duplicatePage = $("#"+$(page)[0].id);
    +
    +      page.insertBefore($(".page")[0]);
    +
    +      if(duplicatePage[0] !== page[0]) duplicatePage.remove(); //if inline mod, the duplicate page is current page
    +
    +      if(extra) self.extras[page[0].id] = extra.appendTo(document.body);
    +
    +      var id = this.genStateID();
    +      this.setCurrentStateID(id);
    +
    +      this[replace || reload ? "replaceState" : "pushState"](url, id);
    +
    +      this.forwardStack  = [];  //clear forward stack
    +      
    +      this.animatePages(this.getCurrentPage(), page, null, noAnimation);
    +    });
    +  }
    +
    +  //load new page and replace current page inhistory
    +  Router.prototype.replacePage = function(url, noAnimation) {
    +    return this.loadPage(url, noAnimation, true);
    +  }
    +
    +  //reload current page
    +  Router.prototype.reloadPage = function() {
    +    return this.loadPage(location.href, true, false, true);
    +  }
    +
    +  Router.prototype.animatePages = function (leftPage, rightPage, leftToRight, noTransition) {
    +    var removeClasses = 'page-left page-right page-from-center-to-left page-from-center-to-right page-from-right-to-center page-from-left-to-center';
    +    if(noTransition) {
    +      if (!leftToRight) {
    +        rightPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        leftPage.removeClass(removeClasses).removeClass('page-current');
    +        rightPage.removeClass(removeClasses).addClass("page-current");
    +        rightPage.trigger("pageInitInternal", [rightPage[0].id, rightPage]);
    +
    +        if(rightPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +      } else {
    +        leftPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        rightPage.removeClass(removeClasses).removeClass('page-current');
    +        leftPage.removeClass(removeClasses).addClass("page-current");
    +
    +        if(leftPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +        rightPage.trigger("pageInitInternal", [leftPage[0].id, leftPage]);
    +      }
    +    } else {
    +      if (!leftToRight) {
    +        rightPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        leftPage.removeClass(removeClasses).addClass("page-from-center-to-left").removeClass('page-current');
    +        rightPage.removeClass(removeClasses).addClass("page-from-right-to-center page-current");
    +
    +        leftPage.animationEnd(function() {
    +          leftPage.removeClass(removeClasses);
    +        });
    +        rightPage.animationEnd(function() {
    +          afterAnimation(rightPage);
    +        });
    +
    +        if(rightPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +        rightPage.trigger("pageInitInternal", [rightPage[0].id, rightPage]);
    +      } else {
    +        leftPage.trigger("pageAnimationStart", [rightPage[0].id, rightPage]);
    +        rightPage.removeClass(removeClasses).addClass("page-from-center-to-right").removeClass('page-current');
    +        leftPage.removeClass(removeClasses).addClass("page-from-left-to-center page-current");
    +
    +        leftPage.animationEnd(function() {
    +          afterAnimation(leftPage);
    +        });
    +        rightPage.animationEnd(function() {
    +          rightPage.removeClass(removeClasses);
    +        });
    +        if(leftPage.hasClass("no-tabbar")) {
    +          $(document.body).addClass("tabbar-hidden");
    +        } else {
    +          $(document.body).removeClass("tabbar-hidden");
    +        }
    +        rightPage.trigger("pageInitInternal", [leftPage[0].id, leftPage]);
    +      }
    +    }
    +
    +    function afterAnimation(page) {
    +      page.removeClass(removeClasses);
    +      page.trigger("pageAnimationEnd", [page[0].id, page]);
    +    }
    +
    +  }
    +  Router.prototype.getCurrentPage = function () {
    +    return $(".page-current");
    +  }
    +  //如果无法前进,则加载对应的url
    +  Router.prototype.forward = function(url) {
    +    var stack = JSON.parse(this.stack.getItem("forward"));
    +    if(stack.length) {
    +      history.forward();
    +    } else {
    +      location.href = url;
    +    }
    +  }
    +  //如果无法后退,则加载对应的url
    +  Router.prototype.back = function(url) {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    if(stack.length) {
    +      history.back();
    +    } else if(url) {
    +      location.href = url;
    +    } else {
    +      history.back();
    +    }
    +  }
    +
    +  //后退
    +  Router.prototype._back = function() {
    +    var h = this.popBack();
    +    if(!h) return;
    +    var currentPage = this.getCurrentPage();
    +    var newPage = $(h.pageid);
    +    if(!newPage[0]) return;
    +    this.pushForward({url: location.href, pageid: "#"+currentPage[0].id, id: this.getCurrentStateID(), animation: h.animation});
    +    this.setCurrentStateID(h.id);
    +    this.animatePages(newPage, currentPage, true, !h.animation);
    +  }
    +
    +  //前进
    +  Router.prototype._forward = function() {
    +    var h = this.popForward();
    +    if(!h) return;
    +    var currentPage = this.getCurrentPage();
    +    var newPage = $(h.pageid);
    +    if(!newPage[0]) return;
    +    this.pushBack({url: location.href, pageid: "#"+currentPage[0].id, id: this.getCurrentStateID(), animation: h.animation});
    +    this.setCurrentStateID(h.id);
    +    this.animatePages(currentPage, newPage, false, !h.animation);
    +  }
    +
    +  Router.prototype.pushState = function(url, id) {
    +    history.pushState({url: url, id: id}, '', url);
    +  }
    +
    +  Router.prototype.replaceState = function(url, id) {
    +    history.replaceState({url: url, id: id}, '', url);
    +  }
    +
    +  Router.prototype.onpopstate = function(d) {
    +    var state = d.state;
    +    if(!state) {
    +      return true;
    +    }
    +
    +    if(state.id === this.getCurrentStateID()) {
    +      return false;
    +    }
    +    var forward = state.id > this.getCurrentStateID();
    +    if(forward) this._forward();
    +    else this._back();
    +  }
    +
    +
    +  //根据url获取页面的DOM,如果是一个内联页面,则直接返回,否则用ajax加载
    +  Router.prototype.getPage = function(url, callback) {
    +    if(url[0] === "#") return callback.apply(this, [$(url)]);
    +
    +    this.dispatch("pageLoadStart");
    +
    +    if(this.xhr && this.xhr.readyState < 4) {
    +      this.xhr.onreadystatechange = $.noop;
    +      this.xhr.abort();
    +      this.dispatch("pageLoadCancel");
    +    }
    +
    +    var self = this;
    +
    +    this.xhr = $.ajax({
    +      url: url,
    +      success: $.proxy(function(data, s, xhr) {
    +        var html = this.parseXHR(xhr);
    +        var $page = html[0];
    +        var $extra = html[1];
    +        if(!$page[0].id) $page[0].id = this.genRandomID();
    +        $page.data("page-remote", 1);
    +        callback.apply(this, [$page, $extra]);
    +      }, this),
    +      error: function() {
    +        self.dispatch("pageLoadError");
    +      },
    +      complete: function() {
    +        self.dispatch("pageLoadComplete");
    +      }
    +    });
    +  }
    +  Router.prototype.parseXHR = function(xhr) {
    +    var response = xhr.responseText;
    +    var body = response.match(/<body[^>]*>([\s\S.]*)<\/body>/i);
    +    var html = body ? body[1] : response;
    +    html = "<div>"+html+"</div>";
    +    var tmp = $(html);
    +
    +    var $extra = tmp.find(".popup, .popover, .panel, .panel-overlay");
    +
    +    var $page = tmp.find(".page");
    +    if(!$page[0]) $page = tmp.addClass("page");
    +    return [$page, $extra];
    +  }
    +
    +  Router.prototype.genStateID = function() {
    +    var id = parseInt(this.state.getItem("stateid")) + 1;
    +    this.state.setItem("stateid", id);
    +    return id;
    +  }
    +  Router.prototype.getCurrentStateID = function() {
    +    return parseInt(this.state.getItem("currentStateID"));
    +  }
    +  Router.prototype.setCurrentStateID = function(id) {
    +    this.state.setItem("currentStateID", id);
    +  }
    +  Router.prototype.genRandomID = function() {
    +    return "page-"+(+new Date());
    +  }
    +
    +  Router.prototype.popBack = function() {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    if(!stack.length) return null;
    +    var h = stack.splice(stack.length-1, 1)[0];
    +    this.stack.setItem("back", JSON.stringify(stack));
    +    return h;
    +  }
    +  Router.prototype.pushBack = function(h) {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    stack.push(h);
    +    this.stack.setItem("back", JSON.stringify(stack));
    +  }
    +  Router.prototype.replaceBack = function(h) {
    +    var stack = JSON.parse(this.stack.getItem("back"));
    +    stack.pop();
    +    stack.push(h);
    +    this.stack.setItem("back", JSON.stringify(stack));
    +  }
    +  Router.prototype.reloadBack = function(h) {
    +    //do nothing;
    +    return;
    +  }
    +  Router.prototype.popForward = function() {
    +    var stack = JSON.parse(this.stack.getItem("forward"));
    +    if(!stack.length) return null;
    +    var h = stack.splice(stack.length-1, 1)[0];
    +    this.stack.setItem("forward", JSON.stringify(stack));
    +    return h;
    +  }
    +  Router.prototype.pushForward = function(h) {
    +    var stack = JSON.parse(this.stack.getItem("forward"));
    +    stack.push(h);
    +    this.stack.setItem("forward", JSON.stringify(stack));
    +  }
    +
    +  Router.prototype.dispatch = function (event) {
    +    var e = new CustomEvent(event, {
    +      bubbles: true,
    +      cancelable: true
    +    });
    +
    +    window.dispatchEvent(e);
    +  };
    +
    +
    +  $(function() {
    +    if(!$.smConfig.router) return;
    +
    +    var router = $.router = new Router();
    +    router.defaults = Router.prototype.defaults;
    +
    +    $(document).on("click", "a", function(e) {
    +      var $target = $(e.currentTarget);
    +      if($target.hasClass("external") ||
    +         $target[0].hasAttribute("external") ||
    +         $target.hasClass("tab-link") ||
    +         $target.hasClass("open-popup") ||
    +         $target.hasClass("open-panel")
    +        ) return;
    +      e.preventDefault();
    +      var url = $target.attr("href");
    +      if($target.hasClass("back")) {
    +        router.back(url);
    +        return;
    +      }
    +
    +      if(!url || url === "#" || /javascript:.*;/.test(url)) return;
    +      router.loadPage(url, $target.hasClass("no-transition") ? true : undefined, $target.hasClass("replace") ? true : undefined);  //undefined is different to false
    +    })
    +  });
    +}($);
    +// jshint ignore: end
    +
    +/* global $:true */
    +/*jshint unused: false*/
    ++function ($) {
    +  "use strict";
    +
    +  var getPage = function() {
    +    var $page = $(".page-current");
    +    if(!$page[0]) $page = $(".page").addClass("page-current");
    +    return $page;
    +  };
    +
    +  //初始化页面中的JS组件
    +  $.initPage = function(page) {
    +    var $page = page ? $(page) : getPage();
    +    if(!$page[0]) $page = $(document.body);
    +    var $content = $page.hasClass("content") ? $page : $page.find(".content");
    +
    +    $.initPullToRefresh($content);
    +    $.initInfiniteScroll($content);
    +    $.initCalendar($content);
    +    $.initIndexList($content);
    +
    +    //extend
    +    if($.initSwiper) $.initSwiper($content);
    +    if($.initSwipeout) $.initSwipeout();  // don't pass $content because the swipeout element is not $content
    +  };
    +
    +
    +  if($.smConfig.showPageLoadingIndicator) {
    +    //这里的 以 push 开头的是私有事件,不要用
    +    $(window).on("pageLoadStart", function() {
    +      $.showIndicator();
    +    });
    +    $(document).on("pageAnimationStart", function() {
    +      $.hideIndicator();
    +    });
    +    $(window).on("pageLoadCancel", function() {
    +      $.hideIndicator();
    +    });
    +    $(window).on("pageLoadError", function() {
    +      $.hideIndicator();
    +      $.toast("加载失败");
    +    });
    +  }
    +
    +
    +
    +  $.init = function() {
    +    var $page = getPage();
    +    var id = $page[0].id;
    +    if($page.hasClass("page-inited")) {
    +      $page.trigger("pageReinit", [id, $page]);
    +    } else {
    +      $.initPage();
    +      $page.addClass("page-inited");
    +      $page.trigger("pageInit", [id, $page]);
    +    }
    +  };
    +
    +  $(function() {
    +    if($.smConfig.autoInit) {
    +      $.init();
    +    }
    +
    +    $(document).on("pageInitInternal", function(e, id, $page) {
    +      $.init();
    +    });
    +  });
    +
    +
    +}($);
    diff --git a/fangija-zsyf/js/loan/loanInfo.js b/fangija-zsyf/js/loan/loanInfo.js
    new file mode 100644
    index 0000000..6977a27
    --- /dev/null
    +++ b/fangija-zsyf/js/loan/loanInfo.js
    @@ -0,0 +1,127 @@
    +//短信验证类型
    +var APPLY_LOAN = "applyLoan";
    +
    +//如果是抵押贷款时候,需要上层页面传入houseId
    +var houseId;
    +var _params = {};
    +
    +document.addEventListener('plusready', onPlusReady, false);
    +
    +function onPlusReady(){
    +    var self = plus.webview.currentWebview();
    +    houseId= self.houseId;
    +    $('#input_city').val(self.city);
    +    $('#input_phoneNumber').val(self.mobile);
    +}
    +
    +function sendLoanCode(){
    +	var mobile = $("#input_phoneNumber").val();
    +	if(checkPhoneNum(mobile)){
    +		timer.start();
    +		axios.post(BASE_PATH+"/rest/user/sendMobileCode", {mobile: mobile, type: APPLY_LOAN})
    +		.then(function (response) {
    +			var data = response.data
    +			if(data.code==200){
    +				$.toast("短信验证码发送成功,请注意查收!")
    +			}else{
    +				$.toast("验证码发送失败")
    +				 timer.cancel()
    +			}
    +		})
    +	}
    +}
    +
    +function checkPhoneNum(phone){
    +	var reg = 11 && /^((13|14|15|17|18)[0-9]{1}\d{8})$/;
    +	if(phone==''){
    +		$.toast("请输入手机号码");
    +		return false;
    +	}else if(!reg.test(phone)){
    +		$.toast("手机格式不正确");
    +		return false;
    +	}else{
    +		return true;
    +	}
    +}
    +
    +//验证码倒计时
    +timer = {
    +    countdown:60,
    +    start:function(){
    +        countdown = 60
    +        $(".sendCode").hide()
    +        $(".waiting").empty().append(countdown + " s").show()
    +        timer.down()
    +    },
    +    down:function(){
    +        countdown --
    +        $(".waiting").empty().append(countdown + " s")
    +        if(countdown <= 0){
    +            $(".sendCode").show()
    +            $(".waiting").hide()
    +        }else{
    +            setTimeout(timer.down, 1000)
    +        }
    +    },
    +    cancel:function(){
    +        countdown = 0
    +    }
    +}
    +
    +/* 错误提示 */
    +$("#next_btn").on("click", function () {
    +	var city = $("#input_city").val();
    +	var mobile = $("#input_phoneNumber").val();
    +	var code = $("#input_codeSms").val();
    +	//申请金额(万元)
    +	var applyMoney = $("#input_price").val();
    +	//是否接收抵押(0否  1是 根据选择的贷款类型赋值)
    +	var mortgage = $(".checkbox .current").attr('value');
    +	
    +	if(city == ""){
    +		$.toast("请选择城市");
    +		return false;
    +	}
    +	if(!checkPhoneNum(mobile)){
    +		return false;
    +	}
    +	if(code == ""){
    +		$.toast("请输入验证码");
    +		return false;
    +	}
    +	if(applyMoney == ""){
    +		$.toast("请输入申请金额");
    +		return false;
    +	}
    +	if(mortgage == undefined || mortgage == ""){
    +		$.toast("请选择贷款类型");
    +		return false;
    +	}
    +	//如果贷款类型是房抵押
    +	if(mortgage == "1"){
    +		if(houseId == undefined || houseId == ""){
    +			$.toast("房抵贷类型获取houseId失败");
    +			return false;
    +		}
    +	}
    +	if(mortgage == "1"){
    +		_params = {type: 1, city: city, applyMoney: applyMoney, mortgage: mortgage, hid: houseId, mobile: mobile, smsCode: code};
    +	}else{
    +		_params = {type: 1, city: city, applyMoney: applyMoney, mortgage: mortgage, mobile: mobile, smsCode: code};
    +	}
    +	axios.post(BASE_PATH + "/rest/loan/apply", _params).then(function (response) {
    +		var status = response.data.status;
    +		if(status){
    +			//页面跳转
    +			//$.toast(response.data.data);
    +			//直接定位到贷款success页面, 调用back()就只用返回一次
    +			window.location.href = "../../views/loan/loanSuccess.html";
    +		}else{
    +			$.toast(response.data.message);
    +		}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +	
    +	
    +});
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/log/log_stat.js b/fangija-zsyf/js/log/log_stat.js
    new file mode 100644
    index 0000000..798e7a6
    --- /dev/null
    +++ b/fangija-zsyf/js/log/log_stat.js
    @@ -0,0 +1,41 @@
    +/**
    + * 日志记录,依赖于axios.min.js,axiosPlugin.js
    + * @author yinjihuan
    + */
    +document.addEventListener('plusready', function() {
    +	savePageLog()
    +}, false);
    +
    +/**
    + * 记录页面访问日志
    + */
    +function savePageLog() {
    +	var page = document.getElementsByTagName("title")[0].innerHTML;	
    +	var device = plus.device.uuid;
    +	var model = plus.device.model;
    +	plus.geolocation.getCurrentPosition(function(p){
    +		baidu_province = p.address.province;
    +		baidu_city = p.address.city;
    +		baidu_region = p.address.district;
    +		baidu_lng = p.coords.longitude;
    +		baidu_lat = p.coords.latitude;
    +		baidu_address = p.address.street;
    +		doSavePageLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model});
    +		}, function(e){
    +			doSavePageLog({page:page, device:device, model:model});
    +		},
    +		{
    +			provider:'baidu',
    +			enableHighAccuracy:true,
    +			coordsType:'bd09ll'
    +		}
    +	);
    +}
    +
    +function doSavePageLog(data) {
    +	axios.post("/rest/log/save", data).then(function (response) {
    +			
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    diff --git a/fangija-zsyf/js/login/codeSms.js b/fangija-zsyf/js/login/codeSms.js
    new file mode 100644
    index 0000000..c02fb57
    --- /dev/null
    +++ b/fangija-zsyf/js/login/codeSms.js
    @@ -0,0 +1,102 @@
    +var sendPhoneCode =	new Vue({
    +	el:'#sendPhoneCode',
    +	methods:{
    +	}
    +})
    +
    +function sendCode(){
    +	var mobile = $("#input_phoneNumber").val();
    +	if(checkPhoneNum(mobile)){
    +		timer.start();
    +		axios.post("/rest/user/sendMobileCode", {mobile: mobile})
    +		.then(function (response) {
    +			var data = response.data
    +			if(data.code==200){
    +				$.toast("短信验证码发送成功,请注意查收!")
    +			}else{
    +				$.toast("验证码发送失败")
    +				 timer.cancel()
    +			}
    +		})
    +	}
    +}
    +function checkPhoneNum(phone){
    +	var reg=11&& /^((13|14|15|17|18)[0-9]{1}\d{8})$/;
    +	if(phone==''){
    +		$.toast("请输入手机号码");
    +		return false;
    +	}else if(!reg.test(phone)){
    +		$.toast("手机格式不正确");
    +		return false;
    +	}else{
    +			return true;
    +	}
    +}
    +//验证码倒计时
    +timer = {
    +	    countdown:60,
    +	    start:function(){
    +	        countdown = 60
    +	        $(".sendCode").hide()
    +	        $(".waiting").empty().append(countdown + " s").show()
    +	        timer.down()
    +	    },
    +	    down:function(){
    +	        countdown --
    +	        $(".waiting").empty().append(countdown + " s")
    +	        if(countdown <= 0){
    +	            $(".sendCode").show()
    +	            $(".waiting").hide()
    +	        }else{
    +	            setTimeout(timer.down, 1000)
    +	        }
    +	    },
    +	    cancel:function(){
    +	        countdown = 0
    +	    }
    +	}
    +
    +/* 错误提示-快捷登录 */
    +$("#login_btn").on("click", function () {
    +	var phoneNum = $("#input_phoneNumber").val();
    +	var code = $("#input_codeSms").val();
    +	var protocal = $(".check").find(".checkImg").css("display");
    +	if(checkPhoneNum(phoneNum)){
    +		if(code == ""){
    +			$.toast("请输入验证码");
    +			return false;
    +		}
    +		if(protocal != "block"){
    +			$.toast("请同意服务协议");
    +			return false;
    +		}
    +		plus.nativeUI.showWaiting();
    +		axios.post("/rest/user/smsLogin", 
    +			{mobile: phoneNum,smsCode:code,province:province,city:city,region:region,pushClientId:getPushInfo(),deviceId:plus.device.uuid}
    +		).then(function (response) {
    +			var resData = response.data;
    +	    	if (resData.status) {
    +	    		// 用户登录成功的TOKEN
    +	    		var data = resData.data;
    +	    		localStorage.setItem("user_token", data.token);
    +	    		localStorage.setItem("user_token_add_time", new Date().getTime());
    +	    		$.toast(resData.message);
    +	    		if (data.firstLogin) {
    +	    			// 显示设置密码页面
    +	    			clicked('../user/updatePass.html',true,false,{},{},function(){
    +						back();
    +					})
    +	    		} else {
    +	    			back();
    +	    		}
    +	    		
    +	    	} else {
    +	    		$.toast(resData.message);
    +	    	}
    +	    	plus.nativeUI.closeWaiting();
    +		}).catch(function (error) {
    +	       $.toast(error);
    +	       plus.nativeUI.closeWaiting();
    +	    });
    +	}	
    +});
    diff --git a/fangija-zsyf/js/login/thirdLogin.js b/fangija-zsyf/js/login/thirdLogin.js
    new file mode 100644
    index 0000000..9c548bc
    --- /dev/null
    +++ b/fangija-zsyf/js/login/thirdLogin.js
    @@ -0,0 +1,117 @@
    +var auths = {}
    +function plusReady() {
    +	plus.oauth.getServices(function(services) {
    +        for(var i in services){
    +			var service=services[i];
    +			auths[service.id]=service;
    +		}
    +    }, function(e) {
    +        alert("获取登录服务列表失败:" + e.message + " - " + e.code);
    +    });
    +}
    +document.addEventListener('plusready',plusReady,false);
    +// 登录认证
    +function loginInfo(dest){
    +	var auth=auths[dest];	
    +	console.log(JSON.stringify(auth))
    +	if(auth){
    +		var w=null;
    +		if(plus.os.name=="Android"){
    +			w=plus.nativeUI.showWaiting();
    +		}
    +		document.addEventListener("pause",function(){
    +			setTimeout(function(){
    +				w&&w.close();w=null;
    +			},2000);
    +		}, false );
    +		auth.login(function(){
    +			w&&w.close();w=null;
    +			userinfo(auth);
    +		},function(e){
    +			w&&w.close();w=null;
    +			$.toast("登录认证失败:["+e.code+"]:"+e.message);
    +		});
    +	}else{
    +		$.toast("无效的登录认证通道!");
    +		$.toast("无效的登录认证通道!",null,"登录");
    +	}
    +}
    +
    +//wx获取用户信息
    +function userinfo(a){
    +	a.getUserInfo(function(){
    +		console.log(JSON.stringify(a))
    +		$.showPreloader();
    +		if(a.id=='weixin'){	
    +			var nickname=a.userInfo.nickname||a.userInfo.name||a.userInfo.miliaoNick;
    +			var openid = a.authResult.openid;
    +			var accessToken = a.authResult.access_token;
    +			var unionid = a.userInfo.unionid;
    +			var headImg = a.userInfo.headimgurl;
    +			login(openid, unionid, accessToken, nickname, headImg, "weixin", "/rest/user/wxLogin")
    +		}else if(a.id=='qq'){
    +			var nickname= a.userInfo.nickname;
    +			var openid = a.authResult.openid;
    +			var accessToken = a.authResult.access_token;
    +			var headImg = a.userInfo.headimgurl;
    +			var unionid = "";
    +			login(openid, unionid, accessToken, nickname, headImg, "qq", "/rest/user/qqLogin")
    +		}else{
    +			//微博信息获取
    +			var nickname = a.userInfo.name||a.userInfo.screen_name;
    +			var openid = a.authResult.uid;
    +			var accessToken = a.authResult.access_token;
    +			var headImg = a.userInfo.headimgurl;
    +			var uid = a.authResult.uid;
    +			var unionid = "";
    +			login(openid, unionid, accessToken, nickname, headImg, "sinaweibo", "/rest/user/sinaweiboLogin")
    +		}
    +		
    +	},function(e){
    +		$.toast("获取用户信息失败:["+e.code+"]:"+e.message);
    +	});
    +}
    +
    +function utf16toEntities(str) {  
    +    var patt = /[\ud800-\udbff][\udc00-\udfff]/g; // 检测utf16字符正则   
    +    str = str.replace(patt, function(char) {  
    +        var H, L, code;  
    +        if (char.length === 2) {  
    +            H = char.charCodeAt(0);  
    +            // 取出高位   
    +            L = char.charCodeAt(1);  
    +            // 取出低位   
    +            code = (H - 0xD800) * 0x400 + 0x10000 + L - 0xDC00;  
    +            //转换算法  
    +            return "&#" + code + ";";  
    +        } else {  
    +            return char;  
    +        }  
    +    });  
    +    return str;  
    +}  
    +
    +
    +function login(openid, unionid, accessToken, nickname, headImg, loginFrom, uri) {
    +	nickname = utf16toEntities(nickname)
    +	axios.post(uri, {loginFrom:loginFrom,openid:openid, unionid:unionid, accessToken: accessToken, nickname:nickname,headImg:headImg})
    +	.then(function (response) {
    +		$.hidePreloader();
    +		var resData = response.data;
    +		if(resData.status){
    +			if(resData.data == ""){
    +				//跳转绑定手机号码页面
    +    			clicked('../user/bindingMobile.html',true,false,{},{loginFrom:loginFrom,openid:openid, unionid:unionid, accessToken: accessToken, nickname:nickname,headImg:headImg},function(){
    +					back();
    +				})
    +			}else{
    +				localStorage.setItem("user_token", resData.data);
    +				localStorage.setItem("user_token_add_time", new Date().getTime());
    +				back();
    +			}
    +		}else{
    +			//登录失败
    +			$.toast(resData.message)
    +		}
    +	})
    +}
    diff --git a/fangija-zsyf/js/mui.min.js b/fangija-zsyf/js/mui.min.js
    new file mode 100644
    index 0000000..075a2fa
    --- /dev/null
    +++ b/fangija-zsyf/js/mui.min.js
    @@ -0,0 +1,9 @@
    +/*!
    + * =====================================================
    + * Mui v3.4.0 (http://dev.dcloud.net.cn/mui)
    + * =====================================================
    + */
    +var mui=function(a,b){var c=/complete|loaded|interactive/,d=/^#([\w-]+)$/,e=/^\.([\w-]+)$/,f=/^[\w-]+$/,g=/translate(?:3d)?\((.+?)\)/,h=/matrix(3d)?\((.+?)\)/,i=function(b,c){if(c=c||a,!b)return j();if("object"==typeof b)return i.isArrayLike(b)?j(i.slice.call(b),null):j([b],null);if("function"==typeof b)return i.ready(b);if("string"==typeof b)try{if(b=b.trim(),d.test(b)){var e=a.getElementById(RegExp.$1);return j(e?[e]:[])}return j(i.qsa(b,c),b)}catch(f){}return j()},j=function(a,b){return a=a||[],Object.setPrototypeOf(a,i.fn),a.selector=b||"",a};i.uuid=0,i.data={},i.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},j=1,k=arguments.length,l=!1;for("boolean"==typeof h&&(l=h,h=arguments[j]||{},j++),"object"==typeof h||i.isFunction(h)||(h={}),j===k&&(h=this,j--);k>j;j++)if(null!=(a=arguments[j]))for(c in a)d=h[c],e=a[c],h!==e&&(l&&e&&(i.isPlainObject(e)||(f=i.isArray(e)))?(f?(f=!1,g=d&&i.isArray(d)?d:[]):g=d&&i.isPlainObject(d)?d:{},h[c]=i.extend(l,g,e)):e!==b&&(h[c]=e));return h},i.noop=function(){},i.slice=[].slice,i.filter=[].filter,i.type=function(a){return null==a?String(a):k[{}.toString.call(a)]||"object"},i.isArray=Array.isArray||function(a){return a instanceof Array},i.isArrayLike=function(a){var b=!!a&&"length"in a&&a.length,c=i.type(a);return"function"===c||i.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a},i.isWindow=function(a){return null!=a&&a===a.window},i.isObject=function(a){return"object"===i.type(a)},i.isPlainObject=function(a){return i.isObject(a)&&!i.isWindow(a)&&Object.getPrototypeOf(a)===Object.prototype},i.isEmptyObject=function(a){for(var c in a)if(c!==b)return!1;return!0},i.isFunction=function(a){return"function"===i.type(a)},i.qsa=function(b,c){return c=c||a,i.slice.call(e.test(b)?c.getElementsByClassName(RegExp.$1):f.test(b)?c.getElementsByTagName(b):c.querySelectorAll(b))},i.ready=function(b){return c.test(a.readyState)?b(i):a.addEventListener("DOMContentLoaded",function(){b(i)},!1),this},i.buffer=function(a,b,c){function d(){e&&(e.cancel(),e=0),f=i.now(),a.apply(c||this,arguments),g=i.now()}var e,f=0,g=0,b=b||150;return i.extend(function(){!f||g>=f&&i.now()-g>b||f>g&&i.now()-f>8*b?d():(e&&e.cancel(),e=i.later(d,b,null,arguments))},{stop:function(){e&&(e.cancel(),e=0)}})},i.each=function(a,b,c){if(!a)return this;if("number"==typeof a.length)[].every.call(a,function(a,c){return b.call(a,c,a)!==!1});else for(var d in a)if(c){if(a.hasOwnProperty(d)&&b.call(a[d],d,a[d])===!1)return a}else if(b.call(a[d],d,a[d])===!1)return a;return this},i.focus=function(a){i.os.ios?setTimeout(function(){a.focus()},10):a.focus()},i.trigger=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,cancelable:!0})),this},i.getStyles=function(a,b){var c=a.ownerDocument.defaultView.getComputedStyle(a,null);return b?c.getPropertyValue(b)||c[b]:c},i.parseTranslate=function(a,b){var c=a.match(g||"");return c&&c[1]||(c=["","0,0,0"]),c=c[1].split(","),c={x:parseFloat(c[0]),y:parseFloat(c[1]),z:parseFloat(c[2])},b&&c.hasOwnProperty(b)?c[b]:c},i.parseTranslateMatrix=function(a,b){var c=a.match(h),d=c&&c[1];c?(c=c[2].split(","),"3d"===d?c=c.slice(12,15):(c.push(0),c=c.slice(4,7))):c=[0,0,0];var e={x:parseFloat(c[0]),y:parseFloat(c[1]),z:parseFloat(c[2])};return b&&e.hasOwnProperty(b)?e[b]:e},i.hooks={},i.addAction=function(a,b){var c=i.hooks[a];return c||(c=[]),b.index=b.index||1e3,c.push(b),c.sort(function(a,b){return a.index-b.index}),i.hooks[a]=c,i.hooks[a]},i.doAction=function(a,b){i.isFunction(b)?i.each(i.hooks[a],b):i.each(i.hooks[a],function(a,b){return!b.handle()})},i.later=function(a,b,c,d){b=b||0;var e,f,g=a,h=d;return"string"==typeof a&&(g=c[a]),e=function(){g.apply(c,i.isArray(h)?h:[h])},f=setTimeout(e,b),{id:f,cancel:function(){clearTimeout(f)}}},i.now=Date.now||function(){return+new Date};var k={};return i.each(["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"],function(a,b){k["[object "+b+"]"]=b.toLowerCase()}),window.JSON&&(i.parseJSON=JSON.parse),i.fn={each:function(a){return[].every.call(this,function(b,c){return a.call(b,c,b)!==!1}),this}},"function"==typeof define&&define.amd&&define("mui",[],function(){return i}),i}(document);!function(a,b){function c(c){this.os={};var d=[function(){var a=c.match(/(MicroMessenger)\/([\d\.]+)/i);return a&&(this.os.wechat={version:a[2].replace(/_/g,".")}),!1},function(){var a=c.match(/(Android);?[\s\/]+([\d.]+)?/);return a&&(this.os.android=!0,this.os.version=a[2],this.os.isBadAndroid=!/Chrome\/\d/.test(b.navigator.appVersion)),this.os.android===!0},function(){var a=c.match(/(iPhone\sOS)\s([\d_]+)/);if(a)this.os.ios=this.os.iphone=!0,this.os.version=a[2].replace(/_/g,".");else{var b=c.match(/(iPad).*OS\s([\d_]+)/);b&&(this.os.ios=this.os.ipad=!0,this.os.version=b[2].replace(/_/g,"."))}return this.os.ios===!0}];[].every.call(d,function(b){return!b.call(a)})}c.call(a,navigator.userAgent)}(mui,window),function(a,b){function c(c){this.os=this.os||{};var d=c.match(/Html5Plus/i);d&&(this.os.plus=!0,a(function(){b.body.classList.add("mui-plus")}),c.match(/StreamApp/i)&&(this.os.stream=!0,a(function(){b.body.classList.add("mui-plus-stream")})))}c.call(a,navigator.userAgent)}(mui,document),function(a){"ontouchstart"in window?(a.isTouchable=!0,a.EVENT_START="touchstart",a.EVENT_MOVE="touchmove",a.EVENT_END="touchend"):(a.isTouchable=!1,a.EVENT_START="mousedown",a.EVENT_MOVE="mousemove",a.EVENT_END="mouseup"),a.EVENT_CANCEL="touchcancel",a.EVENT_CLICK="click";var b=1,c={},d={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},e=function(){return!0},f=function(){return!1},g=function(b,c){return b.detail?b.detail.currentTarget=c:b.detail={currentTarget:c},a.each(d,function(a,c){var d=b[a];b[a]=function(){return this[c]=e,d&&d.apply(b,arguments)},b[c]=f},!0),b},h=function(a){return a&&(a._mid||(a._mid=b++))},i={},j=function(b,d,e,f){return function(e){for(var f=c[b._mid][d],h=[],i=e.target,j={};i&&i!==document&&i!==b&&(!~["click","tap","doubletap","longtap","hold"].indexOf(d)||!i.disabled&&!i.classList.contains("mui-disabled"));i=i.parentNode){var k={};a.each(f,function(c,d){j[c]||(j[c]=a.qsa(c,b)),j[c]&&~j[c].indexOf(i)&&(k[c]||(k[c]=d))},!0),a.isEmptyObject(k)||h.push({element:i,handlers:k})}j=null,e=g(e),a.each(h,function(b,c){i=c.element;var f=i.tagName;return"tap"===d&&"INPUT"!==f&&"TEXTAREA"!==f&&"SELECT"!==f&&(e.preventDefault(),e.detail&&e.detail.gesture&&e.detail.gesture.preventDefault()),a.each(c.handlers,function(b,c){a.each(c,function(a,b){b.call(i,e)===!1&&(e.preventDefault(),e.stopPropagation())},!0)},!0),e.isPropagationStopped()?!1:void 0},!0)}},k=function(a,b){var c=i[h(a)],d=[];if(c){if(d=[],b){var e=function(a){return a.type===b};return c.filter(e)}d=c}return d},l=/^(INPUT|TEXTAREA|BUTTON|SELECT)$/;a.fn.on=function(b,d,e){return this.each(function(){var f=this;h(f),h(e);var g=!1,k=c[f._mid]||(c[f._mid]={}),m=k[b]||(k[b]={});a.isEmptyObject(m)&&(g=!0);var n=m[d]||(m[d]=[]);if(n.push(e),g){var o=i[h(f)];o||(o=[]);var p=j(f,b,d,e);o.push(p),p.i=o.length-1,p.type=b,i[h(f)]=o,f.addEventListener(b,p),"tap"===b&&f.addEventListener("click",function(a){if(a.target){var b=a.target.tagName;if(!l.test(b))if("A"===b){var c=a.target.href;c&&~c.indexOf("tel:")||a.preventDefault()}else a.preventDefault()}})}})},a.fn.off=function(b,d,e){return this.each(function(){var f=h(this);if(b)if(d)if(e){var g=c[f]&&c[f][b]&&c[f][b][d];a.each(g,function(a,b){return h(b)===h(e)?(g.splice(a,1),!1):void 0},!0)}else c[f]&&c[f][b]&&delete c[f][b][d];else c[f]&&delete c[f][b];else c[f]&&delete c[f];c[f]?(!c[f][b]||a.isEmptyObject(c[f][b]))&&k(this,b).forEach(function(a){this.removeEventListener(a.type,a),delete i[f][a.i]}.bind(this)):k(this).forEach(function(a){this.removeEventListener(a.type,a),delete i[f][a.i]}.bind(this))})}}(mui),function(a,b,c){a.targets={},a.targetHandles=[],a.registerTarget=function(b){return b.index=b.index||1e3,a.targetHandles.push(b),a.targetHandles.sort(function(a,b){return a.index-b.index}),a.targetHandles},b.addEventListener(a.EVENT_START,function(b){for(var d=b.target,e={};d&&d!==c;d=d.parentNode){var f=!1;if(a.each(a.targetHandles,function(c,g){var h=g.name;f||e[h]||!g.hasOwnProperty("handle")?e[h]||g.isReset!==!1&&(a.targets[h]=!1):(a.targets[h]=g.handle(b,d),a.targets[h]&&(e[h]=!0,g.isContinue!==!0&&(f=!0)))}),f)break}}),b.addEventListener("click",function(b){for(var d=b.target,e=!1;d&&d!==c&&("A"!==d.tagName||(a.each(a.targetHandles,function(a,c){c.name;return c.hasOwnProperty("handle")&&c.handle(b,d)?(e=!0,b.preventDefault(),!1):void 0}),!e));d=d.parentNode);})}(mui,window,document),function(a){String.prototype.trim===a&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Object.setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a}}(),function(){function a(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("Events"),d=!0;for(var e in b)"bubbles"===e?d=!!b[e]:c[e]=b[e];return c.initEvent(a,d,!0),c}"undefined"==typeof window.CustomEvent&&(a.prototype=window.Event.prototype,window.CustomEvent=a)}(),Function.prototype.bind=Function.prototype.bind||function(a){var b=Array.prototype.splice.call(arguments,1),c=this,d=function(){var e=b.concat(Array.prototype.splice.call(arguments,0));return this instanceof d?void c.apply(this,e):c.apply(a,e)};return d.prototype=c.prototype,d},function(a){"classList"in a.documentElement||!Object.defineProperty||"undefined"==typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function a(a){return function(c){var d=b.className.split(/\s+/),e=d.indexOf(c);a(d,e,c),b.className=d.join(" ")}}var b=this,c={add:a(function(a,b,c){~b||a.push(c)}),remove:a(function(a,b){~b&&a.splice(b,1)}),toggle:a(function(a,b,c){~b?a.splice(b,1):a.push(c)}),contains:function(a){return!!~b.className.split(/\s+/).indexOf(a)},item:function(a){return b.className.split(/\s+/)[a]||null}};return Object.defineProperty(c,"length",{get:function(){return b.className.split(/\s+/).length}}),c}})}(document),function(a){if(!a.requestAnimationFrame){var b=0;a.requestAnimationFrame=a.webkitRequestAnimationFrame||function(c,d){var e=(new Date).getTime(),f=Math.max(0,16.7-(e-b)),g=a.setTimeout(function(){c(e+f)},f);return b=e+f,g},a.cancelAnimationFrame=a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame||function(a){clearTimeout(a)}}}(window),function(a,b,c){if((a.os.android||a.os.ios)&&!b.FastClick){var d=function(a,b){return"LABEL"===b.tagName&&b.parentNode&&(b=b.parentNode.querySelector("input")),!b||"radio"!==b.type&&"checkbox"!==b.type||b.disabled?!1:b};a.registerTarget({name:c,index:40,handle:d,target:!1});var e=function(c){var d=a.targets.click;if(d){var e,f;document.activeElement&&document.activeElement!==d&&document.activeElement.blur(),f=c.detail.gesture.changedTouches[0],e=document.createEvent("MouseEvents"),e.initMouseEvent("click",!0,!0,b,1,f.screenX,f.screenY,f.clientX,f.clientY,!1,!1,!1,!1,0,null),e.forwardedTouchEvent=!0,d.dispatchEvent(e),c.detail&&c.detail.gesture.preventDefault()}};b.addEventListener("tap",e),b.addEventListener("doubletap",e),b.addEventListener("click",function(b){return a.targets.click&&!b.forwardedTouchEvent?(b.stopImmediatePropagation?b.stopImmediatePropagation():b.propagationStopped=!0,b.stopPropagation(),b.preventDefault(),!1):void 0},!0)}}(mui,window,"click"),function(a,b){a(function(){if(a.os.ios){var c="mui-focusin",d="mui-bar-tab",e="mui-bar-footer",f="mui-bar-footer-secondary",g="mui-bar-footer-secondary-tab";b.addEventListener("focusin",function(h){if(!(a.os.plus&&window.plus&&plus.webview.currentWebview().children().length>0)){var i=h.target;if(i.tagName&&("TEXTAREA"===i.tagName||"INPUT"===i.tagName&&("text"===i.type||"search"===i.type||"number"===i.type))){if(i.disabled||i.readOnly)return;b.body.classList.add(c);for(var j=!1;i&&i!==b;i=i.parentNode){var k=i.classList;if(k&&k.contains(d)||k.contains(e)||k.contains(f)||k.contains(g)){j=!0;break}}if(j){var l=b.body.scrollHeight,m=b.body.scrollLeft;setTimeout(function(){window.scrollTo(m,l)},20)}}}}),b.addEventListener("focusout",function(a){var d=b.body.classList;d.contains(c)&&(d.remove(c),setTimeout(function(){window.scrollTo(b.body.scrollLeft,b.body.scrollTop)},20))})}})}(mui,document),function(a){a.namespace="mui",a.classNamePrefix=a.namespace+"-",a.classSelectorPrefix="."+a.classNamePrefix,a.className=function(b){return a.classNamePrefix+b},a.classSelector=function(b){return b.replace(/\./g,a.classSelectorPrefix)},a.eventName=function(b,c){return b+(a.namespace?"."+a.namespace:"")+(c?"."+c:"")}}(mui),function(a,b){a.gestures={session:{}},a.preventDefault=function(a){a.preventDefault()},a.stopPropagation=function(a){a.stopPropagation()},a.addGesture=function(b){return a.addAction("gestures",b)};var c=Math.round,d=Math.abs,e=Math.sqrt,f=(Math.atan,Math.atan2),g=function(a,b,c){c||(c=["x","y"]);var d=b[c[0]]-a[c[0]],f=b[c[1]]-a[c[1]];return e(d*d+f*f)},h=function(a,b){if(a.length>=2&&b.length>=2){var c=["pageX","pageY"];return g(b[1],b[0],c)/g(a[1],a[0],c)}return 1},i=function(a,b,c){c||(c=["x","y"]);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*f(e,d)/Math.PI},j=function(a,b){return a===b?"":d(a)>=d(b)?a>0?"left":"right":b>0?"up":"down"},k=function(a,b){var c=["pageX","pageY"];return i(b[1],b[0],c)-i(a[1],a[0],c)},l=function(a,b,c){return{x:b/a||0,y:c/a||0}},m=function(b,c){a.gestures.stoped||a.doAction("gestures",function(d,e){a.gestures.stoped||a.options.gestureConfig[e.name]!==!1&&e.handle(b,c)})},n=function(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1},o=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];e.indexOf(g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d},p=function(a){var b=a.length;if(1===b)return{x:c(a[0].pageX),y:c(a[0].pageY)};for(var d=0,e=0,f=0;b>f;)d+=a[f].pageX,e+=a[f].pageY,f++;return{x:c(d/b),y:c(e/b)}},q=function(){return a.options.gestureConfig.pinch},r=function(b){for(var d=[],e=0;e<b.touches.length;)d[e]={pageX:c(b.touches[e].pageX),pageY:c(b.touches[e].pageY)},e++;return{timestamp:a.now(),gesture:b.gesture,touches:d,center:p(b.touches),deltaX:b.deltaX,deltaY:b.deltaY}},s=function(b){var c=a.gestures.session,d=b.center,e=c.offsetDelta||{},f=c.prevDelta||{},g=c.prevTouch||{};(b.gesture.type===a.EVENT_START||b.gesture.type===a.EVENT_END)&&(f=c.prevDelta={x:g.deltaX||0,y:g.deltaY||0},e=c.offsetDelta={x:d.x,y:d.y}),b.deltaX=f.x+(d.x-e.x),b.deltaY=f.y+(d.y-e.y)},t=function(b){var c=a.gestures.session,d=b.touches,e=d.length;c.firstTouch||(c.firstTouch=r(b)),q()&&e>1&&!c.firstMultiTouch?c.firstMultiTouch=r(b):1===e&&(c.firstMultiTouch=!1);var f=c.firstTouch,l=c.firstMultiTouch,m=l?l.center:f.center,n=b.center=p(d);b.timestamp=a.now(),b.deltaTime=b.timestamp-f.timestamp,b.angle=i(m,n),b.distance=g(m,n),s(b),b.offsetDirection=j(b.deltaX,b.deltaY),b.scale=l?h(l.touches,d):1,b.rotation=l?k(l.touches,d):0,v(b)},u=25,v=function(b){var c,e,f,g,h=a.gestures.session,i=h.lastInterval||b,k=b.timestamp-i.timestamp;if(b.gesture.type!=a.EVENT_CANCEL&&(k>u||void 0===i.velocity)){var m=i.deltaX-b.deltaX,n=i.deltaY-b.deltaY,o=l(k,m,n);e=o.x,f=o.y,c=d(o.x)>d(o.y)?o.x:o.y,g=j(m,n)||i.direction,h.lastInterval=b}else c=i.velocity,e=i.velocityX,f=i.velocityY,g=i.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g},w={},x=function(a){for(var b=0;b<a.length;b++)!a.identifier&&(a.identifier=0);return a},y=function(b,c){var d=x(a.slice.call(b.touches||[b])),e=b.type,f=[],g=[];if(e!==a.EVENT_START&&e!==a.EVENT_MOVE||1!==d.length){var h=0,f=[],g=[],i=x(a.slice.call(b.changedTouches||[b]));c.target=b.target;var j=a.gestures.session.target||b.target;if(f=d.filter(function(a){return n(a.target,j)}),e===a.EVENT_START)for(h=0;h<f.length;)w[f[h].identifier]=!0,h++;for(h=0;h<i.length;)w[i[h].identifier]&&g.push(i[h]),(e===a.EVENT_END||e===a.EVENT_CANCEL)&&delete w[i[h].identifier],h++;if(!g.length)return!1}else w[d[0].identifier]=!0,f=d,g=d,c.target=b.target;f=o(f.concat(g),"identifier",!0);var k=f.length,l=g.length;return e===a.EVENT_START&&k-l===0&&(c.isFirst=!0,a.gestures.touch=a.gestures.session={target:b.target}),c.isFinal=(e===a.EVENT_END||e===a.EVENT_CANCEL)&&k-l===0,c.touches=f,c.changedTouches=g,!0},z=function(b){var c={gesture:b},d=y(b,c);d&&(t(c),m(b,c),a.gestures.session.prevTouch=c,b.type!==a.EVENT_END||a.isTouchable||(a.gestures.touch=a.gestures.session={}))};b.addEventListener(a.EVENT_START,z),b.addEventListener(a.EVENT_MOVE,z),b.addEventListener(a.EVENT_END,z),b.addEventListener(a.EVENT_CANCEL,z),b.addEventListener(a.EVENT_CLICK,function(b){(a.os.android||a.os.ios)&&(a.targets.popover&&b.target===a.targets.popover||a.targets.tab||a.targets.offcanvas||a.targets.modal)&&b.preventDefault()},!0),a.isScrolling=!1;var A=null;b.addEventListener("scroll",function(){a.isScrolling=!0,A&&clearTimeout(A),A=setTimeout(function(){a.isScrolling=!1},250)})}(mui,window),function(a,b){var c=0,d=function(d,e){var f=a.gestures.session,g=this.options,h=a.now();switch(d.type){case a.EVENT_MOVE:h-c>300&&(c=h,f.flickStart=e.center);break;case a.EVENT_END:case a.EVENT_CANCEL:e.flick=!1,f.flickStart&&g.flickMaxTime>h-c&&e.distance>g.flickMinDistince&&(e.flick=!0,e.flickTime=h-c,e.flickDistanceX=e.center.x-f.flickStart.x,e.flickDistanceY=e.center.y-f.flickStart.y,a.trigger(f.target,b,e),a.trigger(f.target,b+e.direction,e))}};a.addGesture({name:b,index:5,handle:d,options:{flickMaxTime:200,flickMinDistince:10}})}(mui,"flick"),function(a,b){var c=function(c,d){var e=a.gestures.session;if(c.type===a.EVENT_END||c.type===a.EVENT_CANCEL){var f=this.options;d.swipe=!1,d.direction&&f.swipeMaxTime>d.deltaTime&&d.distance>f.swipeMinDistince&&(d.swipe=!0,a.trigger(e.target,b,d),a.trigger(e.target,b+d.direction,d))}};a.addGesture({name:b,index:10,handle:c,options:{swipeMaxTime:300,swipeMinDistince:18}})}(mui,"swipe"),function(a,b){var c=function(c,d){var e=a.gestures.session;switch(c.type){case a.EVENT_START:break;case a.EVENT_MOVE:if(!d.direction||!e.target)return;e.lockDirection&&e.startDirection&&e.startDirection&&e.startDirection!==d.direction&&("up"===e.startDirection||"down"===e.startDirection?d.direction=d.deltaY<0?"up":"down":d.direction=d.deltaX<0?"left":"right"),e.drag||(e.drag=!0,a.trigger(e.target,b+"start",d)),a.trigger(e.target,b,d),a.trigger(e.target,b+d.direction,d);break;case a.EVENT_END:case a.EVENT_CANCEL:e.drag&&d.isFinal&&a.trigger(e.target,b+"end",d)}};a.addGesture({name:b,index:20,handle:c,options:{fingers:1}})}(mui,"drag"),function(a,b){var c,d,e=function(e,f){var g=a.gestures.session,h=this.options;switch(e.type){case a.EVENT_END:if(!f.isFinal)return;var i=g.target;if(!i||i.disabled||i.classList&&i.classList.contains("mui-disabled"))return;if(f.distance<h.tapMaxDistance&&f.deltaTime<h.tapMaxTime){if(a.options.gestureConfig.doubletap&&c&&c===i&&d&&f.timestamp-d<h.tapMaxInterval)return a.trigger(i,"doubletap",f),d=a.now(),void(c=i);a.trigger(i,b,f),d=a.now(),c=i}}};a.addGesture({name:b,index:30,handle:e,options:{fingers:1,tapMaxInterval:300,tapMaxDistance:5,tapMaxTime:250}})}(mui,"tap"),function(a,b){var c,d=function(d,e){var f=a.gestures.session,g=this.options;switch(d.type){case a.EVENT_START:clearTimeout(c),c=setTimeout(function(){a.trigger(f.target,b,e)},g.holdTimeout);break;case a.EVENT_MOVE:e.distance>g.holdThreshold&&clearTimeout(c);break;case a.EVENT_END:case a.EVENT_CANCEL:clearTimeout(c)}};a.addGesture({name:b,index:10,handle:d,options:{fingers:1,holdTimeout:500,holdThreshold:2}})}(mui,"longtap"),function(a,b){var c,d=function(d,e){var f=a.gestures.session,g=this.options;switch(d.type){case a.EVENT_START:a.options.gestureConfig.hold&&(c&&clearTimeout(c),c=setTimeout(function(){e.hold=!0,a.trigger(f.target,b,e)},g.holdTimeout));break;case a.EVENT_MOVE:break;case a.EVENT_END:case a.EVENT_CANCEL:c&&(clearTimeout(c)&&(c=null),a.trigger(f.target,"release",e))}};a.addGesture({name:b,index:10,handle:d,options:{fingers:1,holdTimeout:0}})}(mui,"hold"),function(a,b){var c=function(c,d){var e=this.options,f=a.gestures.session;switch(c.type){case a.EVENT_START:break;case a.EVENT_MOVE:if(a.options.gestureConfig.pinch){if(d.touches.length<2)return;f.pinch||(f.pinch=!0,a.trigger(f.target,b+"start",d)),a.trigger(f.target,b,d);var g=d.scale,h=d.rotation,i="undefined"==typeof d.lastScale?1:d.lastScale,j=1e-12;g>i?(i=g-j,a.trigger(f.target,b+"out",d)):i>g&&(i=g+j,a.trigger(f.target,b+"in",d)),Math.abs(h)>e.minRotationAngle&&a.trigger(f.target,"rotate",d)}break;case a.EVENT_END:case a.EVENT_CANCEL:a.options.gestureConfig.pinch&&f.pinch&&2===d.touches.length&&(f.pinch=!1,a.trigger(f.target,b+"end",d))}};a.addGesture({name:b,index:10,handle:c,options:{minRotationAngle:0}})}(mui,"pinch"),function(a){function b(a,b){var c="MUI_SCROLL_POSITION_"+document.location.href+"_"+b.src,d=parseFloat(localStorage.getItem(c))||0;d&&!function(a){b.onload=function(){window.scrollTo(0,a)}}(d),setInterval(function(){var a=window.scrollY;d!==a&&(localStorage.setItem(c,a+""),d=a)},100)}a.global=a.options={gestureConfig:{tap:!0,doubletap:!1,longtap:!1,hold:!1,flick:!0,swipe:!0,drag:!0,pinch:!1}},a.initGlobal=function(b){return a.options=a.extend(!0,a.global,b),this};var c={},d=!1;a.init=function(b){return d=!0,a.options=a.extend(!0,a.global,b||{}),a.ready(function(){a.doAction("inits",function(b,d){var e=!(c[d.name]&&!d.repeat);e&&(d.handle.call(a),c[d.name]=!0)})}),this},a.addInit=function(b){return a.addAction("inits",b)},a.addInit({name:"iframe",index:100,handle:function(){var b=a.options,c=b.subpages||[];!a.os.plus&&c.length&&e(c[0])}});var e=function(c){var d=document.createElement("div");d.className="mui-iframe-wrapper";var e=c.styles||{};"string"!=typeof e.top&&(e.top="0px"),"string"!=typeof e.bottom&&(e.bottom="0px"),d.style.top=e.top,d.style.bottom=e.bottom;var f=document.createElement("iframe");f.src=c.url,f.id=c.id||c.url,f.name=f.id,d.appendChild(f),document.body.appendChild(d),a.os.wechat&&b(d,f)};a(function(){var b=document.body.classList,c=[];a.os.ios?(c.push({os:"ios",version:a.os.version}),b.add("mui-ios")):a.os.android&&(c.push({os:"android",version:a.os.version}),b.add("mui-android")),a.os.wechat&&(c.push({os:"wechat",version:a.os.wechat.version}),b.add("mui-wechat")),c.length&&a.each(c,function(c,d){var e="";d.version&&a.each(d.version.split("."),function(c,f){e=e+(e?"-":"")+f,b.add(a.className(d.os+"-"+e))})})})}(mui),function(a){var b={swipeBack:!1,preloadPages:[],preloadLimit:10,keyEventBind:{backbutton:!0,menubutton:!0}},c={autoShow:!0,duration:a.os.ios?200:100,aniShow:"slide-in-right"};a.options.show&&(c=a.extend(!0,c,a.options.show)),a.currentWebview=null,a.isHomePage=!1,a.extend(!0,a.global,b),a.extend(!0,a.options,b),a.waitingOptions=function(b){return a.extend(!0,{},{autoShow:!0,title:"",modal:!1},b)},a.showOptions=function(b){return a.extend(!0,{},c,b)},a.windowOptions=function(b){return a.extend({scalable:!1,bounce:""},b)},a.plusReady=function(a){return window.plus?setTimeout(function(){a()},0):document.addEventListener("plusready",function(){a()},!1),this},a.fire=function(b,c,d){b&&(""!==d&&(d=d||{},a.isPlainObject(d)&&(d=JSON.stringify(d||{}).replace(/\'/g,"\\u0027").replace(/\\/g,"\\u005c"))),b.evalJS("typeof mui!=='undefined'&&mui.receive('"+c+"','"+d+"')"))},a.receive=function(b,c){if(b){try{c&&(c=JSON.parse(c))}catch(d){}a.trigger(document,b,c)}};var d=function(b){if(!b.preloaded){a.fire(b,"preload");for(var c=b.children(),d=0;d<c.length;d++)a.fire(c[d],"preload");b.preloaded=!0}},e=function(b,c,d){if(d){if(!b[c+"ed"]){a.fire(b,c);for(var e=b.children(),f=0;f<e.length;f++)a.fire(e[f],c);b[c+"ed"]=!0}}else{a.fire(b,c);for(var e=b.children(),f=0;f<e.length;f++)a.fire(e[f],c)}};a.openWindow=function(b,c,f){if("object"==typeof b?(f=b,b=f.url,c=f.id||b):"object"==typeof c?(f=c,c=b):c=c||b,!a.os.plus)return void(a.os.ios||a.os.android?window.top.location.href=b:window.parent.location.href=b);if(window.plus){f=f||{};var g,h,i=f.params||{},j=null,k=null;if(a.webviews[c]&&(k=a.webviews[c],plus.webview.getWebviewById(c)&&(j=k.webview)),k&&j)return g=k.show,g=f.show?a.extend(g,f.show):g,j.show(g.aniShow,g.duration,function(){d(j),e(j,"pagebeforeshow",!1)}),k.afterShowMethodName&&j.evalJS(k.afterShowMethodName+"('"+JSON.stringify(i)+"')"),j;if(f.createNew!==!0){if(j=plus.webview.getWebviewById(c))return g=a.showOptions(f.show),g.autoShow&&j.show(g.aniShow,g.duration,function(){d(j),e(j,"pagebeforeshow",!1)}),j;if(!b)throw new Error("webview["+c+"] does not exist")}var l=a.waitingOptions(f.waiting);if(l.autoShow&&(h=plus.nativeUI.showWaiting(l.title,l.options)),f=a.extend(f,{id:c,url:b}),j=a.createWindow(f),g=a.showOptions(f.show),g.autoShow){var m=function(){h&&h.close(),j.show(g.aniShow,g.duration,function(){}),j.showed=!0,f.afterShowMethodName&&j.evalJS(f.afterShowMethodName+"('"+JSON.stringify(i)+"')")};b?(j.addEventListener("titleUpdate",m,!1),j.addEventListener("loaded",function(){d(j),e(j,"pagebeforeshow",!1)},!1)):m()}return j}},a.createWindow=function(b,c){if(window.plus){var d,e=b.id||b.url;if(b.preload){a.webviews[e]&&a.webviews[e].webview.getURL()?d=a.webviews[e].webview:(b.createNew!==!0&&(d=plus.webview.getWebviewById(e)),d||(d=plus.webview.create(b.url,e,a.windowOptions(b.styles),a.extend({preload:!0},b.extras)),b.subpages&&a.each(b.subpages,function(b,c){var e=c.id||c.url;if(e){var f=plus.webview.getWebviewById(e);f||(f=plus.webview.create(c.url,e,a.windowOptions(c.styles),a.extend({preload:!0},c.extras))),d.append(f)}}))),a.webviews[e]={webview:d,preload:!0,show:a.showOptions(b.show),afterShowMethodName:b.afterShowMethodName};var f=a.data.preloads,g=f.indexOf(e);if(~g&&f.splice(g,1),f.push(e),f.length>a.options.preloadLimit){var h=a.data.preloads.shift(),i=a.webviews[h];i&&i.webview&&a.closeAll(i.webview),delete a.webviews[h]}}else c!==!1&&(d=plus.webview.create(b.url,e,a.windowOptions(b.styles),b.extras),b.subpages&&a.each(b.subpages,function(b,c){var e=c.id||c.url,f=plus.webview.getWebviewById(e);f||(f=plus.webview.create(c.url,e,a.windowOptions(c.styles),c.extras)),d.append(f)}));return d}},a.preload=function(b){return b.preload||(b.preload=!0),a.createWindow(b)},a.closeOpened=function(b){var c=b.opened();if(c)for(var d=0,e=c.length;e>d;d++){var f=c[d],g=f.opened();g&&g.length>0?(a.closeOpened(f),f.close("none")):f.parent()!==b&&f.close("none")}},a.closeAll=function(b,c){a.closeOpened(b),c?b.close(c):b.close()},a.createWindows=function(b){a.each(b,function(b,c){a.createWindow(c,!1)})},a.appendWebview=function(b){if(window.plus){var c,d=b.id||b.url;return a.webviews[d]||(plus.webview.getWebviewById(d)||(c=plus.webview.create(b.url,d,b.styles,b.extras)),plus.webview.currentWebview().append(c),a.webviews[d]=b),c}},a.webviews={},a.data.preloads=[],a.plusReady(function(){a.currentWebview=plus.webview.currentWebview()}),a.addInit({name:"5+",index:100,handle:function(){var b=a.options,c=b.subpages||[];a.os.plus&&a.plusReady(function(){a.each(c,function(b,c){a.appendWebview(c)}),plus.webview.currentWebview()===plus.webview.getWebviewById(plus.runtime.appid)&&(a.isHomePage=!0,setTimeout(function(){d(plus.webview.currentWebview())},300)),a.os.ios&&a.options.statusBarBackground&&plus.navigator.setStatusBarBackground(a.options.statusBarBackground),a.os.android&&parseFloat(a.os.version)<4.4&&null==plus.webview.currentWebview().parent()&&document.addEventListener("resume",function(){var a=document.body;a.style.display="none",setTimeout(function(){a.style.display=""},10)})})}}),window.addEventListener("preload",function(){var b=a.options.preloadPages||[];a.plusReady(function(){a.each(b,function(b,c){a.createWindow(a.extend(c,{preload:!0}))})})}),a.supportStatusbarOffset=function(){return a.os.plus&&a.os.ios&&parseFloat(a.os.version)>=7},a.ready(function(){a.supportStatusbarOffset()&&document.body.classList.add("mui-statusbar")})}(mui),function(a,b){a.addBack=function(b){return a.addAction("backs",b)},a.addBack({name:"browser",index:100,handle:function(){return b.history.length>1?(b.history.back(),!0):!1}}),a.back=function(){("function"!=typeof a.options.beforeback||a.options.beforeback()!==!1)&&a.doAction("backs")},b.addEventListener("tap",function(b){var c=a.targets.action;c&&c.classList.contains("mui-action-back")&&(a.back(),a.targets.action=!1)}),b.addEventListener("swiperight",function(b){var c=b.detail;a.options.swipeBack===!0&&Math.abs(c.angle)<3&&a.back()})}(mui,window),function(a,b){a.os.plus&&a.os.android&&a.addBack({name:"mui",index:5,handle:function(){if(a.targets._popover&&a.targets._popover.classList.contains("mui-active"))return a(a.targets._popover).popover("hide"),!0;var b=document.querySelector(".mui-off-canvas-wrap.mui-active");if(b)return a(b).offCanvas("close"),!0;var c=a.isFunction(a.getPreviewImage)&&a.getPreviewImage();return c&&c.isShown()?(c.close(),!0):a.closePopup()}}),a.__back__first=null,a.addBack({name:"5+",index:10,handle:function(){if(!b.plus)return!1;var c=plus.webview.currentWebview(),d=c.parent();return d?d.evalJS("mui&&mui.back();"):c.canBack(function(d){d.canBack?b.history.back():c.id===plus.runtime.appid?a.__back__first?(new Date).getTime()-a.__back__first<2e3&&plus.runtime.quit():(a.__back__first=(new Date).getTime(),mui.toast("再按一次退出应用"),setTimeout(function(){a.__back__first=null},2e3)):c.preload?c.hide("auto"):a.closeAll(c)}),!0}}),a.menu=function(){var c=document.querySelector(".mui-action-menu");if(c)a.trigger(c,a.EVENT_START),a.trigger(c,"tap");else if(b.plus){var d=a.currentWebview,e=d.parent();e&&e.evalJS("mui&&mui.menu();")}};var c=function(){a.back()},d=function(){a.menu()};a.plusReady(function(){a.options.keyEventBind.backbutton&&plus.key.addEventListener("backbutton",c,!1),a.options.keyEventBind.menubutton&&plus.key.addEventListener("menubutton",d,!1)}),a.addInit({name:"keyEventBind",index:1e3,handle:function(){a.plusReady(function(){a.options.keyEventBind.backbutton||plus.key.removeEventListener("backbutton",c),a.options.keyEventBind.menubutton||plus.key.removeEventListener("menubutton",d)})}})}(mui,window),function(a){a.addInit({name:"pullrefresh",index:1e3,handle:function(){var b=a.options,c=b.pullRefresh||{},d=c.down&&c.down.hasOwnProperty("callback"),e=c.up&&c.up.hasOwnProperty("callback");if(d||e){var f=c.container;if(f){var g=a(f);1===g.length&&(a.os.plus&&a.os.android?a.plusReady(function(){var b=plus.webview.currentWebview();if(e){var f={};f.up=c.up,f.webviewId=b.id||b.getURL(),g.pullRefresh(f)}if(d){var h=b.parent(),i=b.id||b.getURL();if(h){e||g.pullRefresh({webviewId:i});var j={webviewId:i};j.down=a.extend({},c.down),j.down.callback="_CALLBACK",h.evalJS("mui&&mui(document.querySelector('.mui-content')).pullRefresh('"+JSON.stringify(j)+"')")}}}):g.pullRefresh(c))}}}})}(mui),function(a,b,c){var d="application/json",e="text/html",f=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,g=/^(?:text|application)\/javascript/i,h=/^(?:text|application)\/xml/i,i=/^\s*$/;a.ajaxSettings={type:"GET",beforeSend:a.noop,success:a.noop,error:a.noop,complete:a.noop,context:null,xhr:function(a){return new b.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:d,xml:"application/xml, text/xml",html:e,text:"text/plain"},timeout:0,processData:!0,cache:!0};var j=function(a,b){var c=b.context;return b.beforeSend.call(c,a,b)===!1?!1:void 0},k=function(a,b,c){c.success.call(c.context,a,"success",b),m("success",b,c)},l=function(a,b,c,d){d.error.call(d.context,c,b,a),m(b,c,d)},m=function(a,b,c){c.complete.call(c.context,b,a)},n=function(b,c,d,e){var f,g=a.isArray(c),h=a.isPlainObject(c);a.each(c,function(c,i){f=a.type(i),e&&(c=d?e:e+"["+(h||"object"===f||"array"===f?c:"")+"]"),!e&&g?b.add(i.name,i.value):"array"===f||!d&&"object"===f?n(b,i,d,c):b.add(c,i)})},o=function(b){if(b.processData&&b.data&&"string"!=typeof b.data){var e=b.contentType;!e&&b.headers&&(e=b.headers["Content-Type"]),e&&~e.indexOf(d)?b.data=JSON.stringify(b.data):b.data=a.param(b.data,b.traditional)}!b.data||b.type&&"GET"!==b.type.toUpperCase()||(b.url=p(b.url,b.data),
    +b.data=c)},p=function(a,b){return""===b?a:(a+"&"+b).replace(/[&?]{1,2}/,"?")},q=function(a){return a&&(a=a.split(";",2)[0]),a&&(a===e?"html":a===d?"json":g.test(a)?"script":h.test(a)&&"xml")||"text"},r=function(b,d,e,f){return a.isFunction(d)&&(f=e,e=d,d=c),a.isFunction(e)||(f=e,e=c),{url:b,data:d,success:e,dataType:f}};a.ajax=function(d,e){"object"==typeof d&&(e=d,d=c);var f=e||{};f.url=d||f.url;for(var g in a.ajaxSettings)f[g]===c&&(f[g]=a.ajaxSettings[g]);o(f);var h=f.dataType;f.cache!==!1&&(e&&e.cache===!0||"script"!==h)||(f.url=p(f.url,"_="+a.now()));var m,n=f.accepts[h&&h.toLowerCase()],r={},s=function(a,b){r[a.toLowerCase()]=[a,b]},t=/^([\w-]+:)\/\//.test(f.url)?RegExp.$1:b.location.protocol,u=f.xhr(f),v=u.setRequestHeader;if(s("X-Requested-With","XMLHttpRequest"),s("Accept",n||"*/*"),(n=f.mimeType||n)&&(n.indexOf(",")>-1&&(n=n.split(",",2)[0]),u.overrideMimeType&&u.overrideMimeType(n)),(f.contentType||f.contentType!==!1&&f.data&&"GET"!==f.type.toUpperCase())&&s("Content-Type",f.contentType||"application/x-www-form-urlencoded"),f.headers)for(var w in f.headers)s(w,f.headers[w]);if(u.setRequestHeader=s,u.onreadystatechange=function(){if(4===u.readyState){u.onreadystatechange=a.noop,clearTimeout(m);var b,c=!1,d="file:"===t;if(u.status>=200&&u.status<300||304===u.status||0===u.status&&d&&u.responseText){h=h||q(f.mimeType||u.getResponseHeader("content-type")),b=u.responseText;try{"script"===h?(1,eval)(b):"xml"===h?b=u.responseXML:"json"===h&&(b=i.test(b)?null:a.parseJSON(b))}catch(e){c=e}c?l(c,"parsererror",u,f):k(b,u,f)}else{var g=u.status?"error":"abort",j=u.statusText||null;d&&(g="error",j="404"),l(j,g,u,f)}}},j(u,f)===!1)return u.abort(),l(null,"abort",u,f),u;if(f.xhrFields)for(var w in f.xhrFields)u[w]=f.xhrFields[w];var x="async"in f?f.async:!0;u.open(f.type.toUpperCase(),f.url,x,f.username,f.password);for(var w in r)r.hasOwnProperty(w)&&v.apply(u,r[w]);return f.timeout>0&&(m=setTimeout(function(){u.onreadystatechange=a.noop,u.abort(),l(null,"timeout",u,f)},f.timeout)),u.send(f.data?f.data:null),u},a.param=function(a,b){var c=[];return c.add=function(a,b){this.push(encodeURIComponent(a)+"="+encodeURIComponent(b))},n(c,a,b),c.join("&").replace(/%20/g,"+")},a.get=function(){return a.ajax(r.apply(null,arguments))},a.post=function(){var b=r.apply(null,arguments);return b.type="POST",a.ajax(b)},a.getJSON=function(){var b=r.apply(null,arguments);return b.dataType="json",a.ajax(b)},a.fn.load=function(b,c,d){if(!this.length)return this;var e,g=this,h=b.split(/\s/),i=r(b,c,d),j=i.success;return h.length>1&&(i.url=h[0],e=h[1]),i.success=function(a){if(e){var b=document.createElement("div");b.innerHTML=a.replace(f,"");var c=document.createElement("div"),d=b.querySelectorAll(e);if(d&&d.length>0)for(var h=0,i=d.length;i>h;h++)c.appendChild(d[h]);g[0].innerHTML=c.innerHTML}else g[0].innerHTML=a;j&&j.apply(g,arguments)},a.ajax(i),this}}(mui,window),function(a){var b=document.createElement("a");b.href=window.location.href,a.plusReady(function(){a.ajaxSettings=a.extend(a.ajaxSettings,{xhr:function(a){if(a.crossDomain)return new plus.net.XMLHttpRequest;if("file:"!==b.protocol){var c=document.createElement("a");if(c.href=a.url,c.href=c.href,a.crossDomain=b.protocol+"//"+b.host!=c.protocol+"//"+c.host,a.crossDomain)return new plus.net.XMLHttpRequest}return new window.XMLHttpRequest}})})}(mui),function(a,b,c){a.offset=function(a){var d={top:0,left:0};return typeof a.getBoundingClientRect!==c&&(d=a.getBoundingClientRect()),{top:d.top+b.pageYOffset-a.clientTop,left:d.left+b.pageXOffset-a.clientLeft}}}(mui,window),function(a,b){a.scrollTo=function(a,c,d){c=c||1e3;var e=function(c){if(0>=c)return b.scrollTo(0,a),void(d&&d());var f=a-b.scrollY;setTimeout(function(){b.scrollTo(0,b.scrollY+f/c*10),e(c-10)},16.7)};e(c)},a.animationFrame=function(a){var b,c,d;return function(){b=arguments,d=this,c||(c=!0,requestAnimationFrame(function(){a.apply(d,b),c=!1}))}}}(mui,window),function(a){var b=!1,c=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/,d=function(){};d.extend=function(a){function d(){!b&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;b=!0;var f=new this;b=!1;for(var g in a)f[g]="function"==typeof a[g]&&"function"==typeof e[g]&&c.test(a[g])?function(a,b){return function(){var c=this._super;this._super=e[a];var d=b.apply(this,arguments);return this._super=c,d}}(g,a[g]):a[g];return d.prototype=f,d.prototype.constructor=d,d.extend=arguments.callee,d},a.Class=d}(mui),function(a,b,c){var d="mui-pull-top-pocket",e="mui-pull-bottom-pocket",f="mui-pull",g="mui-pull-loading",h="mui-pull-caption",i="mui-pull-caption-down",j="mui-pull-caption-refresh",k="mui-pull-caption-nomore",l="mui-icon",m="mui-spinner",n="mui-icon-pulldown",o="mui-block",p="mui-hidden",q="mui-visibility",r=g+" "+l+" "+n,s=g+" "+l+" "+n,t=g+" "+l+" "+m,u=['<div class="'+f+'">','<div class="{icon}"></div>','<div class="'+h+'">{contentrefresh}</div>',"</div>"].join(""),v={init:function(b,c){this._super(b,a.extend(!0,{scrollY:!0,scrollX:!1,indicators:!0,deceleration:.003,down:{height:50,contentinit:"下拉可以刷新",contentdown:"下拉可以刷新",contentover:"释放立即刷新",contentrefresh:"正在刷新..."},up:{height:50,auto:!1,contentinit:"上拉显示更多",contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了",duration:300}},c))},_init:function(){this._super(),this._initPocket()},_initPulldownRefresh:function(){this.pulldown=!0,this.pullPocket=this.topPocket,this.pullPocket.classList.add(o),this.pullPocket.classList.add(q),this.pullCaption=this.topCaption,this.pullLoading=this.topLoading},_initPullupRefresh:function(){this.pulldown=!1,this.pullPocket=this.bottomPocket,this.pullPocket.classList.add(o),this.pullPocket.classList.add(q),this.pullCaption=this.bottomCaption,this.pullLoading=this.bottomLoading},_initPocket:function(){var a=this.options;a.down&&a.down.hasOwnProperty("callback")&&(this.topPocket=this.scroller.querySelector("."+d),this.topPocket||(this.topPocket=this._createPocket(d,a.down,s),this.wrapper.insertBefore(this.topPocket,this.wrapper.firstChild)),this.topLoading=this.topPocket.querySelector("."+g),this.topCaption=this.topPocket.querySelector("."+h)),a.up&&a.up.hasOwnProperty("callback")&&(this.bottomPocket=this.scroller.querySelector("."+e),this.bottomPocket||(this.bottomPocket=this._createPocket(e,a.up,t),this.scroller.appendChild(this.bottomPocket)),this.bottomLoading=this.bottomPocket.querySelector("."+g),this.bottomCaption=this.bottomPocket.querySelector("."+h),this.wrapper.addEventListener("scrollbottom",this))},_createPocket:function(a,c,d){var e=b.createElement("div");return e.className=a,e.innerHTML=u.replace("{contentrefresh}",c.contentinit).replace("{icon}",d),e},_resetPullDownLoading:function(){var a=this.pullLoading;a&&(this.pullCaption.innerHTML=this.options.down.contentdown,a.style.webkitTransition="",a.style.webkitTransform="",a.style.webkitAnimation="",a.className=s)},_setCaptionClass:function(a,b,c){if(!a)switch(c){case this.options.up.contentdown:b.className=h+" "+i;break;case this.options.up.contentrefresh:b.className=h+" "+j;break;case this.options.up.contentnomore:b.className=h+" "+k}},_setCaption:function(a,b){if(!this.loading){var c=this.options,d=this.pullPocket,e=this.pullCaption,f=this.pullLoading,g=this.pulldown,h=this;d&&(b?setTimeout(function(){e.innerHTML=h.lastTitle=a,g?f.className=s:(h._setCaptionClass(!1,e,a),f.className=t),f.style.webkitAnimation="",f.style.webkitTransition="",f.style.webkitTransform=""},100):a!==this.lastTitle&&(e.innerHTML=a,g?a===c.down.contentrefresh?(f.className=t,f.style.webkitAnimation="spinner-spin 1s step-end infinite"):a===c.down.contentover?(f.className=r,f.style.webkitTransition="-webkit-transform 0.3s ease-in",f.style.webkitTransform="rotate(180deg)"):a===c.down.contentdown&&(f.className=s,f.style.webkitTransition="-webkit-transform 0.3s ease-in",f.style.webkitTransform="rotate(0deg)"):(a===c.up.contentrefresh?f.className=t+" "+q:f.className=t+" "+p,h._setCaptionClass(!1,e,a)),this.lastTitle=a))}}};a.PullRefresh=v}(mui,document),function(a,b,c,d){var e="mui-scroll",f="mui-scrollbar",g="mui-scrollbar-indicator",h=f+"-vertical",i=f+"-horizontal",j="mui-active",k={quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(a){return a*(2-a)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(a){return Math.sqrt(1- --a*a)}},outCirc:{style:"cubic-bezier(0.075, 0.82, 0.165, 1)"},outCubic:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)"}},l=a.Class.extend({init:function(b,c){this.wrapper=this.element=b,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller&&this.scroller.style,this.stopped=!1,this.options=a.extend(!0,{scrollY:!0,scrollX:!1,startX:0,startY:0,indicators:!0,stopPropagation:!1,hardwareAccelerated:!0,fixedBadAndorid:!1,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/},momentum:!0,snapX:.5,snap:!1,bounce:!0,bounceTime:500,bounceEasing:k.outCirc,scrollTime:500,scrollEasing:k.outCubic,directionLockThreshold:5,parallaxElement:!1,parallaxRatio:.5},c),this.x=0,this.y=0,this.translateZ=this.options.hardwareAccelerated?" translateZ(0)":"",this._init(),this.scroller&&(this.refresh(),this.scrollTo(this.options.startX,this.options.startY))},_init:function(){this._initParallax(),this._initIndicators(),this._initEvent()},_initParallax:function(){this.options.parallaxElement&&(this.parallaxElement=c.querySelector(this.options.parallaxElement),this.parallaxStyle=this.parallaxElement.style,this.parallaxHeight=this.parallaxElement.offsetHeight,this.parallaxImgStyle=this.parallaxElement.querySelector("img").style)},_initIndicators:function(){var a=this;if(a.indicators=[],this.options.indicators){var b,c=[];a.options.scrollY&&(b={el:this._createScrollBar(h),listenX:!1},this.wrapper.appendChild(b.el),c.push(b)),this.options.scrollX&&(b={el:this._createScrollBar(i),listenY:!1},this.wrapper.appendChild(b.el),c.push(b));for(var d=c.length;d--;)this.indicators.push(new m(this,c[d]))}},_initSnap:function(){this.currentPage={},this.pages=[];for(var a=this.snaps,b=a.length,c=0,d=-1,e=0,f=0,g=0,h=0,i=0;b>i;i++){var k=a[i],l=k.offsetLeft,m=k.offsetWidth;(0===i||l<=a[i-1].offsetLeft)&&(c=0,d++),this.pages[c]||(this.pages[c]=[]),e=this._getSnapX(l),h=Math.round(m*this.options.snapX),f=e-h,g=e-m+h,this.pages[c][d]={x:e,leftX:f,rightX:g,pageX:c,element:k},k.classList.contains(j)&&(this.currentPage=this.pages[c][0]),e>=this.maxScrollX&&c++}this.options.startX=this.currentPage.x||0},_getSnapX:function(a){return Math.max(Math.min(0,-a+this.wrapperWidth/2),this.maxScrollX)},_gotoPage:function(a){this.currentPage=this.pages[Math.min(a,this.pages.length-1)][0];for(var b=0,c=this.snaps.length;c>b;b++)b===a?this.snaps[b].classList.add(j):this.snaps[b].classList.remove(j);this.scrollTo(this.currentPage.x,0,this.options.scrollTime)},_nearestSnap:function(a){if(!this.pages.length)return{x:0,pageX:0};var b=0,c=this.pages.length;for(a>0?a=0:a<this.maxScrollX&&(a=this.maxScrollX);c>b;b++){var d="left"===this.direction?this.pages[b][0].leftX:this.pages[b][0].rightX;if(a>=d)return this.pages[b][0]}return{x:0,pageX:0}},_initEvent:function(c){var d=c?"removeEventListener":"addEventListener";b[d]("orientationchange",this),b[d]("resize",this),this.scroller[d]("webkitTransitionEnd",this),this.wrapper[d](a.EVENT_START,this),this.wrapper[d](a.EVENT_CANCEL,this),this.wrapper[d](a.EVENT_END,this),this.wrapper[d]("drag",this),this.wrapper[d]("dragend",this),this.wrapper[d]("flick",this),this.wrapper[d]("scrollend",this),this.options.scrollX&&this.wrapper[d]("swiperight",this);var e=this.wrapper.querySelector(".mui-segmented-control");e&&mui(e)[c?"off":"on"]("click","a",a.preventDefault),this.wrapper[d]("scrollstart",this),this.wrapper[d]("refresh",this)},_handleIndicatorScrollend:function(){this.indicators.map(function(a){a.fade()})},_handleIndicatorScrollstart:function(){this.indicators.map(function(a){a.fade(1)})},_handleIndicatorRefresh:function(){this.indicators.map(function(a){a.refresh()})},handleEvent:function(b){if(this.stopped)return void this.resetPosition();switch(b.type){case a.EVENT_START:this._start(b);break;case"drag":this.options.stopPropagation&&b.stopPropagation(),this._drag(b);break;case"dragend":case"flick":this.options.stopPropagation&&b.stopPropagation(),this._flick(b);break;case a.EVENT_CANCEL:case a.EVENT_END:this._end(b);break;case"webkitTransitionEnd":this.transitionTimer&&this.transitionTimer.cancel(),this._transitionEnd(b);break;case"scrollstart":this._handleIndicatorScrollstart(b);break;case"scrollend":this._handleIndicatorScrollend(b),this._scrollend(b),b.stopPropagation();break;case"orientationchange":case"resize":this._resize();break;case"swiperight":b.stopPropagation();break;case"refresh":this._handleIndicatorRefresh(b)}},_start:function(b){if(this.moved=this.needReset=!1,this._transitionTime(),this.isInTransition){this.needReset=!0,this.isInTransition=!1;var c=a.parseTranslateMatrix(a.getStyles(this.scroller,"webkitTransform"));this.setTranslate(Math.round(c.x),Math.round(c.y)),a.trigger(this.scroller,"scrollend",this),b.preventDefault()}this.reLayout(),a.trigger(this.scroller,"beforescrollstart",this)},_getDirectionByAngle:function(a){return-80>a&&a>-100?"up":a>=80&&100>a?"down":a>=170||-170>=a?"left":a>=-35&&10>=a?"right":null},_drag:function(c){var d=c.detail;if((this.options.scrollY||"up"===d.direction||"down"===d.direction)&&a.os.ios&&parseFloat(a.os.version)>=8){var e=d.gesture.touches[0].clientY;if(e+10>b.innerHeight||10>e)return void this.resetPosition(this.options.bounceTime)}var f=isReturn=!1;this._getDirectionByAngle(d.angle);if("left"===d.direction||"right"===d.direction?this.options.scrollX?(f=!0,this.moved||(a.gestures.session.lockDirection=!0,a.gestures.session.startDirection=d.direction)):this.options.scrollY&&!this.moved&&(isReturn=!0):"up"===d.direction||"down"===d.direction?this.options.scrollY?(f=!0,this.moved||(a.gestures.session.lockDirection=!0,a.gestures.session.startDirection=d.direction)):this.options.scrollX&&!this.moved&&(isReturn=!0):isReturn=!0,(this.moved||f)&&(c.stopPropagation(),d.gesture&&d.gesture.preventDefault()),!isReturn){this.moved?c.stopPropagation():a.trigger(this.scroller,"scrollstart",this);var g=0,h=0;this.moved?(g=d.deltaX-a.gestures.session.prevTouch.deltaX,h=d.deltaY-a.gestures.session.prevTouch.deltaY):(g=d.deltaX,h=d.deltaY);var i=Math.abs(d.deltaX),j=Math.abs(d.deltaY);i>j+this.options.directionLockThreshold?h=0:j>=i+this.options.directionLockThreshold&&(g=0),g=this.hasHorizontalScroll?g:0,h=this.hasVerticalScroll?h:0;var k=this.x+g,l=this.y+h;(k>0||k<this.maxScrollX)&&(k=this.options.bounce?this.x+g/3:k>0?0:this.maxScrollX),(l>0||l<this.maxScrollY)&&(l=this.options.bounce?this.y+h/3:l>0?0:this.maxScrollY),this.requestAnimationFrame||this._updateTranslate(),this.direction=d.deltaX>0?"right":"left",this.moved=!0,this.x=k,this.y=l,a.trigger(this.scroller,"scroll",this)}},_flick:function(b){if(this.moved){b.stopPropagation();var c=b.detail;if(this._clearRequestAnimationFrame(),"dragend"!==b.type||!c.flick){var d=Math.round(this.x),e=Math.round(this.y);if(this.isInTransition=!1,!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(d,e),"dragend"===b.type)return void a.trigger(this.scroller,"scrollend",this);var f=0,g="";return this.options.momentum&&c.flickTime<300&&(momentumX=this.hasHorizontalScroll?this._momentum(this.x,c.flickDistanceX,c.flickTime,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:d,duration:0},momentumY=this.hasVerticalScroll?this._momentum(this.y,c.flickDistanceY,c.flickTime,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:e,duration:0},d=momentumX.destination,e=momentumY.destination,f=Math.max(momentumX.duration,momentumY.duration),this.isInTransition=!0),d!=this.x||e!=this.y?((d>0||d<this.maxScrollX||e>0||e<this.maxScrollY)&&(g=k.quadratic),void this.scrollTo(d,e,f,g)):void a.trigger(this.scroller,"scrollend",this)}}}},_end:function(b){this.needReset=!1,(!this.moved&&this.needReset||b.type===a.EVENT_CANCEL)&&this.resetPosition()},_transitionEnd:function(b){b.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,a.trigger(this.scroller,"scrollend",this)))},_scrollend:function(b){(0===this.y&&0===this.maxScrollY||Math.abs(this.y)>0&&this.y<=this.maxScrollY)&&a.trigger(this.scroller,"scrollbottom",this)},_resize:function(){var a=this;clearTimeout(a.resizeTimeout),a.resizeTimeout=setTimeout(function(){a.refresh()},a.options.resizePolling)},_transitionTime:function(b){if(b=b||0,this.scrollerStyle.webkitTransitionDuration=b+"ms",this.parallaxElement&&this.options.scrollY&&(this.parallaxStyle.webkitTransitionDuration=b+"ms"),this.options.fixedBadAndorid&&!b&&a.os.isBadAndroid&&(this.scrollerStyle.webkitTransitionDuration="0.001s",this.parallaxElement&&this.options.scrollY&&(this.parallaxStyle.webkitTransitionDuration="0.001s")),this.indicators)for(var c=this.indicators.length;c--;)this.indicators[c].transitionTime(b);b&&(this.transitionTimer&&this.transitionTimer.cancel(),this.transitionTimer=a.later(function(){a.trigger(this.scroller,"webkitTransitionEnd")},b+100,this))},_transitionTimingFunction:function(a){if(this.scrollerStyle.webkitTransitionTimingFunction=a,this.parallaxElement&&this.options.scrollY&&(this.parallaxStyle.webkitTransitionDuration=a),this.indicators)for(var b=this.indicators.length;b--;)this.indicators[b].transitionTimingFunction(a)},_translate:function(a,b){this.x=a,this.y=b},_clearRequestAnimationFrame:function(){this.requestAnimationFrame&&(cancelAnimationFrame(this.requestAnimationFrame),this.requestAnimationFrame=null)},_updateTranslate:function(){var a=this;(a.x!==a.lastX||a.y!==a.lastY)&&a.setTranslate(a.x,a.y),a.requestAnimationFrame=requestAnimationFrame(function(){a._updateTranslate()})},_createScrollBar:function(a){var b=c.createElement("div"),d=c.createElement("div");return b.className=f+" "+a,d.className=g,b.appendChild(d),a===h?(this.scrollbarY=b,this.scrollbarIndicatorY=d):a===i&&(this.scrollbarX=b,this.scrollbarIndicatorX=d),this.wrapper.appendChild(b),b},_preventDefaultException:function(a,b){for(var c in b)if(b[c].test(a[c]))return!0;return!1},_reLayout:function(){if(this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.indicators.map(function(a){a.refresh()}),this.options.snap&&"string"==typeof this.options.snap){var a=this.scroller.querySelectorAll(this.options.snap);this.itemLength=0,this.snaps=[];for(var b=0,c=a.length;c>b;b++){var d=a[b];d.parentNode===this.scroller&&(this.itemLength++,this.snaps.push(d))}this._initSnap()}},_momentum:function(a,b,c,e,f,g){var h,i,j=parseFloat(Math.abs(b)/c);return g=g===d?6e-4:g,h=a+j*j/(2*g)*(0>b?-1:1),i=j/g,e>h?(h=f?e-f/2.5*(j/8):e,b=Math.abs(h-a),i=b/j):h>0&&(h=f?f/2.5*(j/8):0,b=Math.abs(a)+h,i=b/j),{destination:Math.round(h),duration:i}},_getTranslateStr:function(a,b){return this.options.hardwareAccelerated?"translate3d("+a+"px,"+b+"px,0px) "+this.translateZ:"translate("+a+"px,"+b+"px) "},setStopped:function(a){this.stopped=!!a},setTranslate:function(b,c){if(this.x=b,this.y=c,this.scrollerStyle.webkitTransform=this._getTranslateStr(b,c),this.parallaxElement&&this.options.scrollY){var d=c*this.options.parallaxRatio,e=1+d/((this.parallaxHeight-d)/2);e>1?(this.parallaxImgStyle.opacity=1-d/100*this.options.parallaxRatio,this.parallaxStyle.webkitTransform=this._getTranslateStr(0,-d)+" scale("+e+","+e+")"):(this.parallaxImgStyle.opacity=1,this.parallaxStyle.webkitTransform=this._getTranslateStr(0,-1)+" scale(1,1)")}if(this.indicators)for(var f=this.indicators.length;f--;)this.indicators[f].updatePosition();this.lastX=this.x,this.lastY=this.y,a.trigger(this.scroller,"scroll",this)},reLayout:function(){this.wrapper.offsetHeight;var b=parseFloat(a.getStyles(this.wrapper,"padding-left"))||0,c=parseFloat(a.getStyles(this.wrapper,"padding-right"))||0,d=parseFloat(a.getStyles(this.wrapper,"padding-top"))||0,e=parseFloat(a.getStyles(this.wrapper,"padding-bottom"))||0,f=this.wrapper.clientWidth,g=this.wrapper.clientHeight;this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.wrapperWidth=f-b-c,this.wrapperHeight=g-d-e,this.maxScrollX=Math.min(this.wrapperWidth-this.scrollerWidth,0),this.maxScrollY=Math.min(this.wrapperHeight-this.scrollerHeight,0),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this._reLayout()},resetPosition:function(a){var b=this.x,c=this.y;return a=a||0,!this.hasHorizontalScroll||this.x>0?b=0:this.x<this.maxScrollX&&(b=this.maxScrollX),!this.hasVerticalScroll||this.y>0?c=0:this.y<this.maxScrollY&&(c=this.maxScrollY),b==this.x&&c==this.y?!1:(this.scrollTo(b,c,a,this.options.scrollEasing),!0)},_reInit:function(){for(var a=this.wrapper.querySelectorAll("."+e),b=0,c=a.length;c>b;b++)if(a[b].parentNode===this.wrapper){this.scroller=a[b];break}this.scrollerStyle=this.scroller&&this.scroller.style},refresh:function(){this._reInit(),this.reLayout(),a.trigger(this.scroller,"refresh",this),this.resetPosition()},scrollTo:function(a,b,c,d){var d=d||k.circular;this.isInTransition=c>0,this.isInTransition?(this._clearRequestAnimationFrame(),this._transitionTimingFunction(d.style),this._transitionTime(c),this.setTranslate(a,b)):this.setTranslate(a,b)},scrollToBottom:function(a,b){a=a||this.options.scrollTime,this.scrollTo(0,this.maxScrollY,a,b)},gotoPage:function(a){this._gotoPage(a)},destroy:function(){this._initEvent(!0),delete a.data[this.wrapper.getAttribute("data-scroll")],this.wrapper.setAttribute("data-scroll","")}}),m=function(b,d){this.wrapper="string"==typeof d.el?c.querySelector(d.el):d.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=b,this.options=a.extend({listenX:!0,listenY:!0,fade:!1,speedRatioX:0,speedRatioY:0},d),this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.fade&&(this.wrapperStyle.webkitTransform=this.scroller.translateZ,this.wrapperStyle.webkitTransitionDuration=this.options.fixedBadAndorid&&a.os.isBadAndroid?"0.001s":"0ms",this.wrapperStyle.opacity="0")};m.prototype={handleEvent:function(a){},transitionTime:function(b){b=b||0,this.indicatorStyle.webkitTransitionDuration=b+"ms",this.scroller.options.fixedBadAndorid&&!b&&a.os.isBadAndroid&&(this.indicatorStyle.webkitTransitionDuration="0.001s")},transitionTimingFunction:function(a){this.indicatorStyle.webkitTransitionTimingFunction=a},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.wrapper.offsetHeight,this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.indicatorWidth=Math.max(Math.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX,this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.indicatorHeight=Math.max(Math.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var a=this.options.listenX&&Math.round(this.sizeRatioX*this.scroller.x)||0,b=this.options.listenY&&Math.round(this.sizeRatioY*this.scroller.y)||0;a<this.minBoundaryX?(this.width=Math.max(this.indicatorWidth+a,8),this.indicatorStyle.width=this.width+"px",a=this.minBoundaryX):a>this.maxBoundaryX?(this.width=Math.max(this.indicatorWidth-(a-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",a=this.maxPosX+this.indicatorWidth-this.width):this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),b<this.minBoundaryY?(this.height=Math.max(this.indicatorHeight+3*b,8),this.indicatorStyle.height=this.height+"px",b=this.minBoundaryY):b>this.maxBoundaryY?(this.height=Math.max(this.indicatorHeight-3*(b-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",b=this.maxPosY+this.indicatorHeight-this.height):this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px"),this.x=a,this.y=b,this.indicatorStyle.webkitTransform=this.scroller._getTranslateStr(a,b)},fade:function(a,b){if(!b||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var c=a?250:500,d=a?0:300;a=a?"1":"0",this.wrapperStyle.webkitTransitionDuration=c+"ms",this.fadeTimeout=setTimeout(function(a){this.wrapperStyle.opacity=a,this.visible=+a}.bind(this,a),d)}}},a.Scroll=l,a.fn.scroll=function(b){var c=[];return this.each(function(){var d=null,e=this,f=e.getAttribute("data-scroll");if(f)d=a.data[f];else{f=++a.uuid;var g=a.extend({},b);e.classList.contains("mui-segmented-control")&&(g=a.extend(g,{scrollY:!1,scrollX:!0,indicators:!1,snap:".mui-control-item"})),a.data[f]=d=new l(e,g),e.setAttribute("data-scroll",f)}c.push(d)}),1===c.length?c[0]:c}}(mui,window,document),function(a,b,c,d){var e="mui-visibility",f="mui-hidden",g=a.Scroll.extend(a.extend({handleEvent:function(a){this._super(a),"scrollbottom"===a.type&&a.target===this.scroller&&this._scrollbottom()},_scrollbottom:function(){this.pulldown||this.loading||(this.pulldown=!1,this._initPullupRefresh(),this.pullupLoading())},_start:function(a){a.touches&&a.touches.length&&a.touches[0].clientX>30&&a.target&&!this._preventDefaultException(a.target,this.options.preventDefaultException)&&a.preventDefault(),this.loading||(this.pulldown=this.pullPocket=this.pullCaption=this.pullLoading=!1),this._super(a)},_drag:function(a){this._super(a),!this.pulldown&&!this.loading&&this.topPocket&&"down"===a.detail.direction&&this.y>=0&&this._initPulldownRefresh(),this.pulldown&&this._setCaption(this.y>this.options.down.height?this.options.down.contentover:this.options.down.contentdown)},_reLayout:function(){this.hasVerticalScroll=!0,this._super()},resetPosition:function(a){if(this.pulldown){if(this.y>=this.options.down.height)return this.pulldownLoading(d,a||0),!0;!this.loading&&this.topPocket.classList.remove(e)}return this._super(a)},pulldownLoading:function(a,b){if("undefined"==typeof a&&(a=this.options.down.height),this.scrollTo(0,a,b,this.options.bounceEasing),!this.loading){this._initPulldownRefresh(),this._setCaption(this.options.down.contentrefresh),this.loading=!0,this.indicators.map(function(a){a.fade(0)});var c=this.options.down.callback;c&&c.call(this)}},endPulldownToRefresh:function(){var a=this;a.topPocket&&a.loading&&this.pulldown&&(a.scrollTo(0,0,a.options.bounceTime,a.options.bounceEasing),a.loading=!1,a._setCaption(a.options.down.contentdown,!0),setTimeout(function(){a.loading||a.topPocket.classList.remove(e)},350))},pullupLoading:function(a,b,c){b=b||0,this.scrollTo(b,this.maxScrollY,c,this.options.bounceEasing),this.loading||(this._initPullupRefresh(),this._setCaption(this.options.up.contentrefresh),this.indicators.map(function(a){a.fade(0)}),this.loading=!0,a=a||this.options.up.callback,a&&a.call(this))},endPullupToRefresh:function(a){var b=this;b.bottomPocket&&(b.loading=!1,a?(this.finished=!0,b._setCaption(b.options.up.contentnomore),b.wrapper.removeEventListener("scrollbottom",b)):(b._setCaption(b.options.up.contentdown),b.loading||b.bottomPocket.classList.remove(e)))},disablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.className="mui-pull-bottom-pocket "+f,this.wrapper.removeEventListener("scrollbottom",this)},enablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.classList.remove(f),this._setCaption(this.options.up.contentdown),this.wrapper.addEventListener("scrollbottom",this)},refresh:function(a){a&&this.finished&&(this.enablePullupToRefresh(),this.finished=!1),this._super()}},a.PullRefresh));a.fn.pullRefresh=function(b){if(1===this.length){var c=this[0],d=null;b=b||{};var e=c.getAttribute("data-pullrefresh");return e?d=a.data[e]:(e=++a.uuid,a.data[e]=d=new g(c,b),c.setAttribute("data-pullrefresh",e)),b.down&&b.down.auto?d.pulldownLoading(b.down.autoY):b.up&&b.up.auto&&d.pullupLoading(),d}}}(mui,window,document),function(a,b){var c="mui-slider",d="mui-slider-group",e="mui-slider-loop",f="mui-action-previous",g="mui-action-next",h="mui-slider-item",i="mui-active",j="."+h,k=".mui-slider-progress-bar",l=a.Slider=a.Scroll.extend({init:function(b,c){this._super(b,a.extend(!0,{fingers:1,interval:0,scrollY:!1,scrollX:!0,indicators:!1,scrollTime:1e3,startX:!1,slideTime:0,snap:j},c)),this.options.startX},_init:function(){this._reInit(),this.scroller&&(this.scrollerStyle=this.scroller.style,this.progressBar=this.wrapper.querySelector(k),this.progressBar&&(this.progressBarWidth=this.progressBar.offsetWidth,this.progressBarStyle=this.progressBar.style),this._super(),this._initTimer())},_triggerSlide:function(){var b=this;b.isInTransition=!1;b.currentPage;b.slideNumber=b._fixedSlideNumber(),b.loop&&(0===b.slideNumber?b.setTranslate(b.pages[1][0].x,0):b.slideNumber===b.itemLength-3&&b.setTranslate(b.pages[b.itemLength-2][0].x,0)),b.lastSlideNumber!=b.slideNumber&&(b.lastSlideNumber=b.slideNumber,b.lastPage=b.currentPage,a.trigger(b.wrapper,"slide",{slideNumber:b.slideNumber})),b._initTimer()},_handleSlide:function(b){var c=this;if(b.target===c.wrapper){var d=b.detail;d.slideNumber=d.slideNumber||0;for(var e=c.scroller.querySelectorAll(j),f=[],g=0,h=e.length;h>g;g++){var k=e[g];k.parentNode===c.scroller&&f.push(k)}var l=d.slideNumber;if(c.loop&&(l+=1),!c.wrapper.classList.contains("mui-segmented-control"))for(var g=0,h=f.length;h>g;g++){var k=f[g];k.parentNode===c.scroller&&(g===l?k.classList.add(i):k.classList.remove(i))}var m=c.wrapper.querySelector(".mui-slider-indicator");if(m){m.getAttribute("data-scroll")&&a(m).scroll().gotoPage(d.slideNumber);var n=m.querySelectorAll(".mui-indicator");if(n.length>0)for(var g=0,h=n.length;h>g;g++)n[g].classList[g===d.slideNumber?"add":"remove"](i);else{var o=m.querySelector(".mui-number span");if(o)o.innerText=d.slideNumber+1;else for(var p=m.querySelectorAll(".mui-control-item"),g=0,h=p.length;h>g;g++)p[g].classList[g===d.slideNumber?"add":"remove"](i)}}b.stopPropagation()}},_handleTabShow:function(a){var b=this;b.gotoItem(a.detail.tabNumber||0,b.options.slideTime)},_handleIndicatorTap:function(a){var b=this,c=a.target;(c.classList.contains(f)||c.classList.contains(g))&&(b[c.classList.contains(f)?"prevItem":"nextItem"](),a.stopPropagation())},_initEvent:function(b){var c=this;c._super(b);var d=b?"removeEventListener":"addEventListener";c.wrapper[d]("slide",this),c.wrapper[d](a.eventName("shown","tab"),this)},handleEvent:function(b){switch(this._super(b),b.type){case"slide":this._handleSlide(b);break;case a.eventName("shown","tab"):~this.snaps.indexOf(b.target)&&this._handleTabShow(b)}},_scrollend:function(a){this._super(a),this._triggerSlide(a)},_drag:function(a){this._super(a);var c=a.detail.direction;if("left"===c||"right"===c){var d=this.wrapper.getAttribute("data-slidershowTimer");d&&b.clearTimeout(d),a.stopPropagation()}},_initTimer:function(){var a=this,c=a.wrapper,d=a.options.interval,e=c.getAttribute("data-slidershowTimer");e&&b.clearTimeout(e),d&&(e=b.setTimeout(function(){c&&((c.offsetWidth||c.offsetHeight)&&a.nextItem(!0),
    +a._initTimer())},d),c.setAttribute("data-slidershowTimer",e))},_fixedSlideNumber:function(a){a=a||this.currentPage;var b=a.pageX;return this.loop&&(b=0===a.pageX?this.itemLength-3:a.pageX===this.itemLength-1?0:a.pageX-1),b},_reLayout:function(){this.hasHorizontalScroll=!0,this.loop=this.scroller.classList.contains(e),this._super()},_getScroll:function(){var b=a.parseTranslateMatrix(a.getStyles(this.scroller,"webkitTransform"));return b?b.x:0},_transitionEnd:function(b){b.target===this.scroller&&this.isInTransition&&(this._transitionTime(),this.isInTransition=!1,a.trigger(this.wrapper,"scrollend",this))},_flick:function(a){if(this.moved){var b=a.detail,c=b.direction;this._clearRequestAnimationFrame(),this.isInTransition=!0,"flick"===a.type?(b.deltaTime<200&&(this.x=this._getPage(this.slideNumber+("right"===c?-1:1),!0).x),this.resetPosition(this.options.bounceTime)):"dragend"!==a.type||b.flick||this.resetPosition(this.options.bounceTime),a.stopPropagation()}},_initSnap:function(){if(this.scrollerWidth=this.itemLength*this.scrollerWidth,this.maxScrollX=Math.min(this.wrapperWidth-this.scrollerWidth,0),this._super(),this.currentPage.x)this.slideNumber=this._fixedSlideNumber(),this.lastSlideNumber="undefined"==typeof this.lastSlideNumber?this.slideNumber:this.lastSlideNumber;else{var a=this.pages[this.loop?1:0];if(a=a||this.pages[0],!a)return;this.currentPage=a[0],this.slideNumber=0,this.lastSlideNumber="undefined"==typeof this.lastSlideNumber?0:this.lastSlideNumber}this.options.startX=this.currentPage.x||0},_getSnapX:function(a){return Math.max(-a,this.maxScrollX)},_getPage:function(a,b){return this.loop?a>this.itemLength-(b?2:3)?(a=1,time=0):(b?-1:0)>a?(a=this.itemLength-2,time=0):a+=1:(b||(a>this.itemLength-1?(a=0,time=0):0>a&&(a=this.itemLength-1,time=0)),a=Math.min(Math.max(0,a),this.itemLength-1)),this.pages[a][0]},_gotoItem:function(b,c){this.currentPage=this._getPage(b,!0),this.scrollTo(this.currentPage.x,0,c,this.options.scrollEasing),0===c&&a.trigger(this.wrapper,"scrollend",this)},setTranslate:function(a,b){this._super(a,b);var c=this.progressBar;c&&(this.progressBarStyle.webkitTransform=this._getTranslateStr(-a*(this.progressBarWidth/this.wrapperWidth),0))},resetPosition:function(a){return a=a||0,this.x>0?this.x=0:this.x<this.maxScrollX&&(this.x=this.maxScrollX),this.currentPage=this._nearestSnap(this.x),this.scrollTo(this.currentPage.x,0,a,this.options.scrollEasing),!0},gotoItem:function(a,b){this._gotoItem(a,"undefined"==typeof b?this.options.scrollTime:b)},nextItem:function(){this._gotoItem(this.slideNumber+1,this.options.scrollTime)},prevItem:function(){this._gotoItem(this.slideNumber-1,this.options.scrollTime)},getSlideNumber:function(){return this.slideNumber||0},_reInit:function(){for(var a=this.wrapper.querySelectorAll("."+d),b=0,c=a.length;c>b;b++)if(a[b].parentNode===this.wrapper){this.scroller=a[b];break}this.scrollerStyle=this.scroller&&this.scroller.style,this.progressBar&&(this.progressBarWidth=this.progressBar.offsetWidth,this.progressBarStyle=this.progressBar.style)},refresh:function(b){b?(a.extend(this.options,b),this._super(),this._initTimer()):this._super()},destroy:function(){this._initEvent(!0),delete a.data[this.wrapper.getAttribute("data-slider")],this.wrapper.setAttribute("data-slider","")}});a.fn.slider=function(b){var d=null;return this.each(function(){var e=this;if(this.classList.contains(c)||(e=this.querySelector("."+c)),e&&e.querySelector(j)){var f=e.getAttribute("data-slider");f?(d=a.data[f],d&&b&&d.refresh(b)):(f=++a.uuid,a.data[f]=d=new l(e,b),e.setAttribute("data-slider",f))}}),d},a.ready(function(){a(".mui-slider").slider(),a(".mui-scroll-wrapper.mui-slider-indicator.mui-segmented-control").scroll({scrollY:!1,scrollX:!0,indicators:!1,snap:".mui-control-item"})})}(mui,window),function(a,b){a.os.plus&&a.os.android&&a.plusReady(function(){if(window.__NWin_Enable__!==!1){var c="mui-plus-pullrefresh",d="mui-visibility",e="mui-hidden",f="mui-block",g="mui-pull-caption",h="mui-pull-caption-down",i="mui-pull-caption-refresh",j="mui-pull-caption-nomore",k=a.Class.extend({init:function(a,b){this.element=a,this.options=b,this.wrapper=this.scroller=a,this._init(),this._initPulldownRefreshEvent()},_init:function(){var a=this;window.addEventListener("dragup",a),b.addEventListener("plusscrollbottom",a),a.scrollInterval=window.setInterval(function(){a.isScroll&&!a.loading&&window.pageYOffset+window.innerHeight+10>=b.documentElement.scrollHeight&&(a.isScroll=!1,a.bottomPocket&&a.pullupLoading())},100)},_initPulldownRefreshEvent:function(){var b=this;b.topPocket&&b.options.webviewId&&a.plusReady(function(){var a=plus.webview.getWebviewById(b.options.webviewId);if(a){b.options.webview=a;var c=b.options.down,d=c.height;a.addEventListener("close",function(){var a=b.options.webviewId&&b.options.webviewId.replace(/\//g,"_");b.element.removeAttribute("data-pullrefresh-plus-"+a)}),a.addEventListener("dragBounce",function(d){switch(b.pulldown?b.pullPocket.classList.add(f):b._initPulldownRefresh(),d.status){case"beforeChangeOffset":b._setCaption(c.contentdown);break;case"afterChangeOffset":b._setCaption(c.contentover);break;case"dragEndAfterChangeOffset":a.evalJS("mui&&mui.options.pullRefresh.down.callback()"),b._setCaption(c.contentrefresh)}},!1),a.setBounce({position:{top:2*d+"px"},changeoffset:{top:d+"px"}})}})},handleEvent:function(a){var b=this;b.stopped||(b.isScroll=!1,("dragup"===a.type||"plusscrollbottom"===a.type)&&(b.isScroll=!0,setTimeout(function(){b.isScroll=!1},1e3)))}}).extend(a.extend({setStopped:function(a){this.stopped=!!a;var b=plus.webview.currentWebview();if(this.stopped)b.setStyle({bounce:"none"}),b.setBounce({position:{top:"none"}});else{var c=this.options.down.height;b.setStyle({bounce:"vertical"}),b.setBounce({position:{top:2*c+"px"},changeoffset:{top:c+"px"}})}},pulldownLoading:function(){a.plusReady(function(){plus.webview.currentWebview().setBounce({offset:{top:this.options.down.height+"px"}})}.bind(this))},_pulldownLoading:function(){var b=this;a.plusReady(function(){var a=plus.webview.getWebviewById(b.options.webviewId);a.setBounce({offset:{top:b.options.down.height+"px"}})})},endPulldownToRefresh:function(){var a=plus.webview.currentWebview();a.parent().evalJS("mui&&mui(document.querySelector('.mui-content')).pullRefresh('"+JSON.stringify({webviewId:a.id})+"')._endPulldownToRefresh()")},_endPulldownToRefresh:function(){var a=this;a.topPocket&&a.options.webview&&(a.options.webview.endPullToRefresh(),a.loading=!1,a._setCaption(a.options.down.contentdown,!0),setTimeout(function(){a.loading||a.topPocket.classList.remove(f)},350))},pullupLoading:function(a){var b=this;b.isLoading||(b.isLoading=!0,b.pulldown!==!1?b._initPullupRefresh():this.pullPocket.classList.add(f),setTimeout(function(){b.pullLoading.classList.add(d),b.pullLoading.classList.remove(e),b.pullCaption.innerHTML="",b.pullCaption.className=g+" "+i,b.pullCaption.innerHTML=b.options.up.contentrefresh,a=a||b.options.up.callback,a&&a.call(b)},300))},endPullupToRefresh:function(a){var c=this;c.pullLoading&&(c.pullLoading.classList.remove(d),c.pullLoading.classList.add(e),c.isLoading=!1,a?(c.finished=!0,c.pullCaption.className=g+" "+j,c.pullCaption.innerHTML=c.options.up.contentnomore,b.removeEventListener("plusscrollbottom",c),window.removeEventListener("dragup",c)):(c.pullCaption.className=g+" "+h,c.pullCaption.innerHTML=c.options.up.contentdown))},disablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.className="mui-pull-bottom-pocket "+e,window.removeEventListener("dragup",this)},enablePullupToRefresh:function(){this._initPullupRefresh(),this.bottomPocket.classList.remove(e),this.pullCaption.className=g+" "+h,this.pullCaption.innerHTML=this.options.up.contentdown,b.addEventListener("plusscrollbottom",this),window.addEventListener("dragup",this)},scrollTo:function(b,c,d){a.scrollTo(c,d)},scrollToBottom:function(c){a.scrollTo(b.documentElement.scrollHeight,c)},refresh:function(a){a&&this.finished&&(this.enablePullupToRefresh(),this.finished=!1)}},a.PullRefresh));a.fn.pullRefresh=function(d){var e;0===this.length?(e=b.createElement("div"),e.className="mui-content",b.body.appendChild(e)):e=this[0];var f=d;d=d||{},"string"==typeof d&&(d=a.parseJSON(d)),!d.webviewId&&(d.webviewId=plus.webview.currentWebview().id||plus.webview.currentWebview().getURL());var g=null,h=d.webviewId&&d.webviewId.replace(/\//g,"_"),i=e.getAttribute("data-pullrefresh-plus-"+h);return i||"undefined"!=typeof f?(i?g=a.data[i]:(i=++a.uuid,e.setAttribute("data-pullrefresh-plus-"+h,i),b.body.classList.add(c),a.data[i]=g=new k(e,d)),d.down&&d.down.auto?g._pulldownLoading():d.up&&d.up.auto&&g.pullupLoading(),g):!1}}})}(mui,document),function(a,b,c,d){var e="mui-off-canvas-left",f="mui-off-canvas-right",g="mui-off-canvas-backdrop",h="mui-off-canvas-wrap",i="mui-slide-in",j="mui-active",k="mui-transitioning",l=".mui-inner-wrap",m=a.Class.extend({init:function(b,d){this.wrapper=this.element=b,this.scroller=this.wrapper.querySelector(l),this.classList=this.wrapper.classList,this.scroller&&(this.options=a.extend(!0,{dragThresholdX:10,scale:.8,opacity:.1,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/}},d),c.body.classList.add("mui-fullscreen"),this.refresh(),this.initEvent())},_preventDefaultException:function(a,b){for(var c in b)if(b[c].test(a[c]))return!0;return!1},refresh:function(a){this.slideIn=this.classList.contains(i),this.scalable=this.classList.contains("mui-scalable")&&!this.slideIn,this.scroller=this.wrapper.querySelector(l),this.offCanvasLefts=this.wrapper.querySelectorAll("."+e),this.offCanvasRights=this.wrapper.querySelectorAll("."+f),a?a.classList.contains(e)?this.offCanvasLeft=a:a.classList.contains(f)&&(this.offCanvasRight=a):(this.offCanvasRight=this.wrapper.querySelector("."+f),this.offCanvasLeft=this.wrapper.querySelector("."+e)),this.offCanvasRightWidth=this.offCanvasLeftWidth=0,this.offCanvasLeftSlideIn=this.offCanvasRightSlideIn=!1,this.offCanvasRight&&(this.offCanvasRightWidth=this.offCanvasRight.offsetWidth,this.offCanvasRightSlideIn=this.slideIn&&this.offCanvasRight.parentNode===this.wrapper),this.offCanvasLeft&&(this.offCanvasLeftWidth=this.offCanvasLeft.offsetWidth,this.offCanvasLeftSlideIn=this.slideIn&&this.offCanvasLeft.parentNode===this.wrapper),this.backdrop=this.scroller.querySelector("."+g),this.options.dragThresholdX=this.options.dragThresholdX||10,this.visible=!1,this.startX=null,this.lastX=null,this.offsetX=null,this.lastTranslateX=null},handleEvent:function(b){switch(b.type){case a.EVENT_START:b.target&&!this._preventDefaultException(b.target,this.options.preventDefaultException)&&b.preventDefault();break;case"webkitTransitionEnd":b.target===this.scroller&&this._dispatchEvent();break;case"drag":var c=b.detail;this.startX?this.lastX=c.center.x:(this.startX=c.center.x,this.lastX=this.startX),!this.isDragging&&Math.abs(this.lastX-this.startX)>this.options.dragThresholdX&&("left"===c.direction||"right"===c.direction)&&(this.slideIn?(this.scroller=this.wrapper.querySelector(l),this.classList.contains(j)?this.offCanvasRight&&this.offCanvasRight.classList.contains(j)?(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):"left"===c.direction&&this.offCanvasRight?(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):"right"===c.direction&&this.offCanvasLeft?(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):this.scroller=null):this.classList.contains(j)?"left"===c.direction?(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):"right"===c.direction?(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth):(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth),this.offCanvas&&this.scroller&&(this.startX=this.lastX,this.isDragging=!0,a.gestures.session.lockDirection=!0,a.gestures.session.startDirection=c.direction,this.offCanvas.classList.remove(k),this.scroller.classList.remove(k),this.offsetX=this.getTranslateX(),this._initOffCanvasVisible())),this.isDragging&&(this.updateTranslate(this.offsetX+(this.lastX-this.startX)),c.gesture.preventDefault(),b.stopPropagation());break;case"dragend":if(this.isDragging){var c=b.detail,d=c.direction;this.isDragging=!1,this.offCanvas.classList.add(k),this.scroller.classList.add(k);var e=0,f=this.getTranslateX();if(this.slideIn){if(e=f>=0?this.offCanvasRightWidth&&f/this.offCanvasRightWidth||0:this.offCanvasLeftWidth&&f/this.offCanvasLeftWidth||0,"right"===d&&0>=e&&(e>=-.5||c.swipe)?this.openPercentage(100):"right"===d&&e>0&&(e>=.5||c.swipe)?this.openPercentage(0):"right"===d&&-.5>=e?this.openPercentage(0):"right"===d&&e>0&&.5>=e?this.openPercentage(-100):"left"===d&&e>=0&&(.5>=e||c.swipe)?this.openPercentage(-100):"left"===d&&0>e&&(-.5>=e||c.swipe)?this.openPercentage(0):"left"===d&&e>=.5?this.openPercentage(0):"left"===d&&e>=-.5&&0>e?this.openPercentage(100):this.openPercentage(0),1===e||-1===e||0===e)return void this._dispatchEvent()}else{if(e=f>=0?this.offCanvasLeftWidth&&f/this.offCanvasLeftWidth||0:this.offCanvasRightWidth&&f/this.offCanvasRightWidth||0,0===e)return this.openPercentage(0),void this._dispatchEvent();"right"===d&&e>=0&&(e>=.5||c.swipe)?this.openPercentage(100):"right"===d&&0>e&&(e>-.5||c.swipe)?this.openPercentage(0):"right"===d&&e>0&&.5>e?this.openPercentage(0):"right"===d&&.5>e?this.openPercentage(-100):"left"===d&&0>=e&&(-.5>=e||c.swipe)?this.openPercentage(-100):"left"===d&&e>0&&(.5>=e||c.swipe)?this.openPercentage(0):"left"===d&&0>e&&e>=-.5?this.openPercentage(0):"left"===d&&e>.5?this.openPercentage(100):this.openPercentage(0),(1===e||-1===e)&&this._dispatchEvent()}}}},_dispatchEvent:function(){this.classList.contains(j)?a.trigger(this.wrapper,"shown",this):a.trigger(this.wrapper,"hidden",this)},_initOffCanvasVisible:function(){this.visible||(this.visible=!0,this.offCanvasLeft&&(this.offCanvasLeft.style.visibility="visible"),this.offCanvasRight&&(this.offCanvasRight.style.visibility="visible"))},initEvent:function(){var b=this;b.backdrop&&b.backdrop.addEventListener("tap",function(a){b.close(),a.detail.gesture.preventDefault()}),this.classList.contains("mui-draggable")&&(this.wrapper.addEventListener(a.EVENT_START,this),this.wrapper.addEventListener("drag",this),this.wrapper.addEventListener("dragend",this)),this.wrapper.addEventListener("webkitTransitionEnd",this)},openPercentage:function(a){var b=a/100;this.slideIn?(this.offCanvasLeft&&a>=0?(b=0===b?-1:0,this.updateTranslate(this.offCanvasLeftWidth*b),this.offCanvasLeft.classList[0!==a?"add":"remove"](j)):this.offCanvasRight&&0>=a&&(b=0===b?1:0,this.updateTranslate(this.offCanvasRightWidth*b),this.offCanvasRight.classList[0!==a?"add":"remove"](j)),this.classList[0!==a?"add":"remove"](j)):(this.offCanvasLeft&&a>=0?(this.updateTranslate(this.offCanvasLeftWidth*b),this.offCanvasLeft.classList[0!==b?"add":"remove"](j)):this.offCanvasRight&&0>=a&&(this.updateTranslate(this.offCanvasRightWidth*b),this.offCanvasRight.classList[0!==b?"add":"remove"](j)),this.classList[0!==b?"add":"remove"](j))},updateTranslate:function(b){if(b!==this.lastTranslateX){if(this.slideIn){if(this.offCanvas.classList.contains(f)){if(0>b)return void this.setTranslateX(0);if(b>this.offCanvasRightWidth)return void this.setTranslateX(this.offCanvasRightWidth)}else{if(b>0)return void this.setTranslateX(0);if(b<-this.offCanvasLeftWidth)return void this.setTranslateX(-this.offCanvasLeftWidth)}this.setTranslateX(b)}else{if(!this.offCanvasLeft&&b>0||!this.offCanvasRight&&0>b)return void this.setTranslateX(0);if(this.leftShowing&&b>this.offCanvasLeftWidth)return void this.setTranslateX(this.offCanvasLeftWidth);if(this.rightShowing&&b<-this.offCanvasRightWidth)return void this.setTranslateX(-this.offCanvasRightWidth);this.setTranslateX(b),b>=0?(this.leftShowing=!0,this.rightShowing=!1,b>0&&(this.offCanvasLeft&&a.each(this.offCanvasLefts,function(a,b){b===this.offCanvasLeft?this.offCanvasLeft.style.zIndex=0:b.style.zIndex=-1}.bind(this)),this.offCanvasRight&&(this.offCanvasRight.style.zIndex=-1))):(this.rightShowing=!0,this.leftShowing=!1,this.offCanvasRight&&a.each(this.offCanvasRights,function(a,b){b===this.offCanvasRight?b.style.zIndex=0:b.style.zIndex=-1}.bind(this)),this.offCanvasLeft&&(this.offCanvasLeft.style.zIndex=-1))}this.lastTranslateX=b}},setTranslateX:a.animationFrame(function(a){if(this.scroller)if(this.scalable&&this.offCanvas.parentNode===this.wrapper){var b=Math.abs(a)/this.offCanvasWidth,c=1-(1-this.options.scale)*b,d=this.options.scale+(1-this.options.scale)*b,f=(1-(1-this.options.opacity)*b,this.options.opacity+(1-this.options.opacity)*b);this.offCanvas.classList.contains(e)?(this.offCanvas.style.webkitTransformOrigin="-100%",this.scroller.style.webkitTransformOrigin="left"):(this.offCanvas.style.webkitTransformOrigin="200%",this.scroller.style.webkitTransformOrigin="right"),this.offCanvas.style.opacity=f,this.offCanvas.style.webkitTransform="translate3d(0,0,0) scale("+d+")",this.scroller.style.webkitTransform="translate3d("+a+"px,0,0) scale("+c+")"}else this.slideIn?this.offCanvas.style.webkitTransform="translate3d("+a+"px,0,0)":this.scroller.style.webkitTransform="translate3d("+a+"px,0,0)"}),getTranslateX:function(){if(this.offCanvas){var b=this.slideIn?this.offCanvas:this.scroller,c=a.parseTranslateMatrix(a.getStyles(b,"webkitTransform"));return c&&c.x||0}return 0},isShown:function(a){var b=!1;if(this.slideIn)b="left"===a?this.classList.contains(j)&&this.wrapper.querySelector("."+e+"."+j):"right"===a?this.classList.contains(j)&&this.wrapper.querySelector("."+f+"."+j):this.classList.contains(j)&&(this.wrapper.querySelector("."+e+"."+j)||this.wrapper.querySelector("."+f+"."+j));else{var c=this.getTranslateX();b="right"===a?this.classList.contains(j)&&0>c:"left"===a?this.classList.contains(j)&&c>0:this.classList.contains(j)&&0!==c}return b},close:function(){this._initOffCanvasVisible(),this.offCanvas=this.wrapper.querySelector("."+f+"."+j)||this.wrapper.querySelector("."+e+"."+j),this.offCanvasWidth=this.offCanvas.offsetWidth,this.scroller&&(this.offCanvas.offsetHeight,this.offCanvas.classList.add(k),this.scroller.classList.add(k),this.openPercentage(0))},show:function(a){return this._initOffCanvasVisible(),this.isShown(a)?!1:(a||(a=this.wrapper.querySelector("."+f)?"right":"left"),"right"===a?(this.offCanvas=this.offCanvasRight,this.offCanvasWidth=this.offCanvasRightWidth):(this.offCanvas=this.offCanvasLeft,this.offCanvasWidth=this.offCanvasLeftWidth),this.scroller&&(this.offCanvas.offsetHeight,this.offCanvas.classList.add(k),this.scroller.classList.add(k),this.openPercentage("left"===a?100:-100)),!0)},toggle:function(a){var b=a;a&&a.classList&&(b=a.classList.contains(e)?"left":"right",this.refresh(a)),this.show(b)||this.close()}}),n=function(a){if(parentNode=a.parentNode,parentNode){if(parentNode.classList.contains(h))return parentNode;if(parentNode=parentNode.parentNode,parentNode.classList.contains(h))return parentNode}},o=function(b,d){if("A"===d.tagName&&d.hash){var e=c.getElementById(d.hash.replace("#",""));if(e){var f=n(e);if(f)return a.targets._container=f,e}}return!1};a.registerTarget({name:d,index:60,handle:o,target:!1,isReset:!1,isContinue:!0}),b.addEventListener("tap",function(b){if(a.targets.offcanvas)for(var d=b.target;d&&d!==c;d=d.parentNode)if("A"===d.tagName&&d.hash&&d.hash==="#"+a.targets.offcanvas.id){b.detail&&b.detail.gesture&&b.detail.gesture.preventDefault(),a(a.targets._container).offCanvas().toggle(a.targets.offcanvas),a.targets.offcanvas=a.targets._container=null;break}}),a.fn.offCanvas=function(b){var c=[];return this.each(function(){var d=null,e=this;e.classList.contains(h)||(e=n(e));var f=e.getAttribute("data-offCanvas");f?d=a.data[f]:(f=++a.uuid,a.data[f]=d=new m(e,b),e.setAttribute("data-offCanvas",f)),("show"===b||"close"===b||"toggle"===b)&&d.toggle(),c.push(d)}),1===c.length?c[0]:c},a.ready(function(){a(".mui-off-canvas-wrap").offCanvas()})}(mui,window,document,"offcanvas"),function(a,b){var c="mui-action",d=function(a,b){var d=b.className||"";return"string"!=typeof d&&(d=""),d&&~d.indexOf(c)?(b.classList.contains("mui-action-back")&&a.preventDefault(),b):!1};a.registerTarget({name:b,index:50,handle:d,target:!1,isContinue:!0})}(mui,"action"),function(a,b,c,d){var e="mui-modal",f=function(a,b){if("A"===b.tagName&&b.hash){var d=c.getElementById(b.hash.replace("#",""));if(d&&d.classList.contains(e))return d}return!1};a.registerTarget({name:d,index:50,handle:f,target:!1,isReset:!1,isContinue:!0}),b.addEventListener("tap",function(b){a.targets.modal&&(b.detail.gesture.preventDefault(),a.targets.modal.classList.toggle("mui-active"))})}(mui,window,document,"modal"),function(a,b,c,d){var e="mui-popover",f="mui-popover-arrow",g="mui-popover-action",h="mui-backdrop",i="mui-bar-popover",j="mui-bar-backdrop",k="mui-backdrop-action",l="mui-active",m="mui-bottom",n=function(b,d){if("A"===d.tagName&&d.hash){if(a.targets._popover=c.getElementById(d.hash.replace("#","")),a.targets._popover&&a.targets._popover.classList.contains(e))return d;a.targets._popover=null}return!1};a.registerTarget({name:d,index:60,handle:n,target:!1,isReset:!1,isContinue:!0});var o,p=function(a){},q=function(b){this.removeEventListener("webkitTransitionEnd",q),this.addEventListener(a.EVENT_MOVE,a.preventDefault),a.trigger(this,"shown",this)},r=function(b){v(this,"none"),this.removeEventListener("webkitTransitionEnd",r),this.removeEventListener(a.EVENT_MOVE,a.preventDefault),p(!1),a.trigger(this,"hidden",this)},s=function(){var b=c.createElement("div");return b.classList.add(h),b.addEventListener(a.EVENT_MOVE,a.preventDefault),b.addEventListener("tap",function(b){var d=a.targets._popover;d&&(d.addEventListener("webkitTransitionEnd",r),d.classList.remove(l),t(d),c.body.setAttribute("style",""))}),b}(),t=function(b){s.setAttribute("style","opacity:0"),a.targets.popover=a.targets._popover=null,o=a.later(function(){!b.classList.contains(l)&&s.parentNode&&s.parentNode===c.body&&c.body.removeChild(s)},350)};b.addEventListener("tap",function(b){if(a.targets.popover){for(var d=!1,e=b.target;e&&e!==c;e=e.parentNode)e===a.targets.popover&&(d=!0);d&&(b.detail.gesture.preventDefault(),u(a.targets._popover,a.targets.popover))}});var u=function(a,b,d){if(!("show"===d&&a.classList.contains(l)||"hide"===d&&!a.classList.contains(l))){o&&o.cancel(),a.removeEventListener("webkitTransitionEnd",q),a.removeEventListener("webkitTransitionEnd",r),s.classList.remove(j),s.classList.remove(k);var e=c.querySelector(".mui-popover.mui-active");if(e&&(e.addEventListener("webkitTransitionEnd",r),e.classList.remove(l),a===e))return void t(e);var f=!1;(a.classList.contains(i)||a.classList.contains(g))&&(a.classList.contains(g)?(f=!0,s.classList.add(k)):s.classList.add(j)),v(a,"block"),a.offsetHeight,a.classList.add(l),s.setAttribute("style",""),c.body.appendChild(s),p(!0),w(a,b,f),s.classList.add(l),a.addEventListener("webkitTransitionEnd",q)}},v=function(a,b,c,d){var e=a.style;"undefined"!=typeof b&&(e.display=b),"undefined"!=typeof c&&(e.top=c+"px"),"undefined"!=typeof d&&(e.left=d+"px")},w=function(d,e,h){if(d&&e){if(h)return void v(d,"block");var i=b.innerWidth,j=b.innerHeight,k=d.offsetWidth,l=d.offsetHeight,n=e.offsetWidth,o=e.offsetHeight,p=a.offset(e),q=d.querySelector("."+f);q||(q=c.createElement("div"),q.className=f,d.appendChild(q));var r=q&&q.offsetWidth/2||0,s=0,t=0,u=0,w=0,x=d.classList.contains(g)?0:5,y="top";l+r<p.top-b.pageYOffset?s=p.top-l-r:l+r<j-(p.top-b.pageYOffset)-o?(y="bottom",s=p.top+o+r):(y="middle",s=Math.max((j-l)/2+b.pageYOffset,0),t=Math.max((i-k)/2+b.pageXOffset,0)),"top"===y||"bottom"===y?(t=n/2+p.left-k/2,u=t,x>t&&(t=x),t+k>i&&(t=i-k-x),q&&("top"===y?q.classList.add(m):q.classList.remove(m),u-=t,w=k/2-r/2+u,w=Math.max(Math.min(w,k-2*r-6),6),q.setAttribute("style","left:"+w+"px"))):"middle"===y&&q.setAttribute("style","display:none"),v(d,"block",s,t)}};a.createMask=function(b){var d=c.createElement("div");d.classList.add(h),d.addEventListener(a.EVENT_MOVE,a.preventDefault),d.addEventListener("tap",function(){e.close()});var e=[d];return e._show=!1,e.show=function(){return e._show=!0,d.setAttribute("style","opacity:1"),c.body.appendChild(d),e},e._remove=function(){return e._show&&(e._show=!1,d.setAttribute("style","opacity:0"),a.later(function(){var a=c.body;d.parentNode===a&&a.removeChild(d)},350)),e},e.close=function(){b?b()!==!1&&e._remove():e._remove()},e},a.fn.popover=function(){var b=arguments;this.each(function(){a.targets._popover=this,("show"===b[0]||"hide"===b[0]||"toggle"===b[0])&&u(this,b[1],b[0])})}}(mui,window,document,"popover"),function(a,b,c,d,e){var f="mui-control-item",g="mui-segmented-control",h="mui-segmented-control-vertical",i="mui-control-content",j="mui-bar-tab",k="mui-tab-item",l=function(a,b){return b.classList&&(b.classList.contains(f)||b.classList.contains(k))?(b.parentNode&&b.parentNode.classList&&b.parentNode.classList.contains(h)||a.preventDefault(),b):!1};a.registerTarget({name:d,index:80,handle:l,target:!1}),b.addEventListener("tap",function(b){var e=a.targets.tab;if(e){for(var h,l,m,n="mui-active",o="."+n,p=e.parentNode;p&&p!==c;p=p.parentNode){if(p.classList.contains(g)){h=p.querySelector(o+"."+f);break}p.classList.contains(j)&&(h=p.querySelector(o+"."+k))}h&&h.classList.remove(n);var q=e===h;if(e&&e.classList.add(n),e.hash&&(m=c.getElementById(e.hash.replace("#","")))){if(!m.classList.contains(i))return void e.classList[q?"remove":"add"](n);if(!q){var r=m.parentNode;l=r.querySelectorAll("."+i+o);for(var s=0;s<l.length;s++){var t=l[s];t.parentNode===r&&t.classList.remove(n)}m.classList.add(n);for(var u=[],v=r.querySelectorAll("."+i),s=0;s<v.length;s++)v[s].parentNode===r&&u.push(v[s]);a.trigger(m,a.eventName("shown",d),{tabNumber:Array.prototype.indexOf.call(u,m)}),b.detail&&b.detail.gesture.preventDefault()}}}})}(mui,window,document,"tab"),function(a,b,c){var d="mui-switch",e="mui-switch-handle",f="mui-active",g="mui-dragging",h="mui-disabled",i="."+e,j=function(a,b){return b.classList&&b.classList.contains(d)?b:!1};a.registerTarget({name:c,index:100,handle:j,target:!1});var k=function(a){this.element=a,this.classList=this.element.classList,this.handle=this.element.querySelector(i),this.init(),this.initEvent()};k.prototype.init=function(){this.toggleWidth=this.element.offsetWidth,this.handleWidth=this.handle.offsetWidth,this.handleX=this.toggleWidth-this.handleWidth-3},k.prototype.initEvent=function(){this.element.addEventListener(a.EVENT_START,this),this.element.addEventListener("drag",this),this.element.addEventListener("swiperight",this),this.element.addEventListener(a.EVENT_END,this),this.element.addEventListener(a.EVENT_CANCEL,this)},k.prototype.handleEvent=function(b){if(!this.classList.contains(h))switch(b.type){case a.EVENT_START:this.start(b);break;case"drag":this.drag(b);break;case"swiperight":this.swiperight();break;case a.EVENT_END:case a.EVENT_CANCEL:this.end(b)}},k.prototype.start=function(a){this.handle.style.webkitTransitionDuration=this.element.style.webkitTransitionDuration=".2s",this.classList.add(g),(0===this.toggleWidth||0===this.handleWidth)&&this.init()},k.prototype.drag=function(a){var b=a.detail;this.isDragging||("left"===b.direction||"right"===b.direction)&&(this.isDragging=!0,this.lastChanged=void 0,this.initialState=this.classList.contains(f)),this.isDragging&&(this.setTranslateX(b.deltaX),a.stopPropagation(),b.gesture.preventDefault())},k.prototype.swiperight=function(a){this.isDragging&&a.stopPropagation()},k.prototype.end=function(b){this.classList.remove(g),this.isDragging?(this.isDragging=!1,b.stopPropagation(),a.trigger(this.element,"toggle",{isActive:this.classList.contains(f)})):this.toggle()},k.prototype.toggle=function(b){var c=this.classList;b===!1?this.handle.style.webkitTransitionDuration=this.element.style.webkitTransitionDuration="0s":this.handle.style.webkitTransitionDuration=this.element.style.webkitTransitionDuration=".2s",c.contains(f)?(c.remove(f),this.handle.style.webkitTransform="translate(0,0)"):(c.add(f),this.handle.style.webkitTransform="translate("+this.handleX+"px,0)"),a.trigger(this.element,"toggle",{isActive:this.classList.contains(f)})},k.prototype.setTranslateX=a.animationFrame(function(a){if(this.isDragging){var b=!1;(this.initialState&&-a>this.handleX/2||!this.initialState&&a>this.handleX/2)&&(b=!0),this.lastChanged!==b&&(b?(this.handle.style.webkitTransform="translate("+(this.initialState?0:this.handleX)+"px,0)",this.classList[this.initialState?"remove":"add"](f)):(this.handle.style.webkitTransform="translate("+(this.initialState?this.handleX:0)+"px,0)",this.classList[this.initialState?"add":"remove"](f)),this.lastChanged=b)}}),a.fn["switch"]=function(b){var c=[];return this.each(function(){var b=null,d=this.getAttribute("data-switch");d?b=a.data[d]:(d=++a.uuid,a.data[d]=new k(this),this.setAttribute("data-switch",d)),c.push(b)}),c.length>1?c:c[0]},a.ready(function(){a("."+d)["switch"]()})}(mui,window,"toggle"),function(a,b,c){function d(a,b){var c=b?"removeEventListener":"addEventListener";a[c]("drag",F),a[c]("dragend",F),a[c]("swiperight",F),a[c]("swipeleft",F),a[c]("flick",F)}var e,f,g="mui-active",h="mui-selected",i="mui-grid-view",j="mui-table-view-radio",k="mui-table-view-cell",l="mui-collapse-content",m="mui-disabled",n="mui-switch",o="mui-btn",p="mui-slider-handle",q="mui-slider-left",r="mui-slider-right",s="mui-transitioning",t="."+p,u="."+q,v="."+r,w="."+h,x="."+o,y=.8,z=isOpened=openedActions=progress=!1,A=sliderActionLeft=sliderActionRight=buttonsLeft=buttonsRight=sliderDirection=sliderRequestAnimationFrame=!1,B=translateX=lastTranslateX=sliderActionLeftWidth=sliderActionRightWidth=0,C=function(a){a?f?f.classList.add(g):e&&e.classList.add(g):(B&&B.cancel(),f?f.classList.remove(g):e&&e.classList.remove(g))},D=function(){if(translateX!==lastTranslateX){if(buttonsRight&&buttonsRight.length>0){progress=translateX/sliderActionRightWidth,translateX<-sliderActionRightWidth&&(translateX=-sliderActionRightWidth-Math.pow(-translateX-sliderActionRightWidth,y));for(var a=0,b=buttonsRight.length;b>a;a++){var c=buttonsRight[a];"undefined"==typeof c._buttonOffset&&(c._buttonOffset=c.offsetLeft),buttonOffset=c._buttonOffset,E(c,translateX-buttonOffset*(1+Math.max(progress,-1)))}}if(buttonsLeft&&buttonsLeft.length>0){progress=translateX/sliderActionLeftWidth,translateX>sliderActionLeftWidth&&(translateX=sliderActionLeftWidth+Math.pow(translateX-sliderActionLeftWidth,y));for(var a=0,b=buttonsLeft.length;b>a;a++){var d=buttonsLeft[a];"undefined"==typeof d._buttonOffset&&(d._buttonOffset=sliderActionLeftWidth-d.offsetLeft-d.offsetWidth),buttonOffset=d._buttonOffset,buttonsLeft.length>1&&(d.style.zIndex=buttonsLeft.length-a),E(d,translateX+buttonOffset*(1-Math.min(progress,1)))}}E(A,translateX),lastTranslateX=translateX}sliderRequestAnimationFrame=requestAnimationFrame(function(){D()})},E=function(a,b){a&&(a.style.webkitTransform="translate("+b+"px,0)")};b.addEventListener(a.EVENT_START,function(b){e&&C(!1),e=f=!1,z=isOpened=openedActions=!1;for(var g=b.target,h=!1;g&&g!==c;g=g.parentNode)if(g.classList){var p=g.classList;if(("INPUT"===g.tagName&&"radio"!==g.type&&"checkbox"!==g.type||"BUTTON"===g.tagName||p.contains(n)||p.contains(o)||p.contains(m))&&(h=!0),p.contains(l))break;if(p.contains(k)){e=g;var q=e.parentNode.querySelector(w);if(!e.parentNode.classList.contains(j)&&q&&q!==e)return a.swipeoutClose(q),void(e=h=!1);if(!e.parentNode.classList.contains(i)){var r=e.querySelector("a");r&&r.parentNode===e&&(f=r)}var s=e.querySelector(t);s&&(d(e),b.stopPropagation()),h||(s?(B&&B.cancel(),B=a.later(function(){C(!0)},100)):C(!0));break}}}),b.addEventListener(a.EVENT_MOVE,function(a){C(!1)});var F={handleEvent:function(a){switch(a.type){case"drag":this.drag(a);break;case"dragend":this.dragend(a);break;case"flick":this.flick(a);break;case"swiperight":this.swiperight(a);
    +break;case"swipeleft":this.swipeleft(a)}},drag:function(a){if(e){z||(A=sliderActionLeft=sliderActionRight=buttonsLeft=buttonsRight=sliderDirection=sliderRequestAnimationFrame=!1,A=e.querySelector(t),A&&(sliderActionLeft=e.querySelector(u),sliderActionRight=e.querySelector(v),sliderActionLeft&&(sliderActionLeftWidth=sliderActionLeft.offsetWidth,buttonsLeft=sliderActionLeft.querySelectorAll(x)),sliderActionRight&&(sliderActionRightWidth=sliderActionRight.offsetWidth,buttonsRight=sliderActionRight.querySelectorAll(x)),e.classList.remove(s),isOpened=e.classList.contains(h),isOpened&&(openedActions=e.querySelector(u+w)?"left":"right")));var b=a.detail,c=b.direction,d=b.angle;if("left"===c&&(d>150||-150>d)?(buttonsRight||buttonsLeft&&isOpened)&&(z=!0):"right"===c&&d>-30&&30>d&&(buttonsLeft||buttonsRight&&isOpened)&&(z=!0),z){a.stopPropagation(),a.detail.gesture.preventDefault();var f=a.detail.deltaX;if(isOpened&&("right"===openedActions?f-=sliderActionRightWidth:f+=sliderActionLeftWidth),f>0&&!buttonsLeft||0>f&&!buttonsRight){if(!isOpened)return;f=0}0>f?sliderDirection="toLeft":f>0?sliderDirection="toRight":sliderDirection||(sliderDirection="toLeft"),sliderRequestAnimationFrame||D(),translateX=f}}},flick:function(a){z&&a.stopPropagation()},swipeleft:function(a){z&&a.stopPropagation()},swiperight:function(a){z&&a.stopPropagation()},dragend:function(b){if(z){b.stopPropagation(),sliderRequestAnimationFrame&&(cancelAnimationFrame(sliderRequestAnimationFrame),sliderRequestAnimationFrame=null);var c=b.detail;z=!1;var d="close",f="toLeft"===sliderDirection?sliderActionRightWidth:sliderActionLeftWidth,g=c.swipe||Math.abs(translateX)>f/2;g&&(isOpened?"left"===c.direction&&"right"===openedActions?d="open":"right"===c.direction&&"left"===openedActions&&(d="open"):d="open"),e.classList.add(s);var i;if("open"===d){var j="toLeft"===sliderDirection?-f:f;if(E(A,j),i="toLeft"===sliderDirection?buttonsRight:buttonsLeft,"undefined"!=typeof i){for(var k=null,l=0;l<i.length;l++)k=i[l],E(k,j);k.parentNode.classList.add(h),e.classList.add(h),isOpened||a.trigger(e,"toLeft"===sliderDirection?"slideleft":"slideright")}}else E(A,0),sliderActionLeft&&sliderActionLeft.classList.remove(h),sliderActionRight&&sliderActionRight.classList.remove(h),e.classList.remove(h);var m;if(buttonsLeft&&buttonsLeft.length>0&&buttonsLeft!==i)for(var l=0,n=buttonsLeft.length;n>l;l++){var o=buttonsLeft[l];m=o._buttonOffset,"undefined"==typeof m&&(o._buttonOffset=sliderActionLeftWidth-o.offsetLeft-o.offsetWidth),E(o,m)}if(buttonsRight&&buttonsRight.length>0&&buttonsRight!==i)for(var l=0,n=buttonsRight.length;n>l;l++){var p=buttonsRight[l];m=p._buttonOffset,"undefined"==typeof m&&(p._buttonOffset=p.offsetLeft),E(p,-m)}}}};a.swipeoutOpen=function(b,c){if(b){var d=b.classList;if(!d.contains(h)){c||(c=b.querySelector(v)?"right":"left");var e=b.querySelector(a.classSelector(".slider-"+c));if(e){e.classList.add(h),d.add(h),d.remove(s);for(var f,g=e.querySelectorAll(x),i=e.offsetWidth,j="right"===c?-i:i,k=g.length,l=0;k>l;l++)f=g[l],"right"===c?E(f,-f.offsetLeft):E(f,i-f.offsetWidth-f.offsetLeft);d.add(s);for(var l=0;k>l;l++)E(g[l],j);E(b.querySelector(t),j)}}}},a.swipeoutClose=function(b){if(b){var c=b.classList;if(c.contains(h)){var d=b.querySelector(v+w)?"right":"left",e=b.querySelector(a.classSelector(".slider-"+d));if(e){e.classList.remove(h),c.remove(h),c.add(s);var f,g=e.querySelectorAll(x),i=e.offsetWidth,j=g.length;E(b.querySelector(t),0);for(var k=0;j>k;k++)f=g[k],"right"===d?E(f,-f.offsetLeft):E(f,i-f.offsetWidth-f.offsetLeft)}}}},b.addEventListener(a.EVENT_END,function(a){e&&(C(!1),A&&d(e,!0))}),b.addEventListener(a.EVENT_CANCEL,function(a){e&&(C(!1),A&&d(e,!0))});var G=function(b){var c=b.target&&b.target.type||"";if("radio"!==c&&"checkbox"!==c){var d=e.classList;if(d.contains("mui-radio")){var f=e.querySelector("input[type=radio]");f&&(f.disabled||f.readOnly||(f.checked=!f.checked,a.trigger(f,"change")))}else if(d.contains("mui-checkbox")){var f=e.querySelector("input[type=checkbox]");f&&(f.disabled||f.readOnly||(f.checked=!f.checked,a.trigger(f,"change")))}}};b.addEventListener(a.EVENT_CLICK,function(a){e&&e.classList.contains("mui-collapse")&&a.preventDefault()}),b.addEventListener("doubletap",function(a){e&&G(a)});var H=/^(INPUT|TEXTAREA|BUTTON|SELECT)$/;b.addEventListener("tap",function(b){if(e){var c=!1,d=e.classList,f=e.parentNode;if(f&&f.classList.contains(j)){if(d.contains(h))return;var i=f.querySelector("li"+w);return i&&i.classList.remove(h),d.add(h),void a.trigger(e,"selected",{el:e})}if(d.contains("mui-collapse")&&!e.parentNode.classList.contains("mui-unfold")){if(H.test(b.target.tagName)||b.detail.gesture.preventDefault(),!d.contains(g)){var k=e.parentNode.querySelector(".mui-collapse.mui-active");k&&k.classList.remove(g),c=!0}d.toggle(g),c&&a.trigger(e,"expand")}else G(b)}})}(mui,window,document),function(a,b){a.alert=function(c,d,e,f){if(a.os.plus){if("undefined"==typeof c)return;"function"==typeof d?(f=d,d=null,e="确定"):"function"==typeof e&&(f=e,e=null),a.plusReady(function(){plus.nativeUI.alert(c,f,d,e)})}else b.alert(c)}}(mui,window),function(a,b){a.confirm=function(c,d,e,f){if(a.os.plus){if("undefined"==typeof c)return;"function"==typeof d?(f=d,d=null,e=null):"function"==typeof e&&(f=e,e=null),a.plusReady(function(){plus.nativeUI.confirm(c,f,d,e)})}else f(b.confirm(c)?{index:0}:{index:1})}}(mui,window),function(a,b){a.prompt=function(c,d,e,f,g){if(a.os.plus){if("undefined"==typeof message)return;"function"==typeof d?(g=d,d=null,e=null,f=null):"function"==typeof e?(g=e,e=null,f=null):"function"==typeof f&&(g=f,f=null),a.plusReady(function(){plus.nativeUI.prompt(c,g,e,d,f)})}else{var h=b.prompt(c);g(h?{index:0,value:h}:{index:1,value:""})}}}(mui,window),function(a,b){var c="mui-active";a.toast=function(b){if(a.os.plus)a.plusReady(function(){plus.nativeUI.toast(b,{verticalAlign:"bottom"})});else{var d=document.createElement("div");d.classList.add("mui-toast-container"),d.innerHTML='<div class="mui-toast-message">'+b+"</div>",d.addEventListener("webkitTransitionEnd",function(){d.classList.contains(c)||d.parentNode.removeChild(d)}),document.body.appendChild(d),d.offsetHeight,d.classList.add(c),setTimeout(function(){d.classList.remove(c)},2e3)}}}(mui,window),function(a,b,c){var d="mui-popup",e="mui-popup-backdrop",f="mui-popup-in",g="mui-popup-out",h="mui-popup-inner",i="mui-popup-title",j="mui-popup-text",k="mui-popup-input",l="mui-popup-buttons",m="mui-popup-button",n="mui-popup-button-bold",e="mui-popup-backdrop",o="mui-active",p=[],q=function(){var b=c.createElement("div");return b.classList.add(e),b.addEventListener(a.EVENT_MOVE,a.preventDefault),b.addEventListener("webkitTransitionEnd",function(){this.classList.contains(o)||b.parentNode&&b.parentNode.removeChild(b)}),b}(),r=function(a){return'<div class="'+k+'"><input type="text" autofocus placeholder="'+(a||"")+'"/></div>'},s=function(a,b,c){return'<div class="'+h+'"><div class="'+i+'">'+b+'</div><div class="'+j+'">'+a.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>")+"</div>"+(c||"")+"</div>"},t=function(a){for(var b=a.length,c=[],d=0;b>d;d++)c.push('<span class="'+m+(d===b-1?" "+n:"")+'">'+a[d]+"</span>");return'<div class="'+l+'">'+c.join("")+"</div>"},u=function(b,e){var h=c.createElement("div");h.className=d,h.innerHTML=b;var i=function(){h.parentNode&&h.parentNode.removeChild(h),h=null};h.addEventListener(a.EVENT_MOVE,a.preventDefault),h.addEventListener("webkitTransitionEnd",function(a){h&&a.target===h&&h.classList.contains(g)&&i()}),h.style.display="block",c.body.appendChild(h),h.offsetHeight,h.classList.add(f),q.classList.contains(o)||(q.style.display="block",c.body.appendChild(q),q.offsetHeight,q.classList.add(o));var j=a.qsa("."+m,h),l=h.querySelector("."+k+" input"),n={element:h,close:function(a,b){if(h){var c=e&&e({index:a||0,value:l&&l.value||""});if(c===!1)return;b!==!1?(h.classList.remove(f),h.classList.add(g)):i(),p.pop(),p.length?p[p.length-1].show(b):q.classList.remove(o)}}},r=function(a){n.close(j.indexOf(a.target))};return a(h).on("tap","."+m,r),p.length&&p[p.length-1].hide(),p.push({close:n.close,show:function(a){h.style.display="block",h.offsetHeight,h.classList.add(f)},hide:function(){h.style.display="none",h.classList.remove(f)}}),n},v=function(b,c,d,e,f){return"undefined"!=typeof b?("function"==typeof c?(e=c,f=d,c=null,d=null):"function"==typeof d&&(f=e,e=d,d=null),a.os.plus&&"div"!==f?plus.nativeUI.alert(b,e,c||"提示",d||"确定"):u(s(b,c||"提示")+t([d||"确定"]),e)):void 0},w=function(b,c,d,e,f){return"undefined"!=typeof b?("function"==typeof c?(e=c,f=d,c=null,d=null):"function"==typeof d&&(f=e,e=d,d=null),a.os.plus&&"div"!==f?plus.nativeUI.confirm(b,e,c,d||["取消","确认"]):u(s(b,c||"提示")+t(d||["取消","确认"]),e)):void 0},x=function(b,c,d,e,f,g){return"undefined"!=typeof b?("function"==typeof c?(f=c,g=d,c=null,d=null,e=null):"function"==typeof d?(f=d,g=e,d=null,e=null):"function"==typeof e&&(g=f,f=e,e=null),a.os.plus&&"div"!==g?plus.nativeUI.prompt(b,f,d||"提示",c,e||["取消","确认"]):u(s(b,d||"提示",r(c))+t(e||["取消","确认"]),f)):void 0},y=function(){return p.length?(p[p.length-1].close(),!0):!1},z=function(){for(;p.length;)p[p.length-1].close()};a.closePopup=y,a.closePopups=z,a.alert=v,a.confirm=w,a.prompt=x}(mui,window,document),function(a,b){var c="mui-progressbar",d="mui-progressbar-in",e="mui-progressbar-out",f="mui-progressbar-infinite",g=".mui-progressbar",h=function(b){if(b=a(b||"body"),0!==b.length){if(b=b[0],b.classList.contains(c))return b;var d=b.querySelectorAll(g);if(d)for(var e=0,f=d.length;f>e;e++){var h=d[e];if(h.parentNode===b)return h}}},i=function(h,i,j){if("number"==typeof h&&(j=i,i=h,h="body"),h=a(h||"body"),0!==h.length){h=h[0];var l;if(h.classList.contains(c))l=h;else{var m=h.querySelectorAll(g+":not(."+e+")");if(m)for(var n=0,o=m.length;o>n;n++){var p=m[n];if(p.parentNode===h){l=p;break}}l?l.classList.add(d):(l=b.createElement("span"),l.className=c+" "+d+("undefined"!=typeof i?"":" "+f)+(j?" "+c+"-"+j:""),"undefined"!=typeof i&&(l.innerHTML="<span></span>"),h.appendChild(l))}return i&&k(h,i),l}},j=function(a){var b=h(a);if(b){var c=b.classList;c.contains(d)&&!c.contains(e)&&(c.remove(d),c.add(e),b.addEventListener("webkitAnimationEnd",function(){b.parentNode&&b.parentNode.removeChild(b),b=null}))}},k=function(a,b,c){"number"==typeof a&&(c=b,b=a,a=!1);var d=h(a);if(d&&!d.classList.contains(f)){b&&(b=Math.min(Math.max(b,0),100)),d.offsetHeight;var e=d.querySelector("span");if(e){var g=e.style;g.webkitTransform="translate3d("+(-100+b)+"%,0,0)","undefined"!=typeof c?g.webkitTransitionDuration=c+"ms":g.webkitTransitionDuration=""}return d}};a.fn.progressbar=function(a){var b=[];return a=a||{},this.each(function(){var c=this,d=c.mui_plugin_progressbar;d?a&&d.setOptions(a):c.mui_plugin_progressbar=d={options:a,setOptions:function(a){this.options=a},show:function(){return i(c,this.options.progress,this.options.color)},setProgress:function(a){return k(c,a)},hide:function(){return j(c)}},b.push(d)}),1===b.length?b[0]:b}}(mui,document),function(a,b,c){var d="mui-icon",e="mui-icon-clear",f="mui-icon-speech",g="mui-icon-search",h="mui-icon-eye",i="mui-input-row",j="mui-placeholder",k="mui-tooltip",l="mui-hidden",m="mui-focusin",n="."+e,o="."+f,p="."+h,q="."+j,r="."+k,s=function(a){for(;a&&a!==c;a=a.parentNode)if(a.classList&&a.classList.contains(i))return a;return null},t=function(a,b){this.element=a,this.options=b||{actions:"clear"},~this.options.actions.indexOf("slider")?(this.sliderActionClass=k+" "+l,this.sliderActionSelector=r):(~this.options.actions.indexOf("clear")&&(this.clearActionClass=d+" "+e+" "+l,this.clearActionSelector=n),~this.options.actions.indexOf("speech")&&(this.speechActionClass=d+" "+f,this.speechActionSelector=o),~this.options.actions.indexOf("search")&&(this.searchActionClass=j,this.searchActionSelector=q),~this.options.actions.indexOf("password")&&(this.passwordActionClass=d+" "+h,this.passwordActionSelector=p)),this.init()};t.prototype.init=function(){this.initAction(),this.initElementEvent()},t.prototype.initAction=function(){var b=this,c=b.element.parentNode;c&&(b.sliderActionClass?b.sliderAction=b.createAction(c,b.sliderActionClass,b.sliderActionSelector):(b.searchActionClass&&(b.searchAction=b.createAction(c,b.searchActionClass,b.searchActionSelector),b.searchAction.addEventListener("tap",function(c){a.focus(b.element),c.stopPropagation()})),b.speechActionClass&&(b.speechAction=b.createAction(c,b.speechActionClass,b.speechActionSelector),b.speechAction.addEventListener("click",a.stopPropagation),b.speechAction.addEventListener("tap",function(a){b.speechActionClick(a)})),b.clearActionClass&&(b.clearAction=b.createAction(c,b.clearActionClass,b.clearActionSelector),b.clearAction.addEventListener("tap",function(a){b.clearActionClick(a)})),b.passwordActionClass&&(b.passwordAction=b.createAction(c,b.passwordActionClass,b.passwordActionSelector),b.passwordAction.addEventListener("tap",function(a){b.passwordActionClick(a)}))))},t.prototype.createAction=function(a,b,e){var f=a.querySelector(e);if(!f){var f=c.createElement("span");f.className=b,b===this.searchActionClass&&(f.innerHTML='<span class="'+d+" "+g+'"></span><span>'+this.element.getAttribute("placeholder")+"</span>",this.element.setAttribute("placeholder",""),this.element.value.trim()&&a.classList.add("mui-active")),a.insertBefore(f,this.element.nextSibling)}return f},t.prototype.initElementEvent=function(){var b=this.element;if(this.sliderActionClass){var c=this.sliderAction,d=null,e=function(){c.classList.remove(l);var a=b.offsetLeft,e=b.offsetWidth-28,f=c.offsetWidth,g=Math.abs(b.max-b.min),h=e/g*Math.abs(b.value-b.min);c.style.left=14+a+h-f/2+"px",c.innerText=b.value,d&&clearTimeout(d),d=setTimeout(function(){c.classList.add(l)},1e3)};b.addEventListener("input",e),b.addEventListener("tap",e),b.addEventListener(a.EVENT_MOVE,function(a){a.stopPropagation()})}else{if(this.clearActionClass){var f=this.clearAction;if(!f)return;a.each(["keyup","change","input","focus","cut","paste"],function(a,c){!function(a){b.addEventListener(a,function(){f.classList[b.value.trim()?"remove":"add"](l)})}(c)}),b.addEventListener("blur",function(){f.classList.add(l)})}this.searchActionClass&&(b.addEventListener("focus",function(){b.parentNode.classList.add("mui-active")}),b.addEventListener("blur",function(){b.value.trim()||b.parentNode.classList.remove("mui-active")}))}},t.prototype.setPlaceholder=function(a){if(this.searchActionClass){var b=this.element.parentNode.querySelector(q);b&&(b.getElementsByTagName("span")[1].innerText=a)}else this.element.setAttribute("placeholder",a)},t.prototype.passwordActionClick=function(a){"text"===this.element.type?this.element.type="password":this.element.type="text",this.passwordAction.classList.toggle("mui-active"),a.preventDefault()},t.prototype.clearActionClick=function(b){var c=this;c.element.value="",a.focus(c.element),c.clearAction.classList.add(l),b.preventDefault()},t.prototype.speechActionClick=function(d){if(b.plus){var e=this,f=e.element.value;e.element.value="",c.body.classList.add(m),plus.speech.startRecognize({engine:"iFly"},function(b){e.element.value+=b,a.focus(e.element),plus.speech.stopRecognize(),a.trigger(e.element,"recognized",{value:e.element.value}),f!==e.element.value&&(a.trigger(e.element,"change"),a.trigger(e.element,"input"))},function(a){c.body.classList.remove(m)})}else alert("only for 5+");d.preventDefault()},a.fn.input=function(b){var c=[];return this.each(function(){var b=null,d=[],e=s(this.parentNode);if("range"===this.type&&e.classList.contains("mui-input-range"))d.push("slider");else{var f=this.classList;f.contains("mui-input-clear")&&d.push("clear"),a.os.android&&a.os.stream||!f.contains("mui-input-speech")||d.push("speech"),f.contains("mui-input-password")&&d.push("password"),"search"===this.type&&e.classList.contains("mui-search")&&d.push("search")}var g=this.getAttribute("data-input-"+d[0]);if(g)b=a.data[g];else{g=++a.uuid,b=a.data[g]=new t(this,{actions:d.join(",")});for(var h=0,i=d.length;i>h;h++)this.setAttribute("data-input-"+d[h],g)}c.push(b)}),1===c.length?c[0]:c},a.ready(function(){a(".mui-input-row input").input()})}(mui,window,document),function(a,b){var c=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,d=function(a){var b=a.match(c);return b&&5===b.length?[b[1],b[2],b[3],b[4]]:[]},e=function(b,c){this.element=b,this.options=a.extend({top:0,offset:150,duration:16},c||{}),this._style=this.element.style,this._bgColor=this._style.backgroundColor;var e=d(mui.getStyles(this.element,"backgroundColor"));if(!e.length)throw new Error("元素背景颜色必须为RGBA");this._R=e[0],this._G=e[1],this._B=e[2],this._A=e[3],this._bufferFn=a.buffer(this.handleScroll,this.options.duration,this),this.initEvent()};e.prototype.initEvent=function(){b.addEventListener("scroll",this._bufferFn),b.addEventListener(a.EVENT_MOVE,this._bufferFn)},e.prototype.handleScroll=function(){this._style.backgroundColor="rgba("+this._R+","+this._G+","+this._B+","+(b.scrollY-this.options.top)/this.options.offset+")"},e.prototype.destory=function(){b.removeEventListener("scroll",this._bufferFn),b.removeEventListener(a.EVENT_MOVE,this._bufferFn),this.element.style.backgroundColor=this._bgColor,this.element.mui_plugin_transparent=null},a.fn.transparent=function(a){a=a||{};var b=[];return this.each(function(){var c=this.mui_plugin_transparent;if(!c){var d=this.getAttribute("data-top"),f=this.getAttribute("data-offset"),g=this.getAttribute("data-duration");null!==d&&"undefined"==typeof a.top&&(a.top=d),null!==f&&"undefined"==typeof a.offset&&(a.offset=f),null!==g&&"undefined"==typeof a.duration&&(a.duration=g),c=this.mui_plugin_transparent=new e(this,a)}b.push(c)}),1===b.length?b[0]:b},a.ready(function(){a(".mui-bar-transparent").transparent()})}(mui,window),function(a){var b="ontouchstart"in document,c=b?"tap":"click",d="change",e="mui-numbox",f=".mui-btn-numbox-plus,.mui-numbox-btn-plus",g=".mui-btn-numbox-minus,.mui-numbox-btn-minus",h=".mui-input-numbox,.mui-numbox-input",i=a.Numbox=a.Class.extend({init:function(b,c){var d=this;if(!b)throw"构造 numbox 时缺少容器元素";d.holder=b,c=c||{},c.step=parseInt(c.step||1),d.options=c,d.input=a.qsa(h,d.holder)[0],d.plus=a.qsa(f,d.holder)[0],d.minus=a.qsa(g,d.holder)[0],d.checkValue(),d.initEvent()},initEvent:function(){var b=this;b.plus.addEventListener(c,function(c){var e=parseInt(b.input.value)+b.options.step;b.input.value=e.toString(),a.trigger(b.input,d,null)}),b.minus.addEventListener(c,function(c){var e=parseInt(b.input.value)-b.options.step;b.input.value=e.toString(),a.trigger(b.input,d,null)}),b.input.addEventListener(d,function(c){b.checkValue();var e=parseInt(b.input.value);a.trigger(b.holder,d,{value:e})})},getValue:function(){var a=this;return parseInt(a.input.value)},checkValue:function(){var a=this,b=a.input.value;if(null==b||""==b||isNaN(b))a.input.value=a.options.min||0,a.minus.disabled=null!=a.options.min;else{var b=parseInt(b);null!=a.options.max&&!isNaN(a.options.max)&&b>=parseInt(a.options.max)?(b=a.options.max,a.plus.disabled=!0):a.plus.disabled=!1,null!=a.options.min&&!isNaN(a.options.min)&&b<=parseInt(a.options.min)?(b=a.options.min,a.minus.disabled=!0):a.minus.disabled=!1,a.input.value=b}},setOption:function(a,b){var c=this;c.options[a]=b},setValue:function(a){this.input.value=a,this.checkValue()}});a.fn.numbox=function(a){return this.each(function(a,b){if(!b.numbox)if(d)b.numbox=new i(b,d);else{var c=b.getAttribute("data-numbox-options"),d=c?JSON.parse(c):{};d.step=b.getAttribute("data-numbox-step")||d.step,d.min=b.getAttribute("data-numbox-min")||d.min,d.max=b.getAttribute("data-numbox-max")||d.max,b.numbox=new i(b,d)}}),this[0]?this[0].numbox:null},a.ready(function(){a("."+e).numbox()})}(mui),function(a,b,c){var d="mui-disabled",e="reset",f="loading",g={loadingText:"Loading...",loadingIcon:"mui-spinner mui-spinner-white",loadingIconPosition:"left"},h=function(b,c){this.element=b,this.options=a.extend({},g,c),this.options.loadingText||(this.options.loadingText=g.loadingText),null===this.options.loadingIcon&&(this.options.loadingIcon="mui-spinner","rgb(255, 255, 255)"===a.getStyles(this.element,"color")&&(this.options.loadingIcon+=" mui-spinner-white")),this.isInput="INPUT"===this.element.tagName,this.resetHTML=this.isInput?this.element.value:this.element.innerHTML,this.state=""};h.prototype.loading=function(){this.setState(f)},h.prototype.reset=function(){this.setState(e)},h.prototype.setState=function(a){if(this.state===a)return!1;if(this.state=a,a===e)this.element.disabled=!1,this.element.classList.remove(d),this.setHtml(this.resetHTML);else if(a===f){this.element.disabled=!0,this.element.classList.add(d);var b=this.isInput?this.options.loadingText:"<span>"+this.options.loadingText+"</span>";this.options.loadingIcon&&!this.isInput&&("right"===this.options.loadingIconPosition?b+='&nbsp;<span class="'+this.options.loadingIcon+'"></span>':b='<span class="'+this.options.loadingIcon+'"></span>&nbsp;'+b),this.setHtml(b)}},h.prototype.setHtml=function(a){this.isInput?this.element.value=a:this.element.innerHTML=a},a.fn.button=function(a){var b=[];return this.each(function(){var c=this.mui_plugin_button;if(!c){var d=this.getAttribute("data-loading-text"),g=this.getAttribute("data-loading-icon"),i=this.getAttribute("data-loading-icon-position");this.mui_plugin_button=c=new h(this,{loadingText:d,loadingIcon:g,loadingIconPosition:i})}(a===f||a===e)&&c.setState(a),b.push(c)}),1===b.length?b[0]:b}}(mui,window,document);
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/plus.info.js b/fangija-zsyf/js/plus.info.js
    new file mode 100644
    index 0000000..265545c
    --- /dev/null
    +++ b/fangija-zsyf/js/plus.info.js
    @@ -0,0 +1,45 @@
    +/**
    + * 获取手机上的信息,比如位置,手机ID
    + * @author yinjihuan
    + */
    +//扩展API加载完毕后调用onPlusReady回调函数 
    +document.addEventListener('plusready', onPlusReady, false);
    +//扩展API加载完毕,现在可以正常调用扩展API
    +function onPlusReady(){
    +	getPosition();
    +}
    +var province = "";
    +var city = "";
    +var region = "";
    +
    +// 获取当前用户位置
    +function getPosition(){
    +	plus.geolocation.getCurrentPosition(function(p){
    +		province = p.address.province;
    +		city = p.address.city;
    +		region = p.address.district;
    +		}, function(e){
    +			
    +		},
    +		{
    +			provider:'baidu',
    +			enableHighAccuracy:true,
    +			coordsType:'bd09ll'
    +		}
    +	);
    +}
    +
    +function getPushInfo(){
    +    try {
    +    	var info = plus.push.getClientInfo();
    +    	return info.clientid;
    +    }catch(error) {
    +    	console.log( error);
    +    }
    +//  console.log( "获取客户端推送标识信息:" );
    +//  console.log( "token: "+info.token );
    +//  alert( "clientid: "+info.clientid );
    +//  console.log( "appid: "+info.appid );
    +//  console.log( "appkey: "+info.appkey );
    +	return "";
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/push-common.js b/fangija-zsyf/js/push-common.js
    new file mode 100644
    index 0000000..1c9eb7d
    --- /dev/null
    +++ b/fangija-zsyf/js/push-common.js
    @@ -0,0 +1,128 @@
    +/**
    + * 推送处理业务逻辑
    + * yinjihuan
    + */
    +document.addEventListener("plusready", function() {
    +    // 监听点击消息事件
    +    plus.push.addEventListener("click", function(msg) {
    +        // 判断是从本地创建还是离线推送的消息
    +        var payload = msg.payload;
    +        var title = msg.title;
    +        var content = msg.content;
    +        switch(payload) {
    +            case "LocalMSG":
    +                alert("点击本地创建消息启动:");
    +                break;
    +            default:
    +                if (plus.os.name == "Android"){
    +                	try {
    +                		payload = JSON.parse(payload);
    +                	} catch(err) {
    +                		
    +                	}
    +                	if (payload.type == "0") {
    +                   		 plus.ui.alert(title+"\n"+content);
    +	                } else if (payload.type == "1") {
    +	                   	plus.ui.alert(title+"\n"+content,function(){
    +			        	 	if (payload.url == '/house/index') {
    +			        	 		 plus.webview.show('yfindex.html');
    +			        	 	} else {
    +			        	 		 plus.webview.show(BASE_PATH + payload.url);
    +			        	 	}
    +			        	 	//切换选项卡高亮
    +							var defaultTab = document.getElementById("defaultTab");
    +							var quotations = document.getElementById("quotations");
    +							var selfInfo = document.getElementById("selfInfo");
    +							defaultTab.classList.remove("mui-active");
    +							quotations.classList.remove("mui-active");
    +							selfInfo.classList.remove("mui-active");
    +							if (payload.url == '/quotations/index') {
    +								quotations.classList.add("mui-active");
    +							} else if(payload.url == '/selfInfo/index') {
    +								selfInfo.classList.add("mui-active");
    +							} else {
    +								defaultTab.classList.add("mui-active");
    +							}
    +				       	});
    +	                } else if (payload.type == "2") {
    +	           	       	 plus.ui.alert(title+"\n"+content,function(){
    +	           	       		 openUrl(BASE_PATH+'/message/openView?url='+payload.url);
    +	           	       	 });
    +	               	}
    +                } else {
    +                	if (payload.type == "0") {
    +                   		 plus.ui.alert(content);
    +                    } else if (payload.type == "1") {
    +	                   	 plus.ui.alert(content,function(){
    +			        	 	if (payload.url == '/house/index') {
    +			        	 		 plus.webview.show('yfindex.html');
    +			        	 	} else {
    +			        	 		 plus.webview.show(BASE_PATH + payload.url);
    +			        	 	}
    +			        	 	//切换选项卡高亮
    +							var defaultTab = document.getElementById("defaultTab");
    +							var quotations = document.getElementById("quotations");
    +							var selfInfo = document.getElementById("selfInfo");
    +							defaultTab.classList.remove("mui-active");
    +							quotations.classList.remove("mui-active");
    +							selfInfo.classList.remove("mui-active");
    +							if (payload.url == '/quotations/index') {
    +								quotations.classList.add("mui-active");
    +							} else if(payload.url == '/selfInfo/index') {
    +								selfInfo.classList.add("mui-active");
    +							} else {
    +								defaultTab.classList.add("mui-active");
    +							}
    +				       	});
    +                    } else if (payload.type == "2") {
    +	           	       	 plus.ui.alert(content,function(){
    +	           	       		 openUrl(BASE_PATH+'/message/openView?url='+payload.url);
    +	           	       	 });
    +              	 	}
    +                }
    +            	
    +                break;
    +        }
    +    }, false);
    +     
    +    // 监听在线消息事件, iOS透传消息在线时会进入这里进行处理
    +    plus.push.addEventListener("receive", function(msg) {
    +        var title = msg.title;
    +        var content = msg.content;
    +        var payload = msg.payload;
    +        if (payload.type == "0") {
    +        	 plus.ui.alert(title+"\n"+content);
    +        } else if (payload.type == "1") {
    +        	 plus.ui.alert(title+"\n"+content,function(){
    +        	 	if (payload.url == '/house/index') {
    +        	 		 plus.webview.show('yfindex.html');
    +        	 	} else {
    +        	 		 plus.webview.show(BASE_PATH + payload.url);
    +        	 	}
    +        	
    +        	 	//切换选项卡高亮
    +				var defaultTab = document.getElementById("defaultTab");
    +				var quotations = document.getElementById("quotations");
    +				var selfInfo = document.getElementById("selfInfo");
    +				defaultTab.classList.remove("mui-active");
    +				quotations.classList.remove("mui-active");
    +				selfInfo.classList.remove("mui-active");
    +				if (payload.url == '/quotations/index') {
    +					quotations.classList.add("mui-active");
    +				} else if(payload.url == '/selfInfo/index') {
    +					selfInfo.classList.add("mui-active");
    +				} else {
    +					defaultTab.classList.add("mui-active");
    +				}
    +	       	 });
    +        } else if (payload.type == "2") {
    +	       	 plus.ui.alert(title+"\n"+content,function(){
    +	       		 openUrl(BASE_PATH+'/message/openView?url='+payload.url);
    +	       	 });
    +    	}
    +    }, false);
    +}, false);
    +
    +function openUrl(url){
    +	clicked(url,true);
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js
    new file mode 100644
    index 0000000..bca5fe0
    --- /dev/null
    +++ b/fangija-zsyf/js/quotations/cityDetail.js
    @@ -0,0 +1,624 @@
    +var ret = []
    +var myFocusDatas = {myFocusList: []};
    +var cityIncreaseRankingData = {cityIncreaseRankingList:[],test:"ttt"};
    +var cityPotentialRankingData = {cityPotentialRankingList:[]};
    +
    +function reloadMyFocus(){
    +	if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +        $("#myFocusFirstPage").hide()
    +        $("#myFocus").hide();
    +      }else{
    +        axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
    +          if(response.data.data.length==0){
    +            $("#myFocusFirstPage").hide();
    +            $("#myFocus").hide();
    +          }else{
    +            myFocusDatas.myFocusList = response.data.data;
    +            $("#myFocus").show()
    +          }
    +        }).catch(function(error){
    +        	console.log(error)
    +        })
    +      }
    +}
    +function reloadCityIncreaseRanking(){
    +	axios.get("/rest/quotations/markUpTopInfos").then(function(response){
    +		cityIncreaseRankingData.cityIncreaseRankingList = response.data.data;
    +	}).catch(function(error){
    +		console.log(error)
    +	})
    +}
    +
    +function reloadCityPotentialRanking(){
    +	axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){
    +		list = response.data.data;
    +		$(list).each(function(i){
    +			var index = this.index;
    +			var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星
    +			var starNum = Math.floor(totalHalfStar/2) //全星
    +			var halfStarNum = totalHalfStar%2 //半星
    +			var noneStarNum = 5-starNum-halfStarNum //空星
    +			this.starNum = starNum;
    +			this.halfStarNum = halfStarNum;
    +			this.noneStarNum = noneStarNum;
    +		})
    +		cityPotentialRankingData.cityPotentialRankingList = response.data.data;
    +		
    +		
    +
    +		
    +	}).catch(function(error){
    +		console.log(error)
    +	})
    +}
    +
    +
    +function IsInArray(arr, val){  
    +  var testStr=','+arr.join(",")+",";  
    +  return testStr.indexOf(","+val+",")!=-1;  
    +} 
    +
    +function loadMyCollectCity(){
    +	plus.nativeUI.showWaiting();
    +	axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
    +		var curDatas = response.data.data
    +		if(curDatas && curDatas.length>0){
    +			if(positionCity){
    +				if(!IsInArray(curDatas, positionCity)){
    +					curDatas.splice(0,0, positionCity)
    +				}
    +			}
    +			cityDetaiVue.$data.citys = curDatas;
    +		}else{
    +			if(positionCity){
    +				cityDetaiVue.$data.citys.push(positionCity);
    +			}
    +		}
    +		$("#cityInfo").hide()
    +		plus.nativeUI.closeWaiting();
    +		
    +	}).catch(function (error) {
    +		plus.nativeUI.closeWaiting();
    +	   console.log(error);
    +	});
    +}
    +
    +
    +function loadCurCity(city){
    +	plus.nativeUI.showWaiting();
    +	axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
    +		var curDatas = response.data.data
    +		if(curDatas && curDatas.length>0){
    +			if(IsInArray(curDatas, city)){
    +				cityInfoVue.$data.collecd = true;
    +			}else{
    +				cityInfoVue.$data.collecd = false;
    +			}
    +		}
    +		
    +		plus.nativeUI.closeWaiting();
    +	}).catch(function (error) {
    +		plus.nativeUI.closeWaiting();
    +	   console.log(error);
    +	});
    +}
    +
    +function loadCityPriceInfo(city){
    +	
    +	axios.get("/rest/quotations/cityPriceInfo", {
    +	    params: {
    +	      city: city
    +	    }
    +	}).then(function (response) {
    +		var data1 = response.data.data	
    +		
    +		if(data1){
    +			var cityObj = new Object();
    +			cityObj.city = data1.city
    +			cityObj.cityTopMonthAvgPrice = data1.cityTopMonthAvgPrice
    +			cityObj.downChance = data1.downChance
    +			cityObj.follow = data1.follow
    +			cityObj.index = data1.index
    +			cityObj.oneMonthUpDownRange = (data1.oneMonthUpDownRange*100).toFixed(2)
    +			cityObj.oneYearUpDownRange = data1.oneYearUpDownRange
    +			cityObj.rangeLevel = data1.rangeLevel
    +			cityObj.time = year + month
    +			cityInfoVue.$data.myCityMap = cityObj;
    +			$("#priceDiv").removeClass("dn");
    +		}
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +	
    +}
    +
    +function loadUpOrDown(city){
    +	axios.get("/rest/quotations/hosueQuatations", {
    +	    params: {
    +	      city: city
    +	    }
    +	}).then(function (response) {
    +		var data2 = response.data.data	
    +		if(data2){
    +			loadUpOrDownChart(data2.downRate, data2.upRate);
    +		}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function loadCityPricesAndCounts(city){
    +	axios.get("/rest/quotations/loadCityPriceTrends", {
    +	    params: {
    +	      city: city,
    +	      type:2
    +	    }
    +	}).then(function (response) {
    +		var data3 = response.data.data
    +		if(data3){
    +			loadTrends(data3.times, data3.cityPriceMap , data3.countMap);
    +		}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function loadHotDistrict(city){
    +	
    +	axios.get("/rest/districts/hotDistricts", {
    +	    params: {
    +	      city: city,
    +	      top:5
    +	    }
    +	}).then(function (response) {
    +		var data4 = response.data.data	
    +		if(data4){
    +			var nears = []
    +			for(var n in data4){
    +				var v = data4[n]
    +				var nearObj = new Object();
    +				nearObj.city = v.city
    +				nearObj.region = v.region
    +				nearObj.name = v.name;
    +				nearObj.sname = nameConver(v.name)
    +				nearObj.avgPrice = v.avgPrice
    +				nears.push(nearObj);
    +			}
    +			cityInfoVue.$data.nears = nears;
    +		}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +/*点击走势TAB页*/
    +function clickTrend(city, type){
    +	if(type == 5){
    +		if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +				clicked('../user/codeSms.html',true,false,{},{},function(){
    +					clickTrend(city, type);
    +				})
    +				return;
    +		} else {
    +			startingLoadCharts(city, type);
    +		}
    +	}else{
    +		startingLoadCharts(city, type);
    +	}
    +}
    +
    +function startingLoadCharts(city, type){
    +	axios.get("/rest/quotations/loadCityPriceTrends", {
    +	    params: {
    +	      city: city,
    +	      type:type
    +	    }
    +	}).then(function (response) {
    +		
    +		var datas = response.data.data					
    +		var prices = []
    +		var counts = []
    +		var times = datas.times
    +		for(var i in times){
    +			var time = times[i]
    +			time = parseInt(time.replace("-",""))
    +			var pm = datas.cityPriceMap;
    +			var cm = datas.countMap;
    +			if(pm){
    +				if(pm[time]){
    +					prices.push(pm[time])
    +				}else{
    +					prices.push(null)
    +				}
    +				
    +			}
    +			if(cm){
    +				if(cm[time]){
    +					counts.push(cm[time]);
    +				}else{
    +					counts.push(null);
    +				}
    +				
    +			}
    +		}
    +		
    +		$("#trendDiv a").removeClass("active");
    +		$("a[v='"+type+"']").addClass("active")
    +		showChart("price_chart", times, prices, counts)					
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +
    +
    +function loadUpOrDownChart(downRate, upRate){
    +	if(upRate){
    +		var cityObj1 = new Object();
    +		cityObj1.name= ""
    +		cityObj1.value = upRate
    +		
    +		var cityObj2 = new Object();
    +		cityObj2.name= ""
    +		cityObj2.value = 100 - upRate
    +		
    +		dataUp = [cityObj1, cityObj2]
    +		addUpChart(dataUp)
    +		$("#up_chart").parent().parent().show();
    +	}else{
    +		$("#up_chart").parent().parent().hide()
    +	}
    +	
    +	if(downRate){
    +		var cityObj3 = new Object();
    +		cityObj3.name= ""
    +		cityObj3.value = downRate
    +		
    +		var cityObj4 = new Object();
    +		cityObj4.name= ""
    +		cityObj4.value = 100 - downRate
    +		
    +		dataDown = [cityObj3, cityObj4]
    +		addDownChart(dataDown)
    +		$("#down_chart").parent().parent().show();
    +	}else{
    +		$("#down_chart").parent().parent().hide()
    +	}
    +		
    +}
    +
    +
    +function loadTrends(times, cityPriceMap, countMap){
    +		var prices = []
    +		var counts = []
    +		for(var i in times){
    +			var time = times[i]
    +			time = parseInt(time.replace("-",""))
    +			var pm = cityPriceMap;
    +			var cm = countMap;
    +			if(pm){
    +				if(pm[time]){
    +					prices.push(pm[time])
    +				}else{
    +					prices.push(null)
    +				}
    +				
    +			}
    +			if(cm){
    +				if(cm[time]){
    +					counts.push(cm[time]);
    +				}else{
    +					counts.push(null);
    +				}
    +				
    +			}
    +		}
    +		showChart("price_chart", times, prices, counts)
    +}
    +
    +
    +
    +
    +/*跳转区域列表*/
    +function showRegionInfo(city){
    +	clicked('../house/regions.html',true,false,{},{city:city});
    +}
    +/*跳转小区详情*/
    +function showDistrictDetail(city, region, name){
    +	clicked('../district/detail.html',true,false,{},{city:city,region:region,name:name});
    +}
    +
    +
    +
    +function showChart(idDom, categories, prices, counts){
    +	if(!prices){
    +		prices = []
    +	}
    +	if(!counts){
    +		counts = []
    +	}
    +	
    +	if(prices.length==0 && counts.length == 0){
    +		$("#trendChartDiv").hide();
    +	}else{
    +		/* 城市均价及挂牌走势 */
    +	var chart = Highcharts.chart(idDom, {
    +	  colors: ['#ff7f50','#87cefa'],
    +	    	title: {
    +	    		text: '城市楼市均价及挂牌走势',
    +	    		y: -30
    +	    	},
    +	       
    +	        xAxis: [{
    +	            categories:categories,
    +	            crosshair: true
    +	        }],
    +	        yAxis: [{ 
    +	        	
    +	            title: {
    +	    			text: '元/㎡',
    +	    			align: 'high',
    +	    			offset: 4,
    +	    			rotation: 0,
    +	    			y: -20
    +	    		},
    +	    		
    +	    		allowDecimals: false,
    +		        plotLines: [{
    +					value: 0,
    +					width: 1,
    +					color: '#808080'
    +				}]
    +	        }, { // Secondary yAxis
    +	        	title: {
    +	    			text: '套',
    +	    			align: 'high',
    +	    			offset: 25,
    +	    			rotation: 0,
    +	    			y: -20
    +	    		},
    +	    	
    +	    		allowDecimals: false,
    +	            opposite: true
    +	        }],
    +	        tooltip: {
    +	            shared: true
    +	        },
    +	    	credits: {
    +	    		enabled: false
    +	    	},
    +	        plotOptions: {
    +	    		line: {
    +	    			connectNulls: true  //该设置会连接空值点
    +	    		},
    +	    		
    +	    		series: {
    +	    			events: {
    +	    				legendItemClick: function(e) {
    +	    					return false;
    +	    				}
    +	    			},
    +	    			marker: {
    +	    				radius: 3,  //曲线点半径,默认是4
    +	    				symbol: 'circle'  //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
    +	    			}
    +	    		}
    +	    	},
    +	        series: [{
    +	            name: '均价',
    +	            type: 'line',
    +	            zIndex: 1,
    +	            tooltip: {
    +	                valueSuffix: ' 元/㎡'
    +	            },
    +	            data: prices
    +	        },{
    +	            name: '挂牌量',
    +	            type: 'column',
    +	            yAxis: 1,
    +	            tooltip: {
    +	                valueSuffix: ' 套'
    +	            },
    +	            data: counts
    +	        }]
    +		});
    +		
    +	}
    +	
    +}
    +
    +
    +function nameConver(textName){
    +	  var length = textName.length;
    +	  var textStr = textName;
    +	  if(length > 5){
    +	    textStr = textName.substr(0,5)+ "...";
    +	  }
    +	  return textStr;
    +}
    +
    +
    +
    +
    +function addUpChart(dataUp, num){
    +	/* 小区上涨 */
    +//var dataUp = [];
    +	optionUp = {
    +	  	title: {
    +	    	text: dataUp[0].value + '%',
    +			subtext: '小区上涨',
    +	      	x: 'center',
    +	        y: 'center',
    +			itemGap: -8, 
    +	      	textStyle: {
    +				fontFamily: 'Arial, Verdana, sans-serif',
    +				fontSize: 30,
    +	            color: '#333',
    +				fontWeight: 'normal'
    +	        },
    +			subtextStyle: {
    +				fontFamily: '华文细黑',
    +				fontSize: 12,
    +				color: '#666'
    +			}
    +	    },
    +		color: ['#EB5F34', '#e7e7e7'],
    +	    series: [
    +	        {
    +	            name: '小区上涨',
    +	            type: 'pie',
    +	            radius: ['90%', '100%'],
    +	            itemStyle: {
    +	                normal: {
    +	                    label: {
    +	                        show: true
    +	                    },
    +	                    labelLine: {
    +	                        show: false
    +	                    }
    +	                }
    +	            },
    +	            data: dataUp
    +	        }
    +	    ]
    +	};
    +	var myChartUp = echarts.init(document.getElementById('up_chart'));
    +	myChartUp.setOption(optionUp,true);
    +}
    +
    +function addDownChart(dataDown){
    +	/* 小区下跌 */
    +	optionDown = {
    +	  	title: {
    +	    	text: dataDown[0].value + '%',
    +			subtext: '小区下跌',
    +	      	x: 'center',
    +	        y: 'center',
    +			itemGap: -8, 
    +	      	textStyle: {
    +				fontFamily: 'Arial, Verdana, sans-serif',
    +				fontSize: 30,
    +	            color: '#333',
    +				fontWeight: 'normal'
    +	        },
    +			subtextStyle: {
    +				fontFamily: '华文细黑',
    +				fontSize: 12,
    +				color: '#666'
    +			}
    +	    },
    +		color: ['#88D053', '#e7e7e7'],
    +	    series: [
    +	        {
    +	            name: '小区下跌',
    +	            type: 'pie',
    +	            radius: ['90%', '100%'],
    +	            itemStyle: {
    +	                normal: {
    +	                    label: {
    +	                        show: true
    +	                    },
    +	                    labelLine: {
    +	                        show: false
    +	                    }
    +	                }
    +	            },
    +	            data: dataDown
    +	        }
    +	    ]
    +	};
    +	
    +	var myChartUp = echarts.init(document.getElementById('down_chart'));
    +	myChartUp.setOption(optionDown,true);
    +}
    +
    +
    +function collectCity(city, type){
    +	if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +			clicked('../user/codeSms.html',true,false,{},{},function(){
    +				collectCity(city, type)
    +				plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +			})
    +			return;
    +	} else {
    +		
    +		var title = ""
    +		if(type == 0){
    +			title = "您确定要添加关注?"
    +		}else{
    +			title = "您确定要取消关注?"
    +		}
    +		
    +		$.confirm(title, function () {
    +          	docollectCity(city, type)
    +          	// plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +          	 
    +        },function(){
    +        	 plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +        	 //loadMyCollectCity();
    +        });
    +       
    +        
    +		
    +	}
    +	
    +}
    +
    +function docollectCity(city, type){
    +	axios.get("/rest/quotations/collectCity",{
    +			params:{
    +				city : city,
    +				type:type
    +			}
    +		}).then(function (response) {
    +		var msg = response.data.message;
    +		if(msg){
    +			if(msg == "取消关注成功"){
    +				try{
    +					cityInfoVue.$data.collecd = false;
    +				
    +					var da = cityDetaiVue.$data.citys
    +					if(da && da.length>0){
    +						var index = da.indexOf(city)
    +						if(index>=0){
    +							da.splice(index, 1)
    +							cityDetaiVue.$data.citys = da;
    +							if(da.length==0){
    +								$("a[href='#tabQuotation0']").click();
    +							}
    +						}
    +					}
    +				}catch(e){
    +					
    +				}
    +				
    +				//loadMyCollectCity();
    +				$("a[href='#tabQuotation1']").click();
    +				plus.webview.getWebviewById('views/house/houseDetail.html').reload();
    +				//reloadMyFocus();
    +				//reloadCityPotentialRanking()
    +				//reloadCityIncreaseRanking()
    +			}else if(msg == "关注成功"){
    +				cityInfoVue.$data.collecd = true;
    +				plus.webview.getWebviewById('views/house/houseDetail.html').reload();
    +				//reloadMyFocus();
    +				//reloadCityPotentialRanking()
    +				//reloadCityIncreaseRanking()
    +			}else{
    +				$.toast(msg);
    +			}
    +		}
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +
    +
    diff --git a/fangija-zsyf/js/quotations/collectCity.js b/fangija-zsyf/js/quotations/collectCity.js
    new file mode 100644
    index 0000000..b8107b0
    --- /dev/null
    +++ b/fangija-zsyf/js/quotations/collectCity.js
    @@ -0,0 +1,597 @@
    +var city = ""
    +var myCollectCitys = [];
    +var lat = 31.222578;
    +var lng = 121.359555;
    +var allCity = []
    +var collCount = 0;
    +var collecteds = [];
    +var ret = []
    +
    +var myDatasVue = new Vue({
    +	el: '#contentTabDiv',
    +	data: {
    +		title:"",
    +		cityDatas : []
    +	}
    +})
    +
    +var citysVue = new Vue({
    +	el: '#tabCityDiv',
    +	data: {
    +		citys:[]
    +	}
    +})
    +
    +var date = new Date();
    +var year = date.getFullYear()+'年';
    +var month = date.getMonth()+1+'月';
    +//document.addEventListener('plusready', onPlusReady, false);
    +////扩展API加载完毕,现在可以正常调用扩展API
    +//function onPlusReady(){
    +//	getPosition();
    +//	loadMyCollectCity();
    +//
    +//}
    +
    +//loadMyCollectCity();
    +
    +
    +function addUpChart(dataUp, num){
    +	/* 小区上涨 */
    +//var dataUp = [];
    +	optionUp = {
    +	  	title: {
    +	    	text: dataUp[0].value + '%',
    +			subtext: '小区上涨',
    +	      	x: 'center',
    +	        y: 'center',
    +			itemGap: -8, 
    +	      	textStyle: {
    +				fontFamily: 'Arial, Verdana, sans-serif',
    +				fontSize: 30,
    +	            color: '#333',
    +				fontWeight: 'normal'
    +	        },
    +			subtextStyle: {
    +				fontFamily: '华文细黑',
    +				fontSize: 12,
    +				color: '#666'
    +			}
    +	    },
    +		color: ['#EB5F34', '#e7e7e7'],
    +	    series: [
    +	        {
    +	            name: '小区上涨',
    +	            type: 'pie',
    +	            radius: ['90%', '100%'],
    +	            itemStyle: {
    +	                normal: {
    +	                    label: {
    +	                        show: true
    +	                    },
    +	                    labelLine: {
    +	                        show: false
    +	                    }
    +	                }
    +	            },
    +	            data: dataUp
    +	        }
    +	    ]
    +	};
    +	var myChartUp = echarts.init(document.getElementById(num+'_up_chart'));
    +	myChartUp.setOption(optionUp,true);
    +}
    +
    +function addDownChart(dataDown, num){
    +	/* 小区下跌 */
    +	//var dataDown = [{value: 31, name: ''}];
    +	optionDown = {
    +	  	title: {
    +	    	text: dataDown[0].value + '%',
    +			subtext: '小区下跌',
    +	      	x: 'center',
    +	        y: 'center',
    +			itemGap: -8, 
    +	      	textStyle: {
    +				fontFamily: 'Arial, Verdana, sans-serif',
    +				fontSize: 30,
    +	            color: '#333',
    +				fontWeight: 'normal'
    +	        },
    +			subtextStyle: {
    +				fontFamily: '华文细黑',
    +				fontSize: 12,
    +				color: '#666'
    +			}
    +	    },
    +		color: ['#88D053', '#e7e7e7'],
    +	    series: [
    +	        {
    +	            name: '小区下跌',
    +	            type: 'pie',
    +	            radius: ['90%', '100%'],
    +	            itemStyle: {
    +	                normal: {
    +	                    label: {
    +	                        show: true
    +	                    },
    +	                    labelLine: {
    +	                        show: false
    +	                    }
    +	                }
    +	            },
    +	            data: dataDown
    +	        }
    +	    ]
    +	};
    +	
    +	var myChartUp = echarts.init(document.getElementById(num+'_down_chart'));
    +	myChartUp.setOption(optionDown,true);
    +}
    +
    +//加载我关注的城市
    +function loadMyCollectCity(){
    +	axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
    +		var curDatas = response.data.data
    +		
    +		if(curDatas){
    +			collCount = curDatas.length;
    +			for(var i in curDatas){
    +				var curCity = curDatas[i]
    +				if(!IsInArray(myCollectCitys, curCity)){
    +					allCity.push(curCity)
    +					myCollectCitys.push(curCity);
    +				}
    +				collecteds.push(curCity);
    +			}
    +		}
    +		if(myCollectCitys && myCollectCitys.length>0){
    +			for(var j in myCollectCitys){
    +				var curCity = myCollectCitys[j]
    +				createData(curCity, j);
    +				
    +				
    +			}
    +		}
    +		
    +		
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function createData(curCity, i){
    +	var len = parseInt(i)
    +	if(len<10){
    +		axios.all([loadCityPriceInfo(curCity), detail(curCity), loadCityPricesAndCounts(curCity), loadHotDistrict(curCity)])
    +				.then(axios.spread(function (acct, perms, trends, nearDists) {
    +					
    +					var cityObj = new Object();
    +					var data1 = acct.data.data
    +					
    +					
    +					cityObj.hrefId = "tabQuotation"+(len+2)
    +					
    +					cityObj.numId_up_chart = (len+1)+"_up_chart";
    +					cityObj.numId_down_chart = (len+1)+"_down_chart";
    +					cityObj.numId_price_chart = (len+1)+"_price_chart";
    +					
    +					cityObj.colled = false;
    +					if(IsInArray(collecteds, curCity)){
    +						cityObj.colled = true;
    +					}
    +					if(data1){
    +						cityObj.city = data1.city
    +						cityObj.cityTopMonthAvgPrice = data1.cityTopMonthAvgPrice
    +						cityObj.downChance = data1.downChance
    +						cityObj.follow = data1.follow
    +						cityObj.index = data1.index
    +						cityObj.oneMonthUpDownRange = (data1.oneMonthUpDownRange*100).toFixed(2)
    +						cityObj.oneYearUpDownRange = data1.oneYearUpDownRange
    +						cityObj.rangeLevel = data1.rangeLevel
    +						cityObj.time = year + month
    +					}
    +					var data2 = perms.data.data
    +					if(data2){
    +						cityObj.downRate = data2.downRate
    +						cityObj.upRate = data2.upRate
    +					}
    +					var data3 = trends.data.data
    +					if(data3){
    +						cityObj.times = data3.times
    +						cityObj.cityPriceMap = data3.cityPriceMap
    +						cityObj.countMap = data3.countMap
    +					}
    +					var data4 = nearDists.data.data
    +					if(data4){
    +						var nears = []
    +						for(var n in data4){
    +							var v = data4[n]
    +							var nearObj = new Object();
    +							nearObj.city = v.city
    +							nearObj.region = v.region
    +							nearObj.name = v.name;
    +							nearObj.sname = nameConver(v.name)
    +							nearObj.avgPrice = v.avgPrice
    +							nears.push(nearObj);
    +						}
    +						cityObj.nears = nears
    +					}
    +				    ret.push(cityObj);
    +				    myDatasVue.$data.cityDatas = ret;
    +				}));
    +	}
    +	
    +}
    +
    +function nameConver(textName){
    +	  var length = textName.length;
    +	  var textStr = textName;
    +	  if(length > 5){
    +	    textStr = textName.substr(0,5)+ "...";
    +	  }
    +	  return textStr;
    +}
    +
    +function loadCityPriceInfo(city){
    +	return axios.get("/rest/quotations/cityPriceInfo?city="+city);
    +}
    +
    +function detail(city){
    +	return axios.get("/rest/quotations/hosueQuatations?city="+city);
    +}
    +
    +function loadCityPricesAndCounts(city){
    +	return axios.get("/rest/quotations/loadCityPriceTrends?city="+city+"&type=2")
    +}
    +
    +function loadHotDistrict(city){
    +	return axios.get("/rest/districts/hotDistricts?city="+city+"&top=5")
    +}
    +
    +function clickTrend(city, type, num){
    +	
    +	if(type == 5){
    +		if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +				clicked('../user/codeSms.html',true,false,{},{},function(){
    +					startingLoadCharts(city, type, num);
    +				})
    +				return;
    +		} else {
    +			startingLoadCharts(city, type, num);
    +		}
    +	}else{
    +		startingLoadCharts(city, type, num);
    +	}
    +}
    +
    +function startingLoadCharts(city, type, num){
    +	axios.get("/rest/quotations/loadCityPriceTrends", {
    +	    params: {
    +	      city: city,
    +	      type:type
    +	    }
    +	}).then(function (response) {
    +		
    +		var datas = response.data.data					
    +		var prices = []
    +		var counts = []
    +		var times = datas.times
    +		for(var i in times){
    +			var time = times[i]
    +			time = parseInt(time.replace("-",""))
    +			var pm = datas.cityPriceMap;
    +			var cm = datas.countMap;
    +			if(pm){
    +				if(pm[time]){
    +					prices.push(pm[time])
    +				}else{
    +					prices.push(null)
    +				}
    +				
    +			}
    +			if(cm){
    +				if(cm[time]){
    +					counts.push(cm[time]);
    +				}else{
    +					counts.push(null);
    +				}
    +				
    +			}
    +		}
    +		
    +		$("div[tid='"+num+"']").find("a").removeClass("active")
    +		$("div[tid='"+num+"']").find("a[v='"+type+"']").addClass("active")
    +		showChart(num+"_price_chart", times, prices, counts)					
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +function IsInArray(arr, val){  
    +  var testStr=','+arr.join(",")+",";  
    +  return testStr.indexOf(","+val+",")!=-1;  
    +} 
    +
    +var t1 = window.setInterval(loadChart,1000);
    +function loadChart(){
    +	var d1 = myDatasVue.$data.cityDatas.length
    +	if(d1>0 && d1>=collCount){
    +		
    +		loadTabCity();
    +		
    +		loadUpOrDownChart();
    +		
    +		loadTrends();
    +		
    +		window.clearInterval(t1);
    +	}
    +}
    +
    +
    +function loadTabCity(){
    +	var datas = myDatasVue.$data.cityDatas
    +	var citys = []
    +	for(var i in datas){
    +		var obj = datas[i]
    +		var numObj = new Object();
    +		numObj.hrefId = "tabQuotation"+(parseInt(i)+2)
    +		numObj.city = obj.city
    +		citys.push(numObj)
    +	}
    +	citysVue.$data.citys = citys;
    +	
    +}
    +
    +function loadUpOrDownChart(){
    +	var datas = myDatasVue.$data.cityDatas
    +	for(var i in datas){
    +		var obj = datas[i]
    +		var num = parseInt(i)+1;
    +		
    +		if(obj.upRate){
    +			var cityObj1 = new Object();
    +			cityObj1.name= ""
    +			cityObj1.value = obj.upRate
    +			
    +			var cityObj2 = new Object();
    +			cityObj2.name= ""
    +			cityObj2.value = 100 - obj.upRate
    +			
    +			dataUp = [cityObj1, cityObj2]
    +			addUpChart(dataUp, num)
    +		}else{
    +			$("#"+num+"_up_chart").parent().parent().hide()
    +		}
    +		
    +		
    +		
    +		if(obj.downRate){
    +			var cityObj3 = new Object();
    +			cityObj3.name= ""
    +			cityObj3.value = obj.downRate
    +			
    +			var cityObj4 = new Object();
    +			cityObj4.name= ""
    +			cityObj4.value = 100 - obj.downRate
    +			
    +			dataDown = [cityObj3, cityObj4]
    +			addDownChart(dataDown, num)
    +		}else{
    +			$("#"+num+"_down_chart").parent().parent().hide()
    +		}
    +		
    +	}
    +}
    +
    +function loadTrends(){
    +	var datas = myDatasVue.$data.cityDatas
    +	for(var i in datas){
    +		var obj = datas[i]
    +		var num = parseInt(i)+1;
    +		
    +		var prices = []
    +		var counts = []
    +		var times = obj.times
    +		for(var i in times){
    +			var time = times[i]
    +			time = parseInt(time.replace("-",""))
    +			var pm = obj.cityPriceMap;
    +			var cm = obj.countMap;
    +			if(pm){
    +				prices.push(pm[time])
    +			}
    +			if(cm){
    +				counts.push(cm[time]);
    +			}
    +			
    +		}
    +
    +		showChart(num+"_price_chart", obj.times, prices, counts)
    +	}
    +}
    +
    +
    +function showChart(idDom, categories, prices, counts){
    +	if(!prices){
    +		prices = []
    +	}
    +	if(!counts){
    +		counts = []
    +	}
    +	/* 城市均价及挂牌走势 */
    +	var chart = Highcharts.chart(idDom, {
    +	  colors: ['#ff7f50','#87cefa'],
    +	    	title: {
    +	    		text: '城市楼市均价及挂牌走势',
    +	    		y: -30
    +	    	},
    +	       
    +	        xAxis: [{
    +	            categories:categories,
    +	            crosshair: true
    +	        }],
    +	        yAxis: [{ 
    +	        	
    +	            title: {
    +	    			text: '元/㎡',
    +	    			align: 'high',
    +	    			offset: 4,
    +	    			rotation: 0,
    +	    			y: -20
    +	    		},
    +	    		
    +	    		allowDecimals: false,
    +		        plotLines: [{
    +					value: 0,
    +					width: 1,
    +					color: '#808080'
    +				}]
    +	        }, { // Secondary yAxis
    +	        	title: {
    +	    			text: '套',
    +	    			align: 'high',
    +	    			offset: 25,
    +	    			rotation: 0,
    +	    			y: -20
    +	    		},
    +	    	
    +	    		allowDecimals: false,
    +	            opposite: true
    +	        }],
    +	        tooltip: {
    +	            shared: true
    +	        },
    +	    	credits: {
    +	    		enabled: false
    +	    	},
    +	        plotOptions: {
    +	    		line: {
    +	    			connectNulls: true  //该设置会连接空值点
    +	    		},
    +	    		
    +	    		series: {
    +	    			events: {
    +	    				legendItemClick: function(e) {
    +	    					return false;
    +	    				}
    +	    			},
    +	    			marker: {
    +	    				radius: 3,  //曲线点半径,默认是4
    +	    				symbol: 'circle'  //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
    +	    			}
    +	    		}
    +	    	},
    +	        series: [{
    +	            name: '均价',
    +	            type: 'line',
    +	            zIndex: 1,
    +	            tooltip: {
    +	                valueSuffix: ' 元/㎡'
    +	            },
    +	            data: prices
    +	        },{
    +	            name: '挂牌量',
    +	            type: 'column',
    +	            yAxis: 1,
    +	            tooltip: {
    +	                valueSuffix: ' 套'
    +	            },
    +	            data: counts
    +	        }]
    +		});
    +}
    +
    +
    +function showDistrictDetail(index, city){
    +	var datas = myDatasVue.$data.cityDatas
    +	if(datas){
    +		for(var i in datas){
    +			var obj = datas[i]
    +			if(obj.city == city){
    +				var dists = obj.nears
    +				var dm = dists[index]
    +				clicked('../district/detail.html',true,false,{},{city:dm.city,region:dm.region,name:dm.name});
    +			}
    +		}
    +	}
    +}
    +
    +function showRegionInfo(city){
    +	
    +	clicked('../house/regions.html',true,false,{},{city:city});
    +}
    +
    +function collectCity(city, index){
    +	if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +			clicked('../user/codeSms.html',true,false,{},{},function(){
    +				plus.webview.getWebviewById('views/house/houseDetail.html').reload();
    +				collectCity(city)
    +				plus.webview.getWebviewById('views/house/houseManageList.html').reload();
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +				
    +			})
    +			return;
    +	} else {
    +		docollectCity(city)
    +	}
    +	
    +}
    +
    +function docollectCity(city){
    +	axios.get("/rest/quotations/collectCity",{
    +			params:{
    +				city : city
    +			}
    +		}).then(function (response) {
    +		var msg = response.data.message;
    +		if(msg){
    +			var newRet1 = []
    +			var newRet2 = []
    +			if(msg == "取消关注成功"){
    +				var datas = myDatasVue.$data.cityDatas
    +				for(var i in datas){
    +					var obj = datas[i]
    +					if(obj.city != city){
    +						newRet1.push(obj)
    +					}
    +				}
    +				
    +				var data2s = citysVue.$data.citys
    +				var isLast = false;
    +				for(var i in data2s){
    +					var obj = data2s[i]
    +					if(obj.city != city){
    +						newRet2.push(obj)
    +					}else{
    +						if(parseInt(i)+1==data2s.length){
    +							isLast = true;
    +						}
    +					}
    +				}
    +				if(isLast){
    +					//window.location.reload();
    +					$("a[href='#tabQuotation0']").click();
    +				}
    +				myDatasVue.$data.cityDatas = newRet1;
    +				citysVue.$data.citys = newRet2
    +			}else{
    +				var datas = myDatasVue.$data.cityDatas
    +				for(var i in datas){
    +					var obj = datas[i]
    +					if(obj.city == city){
    +						obj.colled = true;
    +					}
    +				}
    +				
    +			}
    +		}
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    diff --git a/fangija-zsyf/js/searchDistrict-add.js b/fangija-zsyf/js/searchDistrict-add.js
    new file mode 100644
    index 0000000..34ac0de
    --- /dev/null
    +++ b/fangija-zsyf/js/searchDistrict-add.js
    @@ -0,0 +1,186 @@
    +var xhr;
    +var searchDistVue =	new Vue({
    +	el: '#searchList',
    +	data: {
    +		searchDistricts: []
    +	},methods: {
    +		openDistrictDetail:function(index) {
    +			saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city})
    +		    $("#input_address").val(this.searchDistricts[index].name);
    +		    $("[name=region]").val(this.searchDistricts[index].region)
    +		    $("[name=name]").val(this.searchDistricts[index].name)
    +		    $("[name=cityAddress]").val(this.searchDistricts[index].city)
    +		    $("[name=address]").val(this.searchDistricts[index].address)
    +		    $.closeModal(".popup-about02");
    +		    $("input").blur();
    +		}
    +	}
    +})
    +
    +$("#districtName").bind("input propertychange keyup" , function () {
    +    var keyword = $(this).val()
    +    if(xhr){
    +        xhr.abort()
    +    }
    +    if(keyword == ""){
    +       // $('.searchList #searchList').empty()
    +        return
    +    }
    +    
    +    axios.get(BASE_PATH+"/rest/districts/search", {
    +	    params: {
    +	      keywords : keyword, 
    +	      cityName:$("#input_city").val(),
    +	      max:20
    +	    }
    +	}).then(function (response) {
    +		
    +		var datas = response.data.data
    +		
    +		$('.hotList').hide();
    +		$('.historyList').hide();
    +        if(datas == null || datas.length == 0){
    +            $("#notFound").show()
    +            searchDistVue.$data.searchDistricts = []
    +            //$('.searchList #searchList').empty();
    +        }else{
    +            $("#notFound").hide()
    +            var dists = [];
    +			for(var i in datas){
    +				var o = datas[i]
    +				var map={city:o.city, region:o.district, name:o.name,address:o.address};
    +				dists.push(map);
    +			}
    +			//searchDistVue.$set("searchDistricts") = dists;
    +			searchDistVue.$data.searchDistricts=dists
    +        	$('.searchList').show();
    +        } 
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +
    +})
    +
    +function saveHistory(district) {
    +    var history = recover()
    +    var keys = []
    +    var newHistory = []
    +    newHistory.push(district)
    +    keys.push(district.city + "#" + district.region + "#" + district.name)
    +    for(var i = 0; i < history.length; i++){
    +        var key = history[i].city + "#" +history[i].region + "#" + history[i].name
    +        if($.inArray(key, keys) > -1){
    +            continue
    +        }
    +        if(newHistory.length < 5){
    +            keys.push(key)
    +            newHistory.push(history[i])
    +        }else{
    +            break
    +        }
    +    }
    +    //$.cookie('history',JSON.stringify(newHistory) ,{ expires: 7})
    +    localStorage.setItem("history", JSON.stringify(newHistory));
    +}
    +
    +function recover() {
    +    //var history = $.cookie('history')
    +    var history = localStorage.getItem('history');
    +    if(history == undefined || history == ''){
    +        return new Array()
    +    }
    +    return JSON.parse(history)
    +}
    +/* 弹出搜索小区页面 */
    +$("body").delegate(".open-about02", "click", function () {
    +	$("#districtName").val("");
    +    if($("#input_city").val()==""){
    +        $.toast("请选择城市")
    +        return false;
    +    }
    +    $('.historyList').show();
    +    $("#notFound").hide();
    +    $('.hotList').show();
    +    $('.searchList').hide();
    +    addHotDistricts($("#input_city").val());
    +    addHistory();
    +    $.popup(".popup-about02")
    +//  $("input").blur()
    +});  
    +var hotVue = new Vue({
    +	el: '#hotList',
    +	data: {
    +		hotDists: []
    +	},methods: {
    +		openHotDetail:function(index) {
    +			$("#input_address").val(this.hotDists[index].name);
    +		    $("[name=region]").val(this.hotDists[index].region);
    +		    $("[name=name]").val(this.hotDists[index].name);
    +		    $("[name=cityAddress]").val(this.hotDists[index].city);
    +//		    $.closeModal(".popup-about02");
    +//		    $("input").blur();
    +		}
    +	}
    +})
    +//添加热门小区
    +function addHotDistricts(cityParam){
    +	axios.get(BASE_PATH+"/rest/districts/hotDistricts", {
    +	    params: {
    +	      city: cityParam,
    +	      top:6
    +	    }
    +	}).then(function (response) {
    +		var datas = response.data.data
    +		if(datas.length>0){
    +			var dists = [];
    +			for(var i in datas){
    +				
    +				var o = datas[i]
    +				var map={city:o.city, region:o.region, name:o.name};
    +				dists.push(map);
    +			}
    +			hotVue.$data.hotDists=dists
    +		}
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +var histories = [];
    +var historyVue = new Vue({
    +		el: '#districtList',
    +		data: {
    +			histories: histories
    +		},methods: {
    +			openHistoryDetail:function(index) {
    +				$("#input_address").val(this.histories[index].name);
    +			    $("[name=region]").val(this.histories[index].region);
    +			    $("[name=name]").val(this.histories[index].name);
    +			    $("[name=cityAddress]").val(this.histories[index].city);
    +			    $.closeModal(".popup-about02");
    +//			    $("input").blur();
    +			}
    +		}
    +})
    +function addHistory(){
    +	var history = recover()
    +	if(history.length>0){
    +		histories = []
    +		$(history).each(function(){
    +		    var map={city:this.city, region:this.district, name:this.name};
    +		    histories.push(map)
    +		})
    +		historyVue.histories=histories;
    +		
    +		
    +	}/*else{
    +		$(".historyList #districtList").empty();
    +	}*/
    +}
    +
    +//点击清空
    +$("#clearSearchHistory").click(function(){
    +	localStorage.removeItem('history')
    +	historyVue.histories=[];
    +});
    +
    diff --git a/fangija-zsyf/js/searchDistrict-app.js b/fangija-zsyf/js/searchDistrict-app.js
    new file mode 100644
    index 0000000..fbe4401
    --- /dev/null
    +++ b/fangija-zsyf/js/searchDistrict-app.js
    @@ -0,0 +1,194 @@
    +var xhr;
    +var searchDistVue =	new Vue({
    +	el: '#searchList',
    +	data: {
    +		searchDistricts: []
    +	},methods: {
    +		openDistrictDetail:function(index) {
    +			saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city})
    +			//clicked(BASE_PATH+'/district/details?city='+this.searchDistricts[index].city+'&region='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true);
    +			if(cat == "rent"){
    +				clicked('views/rent/rent.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name})
    +			}else{
    +				clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
    +			}
    +		}
    +	}
    +})
    +
    +var hotDistVue = new Vue({
    +				el: '#hotList',
    +				data: {
    +					hotDists: []
    +				}
    +			})
    +
    +$("#districtName").bind("input propertychange keyup" , function () {
    +    var keyword = $(this).val()
    +    if(xhr){
    +        xhr.abort()
    +    }
    +    if(keyword == ""){
    +       // $('.searchList #searchList').empty()
    +        return
    +    }
    +    
    +    axios.get(BASE_PATH+"/rest/districts/search", {
    +	    params: {
    +	      keywords : keyword, 
    +	      cityName:$("#input_city").text(),
    +	      max:20
    +	    }
    +	}).then(function (response) {
    +		
    +		var datas = response.data.data
    +		
    +		$('.hotList').hide();
    +		$('.historyList').hide();
    +        if(datas == null || datas.length == 0){
    +            $("#notFound").show()
    +            searchDistVue.$data.searchDistricts = []
    +            //$('.searchList #searchList').empty();
    +        }else{
    +        	
    +        	console.log(keyword +" "+datas.length);
    +            $("#notFound").hide()
    +            var dists = [];
    +			for(var i in datas){
    +				var o = datas[i]
    +				var map={city:o.city, region:o.district, name:o.name,address:o.address};
    +				dists.push(map);
    +			}
    +			
    +			//searchDistVue.$set("searchDistricts") = dists;
    +			searchDistVue.$data.searchDistricts=dists
    +        	$('.searchList').show();
    +        } 
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +
    +})
    +
    +function saveHistory(district) {
    +    var history = recover()
    +    var keys = []
    +    var newHistory = []
    +    newHistory.push(district)
    +    keys.push(district.city + "#" + district.region + "#" + district.name)
    +    for(var i = 0; i < history.length; i++){
    +        var key = history[i].city + "#" +history[i].region + "#" + history[i].name
    +        if($.inArray(key, keys) > -1){
    +            continue
    +        }
    +        if(newHistory.length < 5){
    +            keys.push(key)
    +            newHistory.push(history[i])
    +        }else{
    +            break
    +        }
    +    }
    +    //$.cookie('history',JSON.stringify(newHistory) ,{ expires: 7})
    +    localStorage.setItem("history", JSON.stringify(newHistory));
    +}
    +
    +function recover() {
    +    //var history = $.cookie('history')
    +    var history = localStorage.getItem('history');
    +    if(history == undefined || history == ''){
    +        return new Array()
    +    }
    +    return JSON.parse(history)
    +}
    +/* 弹出搜索小区页面 */
    +$("body").delegate(".open-about02", "click", function () {
    +	$("#districtName").val("");
    +    if($("#input_city").text()==""){
    +        $.toast("请选择城市")
    +        return false;
    +    }
    +    
    +    var text = $(this).text().trim();
    +   
    +    if(text=="房租查询"){
    +    	cat = "rent"
    +    }else{
    +    	cat = "district"
    +    }
    +    $('.historyList').show();
    +    $("#notFound").hide();
    +    $('.hotList').show();
    +    $('.searchList').hide();
    +    addHotDistricts($("#input_city").text());
    +    addHistory();
    +    $.popup(".popup-about02")
    +    $("input").blur()
    +});  
    +
    +//添加热门小区
    +function addHotDistricts(cityParam){
    +	axios.get(BASE_PATH+"/rest/districts/hotDistricts", {
    +	    params: {
    +	      city: cityParam,
    +	      top:6
    +	    }
    +	}).then(function (response) {
    +		var datas = response.data.data
    +		if(datas.length>0){
    +			var dists = [];
    +			for(var i in datas){
    +				
    +				var o = datas[i]
    +				var map={city:o.city, region:o.region, name:o.name};
    +				dists.push(map);
    +			}
    +			
    +			
    +			hotDistVue.$data.hotDists=dists
    +			
    +		}
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +var histories = [];
    +var historyVue = new Vue({
    +		el: '#districtList',
    +		data: {
    +			histories: histories
    +		},methods: {
    +			openHistoryDetail:function(index) {
    +				if(cat == "rent"){
    +					clicked('views/rent/rent.html',true,false,{},{city:this.histories[index].city,region:this.histories[index].region,name:this.histories[index].name})
    +				}else{
    +					clicked('views/district/detail.html',true,false,{},{city:this.histories[index].city,region:this.histories[index].region,name:this.histories[index].name});
    +				}
    +			}
    +		}
    +})
    +function addHistory(){
    +	var history = recover()
    +	if(history.length>0){
    +		histories = []
    +		$(history).each(function(){
    +		    var map={city:this.city, region:this.district, name:this.name};
    +		    histories.push(map)
    +		})
    +		historyVue.histories=histories;
    +		
    +		
    +	}/*else{
    +		$(".historyList #districtList").empty();
    +	}*/
    +}
    +
    +//点击清空
    +$("#clearSearchHistory").click(function(){
    +	//$.cookie('history',JSON.stringify([]) ,{ expires: 7});
    +	localStorage.removeItem('history')
    +	historyVue.histories=[];
    +	//$("#districtList").empty();
    +	 //$.popup(".popup-about02")
    +});
    +
    diff --git a/fangija-zsyf/js/shara/sharaMine.js b/fangija-zsyf/js/shara/sharaMine.js
    new file mode 100644
    index 0000000..fbe4551
    --- /dev/null
    +++ b/fangija-zsyf/js/shara/sharaMine.js
    @@ -0,0 +1,89 @@
    +/**
    + * 
    + * 更新分享服务
    + */
    +function updateSerivces(){
    +    plus.share.getServices( function(s){
    +        shares={};
    +        for(var i in s){
    +            var t=s[i];
    +            shares[t.id]=t;
    +        }
    +    }, function(e){
    +        plus.nativeUI.alert("获取分享服务列表失败:"+e.message );
    +    } );
    +}
    +/**
    +   * 分享操作
    +   * @param {JSON} sb 分享操作对象s.s为分享通道对象(plus.share.ShareService)
    +   * @param {Boolean} bh 是否分享链接
    +   */
    +function shareAction(sb,bh) {
    +    if(!sb||!sb.s){
    +        plus.nativeUI.alert("无效的分享服务!");
    +        return;
    +    }
    +    var msg={content:sharehrefDes,extra:{scene:sb.x}};
    +    if(bh){
    +        msg.href=shareUrl;
    +        if(sharehrefTitle&&sharehrefTitle!=""){
    +            msg.title=sharehrefTitle;
    +        }
    +        if(sharehrefTitle&&sharehrefTitle!=""){ 
    +			if(sb.title=="新浪微博"){
    +            	msg.content=shareUrl+"\t"+sharehrefTitle;
    +            }else{
    +            	msg.content=sharehrefTitle;
    +            }
    +       }
    +        msg.thumbs=[picUrl];
    +        msg.pictures=[picUrl];
    +    }else{
    +        if(pic&&pic.realUrl){
    +            msg.pictures=[pic.realUrl];
    +        }
    +    }
    +	// 发送分享
    +    if ( sb.s.authenticated ) {
    +        shareMessage(msg,sb.s);
    +    } else {
    +        sb.s.authorize( function(){
    +                shareMessage(msg,sb.s);
    +            },function(e){
    +                plus.nativeUI.alert("认证授权失败:"+e.code+" - "+e.message );
    +            
    +        });
    +    }
    +}
    +/**
    +   * 发送分享消息
    +   * @param {JSON} msg
    +   * @param {plus.share.ShareService} s
    +   */
    +function shareMessage(msg,s){
    +    s.send( msg, function(){
    +        plus.nativeUI.alert("分享到\""+s.description+"\"成功! " );
    +        
    +    }, function(e){
    +    	console.log(e.code+"========="+e.message)
    +        plus.nativeUI.alert( "分享到\""+s.description+"\"失败 !");
    +    
    +    } );
    +}
    +
    + // 分析链接
    +    function shareHref(){
    +        var shareBts=[];
    +        // 更新分享列表
    +        var ss=shares['weixin'];
    +        ss&&ss.nativeClient&&(shareBts.push({title:'微信朋友圈',s:ss,x:'WXSceneTimeline'}),
    +        shareBts.push({title:'微信好友',s:ss,x:'WXSceneSession'}));
    +        ss=shares['qq'];
    +        ss&&ss.nativeClient&&shareBts.push({title:'QQ',s:ss});
    +        ss=shares['sinaweibo'];
    +		ss&&shareBts.push({title:'新浪微博',s:ss});
    +        // 弹出分享列表
    +        shareBts.length>0?plus.nativeUI.actionSheet({title:'分享链接',cancel:'取消',buttons:shareBts},function(e){
    +            (e.index>0)&&shareAction(shareBts[e.index-1],true);
    +        }):plus.nativeUI.alert('当前环境无法支持分享链接操作!');
    +    }
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/shortcut.js b/fangija-zsyf/js/shortcut.js
    new file mode 100644
    index 0000000..25632ca
    --- /dev/null
    +++ b/fangija-zsyf/js/shortcut.js
    @@ -0,0 +1,43 @@
    +(function(w){
    +	
    +document.addEventListener('plusready',function(){
    +	checkArguments();
    +},false);
    +
    +// 判断启动方式
    +function checkArguments(){
    +	console.log("Shortcut-plus.runtime.launcher: "+plus.runtime.launcher);
    +	if(plus.runtime.launcher=='shortcut'){
    +	try{
    +		var cmd = JSON.parse(plus.runtime.arguments);
    +		console.log("Shortcut-plus.runtime.arguments: "+plus.runtime.arguments)
    +		var type=cmd&&cmd.type;
    +		switch(type){
    +			case 'share':
    +				openWebview('plus/share.html');
    +			break;
    +			case 'about':
    +				openWebview('about.html','zoom-fade-out',true);
    +			break;
    +			default:
    +			break;
    +		}
    +	}catch(e){
    +		console.log("Shortcut-exception: "+e);
    +	}
    +	}
    +}
    +// 打开页面
    +function openWebview(id,a,s){
    +	if(!_openw||_openw.id!=id){
    +		clicked(id,a,s);
    +	}
    +}
    +
    +// 处理从后台恢复
    +document.addEventListener('newintent',function(){
    +	console.log("Shortcut-newintent");
    +	checkArguments();
    +},false);
    +
    +})(window);
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/sm.js b/fangija-zsyf/js/sm.js
    new file mode 100644
    index 0000000..c65de51
    --- /dev/null
    +++ b/fangija-zsyf/js/sm.js
    @@ -0,0 +1,341 @@
    +/*!
    + * =====================================================
    + * SUI Mobile - http://m.sui.taobao.org/
    + *
    + * =====================================================
    + */
    +;$.smVersion = "0.6.2";+function ($) {
    +    "use strict";
    +
    +    //全局配置
    +    var defaults = {
    +        autoInit: false, //自动初始化页面
    +        showPageLoadingIndicator: true, //push.js加载页面的时候显示一个加载提示
    +        router: true, //默认使用router
    +        swipePanel: "left", //滑动打开侧栏
    +        swipePanelOnlyClose: true  //只允许滑动关闭,不允许滑动打开侧栏
    +    };
    +
    +    $.smConfig = $.extend(defaults, $.config);
    +
    +}(Zepto);
    +
    +
    +
    +/*======================================================
    +************   Modals   ************
    +======================================================*/
    +/*jshint unused: false*/
    ++function ($) {
    +    "use strict";
    +    var _modalTemplateTempDiv = document.createElement('div');
    +
    +    $.modalStack = [];
    +
    +    $.modalStackClearQueue = function () {
    +        if ($.modalStack.length) {
    +            ($.modalStack.shift())();
    +        }
    +    };
    +    $.modal = function (params) {
    +        params = params || {};
    +        var modalHTML = '';
    +        var buttonsHTML = '';
    +        if (params.buttons && params.buttons.length > 0) {
    +            for (var i = 0; i < params.buttons.length; i++) {
    +                buttonsHTML += '<span class="modal-button' + (params.buttons[i].bold ? ' modal-button-bold' : '') + '">' + params.buttons[i].text + '</span>';
    +            }
    +        }
    +        var extraClass = params.extraClass || '';
    +        var titleHTML = params.title ? '<div class="modal-title">' + params.title + '</div>' : '';
    +        var textHTML = params.text ? '<div class="modal-text">' + params.text + '</div>' : '';
    +        var afterTextHTML = params.afterText ? params.afterText : '';
    +        var noButtons = !params.buttons || params.buttons.length === 0 ? 'modal-no-buttons' : '';
    +        var verticalButtons = params.verticalButtons ? 'modal-buttons-vertical' : '';
    +        modalHTML = '<div class="modal ' + extraClass + ' ' + noButtons + '"><div class="modal-inner">' + (titleHTML + textHTML + afterTextHTML) + '</div><div class="modal-buttons ' + verticalButtons + '">' + buttonsHTML + '</div></div>';
    +
    +        _modalTemplateTempDiv.innerHTML = modalHTML;
    +
    +        var modal = $(_modalTemplateTempDiv).children();
    +
    +        $(defaults.modalContainer).append(modal[0]);
    +
    +        // Add events on buttons
    +        modal.find('.modal-button').each(function (index, el) {
    +            $(el).on('click', function (e) {
    +                if (params.buttons[index].close !== false) $.closeModal(modal);
    +                if (params.buttons[index].onClick) params.buttons[index].onClick(modal, e);
    +                if (params.onClick) params.onClick(modal, index);
    +            });
    +        });
    +        $.openModal(modal);
    +        return modal[0];
    +    };
    +    $.openModal = function (modal, cb) {
    +        modal = $(modal);
    +        var isModal = modal.hasClass('modal'),
    +            isNotToast = !modal.hasClass('toast');
    +        if ($('.modal.modal-in:not(.modal-out)').length && defaults.modalStack && isModal && isNotToast) {
    +            $.modalStack.push(function () {
    +                $.openModal(modal, cb);
    +            });
    +            return;
    +        }
    +        var isPopup = modal.hasClass('popup');
    +        var isLoginScreen = modal.hasClass('login-screen');
    +        var isPickerModal = modal.hasClass('picker-modal');
    +        var isToast = modal.hasClass('toast');
    +        if (isModal) {
    +            modal.show();
    +            modal.css({
    +                marginTop: - Math.round(modal.outerHeight() / 2) + 'px'
    +            });
    +        }
    +        if (isToast) {
    +            modal.css({
    +                marginLeft: - Math.round(modal.outerWidth() / 2 / 1.185) + 'px' //1.185 是初始化时候的放大效果
    +            });
    +        }
    +
    +        var overlay;
    +        if (!isLoginScreen && !isPickerModal && !isToast) {
    +            if ($('.modal-overlay').length === 0 && !isPopup) {
    +                $(defaults.modalContainer).append('<div class="modal-overlay"></div>');
    +            }
    +            if ($('.popup-overlay').length === 0 && isPopup) {
    +                $(defaults.modalContainer).append('<div class="popup-overlay"></div>');
    +            }
    +            overlay = isPopup ? $('.popup-overlay') : $('.modal-overlay');
    +        }
    +
    +        //Make sure that styles are applied, trigger relayout;
    +        var clientLeft = modal[0].clientLeft;
    +
    +        // Trugger open event
    +        modal.trigger('open');
    +
    +        // Picker modal body class
    +        if (isPickerModal) {
    +            $(defaults.modalContainer).addClass('with-picker-modal');
    +        }
    +
    +        // Classes for transition in
    +        if (!isLoginScreen && !isPickerModal && !isToast) overlay.addClass('modal-overlay-visible');
    +        modal.removeClass('modal-out').addClass('modal-in').transitionEnd(function (e) {
    +            if (modal.hasClass('modal-out')) modal.trigger('closed');
    +            else modal.trigger('opened');
    +        });
    +        // excute callback
    +        if (typeof cb === 'function') {
    +          cb.call(this);
    +        }
    +        return true;
    +    };
    +    $.closeModal = function (modal) {
    +        modal = $(modal || '.modal-in');
    +        if (typeof modal !== 'undefined' && modal.length === 0) {
    +            return;
    +        }
    +        var isModal = modal.hasClass('modal'),
    +            isPopover = modal.hasClass('popover'),
    +            isPopup = modal.hasClass('popup'),
    +            isToast = modal.hasClass('toast'),
    +            isLoginScreen = modal.hasClass('login-screen'),
    +            isPickerModal = modal.hasClass('picker-modal'),
    +            removeOnClose = modal.hasClass('remove-on-close'),
    +            overlay = isPopup ? $('.popup-overlay') : $('.modal-overlay');
    +        if (isPopup){
    +            if (modal.length === $('.popup.modal-in').length) {
    +                overlay.removeClass('modal-overlay-visible');
    +            }
    +        }
    +        else if (!(isPickerModal || isToast)) {
    +            overlay.removeClass('modal-overlay-visible');
    +        }
    +
    +        modal.trigger('close');
    +
    +        // Picker modal body class
    +        if (isPickerModal) {
    +            $(defaults.modalContainer).removeClass('with-picker-modal');
    +            $(defaults.modalContainer).addClass('picker-modal-closing');
    +        }
    +        if (!isPopover) {
    +            modal.removeClass('modal-in').addClass('modal-out').transitionEnd(function (e) {
    +                if (modal.hasClass('modal-out')) modal.trigger('closed');
    +                else modal.trigger('opened');
    +                
    +                if (isPickerModal) {
    +                    $(defaults.modalContainer).removeClass('picker-modal-closing');
    +                }
    +                if (isPopup || isLoginScreen || isPickerModal) {
    +                    modal.removeClass('modal-out').hide();
    +                    if (removeOnClose && modal.length > 0) {
    +                        modal.remove();
    +                    }
    +                }
    +                else {
    +                    modal.remove();
    +                }
    +            });
    +            if (isModal &&  defaults.modalStack ) {
    +                $.modalStackClearQueue();
    +            }
    +        }
    +        else {
    +            modal.removeClass('modal-in modal-out').trigger('closed').hide();
    +            if (removeOnClose) {
    +                modal.remove();
    +            }
    +        }
    +        return true;
    +        
    +    };
    +    function handleClicks(e) {
    +        /*jshint validthis:true */
    +        var clicked = $(this);
    +        var url = clicked.attr('href');
    +
    +
    +        //Collect Clicked data- attributes
    +        var clickedData = clicked.dataset();
    +        
    +        // Popover
    +        if (clicked.hasClass('open-popover')) {
    +            var popover;
    +            if (clickedData.popover) {
    +                popover = clickedData.popover;
    +            }
    +            else popover = '.popover';
    +            $.popover(popover, clicked);
    +        }
    +        if (clicked.hasClass('close-popover')) {
    +            $.closeModal('.popover.modal-in');
    +        }
    +        
    +        // Popup
    +        var popup;
    +        if (clicked.hasClass('open-popup')) {
    +            if (clickedData.popup) {
    +                popup = clickedData.popup;
    +            }
    +            else popup = '.popup';
    +            $.popup(popup);
    +        }
    +        if (clicked.hasClass('close-popup')) {
    +            if (clickedData.popup) {
    +                popup = clickedData.popup;
    +            }
    +            else popup = '.popup.modal-in';
    +            $.closeModal(popup);
    +        }
    +
    +        // Close Modal
    +        if (clicked.hasClass('modal-overlay')) {
    +            if ($('.modal.modal-in').length > 0 && defaults.modalCloseByOutside)
    +                $.closeModal('.modal.modal-in');
    +            if ($('.actions-modal.modal-in').length > 0 && defaults.actionsCloseByOutside)
    +                $.closeModal('.actions-modal.modal-in');
    +            
    +            if ($('.popover.modal-in').length > 0) $.closeModal('.popover.modal-in');
    +        }
    +        if (clicked.hasClass('popup-overlay')) {
    +            if ($('.popup.modal-in').length > 0 && defaults.popupCloseByOutside)
    +                $.closeModal('.popup.modal-in');
    +        }
    +
    +    }
    +    $(document).on('click', ' .modal-overlay, .popup-overlay, .close-popup, .open-popup, .close-picker', handleClicks);
    +    var defaults =  $.modal.prototype.defaults  = {
    +        modalStack: true,
    +        modalButtonOk: '确定',
    +        modalButtonCancel: '取消',
    +        modalPreloaderTitle: '加载中',
    +        modalContainer : document.body
    +    };
    +}(Zepto);
    +
    +
    +
    ++ function($) {
    +    "use strict";
    +    
    +    var today = new Date();
    +    var getDays = function(max) {
    +        var days = [];
    +        for(var i=1; i<= (max||31);i++) {
    +            days.push(i < 10 ? "0"+i : i);
    +        }
    +        return days;
    +    };
    +
    +    var getDaysByMonthAndYear = function(month, year) {
    +        var int_d = new Date(year, parseInt(month)+1-1, 1);
    +        var d = new Date(int_d - 1);
    +        return getDays(d.getDate());
    +    };
    +
    +    var formatNumber = function (n) {
    +        return n < 10 ? "0" + n : n;
    +    };
    +
    +    var initMonthes = ('01 02 03 04 05 06 07 08 09 10 11 12').split(' ');
    +
    +    var initYears = (function () {
    +        var arr = [];
    +        for (var i = 1950; i <= 2050; i++) { arr.push(i); }
    +        return arr;
    +    })();
    +
    +
    +    var defaults = {
    +
    +        rotateEffect: false,  //为了性能
    +
    +        value: [today.getFullYear(), formatNumber(today.getMonth()+1), formatNumber(today.getDate())],
    +
    +        onChange: function (picker, values, displayValues) {
    +        	var inputId = picker.params.input.id;
    +        	var deftime = $("#"+inputId).val();
    +        	if(deftime == ""){
    +        		picker.cols[0].setValue(today.getFullYear())
    +        	}
    +            var days = getDaysByMonthAndYear(picker.cols[1].value, picker.cols[0].value);
    +            var currentValue = picker.cols[2].value;
    +            if(currentValue > days.length) currentValue = days.length;
    +            picker.cols[2].setValue(currentValue);
    +        },
    +
    +        formatValue: function (p, values, displayValues) {
    +            return displayValues[0] + '-' + values[1] + '-' + values[2];
    +        },
    +
    +        cols: [
    +            // Years
    +        {
    +            values: initYears
    +        },
    +        // Months
    +        {
    +            values: initMonthes
    +        },
    +        // Days
    +        {
    +            values: getDays()
    +        }
    +        ]
    +    };
    +
    +    $.fn.datetimePicker = function(params) {
    +        return this.each(function() {
    +            if(!this) return;
    +            var p = $.extend(defaults, params);
    +            $(this).picker(p);
    +            if (params.value) $(this).val(p.formatValue(p, p.value, p.value));
    +        });
    +    };
    +
    +}(Zepto);
    +
    +
    +
    diff --git a/fangija-zsyf/js/update.js b/fangija-zsyf/js/update.js
    new file mode 100644
    index 0000000..5dbad39
    --- /dev/null
    +++ b/fangija-zsyf/js/update.js
    @@ -0,0 +1,189 @@
    +/**
    + * 判断应用升级模块,从url地址下载升级描述文件到本地local路径
    + * yanyilin@dcloud.io
    + * 
    + * 升级文件为JSON格式数据,如下:
    +{
    +	"appid":"HelloH5",
    +    "iOS":{
    +    	"version":"iOS新版本号,如:1.0.0",
    +    	"note":"iOS新版本描述信息,多行使用\n分割",
    +    	"url":"Appstore路径,如:itms-apps://itunes.apple.com/cn/app/hello-h5+/id682211190?l=zh&mt=8"
    +    },
    +    "Android":{
    +    	"version":"Android新版本号,如:1.0.1",
    +    	"note":"Android新版本描述信息,多行使用\n分割",
    +    	"url":"apk文件下载地址,如:http://www.dcloud.io/helloh5p/HelloH5.apk"
    +    }
    +}
    + *
    + */
    +(function(w){
    +var server="http://www.dcloud.io/helloh5/update.json",//获取升级描述文件服务器地址
    +localDir="update",localFile="update.json",//本地保存升级描述目录和文件名
    +keyUpdate="updateCheck",//取消升级键名
    +keyAbort="updateAbort",//忽略版本键名
    +checkInterval=604800000,//升级检查间隔,单位为ms,7天为7*24*60*60*1000=604800000, 如果每次启动需要检查设置值为0
    +dir=null;
    +
    +/**
    + * 准备升级操作
    + * 创建升级文件保存目录
    + */
    +function initUpdate(){
    +	// 在流应用模式下不需要检测升级操作
    +	if(navigator.userAgent.indexOf('StreamApp')>=0){
    +		return;
    +	}
    +	// 打开doc根目录
    +	plus.io.requestFileSystem( plus.io.PRIVATE_DOC, function(fs){
    +		fs.root.getDirectory( localDir, {create:true}, function(entry){
    +			dir = entry;
    +			checkUpdate();
    +		}, function(e){
    +			console.log( "准备升级操作,打开update目录失败:"+e.message );
    +		});
    +	},function(e){
    +		console.log( "准备升级操作,打开doc目录失败:"+e.message );
    +	});
    +}
    +
    +/**
    + * 检测程序升级
    + */
    +function checkUpdate() {
    +	// 判断升级检测是否过期
    +	var lastcheck = plus.storage.getItem( keyUpdate );
    +	if ( lastcheck ) {
    +		var dc = parseInt( lastcheck );
    +		var dn = (new Date()).getTime();
    +		if ( dn-dc < checkInterval ) {	// 未超过上次升级检测间隔,不需要进行升级检查
    +			return;
    +		}
    +		// 取消已过期,删除取消标记
    +		plus.storage.removeItem( keyUpdate );
    +	}
    +	// 读取本地升级文件
    +	dir.getFile( localFile, {create:false}, function(fentry){
    +		fentry.file( function(file){
    +			var reader = new plus.io.FileReader();
    +			reader.onloadend = function ( e ) {
    +				fentry.remove();
    +				var data = null;
    +				try{
    +					data=JSON.parse(e.target.result);
    +				}catch(e){
    +					console.log( "读取本地升级文件,数据格式错误!" );
    +					return;
    +				}
    +				checkUpdateData( data );
    +			}
    +			reader.readAsText(file);
    +		}, function(e){
    +			console.log( "读取本地升级文件,获取文件对象失败:"+e.message );
    +			fentry.remove();
    +		} );
    +	}, function(e){
    +		// 失败表示文件不存在,从服务器获取升级数据
    +		getUpdateData();
    +	});
    +}
    +
    +/**
    + * 检查升级数据
    + */
    +function checkUpdateData( j ){
    +	var curVer=plus.runtime.version,
    +	inf = j[plus.os.name];
    +	if ( inf ){
    +		var srvVer = inf.version;
    +		// 判断是否存在忽略版本号
    +		var vabort = plus.storage.getItem( keyAbort );
    +		if ( vabort && srvVer==vabort ) {
    +			// 忽略此版本
    +			return;
    +		}
    +		// 判断是否需要升级
    +		if ( compareVersion(curVer,srvVer) ) {
    +			// 提示用户是否升级
    +			plus.nativeUI.confirm( inf.note, function(i){
    +				if ( 0==i.index ) {
    +					plus.runtime.openURL( inf.url );
    +				} else if ( 1==i.index ) {
    +					plus.storage.setItem( keyAbort, srvVer );
    +					plus.storage.setItem( keyUpdate, (new Date()).getTime().toString() );
    +				} else {
    +					plus.storage.setItem( keyUpdate, (new Date()).getTime().toString() );
    +				}
    +			}, inf.title, ["立即更新","跳过此版本","取  消"] );
    +		}
    +	}
    +}
    +
    +/**
    + * 从服务器获取升级数据
    + */
    +function getUpdateData(){
    +	var xhr = new plus.net.XMLHttpRequest();
    +	xhr.onreadystatechange = function () {
    +        switch ( xhr.readyState ) {
    +            case 4:
    +                if ( xhr.status == 200 ) {
    +                	// 保存到本地文件中
    +                	dir.getFile( localFile, {create:true}, function(fentry){
    +                		fentry.createWriter( function(writer){
    +                			writer.onerror = function(){
    +                				console.log( "获取升级数据,保存文件失败!" );
    +                			}
    +                			writer.write( xhr.responseText );
    +                		}, function(e){
    +                			console.log( "获取升级数据,创建写文件对象失败:"+e.message );
    +                		} );
    +                	}, function(e){
    +                		console.log( "获取升级数据,打开保存文件失败:"+e.message );
    +                	});
    +                } else {
    +                	console.log( "获取升级数据,联网请求失败:"+xhr.status );
    +                }
    +                break;
    +            default :
    +                break;
    +        }
    +	}
    +	xhr.open( "GET", server );
    +	xhr.send();
    +}
    +
    +/**
    + * 比较版本大小,如果新版本nv大于旧版本ov则返回true,否则返回false
    + * @param {String} ov
    + * @param {String} nv
    + * @return {Boolean} 
    + */
    +function compareVersion( ov, nv ){
    +	if ( !ov || !nv || ov=="" || nv=="" ){
    +		return false;
    +	}
    +	var b=false,
    +	ova = ov.split(".",4),
    +	nva = nv.split(".",4);
    +	for ( var i=0; i<ova.length&&i<nva.length; i++ ) {
    +		var so=ova[i],no=parseInt(so),sn=nva[i],nn=parseInt(sn);
    +		if ( nn>no || sn.length>so.length  ) {
    +			return true;
    +		} else if ( nn<no ) {
    +			return false;
    +		}
    +	}
    +	if ( nva.length>ova.length && 0==nv.indexOf(ov) ) {
    +		return true;
    +	}
    +}
    +
    +if ( w.plus ) {
    +	initUpdate();
    +} else {
    +	document.addEventListener("plusready", initUpdate, false );
    +}
    +
    +})(window);
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/update.json b/fangija-zsyf/js/update.json
    new file mode 100644
    index 0000000..083c05e
    --- /dev/null
    +++ b/fangija-zsyf/js/update.json
    @@ -0,0 +1,15 @@
    +{
    +    "appid":"HelloH5",
    +    "iOS":{
    +    	"version":"0.7.0",
    +    	"title":"Hello H5+(0.7.0)版本更新",
    +    	"note":"新增自动升级检测功能\n新增分享功能演示页面\n新增推送功能演示页面\n",
    +    	"url":"itms-apps://itunes.apple.com/cn/app/hello-h5+/id682211190?l=zh&mt=8"
    +    },
    +    "Android":{
    +    	"version":"0.7.0",
    +    	"title":"Hello H5+(0.7.0)版本更新",
    +    	"note":"新增自动升级检测功能\n新增分享功能演示页面\n新增推送功能演示页面\n",
    +    	"url":"http://d.m3w.cn/helloh5p/HelloH5.apk"
    +    }
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/updateVersion/searchDistrict-app.js b/fangija-zsyf/js/updateVersion/searchDistrict-app.js
    new file mode 100644
    index 0000000..7123fe0
    --- /dev/null
    +++ b/fangija-zsyf/js/updateVersion/searchDistrict-app.js
    @@ -0,0 +1,174 @@
    +var xhr;
    +var searchDistVue =	new Vue({
    +	el: '#searchList',
    +	data: {
    +		searchDistricts: []
    +	},methods: {
    +		openDistrictDetail:function(index) {
    +			saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city})
    +			clicked(BASE_PATH+'/district/details?city='+this.searchDistricts[index].city+'&region='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true);
    +		}
    +	}
    +})
    +
    +$("#districtName").bind("input propertychange keyup" , function () {
    +    var keyword = $(this).val()
    +    if(xhr){
    +        xhr.abort()
    +    }
    +    if(keyword == ""){
    +       // $('.searchList #searchList').empty()
    +        return
    +    }
    +    
    +    axios.get(BASE_PATH+"/rest/districts/search", {
    +	    params: {
    +	      keywords : keyword, 
    +	      cityName:$("#input_city").text(),
    +	      max:20
    +	    }
    +	}).then(function (response) {
    +		
    +		var datas = response.data.data
    +		
    +		$('.hotList').hide();
    +		$('.historyList').hide();
    +        if(datas == null || datas.length == 0){
    +            $("#notFound").show()
    +            searchDistVue.$data.searchDistricts = []
    +            //$('.searchList #searchList').empty();
    +        }else{
    +        	
    +        	console.log(keyword +" "+datas.length);
    +            $("#notFound").hide()
    +            var dists = [];
    +			for(var i in datas){
    +				var o = datas[i]
    +				var map={city:o.city, region:o.district, name:o.name,address:o.address};
    +				dists.push(map);
    +			}
    +			
    +			//searchDistVue.$set("searchDistricts") = dists;
    +			searchDistVue.$data.searchDistricts=dists
    +        	$('.searchList').show();
    +        } 
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +
    +})
    +
    +function saveHistory(district) {
    +    var history = recover()
    +    var keys = []
    +    var newHistory = []
    +    newHistory.push(district)
    +    keys.push(district.city + "#" + district.region + "#" + district.name)
    +    for(var i = 0; i < history.length; i++){
    +        var key = history[i].city + "#" +history[i].region + "#" + history[i].name
    +        if($.inArray(key, keys) > -1){
    +            continue
    +        }
    +        if(newHistory.length < 5){
    +            keys.push(key)
    +            newHistory.push(history[i])
    +        }else{
    +            break
    +        }
    +    }
    +    //$.cookie('history',JSON.stringify(newHistory) ,{ expires: 7})
    +    localStorage.setItem("history", JSON.stringify(newHistory));
    +}
    +
    +function recover() {
    +    //var history = $.cookie('history')
    +    var history = localStorage.getItem('history');
    +    if(history == undefined || history == ''){
    +        return new Array()
    +    }
    +    return JSON.parse(history)
    +}
    +/* 弹出搜索小区页面 */
    +$("body").delegate(".open-about02", "click", function () {
    +	$("#districtName").val("");
    +    if($("#input_city").text()==""){
    +        $.toast("请选择城市")
    +        return false;
    +    }
    +    $('.historyList').show();
    +    $("#notFound").hide();
    +    $('.hotList').show();
    +    $('.searchList').hide();
    +    addHotDistricts($("#input_city").text());
    +    addHistory();
    +    $.popup(".popup-about02")
    +    $("input").blur()
    +});  
    +
    +//添加热门小区
    +function addHotDistricts(cityParam){
    +	axios.get(BASE_PATH+"/rest/districts/hotDistricts", {
    +	    params: {
    +	      city: cityParam,
    +	      top:6
    +	    }
    +	}).then(function (response) {
    +		var datas = response.data.data
    +		if(datas.length>0){
    +			var dists = [];
    +			for(var i in datas){
    +				
    +				var o = datas[i]
    +				var map={city:o.city, region:o.region, name:o.name};
    +				dists.push(map);
    +			}
    +			
    +			new Vue({
    +				el: '#hotList',
    +				data: {
    +					hotDists: dists
    +				}
    +			})
    +			
    +		}
    +		
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +var histories = [];
    +var historyVue = new Vue({
    +		el: '#districtList',
    +		data: {
    +			histories: histories
    +		},methods: {
    +			openHistoryDetail:function(index) {
    +				clicked(BASE_PATH+'/district/details?city='+this.histories[index].city+'&region='+this.histories[index].region+'&name='+this.histories[index].name,true);
    +			}
    +		}
    +})
    +function addHistory(){
    +	var history = recover()
    +	if(history.length>0){
    +		histories = []
    +		$(history).each(function(){
    +		    var map={city:this.city, region:this.district, name:this.name};
    +		    histories.push(map)
    +		})
    +		historyVue.histories=histories;
    +		
    +		
    +	}/*else{
    +		$(".historyList #districtList").empty();
    +	}*/
    +}
    +
    +//点击清空
    +$("#clearSearchHistory").click(function(){
    +	//$.cookie('history',JSON.stringify([]) ,{ expires: 7});
    +	localStorage.removeItem('history')
    +	historyVue.histories=[];
    +	//$("#districtList").empty();
    +	 //$.popup(".popup-about02")
    +});
    +
    diff --git a/fangija-zsyf/js/updateVersion/updateVersion.js b/fangija-zsyf/js/updateVersion/updateVersion.js
    new file mode 100644
    index 0000000..69cfb64
    --- /dev/null
    +++ b/fangija-zsyf/js/updateVersion/updateVersion.js
    @@ -0,0 +1,80 @@
    +var versionUpdate = function(){
    +		var isAndroid = isAndroidUser();
    +		plus.runtime.getProperty(plus.runtime.appid, function(inf) {
    +		 	var localVersion =inf.version;
    +		 	var curVersion = versionInfo();
    +			if(parseFloat(localVersion)<curVersion.version){	
    +				plus.nativeUI.alert( curVersion.updateDesc,
    +					function(){
    +						if(isAndroid){
    +							downApp()
    +						}else{
    +							plus.nativeUI.showWaiting("版本更新中...");
    +							var url='https://itunes.apple.com/cn/app/id1341557643?mt=8';
    +							plus.runtime.openURL(url);	
    +						}
    +					}, "发现新版本", "立即升级"
    +				);
    +			}	
    +		})
    +		
    +	  	
    + 		
    +};
    +
    +//判断是不是安卓系统
    +var isAndroidUser = function(){
    +	var osName = plus.os.name;
    +	var isAndroid = true;
    +	if(osName=="Android") {
    +		isAndroid= true;
    +	}else{
    +		isAndroid= false;	
    +	}
    +	return isAndroid;
    +}
    +//判断是否需要安装
    +var versionInfo =  function(){
    +	var flag = null;
    +	$.ajax({
    +        type: "GET",
    +        url:BASE_PATH+"/rest/version/info",
    +        dataType:'json',
    +        async : false,
    +        success: function(data) {
    +			if(data.status){
    +				flag = data.data;		
    +			}
    +        }
    +      })
    +	return flag;
    +}
    +
    +//下载后安装
    +var downApp =function(){
    +	var url="http://app.fangjia.com/download/youfang.apk"; // 下载文件地址
    +	plus.nativeUI.showWaiting("下载wgt文件...");
    +	var dtask = plus.downloader.createDownload( url, {}, function ( d, status ) {
    +	    if ( status == 200 ) { // 下载成功
    +	    	installWgt(d.filename)
    +	    } else {//下载失败
    +	        alert( "Download failed: " + status ); 
    +	    }
    +	    plus.nativeUI.closeWaiting()
    +	});
    +	dtask.start();
    +}
    +
    +//安装
    +function installWgt(path){
    +    plus.nativeUI.showWaiting("安装wgt文件...");
    +    plus.runtime.install(path,{},function(){
    +        plus.nativeUI.closeWaiting();
    +        plus.nativeUI.alert("应用资源更新完成!",function(){
    +            plus.runtime.restart();
    +        });
    +    },function(e){
    +        plus.nativeUI.closeWaiting();
    +        plus.nativeUI.alert("安装wgt文件失败["+e.code+"]:"+e.message);
    +    });
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/user/myCollect.js b/fangija-zsyf/js/user/myCollect.js
    new file mode 100644
    index 0000000..8288307
    --- /dev/null
    +++ b/fangija-zsyf/js/user/myCollect.js
    @@ -0,0 +1,203 @@
    +// 加载flag
    +var mc_loading = false;
    +//分页部分参数定义
    +var mc_page;
    +var mc_pageSize;
    +var mc_totalPages;
    +var mc_totalRecords;
    +// 上次加载的序号
    +var mc_lastIndex;
    +// 每次加载添加多少条目
    +var mc_itemsPerLoad;
    +// 最多可加载的条目
    +var mc_maxItems = 100;
    +
    +//我的收藏查询请求
    +function selectNewsCollectList(){
    +	axios.get(BASE_PATH + "/rest/news/collectList", 
    +		{
    +			params: {
    +		       page: mc_page,
    +		       pageSize: mc_pageSize
    +		    }
    +		}).then(function (response) {
    +			var resultList = response.data.data.list;
    +			if(resultList != null && resultList.length == 0){
    +				// 删除加载提示符
    +       			$('#loadTip3').remove();
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            //$.detachInfiniteScroll($('.infinite-scroll'));
    +	            return;
    +			}
    +			if(response.data.data.currentPage == response.data.data.totalPages){
    +				//如果此次查询刚好是page = totalPages
    +				// 删除加载提示符
    +       			$('#loadTip3').remove();
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            //$.detachInfiniteScroll($('.infinite-scroll'));
    +			}
    +			//封装list数据
    +			var dataObj = [];
    +			for(var i in resultList){
    +				dataObj.push(resultList[i])
    +			}
    +			// 上次加载的序号
    +			mc_lastIndex = $('.cardInfo').length;
    +			//每次加载添加多少条目
    +			mc_itemsPerLoad = resultList.length;
    +			//请求后对page进行赋值
    +			mc_page = response.data.data.currentPage;
    +			mc_pageSize = response.data.data.limit;
    +			mc_totalPages = response.data.data.totalPages;
    +			mc_totalRecords = response.data.data.totalRecords;
    +			tab.mc_num = mc_totalRecords;
    +	    	mcAddItems(mc_itemsPerLoad, mc_lastIndex, dataObj);
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function openUrl(url){
    +	clicked(url, true);
    +}
    +
    +function openNewsView(newId) {
    +	clicked('/views/news/newsDetail.html', true, false, {}, {newsId:newId});
    +}
    +
    +/* 分页构造数据 */
    +function mcAddItems(itemsPerLoad, lastIndex, dataObj) {
    +	var html = '';
    +	for(var i in dataObj) {
    +		if(dataObj[i].type == "专题") {
    +			html += '<div class="card cardInfo cardInfo01" onclick="openNewsView(\'' + dataObj[i].id + '\')">' +
    +				'<div class="card-header">' + dataObj[i].title + '</div>' +
    +				'<img src=' + dataObj[i].coverImg + '>' +
    +				'<div class="card-footer">' +
    +				'<span>' +
    +				'<i class="icon icon-eye-orange"></i><label id="visitCount_' + dataObj[i].id + '">' + dataObj[i].visitCount + '人</label>' +
    +				'<i class="icon icon-comments-orange"></i><label id="visitComment_' + dataObj[i].id + '">' + dataObj[i].recommendCommentCount + '条</label>' +
    +				'</span>' +
    +				'</div>' +
    +				'</div>';
    +		}
    +		if(dataObj[i].type == "推荐小区") {
    +			html += '<div class="card cardInfo cardInfo02" onclick="openUrl(\'' + BASE_PATH + '/district/details?city=' + dataObj[i].recommendDistrictCity + '&region=' + dataObj[i].recommendDistrictRegion + '&name=' + dataObj[i].recommendDistrictName + '\')">' +
    +				'<div class="card-content">' +
    +				'<div class="list-block media-list"><ul><li class="item-content">' +
    +				'<div class="item-media"><img src=' + dataObj[i].coverImg + '></div>' +
    +				'<div class="item-inner" style="padding-right:0;">' +
    +				'<div class="item-title-row"><div class="item-title">' + dataObj[i].recommendDistrictName + '</div>' +
    +				'<div class="item-after"><span>' + dataObj[i].recommendDistrictCity + '-' + dataObj[i].recommendDistrictRegion +
    +				'</span></div></div>';
    +			if(dataObj[i].recommendDistrictTags != "" && dataObj[i].recommendDistrictTags != null) {
    +				var arry = dataObj[i].recommendDistrictTags.split("_");
    +				html += '<div class="item-subtitle"><span class="tag">';
    +				for(var j in arry) {
    +					html += '<small>' + arry[j] + '</small>';
    +				}
    +				html += '</span></div>';
    +			}
    +			html += '<div class="item-subtitle"><span class="star">推荐指数:<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i></span></div>';
    +			if(dataObj[i].recommendDistrictPrice) {
    +				html += '<div class="item-subtitle"><em><strong>' + dataObj[i].recommendDistrictPrice + '</strong>元/㎡</em></div>';
    +			}
    +			html += '</div></li></ul></div></div></div>';
    +		}
    +		if(dataObj[i].type == "活动") {
    +			html += '<div class="card cardInfo cardInfo01 cardInfo01b"  onclick="openNewsView(\'' + dataObj[i].id + '\')">' +
    +				'<div class="card-header">' + dataObj[i].title + '</div>' +
    +				'<img src=' + dataObj[i].coverImg + '>' +
    +				'<div class="card-footer"><span>' + dataObj[i].introduction + '</span></div></div>';
    +		}
    +		if(dataObj[i].type == "推荐城市") {
    +			html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openUrl(\'' + BASE_PATH + '/quotations/building?cityName=' + dataObj[i].recommendCity + '\')">' +
    +				'<div class="card-header">推荐城市——' + dataObj[i].recommendCity + '</div>';
    +			if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null) {
    +				var arry = dataObj[i].recommendCityTags.split("_");
    +				html += '<div class="card-content"><div class="card-content-inner"><span class="tag">';
    +				for(var j in arry) {
    +					html += '<small>' + arry[j] + '</small>';
    +				}
    +				html += '</span></div></div>';
    +			}
    +			html += '<img src=' + dataObj[i].coverImg + '>' +
    +				'<div class="card-footer"><span>均价:<em>' + dataObj[i].recommendCityAvgPrice + '元/㎡</em></span>' +
    +				'<span class="star">潜力指数:';
    +			if(dataObj[i].recommendCityIndex < 4) {
    +				html += '<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 5 && dataObj[i].recommendCityIndex < 15) {
    +				html += '<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 15 && dataObj[i].recommendCityIndex < 25) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 25 && dataObj[i].recommendCityIndex < 35) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 35 && dataObj[i].recommendCityIndex < 45) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 45 && dataObj[i].recommendCityIndex < 55) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 55 && dataObj[i].recommendCityIndex < 65) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 65 && dataObj[i].recommendCityIndex < 75) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 75 && dataObj[i].recommendCityIndex < 85) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 85 && dataObj[i].recommendCityIndex < 95) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>';
    +			} else {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>';
    +			}
    +			html += '</span></div><div class="card-footer" style="margin-top:-0.75rem;">';
    +			if(dataObj[i].recommendCityYoy) {
    +				html += '<span>近1年涨跌幅:';
    +				if(dataObj[i].recommendCityYoy > 0) {
    +					html += '<strong>' + (dataObj[i].recommendCityYoy * 100).toFixed(2) + '%</strong><i class="icon icon-arrow-red"></i>';
    +				} else {
    +					html += '<strong>' + (dataObj[i].recommendCityYoy * 100).toFixed(2) + '%</strong><i class="icon icon-arrow-green"></i>';
    +				}
    +				html += '</span>';
    +			}
    +			if(dataObj[i].recommendCityIndexTrend) {
    +				html += '<span>';
    +				if(dataObj[i].recommendCityIndexTrend >= 0) {
    +					html += '上涨概率:<strong>' + dataObj[i].recommendCityIndexTrend + '%</strong><i class="icon icon-arrow-red"></i>';
    +				} else {
    +					html += '下跌概率:<strong>' + dataObj[i].recommendCityYoy * (-1) + '%</strong><i class="icon icon-arrow-green"></i>';
    +				}
    +				html += '</span>';
    +			}
    +			html += '</div></div>';
    +		}
    +		if(dataObj[i].type == "新闻") {
    +			html += '<div class="card cardInfo cardInfo02" onclick="openNewsView(\'' + dataObj[i].id + '\')"><div class="card-content"><div class="list-block media-list">' +
    +				'<ul><li class="item-content">' +
    +				'<div class="item-inner"><div class="item-title-row"><div class="item-title">' +
    +				dataObj[i].title + '</div></div>' +
    +				'<div class="item-subtitle"><font>' + dataObj[i].introduction + '</font></div>' +
    +				'<div class="item-subtitle"><span><i class="icon icon-eye-orange"></i><label id="visitCount_' + dataObj[i].id + '">' + dataObj[i].visitCount + '人</label>' +
    +				'<i class="icon icon-comments-orange"></i><label id="visitComment_' + dataObj[i].id + '">' + dataObj[i].recommendCommentCount + '条</label></span></div></div>' +
    +				'<div class="item-media"><img src=' + dataObj[i].coverImg + '></div>' +
    +				'</li></ul></div></div></div>';
    +		}
    +		if(dataObj[i].type == "投票") {
    +			var voteFavorCount = dataObj[i].voteFavorCount;
    +			var voteNoFavorCount = dataObj[i].voteNoFavorCount;
    +			var voteFavorCountRate = 50
    +			var voteNoFavorCountRate = 50
    +			if(voteFavorCount == 0 && voteNoFavorCount == 0) {
    +
    +			} else {
    +				voteFavorCountRate = Math.round((voteFavorCount * 100) / (voteFavorCount + voteNoFavorCount));
    +				voteNoFavorCountRate = 100 - voteFavorCountRate;
    +			}
    +
    +			html += '<div class="card cardInfo cardInfo03"><div class="card-header">' + dataObj[i].title +
    +				'</div><div class="card-content"><div class="card-content-inner row"><div class="vote01 col-50">' +
    +				'<i class="icon icon-light-red" data-val="' + dataObj[i].id + '"></i><span>' + dataObj[i].voteFavorText + '</span>' +
    +				'<font style="width:' + voteFavorCountRate + '%;" id="voteFavorCountRate_' + dataObj[i].id + '"></font><label id="voteFavorCount_' + dataObj[i].id + '">' + voteFavorCount + '票&nbsp;&nbsp;' + voteFavorCountRate + '%</label></div>' +
    +				'<div class="vote02 col-50"><i class="icon icon-light-grey" data-val="' + dataObj[i].id + '"></i><span>' + dataObj[i].voteNoFavorText + '</span>' +
    +				'<font style="width:' + voteNoFavorCountRate + '%;" id="voteNoFavorCountRate' + dataObj[i].id + '"></font><label id="voteNoFavorCount_' + dataObj[i].id + '">' + voteNoFavorCount + '票&nbsp;&nbsp;' + voteNoFavorCountRate + '%</label></div><em>V.S</em></div></div></div>';
    +		}
    +	}
    +	$('#myColect').append(html);
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/user/myFocus.js b/fangija-zsyf/js/user/myFocus.js
    new file mode 100644
    index 0000000..882c4bd
    --- /dev/null
    +++ b/fangija-zsyf/js/user/myFocus.js
    @@ -0,0 +1,87 @@
    +//加载flag
    +var mf_loading = false;
    +//最多可加载的条目
    +var mf_maxItems = 100;
    +//上次加载的序号小区
    +var mf_lastIndex = 0;
    +//每次加载添加多少条目
    +var mf_itemsPerLoad = 8;
    +var mf_curpage = 1;
    +var mf_totalCount = 0;
    +
    +function addEstate(number, lastIndex) {
    +	mf_curpage = mf_lastIndex/mf_itemsPerLoad + 1;
    +	axios.get("/rest/myCollection/loadCollections",{params:{pageSize:mf_itemsPerLoad,page:mf_curpage}}).then(function(response){
    +	data = response.data;
    +    //data = eval( '(' + data + ')' ); 
    +    if(data['results']==null || data['results'].length==0) {
    +        $('#loadTip2').remove();
    +        $('.infinite-scroll-bottom #tab1').html("<div class='noData'><img src='../images/noData.png'><p>您还没有关注小区</p></div>");
    +        return;
    +    }
    +    mf_totalCount = data.totalCount;
    +    tab.mf_num = mf_totalCount;
    +    // 生成新条目的HTML
    +    var html = '';
    +    $.each(data['results'], function(i){
    +		var tags = this.tags;
    +		var tagStr = "";
    +		if(tags!=null&&tags.length>0){
    +			for(var j=0;j<tags.length;j++){
    +				if(j<3){
    +					var tag = tags[j];
    +					tagStr = tagStr + '<small>'+tag+'</small>';
    +				}
    +			}
    +		}
    +		var starStr = ''
    +		var index = this.index;
    +		if(index==0){
    +			var starStr = '暂无'
    +		}else{
    +			var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星
    +			var starNum = Math.floor(totalHalfStar/2) 
    +			var halfStarNum = totalHalfStar%2
    +			var noneStarNum = 5-starNum-halfStarNum
    +			for(i=0;i<starNum;i++){
    +				starStr+='<i class="icon icon-star01"></i>'
    +			}
    +			for(i=0;i<halfStarNum;i++){
    +				starStr+='<i class="icon icon-star02"></i>'
    +			}
    +			for(i=0;i<noneStarNum;i++){
    +				starStr+='<i class="icon icon-star"></i>'
    +			}
    +		}
    +    	html+= '<li>'+
    +					'<a onclick="gotoDistrictDetail(\''+this.city+'\',\''+this.region+'\',\''+this.name+'\')" class="item-content">'+
    +						'<div class="item-inner">'+
    +							'<div class="item-title-row">'+
    +								'<div class="item-title">'+this.name+'</div>'+
    +								'<div class="item-after">¥'+(this.avgPrice?this.avgPrice+ '元/㎡':'暂无')+'</div>'+
    +							'</div>'+
    +							'<div class="item-title-row">'+
    +								'<div class="item-title"><i class="icon icon-address03"></i><small>'+(this.address?(this.city+this.region+this.address):'')+'</small></div>'+
    +//								'<div class="item-after"><span>'+(this.distance?"距您"+this.distance+"m":"暂无")+'</span></div>'+
    +							'</div>'+
    +							'<div class="item-subtitle">'+
    +								'<div>潜力指数: <span class="star">'+starStr+'</span></div>'+
    +								'<div>近30天涨跌幅: <em class="down">'+(this.oneMonthUpDownRange?(this.oneMonthUpDownRange>0?(this.oneMonthUpDownRange+'%<i class="icon icon-arrow-red"></i>'):(this.oneMonthUpDownRange<0?(-this.oneMonthUpDownRange+'%<i class="icon icon-arrow-green"></i>'):this.oneMonthUpDownRange+"%")):"暂无")+'</em></div>'+
    +							'</div>'+
    +							'<div class="item-subtitle"><span class="tag">'+tagStr+'</span></div>'+
    +						'</div>'+
    +					'</a>'+
    +				'</li>';
    +    });
    +    // 添加新条目
    +    $('#mf_ul').append(html);
    +    if(mf_totalCount<=mf_itemsPerLoad){
    +    	// 加载完毕,则注销无限加载事件,以防不必要的加载
    +		// $.detachInfiniteScroll($('.infinite-scroll'));
    +        // 删除加载提示符
    +        $('#loadTip2').remove();
    +    }
    +	}).catch(function(error){
    +		console.log(error)
    +	});
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/user/myHouse.js b/fangija-zsyf/js/user/myHouse.js
    new file mode 100644
    index 0000000..0f13b8d
    --- /dev/null
    +++ b/fangija-zsyf/js/user/myHouse.js
    @@ -0,0 +1,139 @@
    +// 加载flag
    +var mh_loading = false;
    +
    +//分页部分参数定义
    +var mh_page;
    +var mh_pageSize;
    +var mh_totalPages;
    +var mh_totalRecords;
    +
    +// 上次加载的序号
    +var mh_lastIndex;
    +// 每次加载添加多少条目
    +var mh_itemsPerLoad;
    +// 最多可加载的条目
    +var mh_maxItems = 100;
    +
    +//我的收藏查询请求
    +function selectHouseInfoList(){
    +	axios.get(BASE_PATH + "/rest/index/ourHouseInfoList", 
    +		{
    +			params: {
    +		       page: mh_page,
    +		       pageSize: mh_pageSize
    +		    }
    +		}).then(function (response) {
    +			var resultsMap = response.data.data;
    +			var resultList = resultsMap.houseInfoPageList.list;
    +			var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
    +			var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
    +			var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
    +			if(resultList != null && resultList.length == 0){
    +				// 删除加载提示符
    +				$('#loadTip1').remove();
    +       			//$('.infinite-scroll-preloader').remove();
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            //$.detachInfiniteScroll($('.infinite-scroll'));
    +	            return;
    +			}
    +			if(resultsMap.houseInfoPageList.currentPage == resultsMap.houseInfoPageList.totalPages){
    +				//如果此次查询刚好是page = totalPages
    +				// 删除加载提示符
    +				$('#loadTip1').remove();
    +       			//$('.infinite-scroll-preloader').remove();
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            //$.detachInfiniteScroll($('.infinite-scroll'));
    +			}
    +			//封装list数据
    +			var dataObj = [];
    +			for(var i in resultList){
    +				dataObj.push(resultList[i])
    +			}
    +			// 上次加载的序号
    +			mh_lastIndex = $('.cardInfo').length;
    +			//每次加载添加多少条目
    +			mh_itemsPerLoad = resultList.length;
    +			//请求后对page进行赋值
    +			mh_page = resultsMap.houseInfoPageList.currentPage;
    +			mh_pageSize = resultsMap.houseInfoPageList.limit;
    +			mh_totalPages = resultsMap.houseInfoPageList.totalPages;
    +			mh_totalRecords = resultsMap.houseInfoPageList.totalRecords;
    +			tab.mh_num = mh_totalRecords;
    +	    	mhAddItems(mh_itemsPerLoad, mh_lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap);
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +/* 分页构造数据 */
    +function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap) {
    +	var html = '';
    +	for(var i in dataObj) {
    +		var result = dataObj[i];
    +		
    +		//可抵押贷额度
    +		var tempTotalPricePercent = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)*0.7/10000).toFixed(2)+"万";
    +		var tempTotalPrice = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)/10000).toFixed(2)+"万";
    +		
    +		html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
    +		html += "<div class='item-inner'><div class='item-title-row'>";
    +		html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"</em><span class='tag'>";
    +		
    +		if(result.liveStatus!=null && result.liveStatus.length>0){
    +			html += "<small>"+result.liveStatus+"</small></span></div>";
    +		}else{
    +			html += "<small>其它</small></span></div>";
    +		}
    +		html +=	"</div><div class='item-subtitle'>";
    +		
    +		//对应城市地区小区30天涨跌幅
    + 		var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
    + 		var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
    + 		if(!isNaN(xqOneMonthUpDownRangeValue)){
    + 			//涨跌幅大于零
    + 			if(parseFloat(xqOneMonthUpDownRangeValue)>=0){
    + 				html += "<div>近30天涨跌幅: <em class='up'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-red'></i></em></div>";
    + 			}else{
    + 				html += "<div>近30天涨跌幅: <em class='down'>"+Math.abs(xqOneMonthUpDownRangeValue)+"%<i class='icon icon-arrow-green'></i></em></div>";
    + 			}
    + 		}else{
    + 			html += "<div>近30天涨跌幅: <em class='down'>暂无<i class='icon'></i></em></div>";
    + 		}
    + 		
    + 		//下跌概率
    + 		var xqPotentialIndexValue = xqPotentialIndexMap[xqOneMonthUpDownRangeKey];
    +		if(!isNaN(xqPotentialIndexValue)){
    + 			//涨跌幅大于零
    + 			if(parseInt(xqPotentialIndexValue)>=50){
    + 				html += "<div>上涨概率: <em class='up'>"+xqPotentialIndexValue+"%<i class='icon icon-arrow-red'></i></em></div>";
    + 			}else{
    + 				html += "<div>下跌概率: <em class='down'>"+(parseInt(100)-parseInt(xqPotentialIndexValue))+"%<i class='icon icon-arrow-green'></i></em></div>";
    + 			}
    + 		}else{
    + 			html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
    + 		}
    + 		
    +		html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
    +		
    +		if(result.level!=null && result.level == 1){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
    +		}else if(result.level!=null && result.level == 2){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>公寓级</a>";
    +		}else if(result.level!=null && result.level == 3){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>平房级</a>";
    +		}else if(result.level!=null && result.level == 4){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>草屋级</a>";
    +		}else if(result.level!=null && result.level == 5){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>山洞级</a>";
    +		}else{
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
    +		}
    +		//控制贷款按钮是否可以显示,便于ios版本审核
    +		if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
    +			html +=	'<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
    +		}else{
    +			html +=	'</li>';
    +		}
    +	}
    +	$('#myhouse').append(html);
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/validate.js b/fangija-zsyf/js/validate.js
    new file mode 100644
    index 0000000..fa8c9e4
    --- /dev/null
    +++ b/fangija-zsyf/js/validate.js
    @@ -0,0 +1,39 @@
    +/**
    + * 扩展Jquery 新增validate
    + */
    +(function ($) {
    +    $.isMobile = function (text) {
    +        return $.trim(text) != "" && /^1[3|4|5|7|8][0-9]\d{8}$/.test(text);
    +    }
    +    $.isBlank = function (text) {
    +        return $.trim(text) == "";
    +    }
    +    $.isLengthEq = function (text) {
    +        return $.trim(text) != "" && text.length == 4;
    +    }
    +    $.isPositiveInteger = function (text) {
    +        return $.trim(text) != "" && /^\d+$/.test(text);
    +    }
    +    $.isPositiveFloat = function (text) {
    +        return $.trim(text) != "" && /^\d+(\.\d+)?$/.test(text);
    +    }
    +    $.fn.isMobile = function () {
    +        return $.isMobile($.trim(this.val()));
    +    }
    +    $.fn.isBlank = function () {
    +        if ($.trim(this.val()) == "") {
    +            return true;
    +        }
    +        return false;
    +    }
    +    $.fn.lengthEq = function (length) {
    +        return $.trim(this.val()) != "" && this.val().length == 4;
    +    }
    +    $.fn.isPositiveInteger = function () {
    +        return $.isPositiveInteger($.trim(this.val()));
    +    }
    +    $.fn.isPositiveFloat = function () {
    +        return $.isPositiveFloat($.trim(this.val()));
    +    }
    +
    +})($)
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/vue.js b/fangija-zsyf/js/vue.js
    new file mode 100644
    index 0000000..22e37d6
    --- /dev/null
    +++ b/fangija-zsyf/js/vue.js
    @@ -0,0 +1,6 @@
    +/*!
    + * Vue.js v2.5.15
    + * (c) 2014-2018 Evan You
    + * Released under the MIT License.
    + */
    +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";var y=Object.freeze({});function M(e){return null==e}function D(e){return null!=e}function T(e){return!0===e}function E(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function P(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function l(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function t(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function F(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var c=s("slot,component",!0),u=s("key,ref,slot,slot-scope,is");function f(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var n=Object.prototype.hasOwnProperty;function p(e,t){return n.call(e,t)}function e(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var o=/-(\w)/g,g=e(function(e){return e.replace(o,function(e,t){return t?t.toUpperCase():""})}),d=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),a=/\B([A-Z])/g,_=e(function(e){return e.replace(a,"-$1").toLowerCase()});var v=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function h(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function m(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n<e.length;n++)e[n]&&m(t,e[n]);return t}function $(e,t,n){}var O=function(e,t,n){return!1},w=function(e){return e};function C(t,n){if(t===n)return!0;var e=P(t),r=P(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return C(e,n[t])});if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return C(t[e],n[e])})}catch(e){return!1}}function x(e,t){for(var n=0;n<e.length;n++)if(C(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var j="data-server-rendered",k=["component","directive","filter"],A=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],S={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:$,parsePlatformTagName:w,mustUseProp:O,_lifecycleHooks:A};function N(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var I=/[^\w.$]/;var L,H="__proto__"in{},B="undefined"!=typeof window,U="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=U&&WXEnvironment.platform.toLowerCase(),z=B&&window.navigator.userAgent.toLowerCase(),K=z&&/msie|trident/.test(z),J=z&&0<z.indexOf("msie 9.0"),q=z&&0<z.indexOf("edge/"),W=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===V),G=(z&&/chrome\/\d+/.test(z),{}.watch),Z=!1;if(B)try{var X={};Object.defineProperty(X,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,X)}catch(e){}var Y=function(){return void 0===L&&(L=!B&&!U&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),L},Q=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ee(e){return"function"==typeof e&&/native code/.test(e.toString())}var te,ne="undefined"!=typeof Symbol&&ee(Symbol)&&"undefined"!=typeof Reflect&&ee(Reflect.ownKeys);te="undefined"!=typeof Set&&ee(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var re=$,ie=0,oe=function(){this.id=ie++,this.subs=[]};oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){f(this.subs,e)},oe.prototype.depend=function(){oe.target&&oe.target.addDep(this)},oe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},oe.target=null;var ae=[];function se(e){oe.target&&ae.push(oe.target),oe.target=e}function ce(){oe.target=ae.pop()}var le=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ue={child:{configurable:!0}};ue.child.get=function(){return this.componentInstance},Object.defineProperties(le.prototype,ue);var fe=function(e){void 0===e&&(e="");var t=new le;return t.text=e,t.isComment=!0,t};function pe(e){return new le(void 0,void 0,void 0,String(e))}var de=Array.prototype,ve=Object.create(de);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(o){var a=de[o];N(ve,o,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=a.apply(this,e),i=this.__ob__;switch(o){case"push":case"unshift":n=e;break;case"splice":n=e.slice(2)}return n&&i.observeArray(n),i.dep.notify(),r})});var he=Object.getOwnPropertyNames(ve),me=!0;function ye(e){me=e}var ge=function(e){(this.value=e,this.dep=new oe,this.vmCount=0,N(e,"__ob__",this),Array.isArray(e))?((H?_e:be)(e,ve,he),this.observeArray(e)):this.walk(e)};function _e(e,t,n){e.__proto__=t}function be(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];N(e,o,t[o])}}function $e(e,t){var n;if(P(e)&&!(e instanceof le))return p(e,"__ob__")&&e.__ob__ instanceof ge?n=e.__ob__:me&&!Y()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ge(e)),t&&n&&n.vmCount++,n}function we(n,e,r,t,i){var o=new oe,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(r=n[e]);var c=a&&a.set,l=!i&&$e(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return oe.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||(c?c.call(n,e):r=e,l=!i&&$e(e),o.notify())}})}}function Ce(e,t,n){if(Array.isArray(e)&&i(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(we(r.value,t,n),r.dep.notify(),n):e[t]=n}function xe(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||p(e,t)&&(delete e[t],n&&n.dep.notify())}}ge.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)we(e,t[n])},ge.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)$e(e[t])};var ke=S.optionMergeStrategies;function Ae(e,t){if(!t)return e;for(var n,r,i,o=Object.keys(t),a=0;a<o.length;a++)r=e[n=o[a]],i=t[n],p(e,n)?l(r)&&l(i)&&Ae(r,i):Ce(e,n,i);return e}function Oe(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Ae(e,t):t}:r?n?function(){return Ae("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Se(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function Te(e,t,n,r){var i=Object.create(e||null);return t?m(i,t):i}ke.data=function(e,t,n){return n?Oe(e,t,n):t&&"function"!=typeof t?e:Oe(e,t)},A.forEach(function(e){ke[e]=Se}),k.forEach(function(e){ke[e+"s"]=Te}),ke.watch=function(e,t,n,r){if(e===G&&(e=void 0),t===G&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in m(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},ke.props=ke.methods=ke.inject=ke.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return m(i,e),t&&m(i,t),i},ke.provide=Oe;var Ee=function(e,t){return void 0===t?e:t};function je(n,r,i){"function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[g(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[g(a)]=l(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?m({from:o},a):{from:a}}}}(r),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(r);var e=r.extends;if(e&&(n=je(n,e,i)),r.mixins)for(var t=0,o=r.mixins.length;t<o;t++)n=je(n,r.mixins[t],i);var a,s={};for(a in n)c(a);for(a in r)p(n,a)||c(a);function c(e){var t=ke[e]||Ee;s[e]=t(n[e],r[e],i,e)}return s}function Ne(e,t,n,r){if("string"==typeof n){var i=e[t];if(p(i,n))return i[n];var o=g(n);if(p(i,o))return i[o];var a=d(o);return p(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ie(e,t,n,r){var i=t[e],o=!p(n,e),a=n[e],s=De(Boolean,i.type);if(-1<s)if(o&&!p(i,"default"))a=!1;else if(""===a||a===_(e)){var c=De(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!p(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Le(t.type)?r.call(e):r}(r,i,e);var l=me;ye(!0),$e(a),ye(l)}return a}function Le(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Me(e,t){return Le(e)===Le(t)}function De(e,t){if(!Array.isArray(t))return Me(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Me(t[n],e))return n;return-1}function Pe(e,t,n){if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Fe(e,r,"errorCaptured hook")}}Fe(e,t,n)}function Fe(e,t,n){if(S.errorHandler)try{return S.errorHandler.call(null,e,t,n)}catch(e){Re(e,null,"config.errorHandler")}Re(e,t,n)}function Re(e,t,n){if(!B&&!U||"undefined"==typeof console)throw e;console.error(e)}var He,Be,Ue=[],Ve=!1;function ze(){Ve=!1;for(var e=Ue.slice(0),t=Ue.length=0;t<e.length;t++)e[t]()}var Ke=!1;if("undefined"!=typeof setImmediate&&ee(setImmediate))Be=function(){setImmediate(ze)};else if("undefined"==typeof MessageChannel||!ee(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Be=function(){setTimeout(ze,0)};else{var Je=new MessageChannel,qe=Je.port2;Je.port1.onmessage=ze,Be=function(){qe.postMessage(1)}}if("undefined"!=typeof Promise&&ee(Promise)){var We=Promise.resolve();He=function(){We.then(ze),W&&setTimeout($)}}else He=Be;function Ge(e,t){var n;if(Ue.push(function(){if(e)try{e.call(t)}catch(e){Pe(e,t,"nextTick")}else n&&n(t)}),Ve||(Ve=!0,Ke?Be():He()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Ze=new te;function Xe(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!P(t)||Object.isFrozen(t)||t instanceof le)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Ze),Ze.clear()}var Ye,Qe=e(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function et(e){function i(){var e=arguments,t=i.fns;if(!Array.isArray(t))return t.apply(null,arguments);for(var n=t.slice(),r=0;r<n.length;r++)n[r].apply(null,e)}return i.fns=e,i}function tt(e,t,n,r,i){var o,a,s,c;for(o in e)a=e[o],s=t[o],c=Qe(o),M(a)||(M(s)?(M(a.fns)&&(a=e[o]=et(a)),n(c.name,a,c.once,c.capture,c.passive,c.params)):a!==s&&(s.fns=a,e[o]=s));for(o in t)M(e[o])&&r((c=Qe(o)).name,t[o],c.capture)}function nt(e,t,n){var r;e instanceof le&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),f(r.fns,o)}M(i)?r=et([o]):D(i.fns)&&T(i.merged)?(r=i).fns.push(o):r=et([i,o]),r.merged=!0,e[t]=r}function rt(e,t,n,r,i){if(D(t)){if(p(t,n))return e[n]=t[n],i||delete t[n],!0;if(p(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function it(e){return E(e)?[pe(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)M(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(ot((o=e(o,(n||"")+"_"+i))[0])&&ot(s)&&(r[a]=pe(s.text+o[0].text),o.shift()),r.push.apply(r,o)):E(o)?ot(s)?r[a]=pe(s.text+o):""!==o&&r.push(pe(o)):ot(o)&&ot(s)?r[a]=pe(s.text+o.text):(T(t._isVList)&&D(o.tag)&&M(o.key)&&D(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function ot(e){return D(e)&&D(e.text)&&!1===e.isComment}function at(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),P(e)?t.extend(e):e}function st(e){return e.isComment&&e.asyncFactory}function ct(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(D(n)&&(D(n.componentOptions)||st(n)))return n}}function lt(e,t,n){n?Ye.$once(e,t):Ye.$on(e,t)}function ut(e,t){Ye.$off(e,t)}function ft(e,t,n){Ye=e,tt(t,n||{},lt,ut),Ye=void 0}function pt(e,t){var n={};if(!e)return n;for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(dt)&&delete n[l];return n}function dt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function vt(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?vt(e[n],t):t[e[n].key]=e[n].fn;return t}var ht=null;function mt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function yt(e,t){if(t){if(e._directInactive=!1,mt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)yt(e.$children[n]);gt(e,"activated")}}function gt(t,n){se();var e=t.$options[n];if(e)for(var r=0,i=e.length;r<i;r++)try{e[r].call(t)}catch(e){Pe(e,t,n+" hook")}t._hasHookEvent&&t.$emit("hook:"+n),ce()}var _t=[],bt=[],$t={},wt=!1,Ct=!1,xt=0;function kt(){var e,t;for(Ct=!0,_t.sort(function(e,t){return e.id-t.id}),xt=0;xt<_t.length;xt++)t=(e=_t[xt]).id,$t[t]=null,e.run();var n=bt.slice(),r=_t.slice();xt=_t.length=bt.length=0,$t={},wt=Ct=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,yt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&gt(r,"updated")}}(r),Q&&S.devtools&&Q.emit("flush")}var At=0,Ot=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++At,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new te,this.newDepIds=new te,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!I.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Ot.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Pe(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Xe(e),ce(),this.cleanupDeps()}return e},Ot.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Ot.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Ot.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==$t[t]){if($t[t]=!0,Ct){for(var n=_t.length-1;xt<n&&_t[n].id>e.id;)n--;_t.splice(n+1,0,e)}else _t.push(e);wt||(wt=!0,Ge(kt))}}(this)},Ot.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||P(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Pe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Ot.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Ot.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Ot.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var St={enumerable:!0,configurable:!0,get:$,set:$};function Tt(e,t,n){St.get=function(){return this[t][n]},St.set=function(e){this[t][n]=e},Object.defineProperty(e,n,St)}function Et(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ye(!1);var e=function(e){a.push(e);var t=Ie(e,r,i,n);we(o,e,t),e in n||Tt(n,"_props",e)};for(var t in r)e(t);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?$:v(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return Pe(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&p(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Tt(e,"_data",o))}var a;$e(t,!0)}(e):$e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new Ot(e,a||$,$,jt)),i in e||Nt(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Lt(e,n,r[i]);else Lt(e,n,r)}}(e,t.watch)}var jt={lazy:!0};function Nt(e,t,n){var r=!Y();"function"==typeof n?(St.get=r?It(t):n,St.set=$):(St.get=n.get?r&&!1!==n.cache?It(t):n.get:$,St.set=n.set?n.set:$),Object.defineProperty(e,t,St)}function It(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),oe.target&&e.depend(),e.value}}function Lt(e,t,n,r){return l(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Mt(t,e){if(t){for(var n=Object.create(null),r=ne?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),i=0;i<r.length;i++){for(var o=r[i],a=t[o].from,s=e;s;){if(s._provided&&p(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[o]){var c=t[o].default;n[o]="function"==typeof c?c.call(e):c}}return n}}function Dt(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(P(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return D(n)&&(n._isVList=!0),n}function Pt(e,t,n,r){var i,o=this.$scopedSlots[e];if(o)n=n||{},r&&(n=m(m({},r),n)),i=o(n)||t;else{var a=this.$slots[e];a&&(a._rendered=!0),i=a||t}var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Ft(e){return Ne(this.$options,"filters",e)||w}function Rt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ht(e,t,n,r,i){var o=S.keyCodes[t]||n;return i&&r&&!S.keyCodes[t]?Rt(i,r):o?Rt(o,e):r?_(r)!==t:void 0}function Bt(n,r,i,o,a){if(i)if(P(i)){var s;Array.isArray(i)&&(i=b(i));var e=function(t){if("class"===t||"style"===t||u(t))s=n;else{var e=n.attrs&&n.attrs.type;s=o||S.mustUseProp(r,e,t)?n.domProps||(n.domProps={}):n.attrs||(n.attrs={})}t in s||(s[t]=i[t],a&&((n.on||(n.on={}))["update:"+t]=function(e){i[t]=e}))};for(var t in i)e(t)}else;return n}function Ut(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||zt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Vt(e,t,n){return zt(e,"__once__"+t+(n?"_"+n:""),!0),e}function zt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Kt(e[r],t+"_"+r,n);else Kt(e,t,n)}function Kt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Jt(e,t){if(t)if(l(t)){var n=e.on=e.on?m({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function qt(e){e._o=Vt,e._n=F,e._s=t,e._l=Dt,e._t=Pt,e._q=C,e._i=x,e._m=Ut,e._f=Ft,e._k=Ht,e._b=Bt,e._v=pe,e._e=fe,e._u=vt,e._g=Jt}function Wt(e,t,n,o,r){var a=r.options;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||y,this.injections=Mt(a.inject,o),this.slots=function(){return pt(n,o)};var s=Object.create(o),i=T(a._compiled),c=!i;i&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=e.scopedSlots||y),a._scopeId?this._c=function(e,t,n,r){var i=rn(s,e,t,n,r,c);return i&&!Array.isArray(i)&&(i.fnScopeId=a._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return rn(s,e,t,n,r,c)}}function Gt(e,t,n,r){e.fnContext=n,e.fnOptions=r,t.slot&&((e.data||(e.data={})).slot=t.slot)}function Zt(e,t){for(var n in t)e[g(n)]=t[n]}qt(Wt.prototype);var Xt={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;Xt.prepatch(i,i)}else{(e.componentInstance=function(e,t,n,r){var i={_isComponent:!0,parent:t,_parentVnode:e,_parentElm:n||null,_refElm:r||null},o=e.data.inlineTemplate;D(o)&&(i.render=o.render,i.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(i)}(e,ht,n,r)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==y);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,e.$attrs=r.data.attrs||y,e.$listeners=n||y,t&&e.$options.props){ye(!1);for(var a=e._props,s=e.$options._propKeys||[],c=0;c<s.length;c++){var l=s[c],u=e.$options.props;a[l]=Ie(l,u,t,e)}ye(!0),e.$options.propsData=t}n=n||y;var f=e.$options._parentListeners;e.$options._parentListeners=n,ft(e,n,f),o&&(e.$slots=pt(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,gt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,bt.push(t)):yt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,mt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);gt(t,"deactivated")}}(t,!0):t.$destroy())}},Yt=Object.keys(Xt);function Qt(e,t,n,r,i){if(!M(e)){var o=n.$options._base;if(P(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,l,u,f,p;if(M(e.cid)&&void 0===(e=function(t,n,e){if(T(t.error)&&D(t.errorComp))return t.errorComp;if(D(t.resolved))return t.resolved;if(T(t.loading)&&D(t.loadingComp))return t.loadingComp;if(!D(t.contexts)){var r=t.contexts=[e],i=!0,o=function(){for(var e=0,t=r.length;e<t;e++)r[e].$forceUpdate()},a=R(function(e){t.resolved=at(e,n),i||o()}),s=R(function(e){D(t.errorComp)&&(t.error=!0,o())}),c=t(a,s);return P(c)&&("function"==typeof c.then?M(t.resolved)&&c.then(a,s):D(c.component)&&"function"==typeof c.component.then&&(c.component.then(a,s),D(c.error)&&(t.errorComp=at(c.error,n)),D(c.loading)&&(t.loadingComp=at(c.loading,n),0===c.delay?t.loading=!0:setTimeout(function(){M(t.resolved)&&M(t.error)&&(t.loading=!0,o())},c.delay||200)),D(c.timeout)&&setTimeout(function(){M(t.resolved)&&s(null)},c.timeout))),i=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(e)}(a=e,o,n)))return s=a,c=t,l=n,u=r,f=i,(p=fe()).asyncFactory=s,p.asyncMeta={data:c,context:l,children:u,tag:f},p;t=t||{},dn(e),D(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});D(i[r])?i[r]=[t.model.callback].concat(i[r]):i[r]=t.model.callback}(e.options,t);var d=function(e,t,n){var r=t.options.props;if(!M(r)){var i={},o=e.attrs,a=e.props;if(D(o)||D(a))for(var s in r){var c=_(s);rt(i,a,s,c,!0)||rt(i,o,s,c,!1)}return i}}(t,e);if(T(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(D(s))for(var c in s)a[c]=Ie(c,s,t||y);else D(n.attrs)&&Zt(a,n.attrs),D(n.props)&&Zt(a,n.props);var l=new Wt(n,a,i,r,e),u=o.render.call(null,l._c,l);if(u instanceof le)return Gt(u,n,r,o),u;if(Array.isArray(u)){for(var f=it(u)||[],p=0;p<f.length;p++)Gt(f[p],n,r,o);return f}}(e,d,t,n,r);var v=t.on;if(t.on=t.nativeOn,T(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}!function(e){e.hook||(e.hook={});for(var t=0;t<Yt.length;t++){var n=Yt[t],r=e.hook[n],i=Xt[n];e.hook[n]=r?en(i,r):i}}(t);var m=e.options.name||i;return new le("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:v,tag:i,children:r},a)}}}function en(i,o){return function(e,t,n,r){i(e,t,n,r),o(e,t,n,r)}}var tn=1,nn=2;function rn(e,t,n,r,i,o){return(Array.isArray(n)||E(n))&&(i=r,r=n,n=void 0),T(o)&&(i=nn),function(e,t,n,r,i){if(D(n)&&D(n.__ob__))return fe();D(n)&&D(n.is)&&(t=n.is);if(!t)return fe();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===nn?r=it(r):i===tn&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||S.getTagNamespace(t),o=S.isReservedTag(t)?new le(S.parsePlatformTagName(t),n,r,void 0,void 0,e):D(s=Ne(e.$options,"components",t))?Qt(s,n,e,r,t):new le(t,n,r,void 0,void 0,e)}else o=Qt(t,n,e,r);return Array.isArray(o)?o:D(o)?(D(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(n=void 0,r=!0);if(D(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];D(a.tag)&&(M(a.ns)||T(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),D(n)&&function(e){P(e.style)&&Xe(e.style);P(e.class)&&Xe(e.class)}(n),o):fe()}(e,t,n,r,i)}var on,an,sn,cn,ln,un,fn,pn=0;function dn(e){var t=e.options;if(e.super){var n=dn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.extendOptions,i=e.sealedOptions;for(var o in n)n[o]!==i[o]&&(t||(t={}),t[o]=vn(n[o],r[o],i[o]));return t}(e);r&&m(e.extendOptions,r),(t=e.options=je(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function vn(e,t,n){if(Array.isArray(e)){var r=[];n=Array.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var i=0;i<e.length;i++)(0<=t.indexOf(e[i])||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function hn(e){this._init(e)}function mn(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=je(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)Tt(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Nt(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,k.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=m({},o.options),r[n]=o}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function gn(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function _n(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!t(s)&&bn(n,o,r,i)}}}function bn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,f(n,t)}hn.prototype._init=function(e){var t,n,r,i,o=this;o._uid=pn++,o._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(o,e):o.$options=je(dn(o.constructor),e||{},o),function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}((o._renderProxy=o)._self=o),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ft(e,t)}(o),function(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=pt(e._renderChildren,n),i.$scopedSlots=y,i._c=function(e,t,n,r){return rn(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return rn(i,e,t,n,r,!0)};var r=t&&t.data;we(i,"$attrs",r&&r.attrs||y,null,!0),we(i,"$listeners",e._parentListeners||y,null,!0)}(o),gt(o,"beforeCreate"),(n=Mt((t=o).$options.inject,t))&&(ye(!1),Object.keys(n).forEach(function(e){we(t,e,n[e])}),ye(!0)),Et(o),(i=(r=o).$options.provide)&&(r._provided="function"==typeof i?i.call(r):i),gt(o,"created"),o.$options.el&&o.$mount(o.$options.el)},on=hn,an={get:function(){return this._data}},sn={get:function(){return this._props}},Object.defineProperty(on.prototype,"$data",an),Object.defineProperty(on.prototype,"$props",sn),on.prototype.$set=Ce,on.prototype.$delete=xe,on.prototype.$watch=function(e,t,n){if(l(t))return Lt(this,e,t,n);(n=n||{}).user=!0;var r=new Ot(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}},ln=/^hook:/,(cn=hn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),ln.test(e)&&(this._hasHookEvent=!0);return this},cn.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},cn.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)this.$off(e[r],t);return n}var o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;if(t)for(var a,s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},cn.prototype.$emit=function(t){var n=this,e=n._events[t];if(e){e=1<e.length?h(e):e;for(var r=h(arguments,1),i=0,o=e.length;i<o;i++)try{e[i].apply(n,r)}catch(e){Pe(e,n,'event handler for "'+t+'"')}}return n},(un=hn).prototype._update=function(e,t){var n=this;n._isMounted&&gt(n,"beforeUpdate");var r=n.$el,i=n._vnode,o=ht;(ht=n)._vnode=e,i?n.$el=n.__patch__(i,e):(n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),ht=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},un.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},un.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){gt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||f(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),gt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},qt((fn=hn).prototype),fn.prototype.$nextTick=function(e){return Ge(e,this)},fn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=i.data.scopedSlots||y),n.$vnode=i;try{t=r.call(n._renderProxy,n.$createElement)}catch(e){Pe(e,n,"render"),t=n._vnode}return t instanceof le||(t=fe()),t.parent=i,t};var $n,wn,Cn,xn=[String,RegExp,Array],kn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:xn,exclude:xn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)bn(this.cache,e,this.keys)},watch:{include:function(t){_n(this,function(e){return gn(t,e)})},exclude:function(t){_n(this,function(e){return!gn(t,e)})}},render:function(){var e=this.$slots.default,t=ct(e),n=t&&t.componentOptions;if(n){var r=yn(n),i=this.include,o=this.exclude;if(i&&(!r||!gn(i,r))||o&&r&&gn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,f(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&bn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};$n=hn,Cn={get:function(){return S}},Object.defineProperty($n,"config",Cn),$n.util={warn:re,extend:m,mergeOptions:je,defineReactive:we},$n.set=Ce,$n.delete=xe,$n.nextTick=Ge,$n.options=Object.create(null),k.forEach(function(e){$n.options[e+"s"]=Object.create(null)}),m(($n.options._base=$n).options.components,kn),$n.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=h(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this},$n.mixin=function(e){return this.options=je(this.options,e),this},mn($n),wn=$n,k.forEach(function(n){wn[n]=function(e,t){return t?("component"===n&&l(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(hn.prototype,"$isServer",{get:Y}),Object.defineProperty(hn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(hn,"FunctionalRenderContext",{value:Wt}),hn.version="2.5.15";var An=s("style,class"),On=s("input,textarea,option,select,progress"),Sn=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Tn=s("contenteditable,draggable,spellcheck"),En=s("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jn="http://www.w3.org/1999/xlink",Nn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},In=function(e){return Nn(e)?e.slice(6,e.length):""},Ln=function(e){return null==e||!1===e};function Mn(e){for(var t=e.data,n=e,r=e;D(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Dn(r.data,t));for(;D(n=n.parent);)n&&n.data&&(t=Dn(t,n.data));return function(e,t){if(D(e)||D(t))return Pn(e,Fn(t));return""}(t.staticClass,t.class)}function Dn(e,t){return{staticClass:Pn(e.staticClass,t.staticClass),class:D(e.class)?[e.class,t.class]:t.class}}function Pn(e,t){return e?t?e+" "+t:e:t||""}function Fn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)D(t=Fn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):P(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Rn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Hn=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Bn=s("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Un=function(e){return Hn(e)||Bn(e)};function Vn(e){return Bn(e)?"svg":"math"===e?"math":void 0}var zn=Object.create(null);var Kn=s("text,number,password,search,email,tel,url");function Jn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Rn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Wn={create:function(e,t){Gn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Gn(e,!0),Gn(t))},destroy:function(e){Gn(e,!0)}};function Gn(e,t){var n=e.data.ref;if(D(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?f(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var Zn=new le("",{},[]),Xn=["create","activate","update","remove","destroy"];function Yn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&D(e.data)===D(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=D(n=e.data)&&D(n=n.attrs)&&n.type,i=D(n=t.data)&&D(n=n.attrs)&&n.type;return r===i||Kn(r)&&Kn(i)}(e,t)||T(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&M(t.asyncFactory.error))}function Qn(e,t,n){var r,i,o={};for(r=t;r<=n;++r)D(i=e[r].key)&&(o[i]=r);return o}var er={create:tr,update:tr,destroy:function(e){tr(e,Zn)}};function tr(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===Zn,a=n===Zn,s=rr(t.data.directives,t.context),c=rr(n.data.directives,n.context),l=[],u=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,ir(i,"update",n,t),i.def&&i.def.componentUpdated&&u.push(i)):(ir(i,"bind",n,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var e=0;e<l.length;e++)ir(l[e],"inserted",n,t)};o?nt(n,"insert",f):f()}u.length&&nt(n,"postpatch",function(){for(var e=0;e<u.length;e++)ir(u[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||ir(s[e],"unbind",t,t,a)}(e,t)}var nr=Object.create(null);function rr(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=nr),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=Ne(t.$options,"directives",r.name);return o}function ir(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){Pe(e,r.context,"directive "+t.name+" "+n+" hook")}}var or=[Wn,er];function ar(e,t){var n=t.componentOptions;if(!(D(n)&&!1===n.Ctor.options.inheritAttrs||M(e.data.attrs)&&M(t.data.attrs))){var r,i,o=t.elm,a=e.data.attrs||{},s=t.data.attrs||{};for(r in D(s.__ob__)&&(s=t.data.attrs=m({},s)),s)i=s[r],a[r]!==i&&sr(o,r,i);for(r in(K||q)&&s.value!==a.value&&sr(o,"value",s.value),a)M(s[r])&&(Nn(r)?o.removeAttributeNS(jn,In(r)):Tn(r)||o.removeAttribute(r))}}function sr(e,t,n){-1<e.tagName.indexOf("-")?cr(e,t,n):En(t)?Ln(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Tn(t)?e.setAttribute(t,Ln(n)||"false"===n?"false":"true"):Nn(t)?Ln(n)?e.removeAttributeNS(jn,In(t)):e.setAttributeNS(jn,t,n):cr(e,t,n)}function cr(t,e,n){if(Ln(n))t.removeAttribute(e);else{if(K&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var lr={create:ar,update:ar};function ur(e,t){var n=t.elm,r=t.data,i=e.data;if(!(M(r.staticClass)&&M(r.class)&&(M(i)||M(i.staticClass)&&M(i.class)))){var o=Mn(t),a=n._transitionClasses;D(a)&&(o=Pn(o,Fn(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var fr,pr,dr,vr,hr,mr,yr={create:ur,update:ur},gr=/[\w).+\-_$\]]/;function _r(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}if(47===t){for(var v=r-1,h=void 0;0<=v&&" "===(h=e.charAt(v));v--);h&&gr.test(h)||(l=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=br(i,o[r]);return i}function br(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function $r(e){console.error("[Vue compiler]: "+e)}function wr(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Cr(e,t,n){(e.props||(e.props=[])).push({name:t,value:n}),e.plain=!1}function xr(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n}),e.plain=!1}function kr(e,t,n){e.attrsMap[t]=n,e.attrsList.push({name:t,value:n})}function Ar(e,t,n,r,i,o){var a;(r=r||y).capture&&(delete r.capture,t="!"+t),r.once&&(delete r.once,t="~"+t),r.passive&&(delete r.passive,t="&"+t),"click"===t&&(r.right?(t="contextmenu",delete r.right):r.middle&&(t="mouseup")),r.native?(delete r.native,a=e.nativeEvents||(e.nativeEvents={})):a=e.events||(e.events={});var s={value:n.trim()};r!==y&&(s.modifiers=r);var c=a[t];Array.isArray(c)?i?c.unshift(s):c.push(s):a[t]=c?i?[s,c]:[c,s]:s,e.plain=!1}function Or(e,t,n){var r=Sr(e,":"+t)||Sr(e,"v-bind:"+t);if(null!=r)return _r(r);if(!1!==n){var i=Sr(e,t);if(null!=i)return JSON.stringify(i)}}function Sr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Tr(e,t,n){var r=n||{},i=r.number,o="$$v",a=o;r.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var s=Er(t,a);e.model={value:"("+t+")",expression:'"'+t+'"',callback:"function ($$v) {"+s+"}"}}function Er(e,t){var n=function(e){if(e=e.trim(),fr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<fr-1)return-1<(vr=e.lastIndexOf("."))?{exp:e.slice(0,vr),key:'"'+e.slice(vr+1)+'"'}:{exp:e,key:null};pr=e,vr=hr=mr=0;for(;!Nr();)Ir(dr=jr())?Mr(dr):91===dr&&Lr(dr);return{exp:e.slice(0,hr),key:e.slice(hr+1,mr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function jr(){return pr.charCodeAt(++vr)}function Nr(){return fr<=vr}function Ir(e){return 34===e||39===e}function Lr(e){var t=1;for(hr=vr;!Nr();)if(Ir(e=jr()))Mr(e);else if(91===e&&t++,93===e&&t--,0===t){mr=vr;break}}function Mr(e){for(var t=e;!Nr()&&(e=jr())!==t;);}var Dr,Pr="__r",Fr="__c";function Rr(e,t,n,r,i){var o,a,s,c,l;t=(o=t)._withTask||(o._withTask=function(){Ke=!0;var e=o.apply(null,arguments);return Ke=!1,e}),n&&(a=t,s=e,c=r,l=Dr,t=function e(){null!==a.apply(null,arguments)&&Hr(s,e,c,l)}),Dr.addEventListener(e,t,Z?{capture:r,passive:i}:r)}function Hr(e,t,n,r){(r||Dr).removeEventListener(e,t._withTask||t,n)}function Br(e,t){if(!M(e.data.on)||!M(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Dr=t.elm,function(e){if(D(e[Pr])){var t=K?"change":"input";e[t]=[].concat(e[Pr],e[t]||[]),delete e[Pr]}D(e[Fr])&&(e.change=[].concat(e[Fr],e.change||[]),delete e[Fr])}(n),tt(n,r,Rr,Hr,t.context),Dr=void 0}}var Ur={create:Br,update:Br};function Vr(e,t){if(!M(e.data.domProps)||!M(t.data.domProps)){var n,r,i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in D(c.__ob__)&&(c=t.data.domProps=m({},c)),s)M(c[n])&&(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){var l=M(a._value=r)?"":String(r);o=l,(i=a).composing||"OPTION"!==i.tagName&&!function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(i,o)&&!function(e,t){var n=e.value,r=e._vModifiers;if(D(r)){if(r.lazy)return!1;if(r.number)return F(n)!==F(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(i,o)||(a.value=l)}else a[n]=r}}}var zr={create:Vr,update:Vr},Kr=e(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function Jr(e){var t=qr(e.style);return e.staticStyle?m(e.staticStyle,t):t}function qr(e){return Array.isArray(e)?b(e):"string"==typeof e?Kr(e):e}var Wr,Gr=/^--/,Zr=/\s*!important$/,Xr=function(e,t,n){if(Gr.test(t))e.style.setProperty(t,n);else if(Zr.test(n))e.style.setProperty(t,n.replace(Zr,""),"important");else{var r=Qr(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Yr=["Webkit","Moz","ms"],Qr=e(function(e){if(Wr=Wr||document.createElement("div").style,"filter"!==(e=g(e))&&e in Wr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Yr.length;n++){var r=Yr[n]+t;if(r in Wr)return r}});function ei(e,t){var n=t.data,r=e.data;if(!(M(n.staticStyle)&&M(n.style)&&M(r.staticStyle)&&M(r.style))){var i,o,a=t.elm,s=r.staticStyle,c=r.normalizedStyle||r.style||{},l=s||c,u=qr(t.data.style)||{};t.data.normalizedStyle=D(u.__ob__)?m({},u):u;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Jr(i.data))&&m(r,n);(n=Jr(e.data))&&m(r,n);for(var o=e;o=o.parent;)o.data&&(n=Jr(o.data))&&m(r,n);return r}(t,!0);for(o in l)M(f[o])&&Xr(a,o,"");for(o in f)(i=f[o])!==l[o]&&Xr(a,o,null==i?"":i)}}var ti={create:ei,update:ei};function ni(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ri(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";0<=n.indexOf(r);)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ii(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&m(t,oi(e.name||"v")),m(t,e),t}return"string"==typeof e?oi(e):void 0}}var oi=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ai=B&&!J,si="transition",ci="animation",li="transition",ui="transitionend",fi="animation",pi="animationend";ai&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(li="WebkitTransition",ui="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(fi="WebkitAnimation",pi="webkitAnimationEnd"));var di=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function vi(e){di(function(){di(e)})}function hi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ni(e,t))}function mi(e,t){e._transitionClasses&&f(e._transitionClasses,t),ri(e,t)}function yi(t,e,n){var r=_i(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===si?ui:pi,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&l()};setTimeout(function(){c<a&&l()},o+1),t.addEventListener(s,u)}var gi=/\b(transform|all)(,|$)/;function _i(e,t){var n,r=window.getComputedStyle(e),i=r[li+"Delay"].split(", "),o=r[li+"Duration"].split(", "),a=bi(i,o),s=r[fi+"Delay"].split(", "),c=r[fi+"Duration"].split(", "),l=bi(s,c),u=0,f=0;return t===si?0<a&&(n=si,u=a,f=o.length):t===ci?0<l&&(n=ci,u=l,f=c.length):f=(n=0<(u=Math.max(a,l))?l<a?si:ci:null)?n===si?o.length:c.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===si&&gi.test(r[li+"Property"])}}function bi(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max.apply(null,e.map(function(e,t){return $i(e)+$i(n[t])}))}function $i(e){return 1e3*Number(e.slice(0,-1))}function wi(n,e){var r=n.elm;D(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var t=ii(n.data.transition);if(!M(t)&&!D(r._enterCb)&&1===r.nodeType){for(var i=t.css,o=t.type,a=t.enterClass,s=t.enterToClass,c=t.enterActiveClass,l=t.appearClass,u=t.appearToClass,f=t.appearActiveClass,p=t.beforeEnter,d=t.enter,v=t.afterEnter,h=t.enterCancelled,m=t.beforeAppear,y=t.appear,g=t.afterAppear,_=t.appearCancelled,b=t.duration,$=ht,w=ht.$vnode;w&&w.parent;)$=(w=w.parent).context;var C=!$._isMounted||!n.isRootInsert;if(!C||y||""===y){var x=C&&l?l:a,k=C&&f?f:c,A=C&&u?u:s,O=C&&m||p,S=C&&"function"==typeof y?y:d,T=C&&g||v,E=C&&_||h,j=F(P(b)?b.enter:b),N=!1!==i&&!J,I=ki(S),L=r._enterCb=R(function(){N&&(mi(r,A),mi(r,k)),L.cancelled?(N&&mi(r,x),E&&E(r)):T&&T(r),r._enterCb=null});n.data.show||nt(n,"insert",function(){var e=r.parentNode,t=e&&e._pending&&e._pending[n.key];t&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),S&&S(r,L)}),O&&O(r),N&&(hi(r,x),hi(r,k),vi(function(){mi(r,x),L.cancelled||(hi(r,A),I||(xi(j)?setTimeout(L,j):yi(r,o,L)))})),n.data.show&&(e&&e(),S&&S(r,L)),N||I||L()}}}function Ci(e,t){var n=e.elm;D(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=ii(e.data.transition);if(M(r)||1!==n.nodeType)return t();if(!D(n._leaveCb)){var i=r.css,o=r.type,a=r.leaveClass,s=r.leaveToClass,c=r.leaveActiveClass,l=r.beforeLeave,u=r.leave,f=r.afterLeave,p=r.leaveCancelled,d=r.delayLeave,v=r.duration,h=!1!==i&&!J,m=ki(u),y=F(P(v)?v.leave:v),g=n._leaveCb=R(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),h&&(mi(n,s),mi(n,c)),g.cancelled?(h&&mi(n,a),p&&p(n)):(t(),f&&f(n)),n._leaveCb=null});d?d(_):_()}function _(){g.cancelled||(e.data.show||((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),l&&l(n),h&&(hi(n,a),hi(n,c),vi(function(){mi(n,a),g.cancelled||(hi(n,s),m||(xi(y)?setTimeout(g,y):yi(n,o,g)))})),u&&u(n,g),h||m||g())}}function xi(e){return"number"==typeof e&&!isNaN(e)}function ki(e){if(M(e))return!1;var t=e.fns;return D(t)?ki(Array.isArray(t)?t[0]:t):1<(e._length||e.length)}function Ai(e,t){!0!==t.data.show&&wi(t)}var Oi=function(e){var r,t,g={},n=e.modules,_=e.nodeOps;for(r=0;r<Xn.length;++r)for(g[Xn[r]]=[],t=0;t<n.length;++t)D(n[t][Xn[r]])&&g[Xn[r]].push(n[t][Xn[r]]);function o(e){var t=_.parentNode(e);D(t)&&_.removeChild(t,e)}function b(e,t,n,r,i,o,a){var s,c;if(D(e.elm)&&D(o)&&(e=o[a]=((c=new le((s=e).tag,s.data,s.children,s.text,s.elm,s.context,s.componentOptions,s.asyncFactory)).ns=s.ns,c.isStatic=s.isStatic,c.key=s.key,c.isComment=s.isComment,c.fnContext=s.fnContext,c.fnOptions=s.fnOptions,c.fnScopeId=s.fnScopeId,c.isCloned=!0,c)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(D(i)){var o=D(e.componentInstance)&&i.keepAlive;if(D(i=i.hook)&&D(i=i.init)&&i(e,!1,n,r),D(e.componentInstance))return d(e,t),T(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,D(i=o.data)&&D(i=i.transition)){for(i=0;i<g.activate.length;++i)g.activate[i](Zn,o);t.push(o);break}p(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var l=e.data,u=e.children,f=e.tag;D(f)?(e.elm=e.ns?_.createElementNS(e.ns,f):_.createElement(f,e),m(e),v(e,u,t),D(l)&&h(e,t)):T(e.isComment)?e.elm=_.createComment(e.text):e.elm=_.createTextNode(e.text),p(n,e.elm,r)}}function d(e,t){D(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,$(e)?(h(e,t),m(e)):(Gn(e),t.push(e))}function p(e,t,n){D(e)&&(D(n)?n.parentNode===e&&_.insertBefore(e,t,n):_.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)b(t[r],n,e.elm,null,!0,t,r);else E(e.text)&&_.appendChild(e.elm,_.createTextNode(String(e.text)))}function $(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return D(e.tag)}function h(e,t){for(var n=0;n<g.create.length;++n)g.create[n](Zn,e);D(r=e.data.hook)&&(D(r.create)&&r.create(Zn,e),D(r.insert)&&t.push(e))}function m(e){var t;if(D(t=e.fnScopeId))_.setStyleScope(e.elm,t);else for(var n=e;n;)D(t=n.context)&&D(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t),n=n.parent;D(t=ht)&&t!==e.context&&t!==e.fnContext&&D(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t)}function y(e,t,n,r,i,o){for(;r<=i;++r)b(n[r],o,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(D(r))for(D(t=r.hook)&&D(t=t.destroy)&&t(e),t=0;t<g.destroy.length;++t)g.destroy[t](e);if(D(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function C(e,t,n,r){for(;n<=r;++n){var i=t[n];D(i)&&(D(i.tag)?(a(i),w(i)):o(i.elm))}}function a(e,t){if(D(t)||D(e.data)){var n,r=g.remove.length+1;for(D(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,r),D(n=e.componentInstance)&&D(n=n._vnode)&&D(n.data)&&a(n,t),n=0;n<g.remove.length;++n)g.remove[n](e,t);D(n=e.data.hook)&&D(n=n.remove)?n(e,t):t()}else o(e.elm)}function x(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(D(o)&&Yn(e,o))return i}}function k(e,t,n,r){if(e!==t){var i=t.elm=e.elm;if(T(e.isAsyncPlaceholder))D(t.asyncFactory.resolved)?S(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(T(t.isStatic)&&T(e.isStatic)&&t.key===e.key&&(T(t.isCloned)||T(t.isOnce)))t.componentInstance=e.componentInstance;else{var o,a=t.data;D(a)&&D(o=a.hook)&&D(o=o.prepatch)&&o(e,t);var s=e.children,c=t.children;if(D(a)&&$(t)){for(o=0;o<g.update.length;++o)g.update[o](e,t);D(o=a.hook)&&D(o=o.update)&&o(e,t)}M(t.text)?D(s)&&D(c)?s!==c&&function(e,t,n,r,i){for(var o,a,s,c=0,l=0,u=t.length-1,f=t[0],p=t[u],d=n.length-1,v=n[0],h=n[d],m=!i;c<=u&&l<=d;)M(f)?f=t[++c]:M(p)?p=t[--u]:Yn(f,v)?(k(f,v,r),f=t[++c],v=n[++l]):Yn(p,h)?(k(p,h,r),p=t[--u],h=n[--d]):Yn(f,h)?(k(f,h,r),m&&_.insertBefore(e,f.elm,_.nextSibling(p.elm)),f=t[++c],h=n[--d]):(Yn(p,v)?(k(p,v,r),m&&_.insertBefore(e,p.elm,f.elm),p=t[--u]):(M(o)&&(o=Qn(t,c,u)),M(a=D(v.key)?o[v.key]:x(v,t,c,u))?b(v,r,e,f.elm,!1,n,l):Yn(s=t[a],v)?(k(s,v,r),t[a]=void 0,m&&_.insertBefore(e,s.elm,f.elm)):b(v,r,e,f.elm,!1,n,l)),v=n[++l]);u<c?y(e,M(n[d+1])?null:n[d+1].elm,n,l,d,r):d<l&&C(0,t,c,u)}(i,s,c,n,r):D(c)?(D(e.text)&&_.setTextContent(i,""),y(i,null,c,0,c.length-1,n)):D(s)?C(0,s,0,s.length-1):D(e.text)&&_.setTextContent(i,""):e.text!==t.text&&_.setTextContent(i,t.text),D(a)&&D(o=a.hook)&&D(o=o.postpatch)&&o(e,t)}}}function A(e,t,n){if(T(n)&&D(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var O=s("attrs,class,staticClass,staticStyle,key");function S(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,T(t.isComment)&&D(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(D(a)&&(D(i=a.hook)&&D(i=i.init)&&i(t,!0),D(i=t.componentInstance)))return d(t,n),!0;if(D(o)){if(D(s))if(e.hasChildNodes())if(D(i=a)&&D(i=i.domProps)&&D(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,l=e.firstChild,u=0;u<s.length;u++){if(!l||!S(l,s[u],n,r)){c=!1;break}l=l.nextSibling}if(!c||l)return!1}else v(t,s,n);if(D(a)){var f=!1;for(var p in a)if(!O(p)){f=!0,h(t,n);break}!f&&a.class&&Xe(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r,i,o){if(!M(t)){var a,s=!1,c=[];if(M(e))s=!0,b(t,c,i,o);else{var l=D(e.nodeType);if(!l&&Yn(e,t))k(e,t,c,r);else{if(l){if(1===e.nodeType&&e.hasAttribute(j)&&(e.removeAttribute(j),n=!0),T(n)&&S(e,t,c))return A(t,c,!0),e;a=e,e=new le(_.tagName(a).toLowerCase(),{},[],void 0,a)}var u=e.elm,f=_.parentNode(u);if(b(t,c,u._leaveCb?null:f,_.nextSibling(u)),D(t.parent))for(var p=t.parent,d=$(t);p;){for(var v=0;v<g.destroy.length;++v)g.destroy[v](p);if(p.elm=t.elm,d){for(var h=0;h<g.create.length;++h)g.create[h](Zn,p);var m=p.data.hook.insert;if(m.merged)for(var y=1;y<m.fns.length;y++)m.fns[y]()}else Gn(p);p=p.parent}D(f)?C(0,[e],0,0):D(e.tag)&&w(e)}}return A(t,c,s),t.elm}D(e)&&w(e)}}({nodeOps:qn,modules:[lr,yr,Ur,zr,ti,B?{create:Ai,activate:Ai,remove:function(e,t){!0!==e.data.show?Ci(e,t):t()}}:{}].concat(or)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Mi(e,"input")});var Si={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?nt(n,"postpatch",function(){Si.componentUpdated(e,t,n)}):Ti(e,t,n.context),e._vOptions=[].map.call(e.options,Ni)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ii),e.addEventListener("compositionend",Li),e.addEventListener("change",Li),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ti(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ni);if(i.some(function(e,t){return!C(e,r[t])}))(e.multiple?t.value.some(function(e){return ji(e,i)}):t.value!==t.oldValue&&ji(t.value,i))&&Mi(e,"change")}}};function Ti(e,t,n){Ei(e,t,n),(K||q)&&setTimeout(function(){Ei(e,t,n)},0)}function Ei(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=-1<x(r,Ni(a)),a.selected!==o&&(a.selected=o);else if(C(Ni(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ji(t,e){return e.every(function(e){return!C(e,t)})}function Ni(e){return"_value"in e?e._value:e.value}function Ii(e){e.target.composing=!0}function Li(e){e.target.composing&&(e.target.composing=!1,Mi(e.target,"input"))}function Mi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Di(e){return!e.componentInstance||e.data&&e.data.transition?e:Di(e.componentInstance._vnode)}var Pi={model:Si,show:{bind:function(e,t,n){var r=t.value,i=(n=Di(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,wi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Di(n)).data&&n.data.transition?(n.data.show=!0,r?wi(n,function(){e.style.display=e.__vOriginalDisplay}):Ci(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Fi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ri(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ri(ct(t.children)):e}function Hi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[g(o)]=i[o];return t}function Bi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ui={name:"transition",props:Fi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||st(e)})).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ri(i);if(!o)return i;if(this._leaving)return Bi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:E(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s,c,l=(o.data||(o.data={})).transition=Hi(this),u=this._vnode,f=Ri(u);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),f&&f.data&&(s=o,(c=f).key!==s.key||c.tag!==s.tag)&&!st(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var p=f.data.transition=m({},l);if("out-in"===r)return this._leaving=!0,nt(p,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Bi(e,i);if("in-out"===r){if(st(o))return u;var d,v=function(){d()};nt(l,"afterEnter",v),nt(l,"enterCancelled",v),nt(p,"delayLeave",function(e){d=e})}}return i}}},Vi=m({tag:String,moveClass:String},Fi);function zi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ki(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ji(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Vi.mode;var qi={Transition:Ui,TransitionGroup:{props:Vi,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Hi(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),((n[c.key]=c).data||(c.data={})).transition=a)}if(r){for(var l=[],u=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?l.push(p):u.push(p)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,r=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,r)&&(e.forEach(zi),e.forEach(Ki),e.forEach(Ji),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,t=n.style;hi(n,r),t.transform=t.WebkitTransform=t.transitionDuration="",n.addEventListener(ui,n._moveCb=function e(t){t&&!/transform$/.test(t.propertyName)||(n.removeEventListener(ui,e),n._moveCb=null,mi(n,r))})}}))},methods:{hasMove:function(e,t){if(!ai)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){ri(n,e)}),ni(n,t),n.style.display="none",this.$el.appendChild(n);var r=_i(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};hn.config.mustUseProp=Sn,hn.config.isReservedTag=Un,hn.config.isReservedAttr=An,hn.config.getTagNamespace=Vn,hn.config.isUnknownElement=function(e){if(!B)return!0;if(Un(e))return!1;if(e=e.toLowerCase(),null!=zn[e])return zn[e];var t=document.createElement(e);return-1<e.indexOf("-")?zn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:zn[e]=/HTMLUnknownElement/.test(t.toString())},m(hn.options.directives,Pi),m(hn.options.components,qi),hn.prototype.__patch__=B?Oi:$,hn.prototype.$mount=function(e,t){return e=e&&B?Jn(e):void 0,r=e,i=t,(n=this).$el=r,n.$options.render||(n.$options.render=fe),gt(n,"beforeMount"),new Ot(n,function(){n._update(n._render(),i)},$,null,!0),i=!1,null==n.$vnode&&(n._isMounted=!0,gt(n,"mounted")),n;var n,r,i},B&&setTimeout(function(){S.devtools&&Q&&Q.emit("init",hn)},0);var Wi=/\{\{((?:.|\n)+?)\}\}/g,Gi=/[-.*+?^${}()|[\]\/\\]/g,Zi=e(function(e){var t=e[0].replace(Gi,"\\$&"),n=e[1].replace(Gi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var Xi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Sr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Or(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Yi,Qi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Sr(e,"style");n&&(e.staticStyle=JSON.stringify(Kr(n)));var r=Or(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},eo=function(e){return(Yi=Yi||document.createElement("div")).innerHTML=e,Yi.textContent},to=s("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=s("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ro=s("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),io=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oo="[a-zA-Z_][\\w\\-\\.]*",ao="((?:"+oo+"\\:)?"+oo+")",so=new RegExp("^<"+ao),co=/^\s*(\/?)>/,lo=new RegExp("^<\\/"+ao+"[^>]*>"),uo=/^<!DOCTYPE [^>]+>/i,fo=/^<!\--/,po=/^<!\[/,vo=!1;"x".replace(/x(.)?/g,function(e,t){vo=""===t});var ho=s("script,style,textarea",!0),mo={},yo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t"},go=/&(?:lt|gt|quot|amp);/g,_o=/&(?:lt|gt|quot|amp|#10|#9);/g,bo=s("pre,textarea",!0),$o=function(e,t){return e&&bo(e)&&"\n"===t[0]};var wo,Co,xo,ko,Ao,Oo,So,To,Eo=/^@|^v-on:/,jo=/^v-|^@|^:/,No=/(.*?)\s+(?:in|of)\s+(.*)/,Io=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Lo=/^\(|\)$/g,Mo=/:(.*)$/,Do=/^:|^v-bind:/,Po=/\.[^.]+/g,Fo=e(eo);function Ro(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}(t),parent:n,children:[]}}function Ho(e,p){wo=p.warn||$r,Oo=p.isPreTag||O,So=p.mustUseProp||O,To=p.getTagNamespace||O,xo=wr(p.modules,"transformNode"),ko=wr(p.modules,"preTransformNode"),Ao=wr(p.modules,"postTransformNode"),Co=p.delimiters;var d,v,h=[],i=!1!==p.preserveWhitespace,m=!1,y=!1;function g(e){e.pre&&(m=!1),Oo(e.tag)&&(y=!1);for(var t=0;t<Ao.length;t++)Ao[t](e,p)}return function(i,d){for(var e,v,h=[],m=d.expectHTML,y=d.isUnaryTag||O,g=d.canBeLeftOpenTag||O,a=0;i;){if(e=i,v&&ho(v)){var r=0,o=v.toLowerCase(),t=mo[o]||(mo[o]=new RegExp("([\\s\\S]*?)(</"+o+"[^>]*>)","i")),n=i.replace(t,function(e,t,n){return r=n.length,ho(o)||"noscript"===o||(t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),$o(o,t)&&(t=t.slice(1)),d.chars&&d.chars(t),""});a+=i.length-n.length,i=n,A(o,a-r,a)}else{var s=i.indexOf("<");if(0===s){if(fo.test(i)){var c=i.indexOf("--\x3e");if(0<=c){d.shouldKeepComment&&d.comment(i.substring(4,c)),C(c+3);continue}}if(po.test(i)){var l=i.indexOf("]>");if(0<=l){C(l+2);continue}}var u=i.match(uo);if(u){C(u[0].length);continue}var f=i.match(lo);if(f){var p=a;C(f[0].length),A(f[1],p,a);continue}var _=x();if(_){k(_),$o(v,i)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(0<=s){for($=i.slice(s);!(lo.test($)||so.test($)||fo.test($)||po.test($)||(w=$.indexOf("<",1))<0);)s+=w,$=i.slice(s);b=i.substring(0,s),C(s)}s<0&&(b=i,i=""),d.chars&&b&&d.chars(b)}if(i===e){d.chars&&d.chars(i);break}}function C(e){a+=e,i=i.substring(e)}function x(){var e=i.match(so);if(e){var t,n,r={tagName:e[1],attrs:[],start:a};for(C(e[0].length);!(t=i.match(co))&&(n=i.match(io));)C(n[0].length),r.attrs.push(n);if(t)return r.unarySlash=t[1],C(t[0].length),r.end=a,r}}function k(e){var t=e.tagName,n=e.unarySlash;m&&("p"===v&&ro(t)&&A(v),g(t)&&v===t&&A(t));for(var r,i,o,a=y(t)||!!n,s=e.attrs.length,c=new Array(s),l=0;l<s;l++){var u=e.attrs[l];vo&&-1===u[0].indexOf('""')&&(""===u[3]&&delete u[3],""===u[4]&&delete u[4],""===u[5]&&delete u[5]);var f=u[3]||u[4]||u[5]||"",p="a"===t&&"href"===u[1]?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;c[l]={name:u[1],value:(r=f,i=p,o=i?_o:go,r.replace(o,function(e){return yo[e]}))}}a||(h.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:c}),v=t),d.start&&d.start(t,c,a,e.start,e.end)}function A(e,t,n){var r,i;if(null==t&&(t=a),null==n&&(n=a),e&&(i=e.toLowerCase()),e)for(r=h.length-1;0<=r&&h[r].lowerCasedTag!==i;r--);else r=0;if(0<=r){for(var o=h.length-1;r<=o;o--)d.end&&d.end(h[o].tag,t,n);h.length=r,v=r&&h[r-1].tag}else"br"===i?d.start&&d.start(e,[],!0,t,n):"p"===i&&(d.start&&d.start(e,[],!1,t,n),d.end&&d.end(e,t,n))}A()}(e,{warn:wo,expectHTML:p.expectHTML,isUnaryTag:p.isUnaryTag,canBeLeftOpenTag:p.canBeLeftOpenTag,shouldDecodeNewlines:p.shouldDecodeNewlines,shouldDecodeNewlinesForHref:p.shouldDecodeNewlinesForHref,shouldKeepComment:p.comments,start:function(e,t,n){var r=v&&v.ns||To(e);K&&"svg"===r&&(t=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Ko.test(r.name)||(r.name=r.name.replace(Jo,""),t.push(r))}return t}(t));var i,o,a,s,c,l=Ro(e,t,v);r&&(l.ns=r),"style"!==(i=l).tag&&("script"!==i.tag||i.attrsMap.type&&"text/javascript"!==i.attrsMap.type)||Y()||(l.forbidden=!0);for(var u=0;u<ko.length;u++)l=ko[u](l,p)||l;if(m||(null!=Sr(o=l,"v-pre")&&(o.pre=!0),l.pre&&(m=!0)),Oo(l.tag)&&(y=!0),m?function(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}(l):l.processed||(Uo(l),function(e){var t=Sr(e,"v-if");if(t)e.if=t,Vo(e,{exp:t,block:e});else{null!=Sr(e,"v-else")&&(e.else=!0);var n=Sr(e,"v-else-if");n&&(e.elseif=n)}}(l),null!=Sr(a=l,"v-once")&&(a.once=!0),Bo(l,p)),d?h.length||d.if&&(l.elseif||l.else)&&Vo(d,{exp:l.elseif,block:l}):d=l,v&&!l.forbidden)if(l.elseif||l.else)s=l,(c=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(v.children))&&c.if&&Vo(c,{exp:s.elseif,block:s});else if(l.slotScope){v.plain=!1;var f=l.slotTarget||'"default"';(v.scopedSlots||(v.scopedSlots={}))[f]=l}else v.children.push(l),l.parent=v;n?g(l):(v=l,h.push(l))},end:function(){var e=h[h.length-1],t=e.children[e.children.length-1];t&&3===t.type&&" "===t.text&&!y&&e.children.pop(),h.length-=1,v=h[h.length-1],g(e)},chars:function(e){if(v&&(!K||"textarea"!==v.tag||v.attrsMap.placeholder!==e)){var t,n,r=v.children;if(e=y||e.trim()?"script"===(t=v).tag||"style"===t.tag?e:Fo(e):i&&r.length?" ":"")!m&&" "!==e&&(n=function(e,t){var n=t?Zi(t):Wi;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){c<(i=r.index)&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=_r(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Co))?r.push({type:2,expression:n.expression,tokens:n.tokens,text:e}):" "===e&&r.length&&" "===r[r.length-1].text||r.push({type:3,text:e})}},comment:function(e){v.children.push({type:3,text:e,isComment:!0})}}),d}function Bo(e,t){var n,r,i,o;(r=Or(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.attrsList.length,(o=Or(i=e,"ref"))&&(i.ref=o,i.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(i)),function(e){if("slot"===e.tag)e.slotName=Or(e,"name");else{var t;"template"===e.tag?(t=Sr(e,"scope"),e.slotScope=t||Sr(e,"slot-scope")):(t=Sr(e,"slot-scope"))&&(e.slotScope=t);var n=Or(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,"template"===e.tag||e.slotScope||xr(e,"slot",n))}}(e),function(e){var t;(t=Or(e,"is"))&&(e.component=t);null!=Sr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var a=0;a<xo.length;a++)e=xo[a](e,t)||e;!function(e){var t,n,r,i,o,a,s,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(r=i=c[t].name,o=c[t].value,jo.test(r))if(e.hasBindings=!0,(a=zo(r))&&(r=r.replace(Po,"")),Do.test(r))r=r.replace(Do,""),o=_r(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(r=g(r))&&(r="innerHTML")),a.camel&&(r=g(r)),a.sync&&Ar(e,"update:"+g(r),Er(o,"$event"))),s||!e.component&&So(e.tag,e.attrsMap.type,r)?Cr(e,r,o):xr(e,r,o);else if(Eo.test(r))r=r.replace(Eo,""),Ar(e,r,o,a,!1);else{var l=(r=r.replace(jo,"")).match(Mo),u=l&&l[1];u&&(r=r.slice(0,-(u.length+1))),p=r,d=i,v=o,h=u,m=a,((f=e).directives||(f.directives=[])).push({name:p,rawName:d,value:v,arg:h,modifiers:m}),f.plain=!1}else xr(e,r,JSON.stringify(o)),!e.component&&"muted"===r&&So(e.tag,e.attrsMap.type,r)&&Cr(e,r,"true");var f,p,d,v,h,m}(e)}function Uo(e){var t;if(t=Sr(e,"v-for")){var n=function(e){var t=e.match(No);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Lo,""),i=r.match(Io);i?(n.alias=r.replace(Io,""),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&m(e,n)}}function Vo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function zo(e){var t=e.match(Po);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var Ko=/^xmlns:NS\d+/,Jo=/^NS\d+:/;function qo(e){return Ro(e.tag,e.attrsList.slice(),e.parent)}var Wo=[Xi,Qi,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Or(e,"type")),!n&&r["v-bind"]&&(n="("+r["v-bind"]+").type"),n){var i=Sr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Sr(e,"v-else",!0),s=Sr(e,"v-else-if",!0),c=qo(e);Uo(c),kr(c,"type","checkbox"),Bo(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,Vo(c,{exp:c.if,block:c});var l=qo(e);Sr(l,"v-for",!0),kr(l,"type","radio"),Bo(l,t),Vo(c,{exp:"("+n+")==='radio'"+o,block:l});var u=qo(e);return Sr(u,"v-for",!0),kr(u,":type",n),Bo(u,t),Vo(c,{exp:i,block:u}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var Go,Zo,Xo,Yo={expectHTML:!0,modules:Wo,directives:{model:function(e,t,n){var r,i,o,a,s,c,l,u,f,p,d,v,h,m,y,g,_=t.value,b=t.modifiers,$=e.tag,w=e.attrsMap.type;if(e.component)return Tr(e,_,b),!1;if("select"===$)h=e,m=_,g=(g='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+((y=b)&&y.number?"_n(val)":"val")+"});")+" "+Er(m,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ar(h,"change",g,null,!0);else if("input"===$&&"checkbox"===w)c=e,l=_,f=(u=b)&&u.number,p=Or(c,"value")||"null",d=Or(c,"true-value")||"true",v=Or(c,"false-value")||"false",Cr(c,"checked","Array.isArray("+l+")?_i("+l+","+p+")>-1"+("true"===d?":("+l+")":":_q("+l+","+d+")")),Ar(c,"change","var $$a="+l+",$$el=$event.target,$$c=$$el.checked?("+d+"):("+v+");if(Array.isArray($$a)){var $$v="+(f?"_n("+p+")":p)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Er(l,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Er(l,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Er(l,"$$c")+"}",null,!0);else if("input"===$&&"radio"===w)r=e,i=_,a=(o=b)&&o.number,s=Or(r,"value")||"null",Cr(r,"checked","_q("+i+","+(s=a?"_n("+s+")":s)+")"),Ar(r,"change",Er(i,s),null,!0);else if("input"===$||"textarea"===$)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Pr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Er(t,u);c&&(f="if($event.target.composing)return;"+f),Cr(e,"value","("+t+")"),Ar(e,l,f,null,!0),(s||a)&&Ar(e,"blur","$forceUpdate()")}(e,_,b);else if(!S.isReservedTag($))return Tr(e,_,b),!1;return!0},text:function(e,t){t.value&&Cr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&Cr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:to,mustUseProp:Sn,canBeLeftOpenTag:no,isReservedTag:Un,getTagNamespace:Vn,staticKeys:(Go=Wo,Go.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(","))},Qo=e(function(e){return s("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function ea(e,t){e&&(Zo=Qo(t.staticKeys||""),Xo=t.isReservedTag||O,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||c(e.tag)||!Xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Zo)))}(t);if(1===t.type){if(!Xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var ta=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,na=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ra={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ia={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:"ArrowUp",left:"ArrowLeft",right:"ArrowRight",down:"ArrowDown",delete:["Backspace","Delete"]},oa=function(e){return"if("+e+")return null;"},aa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:oa("$event.target !== $event.currentTarget"),ctrl:oa("!$event.ctrlKey"),shift:oa("!$event.shiftKey"),alt:oa("!$event.altKey"),meta:oa("!$event.metaKey"),left:oa("'button' in $event && $event.button !== 0"),middle:oa("'button' in $event && $event.button !== 1"),right:oa("'button' in $event && $event.button !== 2")};function sa(e,t,n){var r=t?"nativeOn:{":"on:{";for(var i in e)r+='"'+i+'":'+ca(i,e[i])+",";return r.slice(0,-1)+"}"}function ca(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return ca(t,e)}).join(",")+"]";var n=na.test(e.value),r=ta.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(aa[s])o+=aa[s],ra[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=oa(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+="if(!('button' in $event)&&"+a.map(la).join("&&")+")return null;"),o&&(i+=o),"function($event){"+i+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function la(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ra[e],r=ia[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ua={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}},cloak:$},fa=function(e){this.options=e,this.warn=e.warn||$r,this.transforms=wr(e.modules,"transformCode"),this.dataGenFns=wr(e.modules,"genData"),this.directives=m(m({},ua),e.directives);var t=e.isReservedTag||O;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function pa(e,t){var n=new fa(t);return{render:"with(this){return "+(e?da(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function da(e,t){if(e.staticRoot&&!e.staticProcessed)return va(e,t);if(e.once&&!e.onceProcessed)return ha(e,t);if(e.for&&!e.forProcessed)return f=t,v=(u=e).for,h=u.alias,m=u.iterator1?","+u.iterator1:"",y=u.iterator2?","+u.iterator2:"",u.forProcessed=!0,(d||"_l")+"(("+v+"),function("+h+m+y+"){return "+(p||da)(u,f)+"})";if(e.if&&!e.ifProcessed)return ma(e,t);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=_a(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return g(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)a=e.component,c=t,l=(s=e).inlineTemplate?null:_a(s,c,!0),n="_c("+a+","+ya(s,c)+(l?","+l:"")+")";else{var r=e.plain?void 0:ya(e,t),i=e.inlineTemplate?null:_a(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return _a(e,t)||"void 0";var a,s,c,l,u,f,p,d,v,h,m,y}function va(e,t){return e.staticProcessed=!0,t.staticRenderFns.push("with(this){return "+da(e,t)+"}"),"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ha(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return ma(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+da(e,t)+","+t.onceId+++","+n+")":da(e,t)}return va(e,t)}function ma(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ha(e,n):da(e,n)}}(e.ifConditions.slice(),t,n,r)}function ya(e,t){var n,r,i="{",o=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(c)return s.slice(0,-1)+"]"}(e,t);o&&(i+=o+","),e.key&&(i+="key:"+e.key+","),e.ref&&(i+="ref:"+e.ref+","),e.refInFor&&(i+="refInFor:true,"),e.pre&&(i+="pre:true,"),e.component&&(i+='tag:"'+e.tag+'",');for(var a=0;a<t.dataGenFns.length;a++)i+=t.dataGenFns[a](e);if(e.attrs&&(i+="attrs:{"+wa(e.attrs)+"},"),e.props&&(i+="domProps:{"+wa(e.props)+"},"),e.events&&(i+=sa(e.events,!1,t.warn)+","),e.nativeEvents&&(i+=sa(e.nativeEvents,!0,t.warn)+","),e.slotTarget&&!e.slotScope&&(i+="slot:"+e.slotTarget+","),e.scopedSlots&&(i+=(n=e.scopedSlots,r=t,"scopedSlots:_u(["+Object.keys(n).map(function(e){return ga(e,n[e],r)}).join(",")+"]),")),e.model&&(i+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var s=function(e,t){var n=e.children[0];if(1===n.type){var r=pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);s&&(i+=s+",")}return i=i.replace(/,$/,"")+"}",e.wrapData&&(i=e.wrapData(i)),e.wrapListeners&&(i=e.wrapListeners(i)),i}function ga(e,t,n){return t.for&&!t.forProcessed?(r=e,o=n,a=(i=t).for,s=i.alias,c=i.iterator1?","+i.iterator1:"",l=i.iterator2?","+i.iterator2:"",i.forProcessed=!0,"_l(("+a+"),function("+s+c+l+"){return "+ga(r,i,o)+"})"):"{key:"+e+",fn:"+("function("+String(t.slotScope)+"){return "+("template"===t.tag?t.if?t.if+"?"+(_a(t,n)||"undefined")+":undefined":_a(t,n)||"undefined":da(t,n))+"}")+"}";var r,i,o,a,s,c,l}function _a(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(r||da)(a,t);var s=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(ba(i)||i.ifConditions&&i.ifConditions.some(function(e){return ba(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(o,t.maybeComponent):0,c=i||$a;return"["+o.map(function(e){return c(e,t)}).join(",")+"]"+(s?","+s:"")}}function ba(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function $a(e,t){return 1===e.type?da(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Ca(JSON.stringify(n.text)))+")";var n,r}function wa(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name+'":'+Ca(r.value)+","}return t.slice(0,-1)}function Ca(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function xa(t,n){try{return new Function(t)}catch(e){return n.push({err:e,code:t}),$}}var ka,Aa,Oa=(ka=function(e,t){var n=Ho(e.trim(),t);!1!==t.optimize&&ea(n,t);var r=pa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(s){function e(e,t){var n=Object.create(s),r=[],i=[];if(n.warn=function(e,t){(t?i:r).push(e)},t)for(var o in t.modules&&(n.modules=(s.modules||[]).concat(t.modules)),t.directives&&(n.directives=m(Object.create(s.directives||null),t.directives)),t)"modules"!==o&&"directives"!==o&&(n[o]=t[o]);var a=ka(e,n);return a.errors=r,a.tips=i,a}return{compile:e,compileToFunctions:(c=e,l=Object.create(null),function(e,t,n){(t=m({},t)).warn,delete t.warn;var r=t.delimiters?String(t.delimiters)+e:e;if(l[r])return l[r];var i=c(e,t),o={},a=[];return o.render=xa(i.render,a),o.staticRenderFns=i.staticRenderFns.map(function(e){return xa(e,a)}),l[r]=o})};var c,l})(Yo).compileToFunctions;function Sa(e){return(Aa=Aa||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',0<Aa.innerHTML.indexOf("&#10;")}var Ta=!!B&&Sa(!1),Ea=!!B&&Sa(!0),ja=e(function(e){var t=Jn(e);return t&&t.innerHTML}),Na=hn.prototype.$mount;return hn.prototype.$mount=function(e,t){if((e=e&&Jn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ja(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){{if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}}(e));if(r){var i=Oa(r,{shouldDecodeNewlines:Ta,shouldDecodeNewlinesForHref:Ea,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Na.call(this,e,t)},hn.compile=Oa,hn});
    \ No newline at end of file
    diff --git a/fangija-zsyf/js/zepto.js b/fangija-zsyf/js/zepto.js
    new file mode 100644
    index 0000000..1f0a42f
    --- /dev/null
    +++ b/fangija-zsyf/js/zepto.js
    @@ -0,0 +1,1588 @@
    +/* Zepto v1.1.6 - zepto event ajax form ie - zeptojs.com/license */
    +
    +var Zepto = (function() {
    +  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
    +    document = window.document,
    +    elementDisplay = {}, classCache = {},
    +    cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },
    +    fragmentRE = /^\s*<(\w+|!)[^>]*>/,
    +    singleTagRE = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
    +    tagExpanderRE = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
    +    rootNodeRE = /^(?:body|html)$/i,
    +    capitalRE = /([A-Z])/g,
    +
    +    // special attributes that should be get/set via method calls
    +    methodAttributes = ['val', 'css', 'html', 'text', 'data', 'width', 'height', 'offset'],
    +
    +    adjacencyOperators = [ 'after', 'prepend', 'before', 'append' ],
    +    table = document.createElement('table'),
    +    tableRow = document.createElement('tr'),
    +    containers = {
    +      'tr': document.createElement('tbody'),
    +      'tbody': table, 'thead': table, 'tfoot': table,
    +      'td': tableRow, 'th': tableRow,
    +      '*': document.createElement('div')
    +    },
    +    readyRE = /complete|loaded|interactive/,
    +    simpleSelectorRE = /^[\w-]*$/,
    +    class2type = {},
    +    toString = class2type.toString,
    +    zepto = {},
    +    camelize, uniq,
    +    tempParent = document.createElement('div'),
    +    propMap = {
    +      'tabindex': 'tabIndex',
    +      'readonly': 'readOnly',
    +      'for': 'htmlFor',
    +      'class': 'className',
    +      'maxlength': 'maxLength',
    +      'cellspacing': 'cellSpacing',
    +      'cellpadding': 'cellPadding',
    +      'rowspan': 'rowSpan',
    +      'colspan': 'colSpan',
    +      'usemap': 'useMap',
    +      'frameborder': 'frameBorder',
    +      'contenteditable': 'contentEditable'
    +    },
    +    isArray = Array.isArray ||
    +      function(object){ return object instanceof Array }
    +
    +  zepto.matches = function(element, selector) {
    +    if (!selector || !element || element.nodeType !== 1) return false
    +    var matchesSelector = element.webkitMatchesSelector || element.mozMatchesSelector ||
    +                          element.oMatchesSelector || element.matchesSelector
    +    if (matchesSelector) return matchesSelector.call(element, selector)
    +    // fall back to performing a selector:
    +    var match, parent = element.parentNode, temp = !parent
    +    if (temp) (parent = tempParent).appendChild(element)
    +    match = ~zepto.qsa(parent, selector).indexOf(element)
    +    temp && tempParent.removeChild(element)
    +    return match
    +  }
    +
    +  function type(obj) {
    +    return obj == null ? String(obj) :
    +      class2type[toString.call(obj)] || "object"
    +  }
    +
    +  function isFunction(value) { return type(value) == "function" }
    +  function isWindow(obj)     { return obj != null && obj == obj.window }
    +  function isDocument(obj)   { return obj != null && obj.nodeType == obj.DOCUMENT_NODE }
    +  function isObject(obj)     { return type(obj) == "object" }
    +  function isPlainObject(obj) {
    +    return isObject(obj) && !isWindow(obj) && Object.getPrototypeOf(obj) == Object.prototype
    +  }
    +  function likeArray(obj) { return typeof obj.length == 'number' }
    +
    +  function compact(array) { return filter.call(array, function(item){ return item != null }) }
    +  function flatten(array) { return array.length > 0 ? $.fn.concat.apply([], array) : array }
    +  camelize = function(str){ return str.replace(/-+(.)?/g, function(match, chr){ return chr ? chr.toUpperCase() : '' }) }
    +  function dasherize(str) {
    +    return str.replace(/::/g, '/')
    +           .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')
    +           .replace(/([a-z\d])([A-Z])/g, '$1_$2')
    +           .replace(/_/g, '-')
    +           .toLowerCase()
    +  }
    +  uniq = function(array){ return filter.call(array, function(item, idx){ return array.indexOf(item) == idx }) }
    +
    +  function classRE(name) {
    +    return name in classCache ?
    +      classCache[name] : (classCache[name] = new RegExp('(^|\\s)' + name + '(\\s|$)'))
    +  }
    +
    +  function maybeAddPx(name, value) {
    +    return (typeof value == "number" && !cssNumber[dasherize(name)]) ? value + "px" : value
    +  }
    +
    +  function defaultDisplay(nodeName) {
    +    var element, display
    +    if (!elementDisplay[nodeName]) {
    +      element = document.createElement(nodeName)
    +      document.body.appendChild(element)
    +      display = getComputedStyle(element, '').getPropertyValue("display")
    +      element.parentNode.removeChild(element)
    +      display == "none" && (display = "block")
    +      elementDisplay[nodeName] = display
    +    }
    +    return elementDisplay[nodeName]
    +  }
    +
    +  function children(element) {
    +    return 'children' in element ?
    +      slice.call(element.children) :
    +      $.map(element.childNodes, function(node){ if (node.nodeType == 1) return node })
    +  }
    +
    +  // `$.zepto.fragment` takes a html string and an optional tag name
    +  // to generate DOM nodes nodes from the given html string.
    +  // The generated DOM nodes are returned as an array.
    +  // This function can be overriden in plugins for example to make
    +  // it compatible with browsers that don't support the DOM fully.
    +  zepto.fragment = function(html, name, properties) {
    +    var dom, nodes, container
    +
    +    // A special case optimization for a single tag
    +    if (singleTagRE.test(html)) dom = $(document.createElement(RegExp.$1))
    +
    +    if (!dom) {
    +      if (html.replace) html = html.replace(tagExpanderRE, "<$1></$2>")
    +      if (name === undefined) name = fragmentRE.test(html) && RegExp.$1
    +      if (!(name in containers)) name = '*'
    +
    +      container = containers[name]
    +      container.innerHTML = '' + html
    +      dom = $.each(slice.call(container.childNodes), function(){
    +        container.removeChild(this)
    +      })
    +    }
    +
    +    if (isPlainObject(properties)) {
    +      nodes = $(dom)
    +      $.each(properties, function(key, value) {
    +        if (methodAttributes.indexOf(key) > -1) nodes[key](value)
    +        else nodes.attr(key, value)
    +      })
    +    }
    +
    +    return dom
    +  }
    +
    +  // `$.zepto.Z` swaps out the prototype of the given `dom` array
    +  // of nodes with `$.fn` and thus supplying all the Zepto functions
    +  // to the array. Note that `__proto__` is not supported on Internet
    +  // Explorer. This method can be overriden in plugins.
    +  zepto.Z = function(dom, selector) {
    +    dom = dom || []
    +    dom.__proto__ = $.fn
    +    dom.selector = selector || ''
    +    return dom
    +  }
    +
    +  // `$.zepto.isZ` should return `true` if the given object is a Zepto
    +  // collection. This method can be overriden in plugins.
    +  zepto.isZ = function(object) {
    +    return object instanceof zepto.Z
    +  }
    +
    +  // `$.zepto.init` is Zepto's counterpart to jQuery's `$.fn.init` and
    +  // takes a CSS selector and an optional context (and handles various
    +  // special cases).
    +  // This method can be overriden in plugins.
    +  zepto.init = function(selector, context) {
    +    var dom
    +    // If nothing given, return an empty Zepto collection
    +    if (!selector) return zepto.Z()
    +    // Optimize for string selectors
    +    else if (typeof selector == 'string') {
    +      selector = selector.trim()
    +      // If it's a html fragment, create nodes from it
    +      // Note: In both Chrome 21 and Firefox 15, DOM error 12
    +      // is thrown if the fragment doesn't begin with <
    +      if (selector[0] == '<' && fragmentRE.test(selector))
    +        dom = zepto.fragment(selector, RegExp.$1, context), selector = null
    +      // If there's a context, create a collection on that context first, and select
    +      // nodes from there
    +      else if (context !== undefined) return $(context).find(selector)
    +      // If it's a CSS selector, use it to select nodes.
    +      else dom = zepto.qsa(document, selector)
    +    }
    +    // If a function is given, call it when the DOM is ready
    +    else if (isFunction(selector)) return $(document).ready(selector)
    +    // If a Zepto collection is given, just return it
    +    else if (zepto.isZ(selector)) return selector
    +    else {
    +      // normalize array if an array of nodes is given
    +      if (isArray(selector)) dom = compact(selector)
    +      // Wrap DOM nodes.
    +      else if (isObject(selector))
    +        dom = [selector], selector = null
    +      // If it's a html fragment, create nodes from it
    +      else if (fragmentRE.test(selector))
    +        dom = zepto.fragment(selector.trim(), RegExp.$1, context), selector = null
    +      // If there's a context, create a collection on that context first, and select
    +      // nodes from there
    +      else if (context !== undefined) return $(context).find(selector)
    +      // And last but no least, if it's a CSS selector, use it to select nodes.
    +      else dom = zepto.qsa(document, selector)
    +    }
    +    // create a new Zepto collection from the nodes found
    +    return zepto.Z(dom, selector)
    +  }
    +
    +  // `$` will be the base `Zepto` object. When calling this
    +  // function just call `$.zepto.init, which makes the implementation
    +  // details of selecting nodes and creating Zepto collections
    +  // patchable in plugins.
    +  $ = function(selector, context){
    +    return zepto.init(selector, context)
    +  }
    +
    +  function extend(target, source, deep) {
    +    for (key in source)
    +      if (deep && (isPlainObject(source[key]) || isArray(source[key]))) {
    +        if (isPlainObject(source[key]) && !isPlainObject(target[key]))
    +          target[key] = {}
    +        if (isArray(source[key]) && !isArray(target[key]))
    +          target[key] = []
    +        extend(target[key], source[key], deep)
    +      }
    +      else if (source[key] !== undefined) target[key] = source[key]
    +  }
    +
    +  // Copy all but undefined properties from one or more
    +  // objects to the `target` object.
    +  $.extend = function(target){
    +    var deep, args = slice.call(arguments, 1)
    +    if (typeof target == 'boolean') {
    +      deep = target
    +      target = args.shift()
    +    }
    +    args.forEach(function(arg){ extend(target, arg, deep) })
    +    return target
    +  }
    +
    +  // `$.zepto.qsa` is Zepto's CSS selector implementation which
    +  // uses `document.querySelectorAll` and optimizes for some special cases, like `#id`.
    +  // This method can be overriden in plugins.
    +  zepto.qsa = function(element, selector){
    +    var found,
    +        maybeID = selector[0] == '#',
    +        maybeClass = !maybeID && selector[0] == '.',
    +        nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, // Ensure that a 1 char tag name still gets checked
    +        isSimple = simpleSelectorRE.test(nameOnly)
    +    return (isDocument(element) && isSimple && maybeID) ?
    +      ( (found = element.getElementById(nameOnly)) ? [found] : [] ) :
    +      (element.nodeType !== 1 && element.nodeType !== 9) ? [] :
    +      slice.call(
    +        isSimple && !maybeID ?
    +          maybeClass ? element.getElementsByClassName(nameOnly) : // If it's simple, it could be a class
    +          element.getElementsByTagName(selector) : // Or a tag
    +          element.querySelectorAll(selector) // Or it's not simple, and we need to query all
    +      )
    +  }
    +
    +  function filtered(nodes, selector) {
    +    return selector == null ? $(nodes) : $(nodes).filter(selector)
    +  }
    +
    +  $.contains = document.documentElement.contains ?
    +    function(parent, node) {
    +      return parent !== node && parent.contains(node)
    +    } :
    +    function(parent, node) {
    +      while (node && (node = node.parentNode))
    +        if (node === parent) return true
    +      return false
    +    }
    +
    +  function funcArg(context, arg, idx, payload) {
    +    return isFunction(arg) ? arg.call(context, idx, payload) : arg
    +  }
    +
    +  function setAttribute(node, name, value) {
    +    value == null ? node.removeAttribute(name) : node.setAttribute(name, value)
    +  }
    +
    +  // access className property while respecting SVGAnimatedString
    +  function className(node, value){
    +    var klass = node.className || '',
    +        svg   = klass && klass.baseVal !== undefined
    +
    +    if (value === undefined) return svg ? klass.baseVal : klass
    +    svg ? (klass.baseVal = value) : (node.className = value)
    +  }
    +
    +  // "true"  => true
    +  // "false" => false
    +  // "null"  => null
    +  // "42"    => 42
    +  // "42.5"  => 42.5
    +  // "08"    => "08"
    +  // JSON    => parse if valid
    +  // String  => self
    +  function deserializeValue(value) {
    +    try {
    +      return value ?
    +        value == "true" ||
    +        ( value == "false" ? false :
    +          value == "null" ? null :
    +          +value + "" == value ? +value :
    +          /^[\[\{]/.test(value) ? $.parseJSON(value) :
    +          value )
    +        : value
    +    } catch(e) {
    +      return value
    +    }
    +  }
    +
    +  $.type = type
    +  $.isFunction = isFunction
    +  $.isWindow = isWindow
    +  $.isArray = isArray
    +  $.isPlainObject = isPlainObject
    +
    +  $.isEmptyObject = function(obj) {
    +    var name
    +    for (name in obj) return false
    +    return true
    +  }
    +
    +  $.inArray = function(elem, array, i){
    +    return emptyArray.indexOf.call(array, elem, i)
    +  }
    +
    +  $.camelCase = camelize
    +  $.trim = function(str) {
    +    return str == null ? "" : String.prototype.trim.call(str)
    +  }
    +
    +  // plugin compatibility
    +  $.uuid = 0
    +  $.support = { }
    +  $.expr = { }
    +
    +  $.map = function(elements, callback){
    +    var value, values = [], i, key
    +    if (likeArray(elements))
    +      for (i = 0; i < elements.length; i++) {
    +        value = callback(elements[i], i)
    +        if (value != null) values.push(value)
    +      }
    +    else
    +      for (key in elements) {
    +        value = callback(elements[key], key)
    +        if (value != null) values.push(value)
    +      }
    +    return flatten(values)
    +  }
    +
    +  $.each = function(elements, callback){
    +    var i, key
    +    if (likeArray(elements)) {
    +      for (i = 0; i < elements.length; i++)
    +        if (callback.call(elements[i], i, elements[i]) === false) return elements
    +    } else {
    +      for (key in elements)
    +        if (callback.call(elements[key], key, elements[key]) === false) return elements
    +    }
    +
    +    return elements
    +  }
    +
    +  $.grep = function(elements, callback){
    +    return filter.call(elements, callback)
    +  }
    +
    +  if (window.JSON) $.parseJSON = JSON.parse
    +
    +  // Populate the class2type map
    +  $.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
    +    class2type[ "[object " + name + "]" ] = name.toLowerCase()
    +  })
    +
    +  // Define methods that will be available on all
    +  // Zepto collections
    +  $.fn = {
    +    // Because a collection acts like an array
    +    // copy over these useful array functions.
    +    forEach: emptyArray.forEach,
    +    reduce: emptyArray.reduce,
    +    push: emptyArray.push,
    +    sort: emptyArray.sort,
    +    indexOf: emptyArray.indexOf,
    +    concat: emptyArray.concat,
    +
    +    // `map` and `slice` in the jQuery API work differently
    +    // from their array counterparts
    +    map: function(fn){
    +      return $($.map(this, function(el, i){ return fn.call(el, i, el) }))
    +    },
    +    slice: function(){
    +      return $(slice.apply(this, arguments))
    +    },
    +
    +    ready: function(callback){
    +      // need to check if document.body exists for IE as that browser reports
    +      // document ready when it hasn't yet created the body element
    +      if (readyRE.test(document.readyState) && document.body) callback($)
    +      else document.addEventListener('DOMContentLoaded', function(){ callback($) }, false)
    +      return this
    +    },
    +    get: function(idx){
    +      return idx === undefined ? slice.call(this) : this[idx >= 0 ? idx : idx + this.length]
    +    },
    +    toArray: function(){ return this.get() },
    +    size: function(){
    +      return this.length
    +    },
    +    remove: function(){
    +      return this.each(function(){
    +        if (this.parentNode != null)
    +          this.parentNode.removeChild(this)
    +      })
    +    },
    +    each: function(callback){
    +      emptyArray.every.call(this, function(el, idx){
    +        return callback.call(el, idx, el) !== false
    +      })
    +      return this
    +    },
    +    filter: function(selector){
    +      if (isFunction(selector)) return this.not(this.not(selector))
    +      return $(filter.call(this, function(element){
    +        return zepto.matches(element, selector)
    +      }))
    +    },
    +    add: function(selector,context){
    +      return $(uniq(this.concat($(selector,context))))
    +    },
    +    is: function(selector){
    +      return this.length > 0 && zepto.matches(this[0], selector)
    +    },
    +    not: function(selector){
    +      var nodes=[]
    +      if (isFunction(selector) && selector.call !== undefined)
    +        this.each(function(idx){
    +          if (!selector.call(this,idx)) nodes.push(this)
    +        })
    +      else {
    +        var excludes = typeof selector == 'string' ? this.filter(selector) :
    +          (likeArray(selector) && isFunction(selector.item)) ? slice.call(selector) : $(selector)
    +        this.forEach(function(el){
    +          if (excludes.indexOf(el) < 0) nodes.push(el)
    +        })
    +      }
    +      return $(nodes)
    +    },
    +    has: function(selector){
    +      return this.filter(function(){
    +        return isObject(selector) ?
    +          $.contains(this, selector) :
    +          $(this).find(selector).size()
    +      })
    +    },
    +    eq: function(idx){
    +      return idx === -1 ? this.slice(idx) : this.slice(idx, + idx + 1)
    +    },
    +    first: function(){
    +      var el = this[0]
    +      return el && !isObject(el) ? el : $(el)
    +    },
    +    last: function(){
    +      var el = this[this.length - 1]
    +      return el && !isObject(el) ? el : $(el)
    +    },
    +    find: function(selector){
    +      var result, $this = this
    +      if (!selector) result = $()
    +      else if (typeof selector == 'object')
    +        result = $(selector).filter(function(){
    +          var node = this
    +          return emptyArray.some.call($this, function(parent){
    +            return $.contains(parent, node)
    +          })
    +        })
    +      else if (this.length == 1) result = $(zepto.qsa(this[0], selector))
    +      else result = this.map(function(){ return zepto.qsa(this, selector) })
    +      return result
    +    },
    +    closest: function(selector, context){
    +      var node = this[0], collection = false
    +      if (typeof selector == 'object') collection = $(selector)
    +      while (node && !(collection ? collection.indexOf(node) >= 0 : zepto.matches(node, selector)))
    +        node = node !== context && !isDocument(node) && node.parentNode
    +      return $(node)
    +    },
    +    parents: function(selector){
    +      var ancestors = [], nodes = this
    +      while (nodes.length > 0)
    +        nodes = $.map(nodes, function(node){
    +          if ((node = node.parentNode) && !isDocument(node) && ancestors.indexOf(node) < 0) {
    +            ancestors.push(node)
    +            return node
    +          }
    +        })
    +      return filtered(ancestors, selector)
    +    },
    +    parent: function(selector){
    +      return filtered(uniq(this.pluck('parentNode')), selector)
    +    },
    +    children: function(selector){
    +      return filtered(this.map(function(){ return children(this) }), selector)
    +    },
    +    contents: function() {
    +      return this.map(function() { return slice.call(this.childNodes) })
    +    },
    +    siblings: function(selector){
    +      return filtered(this.map(function(i, el){
    +        return filter.call(children(el.parentNode), function(child){ return child!==el })
    +      }), selector)
    +    },
    +    empty: function(){
    +      return this.each(function(){ this.innerHTML = '' })
    +    },
    +    // `pluck` is borrowed from Prototype.js
    +    pluck: function(property){
    +      return $.map(this, function(el){ return el[property] })
    +    },
    +    show: function(){
    +      return this.each(function(){
    +        this.style.display == "none" && (this.style.display = '')
    +        if (getComputedStyle(this, '').getPropertyValue("display") == "none")
    +          this.style.display = defaultDisplay(this.nodeName)
    +      })
    +    },
    +    replaceWith: function(newContent){
    +      return this.before(newContent).remove()
    +    },
    +    wrap: function(structure){
    +      var func = isFunction(structure)
    +      if (this[0] && !func)
    +        var dom   = $(structure).get(0),
    +            clone = dom.parentNode || this.length > 1
    +
    +      return this.each(function(index){
    +        $(this).wrapAll(
    +          func ? structure.call(this, index) :
    +            clone ? dom.cloneNode(true) : dom
    +        )
    +      })
    +    },
    +    wrapAll: function(structure){
    +      if (this[0]) {
    +        $(this[0]).before(structure = $(structure))
    +        var children
    +        // drill down to the inmost element
    +        while ((children = structure.children()).length) structure = children.first()
    +        $(structure).append(this)
    +      }
    +      return this
    +    },
    +    wrapInner: function(structure){
    +      var func = isFunction(structure)
    +      return this.each(function(index){
    +        var self = $(this), contents = self.contents(),
    +            dom  = func ? structure.call(this, index) : structure
    +        contents.length ? contents.wrapAll(dom) : self.append(dom)
    +      })
    +    },
    +    unwrap: function(){
    +      this.parent().each(function(){
    +        $(this).replaceWith($(this).children())
    +      })
    +      return this
    +    },
    +    clone: function(){
    +      return this.map(function(){ return this.cloneNode(true) })
    +    },
    +    hide: function(){
    +      return this.css("display", "none")
    +    },
    +    toggle: function(setting){
    +      return this.each(function(){
    +        var el = $(this)
    +        ;(setting === undefined ? el.css("display") == "none" : setting) ? el.show() : el.hide()
    +      })
    +    },
    +    prev: function(selector){ return $(this.pluck('previousElementSibling')).filter(selector || '*') },
    +    next: function(selector){ return $(this.pluck('nextElementSibling')).filter(selector || '*') },
    +    html: function(html){
    +      return 0 in arguments ?
    +        this.each(function(idx){
    +          var originHtml = this.innerHTML
    +          $(this).empty().append( funcArg(this, html, idx, originHtml) )
    +        }) :
    +        (0 in this ? this[0].innerHTML : null)
    +    },
    +    text: function(text){
    +      return 0 in arguments ?
    +        this.each(function(idx){
    +          var newText = funcArg(this, text, idx, this.textContent)
    +          this.textContent = newText == null ? '' : ''+newText
    +        }) :
    +        (0 in this ? this[0].textContent : null)
    +    },
    +    attr: function(name, value){
    +      var result
    +      return (typeof name == 'string' && !(1 in arguments)) ?
    +        (!this.length || this[0].nodeType !== 1 ? undefined :
    +          (!(result = this[0].getAttribute(name)) && name in this[0]) ? this[0][name] : result
    +        ) :
    +        this.each(function(idx){
    +          if (this.nodeType !== 1) return
    +          if (isObject(name)) for (key in name) setAttribute(this, key, name[key])
    +          else setAttribute(this, name, funcArg(this, value, idx, this.getAttribute(name)))
    +        })
    +    },
    +    removeAttr: function(name){
    +      return this.each(function(){ this.nodeType === 1 && name.split(' ').forEach(function(attribute){
    +        setAttribute(this, attribute)
    +      }, this)})
    +    },
    +    prop: function(name, value){
    +      name = propMap[name] || name
    +      return (1 in arguments) ?
    +        this.each(function(idx){
    +          this[name] = funcArg(this, value, idx, this[name])
    +        }) :
    +        (this[0] && this[0][name])
    +    },
    +    data: function(name, value){
    +      var attrName = 'data-' + name.replace(capitalRE, '-$1').toLowerCase()
    +
    +      var data = (1 in arguments) ?
    +        this.attr(attrName, value) :
    +        this.attr(attrName)
    +
    +      return data !== null ? deserializeValue(data) : undefined
    +    },
    +    val: function(value){
    +      return 0 in arguments ?
    +        this.each(function(idx){
    +          this.value = funcArg(this, value, idx, this.value)
    +        }) :
    +        (this[0] && (this[0].multiple ?
    +           $(this[0]).find('option').filter(function(){ return this.selected }).pluck('value') :
    +           this[0].value)
    +        )
    +    },
    +    offset: function(coordinates){
    +      if (coordinates) return this.each(function(index){
    +        var $this = $(this),
    +            coords = funcArg(this, coordinates, index, $this.offset()),
    +            parentOffset = $this.offsetParent().offset(),
    +            props = {
    +              top:  coords.top  - parentOffset.top,
    +              left: coords.left - parentOffset.left
    +            }
    +
    +        if ($this.css('position') == 'static') props['position'] = 'relative'
    +        $this.css(props)
    +      })
    +      if (!this.length) return null
    +      var obj = this[0].getBoundingClientRect()
    +      return {
    +        left: obj.left + window.pageXOffset,
    +        top: obj.top + window.pageYOffset,
    +        width: Math.round(obj.width),
    +        height: Math.round(obj.height)
    +      }
    +    },
    +    css: function(property, value){
    +      if (arguments.length < 2) {
    +        var computedStyle, element = this[0]
    +        if(!element) return
    +        computedStyle = getComputedStyle(element, '')
    +        if (typeof property == 'string')
    +          return element.style[camelize(property)] || computedStyle.getPropertyValue(property)
    +        else if (isArray(property)) {
    +          var props = {}
    +          $.each(property, function(_, prop){
    +            props[prop] = (element.style[camelize(prop)] || computedStyle.getPropertyValue(prop))
    +          })
    +          return props
    +        }
    +      }
    +
    +      var css = ''
    +      if (type(property) == 'string') {
    +        if (!value && value !== 0)
    +          this.each(function(){ this.style.removeProperty(dasherize(property)) })
    +        else
    +          css = dasherize(property) + ":" + maybeAddPx(property, value)
    +      } else {
    +        for (key in property)
    +          if (!property[key] && property[key] !== 0)
    +            this.each(function(){ this.style.removeProperty(dasherize(key)) })
    +          else
    +            css += dasherize(key) + ':' + maybeAddPx(key, property[key]) + ';'
    +      }
    +
    +      return this.each(function(){ this.style.cssText += ';' + css })
    +    },
    +    index: function(element){
    +      return element ? this.indexOf($(element)[0]) : this.parent().children().indexOf(this[0])
    +    },
    +    hasClass: function(name){
    +      if (!name) return false
    +      return emptyArray.some.call(this, function(el){
    +        return this.test(className(el))
    +      }, classRE(name))
    +    },
    +    addClass: function(name){
    +      if (!name) return this
    +      return this.each(function(idx){
    +        if (!('className' in this)) return
    +        classList = []
    +        var cls = className(this), newName = funcArg(this, name, idx, cls)
    +        newName.split(/\s+/g).forEach(function(klass){
    +          if (!$(this).hasClass(klass)) classList.push(klass)
    +        }, this)
    +        classList.length && className(this, cls + (cls ? " " : "") + classList.join(" "))
    +      })
    +    },
    +    removeClass: function(name){
    +      return this.each(function(idx){
    +        if (!('className' in this)) return
    +        if (name === undefined) return className(this, '')
    +        classList = className(this)
    +        funcArg(this, name, idx, classList).split(/\s+/g).forEach(function(klass){
    +          classList = classList.replace(classRE(klass), " ")
    +        })
    +        className(this, classList.trim())
    +      })
    +    },
    +    toggleClass: function(name, when){
    +      if (!name) return this
    +      return this.each(function(idx){
    +        var $this = $(this), names = funcArg(this, name, idx, className(this))
    +        names.split(/\s+/g).forEach(function(klass){
    +          (when === undefined ? !$this.hasClass(klass) : when) ?
    +            $this.addClass(klass) : $this.removeClass(klass)
    +        })
    +      })
    +    },
    +    scrollTop: function(value){
    +      if (!this.length) return
    +      var hasScrollTop = 'scrollTop' in this[0]
    +      if (value === undefined) return hasScrollTop ? this[0].scrollTop : this[0].pageYOffset
    +      return this.each(hasScrollTop ?
    +        function(){ this.scrollTop = value } :
    +        function(){ this.scrollTo(this.scrollX, value) })
    +    },
    +    scrollLeft: function(value){
    +      if (!this.length) return
    +      var hasScrollLeft = 'scrollLeft' in this[0]
    +      if (value === undefined) return hasScrollLeft ? this[0].scrollLeft : this[0].pageXOffset
    +      return this.each(hasScrollLeft ?
    +        function(){ this.scrollLeft = value } :
    +        function(){ this.scrollTo(value, this.scrollY) })
    +    },
    +    position: function() {
    +      if (!this.length) return
    +
    +      var elem = this[0],
    +        // Get *real* offsetParent
    +        offsetParent = this.offsetParent(),
    +        // Get correct offsets
    +        offset       = this.offset(),
    +        parentOffset = rootNodeRE.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset()
    +
    +      // Subtract element margins
    +      // note: when an element has margin: auto the offsetLeft and marginLeft
    +      // are the same in Safari causing offset.left to incorrectly be 0
    +      offset.top  -= parseFloat( $(elem).css('margin-top') ) || 0
    +      offset.left -= parseFloat( $(elem).css('margin-left') ) || 0
    +
    +      // Add offsetParent borders
    +      parentOffset.top  += parseFloat( $(offsetParent[0]).css('border-top-width') ) || 0
    +      parentOffset.left += parseFloat( $(offsetParent[0]).css('border-left-width') ) || 0
    +
    +      // Subtract the two offsets
    +      return {
    +        top:  offset.top  - parentOffset.top,
    +        left: offset.left - parentOffset.left
    +      }
    +    },
    +    offsetParent: function() {
    +      return this.map(function(){
    +        var parent = this.offsetParent || document.body
    +        while (parent && !rootNodeRE.test(parent.nodeName) && $(parent).css("position") == "static")
    +          parent = parent.offsetParent
    +        return parent
    +      })
    +    }
    +  }
    +
    +  // for now
    +  $.fn.detach = $.fn.remove
    +
    +  // Generate the `width` and `height` functions
    +  ;['width', 'height'].forEach(function(dimension){
    +    var dimensionProperty =
    +      dimension.replace(/./, function(m){ return m[0].toUpperCase() })
    +
    +    $.fn[dimension] = function(value){
    +      var offset, el = this[0]
    +      if (value === undefined) return isWindow(el) ? el['inner' + dimensionProperty] :
    +        isDocument(el) ? el.documentElement['scroll' + dimensionProperty] :
    +        (offset = this.offset()) && offset[dimension]
    +      else return this.each(function(idx){
    +        el = $(this)
    +        el.css(dimension, funcArg(this, value, idx, el[dimension]()))
    +      })
    +    }
    +  })
    +
    +  function traverseNode(node, fun) {
    +    fun(node)
    +    for (var i = 0, len = node.childNodes.length; i < len; i++)
    +      traverseNode(node.childNodes[i], fun)
    +  }
    +
    +  // Generate the `after`, `prepend`, `before`, `append`,
    +  // `insertAfter`, `insertBefore`, `appendTo`, and `prependTo` methods.
    +  adjacencyOperators.forEach(function(operator, operatorIndex) {
    +    var inside = operatorIndex % 2 //=> prepend, append
    +
    +    $.fn[operator] = function(){
    +      // arguments can be nodes, arrays of nodes, Zepto objects and HTML strings
    +      var argType, nodes = $.map(arguments, function(arg) {
    +            argType = type(arg)
    +            return argType == "object" || argType == "array" || arg == null ?
    +              arg : zepto.fragment(arg)
    +          }),
    +          parent, copyByClone = this.length > 1
    +      if (nodes.length < 1) return this
    +
    +      return this.each(function(_, target){
    +        parent = inside ? target : target.parentNode
    +
    +        // convert all methods to a "before" operation
    +        target = operatorIndex == 0 ? target.nextSibling :
    +                 operatorIndex == 1 ? target.firstChild :
    +                 operatorIndex == 2 ? target :
    +                 null
    +
    +        var parentInDocument = $.contains(document.documentElement, parent)
    +
    +        nodes.forEach(function(node){
    +          if (copyByClone) node = node.cloneNode(true)
    +          else if (!parent) return $(node).remove()
    +
    +          parent.insertBefore(node, target)
    +          if (parentInDocument) traverseNode(node, function(el){
    +            if (el.nodeName != null && el.nodeName.toUpperCase() === 'SCRIPT' &&
    +               (!el.type || el.type === 'text/javascript') && !el.src)
    +              window['eval'].call(window, el.innerHTML)
    +          })
    +        })
    +      })
    +    }
    +
    +    // after    => insertAfter
    +    // prepend  => prependTo
    +    // before   => insertBefore
    +    // append   => appendTo
    +    $.fn[inside ? operator+'To' : 'insert'+(operatorIndex ? 'Before' : 'After')] = function(html){
    +      $(html)[operator](this)
    +      return this
    +    }
    +  })
    +
    +  zepto.Z.prototype = $.fn
    +
    +  // Export internal API functions in the `$.zepto` namespace
    +  zepto.uniq = uniq
    +  zepto.deserializeValue = deserializeValue
    +  $.zepto = zepto
    +
    +  return $
    +})()
    +
    +window.Zepto = Zepto
    +window.$ === undefined && (window.$ = Zepto)
    +
    +;(function($){
    +  var _zid = 1, undefined,
    +      slice = Array.prototype.slice,
    +      isFunction = $.isFunction,
    +      isString = function(obj){ return typeof obj == 'string' },
    +      handlers = {},
    +      specialEvents={},
    +      focusinSupported = 'onfocusin' in window,
    +      focus = { focus: 'focusin', blur: 'focusout' },
    +      hover = { mouseenter: 'mouseover', mouseleave: 'mouseout' }
    +
    +  specialEvents.click = specialEvents.mousedown = specialEvents.mouseup = specialEvents.mousemove = 'MouseEvents'
    +
    +  function zid(element) {
    +    return element._zid || (element._zid = _zid++)
    +  }
    +  function findHandlers(element, event, fn, selector) {
    +    event = parse(event)
    +    if (event.ns) var matcher = matcherFor(event.ns)
    +    return (handlers[zid(element)] || []).filter(function(handler) {
    +      return handler
    +        && (!event.e  || handler.e == event.e)
    +        && (!event.ns || matcher.test(handler.ns))
    +        && (!fn       || zid(handler.fn) === zid(fn))
    +        && (!selector || handler.sel == selector)
    +    })
    +  }
    +  function parse(event) {
    +    var parts = ('' + event).split('.')
    +    return {e: parts[0], ns: parts.slice(1).sort().join(' ')}
    +  }
    +  function matcherFor(ns) {
    +    return new RegExp('(?:^| )' + ns.replace(' ', ' .* ?') + '(?: |$)')
    +  }
    +
    +  function eventCapture(handler, captureSetting) {
    +    return handler.del &&
    +      (!focusinSupported && (handler.e in focus)) ||
    +      !!captureSetting
    +  }
    +
    +  function realEvent(type) {
    +    return hover[type] || (focusinSupported && focus[type]) || type
    +  }
    +
    +  function add(element, events, fn, data, selector, delegator, capture){
    +    var id = zid(element), set = (handlers[id] || (handlers[id] = []))
    +    events.split(/\s/).forEach(function(event){
    +      if (event == 'ready') return $(document).ready(fn)
    +      var handler   = parse(event)
    +      handler.fn    = fn
    +      handler.sel   = selector
    +      // emulate mouseenter, mouseleave
    +      if (handler.e in hover) fn = function(e){
    +        var related = e.relatedTarget
    +        if (!related || (related !== this && !$.contains(this, related)))
    +          return handler.fn.apply(this, arguments)
    +      }
    +      handler.del   = delegator
    +      var callback  = delegator || fn
    +      handler.proxy = function(e){
    +        e = compatible(e)
    +        if (e.isImmediatePropagationStopped()) return
    +        e.data = data
    +        var result = callback.apply(element, e._args == undefined ? [e] : [e].concat(e._args))
    +        if (result === false) e.preventDefault(), e.stopPropagation()
    +        return result
    +      }
    +      handler.i = set.length
    +      set.push(handler)
    +      if ('addEventListener' in element)
    +        element.addEventListener(realEvent(handler.e), handler.proxy, eventCapture(handler, capture))
    +    })
    +  }
    +  function remove(element, events, fn, selector, capture){
    +    var id = zid(element)
    +    ;(events || '').split(/\s/).forEach(function(event){
    +      findHandlers(element, event, fn, selector).forEach(function(handler){
    +        delete handlers[id][handler.i]
    +      if ('removeEventListener' in element)
    +        element.removeEventListener(realEvent(handler.e), handler.proxy, eventCapture(handler, capture))
    +      })
    +    })
    +  }
    +
    +  $.event = { add: add, remove: remove }
    +
    +  $.proxy = function(fn, context) {
    +    var args = (2 in arguments) && slice.call(arguments, 2)
    +    if (isFunction(fn)) {
    +      var proxyFn = function(){ return fn.apply(context, args ? args.concat(slice.call(arguments)) : arguments) }
    +      proxyFn._zid = zid(fn)
    +      return proxyFn
    +    } else if (isString(context)) {
    +      if (args) {
    +        args.unshift(fn[context], fn)
    +        return $.proxy.apply(null, args)
    +      } else {
    +        return $.proxy(fn[context], fn)
    +      }
    +    } else {
    +      throw new TypeError("expected function")
    +    }
    +  }
    +
    +  $.fn.bind = function(event, data, callback){
    +    return this.on(event, data, callback)
    +  }
    +  $.fn.unbind = function(event, callback){
    +    return this.off(event, callback)
    +  }
    +  $.fn.one = function(event, selector, data, callback){
    +    return this.on(event, selector, data, callback, 1)
    +  }
    +
    +  var returnTrue = function(){return true},
    +      returnFalse = function(){return false},
    +      ignoreProperties = /^([A-Z]|returnValue$|layer[XY]$)/,
    +      eventMethods = {
    +        preventDefault: 'isDefaultPrevented',
    +        stopImmediatePropagation: 'isImmediatePropagationStopped',
    +        stopPropagation: 'isPropagationStopped'
    +      }
    +
    +  function compatible(event, source) {
    +    if (source || !event.isDefaultPrevented) {
    +      source || (source = event)
    +
    +      $.each(eventMethods, function(name, predicate) {
    +        var sourceMethod = source[name]
    +        event[name] = function(){
    +          this[predicate] = returnTrue
    +          return sourceMethod && sourceMethod.apply(source, arguments)
    +        }
    +        event[predicate] = returnFalse
    +      })
    +
    +      if (source.defaultPrevented !== undefined ? source.defaultPrevented :
    +          'returnValue' in source ? source.returnValue === false :
    +          source.getPreventDefault && source.getPreventDefault())
    +        event.isDefaultPrevented = returnTrue
    +    }
    +    return event
    +  }
    +
    +  function createProxy(event) {
    +    var key, proxy = { originalEvent: event }
    +    for (key in event)
    +      if (!ignoreProperties.test(key) && event[key] !== undefined) proxy[key] = event[key]
    +
    +    return compatible(proxy, event)
    +  }
    +
    +  $.fn.delegate = function(selector, event, callback){
    +    return this.on(event, selector, callback)
    +  }
    +  $.fn.undelegate = function(selector, event, callback){
    +    return this.off(event, selector, callback)
    +  }
    +
    +  $.fn.live = function(event, callback){
    +    $(document.body).delegate(this.selector, event, callback)
    +    return this
    +  }
    +  $.fn.die = function(event, callback){
    +    $(document.body).undelegate(this.selector, event, callback)
    +    return this
    +  }
    +
    +  $.fn.on = function(event, selector, data, callback, one){
    +    var autoRemove, delegator, $this = this
    +    if (event && !isString(event)) {
    +      $.each(event, function(type, fn){
    +        $this.on(type, selector, data, fn, one)
    +      })
    +      return $this
    +    }
    +
    +    if (!isString(selector) && !isFunction(callback) && callback !== false)
    +      callback = data, data = selector, selector = undefined
    +    if (isFunction(data) || data === false)
    +      callback = data, data = undefined
    +
    +    if (callback === false) callback = returnFalse
    +
    +    return $this.each(function(_, element){
    +      if (one) autoRemove = function(e){
    +        remove(element, e.type, callback)
    +        return callback.apply(this, arguments)
    +      }
    +
    +      if (selector) delegator = function(e){
    +        var evt, match = $(e.target).closest(selector, element).get(0)
    +        if (match && match !== element) {
    +          evt = $.extend(createProxy(e), {currentTarget: match, liveFired: element})
    +          return (autoRemove || callback).apply(match, [evt].concat(slice.call(arguments, 1)))
    +        }
    +      }
    +
    +      add(element, event, callback, data, selector, delegator || autoRemove)
    +    })
    +  }
    +  $.fn.off = function(event, selector, callback){
    +    var $this = this
    +    if (event && !isString(event)) {
    +      $.each(event, function(type, fn){
    +        $this.off(type, selector, fn)
    +      })
    +      return $this
    +    }
    +
    +    if (!isString(selector) && !isFunction(callback) && callback !== false)
    +      callback = selector, selector = undefined
    +
    +    if (callback === false) callback = returnFalse
    +
    +    return $this.each(function(){
    +      remove(this, event, callback, selector)
    +    })
    +  }
    +
    +  $.fn.trigger = function(event, args){
    +    event = (isString(event) || $.isPlainObject(event)) ? $.Event(event) : compatible(event)
    +    event._args = args
    +    return this.each(function(){
    +      // handle focus(), blur() by calling them directly
    +      if (event.type in focus && typeof this[event.type] == "function") this[event.type]()
    +      // items in the collection might not be DOM elements
    +      else if ('dispatchEvent' in this) this.dispatchEvent(event)
    +      else $(this).triggerHandler(event, args)
    +    })
    +  }
    +
    +  // triggers event handlers on current element just as if an event occurred,
    +  // doesn't trigger an actual event, doesn't bubble
    +  $.fn.triggerHandler = function(event, args){
    +    var e, result
    +    this.each(function(i, element){
    +      e = createProxy(isString(event) ? $.Event(event) : event)
    +      e._args = args
    +      e.target = element
    +      $.each(findHandlers(element, event.type || event), function(i, handler){
    +        result = handler.proxy(e)
    +        if (e.isImmediatePropagationStopped()) return false
    +      })
    +    })
    +    return result
    +  }
    +
    +  // shortcut methods for `.bind(event, fn)` for each event type
    +  ;('focusin focusout focus blur load resize scroll unload click dblclick '+
    +  'mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave '+
    +  'change select keydown keypress keyup error').split(' ').forEach(function(event) {
    +    $.fn[event] = function(callback) {
    +      return (0 in arguments) ?
    +        this.bind(event, callback) :
    +        this.trigger(event)
    +    }
    +  })
    +
    +  $.Event = function(type, props) {
    +    if (!isString(type)) props = type, type = props.type
    +    var event = document.createEvent(specialEvents[type] || 'Events'), bubbles = true
    +    if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !!props[name]) : (event[name] = props[name])
    +    event.initEvent(type, bubbles, true)
    +    return compatible(event)
    +  }
    +
    +})(Zepto)
    +
    +;(function($){
    +  var jsonpID = 0,
    +      document = window.document,
    +      key,
    +      name,
    +      rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
    +      scriptTypeRE = /^(?:text|application)\/javascript/i,
    +      xmlTypeRE = /^(?:text|application)\/xml/i,
    +      jsonType = 'application/json',
    +      htmlType = 'text/html',
    +      blankRE = /^\s*$/,
    +      originAnchor = document.createElement('a')
    +
    +  originAnchor.href = window.location.href
    +
    +  // trigger a custom event and return false if it was cancelled
    +  function triggerAndReturn(context, eventName, data) {
    +    var event = $.Event(eventName)
    +    $(context).trigger(event, data)
    +    return !event.isDefaultPrevented()
    +  }
    +
    +  // trigger an Ajax "global" event
    +  function triggerGlobal(settings, context, eventName, data) {
    +    if (settings.global) return triggerAndReturn(context || document, eventName, data)
    +  }
    +
    +  // Number of active Ajax requests
    +  $.active = 0
    +
    +  function ajaxStart(settings) {
    +    if (settings.global && $.active++ === 0) triggerGlobal(settings, null, 'ajaxStart')
    +  }
    +  function ajaxStop(settings) {
    +    if (settings.global && !(--$.active)) triggerGlobal(settings, null, 'ajaxStop')
    +  }
    +
    +  // triggers an extra global event "ajaxBeforeSend" that's like "ajaxSend" but cancelable
    +  function ajaxBeforeSend(xhr, settings) {
    +    var context = settings.context
    +    if (settings.beforeSend.call(context, xhr, settings) === false ||
    +        triggerGlobal(settings, context, 'ajaxBeforeSend', [xhr, settings]) === false)
    +      return false
    +
    +    triggerGlobal(settings, context, 'ajaxSend', [xhr, settings])
    +  }
    +  function ajaxSuccess(data, xhr, settings, deferred) {
    +    var context = settings.context, status = 'success'
    +    settings.success.call(context, data, status, xhr)
    +    if (deferred) deferred.resolveWith(context, [data, status, xhr])
    +    triggerGlobal(settings, context, 'ajaxSuccess', [xhr, settings, data])
    +    ajaxComplete(status, xhr, settings)
    +  }
    +  // type: "timeout", "error", "abort", "parsererror"
    +  function ajaxError(error, type, xhr, settings, deferred) {
    +    var context = settings.context
    +    settings.error.call(context, xhr, type, error)
    +    if (deferred) deferred.rejectWith(context, [xhr, type, error])
    +    triggerGlobal(settings, context, 'ajaxError', [xhr, settings, error || type])
    +    ajaxComplete(type, xhr, settings)
    +  }
    +  // status: "success", "notmodified", "error", "timeout", "abort", "parsererror"
    +  function ajaxComplete(status, xhr, settings) {
    +    var context = settings.context
    +    settings.complete.call(context, xhr, status)
    +    triggerGlobal(settings, context, 'ajaxComplete', [xhr, settings])
    +    ajaxStop(settings)
    +  }
    +
    +  // Empty function, used as default callback
    +  function empty() {}
    +
    +  $.ajaxJSONP = function(options, deferred){
    +    if (!('type' in options)) return $.ajax(options)
    +
    +    var _callbackName = options.jsonpCallback,
    +      callbackName = ($.isFunction(_callbackName) ?
    +        _callbackName() : _callbackName) || ('jsonp' + (++jsonpID)),
    +      script = document.createElement('script'),
    +      originalCallback = window[callbackName],
    +      responseData,
    +      abort = function(errorType) {
    +        $(script).triggerHandler('error', errorType || 'abort')
    +      },
    +      xhr = { abort: abort }, abortTimeout
    +
    +    if (deferred) deferred.promise(xhr)
    +
    +    $(script).on('load error', function(e, errorType){
    +      clearTimeout(abortTimeout)
    +      $(script).off().remove()
    +
    +      if (e.type == 'error' || !responseData) {
    +        ajaxError(null, errorType || 'error', xhr, options, deferred)
    +      } else {
    +        ajaxSuccess(responseData[0], xhr, options, deferred)
    +      }
    +
    +      window[callbackName] = originalCallback
    +      if (responseData && $.isFunction(originalCallback))
    +        originalCallback(responseData[0])
    +
    +      originalCallback = responseData = undefined
    +    })
    +
    +    if (ajaxBeforeSend(xhr, options) === false) {
    +      abort('abort')
    +      return xhr
    +    }
    +
    +    window[callbackName] = function(){
    +      responseData = arguments
    +    }
    +
    +    script.src = options.url.replace(/\?(.+)=\?/, '?$1=' + callbackName)
    +    document.head.appendChild(script)
    +
    +    if (options.timeout > 0) abortTimeout = setTimeout(function(){
    +      abort('timeout')
    +    }, options.timeout)
    +
    +    return xhr
    +  }
    +
    +  $.ajaxSettings = {
    +    // Default type of request
    +    type: 'GET',
    +    // Callback that is executed before request
    +    beforeSend: empty,
    +    // Callback that is executed if the request succeeds
    +    success: empty,
    +    // Callback that is executed the the server drops error
    +    error: empty,
    +    // Callback that is executed on request complete (both: error and success)
    +    complete: empty,
    +    // The context for the callbacks
    +    context: null,
    +    // Whether to trigger "global" Ajax events
    +    global: true,
    +    // Transport
    +    xhr: function () {
    +      return new window.XMLHttpRequest()
    +    },
    +    // MIME types mapping
    +    // IIS returns Javascript as "application/x-javascript"
    +    accepts: {
    +      script: 'text/javascript, application/javascript, application/x-javascript',
    +      json:   jsonType,
    +      xml:    'application/xml, text/xml',
    +      html:   htmlType,
    +      text:   'text/plain'
    +    },
    +    // Whether the request is to another domain
    +    crossDomain: false,
    +    // Default timeout
    +    timeout: 0,
    +    // Whether data should be serialized to string
    +    processData: true,
    +    // Whether the browser should be allowed to cache GET responses
    +    cache: true
    +  }
    +
    +  function mimeToDataType(mime) {
    +    if (mime) mime = mime.split(';', 2)[0]
    +    return mime && ( mime == htmlType ? 'html' :
    +      mime == jsonType ? 'json' :
    +      scriptTypeRE.test(mime) ? 'script' :
    +      xmlTypeRE.test(mime) && 'xml' ) || 'text'
    +  }
    +
    +  function appendQuery(url, query) {
    +    if (query == '') return url
    +    return (url + '&' + query).replace(/[&?]{1,2}/, '?')
    +  }
    +
    +  // serialize payload and append it to the URL for GET requests
    +  function serializeData(options) {
    +    if (options.processData && options.data && $.type(options.data) != "string")
    +      options.data = $.param(options.data, options.traditional)
    +    if (options.data && (!options.type || options.type.toUpperCase() == 'GET'))
    +      options.url = appendQuery(options.url, options.data), options.data = undefined
    +  }
    +
    +  $.ajax = function(options){
    +    var settings = $.extend({}, options || {}),
    +        deferred = $.Deferred && $.Deferred(),
    +        urlAnchor
    +    for (key in $.ajaxSettings) if (settings[key] === undefined) settings[key] = $.ajaxSettings[key]
    +
    +    ajaxStart(settings)
    +
    +    if (!settings.crossDomain) {
    +      urlAnchor = document.createElement('a')
    +      urlAnchor.href = settings.url
    +      urlAnchor.href = urlAnchor.href
    +      settings.crossDomain = (originAnchor.protocol + '//' + originAnchor.host) !== (urlAnchor.protocol + '//' + urlAnchor.host)
    +    }
    +
    +    if (!settings.url) settings.url = window.location.toString()
    +    serializeData(settings)
    +
    +    var dataType = settings.dataType, hasPlaceholder = /\?.+=\?/.test(settings.url)
    +    if (hasPlaceholder) dataType = 'jsonp'
    +
    +    if (settings.cache === false || (
    +         (!options || options.cache !== true) &&
    +         ('script' == dataType || 'jsonp' == dataType)
    +        ))
    +      settings.url = appendQuery(settings.url, '_=' + Date.now())
    +
    +    if ('jsonp' == dataType) {
    +      if (!hasPlaceholder)
    +        settings.url = appendQuery(settings.url,
    +          settings.jsonp ? (settings.jsonp + '=?') : settings.jsonp === false ? '' : 'callback=?')
    +      return $.ajaxJSONP(settings, deferred)
    +    }
    +
    +    var mime = settings.accepts[dataType],
    +        headers = { },
    +        setHeader = function(name, value) { headers[name.toLowerCase()] = [name, value] },
    +        protocol = /^([\w-]+:)\/\//.test(settings.url) ? RegExp.$1 : window.location.protocol,
    +        xhr = settings.xhr(),
    +        nativeSetHeader = xhr.setRequestHeader,
    +        abortTimeout
    +
    +    if (deferred) deferred.promise(xhr)
    +
    +    if (!settings.crossDomain) setHeader('X-Requested-With', 'XMLHttpRequest')
    +    setHeader('Accept', mime || '*/*')
    +    if (mime = settings.mimeType || mime) {
    +      if (mime.indexOf(',') > -1) mime = mime.split(',', 2)[0]
    +      xhr.overrideMimeType && xhr.overrideMimeType(mime)
    +    }
    +    if (settings.contentType || (settings.contentType !== false && settings.data && settings.type.toUpperCase() != 'GET'))
    +      setHeader('Content-Type', settings.contentType || 'application/x-www-form-urlencoded')
    +
    +    if (settings.headers) for (name in settings.headers) setHeader(name, settings.headers[name])
    +    xhr.setRequestHeader = setHeader
    +
    +    xhr.onreadystatechange = function(){
    +      if (xhr.readyState == 4) {
    +        xhr.onreadystatechange = empty
    +        clearTimeout(abortTimeout)
    +        var result, error = false
    +        if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304 || (xhr.status == 0 && protocol == 'file:')) {
    +          dataType = dataType || mimeToDataType(settings.mimeType || xhr.getResponseHeader('content-type'))
    +          result = xhr.responseText
    +
    +          try {
    +            // http://perfectionkills.com/global-eval-what-are-the-options/
    +            if (dataType == 'script')    (1,eval)(result)
    +            else if (dataType == 'xml')  result = xhr.responseXML
    +            else if (dataType == 'json') result = blankRE.test(result) ? null : $.parseJSON(result)
    +          } catch (e) { error = e }
    +
    +          if (error) ajaxError(error, 'parsererror', xhr, settings, deferred)
    +          else ajaxSuccess(result, xhr, settings, deferred)
    +        } else {
    +          ajaxError(xhr.statusText || null, xhr.status ? 'error' : 'abort', xhr, settings, deferred)
    +        }
    +      }
    +    }
    +
    +    if (ajaxBeforeSend(xhr, settings) === false) {
    +      xhr.abort()
    +      ajaxError(null, 'abort', xhr, settings, deferred)
    +      return xhr
    +    }
    +
    +    if (settings.xhrFields) for (name in settings.xhrFields) xhr[name] = settings.xhrFields[name]
    +
    +    var async = 'async' in settings ? settings.async : true
    +    xhr.open(settings.type, settings.url, async, settings.username, settings.password)
    +
    +    for (name in headers) nativeSetHeader.apply(xhr, headers[name])
    +
    +    if (settings.timeout > 0) abortTimeout = setTimeout(function(){
    +        xhr.onreadystatechange = empty
    +        xhr.abort()
    +        ajaxError(null, 'timeout', xhr, settings, deferred)
    +      }, settings.timeout)
    +
    +    // avoid sending empty string (#319)
    +    xhr.send(settings.data ? settings.data : null)
    +    return xhr
    +  }
    +
    +  // handle optional data/success arguments
    +  function parseArguments(url, data, success, dataType) {
    +    if ($.isFunction(data)) dataType = success, success = data, data = undefined
    +    if (!$.isFunction(success)) dataType = success, success = undefined
    +    return {
    +      url: url
    +    , data: data
    +    , success: success
    +    , dataType: dataType
    +    }
    +  }
    +
    +  $.get = function(/* url, data, success, dataType */){
    +    return $.ajax(parseArguments.apply(null, arguments))
    +  }
    +
    +  $.post = function(/* url, data, success, dataType */){
    +    var options = parseArguments.apply(null, arguments)
    +    options.type = 'POST'
    +    return $.ajax(options)
    +  }
    +
    +  $.getJSON = function(/* url, data, success */){
    +    var options = parseArguments.apply(null, arguments)
    +    options.dataType = 'json'
    +    return $.ajax(options)
    +  }
    +
    +  $.fn.load = function(url, data, success){
    +    if (!this.length) return this
    +    var self = this, parts = url.split(/\s/), selector,
    +        options = parseArguments(url, data, success),
    +        callback = options.success
    +    if (parts.length > 1) options.url = parts[0], selector = parts[1]
    +    options.success = function(response){
    +      self.html(selector ?
    +        $('<div>').html(response.replace(rscript, "")).find(selector)
    +        : response)
    +      callback && callback.apply(self, arguments)
    +    }
    +    $.ajax(options)
    +    return this
    +  }
    +
    +  var escape = encodeURIComponent
    +
    +  function serialize(params, obj, traditional, scope){
    +    var type, array = $.isArray(obj), hash = $.isPlainObject(obj)
    +    $.each(obj, function(key, value) {
    +      type = $.type(value)
    +      if (scope) key = traditional ? scope :
    +        scope + '[' + (hash || type == 'object' || type == 'array' ? key : '') + ']'
    +      // handle data in serializeArray() format
    +      if (!scope && array) params.add(value.name, value.value)
    +      // recurse into nested objects
    +      else if (type == "array" || (!traditional && type == "object"))
    +        serialize(params, value, traditional, key)
    +      else params.add(key, value)
    +    })
    +  }
    +
    +  $.param = function(obj, traditional){
    +    var params = []
    +    params.add = function(key, value) {
    +      if ($.isFunction(value)) value = value()
    +      if (value == null) value = ""
    +      this.push(escape(key) + '=' + escape(value))
    +    }
    +    serialize(params, obj, traditional)
    +    return params.join('&').replace(/%20/g, '+')
    +  }
    +})(Zepto)
    +
    +;(function($){
    +  $.fn.serializeArray = function() {
    +    var name, type, result = [],
    +      add = function(value) {
    +        if (value.forEach) return value.forEach(add)
    +        result.push({ name: name, value: value })
    +      }
    +    if (this[0]) $.each(this[0].elements, function(_, field){
    +      type = field.type, name = field.name
    +      if (name && field.nodeName.toLowerCase() != 'fieldset' &&
    +        !field.disabled && type != 'submit' && type != 'reset' && type != 'button' && type != 'file' &&
    +        ((type != 'radio' && type != 'checkbox') || field.checked))
    +          add($(field).val())
    +    })
    +    return result
    +  }
    +
    +  $.fn.serialize = function(){
    +    var result = []
    +    this.serializeArray().forEach(function(elm){
    +      result.push(encodeURIComponent(elm.name) + '=' + encodeURIComponent(elm.value))
    +    })
    +    return result.join('&')
    +  }
    +
    +  $.fn.submit = function(callback) {
    +    if (0 in arguments) this.bind('submit', callback)
    +    else if (this.length) {
    +      var event = $.Event('submit')
    +      this.eq(0).trigger(event)
    +      if (!event.isDefaultPrevented()) this.get(0).submit()
    +    }
    +    return this
    +  }
    +
    +})(Zepto)
    +
    +;(function($){
    +  // __proto__ doesn't exist on IE<11, so redefine
    +  // the Z function to use object extension instead
    +  if (!('__proto__' in {})) {
    +    $.extend($.zepto, {
    +      Z: function(dom, selector){
    +        dom = dom || []
    +        $.extend(dom, $.fn)
    +        dom.selector = selector || ''
    +        dom.__Z = true
    +        return dom
    +      },
    +      // this is a kludge but works
    +      isZ: function(object){
    +        return $.type(object) === 'array' && '__Z' in object
    +      }
    +    })
    +  }
    +
    +  // getComputedStyle shouldn't freak out when called
    +  // without a valid element as argument
    +  try {
    +    getComputedStyle(undefined)
    +  } catch(e) {
    +    var nativeGetComputedStyle = getComputedStyle;
    +    window.getComputedStyle = function(element){
    +      try {
    +        return nativeGetComputedStyle(element)
    +      } catch(e) {
    +        return null
    +      }
    +    }
    +  }
    +})(Zepto)
    +;
    diff --git a/fangija-zsyf/js/zepto.md5.js b/fangija-zsyf/js/zepto.md5.js
    new file mode 100644
    index 0000000..85a7b54
    --- /dev/null
    +++ b/fangija-zsyf/js/zepto.md5.js
    @@ -0,0 +1,183 @@
    +(function($){
    +        var rotateLeft = function(lValue, iShiftBits) {
    +            return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
    +        }
    +        var addUnsigned = function(lX, lY) {
    +            var lX4, lY4, lX8, lY8, lResult;
    +            lX8 = (lX & 0x80000000);
    +            lY8 = (lY & 0x80000000);
    +            lX4 = (lX & 0x40000000);
    +            lY4 = (lY & 0x40000000);
    +            lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF);
    +            if (lX4 & lY4) return (lResult ^ 0x80000000 ^ lX8 ^ lY8);
    +            if (lX4 | lY4) {
    +                if (lResult & 0x40000000) return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);
    +                else return (lResult ^ 0x40000000 ^ lX8 ^ lY8);
    +            } else {
    +                return (lResult ^ lX8 ^ lY8);
    +            }
    +        }
    +        var F = function(x, y, z) {
    +            return (x & y) | ((~ x) & z);
    +        }
    +        var G = function(x, y, z) {
    +            return (x & z) | (y & (~ z));
    +        }
    +        var H = function(x, y, z) {
    +            return (x ^ y ^ z);
    +        }
    +        var I = function(x, y, z) {
    +            return (y ^ (x | (~ z)));
    +        }
    +        var FF = function(a, b, c, d, x, s, ac) {
    +            a = addUnsigned(a, addUnsigned(addUnsigned(F(b, c, d), x), ac));
    +            return addUnsigned(rotateLeft(a, s), b);
    +        };
    +        var GG = function(a, b, c, d, x, s, ac) {
    +            a = addUnsigned(a, addUnsigned(addUnsigned(G(b, c, d), x), ac));
    +            return addUnsigned(rotateLeft(a, s), b);
    +        };
    +        var HH = function(a, b, c, d, x, s, ac) {
    +            a = addUnsigned(a, addUnsigned(addUnsigned(H(b, c, d), x), ac));
    +            return addUnsigned(rotateLeft(a, s), b);
    +        };
    +        var II = function(a, b, c, d, x, s, ac) {
    +            a = addUnsigned(a, addUnsigned(addUnsigned(I(b, c, d), x), ac));
    +            return addUnsigned(rotateLeft(a, s), b);
    +        };
    +        var convertToWordArray = function(string) {
    +            var lWordCount;
    +            var lMessageLength = string.length;
    +            var lNumberOfWordsTempOne = lMessageLength + 8;
    +            var lNumberOfWordsTempTwo = (lNumberOfWordsTempOne - (lNumberOfWordsTempOne % 64)) / 64;
    +            var lNumberOfWords = (lNumberOfWordsTempTwo + 1) * 16;
    +            var lWordArray = Array(lNumberOfWords - 1);
    +            var lBytePosition = 0;
    +            var lByteCount = 0;
    +            while (lByteCount < lMessageLength) {
    +                lWordCount = (lByteCount - (lByteCount % 4)) / 4;
    +                lBytePosition = (lByteCount % 4) * 8;
    +                lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount) << lBytePosition));
    +                lByteCount++;
    +            }
    +            lWordCount = (lByteCount - (lByteCount % 4)) / 4;
    +            lBytePosition = (lByteCount % 4) * 8;
    +            lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition);
    +            lWordArray[lNumberOfWords - 2] = lMessageLength << 3;
    +            lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;
    +            return lWordArray;
    +        };
    +        var wordToHex = function(lValue) {
    +            var WordToHexValue = "", WordToHexValueTemp = "", lByte, lCount;
    +            for (lCount = 0; lCount <= 3; lCount++) {
    +                lByte = (lValue >>> (lCount * 8)) & 255;
    +                WordToHexValueTemp = "0" + lByte.toString(16);
    +                WordToHexValue = WordToHexValue + WordToHexValueTemp.substr(WordToHexValueTemp.length - 2, 2);
    +            }
    +            return WordToHexValue;
    +        };
    +        var uTF8Encode = function(string) {
    +            string = string.replace(/\x0d\x0a/g, "\x0a");
    +            var output = "";
    +            for (var n = 0; n < string.length; n++) {
    +                var c = string.charCodeAt(n);
    +                if (c < 128) {
    +                    output += String.fromCharCode(c);
    +                } else if ((c > 127) && (c < 2048)) {
    +                    output += String.fromCharCode((c >> 6) | 192);
    +                    output += String.fromCharCode((c & 63) | 128);
    +                } else {
    +                    output += String.fromCharCode((c >> 12) | 224);
    +                    output += String.fromCharCode(((c >> 6) & 63) | 128);
    +                    output += String.fromCharCode((c & 63) | 128);
    +                }
    +            }
    +            return output;
    +        };
    +        $.extend($,{
    +            md5: function(string) {
    +                var x = Array();
    +                var k, AA, BB, CC, DD, a, b, c, d;
    +                var S11=7, S12=12, S13=17, S14=22;
    +                var S21=5, S22=9 , S23=14, S24=20;
    +                var S31=4, S32=11, S33=16, S34=23;
    +                var S41=6, S42=10, S43=15, S44=21;
    +                string = uTF8Encode(string);
    +                x = convertToWordArray(string);
    +                a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;
    +                for (k = 0; k < x.length; k += 16) {
    +                    AA = a; BB = b; CC = c; DD = d;
    +                    a = FF(a, b, c, d, x[k+0],  S11, 0xD76AA478);
    +                    d = FF(d, a, b, c, x[k+1],  S12, 0xE8C7B756);
    +                    c = FF(c, d, a, b, x[k+2],  S13, 0x242070DB);
    +                    b = FF(b, c, d, a, x[k+3],  S14, 0xC1BDCEEE);
    +                    a = FF(a, b, c, d, x[k+4],  S11, 0xF57C0FAF);
    +                    d = FF(d, a, b, c, x[k+5],  S12, 0x4787C62A);
    +                    c = FF(c, d, a, b, x[k+6],  S13, 0xA8304613);
    +                    b = FF(b, c, d, a, x[k+7],  S14, 0xFD469501);
    +                    a = FF(a, b, c, d, x[k+8],  S11, 0x698098D8);
    +                    d = FF(d, a, b, c, x[k+9],  S12, 0x8B44F7AF);
    +                    c = FF(c, d, a, b, x[k+10], S13, 0xFFFF5BB1);
    +                    b = FF(b, c, d, a, x[k+11], S14, 0x895CD7BE);
    +                    a = FF(a, b, c, d, x[k+12], S11, 0x6B901122);
    +                    d = FF(d, a, b, c, x[k+13], S12, 0xFD987193);
    +                    c = FF(c, d, a, b, x[k+14], S13, 0xA679438E);
    +                    b = FF(b, c, d, a, x[k+15], S14, 0x49B40821);
    +                    a = GG(a, b, c, d, x[k+1],  S21, 0xF61E2562);
    +                    d = GG(d, a, b, c, x[k+6],  S22, 0xC040B340);
    +                    c = GG(c, d, a, b, x[k+11], S23, 0x265E5A51);
    +                    b = GG(b, c, d, a, x[k+0],  S24, 0xE9B6C7AA);
    +                    a = GG(a, b, c, d, x[k+5],  S21, 0xD62F105D);
    +                    d = GG(d, a, b, c, x[k+10], S22, 0x2441453);
    +                    c = GG(c, d, a, b, x[k+15], S23, 0xD8A1E681);
    +                    b = GG(b, c, d, a, x[k+4],  S24, 0xE7D3FBC8);
    +                    a = GG(a, b, c, d, x[k+9],  S21, 0x21E1CDE6);
    +                    d = GG(d, a, b, c, x[k+14], S22, 0xC33707D6);
    +                    c = GG(c, d, a, b, x[k+3],  S23, 0xF4D50D87);
    +                    b = GG(b, c, d, a, x[k+8],  S24, 0x455A14ED);
    +                    a = GG(a, b, c, d, x[k+13], S21, 0xA9E3E905);
    +                    d = GG(d, a, b, c, x[k+2],  S22, 0xFCEFA3F8);
    +                    c = GG(c, d, a, b, x[k+7],  S23, 0x676F02D9);
    +                    b = GG(b, c, d, a, x[k+12], S24, 0x8D2A4C8A);
    +                    a = HH(a, b, c, d, x[k+5],  S31, 0xFFFA3942);
    +                    d = HH(d, a, b, c, x[k+8],  S32, 0x8771F681);
    +                    c = HH(c, d, a, b, x[k+11], S33, 0x6D9D6122);
    +                    b = HH(b, c, d, a, x[k+14], S34, 0xFDE5380C);
    +                    a = HH(a, b, c, d, x[k+1],  S31, 0xA4BEEA44);
    +                    d = HH(d, a, b, c, x[k+4],  S32, 0x4BDECFA9);
    +                    c = HH(c, d, a, b, x[k+7],  S33, 0xF6BB4B60);
    +                    b = HH(b, c, d, a, x[k+10], S34, 0xBEBFBC70);
    +                    a = HH(a, b, c, d, x[k+13], S31, 0x289B7EC6);
    +                    d = HH(d, a, b, c, x[k+0],  S32, 0xEAA127FA);
    +                    c = HH(c, d, a, b, x[k+3],  S33, 0xD4EF3085);
    +                    b = HH(b, c, d, a, x[k+6],  S34, 0x4881D05);
    +                    a = HH(a, b, c, d, x[k+9],  S31, 0xD9D4D039);
    +                    d = HH(d, a, b, c, x[k+12], S32, 0xE6DB99E5);
    +                    c = HH(c, d, a, b, x[k+15], S33, 0x1FA27CF8);
    +                    b = HH(b, c, d, a, x[k+2],  S34, 0xC4AC5665);
    +                    a = II(a, b, c, d, x[k+0],  S41, 0xF4292244);
    +                    d = II(d, a, b, c, x[k+7],  S42, 0x432AFF97);
    +                    c = II(c, d, a, b, x[k+14], S43, 0xAB9423A7);
    +                    b = II(b, c, d, a, x[k+5],  S44, 0xFC93A039);
    +                    a = II(a, b, c, d, x[k+12], S41, 0x655B59C3);
    +                    d = II(d, a, b, c, x[k+3],  S42, 0x8F0CCC92);
    +                    c = II(c, d, a, b, x[k+10], S43, 0xFFEFF47D);
    +                    b = II(b, c, d, a, x[k+1],  S44, 0x85845DD1);
    +                    a = II(a, b, c, d, x[k+8],  S41, 0x6FA87E4F);
    +                    d = II(d, a, b, c, x[k+15], S42, 0xFE2CE6E0);
    +                    c = II(c, d, a, b, x[k+6],  S43, 0xA3014314);
    +                    b = II(b, c, d, a, x[k+13], S44, 0x4E0811A1);
    +                    a = II(a, b, c, d, x[k+4],  S41, 0xF7537E82);
    +                    d = II(d, a, b, c, x[k+11], S42, 0xBD3AF235);
    +                    c = II(c, d, a, b, x[k+2],  S43, 0x2AD7D2BB);
    +                    b = II(b, c, d, a, x[k+9],  S44, 0xEB86D391);
    +                    a = addUnsigned(a, AA);
    +                    b = addUnsigned(b, BB);
    +                    c = addUnsigned(c, CC);
    +                    d = addUnsigned(d, DD);
    +                }
    +                var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
    +                return tempValue.toLowerCase();
    +            }
    +        });
    +    })(Zepto);
    \ No newline at end of file
    diff --git a/fangija-zsyf/logo.png b/fangija-zsyf/logo.png
    new file mode 100644
    index 0000000..e01befb
    Binary files /dev/null and b/fangija-zsyf/logo.png differ
    diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html
    new file mode 100644
    index 0000000..004bdf9
    --- /dev/null
    +++ b/fangija-zsyf/main.html
    @@ -0,0 +1,190 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8">
    +		<title>Hello MUI</title>
    +		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    +		<meta name="apple-mobile-web-app-capable" content="yes">
    +		<meta name="apple-mobile-web-app-status-bar-style" content="black">
    +
    +		<link rel="stylesheet" href="css/mui.min.css">
    +		<link rel="stylesheet" href="css/main.css">
    +		<style>
    +			.mui-bar-tab{background:#fff;box-shadow:none;}
    +			.mui-bar-tab .mui-tab-item{border-top:solid 1px #e7e7e7;}
    +			.mui-bar-tab .mui-tab-item .mui-icon{font-size:1.4rem;color:#C3C0BC;}
    +			.mui-bar-tab .mui-tab-item.mui-active .mui-icon{color:#F18D00;}
    +			.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{color:#C3C0BC;}
    +			.mui-bar-tab .mui-tab-item.mui-active .mui-icon~.mui-tab-label{color:#F18D00;}
    +		</style>
    +	</head>
    +
    +	<body>
    +		<nav class="mui-bar mui-bar-tab">
    +			<a class="mui-tab-item mui-active" id="defaultTab" href="yfindex.html">
    +				<span class="mui-icon iconfont icon-tab01"></span>
    +				<span class="mui-tab-label">首页</span>
    +			</a>
    +			
    +			<a class="mui-tab-item" href="views/house/houseDetail.html">
    +				<span class="mui-icon iconfont icon-tab02"></span>
    +				<span class="mui-tab-label">行情</span>
    +			</a>
    +			
    +			<a class="mui-tab-item" href="views/house/houseManageList.html">
    +				<span class="mui-icon iconfont icon-tab03"></span>
    +				<span class="mui-tab-label">评估</span>
    +			</a>
    +			
    +			<a class="mui-tab-item" id="selfInfo" href="views/user/userInfo.html">
    +				<span class="mui-icon iconfont icon-tab04"></span>
    +				<span class="mui-tab-label">我的</span>
    +			</a>
    +		</nav>
    +		<script src="js/mui.min.js"></script>
    +		<script src="config.js"></script>
    +		<script src="js/common.js"></script>
    +	 	<script src="js/push-common.js"></script>
    +	 	<script type="text/javascript" src="js/zepto.js" charset="utf-8"></script>
    +		<script>
    +		
    +		/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +		Zepto = $
    +		$.config = {router: false}
    +		
    +		</script>
    +		<script type="text/javascript" charset="utf-8">
    +			// 清空过期的Token
    +			var token_add_time = localStorage.getItem("user_token_add_time");
    +			var current_time = new Date().getTime();
    +			var nTime = current_time - token_add_time;  
    +			var day = Math.floor(nTime/86400000);
    +  		 	if (day >= 25) {
    +  		 		localStorage.removeItem("user_token");
    +  		 		localStorage.removeItem("user_token_add_time");
    +  		 	}
    +			//document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
    +			//document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
    +			//mui初始化
    +			mui.init();
    +			var subpages = ['yfindex.html', 'views/house/houseDetail.html', 'views/house/houseManageList.html', 'views/user/userInfo.html'];
    +			var subpage_style = {
    +				top: '0',
    +				bottom: '50px',
    +			};
    +			
    +			var aniShow = {};
    +			
    +			 //创建子页面,首个选项卡页面显示,其它均隐藏;
    +			mui.plusReady(function() {
    +				//检查是否为首次启动
    +				var showGuide = lauchFlag;
    +				//仅支持竖屏显示
    +				plus.screen.lockOrientation("portrait-primary");
    +				if(showGuide) {
    +					//有值,说明已经显示过了,无需显示;
    +					//关闭splash页面;
    +					plus.navigator.closeSplashscreen();
    +					plus.navigator.setFullscreen(false);
    +					
    +				} else {
    +					//显示启动导航
    +					mui.openWindow({
    +						id: 'guide',
    +						url: 'start.html',
    +						styles: {
    +							popGesture: "none"
    +						},
    +						show: {
    +							aniShow: 'none'
    +						},
    +						waiting: {
    +							autoShow: false
    +						}
    +					});
    +				}
    +				// 加载菜单信息,控制是否显示贷款菜单
    +				$.ajax({
    +			        type: "GET",
    +			        url:BASE_PATH+"/rest/version/info",
    +			        dataType:'json',
    +			        async : false,
    +			        success: function(data) {
    +						if(data.status){
    +							//存入localStorage Boolean类型变成String
    +							localStorage.setItem("showLoanMenu", data.data.showLoanMenu);
    +						}else{
    +							localStorage.setItem("showLoanMenu", false);
    +						}
    +			        },
    +			        error: function(XMLHttpRequest, textStatus, errorThrown) {
    +					 	localStorage.setItem("showLoanMenu", false);
    +                    	if(plus.webview.getWebviewById('error.html')==null){
    +							clicked('error.html',true,false,{},{},function(){
    +								window.location.reload();
    +							})
    +						}else{
    +							$(".loadingBg").hide();
    +							plus.nativeUI.closeWaiting();
    +							plus.webview.getWebviewById("error.html").show();
    +						}
    +			        }
    +			    })
    +				
    +				var self = plus.webview.currentWebview();
    +				for (var i = 0; i < 4; i++) {
    +					var temp = {};
    +					var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
    +					if (i > 0) {
    +						sub.hide();
    +					}else{
    +						temp[subpages[i]] = "true";
    +						mui.extend(aniShow,temp);
    +					}
    +					self.append(sub);
    +				}
    +			});
    +			 //当前激活选项
    +			var activeTab = subpages[0];
    +			var title = document.getElementById("title");
    +			 //选项卡点击事件
    +			mui('.mui-bar-tab').on('tap', 'a', function(e) {
    +				var targetTab = this.getAttribute('href');
    +				if (targetTab == activeTab) {
    +					return;
    +				}
    +				//更换标题
    +				//title.innerHTML = this.querySelector('.mui-tab-label').innerHTML;
    +				//显示目标选项卡
    +				//若为iOS平台或非首次显示,则直接显示
    +				if(mui.os.ios||aniShow[targetTab]){
    +					plus.webview.show(targetTab);
    +				}else{
    +					//否则,使用fade-in动画,且保存变量
    +					var temp = {};
    +					temp[targetTab] = "true";
    +					mui.extend(aniShow,temp);
    +					plus.webview.show(targetTab,"fade-in",300);
    +				}
    +				//隐藏当前;
    +				plus.webview.hide(activeTab);
    +				//更改当前活跃的选项卡
    +				activeTab = targetTab;
    +			});
    +			 //自定义事件,模拟点击“首页选项卡”
    +			document.addEventListener('gohome', function() {
    +				var defaultTab = document.getElementById("defaultTab");
    +				//模拟首页点击
    +				mui.trigger(defaultTab, 'tap');
    +				//切换选项卡高亮
    +				var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
    +				if (defaultTab !== current) {
    +					current.classList.remove('mui-active');
    +					defaultTab.classList.add('mui-active');
    +				}
    +			});
    +			
    +		</script>
    +	</body>
    +
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json
    new file mode 100644
    index 0000000..2d43317
    --- /dev/null
    +++ b/fangija-zsyf/manifest.json
    @@ -0,0 +1,1809 @@
    +{
    +	"@platforms": [
    +		"android",
    +		"iPhone",
    +		"iPad"
    +	],
    +	"id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/
    +	"name": "有房",/*应用名称,程序桌面图标名称*/
    +	"version": {
    +		"name": "1.1",/*应用版本名称*/
    +		"code": "20109"
    +	},
    +	"description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/
    +	"icons": {
    +		"144": "icon.png"
    +	},
    +	"launch_path": "main.html",/*应用的入口页面,默认为根目录下的index.html;支持网络地址,必须以http://或https://开头*/
    +	"developer": {
    +		"name": "",/*开发者名称*/
    +		"email": "",/*开发者邮箱地址*/
    +		"url": "http://www.dcloud.io"
    +	},
    +	"orientation": [
    +		"portrait"
    +	],
    +	"permissions": {
    +		"Accelerometer": {
    +			"description": "加速度传感器"
    +		},
    +		"Audio": {
    +			"description": "音频录制与播放"
    +		},
    +		"Cache": {
    +			"description": "缓存管理"
    +		},
    +		"Camera": {
    +			"description": "摄像头"
    +		},
    +		"Console": {
    +			"description": "调试输出日志"
    +		},
    +
    +		"Device": {
    +			"description": "设备信息"
    +		},
    +		"Downloader": {
    +			"description": "文件下载"
    +		},
    +		"Events": {
    +			"description": "扩展事件"
    +		},
    +		"File": {
    +			"description": "本地文件系统"
    +		},
    +		"Gallery": {
    +			"description": "系统相册"
    +		},
    +		"Geolocation": {
    +			"description": "位置信息"
    +		},
    +		"Invocation": {
    +			"description": "Native.js能力"
    +		},
    +
    +		"Orientation": {
    +			"description": "方向传感器"
    +		},
    +		"Proximity": {
    +			"description": "距离传感器"
    +		},
    +		"Storage": {
    +			"description": "本地数据存储"
    +		},
    +		"Webview": {
    +			"description": "窗口管理"
    +		},
    +		"NativeObj": {
    +			"description": "原生控件"
    +		},
    +		"NativeUI": {
    +			"description": "原生UI控件"
    +		},
    +		"Navigator": {
    +			"description": "浏览器信息"
    +		},
    +		"Uploader": {
    +			"description": "文件上传"
    +		},
    +		"Runtime": {
    +			"description": "运行环境"
    +		},
    +		"XMLHttpRequest": {
    +			"description": "跨域网络请求"
    +		},
    +		"Zip": {
    +			"description": "压缩与解压"
    +		},
    +		"Barcode": {
    +			"description": "二维码扫描"
    +		},
    +		"Maps": {
    +			"description": "地图"
    +		},
    +		"OAuth": {},
    +
    +		"Push": {
    +			"description": "消息推送"
    +		},
    +		"Statistic": {},
    +		"Share": {}
    +	},
    +	"plus": {
    +		"error": {
    +			"url": "error.html"
    +		},
    +		"splashscreen": {
    +			"autoclose": true,/*是否自动关闭程序启动界面,true表示应用加载应用入口页面后自动关闭;false则需调plus.navigator.closeSplashscreen()关闭*/
    +			"waiting": true,
    +			"delay": "0"
    +		},
    +		"statusbar": {
    +			"immersed": false,
    +			"background": "none"
    +		},
    +		"popGesture": "close",/*设置应用默认侧滑返回关闭Webview窗口,"none"为无侧滑返回功能,"hide"为侧滑隐藏Webview窗口。参考http://ask.dcloud.net.cn/article/102*/
    +		"runmode": "liberate",/*应用的首次启动运行模式,可取liberate或normal,liberate模式在第一次启动时将解压应用资源(Android平台File API才可正常访问_www目录)*/
    +		"signature": "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",/*可选,保留给应用签名,暂不使用*/
    +		"distribute": {
    +			"apple": {
    +				"appid": "",/*iOS应用标识,苹果开发网站申请的appid,如io.dcloud.HelloH5*/
    +				"mobileprovision": "",/*iOS应用打包配置文件*/
    +				"password": "",/*iOS应用打包个人证书导入密码*/
    +				"p12": "",/*iOS应用打包个人证书,打包配置文件关联的个人证书*/
    +				"devices": "iphone",/*iOS应用支持的设备类型,可取值iphone/ipad/universal*/
    +				"urlschemewhitelist": [/*iOS9调用第三方应用urlscheme白名单*/
    +					"baidumap",
    +					"iosamap"
    +				],
    +				"shortcuts": [/*3D Touch快捷菜单项*/
    +					{
    +						"type": "share",
    +						"title": "分 享",
    +						"subtitle": "分享到微信、微博、QQ",
    +						"icontype": "UIApplicationShortcutIconTypeShare"
    +					}, {
    +						"type": "about",
    +						"title": "关 于",
    +						"subtitle": "www.dcloud.io",
    +						"iconfile": "sa.png",
    +						"userinfo": {
    +							"key3": "value3"
    +						}
    +					}
    +				],
    +				"frameworks": [],  /*调用Native.js调用原生Objective-c API需要引用的FrameWork,如需调用GameCenter,则添加"GameKit.framework"*/
    +				"plistcmds": [
    +					"Set :NSLocationWhenInUseUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。",
    +					"Set :NSLocationAlwaysUsageDescription  根据您的位置信息,您可随时掌握所在位置周边房产的行情。"
    +				]
    +			},
    +			"google": {
    +				"packagename": "",/*Android应用包名,如io.dcloud.HelloH5*/
    +				"keystore": "",/*Android应用打包使用的密钥库文件*/
    +				"password": "",/*Android应用打包使用密钥库中证书的密码*/
    +				"aliasname": "",/*Android应用打包使用密钥库中证书的别名*/
    +				"ImmersedStatusbar": true,/*Android平台开启沉浸式状态栏样式*/
    +				"permissions": [
    +					"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
    +					"<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
    +					"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
    +					"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
    +					"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
    +					"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
    +					"<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
    +					"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
    +					"<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
    +					"<uses-permission android:name=\"com.android.launcher.permission.UNINSTALL_SHORTCUT\"/>",
    +					"<uses-permission android:name=\"android.permission.CAMERA\"/>",
    +					"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
    +					"<uses-permission android:name=\"com.android.launcher.permission.INSTALL_SHORTCUT\"/>",
    +					"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
    +					"<uses-permission android:name=\"android.permission.INTERNET\"/>",
    +					"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
    +					"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
    +					"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
    +					"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
    +					"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
    +					"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
    +					"<uses-feature android:name=\"android.hardware.camera\"/>",
    +					"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
    +					"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>",
    +					"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
    +					"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
    +				]
    +			},
    +			"orientation": [
    +				"portrait-primary"
    +			],/*应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向*/
    +			"icons": {
    +				"ios": {
    +					"prerendered": true, /*应用图标是否已经高亮处理,在iOS6及以下设备上有效*/
    +					/*应用图标,分辨率:512x512,用于自动生成各种尺寸程序图标*/
    +					"iphone": {
    +						"normal": "", /*iPhone3/3GS程序图标,分辨率:57x57*/
    +						"retina": "", /*iPhone4程序图标,分辨率:114x114*/
    +						/*iPhone4S/5/6程序图标,分辨率:120x120*/
    +						/*iPhone6 Plus程序图标,分辨率:180x180*/
    +						"spotlight-normal": "", /*iPhone3/3GS Spotlight搜索程序图标,分辨率:29x29*/
    +						"spotlight-retina": "", /*iPhone4 Spotlight搜索程序图标,分辨率:58x58*/
    +						/*iPhone4S/5/6 Spotlight搜索程序图标,分辨率:80x80*/
    +						"settings-normal": "", /*iPhone4设置页面程序图标,分辨率:29x29*/
    +						/*iPhone4S/5/6设置页面程序图标,分辨率:58x58*/
    +						"app@3x": "unpackage/res/icons/180x180.png",
    +						"app@2x": "unpackage/res/icons/120x120.png",
    +						"settings@2x": "unpackage/res/icons/58x58.png",
    +						"settings@3x": "unpackage/res/icons/87x87.png",
    +						"spotlight@2x": "unpackage/res/icons/80x80.png",
    +						"spotlight@3x": "unpackage/res/icons/120x120.png",
    +						"notification@2x": "unpackage/res/icons/40x40.png",
    +						"notification@3x": "unpackage/res/icons/60x60.png"
    +					},
    +					"ipad": {
    +						"normal": "", /*iPad普通屏幕程序图标,分辨率:72x72*/
    +						"retina": "", /*iPad高分屏程序图标,分辨率:144x144*/
    +						/*iPad iOS7程序图标,分辨率:76x76*/
    +						/*iPad iOS7高分屏程序图标,分辨率:152x152*/
    +						"spotlight-normal": "", /*iPad Spotlight搜索程序图标,分辨率:50x50*/
    +						"spotlight-retina": "", /*iPad高分屏Spotlight搜索程序图标,分辨率:100x100*/
    +						/*iPad iOS7 Spotlight搜索程序图标,分辨率:40x40*/
    +						/*iPad iOS7高分屏Spotlight搜索程序图标,分辨率:80x80*/
    +						/*iPad设置页面程序图标,分辨率:29x29*/
    +						"app": "unpackage/res/icons/76x76.png",
    +						"app@2x": "unpackage/res/icons/152x152.png",
    +						"settings": "unpackage/res/icons/29x29.png",
    +						"spotlight": "unpackage/res/icons/40x40.png",
    +						"proapp@2x": "unpackage/res/icons/167x167.png",
    +						"settings@2x": "unpackage/res/icons/58x58.png",
    +						"spotlight@2x": "unpackage/res/icons/80x80.png",
    +						"notification": "unpackage/res/icons/20x20.png",
    +						"notification@2x": "unpackage/res/icons/40x40.png"
    +					},
    +					"appstore": "unpackage/res/icons/1024x1024.png"
    +				},
    +				"android": {
    +					"mdpi": "unpackage/res/icons/48x48.png", /*普通屏程序图标,分辨率:48x48*/
    +					"ldpi": "unpackage/res/icons/48x48.png", /*大屏程序图标,分辨率:48x48*/
    +					"hdpi": "unpackage/res/icons/72x72.png", /*高分屏程序图标,分辨率:72x72*/
    +					"xhdpi": "unpackage/res/icons/96x96.png",/*720P高分屏程序图标,分辨率:96x96*/
    +					"xxhdpi": "unpackage/res/icons/144x144.png",
    +					"xxxhdpi": "unpackage/res/icons/192x192.png"
    +				}
    +			},
    +			"splashscreen": {
    +				"ios": {
    +					"iphone": {
    +						"default": "",
    +						"retina35": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/640x960.png",
    +						"retina40": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/640x1136.png",
    +						"retina47": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/750x1334.png",
    +						"retina55": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/1242x2208.png",
    +						"retina55l": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/2208x1242.png",
    +						"iphonex": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/1125x2436.png",
    +						"iphonexl": "E:/房价网/201712/最新启动页面/有房-启动画面/iPhone/2436x1125.png"
    +					},
    +					"ipad": {
    +						"portrait": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/768x1004.png",
    +						"portrait7": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/768x1024.png",
    +						"landscape": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/1024x748.png",
    +						"landscape7": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/1024x768.png",
    +						"portrait-retina": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/1536x2008.png",
    +						"portrait-retina7": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/1536x2048.png",
    +						"landscape-retina": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/2048x1496.png",
    +						"landscape-retina7": "E:/房价网/201712/最新启动页面/有房-启动画面/iPad/2048x1536.png"
    +					}
    +				},
    +				"android": {
    +					"mdpi": "", /*普通屏启动图片,分辨率:240x282*/
    +					"ldpi": "",
    +					"hdpi": "E:/房价网/201712/最新启动页面/有房-启动画面/Android/480x762.png",
    +					"xhdpi": "E:/房价网/201712/最新启动页面/有房-启动画面/Android/720x1242.png",
    +					"xxhdpi": "E:/房价网/201712/最新启动页面/有房-启动画面/Android/1080x1882.png"
    +				}
    +			},
    +			"plugins": {
    +				"statics": {
    +					"umeng": {
    +						"appkey_ios": "5ab09d69a40fa374da0002e4",
    +						"channelid_ios": "有房IOS",
    +						"appkey_android": "5ab09e16f29d9854f200026e",
    +						"channelid_android": "有房Android"
    +					}
    +				},
    +				"maps": {
    +					"baidu": {/*配置应用使用百度地图,参考http://ask.dcloud.net.cn/article/29*/
    +						"appkey_ios": "cmXf4GGYGYiu1fuVRN4847cGvgR25WTV",/*iOS平台百度地图appkey*/
    +						"appkey_android": "sx3Py6HUvfzHNCAiBTlgoZq72sCiaMkj",/*Android平台百度地图appkey*/
    +						"description": "百度地图"
    +					}
    +				},
    +				"push": {
    +					"igexin": {/*配置应用使用个推推送,参考http://ask.dcloud.net.cn/article/92*/
    +						"appid": "s13zIZ8bhg8pXs6tXqeXE6",/*个推推送平台应用appid*/
    +						"appkey": "pTwS3cXAMA8wNjJk9DkXZ3",/*个推推送平台应用appkey*/
    +						"appsecret": "uWx1DWsULDAPJl0EN76eL2",/*个推推送平台应用appsecret*/
    +						"description": "个推推送"
    +					}
    +				},
    +				"share": {
    +					"weixin": {
    +						"description": "可选,微信分享",
    +						"appid": "wx734a9e3085abcd90",
    +						"appsecret": "47ce59f3c52984c4e193880fb09b12af"
    +					},"qq":{"appid":"1106734669","description":"QQ分享"},"sina":{"appkey":"3194052034","appsecret":"e863ae4e4f14d41af3142e5ae06867dd","redirect_uri":"http://fangjia.com","description":"可选,新浪微博分享"}
    +				},
    +				"payment": {},
    +				"oauth": {
    +					"weixin": {
    +						"appid": "wx734a9e3085abcd90",
    +						"appsecret": "47ce59f3c52984c4e193880fb09b12af"
    +					},"qq":{"appid":"1106734669"},"sina":{"appkey":"3194052034","appsecret":"e863ae4e4f14d41af3142e5ae06867dd","redirect_uri":"http://fangjia.com"}
    +				}
    +			},
    +			"debug": true
    +		},
    +		"ads": {
    +			"rp": false,
    +			"splash": false,
    +			"push": false,
    +			"spot": false
    +		},
    +		"adid": ""
    +	},
    +	"dependencies": {
    +		"pages": {
    +			"plus/doc.html": {
    +				"href": "plus/doc.html",
    +				"priority": 29,
    +				"resources": [
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"doc/camera.html"
    +				]
    +			},
    +			"plus/payment.html": {
    +				"href": "plus/payment.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/payment.html"
    +				],
    +				"priority": 0
    +			},
    +			"plus/runtime.html": {
    +				"href": "plus/runtime.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/runtime.html",
    +					"plus/runtime_launch.html"
    +				],
    +				"priority": 1
    +			},
    +			"plus/barcode.html": {
    +				"href": "plus/barcode.html",
    +				"resources": [
    +					"img/barcode.png",
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/barcode.html",
    +					"plus/barcode_scan.html",
    +					"plus/barcode_scan2.html"
    +				],
    +				"priority": 2
    +			},
    +			"plus/xhr.html": {
    +				"href": "plus/xhr.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/xhr.html"
    +				],
    +				"priority": 3
    +			},
    +			"plus/oauth.html": {
    +				"href": "plus/oauth.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/oauth.html"
    +				],
    +				"priority": 4
    +			},
    +			"plus/share.html": {
    +				"href": "plus/share.html",
    +				"resources": [
    +					"css/common.css",
    +					"img/add.png",
    +					"logo.png",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/share.html"
    +				],
    +				"priority": 5
    +			},
    +			"plus/njs_android_shortcut.html": {
    +				"href": "plus/njs_android_shortcut.html",
    +				"resources": [
    +					"css/common.css",
    +					"icon.png",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 6
    +			},
    +			"plus/njs_ios_gamecenter.html": {
    +				"href": "plus/njs_ios_gamecenter.html",
    +				"resources": [
    +					"js/common.js",
    +					"js/immersed.js",
    +					"img/5.jpg"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 7
    +			},
    +			"plus/njs.html": {
    +				"href": "plus/njs.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/njs_android_shortcut.html",
    +					"plus/njs_ios_gamecenter.html",
    +					"plus/doc.html",
    +					"doc/native.js.html",
    +					"plus/njs_efficient.html"
    +				],
    +				"priority": 6
    +			},
    +			"plus/downloader.html": {
    +				"href": "plus/downloader.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/downloader.html"
    +				],
    +				"priority": 7
    +			},
    +			"plus/nativeui_waiting.html": {
    +				"href": "plus/nativeui_waiting.html",
    +				"resources": [
    +					"img/waiting.png",
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 8
    +			},
    +			"plus/nativeui.html": {
    +				"href": "plus/nativeui.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/nativeui_waiting.html",
    +					"plus/doc.html",
    +					"doc/nativeUI.html"
    +				],
    +				"priority": 8
    +			},
    +			"plus/file.html": {
    +				"href": "plus/file.html",
    +				"resources": [
    +					"css/common.css",
    +					"img/fdir.png",
    +					"img/ffile.png",
    +					"img/fdisk.png",
    +					"img/fup.png",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/io.html"
    +				],
    +				"priority": 9
    +			},
    +			"index.html": {
    +				"href": "index.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"css/common.css",
    +					"js/shortcut.js",
    +					"js/common.js",
    +					"icon.png"
    +				],
    +				"refer": [
    +					"plus/payment.html",
    +					"plus/runtime.html",
    +					"plus/barcode.html",
    +					"plus/xhr.html",
    +					"plus/oauth.html",
    +					"plus/share.html",
    +					"plus/njs.html",
    +					"plus/downloader.html",
    +					"plus/nativeui.html",
    +					"plus/file.html",
    +					"plus/zip.html",
    +					"plus/push.html",
    +					"plus/statistic.html",
    +					"plus/audio.html",
    +					"plus/uploader.html",
    +					"plus/storage.html",
    +					"plus/accelerometer.html",
    +					"plus/navigator.html",
    +					"plus/message.html",
    +					"plus/speech.html",
    +					"plus/proximity.html",
    +					"plus/maps.html",
    +					"plus/camera.html",
    +					"plus/device.html",
    +					"plus/orientation.html",
    +					"plus/gallery.html",
    +					"plus/webview.html",
    +					"plus/geolocation.html",
    +					"about.html",
    +					"plus/events.html",
    +					"plus/nativeobj.html"
    +				],
    +				"priority": 0
    +			},
    +			"plus/zip.html": {
    +				"href": "plus/zip.html",
    +				"resources": [
    +					"css/common.css",
    +					"img/shake/1.jpg",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"index.html",
    +					"doc/zip.html"
    +				],
    +				"priority": 10
    +			},
    +			"plus/push.html": {
    +				"href": "plus/push.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/push.html"
    +				],
    +				"priority": 11
    +			},
    +			"plus/statistic.html": {
    +				"href": "plus/statistic.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 12
    +			},
    +			"plus/audio.html": {
    +				"href": "plus/audio.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js",
    +					"img/arecord.png",
    +					"img/astop.png",
    +					"audio/friendship.mp3"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/audio.html"
    +				],
    +				"priority": 13
    +			},
    +			"plus/uploader_ret.html": {
    +				"href": "plus/uploader_ret.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 14
    +			},
    +			"plus/uploader.html": {
    +				"href": "plus/uploader.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/uploader_ret.html",
    +					"plus/doc.html",
    +					"doc/uploader.html"
    +				],
    +				"priority": 14
    +			},
    +			"plus/storage.html": {
    +				"href": "plus/storage.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/storage.html"
    +				],
    +				"priority": 15
    +			},
    +			"plus/accelerometer.html": {
    +				"href": "plus/accelerometer.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/accelerometer.html",
    +					"plus/accelerometer_shake.html"
    +				],
    +				"priority": 16
    +			},
    +			"plus/navigator_status.html": {
    +				"href": "plus/navigator_status.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 18
    +			},
    +			"plus/navigator.html": {
    +				"href": "plus/navigator.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"plus/navigator_status.html",
    +					"doc/navigator.html"
    +				],
    +				"priority": 17
    +			},
    +			"plus/message.html": {
    +				"href": "plus/message.html",
    +				"resources": [
    +					"css/common.css",
    +					"img/helloh5.jpg",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/messaging.html"
    +				],
    +				"priority": 18
    +			},
    +			"plus/speech.html": {
    +				"href": "plus/speech.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/speech.html"
    +				],
    +				"priority": 19
    +			},
    +			"plus/proximity.html": {
    +				"href": "plus/proximity.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/proximity.html"
    +				],
    +				"priority": 20
    +			},
    +			"plus/maps_map_sub.html": {
    +				"href": "plus/maps_map_sub.html",
    +				"resources": [
    +					"css/common.css"
    +				],
    +				"priority": 22,
    +				"refer": []
    +			},
    +			"plus/maps_map.html": {
    +				"href": "plus/maps_map.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js",
    +					"logo.png",
    +					"plus/maps_map_sub.html"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"plus/maps_map_sub.html"
    +				],
    +				"priority": 21
    +			},
    +			"plus/maps.html": {
    +				"href": "plus/maps.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/maps_map.html",
    +					"plus/doc.html",
    +					"doc/maps.html"
    +				],
    +				"priority": 21
    +			},
    +			"plus/camera_image.html": {
    +				"href": "plus/camera_image.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 22
    +			},
    +			"plus/camera_video.html": {
    +				"href": "plus/camera_video.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 23
    +			},
    +			"plus/camera.html": {
    +				"href": "plus/camera.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/camera_image.html",
    +					"plus/camera_video.html",
    +					"plus/doc.html",
    +					"doc/camera.html"
    +				],
    +				"priority": 22
    +			},
    +			"plus/device.html": {
    +				"href": "plus/device.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/device.html"
    +				],
    +				"priority": 23
    +			},
    +			"plus/orientation.html": {
    +				"href": "plus/orientation.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/orientation.html",
    +					"plus/orientation_level.html",
    +					"plus/orientation_compass.html"
    +				],
    +				"priority": 24
    +			},
    +			"plus/gallery.html": {
    +				"href": "plus/gallery.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/gallery.html"
    +				],
    +				"priority": 25
    +			},
    +			"plus/webview_pullrefresh_custom.html": {
    +				"href": "plus/webview_pullrefresh_custom.html",
    +				"resources": [
    +					"css/common.css"
    +				],
    +				"priority": 26,
    +				"refer": []
    +			},
    +			"plus/webview_pullhead_custom.html": {
    +				"href": "plus/webview_pullhead_custom.html",
    +				"resources": [
    +					"css/common.css",
    +					"img/pull_arrow.png",
    +					"js/common.js",
    +					"img/pull_fresh.png",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/webview_pullrefresh_custom.html",
    +					"plus/doc.html"
    +				],
    +				"priority": 26
    +			},
    +			"plus/webview_float.html": {
    +				"href": "plus/webview_float.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css",
    +					"img/ui.png"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 27
    +			},
    +			"plus/webview.html": {
    +				"href": "plus/webview.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/webview_pullhead_custom.html",
    +					"plus/webview_float.html",
    +					"plus/doc.html",
    +					"doc/webview.html",
    +					"plus/webview_animation.html",
    +					"plus/webview_embed.html",
    +					"plus/webview_mask.html",
    +					"plus/webview_pulltorefresh.html"
    +				],
    +				"priority": 26
    +			},
    +			"plus/geolocation.html": {
    +				"href": "plus/geolocation.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/geolocation.html"
    +				],
    +				"priority": 27
    +			},
    +			"about.html": {
    +				"href": "about.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css",
    +					"img/h5p.jpg",
    +					"js/immersed.js",
    +					"icon.png",
    +					"img/qr.png"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 28
    +			},
    +			"plus/events.html": {
    +				"href": "plus/events.html",
    +				"resources": [
    +					"css/common.css",
    +					"js/common.js",
    +					"js/immersed.js"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"doc/events.html"
    +				],
    +				"priority": 29
    +			},
    +			"doc/share.html": {
    +				"href": "doc/share.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 1,
    +				"refer": []
    +			},
    +			"doc/webview.html": {
    +				"href": "doc/webview.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 5,
    +				"refer": []
    +			},
    +			"plus/webview_new.html": {
    +				"href": "plus/webview_new.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css",
    +					"img/ui.png"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 7
    +			},
    +			"plus/webview_animation.html": {
    +				"href": "plus/webview_animation.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"plus/webview_new.html"
    +				],
    +				"priority": 6
    +			},
    +			"plus/webview_embed.html": {
    +				"href": "plus/webview_embed.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 7
    +			},
    +			"plus/webview_mask_side.html": {
    +				"href": "plus/webview_mask_side.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 9
    +			},
    +			"plus/webview_mask.html": {
    +				"href": "plus/webview_mask.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html",
    +					"plus/webview_mask_side.html"
    +				],
    +				"priority": 8
    +			},
    +			"doc/accelerometer.html": {
    +				"href": "doc/accelerometer.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 4,
    +				"refer": []
    +			},
    +			"plus/accelerometer_shake.html": {
    +				"href": "plus/accelerometer_shake.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"audio/shake.wav",
    +					"css/common.css",
    +					"img/shakeup.png",
    +					"img/shakedown.png",
    +					"img/shake/1.jpg",
    +					"img/shake/2.jpg",
    +					"img/shake/3.jpg",
    +					"img/shake/4.jpg"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 5
    +			},
    +			"doc/audio.html": {
    +				"href": "doc/audio.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 5,
    +				"refer": []
    +			},
    +			"doc/barcode.html": {
    +				"href": "doc/barcode.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 6,
    +				"refer": []
    +			},
    +			"plus/barcode_scan.html": {
    +				"href": "plus/barcode_scan.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 7
    +			},
    +			"doc/camera.html": {
    +				"href": "doc/camera.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 9,
    +				"refer": []
    +			},
    +			"doc/device.html": {
    +				"href": "doc/device.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 8,
    +				"refer": []
    +			},
    +			"doc/downloader.html": {
    +				"href": "doc/downloader.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 9,
    +				"refer": []
    +			},
    +			"doc/events.html": {
    +				"href": "doc/events.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 10,
    +				"refer": []
    +			},
    +			"doc/io.html": {
    +				"href": "doc/io.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 11,
    +				"refer": []
    +			},
    +			"doc/gallery.html": {
    +				"href": "doc/gallery.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 12,
    +				"refer": []
    +			},
    +			"doc/geolocation.html": {
    +				"href": "doc/geolocation.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 13,
    +				"refer": []
    +			},
    +			"doc/maps.html": {
    +				"href": "doc/maps.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 15,
    +				"refer": []
    +			},
    +			"doc/messaging.html": {
    +				"href": "doc/messaging.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 15,
    +				"refer": []
    +			},
    +			"doc/nativeUI.html": {
    +				"href": "doc/nativeUI.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 17,
    +				"refer": []
    +			},
    +			"doc/navigator.html": {
    +				"href": "doc/navigator.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 18,
    +				"refer": []
    +			},
    +			"doc/oauth.html": {
    +				"href": "doc/oauth.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 18,
    +				"refer": []
    +			},
    +			"doc/orientation.html": {
    +				"href": "doc/orientation.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 19,
    +				"refer": []
    +			},
    +			"plus/orientation_level.html": {
    +				"href": "plus/orientation_level.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css",
    +					"img/orientationbg.png",
    +					"img/orientationl.png",
    +					"img/orientationb.png"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 20
    +			},
    +			"plus/orientation_compass.html": {
    +				"href": "plus/orientation_compass.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css",
    +					"img/orientationa.png",
    +					"img/orientationbg.png",
    +					"img/orientationc.png"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 21
    +			},
    +			"doc/payment.html": {
    +				"href": "doc/payment.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 20,
    +				"refer": []
    +			},
    +			"doc/proximity.html": {
    +				"href": "doc/proximity.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 21,
    +				"refer": []
    +			},
    +			"doc/push.html": {
    +				"href": "doc/push.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 22
    +			},
    +			"doc/runtime.html": {
    +				"href": "doc/runtime.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 23,
    +				"refer": []
    +			},
    +			"plus/runtime_launch.html": {
    +				"href": "plus/runtime_launch.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 24
    +			},
    +			"doc/storage.html": {
    +				"href": "doc/storage.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 24,
    +				"refer": []
    +			},
    +			"doc/uploader.html": {
    +				"href": "doc/uploader.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 26,
    +				"refer": []
    +			},
    +			"doc/xhr.html": {
    +				"href": "doc/xhr.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 26,
    +				"refer": []
    +			},
    +			"doc/zip.html": {
    +				"href": "doc/zip.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 28,
    +				"refer": []
    +			},
    +			"doc/ios.html": {
    +				"href": "doc/ios.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 30,
    +				"refer": []
    +			},
    +			"doc/android.html": {
    +				"href": "doc/android.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 31,
    +				"refer": []
    +			},
    +			"doc/native.js.html": {
    +				"href": "doc/native.js.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"refer": [
    +					"doc/ios.html",
    +					"doc/android.html"
    +				],
    +				"priority": 30
    +			},
    +			"plus/njs_efficient.html": {
    +				"href": "plus/njs_efficient.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"plus/doc.html"
    +				],
    +				"priority": 31
    +			},
    +			"plus/barcode_scan2.html": {
    +				"href": "plus/barcode_scan2.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"priority": 7,
    +				"refer": []
    +			},
    +			"doc/speech.html": {
    +				"href": "doc/speech.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 21,
    +				"refer": []
    +			},
    +			"plus/webview_pulltorefresh.html": {
    +				"href": "plus/webview_pulltorefresh.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"priority": 7
    +			},
    +			"doc/nativeobj.html": {
    +				"href": "doc/nativeobj.html",
    +				"resources": [
    +					"doc/res/doc.css",
    +					"doc/res/prettify.sons.css",
    +					"doc/res/doc.js",
    +					"doc/res/prettify.js"
    +				],
    +				"priority": 15
    +			},
    +			"plus/nativeobj_animation.html": {
    +				"href": "plus/nativeobj_animation.html",
    +				"resources": [
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"priority": 16
    +			},
    +			"plus/nativeobj.html": {
    +				"href": "plus/nativeobj.html",
    +				"resources": [
    +					"js/immersed.js",
    +					"js/common.js",
    +					"css/common.css"
    +				],
    +				"refer": [
    +					"doc/nativeobj.html",
    +					"plus/nativeobj_animation.html"
    +				],
    +				"priority": 15
    +			},
    +			"main.html": {
    +				"resources": [
    +					"yfindex.html",
    +					"js/common.js",
    +					"css/main.css",
    +					"js/mui.min.js",
    +					"css/mui.min.css",
    +					"js/push-common.js",
    +					"config.js"
    +				],
    +				"refer": [
    +					"start.html",
    +					"views/user/userInfo.html",
    +					"views/evaluate/evaluateList.html",
    +					"views/house/houseManageList.html",
    +					"views/house/houseDetail.html"
    +				],
    +				"priority": 0
    +			},
    +			"error.html": {
    +				"resources": [
    +					"yfindex.html",
    +					"views/house/houseDetail.html"
    +				],
    +				"refer": [],
    +				"priority": 0
    +			},
    +			"yfindex.html": {
    +				"resources": [
    +					"fonts/mui.ttf",
    +					"images/icon-clear.png",
    +					"js/axiosPlugin.js",
    +					"fonts/font_1433401008_2229297.woff",
    +					"images/cardBg.png",
    +					"js/jquery.cookie.js",
    +					"js/cn.js",
    +					"images/icon-home04.png",
    +					"js/zepto.js",
    +					"js/axios.min.js",
    +					"js/vue.js",
    +					"js/beacon_release.js",
    +					"js/updateVersion/updateVersion.js",
    +					"css/sm.css",
    +					"js/cityRegion.js",
    +					"images/icon-home01.png",
    +					"css/main.css",
    +					"images/icon-home02.png",
    +					"images/icon-home03.png",
    +					"images/icon-eye-orange.png",
    +					"images/icon-comments-orange.png",
    +					"images/icon-address04.png",
    +					"css/theme-orange.css",
    +					"images/arrow_select.png",
    +					"css/city.css",
    +					"images/search.png",
    +					"js/searchDistrict-app.js",
    +					"js/city-app.js",
    +					"images/icon-address02.png",
    +					"js/light7-2.js",
    +					"images/icon-address03.png",
    +					"images/icon-star01.png",
    +					"images/icon-star02.png"
    +				],
    +				"refer": [
    +					"views/news/newsDetail.html",
    +					"error.html",
    +					"views/rent/rent.html",
    +					"views/district/detail.html",
    +					"views/house/houseList.html",
    +					"views/house/cityDetail.html",
    +					"views/intelligentHouse/index.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/news/newsDetail.html": {
    +				"resources": [
    +					"images/icon-comments.png",
    +					"images/icon-praise-grey02.png"
    +				],
    +				"refer": [],
    +				"priority": 0
    +			},
    +			"/views/user/bindingMobile.html": {
    +				"resources": [],
    +				"refer": [
    +					"error.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/user/codeSms.html": {
    +				"resources": [
    +					"/views/user/bindingMobile.html"
    +				],
    +				"refer": [
    +					"views/user/passLogin.html",
    +					"views/user/bindingMobile.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/district/detail.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/district/arround.html",
    +					"views/user/codeSms.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/district/arround.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/district/aroundDetail.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/district/aroundDetail.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/district/arround.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/rent/rent.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/district/arround.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/user/userInfo.html": {
    +				"resources": [
    +					"images/icon-personal01.png",
    +					"js/user/myHouse.js",
    +					"images/icon-personal02.png",
    +					"js/user/myCollect.js",
    +					"images/icon-personal04.png",
    +					"js/user/myFocus.js",
    +					"images/icon-houseLevel.png",
    +					"images/icon-arrow-green.png",
    +					"images/icon-personal03.png",
    +					"images/headPortrait.png",
    +					"images/topBg.png",
    +					"images/icon-set.png"
    +				],
    +				"refer": [
    +					"views/user/passLogin.html",
    +					"views/district/detail.html",
    +					"views/setting/setting.html",
    +					"views/user/codeSms.html",
    +					"views/house/detail.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/evaluate/evaluateList.html": {
    +				"resources": [
    +					"images/icon-add.png",
    +					"images/icon-arrow-red.png",
    +					"js/shara/sharaMine.js",
    +					"js/light7.js"
    +				],
    +				"refer": [],
    +				"priority": 0
    +			},
    +			"start.html": {
    +				"resources": [
    +					"fonts/mui.ttf",
    +					"css/mui.min.css",
    +					"images/start.png",
    +					"css/theme-blue.css"
    +				],
    +				"refer": [
    +					"views/house/add.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/user/passLogin.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/user/bindingMobile.html",
    +					"views/user/codeSms.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/house/houseList.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/house/add.html",
    +					"views/house/detail.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/house/add.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/evaluate/evaluateReport.html",
    +					"views/user/codeSms.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/house/houseDetail.html": {
    +				"resources": [
    +					"views/component/cityIncreaseRankingComponent.js",
    +					"js/echarts.js",
    +					"css/main.css",
    +					"js/axiosPlugin.js",
    +					"js/quotations/cityDetail.js",
    +					"js/light7.js",
    +					"views/component/cityPotentialRankingComponent.js",
    +					"js/cn.js",
    +					"views/component/myFocusComponent.js",
    +					"js/zepto.js",
    +					"css/city.css",
    +					"js/log/log_stat.js",
    +					"js/common.js",
    +					"js/axios.min.js",
    +					"js/vue.js",
    +					"views/component/cityChooseComponent.js",
    +					"js/highcharts-4.2.3.js"
    +				],
    +				"refer": [
    +					"views/house/regions.html",
    +					"views/district/detail.html",
    +					"views/user/codeSms.html",
    +					"views/house/cityDetail.html",
    +					"views/user/passLogin.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/house/houseManageList.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/house/add.html",
    +					"views/evaluate/evaluateReport.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/house/cityDetail.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/user/codeSms.html",
    +					"views/district/detail.html",
    +					"views/house/regions.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/setting/setting.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/setting/about.html",
    +					"views/user/updatePass.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/evaluate/evaluateReport.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/house/add.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/setting/about.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/setting/agreement.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/intelligentHouse/index.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/intelligentHouse/mapDetail.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/intelligentHouse/mapDetail.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/intelligentHouse/aroundDetail.html"
    +				],
    +				"priority": 0
    +			},
    +			"views/house/detail.html": {
    +				"resources": [],
    +				"refer": [
    +					"views/rent/rentManager.html",
    +					"views/loan/loanInfo.html"
    +				],
    +				"priority": 0
    +			}
    +		},
    +		"idle": {
    +			"resources": [
    +				"plus/webview_pullrefresh.html",
    +				"doc/splashscreen.html",
    +				"plus/webview_pullhead.html",
    +				"doc/ui.html",
    +				"doc/key.html",
    +				"doc/contacts.html",
    +				"doc/statistic.html",
    +				"doc/interface-orientation.html",
    +				"doc/cache.html",
    +				"doc/console.html"
    +			]
    +		}
    +	},
    +	"unpackage": [
    +	  "js/update.json",
    +	  "doc/cache.html",
    +	  "doc/console.html",
    +	  "doc/contacts.html",
    +	  "doc/interface-orientation.html",
    +	  "doc/key.html",
    +	  "doc/splashscreen.html",
    +	  "doc/statistic.html",
    +	  "plus/accelerometer_shake.html",
    +	  "plus/accelerometer.html",
    +	  "plus/audio.html",
    +	  "plus/barcode_scan.html",
    +	  "plus/barcode_scan2.html",
    +	  "plus/barcode.html",
    +	  "plus/camera_image.html",
    +	  "plus/camera_video.html",
    +	  "plus/camera.html",
    +	  "plus/device.html",
    +	  "plus/doc.html",
    +	  "plus/downloader.html",
    +	  "plus/webview_pullhead.html",
    +	  "plus/webview_pullrefresh.html"
    +	]
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/accelerometer.html b/fangija-zsyf/plus/accelerometer.html
    new file mode 100644
    index 0000000..2be2971
    --- /dev/null
    +++ b/fangija-zsyf/plus/accelerometer.html
    @@ -0,0 +1,67 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="misapplication-tap-highlight" content="no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function getAcc() {
    +	outSet('获取设备当前加速度');
    +	plus.accelerometer.getCurrentAcceleration(function(a){
    +		outLine('X轴:'+a.xAxis+'\nY轴:'+a.yAxis+'\nZ轴:'+a.zAxis);
    +	}, function(e){
    +		outLine('获取失败:'+e.message);
    +	} );
    +}
    +var aid = null;
    +function watchAcc(){
    +	if(aid){
    +		return;
    +	}
    +	outSet('监听设备加速度变化');
    +	aid = plus.accelerometer.watchAcceleration(function(a){
    +		outSet('监听设备加速度变化\n'+'X轴:'+a.xAxis+'\nY轴:'+a.yAxis+'\nZ轴:'+a.zAxis);
    +	}, function(e){
    +		outLine('监听失败:'+e.message);
    +	});
    +}
    +function watchStop() {
    +	if(aid){
    +		outSet('停止监听设备加速度变化');
    +		plus.accelerometer.clearWatch(aid);
    +		aid = null;
    +	}else{
    +		outSet('没有监听设备加速度变化');
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Accelerometer</div>
    +			<div class="nvbt idoc" onclick="openDoc('Accelerometer Document','/doc/accelerometer.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="clicked('accelerometer_shake.html',true)">
    +				摇一摇
    +			</div>
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="getAcc()">获取设备当前加速度</li>
    +	            <li class="ditem" onclick="watchAcc()">监听设备加速度变化 </li>
    +	            <li class="ditem" onclick="watchStop()">停止监听设备加速度变化</li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Accelerometer可获取设备加速度传感器信息,包括x轴(屏幕水平方向)、y轴(垂直屏幕水平方向)、z轴(垂直屏幕平面方向)三个方向的加速度信息。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js"></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/accelerometer_shake.html b/fangija-zsyf/plus/accelerometer_shake.html
    new file mode 100644
    index 0000000..7f9e82b
    --- /dev/null
    +++ b/fangija-zsyf/plus/accelerometer_shake.html
    @@ -0,0 +1,101 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var p=null;
    +var iLast=2,MAX=20;
    +var up=null,down=null,offset=50;
    +var t=null;
    +// H5 plus事件处理
    +function plusReady(){
    +	// 锁定只能竖屏显示
    +	plus.screen.lockOrientation('portrait-primary');
    +	// 监听加速度
    +	plus.accelerometer.watchAcceleration(function(a){
    +		if(!up){
    +			return;
    +		}
    +		if(!p && ( Math.abs(a.xAxis)+Math.abs(a.yAxis)+Math.abs(a.zAxis) > MAX )){
    +			// Play audio
    +			p = plus.audio.createPlayer('_www/audio/shake.wav');
    +			p.play();
    +			setTimeout(function(){
    +				// Change background image
    +				var index = Math.round(Math.random()*3+1);
    +				if ( iLast == index ) {
    +					index++;
    +					if ( index > 4 ) {
    +						index = 1;
    +					}
    +				}
    +				document.body.style.backgroundImage='url(../img/shake/'+index+'.jpg)';
    +				iLast = index;
    +				// Stop play audio
    +				p.stop();
    +				delete p;
    +				p = null;
    +			}, 2000 );
    +			// Animation
    +			offset=up.offsetHeight/2;
    +			up.style.webkitTransform = 'translateY(-'+offset+'px)';
    +			up.style.msTransform = 'translateY(-'+offset+'px)';
    +			down.style.webkitTransform = 'translateY('+offset+'px)';
    +			down.style.msTransform = 'translateY('+offset+'px)';
    +			if(t){
    +				clearTimeout(t);
    +			}
    +			t = setTimeout(function(){
    +				t = null;
    +				up.style.webkitTransform = '';
    +				up.style.msTransform = '';
    +				down.style.webkitTransform = '';
    +				down.style.msTransform = '';
    +			}, 700 );
    +		}
    +	}, function(e){
    +		//outSet('Watch failed: '+e.message);
    +	}, {frequency:100});
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +// 监听DOMContentLoaded事件
    +document.addEventListener('DOMContentLoaded', function(){
    +	up=document.getElementById('up');
    +	down=document.getElementById('down');
    +	offset=up.offsetHeight/2;
    +},false);
    +// 解锁并关闭
    +var _back=window.back;
    +function unlockback(){
    +	plus.screen.unlockOrientation();
    +	_back();
    +}
    +window.back=unlockback;
    +		</script>		
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body style="background: center center no-repeat url(../img/shake/1.jpg);">
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">摇一摇</div>
    +		</header>
    +		<div style="height:100%;text-align:center;overflow:hidden;">
    +			<div id="up" style="width:100%;height:50%;background:#333;-webkit-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;">
    +				<img style="height:100%;" src="../img/shakeup.png"/>
    +			</div>
    +			<div id="down" style="padding-bottom:20px;width:100%;height:50%;background:#333;-webkit-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;">
    +				<img style="height:100%;" src="../img/shakedown.png"/>
    +			</div>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/audio.html b/fangija-zsyf/plus/audio.html
    new file mode 100644
    index 0000000..fcff1f2
    --- /dev/null
    +++ b/fangija-zsyf/plus/audio.html
    @@ -0,0 +1,356 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+ 2</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var gentry=null,hl=null,le=null;
    +var er=null,ep=null;
    +var bUpdated=false; //用于兼容可能提前注入导致DOM未解析完更新的问题
    +// H5 plus事件处理
    +function plusReady(){
    +	// 获取音频目录对象
    +	plus.io.resolveLocalFileSystemURL('_doc/', function(entry){
    +		entry.getDirectory('audio', {create:true}, function(dir){
    +			gentry = dir;
    +			updateHistory();
    +		}, function(e){
    +			outSet('Get directory "audio" failed: '+e.message);
    +		});
    +	}, function(e){
    +		outSet('Resolve "_doc/" failed: '+e.message);
    +	} );
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +// DOMContentLoaded事件处理
    +document.addEventListener('DOMContentLoaded', function(){
    +	// 获取DOM元素对象
    +	hl = document.getElementById('history');
    +	le = document.getElementById('empty');
    +	er = document.getElementById('record');
    +	rt = document.getElementById('rtime');
    +	ep = document.getElementById('play');
    +	pt = document.getElementById('ptime');
    +	pp = document.getElementById('progress')
    +	ps = document.getElementById('schedule');
    +	updateHistory();
    +},false);
    +// 添加播放项
    +function createItem( entry ) {
    +	var li = document.createElement('li');
    +	li.className = 'ditem';
    +	li.innerHTML = '<span class="iplay"><font class="aname"></font><br/><font class="ainf"></font></span>';
    +	li.setAttribute('onclick', 'playAudio(this)');
    +	hl.insertBefore(li, le.nextSibling);
    +	li.querySelector('.aname').innerText = entry.name;
    +	li.querySelector('.ainf').innerText = '...';
    +	li.entry = entry;
    +	updateInformation(li);
    +	// 设置空项不可见
    +	le.style.display = 'none';
    +}
    +// 开始录音
    +var r=null,t=0,ri=null,rt=null;
    +function startRecord(){
    +	outSet('开始录音:');
    +	r = plus.audio.getRecorder();
    +	if ( r == null ) {
    +		outLine('录音对象未获取');
    +		return;
    +	}
    +	r.record({filename:'_doc/audio/'}, function(p){
    +		outLine('录音完成:'+p);
    +		plus.io.resolveLocalFileSystemURL(p, function(entry){
    +			createItem(entry);
    +		}, function(e){
    +			outLine('读取录音文件错误:'+e.message);
    +		});
    +	}, function(e){
    +		outLine('录音失败:'+e.message);
    +	} );
    +	er.style.display = 'block';
    +	t = 0;
    +	ri = setInterval(function(){
    +		t++;
    +		rt.innerText = timeToStr(t);
    +	}, 1000);
    +}
    +// 停止录音
    +function stopRecord(){
    +	er.style.display = 'none';
    +	rt.innerText = '00:00:00';
    +	clearInterval(ri);
    +	ri = null;
    +	r.stop();
    +	w = null;
    +	r = null;
    +	t = 0;
    +}
    +// 清除历史记录
    +function cleanHistory(){
    +	hl.innerHTML = '<li id="empty" class="ditem-empty">无历史记录</li>';
    +	le = document.getElementById('empty');
    +	// 删除音频文件
    +	outSet('清空录音历史记录:');
    +	gentry.removeRecursively(function(){
    +		// Success
    +		outLine('操作成功!');
    +	}, function(e){
    +		ouline('操作失败:'+e.message);
    +	});
    +}
    +// 获取录音历史列表
    +function updateHistory(){
    +	if(bUpdated||!gentry||!document.body){//兼容可能提前注入导致DOM未解析完更新的问题
    +		return;
    +	}
    +  	var reader = gentry.createReader();
    +  	reader.readEntries(function(entries){
    +  		for(var i in entries){
    +  			if(entries[i].isFile){
    +  				createItem(entries[i]);
    +  			}
    +  		}
    +  	}, function(e){
    +  		outLine('读取录音列表失败:'+e.message);
    +  	});
    +	bUpdated = true;
    +}
    +// 获取录音文件信息
    +function updateInformation(li){
    +	if(!li || !li.entry){
    +		return;
    +	}
    +	var entry = li.entry;
    +	entry.getMetadata(function(metadata){
    +		li.querySelector('.ainf').innerText = dateToStr(metadata.modificationTime);
    +	}, function(e){
    +		outLine('获取文件"'+entry.name+'"信息失败:'+e.message);
    +	} );
    +}
    +// 播放音频文件
    +function playAudio(li){
    +	if(!li || !li.entry){
    +		ouSet('无效的音频文件');
    +		return;
    +	}
    +	outSet('播放音频文件:'+li.entry.name);
    +	startPlay('_doc/audio/'+li.entry.name);
    +}
    +// 播放文件相关对象
    +var p=null,pt=null,pp=null,ps=null,pi=null;
    +// 开始播放
    +function startPlay(url){
    +	ep.style.display = 'block';
    +	var L = pp.clientWidth;
    +	p = plus.audio.createPlayer(url);
    +	p.play(function(){
    +		outLine('播放完成!');
    +		// 播放完成
    +		pt.innerText = timeToStr(d)+'/'+timeToStr(d);
    +		ps.style.webkitTransition = 'all 0.3s linear';
    +		ps.style.width = L+'px';
    +		stopPlay();
    +	}, function(e){
    +		outLine('播放音频文件"'+url+'"失败:'+e.message);
    +	});
    +	// 获取总时长
    +	var d = p.getDuration();
    +	if(!d){
    +		pt.innerText = '00:00:00/'+timeToStr(d);
    +	}
    +	pi = setInterval(function(){
    +		if(!d){ // 兼容无法及时获取总时长的情况
    +			d = p.getDuration();
    +		}
    +		var c = p.getPosition();
    +		if(!c){  // 兼容无法及时获取当前播放位置的情况
    +			return;
    +		}
    +		pt.innerText = timeToStr(c)+'/'+timeToStr(d);
    +		var pct = Math.round(L*c/d);
    +		if(pct < 8){
    +			pct = 8;
    +		}
    +		ps.style.width = pct+'px';
    +	}, 1000);
    +}
    +// 停止播放
    +function stopPlay(){
    +	clearInterval(pi);
    +	pi=null;
    +	setTimeout(resetPlay, 500);
    +	// 操作播放对象
    +	if(p){
    +		p.stop();
    +		p=null;
    +	}
    +}
    +// 重置播放页面内容
    +function resetPlay(){
    +	ep.style.display = 'none';
    +	ps.style.width = '8px';
    +	ps.style.webkitTransition = 'all 1s linear';
    +	pt.innerText = '00:00:00/00:00:00';	
    +}
    +// 重写关闭
    +var _back=window.back;
    +function resetback(){
    +	// 停止播放
    +	if(ep.style.display == 'block'){
    +		stopPlay();
    +	}else if(er.style.display == 'block'){
    +		stopRecord();
    +	}else{
    +		_back();
    +	}
    +}
    +window.back=resetback;
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.rp {
    +	width: 100%;
    +	height: 100%;
    +	display: none;
    +	text-align: center;
    +	position: fixed;
    +	top: 0;
    +	background: rgba(0,0,0,0.8);
    +	z-index: 9999;
    +	overflow: hidden;
    +}
    +.aname {
    +	font-size: 16px;
    +}
    +.ainf {
    +	font-size: 12px;
    +}
    +.rtime {
    +	font-size: 22px;
    +	color: #FF0000;
    +}
    +.ptime {
    +	margin-top: 40%;
    +	font-size: 22px;
    +	color: #FFFFFF;
    +}
    +.rprogress {
    +	background: url(../img/arecord.png) no-repeat center center;
    +	background-size: 32px 32px;
    +}
    +.rschedule {
    +    background-color: rgba(0,0,0,0);
    +    border: 5px solid rgba(0,183,229,0.9);
    +    opacity: .9;
    +    border-left: 5px solid rgba(0,0,0,0);
    +    border-right: 5px solid rgba(0,0,0,0);
    +    border-radius: 50px;
    +    box-shadow: 0 0 15px #2187e7;
    +    width: 36px;
    +    height: 36px;
    +    margin: 0 auto;
    +    -webkit-animation: spin 1s infinite linear;
    +    animation: spin 1s infinite linear;
    +}
    +@-webkit-keyframes spin {
    +    0% {
    +        -webkit-transform: rotate(0deg);
    +    }
    +    100% {
    +        -webkit-transform: rotate(360deg);
    +    }
    +}
    +@keyframes spin {
    +    0% {
    +        transform: rotate(0deg);
    +    }
    +    100% {
    +        transform: rotate(360deg);
    +    }
    +}
    +.progress {
    +  width: 90%;
    +  background-color: #666;
    +  margin: 0 5%;
    +  border: 1px solid #222;
    +  -webkit-border-radius: 5px;
    +  border-radius: 5px;
    +}
    +.schedule {
    +  width: 8px;
    +  height: 8px;
    +  margin: 1px 0;
    +  background-color: #FFCC33;
    +  -webkit-border-radius: 4px;
    +  border-radius: 4px;
    +  -webkit-transition: all 1s linear;
    +  transition: all 1s linear;
    +}
    +.stop {
    +	width: 72px;
    +	height: 72px;
    +	background: url(../img/astop.png) center center;
    +	background-size: 72px 72px;
    +	margin: auto;
    +	-webkit-border-radius: 72px;
    +	border-radius: 72px;
    +}
    +.stop:active{
    +  	-webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) inset;
    +	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) inset;
    +}
    +.iplay {
    +	display: block;
    +	background: no-repeat right center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAAD9UlEQVR4nO2b3XETMRRGDwzvoYOkg5hRAVkqiKmAdIA7wHSQVECoALsC1gXciV0BTge4gvCwgnHk9d/+WF8m97ztxrlXs8fS1Urym6enJxwd3uZugPMcFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMVyIGC5EDBcihgsRw4WI4ULEcCFiuBAx3uVuwDGY2XtgCBTAALjc8tEFMAdKYBJC+HOK9nXBm5dwUM7MCmAEXDcMMQVuQwhlV23qC2khZjYAboGrjkLOgFEIYd5RvM6RrSFmdgs80J0MYqyHGFsSuR4S60TJ9vrwCEziZ+YhhGXy/xdU9aWgqjfnW+IsgEKtvkgJiUPUPfUyZsD42DoQ68+Y+p62AG6UhjAZITt6xopq3L9vGf+Gqh6dJX+S6ilKNaRkU8YCGLSVARBjDGLMdS5jbgkkhMQiWyejSGtEG2KsghopKoU++5AV68ZDcrvXYWTH8Pghdz1R6CHpN3MFDPsc02PsYcy1qy0nJ6uQOANKZz+jfcOUmd3H6W1jYo5RcvsqtikbuXtI+kBmBxbwz8DczMZtksdcsz1tOinZhMRxPF2bGh8R4gz4amZLMxu2aEqa8zq2LQs5e0j6EB8bLv6dAz/NrGwyjMWcj3vadjJyCimS60nLeFfAbzO7bfANT3MXLdvSmJxCBsl12VHcL8AyvpkfSpo7bdvJyCkkfQfocv5/Bnw3s/mBs6Y097aFzd7JPcv6T5dv5GtcAr/2TZN7yt0IGSE908k0+RS8FiEvhhd1yKEFUw5YAVBApoe0XQrZwgL4GEIY7pLRU+5G5OwhC57PZgbAsqPYK6rdxUMXC9Npbro8fzJy9pB0qll0FPcOuDhCRl3ubEvwOYWUyXXb5YoZ1X7GqMHSfZq7bNmWxuQUki5XnDdc+n4EPoUQiiabSzFnejKl7TJOY7IJid/iaXJ7fESIFfCNas+9zQNMc05zHnjIPctKx/mrA9egflCJGLd5eDFXukGWdddQYU+95PlDWVE97GXPeS+oivf6saBZCKHoM+8+cvcQ2NyhOwMmfW4SxdgTNs9oZd0tBAEhsRDfJbcvgbIPKTtOnNzlPnECAkPWP8xsTv3ZrJ1v2UfmuKDqGRt5QgjZ9kDWyd5D1iioP1U4P3KzqZYYY5v0om38rpDpIeCHrUFMCPjPEeSE/COetf3SU/i7EEL2GVUdSjXkGfGBfWDzIFsb/q93dRizU2R7yDr+o09R/GfRzsmRrSGvFRcihgsRw4WI4ULEcCFiuBAxXIgYLkQMFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMf4CVuqCm+17t3sAAAAASUVORK5CYII=);
    +	background-size: 50px 44px;
    +	-ms-touch-action: auto;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Audio</div>
    +			<div class="nvbt idoc" onclick="openDoc('Audio Document','/doc/audio.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="startRecord()">开始录音</div>
    +			<div class="button" onclick="startPlay('_www/audio/friendship.mp3')">播放音乐</div>
    +			<br/>
    +			<!-- History list -->
    +			<ul id="history" class="dlist" style="text-align:left;">
    +				<li id="empty" class="ditem-empty">无历史记录</li>
    +			</ul>
    +			<br/>
    +			<div class="button button-waring" onclick="cleanHistory()">清空历史记录</div>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Audio用于管理音频设备,可调用麦克风录制音频文件,也可播放音频文件。
    +		</div>
    +		<div id="play" class="rp">
    +			<div id="ptime" class="ptime">00:00:00/00:00:00</div><br/>
    +			<div id="progress" class="progress"><div id="schedule" class="schedule"></div></div>
    +			<br/>
    +			<div class="stop" onclick="stopPlay(),outSet('停止播放!')"></div>
    +		</div>
    +		<div id="record" class="rp">
    +			<div style="width:100%;height:20%;"></div>
    +			<div class="rprogress"><div class="rschedule"></div></div>
    +			<br/>
    +			<div id="rtime" class="rtime">00:00:00</div><br/>
    +			<div class="stop" onclick="stopRecord()"></div>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/barcode.html b/fangija-zsyf/plus/barcode.html
    new file mode 100644
    index 0000000..b788439
    --- /dev/null
    +++ b/fangija-zsyf/plus/barcode.html
    @@ -0,0 +1,122 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var img = null;
    +var blist = [];
    +function scaned(t, r, f){
    +	var d = new Date();
    +	var h=d.getHours(),m=d.getMinutes(),s=d.getSeconds(),ms=d.getMilliseconds();
    +	if(h < 10){ h='0'+h; }
    +	if(m < 10){ m='0'+m; }
    +	if(s < 10){ s='0'+s; }
    +	if(ms < 10){ ms='00'+ms; }
    +	else if(ms < 100){ ms='0'+ms; }
    +	var ts = '['+h+':'+m+':'+s+'.'+ms+']';
    +	var li=null,hl = document.getElementById('history');
    +	if(blist.length > 0){
    +		li = document.createElement('li');
    +		li.className = 'ditem';
    +		hl.insertBefore(li, hl.childNodes[0]);
    +	} else{
    +		li = document.getElementById('nohistory');
    +	}
    +	li.id = blist.length;
    +	var html = '['+h+':'+m+':'+s+'.'+ms+']'+'  '+t+'码<div class="hdata">';
    +	html += r;
    +	html += '</div>';
    +	li.innerHTML = html;
    +	li.setAttribute('onclick', 'selected(id)');
    +	blist[blist.length] = {type:t,result:r,file:f};
    +	update(t, r, f);
    +}
    +function selected(id){
    +	var h = blist[id];
    +	update( h.type, h.result, h.file );
    +	if(h.result.indexOf('http://')==0  || h.result.indexOf('https://')==0){
    +		plus.nativeUI.confirm(h.result, function(i){
    +			if(i.index == 0){
    +				plus.runtime.openURL(h.result);
    +			}
    +		}, '', ['打开', '取消']);
    +	} else{
    +		plus.nativeUI.alert(h.result);
    +	}
    +}
    +function update(t, r, f){
    +	outSet('扫描成功:');
    +	outLine(t);
    +	outLine(r);
    +	outLine('\n图片地址:'+f);
    +	if(!f || f=='null'){
    +		img.src = '../img/barcode.png';	
    +	} else{
    +		plus.io.resolveLocalFileSystemURL(f, function(entry){
    +			img.src=entry.toLocalURL();
    +		});
    +		//img.src = 'http://localhost:13131/'+f;
    +	}
    +}
    +function onempty(){
    +	if(window.plus){
    +		plus.nativeUI.alert('无扫描记录');
    +	} else {
    +		alert('无扫描记录');
    +	}
    +}
    +function cleanHistroy(){
    +	if(blist.length > 0){
    +		var hl = document.getElementById('history');
    +		hl.innerHTML = '<li id="nohistory" class="ditem" onclick="onempty();">无历史记录	</li>';
    +	}
    +	plus.io.resolveLocalFileSystemURL('_doc/barcode/', function(entry){
    +		entry.removeRecursively(function(){
    +			// Success
    +		}, function(e){
    +			//alert( "failed"+e.message );
    +		});
    +	});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css" media="screen">
    +.hdata {
    +	color: #e1673e;	
    +	font-size: 14px;
    +	overflow: hidden;
    +	text-overflow: ellipsis;
    +	white-space: nowrap;
    +}
    +		</style>
    +	</head>
    +	<body onload="img=document.getElementById('bimg')">
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Barcode</div>
    +			<div class="nvbt idoc" onclick="openDoc('Barcode Document','/doc/barcode.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<img style="width:40%" id="bimg" src="../img/barcode.png"/>
    +			<br/>
    +			<div class="button" onclick="clicked('barcode_scan.html',true,true)">扫一扫</div>
    +			<div class="button" onclick="clicked('barcode_scan2.html',true,true)">扫一扫(自定义)</div>
    +			<br/>
    +			<ul id="history" class="dlist" style="text-align:left;">
    +				<li id="nohistory" class="ditem" onclick="onempty()">无历史记录	</li>
    +			</ul>
    +			<br/>
    +			<div class="button button-waring" onclick="cleanHistroy()">清空历史记录</div>
    +		</div>
    +		<div id="output">
    +Barcode提供二维码扫描识别功能,支持调用摄像头即时扫描二维码,也可直接输入图片进行扫描识别。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/barcode_scan.html b/fangija-zsyf/plus/barcode_scan.html
    new file mode 100644
    index 0000000..7cc5df6
    --- /dev/null
    +++ b/fangija-zsyf/plus/barcode_scan.html
    @@ -0,0 +1,117 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var ws=null,wo=null;
    +var scan=null,domready=false;
    +// H5 plus事件处理
    +function plusReady(){
    +	if(ws||!window.plus||!domready){
    +		return;
    +	}
    +	// 获取窗口对象
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +	// 开始扫描
    +	ws.addEventListener('show', function(){
    +		scan=new plus.barcode.Barcode('bcid');
    +	    scan.onmarked=onmarked;
    +	    scan.start({conserve:true,filename:'_doc/barcode/'});
    +	}, false);
    +	// 显示页面并关闭等待框
    +    ws.show('pop-in');
    +    wo.evalJS('closeWaiting()');
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +// 监听DOMContentLoaded事件
    +document.addEventListener('DOMContentLoaded', function(){
    +	domready=true;
    +	plusReady();
    +}, false);
    +// 二维码扫描成功
    +function onmarked(type, result, file){
    +    switch(type){
    +    	case plus.barcode.QR:
    +    	type = 'QR';
    +    	break;
    +    	case plus.barcode.EAN13:
    +    	type = 'EAN13';
    +    	break;
    +    	case plus.barcode.EAN8:
    +    	type = 'EAN8';
    +    	break;
    +    	default:
    +    	type = '其它'+type;
    +    	break;
    +    }
    +    result = result.replace(/\n/g, '');
    +    wo.evalJS("scaned('"+ type +"','"+ result +"','"+ file +"');");
    +    back();
    +}
    +// 从相册中选择二维码图片 
    +function scanPicture(){
    +    plus.gallery.pick(function(path){
    +	    plus.barcode.scan(path,onmarked,function(error){
    +			plus.nativeUI.alert('无法识别此图片');
    +		});
    +    }, function(err){
    +        console.log('Failed: '+err.message);
    +    });
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#bcid {
    +	width: 100%;
    +	position: absolute;
    +	top: 0px;
    +	bottom: 44px;
    +	text-align: center;
    +}
    +.tip {
    +	color: #FFFFFF;
    +	font-weight: bold;
    +	text-shadow: 0px -1px #103E5C;
    +}
    +footer {
    +	width: 100%;
    +	height: 44px;
    +	position: absolute;
    +	bottom: 0px;
    +	line-height: 44px;
    +	text-align: center;
    +	color: #FFF;
    +}
    +.fbt {
    +	width: 50%;
    +	height: 100%;
    +	background-color: #FFCC33;
    +	float: left;
    +}
    +.fbt:active {
    +  	-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
    +	box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
    +}
    +		</style>
    +	</head>
    +	<body style="background-color: #000000;">
    +		<div id="bcid">
    +			<div style="height:40%"></div>
    +			<p class="tip">...载入中...</p>
    +		</div>
    +		<footer>
    +			<div class="fbt" onclick="back()">取  消</div>
    +			<div class="fbt" onclick="scanPicture()">从相册选择二维码</div>
    +		</footer>
    +	</body>
    +</html>
    diff --git a/fangija-zsyf/plus/barcode_scan2.html b/fangija-zsyf/plus/barcode_scan2.html
    new file mode 100644
    index 0000000..3d309cd
    --- /dev/null
    +++ b/fangija-zsyf/plus/barcode_scan2.html
    @@ -0,0 +1,118 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var ws=null,wo=null;
    +var scan=null,domready=false,bCancel=false;
    +// H5 plus事件处理
    +function plusReady(){
    +	if(ws||!window.plus||!domready){
    +		return;
    +	}
    +	// 获取窗口对象
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +	// 开始扫描
    +	ws.addEventListener('show',function(){
    +		scan=new plus.barcode.Barcode('bcid',[plus.barcode.QR,plus.barcode.EAN8,plus.barcode.EAN13],{frameColor:'#00FF00',scanbarColor:'#00FF00'});
    +	    scan.onmarked=onmarked;
    +	    scan.start({conserve:true,filename:'_doc/barcode/'});
    +	});
    +	// 显示页面并关闭等待框
    +    ws.show('pop-in');
    +    wo.evalJS('closeWaiting()');
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +// 监听DOMContentLoaded事件
    +document.addEventListener('DOMContentLoaded', function(){
    +	domready=true;
    +	plusReady();
    +}, false);
    +// 二维码扫描成功
    +function onmarked(type, result, file){
    +    switch(type){
    +    	case plus.barcode.QR:
    +    	type = 'QR';
    +    	break;
    +    	case plus.barcode.EAN13:
    +    	type = 'EAN13';
    +    	break;
    +    	case plus.barcode.EAN8:
    +    	type = 'EAN8';
    +    	break;
    +    	default:
    +    	type = '其它'+type;
    +    	break;
    +    }
    +    result = result.replace(/\n/g, '');
    +    wo.evalJS("scaned('"+ type +"','"+ result +"','"+ file +"');");
    +    back();
    +}
    +// 从相册中选择二维码图片 
    +function scanSwitch() {
    +    if(bCancel){
    +    	scan.start({conserve:true,filename:'_doc/barcode/'});
    +    	btCancel&&(btCancel.innerText='暂 停');
    +    }else{
    +    	scan.cancel();
    +    	btCancel&&(btCancel.innerText='开 始');
    +    }
    +    bCancel=!bCancel;
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#bcid {
    +	width: 100%;
    +	position: absolute;
    +	top: 0px;
    +	bottom: 44px;
    +	text-align: center;
    +}
    +.tip {
    +	color: #FFFFFF;
    +	font-weight: bold;
    +	text-shadow: 0px -1px #103E5C;
    +}
    +footer {
    +	width: 100%;
    +	height: 44px;
    +	position: absolute;
    +	bottom: 0px;
    +	line-height: 44px;
    +	text-align: center;
    +	color: #FFF;
    +}
    +.fbt {
    +	width: 50%;
    +	height: 100%;
    +	background-color: #FFCC33;
    +	float: left;
    +}
    +.fbt:active {
    +  	-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
    +	box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
    +}
    +		</style>
    +	</head>
    +	<body style="background-color: #000000;">
    +		<div id="bcid">
    +			<div style="height:40%"></div>
    +			<p class="tip">...载入中...</p>
    +		</div>
    +		<footer>
    +			<div class="fbt" onclick="back()">取 消</div>
    +			<div id="btCancel" class="fbt" onclick="scanSwitch()">暂 停</div>
    +		</footer>
    +	</body>
    +</html>
    diff --git a/fangija-zsyf/plus/camera.html b/fangija-zsyf/plus/camera.html
    new file mode 100644
    index 0000000..c1adbea
    --- /dev/null
    +++ b/fangija-zsyf/plus/camera.html
    @@ -0,0 +1,219 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var i=1,gentry=null,w=null;
    +var hl=null,le=null,de=null,ie=null;
    +var unv=true;
    +var bUpdated=false; //用于兼容可能提前注入导致DOM未解析完更新的问题
    +// H5 plus事件处理
    +function plusReady(){
    +	// 获取摄像头目录对象
    +	plus.io.resolveLocalFileSystemURL('_doc/', function(entry){
    +		entry.getDirectory('camera', {create:true}, function(dir){
    +			gentry = dir;
    +			updateHistory();
    +		}, function(e){
    +			outSet('Get directory "camera" failed: '+e.message);
    +		} );
    +	}, function(e){
    +		outSet('Resolve "_doc/" failed: '+e.message);
    +	});
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +// 监听DOMContentLoaded事件
    +document.addEventListener('DOMContentLoaded', function(){
    +	// 获取DOM元素对象
    +	hl=document.getElementById('history');
    +	le=document.getElementById('empty');
    +	de=document.getElementById('display');
    +	if(ie=document.getElementById('index')){
    +		ie.onchange=indexChanged;
    +	}
    +	// 判断是否支持video标签
    +	unv=!document.createElement('video').canPlayType;
    +	updateHistory();
    +},false );
    +function changeIndex(){
    +	outSet('选择摄像头:');
    +	ie.focus();
    +}
    +function indexChanged(){
    +	de.innerText = ie.options[ie.selectedIndex].innerText;
    +	i = parseInt(ie.value);
    +	outLine(de.innerText);
    +}
    +// 拍照
    +function getImage(){
    +	outSet('开始拍照:');
    +	var cmr = plus.camera.getCamera();
    +	cmr.captureImage(function(p){
    +		outLine('成功:'+p);
    +		plus.io.resolveLocalFileSystemURL(p, function(entry){
    +			createItem(entry);
    +		}, function(e){
    +			outLine('读取拍照文件错误:'+e.message);
    +		});
    +	}, function(e){
    +		outLine('失败:'+e.message);
    +	}, {filename:'_doc/camera/',index:1});
    +}
    +// 录像
    +function getVideo(){
    +	outSet('开始录像:');
    +	var cmr = plus.camera.getCamera();
    +	cmr.startVideoCapture(function(p){
    +		outLine('成功:'+p);
    +		plus.io.resolveLocalFileSystemURL(p, function(entry){
    +			createItem(entry);
    +		}, function(e){
    +			outLine('读取录像文件错误:'+e.message);
    +		} );
    +	}, function(e){
    +		outLine('失败:'+e.message);
    +	}, {filename:'_doc/camera/',index:i});
    +}
    +// 显示文件
    +function displayFile(li){
    +	if(w){
    +		outLine('重复点击!');
    +		return;
    +	}
    +	if(!li || !li.entry){
    +		ouSet('无效的媒体文件');
    +		return;
    +	}
    +	var name = li.entry.name;
    +	var suffix = name.substr(name.lastIndexOf('.'));
    +	var url = '';
    +	if(suffix=='.mov' || suffix=='.3gp' || suffix=='.mp4' || suffix=='.avi'){
    +		//if(unv){plus.runtime.openFile('_doc/camera/'+name);return;}
    +		url = '/plus/camera_video.html';
    +	} else {
    +		url = '/plus/camera_image.html';
    +	}
    +	w=plus.webview.create(url,url,{hardwareAccelerated:true,scrollIndicator:'none',scalable:true,bounce:'all'});
    +	w.addEventListener('loaded', function(){
    +		w.evalJS('loadMedia("'+li.entry.toLocalURL()+'")');
    +		//w.evalJS('loadMedia("'+'http://localhost:13131/_doc/camera/'+name+'")');
    +	}, false );
    +	w.addEventListener('close', function(){
    +		w = null;
    +	}, false);
    +	w.show('pop-in');
    +}
    +
    +// 添加播放项
    +function createItem(entry){
    +	var li = document.createElement('li');
    +	li.className = 'ditem';
    +	li.innerHTML = '<span class="iplay"><font class="aname"></font><br/><font class="ainf"></font></span>';
    +	li.setAttribute('onclick', 'displayFile(this)' );
    +	hl.insertBefore( li, le.nextSibling );
    +	li.querySelector('.aname').innerText = entry.name;
    +	li.querySelector('.ainf').innerText = '...';
    +	li.entry = entry;
    +	updateInformation(li);
    +	// 设置空项不可见
    +	le.style.display = 'none';
    +}
    +// 获取录音文件信息
    +function updateInformation(li){
    +	if(!li || !li.entry){
    +		return;
    +	}
    +	var entry = li.entry;
    +	entry.getMetadata(function(metadata){
    +		li.querySelector('.ainf').innerText = dateToStr(metadata.modificationTime);
    +	}, function(e){
    +		outLine('获取文件"'+entry.name+'"信息失败:'+e.message);
    +	} );
    +}
    +// 获取录音历史列表
    +function updateHistory(){
    +	if(bUpdated||!gentry||!document.body){//兼容可能提前注入导致DOM未解析完更新的问题
    +		return;
    +	}
    +  	var reader = gentry.createReader();
    +  	reader.readEntries(function(entries){
    +  		for(var i in entries){
    +  			if(entries[i].isFile){
    +  				createItem(entries[i]);
    +  			}
    +  		}
    +  	}, function(e){
    +  		outLine('读取录音列表失败:'+e.message);
    +  	});
    +  	bUpdated = true;
    +}
    +// 清除历史记录
    +function cleanHistory(){
    +	hl.innerHTML = '<li id="empty" class="ditem-empty">无历史记录</li>';
    +	le = document.getElementById('empty');
    +	// 删除音频文件
    +	outSet('清空拍照录像历史记录:');
    +	gentry.removeRecursively(function(){
    +		// Success
    +		outLine('成功!');
    +	}, function(e){
    +		outLine('失败:'+e.message);
    +	});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.aname {
    +	font-size: 16px;
    +}
    +.ainf {
    +	font-size: 12px;
    +}
    +.iplay {
    +	display: block;
    +	background: no-repeat right center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAAD9UlEQVR4nO2b3XETMRRGDwzvoYOkg5hRAVkqiKmAdIA7wHSQVECoALsC1gXciV0BTge4gvCwgnHk9d/+WF8m97ztxrlXs8fS1Urym6enJxwd3uZugPMcFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMVyIGC5EDBcihgsRw4WI4ULEcCFiuBAx3uVuwDGY2XtgCBTAALjc8tEFMAdKYBJC+HOK9nXBm5dwUM7MCmAEXDcMMQVuQwhlV23qC2khZjYAboGrjkLOgFEIYd5RvM6RrSFmdgs80J0MYqyHGFsSuR4S60TJ9vrwCEziZ+YhhGXy/xdU9aWgqjfnW+IsgEKtvkgJiUPUPfUyZsD42DoQ68+Y+p62AG6UhjAZITt6xopq3L9vGf+Gqh6dJX+S6ilKNaRkU8YCGLSVARBjDGLMdS5jbgkkhMQiWyejSGtEG2KsghopKoU++5AV68ZDcrvXYWTH8Pghdz1R6CHpN3MFDPsc02PsYcy1qy0nJ6uQOANKZz+jfcOUmd3H6W1jYo5RcvsqtikbuXtI+kBmBxbwz8DczMZtksdcsz1tOinZhMRxPF2bGh8R4gz4amZLMxu2aEqa8zq2LQs5e0j6EB8bLv6dAz/NrGwyjMWcj3vadjJyCimS60nLeFfAbzO7bfANT3MXLdvSmJxCBsl12VHcL8AyvpkfSpo7bdvJyCkkfQfocv5/Bnw3s/mBs6Y097aFzd7JPcv6T5dv5GtcAr/2TZN7yt0IGSE908k0+RS8FiEvhhd1yKEFUw5YAVBApoe0XQrZwgL4GEIY7pLRU+5G5OwhC57PZgbAsqPYK6rdxUMXC9Npbro8fzJy9pB0qll0FPcOuDhCRl3ubEvwOYWUyXXb5YoZ1X7GqMHSfZq7bNmWxuQUki5XnDdc+n4EPoUQiiabSzFnejKl7TJOY7IJid/iaXJ7fESIFfCNas+9zQNMc05zHnjIPctKx/mrA9egflCJGLd5eDFXukGWdddQYU+95PlDWVE97GXPeS+oivf6saBZCKHoM+8+cvcQ2NyhOwMmfW4SxdgTNs9oZd0tBAEhsRDfJbcvgbIPKTtOnNzlPnECAkPWP8xsTv3ZrJ1v2UfmuKDqGRt5QgjZ9kDWyd5D1iioP1U4P3KzqZYYY5v0om38rpDpIeCHrUFMCPjPEeSE/COetf3SU/i7EEL2GVUdSjXkGfGBfWDzIFsb/q93dRizU2R7yDr+o09R/GfRzsmRrSGvFRcihgsRw4WI4ULEcCFiuBAxXIgYLkQMFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMf4CVuqCm+17t3sAAAAASUVORK5CYII=);
    +	background-size: 50px 44px;
    +	-ms-touch-action: auto;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Camera</div>
    +			<div class="nvbt idoc" onclick="openDoc('Camera Document','/doc/camera.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<!--<div class="button" onclick="changeIndex();">
    +				选择:<span id="display" style="color:#FF0000">主摄像头</span>
    +				<div style="width:0px;height:0px;overflow:hidden;"><select id="index">
    +					<option value='1' selected="true">主摄像头</option>
    +					<option value='2' >辅摄像头</option>
    +				</select></div>
    +			</div>-->
    +			<div class="button" onclick="getImage()">拍照</div>
    +			<div class="button" onclick="getVideo()">录像</div>
    +			<br/>
    +			<!-- History list -->
    +			<ul id="history" class="dlist" style="text-align:left;">
    +				<li id="empty" class="ditem-empty">无历史记录</li>
    +			</ul>
    +			<br/>
    +			<div class="button button-waring" onclick="cleanHistory()">清空历史记录</div>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Camera管理摄像头设备,可用于拍摄照片、录制视频文件。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/camera_image.html b/fangija-zsyf/plus/camera_image.html
    new file mode 100644
    index 0000000..3130ebe
    --- /dev/null
    +++ b/fangija-zsyf/plus/camera_image.html
    @@ -0,0 +1,54 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var w=null;
    +// H5 plus事件处理
    +function plusReady(){
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +function imgLoaded(){
    +	w&&(w.close(),w=null);
    +	var b = document.body;
    +	var img = document.getElementById('img');
    +	var pb = b.clientHeight/b.clientWidth,
    +	pi = img.clientHeight/img.clientWidth;
    +	if(pb > pi){
    +		img.style.width = '100%';
    +	}else{
    +		img.style.height = '100%';
    +	}
    +	b.style.lineHeight = b.clientHeight+'px';
    +}
    +function imgError(){
    +	w&&(w.close(),w=null);
    +	document.getElementById('img').style.display = 'none';
    +	plus.nativeUI.alert('无效的图片资源', function(){
    +		back();
    +	});
    +}
    +function loadMedia(src){
    +	document.getElementById('img').src=src;
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css" media="screen">
    +img {
    +	vertical-align: middle;
    +}
    +		</style>
    +	</head>
    +	<body style="text-align:center;background:#000000;">
    +		<img id="img" onclick="back()" onload="imgLoaded()" onerror="imgError()"/>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/camera_video.html b/fangija-zsyf/plus/camera_video.html
    new file mode 100644
    index 0000000..83907c3
    --- /dev/null
    +++ b/fangija-zsyf/plus/camera_video.html
    @@ -0,0 +1,56 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var v=null;
    +function loadMedia( src ) {
    +	v.src = src;
    +	v.play();
    +}
    +function videoFinished() {
    +	back();
    +}
    +function videoError(e) {
    +	switch (e.target.error.code) {
    +     case e.target.error.MEDIA_ERR_ABORTED:
    +       alert('You aborted the video playback.');
    +       break;
    +     case e.target.error.MEDIA_ERR_NETWORK:
    +       alert('A network error caused the video download to fail part-way.');
    +       break;
    +     case e.target.error.MEDIA_ERR_DECODE:
    +       alert('The video playback was aborted due to a corruption problem or because the video used features your browser did not support.');
    +       break;
    +     case e.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:
    +       alert('The video could not be loaded, either because the server or network failed or because the format is not supported.');
    +       break;
    +     default:
    +       alert('An unknown error occurred.');
    +       break;
    +   }
    +
    +	plus.nativeUI.alert( "无效的视频资源", function(){
    +		back();
    +	} );
    +}
    +function init() {
    +	v = document.getElementById("video");
    +	//v.onended = videoFinished;
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body style="text-align:center;background:#DDDDDD;" onload="init();">
    +		<div style="width:100%;height:100%;display:table;" onclick="back();">
    +			<div style="display:table-cell;vertical-align:middle;">
    +				<video id="video" style="width:100%;" autoplay controls onerror="videoError(event);"></video>
    +			</div>
    +		</div>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/device.html b/fangija-zsyf/plus/device.html
    new file mode 100644
    index 0000000..cedd546
    --- /dev/null
    +++ b/fangija-zsyf/plus/device.html
    @@ -0,0 +1,107 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function getDeviceInfo(){
    +    var str = "",i;
    +    str += "设备型号:" + plus.device.model + "\n";
    +    str += "设备厂商:" + plus.device.vendor + "\n";
    +    str += "IMEI:" + plus.device.imei + "\n";
    +    str += "UUID: " + plus.device.uuid + "\n";
    +    str += "IMSI:";
    +    for ( i=0; i<plus.device.imsi.length; i++ ) {
    +        str += plus.device.imsi[i];
    +    }
    +    str += "\n";
    +    str += "屏幕分辨率:" + plus.screen.resolutionWidth*plus.screen.scale + " x " + plus.screen.resolutionHeight*plus.screen.scale + "\n";
    +    str += "DPI:" + plus.screen.dpiX + " x " + plus.screen.dpiY;
    +    outSet( str );
    +}
    +function getSysInfo() {
    +    var str = "";
    +    str += "名称:" + plus.os.name + "\n";
    +    str += "版本:" + plus.os.version + "\n";
    +    str += "语言:" + plus.os.language + "\n";
    +    str += "厂商:" + plus.os.vendor + "\n";
    +    str += "网络类型:";
    +    var types = {};
    +    types[plus.networkinfo.CONNECTION_UNKNOW] = "未知";
    +    types[plus.networkinfo.CONNECTION_NONE] = "未连接网络";
    +    types[plus.networkinfo.CONNECTION_ETHERNET] = "有线网络";
    +    types[plus.networkinfo.CONNECTION_WIFI] = "WiFi网络";
    +    types[plus.networkinfo.CONNECTION_CELL2G] = "2G蜂窝网络";
    +    types[plus.networkinfo.CONNECTION_CELL3G] = "3G蜂窝网络";
    +    types[plus.networkinfo.CONNECTION_CELL4G] = "4G蜂窝网络";
    +    str += types[plus.networkinfo.getCurrentType()];
    +    outSet( str );
    +}
    +function deviceBeep() {
    +    var str = "";
    +    switch ( plus.os.name ) {
    +    	case "iOS":
    +		    if ( plus.device.model.indexOf("iPhone") >= 0 ) {
    +                plus.device.beep();
    +		        str += "设备蜂鸣中...";
    +		    } else {
    +		        str += "此设备不支持蜂鸣";
    +		    }
    +    	break;
    +    	default:
    +    		plus.device.beep();
    +    		str += "设备蜂鸣中...";
    +    	break;
    +    }
    +	outSet( str );
    +}
    +function deviceVibrate() {
    +    var str = "";
    +    switch ( plus.os.name ) {
    +    	case "iOS":
    +            if ( plus.device.model.indexOf("iPhone") >= 0 ) {
    +                plus.device.vibrate();
    +                str += "设备振动中...";
    +            } else {
    +                str += "此设备不支持振动";
    +            }
    +    	break;
    +    	default:
    +    		plus.device.vibrate();
    +            str += "设备振动中...";
    +    	break;
    +    }
    +	outSet( str );
    +}
    +function dial(){
    +	plus.device.dial("10086",false);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Device</div>
    +			<div class="nvbt idoc" onclick="openDoc('Device Document','/doc/device.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="getDeviceInfo()">获取设备信息</li>
    +				<li class="ditem" onclick="getSysInfo()">获取系统信息</li>
    +				<li class="ditem" onclick="deviceBeep()">蜂鸣</li>
    +				<li class="ditem" onclick="deviceVibrate()">震动</li>
    +				<li class="ditem" onclick="dial()">直接拨打电话</li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Device可获取手机设备相关信息,包括硬件、软件、网络等信息。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/doc.html b/fangija-zsyf/plus/doc.html
    new file mode 100644
    index 0000000..3e90837
    --- /dev/null
    +++ b/fangija-zsyf/plus/doc.html
    @@ -0,0 +1,156 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript">
    +// 空函数
    +function shield(){
    +	return false;
    +}
    +//取消浏览器的所有事件,使得active的样式在手机上正常生效
    +document.addEventListener('touchstart',shield,false);
    +document.oncontextmenu=shield;
    +// H5 plus事件处理
    +var ws=null,wc=null,as='slide-in-right';
    +var aw=false,ac=null;//加载文档内容子窗口
    +function plusReady(){
    +	// 获取自身窗口
    +	ws=plus.webview.currentWebview();
    +	ws.addEventListener('hide',function(){
    +		nvtt.innerText='';
    +		wc.clear();
    +		wc.hide();
    +	},false);
    +	// Android处理返回键
    +	plus.key.addEventListener('backbutton',function(){
    +		back();
    +	},false);
    +	// iOS平台使用新动画
    +	if('iOS'==plus.os.name){
    +		as='pop-in';
    +	}
    +	// 检测是否需要自动显示
    +	aw&&ws.show(as);
    +	aw=false;
    +	// 创建加载内容窗口
    +	var topoffset='45px';
    +	if(plus.navigator.isImmersedStatusbar()){// 兼容immersed状态栏模式
    +		topoffset=(Math.round(plus.navigator.getStatusbarHeight())+45)+'px';
    +	}
    +	wc=plus.webview.create(null,'doccontent',{top:topoffset,bottom:'0px',bounce:'vertical',bounceBackground:'#FFFFFF'});
    +	// 内容更新后自动显示
    +	wc.addEventListener('loaded',function(){
    +		wc.show('fade-in');
    +	},false);
    +	wc.hide();
    +	ws.append(wc);
    +	// 检测是否需要自动加载内容
    +	ac&&wc.loadURL(ac);
    +	ac=null;
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready',plusReady,false);
    +}
    +// 处理返回事件
    +function back(){
    +	if(ws){
    +		if(ws.preate){
    +			ws.hide('auto');
    +		}else{
    +			ws.close('auto');
    +		}
    +	}else if(history.length>1){
    +		history.back();
    +	}else{
    +		close();
    +	}
    +}
    +// 更新标题和内容
    +function updateDoc(t,c){
    +	nvtt.innerText=t;
    +	if(ws){
    +		ws.show(as,null,function(){
    +			if(!wc){
    +				ac=c;
    +			}else{
    +				wc.loadURL(c);
    +			}
    +		});
    +	}else{
    +		aw=true;
    +		ac=c;
    +	}
    +}
    +		</script>
    +		<style type="text/css">
    +* {
    +	-webkit-user-select: none;
    +	-ms-touch-select: none;
    +}
    +html {
    +	width: 100%;
    +	height: 100%;
    +}
    +body {
    +	margin: 0;
    +	padding: 0;
    +	width: 100%;
    +	height: 100%;
    +    color:#666;
    +    background-color:#EAEAEA;
    +    font-family: Verdana, Arial, Helvetica , "Microsoft YaHei" , sans-serif;
    +    font-size:14px;
    +    word-break: break-all;
    +	-webkit-touch-callout:none;
    +	-webkit-tap-highlight-color:rgba(0,0,0,0);
    +	-webkit-text-size-adjust:none;
    +}
    +header {
    +	width: 100%;
    +	height: 44px;
    +	font-size: 17px;
    +	text-align: center;
    +	line-height: 44px;
    +	background: rgba(215,75,40,1);
    +	border-bottom: 1px solid rgba(215,75,40,0.8);
    +	-ms-touch-action: none;
    +}
    +.nvbt {
    +	width: 15%;
    +	height: 100%;
    +	float: left;
    +}
    +.nvbt:active {
    +	background-color: rgba(170,170,170,0.1);
    +}
    +#nvtt {
    +	width:70%;
    +	height:100%;
    +	color: #cccccc;
    +	float:left;
    +	overflow:hidden;
    +	text-overflow:ellipsis;
    +	white-space:nowrap;
    +}
    +.iback {
    +	background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAACcklEQVR4nO3a0XESURiG4TeO99iBWoGZ+RvADtKBpAPtwBLsANJBrEAs4MyYDmIHSQXkgk0mMLK7ILt8/+F778ici394OGfDsher1Qqn05tTD+A2M4hYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYb089wNCVUq6Ay+blfUQsTjhOZxc1P9tbSlkAX7b+/C0ifpxgnF5Ve2TtwAD4OvIoe1UlSAsGwPsRR9m76kA6MAD+jjTKQVUF0gMD4HaEUQ6umot6T4ybiJgNP83hVbFDasGACnZIT4yfEXE1wjj/Xeod0hPjDpgNPsyRSguyB8Y0Ih6Gn+g4pQSpFQMSgtSMAclAaseARCDngAFJQM4FAxKAnBMGiH8xLKVMgV89ln6MiPthpxkn6R0SEUvgusfSZSnlsnuZftI75LlSygyYdyx7ZH1s/Rl+ouFKAQIvx9ctMGlZlh4lDQhAcywtqRhF+hqyXfMmT1m/6buasL6mzMaY6dilAoENlLuWZRNgnhEl1ZH1ulLKO9bH16eOpdfqz2K9Lt0Oea75EjilfadAsp2SFgQ2UH53LJ2XUr4PPtARSntkbVfL7+rVgEBvlM/NHQDJUh9Z2zWf/puOZbPhJzm8qkDgBaXt/teHcSY5rOpAAJp/c/vclJSrShDYifKI+NPvVV3U/1VzU3LavFyo/25SPUi2qj2ysmYQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsZ4Ak9fPFwUy/HsAAAAASUVORK5CYII=);
    +	background-size: 50px 44px;
    +}
    +		</style>
    +	</head>
    +	<body onselectstart="return false;">
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div id="nvtt"></div>
    +		</header>
    +		<br/><br/><br/><br/>
    +		<p style="text-align:center;color:#666">正在加载中...</p>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    diff --git a/fangija-zsyf/plus/downloader.html b/fangija-zsyf/plus/downloader.html
    new file mode 100644
    index 0000000..95f37cd
    --- /dev/null
    +++ b/fangija-zsyf/plus/downloader.html
    @@ -0,0 +1,94 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var dtask=null;
    +function createDownloadTask(){
    +	if ( dtask ) {
    +		outLine( "下载任务已创建!" );
    +		return;
    +	}
    +    var url = "http://snip.qq.com/resources/Snip_V2.0_5771.dmg";
    +    var options = {method:"GET"};
    +	dtask = plus.downloader.createDownload( url, options );
    +    dtask.addEventListener( "statechanged", function(task,status){
    +    	if(!dtask){return;}
    +    	switch(task.state) {
    +    		case 1: // 开始
    +    			outLine( "开始下载..." );
    +    		break;
    +    		case 2: // 已连接到服务器
    +    			outLine( "链接到服务器..." );
    +    		break;
    +    		case 3:	// 已接收到数据
    +    			outSet( "下载数据更新:" );
    +    			outLine( task.downloadedSize+"/"+task.totalSize );
    +    		break;
    +    		case 4:	// 下载完成
    +    			outSet( "下载完成!" );
    +    			outLine( task.totalSize );
    +    		break;
    +    	}
    +    } );
    +    outSet( "创建下载任务成功!" );
    +}
    +function startDownloadTask(){
    +	if ( !dtask ) {
    +		outSet( "请先创建下载任务!" );
    +		return;
    +	}
    +	dtask.start();
    +}
    +// 暂停下载任务
    +function pauseDownloadTask(){
    +    dtask.pause();
    +    outSet( "暂停下载!" );
    +}
    +// 恢复下载任务
    +function resumeDownloadTask(){
    +    dtask.resume();
    +    outSet( "恢复下载!" );
    +}
    +function cancelDownloadTask(){
    +	dtask.abort();
    +	dtask = null;
    +	outSet( "取消下载任务!" );
    +}
    +function clearDownloadTask(){
    +	
    +}
    +function startAll(){
    +	plus.downloader.startAll();
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Downloader</div>
    +			<div class="nvbt idoc" onclick="openDoc('Downloader Document','/doc/downloader.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="createDownloadTask()">创建下载任务</li>
    +				<li class="ditem" onclick="startDownloadTask()">启动下载任务</li>
    +				<li class="ditem" onclick="pauseDownloadTask()">暂停下载任务</li>
    +				<li class="ditem" onclick="resumeDownloadTask()">恢复下载任务</li>
    +				<li class="ditem" onclick="cancelDownloadTask()">取消下载任务</li>
    +				<!--<li class="ditem" onclick="clearDownloadTask()">清除所有任务</li>-->
    +			</ul>
    +		</div>
    +		<div id="output">
    +Downloader用于管理文件的下载,可从网络下载各种文件,并支持跨域访问。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/events.html b/fangija-zsyf/plus/events.html
    new file mode 100644
    index 0000000..db1f7f8
    --- /dev/null
    +++ b/fangija-zsyf/plus/events.html
    @@ -0,0 +1,67 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +if(window.plus){
    +	if(document.body){
    +		outLine( currentTimeString()+" HTML5 Plus已准备" );
    +	}else{
    +		document.addEventListener("DOMContentLoaded",function(){
    +			outLine( currentTimeString()+" HTML5 Plus已准备" );
    +		},false);
    +	}
    +}else{
    +	document.addEventListener("plusready",function(){
    +		outLine( currentTimeString()+" HTML5 Plus已准备" );
    +	}, false );
    +}
    +document.addEventListener("pause",function(){
    +	outLine( currentTimeString()+" 应用从前台切换到后台" );
    +}, false );
    +document.addEventListener("resume",function(){
    +	outLine( currentTimeString()+" 应用从后台切换到前台" );
    +}, false );
    +document.addEventListener("netchange",function(){
    +    var types = {};
    +    types[plus.networkinfo.CONNECTION_UNKNOW] = "未知";
    +    types[plus.networkinfo.CONNECTION_NONE] = "未连接网络";
    +    types[plus.networkinfo.CONNECTION_ETHERNET] = "有线网络";
    +    types[plus.networkinfo.CONNECTION_WIFI] = "WiFi网络";
    +    types[plus.networkinfo.CONNECTION_CELL2G] = "2G蜂窝网络";
    +    types[plus.networkinfo.CONNECTION_CELL3G] = "3G蜂窝网络";
    +    types[plus.networkinfo.CONNECTION_CELL4G] = "4G蜂窝网络";
    +	outLine( currentTimeString()+" 切换网络:"+types[plus.networkinfo.getCurrentType()] );
    +}, false );
    +document.addEventListener("newintent",function(){
    +	outLine( currentTimeString()+" 从第三方应用启动:"+plus.runtime.arguments );
    +}, false );
    +function currentTimeString(){
    +	var d = new Date();
    +	return d.getHours()+":"+d.getMinutes()+":"+d.getSeconds()+"."+d.getMilliseconds()+" - ";
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Events</div>
    +			<div class="nvbt idoc" onclick="openDoc('Events Document','/doc/events.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p class="des">按“HOME”键切换应用触发“pause”和“resume”事件,在设置中改变网络配置触发“netchange”事件。</p>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Events模块管理客户端事件,包括系统事件,如扩展API加载完毕、程序前后台切换等。<br/>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/file.html b/fangija-zsyf/plus/file.html
    new file mode 100644
    index 0000000..6b19e8b
    --- /dev/null
    +++ b/fangija-zsyf/plus/file.html
    @@ -0,0 +1,254 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var dir="",root=[],current=null,parent=null,pitem=null,list=null;
    +var htmlItem='<img class="ficon"></img><div><span class="fname"></span><br/><span class="finf">...</span></div>';
    +document.addEventListener( "plusready", function () {
    +	pitem = document.getElementById("pdir");
    +	list = document.getElementById("dcontent");
    +
    +	// Get root item information
    +	var items = list.querySelectorAll(".fitem");
    +	for ( var i = 1; i < items.length; i++ ) {
    +		updateRootItem( items[i] );
    +	}
    +}, false );
    +// Update root information with item(HTMLUIElement)
    +function updateRootItem( item ) {
    +	plus.io.resolveLocalFileSystemURL( dir+item.id, function ( entry ) {
    +		root.push( entry );
    +		item.entry = entry;
    +		updateInf( item, entry );
    +	}, function ( e ) {
    +		outLine( "Update "+item.id+" information failed: "+e.message );
    +	} );
    +}
    +// Update HTMLUIElement information with entry object
    +function updateInf( item, entry ) {
    +	entry.getMetadata( function ( metadata ) {
    +		var inf = item.querySelector(".finf");
    +		if ( entry.isDirectory ) {
    +			inf.innerText = "文件夹:"+metadata.directoryCount+"项,文件:"+metadata.fileCount+"项";
    +		} else {
    +			inf.innerText = dateToStr(metadata.modificationTime);
    +		}
    +	}, function ( e ) {
    +		outLine( "Get metadata "+entry.name+" failed: "+e.message );
    +	}, false );
    +}
    +// Update ui with entries
    +function updateList( entries ) {
    +	var i,items = [].slice.apply(list.querySelectorAll(".fitem"));
    +	items.shift();
    +	// sort the entries
    +	entries.sort( sortCompareEntry )
    +	// Update item to ui
    +	for ( i = 0; i < entries.length; i++ ) {
    +		var di = null;
    +		if ( i < items.length ) {
    +			di=items[i];
    +			di.style.display = "block";
    +		} else {
    +			di = document.createElement("div");
    +			di.className = "fitem";
    +			di.setAttribute( "onclick", "openDir(this);" );
    +			di.innerHTML = htmlItem;
    +			list.appendChild( di );
    +		}
    +		di.entry = entries[i];
    +		di.id = di.entry.name;
    +		di.querySelector(".fname").innerText = di.id;
    +		di.querySelector(".finf").innerText = "";
    +		if ( entries === root ) {
    +			di.querySelector(".ficon").src = "../img/fdisk.png";
    +		} else {
    +			di.querySelector(".ficon").src = di.entry.isDirectory?"../img/fdir.png":"../img/ffile.png";
    +		}
    +		updateInf( di, di.entry );
    +	}
    +	// Hide other items
    +	for ( ; i < items.length; i++ ) {
    +		items[i].style.display = "none";
    +		items[i].entry = null;
    +	}
    +	// Reset scroll offset
    +	list.scrollTop = 0;
    +}
    +// Open directory with item(HTMLUIElement)
    +function openDir( item ) {
    +	var entry = item.entry;
    +	if ( !entry ) {
    +		outSet( "Open directory \""+item.id+"\" with null!" );
    +		return;
    +	}
    +	if ( entry.isDirectory ) {
    +		outSet( "Open directory: \""+dir+item.id+"\"" );
    +		var dirReader = entry.createReader();
    +		dirReader.readEntries( function( entries ) {
    +			parent = current;
    +			current = item.entry;
    +			dir = entry.toURL()+"/";
    +			// Dispaly up to parent item
    +			pitem.style.display = "block";
    +			// Update ui
    +			updateList( entries );
    +		}, function ( e ) {
    +			outLine( "Read directory "+item.id+" failed: "+e.message );
    +		} );
    +	} else {
    +		outSet( "Open file: \""+dir+item.id+"\"" );
    +		plus.runtime.openFile( dir+item.id, {}, function ( e ) {
    +			plus.nativeUI.alert( "无法打开此文件:"+e.emssage );
    +		} );
    +	}
    +}
    +// Back to parent directory
    +function parentDir() {
    +	outSet( "Go to previous directory: \""+dir+"\"");
    +	var p = dir.lastIndexOf( "/", dir.length-2 );
    +	if ( p < 0 || !parent ) { // Up to root
    +		dir = "";
    +		current = parent = null;
    +		// hide up to parent item
    +		pitem.style.display = "none";
    +		// Update ui
    +		updateList( root );
    +	} else {
    +		var dirReader = parent.createReader();
    +		dirReader.readEntries( function( entries ) {
    +			dir = dir.substr( 0, p+1 );
    +			outLine( "Current directory: \""+dir+"\"" );
    +			current = parent;
    +			current.getParent( function ( entry ) {
    +				parent = entry;
    +			}, function ( e ) {
    +				outLine( "Get \""+current.name+"\" parent directory failed: "+e.emssage );
    +			} );
    +			parent = null;
    +			// Update ui
    +			updateList( entries );
    +		}, function ( e ) {
    +			outLine( "Read directory "+item.id+" failed: "+e.message );
    +		} );
    +	}
    +}
    +// Entry sort compare
    +function sortCompareEntry( a, b ) {
    +	if ( a.isDirectory && b.isFile ) {
    +		return -1;
    +	} else if ( a.isFile && b.isDirectory ) {
    +		return 1;
    +	} else {
    +		return a.name - b.name;
    +	}
    +}
    +// Format data to string
    +function dateToStr( datetime ) {
    +	var year = datetime.getFullYear(),
    +	month = datetime.getMonth()+1,
    +	date = datetime.getDate(),
    +	hour = datetime.getHours(),
    +	minutes = datetime.getMinutes(),
    +	second = datetime.getSeconds();
    +	if ( month < 10 ) {
    +		month = "0" + month;
    +	}
    +	if ( date < 10 ) {
    +		date = "0" + date;
    +	}
    +	if ( hour < 10 ) {
    +		hour = "0" + hour;
    +	}
    +	if ( minutes < 10 ) {
    +		minutes = "0" + minutes;
    +	}
    +	if ( second < 10 ) {
    +		second = "0" + second;
    +	}
    +	return (year+"-"+month+"-"+date+" "+hour+":"+minutes+":"+second);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.fitem {
    +	width: 96%;
    +	overflow: hidden;
    +	padding: 10px 2%;
    +	border-bottom: 1px solid #c6c6c6;
    +	text-align: left;
    +}
    +.fitem:active {
    +	background: #f4f4f4;
    +}
    +.ficon {
    +	height: 40px;
    +	float: left;
    +	margin-right: 8px;
    +}
    +.fup {
    +	line-height:40px;
    +}
    +.fname {
    +	font-weight: bolder;
    +	height: 22px;
    +	font-size: 16px;
    +}
    +.finf {
    +	height: 18px;
    +	font-size: 12px;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">File System</div>
    +			<div class="nvbt idoc" onclick="openDoc('File System Document','/doc/io.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<div id="pdir" class="fitem" style="display:none" onclick="parentDir()">
    +				<img class="ficon" src="../img/fup.png"/>
    +				<div class="fup"><span class="fname">返回上一级</span></div>
    +			</div>
    +			<div id="_www" class="fitem" onclick="openDir(this)">
    +				<img class="ficon" src="../img/fdisk.png"/>
    +				<div>
    +					<span class="fname">www</span><br/>
    +					<span class="finf">...</span>
    +				</div>
    +			</div>
    +			<div id="_doc" class="fitem" onclick="openDir(this)">
    +				<img class="ficon" src="../img/fdisk.png"/>
    +				<div>
    +					<span class="fname">doc</span><br/>
    +					<span class="finf">...</span>
    +				</div>
    +			</div>
    +			<div id="_documents" class="fitem" onclick="openDir(this)">
    +				<img class="ficon" src="../img/fdisk.png"/>
    +				<div>
    +					<span class="fname">documents</span><br/>
    +					<span class="finf">...</span>
    +				</div>
    +			</div>
    +			<div id="_downloads" class="fitem" onclick="openDir(this)">
    +				<img class="ficon" src="../img/fdisk.png"/>
    +				<div>
    +					<span class="fname">downloads</span><br/>
    +					<span class="finf">...</span>
    +				</div>
    +			</div>
    +		</div>
    +		<div id="output">
    +File System模块管理本地文件系统,用于文件系统目录的浏览、文件的写入、文件的读取等操作。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    diff --git a/fangija-zsyf/plus/gallery.html b/fangija-zsyf/plus/gallery.html
    new file mode 100644
    index 0000000..bbee9de
    --- /dev/null
    +++ b/fangija-zsyf/plus/gallery.html
    @@ -0,0 +1,200 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function plusReady(){
    +	// 用户侧滑返回时关闭显示的图片
    +	plus.webview.currentWebview().addEventListener('popGesture', function(e){
    +		if(e.type=='start'){
    +			closeImg();
    +		}
    +	}, false );
    +}
    +document.addEventListener('plusready',plusReady,false);
    +
    +function getImage(){
    +	var cmr = plus.camera.getCamera();
    +	cmr.captureImage(function(path){
    +		outSet('保存照片到系统相册:');
    +		plus.gallery.save(path, function(){
    +			outLine('保存成功');
    +		}, function(e){
    +			outSet('保存失败: '+JSON.stringify(e));
    +		});
    +	}, function(e){
    +		outSet('取消拍照');
    +	}, {filename:'_doc/gallery/',index:1});
    +}
    +function galleryImg(){
    +	// 从相册中选择图片
    +	outSet('从相册中选择图片:');
    +    plus.gallery.pick(function(path){
    +    	outLine(path);
    +        //showImg( path );
    +        //createItem(path);
    +    }, function(e){
    +    	outSet('取消选择图片');
    +    }, {filter:'image'});
    +}
    +function galleryImgs(){
    +	// 从相册中选择图片
    +	outSet('从相册中选择多张图片:');
    +    plus.gallery.pick(function(e){
    +    	for(var i in e.files){
    +	    	outLine(e.files[i]);
    +    	}
    +    }, function(e){
    +    	outSet('取消选择图片');
    +    },{filter:'image',multiple:true,system:false});
    +}
    +function galleryImgsMaximum(){
    +	// 从相册中选择图片
    +	outSet('从相册中选择多张图片(限定最多选择3张):');
    +    plus.gallery.pick(function(e){
    +    	for(var i in e.files){
    +	    	outLine(e.files[i]);
    +    	}
    +    }, function(e){
    +    	outSet('取消选择图片');
    +    },{filter:'image',multiple:true,maximum:3,system:false,onmaxed:function(){
    +		plus.nativeUI.alert('最多只能选择3张图片');
    +    }});// 最多选择3张图片
    +}
    +var lfs=null;// 保留上次选择图片列表
    +function galleryImgsSelected(){
    +	// 从相册中选择图片
    +	outSet('从相册中选择多张图片(限定最多选择3张):');
    +    plus.gallery.pick(function(e){
    +    	lfs=e.files;
    +    	for(var i in e.files){
    +	    	outLine(e.files[i]);
    +    	}
    +    }, function(e){
    +    	outSet('取消选择图片');
    +    },{filter:'image',multiple:true,maximum:3,selected:lfs,system:false,onmaxed:function(){
    +		plus.nativeUI.alert('最多只能选择3张图片');
    +    }});// 最多选择3张图片
    +}
    +function showImg(url){
    +	// 兼容以"file:"开头的情况
    +	if(0!=url.indexOf('file://')){
    +		url='file://'+url;
    +	}
    +	var _body_ = document.body;
    +	var _div_ = document.createElement('div');
    +	_div_.style.top='0px';
    +	_div_.style.left='0px';
    +	_div_.style.height='100%';
    +	_div_.style.width='100%';
    +	_div_.style.zIndex='99999';
    +	_div_.style.position='fixed';
    +	_div_.style.background='#ffffff';
    +	_div_.id='imgShow';
    +	_div_.onclick=closeImg;
    +	var _img_=document.createElement('img');
    +	_img_.src=url;
    +	_img_.style.width='100%';
    +	_body_.appendChild(_div_);
    +	_div_.appendChild(_img_);
    +}
    +function closeImg(){
    +	var trnode=document.getElementById('imgShow');
    +	trnode&&trnode.parentNode.removeChild(trnode);
    +}
    +
    +var list=null,first=null;
    +document.addEventListener('DOMContentLoaded', function(){
    +	list=document.getElementById('list');
    +	first=document.getElementById('empty');
    +}, false);
    +// 添加列表项
    +function createItem(path){
    +	var li = document.createElement('li');
    +	li.className = 'ditem';
    +	li.innerHTML = '<span class="iplay"><font class="aname"></font><br/><font class="ainf"></font></span>';
    +	li.setAttribute('onclick', 'displayMedia(this);' );
    +	list.insertBefore(li, first.nextSibling);
    +	var i = path.lastIndexOf('/');
    +	if(i<0){
    +		i = path.lastIndexOf('\\');
    +	}
    +	li.querySelector('.aname').innerText = path.substr(i+1);
    +	li.querySelector('.ainf').innerText = path;
    +	li.path = path;
    +	// 设置空项不可见
    +	first.style.display = 'none';
    +}
    +// 清除列表记录
    +function cleanList() {
    +	list.innerHTML = '<li id="empty" class="ditem-empty">无记录</li>';
    +	empty = document.getElementById('empty');
    +	// 删除音频文件
    +	outSet('清空选择照片记录:');
    +}
    +// 返回后关闭图片显示
    +var _back=window.back;
    +window.back=function(){
    +	closeImg();
    +	_back();
    +};
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.aname {
    +	font-size: 16px;
    +	text-overflow:ellipsis;
    +	white-space:nowrap;
    +}
    +.ainf {
    +	font-size: 12px;
    +	text-overflow:ellipsis;
    +	white-space:nowrap;
    +}
    +.iplay {
    +	display: block;
    +	background: no-repeat right center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAAD9UlEQVR4nO2b3XETMRRGDwzvoYOkg5hRAVkqiKmAdIA7wHSQVECoALsC1gXciV0BTge4gvCwgnHk9d/+WF8m97ztxrlXs8fS1Urym6enJxwd3uZugPMcFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMVyIGC5EDBcihgsRw4WI4ULEcCFiuBAx3uVuwDGY2XtgCBTAALjc8tEFMAdKYBJC+HOK9nXBm5dwUM7MCmAEXDcMMQVuQwhlV23qC2khZjYAboGrjkLOgFEIYd5RvM6RrSFmdgs80J0MYqyHGFsSuR4S60TJ9vrwCEziZ+YhhGXy/xdU9aWgqjfnW+IsgEKtvkgJiUPUPfUyZsD42DoQ68+Y+p62AG6UhjAZITt6xopq3L9vGf+Gqh6dJX+S6ilKNaRkU8YCGLSVARBjDGLMdS5jbgkkhMQiWyejSGtEG2KsghopKoU++5AV68ZDcrvXYWTH8Pghdz1R6CHpN3MFDPsc02PsYcy1qy0nJ6uQOANKZz+jfcOUmd3H6W1jYo5RcvsqtikbuXtI+kBmBxbwz8DczMZtksdcsz1tOinZhMRxPF2bGh8R4gz4amZLMxu2aEqa8zq2LQs5e0j6EB8bLv6dAz/NrGwyjMWcj3vadjJyCimS60nLeFfAbzO7bfANT3MXLdvSmJxCBsl12VHcL8AyvpkfSpo7bdvJyCkkfQfocv5/Bnw3s/mBs6Y097aFzd7JPcv6T5dv5GtcAr/2TZN7yt0IGSE908k0+RS8FiEvhhd1yKEFUw5YAVBApoe0XQrZwgL4GEIY7pLRU+5G5OwhC57PZgbAsqPYK6rdxUMXC9Npbro8fzJy9pB0qll0FPcOuDhCRl3ubEvwOYWUyXXb5YoZ1X7GqMHSfZq7bNmWxuQUki5XnDdc+n4EPoUQiiabSzFnejKl7TJOY7IJid/iaXJ7fESIFfCNas+9zQNMc05zHnjIPctKx/mrA9egflCJGLd5eDFXukGWdddQYU+95PlDWVE97GXPeS+oivf6saBZCKHoM+8+cvcQ2NyhOwMmfW4SxdgTNs9oZd0tBAEhsRDfJbcvgbIPKTtOnNzlPnECAkPWP8xsTv3ZrJ1v2UfmuKDqGRt5QgjZ9kDWyd5D1iioP1U4P3KzqZYYY5v0om38rpDpIeCHrUFMCPjPEeSE/COetf3SU/i7EEL2GVUdSjXkGfGBfWDzIFsb/q93dRizU2R7yDr+o09R/GfRzsmRrSGvFRcihgsRw4WI4ULEcCFiuBAxXIgYLkQMFyKGCxHDhYjhQsRwIWK4EDFciBguRAwXIoYLEcOFiOFCxHAhYrgQMf4CVuqCm+17t3sAAAAASUVORK5CYII=);
    +	background-size: 50px 44px;
    +	-ms-touch-action: auto;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Gallery</div>
    +			<div class="nvbt idoc" onclick="openDoc('Gallery Document','/doc/gallery.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="getImage()">拍照并保存到相册</div>
    +			<div class="button" onclick="galleryImg()">从相册中单选图片</div>
    +			<div class="button" onclick="galleryImgs()">从相册中多选图片</div>
    +			<div class="button" onclick="galleryImgsMaximum()">从相册中多选图片(最多三张)</div>
    +			<div class="button" onclick="galleryImgsSelected()">从相册中多选图片(保存勾选记录)</div>
    +			<br/>
    +			<!-- Image list -->
    +			<!--<ul id="list" class="dlist" style="text-align:left;">
    +				<li id="empty" class="ditem-empty">无记录</li>
    +				<li class="ditem" onclick="displayMedia(this);">
    +					<span class="iplay">
    +						<div class="aname">.BjMobileService_bmcc168.apk.png</div><br>
    +						<div class="ainf">file:///storage/sdcard0/QQBrowser/安装包/.BjMobileService_bmcc168.apk.png</div>
    +					</span>
    +				</li>
    +			</ul>
    +			<br/>
    +			<div class="button button-waring" onclick="cleanList()">清空列表</div>
    +			<br/>-->
    +		</div>
    +		<div id="output">
    +Gallery模块管理系统相册,如从相册中选择图片或视频文件、保存图片或视频文件到相册等功能。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js"></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/geolocation.html b/fangija-zsyf/plus/geolocation.html
    new file mode 100644
    index 0000000..6d2b946
    --- /dev/null
    +++ b/fangija-zsyf/plus/geolocation.html
    @@ -0,0 +1,94 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var watchId;
    +function geoInf( position ) {
    +	var str = "";
    +	str += "地址:"+position.addresses+"\n";//获取地址信息
    +	str += "坐标类型:"+position.coordsType+"\n";
    +	var timeflag = position.timestamp;//获取到地理位置信息的时间戳;一个毫秒数;
    +	str += "时间戳:"+timeflag+"\n";
    +	var codns = position.coords;//获取地理坐标信息;
    +	var lat = codns.latitude;//获取到当前位置的纬度;
    +	str += "纬度:"+lat+"\n";
    +	var longt = codns.longitude;//获取到当前位置的经度
    +	str += "经度:"+longt+"\n";
    +	var alt = codns.altitude;//获取到当前位置的海拔信息;
    +	str += "海拔:"+alt+"\n";
    +	var accu = codns.accuracy;//地理坐标信息精确度信息;
    +	str += "精确度:"+accu+"\n";
    +	var altAcc = codns.altitudeAccuracy;//获取海拔信息的精确度;
    +	str += "海拔精确度:"+altAcc+"\n";
    +	var head = codns.heading;//获取设备的移动方向;
    +	str += "移动方向:"+head+"\n";
    +	var sped = codns.speed;//获取设备的移动速度;
    +	str += "移动速度:"+sped;
    +	console.log(JSON.stringify(position));
    +	outLine( str );
    +}
    +function getPos() {
    +	outSet( "获取位置信息:" );
    +	plus.geolocation.getCurrentPosition( geoInf, function ( e ) {
    +		outSet( "获取位置信息失败:"+e.message );
    +	}, {geocode:false} );
    +}
    +function watchPos() {
    +	if ( watchId ) {
    +		return;
    +	}
    +	watchId = plus.geolocation.watchPosition( function ( p ) {
    +		outSet( "监听位置变化信息:" );
    +		geoInf( p );
    +	}, function ( e ) {
    +		outSet( "监听位置变化信息失败:"+e.message );
    +	}, {geocode:false} );
    +}
    +function clearWatch() {
    +	if ( watchId ) {
    +		outSet( "停止监听位置变化信息" );
    +		plus.geolocation.clearWatch( watchId );
    +		watchId = null;
    +	}
    +}
    +// 通过定位模块获取位置信息
    +function getGeocode(){
    +	outSet( "获取定位位置信息:" );
    +	plus.geolocation.getCurrentPosition( geoInf, function ( e ) {
    +		outSet( "获取定位位置信息失败:"+e.message );
    +	},{geocode:true});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Geolocation</div>
    +			<div class="nvbt idoc" onclick="openDoc('Geolocation Document','/doc/geolocation.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="getPos()">获取设备位置信息</li>
    +				<li class="ditem" onclick="watchPos()">监听设备位置信息</li>
    +				<li class="ditem" onclick="clearWatch()">停止监听</li>
    +			</ul>
    +			<br/>
    +			<div class="button" onclick="getGeocode()">获取定位信息</div>
    +			<p class="des">
    +				Android平台推荐配置高德或百度定位,避免在部分设备(如三星、HTC等)可能无法获取位置信息的问题。
    +			</p>
    +		</div>
    +		<div id="output">
    +Geolocation可获取设备位置信息,包括经度、纬度、高度等信息。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/maps.html b/fangija-zsyf/plus/maps.html
    new file mode 100644
    index 0000000..a4a4578
    --- /dev/null
    +++ b/fangija-zsyf/plus/maps.html
    @@ -0,0 +1,52 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function navigateWithMap(){
    +	if('Android'===plus.os.name&&navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持地图插件');
    +		return;
    +	}
    +	// 设置目标位置坐标点和其实位置坐标点
    +	var dst = new plus.maps.Point(116.39131928,39.90793074); // 天安门 
    +	var src = new plus.maps.Point(116.335,39.966); // 大钟寺
    +	// 调用系统地图显示 
    +	plus.maps.openSysMap( dst, "天安门", src );
    +}
    +function showMaps(){
    +	if('Android'===plus.os.name&&navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持地图插件');
    +		return;
    +	}
    +	var ws=plus.webview.currentWebview();
    +	var wm=plus.webview.getWebviewById(plus.runtime.appid);
    +	wm&&wm.evalJS("preateClear()");
    +	clicked('maps_map.html',false,true);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Maps</div>
    +			<div class="nvbt idoc" onclick="openDoc('Maps Document','/doc/maps.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="navigateWithMap();">调用第三方地图程序导航</div>
    +			<div class="button" onclick="showMaps();">应用内置地图</div>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Maps模块管理地图控件,用于在web页面中显示地图控件,提供各种接口操作地图控件,如添加标点、路线等。通过plus.maps可获取地图管理对象。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/maps_map.html b/fangija-zsyf/plus/maps_map.html
    new file mode 100644
    index 0000000..cca8b3c
    --- /dev/null
    +++ b/fangija-zsyf/plus/maps_map.html
    @@ -0,0 +1,97 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var ws=null,wo=null;
    +var em=null,map=null,pcenter=null;
    +// H5 plus事件处理
    +function plusReady(){
    +	if(!em||ws){return};
    +	// 获取窗口对象
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +	//高德地图坐标为(116.3974357341,39.9085574220), 百度地图坐标为(116.3975,39.9074)
    +	pcenter = new plus.maps.Point(116.3975,39.9074);
    +	setTimeout(function(){
    +		map=new plus.maps.Map("map");
    +		map.centerAndZoom(pcenter,12);
    +		createMarker();
    +		// 创建子窗口
    +		createSubview();
    +	},300);
    +	// 显示页面并关闭等待框
    +    ws.show("pop-in");
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOMContentloaded事件处理
    +document.addEventListener("DOMContentLoaded",function(){
    +	em=document.getElementById("map");
    +	window.plus&&plusReady();
    +},false);
    +function userLocation(){
    +	map.showUserLocation( true );
    +	map.getUserLocation(function(state,pos){
    +		if(0==state){
    +			map.setCenter(pos);
    +		}
    +	});
    +}
    +function createMarker(){
    +	//高德地图坐标为(116.3406445236,39.9630878208), 百度地图坐标为(116.347292,39.968716
    +	var marker=new plus.maps.Marker(new plus.maps.Point(116.347292,39.968716));
    +	marker.setIcon("/logo.png");
    +	marker.setLabel("HBuilder");
    +	var bubble = new plus.maps.Bubble("打造最好的HTML5移动开发工具");
    +	marker.setBubble(bubble);
    +	map.addOverlay(marker);
    +}
    +function createSubview(){
    +	// 创建加载内容窗口
    +	var topoffset='44px';
    +	if(plus.navigator.isImmersedStatusbar()){// 兼容immersed状态栏模式
    +		topoffset=(Math.round(plus.navigator.getStatusbarHeight())+44)+'px';
    +	}
    +	var wsub=plus.webview.create('maps_map_sub.html','sub',{top:topoffset,height:'60px',position:'absolute',scrollIndicator:'none',background:'transparent'});
    +	ws.append(wsub);
    +}
    +function resetMap(){
    +	//map.centerAndZoom(pcenter,12);
    +	map.reset();
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#map {
    +	width: 100%;
    +	position: fixed;
    +	top: 45px;
    +	bottom: 0px;
    +	line-height: 200px;
    +	text-align: center;
    +	background: #FFFFFF;
    +}
    +.ipos {
    +	background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAsCAYAAAAn4+taAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNC8wMS8xNExYUU4AAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAACTklEQVRoge2YO2gUURSGv7PjEkULO4UoFooIFgtzprAPWMiWKewSTadgYWEhBjHCloGUQtYHaGEjGAQtUmgnZO9YpsqC2NgYIwjRInMscoPrYkzhGTIs8zdnzoP578ewM/eumBmjoMZ+L8BLNUjVVINUTTVI1VSDVE0jA3KgjJuGEE6LyI2iKC6JyBkzWxORF8ADVV0rw1O891ohhCngPnDyL+1PZjabZdkTV1OcQUIIV4CHMf0JvAK+A0eANjAWe1dV9ZGbMY6/kTzPzwHzMV0VkZaqTgLTqjopIi1gNfbnQwhnvbzBEcTMbgFHgXURaRdFsRFCWAa+hhCWi6LYEJE2sB7nbnp5g+9b62KMIU3Tvoh0gQm2Fz0hIt00TftAADCztqO3K8h4jJsAZnZ+sDmQ/wAQkXEc5QnyJcZjACLybLApIk/j5YmheRd5gryLMev1elOqesfMrpvZczO7pqqzvV5vGmgNzbvIDUREXsbLRES6IYTbzWZzMcuyy0mSPA4h3BWRxR3PgXkff6/vSJ7nx83sPXBqoLwJFEACHByofxSRC2mafnYxx/GJxEW9GSofAg7zJwTAa08I8N80doG9HrHx++vvJlcQVV0xs6V/zZjZkqquePpCOdv4OWBrl96WiNwrwdMfJMuyHFjYpb2gqh+8PaG8g9Uc0B+q9WO9FJUCoqrfgBm2X73EOBPrpai0o66qvgU6Me3EvDSVctTdUZIknaIoxhqNRmfv6f+T+1F3vzQy/6LUIFVTDVI11SBVUw1SNdUgVdPIgPwCtt+2JPQRVicAAAAASUVORK5CYII=);
    +	background-size: 50px 44px;
    +}		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">应用内置地图</div>
    +			<div class="nvbt ipos" onclick="userLocation();"></div>
    +		</header>
    +		<div id="map">地图加载中...</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/maps_map_sub.html b/fangija-zsyf/plus/maps_map_sub.html
    new file mode 100644
    index 0000000..a374182
    --- /dev/null
    +++ b/fangija-zsyf/plus/maps_map_sub.html
    @@ -0,0 +1,24 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript">
    +function resetMap(){
    +	plus.webview.currentWebview().opener().evalJS('resetMap()');
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +html,body{
    +	overflow:hidden;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<div class="button" style="margin:.2em auto;width:50%" onclick="resetMap()">重 置</div>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/message.html b/fangija-zsyf/plus/message.html
    new file mode 100644
    index 0000000..ec8cf22
    --- /dev/null
    +++ b/fangija-zsyf/plus/message.html
    @@ -0,0 +1,91 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function addachmentMail(){
    +	outSet("发送带附件邮件:")
    +	var msg = plus.messaging.createMessage(plus.messaging.TYPE_EMAIL);
    +	msg.to = ['service@dcloud.io'];
    +	msg.body = 'This is an example mail';
    +	msg.addAttachment("_www/img/helloh5.jpg");
    +	plus.messaging.sendMessage( msg );
    +}
    +function htmlMail(){
    +	outSet("发送HTML邮件:");
    +	if ( plus.os.name == "iOS" ) {
    +		var msg = plus.messaging.createMessage(plus.messaging.TYPE_EMAIL);
    +		msg.to = ["service@dcloud.io"];
    +		msg.body = '<!DOCTYPE HTML><html><head><meta charset="utf-8"/></head><body><h1>Hello</h1>This is an HTML content mail.</body></html>';
    +		msg.bodyType = "html";
    +		plus.messaging.sendMessage( msg );
    +		outLine("支持");
    +	} else {
    +		outLine("此平台不支持发送HTML邮件功能!");
    +		plus.nativeUI.alert("此平台不支持发送HTML邮件功能!");
    +	}
    +}
    +function slientSMS(){
    +	outSet("后台发送短信:");
    +	if ( plus.os.name == "Android" ) {
    +		var bts=["发送到10086","发送到10010","发送到10000"];
    +		plus.nativeUI.prompt("短信内容",function(e){
    +			var to=null;
    +			switch(e.index){
    +				case 0:
    +				to=['10086'];
    +				break;
    +				case 1:
    +				to=['10086'];
    +				break;
    +				case 2:
    +				to=['10086'];
    +				break;
    +				default:
    +				return;
    +				break;
    +			}
    +			var msg = plus.messaging.createMessage(plus.messaging.TYPE_SMS);
    +			msg.to=to;
    +			msg.body=e.value;
    +			msg.silent=true;
    +			plus.messaging.sendMessage( msg );
    +			outLine( "\""+e.value+"\""+bts[e.index] );
    +		},"发送短信","CXYE",bts);
    +	} else {
    +		outLine("此平台不支持后台发送短信功能!");
    +		plus.nativeUI.alert("此平台不支持后台发送短信功能!");
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Messaging</div>
    +			<div class="nvbt idoc" onclick="openDoc('Messaging Document','/doc/messaging.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="addachmentMail()">发送附件邮件</div>
    +			<div class="button" onclick="htmlMail()">发送HTML邮件</div>
    +			<div class="button" onclick="slientSMS()">后台发送短信</div>
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem"><a style="text-decoration:none;color:#666;display:block" href="sms:10086">发送短信</a></li>
    +				<li class="ditem"><a style="text-decoration:none;color:#666;display:block" href="tel:10086">拨打电话</a></li>
    +				<li class="ditem"><a style="text-decoration:none;color:#666;display:block" href="mailto:service@dcloud.io">发送邮件</a></li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Messaging管理设备通讯功能,可用于发送短信、彩信、邮件等。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/nativeobj.html b/fangija-zsyf/plus/nativeobj.html
    new file mode 100644
    index 0000000..09fa485
    --- /dev/null
    +++ b/fangija-zsyf/plus/nativeobj.html
    @@ -0,0 +1,32 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">NativeObj</div>
    +			<div class="nvbt idoc" onclick="openDoc('Audio Document','/doc/nativeobj.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="clicked('nativeobj_animation.html',true)">原生View过渡动画示例</div>
    +			<br/>
    +		</div>
    +		<div id="output">
    +NativeObj用于管理系统原生对象,如原生View控件、图片对象等。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js"></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/nativeobj_animation.html b/fangija-zsyf/plus/nativeobj_animation.html
    new file mode 100644
    index 0000000..b9d6f71
    --- /dev/null
    +++ b/fangija-zsyf/plus/nativeobj_animation.html
    @@ -0,0 +1,148 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var nWaiting,nTitle; // 原生view的等待界面和title
    +var touchX; // nWaiting的点击坐标的x数值
    +var backPressed; //返回箭头是否处于按下状态
    +var contentWebview=null; //准备打开网址的webview
    +var bitmap=null; // 返回图标
    +var topoffset=0;
    +// H5 plus事件处理
    +function plusReady(){
    +	if(plus.navigator.isImmersedStatusbar()){// 兼容沉浸式状态栏模式
    +		topoffset=Math.round(plus.navigator.getStatusbarHeight());
    +	}
    +	var bdata = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKwwAACsMBNCkkqwAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xMi8xM5w+I3MAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAACcklEQVR4nO3a0XESURiG4TeO99iBWoGZ+RvADtKBpAPtwBLsANJBrEAs4MyYDmIHSQXkgk0mMLK7ILt8/+F778ici394OGfDsher1Qqn05tTD+A2M4hYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYb089wNCVUq6Ay+blfUQsTjhOZxc1P9tbSlkAX7b+/C0ifpxgnF5Ve2TtwAD4OvIoe1UlSAsGwPsRR9m76kA6MAD+jjTKQVUF0gMD4HaEUQ6umot6T4ybiJgNP83hVbFDasGACnZIT4yfEXE1wjj/Xeod0hPjDpgNPsyRSguyB8Y0Ih6Gn+g4pQSpFQMSgtSMAclAaseARCDngAFJQM4FAxKAnBMGiH8xLKVMgV89ln6MiPthpxkn6R0SEUvgusfSZSnlsnuZftI75LlSygyYdyx7ZH1s/Rl+ouFKAQIvx9ctMGlZlh4lDQhAcywtqRhF+hqyXfMmT1m/6buasL6mzMaY6dilAoENlLuWZRNgnhEl1ZH1ulLKO9bH16eOpdfqz2K9Lt0Oea75EjilfadAsp2SFgQ2UH53LJ2XUr4PPtARSntkbVfL7+rVgEBvlM/NHQDJUh9Z2zWf/puOZbPhJzm8qkDgBaXt/teHcSY5rOpAAJp/c/vclJSrShDYifKI+NPvVV3U/1VzU3LavFyo/25SPUi2qj2ysmYQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsQwilkHEMohYBhHLIGIZRCyDiGUQsZ4Ak9fPFwUy/HsAAAAASUVORK5CYII=';
    +	bitmap = new plus.nativeObj.Bitmap('back');
    +	bitmap.loadBase64Data(bdata, function(){
    +		bitmap.isLoadSuccess = true;
    +		nWaiting&&nWaiting.drawBitmap(bitmap,null,{top:topoffset+'px',left:'0px',width:'44px',height:'44px'},'backicon');
    +		console.log('Back bitmap load success');
    +	}, function(e){
    +		console.log('Back bitmap load failed: '+JSON.stringify(e));
    +	});
    +	
    +	//创建nWaiting
    +	creatWaiting();
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready',plusReady,false);
    +}
    +// 创建原生View控件
    +function creatWaiting(){
    +	console.log('creatWaiting: '+topoffset);
    +	//判断view是否已存在,避免重复创建,尤其调试刷新网页时很容易触发重复创建 
    +	nWaiting = plus.nativeObj.View.getViewById('nWaiting');
    +	if(nWaiting){
    +		return;
    +	}
    +	nWaiting = new plus.nativeObj.View('nWaiting',{top:'0px',left:'0px',height:'100%',width:'100%'});
    +	nWaiting.interceptTouchEvent(true);
    +	
    +	//初始化绘制nwaiting界面
    +	nWaiting.drawRect('#D74B28',{top:'0px',left:'0px',height:(topoffset+44)+'px',width:'100%'}) //绘制title背景色
    +	bitmap&&bitmap.isLoadSuccess&&nWaiting.drawBitmap(bitmap,null,{top:topoffset+'px',left:'0px',width:'44px',height:'44px'},'backicon');
    +	nWaiting.drawText( '标题', {top:topoffset+'px',left:'0px',width:'100%',height:'44px'}, {size:'17px',color:'#CCCCCC'});
    +	nWaiting.drawRect('#EEEEEE',{top:(topoffset+44)+'px',left:'0px',width:'100%'}) //绘制等待内容区背景色
    +	nWaiting.drawText( '加 载 中 ...', {top:(topoffset+44)+'px',left:'0px',width:'100%',height:'50%'}, {size:'12px',color:'rgb(100,100,100)'});
    +}
    +// 更新窗口导航栏 
    +function updateNavigationbar(){
    +	nTitle = contentWebview.getNavigationbar();
    +	nTitle.interceptTouchEvent(true);
    +	// 处理touchstart、touchmove、touchend事件,实现下效果 
    +//	nTitle.addEventListener('touchstart', function(e){
    +//		console.log('touchstart'+e.pageX);
    +//		touchX = e.pageX;
    +//		if(touchX>0 && touchX<44){
    +//			nTitle.drawRect('#e7e7e7', {top:topoffset+'px',left:'0px',width:'44px',height:'44px'}, 'backbg');
    +//			backPressed=true;
    +//		}
    +//	});
    +//	nTitle.addEventListener('touchmove', function(e){
    +//		console.log('touchmove'+e.pageX);
    +//		touchX = e.pageX;
    +//		if(touchX>44 && backPressed){
    +//			nTitle.drawRect('#f7f7f7', {top:topoffset+'px',left:'0px',width:'44px',height:'44px'}, 'backbg');
    +//			backPressed=false;
    +//		}
    +//	});
    +//	nTitle.addEventListener('touchend', function(e){
    +//		console.log('touchend'+e.pageX);
    +//		if(backPressed){
    +//			nTitle.drawRect('#f7f7f7', {top:topoffset+'px',left:'0px',width:'44px',height:'44px'}, 'backbg');
    +//			backPressed=false;
    +//		}
    +//	});
    +	// 处理点击事件
    +	nTitle.addEventListener('click', function(e){
    +		touchX = e.pageX;
    +		if(touchX>3 && touchX<44){
    +			back();
    +		}
    +	});
    +	//补充绘制nTitle界面
    +	nTitle.drawBitmap(bitmap, null, {top:'0px',left:'0px',width:'44px',height:'44px'}, 'backicon'); // 绘制返回箭头
    +}
    +// 使用原生View控件作为动画模板显示窗口 
    +function showWithWaiting(){
    +	var bShow=bUpdate=false;
    +	contentWebview = plus.webview.create('http://m.weibo.cn/u/3196963860', 'contendWebview', {navigationbar:{backgroundColor:'#D74B28',titletText:'标题',titleColor:'#CCCCCC'}});
    +	// 更新Webview的原生头内容
    +	updateNavigationbar();//setTimeout(updateNavigationbar, 100);
    +	contentWebview.addEventListener('close', function(){
    +		contentWebview=null;
    +	});
    +	contentWebview.addEventListener('titleUpdate', function(){
    +		bUpdate=true;
    +		bShow&&nWaiting.hide();
    +	}, false);
    +	contentWebview.addEventListener('loaded', function(){// 兼容titleUpdate事件不触发的情况
    +		bUpdate||(bUpdate=true,bShow&&nWaiting.hide());
    +	}, false);
    +	contentWebview.show('pop-in', null, function(){
    +		bShow=true;
    +		bUpdate&&nWaiting.hide();
    +	}, {capture:nWaiting});
    +}
    +// 重写返回处理
    +var _back=window.back;
    +function safeback(){
    +	contentWebview?contentWebview.close('pop-out'):(bitmap&&bitmap.clear(),nWaiting&&nWaiting.clear(),_back());
    +}
    +window.back=safeback;
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">原生View过渡动画示例</div>
    +			<div class="nvbt"></div>
    +		</header>
    +		<div id="content" class="content">
    +			<p class="des">
    +	使用nview来做转场动画,以及使用原生view做标题栏。
    +			</p>
    +			<div class="button" onclick="showWithWaiting()">演示</div>
    +			<p class="des" style="font-weight:bold;text-indent:0;">
    +	逻辑简述:
    +			</p>
    +			<p class="des">
    +	启动后先创建一个原生waiting界面,但不显示。
    +	点击show按钮后,原生waiting做动画进来,同时然后创建一个带原生View控件导航栏的contentWebview加载网络页面,等titleUpdate后显示contentWebview并关闭原生waiting界面。
    +			</p>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js"></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/nativeui.html b/fangija-zsyf/plus/nativeui.html
    new file mode 100644
    index 0000000..9ecd2a7
    --- /dev/null
    +++ b/fangija-zsyf/plus/nativeui.html
    @@ -0,0 +1,113 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function pickDate() {
    +	outSet( "打开系统日期选择框:");
    +	var dDate=new Date();
    +	dDate.setFullYear(2014,0,1);
    +	var minDate=new Date();
    +	minDate.setFullYear(2010,0,1);
    +	var maxDate=new Date();
    +	maxDate.setFullYear(2016,11,31);
    +	outLine( "[date] "+dDate );
    +	outLine( "[minDate] "+minDate );
    +	outLine( "[maxDate] "+maxDate );
    +	plus.nativeUI.pickDate( function(e) {
    +		var d=e.date;
    +		outLine( "选择的日期:"+d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() );
    +	},function(e){
    +		outSet( "未选择日期:"+e.message );
    +	},{title:"请选择日期",date:dDate,minDate:minDate,maxDate:maxDate});
    +}
    +function pickTime() {
    +	outSet( "打开系统时间选择框:");
    +	var dTime=new Date();
    +	dTime.setHours(6,0);
    +	outLine( "[time] "+dTime );
    +	plus.nativeUI.pickTime(function(e){
    +		var d=e.date;
    +		outLine( "选择的时间:"+d.getHours()+":"+d.getMinutes() );
    +	},function (e){
    +		outSet( "取消选择时间!" );
    +	},{title:"请选择时间",is24Hour:true,time:dTime});
    +}
    +function showAlert(){
    +	outSet( "弹出系统提示对话框:" );
    +	plus.nativeUI.alert("系统提示框内容\n第二行内容",function(e){
    +		var i=e.index;
    +		if(i<0){
    +			outLine( "按\"返回\"键关闭提示框!" );
    +		}else{
    +			outLine( "提示框已关闭!" );	
    +		}
    +	},"nativeUI","好");
    +}
    +function showConfirm(){
    +	outSet( "弹出系统确认对话框:" );
    +	var bts=["是","否","取消"];
    +	plus.nativeUI.confirm("系统确认对话框内容\n第二行内容",function(e){
    +		var i=e.index;
    +		outLine( "按\""+((i>=0)?bts[e.index]:"返回")+"\"关闭!" );
    +	},"nativeUI",bts);
    +}
    +function showPrompt(){
    +	outSet( "弹出系统输入对话框:" );
    +	var bts=["确认","取消"];
    +	plus.nativeUI.prompt("请输入内容",function(e){
    +		var i=e.index;
    +		outLine( "按\""+((i>=0)?bts[e.index]:"返回")+"\"关闭:"+e.value );
    +	},"nativeUI","内容",bts);
    +}
    +function showActionSheet(){
    +	outSet( "弹出系统选择按钮框:" );
    +	var bts=[{title:"警告",style:"destructive"},{title:"按钮1"},{title:"按钮2"},{title:"按钮3"}];
    +	plus.nativeUI.actionSheet({title:"ActionSheet标题",cancel:"取消",buttons:bts},
    +		function(e){
    +			outLine( "选择了\""+((e.index>0)?bts[e.index-1].title:"取消")+"\"");
    +		}
    +	);
    +}
    +function showToast(){
    +	plus.nativeUI.toast("您好!正在使用HBuilder开发应用!",{duration:"long"});
    +}
    +function showWaiting(){
    +	var nw = clicked('nativeui_waiting.html',false,false,{popGesture:'none'});
    +	nw.addEventListener("close",function(){
    +		plus.nativeUI.closeWaiting();
    +	},false);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">nativeUI</div>
    +			<div class="nvbt idoc" onclick="openDoc('NativeUI Document','/doc/nativeUI.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<ul class="dlist">
    +				<li class="ditem" onclick="pickDate()">系统日期选择框</li>
    +				<li class="ditem" onclick="pickTime()">系统时间选择框</li>
    +				<li class="ditem" onclick="showAlert()">提示框</li>
    +				<li class="ditem" onclick="showConfirm()">确认框</li>
    +				<li class="ditem" onclick="showPrompt()">输入框</li>
    +				<li class="ditem" onclick="showActionSheet()">弹出菜单ActionSheet</li>
    +				<li class="ditem" onclick="showToast()">自动消失提示框</li>
    +			</ul>
    +			<br/>
    +			<div class="button" onclick="showWaiting()">等待框</div>
    +		</div>
    +		<div id="output">
    +nativeUI管理系统原生界面,可用于弹出系统原生提示对话框窗口、时间日期选择对话框、等待对话框等。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/nativeui_waiting.html b/fangija-zsyf/plus/nativeui_waiting.html
    new file mode 100644
    index 0000000..8575433
    --- /dev/null
    +++ b/fangija-zsyf/plus/nativeui_waiting.html
    @@ -0,0 +1,195 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    +		<meta name="misapplication-tap-highlight" content="no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +// H5 plus事件处理
    +function plusReady(){
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +function defaultWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5");
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);
    +}
    +function nomodalWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5",{modal:false});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);
    +}
    +function padlockWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5", {padlock:true});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);
    +}
    +function customWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5", {loading:{icon:"/img/waiting.png"}});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);
    +}
    +function lineWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...5", {loading:{display:"inline"}});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待..."+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);	
    +}
    +function transWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...5", {style:"black",color:"#FF0000",background:"rgba(0,0,0,0)",loading:{display:"inline"}});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待..."+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);	
    +}
    +function noneWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...5", {color:"#FF0000",background:"rgba(0,0,0,0)",loading:{display:"none"}});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待..."+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);	
    +}
    +function fontWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5",{color:"#FF0000",size:"24px"});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);	
    +}
    +function blockBackWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5",{back:"none"});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);	
    +	
    +}
    +function transBackWaiting(){
    +	var w=plus.nativeUI.showWaiting("处理中,请等待...\n5",{back:"transmit"});
    +	w.onclose=function(){
    +		clearInterval(t);
    +	}
    +	var n=5;
    +	var t=setInterval(function(){
    +		n--;
    +		w.setTitle("处理中,请等待...\n"+n);
    +		if(n<=0){
    +			w.close();
    +			clearInterval(t);
    +		}
    +	},1000);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Waiting</div>
    +		</header>
    +		<div id="scontent" class="scontent">
    +			<ul class="dlist">
    +				<li class="ditem" onclick="defaultWaiting()">默认等待框</li>
    +				<li class="ditem" onclick="nomodalWaiting()">非模态等待框</li>
    +				<li class="ditem" onclick="padlockWaiting()">点击关闭等待框</li>
    +				<li class="ditem" onclick="customWaiting()">自定义图标等待框</li>
    +				<li class="ditem" onclick="lineWaiting()">图标与文字同行</li>
    +				<li class="ditem" onclick="transWaiting()">背景透明</li>
    +				<li class="ditem" onclick="noneWaiting()">无图标等待框</li>
    +				<li class="ditem" onclick="fontWaiting()">大字体等待框</li>
    +				<li class="ditem" onclick="blockBackWaiting()">不响应返回键等待框</li>
    +				<li class="ditem" onclick="transBackWaiting()">透传返回键等待框</li>
    +			</ul>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/navigator.html b/fangija-zsyf/plus/navigator.html
    new file mode 100644
    index 0000000..ce67539
    --- /dev/null
    +++ b/fangija-zsyf/plus/navigator.html
    @@ -0,0 +1,57 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function fullscreen(){
    +	outSet( "应用全屏显示!" );
    +	plus.navigator.setFullscreen(true);
    +}
    +function unfullscreen(){
    +	outSet( "应用非全屏显示!" );
    +	plus.navigator.setFullscreen(false);
    +}
    +function isfullscreen(){
    +	outSet( "是否全屏:"+(plus.navigator.isFullscreen()?"是":"否") );
    +}
    +
    +function customerNavigator(){
    +	var wn=clicked('navigator_status.html');
    +	var bcolor=plus.navigator.getStatusBarBackground();
    +	var bstyle=plus.navigator.getStatusBarStyle();
    +	wn.addEventListener('close',function(){
    +		//页面关闭后状态栏重置回以前的颜色
    +		plus.navigator.setStatusBarBackground(bcolor);
    +		//页面关闭后状态栏重置回以前的样式
    +		plus.navigator.setStatusBarStyle(bstyle);
    +	},false);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Navigator</div>
    +			<div class="nvbt idoc" onclick="openDoc('Navigator Document','/doc/navigator.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<ul class="dlist">
    +				<li class="ditem" onclick="fullscreen()">全屏显示</li>
    +				<li class="ditem" onclick="unfullscreen()">非全屏显示</li>
    +				<li class="ditem" onclick="isfullscreen()">是否全屏</li>
    +			</ul>
    +			<br/>
    +			<div class="button" onclick="customerNavigator()">状态栏样式</div>
    +		</div>
    +		<div id="output">
    +Navigator用于管理浏览器运行环境信息,可用于设置应用全屏显示等。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/navigator_status.html b/fangija-zsyf/plus/navigator_status.html
    new file mode 100644
    index 0000000..ad4b7fc
    --- /dev/null
    +++ b/fangija-zsyf/plus/navigator_status.html
    @@ -0,0 +1,52 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    +		<meta name="misapplication-tap-highlight" content="no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +// H5 plus事件处理
    +var ws=null;
    +function plusReady(){
    +	// 设置状态栏背景颜色
    +	ws=plus.webview.currentWebview();
    +	ws.addEventListener('show',function(){
    +		plus.navigator.setStatusBarBackground("#FF0000");
    +	},false);
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// 设置系统状态栏为深色前景色(黑色文字)
    +function darkStyle(){
    +	plus.navigator.setStatusBarStyle('dark');
    +}
    +// 设置系统状态栏为浅色前景色(白色文字)
    +function lightStyle(){
    +	plus.navigator.setStatusBarStyle('light');
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header" style="background:#FF0000">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Statusbar</div>
    +		</header>
    +		<div class="scontent">
    +			<br/>
    +			<p class="des">
    +				Android平台需要5.0及以上版本支持设置系统状态栏背景颜色。
    +			</p>
    +			<div class="button" onclick="darkStyle()">系统状态栏黑色样式</div>
    +			<div class="button" onclick="lightStyle()">系统状态栏白色样式</div>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    diff --git a/fangija-zsyf/plus/njs.html b/fangija-zsyf/plus/njs.html
    new file mode 100644
    index 0000000..6d21531
    --- /dev/null
    +++ b/fangija-zsyf/plus/njs.html
    @@ -0,0 +1,156 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +// 保存iOS平台导入的类对象
    +var UIAlertView=null;
    +// 保存Android导入对象和全局环境对象
    +var AlertDialog=null,mainActivity=null;
    +// H5 plus事件处理
    +function plusReady(){
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		// 程序全局环境对象
    +		mainActivity = plus.android.runtimeMainActivity();
    +		// 导入AlertDialog类
    +		AlertDialog = plus.android.importClass("android.app.AlertDialog");
    +		break;
    +		case "iOS":
    +		// 导入UIAlertView类
    +		UIAlertView = plus.ios.importClass("UIAlertView");
    +		break;
    +		default:
    +		break;
    +	}
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +
    +/**
    + * 在iOS平台通过NJS显示系统提示框
    + */
    +function njsAlertForiOS(){
    +/*
    + * Objective-C 代码
    + * 
    +  // 创建UIAlertView类的实例对象
    +  UIAlertView *view = [UIAlertView alloc];
    +  // 设置提示对话上的内容
    +  [view initWithTitle:@"自定义标题"       // 提示框标题
    +      message:@"使用NJS的原生弹出框,可自定义弹出框的标题、按钮"  // 提示框上显示的内容
    +      delegate:nil                // 点击提示框后的通知代理对象,nil类似js的null,意为不设置
    +      cancelButtonTitle:@"确定(或者其他字符)"     // 提示框上取消按钮的文字
    +      otherButtonTitles:nil];        // 提示框上其它按钮的文字,设置为nil表示不显示
    +  // 调用show方法显示提示对话框,在OC中使用[]语法调用对象的方法
    +  [view show];
    + */
    +
    +	// 创建UIAlertView类的实例对象
    +	var view = new UIAlertView();
    +	// 设置提示对话上的内容
    +	view.initWithTitlemessagedelegatecancelButtonTitleotherButtonTitles("自定义标题" // 提示框标题
    +		, "使用NJS的原生弹出框,可自定义弹出框的标题、按钮" // 提示框上显示的内容
    +		, null // 操作提示框后的通知代理对象,暂不设置
    +		, "确定(或者其他字符)" // 提示框上取消按钮的文字
    +		, null ); // 提示框上其它按钮的文字,设置为null表示不显示
    +	// 调用show方法显示提示对话框
    +	view.show();
    +}
    +
    +/**
    + * 在Android平台通过NJS显示系统提示框
    + */
    +function njsAlertForAndroid(){
    +/*
    + * Android平台 java代码
    + * 
    +	// 创建提示框构造对象,Builder是AlertDialog的内部类。参数this指代Android的主Activity对象,该对象启动应用时自动生成
    +	AlertDialog.Builder dlg = new AlertDialog.Builder(this);
    +	// 设置提示框标题
    +	dlg.setTitle("自定义标题");
    +	// 设置提示框内容
    +	dlg.setMessage("使用NJS的原生弹出框,可自定义弹出框的标题、按钮");
    +	// 设置提示框按钮
    +	dlg.setPositiveButton("确定(或者其他字符)", null);
    +	// 显示提示框
    +	dlg.show();
    + */
    +
    +	// 创建提示框构造对象,构造函数需要提供程序全局环境对象,通过plus.android.runtimeMainActivity()方法获取
    +	var dlg = new AlertDialog.Builder(mainActivity);
    +	// 设置提示框标题
    +	dlg.setTitle("自定义标题");
    +	// 设置提示框内容
    +	dlg.setMessage("使用NJS的原生弹出框,可自定义弹出框的标题、按钮");
    +	// 设置提示框按钮
    +	dlg.setPositiveButton("确定(或者其他字符)",null);
    +	// 显示提示框
    +	dlg.show();
    +}
    +function showNjsView(){
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		njsAlertForAndroid();
    +		break;
    +		case "iOS":
    +		njsAlertForiOS();
    +		break;
    +		default:
    +		alert( "此平台不支持!" );
    +		break;
    +	}
    +}
    +
    +function gamecenter(){
    +	if ( 'iOS' == plus.os.name ) {
    +		clicked('njs_ios_gamecenter.html',true);
    +	}else{
    +		plus.nativeUI.alert( "此平台不支持!" );
    +	}
    +}
    +
    +function shortcut(){
    +	if ( 'Android' == plus.os.name ) {
    +		clicked('njs_android_shortcut.html',true);
    +	}else{
    +		plus.nativeUI.alert( "此平台不支持!" );
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back(true)"></div>
    +			<div class="nvtt">Native.JS</div>
    +			<div class="nvbt idoc" onclick="openDoc('Native.JS Document','/doc/native.js.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<!--div class="button" onclick="gamecenter()">Game Center</div>
    +			<div class="button" onclick="shortcut()">Shortcut</div>
    +			<br/-->
    +			<ul class="dlist">
    +				<li class="ditem" onclick="showNjsView()">native.js调用系统提示框</li>
    +				<li class="ditem" onclick="clicked('njs_efficient.html')">native.js高级API</li>
    +			</ul>
    +			<br/>
    +			<div class="button button-waring" onclick="plus.runtime.openURL('http://ask.dcloud.net.cn/article/114')">更多示例...</div>
    +		</div>
    +		<div id="output">
    +Native.JS一种把操作系统的原生对象转义,映射为JS对象,在JS里编写原生代码的技术。可通过plus.android.*和plus.ios.*提供的API分别调用Android和iOS平台的Native API。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/njs_android_shortcut.html b/fangija-zsyf/plus/njs_android_shortcut.html
    new file mode 100644
    index 0000000..ee972f6
    --- /dev/null
    +++ b/fangija-zsyf/plus/njs_android_shortcut.html
    @@ -0,0 +1,146 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +/*
    + * 		首先是供参考对比的Android源代码,用Android的java代码创建手机桌面快捷方式
    + * 
    +	import android.content.Intent;
    +	import android.graphics.BitmapFactory;
    +	import android.graphics.Bitmap;
    +	import android.app.Activity;
    +
    +	// 获取主Activity
    +	Activity main = this;
    +	// 创建快捷方式意图
    +	Intent shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT");
    +	// 设置快捷方式的名称
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME, "HelloH5+");
    +	// 设置不可重复创建
    +	shortcut.putExtra("duplicate",false);
    +	// 设置快捷方式图标
    +	Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/icon.png");
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_ICON, bitmap);
    +	// 设置快捷方式启动执行动作
    +	Intent action = new Intent(Intent.ACTION_MAIN);
    +	action.setComponent( main.getComponentName() );
    +	shortcut.putExtra( Intent.EXTRA_SHORTCUT_INTENT, action );
    +	// 广播创建快捷方式
    +	context.sendBroadcast(shortcut);
    +*/
    +/*
    + * 如下开始是HTML5plus的js代码,演示如何通过js桥技术调用Android的原生api,从而完成手机桌面快捷方式创建。
    + */
    +var Intent=null,BitmapFactory=null;
    +var main=null;
    +// H5 plus事件处理
    +function plusReady(){
    +	if ( plus.os.name == "Android" ) {
    +		// 导入要用到的类对象
    +		Intent = plus.android.importClass("android.content.Intent");
    +		BitmapFactory = plus.android.importClass("android.graphics.BitmapFactory");
    +		// 获取主Activity
    +		main = plus.android.runtimeMainActivity();
    +	}
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOMContentLoaded事件处理
    +var _domReady=false;
    +document.addEventListener("DOMContentLoaded",function(){
    +	eStart = document.getElementById( "start" );
    +},false);
    +/**
    + * 创建桌面快捷方式
    + */
    +function createShortcut(){
    +	// 创建快捷方式意图
    +	var shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT");
    +	// 设置快捷方式的名称
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME, "HelloH5+");
    +	// 设置不可重复创建
    +	shortcut.putExtra("duplicate",false);
    +	// 设置快捷方式图标
    +	var iconPath = plus.io.convertLocalFileSystemURL("_www/icon.png"); // 将相对路径资源转换成系统绝对路径
    +	var bitmap = BitmapFactory.decodeFile(iconPath);
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_ICON,bitmap);
    +	// 设置快捷方式启动执行动作
    +	var action = new Intent(Intent.ACTION_MAIN);
    +	//action.setComponent(main.getComponentName());
    +	action.setClassName(main.getPackageName(), 'io.dcloud.PandoraEntry');
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_INTENT,action);
    +	// 广播创建快捷方式
    +	main.sendBroadcast(shortcut);
    +	outSet( "桌面快捷方式已创建完成!" );
    +}
    +
    +/*
    + * 		供参考对比的Android源代码,用Android的java代码删除手机桌面快捷方式
    + * 
    + * 		// 获取主Activity
    + * 		Activity main = this;
    + * 		// 创建快捷方式意图
    + * 		Intent shortcut = new Intent("com.android.launcher.action.UNINSTALL_SHORTCUT");
    + * 		// 设置快捷方式的名称
    + * 		shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME,"HelloH5+");
    + * 		// 设置快捷方式启动执行动作
    + * 		Intent action = new Intent(Intent.ACTION_MAIN);
    + * 		action.setComponent(main.getComponentName());
    + * 		shortcut.putExtra(Intent.EXTRA_SHORTCUT_INTENT,action);
    + * 		// 广播删除快捷方式
    + * 		main.sendBroadcast(shortcut);
    + */
    +/*
    + * 删除桌面快捷方式
    + */
    +function deleteShortcut(){
    +	// 创建快捷方式意图
    +	var shortcut = new Intent("com.android.launcher.action.UNINSTALL_SHORTCUT");
    +	// 设置快捷方式的名称
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME,"HelloH5+");
    +	// 设置快捷方式启动执行动作
    +	var action = new Intent(Intent.ACTION_MAIN);
    +	//action.setComponent(main.getComponentName());
    +	action.setClassName(main.getPackageName(), 'io.dcloud.PandoraEntry');
    +	shortcut.putExtra(Intent.EXTRA_SHORTCUT_INTENT,action);
    +	// 广播创建快捷方式
    +	main.sendBroadcast(shortcut);
    +	outSet( "桌面快捷方式已删除!" );
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +		
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">Shortcut</div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="createShortcut()">创建桌面快捷方式</div>
    +			<div class="button" onclick="deleteShortcut()">删除桌面快捷方式</div>
    +			<br/>
    +			<br/>
    +			<p class="des">
    +				快捷方式操作是通过向Android系统发送广播的方式来实现,可能在一些定制的ROM上没有实现此类广播的处理,导致无法创建桌面快捷方式。
    +			</p>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Native.JS for Android,可通过plus.android.*调用几乎所有的系统API。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/njs_efficient.html b/fangija-zsyf/plus/njs_efficient.html
    new file mode 100644
    index 0000000..763b2c5
    --- /dev/null
    +++ b/fangija-zsyf/plus/njs_efficient.html
    @@ -0,0 +1,120 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +// 保存Android全局环境对象
    +var mainActivity=null;
    +// H5+事件处理
    +document.addEventListener("plusready",function(){
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		// 程序全局环境对象
    +		mainActivity = plus.android.runtimeMainActivity();
    +		break;
    +		default:
    +		break;
    +	}
    +},false);
    +/**
    + * 在iOS平台通过NJS显示系统提示框
    + */
    +function njsAlertForiOS(){
    +/*
    + * Objective-C 代码
    + * 
    +  // 创建UIAlertView类的实例对象
    +  UIAlertView *view = [UIAlertView alloc];
    +  // 设置提示对话上的内容
    +  [view initWithTitle:@"自定义标题"       // 提示框标题
    +      message:@"使用NJS的原生弹出框,可自定义弹出框的标题、按钮"  // 提示框上显示的内容
    +      delegate:nil                // 点击提示框后的通知代理对象,nil类似js的null,意为不设置
    +      cancelButtonTitle:@"确定(或者其他字符)"     // 提示框上取消按钮的文字
    +      otherButtonTitles:nil];        // 提示框上其它按钮的文字,设置为nil表示不显示
    +  // 调用show方法显示提示对话框,在OC中使用[]语法调用对象的方法
    +  [view show];
    + */
    +
    +  	// 创建UIAlertView类的实例对象
    +  	var view = plus.ios.newObject("UIAlertView");
    +  	// 设置提示对话上的内容,这里的方法名称中必须包含':'字符
    +  	plus.ios.invoke(view,"initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:"
    +  	    , "自定义标题" // 提示框标题
    +  	    , "使用NJS的原生弹出框,可自定义弹出框的标题、按钮"  // 提示框上显示的内容
    +  	    , null // 操作提示框后的通知代理对象,暂不设置
    +  	    , "确定(或者其他字符)" // 提示框上取消按钮的文字
    +  	    , null ); // 提示框上其它按钮的文字,设置为null表示不显示
    +  	// 调用show方法显示提示对话框,在JS中使用()语法调用对象的方法
    +  	plus.ios.invoke(view,"show");
    +}
    +
    +/**
    + * 在Android平台通过NJS显示系统提示框
    + */
    +function njsAlertForAndroid(){
    +/*
    + * Android平台 java代码
    + * 
    +	// 创建提示框构造对象,Builder是AlertDialog的内部类。参数this指代Android的主Activity对象,该对象启动应用时自动生成
    +	AlertDialog.Builder dlg = new AlertDialog.Builder(this);
    +	// 设置提示框标题
    +	dlg.setTitle("自定义标题");
    +	// 设置提示框内容
    +	dlg.setMessage("使用NJS的原生弹出框,可自定义弹出框的标题、按钮");
    +	// 设置提示框按钮
    +	dlg.setPositiveButton("确定(或者其他字符)", null);
    +	// 显示提示框
    +	dlg.show();
    + */
    +
    +  	// 由于Builder类是android.app.AlertDialog类的内部类,这里需要使用$符号分割
    +  	var dlg = plus.android.newObject("android.app.AlertDialog$Builder",mainActivity);
    +  	// 设置提示框标题
    +  	plus.android.invoke(dlg,"setTitle","自定义标题");
    +  	// 设置提示框内容
    +  	plus.android.invoke(dlg,"setMessage","使用NJS的原生弹出框,可自定义弹出框的标题、按钮");
    +  	// 设置提示框按钮
    +  	plus.android.invoke(dlg,"setPositiveButton","确定(或者其他字符)",null);
    +  	// 显示提示框
    +  	plus.android.invoke(dlg,"show");
    +}
    +function showNjsView(){
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		njsAlertForAndroid();
    +		break;
    +		case "iOS":
    +		njsAlertForiOS();
    +		break;
    +		default:
    +		alert( "此平台不支持!" );
    +		break;
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">Native.JS-高级API</div>
    +		</header>
    +		<div id="content" class="content">
    +			<br/>
    +			<p class="des">虽然导入类对象(plus.android.importClass和plus.ios.importClass)后,可以方便的通过“.”操作符来访问对象的常量、调用对象的方法,但导入类对象也需要消耗较多的系统资源,所以在实际开发时应该尽可能的减少导入类对象,以提高程序效率。</p>
    +			<p class="des">NJS中“高级API”提供的方法可以在不导入类对象的情况下调用Native API:</p>
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="showNjsView();">NJS高级API调用系统提示框</li>
    +			</ul>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/njs_ios_gamecenter.html b/fangija-zsyf/plus/njs_ios_gamecenter.html
    new file mode 100644
    index 0000000..a83f300
    --- /dev/null
    +++ b/fangija-zsyf/plus/njs_ios_gamecenter.html
    @@ -0,0 +1,257 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +/*	
    +NSNotificationCenter *nc = nil;
    +
    +// 游戏玩家登录状态监听函数
    +- (void)authenticationChanged:(NSNotification*)notification
    +{
    +    // 获取游戏玩家共享实例对象
    +    GKLocalPlayer *player = notification.object;
    +    if ( player.isAuthenticated ) {
    +        // 玩家已登录认证,获取玩家信息
    +        [self playerInformation:player];
    +    } else {
    +        // 玩家未登录认证,提示用户登录
    +        NSLog(@"请登录!");
    +    }
    +    // 释放使用的对象
    +    [player release];
    +}
    +
    +// 获取游戏玩家状态信息
    +- (void)playerInformation:(GKPlayer *)player
    +{
    +    // 获取游戏玩家的名称
    +    NSLog(@"Name: %@",player.displayName);
    +}
    +
    +// 登录到游戏中心
    +- (void)loginGamecenter
    +{
    +    // 获取游戏玩家共享实例对象
    +    GKLocalPlayer *localplayer = [GKLocalPlayer localPlayer];
    +    // 判断游戏玩家是否已经登录认证
    +    if ( localplayer.isAuthenticated ) {
    +        // 玩家已登录认证,获取玩家信息
    +        [self playerInformation:localplayer];
    +    } else {
    +	    // 监听用户登录状态变更事件
    +	    if(!nc){
    +		    nc = [NSNotificationCenter defaultCenter];
    +		    [nc addObserver:self
    +		           selector:@selector(authenticationChanged)
    +		               name:@"GKPlayerAuthenticationDidChangeNotificationName"
    +		             object:nil];
    +		}
    +        // 玩家未登录认证,发起认证请求
    +        [localplayer authenticateWithCompletionHandler:nil];
    +        NSLog(@"登录中...");
    +    }
    +	// 释放使用的对象
    +    [localplayer release];
    +}
    +
    +// 停止监听登录游戏状态变化
    +- (void)logoutGamecenter
    +{
    +    // 取消监听用户登录状态变化
    +    if(nc){
    +	    [nc removeObserver:self
    +	                  name:@"GKPlayerAuthenticationDidChangeNotificationName"
    +	                object:nil];
    +	}
    +}
    +*/
    +
    +// H5 plus事件处理
    +var GKLocalPlayer=null,NSNotificationCenter=null;
    +var nc=null,delegate=null;
    +function plusReady(){
    +	plus.webview.currentWebview().setStyle({popGesture:"none"});
    +	if ( plus.os.name == "iOS" ) {
    +		GKLocalPlayer  = plus.ios.importClass("GKLocalPlayer");
    +		NSNotificationCenter = plus.ios.importClass("NSNotificationCenter");
    +		longinGamecenter();
    +	} else {
    +		eStart.innerText = "欢迎您";
    +		bLogin = true;
    +		setTimeout( function(){
    +			plus.nativeUI.toast( "此平台不支持Game Center功能!" );
    +		}, 500 );
    +	}
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOMContentLoaded事件处理
    +var eStart=null,bLogin=false;
    +document.addEventListener("DOMContentLoaded",function(){
    +	eStart = document.getElementById( "start" );
    +},false);
    +
    +// 游戏玩家登录状态监听函数
    +function authenticationChanged( notification ){
    +	// 获取游戏玩家共享实例对象
    +	var player = notification.plusGetAttribute("object");
    +	if ( player.plusGetAttribute("isAuthenticated") ) {
    +		// 玩家已登录认证,获取玩家信息
    +		playerInformation(player);
    +		bLogin = true;
    +	} else {
    +		// 玩家未登录认证,提示用户登录
    +		setTimeout(function(){
    +			eStart.innerText = "请登录";
    +	        bLogin = false;
    +		},500);
    +	}
    +	// 释放使用的对象
    +//	plus.ios.deleteObject(player);
    +}
    +
    +// 获取游戏玩家状态信息
    +function playerInformation( player ){
    +	var name = player.plusGetAttribute("displayName");
    +	eStart.innerText = name+" 已登录!";
    +}
    +
    +// 登录到游戏中心
    +function longinGamecenter(){
    +	if ( bLogin ){
    +		return;
    +	}
    +    // 获取游戏玩家共享实例对象
    +    var localplayer = GKLocalPlayer.localPlayer();
    +    // 判断游戏玩家是否已经登录认证
    +    if ( localplayer.plusGetAttribute("isAuthenticated") ) {
    +        // 玩家已登录认证,获取玩家信息
    +        playerInformation( localplayer );
    +        bLogin = true;
    +    } else {
    +        eStart.innerText = "登录中...";
    +		// 监听用户登录状态变更事件
    +	    if(!nc){
    +	    	nc = NSNotificationCenter.defaultCenter();
    +	    	delegate||(delegate=plus.ios.implements("NSObject",{"authenticationChanged:":authenticationChanged}));
    +	    	nc.addObserverselectornameobject(delegate,
    +		    	plus.ios.newObject("@selector","authenticationChanged:"),
    +		    	"GKPlayerAuthenticationDidChangeNotificationName",
    +		    	null);
    +	    }
    +        // 玩家未登录认证,发起认证请求
    +        localplayer.authenticateWithCompletionHandler(null);
    +    }
    +    // 释放使用的对象
    +	plus.ios.deleteObject(localplayer);
    +}
    +
    +// 停止监听登录游戏状态变化
    +function stopGamecenterObserver()
    +{
    +    // 取消监听用户登录状态变化
    +    nc&&nc.removeObservernameobject(delegate,"GKPlayerAuthenticationDidChangeNotificationName",null);
    +    plus.ios.deleteObject(nc);nc = null;
    +    plus.ios.deleteObject(delegate);delegate = null;
    +}
    +		</script>
    +		<style type="text/css">
    +* {
    +	-webkit-user-select: none;
    +	-ms-touch-select: none;
    +}
    +html {
    +	width: 100%;
    +	height: 100%;
    +}
    +body {
    +	margin: 0;
    +	padding: 0;
    +	width: 100%;
    +	height: 100%;
    +	text-align: center;
    +	-webkit-touch-callout:none;
    +	-webkit-tap-highlight-color:rgba(0,0,0,0);
    +}
    +header {
    +	height: 44px;
    +	font-size: 22px;
    +	line-height: 44px;
    +	font-weight: bold;
    +	color: #000000;
    +}
    +.game {
    +	position:fixed;
    +	top:44px;
    +	width:100%;
    +	bottom: 60px;
    +	background: no-repeat center center url(../img/5.jpg);
    +}
    +.button {
    +	font-size: 18px;
    +	font-weight: normal;
    +	text-decoration: none;
    +	display: block;
    +	text-align: center;
    +	color: #fff;
    +	background-color: #FFCC33;
    +	border: 1px solid #ECB100;
    +	padding: .5em 0em;
    +	margin: .5em .7em;
    +	-webkit-border-radius: 5px;
    +	border-radius: 5px;
    +}
    +.button:active {
    +	outline: 0;
    +	-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    +	box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    +}
    +.start {
    +	width: 50%;
    +	font-size: 18px;
    +	font-weight: normal;
    +	text-decoration: none;
    +	display: block;
    +	text-align: center;
    +	color: #666;
    +	background-color: #EBEBEB;
    +	border: 1px solid #E0E0E0;
    +	padding: .5em 0em;
    +	margin: .5em auto;
    +	-webkit-border-radius: 5px;
    +	border-radius: 5px;
    +}
    +		</style>
    +		<style type="text/css" media="screen and (min-aspect-ratio: 1/1)">
    +.autobg {
    +	background-size: auto 100%;
    +}
    +		</style>
    +		<style type="text/css" media="screen and (max-aspect-ratio: 1/1)">
    +.autobg {
    +	background-size: 100% auto;
    +}
    +		</style>
    +	</head>
    +	<body style="background:#CCCCCC;">
    +		<header id=header>五子棋</header>
    +		<div class="game autobg">
    +		</div>
    +		<div style="position:fixed;bottom:0;width:100%;height:60px;text-align:center;">
    +			<div class="button" onclick="try{stopGamecenterObserver();}catch(e){}back();">退出</div>
    +		</div>
    +		<div style="position:fixed;top:30%;width:100%;text-align:center;">
    +			<div id="start" class="start" onclick="longinGamecenter();">登录中...</div>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/oauth.html b/fangija-zsyf/plus/oauth.html
    new file mode 100644
    index 0000000..47f5fa4
    --- /dev/null
    +++ b/fangija-zsyf/plus/oauth.html
    @@ -0,0 +1,131 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<!--<meta name="MobileOptimized" content="320"/>-->
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var auths={};
    +function plusReady(){
    +	// 获取登录认证通道
    +	plus.oauth.getServices(function(services){
    +		var content=document.getElementById('dcontent');
    +		var info=document.getElementById("info");
    +		var txt="登录认证通道信息:";
    +		for(var i in services){
    +			var service=services[i];
    +			console.log(service.id+": "+service.authResult+", "+service.userInfo);
    +			auths[service.id]=service;
    +			txt += "id:"+service.id+", ";
    +			txt += "description:"+service.description+", ";
    +			var de=document.createElement('div');
    +			de.setAttribute('class','button');
    +			de.setAttribute('onclick','login(this.id)');
    +			de.id=service.id;
    +			de.innerText=service.description+"登录";
    +			oauth.appendChild(de);
    +		}
    +		info.innerText=txt;
    +	},function(e){
    +		outLine("获取登录认证失败:"+e.message);
    +	});
    +}
    +document.addEventListener('plusready',plusReady,false);
    +// 登录认证
    +function login(id){
    +	outSet("----- 登录认证 -----");
    +	var auth=auths[id];
    +	if(auth){
    +		var w=null;
    +		if(plus.os.name=="Android"){
    +			w=plus.nativeUI.showWaiting();
    +		}
    +		document.addEventListener("pause",function(){
    +			setTimeout(function(){
    +				w&&w.close();w=null;
    +			},2000);
    +		}, false );
    +		auth.login(function(){
    +			w&&w.close();w=null;
    +			outLine("登录认证成功:");
    +			outLine(JSON.stringify(auth.authResult));
    +			userinfo(auth);
    +		},function(e){
    +			w&&w.close();w=null;
    +			outLine("登录认证失败:");
    +			outLine("["+e.code+"]:"+e.message);
    +			plus.nativeUI.alert("详情错误信息请参考授权登录(OAuth)规范文档:http://www.html5plus.org/#specification#/specification/OAuth.html",null,"登录失败["+e.code+"]:"+e.message);
    +		});
    +	}else{
    +		outLine("无效的登录认证通道!");
    +		plus.nativeUI.alert("无效的登录认证通道!",null,"登录");
    +	}
    +}
    +// 获取用户信息
    +function userinfo(a){
    +	outLine("----- 获取用户信息 -----");
    +	a.getUserInfo(function(){
    +		outLine("获取用户信息成功:");
    +		outLine(JSON.stringify(a.userInfo));
    +		var nickname=a.userInfo.nickname||a.userInfo.name||a.userInfo.miliaoNick;
    +		plus.nativeUI.alert("欢迎“"+nickname+"”登录!");
    +	},function(e){
    +		outLine("获取用户信息失败:");
    +		outLine("["+e.code+"]:"+e.message);
    +		plus.nativeUI.alert("获取用户信息失败!",null,"登录");
    +	});
    +}
    +// 注销登录
    +function logoutAll(){
    +	outSet("----- 注销登录认证 -----");
    +	for(var i in auths){
    +		logout(auths[i]);
    +	}
    +}
    +function logout(auth){
    +	auth.logout(function(){
    +		outLine("注销\""+auth.description+"\"成功");
    +	},function(e){
    +		outLine("注销\""+auth.description+"\"失败:"+e.message);
    +	});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#total{
    +	-webkit-user-select:text;
    +	text-align:right;
    +	padding:0 1em;
    +	border: 0px;
    +	border-bottom:1px solid #ECB100;
    +	border-radius: 0;
    +	font-size:16px;
    +	width:30%;
    +	outline:none;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">OAuth</div>
    +			<div class="nvbt idoc" onclick="openDoc('OAuth Document','/doc/oauth.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p id="info" style="padding: 0 1em;text-align:left;">登录认证通道信息:</p>
    +			<div style="padding: 0.5em 1em;"><hr color="#EEE"/></div>
    +			<br/>
    +			<div id="oauth"></div>
    +			<br/>
    +			<div class="button button-waring" onclick="logoutAll()">注销登录</div>
    +		</div>
    +		<div id="output">
    +OAuth模块管理客户端的用户授权登录验证功能,允许应用访问第三方平台的资源。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/orientation.html b/fangija-zsyf/plus/orientation.html
    new file mode 100644
    index 0000000..b881b8f
    --- /dev/null
    +++ b/fangija-zsyf/plus/orientation.html
    @@ -0,0 +1,70 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function getOrient() {
    +	outSet( "获取设备当前方向信息" );
    +	plus.orientation.getCurrentOrientation( function ( o ) {
    +		outLine( "alpha:" + o.alpha + "\nbeta:" + o.beta + "\ngamma:" + o.gamma );
    +	}, function ( e ) {
    +		outLine( "获取失败:" + e.message );
    +	} );
    +}
    +var id = null;
    +function watchOrient() {
    +	if ( id ) {
    +		return;
    +	}
    +	outSet( "监听设备方向变化信息" );
    +	id = plus.orientation.watchOrientation( function ( o ) {
    +		outSet( "监听设备方向变化信息\n" + "alpha:" + o.alpha + "\nbeta:" + o.beta + "\ngamma:" + o.gamma );
    +	}, function ( e ) {
    +		plus.orientation.clearWatch( id );
    +		id = null;
    +		outLine( "监听失败:" + e.message );
    +	} );
    +}
    +function watchStop() {
    +	if ( id ) {
    +		outSet( "停止监听设备方向变化信息" );
    +		plus.orientation.clearWatch( id );
    +		id = null;
    +	} else {
    +		outSet( "没有监听设备方向变化" );
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Orientation</div>
    +			<div class="nvbt idoc" onclick="openDoc('Orientation Document','/doc/orientation.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<div class="button" onclick="clicked('orientation_level.html',true)">
    +				水平仪
    +			</div>
    +			<div class="button" onclick="clicked('orientation_compass.html',true)">
    +				指南针
    +			</div>
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="getOrient()">获取设备的方向信息</li>
    +				<li class="ditem" onclick="watchOrient()">监听设备的方向变化</li>
    +				<li class="ditem" onclick="watchStop()">停止监听</li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Orientation可获取设备的方向信息,包括alpha(以垂直地心轴旋转的角度)、beta(以水平轴旋转的角度)、gamma(以垂直水平轴旋转的角度)三个方向信息。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/orientation_compass.html b/fangija-zsyf/plus/orientation_compass.html
    new file mode 100644
    index 0000000..6cbdcbd
    --- /dev/null
    +++ b/fangija-zsyf/plus/orientation_compass.html
    @@ -0,0 +1,186 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" >
    +// H5 plus事件处理
    +function plusReady(){
    +	// 锁定只能竖屏显示
    +	plus.screen.lockOrientation( "portrait-primary" );
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// 解锁并关闭
    +var _back=window.back;
    +function unlockback(){
    +	plus.screen.unlockOrientation();
    +	_back();
    +}
    +window.back=unlockback;
    +
    +var t, x;
    +var ld;
    +var tran="0.1s", empty="0s";
    +var bani=false, bsp=true;
    +function update(d) {
    +	var c = ld - d;
    +	var ac = Math.abs(c);
    +	if (ac <= 1) {
    +		return;
    +	} else if (ac > 180) {
    +		if ( bani ) {
    +			t.style.webkitTransitionDuration = empty;
    +		}
    +		ld = (c > 0) ? ld - 360 : ld + 360;
    +		t.style.webkitTransform = "rotate(" + (bsp?(-ld):(ld)) + "deg)";
    +		setTimeout(adjust, 1);
    +	} else {
    +		t.style.webkitTransform = "rotate(" + (bsp?(-d):(d)) + "deg)";
    +	}
    +	ld = d;
    +	var r = Math.round(d);
    +	var txt = "";
    +	if (r >= 338 || r < 23) {
    +		txt = "北";
    +	} else if (r < 68) {
    +		txt = "东北";
    +	} else if (r < 113) {
    +		txt = "东";
    +	} else if (r < 158) {
    +		txt = "东南";
    +	} else if (r < 203) {
    +		txt = "南";
    +	} else if (r < 248) {
    +		txt = "西南";
    +	} else if (r < 293) {
    +		txt = "西";
    +	} else {
    +		txt = "西北";
    +	}
    +	x.innerHTML = txt + r + "°";
    +}
    +function adjust() {
    +	if ( bani ) {
    +		t.style.webkitTransitionDuration = tran;
    +	}
    +	t.style.webkitTransform = "rotate(" + (bsp?(-ld):(ld)) + "deg)";
    +}
    +function gohome() {
    +	plus.webview.currentWebview().close();
    +}
    +document.addEventListener("plusready", function() {
    +	t = document.getElementById("compass");
    +	x = document.getElementById("inf");
    +
    +	if ( plus.os.name == "iOS" ) {
    +		t.style.webkitTransition = "all 0.1s linear";
    +		bani = true;
    +		if ( plus.device.model.indexOf("iPhone") < 0 ) {
    +			bsp = false;
    +			document.getElementById("tip").innerText = "此设备方向数据不准确";
    +		}
    +	}
    +	plus.orientation.watchOrientation(function(r) {
    +		update(bsp?r.trueHeading:r.alpha);//update(r.alpha);
    +	}, function(e) {
    +		// error
    +	}, {
    +		frequency : 100
    +	});
    +}, false);
    +// Adjective select.
    +document.onselectstart = function() {
    +	return false;
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#front {
    +	width: 100%;
    +	height: 40px;
    +	text-align: center;
    +	margin-top: 30px;
    +}
    +#container {
    +	width: 80%;
    +	position: relative;
    +	margin: auto;
    +	margin-top: 10px;
    +	text-align: center;
    +	line-height: 100%;
    +	overflow: hidden;
    +}
    +#bg {
    +	width: 100%;
    +	position: absolute;
    +	left: 0px;
    +	top: 0px;
    +	z-index: -1;
    +}
    +#compass {
    +	width: 100%;
    +	vertical-align: middle;
    +    /*
    +	-webkit-transition: all 0.1s linear;
    +	-moz-transform: rotate(45deg);
    +	-webkit-transform: rotate(45deg);
    +	-o-transform: rotate(45deg);
    +	-ms-transform: rotate(45deg);
    +	transform: rotate(45deg);
    +	*/
    +
    +}
    +#inf {
    +	width: 100%;
    +	height: 40px;
    +	line-height: 40px;
    +	font-size: 32px;
    +	font-weight: bold;
    +	text-align: center;
    +}
    +a.bh {
    +	width: 100%;
    +	height: 40px;
    +	position: fixed;
    +	bottom: 0px;
    +	background: rgb(128,128,128);
    +	text-align: center;
    +	line-height: 32px;
    +}
    +a.bh:active {
    +	background: rgb(64,64,64);
    +}
    +#hi {
    +	width: 32px;
    +	height: 32px;
    +	vertical-align: middle;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header" style="position:static">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">指南针</div>
    +		</header>
    +		<div id="front">
    +			<img style="height:100%;" src="../img/orientationa.png"/>
    +		</div>
    +		<div id="inf">
    +			北0°
    +		</div>
    +		<div id="container">
    +			<img id="bg" src="../img/orientationbg.png"/>
    +			<img id="compass" src="../img/orientationc.png"/>
    +		</div>
    +		<div id="tip" style="width:100%;position:absolute;bottom:0;text-align:center;color:red"></div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/orientation_level.html b/fangija-zsyf/plus/orientation_level.html
    new file mode 100644
    index 0000000..acfebaf
    --- /dev/null
    +++ b/fangija-zsyf/plus/orientation_level.html
    @@ -0,0 +1,166 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" >
    +// H5 plus事件处理
    +function plusReady(){
    +	// 锁定只能竖屏显示
    +	plus.screen.lockOrientation( "portrait-primary" );
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// 解锁并关闭
    +var _back=window.back;
    +function unlockback(){
    +	plus.screen.unlockOrientation();
    +	_back();
    +}
    +window.back=unlockback;
    +
    +var t, xh, xv;
    +var R = 100;
    +function update(h, v) {
    +	var ch = 0, cv = 0;
    +	if (h > 90) {
    +		h = 180 - h;
    +	} else if (h < -90) {
    +		h = -180 - h;
    +	}
    +	if (v > 90) {
    +		v = 180 - v;
    +	} else if (v < -90) {
    +		v = -180 - v;
    +	}
    +	var r = Math.max(Math.abs(h), Math.abs(v)) / 90;
    +	var range = Math.round(R * r);
    +	if (h == 0) {
    +		cv = range * v / 90;
    +	} else if (v == 0) {
    +		ch = range * h / 90;
    +	} else {
    +		var a = Math.atan2(v, h);
    +		ch = range * Math.cos(a);
    +		cv = range * Math.sin(a);
    +	}
    +	ch = Math.round(ch);
    +	cv = Math.round(cv);
    +
    +	t.style.webkitTransform = "translate(" + ch + "px," + cv + "px)";
    +
    +	h = h.toFixed(1);
    +	v = v.toFixed(1);
    +	xh.innerHTML = "" + (-h);
    +	xv.innerHTML = "" + (-v);
    +}
    +document.addEventListener("plusready", function() {
    +	t = document.getElementById("bubble");
    +	R = Math.floor(t.offsetWidth * 130 / 320);
    +	xh = document.getElementById("h");
    +	xv = document.getElementById("v");
    +
    +	plus.orientation.watchOrientation(function(r) {
    +		update(-r.gamma, -r.beta);
    +	}, function(e) {
    +		// error
    +	}, {
    +		frequency : 100
    +	});
    +}, false);
    +// Adjective select.
    +document.onselectstart = function() {
    +	return false;
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#front {
    +	width: 60%;
    +	height: 80px;
    +	margin: auto;
    +	margin-top: 20px;
    +	text-align: center;
    +}
    +.inf {
    +	width: 50%;
    +	height: 50%;
    +	line-height: 40px;
    +	font-size: 28px;
    +	text-align: center;
    +	text-align: center;
    +	vertical-align: middle;
    +	float: left;
    +}
    +#container {
    +	width: 80%;
    +	position: relative;
    +	margin: auto;
    +	text-align: center;
    +	line-height: 100%;
    +	overflow: hidden;
    +}
    +.bg {
    +	width: 100%;
    +	position: absolute;
    +	left: 0px;
    +	top: 0px;
    +	z-index: -1;
    +}
    +#bubble {
    +	width: 100%;
    +	vertical-align: middle;
    +	-webkit-transition: all 0.1s linear;
    +}
    +a.bh {
    +	width: 100%;
    +	height: 10%;
    +	position: fixed;
    +	bottom: 0px;
    +	background: rgb(128,128,128);
    +	text-align: center;
    +	vertical-align: middle;
    +}
    +a.bh:active {
    +	background: rgb(64,64,64);
    +}
    +#hi {
    +	height: 80%;
    +	margin: auto;
    +	margin-top: 5px;
    +	vertical-align: middle;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header" style="position:static">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">水平仪</div>
    +		</header>
    +		<div id="front">
    +			<div class="inf" style="font-weight:bold;">
    +				横向
    +			</div>
    +			<div class="inf" style="font-weight:bold;">
    +				纵向
    +			</div>
    +			<div id="h" class="inf">
    +				0
    +			</div>
    +			<span id="v" class="inf">0</span>
    +		</div>
    +		<div id="container">
    +			<img class="bg" src="../img/orientationbg.png"/>
    +			<img class="bg" src="../img/orientationl.png"/>
    +			<img id="bubble" src="../img/orientationb.png"/>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/payment.html b/fangija-zsyf/plus/payment.html
    new file mode 100644
    index 0000000..55c52cd
    --- /dev/null
    +++ b/fangija-zsyf/plus/payment.html
    @@ -0,0 +1,162 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<!--<meta name="MobileOptimized" content="320"/>-->
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var pays={};
    +function plusReady(){
    +	// 获取支付通道
    +	plus.payment.getChannels(function(channels){
    +		var content=document.getElementById('dcontent');
    +		var info=document.getElementById('info');
    +		var txt='支付通道信息:';
    +		for(var i in channels){
    +			var channel=channels[i];
    +			if(channel.id=='qhpay'||channel.id=='qihoo'){	// 过滤掉不支持的支付通道:暂不支持360相关支付
    +				continue;
    +			}
    +			pays[channel.id]=channel;
    +			txt += 'id:'+channel.id+', ';
    +			txt += 'description:'+channel.description+', ';
    +			txt += 'serviceReady:'+channel.serviceReady+'; ';
    +			var de=document.createElement('div');
    +			de.setAttribute('class', 'button');
    +			de.setAttribute('onclick', 'pay(this.id)');
    +			de.id=channel.id;
    +			de.innerText=channel.description+'支付';
    +			content.appendChild(de);
    +			checkServices(channel);
    +		}
    +		info.innerText=txt;
    +	},function(e){
    +		outLine('获取支付通道失败:'+e.message);
    +	});
    +}
    +document.addEventListener('plusready', plusReady, false);
    +// 检测是否安装支付服务
    +function checkServices(pc){
    +	if(!pc.serviceReady){
    +		var txt=null;
    +		switch(pc.id){
    +			case 'alipay':
    +			txt='检测到系统未安装“支付宝快捷支付服务”,无法完成支付操作,是否立即安装?';
    +			break;
    +			default:
    +			txt='系统未安装“'+pc.description+'”服务,无法完成支付,是否立即安装?';
    +			break;
    +		}
    +		plus.nativeUI.confirm(txt, function(e){
    +			if(e.index==0){
    +				pc.installService();
    +			}
    +		}, pc.description);
    +	}
    +}
    +
    +var w=null;
    +var PAYSERVER='http://demo.dcloud.net.cn/payment/?payid=';
    +// 支付
    +function pay(id){
    +	if(w){return;}//检查是否请求订单中
    +	if(id==='appleiap'){
    +		outSet('应用内支付');
    +		clicked('payment_iap.html');
    +		return;
    +	}
    +	outSet('----- 请求支付 -----');
    +	var url=PAYSERVER;
    +	if(id=='alipay'||id=='wxpay'){
    +		url+=id;
    +	}else{
    +		plus.nativeUI.alert('当前环境不支持此支付通道!', null, '捐赠');
    +		return;
    +	}
    +	var appid=plus.runtime.appid;
    +	if(navigator.userAgent.indexOf('StreamApp')>=0){
    +		appid='Stream';
    +	}
    +	url+='&appid='+appid+'&total=';
    +	
    +	w=plus.nativeUI.showWaiting();
    +	// 请求支付订单
    +	var amount = document.getElementById('total').value;
    +	var xhr=new XMLHttpRequest();
    +	xhr.onreadystatechange=function(){
    +		switch(xhr.readyState){
    +			case 4:
    +			w.close();w=null;
    +			if(xhr.status==200){
    +				outLine('----- 请求订单成功 -----');
    +				outLine(xhr.responseText);
    +				var order=xhr.responseText;
    +				plus.payment.request(pays[id],order,function(result){
    +					outLine('----- 支付成功 -----');
    +					outLine(JSON.stringify(result));
    +					plus.nativeUI.alert('支付成功:感谢你的支持,我们会继续努力完善产品。',function(){
    +						back();
    +					},'捐赠');
    +				},function(e){
    +					outLine('----- 支付失败 -----');
    +					outLine('['+e.code+']:'+e.message);
    +					plus.nativeUI.alert('更多错误信息请参考支付(Payment)规范文档:http://www.html5plus.org/#specification#/specification/Payment.html', null, '支付失败:'+e.code);
    +				});
    +			}else{
    +				outLine('----- 请求订单失败 -----');
    +				outLine( xhr.status );
    +				plus.nativeUI.alert('获取订单信息失败!', null, '捐赠');
    +			}
    +			break;
    +			default:
    +			break;
    +		}
    +	}
    +	xhr.open('GET',url+amount);
    +	outLine('请求支付订单:'+url+amount);
    +	xhr.send();
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#total{
    +	-webkit-user-select:text;
    +	text-align:right;
    +	padding:0 1em;
    +	border: 0px;
    +	border-bottom:1px solid #ECB100;
    +	border-radius: 0;
    +	font-size:16px;
    +	width:30%;
    +	outline:none;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Payment</div>
    +			<div class="nvbt idoc" onclick="openDoc('Payment Document','/doc/payment.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p id="info" style="padding: 0 1em;text-align:left;">支付通道信息:
    +			</p>
    +			<div style="padding: 0.5em 1em;"><hr color="#EEE"/></div>
    +			<p style="padding: 0 1em;text-align:left;">为DCloud提供的免费软件进行赞助吧。</p>
    +			<br/>
    +			<div style="padding: 0 1em;text-align:left">
    +				捐赠金额:<input id="total" type="number" value="1"/> 元
    +			</div>
    +			<br/>
    +			<!--<div class="button" onclick="clicked('payment_iap.html')">Apple IAP</div>-->
    +		</div>
    +		<div id="output">
    +Payment模块管理支付功能,可通过js调用第三方支付服务。通过plus.payment可获取支付管理对象。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/payment_iap.html b/fangija-zsyf/plus/payment_iap.html
    new file mode 100644
    index 0000000..e6fd4d1
    --- /dev/null
    +++ b/fangija-zsyf/plus/payment_iap.html
    @@ -0,0 +1,100 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>In-App Purchase</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var iap=null;
    +var ids=['donation','donation6'];//应用内购项目
    +function plusReady(){
    +	// 获取支付通道
    +	plus.payment.getChannels(function(channels){
    +		for(var i in channels){
    +			var channel=channels[i];
    +			if(channel.id==='appleiap'){
    +				iap=channel;
    +			}
    +		}
    +		requestOrder();
    +	},function(e){
    +		console.log("获取支付通道失败:"+e.message);
    +	});
    +}
    +document.addEventListener('plusready',plusReady,false);
    +// 获取订单
    +function requestOrder(){
    +	plus.nativeUI.showWaiting('检测支付环境...');
    +	iap.requestOrder(ids,function(e){
    +		plus.nativeUI.closeWaiting();
    +		console.log('requestOrder success: '+JSON.stringify(e));
    +	},function(e){
    +		console.log('requestOrder failed: '+JSON.stringify(e));
    +		plus.nativeUI.closeWaiting();
    +		plus.nativeUI.confirm("错误信息:"+JSON.stringify(e),function(e){
    +			if(e.index==0){
    +				requestOrder();
    +			}else{
    +				back();
    +			}
    +		},'重新请求支付',['确定','取消']);
    +	});
    +}
    +// 支付
    +function pay(id){
    +	plus.nativeUI.showWaiting('',{style:"black",background:"rgba(0,0,0,0)"});
    +	plus.payment.request(iap, {productid:id}, function(result){
    +		plus.nativeUI.closeWaiting();
    +		alert('成功:'+JSON.stringify(result));
    +		plus.nativeUI.alert("支付成功:感谢你的支持,我们会继续努力完善产品。",function(){
    +			back();
    +		},"捐赠");
    +	},function(e){
    +		plus.nativeUI.closeWaiting();
    +		plus.nativeUI.alert("错误信息:"+e.message,null,"支付失败:"+e.code);
    +	});
    +}
    +// 获取已购买商品(非消耗性商品和订阅商品)
    +function restoreComplateRequest(){
    +	plus.nativeUI.showWaiting('',{style:"black",background:"rgba(0,0,0,0)"});
    +	iap.restoreComplateRequest({},function(results){
    +		plus.nativeUI.closeWaiting();
    +		alert(results.length);
    +		for(var i in results){
    +			alert('restoreComplateRequest['+i+']: '+JSON.stringify(results[i]));
    +		}
    +	});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">In-App Purchase</div>
    +		</header>
    +		<div id="content" class="content">
    +			<br/><br/>
    +			<p class="des" style="font-size:16px;line-height:30px;margin: 0px .5em;">
    +DCloud 是W3C会员、中国HTML5产业联盟发起单位,致力于推进HTML5发展,构建HTML5生态。
    +			</p>
    +			<br/>
    +			<strong>
    +支持HTML5开发工具HBuilder
    +			</strong>
    +			<div class="button" onclick="pay(ids[0])">
    +				捐赠1元
    +			</div>
    +			<div class="button" onclick="pay(ids[1])">
    +				捐赠6元
    +			</div>
    +			<div class="button" onclick="restoreComplateRequest()">
    +				restoreComplateRequest
    +			</div>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    diff --git a/fangija-zsyf/plus/proximity.html b/fangija-zsyf/plus/proximity.html
    new file mode 100644
    index 0000000..f057202
    --- /dev/null
    +++ b/fangija-zsyf/plus/proximity.html
    @@ -0,0 +1,77 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var ws=null;
    +document.addEventListener( "plusready", function(){
    +	//watchProximity();
    +	ws=plus.webview.currentWebview();
    +	// 页面隐藏时自动停止监听
    +	ws.addEventListener('hide',function(){
    +		watchStop();
    +	},false);
    +}, false );
    +function getProximity() {
    +	outSet( "获取设备当前距离传感器信息" );
    +	plus.proximity.getCurrentProximity( function ( d ) {
    +		outLine( "距离为:" + d );
    +	}, function ( e ) {
    +		outLine( "获取失败:" + e.message );
    +	} );
    +}
    +var id=null,bright=null;
    +function watchProximity() {
    +	if ( id ) {
    +		return;
    +	}
    +	outSet( "监听设备距离传感器信息" );
    +	bright = plus.screen.getBrightness();
    +	id = plus.proximity.watchProximity( function ( d ) {
    +		outLine( "距离变化:"+d );
    +		plus.screen.setBrightness( (d<1)?0.01:bright );
    +	}, function ( e ) {
    +		plus.proximity.clearWatch( id );
    +		id = null;
    +		outLine( "监听失败:" + e.message );
    +	} );
    +}
    +function watchStop() {
    +	if ( id ) {
    +		outSet( "停止监听设备距离传感器信息" );
    +		plus.proximity.clearWatch( id );
    +		id = null;
    +	} else {
    +		outSet( "没有监听设备距离传感器" );
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="watchStop(),back()"></div>
    +			<div class="nvtt">Proximity</div>
    +			<div class="nvbt idoc" onclick="openDoc('Proximity Document','/doc/proximity.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p class="des">距离传感器一般都在手机听筒的两侧或者是在手机听筒凹槽中,当有物体接近时(如将手机靠近耳朵接听或拨打电话),距离感应器可以检测并通知屏幕背景灯熄灭,拿开时再度点亮背景灯,这样可方便用户操作并节省电量。</p>
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="getProximity()">获取距离传感器信息</li>
    +				<li class="ditem" onclick="watchProximity()">监听距离传感器变化</li>
    +				<li class="ditem" onclick="watchStop()">停止监听</li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Proximity模块管理设备距离传感器,可获取当前设备的接近距离信息,通过plus.proximity可获取设备距离传感管理对象。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/push.html b/fangija-zsyf/plus/push.html
    new file mode 100644
    index 0000000..858c877
    --- /dev/null
    +++ b/fangija-zsyf/plus/push.html
    @@ -0,0 +1,234 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var pushServer = "http://demo.dcloud.net.cn/push/?";
    +var message = null;
    +// 监听plusready事件  
    +document.addEventListener( "plusready", function(){
    +	message = document.getElementById("message");
    +	// 监听点击消息事件
    +	plus.push.addEventListener( "click", function( msg ) {
    +		// 判断是从本地创建还是离线推送的消息
    +		switch( msg.payload ) {
    +			case "LocalMSG":
    +				outSet( "点击本地创建消息启动:" );
    +			break;
    +			default:
    +				outSet( "点击离线推送消息启动:");
    +			break;
    +		}
    +		// 提示点击的内容
    +		plus.nativeUI.alert( msg.content );
    +		// 处理其它数据
    +		logoutPushMsg( msg );
    +	}, false );
    +	// 监听在线消息事件
    +	plus.push.addEventListener( "receive", function( msg ) {
    +		if ( msg.aps ) {  // Apple APNS message
    +			outSet( "接收到在线APNS消息:" );
    +		} else {
    +			outSet( "接收到在线透传消息:" );
    +		}
    +		logoutPushMsg( msg );
    +	}, false );
    +}, false );
    +
    +/**
    + * 日志输入推送消息内容
    + */
    +function logoutPushMsg( msg ) {
    +	outLine( "title: "+msg.title );
    +	outLine( "content: "+msg.content );
    +	if ( msg.payload ) {
    +		if ( typeof(msg.payload)=="string" ) {
    +			outLine( "payload(String): "+msg.payload );
    +		} else {
    +			outLine( "payload(JSON): "+JSON.stringify(msg.payload) );
    +		}
    +	} else {
    +		outLine( "payload: undefined" );
    +	}
    +	if ( msg.aps ) {
    +		outLine( "aps: "+JSON.stringify(msg.aps) );
    +	}
    +}
    +
    +/**
    + * 获取本地推送标识信息
    + */
    +function getPushInfo(){
    +	var info = plus.push.getClientInfo();
    +	outSet( "获取客户端推送标识信息:" );
    +	outLine("id: "+info.id);
    +	outLine( "token: "+info.token );
    +	outLine( "clientid: "+info.clientid );
    +	outLine( "appid: "+info.appid );
    +	outLine( "appkey: "+info.appkey );
    +}
    +/**
    + * 本地创建一条推动消息
    + */
    +function createLocalPushMsg(){
    +	var options = {cover:false};
    +	var str = dateToStr(new Date());
    +	str += ": 欢迎使用HTML5+创建本地消息!";
    +	plus.push.createMessage( str, "LocalMSG", options );
    +	outSet( "创建本地消息成功!" );
    +	outLine( "请到系统消息中心查看!" );
    +	if(plus.os.name=="iOS"){
    +		outLine('*如果无法创建消息,请到"设置"->"通知"中配置应用在通知中心显示!');
    +	}
    +}
    +/**
    + * 读取所有推送消息
    + */
    +function listAllPush(){
    +	var msgs=null;
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		msgs = plus.push.getAllMessage();
    +		break;
    +		default:
    +		break;
    +	}
    +	if ( !msgs ) {
    +		outSet( "此平台不支持枚举推送消息列表!" );
    +		return;
    +	}
    +	outSet( "枚举消息列表("+msgs.length+"):" );
    +	for ( var i in msgs ) {
    +		var msg = msgs[i];
    +		outLine( i+": "+msg.title+" - "+msg.content );
    +	}
    +}
    +/**
    + * 清空所有推动消息
    + */
    +function clearAllPush(){
    +	plus.push.clear();
    +	outSet( "清空所有推送消息成功!" );
    +}
    +/**
    + * 请求‘简单通知’推送消息
    + */
    +function requireNotiMsg(){
    +	if(navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持发送推送消息');
    +		return;
    +	}
    +	var inf = plus.push.getClientInfo();
    +	var url = pushServer+'type=noti&appid='+encodeURIComponent(plus.runtime.appid);
    +	inf.id&&(url+='&id='+inf.id);
    +	url += ('&cid='+encodeURIComponent(inf.clientid));
    +	if(plus.os.name == 'iOS'){
    +		url += ('&token='+encodeURIComponent(inf.token));
    +	}
    +	url += ('&title='+encodeURIComponent('Hello H5+'));
    +	url += ('&content='+encodeURIComponent('欢迎回来体验HTML5 plus应用!'));
    +	url += ('&version='+encodeURIComponent(plus.runtime.version));
    +	plus.runtime.openURL( url );
    +}
    +/**
    + * 请求‘打开网页’推送消息
    + */
    +function requireLinkMsg(){
    +	if(navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持发送推送消息');
    +		return;
    +	}
    +	var inf = plus.push.getClientInfo();
    +	var url = pushServer+"type=link&appid="+encodeURIComponent(plus.runtime.appid);
    +	inf.id&&(url+='&id='+inf.id);
    +	url += ('&cid='+encodeURIComponent(inf.clientid));
    +	if(plus.os.name == 'iOS'){
    +		url += ('&token='+encodeURIComponent(inf.token));
    +	}
    +	url += ('&title='+encodeURIComponent('HBuilder飞一样的编码'));
    +	url += ('&content='+encodeURIComponent('看HBuilder如何追求代码编写速度的极致!立即去瞧一瞧?'));
    +	url += ('&url='+encodeURIComponent('http://www.dcloud.io/'));
    +	url += ('&version='+encodeURIComponent(plus.runtime.version));
    +	plus.runtime.openURL( url );
    +}
    +/**
    + * 请求‘下载链接’推送消息
    + */
    +function requireDownMsg(){
    +	if(navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持发送推送消息');
    +		return;
    +	}
    +	if ( plus.os.name != "Android" ) {
    +		plus.nativeUI.alert( "此平台不支持!" );
    +		return;
    +	}
    +	var inf = plus.push.getClientInfo();
    +	var url = pushServer+'type=down&appid='+encodeURIComponent(plus.runtime.appid);
    +	inf.id&&(url+='&id='+inf.id);
    +	url += ('&cid='+encodeURIComponent(inf.clientid));
    +	url += ('&title='+encodeURIComponent('Hello H5+'));
    +	url += ('&content='+encodeURIComponent('新版本发布了!立即下载体验?'));
    +	url += ('&ptitle='+encodeURIComponent('Hello H5+'));
    +	url += ('&pcontent='+encodeURIComponent('1. 优化用户体验;\n2. 修复在Android2.3.x某些设备可能异常退出的问题.'));
    +	url += ('&dtitle='+encodeURIComponent('下载Hello H5+'));
    +	url += ('&durl='+encodeURIComponent('http://www.dcloud.io/helloh5/HelloH5.apk'));
    +	url += ('&version='+encodeURIComponent(plus.runtime.version));
    +	plus.runtime.openURL( url );
    +}
    +/**
    + * 请求‘透传数据’推送消息
    + */
    +function requireTranMsg(){
    +	if(navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持发送推送消息');
    +		return;
    +	}
    +	var inf = plus.push.getClientInfo();
    +	var url = pushServer+'type=tran&appid='+encodeURIComponent(plus.runtime.appid);
    +	inf.id&&(url+='&id='+inf.id);
    +	url += ('&cid='+encodeURIComponent(inf.clientid));
    +	if(plus.os.name == 'iOS'){
    +		url += ('&token='+encodeURIComponent(inf.token));
    +	}
    +	url += ('&title='+encodeURIComponent('Hello H5+'));
    +	url += ('&content='+encodeURIComponent('带透传数据推送通知,可通过plus.push API获取数据并进行业务逻辑处理!'));
    +	url += ('&payload='+encodeURIComponent('{"title":"Hello H5+ Test","content":"test content","payload":"1234567890"}'));
    +	url += ('&version='+encodeURIComponent(plus.runtime.version));
    +	plus.runtime.openURL( url );
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Push</div>
    +			<div class="nvbt idoc" onclick="openDoc('Push Document','/doc/push.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<div class="button" onclick="requireNotiMsg()">发送"普通通知"消息</div>
    +			<div class="button" onclick="requireLinkMsg()">发送"打开网页"消息</div>
    +			<div class="button" onclick="requireDownMsg()">发送"下载链接"消息</div>
    +			<div class="button" onclick="requireTranMsg()">发送"透传数据"消息</div>
    +			<br/>
    +			<ul id="dlist" class="dlist">
    +				<li class="ditem" onclick="getPushInfo()">获取客户端推送标识</li>
    +				<li class="ditem" onclick="createLocalPushMsg()">创建本地消息</li>
    +				<li class="ditem" onclick="listAllPush()">枚举推送消息</li>
    +				<li class="ditem" onclick="clearAllPush()">清空推送消息</li>
    +				<!--<li class="ditem" onclick="plus.push.setAutoNotification(false)">关闭自动显示消息</li>
    +				<li class="ditem" onclick="plus.push.setAutoNotification(true)">开启自动显示消息</li>-->
    +			</ul>
    +		</div>
    +		<div id="output">
    +Push模块管理推送消息功能,可以实现在线、离线的消息推送,通过plus.push可获取推送消息管理对象。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/runtime.html b/fangija-zsyf/plus/runtime.html
    new file mode 100644
    index 0000000..3a43a82
    --- /dev/null
    +++ b/fangija-zsyf/plus/runtime.html
    @@ -0,0 +1,124 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function getVersion(){
    +	outSet("程序版本号:"+plus.runtime.version+"\n内核版本号:"+plus.runtime.innerVersion);
    +}
    +function getArguments(){
    +	outSet("启动方式: "+plus.runtime.launcher+"\n启动参数: "+plus.runtime.arguments);
    +}
    +function restartApp() {
    +	plus.runtime.restart();
    +}
    +function getWidgetInfo() {
    +	plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) {
    +		//appid属性
    +		var wgtStr = "appid:"+wgtinfo.appid;
    +		//version属性
    +		wgtStr += "\nversion:"+wgtinfo.version;
    +		//name属性
    +		wgtStr += "\nname:"+wgtinfo.name;
    +		//description属性
    +		wgtStr += "\ndescription:"+wgtinfo.description;
    +		//author属性
    +		wgtStr += "\nauthor:"+wgtinfo.author;
    +		//email属性
    +		wgtStr += "\nemail:"+wgtinfo.email;
    +		//licence属性
    +		wgtStr += "\nlicense:"+wgtinfo.license;
    +		//licensehref属性
    +		wgtStr += "\nlicensehref:"+wgtinfo.licensehref;
    +		//features 属性
    +		wgtStr += "\nfeatures:"+wgtinfo.features;
    +		outSet( wgtStr );
    +	} );
    +}
    +function setBadge() {
    +	plus.runtime.setBadgeNumber( 50 );
    +	outSet( "设置程序图标右上角显示的提示数字为50\n请返回桌面查看" );
    +	if(plus.os.name=="iOS"){
    +		outLine( '*如果无法设置提示数字,请到"设置"->"通知"中配置应用在通知中心显示!' );
    +	}else{
    +		outLine( "注:仅支持小米(MIUI v5),其它设备暂不支持此功能!" );
    +	}
    +}
    +function clearBadge() {
    +	plus.runtime.setBadgeNumber( 0 );
    +	outSet( "清除程序图标右上角显示的提示数字\n请返回桌面查看" );
    +	if(plus.os.name=="iOS"){
    +		outLine( '如果无法清除提示数字,请到"设置"->"通知"中配置应用在通知中心显示!' );
    +	}else{
    +		outLine( "注:仅支持小米(MIUI v5),其它设备暂不支持此功能!" );
    +	}
    +}
    +function exitApp(){
    +	if(plus.os.name=="Android"){
    +		plus.runtime.quit();
    +	}else{
    +		outSet( "此平台不支持直接退出程序,请按Home键切换应用" );
    +	}
    +}
    +function updateApp(){
    +	var url='http://demo.dcloud.net.cn/helloh5/update/HelloH5.wgtu';
    +	plus.nativeUI.showWaiting("升级中...");
    +	var dtask = plus.downloader.createDownload( url, {method:"GET"}, function(d,status){
    +		if ( status == 200 ) { 
    +			console.log( "Download wgtu success: " + d.filename );
    +			plus.runtime.install(d.filename,{},function(){
    +				plus.nativeUI.closeWaiting();
    +				plus.nativeUI.alert("Update wgtu success, restart now!",function(){
    +					plus.runtime.restart();
    +				});
    +			},function(e){
    +				plus.nativeUI.closeWaiting();
    +				alert("Update wgtu failed: "+e.message);
    +			});
    +		} else {
    +			plus.nativeUI.closeWaiting();
    +			 alert( "Download wgtu failed: " + status ); 
    +		} 
    +	} );
    +	dtask.addEventListener('statechanged',function(d,status){
    +		console.log("statechanged: "+d.state);
    +	});
    +	dtask.start();
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Runtime</div>
    +			<div class="nvbt idoc" onclick="openDoc('Runtime Document','/doc/runtime.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="clicked('runtime_launch.html',true);">
    +				调用第三方程序
    +			</div>
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="getVersion()">获取版本信息</li>
    +				<li class="ditem" onclick="getArguments()">获取启动信息</li>
    +				<li class="ditem" onclick="restartApp()">重启当前应用</li>
    +	            <li class="ditem" onclick="getWidgetInfo()">获取当前应用的基本属性</li>
    +				<li class="ditem" onclick="setBadge()">设置程序图标右上角数字</li>
    +				<li class="ditem" onclick="clearBadge()">清除程序图标右上角数字</li>
    +				<li class="ditem" onclick="exitApp()">退出当前应用</li>
    +				<!--li class="ditem" onclick="updateApp()">WGTU Update</li-->
    +			</ul>
    +		</div>
    +		<div id="output">
    +Runtime管理程序运行时环境,可用于获取程序的各种信息、与第三方程序通讯等。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/runtime_launch.html b/fangija-zsyf/plus/runtime_launch.html
    new file mode 100644
    index 0000000..dd667f0
    --- /dev/null
    +++ b/fangija-zsyf/plus/runtime_launch.html
    @@ -0,0 +1,175 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function androidMarket( pname ) {
    +	plus.runtime.openURL( "market://details?id="+pname );
    +}
    +function iosAppstore( url ) {
    +	plus.runtime.openURL( "itms-apps://"+url );
    +}
    +function openBrowser() {
    +	var url = "http://www.dcloud.io/";
    +	plus.runtime.openURL( url );
    +}
    +function openMap() {
    +	var url = "";
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		url = "geo:39.96310,116.340698?q=%e6%95%b0%e5%ad%97%e5%a4%a9%e5%a0%82";
    +		break;
    +		case "iOS":
    +		url = "http://maps.apple.com/?q=%e6%95%b0%e5%ad%97%e5%a4%a9%e5%a0%82&ll=39.96310,116.340698&spn=0.008766,0.019441";
    +		break;
    +		default:
    +		return;
    +		break;
    +	}
    +	plus.runtime.openURL( url, function( e ) {
    +		plus.nativeUI.alert( "检查到您未安装地图程序\n" );
    +	} );
    +}
    +function openBMap() {
    +	var url=null,id=null,f=null;
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		// 规范参考官方网站:http://developer.baidu.com/map/index.php?title=uri/api/android
    +		url = "baidumap://map/marker?location=39.968789,116.347247&title=DCloud&content=%e6%89%93%e9%80%a0HTML5%e6%9c%80%e5%a5%bd%e7%9a%84%e7%a7%bb%e5%8a%a8%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7&src=HelloH5";
    +		f = androidMarket;
    +		id = "com.baidu.BaiduMap";
    +		break;
    +		case "iOS":
    +		// 规范参考官方网站:http://developer.baidu.com/map/index.php?title=uri/api/ios
    +		url = "baidumap://map/marker?location=39.968789,116.347247&title=DCloud&content=%e6%89%93%e9%80%a0HTML5%e6%9c%80%e5%a5%bd%e7%9a%84%e7%a7%bb%e5%8a%a8%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7&src=HelloH5";
    +		f = iosAppstore;
    +		id = "itunes.apple.com/cn/app/bai-du-de-tu-yu-yin-dao-hang/id452186370?mt=8";
    +		break;
    +		default:
    +		return;
    +		break;
    +	}
    +	plus.runtime.openURL( url, function(e) {
    +		plus.nativeUI.confirm( "检查到您未安装\"百度地图\",是否到商城搜索下载?", function(i){
    +			if ( i.index == 0 ) {
    +				f(id);
    +			}
    +		} );
    +	} );
    +}
    +function openAMap() {
    +	var url=null,id=null,f=null;
    +	switch ( plus.os.name ) {
    +		case "Android":
    +		// 规范参考官方网站:http://lbs.amap.com/api/uri-api/android-uri-explain/
    +		url = "androidamap://viewMap?sourceApplication=HelloH5&poiname=DCloud&lat=39.9631018208&lon=116.3406135236&dev=0";
    +		f = androidMarket;
    +		id = "com.autonavi.minimap";
    +		break;
    +		case "iOS":
    +		// 规范参考官方网站:http://lbs.amap.com/api/uri-api/ios-uri-explain/
    +		url = "iosamap://viewMap?sourceApplication=HelloH5&poiname=DCloud&lat=39.9631018208&lon=116.3406135236&dev=0";
    +		f = iosAppstore;
    +		id = "itunes.apple.com/cn/app/gao-tu-zhuan-ye-dao-hang-ban/id461703208?mt=8";
    +		break;
    +		default:
    +		return;
    +		break;
    +	}
    +	plus.runtime.openURL( url, function( e ) {
    +		plus.nativeUI.confirm( "检查到您未安装\"高德地图\",是否到商城搜索下载?", function(i){
    +			if ( i.index == 0 ) {
    +				f(id);
    +			}
    +		} );
    +	}, id );
    +}
    +function openMarket() {
    +	var url="";
    +	switch ( plus.os.name ) {
    +		case "Android": {
    +			//url = "market://details?id=com.dheaven.helloh5";
    +			url = "market://details?id=io.dcloud.HelloH5";
    +			//url = "market://search?q=HelloH5";
    +			//url = "market://search?q=pub:HelloH5";
    +		}
    +		break;
    +		case "iOS": {
    +			url = "itms-apps://itunes.apple.com/cn/app/hello-h5+/id682211190?l=zh&mt=8";
    +		}
    +		break;
    +	}
    +	plus.runtime.openURL( url );
    +}
    +function openWeixin() {
    +    if ( plus.os.name == "Android" ) {
    +        plus.runtime.launchApplication( {pname:"com.tencent.mm"}
    +        	, function ( e ) {
    +				plus.nativeUI.confirm( "检查到您未安装\"微信\",是否到商城搜索下载?", function(i){
    +					if ( i.index == 0 ) {
    +						androidMarket( "com.tencent.mm" );
    +					}
    +				} );
    +        } );
    +    } else if ( plus.os.name == "iOS" ) {
    +        plus.runtime.launchApplication( {action:"weixin://RnUbAwvEilb1rU9g9yBU"}, function ( e ) {
    +			plus.nativeUI.confirm( "检查到您未安装\"微信\",是否到商城搜索下载?", function(i){
    +				if ( i.index == 0 ) {
    +					iosAppstore( "itunes.apple.com/cn/app/wechat/id414478124?mt=8" );
    +				}
    +			} );
    +        } );
    +    }
    +//	var url = "http://weixin.qq.com/r/RnUbAwvEilb1rU9g9yBU";
    +//	plus.runtime.openURL( url );
    +}
    +function openWeibo() {
    +    if ( plus.os.name == "Android" ) {
    +        plus.runtime.launchApplication( {pname:"com.sina.weibo"}
    +        	, function ( e ) {
    +				plus.nativeUI.confirm( "检查到您未安装\"微博\",是否到商城搜索下载?", function(i){
    +					if ( i.index == 0 ) {
    +						androidMarket( "com.sina.weibo" );
    +					}
    +				} );
    +        } );
    +    } else if ( plus.os.name == "iOS" ) {
    +        plus.runtime.launchApplication( {action:"sinaweibo://dhnetwork"}, function ( e ) {
    +			plus.nativeUI.confirm( "检查到您未安装\"微博\",是否到商城搜索下载?", function(i){
    +				if ( i.index == 0 ) {
    +					iosAppstore( "itunes.apple.com/cn/app/wei-bo/id350962117?mt=8" );
    +				}
    +			} );
    +        } );
    +    }
    +//	var url = "http://weibo.com/dhnetwork";
    +//	plus.runtime.openURL( url );
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">调用第三方应用</div>
    +		</header>
    +		<div id="dcontent" class="dcontent" style="bottom:0;">
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="openBrowser();">浏览器</li>
    +				<li class="ditem" onclick="openMarket();">应用市场</li>
    +				<li class="ditem" onclick="openMap();">地图</li>
    +				<li class="ditem" onclick="openBMap();">百度地图</li>
    +				<li class="ditem" onclick="openAMap();">高德地图</li>
    +				<li class="ditem" onclick="openWeixin();">微信</li>
    +				<li class="ditem" onclick="openWeibo();">微博</li>
    +			</ul>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/share.html b/fangija-zsyf/plus/share.html
    new file mode 100644
    index 0000000..224b831
    --- /dev/null
    +++ b/fangija-zsyf/plus/share.html
    @@ -0,0 +1,299 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var shares=null;
    +// H5 plus事件处理
    +function plusReady(){
    +	updateSerivces();
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +/**
    + * 更新分享服务
    + */
    +function updateSerivces(){
    +	plus.share.getServices(function(s){
    +		shares={};
    +		for(var i in s){
    +			var t=s[i];
    +			shares[t.id]=t;
    +		}
    +	}, function(e){
    +		outSet('获取分享服务列表失败:'+e.message);
    +	});
    +}
    +/**
    + * 调用系统分享
    +  */
    +function shareSystem(){
    +	outSet('调用系统分享');
    +	var msg={content:sharecontent.value};
    +	if(pic&&pic.realUrl){
    +		msg.pictures=[pic.realUrl];
    +	}
    +	if('iOS'==plus.os.name){//iOS平台添加链接地址
    +		msg.href='http://www.dcloud.io/';
    +	}
    +	outLine(JSON.stringify(msg));
    +	plus.share.sendWithSystem?plus.share.sendWithSystem(msg, function(){
    +		outLine('Success');
    +		console.log('Success');
    +	}, function(e){
    +		outLine('Failed: '+JSON.stringify(e));
    +		console.log('Failed: '+JSON.stringify(e));
    +	}):shareSystemNativeJS();
    +}
    +function shareSystemNativeJS() {
    +	if(plus.os.name!=='Android'){
    +		plus.nativeUI.alert('此平台暂不支持系统分享功能!');
    +		return;
    +	}
    +	var intent=new Intent(Intent.ACTION_SEND);
    +	if(pic&&pic.realUrl){
    +		var p = '';
    +		p = pic.realUrl;
    +		if(p.substr(0,7)==='file://'){
    +			p=p.substr(7);
    +		}else if(p.sub(0)!=='/'){
    +			p=plus.io.convertLocalFileSystemURL(p);
    +		}
    +	}
    +	var f = new File(p);
    +	var uri = Uri.fromFile(f);
    +	if(f.exists()&&f.isFile()){
    +		console.log('image/*');
    +		intent.setType('image/*');
    +		intent.putExtra(Intent.EXTRA_STREAM,uri);
    +	}else{
    +		console.log('text/plain');
    +		intent.setType('text/plain');
    +	}
    +	intent.putExtra(Intent.EXTRA_SUBJECT,'HelloH5');
    +	intent.putExtra(Intent.EXTRA_TEXT,sharecontent.value);
    +	intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    +	main.startActivity(Intent.createChooser(intent,'系统分享HelloH5'));
    +}
    +/**
    +   * 分享操作
    +   * @param {JSON} sb 分享操作对象s.s为分享通道对象(plus.share.ShareService)
    +   * @param {Boolean} bh 是否分享链接
    +   */
    +function shareAction(sb,bh) {
    +	outSet('分享操作:');
    +	if(!sb||!sb.s){
    +		outLine('无效的分享服务!');
    +		return;
    +	}
    +	var msg={content:sharecontent.value,extra:{scene:sb.x}};
    +	if(bh){
    +		msg.href=sharehref.value;
    +		if(sharehrefTitle&&sharehrefTitle.value!=''){
    +			msg.title=sharehrefTitle.value;
    +		}
    +		if(sharehrefDes&&sharehrefDes.value!=''){
    +			msg.content=sharehrefDes.value;
    +		}
    +		msg.thumbs=['_www/logo.png'];
    +		msg.pictures=['_www/logo.png'];
    +	}else{
    +		if(pic&&pic.realUrl){
    +			msg.pictures=[pic.realUrl];
    +		}
    +	}
    +	// 发送分享
    +	if(sb.s.authenticated){
    +		outLine('---已授权---');
    +		shareMessage(msg, sb.s);
    +	}else{
    +		outLine('---未授权---');
    +		sb.s.authorize(function(){
    +			shareMessage(msg,sb.s);
    +		}, function(e){
    +			outLine('认证授权失败:'+e.code+' - '+e.message);
    +		});
    +	}
    +}
    +/**
    +   * 发送分享消息
    +   * @param {JSON} msg
    +   * @param {plus.share.ShareService} s
    +   */
    +function shareMessage(msg, s){
    +	outLine(JSON.stringify(msg));
    +	s.send(msg, function(){
    +		outLine('分享到"'+s.description+'"成功!');
    +	}, function(e){
    +		outLine('分享到"'+s.description+'"失败: '+JSON.stringify(e));
    +	});
    +}
    +/**
    + * 解除所有分享服务的授权
    + */
    +function cancelAuth(){try{
    +	outSet('解除授权:');
    +	for(var i in shares){
    +		var s=shares[i];
    +		if(s.authenticated){
    +			outLine('取消"'+s.description+'"');
    +		}
    +		s.forbid();
    +	}
    +	// 取消授权后需要更新服务列表
    +	updateSerivces();
    +	outLine('操作成功!');}catch(e){alert(e);}
    +}
    +// 拍照添加图片分享
    +function shareCameraPicture(){
    +	outSet('拍照添加分享图片:');
    +	var cmr=plus.camera.getCamera();
    +	cmr.captureImage(function(p){
    +		plus.io.resolveLocalFileSystemURL(p,function(entry){
    +			pic.src=entry.toLocalURL();
    +			pic.realUrl=p;
    +			outLine('拍照图片:'+pic.realUrl);
    +		},function(e){
    +			outLine('读取拍照文件错误:'+e.message);
    +		} );
    +	},function(e){
    +		outLine('拍照失败:'+e.message);
    +	});
    +}
    +// 从相册添加图片分享
    +function shareGalleryPicture(){
    +	outSet('从相册添加分享图片:');
    +	plus.gallery.pick(function(p){
    +		// 从相册返回的路径不需要转换可以直接使用
    +		pic.src=p;
    +		pic.realUrl=pic.src;
    +		outLine('选择图片:'+pic.realUrl);
    +//      plus.io.resolveLocalFileSystemURL(p,function(entry){
    +//			pic.src=entry.toLocalURL();
    +//			pic.realUrl=pic.src;
    +//			outLine('选择图片:'+pic.realUrl);
    +//		},function(e){
    +//			outLine('读取拍照文件错误:'+e.message);
    +//		} );
    +    });
    +}
    +// 使用Logo图片分享
    +function shareLogoPicture(){
    +	outSet('使用Logo分享图片:');
    +	var url='_www/logo.png';
    +	plus.io.resolveLocalFileSystemURL(url, function(entry){
    +		pic.src=entry.toLocalURL();
    +		pic.realUrl=url;
    +	}, function(e){
    +		outLine('读取Logo文件错误:'+e.message);
    +	});
    +}
    +// 打开分享
    +function shareShow(){
    +	var shareBts=[];
    +	// 更新分享列表
    +	var ss=shares['weixin'];
    +	if(navigator.userAgent.indexOf('qihoo')<0){  //在360流应用中微信不支持分享图片
    +		ss&&ss.nativeClient&&(shareBts.push({title:'微信朋友圈',s:ss,x:'WXSceneTimeline'}),
    +		shareBts.push({title:'微信好友',s:ss,x:'WXSceneSession'}));
    +	}
    +	ss=shares['sinaweibo'];
    +	ss&&shareBts.push({title:'新浪微博',s:ss});
    +	ss=shares['qq'];
    +	ss&&ss.nativeClient&&shareBts.push({title:'QQ',s:ss});
    +	// 弹出分享列表
    +	shareBts.length>0?plus.nativeUI.actionSheet({title:'分享',cancel:'取消',buttons:shareBts}, function(e){
    +		(e.index>0)&&shareAction(shareBts[e.index-1],false);
    +	}):plus.nativeUI.alert('当前环境无法支持分享操作!');
    +}
    +// 分析链接
    +function shareHref(){
    +	var shareBts=[];
    +	// 更新分享列表
    +	var ss=shares['weixin'];
    +	ss&&ss.nativeClient&&(shareBts.push({title:'微信朋友圈',s:ss,x:'WXSceneTimeline'}),
    +	shareBts.push({title:'微信好友',s:ss,x:'WXSceneSession'}));
    +	ss=shares['qq'];
    +	ss&&ss.nativeClient&&shareBts.push({title:'QQ',s:ss});
    +	// 弹出分享列表
    +	shareBts.length>0?plus.nativeUI.actionSheet({title:'分享链接',cancel:'取消',buttons:shareBts},function(e){
    +		(e.index>0)&&shareAction(shareBts[e.index-1],true);
    +	}):plus.nativeUI.alert('当前环境无法支持分享链接操作!');
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#sharecontent{
    +	width:80%;
    +	-webkit-user-select:text;
    +	border: 1px solid #6C6C6C;
    +	-webkit-border-radius: 2px;
    +	border-radius: 2px;
    +}
    +#pic{
    +	width:100px;
    +	height:100px;
    +	/*border: 1px dashed #CCCCCC;*/
    +}
    +.sharehref{
    +	width:80%;
    +	-webkit-user-select:text;
    +	border: 1px solid #6C6C6C;
    +	-webkit-border-radius: 2px;
    +	border-radius: 2px;
    +	margin-bottom: .5em;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Share</div>
    +			<div class="nvbt idoc" onclick="openDoc('Share Document','/doc/share.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p class="heading">分享内容:</p>
    +			<textarea id="sharecontent" rows="3">我正在使用HBuilder+HTML5开发移动应用,赶紧跟我一起来体验!</textarea>
    +			<br/><br/>
    +			<p class="heading">分享图片:</p>
    +			<table style="width:100%;">
    +				<tbody>
    +					<tr>
    +						<td style="width:30%"><div class="button button-select" onclick="shareCameraPicture()">拍照</div></td>
    +						<td style="width:30%"><div class="button button-select" onclick="shareGalleryPicture()">相册选取</div></td>
    +						<td style="width:30%"><div class="button button-select" onclick="shareLogoPicture()">使用logo图</div></td>
    +					</tr>
    +				</tbody>
    +			</table>
    +			<img id="pic" src="../img/add.png"/>
    +			<br/>
    +			<div class="button" onclick="shareShow()">分 享</div>
    +			<div class="button" onclick="shareSystem()">系统分享</div>
    +			<div style="padding: 0.5em 1em;"><hr color="#EEE"/></div>
    +			<p class="heading">链接地址:</p>
    +			<input id="sharehref" class="sharehref" type="url" value="http://www.dcloud.io/" placeholder="请输入要分享的链接地址"/>
    +			<p class="heading">链接标题:</p>
    +			<input id="sharehrefTitle" class="sharehref" type="text" value="DCloud HBuilder-做最好的HTML5开发工具" placeholder="请输入要分享的链接标题"/>
    +			<p class="heading">链接描述:</p>
    +			<input id="sharehrefDes" class="sharehref" type="text" value="我正在使用HBuilder+HTML5开发移动应用,赶紧跟我一起来体验!" placeholder="请输入要分享的链接描述"/>
    +			<div class="button" onclick="shareHref()">分享链接</div>
    +			<br/><br/>
    +			<div style="padding: 0.5em 1em;"><hr color="#EEE"/></div>
    +			<p class="des">如果需要解除分享中绑定的用户信息,请点击解除授权:</p>
    +			<div class="button" onclick="cancelAuth()">解除授权</div>
    +		</div>
    +		<div id="output">
    +Share模块管理客户端的社交分享功能,提供调用终端社交软件的分享能力。通过plus.share可获取社交分享管理对象。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/speech.html b/fangija-zsyf/plus/speech.html
    new file mode 100644
    index 0000000..52dc39c
    --- /dev/null
    +++ b/fangija-zsyf/plus/speech.html
    @@ -0,0 +1,77 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var text=null;
    +function startRecognize() {
    +	if(plus.os.name=='Android'&&navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持语音识别插件');
    +		return;
    +	}
    +	var options = {};
    +	options.engine = 'iFly';
    +	//options.punctuation = false;	// 是否需要标点符号 
    +	text.value = "";
    +	outSet( "开始语音识别:" );
    +	plus.speech.startRecognize( options, function ( s ) {
    +		outLine( s );
    +		text.value += s;
    +	}, function ( e ) {
    +		outSet( "语音识别失败:"+e.message );
    +	} );
    +}
    +function startRecognizeEnglish(){
    +	if(plus.os.name=='Android'&&navigator.userAgent.indexOf('StreamApp')>0){
    +		plus.nativeUI.toast('当前环境暂不支持语音识别插件');
    +		return;
    +	}
    +	var options = {};
    +	options.engine = 'iFly';
    +	options.lang = 'en-us';
    +	text.value = "";
    +	outSet( "开始语音识别:" );
    +	plus.speech.startRecognize( options, function ( s ) {
    +		outLine( s );
    +		text.value += s;
    +	}, function ( e ) {
    +		outSet( "语音识别失败:"+e.message );
    +	} );
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.out {
    +	margin: 9px;
    +	height: 30%;
    +	width: 90%;
    +}
    +		</style>
    +	</head>
    +	<body onload="text=document.getElementById('text');">
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Speech</div>
    +			<div class="nvbt idoc" onclick="openDoc('Speech Document','/doc/speech.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="startRecognize()">开始语音识别</div>
    +			<br/>
    +			<div class="button" onclick="startRecognizeEnglish()">开始语音识别(英语)</div>
    +			<br/>
    +			<textarea readonly="readonly" id="text" style="margin:2%;padding:2%;height:50%;width:90%;border:1px solid #6C6C6C;-webkit-border-radius: 2px;border-radius: 2px;-webkit-appearance:none;">
    +语音输入内容
    +			</textarea>
    +		</div>
    +		<div id="output">
    +Speech提供语音识别功能,可通过麦克风设备进行语音输入操作。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/statistic.html b/fangija-zsyf/plus/statistic.html
    new file mode 100644
    index 0000000..5df6e41
    --- /dev/null
    +++ b/fangija-zsyf/plus/statistic.html
    @@ -0,0 +1,107 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var duration=null,counter=null,loading=null;
    +document.addEventListener( "plusready", function(){
    +	counter = document.getElementById("counter");
    +	loading = document.getElementById("loading");
    +	duration = document.getElementById("duration");
    +	duration.addEventListener( "touchstart", durationStart, false );
    +	duration.addEventListener( "touchend", durationEnd, false );
    +	plus.statistic.eventTrig( "open" );
    +	plus.statistic.eventStart( "stay" );
    +}, false );
    +function statisticBack() {
    +	plus.statistic.eventEnd( "stay" );
    +	back();
    +}
    +var tc=null,tl=null,count=0;
    +var ds=null;
    +function doCounter(){
    +	loading.style.webkitTransition = "all 0.8s ease-in-out";
    +	loading.style.borderWidth = "0";
    +	loading.style.borderColor = "rgba(128,128,128,0.8)";
    +	tc = setTimeout( function(){
    +		count++;
    +		loading.style.webkitTransition = "";
    +		loading.style.borderWidth = "50px";
    +		loading.style.borderColor = "rgba(255,255,255,0)";
    +		counter.innerText = count;
    +		tl=setTimeout( doCounter, 0 );
    +	}, 1000 );
    +}
    +function durationStart(){
    +	ds = new Date();
    +	count = 0;
    +	counter.innerText = "0";
    +	counter.style.visibility = "visible";
    +	doCounter();
    +	outSet( "按下开始计时:" );
    +}
    +function durationEnd(){
    +	clearTimeout( tc );
    +	tc = null;
    +	clearTimeout( tl );
    +	tl = null;
    +	loading.style.webkitTransition = "";
    +	loading.style.borderWidth = "50px";
    +	loading.style.borderColor = "rgba(255,255,255,0)";
    +	counter.style.visibility = "hidden";
    +	var d = (new Date()).getTime()-ds.getTime();
    +	plus.statistic.eventDuration( "press", d );
    +	outLine( "您按下的时间为"+d+"ms,后台会将此数据提交到服务器!" );
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.counter {
    +    width: 100px;
    +    height: 100px;
    +    margin: 0 auto;
    +    line-height: 100px;
    +    font-size: 48px;
    +    visibility: hidden;
    +}
    +.loading {
    +	height: 100px;
    +	width: 100px;
    +	border-style:solid;
    +	position:relative;
    +	top: -100px;
    +	display:inline-block;
    +	box-sizing:border-box;
    +	border-width:50px;
    +	border-color:rgba(255,255,255,0);
    +	border-radius: 50px;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="statisticBack();"></div>
    +			<div class="nvtt">Statistic</div>
    +			<div class="nvbt idoc" onclick="openDoc('Statistic Document','/doc/statistic.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p class="des">应用会在后台统计打开此页面的次数及在此页面停留的时间,目前应用集成的是友盟统计插件,相关统计数据需要登录到<a href="" onclick="plus.runtime.openURL('http://www.umeng.com/');">友盟官网</a>查看。</p>
    +			<div style="height:100px;">
    +				<div id="counter" class="counter">0</div>
    +				<div id="loading" class="loading"></div>
    +			</div>
    +			<div id="duration" class="button">统计按下时长</div>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Statistic模块管理统计功能,用于提供应用内统计的能力,支持统计和分析用户属性和用户行为数据。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/storage.html b/fangija-zsyf/plus/storage.html
    new file mode 100644
    index 0000000..d3be774
    --- /dev/null
    +++ b/fangija-zsyf/plus/storage.html
    @@ -0,0 +1,88 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +function setItemFun( id ) {
    +	//循环插入100调数据
    +	var dataNum = new Number(id);
    +	for ( var i=0; i<dataNum; i++ ) {
    +		plus.storage.setItem( "key"+i, "value"+i );
    +	}
    +	var length = getLengthFun();
    +	outSet( "数据存储成功,存储了"+length+"条数据;" );
    +}
    +function getLengthFun(){
    +	return plus.storage.getLength();
    +}
    +function getAllItem(){
    +	outSet( "获取数据:" );
    +	var itemLength = getLengthFun();
    +	for ( var i=0; i < itemLength; i++ ) {
    +		var key = plus.storage.key(i);
    +	  	var value = plus.storage.getItem(key);
    +	  	outLine( "key:"+key+"-->value:"+value );
    +	};
    +}
    +function delItem() {
    +	outSet( "删除数据:" );
    +	var itemLength = getLengthFun();
    +	for (var i=0; i < itemLength; i+=2) {
    +		var key = plus.storage.key(i);
    +	  	plus.storage.removeItem(key);
    +	};
    +	var itemNo = getLengthFun();
    +	outLine( "移除了"+(itemLength-itemNo)+"条数据" );
    +}
    +function clearAllItem(){
    +	plus.storage.clear();
    +	var num = getLengthFun();
    +	if ( num == 0 ) {
    +		outSet( "storage数据清除成功!" );
    +	}else{
    +		outSet( "storage数据清除失败!" );
    +	}
    +}
    +function modifyTopFive(){
    +	outSet( "修改前的数据是:" );
    +	for (var i=0; i < 5; i++) {
    +		var key = plus.storage.key(i),value = plus.storage.getItem(key);
    +	  	outLine( "key:"+key+"-->value:"+value );
    +		plus.storage.setItem( key, "新数据值>>"+i );
    +	};
    +	outLine( "修改后的数据是:" );
    +	for (var i=0; i < 5; i++) {
    +		var key = plus.storage.key(i),value = plus.storage.getItem(key);
    +		outLine( "key:"+key+"-->value:"+value );
    +	};
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Storage</div>
    +			<div class="nvbt idoc" onclick="openDoc('Storage Document','/doc/storage.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<ul class="dlist">
    +	            <li class="ditem" onclick="setItemFun('11')">插入11条数据</li>
    +	            <li class="ditem" onclick="getAllItem()">查询所有数据</li>
    +	            <li class="ditem" onclick="modifyTopFive()">修改前五条数据的内容</li>
    +	            <li class="ditem" onclick="delItem()">删除部分Item</li>
    +	            <li class="ditem" onclick="clearAllItem()">清除所有内容</li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Storage管理本地数据存储,用于保存应用的全局数据,可在程序内部跨页面(跨域)共享数据。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/uploader.html b/fangija-zsyf/plus/uploader.html
    new file mode 100644
    index 0000000..a32217c
    --- /dev/null
    +++ b/fangija-zsyf/plus/uploader.html
    @@ -0,0 +1,110 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var server="http://demo.dcloud.net.cn/helloh5/uploader/upload.php";
    +var files=[];
    +// 上传文件
    +function upload(){
    +	if(files.length<=0){
    +		plus.nativeUI.alert("没有添加上传文件!");
    +		return;
    +	}
    +	outSet("开始上传:")
    +	var wt=plus.nativeUI.showWaiting();
    +	var task=plus.uploader.createUpload(server,
    +		{method:"POST"},
    +		function(t,status){ //上传完成
    +			if(status==200){
    +				outLine("上传成功:"+t.responseText);
    +				plus.storage.setItem("uploader",t.responseText);
    +				var w=plus.webview.create("uploader_ret.html","uploader_ret.html",{scrollIndicator:'none',scalable:false});
    +				w.addEventListener("loaded",function(){
    +					wt.close();
    +					w.show("slide-in-right",300);
    +				},false);
    +			}else{
    +				outLine("上传失败:"+status);
    +				wt.close();
    +			}
    +		}
    +	);
    +	task.addData("client","HelloH5+");
    +	task.addData("uid",getUid());
    +	for(var i=0;i<files.length;i++){
    +		var f=files[i];
    +		task.addFile(f.path,{key:f.name});
    +	}
    +	task.start();
    +}
    +// 拍照添加文件
    +function appendByCamera(){
    +	plus.camera.getCamera().captureImage(function(p){
    +		appendFile(p);
    +	});	
    +}
    +// 从相册添加文件
    +function appendByGallery(){
    +	plus.gallery.pick(function(p){
    +        appendFile(p);
    +    });
    +}
    +// 添加文件
    +var index=1;
    +function appendFile(p){
    +	var fe=document.getElementById("files");
    +	var li=document.createElement("li");
    +	var n=p.substr(p.lastIndexOf('/')+1);
    +	li.innerText=n;
    +	fe.appendChild(li);
    +	files.push({name:"uploadkey"+index,path:p});
    +	index++;
    +	empty.style.display="none";
    +}
    +// 产生一个随机数
    +function getUid(){
    +	return Math.floor(Math.random()*100000000+10000000).toString();
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Uploader</div>
    +			<div class="nvbt idoc" onclick="openDoc('Uploader Document','/doc/uploader.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<p class="heading">上传文件列表:</p>
    +			<ul id="files" style="text-align:left;">
    +				<p id="empty" style="font-size:12px;color:#C6C6C6;">无上传文件</p>
    +			</ul>
    +			<table style="width:100%;">
    +				<tbody>
    +					<tr>
    +						<td style="width:40%"><div class="button button-select" onclick="appendByCamera()">拍照</div></td>
    +						<td style="width:40%"><div class="button button-select" onclick="appendByGallery()">相册选取</div></td>
    +					</tr>
    +				</tbody>
    +			</table>
    +			<br/>
    +			<div class="button" onclick="upload()">上 传</div>
    +			<br/>
    +			<!--<ul class="dlist">
    +				<li class="ditem" onclick="appendByCamera()">拍照添加文件</li>
    +				<li class="ditem" onclick="appendByGallery()">相册添加文件</li>
    +			</ul>-->
    +		</div>
    +		<div id="output">
    +Uploader用于管理文件的上传,用于从本地上传各种文件到网络服务器,支持跨域访问操作。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/uploader_ret.html b/fangija-zsyf/plus/uploader_ret.html
    new file mode 100644
    index 0000000..d1d83f4
    --- /dev/null
    +++ b/fangija-zsyf/plus/uploader_ret.html
    @@ -0,0 +1,98 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript">
    +// H5 plus事件处理
    +var ret=null;
    +function plusReady(){
    +	ret=plus.storage.getItem("uploader");
    +	update();
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOM事件
    +var ce=null;
    +document.addEventListener("DOMContentLoaded",function(){
    +	ce=document.getElementById("dcontent");
    +	update();
    +},false);
    +// 更新内容
    +var fs=null;
    +function update(){
    +	if(!ret||!ce)return;
    +	var j=JSON.parse(ret);
    +	var ih='<br/>Datas:<br/><div style="text-align:left;padding:10px 2%;">';
    +	var ds=j.strings;
    +	for(d in ds){
    +		ih += d+" : "+ds[d]+"<br/>";
    +	}
    +	ih+='</div><hr/>Files:<br/><div id="fl">';
    +	fs=j.files;
    +	for(f in fs){
    +		ih += '<a class="fitem" onclick="plus.runtime.openURL(\'http://demo.dcloud.net.cn/helloh5/uploader/'+fs[f].url+'\')">'+fs[f].name+'</a>';
    +	}
    +	ih+='</div>';
    +	ce.innerHTML=ih;
    +}
    +// 清除上传返回的数据
    +function resetUploader(){
    +	plus.storage.setItem("uploader","");
    +}
    +// 删除上传的文件
    +function deleteFiles(){
    +	var url="http://demo.dcloud.net.cn/helloh5/uploader/delete.php?";
    +	for(f in fs){
    +		url += f+"="+fs[f].name+"&";
    +	}
    +	var r=new plus.net.XMLHttpRequest();
    +	r.open('GET',url);
    +	r.send();
    +	document.getElementById('fl').innerHTML="";
    +}
    +		</script>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<style type="text/css">
    +.fitem {
    +	width: 96%;
    +	overflow: hidden;
    +	padding: 10px 2%;
    +	border-bottom: 1px solid #c6c6c6;
    +	color: #6c6c6c;
    +	text-align: left;
    +	text-decoration: none;
    +	display: block;
    +}
    +.fitem:active {
    +	background: #f4f4f4;
    +}
    +.fname {
    +	font-weight: bolder;
    +	height: 22px;
    +	font-size: 16px;
    +}
    +.iclear {
    +	background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xNy8xNGW7Pb8AAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAD3ElEQVR4nO2b0W3bSBCG/+Hy/dTBsYOQFvV8ugqsVBB3EHcQuQNdB3IH6uCUZxJYpQOmA+td3LmHIw+KjpIZh5R/w/MBBgxxOTujD9RyiKWoKgweotdOwPgRE0KGCSHDhJBhQsgwIWSYEDJMCBkmhAwTQoYJIcOEkGFCyDAhZJgQMkwIGSaEDBNChgkhw4SQYULIMCFkmBAyTAgZJoSM+LUTOEVEeo8timLunPvf1subm5uvfWOw7dwUuoR6CPHeTw6Hw98iknYdV9VdHMd/Zln29FwsuvrpEnpGyImMv1R1c3L+AsDnvlLo6qdL6IwQ731S1/UfqnovIqmqPsxms2XX2LIsV2ikiMjKOfc1y7Kqayxd/XQJHQnx3ichhE+qegcgORr2mOf53aU4ZVluANwefVSJyDqKosdjOXT10yXUCCmKYikinwFMToZ8c87Nsyx7Ol1Ljn+mvPeTuq63AD6cnP8kIqvpdPrQnDNuQT8JnZDdbndpwd4755IuGS0dUioAv50Gaselafrswn9N6ISUZbkUkS9nDm9EZAcAIYTFpbusKIo2zf8pgMWZcQ95ni8HSHswGPuQ5MLhhaoumnGXYqSNiF+Z61Wg69RVdX2tuZxzq2vN1Rc6IbPZbAvgI4D9iNPsAXzMsmw34hwvgm4NaX+KmkX7XkTuAPw+UPjvqrqO43jVNox09dMl1LE2eO/Tw+HQLuIp+gv6DmDX3FFtuq4IuvrpEur5cNF7nxwOh6TrWBzH1bnO/BS2+qGqVH8tRVEsvffJ0PV675OiKJas9dPd9h4xr+v6S/MIZNs8j3rRItw8B7sFsKjreg6g9+P5a0MrRETaDnqBf79IlGVZAaiaxu9JVasoiqrj80IIiYgkIYRJs+YkdV0nZ2LTQSukeVJ7e/JxAiARkXn78xZC6Dr34lqkqnS3uy10fcg1iKKI9gphFrIdK3AIwa4Qox/UfUhZlqMkl+f5f5Ow1W9XCBnsQr69kZiDQS1EVQe/Gxoj5pBQCxGR6i3EHBJqIapavYWYQ0ItZIwGjrkpBMiFjNHAMTeFALmQ9wh1YwgM3xweN4WANYYvYcjNDmNunBgEeiEico9hvsh9E4saeiHT6XTtnEsBPP5CmEfnXDKdTtcDpTUa9GvIMd77SQjhTlXnAObo2LPbsAewFZFtFEXrS++I0NVPl9BPvNLW7N36YctoHMe7Pm9OtdDVz5bQe4d+DXlvmBAyTAgZJoQME0KGCSHDhJBhQsgwIWSYEDJMCBkmhAwTQoYJIcOEkGFCyDAhZJgQMkwIGSaEDBNChgkhw4SQYULIMCFk/AMqfZUpSkU8pwAAAABJRU5ErkJggg==);
    +	background-size: 50px 44px;
    +}
    +		</style>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="resetUploader();back();"></div>
    +			<div class="nvtt">Uploaded Data&amp;File</div>
    +			<div class="nvbt iclear" onclick="deleteFiles()"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview.html b/fangija-zsyf/plus/webview.html
    new file mode 100644
    index 0000000..041ed7c
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview.html
    @@ -0,0 +1,107 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +// 预创建二级页面
    +var preate={};
    +function preateWebivew(id){
    +	if(!preate[id]){
    +		var w=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'hide'},{preate:true});
    +		preate[id]=w;
    +		w.addEventListener('close',function(){//页面关闭后可再次打开
    +			_openw=null;
    +			preate[id]&&(preate[id]=null);//兼容窗口的关闭
    +		},false);
    +	}
    +}
    +// 判断预载打开
    +var _openw=null;
    +function pclicked(id){
    +	if(_openw){return;}
    +	_openw=preate[id];
    +	if(_openw){
    +		if(_openw.showded){
    +			_openw.show('auto');
    +		}else{
    +			_openw.show(as);
    +			_openw.showded=true;
    +		}
    +		_openw=null;
    +	}else{
    +		_openw=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'hide'});
    +		preate[id]=_openw;
    +		_openw.addEventListener('loaded',function(){//叶面加载完成后才显示
    +//			setTimeout(function(){
    +			_openw.show(as);
    +			_openw.showded=true;
    +			_openw=null;
    +//			},10);
    +		},false);
    +		_openw.addEventListener('close',function(){//页面关闭后可再次打开
    +			_openw=null;
    +			preate[id]&&(preate[id]=null);//兼容窗口的关闭
    +		},false);
    +	}
    +}
    +// H5 plus事件处理
    +var as='pop-in';// 默认动画类型
    +function plusReady(){
    +//	preateWebivew('webview_animation.html');
    +//	preateWebivew('webview_pullhead.html');
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready',plusReady,false);
    +}
    +// 创建悬浮窗口
    +var floatw=null;
    +function floatWebview(){
    +	if(floatw){ // 避免快速多次点击创建多个窗口
    +		return;
    +	}
    +	floatw=plus.webview.create("webview_float.html","webview_float.html",{width:'200px',height:'200px',margin:"auto",background:"rgba(0,0,0,0.8)",scrollIndicator:'none',scalable:false,popGesture:'none'});
    +	floatw.addEventListener("loaded",function(){
    +		floatw.show('fade-in',300);
    +		floatw=null;
    +	},false);
    +}
    +// 创建自定义下拉刷新窗口
    +function customeRefresh(){
    +	if(plus.os.name!="Android"){
    +		 compatibleConfirm();
    +	}else{
    +		clicked('webview_pullhead_custom.html',true,true);
    +	}
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Webview</div>
    +			<div class="nvbt idoc" onclick="openDoc('Webview Document','/doc/webview.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="pclicked('webview_animation.html',true,true)">窗口动画</div>
    +			<div class="button" onclick="clicked('webview_embed.html',true)">窗口嵌套</div>
    +			<div class="button" onclick="floatWebview()">悬浮窗口</div>
    +			<div class="button" onclick="pclicked('webview_pulltorefresh.html',true,true)">下拉刷新</div>
    +			<div class="button" onclick="customeRefresh()">自定义下拉刷新</div>
    +			<div class="button" onclick="clicked('webview_mask.html',true)">窗口遮罩</div>
    +			<br/>
    +		</div>
    +		<div id="output">
    +Webview模块管理应用窗口界面,实现多窗口的逻辑控制管理操作。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_animation.html b/fangija-zsyf/plus/webview_animation.html
    new file mode 100644
    index 0000000..20c34f8
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_animation.html
    @@ -0,0 +1,67 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null,wp=null,wo=null;
    +// H5 plus事件处理
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +	wp=plus.webview.create('webview_new.html','webview_new.html',{scrollIndicator:'none',scalable:false,popGesture:'none'},{preate:true});
    +	wp.addEventListener('close',function(){
    +		wp=null;
    +	},false);
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready',plusReady,false);
    +}
    +// 动画窗口
    +function animateWindow(type){
    +	wp||(wp=plus.webview.create('webview_new.html','webview_new.html',{scrollIndicator:'none',scalable:false,popGesture:'none'},{preate:true}));
    +	wp.show(type);
    +}
    +// 关闭窗口
    +var _back=window.back;
    +function preateBack(){
    +	wp&&(wp.close(),wp=null);
    +	_back();
    +}
    +window.back=preateBack;
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">系统原生动画</div>
    +		</header>
    +		<div id="content" class="content">
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="animateWindow('pop-in')">从右侧平移入栈</li>
    +				<li class="ditem" onclick="animateWindow('slide-in-right')">从右侧横向滑出</li>
    +				<li class="ditem" onclick="animateWindow('slide-in-left')">从左侧横向滑出</li>
    +				<li class="ditem" onclick="animateWindow('slide-in-top')">从上侧竖向滑出</li>
    +				<li class="ditem" onclick="animateWindow('slide-in-bottom')">从下侧竖向滑出</li>
    +				<!--<li class="ditem" onclick="animateWindow('zoom-out')">从小到大逐渐放大</li>-->
    +				<li class="ditem" onclick="animateWindow('zoom-fade-out')">从小到大并逐渐透明显示</li>
    +				<li class="ditem" onclick="animateWindow('fade-in')">从透明到不透明逐渐显示</li>
    +				<!--<li class="ditem" onclick="animateWindow('flip-x')">以x轴从上到下翻转效果</li>
    +				<li class="ditem" onclick="animateWindow('flip-rx')">以x轴从下到上翻转转效果</li>
    +				<li class="ditem" onclick="animateWindow('flip-y')">以y轴从左到右翻转效果</li>
    +				<li class="ditem" onclick="animateWindow('flip-ry')">以y轴从右到左翻转效果</li>
    +				<li class="ditem" onclick="animateWindow('page-forward')">向前翻书动画效果</li>-->
    +				<li class="ditem" onclick="animateWindow('none')">无动画</li>
    +			</ul>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_embed.html b/fangija-zsyf/plus/webview_embed.html
    new file mode 100644
    index 0000000..8ba4357
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_embed.html
    @@ -0,0 +1,85 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null,embed=null;
    +// 扩展API加载完毕,现在可以正常调用扩展API 
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	ws.addEventListener('show',createEmbed,false);
    +}
    +// 判断扩展API是否准备,否则监听"plusready"事件
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// 创建子Webview
    +function createEmbed(){
    +	var topoffset='45px';
    +	if(plus.navigator.isImmersedStatusbar()){// 兼容immersed状态栏模式
    +		topoffset=(Math.round(plus.navigator.getStatusbarHeight())+45)+'px';
    +	}
    +	plus.nativeUI.showWaiting('',{style:'black',modal:false,background:'rgba(0,0,0,0)'});
    +	embed=plus.webview.create('http://m.weibo.cn/u/3196963860','embed',{top:topoffset,bottom:'0px',position:'dock',dock:'bottom',bounce:'vertical'});
    +	ws.append(embed);
    +	embed.addEventListener('loaded',function(){
    +		plus.nativeUI.closeWaiting();
    +	},false);
    +	embed.addEventListener('loading',function(){
    +		plus.nativeUI.showWaiting('',{style:'black',modal:false,background:'rgba(0,0,0,0)'});
    +	},false);
    +}
    +// 打开网址
    +function openUrl(){
    +	var url=document.getElementById("url");
    +	embed.loadURL(url.value);
    +	url.blur();
    +}
    +// 页面加载后自动打开
    +document.addEventListener("DOMContentLoaded",function(){
    +	if(embed){
    +		openUrl();
    +	}else{
    +		auto=true;
    +	}
    +},false);
    +// 页面跳转完成事件
    +function onBrowserLoading(){
    +	document.getElementById("url").value=embed.getURL();
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#url{
    +	width:98%;
    +	-webkit-user-select:auto;
    +	padding-left:0;
    +	padding-right:0;
    +	background: rgba(0,0,0,0);
    +	border: 0px;
    +	border-bottom:1px solid #ECB100;
    +	border-radius: 0;
    +	outline:none;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back(),plus.nativeUI.closeWaiting();"></div>
    +			<div class="nvtt">
    +				<form action="?" method="get" onsubmit="openUrl();return false;">
    +				<input id="url" type="url" value="http://m.weibo.cn/u/3196963860"/>
    +				</form>
    +			</div>
    +			<div class="nvbt" onclick="openUrl();">Go</div>
    +		</header>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_float.html b/fangija-zsyf/plus/webview_float.html
    new file mode 100644
    index 0000000..4b0068f
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_float.html
    @@ -0,0 +1,18 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body style="margin:0;padding:0;width:100%;height:100%;text-align:center;">
    +		<img src="../img/ui.png"/>
    +		<div style="width:100%;position:fixed;bottom:0;">
    +			<div class="button" onclick="back()">关 闭</div>
    +		</div>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_mask.html b/fangija-zsyf/plus/webview_mask.html
    new file mode 100644
    index 0000000..bda42b0
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_mask.html
    @@ -0,0 +1,62 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var ws=null,wc=null;
    +// 扩展API加载完毕,现在可以正常调用扩展API 
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	// 用户点击后
    +	ws.addEventListener("maskClick",function(){
    +		wc.close("auto");
    +	},false);
    +}
    +// 判断扩展API是否准备,否则监听"plusready"事件
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// 显示侧滑页面
    +function showSide(){
    +	// 防止快速点击可能导致多次创建
    +	if(wc){
    +		return;
    +	}
    +	// 开启遮罩
    +	ws.setStyle({mask:"rgba(0,0,0,0.5)"});
    +	// 创建侧滑页面
    +	wc=plus.webview.create("webview_mask_side.html","side",{left:"30%",width:"70%",popGesture:"none"});
    +	// 侧滑页面关闭后关闭遮罩
    +	wc.addEventListener('close',function(){
    +		ws.setStyle({mask:"none"});
    +		wc=null;
    +	},false);
    +	// 侧滑页面加载后显示(避免白屏)
    +	wc.addEventListener("loaded",function(){
    +		wc.show("slide-in-right",200);
    +	},false);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">Webview Mask</div>
    +		</header>
    +		<div id="content" class="content">
    +			<br/>
    +			<div class="button" onclick="showSide()">打开侧滑窗口</div>
    +			<div class="des">打开侧滑窗口后,当前Webview窗口会显示遮罩层。</div>
    +			<div class="des">Webview的遮罩层会覆盖Webview中所有内容(包括子Webview),并且截获Webview窗口的所有触屏事件。</div>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_mask_side.html b/fangija-zsyf/plus/webview_mask_side.html
    new file mode 100644
    index 0000000..0768a73
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_mask_side.html
    @@ -0,0 +1,18 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body style="text-align:center;">
    +		<br/><br/><br/>
    +		<div class="button" onclick="back()">关 闭</div>
    +		<div style="height:30%;width:100%"></div>
    +		这是侧滑页面
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_new.html b/fangija-zsyf/plus/webview_new.html
    new file mode 100644
    index 0000000..55d15f8
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_new.html
    @@ -0,0 +1,26 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js" ></script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">动画页面</div>
    +		</header>
    +		<div id="dcontent" class="dcontent" >
    +			<p>欢迎进入窗口动画页面</p>
    +			<br/>
    +			<img src="../img/ui.png"/>
    +			<br/>
    +			<p>此页面已关闭侧滑返回功能</p>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_pullhead.html b/fangija-zsyf/plus/webview_pullhead.html
    new file mode 100644
    index 0000000..b44dddd
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_pullhead.html
    @@ -0,0 +1,43 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null,wo=null,list=null;
    +// 扩展API加载完毕,现在可以正常调用扩展API 
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +	list=plus.webview.create("webview_pullrefresh.html","webview_pullrefresh.html",{top:"46px",bottom:"0px",bounce:"vertical"});
    +	if(!ws.preate){
    +		list.addEventListener("loaded",function(){//叶面加载完成后才显示
    +			ws.show("pop-in");
    +			wo.evalJS("closeWaiting()");
    +			if(plus.os.name!="Android"){
    +				plus.nativeUI.alert("由于Android性能不足,我们提供了原生的下拉刷新加速方案。iOS设备请使 用iscroll等标准框架来解决下拉刷新问题");
    +			}
    +		},false);
    +	}
    +	ws.append(list);
    +}
    +// 判断扩展API是否准备,否则监听"plusready"事件
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">下拉刷新</div>
    +		</header>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_pullhead_custom.html b/fangija-zsyf/plus/webview_pullhead_custom.html
    new file mode 100644
    index 0000000..43c2757
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_pullhead_custom.html
    @@ -0,0 +1,129 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null,list=null;
    +// 扩展API加载完毕,现在可以正常调用扩展API 
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +	var topoffset='45px';
    +	if(plus.navigator.isImmersedStatusbar()){// 兼容immersed状态栏模式
    +		topoffset=(Math.round(plus.navigator.getStatusbarHeight())+45)+'px';
    +	}
    +	list=plus.webview.create("webview_pullrefresh_custom.html","webview_pullrefresh_custom.html",{top:topoffset,bottom:"0px",bounce:"vertical"});
    +	ws.append(list);
    +	ws.addEventListener("show",function(){
    +		refresh();
    +	},false);
    +	if(!ws.preate){
    +		list.addEventListener("loaded",function(){//叶面加载完成后才显示
    +			ws.show("pop-in");
    +			wo.evalJS("closeWaiting()");
    +		},false);
    +	}
    +	ws.append(list);
    +	// 实现列表可下拉刷新
    +	list.addEventListener("dragBounce",onPullStateChange,false);
    +	list.setBounce({position:{top:"100px"},changeoffset:{top:"50px"}});
    +}
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOMContentLoaded事件处理
    +var etext=null,eicon=null;
    +document.addEventListener("DOMContentLoaded",function(){
    +	etext=document.getElementById("text");
    +	eicon=document.getElementById("icon");
    +},false);
    +
    +// 下拉状态改变
    +function onPullStateChange(e){
    +	switch(e.status){
    +		case "beforeChangeOffset"://下拉可刷新状态
    +		pull1();
    +		break;
    +		case "afterChangeOffset"://松开可刷新状态
    +		pull2();
    +		break;
    +		case "dragEndAfterChangeOffset"://正在刷新状态
    +		list.evalJS("onRefresh();");
    +		pull3();
    +		break;
    +		default:
    +		break;
    +	}
    +}
    +function pull1(){
    +	etext.textContent="下拉可刷新";
    +	eicon.style.webkitTransition="all 0.3s ease-in";
    +	eicon.style.webkitTransform="rotate(0deg)";
    +}
    +function pull2(){
    +	etext.textContent="松开可刷新";
    +	eicon.style.webkitTransition="all 0.3s ease-in";
    +	eicon.style.webkitTransform="rotate(180deg)";
    +}
    +function pull3(){
    +	etext.textContent="正在刷新...";
    +	eicon.src="../img/pull_fresh.png";
    +	eicon.style.webkitAnimation="spin 1s infinite linear";
    +}
    +function pullReset(){
    +	etext.textContent="下拉可刷新";
    +	eicon.src="../img/pull_arrow.png";
    +	eicon.style.webkitTransition="";
    +	eicon.style.webkitTransform="";
    +	eicon.style.webkitAnimation="";
    +}
    +function refresh(){
    +	pull3();
    +	list.setBounce({offset:{top:"50px"}});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +#pull{
    +	width:24px;
    +	height:100%;
    +	display:inline-block;
    +	margin:0 1em;
    +}
    +#icon{
    +	height:24px;
    +	vertical-align:middle;
    +}
    +@-webkit-keyframes spin{
    +    0% {
    +        -webkit-transform:rotate(0deg);
    +    }
    +    100% {
    +        -webkit-transform:rotate(360deg);
    +    }
    +}
    +.irefresh {
    +	background:no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABYCAYAAAADWlKCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTEvMTAvMTUgEQA0AAAEP0lEQVR4nO3aTWhcVRTA8f+NQ6ImLqsu7MLuSiOt74SOoJBYDCp0UdG1BUVdWFBR/CiCLqzaClWhLlQUiqCIHwh1EUFqRyshMudRcVRcWdBFsZCVNQzEXhcz1ZeXaTOdN9N3Jp7f7t3J3JzmD52XvBtijDg7RsoewK3kQYzxIMZ4EGM8iDEexBgPYowHMcaDGONBjPEgxngQYzyIMR7EGA9ijAcxxoMY40GM8SDGeBBjPIgxHsQYD2KMBzHGgxjjQYzxIMZUyh6gF/V6fWsIYQa4A9gCbGy/9BvwIzAXYzw2NTX1fTf7qerDIvLGQIa9SGFYDls3Go2RZrO5C9gNbAeuXeMtp4DvgMNjY2OfTU5Onu30Rar6OPC8iFzV14F7NBRBVHUHcACQXrcAnhSRo7l9HwVeBRCRUGjIPjEdpFarhYmJiX3AM33a8qXFxcW9s7OzK2KAB1mTqo4C7wN3d3h5CfgSOA6cAP5or18NbANuAW4Drujw3neBBnAwu+hBLkBVLwM+ZHWMJeC1EMLbSZL8eqE90jS9Psb4APAYcPla39NKEKt3WS+wOoaGEB5MkiTtZoN2sL2q+inwFnBjn2ccCHO/h6jqNPB0bvkYMNNtjCwRqQM30bolNs9UkIWFhQrwem45BXaKyJ8Ftn4OuKbA+y8ZU/9lVSqVncDWzNJfwG4ROdPrnqr6CvBE0dkuFVNBgPtz14dEpNHrZqp6kNaH+tAwE6Rer28OIVQzS2dCCId62UtVR4B9tGL8Ddi7lTwPM0FCCLcDGzJLR5Mk6fWD+CzwJq3Po6GJAYaCxBjvDGHFrwK1XvcSEYCTBUcqhZm7rBDC5tz1D2XNUiYzQfjvT+gAxBhPlTVImSwFcdgK8nv2IoSw1vOOdclMkBjjT7nrG8qapUxmgoQQ5nJL06UMUjIzQYA54HTmekeaphvP98XrlZkgIvIzsJBZGo8x7ilrnrKYCdL2Tu56j6pOljJJSUwFWV5e/hzIHt25EjisquNF907TdGx+ft7Uv7cTUwNWq9Vl4JHccgIcKRJFVcdjjLXR0dFPGo3GaKEhB8xUEAARqQEv55ZvBWqqmlzsfqoqtA5DVIFdzWbzC1XdVHzSwTAXpO1Z4OPcmgDHVXV/Nz9QVd2kqvuBb2idRDlnBnioX4P2m8lTJwCqWgE+AO7p8PIS8BXwdQghjTGeBgghbIgxbgdupvWD73QM6CPgvoKPhAfGbBAAVQ3Ai6w+9NCrAyLyVJ/2GgjTQc4Z1FFSi4YiCPz7WPYu4F66P2z9LfAecEREOh62tmZogmSp6jZguv2UcQtwHa1HtSeBX2j9GaYmIifKm7I3QxlkPbN62/u/5UGM8SDGeBBjPIgxHsQYD2KMBzHGgxjjQYzxIMZ4EGM8iDEexBgPYowHMcaDGONBjPEgxngQYzyIMR7EGA9ijAcxxoMY40GM8SDG/AOZAi+0sACgewAAAABJRU5ErkJggg==);
    +	background-size:50px 44px;
    +}
    +		</style>
    +	</head>
    +	<body style="background:#EAEAEA;">
    +		<header id="header" style="position:static">
    +			<div class="nvbt iback" onclick="back();"></div>
    +			<div class="nvtt">自定义下拉刷新</div>
    +			<div class="nvbt irefresh" onclick="refresh()"></div>
    +		</header>
    +		<div style="text-align:center;height:44px;line-height:44px;">
    +			<div id="pull"><img id="icon" src="../img/pull_arrow.png"/></div><font id="text">下拉可刷新</font>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_pullrefresh.html b/fangija-zsyf/plus/webview_pullrefresh.html
    new file mode 100644
    index 0000000..7010df7
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_pullrefresh.html
    @@ -0,0 +1,76 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null;
    +var list=null;
    +// 扩展API加载完毕,现在可以正常调用扩展API 
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	ws.setPullToRefresh({support:true,
    +		height:"50px",
    +		range:"200px",
    +		contentdown:{
    +			caption:"下拉可以刷新"
    +		},
    +		contentover:{
    +			caption:"释放立即刷新"
    +		},
    +		contentrefresh:{
    +			caption:"正在刷新..."
    +		}
    +	},onRefresh);
    +}
    +// 判断扩展API是否准备,否则监听"plusready"事件
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOM构建完成获取列表元素
    +document.addEventListener("DOMContentLoaded",function(){
    +	list=document.getElementById("list");
    +})
    +// 刷新页面
    +function onRefresh(){
    +	setTimeout(function(){
    +		if(list){
    +			var item=document.createElement("li");
    +			item.innerHTML="<span>New Item "+(new Date())+"</span>";
    +			list.insertBefore(item,list.firstChild);
    +		}
    +		ws.endPullToRefresh();
    +	},1000);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +li {
    +	padding: 1em;
    +	border-bottom: 1px solid #eaeaea;
    +}
    +li:active {
    +	background: #f4f4f4;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<ul id="list" style="list-style:none;margin:0;padding:0;">
    +			<li><span>Initializ List Item 1</span></li>
    +			<li><span>Initializ List Item 2</span></li>
    +			<li><span>Initializ List Item 3</span></li>
    +			<li><span>Initializ List Item 4</span></li>
    +			<li><span>Initializ List Item 5</span></li>
    +			<li><span>Initializ List Item 6</span></li>
    +			<li><span>Initializ List Item 7</span></li>
    +			<li><span>Initializ List Item 8</span></li>
    +			<li><span>Initializ List Item 9</span></li>
    +			<li><span>Initializ List Item 10</span></li>
    +		</ul>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_pullrefresh_custom.html b/fangija-zsyf/plus/webview_pullrefresh_custom.html
    new file mode 100644
    index 0000000..ee28afa
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_pullrefresh_custom.html
    @@ -0,0 +1,68 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null,wo=null;
    +// 扩展API加载完毕,现在可以正常调用扩展API 
    +function plusReady(){
    +	// 获取自身窗口
    +	ws=plus.webview.currentWebview();
    +	wo=ws.opener();
    +}
    +// 判断扩展API是否准备,否则监听"plusready"事件
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener("plusready",plusReady,false);
    +}
    +// DOM构建完成获取列表元素
    +var list=null;
    +document.addEventListener("DOMContentLoaded",function(){
    +	list=document.getElementById("list");
    +});
    +// 刷新页面
    +function onRefresh(){
    +	setTimeout(function(){
    +		if(list){
    +			var item=document.createElement("li");
    +			item.innerHTML="<span>New Item "+(new Date())+"</span>";
    +			list.insertBefore(item,list.firstChild);
    +		}
    +		ws.resetBounce();
    +		setTimeout(function(){
    +			wo.evalJS("pullReset()");
    +		},200);
    +	},1000);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +li {
    +	padding: 1em;
    +	border-bottom: 1px solid #eaeaea;
    +}
    +li:active {
    +	background: #f4f4f4;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<ul id="list" style="list-style:none;margin:0;padding:0;">
    +			<li><span onclick="alert('ok');">Initializ List Item 1</span></li>
    +			<li><span>Initializ List Item 2</span></li>
    +			<li><span>Initializ List Item 3</span></li>
    +			<li><span>Initializ List Item 4</span></li>
    +			<li><span>Initializ List Item 5</span></li>
    +			<li><span>Initializ List Item 6</span></li>
    +			<li><span>Initializ List Item 7</span></li>
    +			<li><span>Initializ List Item 8</span></li>
    +			<li><span>Initializ List Item 9</span></li>
    +			<li><span>Initializ List Item 10</span></li>
    +		</ul>
    +	</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/webview_pulltorefresh.html b/fangija-zsyf/plus/webview_pulltorefresh.html
    new file mode 100644
    index 0000000..ac13d44
    --- /dev/null
    +++ b/fangija-zsyf/plus/webview_pulltorefresh.html
    @@ -0,0 +1,87 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript" charset="utf-8">
    +var ws=null;
    +var list=null;
    +// 处理沉浸式状态栏
    +var topoffset=0;
    +var ms=(/Html5Plus\/.+\s\(.*(Immersed\/(\d+\.?\d*).*)\)/gi).exec(navigator.userAgent);
    +if(ms&&ms.length>=3){
    +	topoffset=parseFloat(ms[2]);
    +}
    +// 扩展API加载完毕,现在可以正常调用扩展API
    +function plusReady(){
    +	ws=plus.webview.currentWebview();
    +	if(plus.navigator.isImmersedStatusbar()){// 兼容沉浸式状态栏模式
    +		topoffset=Math.round(plus.navigator.getStatusbarHeight());
    +	}
    +	ws.setPullToRefresh({support:true,style:'circle',offset:topoffset+45+'px'},onRefresh);
    +	// 第一次打开页面即开始刷新列表
    +	setTimeout(function(){
    +		console.log('Initializ refresh');
    +		ws.beginPullToRefresh();
    +	},200);
    +}
    +// 判断扩展API是否准备,否则监听'plusready'事件
    +if(window.plus){
    +	plusReady();
    +}else{
    +	document.addEventListener('plusready', plusReady, false);
    +}
    +// DOM构建完成获取列表元素
    +document.addEventListener('DOMContentLoaded', function(){
    +	list=document.getElementById('list');
    +	var offset=document.getElementById('offset');
    +	offset&&(offset.style.height=topoffset+44+'px');
    +});
    +// 刷新页面
    +function onRefresh(){
    +	setTimeout(function(){
    +		if(list){
    +			var item=document.createElement('li');
    +			item.innerHTML='<span>New Item '+(new Date())+'</span>';
    +			list.insertBefore(item,list.firstChild);
    +		}
    +		ws.endPullToRefresh();
    +	},1000);
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +li {
    +	padding: 1em;
    +	border-bottom: 1px solid #eaeaea;
    +}
    +li:active {
    +	background: #f4f4f4;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">下拉刷新</div>
    +		</header>
    +		<div id='offset' style="height:44px;width:100%;"></div>
    +		<ul id="list" style="list-style:none;margin:0;padding:0;">
    +			<li><span>Initializ List Item 1</span></li>
    +			<li><span>Initializ List Item 2</span></li>
    +			<li><span>Initializ List Item 3</span></li>
    +			<li><span>Initializ List Item 4</span></li>
    +			<li><span>Initializ List Item 5</span></li>
    +			<li><span>Initializ List Item 6</span></li>
    +			<li><span>Initializ List Item 7</span></li>
    +			<li><span>Initializ List Item 8</span></li>
    +			<li><span>Initializ List Item 9</span></li>
    +			<li><span>Initializ List Item 10</span></li>
    +		</ul>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/xhr.html b/fangija-zsyf/plus/xhr.html
    new file mode 100644
    index 0000000..6c9cef7
    --- /dev/null
    +++ b/fangija-zsyf/plus/xhr.html
    @@ -0,0 +1,97 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +    	<script type="text/javascript">
    +var url="http://www.dcloud.io/";
    +var xhr=null;
    +
    +function xhrCreate() {
    +	if ( xhr ) {
    +		outLine( "xhr请求已创建" );
    +		return;
    +	}
    +	outSet( "创建请求:" );
    +	xhr = new plus.net.XMLHttpRequest();
    +	xhr.onreadystatechange = function () {
    +        switch ( xhr.readyState ) {
    +            case 0:
    +            	outLine( "xhr请求已初始化" );
    +            break;
    +            case 1:
    +            	outLine( "xhr请求已打开" );
    +            break;
    +            case 2:
    +            	outLine( "xhr请求已发送" );
    +            break;
    +            case 3:
    +                outLine( "xhr请求已响应");
    +                break;
    +            case 4:
    +                outLine( "xhr请求已完成");
    +                if ( xhr.status == 200 ) {
    +                	outLine( "xhr请求成功:"+xhr.responseText );
    +                } else {
    +                	outLine( "xhr请求失败:"+xhr.status );
    +                }
    +                break;
    +            default :
    +                break;
    +        }
    +	}
    +	xhr.open( "GET", url );
    +	xhr.send();
    +}
    +function xhrResponseHeader() {
    +	if ( xhr ) {
    +		if ( xhr.readyState != 4 ) {
    +			outLine( "xhr请求未完成" );
    +		} else if ( xhr.status != 200 ) {
    +			outSet( "xhr请求失败:"+xhr.readyState );
    +		} else {
    +			outSet( "xhr请求响应头数据:" );
    +			outLine( xhr.getAllResponseHeaders() );
    +		}
    +	} else {
    +		outSet( "未发送请求" );
    +	}
    +}
    +function xhrAbort() {
    +	if ( xhr ) {
    +		outSet( "取消请求" );
    +		if ( xhr.readyState != 4 ) {
    +			xhr.abort();
    +		}
    +		xhr = null;
    +	} else {
    +		outSet( "未发送请求" );
    +	}
    +}
    +    	</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">XmlHttpRequest</div>
    +			<div class="nvbt idoc" onclick="openDoc('XmlHttpRequest Document','/doc/xhr.html')"></div>
    +		</header>
    +		<div id="dcontent" class="dcontent">
    +			<br/>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="xhrCreate();">发送请求</li>
    +				<li class="ditem" onclick="xhrResponseHeader();">获取所有响应头</li>
    +				<li class="ditem" onclick="xhrAbort();">取消请求</li>
    +			</ul>
    +		</div>
    +	    <div id="output">
    +XMLHttpRequest管理网络请求操作,可进行跨域网络数据请求。
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/plus/zip.html b/fangija-zsyf/plus/zip.html
    new file mode 100644
    index 0000000..11053ba
    --- /dev/null
    +++ b/fangija-zsyf/plus/zip.html
    @@ -0,0 +1,132 @@
    +<!DOCTYPE HTML>
    +<html>
    +	<head>
    +		<meta charset="utf-8"/>
    +		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    +		<meta name="HandheldFriendly" content="true"/>
    +		<meta name="MobileOptimized" content="320"/>
    +		<title>Hello H5+</title>
    +		<script type="text/javascript" src="../js/common.js"></script>
    +		<script type="text/javascript">
    +var zip = "_doc/zip/index.zip",
    +unzip = "_doc/zip/index/";
    +function doCompress(){
    +	plus.zip.compress( "_www/index.html", zip, function(){
    +		outLine( "操作成功!保存路径为:"+zip );
    +	}, function(e){
    +		outLine( "操作失败:"+e.message );
    +	} );
    +}
    +function compress(){
    +	outSet( "压缩文件:" );
    +	plus.io.resolveLocalFileSystemURL( zip, function(entry){
    +		outLine( "文件已存在,中止操作!" );
    +		plus.nativeUI.confirm( "压缩文件已存在,是否立即删除", function(i){
    +			if ( i.index == 0 ) {
    +				entry.remove();
    +			}
    +		} );
    +	}, function(e){
    +		doCompress();
    +	} );
    +}
    +function doDecompress(){
    +	plus.zip.decompress( zip, unzip, function(){
    +		outLine( "操作成功!保存路径为:"+unzip );
    +	}, function(e){
    +		outLine( "操作失败:"+e.message );
    +	} );
    +}
    +function decompress(){
    +	outSet( "解压文件:" );
    +	plus.io.resolveLocalFileSystemURL( unzip, function(entry){
    +		outLine( "目录已存在,中止操作!" );
    +		plus.nativeUI.confirm( "解压目录已存在,是否立即删除", function(i){
    +			if ( i.index == 0 ) {
    +				entry.removeRecursively();
    +			}
    +		} );
    +	}, function(e){
    +		plus.io.resolveLocalFileSystemURL( zip, function(entry){
    +			doDecompress();
    +		}, function(e){
    +			plus.nativeUI.alert( "压缩文件不存在,请先压缩文件!" );
    +			outLine( "压缩文件不存在,中止操作!" );
    +		} );
    +	} );
    +}
    +function clearZip(){
    +	outSet( "清空数据!" );
    +	plus.io.resolveLocalFileSystemURL( "_doc/zip/", function(entry){
    +		entry.removeRecursively();
    +	} );
    +}
    +
    +// 压缩图片
    +function compressImage(){
    +	outSet("开始压缩图片:");
    +	plus.nativeUI.showWaiting();
    +	plus.zip.compressImage({
    +		src:"_www/img/shake/1.jpg",
    +		dst:"_doc/cm.jpg",
    +		quality:20,
    +		overwrite:true,
    +		width:'50%',
    +		clip:{
    +			top:"25%",
    +			left:"25%",
    +			width:"50%",
    +			height:"50%"
    +		}
    +	},
    +	function(i){
    +		plus.nativeUI.closeWaiting();
    +		display.style.display="block";
    +		clipimg.src=i.target;
    +		outLine("压缩图片成功:"+JSON.stringify(i));
    +	},function(e){
    +		plus.nativeUI.closeWaiting();
    +		outLine("压缩图片失败: "+JSON.stringify(e));
    +	});
    +}
    +		</script>
    +		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
    +		<style type="text/css">
    +.display {
    +	width: 100%;
    +	height: 100%;
    +	display: none;
    +	text-align: center;
    +	padding-top: 30%;
    +	position: fixed;
    +	top: 0;
    +	background: rgba(0,0,0,0.8);
    +	z-index: 9999;
    +	overflow: hidden;
    +}
    +		</style>
    +	</head>
    +	<body>
    +		<header id="header">
    +			<div class="nvbt iback" onclick="back()"></div>
    +			<div class="nvtt">ZIP</div>
    +			<div class="nvbt idoc" onclick="openDoc('ZIP Document','/doc/zip.html')"></div>
    +		</header>
    +        <div id="dcontent" class="dcontent">
    +			<br/>
    +			<div class="button" onclick="compressImage()">压缩图片</div>
    +			<ul class="dlist">
    +				<li class="ditem" onclick="compress();">压缩文件</li>
    +				<li class="ditem" onclick="decompress();">解压文件</li>
    +				<li class="ditem" onclick="clearZip();">清理数据</li>
    +			</ul>
    +		</div>
    +		<div id="output">
    +Zip管理压缩文件,用于Zip文件的压缩与解压缩。
    +		</div>
    +		<div id='display' class="display" onclick="this.style.display='none';">
    +			<img id="clipimg" style="margin:auto;"/>
    +		</div>
    +	</body>
    +	<script type="text/javascript" src="../js/immersed.js" ></script>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/sa.png b/fangija-zsyf/sa.png
    new file mode 100644
    index 0000000..da1e0ac
    Binary files /dev/null and b/fangija-zsyf/sa.png differ
    diff --git a/fangija-zsyf/sa@2x.png b/fangija-zsyf/sa@2x.png
    new file mode 100644
    index 0000000..49ca20a
    Binary files /dev/null and b/fangija-zsyf/sa@2x.png differ
    diff --git a/fangija-zsyf/sa@3x.png b/fangija-zsyf/sa@3x.png
    new file mode 100644
    index 0000000..dfc9ad0
    Binary files /dev/null and b/fangija-zsyf/sa@3x.png differ
    diff --git a/fangija-zsyf/start.html b/fangija-zsyf/start.html
    new file mode 100644
    index 0000000..cb0ba88
    --- /dev/null
    +++ b/fangija-zsyf/start.html
    @@ -0,0 +1,71 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +    <meta charset="utf-8">
    +    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    +    <title>掌上有房</title>
    +    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +    <link rel="shortcut icon" href="/favicon.ico">
    +    <meta name="apple-mobile-web-app-capable" content="yes">
    +    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    +
    +    <link rel="stylesheet" href="css/sm.css">
    +    <link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
    +    <link rel="stylesheet" href="css/main.css">
    +    <link rel="stylesheet" href="css/theme-blue.css">
    +<script src="config.js"></script>
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +        <div class="content contentStart">
    +            <a class="time" onclick="skip()">跳过 <span id="time">5</span></a>
    +            <img src="images/start.png">
    +            <div class="content-block">
    +                <p><a onclick="clicked('/views/house/add.html',true,false,{},{})" class="button button-big button-fill button-round theme" id="test_btn">立即测试<i class="mui-icon mui-icon-arrowright"></i></a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +    /* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +    Zepto = $
    +    $.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="js/common.js" charset="utf-8"></script>
    +<script src="js/mui.min.js"></script>
    +
    +<script>
    +	mui.plusReady(function() {
    +		
    +	});
    +    /* 5s倒计时后跳转页面 */
    +    function run(){
    +        var time = document.getElementById("time");
    +        if(time.innerHTML == 0){
    +        	lauchFlag = true;
    +			plus.navigator.setFullscreen(false);
    +			plus.webview.currentWebview().close();
    +            return false;
    +        }
    +        time.innerHTML = time.innerHTML * 1 - 1;
    +    }
    +    window.setInterval("run();", 1000);
    +
    +	function skip() {
    +		lauchFlag = true;
    +		plus.navigator.setFullscreen(false);
    +		plus.webview.currentWebview().close();
    +	}
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/component/baseInfoComponent.js b/fangija-zsyf/views/component/baseInfoComponent.js
    new file mode 100644
    index 0000000..abc8111
    --- /dev/null
    +++ b/fangija-zsyf/views/component/baseInfoComponent.js
    @@ -0,0 +1,248 @@
    +
    +var dataParam = {
    +		finishBuildingDate:"",
    +	householdCount:"",
    +	cubagePercent:"",
    +	carSiteCount:"",
    +	virescencePercent:"",
    +	estateCharge:"",
    +	moreArea:"",
    +	developer:"",
    +	lat:"",
    +	lng:"",
    +	estateCompany:""
    +};		
    +Vue.component('base-info-component', {
    +  template: `
    +   <ul>
    +					<li>
    +						<a class="item-content">
    +							<div class="item-inner" style="padding-top:0.75rem;padding-bottom:0.25rem;">
    +								<div class="item-title-row">
    +									<div class="item-title">基本信息</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +					<li>
    +						<a class="item-content">
    +							<div class="item-inner" style="padding-top:0;">
    +								<div class="item-title-row" style="width:100%;">
    +									<div class="item-title row">
    +										<div class="col-50">
    +											<p>
    +												<label>竣工年代:</label>
    +												<span v-if="finishBuildingDate">{{finishBuildingDate}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>容<small class="spacing01a">&nbsp;</small>积<small class="spacing01a">&nbsp;</small>率:</label>
    +												<span v-if="cubagePercent">{{cubagePercent}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>绿<small class="spacing01a">&nbsp;</small>化<small class="spacing01a">&nbsp;</small>率:</label>
    +												<span v-if="virescencePercent">{{virescencePercent}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>主力面积:</label>
    +												<span v-if="moreArea">{{moreArea}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>开<small class="spacing01a">&nbsp;</small>发<small class="spacing01a">&nbsp;</small>商:</label>
    +												<span class="span01" v-if="developer">{{developer}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>物业公司:</label>
    +												<span class="span01" v-if="estateCompany">{{estateCompany}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +										</div>
    +										<div class="col-50">
    +											<p>
    +												<label>总<small class="spacing01a">&nbsp;</small>户<small class="spacing01a">&nbsp;</small>数:</label>
    +												<span>{{householdCount}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>停<small class="spacing01a">&nbsp;</small>车<small class="spacing01a">&nbsp;</small>位:</label>
    +												<span v-if="carSiteCount">{{carSiteCount}}</span>
    +												<span v-else>暂无</span>
    +											</p>
    +											
    +											<p>
    +												<label>物<small class="spacing01a">&nbsp;</small>业<small class="spacing01a">&nbsp;</small>费:</label>
    +												<span v-if="estateCharge">{{estateCharge}}元/㎡/月</span>
    +												<span v-else>暂无</span>
    +											</p>
    +										</div>
    +									</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +				</ul>
    +  `,
    +  data: function(){
    +    return dataParam;
    +  },
    +  methods: {
    +  		loadDistrictInfo:function(){
    +				axios.get("/rest/districts/detail", {
    +				    params: {
    +				      city: city,
    +				      region:region,
    +				      name: name
    +				    }
    +				}).then(function (response) {
    +					var vo = response.data.data.detail
    +					var cityPrice = response.data.data.cityPrice
    +					var collected = response.data.data.collected
    +					if(cityPrice){
    +						baseInfo.cityPrice = cityPrice
    +					}
    +					if(collected){
    +						$(".collection02").show();
    +						$(".collection01").hide();
    +					}else{
    +						$(".collection02").hide();
    +						$(".collection01").show();
    +					}
    +					$(".loadingBg").hide();
    +					if(vo){
    +						if(vo.avgPrice){
    +							lat = vo.lat2;
    +							lng = vo.lng2;
    +							address = vo.address;
    +							
    +							
    +							baseInfo.city = vo.city
    +							baseInfo.region = vo.region
    +							baseInfo.address = vo.address;
    +							baseInfo.name = vo.name
    +							
    +							tags = vo.poiTags;
    +							
    +							if(vo.poiTags){
    +								if(vo.poiTags.length>=3){
    +									baseInfo.tags = vo.poiTags.slice(0,3);
    +								}else{
    +									baseInfo.tags = vo.poiTags;
    +								}
    +							}
    +							
    +							baseInfo.avgPrice = vo.avgPrice;
    +							baseInfo.oneMonthUpDownRange = vo.oneMonthUpDownRange;
    +							if(vo.rank){
    +								baseInfo.priceRate = vo.rank.substring(0, vo.rank.indexOf("/"));
    +							}
    +							
    +							baseInfo.cityPrice = cityPrice;
    +							var finishDate = ""
    +							if(vo.finishBuildingDate){
    +								if(vo.finishBuildingDate.indexOf("~")!=-1){
    +									finishDate = vo.finishBuildingDate.replace("年","");
    +								}else{
    +									finishDate = vo.finishBuildingDate.substring(0,4)+"年"
    +								}
    +							}
    +							
    +							dataParam.finishBuildingDate = finishDate;
    +							dataParam.householdCount = vo.householdCount;
    +							dataParam.cubagePercent = vo.cubagePercent;
    +							dataParam.carSiteCount = vo.carSiteCount;
    +							dataParam.virescencePercent = vo.virescencePercent;
    +							dataParam.estateCharge = vo.estateCharge;
    +							dataParam.moreArea = vo.moreArea;
    +							dataParam.developer = vo.developer;
    +							dataParam.estateCompany = vo.estateCompany;
    +							
    +							var starScore = response.data.data.starScore
    +							
    +							var starHtml = $("#distLevelDiv .star")
    +							if(starHtml.length>0){
    +									if(starScore && starScore > 0){
    +									
    +									var html = getStarContent(starScore);
    +									$("#distLevelDiv .star").html(html);
    +									
    +									
    +									
    +									var regionIndex = response.data.data.regionIndex
    +									var districtPoiCount = response.data.data.districtPoiCount
    +									
    +									var schoolIndex = response.data.data.schoolIndex
    +									var arroundIndex = response.data.data.arroundIndex
    +									
    +									var indexs = []
    +									indexs.push(vo.index);
    +									indexs.push(regionIndex);
    +									indexs.push(schoolIndex);
    +									indexs.push(arroundIndex);
    +									
    +									/* 小区评级 */
    +									loadDistrictLevel(indexs);
    +								}else{
    +									$("#distLevelDiv").hide()
    +								}
    +							}else{
    +								var ht = $("#arroundLevelDiv")
    +								if(ht.length>0){
    +									var score = response.data.data.arroundIndexStar
    +									if(score > 0){
    +										var html = getStarContent(score);
    +										$("#arroundLevelDiv .star").html("生活便利  "+html);
    +									}else{
    +										$("#arroundLevelDiv").hide();
    +									}
    +									
    +								}
    +							}
    +							
    +						}else{
    +							$("#noDataDiv").show()
    +							baseInfo.name = "小区详情"
    +						}
    +					}
    +					
    +				}).catch(function (error) {
    +				   console.log(error);
    +				});
    +			}
    +  },mounted:function(){
    +  	this.loadDistrictInfo();
    +  }
    +})
    +
    +function getStarContent(starScore){
    +	var mod = starScore - parseInt(starScore);
    +	var num = parseInt(starScore);
    +	var nn = 5 - num;
    +	
    +	var html = ""
    +	for(var i=1;i<=num;i++){
    +		html +="<i class='icon icon-star01'></i>"
    +	}
    +	if(mod==0.5){
    +		html +="<i class='icon icon-star02'></i>"
    +	}
    +	if(nn >0){
    +		if(mod==0.5){
    +			nn = nn -1
    +		}
    +		for(var j=1;j<=nn;j++){
    +			html +="<i class='icon icon-star'></i>"
    +		}
    +	}
    +	return html;
    +}
    +
    diff --git a/fangija-zsyf/views/component/cityChooseComponent.js b/fangija-zsyf/views/component/cityChooseComponent.js
    new file mode 100644
    index 0000000..ef8b95f
    --- /dev/null
    +++ b/fangija-zsyf/views/component/cityChooseComponent.js
    @@ -0,0 +1,882 @@
    +////markFocus:已关注城市是否加标志(0:否,1:是)
    +////clickFocus:点击城市是否添加关注(0:否,1:是)
    +//var cityChooseOption = {markFocus:0,clickFocus:0}
    +
    +Vue.component('city_choose',{
    +	props:['city1'],
    +	template:
    +'		<div class="popup popup-about popup-about01">                                                                           '+
    +'		    <div class="bar">                                                                                                   '+
    +'		        <div class="searchbar row">                                                                                     '+
    +'		       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>                                       '+
    +'					<div class="search-input col-95">                                                                           '+
    +'		                <label class="icon icon-search" for="search"></label>                                                   '+
    +'		                <input type="search" id="citySearchInp" placeholder="请输入城市名称进行搜索">                           '+
    +'		            </div>                                                                                                      '+
    +'		        </div>                                                                                                          '+
    +'		        <div class="buttons-tab theme">                                                                                 '+
    +'					<a href="#tabCity1" class="tab-link button active">按拼音字母</a>                                           '+
    +'					<a href="#tabCity2" class="tab-link button">按城市等级</a>                                                  '+
    +'				</div>                                                                                                          '+
    +'		    </div>                                                                                                              '+
    +'			<div class="tabs">                                                                                                  '+
    +'				<div id="tabCity1" class="tab active">                                                                          '+
    +'					<div class="content-block content-block01 content">                                                         '+
    +'						<div id="cityContainer" class="container">                                                              '+
    +'							<div class="cityGPS">                                                                               '+
    +'								<div class="city-list01 close-popup">                                                           '+
    +'									<p class="nowCity">{{city1}}</p>                                                                 '+
    +'									<small>当前城市</small>                                                                     '+
    +'								</div>                                                                                          '+
    +'							</div>                                                                                              '+
    +'							<div class="cityHot">                                                                               '+
    +'								<div class="city-list01">                                                                       '+
    +'									<span class="city-letter" id="Hot">热门城市</span>                                          '+
    +'									<div>                                                                                       '+
    +'										<p class="close-popup">北京</p>                                                         '+
    +'										<p class="close-popup">上海</p>                                                         '+
    +'										<p class="close-popup">广州</p>                                                         '+
    +'									</div>                                                                                      '+
    +'									<div>                                                                                       '+
    +'										<p class="close-popup">深圳</p>                                                         '+
    +'										<p class="close-popup">成都</p>                                                         '+
    +'										<p class="close-popup">杭州</p>                                                         '+
    +'									</div>                                                                                      '+
    +'									<div>                                                                                       '+
    +'										<p class="close-popup">南京</p>                                                         '+
    +'										<p class="close-popup">重庆</p>                                                         '+
    +'										<p class="close-popup">天津</p>                                                         '+
    +'									</div>                                                                                      '+
    +'								</div>                                                                                          '+
    +'							</div>                                                                                              '+
    +'							<div class="city">                                                                                  '+
    +'								<div class="city-list"><span class="city-letter" id="A1">A</span>                               '+
    +'									<p class="close-popup">阿坝州</p>                                                           '+
    +'									<p class="close-popup collectionCity">阿克苏<i class="icon-collection03"></i></p>           '+
    +'									<p class="close-popup">阿拉尔</p>                                                           '+
    +'									<p class="close-popup">阿勒泰</p>                                                           '+
    +'									<p class="close-popup">阿里</p>                                                             '+
    +'									<p class="close-popup">阿拉善盟</p>                                                         '+
    +'									<p class="close-popup">鞍山</p>                                                             '+
    +'									<p class="close-popup">安康</p>                                                             '+
    +'									<p class="close-popup">安阳</p>                                                             '+
    +'									<p class="close-popup">安庆</p>                                                             '+
    +'									<p class="close-popup">安顺</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="B1">B</span>                               '+
    +'									<p class="close-popup">百色</p>                                                             '+
    +'									<p class="close-popup">白沙</p>                                                             '+
    +'									<p class="close-popup">白城</p>                                                             '+
    +'									<p class="close-popup">白山</p>                                                             '+
    +'									<p class="close-popup">白银</p>                                                             '+
    +'									<p class="close-popup">包头</p>                                                             '+
    +'									<p class="close-popup">保定</p>                                                             '+
    +'									<p class="close-popup">宝鸡</p>                                                             '+
    +'									<p class="close-popup">保山</p>                                                             '+
    +'									<p class="close-popup">保亭</p>                                                             '+
    +'									<p class="close-popup">巴彦淖尔</p>                                                         '+
    +'									<p class="close-popup">巴音郭楞</p>                                                         '+
    +'									<p class="close-popup">巴中</p>                                                             '+
    +'									<p class="close-popup">蚌埠</p>                                                             '+
    +'									<p class="close-popup">北海</p>                                                             '+
    +'									<p class="close-popup">本溪</p>                                                             '+
    +'									<p class="close-popup">毕节</p>                                                             '+
    +'									<p class="close-popup">滨州</p>                                                             '+
    +'									<p class="close-popup">北京</p>                                                             '+
    +'									<p class="close-popup">博尔塔拉</p>                                                         '+
    +'									<p class="close-popup">亳州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="C1">C</span>                               '+
    +'									<p class="close-popup">成都</p>                                                             '+
    +'									<p class="close-popup">赤峰</p>                                                             '+
    +'									<p class="close-popup">长春</p>                                                             '+
    +'									<p class="close-popup">长治</p>                                                             '+
    +'									<p class="close-popup">长沙</p>                                                             '+
    +'									<p class="close-popup">常德</p>                                                             '+
    +'									<p class="close-popup">常州</p>                                                             '+
    +'									<p class="close-popup">昌都</p>                                                             '+
    +'									<p class="close-popup">昌吉</p>                                                             '+
    +'									<p class="close-popup">昌江</p>                                                             '+
    +'									<p class="close-popup">潮州</p>                                                             '+
    +'									<p class="close-popup">承德</p>                                                             '+
    +'									<p class="close-popup">郴州</p>                                                             '+
    +'									<p class="close-popup">池州</p>                                                             '+
    +'									<p class="close-popup">崇左</p>                                                             '+
    +'									<p class="close-popup">楚雄</p>                                                             '+
    +'									<p class="close-popup">滁州</p>                                                             '+
    +'									<p class="close-popup">澄迈</p>                                                             '+
    +'									<p class="close-popup">重庆</p>                                                             '+
    +'									<p class="close-popup">朝阳</p>                                                             '+
    +'									<p class="close-popup">沧州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="D1">D</span>                               '+
    +'									<p class="close-popup">定安</p>                                                             '+
    +'									<p class="close-popup">定西</p>                                                             '+
    +'									<p class="close-popup">大理</p>                                                             '+
    +'									<p class="close-popup">大庆</p>                                                             '+
    +'									<p class="close-popup">大兴安岭</p>                                                         '+
    +'									<p class="close-popup">大连</p>                                                             '+
    +'									<p class="close-popup">大同</p>                                                             '+
    +'									<p class="close-popup">丹东</p>                                                             '+
    +'									<p class="close-popup">儋州</p>                                                             '+
    +'									<p class="close-popup">迪庆州</p>                                                           '+
    +'									<p class="close-popup">达州</p>                                                             '+
    +'									<p class="close-popup">德阳</p>                                                             '+
    +'									<p class="close-popup">德宏州</p>                                                           '+
    +'									<p class="close-popup">德州</p>                                                             '+
    +'									<p class="close-popup">东方</p>                                                             '+
    +'									<p class="close-popup">东莞</p>                                                             '+
    +'									<p class="close-popup">东营</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="E1">E</span>                               '+
    +'									<p class="close-popup">鄂尔多斯</p>                                                         '+
    +'									<p class="close-popup">恩施</p>                                                             '+
    +'									<p class="close-popup">鄂州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="F1">F</span>                               '+
    +'									<p class="close-popup">防城港</p>                                                           '+
    +'									<p class="close-popup">佛山</p>                                                             '+
    +'									<p class="close-popup">抚顺</p>                                                             '+
    +'									<p class="close-popup">抚州</p>                                                             '+
    +'									<p class="close-popup">阜新</p>                                                             '+
    +'									<p class="close-popup">阜阳</p>                                                             '+
    +'									<p class="close-popup">福州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="G1">G</span>                               '+
    +'									<p class="close-popup">甘南</p>                                                             '+
    +'									<p class="close-popup">甘孜州</p>                                                           '+
    +'									<p class="close-popup">赣州</p>                                                             '+
    +'									<p class="close-popup">贵港</p>                                                             '+
    +'									<p class="close-popup">贵阳</p>                                                             '+
    +'									<p class="close-popup">桂林</p>                                                             '+
    +'									<p class="close-popup">果洛州</p>                                                           '+
    +'									<p class="close-popup">固原</p>                                                             '+
    +'									<p class="close-popup">广安</p>                                                             '+
    +'									<p class="close-popup">广元</p>                                                             '+
    +'									<p class="close-popup">广州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="H1">H</span>                               '+
    +'									<p class="close-popup">哈尔滨</p>                                                           '+
    +'									<p class="close-popup">哈密</p>                                                             '+
    +'									<p class="close-popup">海北州</p>                                                           '+
    +'									<p class="close-popup">海口</p>                                                             '+
    +'									<p class="close-popup">海南州</p>                                                           '+
    +'									<p class="close-popup">海西州</p>                                                           '+
    +'									<p class="close-popup">海东</p>                                                             '+
    +'									<p class="close-popup">邯郸</p>                                                             '+
    +'									<p class="close-popup">汉中</p>                                                             '+
    +'									<p class="close-popup">鹤壁</p>                                                             '+
    +'									<p class="close-popup">鹤岗</p>                                                             '+
    +'									<p class="close-popup">河池</p>                                                             '+
    +'									<p class="close-popup">河源</p>                                                             '+
    +'									<p class="close-popup">合肥</p>                                                             '+
    +'									<p class="close-popup">黑河</p>                                                             '+
    +'									<p class="close-popup">衡水</p>                                                             '+
    +'									<p class="close-popup">衡阳</p>                                                             '+
    +'									<p class="close-popup">和田</p>                                                             '+
    +'									<p class="close-popup">菏泽</p>                                                             '+
    +'									<p class="close-popup">贺州</p>                                                             '+
    +'									<p class="close-popup">黄冈</p>                                                             '+
    +'									<p class="close-popup">红河</p>                                                             '+
    +'									<p class="close-popup">淮安</p>                                                             '+
    +'									<p class="close-popup">淮北</p>                                                             '+
    +'									<p class="close-popup">淮南</p>                                                             '+
    +'									<p class="close-popup">怀化</p>                                                             '+
    +'									<p class="close-popup">黄南州</p>                                                           '+
    +'									<p class="close-popup">黄山</p>                                                             '+
    +'									<p class="close-popup">黄石</p>                                                             '+
    +'									<p class="close-popup">呼和浩特</p>                                                         '+
    +'									<p class="close-popup">呼伦贝尔</p>                                                         '+
    +'									<p class="close-popup">惠州</p>                                                             '+
    +'									<p class="close-popup">葫芦岛</p>                                                           '+
    +'									<p class="close-popup">湖州</p>                                                             '+
    +'									<p class="close-popup">杭州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="J1">J</span>                               '+
    +'									<p class="close-popup">吉安</p>                                                             '+
    +'									<p class="close-popup">吉林</p>                                                             '+
    +'									<p class="close-popup">晋城</p>                                                             '+
    +'									<p class="close-popup">晋中</p>                                                             '+
    +'									<p class="close-popup">景德镇</p>                                                           '+
    +'									<p class="close-popup">佳木斯</p>                                                           '+
    +'									<p class="close-popup">江门</p>                                                             '+
    +'									<p class="close-popup">焦作</p>                                                             '+
    +'									<p class="close-popup">嘉兴</p>                                                             '+
    +'									<p class="close-popup">嘉峪关</p>                                                           '+
    +'									<p class="close-popup">揭阳</p>                                                             '+
    +'									<p class="close-popup">金昌</p>                                                             '+
    +'									<p class="close-popup">金华</p>                                                             '+
    +'									<p class="close-popup">济宁</p>                                                             '+
    +'									<p class="close-popup">济南</p>                                                             '+
    +'									<p class="close-popup">济源</p>                                                             '+
    +'									<p class="close-popup">锦州</p>                                                             '+
    +'									<p class="close-popup">九江</p>                                                             '+
    +'									<p class="close-popup">酒泉</p>                                                             '+
    +'									<p class="close-popup">荆门</p>                                                             '+
    +'									<p class="close-popup">荆州</p>                                                             '+
    +'									<p class="close-popup">鸡西</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="K1">K</span>                               '+
    +'									<p class="close-popup">喀什</p>                                                             '+
    +'									<p class="close-popup">克拉玛依</p>                                                         '+
    +'									<p class="close-popup">克孜勒苏</p>                                                         '+
    +'									<p class="close-popup">开封</p>                                                             '+
    +'									<p class="close-popup">昆明</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="L1">L</span>                               '+
    +'									<p class="close-popup">六安</p>                                                             '+
    +'									<p class="close-popup">来宾</p>                                                             '+
    +'									<p class="close-popup">廊坊</p>                                                             '+
    +'									<p class="close-popup">兰州</p>                                                             '+
    +'									<p class="close-popup">拉萨</p>                                                             '+
    +'									<p class="close-popup">娄底</p>                                                             '+
    +'									<p class="close-popup">乐东</p>                                                             '+
    +'									<p class="close-popup">乐山</p>                                                             '+
    +'									<p class="close-popup">凉山州</p>                                                           '+
    +'									<p class="close-popup">聊城</p>                                                             '+
    +'									<p class="close-popup">辽阳</p>                                                             '+
    +'									<p class="close-popup">辽源</p>                                                             '+
    +'									<p class="close-popup">丽江</p>                                                             '+
    +'									<p class="close-popup">丽水</p>                                                             '+
    +'									<p class="close-popup">临沧</p>                                                             '+
    +'									<p class="close-popup">临高</p>                                                             '+
    +'									<p class="close-popup">临汾</p>                                                             '+
    +'									<p class="close-popup">临夏</p>                                                             '+
    +'									<p class="close-popup">临沂</p>                                                             '+
    +'									<p class="close-popup">陵水</p>                                                             '+
    +'									<p class="close-popup">林芝</p>                                                             '+
    +'									<p class="close-popup">六盘水</p>                                                           '+
    +'									<p class="close-popup">柳州</p>                                                             '+
    +'									<p class="close-popup">吕梁</p>                                                             '+
    +'									<p class="close-popup">陇南</p>                                                             '+
    +'									<p class="close-popup">龙岩</p>                                                             '+
    +'									<p class="close-popup">漯河</p>                                                             '+
    +'									<p class="close-popup">洛阳</p>                                                             '+
    +'									<p class="close-popup">莱芜</p>                                                             '+
    +'									<p class="close-popup">连云港</p>                                                           '+
    +'									<p class="close-popup">泸州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="M1">M</span>                               '+
    +'									<p class="close-popup">茂名</p>                                                             '+
    +'									<p class="close-popup">马鞍山</p>                                                           '+
    +'									<p class="close-popup">眉山</p>                                                             '+
    +'									<p class="close-popup">梅州</p>                                                             '+
    +'									<p class="close-popup">绵阳</p>                                                             '+
    +'									<p class="close-popup">牡丹江</p>                                                           '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="N1">N</span>                               '+
    +'									<p class="close-popup">南昌</p>                                                             '+
    +'									<p class="close-popup">南宁</p>                                                             '+
    +'									<p class="close-popup">南平</p>                                                             '+
    +'									<p class="close-popup">南通</p>                                                             '+
    +'									<p class="close-popup">南阳</p>                                                             '+
    +'									<p class="close-popup">南充</p>                                                             '+
    +'									<p class="close-popup">南京</p>                                                             '+
    +'									<p class="close-popup">那曲</p>                                                             '+
    +'									<p class="close-popup">宁波</p>                                                             '+
    +'									<p class="close-popup">宁德</p>                                                             '+
    +'									<p class="close-popup">内江</p>                                                             '+
    +'									<p class="close-popup">怒江州</p>                                                           '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="P1">P</span>                               '+
    +'									<p class="close-popup">盘锦</p>                                                             '+
    +'									<p class="close-popup">攀枝花</p>                                                           '+
    +'									<p class="close-popup">平顶山</p>                                                           '+
    +'									<p class="close-popup">萍乡</p>                                                             '+
    +'									<p class="close-popup">平凉</p>                                                             '+
    +'									<p class="close-popup">普洱</p>                                                             '+
    +'									<p class="close-popup">莆田</p>                                                             '+
    +'									<p class="close-popup">濮阳</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="Q1">Q</span>                               '+
    +'									<p class="close-popup">青岛</p>                                                             '+
    +'									<p class="close-popup">琼海</p>                                                             '+
    +'									<p class="close-popup">琼中</p>                                                             '+
    +'									<p class="close-popup">秦皇岛</p>                                                           '+
    +'									<p class="close-popup">黔东南</p>                                                           '+
    +'									<p class="close-popup">黔南</p>                                                             '+
    +'									<p class="close-popup">黔西南</p>                                                           '+
    +'									<p class="close-popup">庆阳</p>                                                             '+
    +'									<p class="close-popup">清远</p>                                                             '+
    +'									<p class="close-popup">钦州</p>                                                             '+
    +'									<p class="close-popup">潜江</p>                                                             '+
    +'									<p class="close-popup">齐齐哈尔</p>                                                         '+
    +'									<p class="close-popup">七台河</p>                                                           '+
    +'									<p class="close-popup">泉州</p>                                                             '+
    +'									<p class="close-popup">曲靖</p>                                                             '+
    +'									<p class="close-popup">衢州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="R1">R</span>                               '+
    +'									<p class="close-popup">日喀则</p>                                                           '+
    +'									<p class="close-popup">日照</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="S1">S</span>                               '+
    +'									<p class="close-popup">三明</p>                                                             '+
    +'									<p class="close-popup">三亚</p>                                                             '+
    +'									<p class="close-popup">三门峡</p>                                                           '+
    +'									<p class="close-popup">三沙</p>                                                             '+
    +'									<p class="close-popup">上海</p>                                                             '+
    +'									<p class="close-popup">上饶</p>                                                             '+
    +'									<p class="close-popup">商洛</p>                                                             '+
    +'									<p class="close-popup">商丘</p>                                                             '+
    +'									<p class="close-popup">山南</p>                                                             '+
    +'									<p class="close-popup">汕头</p>                                                             '+
    +'									<p class="close-popup">汕尾</p>                                                             '+
    +'									<p class="close-popup">韶关</p>                                                             '+
    +'									<p class="close-popup">绍兴</p>                                                             '+
    +'									<p class="close-popup">邵阳</p>                                                             '+
    +'									<p class="close-popup">十堰</p>                                                             '+
    +'									<p class="close-popup">双鸭山</p>                                                           '+
    +'									<p class="close-popup">朔州</p>                                                             '+
    +'									<p class="close-popup">石河子</p>                                                           '+
    +'									<p class="close-popup">石家庄</p>                                                           '+
    +'									<p class="close-popup">石嘴山</p>                                                           '+
    +'									<p class="close-popup">神农架</p>                                                           '+
    +'									<p class="close-popup">松原</p>                                                             '+
    +'									<p class="close-popup">四平</p>                                                             '+
    +'									<p class="close-popup">绥化</p>                                                             '+
    +'									<p class="close-popup">遂宁</p>                                                             '+
    +'									<p class="close-popup">随州</p>                                                             '+
    +'									<p class="close-popup">宿迁</p>                                                             '+
    +'									<p class="close-popup">宿州</p>                                                             '+
    +'									<p class="close-popup">苏州</p>                                                             '+
    +'									<p class="close-popup">沈阳</p>                                                             '+
    +'									<p class="close-popup">深圳</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="T1">T</span>                               '+
    +'									<p class="close-popup">塔城</p>                                                             '+
    +'									<p class="close-popup">唐山</p>                                                             '+
    +'									<p class="close-popup">天津</p>                                                             '+
    +'									<p class="close-popup">天门</p>                                                             '+
    +'									<p class="close-popup">天水</p>                                                             '+
    +'									<p class="close-popup">铁岭</p>                                                             '+
    +'									<p class="close-popup">图木舒克</p>                                                         '+
    +'									<p class="close-popup">通化</p>                                                             '+
    +'									<p class="close-popup">通辽</p>                                                             '+
    +'									<p class="close-popup">铜川</p>                                                             '+
    +'									<p class="close-popup">铜陵</p>                                                             '+
    +'									<p class="close-popup">铜仁</p>                                                             '+
    +'									<p class="close-popup">吐鲁番</p>                                                           '+
    +'									<p class="close-popup">屯昌</p>                                                             '+
    +'									<p class="close-popup">泰安</p>                                                             '+
    +'									<p class="close-popup">泰州</p>                                                             '+
    +'									<p class="close-popup">太原</p>                                                             '+
    +'									<p class="close-popup">台州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="W1">W</span>                               '+
    +'									<p class="close-popup">文昌</p>                                                             '+
    +'									<p class="close-popup">文山州</p>                                                           '+
    +'									<p class="close-popup">潍坊</p>                                                             '+
    +'									<p class="close-popup">威海</p>                                                             '+
    +'									<p class="close-popup">渭南</p>                                                             '+
    +'									<p class="close-popup">乌兰察布</p>                                                         '+
    +'									<p class="close-popup">乌鲁木齐</p>                                                         '+
    +'									<p class="close-popup">乌海</p>                                                             '+
    +'									<p class="close-popup">无锡</p>                                                             '+
    +'									<p class="close-popup">芜湖</p>                                                             '+
    +'									<p class="close-popup">吴忠</p>                                                             '+
    +'									<p class="close-popup">五指山</p>                                                           '+
    +'									<p class="close-popup">五家渠</p>                                                           '+
    +'									<p class="close-popup">武汉</p>                                                             '+
    +'									<p class="close-popup">武威</p>                                                             '+
    +'									<p class="close-popup">梧州</p>                                                             '+
    +'									<p class="close-popup">万宁</p>                                                             '+
    +'									<p class="close-popup">温州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="X1">X</span>                               '+
    +'									<p class="close-popup">西安</p>                                                             '+
    +'									<p class="close-popup">西宁</p>                                                             '+
    +'									<p class="close-popup">西双版纳州</p>                                                       '+
    +'									<p class="close-popup">兴安盟</p>                                                           '+
    +'									<p class="close-popup">许昌</p>                                                             '+
    +'									<p class="close-popup">湘潭</p>                                                             '+
    +'									<p class="close-popup">湘西</p>                                                             '+
    +'									<p class="close-popup">襄阳</p>                                                             '+
    +'									<p class="close-popup">咸阳</p>                                                             '+
    +'									<p class="close-popup">咸宁</p>                                                             '+
    +'									<p class="close-popup">孝感</p>                                                             '+
    +'									<p class="close-popup">邢台</p>                                                             '+
    +'									<p class="close-popup">新乡</p>                                                             '+
    +'									<p class="close-popup">新余</p>                                                             '+
    +'									<p class="close-popup">忻州</p>                                                             '+
    +'									<p class="close-popup">锡林郭勒盟</p>                                                       '+
    +'									<p class="close-popup">厦门</p>                                                             '+
    +'									<p class="close-popup">仙桃</p>                                                             '+
    +'									<p class="close-popup">宣城</p>                                                             '+
    +'									<p class="close-popup">徐州</p>                                                             '+
    +'									<p class="close-popup">信阳</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="Y1">Y</span>                               '+
    +'									<p class="close-popup">雅安</p>                                                             '+
    +'									<p class="close-popup">延安</p>                                                             '+
    +'									<p class="close-popup">延边</p>                                                             '+
    +'									<p class="close-popup">盐城</p>                                                             '+
    +'									<p class="close-popup">阳江</p>                                                             '+
    +'									<p class="close-popup">阳泉</p>                                                             '+
    +'									<p class="close-popup">烟台</p>                                                             '+
    +'									<p class="close-popup">宜宾</p>                                                             '+
    +'									<p class="close-popup">宜昌</p>                                                             '+
    +'									<p class="close-popup">宜春</p>                                                             '+
    +'									<p class="close-popup">伊春</p>                                                             '+
    +'									<p class="close-popup">伊犁</p>                                                             '+
    +'									<p class="close-popup">银川</p>                                                             '+
    +'									<p class="close-popup">营口</p>                                                             '+
    +'									<p class="close-popup">鹰潭</p>                                                             '+
    +'									<p class="close-popup">益阳</p>                                                             '+
    +'									<p class="close-popup">永州</p>                                                             '+
    +'									<p class="close-popup">玉林</p>                                                             '+
    +'									<p class="close-popup">玉树州</p>                                                           '+
    +'									<p class="close-popup">玉溪</p>                                                             '+
    +'									<p class="close-popup">榆林</p>                                                             '+
    +'									<p class="close-popup">运城</p>                                                             '+
    +'									<p class="close-popup">云浮</p>                                                             '+
    +'									<p class="close-popup">岳阳</p>                                                             '+
    +'									<p class="close-popup">扬州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="Z1">Z</span>                               '+
    +'									<p class="close-popup">枣庄</p>                                                             '+
    +'									<p class="close-popup">张家界</p>                                                           '+
    +'									<p class="close-popup">张家口</p>                                                           '+
    +'									<p class="close-popup">张掖</p>                                                             '+
    +'									<p class="close-popup">漳州</p>                                                             '+
    +'									<p class="close-popup">湛江</p>                                                             '+
    +'									<p class="close-popup">肇庆</p>                                                             '+
    +'									<p class="close-popup">昭通</p>                                                             '+
    +'									<p class="close-popup">镇江</p>                                                             '+
    +'									<p class="close-popup">中山</p>                                                             '+
    +'									<p class="close-popup">中卫</p>                                                             '+
    +'									<p class="close-popup">周口</p>                                                             '+
    +'									<p class="close-popup">舟山</p>                                                             '+
    +'									<p class="close-popup">珠海</p>                                                             '+
    +'									<p class="close-popup">株洲</p>                                                             '+
    +'									<p class="close-popup">淄博</p>                                                             '+
    +'									<p class="close-popup">自贡</p>                                                             '+
    +'									<p class="close-popup">资阳</p>                                                             '+
    +'									<p class="close-popup">驻马店</p>                                                           '+
    +'									<p class="close-popup">遵义</p>                                                             '+
    +'									<p class="close-popup">郑州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'							</div>                                                                                              '+
    +'							<div class="letter">                                                                                '+
    +'								<ul>                                                                                            '+
    +'									<li><a href="javascript:;">热门</a></li>                                                    '+
    +'									<li><a href="javascript:;">A</a></li>                                                       '+
    +'									<li><a href="javascript:;">B</a></li>                                                       '+
    +'									<li><a href="javascript:;">C</a></li>                                                       '+
    +'									<li><a href="javascript:;">D</a></li>                                                       '+
    +'									<li><a href="javascript:;">E</a></li>                                                       '+
    +'									<li><a href="javascript:;">F</a></li>                                                       '+
    +'									<li><a href="javascript:;">G</a></li>                                                       '+
    +'									<li><a href="javascript:;">H</a></li>                                                       '+
    +'									<li><a href="javascript:;">J</a></li>                                                       '+
    +'									<li><a href="javascript:;">K</a></li>                                                       '+
    +'									<li><a href="javascript:;">L</a></li>                                                       '+
    +'									<li><a href="javascript:;">M</a></li>                                                       '+
    +'									<li><a href="javascript:;">N</a></li>                                                       '+
    +'									<li><a href="javascript:;">P</a></li>                                                       '+
    +'									<li><a href="javascript:;">Q</a></li>                                                       '+
    +'									<li><a href="javascript:;">R</a></li>                                                       '+
    +'									<li><a href="javascript:;">S</a></li>                                                       '+
    +'									<li><a href="javascript:;">T</a></li>                                                       '+
    +'									<li><a href="javascript:;">W</a></li>                                                       '+
    +'									<li><a href="javascript:;">X</a></li>                                                       '+
    +'									<li><a href="javascript:;">Y</a></li>                                                       '+
    +'									<li><a href="javascript:;">Z</a></li>                                                       '+
    +'								</ul>                                                                                           '+
    +'							</div>                                                                                              '+
    +'						</div>                                                                                                  '+
    +'					</div>                                                                                                      '+
    +'				</div>                                                                                                          '+
    +'				<div id="tabCity2" class="tab">                                                                                 '+
    +'					<div class="content-block content-block01 content">                                                         '+
    +'						<div id="cityContainer01" class="container">                                                            '+
    +'							<div class="city" style="width:100%;">                                                              '+
    +'								<div class="city-list">                                                                         '+
    +'									<span class="city-letter" id="City1">一线城市</span>                                        '+
    +'									<div>                                                                                       '+
    +'										<p class="close-popup collectionCity">北京<i class="icon-collection03"></i></p>         '+
    +'										<p class="close-popup collectionCity active">上海<i class="icon-collection03"></i></p>  '+
    +'										<p class="close-popup collectionCity">广州</p>                                          '+
    +'										<p class="close-popup">深圳</p>                                                         '+
    +'									</div>                                                                                      '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="City1a">新一线城市</span>                  '+
    +'									<p class="close-popup">杭州</p>                                                             '+
    +'									<p class="close-popup">南京</p>                                                             '+
    +'									<p class="close-popup">天津</p>                                                             '+
    +'									<p class="close-popup">成都</p>                                                             '+
    +'									<p class="close-popup">西安</p>                                                             '+
    +'									<p class="close-popup">沈阳</p>                                                             '+
    +'									<p class="close-popup">重庆</p>                                                             '+
    +'									<p class="close-popup">苏州</p>                                                             '+
    +'									<p class="close-popup">武汉</p>                                                             '+
    +'									<p class="close-popup">长沙</p>                                                             '+
    +'									<p class="close-popup">青岛</p>                                                             '+
    +'									<p class="close-popup">厦门</p>                                                             '+
    +'									<p class="close-popup">宁波</p>                                                             '+
    +'									<p class="close-popup">大连</p>                                                             '+
    +'									<p class="close-popup">无锡</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="City2">二线城市</span>                     '+
    +'									<p class="close-popup">汕头</p>                                                             '+
    +'									<p class="close-popup">扬州</p>                                                             '+
    +'									<p class="close-popup">石家庄</p>                                                           '+
    +'									<p class="close-popup">福州</p>                                                             '+
    +'									<p class="close-popup">济南</p>                                                             '+
    +'									<p class="close-popup">太原</p>                                                             '+
    +'									<p class="close-popup">温州</p>                                                             '+
    +'									<p class="close-popup">佛山</p>                                                             '+
    +'									<p class="close-popup">郑州</p>                                                             '+
    +'									<p class="close-popup">东莞</p>                                                             '+
    +'									<p class="close-popup">合肥</p>                                                             '+
    +'									<p class="close-popup">贵阳</p>                                                             '+
    +'									<p class="close-popup">昆明</p>                                                             '+
    +'									<p class="close-popup">南昌</p>                                                             '+
    +'									<p class="close-popup">常州</p>                                                             '+
    +'									<p class="close-popup">嘉兴</p>                                                             '+
    +'									<p class="close-popup">徐州</p>                                                             '+
    +'									<p class="close-popup">海口</p>                                                             '+
    +'									<p class="close-popup">珠海</p>                                                             '+
    +'									<p class="close-popup">哈尔滨</p>                                                           '+
    +'									<p class="close-popup">长春</p>                                                             '+
    +'									<p class="close-popup">烟台</p>                                                             '+
    +'									<p class="close-popup">洛阳</p>                                                             '+
    +'									<p class="close-popup">南宁</p>                                                             '+
    +'									<p class="close-popup">惠州</p>                                                             '+
    +'									<p class="close-popup">潍坊</p>                                                             '+
    +'									<p class="close-popup">南通</p>                                                             '+
    +'									<p class="close-popup">金华</p>                                                             '+
    +'									<p class="close-popup">乌鲁木齐</p>                                                         '+
    +'									<p class="close-popup">泉州</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="City3">三线城市</span>                     '+
    +'									<p class="close-popup">安阳</p>                                                             '+
    +'									<p class="close-popup">衡阳</p>                                                             '+
    +'									<p class="close-popup">揭阳</p>                                                             '+
    +'									<p class="close-popup">梅州</p>                                                             '+
    +'									<p class="close-popup">舟山</p>                                                             '+
    +'									<p class="close-popup">遵义</p>                                                             '+
    +'									<p class="close-popup">岳阳</p>                                                             '+
    +'									<p class="close-popup">齐齐哈尔</p>                                                         '+
    +'									<p class="close-popup">淮安</p>                                                             '+
    +'									<p class="close-popup">赤峰</p>                                                             '+
    +'									<p class="close-popup">包头</p>                                                             '+
    +'									<p class="close-popup">常德</p>                                                             '+
    +'									<p class="close-popup">临沂</p>                                                             '+
    +'									<p class="close-popup">榆林</p>                                                             '+
    +'									<p class="close-popup">鄂尔多斯</p>                                                         '+
    +'									<p class="close-popup">南充</p>                                                             '+
    +'									<p class="close-popup">泸州</p>                                                             '+
    +'									<p class="close-popup">呼伦贝尔</p>                                                         '+
    +'									<p class="close-popup">抚顺</p>                                                             '+
    +'									<p class="close-popup">张家口</p>                                                           '+
    +'									<p class="close-popup">邢台</p>                                                             '+
    +'									<p class="close-popup">济宁</p>                                                             '+
    +'									<p class="close-popup">龙岩</p>                                                             '+
    +'									<p class="close-popup">南平</p>                                                             '+
    +'									<p class="close-popup">怀化</p>                                                             '+
    +'									<p class="close-popup">郴州</p>                                                             '+
    +'									<p class="close-popup">宝鸡</p>                                                             '+
    +'									<p class="close-popup">运城</p>                                                             '+
    +'									<p class="close-popup">蚌埠</p>                                                             '+
    +'									<p class="close-popup">漳州</p>                                                             '+
    +'									<p class="close-popup">上饶</p>                                                             '+
    +'									<p class="close-popup">宜春</p>                                                             '+
    +'									<p class="close-popup">德阳</p>                                                             '+
    +'									<p class="close-popup">荆州</p>                                                             '+
    +'									<p class="close-popup">三亚</p>                                                             '+
    +'									<p class="close-popup">唐山</p>                                                             '+
    +'									<p class="close-popup">中山</p>                                                             '+
    +'									<p class="close-popup">威海</p>                                                             '+
    +'									<p class="close-popup">银川</p>                                                             '+
    +'									<p class="close-popup">呼和浩特</p>                                                         '+
    +'									<p class="close-popup">湛江</p>                                                             '+
    +'									<p class="close-popup">咸阳</p>                                                             '+
    +'									<p class="close-popup">吉林</p>                                                             '+
    +'									<p class="close-popup">镇江</p>                                                             '+
    +'									<p class="close-popup">芜湖</p>                                                             '+
    +'									<p class="close-popup">桂林</p>                                                             '+
    +'									<p class="close-popup">邯郸</p>                                                             '+
    +'									<p class="close-popup">廊坊</p>                                                             '+
    +'									<p class="close-popup">绍兴</p>                                                             '+
    +'									<p class="close-popup">西宁</p>                                                             '+
    +'									<p class="close-popup">兰州</p>                                                             '+
    +'									<p class="close-popup">绵阳</p>                                                             '+
    +'									<p class="close-popup">株洲</p>                                                             '+
    +'									<p class="close-popup">宜宾</p>                                                             '+
    +'									<p class="close-popup">泰州</p>                                                             '+
    +'									<p class="close-popup">台州</p>                                                             '+
    +'									<p class="close-popup">保定</p>                                                             '+
    +'									<p class="close-popup">秦皇岛</p>                                                           '+
    +'									<p class="close-popup">湖州</p>                                                             '+
    +'									<p class="close-popup">衢州</p>                                                             '+
    +'									<p class="close-popup">连云港</p>                                                           '+
    +'									<p class="close-popup">鞍山</p>                                                             '+
    +'									<p class="close-popup">淄博</p>                                                             '+
    +'									<p class="close-popup">盐城</p>                                                             '+
    +'									<p class="close-popup">宜昌</p>                                                             '+
    +'									<p class="close-popup">赣州</p>                                                             '+
    +'									<p class="close-popup">柳州</p>                                                             '+
    +'									<p class="close-popup">大庆</p>                                                             '+
    +'									<p class="close-popup">丽江</p>                                                             '+
    +'									<p class="close-popup">莆田</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="City4">四线城市</span>                     '+
    +'									<p class="close-popup">肇庆</p>                                                             '+
    +'									<p class="close-popup">曲靖</p>                                                             '+
    +'									<p class="close-popup">新乡</p>                                                             '+
    +'									<p class="close-popup">营口</p>                                                             '+
    +'									<p class="close-popup">潮州</p>                                                             '+
    +'									<p class="close-popup">河源</p>                                                             '+
    +'									<p class="close-popup">黄石</p>                                                             '+
    +'									<p class="close-popup">茂名</p>                                                             '+
    +'									<p class="close-popup">牡丹江</p>                                                           '+
    +'									<p class="close-popup">盘锦</p>                                                             '+
    +'									<p class="close-popup">平顶山</p>                                                           '+
    +'									<p class="close-popup">韶关</p>                                                             '+
    +'									<p class="close-popup">阳江</p>                                                             '+
    +'									<p class="close-popup">本溪</p>                                                             '+
    +'									<p class="close-popup">玉溪</p>                                                             '+
    +'									<p class="close-popup">许昌</p>                                                             '+
    +'									<p class="close-popup">铁岭</p>                                                             '+
    +'									<p class="close-popup">泰安</p>                                                             '+
    +'									<p class="close-popup">四平</p>                                                             '+
    +'									<p class="close-popup">黄冈</p>                                                             '+
    +'									<p class="close-popup">淮南</p>                                                             '+
    +'									<p class="close-popup">广元</p>                                                             '+
    +'									<p class="close-popup">阜阳</p>                                                             '+
    +'									<p class="close-popup">丽水</p>                                                             '+
    +'									<p class="close-popup">乐山</p>                                                             '+
    +'									<p class="close-popup">菏泽</p>                                                             '+
    +'									<p class="close-popup">锦州</p>                                                             '+
    +'									<p class="close-popup">汉中</p>                                                             '+
    +'									<p class="close-popup">佳木斯</p>                                                           '+
    +'									<p class="close-popup">黄山</p>                                                             '+
    +'									<p class="close-popup">白山</p>                                                             '+
    +'									<p class="close-popup">绥化</p>                                                             '+
    +'									<p class="close-popup">钦州</p>                                                             '+
    +'									<p class="close-popup">南阳</p>                                                             '+
    +'									<p class="close-popup">临汾</p>                                                             '+
    +'									<p class="close-popup">梧州</p>                                                             '+
    +'									<p class="close-popup">白色</p>                                                             '+
    +'									<p class="close-popup">朝阳</p>                                                             '+
    +'									<p class="close-popup">沧州</p>                                                             '+
    +'									<p class="close-popup">东营</p>                                                             '+
    +'									<p class="close-popup">德州</p>                                                             '+
    +'									<p class="close-popup">安庆</p>                                                             '+
    +'									<p class="close-popup">六安</p>                                                             '+
    +'									<p class="close-popup">宁德</p>                                                             '+
    +'									<p class="close-popup">拉萨</p>                                                             '+
    +'									<p class="close-popup">邵阳</p>                                                             '+
    +'									<p class="close-popup">开封</p>                                                             '+
    +'									<p class="close-popup">信阳</p>                                                             '+
    +'									<p class="close-popup">驻马店</p>                                                           '+
    +'									<p class="close-popup">通化</p>                                                             '+
    +'									<p class="close-popup">葫芦岛</p>                                                           '+
    +'									<p class="close-popup">衡水</p>                                                             '+
    +'									<p class="close-popup">日照</p>                                                             '+
    +'									<p class="close-popup">聊城</p>                                                             '+
    +'									<p class="close-popup">三明</p>                                                             '+
    +'									<p class="close-popup">池州</p>                                                             '+
    +'									<p class="close-popup">达州</p>                                                             '+
    +'									<p class="close-popup">十堰</p>                                                             '+
    +'									<p class="close-popup">晋中</p>                                                             '+
    +'									<p class="close-popup">益阳</p>                                                             '+
    +'									<p class="close-popup">辽阳</p>                                                             '+
    +'									<p class="close-popup">酒泉</p>                                                             '+
    +'									<p class="close-popup">承德</p>                                                             '+
    +'									<p class="close-popup">孝感</p>                                                             '+
    +'									<p class="close-popup">枣庄</p>                                                             '+
    +'									<p class="close-popup">渭南</p>                                                             '+
    +'									<p class="close-popup">滁州</p>                                                             '+
    +'									<p class="close-popup">铜陵</p>                                                             '+
    +'									<p class="close-popup">永州</p>                                                             '+
    +'									<p class="close-popup">娄底</p>                                                             '+
    +'									<p class="close-popup">咸宁</p>                                                             '+
    +'									<p class="close-popup">商丘</p>                                                             '+
    +'									<p class="close-popup">吕梁</p>                                                             '+
    +'									<p class="close-popup">萍乡</p>                                                             '+
    +'									<p class="close-popup">抚州</p>                                                             '+
    +'									<p class="close-popup">通辽</p>                                                             '+
    +'									<p class="close-popup">大同</p>                                                             '+
    +'									<p class="close-popup">襄阳</p>                                                             '+
    +'									<p class="close-popup">湘潭</p>                                                             '+
    +'									<p class="close-popup">清远</p>                                                             '+
    +'									<p class="close-popup">宿迁</p>                                                             '+
    +'									<p class="close-popup">马鞍山</p>                                                           '+
    +'									<p class="close-popup">江门</p>                                                             '+
    +'									<p class="close-popup">延安</p>                                                             '+
    +'									<p class="close-popup">北海</p>                                                             '+
    +'									<p class="close-popup">九江</p>                                                             '+
    +'									<p class="close-popup">大理</p>                                                             '+
    +'									<p class="close-popup">丹东</p>                                                             '+
    +'								</div>                                                                                          '+
    +'								<div class="city-list"><span class="city-letter" id="City5">五线城市</span>                     '+
    +'									<p class="close-popup">铁门关</p>                                                           '+
    +'									<p class="close-popup">可克达拉</p>                                                         '+
    +'									<p class="close-popup">焦作</p>                                                             '+
    +'									<p class="close-popup">云浮</p>                                                             '+
    +'									<p class="close-popup">中卫</p>                                                             '+
    +'									<p class="close-popup">武威</p>                                                             '+
    +'									<p class="close-popup">天水</p>                                                             '+
    +'									<p class="close-popup">定西</p>                                                             '+
    +'									<p class="close-popup">辽源</p>                                                             '+
    +'									<p class="close-popup">安顺</p>                                                             '+
    +'									<p class="close-popup">安康</p>                                                             '+
    +'									<p class="close-popup">鸡西</p>                                                             '+
    +'									<p class="close-popup">七台河</p>                                                           '+
    +'									<p class="close-popup">白城</p>                                                             '+
    +'									<p class="close-popup">亳州</p>                                                             '+
    +'									<p class="close-popup">临沧</p>                                                             '+
    +'									<p class="close-popup">资阳</p>                                                             '+
    +'									<p class="close-popup">乌海</p>                                                             '+
    +'									<p class="close-popup">克拉玛依</p>                                                         '+
    +'									<p class="close-popup">巴彦淖尔</p>                                                         '+
    +'									<p class="close-popup">荆门</p>                                                             '+
    +'									<p class="close-popup">来宾</p>                                                             '+
    +'									<p class="close-popup">固原</p>                                                             '+
    +'									<p class="close-popup">防城港</p>                                                           '+
    +'									<p class="close-popup">朔州</p>                                                             '+
    +'									<p class="close-popup">铜川</p>                                                             '+
    +'									<p class="close-popup">双鸭山</p>                                                           '+
    +'									<p class="close-popup">平凉</p>                                                             '+
    +'									<p class="close-popup">崇左</p>                                                             '+
    +'									<p class="close-popup">白银</p>                                                             '+
    +'									<p class="close-popup">河池</p>                                                             '+
    +'									<p class="close-popup">吉安</p>                                                             '+
    +'									<p class="close-popup">景德镇</p>                                                           '+
    +'									<p class="close-popup">鹤岗</p>                                                             '+
    +'									<p class="close-popup">海东</p>                                                             '+
    +'									<p class="close-popup">黑河</p>                                                             '+
    +'									<p class="close-popup">阜新</p>                                                             '+
    +'									<p class="close-popup">石嘴山</p>                                                           '+
    +'									<p class="close-popup">滨州</p>                                                             '+
    +'									<p class="close-popup">淮北</p>                                                             '+
    +'									<p class="close-popup">宣城</p>                                                             '+
    +'									<p class="close-popup">宿州</p>                                                             '+
    +'									<p class="close-popup">保山</p>                                                             '+
    +'									<p class="close-popup">铜仁</p>                                                             '+
    +'									<p class="close-popup">乌兰察布</p>                                                         '+
    +'									<p class="close-popup">内江</p>                                                             '+
    +'									<p class="close-popup">贺州</p>                                                             '+
    +'									<p class="close-popup">巴中</p>                                                             '+
    +'									<p class="close-popup">贵港</p>                                                             '+
    +'									<p class="close-popup">昭通</p>                                                             '+
    +'									<p class="close-popup">鄂州</p>                                                             '+
    +'									<p class="close-popup">伊春</p>                                                             '+
    +'									<p class="close-popup">毕节</p>                                                             '+
    +'									<p class="close-popup">遂宁</p>                                                             '+
    +'									<p class="close-popup">漯河</p>                                                             '+
    +'									<p class="close-popup">松原</p>                                                             '+
    +'									<p class="close-popup">眉山</p>                                                             '+
    +'									<p class="close-popup">鹤壁</p>                                                             '+
    +'									<p class="close-popup">忻州</p>                                                             '+
    +'									<p class="close-popup">张掖</p>                                                             '+
    +'									<p class="close-popup">随州</p>                                                             '+
    +'									<p class="close-popup">鹰潭</p>                                                             '+
    +'									<p class="close-popup">新余</p>                                                             '+
    +'									<p class="close-popup">周口</p>                                                             '+
    +'									<p class="close-popup">濮阳</p>                                                             '+
    +'									<p class="close-popup">莱芜</p>                                                             '+
    +'									<p class="close-popup">阳泉</p>                                                             '+
    +'									<p class="close-popup">嘉峪关</p>                                                           '+
    +'									<p class="close-popup">庆阳</p>                                                             '+
    +'									<p class="close-popup">汕尾</p>                                                             '+
    +'									<p class="close-popup">普洱</p>                                                             '+
    +'									<p class="close-popup">广安</p>                                                             '+
    +'									<p class="close-popup">雅安</p>                                                             '+
    +'									<p class="close-popup">三门峡</p>                                                           '+
    +'									<p class="close-popup">长治</p>                                                             '+
    +'									<p class="close-popup">商洛</p>                                                             '+
    +'									<p class="close-popup">金昌</p>                                                             '+
    +'									<p class="close-popup">陇南</p>                                                             '+
    +'									<p class="close-popup">吴忠</p>                                                             '+
    +'									<p class="close-popup">晋城</p>                                                             '+
    +'									<p class="close-popup">阿克苏</p>                                                           '+
    +'									<p class="close-popup">喀什</p>                                                             '+
    +'									<p class="close-popup">昌吉</p>                                                             '+
    +'									<p class="close-popup">楚雄</p>                                                             '+
    +'									<p class="close-popup">大兴安岭</p>                                                         '+
    +'									<p class="close-popup">自贡</p>                                                             '+
    +'									<p class="close-popup">攀枝花</p>                                                           '+
    +'									<p class="close-popup">张家界</p>                                                           '+
    +'									<p class="close-popup">六盘水</p>                                                           '+
    +'									<p class="close-popup">玉林</p>                                                             '+
    +'									<p class="close-popup">三沙</p>                                                             '+
    +'									<p class="close-popup">吐鲁番</p>                                                           '+
    +'									<p class="close-popup">和田</p>                                                             '+
    +'									<p class="close-popup">阿勒泰</p>                                                           '+
    +'									<p class="close-popup">克孜勒苏</p>                                                         '+
    +'									<p class="close-popup">塔城</p>                                                             '+
    +'									<p class="close-popup">博尔塔拉</p>                                                         '+
    +'									<p class="close-popup">哈密</p>                                                             '+
    +'									<p class="close-popup">昌都</p>                                                             '+
    +'									<p class="close-popup">山南</p>                                                             '+
    +'									<p class="close-popup">日喀则</p>                                                           '+
    +'									<p class="close-popup">林芝</p>                                                             '+
    +'									<p class="close-popup">阿拉善盟</p>                                                         '+
    +'									<p class="close-popup">甘南</p>                                                             '+
    +'									<p class="close-popup">兴安盟</p>                                                           '+
    +'									<p class="close-popup">巴音郭楞</p>                                                         '+
    +'									<p class="close-popup">锡林郭勒盟</p>                                                       '+
    +'									<p class="close-popup">伊犁</p>                                                             '+
    +'									<p class="close-popup">黔西南</p>                                                           '+
    +'									<p class="close-popup">海北州</p>                                                           '+
    +'									<p class="close-popup">湘西</p>                                                             '+
    +'									<p class="close-popup">黄南州</p>                                                           '+
    +'									<p class="close-popup">玉树州</p>                                                           '+
    +'									<p class="close-popup">临夏</p>                                                             '+
    +'									<p class="close-popup">果洛州</p>                                                           '+
    +'									<p class="close-popup">海南州</p>                                                           '+
    +'									<p class="close-popup">阿坝州</p>                                                           '+
    +'									<p class="close-popup">甘孜州</p>                                                           '+
    +'									<p class="close-popup">黔东南</p>                                                           '+
    +'									<p class="close-popup">海西州</p>                                                           '+
    +'									<p class="close-popup">黔南</p>                                                             '+
    +'									<p class="close-popup">迪庆州</p>                                                           '+
    +'									<p class="close-popup">红河</p>                                                             '+
    +'									<p class="close-popup">怒江州</p>                                                           '+
    +'									<p class="close-popup">阿拉尔</p>                                                           '+
    +'									<p class="close-popup">图木舒克</p>                                                         '+
    +'									<p class="close-popup">恩施</p>                                                             '+
    +'									<p class="close-popup">石河子</p>                                                           '+
    +'									<p class="close-popup">昌江</p>                                                             '+
    +'									<p class="close-popup">文山州</p>                                                           '+
    +'									<p class="close-popup">凉山州</p>                                                           '+
    +'									<p class="close-popup">西双版纳州</p>                                                       '+
    +'									<p class="close-popup">乐东</p>                                                             '+
    +'									<p class="close-popup">五家渠</p>                                                           '+
    +'									<p class="close-popup">德宏州</p>                                                           '+
    +'									<p class="close-popup">琼海</p>                                                             '+
    +'									<p class="close-popup">保亭</p>                                                             '+
    +'									<p class="close-popup">琼中</p>                                                             '+
    +'									<p class="close-popup">陵水</p>                                                             '+
    +'									<p class="close-popup">济源</p>                                                             '+
    +'									<p class="close-popup">神农架</p>                                                           '+
    +'									<p class="close-popup">屯昌</p>                                                             '+
    +'									<p class="close-popup">临高</p>                                                             '+
    +'									<p class="close-popup">潜江</p>                                                             '+
    +'									<p class="close-popup">五指山</p>                                                           '+
    +'									<p class="close-popup">白沙</p>                                                             '+
    +'									<p class="close-popup">儋州</p>                                                             '+
    +'									<p class="close-popup">澄迈</p>                                                             '+
    +'									<p class="close-popup">万宁</p>                                                             '+
    +'									<p class="close-popup">仙桃</p>                                                             '+
    +'									<p class="close-popup">定安</p>                                                             '+
    +'									<p class="close-popup">东方</p>                                                             '+
    +'									<p class="close-popup">天门</p>                                                             '+
    +'									<p class="close-popup">文昌</p>                                                             '+
    +'									<p class="close-popup">延边</p>                                                             '+
    +'									<p class="close-popup">那曲</p>                                                             '+
    +'									<p class="close-popup">阿里</p>                                                             '+
    +'									<p class="close-popup">北屯</p>                                                             '+
    +'									<p class="close-popup">双河</p>                                                             '+
    +'								</div>                                                                                          '+
    +'							</div>                                                                                              '+
    +'						</div>                                                                                                  '+
    +'					</div>                                                                                                      '+
    +'				</div>                                                                                                          '+
    +'			</div>                                                                                                              '+
    +'		</div>'
    +})
    +
    diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js
    new file mode 100644
    index 0000000..52a9a8f
    --- /dev/null
    +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js
    @@ -0,0 +1,206 @@
    +
    +
    +Vue.component('city_increase_ranking',{
    +	template:'<div class="list-block media-list cityList">'+
    +				'<ul>'+
    +					'<li>'+
    +						'<a class="item-content">'+
    +							'<div class="item-inner">'+
    +								'<div class="item-subtitle row">'+
    +									'<div class="col-5">&nbsp;</div>'+
    +									'<div class="col-20">城市</div>'+
    +									'<div class="col-25">上月均价</div>'+
    +									'<div class="col-25">近30天涨跌幅</div>'+
    +									'<div class="col-20"></div>'+
    +								'</div>'+
    +							'</div>'+
    +						'</a>'+
    +					'</li>'+
    +					'<li v-for="(ci,index) in cityIncreaseRankingList" :key="ci.city">'+
    +						'<a class="item-content">'+
    +							'<div class="item-inner">'+
    +								'<div class="item-subtitle row">'+
    +									'<div class="col-5">{{index+1}}</div>'+
    +									'<div class="col-20">{{ci.city}}</div>'+
    +									'<div class="col-25">{{!ci.cityTopMonthAvgPrice||ci.cityTopMonthAvgPrice==""?"暂无":""+ci.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
    +									'<div class="col-25">'+
    +										'<em class="up">{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(100*ci.oneMonthUpDownRange).toFixed(2)+"%"}}<i class="icon" v-bind:class="[ci.oneMonthUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,ci.oneMonthUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
    +									'</div>'+
    +									'<div class="col-20">'+
    +										'<i class="button collection collection02 confirm-ok" v-on:click="abolish(ci.city,$event, 1)" v-if="ci.follow">取消</i>'+
    +										'<i class="button theme collection collection01 confirm-ok" v-on:click="follow(ci.city,$event, 0)" v-else>关注</i>'+
    +									'</div>'+
    +								'</div>'+
    +							'</div>'+
    +						'</a>'+
    +					'</li>'+
    +				'</ul>'+
    +			'</div>',
    +	data:function(){
    +		return cityIncreaseRankingData;
    +	},
    +	methods:{
    +		loadCityIncreaseRanking:function(){
    +			axios.get("/rest/quotations/markUpTopInfos").then(function(response){
    +				cityIncreaseRankingData.cityIncreaseRankingList = response.data.data;
    +			}).catch(function(error){
    +				console.log(error)
    +			})
    +		},
    +		follow:function(city,event, type){
    +			
    +			if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +				clicked('/views/user/passLogin.html',true,false,{},{},function(){
    +					if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +					}else{
    +						$.confirm('您确定要关注'+city+"?", function () {
    +						 	axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
    +								var msg = response.data.message;
    +								if(msg != "取消关注成功" && msg != "关注成功"){
    +									$.toast(msg);
    +									plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +								}else{
    +									//$(event.target).parent().children().removeClass("dn");
    +									//$(event.target).addClass("dn");
    +									
    +									var increaseList = cityIncreaseRankingData.cityIncreaseRankingList
    +									
    +									if(increaseList && increaseList.length>0){
    +										for(var i in increaseList){
    +											var dd = increaseList[i];
    +											if(dd.city == city){
    +												if(type == 0){
    +													dd.follow = true;
    +												}else{
    +													dd.follow = false;
    +												}
    +												break;
    +											}
    +										}
    +									}
    +											
    +
    +									plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +
    +//									loadMyCollectCity()
    +									if(type == 0){
    +										var curDatas = cityDetaiVue.$data.citys
    +										if(curDatas && curDatas.length>=0){
    +											if(!IsInArray(curDatas, city)){
    +												cityDetaiVue.$data.citys.push(city);
    +											}
    +										}
    +									}
    +								}
    +										
    +							}).catch(function(error){
    +								console.log(error)
    +							})
    +				        },function(){
    +				        	plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +				        });
    +				        
    +				        plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +						plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +					}
    +				})
    +			}else{
    +				 $.confirm('您确定要关注'+city+"?", function () {
    +				 	axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
    +						var msg = response.data.message;
    +						if(msg != "取消关注成功" && msg != "关注成功"){
    +							$.toast(msg);
    +						}else{
    +							//$(event.target).parent().children().removeClass("dn");
    +							//$(event.target).addClass("dn");
    +							
    +							var increaseList = cityIncreaseRankingData.cityIncreaseRankingList
    +							
    +							if(increaseList && increaseList.length>0){
    +								for(var i in increaseList){
    +									var dd = increaseList[i];
    +									if(dd.city == city){
    +										if(type == 0){
    +											dd.follow = true;
    +										}else{
    +											dd.follow = false;
    +										}
    +										break;
    +									}
    +								}
    +							}
    +									
    +							reloadMyFocus()
    +							reloadCityPotentialRanking()
    +							if(type == 0){
    +								var curDatas = cityDetaiVue.$data.citys
    +								if(curDatas && curDatas.length>=0){
    +									if(!IsInArray(curDatas, city)){
    +										cityDetaiVue.$data.citys.push(city);
    +									}
    +								}
    +							}
    +						}
    +								
    +					}).catch(function(error){
    +						console.log(error)
    +					})
    +		        });
    +			}
    +			
    +		},
    +		abolish:function(city,event, type){
    +			if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +				clicked('/views/user/passLogin.html',true,false,{},{},function(){
    +					if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +						
    +					}else{
    +						
    +					}
    +				})
    +			}else{
    +				 $.confirm("您确定要取消关注?", function () {
    +			            axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
    +							//$(event.target).parent().children().removeClass("dn");
    +							//$(event.target).addClass("dn");
    +							
    +							var increaseList = cityIncreaseRankingData.cityIncreaseRankingList
    +							
    +							if(increaseList && increaseList.length>0){
    +								for(var i in increaseList){
    +									var dd = increaseList[i];
    +									if(dd.city == city){
    +										if(type == 0){
    +											dd.follow = true;
    +										}else{
    +											dd.follow = false;
    +										}
    +										break;
    +									}
    +								}
    +							}
    +							
    +							reloadMyFocus();
    +							reloadCityPotentialRanking()
    +							//plus.webview.getWebviewById('views/user/userInfo.html').reload()
    +							var da = cityDetaiVue.$data.citys
    +							if(da && da.length>0){
    +								var index = da.indexOf(city)
    +								if(index>0){
    +									da.splice(index, 1)
    +									cityDetaiVue.$data.citys = da;
    +								}
    +							}
    +						}).catch(function(error){
    +							console.log(error)
    +						})
    +			     });
    +			}
    +			
    +		}
    +	},
    +	mounted:function(){
    +		this.loadCityIncreaseRanking();
    +	}
    +})
    +
    diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js
    new file mode 100644
    index 0000000..ac9161c
    --- /dev/null
    +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js
    @@ -0,0 +1,205 @@
    +
    +
    +Vue.component('city_potential_ranking',{
    +	template:'<div class="list-block media-list cityList">'+
    +					'<ul>'+
    +						'<li>'+
    +							'<a class="item-content">'+
    +								'<div class="item-inner">'+
    +									'<div class="item-subtitle row">'+
    +										'<div class="col-5">&nbsp;</div>'+
    +										'<div class="col-20">城市</div>'+
    +										'<div class="col-25">近1年涨跌幅</div>'+
    +										'<div class="col-25">潜力指数</div>'+
    +										'<div class="col-20"></div>'+
    +									'</div>'+
    +								'</div>'+
    +							'</a>'+
    +						'</li>'+
    +						'<li v-for="(cp,index) in cityPotentialRankingList">'+
    +							'<a class="item-content">'+
    +								'<div class="item-inner">'+
    +									'<div class="item-subtitle row">'+
    +										'<div class="col-5">{{index+1}}</div>'+
    +										'<div class="col-20">{{cp.city}}</div>'+
    +										'<div class="col-25">'+
    +											'<em class="up">{{!cp.oneYearUpDownRange||cp.oneYearUpDownRange==""?"暂无":Math.abs(cp.oneYearUpDownRange*100).toFixed(2)+"%"}}<i class="icon" v-bind:class="[cp.oneYearUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,cp.oneYearUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
    +										'</div>'+
    +										'<div class="col-25">'+
    +											'<span class="star">'+
    +												'<i v-for="n in cp.starNum" class="icon icon-star01"></i>'+
    +												'<i v-for="n in cp.halfStarNum" class="icon icon-star02"></i>'+
    +												'<i v-for="n in cp.noneStarNum" class="icon icon-star"></i>'+
    +											'</span>'+
    +										'</div>'+
    +										'<div class="col-20">'+
    +											'<i class="button collection collection02 confirm-ok" v-on:click="abolish(cp.city,$event,1)" v-if="cp.follow" >取消</i>'+
    +											'<i class="button theme collection collection01 confirm-ok" v-on:click="follow(cp.city,$event,0)" v-else>关注</i>'+
    +										'</div>'+
    +									'</div>'+
    +								'</div>'+
    +							'</a>'+
    +						'</li>'+
    +					'</ul>'+
    +				'</div>',
    +	data:function(){
    +		return cityPotentialRankingData;
    +	},
    +	methods:{
    +		loadCityPotentialRanking:function(){
    +			axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){
    +				list = response.data.data;
    +				$(list).each(function(i){
    +					var index = this.index;
    +					var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星
    +					var starNum = Math.floor(totalHalfStar/2) //全星
    +					var halfStarNum = totalHalfStar%2 //半星
    +					var noneStarNum = 5-starNum-halfStarNum //空星
    +					this.starNum = starNum;
    +					this.halfStarNum = halfStarNum;
    +					this.noneStarNum = noneStarNum;
    +				})
    +				cityPotentialRankingData.cityPotentialRankingList = response.data.data;
    +				
    +			}).catch(function(error){
    +				console.log(error)
    +			})
    +		},
    +		follow:function(city,event,type){
    +			if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +				clicked('/views/user/passLogin.html',true,false,{},{},function(){
    +					if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +					
    +					}else{
    +						 $.confirm('您确定要关注'+city+"?", function () {
    +							axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
    +								
    +								var msg = response.data.message;
    +								if(msg != "取消关注成功" && msg != "关注成功"){
    +									$.toast(msg);
    +									plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +								}else{
    +									//$(event.target).parent().children().removeClass("dn");
    +									//$(event.target).addClass("dn");
    +									var rankList = cityPotentialRankingData.cityPotentialRankingList
    +							
    +									if(rankList && rankList.length>0){
    +										for(var i in rankList){
    +											var dd = rankList[i];
    +											if(dd.city == city){
    +												if(type == 0){
    +													dd.follow = true;
    +												}else{
    +													dd.follow = false;
    +												}
    +												break;
    +											}
    +										}
    +									}
    +									plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +									
    +									reloadMyFocus()
    +									reloadCityIncreaseRanking()
    +									//cityDetaiVue.$data.citys.push(city);
    +								}
    +							}).catch(function(error){
    +								console.log(error)
    +							})
    +						},function(){
    +							plus.webview.getWebviewById('views/house/houseDetail.html').reload(); 
    +						});
    +						
    +						plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +						plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +					}
    +				})
    +			}else{
    +				 $.confirm('您确定要关注'+city+"?", function () {
    +					axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
    +						var msg = response.data.message;
    +						if(msg != "取消关注成功" && msg != "关注成功"){
    +							$.toast(msg);
    +						}else{
    +							//$(event.target).parent().children().removeClass("dn");
    +							//$(event.target).addClass("dn");
    +							
    +							
    +							var rankList = cityPotentialRankingData.cityPotentialRankingList
    +							
    +							if(rankList && rankList.length>0){
    +								for(var i in rankList){
    +									var dd = rankList[i];
    +									if(dd.city == city){
    +										if(type == 0){
    +											dd.follow = true;
    +										}else{
    +											dd.follow = false;
    +										}
    +										break;
    +									}
    +								}
    +							}
    +									
    +							reloadMyFocus()
    +							reloadCityIncreaseRanking()
    +							if(type == 0){
    +								var curDatas = cityDetaiVue.$data.citys
    +								if(curDatas && curDatas.length>=0){
    +									if(!IsInArray(curDatas, city)){
    +										cityDetaiVue.$data.citys.push(city);
    +									}
    +								}
    +							}
    +							//plus.webview.getWebviewById('views/user/userInfo.html').reload(); 
    +						}
    +					}).catch(function(error){
    +						console.log(error)
    +					})
    +				});
    +			}
    +			
    +		},
    +		abolish:function(city,event,type){
    +			 $.confirm("您确定要取消关注?", function () {
    +				axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
    +//					$(event.target).parent().children().removeClass("dn");
    +//					$(event.target).addClass("dn");
    +					
    +					var rankList = cityPotentialRankingData.cityPotentialRankingList
    +							
    +					if(rankList && rankList.length>0){
    +						for(var i in rankList){
    +							var dd = rankList[i];
    +							if(dd.city == city){
    +								if(type == 0){
    +									dd.follow = true;
    +								}else{
    +									dd.follow = false;
    +								}
    +								break;
    +							}
    +						}
    +					}
    +							
    +					reloadMyFocus()
    +					reloadCityIncreaseRanking()
    +					var da = cityDetaiVue.$data.citys
    +					if(da && da.length>0){
    +						var index = da.indexOf(city)
    +						if(index>0){
    +							da.splice(index, 1)
    +							cityDetaiVue.$data.citys = da;
    +						}
    +					}
    +					//plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +				}).catch(function(error){
    +					console.log(error)
    +				})
    +			});
    +		}
    +	},
    +	mounted:function(){
    +		this.loadCityPotentialRanking();
    +	}
    +})
    +
    diff --git a/fangija-zsyf/views/component/component.js b/fangija-zsyf/views/component/component.js
    new file mode 100644
    index 0000000..37f4575
    --- /dev/null
    +++ b/fangija-zsyf/views/component/component.js
    @@ -0,0 +1,16 @@
    +Vue.component('my-component', {
    +	props: ['title'],
    +  template: `
    +    <div class="head">
    +		<h1 @click="show">{{title}}ddd{{message}}</h1>
    +	</div>
    +  `,
    +  data: function(){
    +    return {message: 'helloa'}
    +  },
    +  methods: {
    +  	show() {
    +  		alert();
    +  	}
    +  }
    +})
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/component/componenttest.html b/fangija-zsyf/views/component/componenttest.html
    new file mode 100644
    index 0000000..4edefa8
    --- /dev/null
    +++ b/fangija-zsyf/views/component/componenttest.html
    @@ -0,0 +1,26 @@
    +<!DOCTYPE html>
    +<html>
    +	<head>
    +		<meta charset="UTF-8">
    +		<title></title>
    +	</head>
    +	<body>
    +		<div id="example">
    +		  <my-component v-bind:title="title"></my-component>
    +		</div>
    +		
    +		<script type="text/javascript" src="../../js/vue.js" ></script>
    +		<script type="text/javascript" src="component.js" ></script>
    +		<script>
    +			// 创建根实例
    +			new Vue({
    +			  el: '#example',
    +			  data:{
    +			  	title:""
    +			  },mounted:function(){
    +			  	this.title = 'WWW'
    +			  }
    +			})
    +		</script>
    +	</body>
    +</html>
    diff --git a/fangija-zsyf/views/component/mapComponent.js b/fangija-zsyf/views/component/mapComponent.js
    new file mode 100644
    index 0000000..47a7c8d
    --- /dev/null
    +++ b/fangija-zsyf/views/component/mapComponent.js
    @@ -0,0 +1,40 @@
    +var distDatas = {nearDists: []}
    +Vue.component('map-component', {
    +  template: `
    +   			
    +  `,
    +  data: function(){
    +    return distDatas;
    +  },
    +  methods: {
    +  	loadMap:function(){
    +  			baseInfo.address = address;
    +  			if(lat && lng && address){
    +  				
    +  				loadMapPoi();
    +  			}else{
    +  				axios.get("/rest/districts/detail", {
    +				    params: {
    +				       	city: city,
    +		      			region:region,
    +		      			name: name
    +				    }
    +				}).then(function (response) {
    +					console.log("map finish.....")
    +					var vo = response.data.data.detail
    +					if(vo.avgPrice){
    +						lat = vo.lat2;
    +						lng = vo.lng2;
    +						loadMapPoi();
    +					}
    +				}).catch(function (error) {
    +				   console.log(error);
    +				});
    +  			}
    +			
    +		}
    +  	},
    +	mounted:function(){
    +  		this.loadMap();
    +  	}	
    +})
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/component/myFocusComponent.js b/fangija-zsyf/views/component/myFocusComponent.js
    new file mode 100644
    index 0000000..fd20e54
    --- /dev/null
    +++ b/fangija-zsyf/views/component/myFocusComponent.js
    @@ -0,0 +1,67 @@
    +var myFocusDatas = {myFocusList: []};
    +Vue.component('my_focus',{
    +  template:
    +      '<div class="topic">'+
    +        '<div class="topicTitle">我的关注</div>'+
    +        '<div class="list-block media-list cityList">'+
    +          '<ul>'+
    +            '<li>'+
    +              '<a class="item-content">'+
    +                '<div class="item-inner">'+
    +                  '<div class="item-subtitle row">'+
    +                    '<div class="col-5">&nbsp;</div>'+
    +                    '<div class="col-20">城市</div>'+
    +                    '<div class="col-25">上月均价</div>'+
    +                    '<div class="col-25">近30天涨跌幅</div>'+
    +                    '<div class="col-20">全国涨幅排名</div>'+
    +                  '</div>'+
    +                '</div>'+
    +              '</a>'+
    +            '</li>'+
    +            '<li v-for="(mf,index) in myFocusList">'+
    +              '<a class="item-content">'+
    +                '<div class="item-inner">'+
    +                  '<div class="item-subtitle row">'+
    +                    '<div class="col-5">{{index+1}}</div>'+
    +                    '<div class="col-20">{{mf.city}}</div>'+
    +                    '<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
    +                    '<div class="col-25">'+
    +                      '<em class="up">{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":Math.abs(mf.oneMonthUpDownRange*100).toFixed(2)+"%"}}<i class="icon" v-bind:class="[mf.oneMonthUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,mf.oneMonthUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
    +                    '</div>'+
    +                    '<div class="col-20">'+
    +                      '<em>{{mf.rangeLevel}}</em>'+
    +                    '</div>'+
    +                  '</div>'+
    +                '</div>'+
    +              '</a>'+
    +            '</li>'+
    +          '</ul>'+
    +        '</div>'+
    +      '</div>'
    +      ,
    +  data:function(){
    +    return myFocusDatas;
    +  },
    +  methods:{
    +    loadMyFocus:function(){
    +      if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +        $("#myFocusFirstPage").hide()
    +        $("#myFocus").hide();
    +      }else{
    +        axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
    +          if(response.data.data.length==0){
    +            $("#myFocusFirstPage").hide();
    +            $("#myFocus").hide();
    +          }else{
    +            myFocusDatas.myFocusList = response.data.data;
    +          }
    +        }).catch(function(error){
    +        	console.log(error)
    +        })
    +      }
    +    }
    +  },mounted:function(){
    +      this.loadMyFocus();
    +    }  
    +})
    +
    diff --git a/fangija-zsyf/views/component/nearDist.js b/fangija-zsyf/views/component/nearDist.js
    new file mode 100644
    index 0000000..5ed4012
    --- /dev/null
    +++ b/fangija-zsyf/views/component/nearDist.js
    @@ -0,0 +1,73 @@
    +var distDatas = {nearDists: []}
    +Vue.component('near-dist-component', {
    +  template: `
    +   			<div class="topic" id="nearDistDiv">
    +      			<div class="topicTitle">附近小区</div>
    +				<div class="topicContent" style="padding:0;">
    +      				<div class="cardNearbyBox cardNearbyBox01">
    +						<div class="cardNearbyWin">
    +							
    +							<div class="card cardNearby" v-for="(dist,index) in nearDists" @click="showDistrict(index)">
    +								<div class="card-header">{{dist.sname}}</div>
    +								<div class="card-content">
    +									<div class="card-content-inner">{{dist.avgPrice?(dist.avgPrice+"元/㎡"):'暂无'}}</div>
    +								</div>
    +								<div class="card-footer">距该小区{{dist.distance}}米</div>
    +							</div>
    +							
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +  `,
    +  data: function(){
    +    return distDatas;
    +  },
    +  methods: {
    +  	loadNearDistrict:function(){
    +			axios.get("/rest/districts/nearDistrict", {
    +			    params: {
    +			       	city: city,
    +	      			region:region,
    +	      			name: name
    +			    }
    +			}).then(function (response) {
    +				var datas = response.data.data
    +				if(datas){
    +					var ret = []
    +					for(var v in datas){
    +						var o = datas[v]
    +						if(o.city == city && o.district == region && o.name == name){
    +							continue;
    +						}else{
    +							var textName = o.name;
    +				   		var length = textName.length;
    +							var textStr = textName;
    +							if(length > 5){
    +								textStr = textName.substr(0,5)+ "...";
    +							}
    +							o.sname=textStr;
    +							if(ret.length <= 5){
    +								ret.push(o);
    +							}
    +						}
    +					}
    +					distDatas.nearDists = ret;
    +					
    +					$("#nearDistDiv .cardNearbyWin").css("width",(7.5*ret.length)+"rem");
    +				}else{
    +					$("#nearDistDiv").hide()
    +				}
    +				
    +			}).catch(function (error) {
    +			   console.log(error);
    +			});
    +		},
    +		showDistrict:function(index){
    +			clicked('../district/detail.html',true,false,{},{city:distDatas.nearDists[index].city,region:distDatas.nearDists[index].district,name:distDatas.nearDists[index].name});
    +		}
    +  },
    +	mounted:function(){
    +  		this.loadNearDistrict();
    +  	}	
    +})
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/component/roomRent.js b/fangija-zsyf/views/component/roomRent.js
    new file mode 100644
    index 0000000..572f231
    --- /dev/null
    +++ b/fangija-zsyf/views/component/roomRent.js
    @@ -0,0 +1,46 @@
    +var rentPricesData = {rentPrices: []}
    +Vue.component('room-rent-component', {
    +  template: `
    +   				<div class="cardRentWin">
    +					<div class="card cardRent" v-for="dist in rentPrices">
    +						<div class="card-content">
    +							<div class="card-content-inner"><em>{{dist.avgPrice}}</em> 元/月<br><small>{{dist.houseType}}室</small></div>
    +						</div>
    +					</div>
    +    			</div>
    +  `,
    +  data: function(){
    +    return rentPricesData;
    +  },
    +  methods: {
    +  	loadRoomRent:function(){
    +			axios.get("/rest/trend/roomRent", {
    +			    params: {
    +			       	city: city,
    +	      			region:region,
    +	      			name: name
    +			    }
    +			}).then(function (response) {
    +				var datas = response.data.data
    +				if(datas){
    +					var ret = []
    +					for(var v in datas){
    +						var o = datas[v]
    +						ret.push(o);
    +					}
    +					rentPricesData.rentPrices = ret;
    +					
    +					$("#roomDiv .cardRentWin").css("width",(6.5*ret.length)+"rem");
    +				}else{
    +					$("#roomDiv").hide()
    +				}
    +				
    +			}).catch(function (error) {
    +			   console.log(error);
    +			});
    +		}
    +  	},
    +	mounted:function(){
    +  		this.loadRoomRent();
    +  	}	
    +})
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/component/trends.js b/fangija-zsyf/views/component/trends.js
    new file mode 100644
    index 0000000..8c86456
    --- /dev/null
    +++ b/fangija-zsyf/views/component/trends.js
    @@ -0,0 +1,240 @@
    +var rentPricesData = {rentPrices: []}
    +Vue.component('room-rent-component', {
    +  template: `
    +   			
    +				
    +  `,
    +  data: function(){
    +    return rentPricesData;
    +  },
    +  methods: {
    +  	loadTrend:function(){
    +			var myChart02 = echarts.init(document.getElementById('chart02'));
    +			myChart02.setOption(option02,true);
    +		}
    +  	},
    +	mounted:function(){
    +		this.loadTrend();
    +  	}	
    +})
    +
    +
    +/* 小区租金走势 */
    +var option02 = {
    +	tooltip: {
    +        trigger: 'axis',
    +		textStyle: {
    +			fontFamily: 'arial,华文细黑',
    +			fontSize: 12
    +		},
    +		formatter: '{a0}: {c0}元/月<br>{a1}: {c1}元/月<br>{a2}: {c2}元/月<br>{a3}: {c3}元/月<br>{a4}: {c4}元/月'
    +    },
    +	grid:{
    +		x: 54,
    +		y: 10,
    +		x2: 16,
    +        y2: 60,
    +		borderWidth: 1
    +	},
    +	color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
    +    legend: {
    +        data: ['一室', '二室', '三室', '四室', '五室'],
    +		y: 'bottom',
    +		textStyle: {
    +			fontFamily: '华文细黑',
    +			fontWeight: 'bold'
    +		},
    +		itemWidth: 16,
    +    	itemHeight: 8
    +    },
    +    xAxis: {
    +        type: 'category',
    +        boundaryGap: false,
    +		axisLine: {
    +			lineStyle: {
    +				color: '#ccc'
    +			}
    +		},
    +		axisLabel: {
    +			textStyle: {
    +				fontFamily: 'arial',
    +				color: '#666'
    +			}
    +		},
    +        data: ['2017-02', '2017-03', '2017-04', '2017-05', '2017-06', '2017-07',
    +               '2017-08', '2017-09', '2017-10', '2017-11', '2017-12', '2018-01'],
    +    },
    +    yAxis: {
    +        type: 'value',
    +		axisLine: {
    +			lineStyle: {
    +				color: '#ccc'
    +			}
    +		},
    +		axisLabel: {
    +			textStyle: {
    +				fontFamily: 'arial',
    +				color: '#666'
    +			}
    +		}
    +    },
    +    series: [
    +        {
    +            name: '一室',
    +            type: 'line',
    +			symbol: 'circle',
    +			symbolSize: 6,
    +            data: [2200, 2040, 2790, 2940, 2360, 2440, 2220, 2490, 2740, 2480, 2500, 2860]
    +        },
    +        {
    +            name: '二室',
    +            type: 'line',
    +			symbol: 'circle',
    +			symbolSize: 6,
    +            data: [3200, 3040, 3790, 3940, 3360, 3440, 3220, 3490, 3740, 3480, 3500, 3860]
    +        },
    +        {
    +            name: '三室',
    +            type: 'line',
    +			symbol: 'circle',
    +			symbolSize: 6,
    +            data: [4200, 4040, 4790, 4940, 4360, 4440, 4220, 4490, 4740, 4480, 4500, 4860]
    +        },
    +        {
    +            name: '四室',
    +            type: 'line',
    +			symbol: 'circle',
    +			symbolSize: 6,
    +            data: [5200, 5040, 5790, 5940, 5360, 5440, 5220, 5490, 5740, 5480, 5500, 5860]
    +        },
    +        {
    +            name: '五室',
    +            type: 'line',
    +			symbol: 'circle',
    +			symbolSize: 6,
    +            data: [6200, 6040, 6790, 6940, 6360, 6440, 6220, 6490, 6740, 6480, 6500, 6860]
    +        }
    +    ]
    +};
    +
    +
    +function loadRentTrends(city, region, name){
    +	var type = $("#trendDiv2 a.active").attr("t-v")
    +	axios.get("/rest/trend/distRentTrends", {
    +	    params: {
    +	      city: city,
    +	      region:region,
    +	      name:name,
    +	      type:type
    +	    }
    +	}).then(function (response) {
    +		var re = response.data.data
    +		
    +		
    +        	var categories = new Array();
    +			var series = new Array();
    +			
    +			var m = re.times;
    +			var pm = re.distMap
    +			var rooms = re.rooms;
    +			
    +			if(m && rooms.length>0){
    +				
    +				for(var i=0;i<m.length;i++){
    +					categories.push(m[i]);
    +				}
    +				
    +				for(var k in rooms){
    +					var room = rooms[k]
    +					var distM = pm[room];
    +					var distObj = new Object();
    +					var distDatas = new Array();
    +					
    +					for(var i=0;i<m.length;i++){
    +						if(distM[m[i]] == undefined){
    +							distDatas.push(null);
    +						} else {
    +							distDatas.push(distM[m[i]]);
    +						}
    +					}
    +					distObj.name = room+"室"
    +					distObj.data = distDatas;
    +					distObj.type = 'line';
    +					distObj.symbolSize = 0;
    +					series.push(distObj);
    +				}
    +				
    +				//showRentChart(categories, series);
    +				showRentChart2(categories, series);
    +			}else{
    +				//没数据
    +				$("#tabRentDiv").addClass("dn");
    +			}
    +        }).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +function showRentChart2(categories, series){
    +		var option03 = {
    +			tooltip: {
    +		        trigger: 'axis',
    +				textStyle: {
    +					fontFamily: 'arial,华文细黑',
    +					fontSize: 12
    +				}
    +		    },
    +			grid:{
    +				x: 54,
    +				y: 10,
    +				x2: 16,
    +		        y2: 60,
    +				borderWidth: 1
    +			},
    +			color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
    +		    legend: {
    +				y: 'bottom',
    +				textStyle: {
    +					fontFamily: '华文细黑',
    +					fontWeight: 'bold'
    +				},
    +				itemWidth: 16,
    +		    	itemHeight: 8
    +		    },
    +		    xAxis: {
    +		        type: 'category',
    +		        boundaryGap: false,
    +				axisLine: {
    +					lineStyle: {
    +						color: '#ccc'
    +					}
    +				},
    +				axisLabel: {
    +					textStyle: {
    +						fontFamily: 'arial',
    +						color: '#666'
    +					}
    +				},
    +		        data: categories,
    +		    },
    +		    yAxis: {
    +		        type: 'value',
    +				axisLine: {
    +					lineStyle: {
    +						color: '#ccc'
    +					}
    +				},
    +				axisLabel: {
    +					textStyle: {
    +						fontFamily: 'arial',
    +						color: '#666'
    +					}
    +				}
    +		    },
    +		    series:series 
    +		};
    +	
    +	var myChart02 = echarts.init(document.getElementById('chart02'));
    +	myChart02.setOption(option03,true);
    +}
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/district/aroundDetail.html b/fangija-zsyf/views/district/aroundDetail.html
    new file mode 100644
    index 0000000..b15a398
    --- /dev/null
    +++ b/fangija-zsyf/views/district/aroundDetail.html
    @@ -0,0 +1,396 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>位置及周边详情</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<style type="text/css">
    +	.list-block{border-bottom:solid 0.5rem #f3f3f3;}
    +	.list-block ul:after{height:0;}
    +</style>
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9E99D3540e4dafb7894f7b9fe27fa6b5"></script>
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<button class="button button-link button-nav pull-right" onclick="openMapWindow()">			
    +				地图
    +			</button>
    +			<h1 class="title">位置及周边</h1>
    +		</header>
    +        <div class="content contentList">
    +			<div class="content-block-title">地铁</div>
    +			<div class="list-block media-list" id="subway">
    +			</div>
    +			<input type="hidden"  id="lat" value="${lat}">
    +   			<input type="hidden"  id="lng" value="${lng}">
    +       		<div class="content-block-title">公交</div>
    +			<div class="list-block media-list" id="bus">
    +			</div>
    +			<div class="content-block-title">学校</div>
    +			<div class="list-block media-list" id="school">
    +			</div>
    +			<div class="content-block-title">医院</div>
    +			<div class="list-block media-list" id="hos">
    +			</div>
    +			<div class="content-block-title">银行</div>
    +				<div class="list-block media-list" id="bank">
    +			</div>
    +			<div class="content-block-title">购物</div>
    +				<div class="list-block media-list" id="buy">
    +			</div>
    +			<div class="content-block-title">房屋</div>
    +				<div class="list-block media-list" id="hs">
    +			</div>
    +			<div class="content-block-title">嫌恶</div>
    +				<div class="list-block media-list" id="xw">
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.js' charset='utf-8'></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +var minObj = {};
    +var maxObj = {};
    +var lat = 31.292437
    +var lng = 121.48703
    +var name = "新泾三村"
    +var city = "上海"
    +document.addEventListener('plusready', onPlusReady, false);
    +function onPlusReady() { 
    +        var self = plus.webview.currentWebview();
    +        city = self.city
    +        region = self.region
    +        name = self.name;
    +        lat = self.lat
    +        lng = self.lng
    +        
    +        initMapConfig();
    +	    mapConfig.init();
    +}
    +
    +function openMapWindow(){
    +	clicked('arround.html',true,false,{},{city:city,name:name,lat:lat,lng:lng});
    +}
    +
    +
    +var mapConfig = {
    +	    /* 初始化入口*/
    +	    init: function () {
    +	        var that = this;
    +	        that.lat = lat;
    +	        that.lng = lng;
    +	        var searchType = {'地铁':'subway', '公交':'bus', '学校':'school', '医院':'hos', '银行':'bank','购物':'buy','房屋':'hs','嫌恶':'xw'}
    +	        for(var i in searchType){
    +	        	that.getnear_s(i,10,searchType[i]);
    +	        }
    +	        /* console.log(minObj);
    +	        console.log(maxObj); */
    +	      
    +	    },
    +
    +	    /* 计算两点间距离*/
    +	    getShortDistance: function (lon1, lat1, lon2, lat2) {
    +	        // PI
    +	        var DEF_PI = 3.14159265359;
    +	        // 2*PI
    +	        var DEF_2PI = 6.28318530712;
    +	        // PI/180.0
    +	        var DEF_PI180 = 0.01745329252;
    +	        // radius of earth
    +	        var DEF_R = 6370693.5;
    +	        var ew1, ns1, ew2, ns2, dx, dy, dew, distance;
    +	        // 角度转换为弧度
    +	        ew1 = lon1 * DEF_PI180;
    +	        ns1 = lat1 * DEF_PI180;
    +	        ew2 = lon2 * DEF_PI180;
    +	        ns2 = lat2 * DEF_PI180;
    +
    +	        // 经度差
    +	        dew = ew1 - ew2;
    +	        // 若跨东经和西经180 度,进行调整
    +	        if (dew > DEF_PI) {
    +	            dew = DEF_2PI - dew;
    +	        } else if (dew < -DEF_PI) {
    +	            dew = DEF_2PI + dew;
    +	        }
    +	        // 东西方向长度(在纬度圈上的投影长度)
    +	        dx = DEF_R * Math.cos(ns1) * dew;
    +
    +	        // 南北方向长度(在经度圈上的投影长度)
    +	        dy = DEF_R * (ns1 - ns2);
    +
    +	        // 勾股定理求斜边长
    +	        distance = Math.sqrt(dx * dx + dy * dy);
    +	        return parseInt(distance);
    +	    },
    +
    +	    /* 按距离希尔排序*/
    +	    shellSort: function (arr) {
    +	        for (var step = arr.length >> 1; step > 0; step >>= 1) {
    +	            for (var i = 0; i < step; ++i) {
    +	                for (var j = i + step; j < arr.length; j += step) {
    +	                    var k = j, value = arr[j].distance, tmp = arr[j];
    +	                    while (k >= step && arr[k - step].distance > value) {
    +	                        arr[k] = arr[k - step];
    +	                        k -= step;
    +	                    }
    +	                    arr[k] = tmp;
    +	                }
    +	            }
    +	        }
    +	        return arr;
    +	    },
    +	    array_in_array: function (arr1, arr2) {
    +	        if ('undefined' != typeof arr1 && 'undefined' != typeof arr2) {
    +	            for (var key in arr1) {
    +	                for (var key2 in arr2) {
    +	                    if ('string' == typeof arr2[key2] && 'string' == typeof arr1[key] && arr2[key2].indexOf(arr1[key]) >= 0) {
    +	                        return true;
    +	                    }
    +	                }
    +	            }
    +	        }
    +	        return false;
    +	    },
    +	    /**
    +	     * 获取周围信息
    +	     * @param type 小分类
    +	     * @param count 需要搜索的最大个数
    +	     * @param view_count 非展开状态下显示个数
    +	     * @param limit 搜索距离(m)
    +	     * @param limit_count 页面上展示最大个数
    +	     * @param parentType 大分类
    +	     * @returns null
    +	     */
    +	    getnear_s: function (name, count,type) {
    +	        var that = this;
    +	       
    +	        var onLocalSearch = function (resData) {
    +	            /* 判断状态是否正确*/
    +	            if (localSearch.getStatus() == BMAP_STATUS_SUCCESS) {
    +	                var resultArr = [];
    +	                var subwayMap = {};
    +	                /* 处理百度返回信息*/
    +	                for (var i = 0; i < resData.getCurrentNumPois(); i++) {
    +	                    var info = resData.getPoi(i);
    +
    +	                    /* 过滤地铁中的地铁口*/
    +	                    info['address'] = info['address'] ? info['address'] : '';
    +	                    if ('subway' == type && (!that.array_in_array(that.type_tags[type], info.tags) || info['address'].indexOf('线') < 0)) {
    +	                        continue;
    +	                    }
    +	                    if ('subway' == type) {
    +	                    	if(subwayMap[info.title]==info.address){
    +		                        continue;
    +	                    	}else{
    +	                    		subwayMap[info.title]=info.address;
    +	                    	}
    +	                    }
    +	                    
    +	                    /* 计算距离*/
    +	                    info.distance = that.getShortDistance(that.lng, that.lat, info.point.lng, info.point.lat);
    +	                    resultArr.push(info);
    +	                }
    +	                resData._pois = that.shellSort(resultArr);
    +	                var html = '<ul>';
    +	                var html2 = '<ul>';
    +	                for (var i = 0; i < resData._pois.length; i++) {
    +	                	if(i<2){
    +				            html+='<li><a class="item-content"><div class="item-inner"><div class="item-title-row">'+
    +				                  '<div class="item-title">'+resData._pois[i].title+'</div><div class="item-after">'+resData._pois[i].distance+'米</div>'+
    +				                  '</div><div class="item-subtitle"><span>'+resData._pois[i].address+'</span></div></div></a></li>';
    +	                	}
    +					    if(i==2){
    +					    	html+='<p class="moreList"><i class="icon icon-down"></i></p>';
    +					    }
    +	                    html2+='<li><a class="item-content"><div class="item-inner"><div class="item-title-row">'+
    +			                  '<div class="item-title">'+resData._pois[i].title+'</div><div class="item-after">'+resData._pois[i].distance+'米</div>'+
    +			                  '</div><div class="item-subtitle"><span>'+resData._pois[i].address+'</span></div></div></a></li>';      
    +			            
    +	                }
    +	                html2+='<p class="lessList"><i class="icon icon-up"></i></p></ul>';
    +	                html+='</ul>';
    +	                $("#"+type).html(html);
    +	                minObj[type]=html;
    +	                maxObj[type]=html2;
    +	            }else{
    +	            	return;
    +	            } 
    +	        };
    +	        var localSearch = new BMap.LocalSearch(new BMap.Point(that.lng, that.lat), {onSearchComplete: onLocalSearch});
    +	        localSearch.setPageCapacity(count);
    +	        localSearch.searchNearby(name,new BMap.Point(that.lng, that.lat),2000);
    +	    }
    +}
    +	function initMapConfig(){
    +	    mapConfig.map = null,
    +	    mapConfig.defaultZoom= 13,
    +	    mapConfig.cityx=121.356766,
    +	    mapConfig.cityy=31.213703,
    +	    zoom=14,
    +	    /* 获取附近楼盘url的参数*/
    +	    mapConfig.params= {
    +	        x1: 121.356766,
    +	        y1: 31.213703,
    +	        distance: '2',
    +	        strNewCode: ''
    +	    },
    +
    +	    /* 用来存储当前页面上所有点的信息*/
    +	    mapConfig.markerList= {},
    +
    +	    /* 地图边界:可用来控制地图的显示范围*/
    +	    mapConfig.markerBounds= new BMap.Bounds(),
    +	    mapConfig.iType= 'hs',
    +	    mapConfig.house_type= {zz: '住宅', sp: '商铺', xzl: '写字楼', bs: '别墅'},
    +
    +	    /* 以下是周边查询的***/
    +	    mapConfig.have_arr= {
    +	        hs: '',
    +	        jj: '',
    +	        zs: '',
    +	        bus: '',
    +	        subway: '',
    +	        ct: '',
    +	        bank: '',
    +	        school: '',
    +	        hos: '',
    +	        buy: '',
    +	        park: '',
    +	        parking: '',
    +	        gas: '',
    +	        ktv: '',
    +	        bar: '',
    +	        cinema: '',
    +	        beauty: '',
    +	        cafe: '',
    +	        kindergarten: '',
    +	        primarysc: '',
    +	        middlesc: '',
    +	        university: '',
    +	        traffic: '',
    +	        xw:'',
    +	        fun: ''
    +	    },
    +	    mapConfig.have_arr_new= {
    +	        bus: '公交',
    +	        subway: '地铁',
    +	        ct: '餐饮',
    +	        bank: '银行',
    +	        school: '学校',
    +	        hos: '医院',
    +	        buy: '购物',
    +	        park: '公园',
    +	        parking: '停车场',
    +	        gas: '加油站',
    +	        supermark: '超市',
    +	        ktv: 'KTV',
    +	        bar: '酒吧',
    +	        cinema: '电影院',
    +	        beauty: '美容院',
    +	        cafe: '咖啡厅',
    +	        kindergarten: '幼儿园',
    +	        primarysc: '小学',
    +	        middlesc: '中学',
    +	        university: '大学',
    +	        traffic: '交通',
    +	        fun: '娱乐',
    +	        xw:'嫌恶',
    +	        hs: '小区'
    +	    },
    +	    // 需要删除的点集合包含路线,搜附近type为other的点
    +	    mapConfig.toDelterMarkers= [],
    +	    // 已描点集合
    +	    mapConfig.house_near_p= [],
    +
    +	    /* 打开标注框方法集***/
    +	    mapConfig.openTip= [],
    +
    +	    /* 标注获得焦点方法集***/
    +	    mapConfig.focusInfoWinFuns= [],
    +
    +	    /* 标注失去焦点方法集***/
    +	    mapConfig.blurInfoWinFuns= [],
    +
    +	    /* 具有小分类的周边搜索***/
    +	    mapConfig.house_near_merge= {
    +	        traffic: ['subway', 'bus', 'parking', 'gas'],
    +	        // 商业包含娱乐 超市 餐饮 银行 公园
    +	        business: ['fun', 'supermark', 'ct', 'bank', 'park'],
    +	        // 娱乐
    +	        fun: ['ktv', 'bar', 'cinema', 'beauty', 'cafe'],
    +	        buy: ['buy','supermark'],
    +	        school: ['kindergarten', 'primarysc', 'middlesc', 'university']
    +	    },
    +
    +	    /* 大分类列表***/
    +	    mapConfig.search_wrap= ['hs', 'traffic', 'fun', 'supermark', 'ct', 'bank', 'hos', 'park', 'school','buy'],
    +
    +	    /* 需要进行搜索返回值过滤的周边***/
    +	    mapConfig.type_tags= {subway: ['地铁']},
    +
    +	    /* 获取周边条数*/
    +	    mapConfig.maxMarker_count= 20,
    +
    +	    // 列表中初始化可看到的元素
    +	    mapConfig.view_count= 8,
    +	    /* 获取周边范围(m)*/
    +	    mapConfig.limit= 2000,
    +
    +	    /* 驾车查询的参数*/
    +	    mapConfig.searchdrive= {start: '', x1: '', y1: '', sstatus: '', end: '', x2: '', y2: '', estatus: '', type: '', tag: ''},
    +	    mapConfig.sstartname= null,
    +	    mapConfig.sendname= null,
    +	    mapConfig.tag= null
    +	}
    +
    +
    +	
    +	$('body').on('click' , '.moreList' , function(){
    +		var typeName = $(this).parent().parent()[0].getAttribute('id');
    +		$("#"+typeName).html(maxObj[typeName]);
    +	});
    +    
    +    $('body').on('click' , '.lessList' , function(){
    +  		var typeName = $(this).parent().parent()[0].getAttribute('id');
    +  		$("#"+typeName).html(minObj[typeName]);
    +  	});
    +</script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/district/arround.html b/fangija-zsyf/views/district/arround.html
    new file mode 100644
    index 0000000..da789df
    --- /dev/null
    +++ b/fangija-zsyf/views/district/arround.html
    @@ -0,0 +1,132 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>位置及周边</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<style>
    +	.topic .topicContent .topicContent_center div em{font-size:0.75rem;}
    +	.mark-icon-box {  width: 24px;  height: 30px;  position: absolute;   z-index: 98;  }
    +	.mark-icon-box .mark-icon {
    +	    width: 20px;
    +	    height: 30px;
    +	    display: block;
    +	    cursor: pointer;
    +	    font-size: 14px;
    +	    color: #fff;
    +	    font-weight: bold;
    +	    text-align: center;
    +	    line-height: 24px;
    +	    background: url(../../images/dw.png) no-repeat;
    +	}
    +</style>
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9E99D3540e4dafb7894f7b9fe27fa6b5"></script>
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left" ></span>
    +			</button>
    +			<button class="button button-link button-nav pull-right" onclick="openPoiDetail()">			
    +				详情
    +			</button>
    +			<h1 class="title">位置及周边</h1>
    +		</header>
    +       	<nav class="bar bar-tab">
    +			<a class="tab-item external active" id="bus">
    +				<span class="icon iconfont icon-around01"></span>
    +				<span class="tab-label">公交</span>
    +			</a>
    +			<a class="tab-item external" id="subway">
    +				<span class="icon iconfont icon-around02"></span>
    +				<span class="tab-label">地铁</span>
    +			</a>
    +			<a class="tab-item external" id="school">
    +				<span class="icon iconfont icon-around03"></span>
    +				<span class="tab-label">学校</span>
    +			</a>
    +			<a class="tab-item external" id="hos">
    +				<span class="icon iconfont icon-around04"></span>
    +				<span class="tab-label">医院</span>
    +			</a>
    +			<a class="tab-item external"  id="bank">
    +				<span class="icon iconfont icon-around05"></span>
    +				<span class="tab-label">银行</span>
    +			</a>
    +			<a class="tab-item external"  id="supermark">
    +				<span class="icon iconfont icon-around06"></span>
    +				<span class="tab-label">购物</span>
    +			</a>
    +			<a class="tab-item external" id="hs">
    +				<span class="icon iconfont icon-around07"></span>
    +				<span class="tab-label">房屋</span>
    +			</a>
    +			<a class="tab-item external" id="id="xianwu"">
    +				<span class="icon iconfont icon-around08"></span>
    +				<span class="tab-label">嫌恶</span>
    +			</a>
    +		</nav>
    +        <div class="content">
    +        	<div class="districtMap01" id="districtMap"></div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.js' charset='utf-8'></script>
    +<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
    +<script type="text/javascript">
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    + Zepto = $
    +$.config = {router: false}
    +</script>
    +
    +
    +
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +	var lat = 31.292437
    +	var lng = 121.48703
    +	var name = "新泾三村"
    +	var city = "上海"
    +	
    +	 //loadMapPoi();
    +	 
    +	document.addEventListener('plusready', onPlusReady, false);
    +	function onPlusReady() { 
    +        var self = plus.webview.currentWebview();
    +        lat = self.lat
    +        lng = self.lng
    +        city = self.city
    +        name = self.name
    +        loadMapPoi();
    +    }
    +	
    +	function openPoiDetail(){
    +		clicked('aroundDetail.html',true,false,{},{city:city,name:name,lat:lat,lng:lng});
    +	}
    +</script>
    +
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html
    new file mode 100644
    index 0000000..3627840
    --- /dev/null
    +++ b/fangija-zsyf/views/district/detail.html
    @@ -0,0 +1,390 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>小区详情</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
    +
    +
    +<style>
    +	.list-block ul:before{height:0;}
    +	.list-block ul:after{height:0;}
    +	.list-block.media-list ul:after{height:1px;}
    +	.list-block .item-inner:after{height:0;}
    +	.list-block .item-title{font-size:0.85rem;}
    +	.list-block.media-list .item-title{font-size:0.75rem;}
    +	.topicContent .list-block ul:after{height:0;}
    +	.districtMap + .list-block.media-list span{line-height:1.2rem;}
    +	.collection02{border:solid 1px #C3C0BC;color:#C3C0BC;}
    +	.cardPrice01 .card-footer span{width:33%;}
    +	.cardPrice01 .card-footer span:nth-child(2){text-align:center;}
    +	.cardNearbyBox01 .cardNearby .card-header{padding-top:0;}
    +	.topic .topicTitle > span.star{float:none;}
    +	.topic .topicTitle > span.star .icon{vertical-align:middle;}
    +	
    +	.mark-icon-box {width:24px;height:30px;position:absolute;z-index:98;}
    +	.mark-icon-box .mark-icon {width: 20px;height: 30px;display: block;cursor: pointer;font-size: 14px; color: #fff;font-weight: bold;text-align: center;line-height: 24px;background: url(../../images/dw.png) no-repeat;}
    +	
    +	.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
    +	.loadingBg .infinite-scroll-preloader{margin-top:30%;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current" id="districtBaseInfo" v-cloak>
    +    	
    +    	<div class="loadingBg">
    +    		<div class="infinite-scroll-preloader">
    +              <div class="preloader"></div>
    +          	</div>
    +    	</div>
    +    	
    +       	<header class="bar bar-nav barBorder ">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">{{name}}</h1>
    +		</header>
    +        <div class="content">
    +			<div class="list-block media-list topList">
    +				<ul>
    +					<li>
    +						<div class="item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row" style="max-width:80%;">
    +									<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
    +									
    +									<div class="item-after">
    +										<a class="button theme collection collection01" onclick="doAddCollect()">关注</a>
    +										<a class="button collection collection02 dn" onclick="removeCollect()">取消关注</a>
    +									</div>
    +								</div>
    +								<div class="item-subtitle">
    +									<span class="tag" style="margin-top:0.5rem;">
    +										<small v-for="tag in tags">{{tag}}</small>
    +									</span>
    +								</div>
    +							</div>
    +						</div>
    +					</li>
    +				</ul>
    +			</div>
    +     		<div class="card cardPrice cardPrice01">
    +				<div class="card-header">
    +					<span>当前参考均价</span>
    +				</div>
    +				<div class="card-content">
    +					<div class="card-content-inner">{{avgPrice}}<span>元/㎡</span></div>
    +				</div>
    +				<div class="card-footer">
    +					<span>
    +						<em v-if="oneMonthUpDownRange < 0"><strong>{{oneMonthUpDownRange*(-1)}}</strong>%<i class="icon icon-arrow-green"></i></em>
    +						<em v-else><strong>{{oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-red"></i></em>
    +						<label>近30天涨跌幅</label>
    +					</span>
    +					<span v-if="priceRate">
    +						<em><strong>{{priceRate}}</strong></em>
    +						<label>小区均价排名</label>
    +					</span>
    +					
    +					<span>
    +						<em v-if="avgPrice >= cityPrice">高 <strong>{{avgPrice - cityPrice}}</strong> 元</em>
    +						<em v-else>低<strong>{{cityPrice - avgPrice}}</strong> 元</em>
    +						<label>相比{{city}}均价</label>
    +					</span>
    +				</div>
    +			</div>
    +    		<div class="topic">
    +				<div class="topicTitle">小区走势分析</div>
    +				<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
    +					<div class="topicTitle topicTitle01" style="position:relative;">均价
    +						<div class="content-block">
    +							<div class="buttons-row theme" id="trendDiv1">
    +								<a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
    +								<a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
    +								<a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="chart" id="chart01" style="height:270px;"></div>
    +					
    +					<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
    +						<div class="content-block">
    +							<div class="buttons-row theme" id="trendDiv2">
    +								<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
    +								<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="chart" id="chart02"></div>
    +				</div>
    +			</div>
    +     		<!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;">
    +				<div class="card-footer">
    +					<span>
    +						<em><strong>有房说</strong></em>
    +					</span>
    +					<span>
    +						<label style="color:#666;">本小区2月活跃度为20;价格近3个月处于下跌趋势,小区物业一般,交通不便利,所属板块为不活跃。</label>
    +					</span>
    +				</div>
    +			</div>-->
    +			
    +     		<div class="topic" id="distLevelDiv">
    +				<div class="topicTitle" style="font-size:0.7rem;">小区评级结果:<span class="star"></span></div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="chart" id="chart03"></div>
    +				</div>
    +			</div>
    +      		
    +      		
    +      		<div id="baseInfo" class="list-block mb05">
    +		  		<base-info-component></base-info-component>
    +			</div>
    +       		
    +       		
    +       		<div class="topic dn" id="mapDiv">
    +       			<div class="topicTitle">位置及周边</div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="content-block content-block01 content-block01a" id="aroundLink">
    +						<div class="buttons-row theme">
    +							<a class="tab-link button active" id="bus">公交</a>
    +							<a class="tab-link button" id="subway">地铁</a>
    +							<a class="tab-link button" id="school">学校</a>
    +							<a class="tab-link button" id="hos">医院</a>
    +							<a class="tab-link button" id="bank">银行</a>
    +							<a class="tab-link button" id="supermark">购物</a>
    +						</div>
    +					</div>
    +					<div class="districtMap" id="districtMap"></div>
    +					<div class="list-block media-list">
    +						<ul>
    +							<li>
    +								<a onclick="openMapWindow()" class="item-link item-content">
    +									<div class="item-inner">
    +										<div class="item-title-row">
    +											<div class="item-title"><i class="icon icon-address03" style="margin-right:0.3rem;"></i><span>地址:{{address}}</span></div>
    +											<div class="item-after"><span>详情</span></div>
    +										</div>
    +									</div>
    +								</a>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +			
    +			
    +      		<div id="nearDistDiv">
    +      			<near-dist-component></near-dist-component>
    +      		</div>
    +        
    +        </div>
    +        
    +         <div class="content contentSuggest dn" id="noDataDiv">
    +			<div class="noData">
    +				<img src="../../images/noData.png">
    +				<p>您的小区数据目前仍在更新<br>敬请期待</p>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +
    +
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/echarts.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +
    +
    +<script>
    +	var city = "北京"
    +	var region = "朝阳"
    +	var name = "姜庄湖园林一期"
    +	//var lat = 31.292437
    +	//var lng = 121.48703
    +	
    +//	var city="安阳"
    +//	var region="安阳"
    +//	var name="宜和苑"
    +	
    +	var lat;
    +	var lng;
    +	var address;
    +	var tags;
    +	
    +	var baseInfo;
    +	
    +</script>
    +<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
    +<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
    +<script>
    +//loadDistrictInfo();
    +	
    +document.addEventListener('plusready', onPlusReady, false);
    +function onPlusReady() { 
    +        var self = plus.webview.currentWebview();
    +        city = self.city
    +        region = self.region
    +        name = self.name;
    +        // 创建根实例
    +		baseInfo = new Vue({
    +			el: '#districtBaseInfo',
    +			data: {
    +				name : "",
    +				city:"",
    +				region: "",
    +				address: "",
    +				avgPrice:"",
    +				oneMonthUpDownRange:"",
    +				priceRate:"",
    +				cityPrice:"",
    +				finishBuildingDate:"",
    +				householdCount:"",
    +				cubagePercent:"",
    +				carSiteCount:"",
    +				virescencePercent:"",
    +				estateCharge:"",
    +				moreArea:"",
    +				developer:"",
    +				estateCompany:"",
    +				tags:[],
    +				nearDists:[],
    +				regionIndex:"",
    +				schoolIndex:""
    +			},
    +			methods:{
    +				showChat: function(type){
    +					if(type == 2) {
    +						document.getElementById("tabChart2").style = "z-index:1";
    +						document.getElementById("tabChart1").style = "z-index:-1";
    +					} else {
    +						document.getElementById("tabChart2").style = "z-index:-1";
    +						document.getElementById("tabChart1").style = "z-index:1";
    +					}
    +				
    +				}
    +			}
    +		})
    +		
    +	/* 小区均价分析 */
    +	loadKLineData(city, region, name);
    +	/* 小区租金走势 */
    +	loadRentTrends(city, region, name,2);		
    +}
    +
    +
    +
    +//baseInfo = new Vue({
    +//	el: '#districtBaseInfo',
    +//	data: {
    +//		name : "",
    +//		city:"",
    +//		region: "",
    +//		address: "",
    +//		avgPrice:"",
    +//		oneMonthUpDownRange:"",
    +//		priceRate:"",
    +//		cityPrice:"",
    +//		finishBuildingDate:"",
    +//		householdCount:"",
    +//		cubagePercent:"",
    +//		carSiteCount:"",
    +//		virescencePercent:"",
    +//		estateCharge:"",
    +//		moreArea:"",
    +//		developer:"",
    +//		estateCompany:"",
    +//		tags:[],
    +//		nearDists:[],
    +//		regionIndex:"",
    +//		schoolIndex:""
    +//		
    +//		},
    +//			methods:{
    +//				showChat: function(type){
    +//					if(type == 2) {
    +//						document.getElementById("tabChart2").style = "z-index:1";
    +//						document.getElementById("tabChart1").style = "z-index:-1";
    +//					} else {
    +//						document.getElementById("tabChart2").style = "z-index:-1";
    +//						document.getElementById("tabChart1").style = "z-index:1";
    +//					}
    +//				
    +//				}
    +//			}
    +//	})
    +//	
    +//	/* 小区均价分析 */
    +//	loadKLineData(city, region, name);
    +//	/* 小区租金走势 */
    +//	loadRentTrends(city, region, name,2);	
    +	
    +function openMapWindow(){
    +	clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
    +}
    +
    +/* 获取title字数,截取title前12字,并添加... */
    +$(document).ready(function () {
    +	var text = $("header .title").text();
    +	var length = $("header .title").text().length;
    +	var textStr = "";
    +	if(length > 12){
    +		textStr = text.substr(0,12);
    +		$("header .title").text(textStr + "...");
    +	}
    +});
    +
    +
    +
    +</script>
    +
    +
    +<script>
    +var t1 = window.setInterval(loadMap,1000);
    +function loadMap(){
    +	if(lng && lat){
    +		loadMapPoi();
    +		$("#mapDiv").show();
    +		window.clearInterval(t1);
    +		
    +	}
    +}
    +
    +
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/evaluate/evaluateList.html b/fangija-zsyf/views/evaluate/evaluateList.html
    new file mode 100644
    index 0000000..5c816bc
    --- /dev/null
    +++ b/fangija-zsyf/views/evaluate/evaluateList.html
    @@ -0,0 +1,241 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>房产评估</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.list-block .item-title{font-size:0.85rem;}
    +	.list-block .item-title span.span01{font-size:0.7rem;color:#666;margin-left:0.3rem;}
    +	.icon-add{width:0.6rem;height:0.6rem;background:url(../../images/icon-add.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
    +	.star .icon{width:0.7rem;height:0.7rem;background:url(../../images/icon-star.png) no-repeat center center;background-size:100%;margin-right:0.1rem;vertical-align:sub;}
    +	.star .icon-star01{background:url(../../images/icon-star01.png) no-repeat center center;background-size:100%;}
    +	.star .icon-star02{background:url(../../images/icon-star02.png) no-repeat center center;background-size:100%;}
    +	.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
    +	.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
    +	.list-block .item-subtitle em.em02{font-size:0.75rem;color:#EB5F34;}
    +	.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
    +	.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
    +	/**添加loading加载效果**/
    +	.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
    +	.loadingBg .infinite-scroll-preloader{margin-top:60%;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">房产评估</h1>
    +		</header>
    +		<!-- 加载loading页  -->
    +    	<div class="loadingBg">
    +    		<div class="infinite-scroll-preloader">
    +              <div class="preloader"></div>
    +          	</div>
    +    	</div>
    +        <div class="content">
    +			<div class="list-block media-list">
    +				<!-- 动态封装部分 begin -->
    +				<ul>
    +					
    +				</ul>
    +				<!-- 动态封装部分 end -->
    +			</div>
    +       		<div class="content-block" style="display: none;">
    +				<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/beacon_release.js"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +var uid = "162167854504869888";
    +//调用mui.init方法
    +$.init()
    +
    +/* 房产用途 */
    +$(document).on('click','.open-vertical-modal', function () {
    +	//获取对应<li>栏目存储的houseinfo id
    +	var id = $(this).attr("id");
    +	var houseStatus = 0;
    +    $.modal({
    +		title: '房产用途',
    +		verticalButtons: true,
    +		buttons: [
    +			{
    +				text: '自住',
    +				onClick: function() {
    +					addManagement(id, houseStatus, "自住");
    +				}
    +			},
    +			{
    +				text: '出租',
    +				onClick: function() {
    +					addManagement(id, houseStatus, "出租");
    +				}
    +			},
    +			{
    +				text: '空置',
    +				onClick: function() {
    +					addManagement(id, houseStatus, "空置");
    +				}
    +			},
    +			{
    +				text: '取消'
    +			}
    +		]
    +	})
    +});
    +
    +//添加管理AJAX请求
    +function addManagement(id, houseStatus, liveStatus){
    +	axios.post(BASE_PATH + "/rest/evaluate/addManagement",
    +		{
    +		    id: id,
    +		    houseStatus: houseStatus,
    +		    liveStatus: liveStatus
    +		}).then(function (response) {
    +			var status = response.data.status;
    +			if(status){
    +				$.toast(response.data.data);
    +				window.location.reload();
    +			}else{
    +				$.toast(response.data.message);
    +			}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//查询房产评估列表AJAX请求
    +function selectEvaluateList(){
    +	//先清空列表
    +	$('.list-block ul').html("");
    +	var htmlContent = '';
    +	axios.get(BASE_PATH + "/rest/evaluate/houseinfolist", 
    +		{
    +			params: {}
    +		}).then(function (response) {
    +			var resultsMap = response.data.data;
    +			var results = resultsMap.houseInfoList;
    +			var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
    +			var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
    +			//构造数据列表
    +			htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
    +			
    +			//动态追加内容
    +			$('.list-block ul').html(htmlContent);
    +			//添加loading等待效果
    +			$(".loadingBg").hide();
    +			$(".content-block").show();
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//动态构造房产评估列表
    +function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent){
    +	if(results!=null && results.length>0){
    +		for(var i in results){
    +			var result = results[i];
    +			var tempTotalPrice = result.totalPrice;
    +			//考虑是否为数字,加强逻辑判断
    +			if(!isNaN(tempTotalPrice)){
    +				//转换成元,四舍五入
    +				tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
    +			}
    +     		htmlContent =  htmlContent +"<li><a href='#' class='item-content'>";
    +     		htmlContent =  htmlContent +"<div class='item-inner'><div class='item-title-row'>";
    +     		htmlContent =  htmlContent +"<div class='item-title'>"+result.name+"<span class='span01'>"+result.city+"-"+result.region+"</span></div>";
    +     		htmlContent =  htmlContent +"</div><div class='item-title-row'>";
    +     		htmlContent =  htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅&nbsp;&nbsp;"+result.area+"㎡ &nbsp;&nbsp;"+result.floor+"/"+result.height+"层</small></div>";
    +     		htmlContent =  htmlContent +"</div><div class='item-subtitle'>";
    +     		//对应城市地区小区30天涨跌幅
    +     		//动态构建key
    +     		var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
    +     		//取得key对于的value
    +     		var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
    +     		if(!isNaN(xqOneMonthUpDownRangeValue)){
    +     			//涨跌幅大于零
    +     			if(parseFloat(xqOneMonthUpDownRangeValue)>=0){
    +     				htmlContent =  htmlContent + "<div>近30天涨跌幅: <em class='up'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-red'></i></em></div>";
    +     			}else{
    +     				//涨跌幅小于零
    +     				htmlContent =  htmlContent + "<div>近30天涨跌幅: <em class='down'>"+Math.abs(xqOneMonthUpDownRangeValue)+"%<i class='icon icon-arrow-green'></i></em></div>";
    +     			}
    +     		}else{
    +     			//为非数字清空放空格
    +     			htmlContent =  htmlContent + "<div>近30天涨跌幅: <em class='down'>"+ +"%<i class='icon icon-arrow-green'></i></em></div>";
    +     		}
    +     		
    +     		//相比对于城市均价
    +     		var cityAvgPriceKey = result.city;
    +     		//取得对应城市的value
    +     		var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey];
    +     		if(!isNaN(cityAvgPriceValue)){
    +     			if(parseInt(cityAvgPriceValue)>=parseInt(result.price)){
    +     				htmlContent =  htmlContent + "<div>相比"+result.city+"均价: <em class='up'>高"+(parseInt(cityAvgPriceValue)-parseInt(result.price))+"元</em></div>";
    +     			}else{
    +     				htmlContent =  htmlContent + "<div>相比"+result.city+"均价: <em class='down'>低"+(parseInt(result.price)-parseInt(cityAvgPriceValue))+"元</em></div>";
    +     			}
    +     		}else{
    +     			//为非数字清空放空格
    +     			htmlContent =  htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+' '+"</em></div>";
    +     		}
    +     		htmlContent =  htmlContent + "<div>均价: <em class='em02'>"+result.price+"元/㎡</em></div>";
    +     		htmlContent =  htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</strong>万</em></div>";
    +     		htmlContent =  htmlContent + "</div></div></a><a class='add open-vertical-modal' id="+result.id+" uid="+result.uid+" houseStatus="+result.houseStatus+"><i class='icon icon-add'></i>添加管理</a>"
    +			htmlContent =  htmlContent +"</li>";
    +     	}
    +	}
    +	return htmlContent;
    +}
    +
    +//界面加载
    +$(document).ready(function () {
    +	selectEvaluateList();
    +});
    +
    +function openaddWindow(){
    +	clicked('/views/house/add.html',true,false,{},{})
    +}
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html
    new file mode 100644
    index 0000000..09d9cdd
    --- /dev/null
    +++ b/fangija-zsyf/views/evaluate/evaluateReport.html
    @@ -0,0 +1,526 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>评估报告</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
    +
    +<style>
    +	.list-block ul:before{height:0;}
    +	.priceRecovery + .list-block ul:after{height:0;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">评估报告</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="list-block media-list" id="house_info" v-cloak>
    +				<ul>
    +					<li>
    +						<div class="item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row">
    +									<div class="item-title"><label><b>{{name}}</b></label><span class="span01">{{city_region}}</span></div>
    +								</div>
    +								<div class="item-title-row">
    +									<div class="item-title"><small>{{house_room_num}}</small></div>
    +								</div>
    +							</div>
    +						</div>
    +						<a class="add add01 button theme" onclick="openaddWindow()">再估一套</a>
    +					</li>
    +				</ul>
    +			</div>
    +      		<div class="card cardPrice cardPrice01" id="house_price" v-cloak> 
    +				<div class="card-header">
    +					<span>评估总价</span>
    +					<span>均价:<em>{{avg_price}}</em></span>
    +				</div>
    +				<div class="card-content">
    +					<div class="card-content-inner">{{total_price}}<span>{{w}}</span></div>
    +				</div>
    +				<div class="card-footer">
    +					<span>
    +						<em><strong>{{percentage_30}}</strong>{{p}}<i v-bind:class="arrow"></i></em>
    +						<label>近30天涨跌幅</label>
    +					</span>
    +					<span>
    +						<em>{{compare_word}} <strong>{{compare_money}}</strong> {{words}}</em>
    +						<label>相比{{city}}均价</label>
    +					</span>
    +				</div>
    +			</div>
    +			<!--<div class="card cardPrice cardPrice02" id="evaluate_msg">
    +				<div class="card-footer">
    +					<span>
    +						<em><strong>{{evaluate_percent}}</strong>%<i v-bind:class="arrow"></i></em>
    +						<label>{{evaluate_words}}</label>
    +					</span>
    +					<span>
    +						<label style="color:#666;">{{msg}}</label>
    +					</span>
    +				</div>
    +			</div>-->
    +			<div class="content-block priceRecovery" id="price_feedback" v-bind:style="{display:isShow}">
    +				<p><label>估的准吗?</label></p>
    +				<p><small>您的反馈很重要,是我们努力的动力</small></p>
    +				<div class="row">
    +					<div class="col-50"><a class="button" v-on:click="feedback(1,$event)">高了</a></div>
    +					<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
    +				</div>
    +			</div>
    +			<div class="list-block media-list mb05">
    +				<ul>
    +					<li>
    +						<div class="item-content">
    +							<div class="item-inner" style="padding:0.75rem 0;">
    +								<div class="item-title-row">
    +									<div class="item-title" style="width:65%;overflow:visible;white-space:normal;font-size:0.75rem;">加入"我的房产",随时掌握房产价值变化</div>
    +									<div class="item-after"><a class="add add01 button theme open-vertical-modal" id="addHouse">立即添加</a></div>
    +								</div>
    +							</div>
    +						</div>
    +						
    +					</li>
    +				</ul>
    +			</div>
    +			<a class="ad"><img id="img"></a>
    +			<div class="topic">
    +				<div class="topicTitle" style="position:relative;">均价走势
    +					<div class="content-block">
    +						<div class="buttons-row theme avgPriceTrend">
    +							<a href="#tabChartAvg1" data-id="2" class="tab-link button active">半年</a>
    +							<a href="#tabChartAvg2" data-id="3" class="tab-link button">一年</a>
    +							<a href="#tabChartAvg3" data-id="5" class="tab-link button">三年</a>
    +						</div>
    +					</div>
    +				</div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="chart" id="chart02"></div>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +var jQuery  = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/beacon_release.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +	document.addEventListener('plusready', onPlusReady, false);
    +	function onPlusReady(){
    +	  	var self = plus.webview.currentWebview();
    +	    var hid = self.hid;  
    +	    var houseStatus = ""
    +		var house_info = new Vue({
    +			el:'#house_info',
    +			data:{
    +				name:"",
    +				city_region:"",
    +				house_room_num:""
    +			}
    +		})
    +		var house_price = new Vue({
    +			el:"#house_price",
    +			data:{
    +				total_price:"",
    +				avg_price:"",
    +				percentage_30:"",
    +				arrow:"",
    +				city:"",
    +				compare_word:"",
    +				compare_money:"",
    +				words:"",
    +				p:"",
    +				w:""
    +			}
    +		})
    +	//	var evaluate_msg = new Vue({
    +	//		el:"#evaluate_msg",
    +	//		data:{
    +	//			evaluate_percent:"",
    +	//			evaluate_words:"",
    +	//			arrow:"",
    +	//			msg:""
    +	//		}
    +	//	})
    +		
    +		
    +		var price_feedback = new Vue({
    +			el:"#price_feedback",
    +			data:{
    +				isShow:"display"
    +			},
    +			methods:{
    +				feedback:function(i,event){
    +					if($(event.target).hasClass("theme")){
    +						return;
    +					}
    +					axios.post("/rest/evaluate/feedBack",{
    +			       			hid:hid,
    +							reason:i
    +					}).then(function(response){
    +						$.toast("感谢您的反馈!")
    +						$("#price_feedback").hide();
    +					}).catch(function(error){console.log(error)})
    +				},
    +				isFeedback:function(){
    +					axios.get("/rest/evaluate/isFeedBack",{params:{
    +			       			id:hid
    +					}}).then(function(response){
    +						if(response.data.status){
    +							if(1==response.data.data){
    +								price_feedback.isShow="none"
    +							}
    +						}
    +					}).catch(function(error){console.log(error)})
    +				}
    +			},mounted:function(){
    +				this.isFeedback();
    +			}
    +		})
    +		
    +		axios.get("/rest/evaluate/queryHouseInfo",{
    +			params:{id : hid}
    +		}).then(function(response){
    +			if(response.data.status){
    +				h = response.data.data
    +				house_info.name = h.name
    +				house_info.city_region = h.city+"-"+h.region
    +				house_info.house_room_num = (h.houseRoomNum==null||h.houseRoomNum=="")?"暂无":h.houseRoomNum;
    +//				house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅  ")+(h.area==0?"":h.area+"㎡  ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
    +				if(h.totalPrice==0){
    +					house_price.total_price = "暂无";
    +				}else{
    +					house_price.total_price = (h.totalPrice/10000).toFixed(2)
    +					house_price.w = "万"
    +				}
    +				house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
    +				house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
    +				if(h.oneMonthUpDownRange<0){
    +					house_price.arrow="icon icon-arrow-green"
    +					house_price.percentage_30=-h.oneMonthUpDownRange
    +					house_price.p = "%"
    +				}else if(h.oneMonthUpDownRange>0){
    +					house_price.arrow="icon icon-arrow-red"
    +					house_price.percentage_30=h.oneMonthUpDownRange
    +					house_price.p = "%"
    +				}else{
    +					house_price.percentage_30="暂无"
    +				}
    +				house_price.city=h.city
    +				if(h.avgPrice==0){
    +					house_price.words="暂无"
    +				}else{
    +					if(h.compareMoney<0){
    +						house_price.compare_word="低"
    +						house_price.words="元"
    +						house_price.compare_money=-h.compareMoney
    +					}else if(h.compareMoney>0){
    +						house_price.compare_word="高"
    +						house_price.words="元"
    +						house_price.compare_money=h.compareMoney
    +					}else{
    +						//house_price.compare_money="相等"
    +						house_price.compare_word="高"
    +						house_price.words="元"
    +						house_price.compare_money=0
    +					}
    +				}
    +				
    +	//			if(h.evaluatePercent<0){
    +	//				evaluate_msg.evaluate_words="下跌概率"
    +	//				evaluate_msg.arrow="icon icon-arrow-green"
    +	//				evaluate_msg.evaluate_percent=-h.evaluatePercent
    +	//			}else if(h.evaluatePercent>0){
    +	//				evaluate_msg.evaluate_words="上涨概率"
    +	//				evaluate_msg.arrow="icon icon-arrow-red"
    +	//				evaluate_msg.evaluate_percent=h.evaluatePercent
    +	//			}else{
    +	//				evaluate_msg.evaluate_words="暂无"
    +	//			}
    +	//			evaluate_msg.msg=h.evaluateMsg
    +				if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
    +					$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
    +					//控制贷款按钮是否可以显示,便于ios版本审核
    +					if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
    +						$("#img").click(function(){
    +						 	clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
    +						})
    +					}
    +				}
    +				loadingChart(h.city,h.region,h.name,2)
    +				//按照时间范围加载数据
    +				$(".avgPriceTrend a").click(function(){
    +					var type = $(this).attr("data-id");
    +					$(".avgPriceTrend a").removeClass("active")
    +					$(this).addClass('active');
    +						loadingChart(h.city,h.region,h.name,type);
    +				});
    +				houseStatus = h.houseStatus;
    +			}
    +		}).catch(function(error){
    +			console.log(error)
    +		})
    +		
    +		/* 房产用途 */
    +	$(document).on('click','.open-vertical-modal', function () {
    +	    var houseStatus = 0;
    +	    $.modal({
    +			title: '房产用途',
    +			verticalButtons: true,
    +			buttons: [
    +				{
    +					text: '自住',
    +					onClick: function() {
    +						
    +						addManagement(hid, houseStatus, "自住");
    +					}
    +				},
    +				{
    +					text: '出租',
    +					onClick: function() {
    +						addManagement(hid, houseStatus, "出租");
    +					}
    +				},
    +				{
    +					text: '空置',
    +					onClick: function() {
    +						addManagement(hid, houseStatus, "空置");
    +					}
    +				},
    +				{
    +					text: '取消'
    +				}
    +			]
    +		})
    +	});
    +	    
    +	}
    +	
    +	
    +	//添加管理AJAX请求
    +function addManagement(id, houseStatus, liveStatus){
    +	axios.post(BASE_PATH + "/rest/evaluate/addManagement",
    +		{
    +		    id: id,
    +		    houseStatus: houseStatus,
    +		    liveStatus: liveStatus
    +		}).then(function (response) {
    +			var status = response.data.status;
    +			if(status){
    +				$.toast(response.data.data);
    +				plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +			}else{
    +				$.toast(response.data.message);
    +			}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +</script>
    +
    +<script>
    +
    +/* button状态切换 */
    +$(".priceRecovery .col-50 .button").on("click", function () {
    +	$(".priceRecovery .col-50 .button").removeClass("theme");
    +	$(this).addClass("theme");
    +});
    +
    +/* button状态切换 */
    +$(".content-block .button").on("click", function () {
    +	$(this).parent().children().removeClass("active");
    +	$(this).addClass("active");
    +});
    +
    +
    +
    +</script>
    +
    +<script src="../../js/highcharts-4.2.3.js"></script>
    +
    +<script>
    +
    +
    +
    +function getNowFormatDate(date) {
    +    var seperator1 = "-";
    +    var year = date.getFullYear();
    +    var month = date.getMonth() + 1;
    +    if (month >= 1 && month <= 9) {
    +        month = "0" + month;
    +    }
    +    var currentdate = year + seperator1 + month ;
    +    return currentdate;
    +}
    +function loadingChart(city, region, name,type){
    +	axios.get("/fsh/getDistrictPriceZouShi",{
    +		params:{city : city,region:region,name:name,type:type}
    +	}).then(function(response){
    +		var re = response.data;
    +		var categories = new Array();
    +		var series = new Array();
    +		var cityObj = new Object();
    +		var regionObj = new Object();
    +		var districtObj = new Object();
    +		
    +		districtObj.name = '小区';
    +		regionObj.name = '区县';
    +		cityObj.name = '城市';
    +		
    +		series.push(districtObj);
    +		series.push(regionObj);
    +		series.push(cityObj);
    +		
    +		var cityDatas = new Array();
    +		var regionDatas = new Array();
    +		var districtDatas = new Array();
    +		var m = re.timeKeys;
    +		if(m){
    +			for(var i=0;i<m.length;i++){
    +				var date = new Date(Number(m[i]))
    +//				
    +				categories.push(getNowFormatDate(date));
    +				
    +				if(re.cityAvgZouShi[m[i]] == undefined){
    +					cityDatas.push(null);
    +				} else {
    +					cityDatas.push(re.cityAvgZouShi[m[i]]);
    +				}
    +				if (re.regionAvgZouShi[m[i]] == undefined) {
    +					regionDatas.push(null);
    +				} else {
    +					regionDatas.push(re.regionAvgZouShi[m[i]]);
    +				}
    +				
    +				if (re.districtAvgZouShi[m[i]] == undefined){
    +					districtDatas.push(null);
    +				} else {
    +					districtDatas.push(re.districtAvgZouShi[m[i]]);
    +				}
    +			}
    +		}
    +		
    +		cityObj.data = cityDatas;
    +		regionObj.data = regionDatas;
    +		districtObj.data = districtDatas;
    +		
    +		showChat(categories, series);
    +	}).catch(function(error){
    +		console.log(error)
    +	})
    +	
    +	
    +}
    +
    +
    +/* 均价走势 */
    +function showChat(categories, series) {
    +	charts =Highcharts.chart('chart02', {
    +		title: {
    +			text: '',
    +			x: -20 //center
    +		},
    +		subtitle: {
    +			text: '',
    +			x: -20
    +		},
    +		colors: ['#50a5fc', '#666', '#ff560c'],
    +		xAxis: {
    +			categories: categories,
    +			boundaryGap: false,
    +	           tickInterval: 3,
    +	           tickLength: 8,
    +			labels: {
    +				style: {
    +					'font-size': '12px'
    +				}
    +			}
    +		},
    +		yAxis: {
    +			allowDecimals: false,
    +			title: {
    +				text: ''
    +			},
    +			plotLines: [{
    +				value: 0,
    +				width: 1,
    +				color: '#808080'
    +			}]
    +		},
    +		tooltip: {
    +			valueSuffix: '元/㎡'
    +		},
    +		plotOptions: {
    +	           line: {
    +	               connectNulls:true//该设置会连接空值点
    +	           },
    +	           series: {
    +	           		events: {
    +						legendItemClick: function(event) {
    +							return false;
    +						}
    +					},
    +					marker: {
    +						radius: 3,  //曲线点半径,默认是4
    +						symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
    +					}
    +			   }
    +	       },
    +		legend: {
    +			layout: 'horizontal',
    +			align: 'center',
    +			verticalAlign: 'bottom',
    +			y: -15,
    +			borderWidth: 0
    +		},
    +		series: series,
    +		credits: {                                                         
    +			enabled: false                                                 
    +		}
    +	})
    +}
    +function openaddWindow(){
    +	clicked('/views/house/add.html',true,false,{},{type:1},function(){
    +	})
    +}
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html
    new file mode 100644
    index 0000000..342aa2f
    --- /dev/null
    +++ b/fangija-zsyf/views/house/add.html
    @@ -0,0 +1,1949 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>房产评估</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/city.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.list-block ul:before{height:0;}
    +	.list-block.mb05 ul:before{height:1px;}
    +	.list-block.mb05 ul:after{height:0;}
    +	.info-container input{float:none;width:100%;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<!--<button class="button button-link button-nav pull-right open-popover">			
    +				<span class="icon icon-path"></span>
    +			</button>-->
    +			<h1 class="title">房产评估</h1>
    +		</header>
    +        <div class="content f3">
    +        	<div class="list-block media-list mb05">
    +                <ul>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">城<small class="spacing">&nbsp;</small>市</div>
    +                                    <div class="item-after">
    +                                    	<input type="hidden" name="region" id="region">
    +							            <input type="hidden" name="address" id="address">
    +							            <input name ="cityAddress" type="hidden" id="cityAddress">
    +                                    	<input type="text" id="input_city" class="textAlignLeft open-about01" placeholder="请选择城市" readonly="readonly">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">房屋地址</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_address" class="textAlignLeft open-about02" placeholder="请选择房屋地址" readonly="readonly">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                    	<a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">房屋类型</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_houseType" class="textAlignLeft" placeholder="请选择房屋类型">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">楼栋室号</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_building" class="textAlignLeft open-about03" placeholder="请选择楼栋室号">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">楼<small class="spacing">&nbsp;</small>层</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_floor" class="textAlignLeft" placeholder="请选择楼层">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">房屋面积</div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_area" class="textAlignLeft" placeholder="请输入房屋面积">
    +                                        <label>平米</label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="list-block media-list"  id="liveStatusDiv" style="display:none;">
    +            	<ul>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">目前状态</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_status" class="textAlignLeft" value="自住" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li class="rentShow dn">
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">起租日期</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_time01" class="textAlignLeft" placeholder="请选择起租日期" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li class="rentShow dn">
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">到期日期</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_time02" class="textAlignLeft" placeholder="请选择到期日期" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li class="rentShow dn">
    +                    	<a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">收租周期</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_cycle" class="textAlignLeft" value="1 月 /次" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li class="rentShow dn">
    +                    	<a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">每期租金</div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_rent" class="textAlignLeft" placeholder="请输入每期租金">
    +										<label>元</label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li class="rentShow dn">
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">下次收租日期</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_time03" class="textAlignLeft textAlignLeft01" placeholder="请选择下次收租日期" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +			</div>
    +            <div class="content-block">
    +                <p><button id="evaluation_btn" class="button button-big button-fill theme" id="evaluation_btn" style="width:100%">提交评估</button></p>
    +            </div>
    +        </div>
    +    </div>
    +    <!--<div class="popover">
    +		<div class="popover-angle"></div>
    +		<div class="popover-inner">
    +			<div class="list-block">
    +				<ul>
    +					<li><a href="01_index.html" class="list-button item-link external">首页</a></li>
    +					<li><a href="02_quotation01_country.html" class="list-button item-link external">行情</a></li>
    +					<li><a href="03_evaluation01_index.html" class="list-button item-link external">评估</a></li>
    +					<li><a href="05_mine01_index.html" class="list-button item-link external">我的</a></li>
    +				</ul>
    +			</div>
    +		</div>
    +	</div>-->
    +</div>
    +
    +<!-- About Popup -->
    +<div class="popup popup-about popup-about01">
    +    <div class="bar">
    +        <div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="citySearchInp" placeholder="请输入城市名称进行搜索">
    +            </div>
    +        </div>
    +        <div class="buttons-tab theme">
    +			<a href="#tabCity1" class="tab-link button active">按拼音字母</a>
    +			<a href="#tabCity2" class="tab-link button">按城市等级</a>
    +		</div>
    +    </div>
    +     <div class="content-block content-block01 content dn" style="top:66px;z-index:100;" id="selectContainer">
    +		<div class="container" style="top:0;">
    +			<div class="city" style="width:100%;">
    +				<div class="city-list"></div>
    +			</div>
    +		</div>	
    +	</div>
    +	<div class="tabs">
    +		<div id="tabCity1" class="tab active">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer" class="container">
    +					<div class="cityGPS">
    +						<div class="city-list01 close-popup">
    +							<p class="nowCity">上海</p>
    +							<small>当前城市</small>
    +						</div>
    +					</div>
    +					<div class="cityHot">
    +						<div class="city-list01">
    +							<span class="city-letter" id="Hot">热门城市</span>
    +							<div>
    +								<p class="close-popup">北京</i></p>
    +								<p class="close-popup">上海</i></p>
    +								<p class="close-popup">广州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">深圳</p>
    +								<p class="close-popup">成都</p>
    +								<p class="close-popup">杭州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">南京</p>
    +								<p class="close-popup">重庆</p>
    +								<p class="close-popup">天津</p>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="city">
    +						<div class="city-list"><span class="city-letter" id="A1">A</span>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup">阿克苏</p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">安顺</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="B1">B</span>
    +							<p class="close-popup">百色</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">蚌埠</p>                        
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">北京</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">亳州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="C1">C</span>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="D1">D</span>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">丹东</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">东营</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="E1">E</span>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">鄂州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="F1">F</span>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">福州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="G1">G</span>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">广州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="H1">H</span>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">杭州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="J1">J</span>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">鸡西</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="K1">K</span>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">昆明</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="L1">L</span>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">拉萨</p>                        
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">泸州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="M1">M</span>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">牡丹江</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="N1">N</span>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">怒江州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="P1">P</span>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">莆田</p>
    +							<p class="close-popup">濮阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Q1">Q</span>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">泉州</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">衢州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="R1">R</span>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">日照</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="S1">S</span>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">上海</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">深圳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="T1">T</span>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">台州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="W1">W</span>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">无锡</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">温州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="X1">X</span>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">信阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Y1">Y</span>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">扬州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Z1">Z</span>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">郑州</p>
    +						</div>
    +					</div>
    +					<div class="letter">
    +						<ul>
    +							<li><a href="javascript:;">热门</a></li>
    +							<li><a href="javascript:;">A</a></li>
    +							<li><a href="javascript:;">B</a></li>
    +							<li><a href="javascript:;">C</a></li>
    +							<li><a href="javascript:;">D</a></li>
    +							<li><a href="javascript:;">E</a></li>
    +							<li><a href="javascript:;">F</a></li>
    +							<li><a href="javascript:;">G</a></li>
    +							<li><a href="javascript:;">H</a></li>
    +							<li><a href="javascript:;">J</a></li>
    +							<li><a href="javascript:;">K</a></li>
    +							<li><a href="javascript:;">L</a></li>
    +							<li><a href="javascript:;">M</a></li>
    +							<li><a href="javascript:;">N</a></li>
    +							<li><a href="javascript:;">P</a></li>
    +							<li><a href="javascript:;">Q</a></li>
    +							<li><a href="javascript:;">R</a></li>
    +							<li><a href="javascript:;">S</a></li>
    +							<li><a href="javascript:;">T</a></li>
    +							<li><a href="javascript:;">W</a></li>
    +							<li><a href="javascript:;">X</a></li>
    +							<li><a href="javascript:;">Y</a></li>
    +							<li><a href="javascript:;">Z</a></li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +		<div id="tabCity2" class="tab">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer01" class="container">
    +					<div class="city" style="width:100%;">
    +						<div class="city-list">
    +							<span class="city-letter" id="City1">一线城市</span>
    +							<div>
    +								<p class="close-popup">北京</p>
    +								<p class="close-popup">上海</p>
    +								<p class="close-popup">广州</p>
    +								<p class="close-popup">深圳</p>
    +							</div>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City1a">新一线城市</span>
    +							<p class="close-popup">杭州</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">无锡</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City2">二线城市</span>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">扬州</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">福州</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">温州</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">郑州</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">昆明</p>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">泉州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City3">三线城市</span>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">泸州</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">蚌埠</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">台州</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">衢州</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">莆田</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City4">四线城市</span>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">牡丹江</p>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">白色</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +							<p class="close-popup">东营</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">拉萨</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">信阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">日照</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">丹东</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City5">五线城市</span>
    +							<p class="close-popup">铁门关</p>
    +							<p class="close-popup">可克达拉</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">安顺</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">鸡西</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">亳州</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">鄂州</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">濮阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup">阿克苏</p>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">怒江州</p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">北屯</p>
    +							<p class="close-popup">双河</p>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<div class="popup popup-about popup-about02">
    +   	<div class="bar">
    +        <div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="districtName" placeholder="请输入小区名或地址">
    +            </div>
    +        </div>
    +        
    +        <div class="content-block dn" id="notFound" style="margin-top:50%;">
    +			<p style="text-align:center;">没有找到相关的小区</p>
    +			<p><a class="button button-big theme open-modal" id="notFound_btn" style="font-size:0.8rem;">没搜到?立刻告诉我们</a></p>
    +			<p style="text-align:center;text-decoration:underline;margin-top:2rem;"><a class="close-popup">返回</a></p>
    +		</div>
    +		
    +    </div>
    +    <div class="content-block content-block01 content">
    +        <div class="container">
    +        	<div class="list-block media-list hotList newCss">
    +				<div class="searchHistory" id="searchHotDiv">热门小区</div>
    +				<div id="hotList">
    +					<ul>
    +						<li v-for="(dist,index) in hotDists" @click="openHotDetail(index)"><a class="close-popup" v-bind:data-name="dist.name" v-bind:data-region="dist.region" v-bind:data-city="dist.city" v-bind:data-address="dist.address">{{dist.name}}</a></li>
    +					</ul>
    +				</div>
    +			</div>
    +			<div class="list-block media-list historyList newCss">
    +				<div class="searchHistory" id="searchHistoryDiv">历史记录<a id="clearSearchHistory"></a></div>
    +				<div id="districtList">
    +					<ul>
    +						<li v-for="(history,index) in histories" @click="openHistoryDetail(index)">{{history.name}}</li>
    +					</ul>
    +				</div>
    +			</div>
    +			<div class="list-block media-list searchList dn">
    +				<div id="searchList">
    +					<ul>
    +						<li v-for="(searchDist,index) in searchDistricts" @click="openDistrictDetail(index)">
    +			                <a  class="item-link item-content close-popup" v-bind:data-name="searchDist.name" v-bind:data-region="searchDist.region" v-bind:data-city="searchDist.city" v-bind:data-address="searchDist.address">
    +			                	<div class="item-inner">
    +			                		<div class="item-title-row">
    +			                			<div class="item-title">{{searchDist.name}}<br><small>{{searchDist.city}}{{searchDist.region}}{{searchDist.address}}</small></div>
    +			                		</div>
    +			                	</div>
    +			                </a>
    +               			</li>
    +					</ul>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<div class="popup popup-about popup-about03">
    +   	<div class="bar">
    +		<div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +				<label class="icon icon-search" for="search"></label>
    +				<input type="search" id='searchHouseLouDong' placeholder="搜索楼栋号">
    +			</div>
    +		</div>
    +	</div>
    +    <div class="content-block content-block01 content">
    +        <div class="container">
    +			<div class="list-block list-block01 media-list">
    +				<ul>
    +				</ul>
    +			</div>
    +			<!-- 加载提示符 -->
    +
    +			<div class="infinite-scroll-preloader">
    +				<div style="color:#999;">没有更多数据</div>
    +			</div>
    +
    +		</div>
    +    </div>
    +    <div class="bar bottom">
    +		<div class="searchbar">
    +			<div class="search-input">
    +				<div>或手动输入</div>
    +				<input type="text" placeholder="楼栋号+室号" class="input_number" id="input_number01">
    +				<a class="button button-fill theme close-popup submit"><span>提交</span></a>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<div class="popup popup-about popup-about04">
    +   	<div class="bar">
    +		<div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +				<label class="icon icon-search" for="search"></label>
    +				<input type="search" id='searchRoomNum' placeholder="搜索室号">
    +			</div>
    +		</div>
    +	</div>
    +    <div class="content-block content-block01 content">
    +        <div class="container">
    +			<div class="list-block list-block01 media-list">
    +				<ul>
    +				</ul>
    +			</div>
    +			<!-- 加载提示符 -->
    +
    +			<div class="infinite-scroll-preloader">
    +				<div style="color:#999;">没有更多数据</div>
    +			</div>
    +
    +		</div>
    +    </div>
    +    <div class="bar bottom">
    +		<div class="searchbar">
    +			<div class="search-input">
    +				<div>或手动输入</div>
    +				<input type="text" placeholder="楼栋号+室号" class="input_number" id="input_number02">
    +				<a class="button button-fill theme close-popup submit"><span>提交</span></a>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/sm.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type='text/javascript' src='../../js/city-app.js?version=${version!}' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/searchDistrict-add.js?' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/validate.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +document.addEventListener('plusready', onPlusReady, false);
    +var houseStatus; //= "186182250936643584";
    +//扩展API加载完毕,现在可以正常调用扩展API
    + var type = 1; 
    +function onPlusReady(){
    +	var self = plus.webview.currentWebview();
    +    type = self.type;  //type为1时是我的房产
    +    if(type==0){
    +    	$("#liveStatusDiv").show();
    +    }else{
    +    	$("#liveStatusDiv").hide();
    +    }
    +    houseStatus = 0;
    +	var city_map = localStorage.getItem("init_city");
    +	if(city_map){
    +		$("#input_city").val(city_map)
    +	    $(".nowCity").text(city_map)
    +  		city= city_map;
    +	}else{
    +		$("#input_city").val("上海");
    +		$(".nowCity").text("上海");
    +	}
    +	getRequestId();
    +}
    +
    +// 生成请求ID,防止重复提交
    +var requestId = "";
    +function getRequestId() {
    +	axios.get("/rest/index/id")
    +	.then(function (response) {
    +		if(response.data.status){
    +			requestId = response.data.data;
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +/* 弹出城市选择页面 */
    +$(document).on("click",".open-about01", function () {
    +	$.popup(".popup-about01");
    +});
    +function req(city){
    +	city=city.replace("<i></i>","")
    +    $("#input_city").val(city);
    +}
    +/* 获取房屋地址 */
    +$(".popup-about02 ul li").on("click", function () {
    +	$("#input_address").val($(this).find(".item-title font").text());
    +});
    +
    +
    +$("body").delegate("#hotList ul li", "click", function ()  {
    +	$("#input_address").val($(this).find("a").attr("data-name"));
    +    $("[name=region]").val($(this).find("a").attr("data-region"));
    +    $("[name=name]").val($(this).find("a").attr("data-name"));
    +    $("[name=cityAddress]").val($(this).find("a").attr("data-city"));
    +    $.popup(".popup-about02")
    +});
    +/* 选择-房屋类型 */
    +$("#input_houseType").picker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">房屋类型</h1>\
    +	</header>',
    +	cols: [
    +		{
    +			textAlign: "center",
    +			values: ["公寓", "独栋别墅", "双拼别墅", "联排别墅", "叠加别墅"]
    +		}
    +	]
    +});
    +
    +var loudongData={};
    +var roomNumData={};
    +var louDongNum='';
    +var louDongHeight='';
    +var louDongFloor='';
    +/* 弹出楼栋号选择页面 */
    +$(document).on("click",".open-about03", function () {
    +	loadLouDong();
    +	$.popup(".popup-about03");
    +	$("#input_number01").val("");
    +    $("#input_number02").val("");
    +    $("#searchHouseLouDong").val("");
    +    search();
    +    $("#searchRoomNum").val("");
    +	$("input").blur();
    +});
    +
    +/* 弹出室号选择页面 */
    +$(document).on("click",".open-about04", function () {
    +	$.closeModal(".popup-about03");
    +	louDongNum=$(this).find(".item-title font").text().replace("号","");
    +    louDongHeight=$(this).find(".item-title input").val();
    +    loadRoomNum(louDongNum,louDongHeight);
    +	$.popup(".popup-about04");
    +	$("input").blur();
    +});
    +
    +//加载所有的楼栋
    +function loadLouDong(){
    +	axios.get("/rest/auto/buildingNumbers", {
    +	    params: {
    +	      city: $("#input_city").val(),
    +	      region:$("input[name=region]").val(),
    +	      name:$("#input_address").val()
    +	    }
    +	})
    +	.then(function (response) {
    +		if(response.data.data.length>0){
    +			var data = response.data.data;
    +			var html='';
    +           if(data){
    +                loudongData={};
    +                var val = $("#input_houseType").val();
    +                if (val == "公寓" || val == "叠加别墅"){
    +                	for (var i = 0; i < data.length; i++) {
    +					    loudongData[data[i].buildingNumber]=data[i].height;
    +						html += '<li><a class="item-link item-content open-about04"><div class="item-inner"><div class="item-title-row"><div class="item-title"><font>' + data[i].buildingNumber + '号</font><input type="hidden" value="'+data[i].height+'"></div></div></div></a></li>';
    +					}
    +			    }else{
    +			    	for (var i = 0; i < data.length; i++) {
    +					    loudongData[data[i].buildingNumber]=data[i].height;
    +						html += '<li><a class="item-link item-content open-about04"><div class="item-inner"><div class="item-title-row"><div class="item-title"><font>' + data[i].buildingNumber + '号</font><input type="hidden" value="'+data[i].height+'"></div></div></div></a></li>';
    +					}
    +			    }
    +            }else{
    +                $("#loudongDiv").addClass("item-inner01");
    +                $("#input_building").removeClass("open-about03");
    +                $("#input_building").attr("placeholder","请输入楼栋号+室号");
    +            }  
    +			// 添加新条目
    +			$('.popup-about03 .list-block01 ul').html(html);
    +			// 获取楼栋号 
    +			$(".popup-about03 ul li").on("click", function () {
    +			    a=$("#input_number01").val($(this).find(".item-title font").text());
    +				$("#input_number02").val(a.val());
    +				$("#input_building").val(a.val());
    +			});					
    +			$(".submit").on("click", function () {
    +				$("#input_building").val($(this).prev().val());
    +			       $("#input_floor").val("");
    +			});
    +			$("input").blur();
    +		}
    +		
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//加载所有的室号
    +function loadRoomNum(louDongNum,louDongHeight){
    +	axios.get("/rest/auto/roomNumbers", {
    +	    params: {
    +	      city: $("#input_city").val(),
    +	      region:$("input[name=region]").val(),
    +	      name:$("#input_address").val(),
    +	      buildingNumber:louDongNum
    +	    }
    +	})
    +	.then(function (response) {
    +		if(response.data.data.length>0){
    +			var data = response.data.data;
    +			var html='';
    +	        if(data){    
    +	            roomNumData={};
    +				for (var i = 0; i < data.length; i++) {
    +				    roomNumData[data[i].room]=data[i].floor;
    +				    html += '<li><a class="item-content close-popup"><div class="item-inner"><div class="item-title-row"><div class="item-title"><font>' + data[i].room + '室</font><input type="hidden" value="'+data[i].floor+'"></div></div></div></a></li>';
    +				}
    +            }else{
    +            
    +            }  
    +			// 添加新条目
    +			$('.popup-about04 .list-block01 ul').html(html);
    +			$(".popup-about04 ul li").on("click", function () {
    +			   
    +				$("#input_number02").val(louDongNum+'号'+$(this).find(".item-title font").text());
    +				louDongFloor=$(this).find(".item-title input").val();
    +				
    +				$("#input_building").val($("#input_number02").val());
    +				var floorStr = "";
    +			    if(parseInt(louDongFloor)>0 && parseInt(louDongFloor)<61){
    +					floorStr ="第"+louDongFloor+"层"
    +				}
    +				if(parseInt(louDongHeight)>0 && parseInt(louDongHeight)<61){
    +					floorStr =floorStr+ " 共"+louDongHeight+"层"
    +				}		
    +				if(parseInt(louDongFloor)>parseInt(louDongHeight)){
    +				   floorStr = "";
    +				}
    +				$("#input_floor").val(floorStr);
    +				var valueStr = floorStr;
    +				if(parseInt(louDongHeight)<0 && parseInt(louDongHeight)>61){
    +					valueStr =valueStr+ " 共"+louDongFloor+"层"
    +				}
    +				$("#input_floor").attr("value",valueStr);
    +		     });
    +		     $(".submit").on("click", function () {
    +		         $("#input_building").val($(this).prev().val());
    +		         $("#input_floor").val("");
    +	         });	
    +		     $("input").blur();
    +		}
    +		
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +$(function() {
    +	/* 获取室号 */
    +	$(".popup-about04 ul li").on("click", function () {
    +		$("#input_number02").val(a.val()+$(this).find(".item-subtitle font").text());
    +		$("#input_building").val($("#input_number02").val());
    +	});
    +	$(".submit").on("click", function () {
    +		$("#input_building").val($(this).prev().val());
    +	});
    +});
    +
    +   
    +   var searchLouDongNum = function(){
    +        var searchText = $("#searchHouseLouDong").val();
    +    var html="";
    +    for(var key in loudongData){
    +        if(key.indexOf(searchText) != -1){
    +            html += '<li><a class="item-link item-content open-about04"><div class="item-inner"><div class="item-title-row"><div class="item-title"><font>' + key + '号</font><input type="hidden" value='+loudongData[key]+'></div></div></div></a></li>';
    +        }  
    +    }
    +    // 添加新条目
    +	$('.popup-about03 .list-block01 ul').html(html);
    +	$(".popup-about03 ul li").on("click", function () {
    +			    a=$("#input_number01").val($(this).find(".item-title font").text());
    +				$("#input_number02").val(a.val());
    +				$("#input_building").val(a.val());
    +	});					
    +	$(".submit").on("click", function () {
    +		$("#input_building").val($(this).prev().val());
    +		$("#input_floor").val("");
    +	});		
    +}
    +$("#searchHouseLouDong").bind('input propertychange keyup', function() {
    +	searchLouDongNum();
    +});
    +
    +$("#searchHouseLouDong").bind('keyup', function() {
    +    searchLouDongNum();
    +});
    +
    +var searchRoomNum = function(){
    +    var searchText = $("#searchRoomNum").val();
    +    var html="";
    +    for(var key in roomNumData){
    +        if(key.indexOf(searchText) != -1){
    +            html += '<li><a class="item-content close-popup"><div class="item-inner"><div class="item-title-row"><div class="item-title"><font>' + key + '室</font><input type="hidden" value='+roomNumData[key]+'></div></div></div></a></li>';
    +        }  
    +    }
    +    // 添加新条目
    +	$('.popup-about04 .list-block01 ul').html(html);
    +	$(".popup-about04 ul li").on("click", function () {
    +				$("#input_number02").val(louDongNum+'号'+$(this).find(".item-title font").text());
    +				louDongFloor=$(this).find(".item-title input").val();
    +				$("#input_building").val($("#input_number02").val());
    +				var floorStr = "";
    +			    if(parseInt(louDongFloor)>0 && parseInt(louDongFloor)<61){
    +					floorStr ="第"+louDongFloor+"层"
    +				}
    +				if(parseInt(louDongHeight)>0 && parseInt(louDongHeight)<61){
    +					floorStr =floorStr+ " 共"+louDongHeight+"层"
    +				}		
    +				if(parseInt(louDongFloor)>parseInt(louDongHeight)){
    +				   floorStr = "";
    +				}
    +				$("#input_floor").val(floorStr);
    +				var valueStr = floorStr;
    +				if(parseInt(louDongHeight)<0 && parseInt(louDongHeight)>61){
    +					valueStr =valueStr+ " 共"+louDongFloor+"层"
    +				}
    +				$("#input_floor").attr("value",valueStr);
    +		     });
    +	      $(".submit").on("click", function () {
    +	             $("#input_building").val($(this).prev().val());
    +	             $("#input_floor").val("");
    +             });	     
    +		     $("input").blur();
    +}
    +$("#searchRoomNum").bind('input propertychange keyup', function() {
    +    searchRoomNum();
    +});
    +
    +$("#searchRoomNum").bind('keyup', function() {
    +    searchRoomNum();
    +});
    +
    +//获取所在楼层    1-59层
    +function getfloor(){
    +  var data = new Array();
    +  data.push("所在楼层");
    +  for(var i=1;i<60;i++){
    +      data.push('第'+i+'层');
    +  }
    +  return data;
    +}
    +
    +//获取总楼层  1-59
    +function getfloorHeight(){
    +  var data = new Array();
    +  data.push("总楼层");
    +  for(var i=1;i<60;i++){
    +      data.push('共'+i+'层');
    +  }
    +  return data;
    +}
    +
    +
    +
    +/* 选择-楼层 */
    +$("#input_floor").picker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">楼层</h1>\
    +	</header>',
    +	cols: [
    +		{
    +			textAlign: 'center',
    +			values: getfloor()
    +		},
    +		{
    +			textAlign: 'center',
    +			values: getfloorHeight()
    +		}
    +	]
    +});
    +
    +/* 选择-目前状态 */
    +$("#input_status").picker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">目前状态</h1>\
    +	</header>',
    +	cols: [
    +		{
    +			textAlign: "center",
    +			values: ["自住", "出租", "空置", "我是租客"]
    +		}
    +	]
    +});
    +
    +/* 选择-起租日期 */
    +$("#input_time01").datetimePicker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">起租日期</h1>\
    +	</header>'
    +});
    +
    +/* 选择-到期日期 */
    +$("#input_time02").datetimePicker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">到期日期</h1>\
    +	</header>'
    +});
    +
    +/* 选择-下次收租日期 */
    +$("#input_time03").datetimePicker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">下次收租日期</h1>\
    +	</header>'
    +});
    +
    +/* 选择-收租周期 */
    +$("#input_cycle").picker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">收租周期</h1>\
    +	</header>',
    +	cols: [
    +		{
    +			textAlign: 'center',
    +			values: getnumber()
    +		},
    +		{
    +			textAlign: 'center',
    +			values: ["年", "季", "月"]
    +		},
    +		{
    +			textAlign: 'center',
    +			values: ["/次"]
    +		}
    +	]
    +});
    +
    +// 获取周期  1-30
    +function getnumber(){
    +	var data = new Array();
    +	for(var i=1;i<31;i++){
    +		data.push(i);
    +	}
    +	return data;
    +};
    +
    +/* 目前状态为“出租”时显示相应内容 */
    +$("#input_status").click(function(e){
    +	$(document).click(function(e){
    +		var val = $("#input_status").val();
    +		if(val == "出租"){
    +			$(".rentShow").show();
    +		}else{
    +			$(".rentShow").hide();
    +		}
    +	})
    +});
    +
    +/* 错误提示 */
    +$("#evaluation_btn").on("click", function () {
    +	$("#evaluation_btn").attr("disabled","disabled");
    +	var a = $("#input_city").val();
    +	var b = $("#input_address").val();
    +	var c = $("#input_houseType").val();
    +	var d = $("#input_building").val();
    +	var e = $("#input_floor").val();
    +	var f = $("#input_area").val();
    +       
    +	if(a == ""){
    +		$("#evaluation_btn").removeAttr("disabled");
    +		$.toast("请选择城市");
    +		return false;
    +	}else if(b == ""){
    +		$("#evaluation_btn").removeAttr("disabled");
    +		$.toast("请选择房屋地址");
    +		return false;
    +	}else if(c == ""){
    +		$("#evaluation_btn").removeAttr("disabled");
    +		$.toast("请选择房屋类型");
    +		return false;
    +	}else if(d == ""){
    +		$("#evaluation_btn").removeAttr("disabled");
    +		$.toast("请选择楼栋室号");
    +		return false;
    +	}else if(e == ""){
    +		$("#evaluation_btn").removeAttr("disabled");
    +	    $.toast("楼层不能为空!");
    +	    return false;
    +    }else if(e.indexOf("所在楼层")!= -1){
    +    	$("#evaluation_btn").removeAttr("disabled");
    +     	$.toast("所在楼层不能为空!");
    +	    return false;
    +    }else if(e.indexOf("总楼层")!= -1){
    +    	$("#evaluation_btn").removeAttr("disabled");
    +		$.toast("总楼层不能为空!");
    +        return false;
    +    }else if(f == ""){
    +    	$("#evaluation_btn").removeAttr("disabled");
    +		$.toast("请输入房屋面积");
    +		return false;
    +	}else if(!$("#input_area").isPositiveFloat() || f=='0'){
    +		$("#evaluation_btn").removeAttr("disabled");
    +        $.toast("请输入正确的面积!")
    +        return false
    +    }else if(Number(f)<10 || Number(f)>1000){
    +    	$("#evaluation_btn").removeAttr("disabled");
    +        $.toast("面积范围10-1000㎡");
    +        return false;
    +    }
    +	if(type==0){
    +		if($("#input_status").val()=='出租'){
    +        	if($("#input_time01").isBlank()){
    +        		$("#evaluation_btn").removeAttr("disabled");
    +                $.toast("请选择起租日期")
    +                return false;
    +            }
    +            
    +            if($("#input_time02").isBlank()){
    +            	$("#evaluation_btn").removeAttr("disabled");
    +                $.toast("请选择到期日期")
    +                return false;
    +            }
    +        	if($("#input_time01").val()>$("#input_time02").val()){
    +        		$("#evaluation_btn").removeAttr("disabled");
    +        		$.toast("到期日期必须晚于起租日期");
    +        		return false;
    +        	}
    +        	var nowDay = formatTime(new Date());
    +        	if($("#input_time02").val()<nowDay){
    +        		$("#evaluation_btn").removeAttr("disabled");
    +        		$.toast("到期日期不能早于今天");
    +        		return false;
    +        	}
    +        	var g = $("#input_rent").val();
    +        	if($("#input_rent").isBlank()){
    +        		$("#evaluation_btn").removeAttr("disabled");
    +                $.toast("请输入每期租金")
    +                return false;
    +            }
    +        	
    +        	if(Number(g)<100 || Number(g)>200000){
    +        		$("#evaluation_btn").removeAttr("disabled");
    +    	    	 $.toast("租金范围100-200000元");
    +    	 		return false;    
    +    	     }
    +        	
    +        	if(!$("#input_rent").isPositiveInteger()){
    +        		$("#evaluation_btn").removeAttr("disabled");
    +                $.toast("每期租金必须是整数")
    +                return false;
    +            }
    +            if($("#input_cycle").isBlank()){
    +            	$("#evaluation_btn").removeAttr("disabled");
    +                $.toast("收租周期不能为空")
    +                return false;
    +            }
    +            if($("#input_time03").isBlank()){
    +            	$("#evaluation_btn").removeAttr("disabled");
    +                $.toast("下次收租日期不能为空")
    +                return false;
    +            }
    +            if($("#input_time03").val()>$("#input_time02").val()){
    +            	$("#evaluation_btn").removeAttr("disabled");
    +        		$.toast("收租日期不能晚于到期日期");
    +        		return false;
    +        	}
    +            if($("#input_time03").val()<nowDay){
    +            	$("#evaluation_btn").removeAttr("disabled");
    +        		$.toast("下次收租日期不能早于今天");
    +        		return false;
    +        	}
    +        }
    +	}
    +	if(c && c.indexOf("别墅")<0){
    +	    var num = e.replace(/第/g,"").replace(/层/g,"").replace(/共/g,"").split(" ");
    +	    if(parseInt(num[0])>parseInt(num[1])){
    +	    	$("#evaluation_btn").removeAttr("disabled");
    +	         $.toast("总楼层选择错误!")
    +	         return false	        
    +	    } 
    +	}
    +	
    +	 if($("#cityAddress").val() != "" && $("#cityAddress").val() != $("#input_city").val()){
    +         $("#evaluation_btn").removeAttr("disabled");
    +         $.toast("城市和房屋地址不匹配")
    +         return false
    +     }
    +	 
    + 	axios.get("/rest/index/checkAddress", {
    +	    params: {
    +	      city: $("#input_city").val(),
    +	      region:$("input[name=region]").val(),
    +	      name:$("#input_address").val(),
    +	      address:$("input[name=address]").val()
    +	    }
    +	})
    +	.then(function (response) {
    +		if(response.data.data && response.data.data.success){
    +             var district = response.data.data
    +             $("#input_city").val(district.city)
    +             $("input[name='address']").val(district.address)
    +             $("input[name='name']").val(district.name)
    +             $("input[name='region']").val(district.region)
    +             $("#input_city").val(district.city)
    +             checkIsLogin();
    +         }else{
    +            $("#evaluation_btn").removeAttr("disabled");
    +             console.log("error");
    +             $.toast(response.data.message)
    +         }
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +});
    +
    +function formatTime(time){
    +    var now = new Date(time);
    +    var year=now.getFullYear();     
    +    var month=now.getMonth()+1;
    +    if(month<10){
    +    	month = "0"+month
    +    }
    +    var date=now.getDate(); 
    +    if(date<10){
    +    	date = "0"+date
    +    }
    +    return year+"-"+month+"-"+date;     
    +}
    +//判断是否登录
    +//var loginFlag=false;
    +function checkIsLogin(){
    +	if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +		$("#evaluation_btn").removeAttr("disabled");
    +		clicked('/views/user/codeSms.html',true,false,{},{},function(){
    +			if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +				
    +			}else{
    +				addEvaluation();
    +			
    +			}
    +		})
    +	}else{
    +		addEvaluation();
    +	}
    +}
    +
    +function addEvaluation(){
    +	var data={};
    +	if(type==0){
    +		data={id:requestId,cityDisplay: $("#input_city").val(),
    +	      region:$("input[name=region]").val(),
    +	      district:$("#input_address").val(),
    +	      address:$("input[name=address]").val(),
    +	      estateType:$("#input_houseType").val(),
    +	      loudongName:$("#input_building").val(),
    +	      floorName:$("#input_floor").val(),
    +	      area:$("#input_area").val(),
    +		  liveStatus:$("#input_status").val(),
    +		  leaseStartDate:$("#input_time01").val(),
    +		  leaseEndDate:$("#input_time02").val(),
    +		  rentCycleTemp:$("#input_cycle").val(),
    +		  rent:$("#input_rent").val(),
    +		  lastRentDate:$("#input_time03").val(),
    +		  houseStatus:0}
    +	}else{
    +		data={id:requestId,cityDisplay: $("#input_city").val(),
    +	      region:$("input[name=region]").val(),
    +	      district:$("#input_address").val(),
    +	      address:$("input[name=address]").val(),
    +	      estateType:$("#input_houseType").val(),
    +	      loudongName:$("#input_building").val(),
    +	      floorName:$("#input_floor").val(),
    +	      area:$("#input_area").val(),
    +		  houseStatus:1}
    +	}
    +	axios.get("/rest/index/checkEvalPrice", {
    +	    params: data
    +	})
    +	.then(function (response) {
    +		if(response.data.data!=null && response.data.data.success){
    +			$("#evaluation_btn").removeAttr("disabled");
    +			var id = response.data.data.id;
    +			plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +			plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +			clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id},function(){
    +				getRequestId();
    +			})
    +		}else{
    +			$("#evaluation_btn").removeAttr("disabled");
    +			$.toast(response.data.message);
    +			plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +/* 信息输入弹窗 */
    +$(document).on('click','.open-modal', function () {
    +	$.modal({
    +		title:  '小区信息',
    +		afterText: '<div class="info-container">'+
    +			  '<input type="text" placeholder="小区名称(必填)" id="input_name">'+
    +			  '</div>'+
    +			  '<div class="info-container">'+
    +			  '<input type="text" placeholder="小区地址">'+
    +			  '</div>',
    +		buttons: [
    +			{
    +				text: '取消',
    +				onClick: function() {
    +					$('.modal').remove();
    +					$('.modal-overlay').remove();
    +				}
    +			},
    +			{
    +				text: '确定',
    +				close: false,
    +				onClick: function() {
    +					// 错误提示
    +					var a = $("#input_name").val();
    +					if(a == ""){
    +						$.toast("请输入小区名称");
    +						return false;
    +					}
    +					$('.modal').remove();
    +					$('.modal-overlay').remove();
    +					$.toast('提交成功,我们会尽快完善信息');
    +				}
    +			}
    +		]
    +	})
    +});
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/cityDetail.html b/fangija-zsyf/views/house/cityDetail.html
    new file mode 100644
    index 0000000..cfda17a
    --- /dev/null
    +++ b/fangija-zsyf/views/house/cityDetail.html
    @@ -0,0 +1,190 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>房产行情</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/city.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.cardInfo02 .item-title{white-space:normal;text-align:justify;display:block;}
    +	.cardInfo02 .item-subtitle{margin-top:0.2rem;}
    +	.cardCity01 .card-footer span:nth-child(2){text-align:center;}
    +	.cardNearbyBox01 .cardNearby .card-content-inner{padding-bottom:0.25rem;}
    +</style>
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +    	
    +    	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +		</header>
    +		
    +        <div class="content" id="cityInfo" v-cloak>
    +			<div class="card cardPrice cardPrice01 cardCity01 dn" id="priceDiv" v-bind:hrefid="myCityMap.hrefId">
    +				<div class="card-header">
    +					<label>{{myCityMap.city}}</label>
    +					<a v-if="collecd" class="button collection collection02" @click="collectCity(myCityMap.city, 1)">取消关注</a>
    +					<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a>
    +					
    +				</div>
    +				<div class="card-header">
    +					<span>当前参考均价</span>
    +				</div>
    +				<div class="card-content" >
    +					<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
    +					<div class="card-content-inner" v-else>暂无</div>
    +				</div>
    +				<div class="card-footer">
    +					<span v-if="myCityMap.oneMonthUpDownRange >= 0">
    +						<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-red"></i></em>
    +						<label>近30天涨跌幅</label>
    +					</span>
    +					<span v-else>
    +						<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-green"></i></em>
    +						<label>近30天涨跌幅</label>
    +					</span>
    +					<span>
    +						<em><strong>{{myCityMap.rangeLevel}}</strong></em>
    +						<label>城市涨跌排名</label>
    +					</span>
    +					<span v-if="myCityMap.index < 50">
    +						<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-green"></i></em>
    +						<label>下跌概率</label>
    +					</span>
    +					<span v-else>
    +						<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-red"></i></em>
    +						<label>上涨概率</label>
    +					</span>
    +				</div>
    +			</div>
    +			
    +			<div class="topic">
    +				<div class="topicTitle topicTitle02">{{myCityMap.time}}楼市行情<span><a @click="showRegionInfo(myCityMap.city)">区县涨跌详情<i class="icon icon-right"></i></a></span></div>
    +				<div class="topicContent" style="padding-top:0;">
    +					<div class="chartBox row">
    +						<span class="col-50">
    +							<div class="chart" id="up_chart"></div>
    +						</span>
    +						<span class="col-50">
    +							<div class="chart" id="down_chart"></div>
    +						</span>
    +					</div>
    +				</div>
    +			</div>
    +			<div class="topic" id="trendChartDiv">
    +				<div class="topicTitle" style="position:relative;">城市均价及挂牌走势
    +					<div class="content-block">
    +						<div class="buttons-row theme" id="trendDiv">
    +							<a class="tab-link button active" v="2" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 2)">半年</a>
    +							<a class="tab-link button"  v="3" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 3)">一年</a>
    +							<a class="tab-link button"  v="5" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 5)">三年</a>
    +						</div>
    +					</div>
    +				</div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="chart"  id="price_chart"></div>
    +				</div>
    +			</div>
    +					
    +			<div class="topic">
    +				<div class="topicTitle">热门小区</div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="cardNearbyBox cardNearbyBox01">
    +						<div class="cardNearbyWin" style="width: 38rem;">
    +							<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
    +								<div class="card-header">{{nearDist.sname}}</div>
    +								<div class="card-content">
    +									<div class="card-content-inner">{{nearDist.avgPrice}}元/㎡</div>
    +								</div>
    +							</div>
    +						
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +        
    +        </div>
    +    </div>
    +</div>
    +
    +
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/quotations/cityDetail.js" ></script>
    +
    +<script>
    +var date = new Date();
    +var year = date.getFullYear()+'年';
    +var month = date.getMonth()+1+'月';
    +var city = "普洱"
    +var cityInfoVue;
    +
    +	
    +document.addEventListener('plusready', onPlusReady, false);
    +function onPlusReady() { 
    +      var self = plus.webview.currentWebview();
    +      city = self.city
    +      cityInfoVue = new Vue({
    +		el: '#cityInfo',
    +		data: {
    +			city:"",
    +			month:month,
    +			collecd:false,
    +			nears:[],
    +			myCityMap : []
    +		}
    +	});
    +      	cityInfoVue.$data.city = city;
    +        loadCurCity(city);
    +		loadCityPriceInfo(city)
    +		loadUpOrDown(city);
    +		loadHotDistrict(city)
    +		loadCityPricesAndCounts(city)
    +		
    +}
    +
    +
    +
    +
    +	
    +	
    +</script>
    +
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html
    new file mode 100644
    index 0000000..cb77dfb
    --- /dev/null
    +++ b/fangija-zsyf/views/house/detail.html
    @@ -0,0 +1,598 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>房产分析</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
    +<style>
    +	.topic .topicContent .topicContent_center.home div .icon{width:42px;height:42px;}
    +	.topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;}
    +	.list-block ul:before{height:0;}
    +	.list-block ul:after{height:0;}
    +	.list-block.media-list ul:after{height:1px;}
    +	.list-block .item-inner{padding-top:0;padding-bottom:0;min-height:1.8rem;}
    +	.list-block .item-inner:after{height:0;}
    +	.districtMap + .list-block.media-list span{line-height:1.2rem;}
    +	.cardPrice01 .card-content-inner{padding-bottom:3rem;}
    +	.cardPrice01 .card-footer span:last-child{width:100%;text-align:left;}
    +	.cardPrice01 .card-footer span label{display:inline-block;}
    +	.cardPrice01 .card-footer span em{display:inline-block;color:#F18D00;}
    +	.cardPrice01 .card-footer span em strong{font-size:0.8rem;}
    +	.list-block .item-title small label{color: #999;font-size: 0.7rem;}
    +	.tabs{width:100%;height:350px;}
    +	.tabChart1{z-index:1;}
    +	.tabChart2{z-index:-1;}
    +	.mark-icon-box .mark-icon {width: 20px;height: 30px;display: block;cursor: pointer;font-size: 14px; color: #fff;font-weight: bold;text-align: center;line-height: 24px;background: url(../../images/dw.png) no-repeat;}
    +	.mark-icon-box {width:24px;height:30px;position:absolute;z-index:98;}
    +	.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
    +	.loadingBg .infinite-scroll-preloader{margin-top:30%;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current" id="baseInfo">
    +    	<div class="loadingBg">
    +    		<div class="infinite-scroll-preloader">
    +              <div class="preloader"></div>
    +          	</div>
    +    	</div>
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">{{name}}</h1>
    +		</header>
    +        <div class="content">
    +			<div class="list-block media-list topList">
    +				<ul>
    +					<li>
    +						<div class="item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row">
    +									<div class="item-title"><label><b>{{name}}</b></label><span class="span01">{{cityRegion}}</span></div>
    +								</div>
    +								<div class="item-title-row">
    +									<div class="item-title"><small>{{houseRoomNum}}&nbsp;&nbsp;{{area}}m&nbsp;&nbsp;{{floor_height}}</small></div>
    +								</div>
    +							</div>
    +						</div>
    +						<a class="add add01 button theme open-vertical-modal" v-bind="{ id: id}">{{liveStatus}}</a>
    +					</li>
    +				</ul>
    +			</div>
    +     		<div class="card cardPrice cardPrice01">
    +				<div class="card-header">
    +					<span>房屋估价</span>
    +					<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>{{estatetype}}</a>
    +				</div>
    +				<div class="card-content">
    +					<div class="card-content-inner">{{totalPrice}}<span>万</span></div>
    +				</div>
    +				<div class="card-footer">
    +					<span>
    +						<label>单价:</label>
    +						<em><strong>{{price}}</strong>元/㎡</em>
    +					</span>
    +				</div>
    +			</div>
    +   			<div class="topic">
    +				<div class="topicContent" style="padding-left:0;padding-right:0;">
    +					<div class="topicContent_center home">
    +						<!--<div onclick="window.location.href='+BASE_PATH+'/saleAnalysis/index'">
    +							<i class="icon icon-evaluation01"></i>
    +							<span>出售分析</span>
    +						</div>-->
    +						<div onclick="gotoRentManager()">
    +							<i class="icon icon-evaluation02"></i>
    +							<span>出租管理</span>
    +						</div>
    +						<!--<div onclick="window.location.href='01_index01_myHouse04_evaluationResult03_exchange01_index.html'">
    +							<i class="icon icon-evaluation03"></i>
    +				 			<span>我要置换</span>
    +						</div>-->
    +						<div onclick="gotoLoanApply()" id="gotoLoanApply" style="display: none;">
    +							<i class="icon icon-personal03"></i>
    +							<span>我要贷款</span>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +			<div class="topic rentBox dn">
    +     			<div class="topicContent" style="padding:0.5rem 0;">
    +					<div class="list-block dataList">
    +						<ul>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title" style="color:#666;">目前状态</div>
    +									<div class="item-after">出租</div>
    +								</div>
    +							</li>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title" style="color:#666;">出租日期</div>
    +									<div class="item-after">{{rentTime}}</div>
    +								</div>
    +							</li>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title" style="color:#666;">每期租金</div>
    +									<div class="item-after">{{rentPrice}}</div>
    +								</div>
    +							</li>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title" style="color:#666;">下次收租</div>
    +									<div class="item-after">{{nextRent}}</div>
    +								</div>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +     		</div>
    +     		
    +  			<div class="topic">
    +     			<div class="topicContent" style="padding:0.5rem 0;">
    +					<div class="list-block">
    +						<ul>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title" style="color:#666;">市场交易活跃度</div>
    +									<div class="item-after" v-if="totalScore <=26">
    +									  很差
    +									</div>
    +									<div class="item-after" v-else-if="totalScore>26 && totalScore <=38">
    +									  较差
    +									</div>
    +									<div class="item-after" v-else-if="totalScore>38 && totalScore <=70">
    +									  良好
    +									</div>
    +									<div class="item-after" v-else>
    +									  很好
    +									</div>
    +								</div>
    +							</li>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title" style="color:#666;">小区潜力指数</div>
    +									<div class="item-after">
    +											<span class="star" v-if="index <=4">
    +												<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=5 && index<15">
    +												<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +						  					<span class="star" v-else-if="index >=15 && index<25">
    +												<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=25 && index<35">
    +												<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=35 && index<45">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=45 && index<55">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=55 && index<65">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=65 && index<75">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=75 && index<85">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="index >=85 && index<95">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>
    +											</span>
    +											<span class="star" v-else>
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>
    +											</span>
    +									</div>
    +								</div>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +     		</div>
    +   			<div class="topic">
    +				<div class="topicContent">
    +					<div class="topicTitle01">{{name}}在{{city}}市:</div>
    +					<div class="topicContent_bottom" style="border-bottom:solid 1px #e7e7e7;padding-bottom:0.5rem;">
    +						<p style="margin-bottom:20px;">涨幅(近12个月)超过了<em>{{roseRanking}}%</em>的住宅</p>
    +						<font><i :style="{width:roseRanking+'%'}"></i></font>
    +						<small class="rankingNote"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">0%</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">100%</span></small>
    +					</div>
    +					<div class="topicContent_bottom">
    +						<p>均价超过了<em>{{avgpriceRanking}}%</em>的住宅</p>
    +						<div class="slider_note" :style="{left:priceRateContent+'%'}">
    +							<img src="../../images/arrow_note_down.png">
    +							<span>{{price}}元/㎡</span>                                                                  
    +						</div>
    +						<font><i :style="{width:rate+'%'}"></i></font>
    +						<small class="rankingNote" style="height:45px;"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">相对最低<br>{{minSellPrice}}元/㎡</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">相对最高<br>{{maxSellPrice}}元/㎡</span></small>
    +					</div>
    +				</div>
    +			</div>
    +    		<div class="topic">
    +				<div class="topicTitle">小区走势分析</div>
    +				<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
    +					<div class="topicTitle topicTitle01" style="position:relative;">均价
    +						<div class="content-block">
    +							<div class="buttons-row theme" id="trendDiv1">
    +								<a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
    +								<a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
    +								<a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="chart" id="chart01" style="height:270px;"></div>
    +					<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
    +						<div class="content-block">
    +							<div class="buttons-row theme" id="trendDiv2">
    +								<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
    +								<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="chart" id="chart02"></div>
    +				</div>
    +			</div>
    +     		<div class="topic" v-show="rentRooms.length>0">
    +     			<div class="topicTitle" style="border-bottom:solid 1px #e7e7e7;">小区本月租金</div>
    +     			<div class="topicContent" style="padding:0.5rem 0;">
    +					<div class="list-block">
    +						<ul>
    +							<li class="item-content" v-for="rentRoom in rentRooms">
    +								<div class="item-inner">
    +									<div class="item-title">{{rentRoom.houseType}}居室</div>
    +									<div class="item-after">{{Math.round(rentRoom.avgPrice*0.75)}}-{{Math.round(rentRoom.avgPrice*1.4)}} 元/月</div>
    +								</div>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +     		</div>
    +       		<div class="topic dn"  id="mapDiv">
    +       			<div class="topicTitle">位置及周边</div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="content-block content-block01 content-block01a" id="aroundLink">
    +						<div class="buttons-row theme">
    +							<a class="tab-link button active" id="bus">公交</a>
    +							<a class="tab-link button" id="subway">地铁</a>
    +							<a class="tab-link button" id="school">学校</a>
    +							<a class="tab-link button" id="hos">医院</a>
    +							<a class="tab-link button" id="bank">银行</a>
    +							<a class="tab-link button" id="supermark">购物</a>
    +						</div>
    +					</div>
    +					<div class="districtMap" id="districtMap"></div>
    +					<div class="list-block media-list">
    +						<ul>
    +							<li>
    +								<a onclick="openMapWindow()" class="item-link item-content">
    +									<div class="item-inner">
    +										<div class="item-title-row">
    +											<div class="item-title"><i class="icon icon-address03" style="margin-right:0.3rem;"></i><span>地址:{{address}}</span></div>
    +											<div class="item-after"><span>详情</span></div>
    +										</div>
    +									</div>
    +								</a>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/echarts.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +document.addEventListener('plusready', onPlusReady, false);
    +var houseId="191190409534242816"; //= "186182250936643584";
    +var lat;
    +var lng;
    +var city;
    +var region;
    +var name;
    +var oriCity;
    +var oriRegion;
    +var oriName;
    +//扩展API加载完毕,现在可以正常调用扩展API
    +function onPlusReady(){
    +	var self = plus.webview.currentWebview();
    +   	houseId = self.houseId;  //type为1时是我的房产
    +   	 //控制贷款按钮是否可以显示,便于ios版本审核
    +	if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
    +		$('#gotoLoanApply').show();
    +	}else{
    +		$('#gotoLoanApply').hide();
    +	}
    +    init();
    +}
    +var baseInfo = new Vue({
    +	el: '#baseInfo',
    +	data: {
    +		id:"",
    +		city : "",
    +		name : "",
    +		address:"",
    +		cityRegion:"",
    +		houseRoomNum: "",
    +		area: "",
    +		floor_height: "",
    +		liveStatus:"",
    +		estatetype:"",
    +		totalPrice:"",
    +		price:"",
    +		totalScore:"",
    +		index:"",
    +		roseRanking:"",
    +		avgpriceRanking:"",
    +		priceRateContent:"",
    +		rate:"",
    +		minSellPrice:"",
    +		maxSellPrice:"",
    +		rentRooms:"",
    +		rentTime : "-",
    +		rentPrice : "-",
    +		nextRent : "-"
    +	}
    +})
    +
    +function init(){
    +	axios.get("/rest/index/resultDetail", {
    +	    params: {
    +	      houseId: houseId
    +	    }
    +	})
    +	.then(function (response) {
    +		if(response.data.data){
    +			$(".loadingBg").hide();
    +			var houseInfo = response.data.data.houseInfo;
    +			lat = houseInfo.lat;
    +			lng = houseInfo.lng;
    +			oriCity = houseInfo.city;
    +			oriRegion = houseInfo.region;
    +			oriName = houseInfo.name;
    +			address = houseInfo.address;
    +			var text = houseInfo.name;
    +			var length = text.length;
    +			var textStr = "";
    +			if(length > 12){
    +				textStr = text.substr(0,12);
    +				$("header .title").text(textStr + "...");
    +			}
    +			var rentRooms=[];
    +			if(response.data.data.rentRooms){
    +				rentRooms = response.data.data.rentRooms;
    +			}
    +			city = houseInfo.city;
    +			region = houseInfo.region;
    +			name = houseInfo.name;
    +			baseInfo.id=houseInfo.id;
    +			baseInfo.city = houseInfo.city;
    +			baseInfo.name = houseInfo.name;
    +			baseInfo.address = houseInfo.address;
    +			baseInfo.cityRegion=houseInfo.city+"-"+houseInfo.region;
    +			baseInfo.houseRoomNum= houseInfo.houseRoomNum;
    +			baseInfo.area= houseInfo.area;
    +			var floor_height = "";
    +			if(houseInfo.floor!=0){
    +				floor_height = houseInfo.floor;
    +			}
    +			if(houseInfo.height!=0){
    +				floor_height += "/" + houseInfo.height;
    +			}
    +			if(floor_height!=""){
    +				floor_height+="层";
    +			}
    +			baseInfo.floor_height= floor_height;
    +			if(houseInfo.liveStatus){
    +				baseInfo.liveStatus=houseInfo.liveStatus;
    +			}else{
    +				baseInfo.liveStatus='其它';
    +			}
    +			if(houseInfo.liveStatus=="出租"){
    +				$('.rentBox').show();
    +				if(houseInfo.leaseStartDate){
    +					baseInfo.rentTime = formatTime(houseInfo.leaseStartDate)+"-"+formatTime(houseInfo.leaseEndDate);
    +					baseInfo.rentPrice = houseInfo.rent+"元";
    +					baseInfo.nextRent = formatTime2(houseInfo.lastRentDate);
    +				}else{
    +					baseInfo.rentTime = "-";
    +					baseInfo.rentPrice = "-";
    +					baseInfo.nextRent = "-";
    +				}
    +			}
    +			baseInfo.estatetype=houseInfo.estatetype;
    +			baseInfo.totalPrice=houseInfo.totalPrice;
    +			if(houseInfo.totalPrice==0){
    +				baseInfo.totalPrice = "暂无";
    +			}else{
    +				baseInfo.totalPrice = (houseInfo.totalPrice/10000).toFixed(2)
    +			}
    +			baseInfo.price=houseInfo.price;
    +			baseInfo.totalScore=houseInfo.totalScore;
    +			baseInfo.index=response.data.data.index;
    +			baseInfo.roseRanking=houseInfo.roseRanking;
    +			baseInfo.avgpriceRanking=houseInfo.avgpriceRanking;
    +			baseInfo.priceRateContent=response.data.data.priceRateContent;
    +			baseInfo.rate=response.data.data.rate;
    +			baseInfo.minSellPrice=houseInfo.minSellPrice;
    +			baseInfo.maxSellPrice=houseInfo.maxSellPrice;
    +			baseInfo.rentRooms=response.data.data.rentRooms;
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function formatTime(time){
    +        var now = new Date(time);
    +        var year=now.getFullYear();     
    +        var month=now.getMonth()+1;     
    +        var date=now.getDate();     
    +        return   year+"/"+month+"/"+date;     
    +        
    +}
    +function formatTime2(time){
    +        var now = new Date(time);
    +        var year=now.getFullYear();     
    +        var month=now.getMonth()+1;     
    +        var date=now.getDate();     
    +        return month+"月"+date+"日";     
    +        
    +}
    +function openMapWindow(){
    +	clicked('/views/district/arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
    +}
    +
    +/* 房产用途 */
    +$(document).on('click','.open-vertical-modal', function () {
    +	//获取对应<li>栏目存储的houseinfo id
    +	var id = $(this).attr("id");
    +	var houseStatus = 0;
    +    $.modal({
    +		title: '房产用途',
    +		verticalButtons: true,
    +		buttons: [
    +			{
    +				text: '自住',
    +				onClick: function() {
    +					$('.open-vertical-modal').text('自住');
    +					addManagement(id, houseStatus, "自住");
    +					$('.rentBox').hide();
    +				}
    +			},
    +			{
    +				text: '出租',
    +				onClick: function() {
    +					$('.open-vertical-modal').text('出租');
    +					addManagement(id, houseStatus, "出租");
    +					$('.rentBox').show();
    +				}
    +			},
    +			{
    +				text: '空置',
    +				onClick: function() {
    +					$('.open-vertical-modal').text('空置');
    +					addManagement(id, houseStatus, "空置");
    +					$('.rentBox').hide();
    +				}
    +			},
    +			{
    +				text: '取消'
    +			}
    +		]
    +	})
    +});
    +//添加管理AJAX请求
    +function addManagement(id, houseStatus, liveStatus){
    +	axios.post("/rest/evaluate/addManagement",
    +		{
    +		    id: id,
    +		    houseStatus: houseStatus,
    +		    liveStatus: liveStatus
    +		}).then(function (response) {
    +			var status = response.data.status;
    +			if(status){
    +				plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +				$.toast("修改状态成功!");
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +			}else{
    +				$.toast(response.data.message);
    +			}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +/* 说明-房产等级 */
    +$(document).on('click','.alert-text-title', function () {
    +	$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
    +});
    +var myChart01 = echarts.init(document.getElementById('chart01'));
    +</script>
    +<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
    +<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
    +
    +<script>
    +var t1 = window.setInterval(loadMap,1000);
    +var t2 = window.setInterval(loadChart,1000);
    +function loadMap(){
    +	if(lng && lat){
    +		loadMapPoi();
    +		$("#mapDiv").show();
    +		window.clearInterval(t1);
    +	}
    +}
    +function loadChart(){
    +	if(city && region && name){
    +		/* 小区均价分析 */
    +		loadKLineData(city, region, name);
    +		/* 小区租金走势 */
    +		loadRentTrends(city, region, name);
    +		window.clearInterval(t2);
    +	}
    +}
    +
    +/* button状态切换 */
    +$("#trendTabDiv .button").on("click", function () {
    +	$(this).parent().children().removeClass("active");
    +	$(this).addClass("active");
    +});
    +/* 图表切换 */
    +$("#tabAvgDiv").on("click", function () {
    +	$("#tabChart1").css("z-index","1");
    +	$("#tabChart2").css("z-index","-1");
    +});
    +$("#tabRentDiv").on("click", function () {
    +	$("#tabChart2").css("z-index","1");
    +	$("#tabChart1").css("z-index","-1");
    +});
    +function openNewView(viewHtml) {
    +	clicked(viewHtml,true,false,{},{city:oriCity,region:oriRegion,name:oriName})
    +}
    +function gotoLoanApply(){
    +  clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
    +}
    +function gotoRentManager(){
    +  clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){})
    +}
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html
    new file mode 100644
    index 0000000..ab55c78
    --- /dev/null
    +++ b/fangija-zsyf/views/house/houseDetail.html
    @@ -0,0 +1,1618 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>房产行情</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/city.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.cardInfo02 .item-title{white-space:normal;text-align:justify;display:block;}
    +	.cardInfo02 .item-subtitle{margin-top:0.2rem;}
    +	.cardCity01 .card-footer span:nth-child(2){text-align:center;}
    +	.cardNearbyBox01 .cardNearby .card-content-inner{padding-bottom:0.25rem;}
    +	.tabs .topic{margin-bottom:0;}
    +	.buttons-tab{overflow-x:auto;border-bottom:solid 1px #e7e7e7;}
    +	.buttons-tab:after{height:0;}
    +</style>
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +       		<!--<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
    +				<span class="icon icon-left"></span>
    +			</button>-->
    +			<h1 class="title">房产行情</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="buttons-tab theme" id="tabCityDiv" v-cloak>
    +				<a href="#tabQuotation1" class="tab-link active button">全国</a>
    +				<div v-for="mycollectcity in citys" >
    +					<a class="tab-link button" @click="clickCity(mycollectcity)" v-bind:vcity="mycollectcity">{{mycollectcity}}</a>
    +				</div>
    +				<a href="#tabQuotation0" class="tab-link button">添加</a>
    +			</div>
    +			
    +        	<div class="tabs" >
    +				<div id="tabQuotation1" class="tab active" v-cloak>
    +						<div class="card cardPrice cardPrice01 cardCity" id="countryInfo" v-cloak>
    +							<div class="card-header">
    +								<label>全国</label>
    +							</div>
    +							<div class="card-header">
    +								<span>{{nowYear}}年{{nowMonth}}月全国{{cityCount}}个城市房价</span>
    +							</div>
    +							<div class="card-content">
    +								<div class="card-content-inner row">
    +									<span class="col-50">
    +										<em class="up"><strong>{{upRate}}</strong>%</em>
    +										<label>城市上涨</label>
    +									</span>
    +									<span class="col-50">
    +										<em class="down"><strong>{{downRate}}</strong>%</em>
    +										<label>城市下跌</label>
    +									</span>
    +								</div>
    +							</div>
    +							<div class="card-footer">
    +								<span>
    +									<label>平均涨幅:</label>
    +									<em><strong>{{(avgUpRate*100).toFixed(2)}}</strong>%<i class="icon icon-arrow-red"></i></em>
    +								</span>
    +								<span>
    +									<label>平均跌幅:</label>
    +									<em><strong>{{(avgUownRate*(-100)).toFixed(2)}}</strong>%<i class="icon icon-arrow-green"></i></em>
    +								</span>
    +							</div>
    +						</div>
    +						<div id="myFocusFirstPage" v-cloak>
    +							<my_focus></my_focus>
    +						</div>
    +						<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank" v-cloak>
    +							<div class="cardNearbyWin">
    +								<div class="card cardNearby cardRanking" v-for="item in datas">
    +									<div class="card-header" v-if="item.type==0">
    +										城市涨幅排行
    +									</div>
    +									<div class="card-header" v-else-if="item.type==1">
    +										城市潜力排行
    +									</div>
    +									<div class="card-header" v-else-if="item.type==2">
    +										城市均价排行
    +									</div>
    +									<div class="card-header"><em>①</em>{{item.city}}</div>
    +									<div class="card-content">
    +										<div class="card-content-inner" v-if="item.type==0">
    +											<em class="up">{{item.oneMonthUpDownRange*100}}%<i class="icon icon-arrow-red"></i></em>
    +										</div>
    +										<div class="card-content-inner" v-else-if="item.type==1">
    +											潜力指数
    +										</div>
    +										<div class="card-content-inner" v-else-if="item.type==2">
    +											<em class="up">{{Math.abs(item.oneMonthUpDownRange*100).toFixed(2)}}%
    +												<i class="icon icon-arrow-red" v-show="item.oneMonthUpDownRange>0"></i>
    +												<i class="icon icon-arrow-green" v-show="item.oneMonthUpDownRange<0"></i>
    +											</em>
    +										</div>
    +									</div>
    +									<div class="card-footer" v-if="item.type==1">
    +										<span class="star" v-if="item.index <=4">
    +												<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=5 && item.index<15">
    +												<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +						  					<span class="star" v-else-if="item.index >=15 && item.index<25">
    +												<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=25 && item.index<35">
    +												<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=35 && item.index<45">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=45 && item.index<55">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=55 && item.index<65">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=65 && item.index<75">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=75 && item.index<85">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>
    +											</span>
    +											<span class="star" v-else-if="item.index >=85 && item.index<95">
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>
    +											</span>
    +											<span class="star" v-else>
    +												<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>
    +											</span>
    +									</div>
    +									<div class="card-footer" v-else>
    +											<em>{{item.avgPrice}}元/㎡</em>
    +									</div>
    +								</div>
    +							</div>
    +						</div>
    +						<div class="topic">
    +							<div class="topicTitle">房产热点城市</div>
    +							<div class="topicContent cityImgBox row">
    +								<div class="col-33" >
    +									<img src="../../images/cityImg01.png" onclick="hotCity('北京')">
    +									<p>北京</p>
    +								</div>
    +								<div class="col-33" onclick="hotCity('上海')">
    +									<img src="../../images/cityImg02.png">
    +									<p>上海</p>
    +								</div>
    +								<div class="col-33" onclick="hotCity('深圳')">
    +									<img src="../../images/cityImg03.png">
    +									<p>深圳</p>
    +								</div>
    +							</div>
    +						</div>
    +					</div>
    +
    +	      			
    +	      		 <div id="cityInfo" class="dn" v-cloak>
    +					<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
    +						<div class="card-header">
    +							<label>{{myCityMap.city}}</label>
    +							<a v-if="collecd"  class="button collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a>
    +							<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city, 0)">关注</a>
    +							
    +						</div>
    +						<div class="card-header">
    +							<span>当前参考均价</span>
    +						</div>
    +						<div class="card-content">
    +							<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
    +							<div class="card-content-inner" v-else>暂无</div>
    +						</div>
    +						<div class="card-footer">
    +							<span v-if="myCityMap.oneMonthUpDownRange >= 0">
    +								<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-red"></i></em>
    +								<label>近30天涨跌幅</label>
    +							</span>
    +							<span v-else>
    +								<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-green"></i></em>
    +								<label>近30天涨跌幅</label>
    +							</span>
    +							<span>
    +								<em><strong>{{myCityMap.rangeLevel}}</strong></em>
    +								<label>城市涨跌排名</label>
    +							</span>
    +							<span v-if="myCityMap.index < 50">
    +								<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-green"></i></em>
    +								<label>下跌概率</label>
    +							</span>
    +							<span v-else>
    +								<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-red"></i></em>
    +								<label>上涨概率</label>
    +							</span>
    +						</div>
    +					</div>
    +					
    +					<div class="topic">
    +						<div class="topicTitle topicTitle02">{{myCityMap.time}}楼市行情<span><a @click="showRegionInfo(myCityMap.city)">区县涨跌详情<i class="icon icon-right"></i></a></span></div>
    +						<div class="topicContent" style="padding-top:0;">
    +							<div class="chartBox row">
    +								<span class="col-50">
    +									<div class="chart" id="up_chart"></div>
    +								</span>
    +								<span class="col-50">
    +									<div class="chart" id="down_chart"></div>
    +								</span>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="topic" id="trendChartDiv">
    +						<div class="topicTitle" style="position:relative;">城市均价及挂牌走势
    +							<div class="content-block">
    +								<div class="buttons-row theme" id="trendDiv">
    +									<a class="tab-link button active" v="2" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 2)">半年</a>
    +									<a class="tab-link button"  v="3" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 3)">一年</a>
    +									<a class="tab-link button"  v="5" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 5)">三年</a>
    +								</div>
    +							</div>
    +						</div>
    +						<div class="topicContent" style="padding:0;">
    +							<div class="chart"  id="price_chart"></div>
    +						</div>
    +					</div>
    +							
    +					<div class="topic">
    +						<div class="topicTitle">热门小区</div>
    +						<div class="topicContent" style="padding:0;">
    +							<div class="cardNearbyBox cardNearbyBox01">
    +								<div class="cardNearbyWin" style="width: 38rem;">
    +									<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
    +										<div class="card-header">{{nearDist.sname}}</div>
    +										<div class="card-content">
    +											<div class="card-content-inner" v-if="nearDist.avgPrice > 0">{{nearDist.avgPrice}}元/㎡</div>
    +											<div class="card-content-inner" v-else>暂无</div>
    +										</div>
    +									</div>
    +								
    +								</div>
    +							</div>
    +						</div>
    +					</div>
    +		        </div>
    +
    +
    +
    +
    +				<div id="tabQuotation0" class="tab">
    +					<div class="card cardPrice cardPrice01 cardCity">
    +						<div class="card-header">
    +							<label>添加</label>
    +						</div>
    +						<div class="card-content">
    +							<div class="card-content-inner row" style="padding-right:0;">
    +								<span class="col-60 open-about01">
    +									<i class="icon icon-add"></i>
    +									<label>添加关注城市</label>
    +								</span>
    +							</div>
    +						</div>
    +					</div>
    +					<div id="myFocus">
    +						<my_focus></my_focus>
    +					</div>
    +					
    +					<div class="topic">
    +						<div class="topicTitle">城市房价TOP10</div>
    +						<div class="topicContent" style="padding:0;padding-bottom:0.5rem;">
    +							<div class="content-block content-block01 content-block01a" style="padding-bottom:0.5rem;">
    +								<div class="buttons-row theme">
    +									<a href="#tabCityRanking1" class="tab-link button active">涨幅榜</a>
    +									<a href="#tabCityRanking2" class="tab-link button">潜力榜</a>
    +								</div>
    +							</div>
    +							<div class="tabs">
    +								<div id="tabCityRanking1" class="tab active">
    +									<div id="cityIncreaseRanking"> 
    +										<city_increase_ranking></city_increase_ranking>
    +									</div>
    +								</div>
    +								<div id="tabCityRanking2" class="tab">
    +									<div id="cityPotentialRanking">
    +										<city_potential_ranking></city_potential_ranking>
    +									</div>
    +								</div>
    +							</div>
    +						</div>
    +					</div>
    +				</div>
    +       		</div>
    +       			
    +        
    +        
    +        </div>
    +    </div>
    +</div>
    +
    +
    +
    +<!-- About Popup -->
    +<!--<div id="cityChoose">
    +	<city_choose v-bind:city1="city"></city_choose>	
    +</div>-->
    +<div class="popup popup-about popup-about01">
    +    <div class="bar">
    +        <div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="citySearchInp" placeholder="请输入城市名称进行搜索">
    +            </div>
    +        </div>
    +        <div class="buttons-tab theme">
    +			<a href="#tabCity1" class="tab-link button active">按拼音字母</a>
    +			<a href="#tabCity2" class="tab-link button">按城市等级</a>
    +		</div>
    +    </div>
    +    <div class="content-block content-block01 content dn" style="top:66px;z-index:100;" id="selectContainer">
    +		<div class="container" style="top:0;">
    +			<div class="city" style="width:100%;">
    +				<div class="city-list"></div>
    +			</div>
    +		</div>	
    +	</div>
    +	<div class="tabs">
    +		<div id="tabCity1" class="tab active">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer" class="container">
    +					<div class="cityGPS">
    +						<div class="city-list01 close-popup">
    +							<p class="nowCity">上海</p>
    +							<small>当前城市</small>
    +						</div>
    +					</div>
    +					<div class="cityHot">
    +						<div class="city-list01">
    +							<span class="city-letter" id="Hot">热门城市</span>
    +							<div>
    +								<p class="close-popup collectionCity">北京<i class="icon-collection03"></i></p>
    +								<p class="close-popup collectionCity active">上海<i class="icon-collection03"></i></p>
    +								<p class="close-popup">广州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">深圳</p>
    +								<p class="close-popup">成都</p>
    +								<p class="close-popup">杭州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">南京</p>
    +								<p class="close-popup">重庆</p>
    +								<p class="close-popup">天津</p>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="city">
    +						<div class="city-list"><span class="city-letter" id="A1">A</span>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup collectionCity">阿克苏<i class="icon-collection03"></i></p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">安顺</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="B1">B</span>
    +							<p class="close-popup">百色</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">蚌埠</p>                        
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">北京</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">亳州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="C1">C</span>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="D1">D</span>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">丹东</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">东营</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="E1">E</span>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">鄂州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="F1">F</span>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">福州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="G1">G</span>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">广州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="H1">H</span>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">杭州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="J1">J</span>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">鸡西</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="K1">K</span>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">昆明</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="L1">L</span>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">拉萨</p>                        
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">泸州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="M1">M</span>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">牡丹江</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="N1">N</span>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">怒江州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="P1">P</span>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">莆田</p>
    +							<p class="close-popup">濮阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Q1">Q</span>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">泉州</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">衢州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="R1">R</span>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">日照</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="S1">S</span>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">上海</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">深圳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="T1">T</span>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">台州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="W1">W</span>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">无锡</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">温州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="X1">X</span>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">信阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Y1">Y</span>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">扬州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Z1">Z</span>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">郑州</p>
    +						</div>
    +					</div>
    +					<div class="letter">
    +						<ul>
    +							<li><a href="javascript:;">热门</a></li>
    +							<li><a href="javascript:;">A</a></li>
    +							<li><a href="javascript:;">B</a></li>
    +							<li><a href="javascript:;">C</a></li>
    +							<li><a href="javascript:;">D</a></li>
    +							<li><a href="javascript:;">E</a></li>
    +							<li><a href="javascript:;">F</a></li>
    +							<li><a href="javascript:;">G</a></li>
    +							<li><a href="javascript:;">H</a></li>
    +							<li><a href="javascript:;">J</a></li>
    +							<li><a href="javascript:;">K</a></li>
    +							<li><a href="javascript:;">L</a></li>
    +							<li><a href="javascript:;">M</a></li>
    +							<li><a href="javascript:;">N</a></li>
    +							<li><a href="javascript:;">P</a></li>
    +							<li><a href="javascript:;">Q</a></li>
    +							<li><a href="javascript:;">R</a></li>
    +							<li><a href="javascript:;">S</a></li>
    +							<li><a href="javascript:;">T</a></li>
    +							<li><a href="javascript:;">W</a></li>
    +							<li><a href="javascript:;">X</a></li>
    +							<li><a href="javascript:;">Y</a></li>
    +							<li><a href="javascript:;">Z</a></li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +		<div id="tabCity2" class="tab">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer01" class="container">
    +					<div class="city" style="width:100%;">
    +						<div class="city-list">
    +							<span class="city-letter" id="City1">一线城市</span>
    +							<div>
    +								<p class="close-popup collectionCity">北京<i class="icon-collection03"></i></p>
    +								<p class="close-popup collectionCity active">上海<i class="icon-collection03"></i></p>
    +								<p class="close-popup">广州</p>
    +								<p class="close-popup">深圳</p>
    +							</div>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City1a">新一线城市</span>
    +							<p class="close-popup">杭州</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">无锡</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City2">二线城市</span>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">扬州</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">福州</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">温州</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">郑州</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">昆明</p>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">泉州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City3">三线城市</span>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">泸州</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">蚌埠</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">台州</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">衢州</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">莆田</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City4">四线城市</span>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">牡丹江</p>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">白色</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +							<p class="close-popup">东营</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">拉萨</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">信阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">日照</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">丹东</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City5">五线城市</span>
    +							<p class="close-popup">铁门关</p>
    +							<p class="close-popup">可克达拉</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">安顺</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">鸡西</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">亳州</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">鄂州</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">濮阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup collectionCity">阿克苏<i class="icon-collection03"></i></p>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">怒江州</p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">北屯</p>
    +							<p class="close-popup">双河</p>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/quotations/cityDetail.js" ></script>
    +<script type="text/javascript" src="../component/myFocusComponent.js"></script>
    +<script type="text/javascript" src="../component/cityIncreaseRankingComponent.js"></script>
    +<script type="text/javascript" src="../component/cityPotentialRankingComponent.js"></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
    +<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
    +
    +<script type="text/javascript" src="../../js/city.js" ></script>
    +
    +
    +<script>
    +	var date = new Date();
    +	var year = date.getFullYear()+'年';
    +	var month = date.getMonth()+1+'月';
    +	var positionCity = "";
    +	var cityInfoVue = new Vue({
    +		el: '#cityInfo',
    +		data: {
    +			city:"",
    +			month:month,
    +			collecd:false,
    +			nears:[],
    +			myCityMap : []
    +		}
    +	});
    +	
    +	var allCityVue = new Vue({
    +				el: '#countryInfo',
    +				data: {
    +						nowYear : "",
    +						nowMonth : "",
    +						cityCount : "",
    +						upRate : "",
    +						downRate : "",
    +						avgUpRate :"",
    +						avgUownRate : ""
    +					}
    +				})
    +	var cityDetaiVue = new Vue({
    +		el: '#tabCityDiv',
    +		data: {
    +			citys:[]
    +		}
    +	})
    +	
    +	var cityRankVue = new Vue({
    +				el: '#countryRank',
    +				data: {
    +						datas : ""
    +					}
    +				})
    +			
    +	
    +	document.addEventListener('plusready', onPlusReady, false);
    +	function onPlusReady(){
    +		var city = "";
    +		plus.geolocation.getCurrentPosition(function(p){
    +				city = p.address.city;
    +			
    +				if(city && city.endsWith("市")){
    +					
    +					var formatCity = formatBaiduCity(city);
    +					positionCity = formatCity
    +					city = formatCity;
    +					$(".nowCity").html(city);
    +					loadAllCityData();
    +				}
    +				loadMyCollectCity();
    +				
    +			}, function(e){
    +				loadAllCityData();
    +				loadMyCollectCity();
    +			},
    +			{
    +				provider:'baidu',
    +				enableHighAccuracy:true,
    +				coordsType:'bd09ll'
    +			}
    +		);
    +		var myFocus = new Vue({
    +			el:"#myFocus" 
    +		})
    +		var cityIncreaseRanking = new Vue({
    +			el:"#cityIncreaseRanking"
    +		})
    +		var cityPotentialRanking = new Vue({
    +			el:"#cityPotentialRanking"
    +		})
    +
    +
    +		
    +		/* button状态切换 */
    +		$(".content-block .button").on("click", function () {
    +			$(this).parent().children().removeClass("active");
    +			$(this).addClass("active");
    +		});
    +		
    +		/* 图表切换 */
    +		$("#tabAvg").on("click", function () {
    +			$("#tabChart1").css("z-index","1");
    +			$("#tabChart2").css("z-index","-1");
    +		});
    +		$("#tabRent").on("click", function () {
    +			$("#tabChart2").css("z-index","1");
    +			$("#tabChart1").css("z-index","-1");
    +		});
    +		/* 弹出城市选择页面 */
    +		$(document).on("click",".open-about01", function () {
    +			markFocus();
    +			$.popup(".popup-about01");
    +		});
    +		/* 定位城市 */
    +		$("body").on("click", ".letter a", function () {
    +			var s = $(this).html();
    +			$(".popup-about01 .content").scrollTop(0);
    +			$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
    +		});
    +		$("#tabCity1 .content-block01").scroll(function () {
    +			$("#tabCity1 .content-block01 .letter").css("position","absolute");
    +			$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
    +		});
    +		 
    +		/* 获取城市 */
    +		$(".popup-about01 .cityGPS").on("click", function () {
    +			//$("#input_city").val($(this).find("p").text());
    +			$(".cityChoice a").text($(this).find("p").text());
    +			$(".popup-about01 p").removeClass("active");
    +			addFocus($(this).find("p").text())
    +		});
    +		$(".popup-about01 p").on("click", function () {
    +			//$("#input_city").val($(this).text());
    +			$(".cityChoice a").text($(this).text());
    +			$(".popup-about01 p").removeClass("active");
    +			$(this).addClass("active");
    +			var city = $(this).text()
    +			addFocus(city)
    +		});
    +		/* 点击热门小区跳转到小区详情页 */
    +		$(".cardNearby").on("click", function(){
    +			window.location.href = "01_index04_districtDetail.html";
    +		});
    +		
    +		
    +		
    +		//城市选择
    +		//$("#cityCopy").html($('.tabs').html())
    +		var getAllCitys = function() {
    +		        var list = new Array();
    +		        $("#tabCity1 #cityContainer .city p").each(function(i, o) {
    +		            list.push($(o).text());
    +		        });
    +		        return list;
    +		}
    +		
    +		var search = function(){
    +		    var city = $("#citySearchInp").val();
    +		    $("#selectContainer .city-list").empty();
    +		    $("#selectContainer").show();
    +		    
    +		    var cityList = getAllCitys();
    +		    for(var i=0;i<cityList.length;i++) {
    +		        if(cityList[i].indexOf(city) != -1){
    +		            $("#selectContainer .city-list").append('<p class="close-popup" onclick="addCityFocus(\''+cityList[i]+'\')">'+cityList[i]+'</p>');
    +		        }
    +		    }
    +		
    +		    if(city == ""){
    +		    	$("#selectContainer").hide();
    +		    }
    +		}
    +		
    +		$("#citySearchInp").bind('input propertychange keyup', function() {
    +		    search();
    +		});
    +		
    +		$("#citySearchInp").bind('keyup', function() {
    +		    search();
    +		});
    +
    +		
    +	}
    +	
    +	//加载首页全国数据
    +function loadAllCityData(){
    +		var date=new Date;  
    +		var year=date.getFullYear();   
    +		var month=date.getMonth()+1;  
    +		axios.get("/rest/quotations/countrywideInfo", {
    +		    params: {
    +		      
    +		    }
    +		})
    +		.then(function (response) {
    +			allCityVue.nowYear = year;
    +			allCityVue.nowMonth = month;
    +			allCityVue.cityCount = response.data.data.cityCount;
    +			allCityVue.upRate  = response.data.data.upRate;
    +			allCityVue.downRate  =  response.data.data.downRate;
    +			allCityVue.avgUpRate  =  response.data.data.avgUpRate;
    +			allCityVue.avgUownRate  =  response.data.data.avgUownRate;
    +		})
    +		.catch(function (error) {
    +		   console.log(error);
    +		});
    +		
    +		axios.get("/rest/quotations/levelCityInfo", {
    +		    params: {
    +		      
    +		    }
    +		})
    +		.then(function (response) {
    +			//0:涨幅排行  1:潜力排行  2:均价排行
    +			
    +			cityRankVue.datas = response.data.data
    +			
    +		})
    +		.catch(function (error) {
    +		   console.log(error);
    +		});
    +		
    +	}
    +	
    +	function addCityFocus(city){
    +			//city=city.replace("<i></i>","")
    +		    //$("#input_city").text(city);
    +			addFocus(city); 
    +	}
    +	
    +	
    +
    +
    +
    +
    +/* 获取资讯正文字数,截取资讯正文前30字,并添加... */
    +$(document).ready(function () {
    +	/*var text = $(".cardInfo02 .item-title").text();
    +	var length = $(".cardInfo02 .item-title").text().length;
    +	var textStr = "";
    +	if(length > 30){
    +		textStr = text.substr(0,30);
    +		$(".cardInfo02 .item-title").text(textStr + "...");
    +	}*/
    +});
    +
    +
    +
    +
    +/* 获取热门小区名称字数,截取热门小区名称前5字,并添加... */
    +$(document).ready(function () {
    +	$(".item02 .cardNearby .card-header").each(function(){
    +		var text = $(this).text();
    +		var length = $(this).text().length;
    +		var textStr = "";
    +		if(length > 5){
    +			textStr = text.substr(0,5);
    +			$(this).text(textStr + "...");
    +		}
    +	});
    +});
    +
    +$("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
    +	$("#tabCityDiv a").removeClass("active");
    +	$("#contentTabDiv > .tab").removeClass("active");
    +	$("#cityInfo").hide()
    +})
    +
    +
    +
    +function clickCity(val){
    +	
    +	city = val;
    +	
    +	plus.nativeUI.showWaiting();
    +	$("#cityInfo").show()
    +	$("#tabCityDiv a").removeClass("active");
    +//	$("a[href="+val+"]").addClass("active");
    +//	$("#contentTabDiv > .tab > div:first-child").each(function(){
    +//		var href = $(this).attr("hrefid")
    +//		if(val == href){
    +//			$("div[hrefid="+href+"]").parent().addClass("active");
    +//		}else{
    +//			$("div[hrefid="+href+"]").parent().removeClass("active");
    +//		}
    +//	})
    +     $("a[vcity='"+val+"']").addClass("active");
    +	    loadCurCity(city);
    +		loadCityPriceInfo(city)
    +		loadUpOrDown(city);
    +		loadHotDistrict(city)
    +		loadCityPricesAndCounts(city)
    +		
    +		$("#trendDiv a").removeClass("active")
    +		$("#trendDiv a[v='2']").addClass("active")// 默认走势显示半年
    +		
    +	$("#tabQuotation1").removeClass("active");
    +	$("#tabQuotation0").removeClass("active");
    +	plus.nativeUI.closeWaiting();
    +}
    +
    +
    +//$(document).on("click",".open-about01", function () {
    +//	markFocus();
    +//	$.popup(".popup-about01");
    +//});
    +function markFocus(){ 
    +	$("input").blur()
    +    $("#citySearchInp").val("");
    +	$("#selectContainer").hide();
    +	$("p.close-popup").removeClass("collectionCity");
    +	$("p.close-popup").removeClass("active");
    +	axios.get("/rest/quotations/userCollectCitys").then(function(response){
    +				var collects  = response.data.data;
    +				$("p.close-popup").each(function(){
    +		       		var text = $(this).text();
    +		       		//设置关注城市
    +		       		if(collects){
    +		         		if(collects.indexOf(text)>-1){
    +			             	$(this).addClass("collectionCity");
    +			             	if($(this).find("i").length==0){
    +			             		$(this).append('<i class="icon-collection03"></i>');
    +			             	}else{
    +			             		$(this).find("i").addClass("icon-collection03");
    +			             	}
    +		           		}
    +		          	}
    +		      	 	//设置当前城市选中
    +		       		if(typeof(curCity)!="undefined"){ 
    +		         		if(curCity && text == curCity){
    +		             		$(this).addClass("active");
    +		           		}
    +		       		}
    +	    		});
    +			}).catch(function(error){
    +				console.log(error)
    +			})
    +}
    +
    +function addFocus(city){
    +	if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +		clicked('/views/user/passLogin.html',true,false,{},{},function(){
    +			if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +				
    +			}else{
    +				axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){
    +					reloadMyFocus()
    +					reloadCityIncreaseRanking()
    +					reloadCityPotentialRanking()
    +					plus.webview.getWebviewById('views/house/houseDetail.html').reload();
    +					plus.webview.getWebviewById('views/house/houseManageList.html').reload();  
    +					plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +					
    +					var curDatas = response.data.data
    +					if(curDatas && curDatas.length>=0){
    +						if(!IsInArray(curDatas, city)){
    +							cityDetaiVue.$data.citys.push(city);
    +						}
    +					}
    +				
    +				}).catch(function(error){
    +						console.log(error)
    +				})
    +			}
    +		})
    +	}else{
    +		axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){
    +			if(response.data.status){
    +				reloadMyFocus()
    +				reloadCityIncreaseRanking()
    +				reloadCityPotentialRanking()
    +				
    +				var curDatas = cityDetaiVue.$data.citys
    +				if(curDatas && curDatas.length>0){
    +					
    +					if(!IsInArray(curDatas, city)){
    +						cityDetaiVue.$data.citys.push(city);
    +					}
    +				}
    +				
    +			} else {
    +				  $.toast(response.data.message);
    +			}
    +			
    +		}).catch(function(error){
    +				console.log(error)
    +		})
    +	}
    +	
    +}
    +
    +function hotCity(city){
    +		clicked('../house/cityDetail.html',true,false,{},{city:city},function(){
    +	});
    +}
    +
    +
    +
    +</script>
    +
    +
    +
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html
    new file mode 100644
    index 0000000..9dc2545
    --- /dev/null
    +++ b/fangija-zsyf/views/house/houseList.html
    @@ -0,0 +1,393 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>我的房产</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.cardPrice01 .card-footer span:nth-child(2){text-align:center;}
    +	.list-block ul:before{height:0;}
    +	.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;}
    +	.cardPrice01 .card-content{background:url(../../images/cardBg01.png) no-repeat center bottom;background-size:100%;}
    +
    +	.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
    +	.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
    +	.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
    +	.list-block .item-title em{font-size:0.8rem;color:#EB5F34;}
    +	.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
    +</style>
    +</head>
    +
    +<body>
    +
    +<div class="page-group" style="display: none;" id="page-group-nologin">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">我的房产</h1>
    +		</header>
    +        <div class="content contentSuggest">
    +			<div class="noData">
    +				<img src="../../images/noData.png">
    +				<p>管理房产,房价、房租一手掌握</p>
    +				<div class="content-block">
    +					<p><a href="#" class="button button-big button-fill theme" onclick="gotoAddHouse()">添加房产</a></p>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<div class="page-group" style="display: none;" id="page-group-login">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">我的房产</h1>
    +		</header>
    +        <div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
    +        	<div class="card cardPrice cardPrice01" id="houseInfo" v-cloak>
    +				<div class="card-header">
    +					<span>房产总值</span>
    +					<a class="button theme" href="#" onclick="gotoAddHouse()">添加房产</a>
    +				</div>
    +				<div class="card-content">
    +					<div class="card-content-inner">{{totalPrice}}<span>万</span></div>
    +				</div>
    +				<div class="card-footer">
    +					<span>
    +						<em><strong>{{oneYearUpDownRange}}</strong>%<i id ="oneYearUpDownRange" class="icon icon-arrow-red"></i></em>
    +						<label>近1年涨跌幅</label>
    +					</span>
    +					<span>
    +						<em><strong>{{oneYearUpDownPrice}}</strong>万<i id="oneYearUpDownPrice" class="icon icon-arrow-red"></i></em>
    +						<label>近1年升值额</label>
    +					</span>
    +					<!--<span>
    +						<em><strong>待定</strong><i class="icon icon-arrow-red"></i></em>
    +						<label>资产排名</label>
    +					</span>-->
    +				</div>
    +			</div>
    +        	<div class="list-block media-list">
    +				<ul class="list-container">
    +					<!-- 动态拼接内容 -->
    +				</ul>
    +			</div>
    +			<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
    +     		<div class="infinite-scroll-preloader">
    +                <div class="preloader"></div>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<div class="page-group" style="display: none;" id="page-group-login-temp"></div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +//初始化init(init方法必须调用,屏蔽后,无线下拉刷新无效果)
    +$.init();
    +
    +//定义对象
    +var baseInfo = new Vue({
    +	el: '#houseInfo',
    +	data: {
    +		totalPrice : "",
    +		oneYearUpDownRange:"",
    +		oneYearUpDownPrice: ""
    +	}
    +})
    +// 加载flag
    +var loading = false;
    +
    +//分页部分参数定义
    +var page;
    +var pageSize;
    +var totalPages;
    +var totalRecords;
    +
    +// 上次加载的序号
    +var lastIndex;
    +// 每次加载添加多少条目
    +var itemsPerLoad;
    +// 最多可加载的条目
    +var maxItems = 100;
    +
    +// 注册'infinite'事件处理函数
    +$(document).on('infinite', '.infinite-scroll-bottom', function() {
    +	// 如果正在加载,则退出
    +	if(loading) return;
    +	// 设置flag
    +	loading = true;
    +	// 模拟1s的加载过程
    +	setTimeout(function() {
    +		// 重置加载flag
    +		loading = false;
    +		//如果当前页大于等于总页数
    +		if(page >= totalPages) {
    +			// 加载完毕,则注销无限加载事件,以防不必要的加载
    +			$.detachInfiniteScroll($('.infinite-scroll'));
    +			// 删除加载提示符
    +			$('.infinite-scroll-preloader').hide();
    +			return;
    +		}
    +		//控制查询下一页的数据
    +		page = page + 1;
    +		selectHouseInfoList();
    +		//容器发生改变,如果是js滚动,需要刷新滚动
    +		//$.refreshScroller();
    +	}, 1000);
    +});
    +
    +//我的收藏查询请求
    +function selectHouseInfoList(){
    +	axios.get(BASE_PATH + "/rest/index/ourHouseInfoList", 
    +		{
    +			params: {
    +		       page: page,
    +		       pageSize: pageSize
    +		    }
    +		}).then(function (response) {
    +			var resultsMap = response.data.data;
    +			var resultList = resultsMap.houseInfoPageList.list;
    +			var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
    +			var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
    +			var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
    +			// 上次加载的序号
    +			lastIndex = $('.list-container li').length;
    +			//登录状态,但没有数据
    +			if(lastIndex == 0 && (resultList != null && resultList.length == 0)){
    +				//控制显示
    +				$('#page-group-nologin').show();
    +				$('#page-group-login').hide();
    +			}else{
    +				//控制显示
    +				$('#page-group-nologin').hide();
    +				$('#page-group-login').show();
    +			}
    +			$('#page-group-login-temp').hide();
    +			if(resultList != null && resultList.length == 0){
    +				// 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            $.detachInfiniteScroll($('.infinite-scroll'));
    +				// 删除加载提示符
    +       			$('.infinite-scroll-preloader').hide();
    +	            return;
    +			}
    +			if(resultsMap.houseInfoPageList.currentPage == resultsMap.houseInfoPageList.totalPages){
    +				//如果此次查询刚好是page = totalPages
    +				// 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            $.detachInfiniteScroll($('.infinite-scroll'));
    +				// 删除加载提示符
    +       			$('.infinite-scroll-preloader').hide();
    +			}
    +			//封装list数据
    +			var dataObj = [];
    +			for(var i in resultList){
    +				dataObj.push(resultList[i])
    +			}
    +			//每次加载添加多少条目
    +			itemsPerLoad = resultList.length;
    +			//请求后对page进行赋值
    +			page = resultsMap.houseInfoPageList.currentPage;
    +			pageSize = resultsMap.houseInfoPageList.limit;
    +			totalPages = resultsMap.houseInfoPageList.totalPages;
    +			totalRecords = resultsMap.houseInfoPageList.totalRecords;
    +	    	addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap);
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//判断是否登录
    +function checkIsLogin(){
    +	if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +		$('#page-group-nologin').show();
    +		$('#page-group-login').hide();
    +		$('#page-group-login-temp').hide();
    +	}else{
    +		//控制显示
    +		$('#page-group-login-temp').html('<div class="page page-current"><div class="loadingBg"><div class="infinite-scroll-preloader"><div class="preloader"></div></div></div></div>');
    +		$('#page-group-login-temp').show();
    +		$('#page-group-nologin').hide();
    +		$('#page-group-login').hide();
    +		//初始化分页参数, 防止回调时候重新请求出错
    +		initParams();
    +		selectHouseInfoList();
    +	}
    +}
    +
    +//初始化分页参数, 防止回调时候重新请求出错
    +function initParams(){
    +	loading = false;
    +	page = undefined;
    +	pageSize = undefined;
    +	totalPages = undefined; 
    +	totalRecords = undefined;
    +	lastIndex = undefined;
    +	itemsPerLoad = undefined;
    +	maxItems = 100;
    +	//清空构造的container
    +	$('.infinite-scroll-bottom .list-container').html('');
    +	//不用考虑下拉刷新的还在不在,先移除在添加
    +	$('.infinite-scroll-preloader').show();
    +	$.detachInfiniteScroll($('.infinite-scroll'));
    +	$.attachInfiniteScroll('.infinite-scroll');
    +}
    +
    +//跳转添加房产
    +function gotoAddHouse(){
    +	clicked('/views/house/add.html',true,false,{},{type:0},function(){
    +		checkIsLogin();
    +	})
    +}
    +
    +//跳转房产详情
    +function gotoHouseDetail(id){
    +  clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){
    +  })
    +}
    +
    +//跳转房产申请贷款
    +function gotoLoanApply(houseId, city){
    +	clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: ""},function(){})
    +}
    +
    +/* 分页构造数据 */
    +function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap) {
    +	var html = '';
    +	//控制总产值部分显示
    +	baseInfo.totalPrice = houseInfoTotalMap["totalPrice"];
    +	baseInfo.oneYearUpDownRange = Math.abs(houseInfoTotalMap["oneYearUpDownRange"]);
    +	baseInfo.oneYearUpDownPrice = Math.abs(houseInfoTotalMap["oneYearUpDownPrice"]);
    +	if(!isNaN(houseInfoTotalMap["oneYearUpDownRange"])){
    +		//涨跌幅大于零
    +		if(parseFloat(houseInfoTotalMap["oneYearUpDownRange"])>=0){
    +			$('#oneYearUpDownRange').attr("class", "icon icon-arrow-red");
    +		}else{
    +			//涨跌幅小于零
    +			$('#oneYearUpDownRange').attr("class", "icon icon-arrow-green");
    +		}
    +	}
    +	if(!isNaN(houseInfoTotalMap["oneYearUpDownPrice"])){
    +		//涨跌幅大于零
    +		if(parseFloat(houseInfoTotalMap["oneYearUpDownPrice"])>=0){
    +			$('#oneYearUpDownPrice').attr("class", "icon icon-arrow-red");
    +		}else{
    +			//涨跌幅小于零
    +			$('#oneYearUpDownPrice').attr("class", "icon icon-arrow-green");
    +		}
    +	}
    +	for(var i in dataObj) {
    +		var result = dataObj[i];
    +		
    +		//可抵押贷额度
    +		var tempTotalPricePercent = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)*0.7/10000).toFixed(2)+"万";
    +		var tempTotalPrice = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)/10000).toFixed(2)+"万";
    +		
    +		html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
    +		html += "<div class='item-inner'><div class='item-title-row'>";
    +		html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"</em><span class='tag'>";
    +		
    +		if(result.liveStatus!=null && result.liveStatus.length>0){
    +			html += "<small>"+result.liveStatus+"</small></span></div>";
    +		}else{
    +			html += "<small>其它</small></span></div>";
    +		}
    +		html +=	"</div><div class='item-subtitle'>";
    +		
    +		//对应城市地区小区30天涨跌幅
    + 		var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
    + 		var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
    + 		if(!isNaN(xqOneMonthUpDownRangeValue)){
    + 			//涨跌幅大于零
    + 			if(parseFloat(xqOneMonthUpDownRangeValue)>=0){
    + 				html += "<div>近30天涨跌幅: <em class='up'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-red'></i></em></div>";
    + 			}else{
    + 				html += "<div>近30天涨跌幅: <em class='down'>"+Math.abs(xqOneMonthUpDownRangeValue)+"%<i class='icon icon-arrow-green'></i></em></div>";
    + 			}
    + 		}else{
    + 			html += "<div>近30天涨跌幅: <em class='down'>暂无<i class='icon'></i></em></div>";
    + 		}
    + 		//下跌概率
    + 		var xqPotentialIndexValue = xqPotentialIndexMap[xqOneMonthUpDownRangeKey];
    +		if(!isNaN(xqPotentialIndexValue)){
    + 			//涨跌幅大于零
    + 			if(parseInt(xqPotentialIndexValue)>=50){
    + 				html += "<div>上涨概率: <em class='up'>"+xqPotentialIndexValue+"%<i class='icon icon-arrow-red'></i></em></div>";
    + 			}else{
    + 				html += "<div>下跌概率: <em class='down'>"+(parseInt(100)-parseInt(xqPotentialIndexValue))+"%<i class='icon icon-arrow-green'></i></em></div>";
    + 			}
    + 		}else{
    + 			html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
    + 		}
    + 		
    +		html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
    +		
    +		if(result.level!=null && result.level == 1){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
    +		}else if(result.level!=null && result.level == 2){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>公寓级</a>";
    +		}else if(result.level!=null && result.level == 3){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>平房级</a>";
    +		}else if(result.level!=null && result.level == 4){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>草屋级</a>";
    +		}else if(result.level!=null && result.level == 5){
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>山洞级</a>";
    +		}else{
    +			html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
    +		}
    +		//控制贷款按钮是否可以显示,便于ios版本审核
    +		if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
    +			html +=	'<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
    +		}else{
    +			html +=	'</li>';
    +		}
    +	}
    +	$('.infinite-scroll-bottom .list-container').append(html);
    +}
    +
    +/* 说明-房产等级 */
    +$(document).on('click','.alert-text-title', function () {
    +	$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
    +});
    +
    +document.addEventListener('plusready', onPlusReady, false);
    +
    +function onPlusReady(){
    +    checkIsLogin();
    +}
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html
    new file mode 100644
    index 0000000..9bef9ff
    --- /dev/null
    +++ b/fangija-zsyf/views/house/houseManageList.html
    @@ -0,0 +1,303 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>房产评估</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.list-block .item-title{font-size:0.85rem;}
    +	.list-block .item-title span.span01{font-size:0.7rem;color:#666;margin-left:0.3rem;}
    +	.icon-add{width:0.6rem;height:0.6rem;background:url(../../images/icon-add.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
    +	.star .icon{width:0.7rem;height:0.7rem;background:url(../../images/icon-star.png) no-repeat center center;background-size:100%;margin-right:0.1rem;vertical-align:sub;}
    +	.star .icon-star01{background:url(../../images/icon-star01.png) no-repeat center center;background-size:100%;}
    +	.star .icon-star02{background:url(../../images/icon-star02.png) no-repeat center center;background-size:100%;}
    +	.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
    +	.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
    +	.list-block .item-subtitle em.em02{font-size:0.75rem;color:#EB5F34;}
    +	.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
    +	.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
    +	/**添加loading加载效果**/
    +	.loadingBgDiv{width:100%;height:70%;background:#fff;overflow:hidden;position:absolute;top:2.2rem;left:0;z-index:100;}
    +	.loadingBgDiv .infinite-scroll-preloader{margin-top:60%;}
    +	.list-block{margin-bottom:4rem;}
    +    .content-block{width:100%;background:#fff;position:fixed;bottom:0;z-index:10000;}
    +    @media(min-height:750px){
    +    	.list-block{margin-bottom:4.5rem;}
    +    	.content-block{bottom:4.5rem;}
    +  	}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current" id="dataList" style="display: none;">
    +       	<header class="bar bar-nav">
    +			<h1 class="title">房产评估</h1>
    +		</header>
    +		<div class="loadingBgDiv">
    +			<div class="infinite-scroll-preloader">
    +	          <div class="preloader"></div>
    +	      	</div>
    +		</div>
    +        <div class="content">
    +			<div class="list-block media-list">
    +				<!-- 动态封装部分 begin -->
    +				<ul>
    +					
    +				</ul>
    +				<!-- 动态封装部分 end -->
    +			</div>
    +       		<div class="content-block" style="display: none;">
    +				<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
    +			</div>
    +        </div>
    +    </div>
    +    <div class="page page-current" id="noData" style="display: none;">
    +    	<header class="bar bar-nav">
    +			<h1 class="title">房产评估</h1>
    +		</header>
    +		<div class="loadingBgDiv">
    +			<div class="infinite-scroll-preloader">
    +	          <div class="preloader"></div>
    +	      	</div>
    +		</div>
    +        <div class="content contentSuggest">
    +			<div class="noData">
    +				<img src="../../images/noData.png">
    +				<p>评估房产&nbsp;&nbsp;发现价值</p>
    +				<div class="content-block">
    +					<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/beacon_release.js"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +
    +//调用mui.init方法
    +$.init()
    +
    +/* 房产用途 */
    +$(document).on('click','.open-vertical-modal', function () {
    +	//获取对应<li>栏目存储的houseinfo id
    +	var id = $(this).attr("id");
    +	var houseStatus = 0;
    +    $.modal({
    +		title: '房产用途',
    +		verticalButtons: true,
    +		buttons: [
    +			{
    +				text: '自住',
    +				onClick: function() {
    +					addManagement(id, houseStatus, "自住");
    +				}
    +			},
    +			{
    +				text: '出租',
    +				onClick: function() {
    +					addManagement(id, houseStatus, "出租");
    +				}
    +			},
    +			{
    +				text: '空置',
    +				onClick: function() {
    +					addManagement(id, houseStatus, "空置");
    +				}
    +			},
    +			{
    +				text: '取消'
    +			}
    +		]
    +	})
    +});
    +
    +//添加管理AJAX请求
    +function addManagement(id, houseStatus, liveStatus){
    +	axios.post(BASE_PATH + "/rest/evaluate/addManagement",
    +		{
    +		    id: id,
    +		    houseStatus: houseStatus,
    +		    liveStatus: liveStatus
    +		}).then(function (response) {
    +			var status = response.data.status;
    +			if(status){
    +				$.toast(response.data.data);
    +				$('.loadingBgDiv').show();
    +				checkIsLogin();
    +				plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +				//plus.webview.getWebviewById('yfindex.html').reload();
    +			}else{
    +				$.toast(response.data.message);
    +			}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//查询房产评估列表AJAX请求
    +function selectEvaluateList(){
    +	//先清空列表
    +	$('.list-block ul').html("");
    +	var htmlContent = '';
    +	axios.get(BASE_PATH + "/rest/evaluate/houseinfolist", 
    +		{
    +			params: {}
    +		}).then(function (response) {
    +			var resultsMap = response.data.data;
    +			if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
    +				$('#dataList').hide();
    +				$('#noData').show();
    +				$('.loadingBgDiv').hide()
    +			}else{
    +				$('#dataList').show();
    +				$('#noData').hide();
    +				$('.loadingBgDiv').hide()
    +				var results = resultsMap.houseInfoList;
    +				var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
    +				var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
    +				//构造数据列表
    +				htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
    +				//动态追加内容
    +				$('.list-block ul').html(htmlContent);
    +				//添加loading等待效果
    +				//$(".loadingBg").hide();
    +				$(".content-block").show();
    +			}
    +			
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//动态构造房产评估列表
    +function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent){
    +	if(results!=null && results.length>0){
    +		for(var i in results){
    +			var result = results[i];
    +     		htmlContent =  htmlContent +'<li><a onclick="openReportWindow(\''+result.id+'\')" class="item-content">';
    +     		htmlContent =  htmlContent +"<div class='item-inner'><div class='item-title-row'>";
    +     		htmlContent =  htmlContent +"<div class='item-title'><label>"+result.name+"</label><span class='span01'>"+result.city+"-"+result.region+"</span></div>";
    +     		htmlContent =  htmlContent +"</div><div class='item-title-row'>";
    +     		
    +     		//htmlContent =  htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅";
    +     		var houseRoomNum = result.houseRoomNum==""?"暂无":result.houseRoomNum;
    +     		htmlContent =  htmlContent +"<div class='item-title'><small>"+houseRoomNum;
    +     		var floor_height = "";
    +			if(result.floor!=0){
    +				floor_height = result.floor;
    +			}
    +			if(result.height!=0){
    +				floor_height += "/" + result.height;
    +			}
    +			if(floor_height!=""){
    +				floor_height+="层";
    +			}
    +     		htmlContent =  htmlContent +"&nbsp;&nbsp;"+result.area+"㎡&nbsp;&nbsp;"+floor_height+"</small></div>"
    +     		htmlContent =  htmlContent +"</div><div class='item-subtitle'>";
    +     		//对应城市地区小区30天涨跌幅
    +     		//动态构建key
    +     		var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
    +     		//取得key对于的value
    +     		var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
    +     		if(!isNaN(xqOneMonthUpDownRangeValue)){
    +     			//涨跌幅大于零
    +     			if(parseFloat(xqOneMonthUpDownRangeValue)>=0){
    +     				htmlContent =  htmlContent + "<div>近30天涨跌幅: <em class='up'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-red'></i></em></div>";
    +     			}else{
    +     				//涨跌幅小于零
    +     				htmlContent =  htmlContent + "<div>近30天涨跌幅: <em class='down'>"+Math.abs(xqOneMonthUpDownRangeValue)+"%<i class='icon icon-arrow-green'></i></em></div>";
    +     			}
    +     		}else{
    +     			//为非数字清空放空格
    +     			htmlContent =  htmlContent + "<div>近30天涨跌幅: <em class='down'>暂无<i class='icon'></i></em></div>";
    +     		}
    +     		
    +     		//相比对于城市均价
    +     		var cityAvgPriceKey = result.city;
    +     		//取得对应城市的value
    +     		var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey];
    +     		if(!isNaN(cityAvgPriceValue) && result.price>0){
    +     			if(parseInt(cityAvgPriceValue)>parseInt(result.price)){
    +     				htmlContent =  htmlContent + "<div>相比"+result.city+"均价: <em class='down'>低"+(parseInt(cityAvgPriceValue)-parseInt(result.price))+"元</em></div>";
    +     			}else{
    +     				htmlContent =  htmlContent + "<div>相比"+result.city+"均价: <em class='up'>高"+(parseInt(result.price)-parseInt(cityAvgPriceValue))+"元</em></div>";
    +     			}
    +     		}else{
    +     			//为非数字清空放空格
    +     			htmlContent =  htmlContent + "<div>相比"+result.city+"均价: <em class='down'>暂无</em></div>";
    +     		}
    +     		var tempTotalPrice = (result.totalPrice) == 0?"暂无</strong>":(parseFloat(result.totalPrice)/10000).toFixed(2)+"</strong>万";
    +			var tempPrice = (result.price) == 0?"暂无":result.price+"元/㎡";
    +			
    +     		htmlContent =  htmlContent + "<div>均价: <em class='em02'>"+tempPrice+"</em></div>";
    +     		htmlContent =  htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</em></div>";
    +     		htmlContent =  htmlContent + "</div></div></a><a class='add open-vertical-modal' id="+result.id+" uid="+result.uid+" houseStatus="+result.houseStatus+"><i class='icon icon-add'></i>添加管理</a>"
    +			htmlContent =  htmlContent +"</li>";
    +     	}
    +	}
    +	return htmlContent;
    +}
    +
    +//立即评估
    +function openaddWindow(){
    +	clicked('/views/house/add.html',true,false,{},{type:1},function(){
    +	})
    +}
    +
    +//评估报告详情
    +function openReportWindow(id){
    +	clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
    +}
    +
    +//判断是否登录
    +function checkIsLogin(){
    +	if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +		$('#dataList').hide();
    +		$('#noData').show();
    +		$('.loadingBgDiv').hide();
    +	}else{
    +		selectEvaluateList();
    +	}
    +}
    +
    +document.addEventListener('plusready', onPlusReady, false);
    +
    +function onPlusReady(){
    +    checkIsLogin();
    +}
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/house/regions.html b/fangija-zsyf/views/house/regions.html
    new file mode 100644
    index 0000000..effcbd7
    --- /dev/null
    +++ b/fangija-zsyf/views/house/regions.html
    @@ -0,0 +1,156 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>上海各区县涨跌排行</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.card-content-inner{padding:0;}
    +</style>
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current" id="regionInfo">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">{{city}}各区县涨跌排行</h1>
    +		</header>
    +        <div class="content infinite-scroll infinite-scroll-bottom pstion" id="hasDataDiv" data-distance="50">
    +        	<div class="cardNearbyBox cardNearbyBox01 cardRankingBox">
    +     			<div class="cardNearbyWin">
    +					<div class="card cardNearby cardRanking" v-for="(info,index) in regionInfos" v-if="index < 3">
    +						<div class="card-header">{{info.region}}<img v-if="index == 0" src="../../images/rankingImg01.png"><img v-if="index == 1" src="../../images/rankingImg02.png"><img v-if="index == 2" src="../../images/rankingImg03.png"></div>
    +						<div class="card-content">
    +							<div class="card-content-inner">{{info.avgPrice}}元/㎡</div>
    +						</div>
    +						<div class="card-footer" v-if="info.oneMonthUpDownRange >0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
    +						<div class="card-footer" v-else=""><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
    +					</div>
    +					
    +				</div>
    +			</div>
    +			<div class="list-block media-list cityList">
    +				<ul class="list-container">
    +					<li>
    +						<a class="item-content">
    +							<div class="item-inner">
    +								<div class="item-subtitle row">
    +									<div class="col-10">&nbsp;</div>
    +									<div class="col-25">区县</div>
    +									<div class="col-33">{{month}}月均价</div>
    +									<div class="col-25">近30天涨跌幅</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +					<li v-for="(info,index) in regionInfos">
    +						<a class="item-content">
    +							<div class="item-inner">
    +								<div class="item-subtitle row">
    +									<div class="col-10">{{index+1}}</div>
    +									<div class="col-25">{{info.region}}</div>
    +									<div class="col-33">{{info.avgPrice}}元/㎡</div>
    +									<div class="col-25" v-if="info.oneMonthUpDownRange > 0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
    +									<div class="col-25" v-if="info.oneMonthUpDownRange < 0"><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +
    +				</ul>
    +			</div>
    +        </div>
    +        <!-- 暂无数据效果 -->
    +	    <div class="content contentSuggest dn" id="noDataDiv" style="display: none;">
    +			<div class="noData">
    +				<img src="../../images/noData.png">
    +				<p>{{city}}各区县涨跌排行数据目前仍在更新<br>敬请期待</p>
    +			</div>
    +	    </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +
    +	
    +<script>
    +	
    +	var date = new Date();
    +	var month = date.getMonth()+1;
    +	var regionsInfoVue = new Vue({
    +		el: '#regionInfo',
    +		data: {
    +			city:"",
    +			month:month,
    +			regionInfos : []
    +		}
    +	});
    +	document.addEventListener('plusready', onPlusReady, false);
    +	function onPlusReady() { 
    +	      var self = plus.webview.currentWebview();
    +	      var city = self.city
    +	      regionsInfoVue.$data.city = city;
    +	      loadRegionInfo(city);
    +	}
    +	
    +	//loadRegionInfo("上海");
    +	function loadRegionInfo(city){
    +		axios.get("/rest/quotations/regionInfos",{
    +			params:{
    +				city : city
    +			}
    +		}).then(function (response) {
    +		var msg = response.data.data;
    +		if(response.data.status){
    +			if(msg!=null && msg.length>0){
    +				for(var i in msg){
    +					var da = msg[i]
    +					da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
    +				}
    +				regionsInfoVue.$data.regionInfos = msg;
    +			}else{
    +				//控制显示无数据效果
    +				$('#hasDataDiv').hide();
    +				$('#noDataDiv').show();
    +			}
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +	}
    +</script>
    +</body>
    +</html>
    diff --git a/fangija-zsyf/views/intelligentHouse/aroundDetail.html b/fangija-zsyf/views/intelligentHouse/aroundDetail.html
    new file mode 100644
    index 0000000..723564f
    --- /dev/null
    +++ b/fangija-zsyf/views/intelligentHouse/aroundDetail.html
    @@ -0,0 +1,592 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>智能选房匹配列表</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.pstion{position:fixed;}
    +	@media(max-width:414px){
    +		.pstion{top:145px;}
    +	}
    +	@media(max-width:375px){
    +		.pstion{top:136px;}
    +	}
    +	@media(max-width:320px){
    +		.pstion{top:155px;}
    +	}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<button class="button button-link button-nav pull-right" onclick="back(),plus.nativeUI.closeWaiting();">
    +				地图
    +			</button>
    +			<h1 class="title">智能选房</h1>
    +		</header>
    +        <div class="content contentSuggest">
    +			<p>匹配出满足需求的<em id="houseNum"></em>个小区,智能推荐以下最合适的:</p>
    +			<div class="list-block media-list">
    +				<div class="selectBox row">
    +					<div class="region col-33 theme"><a>全部区域</a><i class="icon icon-down"></i></div>
    +					<div class="filter col-33 theme"><a>小区标签</a><i class="icon icon-down"></i></div>
    +					<div class="order col-33 theme"><a>智能排序</a><i class="icon icon-down"></i></div>
    +				</div>
    +				<div class="selectContent">
    +					<div class="topic dn" id="select_region">
    +						<div class="topicContent" style="padding:0.2rem 0.75rem;" id="regionDiv">
    +						</div>
    +					</div>
    +					<div class="topic dn" id="select_filter">
    +						<div class="topicContent" style="padding:0.2rem 0.75rem;">
    +							<p class="buttons-row buttons-row01 buttons-row01a theme">
    +								<a class="button">近地铁</a>
    +								<a class="button">公交多</a>
    +								<a class="button">买菜做饭</a>
    +								<a class="button">商超便利</a>
    +							</p>
    +							<p class="buttons-row buttons-row01 buttons-row01a theme">
    +								<a class="button">爱逛街</a>
    +								<a class="button">在外面吃</a>
    +								<a class="button">近医疗</a>
    +								<a class="button">近幼儿园</a>
    +							</p>
    +							<p class="buttons-row buttons-row01 buttons-row01a theme">
    +								<a class="button">近小学</a>
    +								<a class="button">近中学</a>
    +							</p>
    +						</div>
    +						<div class="content-block content-block01">
    +							<div class="row">
    +								<div class="col-50"><a href="#" class="button button-big button-fill theme reset_btn">重置</a></div>
    +								<div class="col-50"><a href="#" class="button button-big button-fill theme confirm_btn">确定</a></div>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="list-block dn" id="select_order">
    +						<ul>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title theme active" data-id="1"><i class="icon icon-check"></i>智能排序</div>
    +								</div>
    +							</li>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title theme" data-id="2"><i class="icon"></i>距离优先</div>
    +								</div>
    +							</li>
    +							<li class="item-content">
    +								<div class="item-inner">
    +									<div class="item-title theme" data-id="3"><i class="icon"></i>均价优先</div>
    +									<input type="hidden" id="lat">
    +						        	<input type="hidden" id="lng">
    +						        	<input type="hidden" id="city">
    +						        	<input type="hidden" id="address">
    +						        	<input type="hidden" id="areaTag">
    +						        	<input type="hidden" id="travelTime">
    +						        	<input type="hidden" id="minAvgPrice">
    +						        	<input type="hidden" id="maxAvgPrice">
    +						        	<input type="hidden" id="tag">
    +								</div>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +				<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
    +		        	<div class="list-block media-list">
    +						<ul class="list-container" id="resultData">
    +						</ul>
    +					</div>
    +					<!-- 加载提示符 -->
    +					<div class="infinite-scroll-preloader">
    +						<div class="preloader"></div>
    +					</div>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +
    +<script>
    +/*var	lat = 39.946147;
    +var	lng = 116.107604;
    +var	city = "北京";
    +var	address="门头沟区";
    +var	travelTime=30;
    +var	minAvgPrice=54545;
    +var	maxAvgPrice=66666;
    +var	areaTag=3;
    +var tag="近地铁_公交多_买菜做饭_商超便利_爱逛街_在外面吃_近医疗_近幼儿园_近小学_近中学";
    +var orderBy=0;
    +init();*/
    +var	lat;
    +var	lng;
    +var	city;
    +var	address;
    +var	travelTime;
    +var	minAvgPrice;
    +var	maxAvgPrice;
    +var	areaTag;
    +var tag;
    +var orderBy;
    +var dataObj = [];
    +document.addEventListener('plusready', onPlusReady, false);
    +//扩展API加载完毕,现在可以正常调用扩展API
    +
    +function onPlusReady(){
    +	var self = plus.webview.currentWebview();
    +    lat = self.lat;
    +	lng = self.lng;
    +	city = self.city;
    +	address = self.address;
    +	travelTime = self.travelTime;
    +	minAvgPrice = self.minAvgPrice;
    +	maxAvgPrice = self.maxAvgPrice;
    +	areaTag = self.areaTag;
    +	tag = self.tag;
    +	orderBy = self.orderBy;
    +	init();
    +}    
    +
    +
    +function init(){
    +	axios.get("/rest/intelligentHouse/aroundDetail", {
    +	    params: {
    +	      city: city,
    +	      lat:lat,
    +	      lng:lng,
    +	      address:address,
    +	      travelTime:travelTime,
    +	      minAvgPrice:minAvgPrice,
    +	      maxAvgPrice:maxAvgPrice,
    +	      areaTag:areaTag,
    +	      tag:tag,
    +	      orderBy:orderBy
    +	    }
    +	})
    +	.then(function (response) {
    +		$("#city").val(response.data.data.city);
    +		$("#address").val(response.data.data.address);
    +		$("#areaTag").val(response.data.data.areaTag);
    +		$("#lng").val(response.data.data.lng);
    +		$("#lat").val(response.data.data.lat);
    +		$("#travelTime").val(response.data.data.travelTime);
    +		$("#minAvgPrice").val(response.data.data.minAvgPrice);
    +		$("#maxAvgPrice").val(response.data.data.maxAvgPrice);
    +		$("#houseNum").text(response.data.data.houseNum);
    +		dataObj = $.parseJSON(response.data.data.houseListJson);
    +		//加载区域
    +		var regionList = response.data.data.regionList;
    +		var html = '<p class="buttons-row buttons-row01 buttons-row01a theme"><a class="button active">不限</a>';
    +	  	for(var i=0;i<regionList.length;i++){
    +		  if((i+1)%4 == 0){
    +			  html += '<p class="buttons-row buttons-row01 buttons-row01a theme">';
    +			  html += '<a class="button">'+regionList[i]+'</a>';
    +		  }else if((i+2)%4 == 0 || (i+1 == regionList.length)){
    +			  html += '<a class="button">'+regionList[i]+'</a>';
    +			  html += '</p>';
    +		  }else{
    +			  html += '<a class="button">'+regionList[i]+'</a>';
    +		  }
    +	  	}
    +		$("#regionDiv").html(html);
    +		regionClick();
    +		//预先加载20条
    +		addItems(itemsPerLoad, 0);
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +function turnMap(){
    +	var city = $("#city").val();
    +	var address = $("#address").val();
    +	var areaTag = $("#areaTag").val();
    +	var lng = $("#lng").val();
    +	var lat = $("#lat").val();
    +	var travelTime = $("#travelTime").val();
    +	var minAvgPrice = $("#minAvgPrice").val();
    +	var maxAvgPrice = $("#maxAvgPrice").val();
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	var url="${basePath}/intelligentHouse/mapDetail2?city="+city+"&areaTag="+areaTag+"&lng="+lng+"&lat="+lat+
    +	              "&travelTime="+travelTime+"&minAvgPrice="+minAvgPrice+"&maxAvgPrice="+maxAvgPrice+"&tag="+tag+"&address="+address;
    +	clicked(url,true);
    +}
    +
    +
    +/* 智能排序 */
    + $("#select_order li").on("click", function () {
    +	$(this).parents("#select_order").find(".item-title").removeClass("active");
    +	$(this).parents("#select_order").find(".item-title i").removeClass("icon-check");
    +	$(this).find(".item-title").addClass("active");
    +	$(this).find(".item-title i").addClass("icon-check");
    +	$(".order a").text($(this).text());
    +	//默认按距离
    +	var select_order = $("#select_order").find(".active").attr("data-id");
    +	var orderBy = 1;
    +	if(select_order=="3"){
    +		orderBy = 2;
    +	}
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	//区域
    +	var region = $(".region a")[0].innerText;
    +	if(region == "全部区域"){
    +		region = "";
    +	}
    +	orderList(tag,orderBy,region);
    +	$(".mask").hide();
    +	$("#select_order").hide();
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +function regionClick(){
    +	 /* 全部区域 */
    + $("#select_region .button").on("click", function () {
    + 	$(this).parents("#select_region").find(".item-title").removeClass("active");
    + 	$(this).parents("#select_region").find(".item-title i").removeClass("icon-check");
    + 	$(this).find(".item-title").addClass("active");
    + 	$(this).find(".item-title i").addClass("icon-check");
    + 	a = $("#select_region li").eq(0).find(".item-title").hasClass("active");
    + 	if(a){
    + 		$(".region a").text("全部区域");
    + 	}else{
    + 		if($(this).text()=="不限"){
    + 			$(".region a").text("全部区域");
    + 		}else{
    + 			$(".region a").text($(this).text());
    + 		}
    + 	}
    + 	var select_order = $("#select_order").find(".active").attr("data-id");
    +	var orderBy = 1;
    +	if(select_order=="3"){
    +		orderBy = 2;
    +	}
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	//区域
    +	var region = $(this).text().trim();
    +	if(region == "不限"){
    +		region = "";
    +	}
    +	orderList(tag,orderBy,region);
    +	$(this).parents("#select_region").find("a").removeClass("active");
    + 	$(".mask").hide();
    + 	$("#select_region").hide();
    + 	$(".region").removeClass("active");
    + 	$(".region i").removeClass("icon-up");
    + }); 
    +}
    +/* 小区标签&智能排序切换 */
    + 
    + $(".region").on("click", function () {
    +	$(".mask").show();
    +	$("#select_region").show();
    +	$("#select_filter").hide();
    +	$("#select_order").hide();
    +	$(".region").addClass("active");
    +	$(".region i").addClass("icon-up");
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +$(".filter").on("click", function () {
    +	$(".mask").show();
    +	$("#select_region").hide();
    +	$("#select_filter").show();
    +	$("#select_order").hide();
    +	$(".region").removeClass("active");
    +	$(".region i").removeClass("icon-up");
    +	$(".filter").addClass("active");
    +	$(".filter i").addClass("icon-up");
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +$(".order").on("click", function () {
    +	$(".mask").show();
    +	$("#select_region").hide();
    +	$("#select_filter").hide();
    +	$("#select_order").show();
    +	$(".region").removeClass("active");
    +	$(".region i").removeClass("icon-up");
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	$(".order").addClass("active");
    +	$(".order i").addClass("icon-up");
    +});
    +/* 小区标签 */
    +$(".reset_btn").on("click", function () {
    +	$(".button").removeClass("active");
    +});
    +
    +$(".confirm_btn").on("click", function () {
    +	$(".mask").hide();
    +	$("#select_filter").hide();
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	/*if($("#select_filter .button").hasClass("active")){
    +		$(".filter").addClass("active");
    +	}else{
    +		$(".filter").removeClass("active");
    +	}*/
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	var select_order = $("#select_order").find(".active").attr("data-id");
    +	var orderBy = 1;
    +	if(select_order=="3"){
    +		orderBy = 2;
    +	}
    +	//区域
    +	var region = $(".region a")[0].innerText;
    +	if(region == "全部区域"){
    +		region = "";
    +	}
    +	orderList(tag,orderBy,region);
    +});
    +
    +$("body").delegate(".button","click",function(){
    +	if($(this).hasClass("active")){
    +		$(this).removeClass("active");
    +	}else{
    +		$(this).addClass("active");
    +	}
    +});
    +
    +/* 智能排序 */
    +$("#select_order li").on("click", function () {
    +	$(this).parents("#select_order").find(".item-title").removeClass("active");
    +	$(this).parents("#select_order").find(".item-title i").removeClass("icon-check");
    +	$(this).find(".item-title").addClass("active");
    +	$(this).find(".item-title i").addClass("icon-check");
    +	$(".order a").text($(this).text());
    +	$(".mask").hide();
    +	$("#select_order").hide();
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +function orderList(tagStr,orderByStr,regionStr){
    +	var cityStr = $("#city").val();
    +	var areaTagStr = $("#areaTag").val();
    +	var lngStr = $("#lng").val();
    +	var latStr = $("#lat").val();
    +	var travelTimeStr = $("#travelTime").val();
    +	var minAvgPriceStr = $("#minAvgPrice").val();
    +	var maxAvgPriceStr = $("#maxAvgPrice").val();
    +	axios.get("/rest/intelligentHouse/getDistrictByTag", {
    +	    params: {
    +	        city:cityStr,
    +	    	areaTag:areaTagStr,
    +	    	lng:lngStr,
    +	    	lat:latStr,
    +	    	travelTime:travelTimeStr,
    +	    	minAvgPrice:minAvgPriceStr,
    +	    	maxAvgPrice:maxAvgPriceStr,
    +	    	tag:tagStr,
    +	    	orderBy:orderByStr,
    +	    	region:regionStr
    +	    }
    +	})
    +	.then(function (response) {
    +		if(response.data.message){
    +			$.toast(response.data.message);
    +		}else{
    +			var html="";
    +        	var result = response.data.data.data;
    +        	dataObj = result;
    +        	lastIndex = 0;
    +        	addItems(itemsPerLoad, 0)
    +        	if(result.length>10){
    +            	$(".infinite-scroll-preloader").show();
    +        	}else{
    +            	$(".infinite-scroll-preloader").hide();
    +        	}
    +        	lastIndex = $('.list-container li').length;
    +        	$("#houseNum").text(result.length);
    +		}
    +	})
    +	.catch(function (error) {
    +	   $.toast("查询失败");
    +	});
    +}
    +/* 页面底部无限加载事件 */
    +$.init();
    +var loading = false;
    +// 最多可加载的条目
    +var maxItems = 100;
    +
    +// 每次加载添加多少条目
    +var itemsPerLoad = 10;
    +function addItems(number, lastIndex) {
    +        // 生成新条目的HTML
    +        if(dataObj.length == 0) {
    +            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +            $.detachInfiniteScroll($('.infinite-scroll'));
    +            // 删除加载提示符
    +            $('.infinite-scroll-preloader').remove();
    +            $('.infinite-scroll-bottom .list-block ul ').html("<div style='text-align: center; line-height: 3rem;'></div>");
    +            return;
    +        }
    +        
    +        var html = '';
    +        for(var i in dataObj){
    +        	if(i>=lastIndex){
    +	            if(dataObj.length<lastIndex + number){
    +	            	var tags = dataObj[i].poiTags;
    +	       			var tagStr = "";
    +	       			if(tags){
    +	       				for(var j=0;j<tags.length;j++){
    +	       					if(j<3){
    +	       						var tag = tags[j];
    +	       						tagStr = tagStr + '<small class="small">'+tag+'</small>';
    +	       					}
    +	       				}
    +	       			}
    +					html += '<li onclick="openDistWindow(\''+dataObj[i].city+'\',\''+dataObj[i].district+'\',\''+dataObj[i].name+'\')">'+		
    +							'<a class="external item-content">'+
    +	       					'<div class="item-inner">'+
    +	       					'<div class="item-title-row"><div class="item-title">'+dataObj[i].name+'</div><div class="item-after"><em>¥'+dataObj[i].avgPrice+'元/㎡</em></div></div>'+
    +	       					'<div class="item-title-row"><div class="item-title"><i class="icon icon-address03"></i><small>'+dataObj[i].city+dataObj[i].district+dataObj[i].address+'</small></div>'+
    +	       					'<div class="item-after"><span>距您'+dataObj[i].distance+'m</span></div></div>';
    +	       					if(tagStr){
    +	       						html += '<div class="item-subtitle"><span class="tag">'+tagStr+'</span></div>';
    +	       					}
    +	       					html+='</div></a></li>'
    +	            }else{
    +	           		if(i < lastIndex + number){
    +	           			var tags = dataObj[i].poiTags;
    +	           			var tagStr = "";
    +	           			if(tags){
    +	           				for(var j=0;j<tags.length;j++){
    +	           					if(j<3){
    +	           						var tag = tags[j];
    +	           						tagStr = tagStr + '<small class="small">'+tag+'</small>';
    +	           					}
    +	           				}
    +	           			}
    +	                    html += '<li onclick="openDistWindow(\''+dataObj[i].city+'\',\''+dataObj[i].district+'\',\''+dataObj[i].name+'\')">'+		
    +							"<a class='external item-content'>"+
    +	       					'<div class="item-inner">'+
    +	       					'<div class="item-title-row"><div class="item-title">'+dataObj[i].name+'</div><div class="item-after"><em>¥'+dataObj[i].avgPrice+'元/㎡</em></div></div>'+
    +	       					'<div class="item-title-row"><div class="item-title"><i class="icon icon-address03"></i><small>'+dataObj[i].city+dataObj[i].district+dataObj[i].address+'</small></div>'+
    +	       					'<div class="item-after"><span>距您'+dataObj[i].distance+'m</span></div></div>';
    +	       					if(tagStr){
    +	       						html += '<div class="item-subtitle"><span class="tag">'+tagStr+'</span></div>';
    +	       					}
    +	       					html+='</div></a></li>'
    +	           		}
    +	            }
    +        	}
    +        }
    +        if(dataObj.length<=(lastIndex + number)){
    +        	$(".infinite-scroll-preloader").hide();
    +        }
    +        // 添加新条目
    +        if(lastIndex == 0){
    +			$('.infinite-scroll-bottom .list-block ul').html(html);
    +		}else{
    +			$('.infinite-scroll-bottom .list-block ul').append(html);
    +		}
    +
    +    }
    +    
    +// 上次加载的序号
    +
    +var lastIndex = 10;
    +
    +// 注册'infinite'事件处理函数
    +$(document).on('infinite', '.infinite-scroll-bottom',function() {
    +
    +    // 如果正在加载,则退出
    +    if (loading) return;
    +
    +    // 设置flag
    +    loading = true;
    +
    +    // 模拟1s的加载过程
    +    setTimeout(function() {
    +        // 重置加载flag
    +        loading = false;
    +        /* if (lastIndex >= maxItems) {
    +            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +            $.detachInfiniteScroll($('.infinite-scroll'));
    +            // 删除加载提示符
    +            $('.infinite-scroll-preloader').remove();
    +            return;
    +        } */
    +        // 添加新条目
    +        addItems(itemsPerLoad, lastIndex);
    +        // 更新最后加载的序号
    +        lastIndex = $('.list-block li').length;
    +        //容器发生改变,如果是js滚动,需要刷新滚动
    +       // $.refreshScroller();
    +    }, 500);
    +});
    +function openDistWindow(city, region, name){
    +	clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name});
    +}
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/intelligentHouse/index.html b/fangija-zsyf/views/intelligentHouse/index.html
    new file mode 100644
    index 0000000..b98ba6a
    --- /dev/null
    +++ b/fangija-zsyf/views/intelligentHouse/index.html
    @@ -0,0 +1,1286 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>智能选房输入页面</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/city.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9E99D3540e4dafb7894f7b9fe27fa6b5"></script>
    +
    +<style>
    +	.list-block ul:after{height:0;}
    +	.topic{border-bottom:solid 1px #e7e7e7;}
    +	.topic .topicTitle{font-size:inherit;}
    +	.topic .topicContent{padding:0.2rem 0.75rem;}
    +	.topic .topicContent > p:first-child{margin-top:0;}
    +	.picker-item{padding:0 5rem;font-size:18px;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">智能选房</h1>
    +		</header>
    +        <div class="content f3">
    +           
    +         	<div class="list-block media-list mb05">
    +                <ul>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">城<small class="spacing">&nbsp;</small>市</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_city" name="city" readonly class="textAlignRight open-about01" placeholder="请选择">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">目标位置</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_address" readonly name="address" class="textAlignRight open-about02" placeholder="请输入目标地点(如工作地)">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">出行方式</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_mode" name="outWay" class="textAlignRight" placeholder="请选择" value="开车">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">行程时间</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_time" name="outTime" class="textAlignRight" placeholder="请选择" value="20分钟">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">买房预算</div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_budget" name="budget" class="textAlignRight textAlignRight01" placeholder="请输入">
    +                                    	<input type="hidden" id="lat" name="lat">
    +                                    	<input type="hidden" id="lng" name="lng" >
    +                                    	<label>万元</label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +          	<div class="topic">
    +				<div class="topicTitle">意向面积<em class="theme" id="areaInfo">90-110㎡</em></div>
    +				<div class="topicContent" style="padding-bottom:1rem;">
    +					<div class="rangeBox">
    +						<div class="rangeBg"></div>
    +						<input type="range" value="42.8571" style="background-size:42.8571% 100%;" id="select_area" class="theme">
    +						<input type="hidden" id="area" name="area" value="90-110㎡">
    +					</div>
    +					<small class="rangeNote"><span class="span01 span01a">50</span><span class="span01">70</span><span class="span02">90</span><span class="span02">110</span><span class="span02">150</span><span class="span02">200</span><span class="span02">300</span></small>
    +				</div>
    +			</div>
    +           	
    +            <div class="content-block">
    +                <p><a onclick="select_btn()" class="button button-big button-fill theme" id="select_btn">立即选房</a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<!-- About Popup -->
    +<div class="popup popup-about popup-about01">
    +    <div class="bar">
    +        <div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="citySearchInp" placeholder="请输入城市名称进行搜索">
    +            </div>
    +        </div>
    +        <div class="buttons-tab theme">
    +			<a href="#tabCity1" class="tab-link button active">按拼音字母</a>
    +			<a href="#tabCity2" class="tab-link button">按城市等级</a>
    +		</div>
    +    </div>
    +    
    +    <div class="content-block content-block01 content dn" style="top:66px;z-index:100;" id="selectContainer">
    +		<div class="container" style="top:0;">
    +			<div class="city" style="width:100%;">
    +				<div class="city-list"></div>
    +			</div>
    +		</div>	
    +	</div>
    +	
    +				
    +	<div class="tabs">
    +		<div id="tabCity1" class="tab active">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer" class="container">
    +					<div class="cityGPS">
    +						<div class="city-list01 close-popup">
    +							<p class="nowCity">上海</p>
    +							<small>当前城市</small>
    +						</div>
    +					</div>
    +					<div class="cityHot">
    +						<div class="city-list01">
    +							<span class="city-letter" id="Hot">热门城市</span>
    +							<div>
    +								<p class="close-popup">北京</p>
    +								<p class="close-popup">上海</p>
    +								<p class="close-popup">广州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">深圳</p>
    +								<p class="close-popup">成都</p>
    +								<p class="close-popup">杭州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">南京</p>
    +								<p class="close-popup">重庆</p>
    +								<p class="close-popup">天津</p>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="city">
    +						<div class="city-list"><span class="city-letter" id="A1">A</span>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup ">阿克苏</p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">安顺</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="B1">B</span>
    +							<p class="close-popup">百色</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">蚌埠</p>                        
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">北京</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">亳州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="C1">C</span>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="D1">D</span>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">丹东</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">东营</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="E1">E</span>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">鄂州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="F1">F</span>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">福州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="G1">G</span>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">广州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="H1">H</span>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">杭州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="J1">J</span>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">鸡西</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="K1">K</span>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">昆明</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="L1">L</span>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">拉萨</p>                        
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">泸州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="M1">M</span>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">牡丹江</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="N1">N</span>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">怒江州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="P1">P</span>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">莆田</p>
    +							<p class="close-popup">濮阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Q1">Q</span>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">泉州</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">衢州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="R1">R</span>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">日照</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="S1">S</span>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">上海</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">深圳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="T1">T</span>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">台州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="W1">W</span>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">无锡</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">温州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="X1">X</span>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">信阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Y1">Y</span>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">扬州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Z1">Z</span>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">郑州</p>
    +						</div>
    +					</div>
    +					<div class="letter">
    +						<ul>
    +							<li><a href="javascript:;">热门</a></li>
    +							<li><a href="javascript:;">A</a></li>
    +							<li><a href="javascript:;">B</a></li>
    +							<li><a href="javascript:;">C</a></li>
    +							<li><a href="javascript:;">D</a></li>
    +							<li><a href="javascript:;">E</a></li>
    +							<li><a href="javascript:;">F</a></li>
    +							<li><a href="javascript:;">G</a></li>
    +							<li><a href="javascript:;">H</a></li>
    +							<li><a href="javascript:;">J</a></li>
    +							<li><a href="javascript:;">K</a></li>
    +							<li><a href="javascript:;">L</a></li>
    +							<li><a href="javascript:;">M</a></li>
    +							<li><a href="javascript:;">N</a></li>
    +							<li><a href="javascript:;">P</a></li>
    +							<li><a href="javascript:;">Q</a></li>
    +							<li><a href="javascript:;">R</a></li>
    +							<li><a href="javascript:;">S</a></li>
    +							<li><a href="javascript:;">T</a></li>
    +							<li><a href="javascript:;">W</a></li>
    +							<li><a href="javascript:;">X</a></li>
    +							<li><a href="javascript:;">Y</a></li>
    +							<li><a href="javascript:;">Z</a></li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +		<div id="tabCity2" class="tab">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer01" class="container">
    +					<div class="city" style="width:100%;">
    +						<div class="city-list">
    +							<span class="city-letter" id="City1">一线城市</span>
    +							<div>
    +								<p class="close-popup collectionCity">北京<i class="icon-collection03"></i></p>
    +								<p class="close-popup collectionCity active">上海<i class="icon-collection03"></i></p>
    +								<p class="close-popup">广州</p>
    +								<p class="close-popup">深圳</p>
    +							</div>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City1a">新一线城市</span>
    +							<p class="close-popup">杭州</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">无锡</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City2">二线城市</span>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">扬州</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">福州</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">温州</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">郑州</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">昆明</p>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">泉州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City3">三线城市</span>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">泸州</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">蚌埠</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">台州</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">衢州</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">莆田</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City4">四线城市</span>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">牡丹江</p>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">白色</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +							<p class="close-popup">东营</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">拉萨</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">信阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">日照</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">丹东</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City5">五线城市</span>
    +							<p class="close-popup">铁门关</p>
    +							<p class="close-popup">可克达拉</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">安顺</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">鸡西</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">亳州</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">鄂州</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">濮阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup">阿克苏</p>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">怒江州</p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">北屯</p>
    +							<p class="close-popup">双河</p>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<div class="popup popup-about popup-about02">
    +   	<div class="bar">
    +        <div class="searchbar row">
    +           	<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +            <div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="districtName" placeholder="请输入目标地点(如工作地)">
    +            </div>
    +        </div>
    +    </div>
    +    <div class="content-block content-block01 content">
    +        <div class="container">
    +			<div class="list-block media-list">
    +				
    +				<div id="l-map"></div>
    +				<ul id="searchBaiduAddress">
    +					
    +				</ul>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +jQuery = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/sm.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type='text/javascript' src='../../js/city-app.js?version=${version!}' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/validate.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +/* 调取百度API获取地址提醒 */
    + 
    +var searchAddress = function(){
    +    var city = $("#input_city").val();
    +    var districtName = $("#districtName").val();
    +    var map = new BMap.Map("l-map");    
    +    if(city=="" || city==undefined){
    +    	city = "全国";
    +    }
    +    map.centerAndZoom(city, 11);
    +    var options = {
    +    	onSearchComplete: function(results){
    +    		// 判断状态是否正确
    +    		if (local.getStatus() == BMAP_STATUS_SUCCESS){
    +    			var s = [];
    +    			var html = "";
    +    			for (var i = 0; i < results.getCurrentNumPois(); i ++){
    +					html += '<li><a class="item-link item-content close-popup"><div class="item-inner">'+
    +				        '<div class="item-title-row"><div class="item-title"><font>'+results.getPoi(i).title+'</font><br><small>'+ 
    +				        results.getPoi(i).address+'</small><input type="hidden" name="lat" value='+results.getPoi(i).point.lat+'>'+
    +				        '<input type="hidden" name="lng" value='+results.getPoi(i).point.lng+'></div></div></div></a></li>';
    +    			}
    +    			$("#searchBaiduAddress").html(html);
    +    			$(".popup-about02 ul li").on("click", function () {
    +    				$("#input_address").val($(this).find(".item-title font").text());
    +    				$("input[name='lat']").val($(this).find(".item-title input")[0].value);
    +    				$("input[name='lng']").val($(this).find(".item-title input")[1].value);
    +    			});
    +    		}
    +    	}
    +    };
    +    var local = new BMap.LocalSearch(map, options);
    +    local.search(districtName);
    +}
    +
    +$("#districtName").bind('input propertychange keyup', function() {
    +    searchAddress();
    +});
    +
    +$("#districtName").bind('keyup', function() {
    +	searchAddress();
    +});
    +
    +/* 弹出目标位置搜索页面 */
    +$(document).on("click",".open-about02", function () {
    +	$.popup(".popup-about02");
    +});
    +
    +/* 获取目标位置 */
    +$(".popup-about02 ul li").on("click", function () {
    +	$("#input_address").val($(this).find(".item-title font").text());
    +});
    +
    +$(document).on("click",".open-about01", function () {
    +	$.popup(".popup-about01");
    +});
    +function req(city){
    +	city=city.replace("<i></i>","")
    +    $("#input_city").val(city);
    +}
    +
    +/* 选择-出行方式 */
    +$("#input_mode").picker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">出行方式</h1>\
    +	</header>',
    +	cols: [
    +		{
    +			textAlign: "center",
    +			values: ["开车", "更多出行方式待开启"]
    +		}
    +	]
    +});
    +
    +/* 选择-行程时间 */
    +$("#input_time").picker({
    +	toolbarTemplate: '<header class="bar bar-nav bar-nav01">\
    +	<button class="button button-link pull-right close-picker">确定</button>\
    +	<h1 class="title">行程时间</h1>\
    +	</header>',
    +	cols: [
    +		{
    +			textAlign: "center",
    +			values: ["5分钟", "10分钟", "15分钟", "20分钟", "25分钟", "30分钟"]
    +		}
    +	]
    +});
    +
    +/* 错误提示 */
    +function select_btn() {
    +	var a = $("#input_city").val();
    +	var b = $("#input_address").val();
    +	var c = $("#input_mode").val();
    +	var d = $("#input_budget").val();
    +	if(a == ""){
    +		$.toast("请选择城市");
    +		return false;
    +	}
    +	if(b == ""){
    +		$.toast("请输入目标地点(如工作地)");
    +		return false;
    +	}
    +	if(c == "更多出行方式待开启"){
    +		$.toast("更多出行方式待开启");
    +		$("#input_mode").val("开车");
    +		return false;
    +	}
    +	if(d == ""){
    +		$.toast("请输入买房预算");
    +		return false;
    +	}
    +	if(Number($("#input_budget").val()) <= 0){
    +        $.toast("买房预算必须大于0");
    +        return false;
    +    }
    +	if(!$("#input_budget").isPositiveInteger()){
    +        $.toast("买房预算必须是整数");
    +        return false;
    +    }
    +	//$("form").submit()
    +	var outTime = $("#input_time").val();
    +	var area = $("#area").val();
    +	var lng = $("#lng").val();
    +	var lat = $("#lat").val();
    +            
    +	mui.openWindow({
    +        url: 'mapDetail.html', 
    +        id:'mapDetail.html',
    +        extras:{
    +          city:a,
    +          address:b,
    +          outTime:$("#input_time").val(),
    +          budget:$("#input_budget").val(),
    +          area:$("#area").val(),
    +          lat:$("#lat").val(),
    +          lng:$("#lng").val()
    +        }
    +    });
    +	/*var url = '${basePath}/intelligentHouse/mapDetail?city='+a+'&address='+b+'&outTime='+outTime+'&budget='+d+'&area='+area+'&lat='+lat+'&lng='+lng;
    +	clicked(encodeURI(url),true);*/
    +};
    +
    +/* 错误提示 */
    +$("#select_btn").on("click", function () {
    +	var a = $("#input_city").val();
    +	var b = $("#input_address").val();
    +	var c = $("#input_mode").val();
    +	var d = $("#input_budget").val();
    +	if(a == ""){
    +		$.toast("请选择城市");
    +		return false;
    +	}
    +	else if(b == ""){
    +		$.toast("请输入目标地点(如工作地)");
    +		return false;
    +	}
    +	else if(c == "更多出行方式待开启"){
    +		$.toast("更多出行方式待开启");
    +		$("#input_mode").val("开车");
    +		return false;
    +	}
    +	else if(d == ""){
    +		$.toast("请输入买房预算");
    +		return false;
    +	}
    +});
    +
    +/* 滑块 */
    +$.fn.RangeSlider = function(cfg){
    +    this.sliderCfg = {
    +        min: cfg && !isNaN(parseFloat(cfg.min)) ? Number(cfg.min) : null, 
    +        max: cfg && !isNaN(parseFloat(cfg.max)) ? Number(cfg.max) : null,
    +        step: cfg && Number(cfg.step) ? cfg.step : 1,
    +        callback: cfg && cfg.callback ? cfg.callback : null
    +    };
    +
    +    var $input = $(this);
    +    var min = this.sliderCfg.min;
    +    var max = this.sliderCfg.max;
    +    var step = this.sliderCfg.step;
    +    var callback = this.sliderCfg.callback;
    +
    +    $input.attr("min", min)
    +        .attr("max", max)
    +        .attr("step", step);
    +
    +    $input.bind("input", function(e){
    +        $input.attr("value", this.value);
    +//		$input.css( 'background', 'linear-gradient(to right, #2db0fc, #eee ' + this.value + '%, #eee)');
    +		$input.css( "background-size", this.value + "% 100%" );
    +
    +        if ($.isFunction(callback)) {
    +            callback(this);
    +        }
    +    });
    +};
    +
    +var change = function($input) {
    +	var va = $("#select_area").val();
    +	var mod = va/14.2857;
    +
    +	if(mod == 0){
    +		$("#areaInfo").text("0-50㎡");
    +	}else if(mod == 1){
    +		$("#areaInfo").text("50-70㎡");
    +	}else if(mod == 2){
    +		$("#areaInfo").text("70-90㎡");
    +	}else if(mod == 3){
    +		$("#areaInfo").text("90-110㎡");
    +	}else if(mod == 4){
    +		$("#areaInfo").text("110-150㎡");
    +	}else if(mod == 5){
    +		$("#areaInfo").text("150-200㎡");
    +	}else if(mod == 6){
    +		$("#areaInfo").text("200-300㎡");
    +	}else if(mod == 7){
    +		$("#areaInfo").text("300㎡以上");
    +	}
    +
    +	$("#area").val($("#areaInfo").text());
    +}
    +
    +$("#select_area").RangeSlider({min: 0, max: 100, step: 14.2857, callback: change});
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/intelligentHouse/mapDetail.html b/fangija-zsyf/views/intelligentHouse/mapDetail.html
    new file mode 100644
    index 0000000..059eeb8
    --- /dev/null
    +++ b/fangija-zsyf/views/intelligentHouse/mapDetail.html
    @@ -0,0 +1,669 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>智能选房地图</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
    +<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js"></script>
    +
    +<style>
    +	.bar .button{top:0;}
    +	.bar-tab{height:auto;z-index:11000;}	
    +	.bar-tab ~ .content{bottom:2.2rem;}
    +	.list-block ul:before,.list-block ul:after{height:0;}
    +	.bar-tab .list-block{width:100%;position:absolute;left:0;bottom:0;}
    +	.bar-tab .show01 .item-title{color:#999;font-size:0.75rem;}
    +	.bar-tab .show01 .item-title em{color:#F18D00;font-size:0.75rem;}
    +	.selectContent{width:100%;background:#fff;top:inherit;bottom:0;}
    +	.topic{border:none;padding:0;margin:0;}
    +	.topic .topicTitle{border-bottom:none;font-size:inherit;width:100%;}
    +	.topic .topicContent > p:first-child{margin-top:0;}
    +	.mask{top:2.2rem;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<button class="button button-link button-nav pull-right" onclick="getAroundList()">
    +				列表
    +			</button>
    +			<h1 class="title">智能选房</h1>
    +		</header>
    +       	<nav class="bar bar-tab">
    +       		<div class="list-block media-list show01" id="districtShow01">	
    +                <ul>
    +                    <li>
    +                        <a onclick="getAroundList()" class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">匹配出满足需求的<em id="houseNum"></em>个小区</div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="list-block media-list show02 dn" id="districtShow02">
    +			</div>
    +			<div class="selectContent dn">
    +				<div class="topic" id="select_filter">
    +					<div class="topicTitle">小区标签筛选</div>
    +					<div class="topicContent" style="padding:0.2rem 0.75rem;">
    +						<p class="buttons-row buttons-row01 buttons-row01a theme">
    +							<a class="button">近地铁</a>
    +							<a class="button">公交多</a>
    +							<a class="button">买菜做饭</a>
    +							<a class="button">商超便利</a>
    +						</p>
    +						<p class="buttons-row buttons-row01 buttons-row01a theme">
    +							<a class="button">爱逛街</a>
    +							<a class="button">在外面吃</a>
    +							<a class="button">近医疗</a>
    +							<a class="button">近幼儿园</a>
    +						</p>
    +						<p class="buttons-row buttons-row01 buttons-row01a theme">
    +							<a class="button">近小学</a>
    +							<a class="button">近中学</a>
    +						</p>
    +					</div>
    +					<div class="content-block content-block01">
    +						<div class="row">
    +							<div class="col-50"><a href="#" class="button button-big button-fill theme reset_btn">重置</a></div>
    +							<div class="col-50"><a href="#" class="button button-big button-fill theme confirm_btn">确定</a></div>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +		</nav>
    +        <div class="mask dn"></div>
    +        <div class="content">
    +        	<div class="districtMap01" id="map"></div>
    +        	<!--<img src="../../images/filter.png" class="filter_btn">
    +        	<div class="houseNum"><p>静安<br>55</p></div>
    +        	<div class="icon-house"></div>
    +        	<div class="icon-house" style="left:70%;"></div>-->
    +        	
    +        	<img src="../../images/filter.png" class="filter_btn">
    +        	<input type="hidden" id="lat">
    +        	<input type="hidden" id="lng">
    +        	<input type="hidden" id="city">
    +        	<input type="hidden" id="address">
    +        	<input type="hidden" id="areaTag">
    +        	<input type="hidden" id="travelTime">
    +        	<input type="hidden" id="minAvgPrice">
    +        	<input type="hidden" id="maxAvgPrice">
    +        	<input type="hidden" id="tag">
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="https://cdn.bootcss.com/light7/0.4.3/js/light7.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type='text/javascript' src='../../js/city-app.js?version=${version!}' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../../js/validate.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +document.addEventListener('plusready', onPlusReady, false);
    +var lat = 31.2221;
    +var	lng = 121.359204;
    +var	city = "上海";
    +var	address="广顺小区";
    +var	outTime="20分钟";
    +var	budget=500;
    +var	area="90-110㎡";
    +//var houseListJson=[]
    +/*var lat;
    +var	lng;
    +var	city;
    +var	address;
    +var	outTime;
    +var	budget;
    +var	area;*/
    +var houseListJson=[]
    +var mapConfig = {}
    +//扩展API加载完毕,现在可以正常调用扩展API
    +function onPlusReady(){
    +	var self = plus.webview.currentWebview();
    +    lat = self.lat;
    +    lng = self.lng;
    +    city = self.city;
    +    address = self.address;
    +    outTime = self.outTime;
    +    budget = self.budget;
    +    area = self.area;
    +    mapConfig = {
    +	    isFirstLoad: true,
    +	    datas: {
    +	        // myIcon: "<div class='positionIcon'></div>",
    +	        myIcon: function (level) {
    +	            if(level != undefined && level > 1) {
    +	                var position = (level - 1) * -20;
    +	                return "<div class='icon-house' style='background-position-x: " + position + "px;'></div>"
    +	            } else {
    +	                return "<div class='icon-house'></div>"
    +	            }
    +	        },
    +	        markers: [],
    +	        center: new BMap.Point(lng, lat),
    +	        zoom: 12,
    +	        zoomThreshold:16,//超过次阀值,显示详细信息
    +	        mapData: null,
    +	        curCity: null,
    +	        minZoom: 10,
    +	        maxZoom: 20,
    +	        hasCity: false,
    +	    },
    +	    requestParams:{
    +	        fileId: null,
    +	        cityName: null,
    +	        region: null,
    +	        minTotalPrice: null,
    +	        maxTotalPrice: null,
    +	        minPrice: null,
    +	        maxPrice: null,
    +	        estateType: null,
    +	        minHouseYear: null,
    +	        maxHouseYear: null,
    +	        minArea: null,
    +	        maxArea: null
    +	    },
    +	    init: function (map) {
    +	        //启用滚轮放大缩小
    +	        if(map) {
    +	            this.mapObj = map;
    +	        } else {
    +	            this.mapObj = new BMap.Map("map", {minZoom:this.datas.minZoom,maxZoom:this.datas.maxZoom})
    +	        }
    +	        this.mapObj.enableScrollWheelZoom();
    +	        this.mapObj.centerAndZoom(this.datas.center, this.datas.zoom);
    +	        var that = this;
    +	    	
    +	    	that.addMapControl();
    +	        mapConfig.loadCountMapData(true);
    +	        this.mapObj.addEventListener("zoomend", function() {
    +	            var map = that.mapObj
    +	            that.datas.zoom = map.getZoom()
    +	            var city = map.getCurrentCity().name.replace("市", '')
    +	            if(map.getZoom() >= that.datas.zoomThreshold) {
    +	                that.clearOverlays()
    +	                that.loadDetailMapData()
    +	            } else if(map.getZoom() < that.datas.zoomThreshold) {
    +	                that.clearOverlays()
    +	                that.loadCountMapData()
    +	            }
    +	        })
    +	    },
    +	    serializeParams: function () {
    +	        var params = this.requestParams;
    +	        params.lat = lat;
    +	        params.lng = lng;
    +	        params.houseList= houseListJson;
    +	        params.city= city;
    +	        return params;
    +	    },
    +	    addMapControl: function (reload) {
    +	    	var scaleControl = new BMap.ScaleControl({
    +	    		anchor : BMAP_ANCHOR_BOTTOM_LEFT
    +   		    });
    +    		scaleControl.setUnit(BMAP_UNIT_METRIC);
    +    		this.mapObj.addControl(scaleControl);
    +    		var navControl = new BMap.NavigationControl({
    +	    		anchor : BMAP_ANCHOR_TOP_LEFT,
    +	    		type : BMAP_NAVIGATION_CONTROL_LARGE
    +    		});
    +    		this.mapObj.addControl(navControl);
    +	    },
    +	    loadDetailMapData: function (reload) {
    +	    	var params = this.serializeParams()
    +	        var that = this
    +	        this.clearOverlays()
    +	        var houseList = $.parseJSON(params.houseList)
    +	        $.each(houseList, function (index, val) {
    +	            var icon = that.datas.myIcon(val.level)
    +	            var marker = new BMapLib.RichMarker(icon, new BMap.Point(val.lng, val.lat));
    +	            that._addClickListener(marker, val)
    +	            that.addPoint(marker)
    +	        })
    +	    },
    +	    loadCountMapData: function (reload) {
    +	    	var params = this.serializeParams()
    +	        var that = this
    +	        this.clearOverlays()
    +	        var map = {};
    +	        var houseList = $.parseJSON(params.houseList)
    +	        $.each(houseList, function (index, val) {
    +	        	if(map[val.district]!=undefined && map[val.district]!=null){
    +	        		var value = map[val.district];
    +	        		map[val.district]=value+1;
    +	        	}else{
    +	        		map[val.district]=1;
    +	        	}
    +	        })
    +	        for(var i in map){
    +            	that._showCountWin(that.mapObj, i, i + "<br>"+map[i])
    +	        }
    +	        //下面列表数据变换
    +	        $("#districtShow01").show(); 
    +            $("#districtShow02").hide();
    +	    },
    +	    setCenter: function (center) {
    +	        if(center) {
    +	            if(center instanceof BMap.Point) {
    +	                this.datas.center = center
    +	                this.mapObj.centerAndZoom(center, this.datas.zoom);
    +	            } else if(typeof center === 'string') {
    +	                if(cities[center]) {
    +	                    this.datas.center = cities[center]
    +	                }
    +	                this.mapObj.centerAndZoom(center, this.datas.zoom);
    +	            }
    +	        }
    +	    },
    +	    _addClickListener: function (marker, data) {
    +	        var that = this
    +	        marker.addEventListener("click", function(e) {
    +	            var position = e.target._position
    +	            var mp = that.mapObj
    +	            //重新移动中心点
    +	            var pixel = mp.pointToPixel(position);
    +	            pixel.y = pixel.y-150;
    +	            var newCenterPoint = mp.pixelToPoint(pixel);
    +	            mp.centerAndZoom(newCenterPoint, that.datas.zoom);
    +	            $('.icon-house01').each(function (i) {
    +	            	  $(this).attr('class', "icon-house");
    +	            })
    +	            this._container.children[0].className = "icon-house01";
    +	            var html="";
    +	            html += '<ul><li>'+		
    +							"<a onclick=clicked('${basePath}/district/details?city="+data.city+"&region="+data.district+"&name="+data.name+"',true) class='external item-content'>"+
    +	       					'<div class="item-inner">'+
    +	       					'<div class="item-title-row"><div class="item-title">'+data.name+'</div><div class="item-after"><em>¥'+data.avgPrice+'元/㎡</em></div></div>'+
    +	       					'<div class="item-title-row"><div class="item-title"><i class="icon icon-address03"></i><small>'+data.city+data.district+data.address+'</small></div>'+
    +	       					'<div class="item-after"><span>距您'+data.distance+'m</span></div></div><div class="item-subtitle"><span class="tag">';
    +	       					 var count = 0;
    +	       					for(var i in data.poiTags){
    +			               	  if(count<3){
    +			               		  html+='<small class="small">'+data.poiTags[i]+'</small>';
    +			               	  }
    +			               	  count++;
    +			                 }
    +	       					html+='</span></div></div></a></li>'
    +                 html+='</div></div></a></li></ul>';
    +                 $("#districtShow01").hide(); 
    +                 $("#districtShow02").show(); 
    +				$("#districtShow02").html(html);
    +	        	
    +	        })
    +	    },
    +	    _showDetailWin: function(mp, point, popWinHtml) {
    +	        // var mp = this.map;
    +	        function ComplexCustomOverlay(point, text){
    +	            this._point = point;
    +	            this._text = text;
    +	        }
    +	        ComplexCustomOverlay.prototype = new BMap.Overlay();
    +	        ComplexCustomOverlay.prototype.initialize = function(map){
    +	            this._map = map;
    +	            var div = this._div = document.createElement("div");
    +	            $(div).attr("id", "popWin")
    +	            // $(div).attr("style", "position:absolute;background:#fff;box-shadow: 1px 1px 5px rgba(93,93,93,0.75);border-radius: 5px;z-index:"+BMap.Overlay.getZIndex(this._point.lat));
    +	            $(div).attr("style", "position:absolute;background:#fff;box-shadow: 1px 1px 5px rgba(93,93,93,0.75);border-radius: 5px;");
    +	            $(div).append(popWinHtml)
    +	            mp.getPanes().labelPane.appendChild(div);
    +	            return div;
    +	        }
    +	        ComplexCustomOverlay.prototype.draw = function(){
    +	            var map = this._map;
    +	            var pixel = map.pointToOverlayPixel(this._point);
    +	            this._div.style.left = pixel.x - 2 + "px";
    +	            this._div.style.top  = pixel.y - $(this._div).height() + "px";
    +	        }
    +	        mp.addOverlay(new ComplexCustomOverlay(point, popWinHtml));
    +	    },
    +	    clearOverlays: function () {
    +	        this.datas.markers = []
    +	        this.mapObj.clearOverlays();
    +	        this.showDistrict(this.mapObj, address);
    +	    },
    +	    addPoint: function (point, level) {
    +	        if(point) {
    +	            if(point instanceof BMap.Point) {
    +	                var pointIcon = this.datas.myIcon()
    +	                var marker = new BMapLib.RichMarker(pointIcon, point);
    +	                this.addPoint(marker)
    +	            } else if(point instanceof BMapLib.RichMarker || point instanceof BMap.Marker) {
    +	                this.datas.markers.push(point);
    +	                this.mapObj.addOverlay(point);
    +	            }
    +	        }
    +	    },
    +	    showDistrict: function (mp, text) {
    +	    	var that = this
    +	    	// 编写自定义函数,创建标注
    +	    	var marker = new BMap.Marker(this.datas.center);
    +	    	var point = new BMap.Point(lng, lat);
    +	    	function CountOverlay(city, text){
    +	            this._city = city;
    +	            this._point = point;
    +	            this._text = text;
    +	        }
    +	    	
    +	    	CountOverlay.prototype = new BMap.Overlay();
    +	        CountOverlay.prototype.initialize = function(map){
    +	            //this._map = this.mapObj;
    +	            var div = this._div = document.createElement("div");
    +	            div.style.position = "absolute";
    +	            div.style.zIndex = BMap.Overlay.getZIndex(20000);
    +	            div.style.backgroundColor = "grey";
    +	            div.style.border = "1px solid grey";
    +	            div.style.color = "white";
    +	            div.style.height = "25px";
    +	            div.style.padding = "2px";
    +	            div.style.lineHeight = "18px";
    +	            div.style.whiteSpace = "nowrap";
    +	            div.style.MozUserSelect = "none";
    +	            div.style.fontSize = "12px";
    +	            div.style.cursor = "pointer";
    +	            var span = this._span = document.createElement("span");
    +	            span.style.lineHeight = "inherit";
    +	            span.style.minWidth = "25px";
    +	            span.style.textAlign = "center";
    +	            div.appendChild(span);
    +	            span.appendChild(document.createTextNode(this._text));
    +				var arrow = this._arrow = document.createElement("div");
    +	            arrow.style.position = "absolute";
    +	            arrow.style.width = "11px";
    +	            arrow.style.height = "10px";
    +	            arrow.style.top = "24px";
    +	            arrow.style.left = "28px";
    +	            arrow.style.overflow = "hidden";
    +	            div.appendChild(arrow);
    +
    +	            mp.getPanes().labelPane.appendChild(div);
    +	            return div;
    +	        }
    +
    +	        CountOverlay.prototype.draw = function(){
    +	            //var map = this._map;
    +	            var pixel = mp.pointToOverlayPixel(this._point);
    +	            this._div.style.left = pixel.x - parseInt(this._arrow.style.left) - 13 + "px";
    +	            this._div.style.top  = pixel.y - 60 + "px";
    +	        }
    +
    +	        mp.addOverlay(new CountOverlay(city, text));	
    +	        marker.disableMassClear();
    +	        mp.addOverlay(marker);
    +		},
    +	    _showCountWin: function (mp, region, text) {
    +	    	var localSearch = new BMap.LocalSearch(mp);
    +	    	localSearch.setSearchCompleteCallback(function (searchResult) {
    +	    	    var poi = searchResult.getPoi(0);
    +	    	    var lng = poi.point.lng;
    +	    	    var lat = poi.point.lat;
    +	    		  
    +					var point = new BMap.Point(lng,lat)
    +			    	
    +			        var that = this
    +			        function CountOverlay(region, text){
    +			            this._region = region;
    +			            this._point = point;
    +			            this._text = text;
    +			        }
    +			        CountOverlay.prototype = new BMap.Overlay();
    +			        CountOverlay.prototype.initialize = function(map){
    +			            this._map = map;
    +			            var div = this._div = document.createElement("div");
    +			            div.setAttribute("id", "regionCount")
    +			            //div.setAttribute("onclick", "showDetail("+lng+","+lat+","+mp+")")
    +			            //div.style.zIndex = BMap.Overlay.getZIndex(this._point.lat);
    +			            div.style.zIndex = 1000;
    +			            div.style.width = "3.5rem";
    +			            div.style.height = "3.5rem";
    +			            div.style.border = "solid 2px #fff";
    +			            div.style.borderRadius = "100%";
    +			            div.style.background = "#f74949";
    +			            div.style.opacity = "0.9";
    +			            div.style.position = "absolute";
    +			            //div.style.left = "40%";
    +			            //div.style.top = "20%"; 
    +			            var p = this._p = document.createElement("p");
    +			            p.style.color = "#fff";
    +			            p.style.fontSize = "0.75rem"
    +			            p.style.textAlign = "center"
    +			            p.style.lineHeight = "1rem";
    +			            div.appendChild(p);
    +			            $(p).append($('<div>'+this._text+'</div>'));
    +		
    +			            div.addEventListener('click', function(e){
    +			                mp.centerAndZoom(city+region, map.getZoom() + 2);
    +			            })
    +			            div.addEventListener("touchstart",function(e){
    +			            	mp.centerAndZoom(city+region, map.getZoom() + 2);
    +				       })
    +			            mp.getPanes().labelPane.appendChild(div);
    +		
    +			            return div;
    +			        }
    +		
    +			        CountOverlay.prototype.draw = function(){
    +			            var map = this._map;
    +			            var pixel = map.pointToOverlayPixel(this._point);
    +			            this._div.style.left = pixel.x - 41 + "px";
    +			            this._div.style.top  = pixel.y - 60 + "px";
    +			        }
    +		
    +			        mp.addOverlay(new CountOverlay(city, text));
    +	    	  });
    +    	   localSearch.search(region);
    +	    }
    +	}
    +    mapInit();
    +    //setTimeout("mapInit()","1000");
    +}
    +function mapInit(){
    +	/*lat = 31.2221;
    +	lng = 121.359204;
    +	city = "上海";
    +	address="广顺小区";
    +	outTime="20分钟";
    +	budget=500;
    +	area="90-110㎡";*/
    +	axios.get("/rest/intelligentHouse/mapDetail", {
    +	    params: {
    +	      city: city,
    +	      lat:lat,
    +	      lng:lng,
    +	      address:address,
    +	      outTime:outTime,
    +	      budget:budget,
    +	      area:area
    +	    }
    +	})
    +	.then(function (response) {
    +		houseListJson = response.data.data.houseListJson;
    +		$("#city").val(response.data.data.city);
    +		$("#address").val(response.data.data.address);
    +		$("#areaTag").val(response.data.data.areaTag);
    +		$("#lng").val(response.data.data.lng);
    +		$("#lat").val(response.data.data.lat);
    +		$("#travelTime").val(response.data.data.travelTime);
    +		$("#minAvgPrice").val(response.data.data.minAvgPrice);
    +		$("#maxAvgPrice").val(response.data.data.maxAvgPrice);
    +		$("#houseNum").text(response.data.data.houseNum);
    +		//mapInit();
    +		mapConfig.init()
    +	    $('#map').on('click', ".positionBox .close", function (e) {
    +	        mapConfig.hidePopWin()
    +	    })
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +//mapInit()
    +$(document).ready(function(){
    +  	
    +});
    +/*var t1; 
    +function mapInit(){
    +	t1 = window.setTimeout(loadMap,1000);	
    +}
    +
    +function loadMap(){
    +	if(lng && lat){
    +		mapConfig.init();
    +		window.clearTimeout(t1);
    +	}
    +}*/
    +		
    +
    +
    +function getAroundList(){
    +	var city = $("#city").val();
    +	var address = $("#address").val();
    +	var areaTag = $("#areaTag").val();
    +	var lng = $("#lng").val();
    +	var lat = $("#lat").val();
    +	var travelTime = $("#travelTime").val();
    +	var minAvgPrice = $("#minAvgPrice").val();
    +	var maxAvgPrice = $("#maxAvgPrice").val();
    +	
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	
    +	mui.openWindow({
    +        url: 'aroundDetail.html', 
    +        id:'aroundDetail.html',
    +        extras:{
    +          city:city,
    +          address:address,
    +          areaTag:areaTag,
    +          lng:lng,
    +          lat:lat,
    +          travelTime:travelTime,
    +          minAvgPrice:minAvgPrice,
    +          maxAvgPrice:maxAvgPrice,
    +          tag:tag,
    +          orderBy:0
    +        }
    +    });
    +	/*var url = "${basePath}/intelligentHouse/aroundDetail?city="+city+"&areaTag="+areaTag+"&lng="+lng+"&lat="+lat+
    +	              "&travelTime="+travelTime+"&minAvgPrice="+minAvgPrice+"&maxAvgPrice="+maxAvgPrice+"&tag="+tag+"&orderBy=0"+"&address="+address;
    +	clicked(url,true);*/
    +}
    +/* 点击图标出现小区信息 */
    +function turnMap(){
    +	var city = $("#city").val();
    +	var address = $("#address").val();
    +	var areaTag = $("#areaTag").val();
    +	var lng = $("#lng").val();
    +	var lat = $("#lat").val();
    +	var travelTime = $("#travelTime").val();
    +	var minAvgPrice = $("#minAvgPrice").val();
    +	var maxAvgPrice = $("#maxAvgPrice").val();
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	axios.get("/rest/intelligentHouse/mapDetail2", {
    +	    params: {
    +	      city: city,
    +	      areaTag:areaTag,
    +	      lat:lat,
    +	      lng:lng,
    +	      address:address,
    +	      travelTime:travelTime,
    +	      minAvgPrice:minAvgPrice,
    +	      maxAvgPrice:maxAvgPrice,
    +	      tag:tag
    +	    }
    +	})
    +	.then(function (response) {
    +		houseListJson = response.data.data.houseListJson;
    +		$("#houseNum").text(response.data.data.houseNum);
    +		mapConfig.init();
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +	
    +	/*window.location.href="../intelligentHouse/mapDetail2?city="+city+"&areaTag="+areaTag+"&lng="+lng+"&lat="+lat+
    +	              "&travelTime="+travelTime+"&minAvgPrice="+minAvgPrice+"&maxAvgPrice="+maxAvgPrice+"&tag="+tag+"&address="+address;*/
    +}
    +
    +/* 小区标签筛选 */
    +$(".filter_btn").on("click", function () {
    +	$(".selectContent").show();
    +	$(".mask").show();
    +});
    +
    +$(".reset_btn").on("click", function () {
    +	$(".button").removeClass("active");
    +});
    +
    +$(".confirm_btn,.mask").on("click", function () {
    +	$(".selectContent").hide();
    +	$(".mask").hide();
    +	turnMap();
    +});
    +
    +$("body").delegate(".button","click",function(){
    +	if($(this).hasClass("active")){
    +		$(this).removeClass("active");
    +	}else{
    +		$(this).addClass("active");
    +	}
    +});
    +
    +/* 地图 */
    +/*$(document).ready(function(){
    +	// 百度地图API功能
    +	var map0 = new BMap.Map("map");
    +	var point0 =  new BMap.Point(lng, lat);
    +	map0.centerAndZoom(point0, 17);
    +	map0.enableScrollWheelZoom(true);  // 开启鼠标滚轮缩放
    +});*/
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/loan/loanInfo.html b/fangija-zsyf/views/loan/loanInfo.html
    new file mode 100644
    index 0000000..500cae2
    --- /dev/null
    +++ b/fangija-zsyf/views/loan/loanInfo.html
    @@ -0,0 +1,1108 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>贷款申请</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/city.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	#input_phoneNumber,#input_codeSms{width:40%;left:88px;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">贷款申请</h1>
    +		</header>
    +        <div class="content">
    +         	<div class="list-block media-list">
    +                <ul>
    +                	<li>
    +                       	<a class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">城<small class="spacing">&nbsp;</small>市</div>
    +                                    <div class="item-after">
    +                                    	<input type="text" id="input_city" class="textAlignLeft open-about01" placeholder="请选择城市" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">手机号码</div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码">
    +                                    	<label>
    +                                            <span id="sendPhoneCode" class="sendCode theme" onclick="sendLoanCode()">获取验证码</span>
    +                                            <span id="getTime" class="waiting theme dn">60&nbsp;s</span>
    +                                        </label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">验<small class="spacing01">&nbsp;</small>证<small class="spacing01">&nbsp;</small>码</div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_codeSms" class="textAlignLeft" placeholder="请输入验证码">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                       	<a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">申请金额</div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_price" class="textAlignLeft" placeholder="请输入申请金额">
    +                                    	<label>万元</label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                       	<a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">贷款类型</div>
    +                                    <div class="item-after">
    +                                    	<div class="textAlignLeft" style="overflow:hidden;">
    +                                            <label class="label-checkbox item-content checkbox">
    +                                                <div class="item-media">
    +                                                    <i class="icon icon-form-checkbox" value="1"></i>
    +                                                    <label>房抵贷</label>
    +                                                </div>
    +                                            </label>
    +                                            <label class="label-checkbox item-content checkbox" style="margin-left:0.8rem;">
    +                                                <div class="item-media">
    +                                                    <i class="icon icon-form-checkbox" value="0"></i>
    +                                                    <label>信用贷</label>
    +                                                </div>
    +                                            </label>
    +                                        </div>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="content-block resultBox">
    +               	<span><i>*</i>具体贷款金额以实际签约为准</span>
    +                <p><a href="#" class="button button-big button-fill theme" id="next_btn">提交申请</a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<!-- About Popup -->
    +<div class="popup popup-about popup-about01">
    +    <div class="bar">
    +        <div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="citySearchInp" placeholder="请输入城市名称进行搜索">
    +            </div>
    +        </div>
    +        <div class="buttons-tab theme">
    +			<a href="#tabCity1" class="tab-link button active">按拼音字母</a>
    +			<a href="#tabCity2" class="tab-link button">按城市等级</a>
    +		</div>
    +    </div>
    +    <div class="content-block content-block01 content dn" style="top:66px;z-index:100;" id="selectContainer">
    +		<div class="container" style="top:0;">
    +			<div class="city" style="width:100%;">
    +				<div class="city-list"></div>
    +			</div>
    +		</div>	
    +	</div>
    +	<div class="tabs">
    +		<div id="tabCity1" class="tab active">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer" class="container">
    +					<div class="cityGPS">
    +						<div class="city-list01 close-popup">
    +							<p class="nowCity">上海</p>
    +							<small>当前城市</small>
    +						</div>
    +					</div>
    +					<div class="cityHot">
    +						<div class="city-list01">
    +							<span class="city-letter" id="Hot">热门城市</span>
    +							<div>
    +								<p class="close-popup collectionCity">北京<i class="icon-collection03"></i></p>
    +								<p class="close-popup collectionCity active">上海<i class="icon-collection03"></i></p>
    +								<p class="close-popup">广州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">深圳</p>
    +								<p class="close-popup">成都</p>
    +								<p class="close-popup">杭州</p>
    +							</div>
    +							<div>
    +								<p class="close-popup">南京</p>
    +								<p class="close-popup">重庆</p>
    +								<p class="close-popup">天津</p>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="city">
    +						<div class="city-list"><span class="city-letter" id="A1">A</span>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup collectionCity">阿克苏<i class="icon-collection03"></i></p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">安顺</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="B1">B</span>
    +							<p class="close-popup">百色</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">蚌埠</p>                        
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">北京</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">亳州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="C1">C</span>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="D1">D</span>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">丹东</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">东营</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="E1">E</span>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">鄂州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="F1">F</span>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">福州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="G1">G</span>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">广州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="H1">H</span>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">杭州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="J1">J</span>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">鸡西</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="K1">K</span>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">昆明</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="L1">L</span>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">拉萨</p>                        
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">泸州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="M1">M</span>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">牡丹江</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="N1">N</span>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">怒江州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="P1">P</span>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">莆田</p>
    +							<p class="close-popup">濮阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Q1">Q</span>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">泉州</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">衢州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="R1">R</span>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">日照</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="S1">S</span>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">上海</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">深圳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="T1">T</span>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">台州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="W1">W</span>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">无锡</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">温州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="X1">X</span>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">信阳</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Y1">Y</span>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">扬州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Z1">Z</span>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">郑州</p>
    +						</div>
    +					</div>
    +					<div class="letter">
    +						<ul>
    +							<li><a href="javascript:;">热门</a></li>
    +							<li><a href="javascript:;">A</a></li>
    +							<li><a href="javascript:;">B</a></li>
    +							<li><a href="javascript:;">C</a></li>
    +							<li><a href="javascript:;">D</a></li>
    +							<li><a href="javascript:;">E</a></li>
    +							<li><a href="javascript:;">F</a></li>
    +							<li><a href="javascript:;">G</a></li>
    +							<li><a href="javascript:;">H</a></li>
    +							<li><a href="javascript:;">J</a></li>
    +							<li><a href="javascript:;">K</a></li>
    +							<li><a href="javascript:;">L</a></li>
    +							<li><a href="javascript:;">M</a></li>
    +							<li><a href="javascript:;">N</a></li>
    +							<li><a href="javascript:;">P</a></li>
    +							<li><a href="javascript:;">Q</a></li>
    +							<li><a href="javascript:;">R</a></li>
    +							<li><a href="javascript:;">S</a></li>
    +							<li><a href="javascript:;">T</a></li>
    +							<li><a href="javascript:;">W</a></li>
    +							<li><a href="javascript:;">X</a></li>
    +							<li><a href="javascript:;">Y</a></li>
    +							<li><a href="javascript:;">Z</a></li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +		<div id="tabCity2" class="tab">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer01" class="container">
    +					<div class="city" style="width:100%;">
    +						<div class="city-list">
    +							<span class="city-letter" id="City1">一线城市</span>
    +							<div>
    +								<p class="close-popup collectionCity">北京<i class="icon-collection03"></i></p>
    +								<p class="close-popup collectionCity active">上海<i class="icon-collection03"></i></p>
    +								<p class="close-popup">广州</p>
    +								<p class="close-popup">深圳</p>
    +							</div>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City1a">新一线城市</span>
    +							<p class="close-popup">杭州</p>
    +							<p class="close-popup">南京</p>
    +							<p class="close-popup">天津</p>
    +							<p class="close-popup">成都</p>
    +							<p class="close-popup">西安</p>
    +							<p class="close-popup">沈阳</p>
    +							<p class="close-popup">重庆</p>
    +							<p class="close-popup">苏州</p>
    +							<p class="close-popup">武汉</p>
    +							<p class="close-popup">长沙</p>
    +							<p class="close-popup">青岛</p>
    +							<p class="close-popup">厦门</p>
    +							<p class="close-popup">宁波</p>
    +							<p class="close-popup">大连</p>
    +							<p class="close-popup">无锡</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City2">二线城市</span>
    +							<p class="close-popup">汕头</p>
    +							<p class="close-popup">扬州</p>
    +							<p class="close-popup">石家庄</p>
    +							<p class="close-popup">福州</p>
    +							<p class="close-popup">济南</p>
    +							<p class="close-popup">太原</p>
    +							<p class="close-popup">温州</p>
    +							<p class="close-popup">佛山</p>
    +							<p class="close-popup">郑州</p>
    +							<p class="close-popup">东莞</p>
    +							<p class="close-popup">合肥</p>
    +							<p class="close-popup">贵阳</p>
    +							<p class="close-popup">昆明</p>
    +							<p class="close-popup">南昌</p>
    +							<p class="close-popup">常州</p>
    +							<p class="close-popup">嘉兴</p>
    +							<p class="close-popup">徐州</p>
    +							<p class="close-popup">海口</p>
    +							<p class="close-popup">珠海</p>
    +							<p class="close-popup">哈尔滨</p>
    +							<p class="close-popup">长春</p>
    +							<p class="close-popup">烟台</p>
    +							<p class="close-popup">洛阳</p>
    +							<p class="close-popup">南宁</p>
    +							<p class="close-popup">惠州</p>
    +							<p class="close-popup">潍坊</p>
    +							<p class="close-popup">南通</p>
    +							<p class="close-popup">金华</p>
    +							<p class="close-popup">乌鲁木齐</p>
    +							<p class="close-popup">泉州</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City3">三线城市</span>
    +							<p class="close-popup">安阳</p>
    +							<p class="close-popup">衡阳</p>
    +							<p class="close-popup">揭阳</p>
    +							<p class="close-popup">梅州</p>
    +							<p class="close-popup">舟山</p>
    +							<p class="close-popup">遵义</p>
    +							<p class="close-popup">岳阳</p>
    +							<p class="close-popup">齐齐哈尔</p>
    +							<p class="close-popup">淮安</p>
    +							<p class="close-popup">赤峰</p>
    +							<p class="close-popup">包头</p>
    +							<p class="close-popup">常德</p>
    +							<p class="close-popup">临沂</p>
    +							<p class="close-popup">榆林</p>
    +							<p class="close-popup">鄂尔多斯</p>
    +							<p class="close-popup">南充</p>
    +							<p class="close-popup">泸州</p>
    +							<p class="close-popup">呼伦贝尔</p>
    +							<p class="close-popup">抚顺</p>
    +							<p class="close-popup">张家口</p>
    +							<p class="close-popup">邢台</p>
    +							<p class="close-popup">济宁</p>
    +							<p class="close-popup">龙岩</p>
    +							<p class="close-popup">南平</p>
    +							<p class="close-popup">怀化</p>
    +							<p class="close-popup">郴州</p>
    +							<p class="close-popup">宝鸡</p>
    +							<p class="close-popup">运城</p>
    +							<p class="close-popup">蚌埠</p>
    +							<p class="close-popup">漳州</p>
    +							<p class="close-popup">上饶</p>
    +							<p class="close-popup">宜春</p>
    +							<p class="close-popup">德阳</p>
    +							<p class="close-popup">荆州</p>
    +							<p class="close-popup">三亚</p>
    +							<p class="close-popup">唐山</p>
    +							<p class="close-popup">中山</p>
    +							<p class="close-popup">威海</p>
    +							<p class="close-popup">银川</p>
    +							<p class="close-popup">呼和浩特</p>
    +							<p class="close-popup">湛江</p>
    +							<p class="close-popup">咸阳</p>
    +							<p class="close-popup">吉林</p>
    +							<p class="close-popup">镇江</p>
    +							<p class="close-popup">芜湖</p>
    +							<p class="close-popup">桂林</p>
    +							<p class="close-popup">邯郸</p>
    +							<p class="close-popup">廊坊</p>
    +							<p class="close-popup">绍兴</p>
    +							<p class="close-popup">西宁</p>
    +							<p class="close-popup">兰州</p>
    +							<p class="close-popup">绵阳</p>
    +							<p class="close-popup">株洲</p>
    +							<p class="close-popup">宜宾</p>
    +							<p class="close-popup">泰州</p>
    +							<p class="close-popup">台州</p>
    +							<p class="close-popup">保定</p>
    +							<p class="close-popup">秦皇岛</p>
    +							<p class="close-popup">湖州</p>
    +							<p class="close-popup">衢州</p>
    +							<p class="close-popup">连云港</p>
    +							<p class="close-popup">鞍山</p>
    +							<p class="close-popup">淄博</p>
    +							<p class="close-popup">盐城</p>
    +							<p class="close-popup">宜昌</p>
    +							<p class="close-popup">赣州</p>
    +							<p class="close-popup">柳州</p>
    +							<p class="close-popup">大庆</p>
    +							<p class="close-popup">丽江</p>
    +							<p class="close-popup">莆田</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City4">四线城市</span>
    +							<p class="close-popup">肇庆</p>
    +							<p class="close-popup">曲靖</p>
    +							<p class="close-popup">新乡</p>
    +							<p class="close-popup">营口</p>
    +							<p class="close-popup">潮州</p>
    +							<p class="close-popup">河源</p>
    +							<p class="close-popup">黄石</p>
    +							<p class="close-popup">茂名</p>
    +							<p class="close-popup">牡丹江</p>
    +							<p class="close-popup">盘锦</p>
    +							<p class="close-popup">平顶山</p>
    +							<p class="close-popup">韶关</p>
    +							<p class="close-popup">阳江</p>
    +							<p class="close-popup">本溪</p>
    +							<p class="close-popup">玉溪</p>
    +							<p class="close-popup">许昌</p>
    +							<p class="close-popup">铁岭</p>
    +							<p class="close-popup">泰安</p>
    +							<p class="close-popup">四平</p>
    +							<p class="close-popup">黄冈</p>
    +							<p class="close-popup">淮南</p>
    +							<p class="close-popup">广元</p>
    +							<p class="close-popup">阜阳</p>
    +							<p class="close-popup">丽水</p>
    +							<p class="close-popup">乐山</p>
    +							<p class="close-popup">菏泽</p>
    +							<p class="close-popup">锦州</p>
    +							<p class="close-popup">汉中</p>
    +							<p class="close-popup">佳木斯</p>
    +							<p class="close-popup">黄山</p>
    +							<p class="close-popup">白山</p>
    +							<p class="close-popup">绥化</p>
    +							<p class="close-popup">钦州</p>
    +							<p class="close-popup">南阳</p>
    +							<p class="close-popup">临汾</p>
    +							<p class="close-popup">梧州</p>
    +							<p class="close-popup">白色</p>
    +							<p class="close-popup">朝阳</p>
    +							<p class="close-popup">沧州</p>
    +							<p class="close-popup">东营</p>
    +							<p class="close-popup">德州</p>
    +							<p class="close-popup">安庆</p>
    +							<p class="close-popup">六安</p>
    +							<p class="close-popup">宁德</p>
    +							<p class="close-popup">拉萨</p>
    +							<p class="close-popup">邵阳</p>
    +							<p class="close-popup">开封</p>
    +							<p class="close-popup">信阳</p>
    +							<p class="close-popup">驻马店</p>
    +							<p class="close-popup">通化</p>
    +							<p class="close-popup">葫芦岛</p>
    +							<p class="close-popup">衡水</p>
    +							<p class="close-popup">日照</p>
    +							<p class="close-popup">聊城</p>
    +							<p class="close-popup">三明</p>
    +							<p class="close-popup">池州</p>
    +							<p class="close-popup">达州</p>
    +							<p class="close-popup">十堰</p>
    +							<p class="close-popup">晋中</p>
    +							<p class="close-popup">益阳</p>
    +							<p class="close-popup">辽阳</p>
    +							<p class="close-popup">酒泉</p>
    +							<p class="close-popup">承德</p>
    +							<p class="close-popup">孝感</p>
    +							<p class="close-popup">枣庄</p>
    +							<p class="close-popup">渭南</p>
    +							<p class="close-popup">滁州</p>
    +							<p class="close-popup">铜陵</p>
    +							<p class="close-popup">永州</p>
    +							<p class="close-popup">娄底</p>
    +							<p class="close-popup">咸宁</p>
    +							<p class="close-popup">商丘</p>
    +							<p class="close-popup">吕梁</p>
    +							<p class="close-popup">萍乡</p>
    +							<p class="close-popup">抚州</p>
    +							<p class="close-popup">通辽</p>
    +							<p class="close-popup">大同</p>
    +							<p class="close-popup">襄阳</p>
    +							<p class="close-popup">湘潭</p>
    +							<p class="close-popup">清远</p>
    +							<p class="close-popup">宿迁</p>
    +							<p class="close-popup">马鞍山</p>
    +							<p class="close-popup">江门</p>
    +							<p class="close-popup">延安</p>
    +							<p class="close-popup">北海</p>
    +							<p class="close-popup">九江</p>
    +							<p class="close-popup">大理</p>
    +							<p class="close-popup">丹东</p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City5">五线城市</span>
    +							<p class="close-popup">铁门关</p>
    +							<p class="close-popup">可克达拉</p>
    +							<p class="close-popup">焦作</p>
    +							<p class="close-popup">云浮</p>
    +							<p class="close-popup">中卫</p>
    +							<p class="close-popup">武威</p>
    +							<p class="close-popup">天水</p>
    +							<p class="close-popup">定西</p>
    +							<p class="close-popup">辽源</p>
    +							<p class="close-popup">安顺</p>
    +							<p class="close-popup">安康</p>
    +							<p class="close-popup">鸡西</p>
    +							<p class="close-popup">七台河</p>
    +							<p class="close-popup">白城</p>
    +							<p class="close-popup">亳州</p>
    +							<p class="close-popup">临沧</p>
    +							<p class="close-popup">资阳</p>
    +							<p class="close-popup">乌海</p>
    +							<p class="close-popup">克拉玛依</p>
    +							<p class="close-popup">巴彦淖尔</p>
    +							<p class="close-popup">荆门</p>
    +							<p class="close-popup">来宾</p>
    +							<p class="close-popup">固原</p>
    +							<p class="close-popup">防城港</p>
    +							<p class="close-popup">朔州</p>
    +							<p class="close-popup">铜川</p>
    +							<p class="close-popup">双鸭山</p>
    +							<p class="close-popup">平凉</p>
    +							<p class="close-popup">崇左</p>
    +							<p class="close-popup">白银</p>
    +							<p class="close-popup">河池</p>
    +							<p class="close-popup">吉安</p>
    +							<p class="close-popup">景德镇</p>
    +							<p class="close-popup">鹤岗</p>
    +							<p class="close-popup">海东</p>
    +							<p class="close-popup">黑河</p>
    +							<p class="close-popup">阜新</p>
    +							<p class="close-popup">石嘴山</p>
    +							<p class="close-popup">滨州</p>
    +							<p class="close-popup">淮北</p>
    +							<p class="close-popup">宣城</p>
    +							<p class="close-popup">宿州</p>
    +							<p class="close-popup">保山</p>
    +							<p class="close-popup">铜仁</p>
    +							<p class="close-popup">乌兰察布</p>
    +							<p class="close-popup">内江</p>
    +							<p class="close-popup">贺州</p>
    +							<p class="close-popup">巴中</p>
    +							<p class="close-popup">贵港</p>
    +							<p class="close-popup">昭通</p>
    +							<p class="close-popup">鄂州</p>
    +							<p class="close-popup">伊春</p>
    +							<p class="close-popup">毕节</p>
    +							<p class="close-popup">遂宁</p>
    +							<p class="close-popup">漯河</p>
    +							<p class="close-popup">松原</p>
    +							<p class="close-popup">眉山</p>
    +							<p class="close-popup">鹤壁</p>
    +							<p class="close-popup">忻州</p>
    +							<p class="close-popup">张掖</p>
    +							<p class="close-popup">随州</p>
    +							<p class="close-popup">鹰潭</p>
    +							<p class="close-popup">新余</p>
    +							<p class="close-popup">周口</p>
    +							<p class="close-popup">濮阳</p>
    +							<p class="close-popup">莱芜</p>
    +							<p class="close-popup">阳泉</p>
    +							<p class="close-popup">嘉峪关</p>
    +							<p class="close-popup">庆阳</p>
    +							<p class="close-popup">汕尾</p>
    +							<p class="close-popup">普洱</p>
    +							<p class="close-popup">广安</p>
    +							<p class="close-popup">雅安</p>
    +							<p class="close-popup">三门峡</p>
    +							<p class="close-popup">长治</p>
    +							<p class="close-popup">商洛</p>
    +							<p class="close-popup">金昌</p>
    +							<p class="close-popup">陇南</p>
    +							<p class="close-popup">吴忠</p>
    +							<p class="close-popup">晋城</p>
    +							<p class="close-popup collectionCity">阿克苏<i class="icon-collection03"></i></p>
    +							<p class="close-popup">喀什</p>
    +							<p class="close-popup">昌吉</p>
    +							<p class="close-popup">楚雄</p>
    +							<p class="close-popup">大兴安岭</p>
    +							<p class="close-popup">自贡</p>
    +							<p class="close-popup">攀枝花</p>
    +							<p class="close-popup">张家界</p>
    +							<p class="close-popup">六盘水</p>
    +							<p class="close-popup">玉林</p>
    +							<p class="close-popup">三沙</p>
    +							<p class="close-popup">吐鲁番</p>
    +							<p class="close-popup">和田</p>
    +							<p class="close-popup">阿勒泰</p>
    +							<p class="close-popup">克孜勒苏</p>
    +							<p class="close-popup">塔城</p>
    +							<p class="close-popup">博尔塔拉</p>
    +							<p class="close-popup">哈密</p>
    +							<p class="close-popup">昌都</p>
    +							<p class="close-popup">山南</p>
    +							<p class="close-popup">日喀则</p>
    +							<p class="close-popup">林芝</p>
    +							<p class="close-popup">阿拉善盟</p>
    +							<p class="close-popup">甘南</p>
    +							<p class="close-popup">兴安盟</p>
    +							<p class="close-popup">巴音郭楞</p>
    +							<p class="close-popup">锡林郭勒盟</p>
    +							<p class="close-popup">伊犁</p>
    +							<p class="close-popup">黔西南</p>
    +							<p class="close-popup">海北州</p>
    +							<p class="close-popup">湘西</p>
    +							<p class="close-popup">黄南州</p>
    +							<p class="close-popup">玉树州</p>
    +							<p class="close-popup">临夏</p>
    +							<p class="close-popup">果洛州</p>
    +							<p class="close-popup">海南州</p>
    +							<p class="close-popup">阿坝州</p>
    +							<p class="close-popup">甘孜州</p>
    +							<p class="close-popup">黔东南</p>
    +							<p class="close-popup">海西州</p>
    +							<p class="close-popup">黔南</p>
    +							<p class="close-popup">迪庆州</p>
    +							<p class="close-popup">红河</p>
    +							<p class="close-popup">怒江州</p>
    +							<p class="close-popup">阿拉尔</p>
    +							<p class="close-popup">图木舒克</p>
    +							<p class="close-popup">恩施</p>
    +							<p class="close-popup">石河子</p>
    +							<p class="close-popup">昌江</p>
    +							<p class="close-popup">文山州</p>
    +							<p class="close-popup">凉山州</p>
    +							<p class="close-popup">西双版纳州</p>
    +							<p class="close-popup">乐东</p>
    +							<p class="close-popup">五家渠</p>
    +							<p class="close-popup">德宏州</p>
    +							<p class="close-popup">琼海</p>
    +							<p class="close-popup">保亭</p>
    +							<p class="close-popup">琼中</p>
    +							<p class="close-popup">陵水</p>
    +							<p class="close-popup">济源</p>
    +							<p class="close-popup">神农架</p>
    +							<p class="close-popup">屯昌</p>
    +							<p class="close-popup">临高</p>
    +							<p class="close-popup">潜江</p>
    +							<p class="close-popup">五指山</p>
    +							<p class="close-popup">白沙</p>
    +							<p class="close-popup">儋州</p>
    +							<p class="close-popup">澄迈</p>
    +							<p class="close-popup">万宁</p>
    +							<p class="close-popup">仙桃</p>
    +							<p class="close-popup">定安</p>
    +							<p class="close-popup">东方</p>
    +							<p class="close-popup">天门</p>
    +							<p class="close-popup">文昌</p>
    +							<p class="close-popup">延边</p>
    +							<p class="close-popup">那曲</p>
    +							<p class="close-popup">阿里</p>
    +							<p class="close-popup">北屯</p>
    +							<p class="close-popup">双河</p>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script type="text/javascript" src="../../js/loan/loanInfo.js" ></script>
    +<script>
    +/* 弹出城市选择页面 */
    +$(document).on("click",".open-about01", function () {
    +	$.popup(".popup-about01");
    +});
    +
    +/* 定位城市 */
    +$("body").on("click", ".letter a", function () {
    +	var s = $(this).html();
    +	if(s == "热门"){
    +    	$(".popup-about01 .content").scrollTop(0);
    +	}else{
    +	    $(".popup-about01 .content").scrollTop(0);
    +	    $(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
    +	}
    +});
    +$("#tabCity1 .content-block01").scroll(function () {
    +	$("#tabCity1 .content-block01 .letter").css("position","absolute");
    +	$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
    +});
    +
    +/* 获取城市 */
    +$(".popup-about01 .cityGPS").on("click", function () {
    +	$("#input_city").val($(this).find("p").text());
    +	$(".cityChoice a").text($(this).find("p").text());
    +	$(".popup-about01 p").removeClass("active");
    +});
    +$(".popup-about01 p").on("click", function () {
    +	$("#input_city").val($(this).text());
    +	$(".cityChoice a").text($(this).text());
    +	$(".popup-about01 p").removeClass("active");
    +	$(this).addClass("active");
    +});
    +
    +/* 选择-贷款类型 */
    +$(".checkbox").on("click", function () {
    +	$(".checkbox i").removeClass("current");
    +	$(this).find("i").addClass("current");
    +});
    +
    +function req(city){
    +	//city=city.replace("<i></i>","")
    +    $("#input_city").val(city);
    +	//potenialIndex(city);
    +}
    +//城市选择
    +//$("#cityCopy").html($('.tabs').html())
    +var getAllCitys = function() {
    +    var list = new Array();
    +    $("#tabCity1 #cityContainer .city p").each(function(i, o) {
    +        list.push($(o).text());
    +    });
    +    return list;
    +}
    +
    +var search = function(){
    +    var city = $("#citySearchInp").val();
    +    $("#selectContainer .city-list").empty();
    +    $("#selectContainer").show();
    +    var cityList = getAllCitys();
    +    for(var i=0;i<cityList.length;i++) {
    +        if(cityList[i].indexOf(city) != -1){
    +            $("#selectContainer .city-list").append("<p class='close-popup' onclick=\"req('"+cityList[i]+"')\">"+cityList[i]+"</p>");
    +        }
    +    }
    +    if(city == ""){
    +    	$("#selectContainer").hide();
    +    }
    +}
    +
    +$("#citySearchInp").bind('input propertychange keyup', function() {
    +    search();
    +});
    +
    +$("#citySearchInp").bind('keyup', function() {
    +    search();
    +});
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/loan/loanSuccess.html b/fangija-zsyf/views/loan/loanSuccess.html
    new file mode 100644
    index 0000000..7e7d1c8
    --- /dev/null
    +++ b/fangija-zsyf/views/loan/loanSuccess.html
    @@ -0,0 +1,68 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>贷款申请成功</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.content{background:url(../../images/bottomBg01.png) no-repeat center bottom #fff;background-size:120%;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">贷款申请</h1>
    +		</header>
    +        <div class="content">
    +         	<div class="resultBox">
    +         		<img src="../../images/loan-img02.png">
    +				<p style="font-size:1rem;margin-bottom:2rem;">提交成功</p>
    +				<span>我们会在1个工作日内联系您<br>请注意接听来电</span>
    +         	</div>
    +            <div class="content-block">
    +                <p><a href="#" class="button button-big button-fill theme" id="return_btn" onclick="back();">返回</a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script type="text/javascript" src="../../js/loan/loanInfo.js" ></script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/news/newsCollectList.html b/fangija-zsyf/views/news/newsCollectList.html
    new file mode 100644
    index 0000000..2c6cf0d
    --- /dev/null
    +++ b/fangija-zsyf/views/news/newsCollectList.html
    @@ -0,0 +1,316 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>我的咨询收藏</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.bar{background:#fff;}
    +	.selectBox{border-top:solid 0.5rem #f3f3f3;border-bottom:solid 1px #e5e5e5;}
    +	.selectContent .topic{border-bottom:solid 1px #e5e5e5;}
    +	.selectContent .list-block .item-title{font-size:0.7rem;}
    +	.buttons-row.theme .button{border:solid 1px #D7D7D7;color:#333;}
    +	.buttons-row.theme .button.active{background:none;color:#F18D00;}
    +	.content-block01 .row{margin-left:0;}
    +	.content-block01 .row .col-50 .button.button-fill{height:2rem;line-height:2rem;}
    +	.content-block01 .row .col-50 .button.button-fill.reset_btn{background:#fff;border:none;border-top:solid 1px #e5e5e5;}
    +	.content-block01 .row .col-50 .button.button-fill.confirm_btn{background:#F18D00;border:solid 1px #F18D00;}
    +	.info-container input{float:none;width:100%;}
    +	.picker-item{padding:0 5rem;font-size:18px;}
    +	.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
    +	.loadingBg .infinite-scroll-preloader{margin-top:60%;}
    +</style>
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">我的收藏</h1>
    +		</header>
    +        <div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
    +	     	<div class="list-block">
    +                <ul class="list-container" >
    +                	<!-- 动态拼接内容 -->
    +                </ul>
    +			</div>
    +			<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
    +     		<div class="infinite-scroll-preloader">
    +                <div class="preloader"></div>
    +            </div>
    +    	</div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +// 加载flag
    +var loading = false;
    +
    +//分页部分参数定义
    +var page;
    +var pageSize;
    +var totalPages;
    +
    +// 上次加载的序号
    +var lastIndex;
    +// 每次加载添加多少条目
    +var itemsPerLoad;
    +// 最多可加载的条目
    +var maxItems = 100;
    +
    +//初始化init
    +$.init();
    +
    +// 注册'infinite'事件处理函数
    +$(document).on('infinite', '.infinite-scroll-bottom', function() {
    +	// 如果正在加载,则退出
    +	if(loading) return;
    +	// 设置flag
    +	loading = true;
    +	// 模拟1s的加载过程
    +	setTimeout(function() {
    +		// 重置加载flag
    +		loading = false;
    +		//如果当前页大于等于总页数
    +		if(page >= totalPages) {
    +			// 加载完毕,则注销无限加载事件,以防不必要的加载
    +			$.detachInfiniteScroll($('.infinite-scroll'));
    +			// 删除加载提示符
    +			$('.infinite-scroll-preloader').remove();
    +			return;
    +		}
    +		//控制查询下一页的数据
    +		page = page + 1;
    +		selectNewsCollectList();
    +		//容器发生改变,如果是js滚动,需要刷新滚动
    +		//$.refreshScroller();
    +	}, 1000);
    +});
    +
    +//我的收藏查询请求
    +function selectNewsCollectList(){
    +	axios.get(BASE_PATH + "/rest/news/collectList", 
    +		{
    +			params: {
    +		       page: page,
    +		       pageSize: pageSize
    +		    }
    +		}).then(function (response) {
    +			var resultList = response.data.data.list;
    +			if(resultList != null && resultList.length == 0){
    +				// 删除加载提示符
    +       			$('.infinite-scroll-preloader').remove();
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            $.detachInfiniteScroll($('.infinite-scroll'));
    +	            return;
    +			}
    +			if(response.data.data.currentPage == response.data.data.totalPages){
    +				//如果此次查询刚好是page = totalPages
    +				// 删除加载提示符
    +       			$('.infinite-scroll-preloader').remove();
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            $.detachInfiniteScroll($('.infinite-scroll'));
    +			}
    +			//封装list数据
    +			var dataObj = [];
    +			for(var i in resultList){
    +				dataObj.push(resultList[i])
    +			}
    +			// 上次加载的序号
    +			lastIndex = $('.cardInfo').length;
    +			//每次加载添加多少条目
    +			itemsPerLoad = resultList.length;
    +			//请求后对page进行赋值
    +			page = response.data.data.currentPage;
    +			pageSize = response.data.data.limit;
    +			totalPages = response.data.data.totalPages;
    +	    	addItems(itemsPerLoad, lastIndex, dataObj);
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +//界面加载
    +$(document).ready(function () {
    +	selectNewsCollectList();
    +});
    +
    +function openUrl(url){
    +	clicked(url, true);
    +}
    +
    +function openNewsView(newId) {
    +	clicked('/views/news/newsDetail.html', true, false, {}, {newsId:newId});
    +}
    +
    +/* 分页构造数据 */
    +function addItems(itemsPerLoad, lastIndex, dataObj) {
    +	var html = '';
    +	for(var i in dataObj) {
    +		if(dataObj[i].type == "专题") {
    +			html += '<div class="card cardInfo cardInfo01" onclick="openNewsView(\'' + dataObj[i].id + '\')">' +
    +				'<div class="card-header">' + dataObj[i].title + '</div>' +
    +				'<img src=' + dataObj[i].coverImg + '>' +
    +				'<div class="card-footer">' +
    +				'<span>' +
    +				'<i class="icon icon-eye-orange"></i><label id="visitCount_' + dataObj[i].id + '">' + dataObj[i].visitCount + '人</label>' +
    +				'<i class="icon icon-comments-orange"></i><label id="visitComment_' + dataObj[i].id + '">' + dataObj[i].recommendCommentCount + '条</label>' +
    +				'</span>' +
    +				'</div>' +
    +				'</div>';
    +		}
    +		if(dataObj[i].type == "推荐小区") {
    +			html += '<div class="card cardInfo cardInfo02" onclick="openUrl(\'' + BASE_PATH + '/district/details?city=' + dataObj[i].recommendDistrictCity + '&region=' + dataObj[i].recommendDistrictRegion + '&name=' + dataObj[i].recommendDistrictName + '\')">' +
    +				'<div class="card-content">' +
    +				'<div class="list-block media-list"><ul><li class="item-content">' +
    +				'<div class="item-media"><img src=' + dataObj[i].coverImg + '></div>' +
    +				'<div class="item-inner" style="padding-right:0;">' +
    +				'<div class="item-title-row"><div class="item-title">' + dataObj[i].recommendDistrictName + '</div>' +
    +				'<div class="item-after"><span>' + dataObj[i].recommendDistrictCity + '-' + dataObj[i].recommendDistrictRegion +
    +				'</span></div></div>';
    +			if(dataObj[i].recommendDistrictTags != "" && dataObj[i].recommendDistrictTags != null) {
    +				var arry = dataObj[i].recommendDistrictTags.split("_");
    +				html += '<div class="item-subtitle"><span class="tag">';
    +				for(var j in arry) {
    +					html += '<small>' + arry[j] + '</small>';
    +				}
    +				html += '</span></div>';
    +			}
    +			html += '<div class="item-subtitle"><span class="star">推荐指数:<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i></span></div>';
    +			if(dataObj[i].recommendDistrictPrice) {
    +				html += '<div class="item-subtitle"><em><strong>' + dataObj[i].recommendDistrictPrice + '</strong>元/㎡</em></div>';
    +			}
    +			html += '</div></li></ul></div></div></div>';
    +		}
    +		if(dataObj[i].type == "活动") {
    +			html += '<div class="card cardInfo cardInfo01 cardInfo01b"  onclick="openNewsView(\'' + dataObj[i].id + '\')">' +
    +				'<div class="card-header">' + dataObj[i].title + '</div>' +
    +				'<img src=' + dataObj[i].coverImg + '>' +
    +				'<div class="card-footer"><span>' + dataObj[i].introduction + '</span></div></div>';
    +		}
    +		if(dataObj[i].type == "推荐城市") {
    +			html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openUrl(\'' + BASE_PATH + '/quotations/building?cityName=' + dataObj[i].recommendCity + '\')">' +
    +				'<div class="card-header">推荐城市——' + dataObj[i].recommendCity + '</div>';
    +			if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null) {
    +				var arry = dataObj[i].recommendCityTags.split("_");
    +				html += '<div class="card-content"><div class="card-content-inner"><span class="tag">';
    +				for(var j in arry) {
    +					html += '<small>' + arry[j] + '</small>';
    +				}
    +				html += '</span></div></div>';
    +			}
    +			html += '<img src=' + dataObj[i].coverImg + '>' +
    +				'<div class="card-footer"><span>均价:<em>' + dataObj[i].recommendCityAvgPrice + '元/㎡</em></span>' +
    +				'<span class="star">潜力指数:';
    +			if(dataObj[i].recommendCityIndex < 4) {
    +				html += '<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 5 && dataObj[i].recommendCityIndex < 15) {
    +				html += '<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 15 && dataObj[i].recommendCityIndex < 25) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 25 && dataObj[i].recommendCityIndex < 35) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 35 && dataObj[i].recommendCityIndex < 45) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 45 && dataObj[i].recommendCityIndex < 55) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 55 && dataObj[i].recommendCityIndex < 65) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 65 && dataObj[i].recommendCityIndex < 75) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 75 && dataObj[i].recommendCityIndex < 85) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>';
    +			} else if(dataObj[i].recommendCityIndex >= 85 && dataObj[i].recommendCityIndex < 95) {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>';
    +			} else {
    +				html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>';
    +			}
    +			html += '</span></div><div class="card-footer" style="margin-top:-0.75rem;">';
    +			if(dataObj[i].recommendCityYoy) {
    +				html += '<span>近1年涨跌幅:';
    +				if(dataObj[i].recommendCityYoy > 0) {
    +					html += '<strong>' + (dataObj[i].recommendCityYoy * 100).toFixed(2) + '%</strong><i class="icon icon-arrow-red"></i>';
    +				} else {
    +					html += '<strong>' + (dataObj[i].recommendCityYoy * 100).toFixed(2) + '%</strong><i class="icon icon-arrow-green"></i>';
    +				}
    +				html += '</span>';
    +			}
    +			if(dataObj[i].recommendCityIndexTrend) {
    +				html += '<span>';
    +				if(dataObj[i].recommendCityIndexTrend >= 0) {
    +					html += '上涨概率:<strong>' + dataObj[i].recommendCityIndexTrend + '%</strong><i class="icon icon-arrow-red"></i>';
    +				} else {
    +					html += '下跌概率:<strong>' + dataObj[i].recommendCityYoy * (-1) + '%</strong><i class="icon icon-arrow-green"></i>';
    +				}
    +				html += '</span>';
    +			}
    +			html += '</div></div>';
    +		}
    +		if(dataObj[i].type == "新闻") {
    +			html += '<div class="card cardInfo cardInfo02" onclick="openNewsView(\'' + dataObj[i].id + '\')"><div class="card-content"><div class="list-block media-list">' +
    +				'<ul><li class="item-content">' +
    +				'<div class="item-inner"><div class="item-title-row"><div class="item-title">' +
    +				dataObj[i].title + '</div></div>' +
    +				'<div class="item-subtitle"><font>' + dataObj[i].introduction + '</font></div>' +
    +				'<div class="item-subtitle"><span><i class="icon icon-eye-orange"></i><label id="visitCount_' + dataObj[i].id + '">' + dataObj[i].visitCount + '人</label>' +
    +				'<i class="icon icon-comments-orange"></i><label id="visitComment_' + dataObj[i].id + '">' + dataObj[i].recommendCommentCount + '条</label></span></div></div>' +
    +				'<div class="item-media"><img src=' + dataObj[i].coverImg + '></div>' +
    +				'</li></ul></div></div></div>';
    +		}
    +		if(dataObj[i].type == "投票") {
    +			var voteFavorCount = dataObj[i].voteFavorCount;
    +			var voteNoFavorCount = dataObj[i].voteNoFavorCount;
    +			var voteFavorCountRate = 50
    +			var voteNoFavorCountRate = 50
    +			if(voteFavorCount == 0 && voteNoFavorCount == 0) {
    +
    +			} else {
    +				voteFavorCountRate = Math.round((voteFavorCount * 100) / (voteFavorCount + voteNoFavorCount));
    +				voteNoFavorCountRate = 100 - voteFavorCountRate;
    +			}
    +
    +			html += '<div class="card cardInfo cardInfo03"><div class="card-header">' + dataObj[i].title +
    +				'</div><div class="card-content"><div class="card-content-inner row"><div class="vote01 col-50">' +
    +				'<i class="icon icon-light-red" data-val="' + dataObj[i].id + '"></i><span>' + dataObj[i].voteFavorText + '</span>' +
    +				'<font style="width:' + voteFavorCountRate + '%;" id="voteFavorCountRate_' + dataObj[i].id + '"></font><label id="voteFavorCount_' + dataObj[i].id + '">' + voteFavorCount + '票&nbsp;&nbsp;' + voteFavorCountRate + '%</label></div>' +
    +				'<div class="vote02 col-50"><i class="icon icon-light-grey" data-val="' + dataObj[i].id + '"></i><span>' + dataObj[i].voteNoFavorText + '</span>' +
    +				'<font style="width:' + voteNoFavorCountRate + '%;" id="voteNoFavorCountRate' + dataObj[i].id + '"></font><label id="voteNoFavorCount_' + dataObj[i].id + '">' + voteNoFavorCount + '票&nbsp;&nbsp;' + voteNoFavorCountRate + '%</label></div><em>V.S</em></div></div></div>';
    +		}
    +	}
    +	$('.infinite-scroll-bottom .list-container').append(html);
    +}
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html
    new file mode 100644
    index 0000000..99d598f
    --- /dev/null
    +++ b/fangija-zsyf/views/news/newsDetail.html
    @@ -0,0 +1,623 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title id="title2">咨询详情</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/theme-blue.css">
    +<link rel="stylesheet" href="../../css/mui.min.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +
    +<style>
    +	.list-block .item-text{-webkit-line-clamp:unset;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="mui-icon mui-icon mui-icon-arrowleft"></span>
    +			</button>
    +			<!--<a href="javascript:void(0)" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left">返回刷新</a>-->  
    +			<button class="button button-link button-nav pull-right open-popover" onclick="shareHref()">			
    +				<span class="icon icon-path"></span>
    +			</button>	
    +			<h1 class="title"></h1>
    +		</header>
    +        <div class="content contentText infinite-scroll infinite-scroll-bottom" data-distance="40">
    +        	<div class="content-padded">
    +				<h1 id="title"></h1>
    +				<p><small id="source"></small><small style="float:right;" id="visit_count"><i class="icon icon-eye-grey"></i></small><br><small id="create_time"></small></p>
    +				<div id="content">
    +				</div>
    +			</div>
    +			<!--
    +		    <div class="newCss">
    +				<ul>
    +					<li><span>房贷</span></li>
    +					<li><span>广州</span></li>
    +					<li><span>首套房</span></li>
    +				</ul>
    +			</div>
    +			-->
    +       		<div class="adBoxApp">
    +       			<img src="../../images/wx_app.png">
    +       			<p><label>有房&nbsp;&nbsp;有家&nbsp;&nbsp;有爱</label><br><small>更多房产资讯上有房APP</small></p>
    +       		</div>
    +       		
    +       		
    +       		<div class="list-block media-list commentList">
    +				<ul>
    +				</ul>	
    +			</div>
    +			
    +			 <!-- 加载提示符 -->
    +            <div class="infinite-scroll-preloader" style="position: relative;top: -70px;">
    +                <div class="preloader"></div>
    +            </div>
    +            
    +        </div>
    +        
    +        <div class="bar commentBox">
    +			<div class="searchbar row commentInputBox">
    +				<div class="search-input col-60">
    +					<label class="icon icon-comments" for="search"></label>
    +					<input type="text" placeholder="我也说两句">
    +				</div>
    +				<!--<span class="col-33">
    +					<a class="praise"><i class="icon icon-praise-grey02"></i><font id="newsPraise">{{ newsDzCount }}</font></a>
    +					<a class="collection collection01"><i class="icon icon-collection01"></i></a>
    +				</span>-->
    +				
    +				<span class="praise col-20">
    +		          <i class="icon icon-praise-grey02"></i><font id="newsPraise">{{ newsDzCount }}</font>
    +		        </span>
    +		        <span class="collection collection01 col-15">
    +		          <i class="icon icon-collection01"></i>
    +		        </span>
    +			</div>
    +			
    +			<div class="searchbar row commentReleaseBox dn">
    +				<div class="search-input col-85">
    +					<input type="text" maxlength="250" id="commentInput">
    +				</div>
    +				<a class="col-15" id="publishBtn">发布</a>
    +			</div>
    +			
    +		</div>
    +		
    +		
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/beacon_release.js"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script type="text/javascript" src="../../js/city.js" ></script>
    +
    +<script>
    +document.addEventListener('plusready', onPlusReady, false);
    +var id; //= "186182250936643584"; 
    +var shareUrl =  BASE_PATH+"/news/newDetail?newsId=";
    +var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
    +var sharehrefDes = "客观里面请!";
    +var shareId='';
    +var province;
    +var city;
    +var region;
    +
    +//var picUrl = '_www/logo.png';
    +var picUrl = '../../img/default_share.png';
    +
    +
    +//新闻评论列表
    +$.init()
    +//加载flag
    +var loading = false;
    +//最多可加载的条目
    +var maxItems = 100;
    +
    +//上次加载的序号
    +var lastIndex = 0;
    +
    +//每次加载添加多少条目
    +var itemsPerLoad = 10;
    +
    +
    +var curpage = 1;
    +var totalCount = 0;
    +var curPageSize = 0;
    +
    +
    +
    +var vm = new Vue({
    +	el: '#newsPraise',
    +    data:{
    +    	newsDzCount: 0
    +    }
    +})
    +
    +         
    +function onPlusReady() { 
    +        var self = plus.webview.currentWebview();
    +        id = self.newsId;
    +        shareId = id
    +        shareUrl = shareUrl+id
    +        
    +        axios.get("/rest/news/detail",{params:{newsId:id}}).then(function(response){
    +        	if(response.data.code==200){
    +	        		data = response.data.data
    +	        		$("#title").text(data.title)
    +	        		$("#title2").text(data.title)
    +	        		$("#source").text(data.source==null?"":"来源:"+data.source)
    +	        		$("#visit_count").append(data.visitCount)
    +	        		var date = new Date(data.deployTime)
    +					var dateStr = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
    +	        		$("#create_time").text(dateStr)
    +	        		$("#content").html(data.content)
    +	        		//$("#newsPraise").text(data.thumbsUpCount);
    +	        		vm.newsDzCount = numberConver(data.thumbsUpCount)
    +	        		//预先加载20条
    +					
    +	        		sharehrefTitle = data.title
    +	        		sharehrefDes = data.introduction
    +	        		
    +	        		picUrl = data.smallCoverImg==null||data.smallCoverImg==""?picUrl:data.smallCoverImg
    +	        		//加载评论列表
    +	        		addItems(itemsPerLoad, 0);
    +	        		//是否收藏
    +	        		isCollect();
    +	        	}
    +        	
    +		}).catch(function(error){
    +			console.log(error)
    +		});
    +        getPosition();
    +        updateSerivces();
    +}
    +
    +//数量进行转换
    +function numberConver(thumbsUpCount){
    +	var thumbsUpCountStr = ""
    +	if(thumbsUpCount>=10000){
    +		thumbsUpCountStr = (thumbsUpCount/10000).toFixed(1)+"万"
    +	}else{
    +		thumbsUpCountStr = thumbsUpCount
    +	}
    +	return thumbsUpCountStr;
    +}
    +
    +
    +function isCollect(){
    +	axios.post("/rest/news/checkCollect",{newsId : id}).then(function (response) {
    +		var msg = response.data.data;
    +		if(msg){
    +			$(".collection").addClass("collection02")
    +			$(".collection i").addClass("icon-collection02")
    +			$(".collection").removeClass("collection01")
    +			$(".collection i").removeClass("icon-collection01")
    +		}
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +
    +// 获取当前用户位置
    +function getPosition(){
    +	plus.geolocation.getCurrentPosition(function(p){
    +		province = p.address.province;
    +		city = p.address.city;
    +		region = p.address.district;
    +		if(city){
    +			city = formatBaiduCity(city);
    +			
    +		}
    +		}, function(e){
    +			
    +		},
    +		{
    +			provider:'baidu',
    +			enableHighAccuracy:true,
    +			coordsType:'bd09ll'
    +		}
    +	);
    +}
    +
    +
    +
    +
    +
    +function addItems(number, lastIndex) {
    +	if(!id){
    +		return;
    +	}
    +	curpage = lastIndex/itemsPerLoad + 1;
    +    axios.get("/rest/news/comment", {
    +	    params: {
    +	      newsId: id,
    +	      page:curpage,
    +	      pageSize:itemsPerLoad
    +	    }
    +	})
    +	.then(function (response) {
    +		var results = response.data.data
    +		curPageSize = results.length;
    +		if(results==null || results.length==0) {
    +	         // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	         $.detachInfiniteScroll($('.infinite-scroll'));
    +	         // 删除加载提示符
    +		     $('.infinite-scroll-preloader').hide();
    +	         return;
    +	     }
    +     	
    +	     // 生成新条目的HTML
    +	     var html = '';
    +	     for(var i in results){
    +	     		var vo = results[i];
    +				html = html+"<li>"+
    +						"<a class='item-content'>";
    +				
    +				if(vo.headImg!=null){
    +					html = html + "<div class='item-media'><img src='"+vo.headImg+"'></div>";
    +				}else{
    +					html = html + "<div class='item-media'><img src='../../images/headPortrait.png'></div>";
    +				}
    +				
    +				html = html + "<div class='item-inner'>";
    +				
    +				var name = null;
    +				if(vo.wxName){
    +					name = vo.wxName
    +				}
    +				if(name == null){
    +					name = vo.name
    +				}
    +				if(name == null){
    +					name = vo.mobile
    +				}
    +				if(name == null){
    +					name = "游客"
    +				}
    +				html = html + "<div class='item-title-row'>"+
    +									"<div class='item-title'>"+name+"</div>"+
    +									"<div class='item-after'><span data-cid='"+vo.id+"'><i class='icon icon-praise-grey01'></i><label>"+numberConver(vo.praiseCount)+"</label></span></div>"+
    +								"</div>"+
    +								"<div class='item-title-row'>";
    +				var address = "";
    +				if(vo.commentUserProvince && vo.commentUserCity && vo.commentUserProvince == vo.commentUserCity){
    +					html = html + "<div class='item-title'><span>"+vo.commentUserCity+" </span></div>";
    +				}else{
    +					if(vo.commentUserProvince && vo.commentUserCity){
    +						html =  html + "<div class='item-title'><span>"+vo.commentUserProvince+vo.commentUserCity+" </span></div>"; 
    +					}else{
    +						html =  html + "<div class='item-title'><span> </span></div>"; 
    +					}
    +					
    +				}
    +				
    +				var curTime = new Date().getTime()
    +				var publishTime = vo.addTime;
    +				
    +				var timeString = getDateDiff(curTime, publishTime)
    +				
    +				var content = "";
    +				if(vo.content){
    +					content = vo.content
    +					if(content.length > 250){
    +					    content = content.substr(0,250)+"...";
    +					  }
    +				}
    +									
    +				html = html + "<div class='item-after'><span>"+timeString+"</span></div>"+
    +								"</div>"+
    +								"<div class='item-text'>"+content+"</div>"+
    +							"</div>"+
    +						"</a>"+
    +					"</li>";					
    +	     }
    +	     
    +		 // 添加新条目
    +		 $('.commentList ul').append(html);
    +		 if($('.commentList li').length== totalCount+1){
    +		 	// 加载完毕,则注销无限加载事件,以防不必要的加载
    +		     $.detachInfiniteScroll($('.infinite-scroll'));
    +		     // 删除加载提示符
    +		     $('.infinite-scroll-preloader').hide();
    +		 }
    +		
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +	
    +
    + 
    +}
    +
    +
    +
    +//注册'infinite'事件处理函数
    +$(document).on('infinite', '.infinite-scroll-bottom',function() {
    +
    +   // 如果正在加载,则退出
    +   if (loading) return;
    +
    +   // 设置flag
    +   loading = true;
    +
    +   // 模拟1s的加载过程
    +   setTimeout(function() {
    +       // 重置加载flag
    +       loading = false;
    +
    +		  // 更新最后加载的序号
    +       lastIndex = $('.commentList li').length;
    +      
    +       if (curPageSize < itemsPerLoad) {
    +           // 加载完毕,则注销无限加载事件,以防不必要的加载
    +           $.detachInfiniteScroll($('.infinite-scroll'));
    +           // 删除加载提示符
    +           $('.infinite-scroll-preloader').hide();
    +           return;
    +       }
    +
    +       // 添加新条目
    +       addItems(itemsPerLoad, $('.commentList li').length);
    +       
    +       //容器发生改变,如果是js滚动,需要刷新滚动
    +      // $.refreshScroller();
    +   }, 1000);
    +});
    +
    +var MINU_SEC = 60 * 1000 ;
    +var HOUR_SEC = 60 * MINU_SEC;
    +var DAY_SEC = HOUR_SEC * 24;
    +var MONTH_SEC = DAY_SEC * 30;
    +var YEAR_SEC = MONTH_SEC * 12;
    +function getDateDiff(curTime, publishTime){
    +		if (publishTime <= curTime) {
    +			var diffSec = curTime - publishTime
    +			if (diffSec < DAY_SEC) {
    +				if (diffSec >= HOUR_SEC) {
    +					var t = diffSec / HOUR_SEC;
    +					return parseInt(t) + "小时前";
    +				} else if (diffSec >= MINU_SEC) {
    +					var t = diffSec / MINU_SEC;
    +					return parseInt(t) + "分钟前";
    +				} else {
    +					return "1分钟";
    +				}
    +			} else if (DAY_SEC > diffSec && diffSec < DAY_SEC*2) {
    +				return "昨天";
    +			} else {
    +				var date = new Date(publishTime)
    +				var dateStr = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
    +				return dateStr;
    +			}
    +		} else {
    +			return "1分钟";
    +		}
    +}
    +
    +//添加评论
    +
    +
    +/* 评论点赞 */
    +$("body").delegate(".commentList span .icon-praise-grey01", "click", function () {	
    +	$(this).addClass("icon-praise-orange01");
    +	var cid = $(this).parent().attr("data-cid")
    +	$(this).attr("disabled","disabled");
    +	var text = $(this).parent().text();
    +	axios.get("/rest/comment/thumbsUp", {
    +	    params: {
    +	      commentId:cid
    +	    }
    +	}).then(function (response) {
    +		var msg = response.data.data
    +    	if(msg && msg =="点赞成功"){
    +    		$("span[data-cid='"+cid+"']").find("label").text(parseInt(text) + 1);
    +    		$.toast(msg);
    +		}else{
    +			msg = response.data.message
    +			if(msg){
    +				$.toast(msg);
    +			}
    +		}
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +});
    +
    +/*新闻点赞*/
    +$(".praise").on("click", function () {
    +	$(this).find(".icon").addClass("icon-praise-orange02");
    +	$(this).attr("disabled","disabled");
    +	var text = $("#newsPraise").text();
    +	axios.get("/rest/news/thumbsUp", {
    +	    params: {
    +	      newsId:id
    +	    }
    +	}).then(function (response) {
    +		var msg = response.data.data
    +    	if(msg && msg =="点赞成功"){
    +			$(this).find("font").text(parseInt(text) + 1);
    +			var count = parseInt(text) + 1;
    +			vm.newsDzCount = count
    +			$.toast(msg);
    +		}else{
    +			msg = response.data.message
    +			if(msg){
    +				$.toast(msg);
    +			}
    +		}
    +    	
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +	
    +});
    +
    +
    +//收藏
    +$(".collection").on("click", function () {
    +	//localStorage.removeItem("user_token");
    +	doCollect();
    +	//collect();
    +});
    +function doCollect() {
    +	if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +		clicked('../user/codeSms.html',true,false,{},{},function(){
    +			doCollect();
    +		})
    +		return;
    +	} else {
    +		collect();
    +	}
    +}
    +function collect(){
    +	
    +	axios.post("/rest/news/collect",{newsId : id}).then(function (response) {
    +		
    +		var msg = response.data.message
    +		if(msg){
    +			if(msg=="用户不能为空"){
    +				//先进行登录
    +			}
    +		}else{
    +			msg = response.data.data
    +			if(msg == "收藏成功"){
    +				$(".collection").addClass("collection02")
    +				$(".collection i").addClass("icon-collection02")
    +				$(".collection").removeClass("collection01")
    +				$(".collection i").removeClass("icon-collection01")
    +			}else{
    +				$(".collection").addClass("collection01")
    +				$(".collection i").addClass("icon-collection01")
    +				$(".collection").removeClass("collection02")
    +				$(".collection i").removeClass("icon-collection02")
    +			}
    +			plus.webview.getWebviewById('views/user/userInfo.html').reload() 
    +		}
    +		$.toast(msg);
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +/* 发布评论 */
    +$(".commentInputBox input").focus(function () {
    +	$(".commentInputBox").hide();
    +	$(".commentReleaseBox").show();
    +	$(".commentReleaseBox input").focus();
    +	$(".commentReleaseBox input").val("");
    +});
    +$(".commentReleaseBox a").on("click", function () {
    +	$(".commentReleaseBox").hide();
    +	$(".commentInputBox").show();
    +	var content = $(".commentReleaseBox input").val();
    +	if(content){
    +		addComment();
    +	}
    +});
    +
    +
    +
    +function addComment(){
    +	var content = $(".commentReleaseBox input").val();
    +	content = utf16toEntities(content);
    +	axios.post("/rest/comment/add",{commentObjId : id, content:content, commentUserProvince:province, commentUserCity:city}).then(function (response) {
    +		var msg = response.data.message
    +		if(msg){
    +			$.toast(msg);
    +		}else{
    +			window.location.reload();
    +		}
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function utf16toEntities(str) {  
    +    var patt = /[\ud800-\udbff][\udc00-\udfff]/g; // 检测utf16字符正则   
    +    str = str.replace(patt, function(char) {  
    +        var H, L, code;  
    +        if (char.length === 2) {  
    +            H = char.charCodeAt(0);  
    +            // 取出高位   
    +            L = char.charCodeAt(1);  
    +            // 取出低位   
    +            code = (H - 0xD800) * 0x400 + 0x10000 + L - 0xDC00;  
    +            //转换算法  
    +            return "&#" + code + ";";  
    +        } else {  
    +            return char;  
    +        }  
    +    });  
    +    return str;  
    +}  
    +
    +
    +//$(window).bind('resize',_funResize);
    +
    +var _funResize = function(){
    +     document.body.scrollTop = document.body.scrollHeight;
    +		    target.scrollIntoView(true);
    +}
    +
    +$(function() {
    +       $('#commentInput').on('click', function () {
    +         var target = this;
    +         // 使用定时器是为了让输入框上滑时更加自然
    +        
    +        setTimeout(function(){
    +		    document.body.scrollTop = document.body.scrollHeight;
    +		    target.scrollIntoView(true);
    +		},100);
    +       });
    +     })
    +     
    +
    +</script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/rent/rent.html b/fangija-zsyf/views/rent/rent.html
    new file mode 100644
    index 0000000..9c1de90
    --- /dev/null
    +++ b/fangija-zsyf/views/rent/rent.html
    @@ -0,0 +1,270 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>小区租金详情</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
    +
    +
    +
    +<style>
    +	.list-block ul:before{height:0;}
    +	.list-block .item-inner:after{height:0;}
    +	.list-block .item-title{font-size:0.85rem;}
    +	.list-block.media-list .item-title{font-size:0.75rem;}
    +	.topicContent .list-block ul:after{height:0;}
    +	.districtMap + .list-block.media-list span{line-height:1.2rem;}
    +	.cardNearbyBox01 .cardNearby .card-header:nth-child(2){padding-top:0;}
    +	
    +	.mark-icon-box {width:24px;height:30px;position:absolute;z-index:98;}
    +	.mark-icon-box .mark-icon {width: 20px;height: 30px;display: block;cursor: pointer;font-size: 14px; color: #fff;font-weight: bold;text-align: center;line-height: 24px;background: url(../../images/dw.png) no-repeat;}
    +	
    +	.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
    +	.loadingBg .infinite-scroll-preloader{margin-top:30%;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current" id="districtBaseInfo" v-cloak>
    +    	
    +    	<div class="loadingBg">
    +    		<div class="infinite-scroll-preloader">
    +              <div class="preloader"></div>
    +          	</div>
    +    	</div>
    +    	
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">{{name}}</h1>
    +		</header>
    +        <div class="content">
    +			<div class="list-block media-list topList">
    +				<ul>
    +					<li>
    +						<div class="item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row" style="max-width:80%;">
    +									<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
    +									
    +									<div class="item-after">
    +										<a class="button theme collection collection01" onclick="doAddCollect()">关注</a>
    +										<a class="button collection collection02 dn"  onclick="removeCollect()">取消关注</a>
    +									</div>
    +								</div>
    +								<div class="item-subtitle">
    +									<span class="tag" style="margin-top:0.5rem;">
    +										<small v-for="tag in tags">{{tag}}</small>
    +									</span>
    +								</div>
    +								
    +								<div class="item-subtitle row" style="margin-top:0.5rem;margin-bottom:0.3rem;" id="arroundLevelDiv">
    +									<!--<span class="star col-50">小区关注 <i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon"></i></span>-->
    +									<span class="star "> </span>
    +								</div>
    +							</div>
    +						</div>
    +					</li>
    +				</ul>
    +			</div>
    +     		<div class="cardRentBox" id="roomDiv">
    +     			<room-rent-component></room-rent-component>
    +     		</div>
    +     		
    +     		
    +      		<div id="baseInfo" class="list-block">
    +		  		<base-info-component></base-info-component>
    +			</div>
    +			
    +			
    +      		<div class="topic" id="tabChart2" >
    +      			<div class="topicTitle" style="position:relative;">小区租金走势
    +					<div class="content-block">
    +						<div class="buttons-row theme" id="trendDiv2">
    +							<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
    +							<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
    +						</div>
    +					</div>
    +				</div>
    +				<div class="topicContent" style="padding:0;padding-bottom:0.75rem;" id="rentTrendDiv">
    +					<div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
    +				</div>
    +      		</div>
    +      		
    +       		<div class="topic dn" id="mapDiv">
    +       			<div class="topicTitle">位置及周边</div>
    +				<div class="topicContent" style="padding:0;">
    +					<div class="content-block content-block01 content-block01a" id="aroundLink">
    +						<div class="buttons-row theme">
    +							<a class="tab-link button active" id="bus">公交</a>
    +							<a class="tab-link button" id="subway">地铁</a>
    +							<a class="tab-link button" id="school">学校</a>
    +							<a class="tab-link button" id="hos">医院</a>
    +							<a class="tab-link button" id="bank">银行</a>
    +							<a class="tab-link button" id="supermark">购物</a>
    +						</div>
    +					</div>
    +					<div class="districtMap" id="districtMap"></div>
    +					<div class="list-block media-list">
    +						<ul>
    +							<li>
    +								<a onclick="openMapWindow()" class="item-link item-content">
    +									<div class="item-inner">
    +										<div class="item-title-row">
    +											<div class="item-title"><i class="icon icon-address03" style="margin-right:0.3rem;"></i><span>地址:{{address}}</span></div>
    +											<div class="item-after"><span>详情</span></div>
    +										</div>
    +									</div>
    +								</a>
    +							</li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +			
    +      		<div id="nearDistDiv">
    +      			<near-dist-component></near-dist-component>
    +      		</div>
    +        
    +        </div>
    +    
    +    	 <div class="content contentSuggest dn" id="noDataDiv">
    +			<div class="noData">
    +				<img src="../../images/noData.png">
    +				<p>您的小区数据目前仍在更新<br>敬请期待</p>
    +			</div>
    +        </div>
    +        
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/RichMarker_min.js "></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +
    +
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/echarts.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +	var city = "北京"
    +	var region = "朝阳"
    +	var name = "姜庄湖园林一期"
    +	
    +	var lat;
    +	var lng;
    +	var address;
    +	var tags;
    +	var baseInfo ;
    +	
    +
    +	
    +</script>
    +<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
    +<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
    +<script type='text/javascript' src='../component/roomRent.js' charset='utf-8'></script>
    +<script>
    +document.addEventListener('plusready', onPlusReady, false);
    +function onPlusReady() { 
    +        var self = plus.webview.currentWebview();
    +        city = self.city
    +        region = self.region
    +        name = self.name;
    +        // 创建根实例
    +		baseInfo = new Vue({
    +		el: '#districtBaseInfo',
    +		data: {
    +				name : "",
    +				city:"",
    +				region: "",
    +				address: "",
    +				tags:[]
    +			}
    +		})
    +		/* 小区租金走势 */
    +		loadRentTrends(city, region, name,2);	
    +}
    +
    +
    +//baseInfo = new Vue({
    +//	el: '#districtBaseInfo',
    +//	data: {
    +//			name : "",
    +//			city:"",
    +//			region: "",
    +//			address: "",
    +//			tags:[]
    +//		}
    +//	})
    +
    +
    +
    +function openMapWindow(){
    +	clicked('../district/arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
    +}
    +
    +/* 获取title字数,截取title前12字,并添加... */
    +$(document).ready(function () {
    +	var text = $("header .title").text();
    +	var length = $("header .title").text().length;
    +	var textStr = "";
    +	if(length > 12){
    +		textStr = text.substr(0,12);
    +		$("header .title").text(textStr + "...");
    +	}
    +});
    +
    +
    +
    +
    +/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
    +$(document).ready(function () {
    +	$(".cardNearby .card-header:nth-child(1)").each(function(){
    +		var text = $(this).text();
    +		var length = $(this).text().length;
    +		var textStr = "";
    +		if(length > 5){
    +			textStr = text.substr(0,5);
    +			$(this).text(textStr + "...");
    +		}
    +	});
    +});
    +
    +/* button状态切换 */
    +$(".content-block .button").on("click", function () {
    +	$(this).parent().children().removeClass("active");
    +	$(this).addClass("active");
    +});
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html
    new file mode 100644
    index 0000000..6dea18a
    --- /dev/null
    +++ b/fangija-zsyf/views/rent/rentManager.html
    @@ -0,0 +1,360 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>出租管理</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/city.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.picker-item{padding:0 1rem;font-size:18px;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">出租管理</h1>
    +		</header>
    +        <div class="content" id="edit">
    +        	<div class="list-block media-list">
    +                <ul>
    +					<li>
    +						<a class="item-link item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row">
    +									<div class="item-title">起租日期</div>
    +									<div class="item-after">
    +										<input type="text" id="input_time01" class="textAlignLeft" v-bind:value="leaseStartDate" placeholder="请选择起租日期" readonly>
    +										<input type="hidden" id="nowDay" name="nowDay" v-bind:value="nowDay">
    +									</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +					<li>
    +						<a class="item-link item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row">
    +									<div class="item-title">到期日期</div>
    +									<div class="item-after">
    +										<input type="text" id="input_time02" class="textAlignLeft" v-bind:value="leaseEndDate" placeholder="请选择到期日期" readonly>
    +									</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +					<li>
    +						<a class="item-link item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row">
    +									<div class="item-title">收租周期</div>
    +									<div class="item-after">
    +										<input type="text" id="input_cycle" class="textAlignLeft" v-bind:value="cycle" value="1 月 /次" readonly>
    +									</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +					<li>
    +						<a class="item-link item-content">
    +							<div class="item-inner item-inner01">
    +								<div class="item-title-row">
    +									<div class="item-title">每期租金</div>
    +									<div class="item-after">
    +										<input type="number" id="input_rent01" class="textAlignLeft" v-bind:value="rent" placeholder="请输入每期租金">
    +										<label>元</label>
    +									</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +					<li>
    +						<a class="item-link item-content">
    +							<div class="item-inner">
    +								<div class="item-title-row">
    +									<div class="item-title">下次收租日期</div>
    +									<div class="item-after">
    +										<input type="text" id="input_time03" class="textAlignLeft textAlignLeft01" v-bind:value="lastRentDate" placeholder="请选择下次收租日期" readonly>
    +									</div>
    +								</div>
    +							</div>
    +						</a>
    +					</li>
    +                </ul>
    +            </div>
    +            <div class="content-block">
    +                <p><a class="button button-big button-fill theme" id="confirm_btn">确定</a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +document.addEventListener('plusready', onPlusReady, false);
    +function onPlusReady() { 
    +        var self = plus.webview.currentWebview();
    +        id = self.houseId
    +		axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
    +//			var data = response.data.data.houses;
    +//			$.each(data,function(i){
    +//				var active = "";
    +//				var houseRoomNum = "";
    +//				if(this.id == id){
    +//					active = "active"
    +//				}
    +//				if(this.houseRoomNum){
    +//					houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
    +//				}
    +//				$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
    +//	        				'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
    +//				$(".buttons-tab01 a").click(function(){
    +//					var id = $(this).attr("val")
    +//					window.location.href = "index?id="+id;
    +//				});
    +//			})
    +			var houseInfo = response.data.data.houseInfo;
    +			if(houseInfo && houseInfo.liveStatus=="出租"){
    +				edit.liveStatus=houseInfo.liveStatus;
    +				edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
    +				edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
    +				edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
    +				edit.nowDay = getNowFormatDate(response.data.data.nowDay);
    +				if(houseInfo.rent==0){
    +					edit.rent = "";
    +				}else{
    +					edit.rent = houseInfo.rent;
    +				}
    +				edit.cycle = response.data.data.cycle; 
    +			}else{
    +				edit.cycle = "1 月 /次"; 
    +			}
    +			
    +			/* 选择-起租日期 */
    +	$("#input_time01").datetimePicker({
    +		toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +		<button class="button button-link pull-right close-picker">确定</button>\
    +		<h1 class="title">起租日期</h1>\
    +		</header>'
    +	});
    +	
    +	/* 选择-到期日期 */
    +	$("#input_time02").datetimePicker({
    +		toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +		<button class="button button-link pull-right close-picker">确定</button>\
    +		<h1 class="title">到期日期</h1>\
    +		</header>'
    +	});
    +	
    +	/* 选择-下次收租日期 */
    +	$("#input_time03").datetimePicker({
    +		toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +		<button class="button button-link pull-right close-picker">确定</button>\
    +		<h1 class="title">下次收租日期</h1>\
    +		</header>'
    +	});
    +	
    +	/* 选择-收租周期 */
    +	$("#input_cycle").picker({
    +		toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
    +		<button class="button button-link pull-right close-picker">确定</button>\
    +		<h1 class="title">收租周期</h1>\
    +		</header>',
    +		cols: [
    +			{
    +				textAlign: 'center',
    +				values: getnumber()
    +			},
    +			{
    +				textAlign: 'center',
    +				values: ["年", "季", "月"]
    +			},
    +			{
    +				textAlign: 'center',
    +				values: ["/次"]
    +			}
    +		]
    +	});
    +		}).catch(function(error){
    +			console.log(error)
    +		});
    +		
    +	/* 编辑状态-确定 */
    +	$(document).on('click','#confirm_btn', function () {
    +		
    +//		var status = $('#input_status').val();
    +		var status = "出租";
    +	    var rent_start = $('#input_time01').val();
    +	    var rent_end = $('#input_time02').val();
    +	    var rent_cycle = $('#input_cycle').val();
    +	    var rent_price = $('#input_rent01').val();
    +	    var next_rent = $('#input_time03').val();
    +	    var nowDay = $('#nowDay').val();
    +	    d = {
    +	        "id":id,
    +	        "liveStatus": status,
    +	        "leaseStartDate":rent_start,
    +	        "leaseEndDate":rent_end,
    +	        "rent":rent_price,
    +	        "lastRentDate":next_rent
    +	    };
    +	
    +	    if (status == "出租" )
    +	    {
    +	        if (rent_price == "") {
    +	            $.toast("请输入每期租金");
    +	            return false;
    +	        }
    +	        if(rent_start == ""){
    +	            $.toast("请选择起租日期");
    +	            return false;
    +	        }
    +	        if(rent_end == ""){
    +	            $.toast("请选择到期日期");
    +	            return false;
    +	        }
    +	        if(next_rent == ""){
    +	            $.toast("请选择下次收租日期");
    +	            return false;
    +	        }
    +	        if(rent_cycle == ""){
    +	            $.toast("请选择收租周期");
    +	            return false;
    +	        }
    +	        
    +	        if(Number(rent_price)<100 || Number(rent_price)>200000){
    +		    	$.toast("租金范围100-200000元");
    +		 		return false;    
    +		     }
    +	        
    +	        if(parseInt(rent_price)<Number(rent_price)){
    +	        	$.toast("租金请输入整数");
    +	 	 		return false;   
    +	        }
    +	        if(rent_end<nowDay){
    +	    		$.toast("到期日期不能早于今天");
    +	    		return false;
    +	    	}
    +	        
    +	        if (rent_start > rent_end) {
    +	            $.toast("到期日期必须晚于起租日期");
    +	            return false;
    +	        }
    +	        if (next_rent > rent_end) {
    +	            $.toast("收租日期不能晚于到期日期");
    +	            return false;
    +	        }
    +	        if(next_rent<nowDay){
    +	    		$.toast("下次收租日期不能早于今天");
    +	    		return false;
    +	    	}
    +	        if (rent_cycle != ""){
    +	            var a = rent_cycle.split(" ");
    +	            var b = a[1].split("/");
    +	            d["rentCycle"] = a[0];
    +	            d["rentCycleUnit"] = b[0];
    +	        }
    +	    }
    +		
    +		axios.post("/rest/rent/changeStatus",d).then(function(response){
    +	            plus.webview.getWebviewById('/views/house/detail.html').reload();
    +	            back(),plus.nativeUI.closeWaiting();
    +		}).catch(function(error){
    +			console.log(error)
    +		});
    +	});
    +}
    +
    +
    +// 获取周期  1-30
    +function getnumber(){
    +	var data = new Array();
    +	for(var i=1;i<31;i++){
    +		data.push(i);
    +	}
    +	return data;
    +};
    +
    +///* 错误提示 */
    +//$("#confirm_btn").on("click", function () {
    +//	var a = $("#input_time01").val();
    +//	var b = $("#input_time02").val();
    +//	var c = $("#input_rent01").val();
    +//	var d = $("#input_time03").val();
    +//	if(a == ""){
    +//		$.toast("请选择起租日期");
    +//		return false;
    +//	}
    +//	else if(b == ""){
    +//		$.toast("请选择到期日期");
    +//		return false;
    +//	}
    +//	else if(c == ""){
    +//		$.toast("请输入每期租金");
    +//		return false;
    +//	}
    +//	else if(d == ""){
    +//		$.toast("请选择下次收租日期");
    +//		return false;
    +//	}
    +//});
    +
    +	
    +var edit = new Vue({
    +	el:"#edit",
    +	data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
    +});
    +function getNowFormatDate(time) {
    +		if(typeof(time)=="undefined"||time==null){
    +			return ""
    +		}
    +		var date = new Date(time)
    +	    var seperator1 = "-";
    +	    var year = date.getFullYear();
    +	    var month = date.getMonth() + 1;
    +	    var strDate = date.getDate();
    +	    if (month >= 1 && month <= 9) {
    +	        month = "0" + month;
    +	    }
    +	    if (strDate >= 0 && strDate <= 9) {
    +	            strDate = "0" + strDate;
    +	        }
    +	    var currentdate = year + seperator1 + month + seperator1 + strDate;
    +	    return currentdate;
    +	}
    +</script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/setting/about.html b/fangija-zsyf/views/setting/about.html
    new file mode 100644
    index 0000000..0b9437f
    --- /dev/null
    +++ b/fangija-zsyf/views/setting/about.html
    @@ -0,0 +1,89 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>关于我们</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">关于我们</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="list-block media-list mb05">
    +                <ul>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">客服电话</div>
    +                                    <div class="item-after">400-188-3787</div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">Email</div>
    +                                    <div class="item-after">service@fangjia.com</div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="list-block media-list mb05">
    +                <ul>
    +                    <li>
    +                        <a onclick="clicked('agreement.html',true);" class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">服务协议</div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="content-block">
    +                <p style="text-align:center;margin-top:5rem;">V1.1<br>上海估家网络科技有限公司</p>
    +                <p style="text-align:center;"></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/common.js"></script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/setting/agreement.html b/fangija-zsyf/views/setting/agreement.html
    new file mode 100644
    index 0000000..ed2667b
    --- /dev/null
    +++ b/fangija-zsyf/views/setting/agreement.html
    @@ -0,0 +1,210 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>服务协议</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	h1{text-align:center;}
    +</style>
    +
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav barBorder">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">服务协议</h1>
    +		</header>
    +        <div class="content contentText">
    +        	<div class="content-padded">
    +				<h1>协议一</h1>
    +				<p><b>1. 房价网服务条款的接受</b><br>
    +房价网为上海估家网络科技有限公司所独立拥有,房价网提供的服务完全按照其发布的服务条款和操作规则。本服务条款所称的用户是指完全同意所有条款并完成注册程序或未经注册而使用房产估价服务、手机短信服务或其他房价网提供的服务(以下简称“本服务”)的用户。</p>
    +				<p><b>2. 服务条款的变更和修改</b><br>
    +		房价网有权随时对服务条款进行修改,并无须另行通知;当用户使用房价网的特殊服务时,应接受房价网随时提供的与该特殊服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的网络服务;如果用户继续享用网络服务,则视为用户已经接受服务条款的修改。</p>
    +				<p><b>3. 服务说明</b><br>
    +(1)房价网运用自己的操作系统通过国际互联网向用户提供丰富的网上房地产资源,包括房价评估、各种房地产信息、个性化内容等(以下简称本服务)。除非另有明确规定,增强或强化目前服务的任何新功能,包括新产品,均无条件地适用本服务条款。<br>
    +		(2)房价网对网络服务不承担任何责任,即用户对网络服务的使用承担风险。房价网不保证服务一定会满足用户的使用要求,也不保证服务不会受中断,对服务的及时性、安全性、准确性也不作担保。<br>
    +		(3)为使用本服务,用户必须:<br>
    +		<span>a. 自行配备进入国际互联网所必需的设备,包括计算机、数据机或其他存取装置;</span><br>
    +		<span>b. 自行支付与此服务有关的费用。</span><br>
    +		(4)用户接受本服务须同意:<br>
    +		<span>a. 提供完整、真实、准确、最新的个人资料;</span><br>
    +		<span>b. 不断更新注册资料,以符合上述(4)a的要求;</span><br>
    +		<span>c. 若用户提供任何错误、不实、过时或不完整的资料,并为房价网所确知;或者房价网有合理理由怀疑前述资料为错误、不实、过时或不完整,房价网有权暂停或终止用户的帐号,并拒绝现在或将来使用本服务的全部或一部分;</span><br>
    +		<span>d. 用户(经纪人)如用注册房价网时使用的手机号在其他网站上发布房源的,房价网有权转载该些房源,并为其转接来电;</span><br>
    +		<span>e. 用户(经纪人)在发布信息时,信息如涉及(包括但不限于)他人的手机/电话号码、姓名、肖像、证件号码、住址等,需经信息所有者本人授权同意尚可发布。</span></p>
    +				<p><b>4. 用户应遵守以下法律及法规</b><br>
    +		(1)用户同意遵守《中华人民共和国保守国家秘密法》、《中华人民共和国计算机信息系统安全保护条例》、《计算机软件保护条例》等有关计算机及互联网规定的法律和法规、实施办法。在任何情况下,房价网合理地认为用户的行为可能违反上述法律、法规,房价网可以在任何时候,不经事先通知终止向该用户提供服务。<br>
    +		(2)用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p>
    +				<p><b>5. 用户隐私权制度</b><br>
    +		(1)当用户注册房价网的服务时,用户须提供个人信息。房价网收集个人信息的目的是为用户提供尽可能多的个人化网上服务以及为广告商提供一个方便的途径来接触到适合的用户,并且可以发送具有相关性的内容和广告。在此过程中,广告商绝对不会接触到用户的个人信息。
    +		房价网不会在未经合法用户授权时,公开、编辑或透露其个人信息及保存在房价网中的非公开内容,除非有下列情况:<br>
    +		<span>a. 有关法律规定或房价网合法服务程序规定;</span><br>
    +		<span>b. 在紧急情况下,为维护用户及公众的权益;</span><br>
    +		<span>c. 为维护房价网的商标权;</span><br>
    +		<span>d. 其他需要公开、编辑或透露个人信息的情况。</span><br>
    +		(2)在以下(包括但不限于)几种情况下,用户同意房价网使用用户的个信息:<br>
    +		<span>a. 在进行促销或抽奖时,房价网可能会与赞助商共享用户的个人信息,在这些情况下房价网会在发送用户信息之前进行提示,并且用户可以通过不参与来终止传送过程;</span><br>
    +		<span>b. 房价网可以将用户信息与第三方数据匹配;</span><br>
    +		<span>c. 房价网会通过透露用户统计数据,向未来的合作伙伴、广告商及其他第三方以及为了其他合法目的而描述房价网的服务;</span><br>
    +		<span>d. 用户购买或咨询在房价网列出的商品时,房价网获得的信息及用户提供的信息(例如用户的联系信息和有意向的商品信息)会提供给商家,这些商家会进行数据收集操作,但房价网对商家的此种操作不负任何责任;</span><br>
    +		<span>e. 房价网会向用户发送关于房价网不同产品和服务的信息或者房价网认为用户会感兴趣的其他产品和服务。如果用户不希望收到这样的手机短信,只需在提供个人信息时或其他任何时候告知即可。另外,房价网会竭尽全力保护用户的信息,但房价网不能确信或保证任何个人信息的安全性,用户须自己承担风险。比如用户联机公布可被公众访问的个人信息时,用户有可能会收到未经用户同意的消息;房价网的合作伙伴和可通过房价网访问的第三方因特网站点和服务或通过抽奖、促销等活动得知用户个人信息的其他第三方会进行独立的数据收集工作等活动,房价网对用户及其他任何第三方的上述行为,不负担任何责任;</span><br>
    +		<span>f. 房价网会根据用户的位置信息为用户提供基于位置周边的房产行情信息。</span><br>
    +    	(3)个人信息保护:我们将保护所有您同意授予的个人信息,并努力采用各种安全措施来保护您的个人信息。</p>
    +				<p><b>6. 用户帐号、密码和安全</b><br>
    +		(1)用户一旦注册成功,便成为房价网的合法用户,将得到一个密码和帐号。用户有义务保证密码和帐号的安全。用户对利用该密码和帐号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,房价网无法也不负担任何责任。<br>
    +		(2)用户的密码和帐号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知房价网,并且用户在每次连线结束,应结束帐号使用,否则用户可能得不到房价网的安全保护。</p>
    +				<p><b>7. 房源发布规范</b><br>
    +		下述房源将视为违规房源,会对房源进行删除处理。<br>
    +		(1)禁止发布已售/已租或不存在房源:房源不存在,或已经出售/出租但依然挂牌的房源信息。<br>
    +		(2)禁止发布价格、面积有误房源:房源实际价格与挂牌价格严重不符,建筑面积或使用面积明显有误。<br>
    +		(3)禁止发布内容违规房源:<br>
    +		<span>a. 未获得房屋业主书面授权;</span><br>
    +		<span>b. 在房源标题中发布经纪人姓名、手机号码、与本网站无关的网站名称、影响页面的符号如@#¥* 等;</span><br>
    +		<span>c. 在房源标题中发布重复性宣传语如官方推荐、企业认证房、真房源等内容;</span><br>
    +		<span>d. 在房源描述里发布违反法律法规规定的相关内容、广告信息、与房源无关的信息、与本网站无关的网址链接。</span><br>
    +		(4)禁止发布不实图片:房源信息中图片与真实房源情况无关,图片模糊不清,户型图与户型填写不符,图片未按分类放置,图片有经纪人姓名、手机号码等情况。<br>
    +		(5)禁止发布重复房源:重复发布的房源,包括房源价格、楼层、小区、面积相同的房源。<br>
    +		(6)禁止单条房源中包含多个小区名:以多小区信息作为楼盘名称、楼盘地址或房源标题等。<br>
    +		(7)禁止发布产权不清晰或无法交易的房源。<br>
    +		(8)禁止发布影响市场公平竞争的房源。</p>
    +				<p><b>8. 对用户信息的存储和限制</b><br>
    +		房价网不对用户所发布信息的删除或储存失败负责。房价网有权判断用户的行为是否符合房价网服务条款规定的权利,如果房价网认为用户违背了服务条款的规定,房价网有中断向其提供网络服务的权利。</p>
    +				<p><b>9. 禁止用户从事以下行为</b><br>
    +		(1)上载、张贴、发送电子邮件或传送任何非法、有害、胁迫、骚扰、侵害、中伤、粗俗、猥亵、诽谤、淫秽、侵害他人因隐私、种族歧视或其他另人不快的包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息或其他资料(以下简称内容)。<br>
    +		(2)以任何方式危害未成年人。<br>
    +		(3)冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为与任何人或任何机构有关。<br>
    +		(4)伪造标题或以其他方式操控识别资料,使人误认为该内容为房价网所传送。<br>
    +		(5)将无权传送的内容(例如内部资料、机密资料)进行上载、张贴、发送电子邮件或以其他方式传送。<br>
    +		(6)将侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、发送电子邮件或以其他方式传送。<br>
    +		(7)将广告函件、促销资料、"垃圾邮件"等,加以上载、张贴、发送电子邮件或以其他方式传送。供前述目的使用的专用区域除外。<br>
    +		(8)将有关干扰、破坏或限制任何计算机软件、硬件或通讯设备功能的软件病毒或其他计算机代码、档案和程序之资料,加以上载、张贴、发送电子邮件或以其他方式传送。<br>
    +		(9)干扰或破坏本服务或与本服务相连的服务器和网络,或不遵守本服务网络使用之规定。<br>
    +		(10)故意或非故意违反任何相关的中国法律、法规、规章、条例等其他具有法律效力的规范。<br>
    +		(11)跟踪或以其他方式骚扰他人。<br>
    +		(12)用户对经由本服务上载、张贴、发送电子邮件或传送的内容负全部责任。<br>
    +		(13)对于经由本服务而传送的内容,房价网不保证前述内容的正确性、完整性或品质。用户在接受本服务时,有可能会接触到令人不快、不适当或令人厌恶的内容。在任何情况下,房价网均不对任何内容负责,包括但不限于任何内容发生任何错误或纰漏以及衍生的任何损失或损害。房价网有权(但无义务)自行拒绝或删除经由本服务提供的任何内容。用户使用上述内容,应自行承担风险。<br>
    +		(14)房价网有权利在下述情况下,对内容进行保存或披露:<br>
    +		<span>a. 法律程序所规定;</span><br>
    +		<span>b. 本服务条款规定;</span><br>
    +		<span>c. 被侵害的第三人提出权利主张;</span><br>
    +		<span>d. 为保护房价网、其使用者及社会公众的权利、财产或人身安全;</span><br>
    +		<span>e. 其他房价网认为有必要的情况。</span></p>
    +				<p><b>10. 关于用户在房价网的公开使用区域张贴内容</b><br>
    +		(1)"公开使用区域"指一般公众可以使用的区域。<br>
    +		(2)用户在本服务公开的使用区域张贴的内容,则视为用户授权房价网免费使用权及非独家使用权,房价网有权为展示、散布及推广前述张贴的内容之服务目的,对上述内容进行复制、修改、出版。本使用权持续到用户将上述内容在本服务中删除。<br>
    +		(3)因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户承担全部责任。</p>
    +				<p><b>11. 除经房价网许可外,用户不得对本服务进行复制、出售或用作其他商业用途。</b></p>
    +				<p><b>12. 房价网有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件讯息或其他上载内容的时间、限制本服务一个帐号可接收电子邮件的数量等措施。如房
    +		价网未能储存或删除本服务的内容或其他讯息,房价网不负担任何责任。对于用户3个月未使用的帐号,房价网有权予以删除。</b></p>
    +				<p><b>13. 与广告商的商业交易</b><br>
    +		用户经由本服务与广告商进行通讯联系或商业往来或参与促销活动,完全属于用户与广告商之间的行为,与房价网没有任何关系,对于前述交易或前述广告商因本服务所生之任何损害或损失,房价网不承担任何责任。房价网没有义务对广告及广告商进行甄别或审查。</p>
    +				<p><b>14. 接受有关交易的相关服务</b><br>
    +		用户从本服务接受任何有关公司、个人房产信息等资料,本服务对正确性、适用性,均不负任何责任。基于上述资料,用户所进行的交易或投资决定,由用户承担全部后果和责任。</p>
    +				<p><b>15. 关于链接</b><br>
    +		本服务可能会提供与其他国际互联网网站或资源进行链接。对于前述网站或资源是否可以利用,房价网不予担保。因使用或依赖上述网站或资源所生的损失或损害,房价网也不负担任何责任。</p>
    +				<p><b>16. 房价网的知识产权及其他权利</b><br>
    +		(1)房价网对本服务及本服务所使用的软件包含受知识产权或其他法律保护的资料享有相应的权利。<br>
    +		(2)经由本服务传送的资讯及内容,受到著作权法、商标法、专利法或其他法律的保护;未经房价网明示授权许可,用户不得进行修改、出租、散布或衍生其他作品。<br>
    +		(3)用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。<br>
    +		(4)房价网,房价网设计图样以及其他房价网图样、产品及服务名称,均为房价网公司所享有的商标。任何人不得使用、复制或用作其他用途。</p>
    +				<p><b>17. 免责声明</b><br>
    +		(1)房价网对于任何包含、经由或连接、下载或从任何与有关本服务所获得的任何内容、信息或广告,不声明或保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,房价网不负保证责任。用户自行负担使用本服务的风险。<br>
    +		(2)房价网有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。<br>
    +		(3)房价网不保证(包括但不限于):<br>
    +		<span>a. 本服务适合用户的使用要求;</span><br>
    +		<span>b. 本服务不受干扰,及时、安全、可靠或不出现错误,包括黑客入侵,网络中断,电信问题及其他不可抗力等;c用户经由本服务取得的任何产品、服务或其他材料符合用户的期望。<br></span>
    +		(4)用户使用经由本服务下载的或取得的任何资料,其风险自行负担;因该使用而导致用户电脑系统损坏或资料流失,用户应负完全责任。<br>
    +		(5)基于以下原因而造成的利润、商业信誉、资料损失或其他有形或无形损失,房价网不承担任何直接、间接、附带、衍生或惩罚性的赔偿:<br>
    +		<span>a. 本服务使用或无法使用;</span><br>
    +		<span>b. 经由本服务购买或取得的任何产品、资料或服务;</span><br>
    +		<span>c. 用户资料遭到未授权的使用或修改;</span><br>
    +		<span>d. 其他与本服务相关的事宜。<br></span>
    +		(6)用户在浏览网际网路时自行判断使用房价网的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,房价网没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p>
    +				<p><b>18. 由于用户经由本服务张贴或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三人提出权利主张,用户同意赔偿房价网及其分公司、关联公司、代理人或其他合作伙伴及员工,并使其免受损害。</b></p>
    +				<p><b>19. 服务的修改和终止</b><br>
    +		房价网有权在任何时候,暂时或永久地修改或终止本服务(或任何一部分),无论是否通知。房价网对本服务的修改或终止对用户和任何第三人不承担任何责任。房价网有权基于任何理由,终止用户的帐号、密码或使用本服务,或删除、转移用户存储、发布在本服务的内容,房价网采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p>
    +				<p><b>20. 通知</b><br>
    +		房价网向用户发出的通知,可以采用手机短信或页面公告或电子邮件的形式。</p>
    +				<p><b>21. 本服务条款规范用户使用本服务,将取代用户先前与房价网签署的任何协议。本服务条款和房价网的其他服务条款构成完整的协议。</b></p>
    +				<p><b>22. 法律的适用和管辖</b><br>
    +		本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交上海仲裁委员会,其仲裁裁决是终局的。本服务条款因与中华人民共和国现行法律相抵触而导致部分无效,不影响其他部分的效力。</p>
    +		
    +				<h1>协议二</h1>
    +				<p>贷款服务是由上海估家网络科技有限公司(以下简称本公司)和您签订,本协议约定了本公司向您提供服务的前提、双方权利义务及其他事项。您在本公司平台“房价网”(www.fangjia.com)提供的贷款服务或相应模块功能服务上点击以合理的理解表明您希望与本公司签订本协议的选项(例如,注册信息填写过程中选择“同意”或类似文字,且页面上同时列明了本协议的内容或者可以有效展示本协议内容的链接),或您与本公司以其他合理方式表明您与本公司订立了本协议时,即表明本协议在您与本公司之间成立并生效。</p>
    +				<p><b>一、声明与承诺</b><br>
    +		(一)您确认,在您注册用户或填写个人信息用以接受本服务,或您以本公司允许的其他方式实际使用本服务前,您已充分阅读、理解并接受本协议的全部内容。您使用本服务,即表示您同意遵循本协议之所有约定。<br>
    +		(二)您同意,本公司有权对本协议内容进行变更,并以在本网站或其他适当的地方公告的方式予以公布,无需另行单独通知您;您在本协议内容公告变更后继续使用本服务,表示您已充分阅读、理解并接受变更后的协议内容,并遵循变更后的协议内容而使用本服务;若您不同意修改后的协议内容,您应停止使用本服务。<br>
    +		(三)您保证,作为自然人,在您同意接受本协议并注册成为用户时,您已经年满16周岁;作为企业、事业单位等组织,您在中华人民共和国(“中国”)大陆地区(不含香港、台湾、澳门地区)合法开展经营活动或其他业务,或依照中国大陆地区(不含香港、台湾、澳门地区)法律登记注册成立;本协议内容不受您所属国家或地区法律的约束。不具备前述条件的,您应立即终止注册或停止使用本服务。</p>
    +				<p><b>二、贷款服务</b><br>
    +		(一)贷款服务(以下简称为本服务):<br>
    +		<span>1、指本公司向用户提供,根据用户填写提交的信息主体的需要,向有关机构(包括但不限于银行、贷款公司、征信机构等)了解本人的需求信息和信用评估信息;同时授权向相关机构(包括但不限于银行、贷款公司、征信机构)提供本人的信用信息,并授权相关机构(包括但不限于银行、贷款公司、征信机构)将本人的信息用于贷款服务业务。</span><br>
    +		<span>2、本公司可以通过其他建有用户身份校验机制的主体的身份校验机制及本公司认为适当的方式中的一种或多种来对您进行身份校验。如果您选择使用且本公司同意您使用您与本公司之外的第三方的身份校验机制来进行本公司对您的身份校验,意味着您同意按照该第三方的规则进行身份校验。</span><br>
    +		<span>3、本公司以各种方式向您提供的其他服务。</span><br>
    +		(二)本公司不会采集您(作为个人用户)的宗教信仰、基因、指纹、血型、疾病和病史信息以及法律、行政法规规定禁止采集的其他个人信息。<br>
    +		(三)本公司承诺尽商业上的合理努力采用安全技术和程序保障用户信息安全,且上述技术和程序安全标准不低于国家法律法规的要求,以防信息的丢失、不当使用等情况的发生,并采取合理措施保障向第三方提供用户信息的准确性。</p>
    +				<p><b>三、服务使用规则</b><br>
    +		为有效保障您使用本服务时的合法权益,您理解并同意接受以下规则:<br>
    +		(一)本公司保证在法律、行政法规允许的范围内采集您的用户信息。为了您正常使用本服务,在您使用本服务的全部期间,您授权本公司向可以合法提供您的用户信息的主体采集该等信息。为了免除您重复授权的不便,您做出前述授权,表明前述信息提供者无需再逐一向您另行获取其向本公司提供您的信息的授权,该等信息提供者可以依您在本协议中的授权径行向本公司提供您的用户信息。<br>
    +		(二)一旦您使用本服务,本公司即有权依照本公司自行设立的模型、模式、格式、规则、流程等对您的用户信息进行整理、保存、加工,并将在法律、行政法规允许的范围内向第三方提供该等信息。</p>
    +				<p><b>四、服务使用限制</b><br>
    +		(一)您在使用本服务时应遵守中华人民共和国相关法律法规,不将本服务用于任何非法目的(例如用于骗取贷款、合同诈骗),也不以任何非法方式使用本服务。<br>
    +		(二)您不得利用本服务从事侵害他人合法权益之行为, 否则本公司有权拒绝提供本服务,且您应承担所有相关法律责任,因此导致本公司或本公司雇员或其他方受损的,您应承担赔偿责任。<br>
    +		(三)您理解并同意,本公司不对因下述任一情况导致的任何损害赔偿承担责任,包括但不限于利润、商誉、数据等方面的损失或其他无形损失的损害赔偿(无论本公司是否已被告知该等损害赔偿的可能性):<br>
    +		<span>1、如果您违反本协议的明文规定及精神,本公司可能对您暂停、中断或终止提供本服务或其任何部分,但本公司会在法律允许的范围内继续持有、保存您的用户信息与使用本服务的记录。</span><br>
    +		<span>2、在发现本服务被异常使用,或对服务的使用有合理疑义,或对服务的使用有违反法律规定或本协议约定之虞时,本公司有权不经通知先行暂停或终止您对于本服务使用,并通过电话、电子邮件、手机短信、网站站内信或客户端站内信等方式通知您,您应及时予以关注。具体可能导致暂停或终止服务的情形包括但不限于:</span><br>
    +		<span>1)根据本协议的约定;</span><br>
    +		<span>2)根据法律法规及法律文书的规定;</span><br>
    +		<span>3)根据有权机关的要求;</span><br>
    +		<span>4)您PDS服务的行为涉嫌违反国家法律法规及行政规定的;</span><br>
    +		<span>5)本公司依据自行合理判断认为可能产生风险的;</span><br>
    +		<span>6)您遭到他人投诉,且对方已经提供了一定证据的;如您申请恢复服务、解除上述服务中止或限制,您应按本公司要求如实提供相关资料、您的身份证明及本公司要求的其他信息或文件,以便本公司进行核实,且本公司有权依照自行判断来决定是否同意您的申请。您应充分理解您的申请并不必然被允许。您拒绝如实提供相关资料及身份证明的,或未通过本公司审核的,则您确认本公司有权长期对该等账户停止提供服务且长期限制该等产品或者服务的部分或全部功能。</span></p>
    +				<p><b>五、责任范围及责任限制</b><br>
    +		(一)本公司仅对本协议中列明的责任承担范围负责。<br>
    +		(二)您理解并同意,因本公司根据本协议向您提供的用户信息产生的任何后果和风险应由您自行承担,包括但不限于您的贷款业务申请被拒绝,您的相关信息被他人不法利用等。<br>
    +		(三)在法律允许的情况下,本公司对于与本协议有关或由本协议引起的任何间接的、惩罚性的、特殊的、派生的损失(包括业务损失、收益损失、利润损失、商誉损失、使用数据或其他经济利益的损失)均不负有任何责任,即使事先已被告知此等损失的可能性。<br>
    +		(四)除本协议另有规定外,在任何情况下,本公司对本协议所承担的违约赔偿责任总额不超过向您收取的当次服务费用总额。</p>
    +				<p><b>六、完整协议</b><br>
    +		本协议由本协议条款与本公司网站公示的各项规则组成,相关名词可互相引用参照,如有不同理解,以本协议条款为准。您对本协议理解和认同,您即对本协议所有组成部分的内容理解并认同,一旦您使用本服务,您和本公司即受本协议所有组成部分的约束。本协议部分内容被有管辖权的法院认定为违法或无效的,不因此影响其他内容的效力。</p>
    +				<p><b>七、商标、知识产权、专利的保护</b><br>
    +		(一)本公司及关联公司所有系统及本网站上所有内容,包括但不限于著作、图片、档案、资讯、资料、网站架构、网站画面的安排、网页设计,均由本公司或本公司关联公司依法拥有其知识产权,包括但不限于商标权、专利权、著作权、商业秘密权利等。<br>
    +		(二)非经本公司或本公司关联企业书面同意,任何人不得擅自使用、修改、复制、公开传播、改变、散布、发行或公开发表本网站程序或内容。<br>
    +		(三)尊重知识产权是您应尽的义务,如有违反, 您应承担损害赔偿责任。</p>
    +				<p><b>八、法律适用与管辖</b><br>
    +		本协议之效力、解释、变更、执行与争议解决均适用中华人民共和国大陆地区(不含香港、澳门、台湾地区)法律,没有相关法律规定的,参照通用商业惯例和(或)行业惯例。因本协议产生之争议,均应依照中华人民共和国法律予以处理,并由被告住所地人民法院管辖。</p>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/common.js"></script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/setting/setting.html b/fangija-zsyf/views/setting/setting.html
    new file mode 100644
    index 0000000..d0fad15
    --- /dev/null
    +++ b/fangija-zsyf/views/setting/setting.html
    @@ -0,0 +1,171 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>管理设置</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +			<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">管理设置</h1>
    +		</header>
    +        <div class="content" id="app">
    +        	<div class="list-block media-list">
    +                <ul>
    +                	 <li v-show="showPass">
    +                        <a onclick="clicked('/views/user/updatePass.html',true);"  class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">设置密码</div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a onclick="clicked('about.html',true);"  class="item-link item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title">关于我们</div>
    +                                    <div class="item-after">V1.1</div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="content-block">
    +               	<p>微信交流群</p>
    +            	<img id="img" style="width:180px;margin:0 auto;">
    +               	<p style="text-align:center;">扫码加入</p>
    +               	<p>商务合作QQ:275525147</p>
    +                <p style="margin-top:2rem;">
    +                	<a v-show="showLogout" onclick="logout()" class="button button-big button-fill theme">退出登录</a>
    +                	<!--<a v-show="showLogin" onclick="clicked('../user/codeSms.html',true)" class="button button-big button-fill theme">马上登录</a>-->
    +                </p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/common.js"></script>
    +<script type="text/javascript" src="../../js/mui.min.js"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/vue.js" ></script>
    +<script type="text/javascript">
    +new Vue({
    +	el: '#app',
    +	data: {
    +		showLogin:false,
    +		showLogout:false,
    +		showPass:false
    +	},
    +	mounted() {
    +		if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
    +			this.showLogin = true;
    +		} else {
    +			this.showPass = true;
    +			this.showLogout = true;
    +		}
    +	}
    +});
    +mui.init({
    +    gestureConfig: {
    +        longtap: true
    +    }
    +});
    +
    +function logout() {
    +	//plus.webview.getWebviewById('yfindex.html').reload();
    +	localStorage.removeItem("user_token");
    + 	localStorage.removeItem("user_token_add_time");
    + 	//退出登录之前loading下个人中心
    + 	plus.webview.getWebviewById('views/house/houseManageList.html').reload();
    +	plus.webview.getWebviewById('views/user/userInfo.html').reload();
    +	plus.webview.getWebviewById('views/house/houseDetail.html').reload();
    +	timer.start();
    +}
    +
    +function download(imgUrl) {
    +	var suffix = '/qun.png';
    +	var downLoader = plus.downloader.createDownload(imgUrl, {
    +        method: 'GET',
    +        filename: '_downloads/image' + suffix
    +    }, function(download, status) {
    +        var fileName = download.filename;
    +        plus.gallery.save(fileName, function() {
    +        	plus.ui.alert("保存成功");
    +        });
    +    });
    +    downLoader.start();
    +}
    +
    +
    +mui.plusReady(function() {
    +	axios.get("/rest/ad/position",{params:{position : 7}}).then(function (response) {
    +		var data = response.data.data;
    +		if (data) {
    +			document.getElementById("img").setAttribute("src", BASE_PATH+"/img/"+data.imgId);
    +			document.getElementById("img").addEventListener("longtap", function(event) {
    +	    		download(BASE_PATH+"/img/"+data.imgId);
    +			})
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +});
    +
    +//退出登录等待两秒
    +timer = {
    +    countdown:2,
    +    start:function(){
    +        countdown = 2
    +        timer.down()
    +    },
    +    down:function(){
    +        countdown --
    +        if(countdown <= 0){
    +        	back();
    +        	return;
    +        }else{
    +            setTimeout(timer.down, 1000)
    +        }
    +    },
    +    cancel:function(){
    +        countdown = 0
    +    }
    +}
    +</script>
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/user/bindingMobile.html b/fangija-zsyf/views/user/bindingMobile.html
    new file mode 100644
    index 0000000..937d2bd
    --- /dev/null
    +++ b/fangija-zsyf/views/user/bindingMobile.html
    @@ -0,0 +1,234 @@
    +
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>绑定账号</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +    
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group" id="app">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +       		<button class="button button-link button-nav pull-left" onclick="back()">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">绑定账号</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="list-block media-list">
    +                <ul>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login01"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="number" v-model="mobile" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码">
    +                                    	<label>
    +                                            <span class="sendCode theme" @click="sendSmsCode">获取验证码</span>
    +                                            <span class="waiting theme dn">48&nbsp;s</span>
    +                                        </label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login02"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="number" v-model="smsCode" id="input_codeSms" class="textAlignLeft" placeholder="请输入验证码">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="content-block loginBox">
    +               <p><a class="button button-big button-fill theme" id="bundling_btn" @click="binding">绑定</a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js" ></script>
    +<script type="text/javascript" src="../../js/zepto.md5.js" ></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/plus.info.js" ></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +window.viewsPage="bindingMobile";
    +timer = {
    +    countdown:60,
    +    start:function(){
    +        countdown = 60
    +        $(".sendCode").hide()
    +        $(".waiting").empty().append(countdown + " s").show()
    +        timer.down()
    +    },
    +    down:function(){
    +        countdown --
    +        $(".waiting").empty().append(countdown + " s")
    +        if(countdown <= 0){
    +            $(".sendCode").show()
    +            $(".waiting").hide()
    +        }else{
    +            setTimeout(timer.down, 1000)
    +        }
    +    },
    +    cancel:function(){
    +        countdown = 0
    +    }
    +}
    +
    +var vue = new Vue({
    +	el: '#app',
    +	data: {
    +		mobile:'',		// 手机号码
    +		smsCode:'',     // 短信验证码
    +		loginFrom:'',   // 登录类型(weixin,qq,sinaweibo)
    +		openid:'',      // 微信ID
    +		unionid:'',     // 微信unionid,
    +		accessToken: '',// 微信授权token 
    +		nickname:'',    // 微信昵称
    +		headImg:'',     // 微信头像
    +		deviceId:''     // 设备ID 
    +	},
    +	methods: {
    +		// 手机号码检查
    +		checkMobile: function() {
    +			if(this.mobile == ""){
    +				$.toast("请输入手机号码");
    +				return false;
    +			}
    +			var mobile_reg = /^1\d{10}$/
    +			if (!mobile_reg.test(this.mobile)) {
    +				$.toast("手机号码格式错误");
    +				return false;
    +			}
    +			return true;
    +		},
    +		// 短信验证码检查
    +		checkSmsCode: function() {
    +			if(this.smsCode == ""){
    +				$.toast("请输入验证码");
    +				return false;
    +			}
    +			if(this.smsCode.length != 4){
    +		        $.toast("验证码格式不正确");
    +		        return false;
    +		    }
    +			return true;
    +		},
    +		// 发送短信验证码
    +		sendSmsCode: function() {
    +			if (this.checkMobile()) {
    +				$(".waiting").show();
    +				$(".sendCode").hide();
    +				timer.start();
    +				axios.post("/rest/user/sendMobileCode", {
    +					mobile:this.mobile, type:'binding'
    +				})
    +			    .then(function (response) {
    +			    	var resData = response.data;
    +			    	if (resData.status) {
    +			    		$.toast(resData.message);
    +			    	} else {
    +			    		$.toast(resData.message);
    +			    		timer.cancel()
    +			    	}
    +			    })
    +			    .catch(function (error) {
    +			       $.toast(error);
    +			    });
    +			}
    +		},
    +		// 绑定手机
    +		binding: function() {
    +			if (this.checkMobile() && this.checkSmsCode()) {
    +				plus.nativeUI.showWaiting();
    +				axios.post("/rest/user/bindMobile", {
    +					mobile:this.mobile, 
    +					smsCode:this.smsCode, 
    +					province:province, 
    +					city:city, 
    +					region:region,
    +					pushClientId:getPushInfo(),
    +					loginFrom:this.loginFrom,
    +					openid:this.openid,
    +					unionid:this.unionid,
    +					accessToken:this.accessToken,
    +					nickname:this.nickname,
    +					headImg:this.headImg,
    +					deviceId:this.deviceId
    +				})
    +			    .then(function (response) {
    +			    	var resData = response.data;
    +			    	if (resData.status) {
    +			    		$.toast(resData.message);
    +			    		localStorage.setItem("user_token", resData.data.token);
    +			    		localStorage.setItem("user_token_add_time", new Date().getTime());
    +			    		back();
    +			    	} else {
    +			    		$.toast(resData.message);
    +			    	}
    +			    	plus.nativeUI.closeWaiting();
    +			    })
    +			    .catch(function (error) {
    +			       $.toast(error);
    +			       plus.nativeUI.closeWaiting();
    +			    });
    +			}
    +		}
    +		
    +	}
    +});
    +
    +
    +document.addEventListener('plusready', onPlusReady, false);
    +function onPlusReady() { 
    +    var self = plus.webview.currentWebview();
    +    vue.$data.loginFrom = self.loginFrom;
    +    vue.$data.openid = self.openid;
    +    vue.$data.unionid = self.unionid;
    +    vue.$data.accessToken = self.accessToken;
    +    vue.$data.nickname = self.nickname;
    +    vue.$data.headImg = self.headImg;
    +    vue.$data.deviceId = plus.device.uuid;
    +}
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/user/codeSms.html b/fangija-zsyf/views/user/codeSms.html
    new file mode 100644
    index 0000000..8d8d267
    --- /dev/null
    +++ b/fangija-zsyf/views/user/codeSms.html
    @@ -0,0 +1,143 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>快捷登录</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<style>
    +	@media(max-height:400px) { 
    +		.loginMode{display:none;}
    +	}
    +</style>
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +       		<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">快捷登录</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="list-block media-list">
    +                <ul>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login01"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码">
    +                                    	<label>
    +                                            <span id="sendPhoneCode" class="sendCode theme" @click="sendCode()">获取验证码</span>
    +                                            <span id="getTime" class="waiting theme dn">60&nbsp;s</span>
    +                                        </label>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login02"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_codeSms" class="textAlignLeft" placeholder="请输入验证码">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +			<p class="agreement">
    +				<a class="check"><img class="checkImg" src="../../images/checkImg02.png" id="check"></a>
    +				我已阅读并接受<a onclick="openView()">《服务协议》</a>
    +			</p>
    +            <div class="content-block loginBox">
    +                <p><a class="button button-big button-fill theme" id="login_btn">登录</a></p>
    +                <p><a href="passLogin.html">账号密码登录</a></p>
    +            </div>
    +            <div class="content-block loginMode">
    +				<p class="line">
    +					<span>第三方登录</span>
    +				</p>
    +				<p>
    +					<a class="icon icon-loginMode01" id="wxLogin" onclick="loginInfo('weixin')"></a>
    +					<a class="icon icon-loginMode02" id="qqLogin" onclick="loginInfo('sinaweibo')"></a>
    +					<a class="icon icon-loginMode03" id="qqLogin" onclick="loginInfo('qq')"></a>
    +				</p>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/plus.info.js"></script>
    +<script type="text/javascript" src="../../js/login/codeSms.js" ></script>
    +<script type="text/javascript" src="../../js/login/thirdLogin.js" ></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +
    +<script>
    +
    +window.viewsPage="codeSms";
    +/* 勾选-已阅读 */
    +$(".check").on("click", function () {
    +	var a = $(this).find(".checkImg").css("display");
    +	if(a == "block"){
    +		$(".checkImg").hide();
    +	}else{
    +		$(".checkImg").show();
    +	}
    +});
    +
    +
    +function openView() {
    +	clicked(BASE_PATH + '/user/agreement',true)
    +}
    +
    +/* 防止软键盘弹出所引起的定位问题 */
    +//var winHeight = $(window).height();   // 获取当前页面高度
    +//$(window).resize(function(){
    +//	var thisHeight = $(this).height();
    +//  if(winHeight - thisHeight > 50){
    +//      //当软键盘弹出,在这里面操作
    +//		$(".loginMode").hide();
    +//  }else{
    +//      //当软键盘收起,在此处操作
    +//		$(".loginMode").show();
    +//  }
    +//});
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/user/passLogin.html b/fangija-zsyf/views/user/passLogin.html
    new file mode 100644
    index 0000000..c6c13a6
    --- /dev/null
    +++ b/fangija-zsyf/views/user/passLogin.html
    @@ -0,0 +1,185 @@
    +
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>账号密码登录</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +<style>
    +	@media(max-height:400px) { 
    +		.loginMode{display:none;}
    +	}
    +</style>
    +</head>
    +
    +<body>
    +
    +<div class="page-group" id="app">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +       		<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">账号密码登录</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="list-block media-list">
    +                <ul>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login01"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="number" v-model="mobile" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码">
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login03"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="password" v-model="pass" id="input_password" class="textAlignLeft" placeholder="请输入密码">
    +                                    	<i class="icon icon-eye-grey" @click="show"></i>
    +                                    	<i class="icon icon-eye-orange dn" @click="hide"></i>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="content-block loginBox">
    +                <p><a class="button button-big button-fill theme" id="login_btn" @click="passLogin">登录</a></p>
    +                <p><a href="codeSms.html">快捷登录</a></p>
    +            </div>
    +            <div class="content-block loginMode">
    +				<p class="line">
    +					<span>第三方登录</span>
    +				</p>
    +				<p>
    +					<a class="icon icon-loginMode01" id="wxLogin" onclick="loginInfo('weixin')"></a>
    +					<a class="icon icon-loginMode02" id="qqLogin" onclick="loginInfo('sinaweibo')"></a>
    +					<a class="icon icon-loginMode03" id="qqLogin" onclick="loginInfo('qq')"></a>
    +				</p>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js" ></script>
    +<script type="text/javascript" src="../../js/zepto.md5.js" ></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/plus.info.js" ></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/login/thirdLogin.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +
    +new Vue({
    +	el: '#app',
    +	data: {
    +		mobile: '',
    +		pass: ''
    +	},
    +	methods: {
    +		// 手机号码检查
    +		checkMobile: function() {
    +			if(this.mobile == ""){
    +				$.toast("请输入手机号码");
    +				return false;
    +			}
    +			var mobile_reg = /^1\d{10}$/
    +			if (!mobile_reg.test(this.mobile)) {
    +				$.toast("手机号码格式错误");
    +				return false;
    +			}
    +			return true;
    +		},
    +		// 密码登录
    +		passLogin: function() {
    +			if (this.checkMobile()) {
    +				if (this.pass == '') {
    +					$.toast("请输入密码");
    +					return;
    +				}
    +				plus.nativeUI.showWaiting();
    +				axios.post("/rest/user/passLogin", {mobile:this.mobile, pass: $.md5(this.pass), pushClientId:getPushInfo()})
    +			    .then(function (response) {
    +			    	var resData = response.data;
    +			    	if (resData.status) {
    +			    		// 用户登录成功的TOKEN
    +			    		var token = resData.data;
    +			    		localStorage.setItem("user_token", token);
    +			    		localStorage.setItem("user_token_add_time", new Date().getTime());
    +			    		$.toast(resData.message);
    +			    		back();
    +			    	} else {
    +			    		$.toast(resData.message);
    +			    	}
    +			    	plus.nativeUI.closeWaiting();
    +			    })
    +			    .catch(function (error) {
    +			       $.toast(error);
    +			       plus.nativeUI.closeWaiting();
    +			    });
    +			}
    +		},
    +		/* 密码显示&隐藏 */
    +		show: function() {
    +			$(".list-block .item-after .icon-eye-grey").hide();
    +			$(".list-block .item-after .icon-eye-orange").show();
    +			$("#input_password").attr("type","text");
    +		},
    +		hide: function() {
    +			$(".list-block .item-after .icon-eye-orange").hide();
    +			$(".list-block .item-after .icon-eye-grey").show();
    +			$("#input_password").attr("type","password");
    +		}
    +	}
    +});
    +
    +/* 防止软键盘弹出所引起的定位问题 */
    +//var winHeight = $(window).height();   // 获取当前页面高度
    +//$(window).resize(function(){
    +//	var thisHeight = $(this).height();
    +//  if(winHeight - thisHeight > 50){
    +//      //当软键盘弹出,在这里面操作
    +//		$(".loginMode").hide();
    +//  }else{
    +//      //当软键盘收起,在此处操作
    +//		$(".loginMode").show();
    +//  }
    +//});
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/user/updatePass.html b/fangija-zsyf/views/user/updatePass.html
    new file mode 100644
    index 0000000..a43a922
    --- /dev/null
    +++ b/fangija-zsyf/views/user/updatePass.html
    @@ -0,0 +1,164 @@
    +
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>设置密码</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group" id="app">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav">
    +       		<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<h1 class="title">设置密码</h1>
    +		</header>
    +        <div class="content">
    +        	<div class="list-block media-list">
    +                <ul>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login01"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="number" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码" v-model="mobile" readonly>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                    <li>
    +                        <a class="item-content">
    +                            <div class="item-inner">
    +                                <div class="item-title-row">
    +                                    <div class="item-title"><i class="icon icon-login03"></i></div>
    +                                    <div class="item-after">
    +                                    	<input type="password" id="input_password" v-model="pass"  class="textAlignLeft" placeholder="请输入6位以上数字或字母">
    +                                    	<i class="icon icon-eye-grey" @click="show"></i>
    +                                    	<i class="icon icon-eye-orange dn" @click="hide"></i>
    +                                    </div>
    +                                </div>
    +                            </div>
    +                        </a>
    +                    </li>
    +                </ul>
    +            </div>
    +            <div class="content-block loginBox">
    +                <p><a class="button button-big button-fill theme" @click="updatePass">确认</a></p>
    +                <p><a onclick="back()">跳过</a></p>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +
    +<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js" ></script>
    +<script type="text/javascript" src="../../js/zepto.md5.js" ></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/common.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script>
    +
    +new Vue({
    +	el: '#app',
    +	data: {
    +		mobile: '',
    +		pass: ''
    +	},
    +	methods: {
    +		// 加载用户手机号码
    +		loadUserMobile: function() {
    +			var that = this;
    +			axios.get("/rest/user/info")
    +		    .then(function (response) {
    +		    	var resData = response.data;
    +		    	if (resData.status) {
    +		    		that.mobile = resData.data.mobile
    +		    	} else {
    +		    		$.toast(resData.message);
    +		    	}
    +		    })
    +		    .catch(function (error) {
    +		       $.toast(error);
    +		    });
    +		},
    +		// 修改密码
    +		updatePass: function() {
    +			if (this.pass == '') {
    +				$.toast("请输入密码");
    +				return;
    +			}
    +			var reg = /^[a-zA-Z0-9]{1,}$/; 
    +			if (!reg.test(this.pass)){
    +				$.toast("请输入6位以上数字或字母");
    +				return;
    +			}
    +			if (this.pass.length < 7) {
    +				$.toast("请输入6位以上数字或字母");
    +				return;
    +			}
    +			plus.nativeUI.showWaiting();
    +			axios.post("/rest/user/upass", {newPass: $.md5(this.pass)})
    +		    .then(function (response) {
    +		    	var resData = response.data;
    +		    	if (resData.status) {
    +		    		$.toast(resData.message);
    +		    		back();
    +		    	} else {
    +		    		$.toast(resData.message);
    +		    	}
    +		    	plus.nativeUI.closeWaiting();
    +		    })
    +		    .catch(function (error) {
    +		       $.toast(error);
    +		       plus.nativeUI.closeWaiting();
    +		    });
    +		},
    +		/* 密码显示&隐藏 */
    +		show: function() {
    +			$(".list-block .item-after .icon-eye-grey").hide();
    +			$(".list-block .item-after .icon-eye-orange").show();
    +			$("#input_password").attr("type","text");
    +		},
    +		hide: function() {
    +			$(".list-block .item-after .icon-eye-orange").hide();
    +			$(".list-block .item-after .icon-eye-grey").show();
    +			$("#input_password").attr("type","password");
    +		}
    +	},
    +	mounted(){
    +		this.loadUserMobile();
    +	}
    +});
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html
    new file mode 100644
    index 0000000..030e992
    --- /dev/null
    +++ b/fangija-zsyf/views/user/userInfo.html
    @@ -0,0 +1,428 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>个人中心</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">
    +<link rel="stylesheet" href="../../css/sm.css">
    +<link rel="stylesheet" href="../../css/main.css">
    +<link rel="stylesheet" href="../../css/theme-orange.css">
    +
    +<style>
    +	.topic .topicContent .topicContent_center.home div .icon{width:42px;height:42px;}
    +	.topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;}
    +	.buttons-tab .button{font-size:0.75rem;color:#999;line-height:2.5rem;height:2.5rem;}
    +	.list-block ul:before{height:0;}
    +	.cardInfo:first-child{border-top:none;}
    +	.page > header.bar{position:static;padding-left:0.75rem;padding-right:0.75rem;background:#fff;border-bottom:none;}
    +	.page > header.barBorder{border-bottom:solid 0px #e7e7e7;}
    +	.page > header.bar.theme{background:#F18D00;}
    +	.bar-nav.theme .icon.icon-left{color:#fff;}
    +	.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;}
    +	.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
    +	.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
    +	.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
    +	.list-block .item-title em{font-size:0.8rem;color:#EB5F34;}
    +	.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
    +	.contentBox{position:relative;}
    +	.pstion{position:absolute;top:0;height:572px;}
    +</style>
    +</head>
    +
    +<body>
    +
    +<div class="page-group" style="display: none;" id="page-group-nologin">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav theme">
    +			<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<button class="button button-link button-nav pull-right" onclick="openSettingPage()">
    +				<span class="icon icon-set"></span>
    +			</button>
    +		</header>
    +        <div class="content">
    +        	<div class="topBg01">
    +        		<img src="../../images/headPortrait.png">
    +        		<p><a class="button theme" href="#" onclick="gotoLogin()" >立即登录</a></p>
    +        	</div>
    +        	<div class="topic" style="display: none;">
    +				<div class="topicContent" style="padding-left:0;padding-right:0;">
    +					<div class="topicContent_center home">
    +						<div>
    +							<i class="icon icon-personal01"></i>
    +							<span>公积金查询</span>
    +						</div>
    +						<div>
    +							<i class="icon icon-personal02"></i>
    +							<span>算税费</span>
    +						</div>
    +						<div onclick="window.location.href='#'">
    +							<i class="icon icon-personal03"></i>
    +				 			<span>贷款评估</span>
    +						</div>
    +						<div>
    +							<i class="icon icon-personal04"></i>
    +							<span>算房贷</span>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +			<div class="buttons-tab fixed-tab theme" data-offset="44">
    +				<a href="#tab_house" class="tab-link button active">房产(0)</a>
    +				<a href="#tab_focus" class="tab-link button">关注(0)</a>
    +				<a href="#tab_collect" class="tab-link button">收藏(0)</a>
    +				<a href="#tab_message" class="tab-link button" style="display: none;">消息(0)</a>
    +			</div>
    +			<div class="tabs">
    +				<div id="tab_house" class="tab active">
    +					<div class="noData">
    +						<img src="../../images/noData.png">
    +					</div>
    +				</div>
    +				<div id="tab_focus" class="tab">
    +					<div class="noData">
    +						<img src="../../images/noData.png">
    +					</div>
    +				</div>
    +				<div id="tab_collect" class="tab">
    +					<div class="noData">
    +						<img src="../../images/noData.png">
    +					</div>
    +				</div>
    +				<div id="tab_message" class="tab">
    +					<div class="noData">
    +						<img src="../../images/noData.png">
    +					</div>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<div class="page-group" style="display: none;" id="page-group-login">
    +    <div class="page page-current">
    +       	<header class="bar bar-nav theme barBorder">
    +			<button class="button button-link button-nav pull-left" style="display: none;" onclick="back(),plus.nativeUI.closeWaiting();">
    +				<span class="icon icon-left"></span>
    +			</button>
    +			<button class="button button-link button-nav pull-right" onclick="openSettingPage()">
    +				<span class="icon icon-set"></span>
    +			</button>
    +		</header>
    +        <div class="content">
    +        	<div class="topBg01">
    +        		<!-- 目前是登录后点击个人头像设置密码 -->
    +        		<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
    +        		<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
    +        	</div>
    +        	<div class="topic" style="display: none;">
    +				<div class="topicContent" style="padding-left:0;padding-right:0;">
    +					<div class="topicContent_center home">
    +						<div>
    +							<i class="icon icon-personal01"></i>
    +							<span>公积金查询</span>
    +						</div>
    +						<div>
    +							<i class="icon icon-personal02"></i>
    +							<span>算税费</span>
    +						</div>
    +						<div onclick="window.location.href='#'">
    +							<i class="icon icon-personal03"></i>
    +				 			<span>贷款评估</span>
    +						</div>
    +						<div>
    +							<i class="icon icon-personal04"></i>
    +							<span>算房贷</span>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +			<div class="buttons-tab fixed-tab theme" data-offset="44" id="tab" v-cloak>
    +				<a href="#tabList1" class="tab-link button active">房产({{mh_num}})</a>
    +				<a href="#tabList2" class="tab-link button">关注({{mf_num}})</a>
    +				<a href="#tabList3" class="tab-link button">收藏({{mc_num}})</a>
    +				<a href="#tabList4" class="tab-link button" style="display: none;">消息(2)</a>
    +			</div>
    +			<div class="contentBox">
    +				<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
    +					<div class="tabs">
    +						<!-- 我的房产 -->
    +						<div id="tabList1" class="tab active">
    +							<div class="list-block media-list">
    +								<ul class="list-container" id="myhouse">
    +									
    +								</ul>
    +							</div>
    +							<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
    +				     		<div id="loadTip1" class="infinite-scroll-preloader">
    +				                <div class="preloader"></div>
    +				            </div>
    +						</div>
    +						<!-- 我的关注 -->
    +						<div id="tabList2" class="tab">
    +							<div class="list-block media-list">
    +								<ul class="list-container" id="mf_ul">
    +									
    +								</ul>
    +							</div>
    +							<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
    +							<div id="loadTip2" class="infinite-scroll-preloader">
    +								<div class="preloader"></div>
    +							</div>
    +						</div>
    +						<!-- 我的收藏 -->
    +						<div id="tabList3" class="tab">
    +							<div class="list-block media-list" id="myColect">
    +				               <!-- <ul class="list-container" >
    +				                	
    +				                </ul>-->
    +							</div>
    +							
    +							<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
    +				     		<div id="loadTip3" class="infinite-scroll-preloader">
    +				                <div class="preloader"></div>
    +				            </div>
    +						</div>
    +						<div id="tabList4" class="tab" style="display: none;">
    +							<div class="list-block media-list">
    +								<ul class="list-container">
    +									<li>
    +										<a href="#" class="item-content message01 message01-new">
    +											<div class="item-media"><i class="icon icon-message01"></i></div>
    +											<div class="item-inner">
    +												<div class="item-title-row">
    +													<div class="item-title">楼市降温这么明显,为什么降价的房子还是这么少?楼市降温这么明显,为什么降价的房子还是这么少?</div>
    +												</div>
    +												<div class="item-subtitle">2017-11-30 10:10</div>
    +											</div>
    +										</a>
    +									</li>
    +									<li>
    +										<a href="#" class="item-content message01">
    +											<div class="item-media"><i class="icon icon-message01"></i></div>
    +											<div class="item-inner">
    +												<div class="item-title-row">
    +													<div class="item-title">楼市降温这么明显,为什么降价的房子还是这么少?楼市降温这么明显,为什么降价的房子还是这么少?</div>
    +												</div>
    +												<div class="item-subtitle">2017-11-30 10:10</div>
    +											</div>
    +										</a>
    +									</li>
    +								</ul>
    +							</div>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/vue.js"></script>
    +<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../config.js"></script>
    +<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
    +<script type="text/javascript" src="../../js/axios.min.js"></script>
    +<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
    +<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
    +<script type="text/javascript" src="../../js/user/myFocus.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/user/myCollect.js" charset="utf-8"></script>
    +<script type="text/javascript" src="../../js/user/myHouse.js" charset="utf-8"></script>
    +<script>
    +/* 说明-房产等级 */
    +$(document).on('click','.alert-text-title', function () {
    +	$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
    +});
    +
    +//初始化init(init方法必须调用,屏蔽后,无线下拉刷新无效果)
    +$.init();
    +
    +//定义个人手机号,贷款页面需要传参数
    +var _mobile;
    +
    +var tab = new Vue({
    +	el:"#tab",
    +	data:{
    +		mh_num:"0",
    +		mf_num:"0",
    +		mc_num:"0"
    +	}
    +})
    +
    +//判断是否登录
    +function checkIsLogin(){
    +	if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
    +		$('#page-group-login').hide();
    +		$('#page-group-nologin').show();
    +	}else{
    +		//控制显示
    +		$('#page-group-nologin').hide();
    +		$('#page-group-login').show();
    +		//加载个人信息
    +		selectUserInfo();
    +		//加载我的关注
    +		addEstate(mf_itemsPerLoad, 0);
    +		//加载我的房产
    +		selectHouseInfoList();
    +		//加载我的收藏
    +		selectNewsCollectList();
    +	}
    +}
    +
    +//跳转登录方法, 考虑回调
    +function gotoLogin(){
    +	clicked('/views/user/codeSms.html',true,false,{},{},function(){
    +		plus.webview.getWebviewById('views/house/houseManageList.html').reload();
    +		//plus.webview.getWebviewById('yfindex.html').reload();
    +		plus.webview.getWebviewById('views/house/houseDetail.html').reload();
    +		checkIsLogin();
    +	})
    +}
    +
    +//跳转设置密码方法
    +function gotoUpdatePass(){
    +	clicked('/views/user/updatePass.html',true,false,{},{},function(){})
    +}
    +
    +//跳转房产申请贷款
    +function gotoLoanApply(houseId, city){
    +	clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){})
    +}
    +
    +//跳转到小区详情
    +function gotoDistrictDetail(city,region,name){
    +	clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name},function(){})
    +}
    +
    +//跳转房产详情
    +function gotoHouseDetail(id){
    +  clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){
    +  })
    +}
    +
    +//注册'infinite'事件处理函数
    +$(document).on('infinite', '.infinite-scroll',function() {
    +	if($("#tabList1").hasClass("active")){
    +    	// 如果正在加载,则退出
    +		if(mh_loading) return;
    +		// 设置flag
    +		mh_loading = true;
    +		// 模拟1s的加载过程
    +		setTimeout(function() {
    +			// 重置加载flag
    +			mh_loading = false;
    +			//如果当前页大于等于总页数
    +			if(mh_page >= mh_totalPages) {
    +				// 加载完毕,则注销无限加载事件,以防不必要的加载
    +				//$.detachInfiniteScroll($('.infinite-scroll'));
    +				// 删除加载提示符
    +				$('#loadTip1').remove();
    +				return;
    +			}
    +			//控制查询下一页的数据
    +			mh_page = mh_page + 1;
    +			selectHouseInfoList();
    +			//容器发生改变,如果是js滚动,需要刷新滚动
    +			//$.refreshScroller();
    +		}, 1000);
    +    }
    +	if($("#tabList2").hasClass("active")){
    +		// 如果正在加载,则退出
    +		if (mf_loading) return;
    +		// 设置flag
    +		mf_loading = true;
    +		// 模拟1s的加载过程
    +		setTimeout(function() {
    +			// 重置加载flag
    +			mf_loading = false;
    +			// 更新最后加载的序号
    +			mf_lastIndex  = $('#mf_ul').find('li').length;
    +			if (mf_lastIndex >= mf_totalCount) {
    +				// 加载完毕,则注销无限加载事件,以防不必要的加载
    +				//$.detachInfiniteScroll($('.infinite-scroll'));
    +				// 删除加载提示符
    +				$('#loadTip2').remove();
    +					return;
    +			}
    +			// 添加新条目
    +			addEstate(mf_itemsPerLoad, $('#mf_ul').find('li').length);
    +			//容器发生改变,如果是js滚动,需要刷新滚动
    +			// $.refreshScroller();
    +		}, 1000);
    +    }
    +    if($("#tabList3").hasClass("active")){
    +    	// 如果正在加载,则退出
    +		if(mc_loading) return;
    +		// 设置flag
    +		mc_loading = true;
    +		// 模拟1s的加载过程
    +		setTimeout(function() {
    +			// 重置加载flag
    +			mc_loading = false;
    +			//如果当前页大于等于总页数
    +			if(mc_page >= mc_totalPages) {
    +				// 加载完毕,则注销无限加载事件,以防不必要的加载
    +				//$.detachInfiniteScroll($('.infinite-scroll'));
    +				// 删除加载提示符
    +				$('#loadTip3').remove();
    +				return;
    +			}
    +			//控制查询下一页的数据
    +			mc_page = mc_page + 1;
    +			selectNewsCollectList();
    +			//容器发生改变,如果是js滚动,需要刷新滚动
    +			//$.refreshScroller();
    +		}, 1000);
    +    }
    +});
    +
    +//个人信息展示
    +function selectUserInfo(){
    +	axios.get(BASE_PATH + "/rest/user/info", 
    +		{
    +			params: {}
    +		}).then(function (response) {
    +			var result = response.data.data;
    +			var mobile = result.mobile;
    +			//加载个人信息时候为该变量赋值
    +			_mobile = result.mobile;
    +			$('#user_mobile').html(mobile.substring(0,3)+'****'+mobile.substring(7)+'<br><span class="tag"><!--<small>土豪</small>--></span>');
    +			if(result.headImg != null && result.headImg.length > 0){
    +				$('#user_headImg').attr('src', result.headImg);
    +			}
    +	}).catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function openSettingPage() {
    +	clicked('../setting/setting.html',true,false,{},{},function(){})
    +}
    +
    +document.addEventListener('plusready', onPlusReady, false);
    +
    +function onPlusReady(){
    +    checkIsLogin();
    +}
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file
    diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html
    new file mode 100644
    index 0000000..ce512cf
    --- /dev/null
    +++ b/fangija-zsyf/yfindex.html
    @@ -0,0 +1,2765 @@
    +<!DOCTYPE html>
    +<html>
    +<head>
    +<meta charset="utf-8">
    +<meta http-equiv="X-UA-Compatible" content="IE=edge">
    +<title>首页</title>
    +<meta name="viewport" content="initial-scale=1, maximum-scale=1">
    +<link rel="shortcut icon" href="/favicon.ico">
    +<meta name="apple-mobile-web-app-capable" content="yes">
    +<meta name="apple-mobile-web-app-status-bar-style" content="black">	
    +
    +<link rel="stylesheet" href="css/sm.css">
    +<link rel="stylesheet" href="css/main.css">
    +<link rel="stylesheet" href="css/city.css">
    +<link rel="stylesheet" href="css/theme-orange.css">
    +
    +<style>
    +	.selectBox{border-top:solid 0.5rem #f3f3f3;}
    +	.cardInfo:first-child{border-top:none;}
    +	.info-container input{float:none;width:100%;}
    +	.picker-item{padding:0 5rem;font-size:18px;}
    +	.pull-to-refresh-layer .preloader{visibility: visible; }
    +	
    +</style>
    +    
    +</head>
    +
    +<body>
    +
    +<div class="page-group">
    +    <div class="page page-current">
    +		<!-- 加载loading页  -->
    +    	<div class="loadingBg">
    +    		<div class="infinite-scroll-preloader">
    +              <div class="preloader"></div>
    +          	</div>
    +    	</div>
    +       	<div class="bar top">
    +			<div class="searchBox">
    +				<div class="cityChoice open-about01"><a id="input_city"></a><i></i></div>
    +				<span class="open-about02"><i></i><input type="text" id="input_address" placeholder="搜索小区" readonly="readonly"></span>
    +                <input name ="region" type="text" style="display:none;"/>
    +                <input name ="cityAddress" id="cityAddress" type="text" style="display:none;"/>
    +                <input id="address" name = "address"  type="hidden"/>
    +			</div>
    +		</div>
    +        <div class="content infinite-scroll infinite-scroll-bottom pstion pull-to-refresh-content" data-distance="50" data-ptr-distance="30">
    +			  <!-- 默认的下拉刷新层 -->
    +			    <div class="pull-to-refresh-layer dn">
    +			        <div class="preloader"></div>
    +			        <!--<div class="pull-to-refresh-arrow"></div>-->
    +			    </div>
    +    
    +			<div class="card cardPrice" id="baseInfo" v-cloak>
    +				<div class="card-header">
    +					<span>{{topMonth}}月份均价</span>
    +					<span>
    +						<i class="icon icon-address04"></i>
    +						<input type="hidden" id="region_copy" v-model="region" readonly="readonly">
    +						<a id="region">{{region}}</a>
    +						<i class="icon icon-down" id="regionIcon"></i>
    +					</span>
    +				</div>
    +				<div class="card-content">
    +					<div class="card-content-inner" id="momAvgPriceId_noData">暂无数据</div>
    +					<div class="card-content-inner" id="momAvgPriceId">{{momAvgPrice}}<span>元/㎡</span></div>
    +				</div>
    +				<div class="card-footer">
    +					<span>
    +						<em id="momRateId_noData">暂无数据
    +						</em>
    +						<em id="momRateId"><strong>{{momRate}}</strong>%
    +							<i class="icon" id="momRateTypeClass"></i>
    +						</em>
    +						<label>环比上月</label>
    +					</span>
    +					<span>
    +						<em id="regionRankId_noData">暂无数据
    +						</em>
    +						<em id="regionRankId"><strong>{{regionRank}}</strong></em>
    +						<label>区域均价排名</label>
    +					</span>
    +					<span>
    +						<em id="priceRateId_noData">暂无数据
    +						</em>
    +						<em id="priceRateId"><strong>{{priceRate}}</strong>%<i class="icon" id="priceRateTypeClass"></i></em>
    +						<label id="priceInfo">下跌概率</label>
    +					</span>
    +				</div>
    +			</div>
    +            <div class="topic" style="border-bottom:none;">
    +				<div class="topicContent" style="padding-left:0;padding-right:0;">
    +					<div class="topicContent_center home">
    +						<div onclick="openNewView('views/house/houseList.html')" id="addHouseDiv">
    +							<i class="icon icon-home01"></i>
    +							<span>房产管理</span>
    +						</div>
    +						<!--<div onclick="openNewView('views/house/houseList.html')" id="detailHouseDiv">
    +							<i class="icon icon-home01"></i>
    +							<span>我的房产</span>
    +						</div>-->
    +						<div onclick="openNewView('views/intelligentHouse/index.html')">	
    +							<i class="icon icon-home02"></i>
    +							<span>智能选房</span>
    +						</div>
    +						<div class="open-about02">
    +							<i class="icon icon-home03"></i>
    +				 			<span>房价查询</span>
    +						</div>
    +						<div class="open-about02">
    +							<i class="icon icon-home04"></i>
    +							<span>房租查询</span>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +			<div id="ShangHaiDiv">
    +				<div class="content-block-title cardNearbyName" id="nearAddress"><i class="icon icon-address02"></i><span id="nearDistrictSpan"></span><i class="icon arrow-up"></i></div>
    +	     		<div class="cardNearbyBox"  id="nearDistricts">
    +	     		</div>
    +	     		<div class="content-block-title recommend" id="todayNews">今日推荐</div>
    +	     		<div id="newsList">
    +	     			
    +	     		</div>
    +	     		
    +	     		
    +	     		<div class="infinite-scroll-preloader">
    +	                <div class="preloader"></div>
    +	            </div>
    +			</div>	
    +     		
    +     		<!-- 加载提示符 -->
    +     		<div id="otherCityDiv">
    +     			<div class="selectContainer">
    +     			<div class="selectBox row">
    +					<div class="region col-25 theme"><a>区域</a><i class="icon icon-down"></i></div>
    +					<div class="price col-25 theme" id="select_price_div"><a>均价</a><i class="icon icon-down"></i></div>
    +					<div class="filter col-25 theme"><a>标签</a><i class="icon icon-down"></i></div>
    +					<div class="order col-25 theme"><a>距离近优先</a><i class="icon icon-down"></i></div>
    +				</div>
    +				
    +					<div class="selectContent dn">
    +						<div class="topic dn" id="select_region">
    +							<div class="topicContent" style="padding:0.2rem 0.75rem;" id="regionDiv">
    +							</div>
    +						</div>
    +						<div class="list-block dn" id="select_price">
    +						</div>
    +						<div class="topic dn" id="select_filter">
    +							<div class="topicContent" style="padding:0.2rem 0.75rem;">
    +								<p class="buttons-row buttons-row01 buttons-row01a theme">
    +									<a class="button">近地铁</a>
    +									<a class="button">公交多</a>
    +									<a class="button">买菜做饭</a>
    +									<a class="button">商超便利</a>
    +								</p>
    +								<p class="buttons-row buttons-row01 buttons-row01a theme">
    +									<a class="button">爱逛街</a>
    +									<a class="button">在外面吃</a>
    +									<a class="button">近医疗</a>
    +									<a class="button">近幼儿园</a>
    +								</p>
    +								<p class="buttons-row buttons-row01 buttons-row01a theme">
    +									<a class="button">近小学</a>
    +									<a class="button">近中学</a>
    +								</p>
    +							</div>
    +							<div class="content-block content-block01">
    +								<div class="row">
    +									<div class="col-50"><a href="#" class="button button-big button-fill theme reset_btn">重置</a></div>
    +									<div class="col-50"><a href="#" class="button button-big button-fill theme confirm_btn">确定</a></div>
    +								</div>
    +							</div>
    +						</div>
    +						<div class="list-block dn" id="select_order">
    +							<ul>
    +								<li class="item-content">
    +									<div class="item-inner">
    +										<div id="distanceOrder" class="item-title theme active" data-id="1"><i class="icon icon-check"></i>距离近优先</div>
    +									</div>
    +								</li>
    +								<li class="item-content">
    +									<div class="item-inner">
    +										<div class="item-title theme" data-id="2"><i class="icon"></i>均价低优先</div>
    +									</div>
    +								</li>
    +								<li class="item-content">
    +									<div class="item-inner">
    +										<div class="item-title theme" data-id="3"><i class="icon"></i>按涨幅排序</div>
    +									</div>
    +								</li>
    +								<li class="item-content">
    +									<div class="item-inner">
    +										<div class="item-title theme" data-id="4"><i class="icon"></i>按跌幅排序</div>
    +									</div>
    +								</li>
    +								<!--<li class="item-content">
    +									<div class="item-inner">
    +										<div class="item-title theme" data-id="5"><i class="icon"></i>租金回报率排序</div>
    +									</div>
    +								</li>-->
    +								<li class="item-content">
    +									<div class="item-inner">
    +										<div id="indexOrder" class="item-title theme" data-id="6"><i class="icon"></i>按潜力指数</div>
    +									</div>
    +								</li>
    +							</ul>
    +						</div>
    +						</div>
    +					</div>
    +		      		<div class="list-block media-list" id="nearDistrictContainer">
    +						<div class="list-block">
    +							<ul class="list-container">
    +							</ul>
    +						</div>
    +		        	</div>
    +		        	<div class="infinite-scroll-preloader">
    +	                	<div class="preloader"></div>
    +		           	</div>
    +     		</div>
    +     		
    +    </div>
    +</div>
    +
    +<!-- About Popup -->
    +<div class="popup popup-about popup-about01">
    +    <div class="bar">
    +        <div class="searchbar row">
    +           	<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +            <div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="citySearchInp" placeholder="请输入城市名称进行搜索">
    +            </div>
    +        </div>
    +        
    +        <div class="buttons-tab theme">
    +			<a href="#tabCity1" class="tab-link button active">按拼音字母</a>
    +			<a href="#tabCity2" class="tab-link button">按城市等级</a>
    +		</div>
    +    </div>
    +    
    +    <div class="content-block content-block01 content dn" style="top:66px;z-index:100;" id="selectContainer">
    +		<div class="container" style="top:0;">
    +			<div class="city" style="width:100%;">
    +				<div class="city-list"></div>
    +			</div>
    +		</div>	
    +	</div>
    +	
    +				
    +	<div class="tabs">
    +		<div id="tabCity1" class="tab active">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer" class="container">
    +					<div class="cityGPS">
    +						<div class="city-list01 close-popup">
    +							<p class="nowCity">上海</p>
    +							<small>当前城市</small>
    +						</div>
    +					</div>
    +					<div class="cityHot">
    +						<div class="city-list01">
    +							<span class="city-letter" id="Hot">热门城市</span>
    +							<div>
    +								<p class="close-popup">北京<i></i></p>
    +								<p class="close-popup">上海<i></i></p>
    +								<p class="close-popup">广州<i></i></p>
    +							</div>
    +							<div>
    +								<p class="close-popup">深圳<i></i></p>
    +								<p class="close-popup">成都<i></i></p>
    +								<p class="close-popup">杭州<i></i></p>
    +							</div>
    +							<div>
    +								<p class="close-popup">南京<i></i></p>
    +								<p class="close-popup">重庆<i></i></p>
    +								<p class="close-popup">天津<i></i></p>
    +							</div>
    +						</div>
    +					</div>
    +					<div class="city">
    +						<div class="city-list"><span class="city-letter" id="A1">A</span>
    +							<p class="close-popup">阿坝州<i></i></p>
    +							<p class="close-popup">阿克苏<i></i></p>
    +							<p class="close-popup">阿拉尔<i></i></p>
    +							<p class="close-popup">阿勒泰<i></i></p>
    +							<p class="close-popup">阿里<i></i></p>
    +							<p class="close-popup">阿拉善盟<i></i></p>
    +							<p class="close-popup">鞍山<i></i></p>
    +							<p class="close-popup">安康<i></i></p>
    +							<p class="close-popup">安阳<i></i></p>
    +							<p class="close-popup">安庆<i></i></p>
    +							<p class="close-popup">安顺<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="B1">B</span>
    +							<p class="close-popup">百色<i></i></p>
    +							<p class="close-popup">白沙<i></i></p>
    +							<p class="close-popup">白城<i></i></p>
    +							<p class="close-popup">白山<i></i></p>
    +							<p class="close-popup">白银<i></i></p>
    +							<p class="close-popup">包头<i></i></p>
    +							<p class="close-popup">保定<i></i></p>
    +							<p class="close-popup">宝鸡<i></i></p>
    +							<p class="close-popup">保山<i></i></p>
    +							<p class="close-popup">保亭<i></i></p>
    +							<p class="close-popup">巴彦淖尔<i></i></p>
    +							<p class="close-popup">巴音郭楞<i></i></p>
    +							<p class="close-popup">巴中<i></i></p>
    +							<p class="close-popup">蚌埠<i></i></p>                       
    +							<p class="close-popup">北海<i></i></p>
    +							<p class="close-popup">本溪<i></i></p>
    +							<p class="close-popup">毕节<i></i></p>
    +							<p class="close-popup">滨州<i></i></p>
    +							<p class="close-popup">北京<i></i></p>
    +							<p class="close-popup">博尔塔拉<i></i></p>
    +							<p class="close-popup">亳州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="C1">C</span>
    +							<p class="close-popup">成都<i></i></p>
    +							<p class="close-popup">赤峰<i></i></p>
    +							<p class="close-popup">长春<i></i></p>
    +							<p class="close-popup">长治<i></i></p>
    +							<p class="close-popup">长沙<i></i></p>
    +							<p class="close-popup">常德<i></i></p>
    +							<p class="close-popup">常州<i></i></p>
    +							<p class="close-popup">昌都<i></i></p>
    +							<p class="close-popup">昌吉<i></i></p>
    +							<p class="close-popup">昌江<i></i></p>
    +							<p class="close-popup">潮州<i></i></p>
    +							<p class="close-popup">承德<i></i></p>
    +							<p class="close-popup">郴州<i></i></p>
    +							<p class="close-popup">池州<i></i></p>
    +							<p class="close-popup">崇左<i></i></p>
    +							<p class="close-popup">楚雄<i></i></p>
    +							<p class="close-popup">滁州<i></i></p>
    +							<p class="close-popup">澄迈<i></i></p>
    +							<p class="close-popup">重庆<i></i></p>
    +							<p class="close-popup">朝阳<i></i></p>
    +							<p class="close-popup">沧州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="D1">D</span>
    +							<p class="close-popup">定安<i></i></p>
    +							<p class="close-popup">定西<i></i></p>
    +							<p class="close-popup">大理<i></i></p>
    +							<p class="close-popup">大庆<i></i></p>
    +							<p class="close-popup">大兴安岭<i></i></p>
    +							<p class="close-popup">大连<i></i></p>
    +							<p class="close-popup">大同<i></i></p>
    +							<p class="close-popup">丹东<i></i></p>
    +							<p class="close-popup">儋州<i></i></p>
    +							<p class="close-popup">迪庆州<i></i></p>
    +							<p class="close-popup">达州<i></i></p>
    +							<p class="close-popup">德阳<i></i></p>
    +							<p class="close-popup">德宏州<i></i></p>
    +							<p class="close-popup">德州<i></i></p>
    +							<p class="close-popup">东方<i></i></p>
    +							<p class="close-popup">东莞<i></i></p>
    +							<p class="close-popup">东营<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="E1">E</span>
    +							<p class="close-popup">鄂尔多斯<i></i></p>
    +							<p class="close-popup">恩施<i></i></p>
    +							<p class="close-popup">鄂州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="F1">F</span>
    +							<p class="close-popup">防城港<i></i></p>
    +							<p class="close-popup">佛山<i></i></p>
    +							<p class="close-popup">抚顺<i></i></p>
    +							<p class="close-popup">抚州<i></i></p>
    +							<p class="close-popup">阜新<i></i></p>
    +							<p class="close-popup">阜阳<i></i></p>
    +							<p class="close-popup">福州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="G1">G</span>
    +							<p class="close-popup">甘南<i></i></p>
    +							<p class="close-popup">甘孜州<i></i></p>
    +							<p class="close-popup">赣州<i></i></p>
    +							<p class="close-popup">贵港<i></i></p>
    +							<p class="close-popup">贵阳<i></i></p>
    +							<p class="close-popup">桂林<i></i></p>
    +							<p class="close-popup">果洛州<i></i></p>
    +							<p class="close-popup">固原<i></i></p>
    +							<p class="close-popup">广安<i></i></p>
    +							<p class="close-popup">广元<i></i></p>
    +							<p class="close-popup">广州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="H1">H</span>
    +							<p class="close-popup">哈尔滨<i></i></p>
    +							<p class="close-popup">哈密<i></i></p>
    +							<p class="close-popup">海北州<i></i></p>
    +							<p class="close-popup">海口<i></i></p>
    +							<p class="close-popup">海南州<i></i></p>
    +							<p class="close-popup">海西州<i></i></p>
    +							<p class="close-popup">海东<i></i></p>
    +							<p class="close-popup">邯郸<i></i></p>
    +							<p class="close-popup">汉中<i></i></p>
    +							<p class="close-popup">鹤壁<i></i></p>
    +							<p class="close-popup">鹤岗<i></i></p>
    +							<p class="close-popup">河池<i></i></p>
    +							<p class="close-popup">河源<i></i></p>
    +							<p class="close-popup">合肥<i></i></p>
    +							<p class="close-popup">黑河<i></i></p>
    +							<p class="close-popup">衡水<i></i></p>
    +							<p class="close-popup">衡阳<i></i></p>
    +							<p class="close-popup">和田<i></i></p>
    +							<p class="close-popup">菏泽<i></i></p>
    +							<p class="close-popup">贺州<i></i></p>
    +							<p class="close-popup">黄冈<i></i></p>
    +							<p class="close-popup">红河<i></i></p>
    +							<p class="close-popup">淮安<i></i></p>
    +							<p class="close-popup">淮北<i></i></p>
    +							<p class="close-popup">淮南<i></i></p>
    +							<p class="close-popup">怀化<i></i></p>
    +							<p class="close-popup">黄南州<i></i></p>
    +							<p class="close-popup">黄山<i></i></p>
    +							<p class="close-popup">黄石<i></i></p>
    +							<p class="close-popup">呼和浩特<i></i></p>
    +							<p class="close-popup">呼伦贝尔<i></i></p>
    +							<p class="close-popup">惠州<i></i></p>
    +							<p class="close-popup">葫芦岛<i></i></p>
    +							<p class="close-popup">湖州<i></i></p>
    +							<p class="close-popup">杭州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="J1">J</span>
    +							<p class="close-popup">吉安<i></i></p>
    +							<p class="close-popup">吉林<i></i></p>
    +							<p class="close-popup">晋城<i></i></p>
    +							<p class="close-popup">晋中<i></i></p>
    +							<p class="close-popup">景德镇<i></i></p>
    +							<p class="close-popup">佳木斯<i></i></p>
    +							<p class="close-popup">江门<i></i></p>
    +							<p class="close-popup">焦作<i></i></p>
    +							<p class="close-popup">嘉兴<i></i></p>
    +							<p class="close-popup">嘉峪关<i></i></p>
    +							<p class="close-popup">揭阳<i></i></p>
    +							<p class="close-popup">金昌<i></i></p>
    +							<p class="close-popup">金华<i></i></p>
    +							<p class="close-popup">济宁<i></i></p>
    +							<p class="close-popup">济南<i></i></p>
    +							<p class="close-popup">济源<i></i></p>
    +							<p class="close-popup">锦州<i></i></p>
    +							<p class="close-popup">九江<i></i></p>
    +							<p class="close-popup">酒泉<i></i></p>
    +							<p class="close-popup">荆门<i></i></p>
    +							<p class="close-popup">荆州<i></i></p>
    +							<p class="close-popup">鸡西<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="K1">K</span>
    +							<p class="close-popup">喀什<i></i></p>
    +							<p class="close-popup">克拉玛依<i></i></p>
    +							<p class="close-popup">克孜勒苏<i></i></p>
    +							<p class="close-popup">开封<i></i></p>
    +							<p class="close-popup">昆明<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="L1">L</span>
    +							<p class="close-popup">六安<i></i></p>
    +							<p class="close-popup">来宾<i></i></p>
    +							<p class="close-popup">廊坊<i></i></p>
    +							<p class="close-popup">兰州<i></i></p>
    +							<p class="close-popup">拉萨<i></i></p>                        
    +							<p class="close-popup">娄底<i></i></p>
    +							<p class="close-popup">乐东<i></i></p>
    +							<p class="close-popup">乐山<i></i></p>
    +							<p class="close-popup">凉山州<i></i></p>
    +							<p class="close-popup">聊城<i></i></p>
    +							<p class="close-popup">辽阳<i></i></p>
    +							<p class="close-popup">辽源<i></i></p>
    +							<p class="close-popup">丽江<i></i></p>
    +							<p class="close-popup">丽水<i></i></p>
    +							<p class="close-popup">临沧<i></i></p>
    +							<p class="close-popup">临高<i></i></p>
    +							<p class="close-popup">临汾<i></i></p>
    +							<p class="close-popup">临夏<i></i></p>
    +							<p class="close-popup">临沂<i></i></p>
    +							<p class="close-popup">陵水<i></i></p>
    +							<p class="close-popup">林芝<i></i></p>
    +							<p class="close-popup">六盘水<i></i></p>
    +							<p class="close-popup">柳州<i></i></p>
    +							<p class="close-popup">吕梁<i></i></p>
    +							<p class="close-popup">陇南<i></i></p>
    +							<p class="close-popup">龙岩<i></i></p>
    +							<p class="close-popup">漯河<i></i></p>
    +							<p class="close-popup">洛阳<i></i></p>
    +							<p class="close-popup">莱芜<i></i></p>
    +							<p class="close-popup">连云港<i></i></p>
    +							<p class="close-popup">泸州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="M1">M</span>
    +							<p class="close-popup">茂名<i></i></p>
    +							<p class="close-popup">马鞍山<i></i></p>
    +							<p class="close-popup">眉山<i></i></p>
    +							<p class="close-popup">梅州<i></i></p>
    +							<p class="close-popup">绵阳<i></i></p>
    +							<p class="close-popup">牡丹江<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="N1">N</span>
    +							<p class="close-popup">南昌<i></i></p>
    +							<p class="close-popup">南宁<i></i></p>
    +							<p class="close-popup">南平<i></i></p>
    +							<p class="close-popup">南通<i></i></p>
    +							<p class="close-popup">南阳<i></i></p>
    +							<p class="close-popup">南充<i></i></p>
    +							<p class="close-popup">南京<i></i></p>
    +							<p class="close-popup">那曲<i></i></p>
    +							<p class="close-popup">宁波<i></i></p>
    +							<p class="close-popup">宁德<i></i></p>
    +							<p class="close-popup">内江<i></i></p>
    +							<p class="close-popup">怒江州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="P1">P</span>
    +							<p class="close-popup">盘锦<i></i></p>
    +							<p class="close-popup">攀枝花<i></i></p>
    +							<p class="close-popup">平顶山<i></i></p>
    +							<p class="close-popup">萍乡<i></i></p>
    +							<p class="close-popup">平凉<i></i></p>
    +							<p class="close-popup">普洱<i></i></p>
    +							<p class="close-popup">莆田<i></i></p>
    +							<p class="close-popup">濮阳<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Q1">Q</span>
    +							<p class="close-popup">青岛<i></i></p>
    +							<p class="close-popup">琼海<i></i></p>
    +							<p class="close-popup">琼中<i></i></p>
    +							<p class="close-popup">秦皇岛<i></i></p>
    +							<p class="close-popup">黔东南<i></i></p>
    +							<p class="close-popup">黔南<i></i></p>
    +							<p class="close-popup">黔西南<i></i></p>
    +							<p class="close-popup">庆阳<i></i></p>
    +							<p class="close-popup">清远<i></i></p>
    +							<p class="close-popup">钦州<i></i></p>
    +							<p class="close-popup">潜江<i></i></p>
    +							<p class="close-popup">齐齐哈尔<i></i></p>
    +							<p class="close-popup">七台河<i></i></p>
    +							<p class="close-popup">泉州<i></i></p>
    +							<p class="close-popup">曲靖<i></i></p>
    +							<p class="close-popup">衢州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="R1">R</span>
    +							<p class="close-popup">日喀则<i></i></p>
    +							<p class="close-popup">日照<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="S1">S</span>
    +							<p class="close-popup">三明<i></i></p>
    +							<p class="close-popup">三亚<i></i></p>
    +							<p class="close-popup">三门峡<i></i></p>
    +							<p class="close-popup">三沙<i></i></p>
    +							<p class="close-popup">上海<i></i></p>
    +							<p class="close-popup">上饶<i></i></p>
    +							<p class="close-popup">商洛<i></i></p>
    +							<p class="close-popup">商丘<i></i></p>
    +							<p class="close-popup">山南<i></i></p>
    +							<p class="close-popup">汕头<i></i></p>
    +							<p class="close-popup">汕尾<i></i></p>
    +							<p class="close-popup">韶关<i></i></p>
    +							<p class="close-popup">绍兴<i></i></p>
    +							<p class="close-popup">邵阳<i></i></p>
    +							<p class="close-popup">十堰<i></i></p>
    +							<p class="close-popup">双鸭山<i></i></p>
    +							<p class="close-popup">朔州<i></i></p>
    +							<p class="close-popup">石河子<i></i></p>
    +							<p class="close-popup">石家庄<i></i></p>
    +							<p class="close-popup">石嘴山<i></i></p>
    +							<p class="close-popup">神农架<i></i></p>
    +							<p class="close-popup">松原<i></i></p>
    +							<p class="close-popup">四平<i></i></p>
    +							<p class="close-popup">绥化<i></i></p>
    +							<p class="close-popup">遂宁<i></i></p>
    +							<p class="close-popup">随州<i></i></p>
    +							<p class="close-popup">宿迁<i></i></p>
    +							<p class="close-popup">宿州<i></i></p>
    +							<p class="close-popup">苏州<i></i></p>
    +							<p class="close-popup">沈阳<i></i></p>
    +							<p class="close-popup">深圳<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="T1">T</span>
    +							<p class="close-popup">塔城<i></i></p>
    +							<p class="close-popup">唐山<i></i></p>
    +							<p class="close-popup">天津<i></i></p>
    +							<p class="close-popup">天门<i></i></p>
    +							<p class="close-popup">天水<i></i></p>
    +							<p class="close-popup">铁岭<i></i></p>
    +							<p class="close-popup">图木舒克<i></i></p>
    +							<p class="close-popup">通化<i></i></p>
    +							<p class="close-popup">通辽<i></i></p>
    +							<p class="close-popup">铜川<i></i></p>
    +							<p class="close-popup">铜陵<i></i></p>
    +							<p class="close-popup">铜仁<i></i></p>
    +							<p class="close-popup">吐鲁番<i></i></p>
    +							<p class="close-popup">屯昌<i></i></p>
    +							<p class="close-popup">泰安<i></i></p>
    +							<p class="close-popup">泰州<i></i></p>
    +							<p class="close-popup">太原<i></i></p>
    +							<p class="close-popup">台州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="W1">W</span>
    +							<p class="close-popup">文昌<i></i></p>
    +							<p class="close-popup">文山州<i></i></p>
    +							<p class="close-popup">潍坊<i></i></p>
    +							<p class="close-popup">威海<i></i></p>
    +							<p class="close-popup">渭南<i></i></p>
    +							<p class="close-popup">乌兰察布<i></i></p>
    +							<p class="close-popup">乌鲁木齐<i></i></p>
    +							<p class="close-popup">乌海<i></i></p>
    +							<p class="close-popup">无锡<i></i></p>
    +							<p class="close-popup">芜湖<i></i></p>
    +							<p class="close-popup">吴忠<i></i></p>
    +							<p class="close-popup">五指山<i></i></p>
    +							<p class="close-popup">五家渠<i></i></p>
    +							<p class="close-popup">武汉<i></i></p>
    +							<p class="close-popup">武威<i></i></p>
    +							<p class="close-popup">梧州<i></i></p>
    +							<p class="close-popup">万宁<i></i></p>
    +							<p class="close-popup">温州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="X1">X</span>
    +							<p class="close-popup">西安<i></i></p>
    +							<p class="close-popup">西宁<i></i></p>
    +							<p class="close-popup">西双版纳州<i></i></p>
    +							<p class="close-popup">兴安盟<i></i></p>
    +							<p class="close-popup">许昌<i></i></p>
    +							<p class="close-popup">湘潭<i></i></p>
    +							<p class="close-popup">湘西<i></i></p>
    +							<p class="close-popup">襄阳<i></i></p>
    +							<p class="close-popup">咸阳<i></i></p>
    +							<p class="close-popup">咸宁<i></i></p>
    +							<p class="close-popup">孝感<i></i></p>
    +							<p class="close-popup">邢台<i></i></p>
    +							<p class="close-popup">新乡<i></i></p>
    +							<p class="close-popup">新余<i></i></p>
    +							<p class="close-popup">忻州<i></i></p>
    +							<p class="close-popup">锡林郭勒盟<i></i></p>
    +							<p class="close-popup">厦门<i></i></p>
    +							<p class="close-popup">仙桃<i></i></p>
    +							<p class="close-popup">宣城<i></i></p>
    +							<p class="close-popup">徐州<i></i></p>
    +							<p class="close-popup">信阳<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Y1">Y</span>
    +							<p class="close-popup">雅安<i></i></p>
    +							<p class="close-popup">延安<i></i></p>
    +							<p class="close-popup">延边<i></i></p>
    +							<p class="close-popup">盐城<i></i></p>
    +							<p class="close-popup">阳江<i></i></p>
    +							<p class="close-popup">阳泉<i></i></p>
    +							<p class="close-popup">烟台<i></i></p>
    +							<p class="close-popup">宜宾<i></i></p>
    +							<p class="close-popup">宜昌<i></i></p>
    +							<p class="close-popup">宜春<i></i></p>
    +							<p class="close-popup">伊春<i></i></p>
    +							<p class="close-popup">伊犁<i></i></p>
    +							<p class="close-popup">银川<i></i></p>
    +							<p class="close-popup">营口<i></i></p>
    +							<p class="close-popup">鹰潭<i></i></p>
    +							<p class="close-popup">益阳<i></i></p>
    +							<p class="close-popup">永州<i></i></p>
    +							<p class="close-popup">玉林<i></i></p>
    +							<p class="close-popup">玉树州<i></i></p>
    +							<p class="close-popup">玉溪<i></i></p>
    +							<p class="close-popup">榆林<i></i></p>
    +							<p class="close-popup">运城<i></i></p>
    +							<p class="close-popup">云浮<i></i></p>
    +							<p class="close-popup">岳阳<i></i></p>
    +							<p class="close-popup">扬州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="Z1">Z</span>
    +							<p class="close-popup">枣庄<i></i></p>
    +							<p class="close-popup">张家界<i></i></p>
    +							<p class="close-popup">张家口<i></i></p>
    +							<p class="close-popup">张掖<i></i></p>
    +							<p class="close-popup">漳州<i></i></p>
    +							<p class="close-popup">湛江<i></i></p>
    +							<p class="close-popup">肇庆<i></i></p>
    +							<p class="close-popup">昭通<i></i></p>
    +							<p class="close-popup">镇江<i></i></p>
    +							<p class="close-popup">中山<i></i></p>
    +							<p class="close-popup">中卫<i></i></p>
    +							<p class="close-popup">周口<i></i></p>
    +							<p class="close-popup">舟山<i></i></p>
    +							<p class="close-popup">珠海<i></i></p>
    +							<p class="close-popup">株洲<i></i></p>
    +							<p class="close-popup">淄博<i></i></p>
    +							<p class="close-popup">自贡<i></i></p>
    +							<p class="close-popup">资阳<i></i></p>
    +							<p class="close-popup">驻马店<i></i></p>
    +							<p class="close-popup">遵义<i></i></p>
    +							<p class="close-popup">郑州<i></i></p>
    +						</div>
    +					</div>
    +					<div class="letter">
    +						<ul>
    +							<li><a href="javascript:;">热门</a></li>
    +							<li><a href="javascript:;">A</a></li>
    +							<li><a href="javascript:;">B</a></li>
    +							<li><a href="javascript:;">C</a></li>
    +							<li><a href="javascript:;">D</a></li>
    +							<li><a href="javascript:;">E</a></li>
    +							<li><a href="javascript:;">F</a></li>
    +							<li><a href="javascript:;">G</a></li>
    +							<li><a href="javascript:;">H</a></li>
    +							<li><a href="javascript:;">J</a></li>
    +							<li><a href="javascript:;">K</a></li>
    +							<li><a href="javascript:;">L</a></li>
    +							<li><a href="javascript:;">M</a></li>
    +							<li><a href="javascript:;">N</a></li>
    +							<li><a href="javascript:;">P</a></li>
    +							<li><a href="javascript:;">Q</a></li>
    +							<li><a href="javascript:;">R</a></li>
    +							<li><a href="javascript:;">S</a></li>
    +							<li><a href="javascript:;">T</a></li>
    +							<li><a href="javascript:;">W</a></li>
    +							<li><a href="javascript:;">X</a></li>
    +							<li><a href="javascript:;">Y</a></li>
    +							<li><a href="javascript:;">Z</a></li>
    +						</ul>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +		<div id="tabCity2" class="tab">
    +			<div class="content-block content-block01 content">
    +				<div id="cityContainer01" class="container">
    +					<div class="city" style="width:100%;">
    +						<div class="city-list">
    +							<span class="city-letter" id="City1">一线城市</span>
    +							<div>
    +								<p class="close-popup collectionCity">北京</p>
    +								<p class="close-popup collectionCity active">上海</p>
    +								<p class="close-popup">广州<i></i></p>
    +								<p class="close-popup">深圳<i></i></p>
    +							</div>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City1a">新一线城市</span>
    +							<p class="close-popup">杭州<i></i></p>
    +							<p class="close-popup">南京<i></i></p>
    +							<p class="close-popup">天津<i></i></p>
    +							<p class="close-popup">成都<i></i></p>
    +							<p class="close-popup">西安<i></i></p>
    +							<p class="close-popup">沈阳<i></i></p>
    +							<p class="close-popup">重庆<i></i></p>
    +							<p class="close-popup">苏州<i></i></p>
    +							<p class="close-popup">武汉<i></i></p>
    +							<p class="close-popup">长沙<i></i></p>
    +							<p class="close-popup">青岛<i></i></p>
    +							<p class="close-popup">厦门<i></i></p>
    +							<p class="close-popup">宁波<i></i></p>
    +							<p class="close-popup">大连<i></i></p>
    +							<p class="close-popup">无锡<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City2">二线城市</span>
    +							<p class="close-popup">汕头<i></i></p>
    +							<p class="close-popup">扬州<i></i></p>
    +							<p class="close-popup">石家庄<i></i></p>
    +							<p class="close-popup">福州<i></i></p>
    +							<p class="close-popup">济南<i></i></p>
    +							<p class="close-popup">太原<i></i></p>
    +							<p class="close-popup">温州<i></i></p>
    +							<p class="close-popup">佛山<i></i></p>
    +							<p class="close-popup">郑州<i></i></p>
    +							<p class="close-popup">东莞<i></i></p>
    +							<p class="close-popup">合肥<i></i></p>
    +							<p class="close-popup">贵阳<i></i></p>
    +							<p class="close-popup">昆明<i></i></p>
    +							<p class="close-popup">南昌<i></i></p>
    +							<p class="close-popup">常州<i></i></p>
    +							<p class="close-popup">嘉兴<i></i></p>
    +							<p class="close-popup">徐州<i></i></p>
    +							<p class="close-popup">海口<i></i></p>
    +							<p class="close-popup">珠海<i></i></p>
    +							<p class="close-popup">哈尔滨<i></i></p>
    +							<p class="close-popup">长春<i></i></p>
    +							<p class="close-popup">烟台<i></i></p>
    +							<p class="close-popup">洛阳<i></i></p>
    +							<p class="close-popup">南宁<i></i></p>
    +							<p class="close-popup">惠州<i></i></p>
    +							<p class="close-popup">潍坊<i></i></p>
    +							<p class="close-popup">南通<i></i></p>
    +							<p class="close-popup">金华<i></i></p>
    +							<p class="close-popup">乌鲁木齐<i></i></p>
    +							<p class="close-popup">泉州<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City3">三线城市</span>
    +							<p class="close-popup">安阳<i></i></p>
    +							<p class="close-popup">衡阳<i></i></p>
    +							<p class="close-popup">揭阳<i></i></p>
    +							<p class="close-popup">梅州<i></i></p>
    +							<p class="close-popup">舟山<i></i></p>
    +							<p class="close-popup">遵义<i></i></p>
    +							<p class="close-popup">岳阳<i></i></p>
    +							<p class="close-popup">齐齐哈尔<i></i></p>
    +							<p class="close-popup">淮安<i></i></p>
    +							<p class="close-popup">赤峰<i></i></p>
    +							<p class="close-popup">包头<i></i></p>
    +							<p class="close-popup">常德<i></i></p>
    +							<p class="close-popup">临沂<i></i></p>
    +							<p class="close-popup">榆林<i></i></p>
    +							<p class="close-popup">鄂尔多斯<i></i></p>
    +							<p class="close-popup">南充<i></i></p>
    +							<p class="close-popup">泸州<i></i></p>
    +							<p class="close-popup">呼伦贝尔<i></i></p>
    +							<p class="close-popup">抚顺<i></i></p>
    +							<p class="close-popup">张家口<i></i></p>
    +							<p class="close-popup">邢台<i></i></p>
    +							<p class="close-popup">济宁<i></i></p>
    +							<p class="close-popup">龙岩<i></i></p>
    +							<p class="close-popup">南平<i></i></p>
    +							<p class="close-popup">怀化<i></i></p>
    +							<p class="close-popup">郴州<i></i></p>
    +							<p class="close-popup">宝鸡<i></i></p>
    +							<p class="close-popup">运城<i></i></p>
    +							<p class="close-popup">蚌埠<i></i></p>
    +							<p class="close-popup">漳州<i></i></p>
    +							<p class="close-popup">上饶<i></i></p>
    +							<p class="close-popup">宜春<i></i></p>
    +							<p class="close-popup">德阳<i></i></p>
    +							<p class="close-popup">荆州<i></i></p>
    +							<p class="close-popup">三亚<i></i></p>
    +							<p class="close-popup">唐山<i></i></p>
    +							<p class="close-popup">中山<i></i></p>
    +							<p class="close-popup">威海<i></i></p>
    +							<p class="close-popup">银川<i></i></p>
    +							<p class="close-popup">呼和浩特<i></i></p>
    +							<p class="close-popup">湛江<i></i></p>
    +							<p class="close-popup">咸阳<i></i></p>
    +							<p class="close-popup">吉林<i></i></p>
    +							<p class="close-popup">镇江<i></i></p>
    +							<p class="close-popup">芜湖<i></i></p>
    +							<p class="close-popup">桂林<i></i></p>
    +							<p class="close-popup">邯郸<i></i></p>
    +							<p class="close-popup">廊坊<i></i></p>
    +							<p class="close-popup">绍兴<i></i></p>
    +							<p class="close-popup">西宁<i></i></p>
    +							<p class="close-popup">兰州<i></i></p>
    +							<p class="close-popup">绵阳<i></i></p>
    +							<p class="close-popup">株洲<i></i></p>
    +							<p class="close-popup">宜宾<i></i></p>
    +							<p class="close-popup">泰州<i></i></p>
    +							<p class="close-popup">台州<i></i></p>
    +							<p class="close-popup">保定<i></i></p>
    +							<p class="close-popup">秦皇岛<i></i></p>
    +							<p class="close-popup">湖州<i></i></p>
    +							<p class="close-popup">衢州<i></i></p>
    +							<p class="close-popup">连云港<i></i></p>
    +							<p class="close-popup">鞍山<i></i></p>
    +							<p class="close-popup">淄博<i></i></p>
    +							<p class="close-popup">盐城<i></i></p>
    +							<p class="close-popup">宜昌<i></i></p>
    +							<p class="close-popup">赣州<i></i></p>
    +							<p class="close-popup">柳州<i></i></p>
    +							<p class="close-popup">大庆<i></i></p>
    +							<p class="close-popup">丽江<i></i></p>
    +							<p class="close-popup">莆田<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City4">四线城市</span>
    +							<p class="close-popup">肇庆<i></i></p>
    +							<p class="close-popup">曲靖<i></i></p>
    +							<p class="close-popup">新乡<i></i></p>
    +							<p class="close-popup">营口<i></i></p>
    +							<p class="close-popup">潮州<i></i></p>
    +							<p class="close-popup">河源<i></i></p>
    +							<p class="close-popup">黄石<i></i></p>
    +							<p class="close-popup">茂名<i></i></p>
    +							<p class="close-popup">牡丹江<i></i></p>
    +							<p class="close-popup">盘锦<i></i></p>
    +							<p class="close-popup">平顶山<i></i></p>
    +							<p class="close-popup">韶关<i></i></p>
    +							<p class="close-popup">阳江<i></i></p>
    +							<p class="close-popup">本溪<i></i></p>
    +							<p class="close-popup">玉溪<i></i></p>
    +							<p class="close-popup">许昌<i></i></p>
    +							<p class="close-popup">铁岭<i></i></p>
    +							<p class="close-popup">泰安<i></i></p>
    +							<p class="close-popup">四平<i></i></p>
    +							<p class="close-popup">黄冈<i></i></p>
    +							<p class="close-popup">淮南<i></i></p>
    +							<p class="close-popup">广元<i></i></p>
    +							<p class="close-popup">阜阳<i></i></p>
    +							<p class="close-popup">丽水<i></i></p>
    +							<p class="close-popup">乐山<i></i></p>
    +							<p class="close-popup">菏泽<i></i></p>
    +							<p class="close-popup">锦州<i></i></p>
    +							<p class="close-popup">汉中<i></i></p>
    +							<p class="close-popup">佳木斯<i></i></p>
    +							<p class="close-popup">黄山<i></i></p>
    +							<p class="close-popup">白山<i></i></p>
    +							<p class="close-popup">绥化<i></i></p>
    +							<p class="close-popup">钦州<i></i></p>
    +							<p class="close-popup">南阳<i></i></p>
    +							<p class="close-popup">临汾<i></i></p>
    +							<p class="close-popup">梧州<i></i></p>
    +							<p class="close-popup">白色<i></i></p>
    +							<p class="close-popup">朝阳<i></i></p>
    +							<p class="close-popup">沧州<i></i></p>
    +							<p class="close-popup">东营<i></i></p>
    +							<p class="close-popup">德州<i></i></p>
    +							<p class="close-popup">安庆<i></i></p>
    +							<p class="close-popup">六安<i></i></p>
    +							<p class="close-popup">宁德<i></i></p>
    +							<p class="close-popup">拉萨<i></i></p>
    +							<p class="close-popup">邵阳<i></i></p>
    +							<p class="close-popup">开封<i></i></p>
    +							<p class="close-popup">信阳<i></i></p>
    +							<p class="close-popup">驻马店<i></i></p>
    +							<p class="close-popup">通化<i></i></p>
    +							<p class="close-popup">葫芦岛<i></i></p>
    +							<p class="close-popup">衡水<i></i></p>
    +							<p class="close-popup">日照<i></i></p>
    +							<p class="close-popup">聊城<i></i></p>
    +							<p class="close-popup">三明<i></i></p>
    +							<p class="close-popup">池州<i></i></p>
    +							<p class="close-popup">达州<i></i></p>
    +							<p class="close-popup">十堰<i></i></p>
    +							<p class="close-popup">晋中<i></i></p>
    +							<p class="close-popup">益阳<i></i></p>
    +							<p class="close-popup">辽阳<i></i></p>
    +							<p class="close-popup">酒泉<i></i></p>
    +							<p class="close-popup">承德<i></i></p>
    +							<p class="close-popup">孝感<i></i></p>
    +							<p class="close-popup">枣庄<i></i></p>
    +							<p class="close-popup">渭南<i></i></p>
    +							<p class="close-popup">滁州<i></i></p>
    +							<p class="close-popup">铜陵<i></i></p>
    +							<p class="close-popup">永州<i></i></p>
    +							<p class="close-popup">娄底<i></i></p>
    +							<p class="close-popup">咸宁<i></i></p>
    +							<p class="close-popup">商丘<i></i></p>
    +							<p class="close-popup">吕梁<i></i></p>
    +							<p class="close-popup">萍乡<i></i></p>
    +							<p class="close-popup">抚州<i></i></p>
    +							<p class="close-popup">通辽<i></i></p>
    +							<p class="close-popup">大同<i></i></p>
    +							<p class="close-popup">襄阳<i></i></p>
    +							<p class="close-popup">湘潭<i></i></p>
    +							<p class="close-popup">清远<i></i></p>
    +							<p class="close-popup">宿迁<i></i></p>
    +							<p class="close-popup">马鞍山<i></i></p>
    +							<p class="close-popup">江门<i></i></p>
    +							<p class="close-popup">延安<i></i></p>
    +							<p class="close-popup">北海<i></i></p>
    +							<p class="close-popup">九江<i></i></p>
    +							<p class="close-popup">大理<i></i></p>
    +							<p class="close-popup">丹东<i></i></p>
    +						</div>
    +						<div class="city-list"><span class="city-letter" id="City5">五线城市</span>
    +							<p class="close-popup">铁门关<i></i></p>
    +							<p class="close-popup">可克达拉<i></i></p>
    +							<p class="close-popup">焦作<i></i></p>
    +							<p class="close-popup">云浮<i></i></p>
    +							<p class="close-popup">中卫<i></i></p>
    +							<p class="close-popup">武威<i></i></p>
    +							<p class="close-popup">天水<i></i></p>
    +							<p class="close-popup">定西<i></i></p>
    +							<p class="close-popup">辽源<i></i></p>
    +							<p class="close-popup">安顺<i></i></p>
    +							<p class="close-popup">安康<i></i></p>
    +							<p class="close-popup">鸡西<i></i></p>
    +							<p class="close-popup">七台河<i></i></p>
    +							<p class="close-popup">白城<i></i></p>
    +							<p class="close-popup">亳州<i></i></p>
    +							<p class="close-popup">临沧<i></i></p>
    +							<p class="close-popup">资阳<i></i></p>
    +							<p class="close-popup">乌海<i></i></p>
    +							<p class="close-popup">克拉玛依<i></i></p>
    +							<p class="close-popup">巴彦淖尔<i></i></p>
    +							<p class="close-popup">荆门<i></i></p>
    +							<p class="close-popup">来宾<i></i></p>
    +							<p class="close-popup">固原<i></i></p>
    +							<p class="close-popup">防城港<i></i></p>
    +							<p class="close-popup">朔州<i></i></p>
    +							<p class="close-popup">铜川<i></i></p>
    +							<p class="close-popup">双鸭山<i></i></p>
    +							<p class="close-popup">平凉<i></i></p>
    +							<p class="close-popup">崇左<i></i></p>
    +							<p class="close-popup">白银<i></i></p>
    +							<p class="close-popup">河池<i></i></p>
    +							<p class="close-popup">吉安<i></i></p>
    +							<p class="close-popup">景德镇<i></i></p>
    +							<p class="close-popup">鹤岗<i></i></p>
    +							<p class="close-popup">海东<i></i></p>
    +							<p class="close-popup">黑河<i></i></p>
    +							<p class="close-popup">阜新<i></i></p>
    +							<p class="close-popup">石嘴山<i></i></p>
    +							<p class="close-popup">滨州<i></i></p>
    +							<p class="close-popup">淮北<i></i></p>
    +							<p class="close-popup">宣城<i></i></p>
    +							<p class="close-popup">宿州<i></i></p>
    +							<p class="close-popup">保山<i></i></p>
    +							<p class="close-popup">铜仁<i></i></p>
    +							<p class="close-popup">乌兰察布<i></i></p>
    +							<p class="close-popup">内江<i></i></p>
    +							<p class="close-popup">贺州<i></i></p>
    +							<p class="close-popup">巴中<i></i></p>
    +							<p class="close-popup">贵港<i></i></p>
    +							<p class="close-popup">昭通<i></i></p>
    +							<p class="close-popup">鄂州<i></i></p>
    +							<p class="close-popup">伊春<i></i></p>
    +							<p class="close-popup">毕节<i></i></p>
    +							<p class="close-popup">遂宁<i></i></p>
    +							<p class="close-popup">漯河<i></i></p>
    +							<p class="close-popup">松原<i></i></p>
    +							<p class="close-popup">眉山<i></i></p>
    +							<p class="close-popup">鹤壁<i></i></p>
    +							<p class="close-popup">忻州<i></i></p>
    +							<p class="close-popup">张掖<i></i></p>
    +							<p class="close-popup">随州<i></i></p>
    +							<p class="close-popup">鹰潭<i></i></p>
    +							<p class="close-popup">新余<i></i></p>
    +							<p class="close-popup">周口<i></i></p>
    +							<p class="close-popup">濮阳<i></i></p>
    +							<p class="close-popup">莱芜<i></i></p>
    +							<p class="close-popup">阳泉<i></i></p>
    +							<p class="close-popup">嘉峪关<i></i></p>
    +							<p class="close-popup">庆阳<i></i></p>
    +							<p class="close-popup">汕尾<i></i></p>
    +							<p class="close-popup">普洱<i></i></p>
    +							<p class="close-popup">广安<i></i></p>
    +							<p class="close-popup">雅安<i></i></p>
    +							<p class="close-popup">三门峡<i></i></p>
    +							<p class="close-popup">长治<i></i></p>
    +							<p class="close-popup">商洛<i></i></p>
    +							<p class="close-popup">金昌<i></i></p>
    +							<p class="close-popup">陇南<i></i></p>
    +							<p class="close-popup">吴忠<i></i></p>
    +							<p class="close-popup">晋城<i></i></p>
    +							<p class="close-popup">阿克苏<i></i></p>
    +							<p class="close-popup">喀什<i></i></p>
    +							<p class="close-popup">昌吉<i></i></p>
    +							<p class="close-popup">楚雄<i></i></p>
    +							<p class="close-popup">大兴安岭<i></i></p>
    +							<p class="close-popup">自贡<i></i></p>
    +							<p class="close-popup">攀枝花<i></i></p>
    +							<p class="close-popup">张家界<i></i></p>
    +							<p class="close-popup">六盘水<i></i></p>
    +							<p class="close-popup">玉林<i></i></p>
    +							<p class="close-popup">三沙<i></i></p>
    +							<p class="close-popup">吐鲁番<i></i></p>
    +							<p class="close-popup">和田<i></i></p>
    +							<p class="close-popup">阿勒泰<i></i></p>
    +							<p class="close-popup">克孜勒苏<i></i></p>
    +							<p class="close-popup">塔城<i></i></p>
    +							<p class="close-popup">博尔塔拉<i></i></p>
    +							<p class="close-popup">哈密<i></i></p>
    +							<p class="close-popup">昌都<i></i></p>
    +							<p class="close-popup">山南<i></i></p>
    +							<p class="close-popup">日喀则<i></i></p>
    +							<p class="close-popup">林芝<i></i></p>
    +							<p class="close-popup">阿拉善盟<i></i></p>
    +							<p class="close-popup">甘南<i></i></p>
    +							<p class="close-popup">兴安盟<i></i></p>
    +							<p class="close-popup">巴音郭楞<i></i></p>
    +							<p class="close-popup">锡林郭勒盟<i></i></p>
    +							<p class="close-popup">伊犁<i></i></p>
    +							<p class="close-popup">黔西南<i></i></p>
    +							<p class="close-popup">海北州<i></i></p>
    +							<p class="close-popup">湘西<i></i></p>
    +							<p class="close-popup">黄南州<i></i></p>
    +							<p class="close-popup">玉树州<i></i></p>
    +							<p class="close-popup">临夏<i></i></p>
    +							<p class="close-popup">果洛州<i></i></p>
    +							<p class="close-popup">海南州<i></i></p>
    +							<p class="close-popup">阿坝州<i></i></p>
    +							<p class="close-popup">甘孜州<i></i></p>
    +							<p class="close-popup">黔东南<i></i></p>
    +							<p class="close-popup">海西州<i></i></p>
    +							<p class="close-popup">黔南<i></i></p>
    +							<p class="close-popup">迪庆州<i></i></p>
    +							<p class="close-popup">红河<i></i></p>
    +							<p class="close-popup">怒江州<i></i></p>
    +							<p class="close-popup">阿拉尔<i></i></p>
    +							<p class="close-popup">图木舒克<i></i></p>
    +							<p class="close-popup">恩施<i></i></p>
    +							<p class="close-popup">石河子<i></i></p>
    +							<p class="close-popup">昌江<i></i></p>
    +							<p class="close-popup">文山州<i></i></p>
    +							<p class="close-popup">凉山州<i></i></p>
    +							<p class="close-popup">西双版纳州<i></i></p>
    +							<p class="close-popup">乐东<i></i></p>
    +							<p class="close-popup">五家渠<i></i></p>
    +							<p class="close-popup">德宏州<i></i></p>
    +							<p class="close-popup">琼海<i></i></p>
    +							<p class="close-popup">保亭<i></i></p>
    +							<p class="close-popup">琼中<i></i></p>
    +							<p class="close-popup">陵水<i></i></p>
    +							<p class="close-popup">济源<i></i></p>
    +							<p class="close-popup">神农架<i></i></p>
    +							<p class="close-popup">屯昌<i></i></p>
    +							<p class="close-popup">临高<i></i></p>
    +							<p class="close-popup">潜江<i></i></p>
    +							<p class="close-popup">五指山<i></i></p>
    +							<p class="close-popup">白沙<i></i></p>
    +							<p class="close-popup">儋州<i></i></p>
    +							<p class="close-popup">澄迈<i></i></p>
    +							<p class="close-popup">万宁<i></i></p>
    +							<p class="close-popup">仙桃<i></i></p>
    +							<p class="close-popup">定安<i></i></p>
    +							<p class="close-popup">东方<i></i></p>
    +							<p class="close-popup">天门<i></i></p>
    +							<p class="close-popup">文昌<i></i></p>
    +							<p class="close-popup">延边<i></i></p>
    +							<p class="close-popup">那曲<i></i></p>
    +							<p class="close-popup">阿里<i></i></p>
    +							<p class="close-popup">北屯<i></i></p>
    +							<p class="close-popup">双河<i></i></p>
    +						</div>
    +					</div>
    +				</div>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +
    +<div id="cityCopy" style="display: none;"></div>
    +<!-- About Popup -->
    + 
    +<div class="popup popup-about popup-about02">
    +   	<div class="bar">
    +        <div class="searchbar row">
    +       		<a class="col-5 close-popup"><span class="icon icon-left"></span></a>
    +			<div class="search-input col-95">
    +                <label class="icon icon-search" for="search"></label>
    +                <input type="search" id="districtName" placeholder="请输入小区名或地址">
    +            </div>
    +        </div>
    +        
    +        <div class="content-block dn" id="notFound" style="margin-top:50%;">
    +			<p style="text-align:center;">没有找到相关的小区</p>
    +			<p><a class="button button-big theme open-modal" id="notFound_btn" style="font-size:0.8rem;">没搜到?立刻告诉我们</a></p>
    +			<p style="text-align:center;text-decoration:underline;margin-top:2rem;"><a class="close-popup">返回</a></p>
    +		</div>
    +		
    +    </div>
    +    <div class="content-block content-block01 content">
    +        <div class="container">
    +        	<div class="list-block media-list hotList newCss">
    +				<div class="searchHistory" id="searchHotDiv">热门小区</div>
    +				<div id="hotList">
    +					<ul>
    +						<li v-for="dist in hotDists"><a v-bind:data-name="dist.name" v-bind:data-region="dist.region" v-bind:data-city="dist.city">{{dist.name}}</a></li>
    +					</ul>
    +				</div>
    +			</div>
    +			<div class="list-block media-list historyList newCss">
    +				<div class="searchHistory" id="searchHistoryDiv">历史记录<a id="clearSearchHistory"></a></div>
    +				<div id="districtList">
    +					<ul>
    +						<li v-for="(history,index) in histories" @click="openHistoryDetail(index)">{{history.name}}</li>
    +					</ul>
    +				</div>
    +			</div>
    +			<div class="list-block media-list searchList dn">
    +				<div id="searchList">
    +					<ul>
    +						<li v-for="(searchDist,index) in searchDistricts" @click="openDistrictDetail(index)">
    +			                <a  class="item-link item-content close-popup" v-bind:data-name="searchDist.name" v-bind:data-region="searchDist.region" v-bind:data-city="searchDist.city">
    +			                	<div class="item-inner">
    +			                		<div class="item-title-row">
    +			                			<div class="item-title">{{searchDist.name}}<br><small>{{searchDist.city}}{{searchDist.region}}{{searchDist.address}}</small></div>
    +			                		</div>
    +			                	</div>
    +			                </a>
    +               			</li>
    +					</ul>
    +				</div>
    +			</div>
    +        </div>
    +    </div>
    +</div>
    +
    +
    +<script type="text/javascript" src="js/zepto.js" charset="utf-8"></script>
    +<script type="text/javascript" src="js/beacon_release.js" charset="utf-8"></script>
    +<script>
    +
    +/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
    +Zepto = $
    +$.config = {router: false}
    +
    +</script>
    +<script type="text/javascript" src="js/vue.js"></script>
    +<script type="text/javascript" src="js/light7-2.js" charset="utf-8"></script>
    +<script type="text/javascript" src="js/cn.js" charset="utf-8"></script>
    +<script type="text/javascript" src="js/mui.min.js" charset="utf-8"></script>
    +<script type="text/javascript" src="config.js"></script>
    +<script type="text/javascript" src="js/axios.min.js"></script>
    +<script type="text/javascript" src="js/axiosPlugin.js"></script>
    +<script type="text/javascript" src="js/log/log_stat.js" ></script>
    +<script type='text/javascript' src='js/city-app.js?version=${version!}' charset='utf-8'></script>
    +<script type='text/javascript' src='js/searchDistrict-app.js?' charset='utf-8'></script>
    +<script type='text/javascript' src='js/common.js' charset='utf-8'></script>
    +<script type="text/javascript">
    +    var jQuery = $;
    +    $.config = {router: false}
    +</script>
    +<script type='text/javascript' src='js/jquery.cookie.js?version=${version!}' charset='utf-8'></script>
    +<script type="text/javascript" src="js/updateVersion/updateVersion.js" charset='utf-8'></script>
    +<script type="text/javascript" src="js/city.js" ></script>
    +
    +<script>
    +function openHangQing(city){
    +	clicked('views/house/cityDetail.html',true,false,{},{city:city},function(){
    +		
    +	})
    +}
    +String.prototype.endWith = function(str) {
    +	var reg = new RegExp(str + "$");
    +	return reg.test(this);
    +}
    +/**
    + * 获取手机上的信息,比如位置,手机ID
    + * @author yinjihuan
    + */
    +//扩展API加载完毕后调用onPlusReady回调函数 
    +var province = "";
    +var city = "";
    +var oriCity = "";
    +var oriLat = 0;
    +var oriLng = 0;
    +var region = "";
    +var oriRegion = "";
    +var scoreCount = 0;
    +var lat = 0;
    +var lng = 0;
    +var address = "";
    +var cat;
    +var timestamp1 = new Date().getTime();
    +document.addEventListener('plusready', onPlusReady, false);
    +//扩展API加载完毕,现在可以正常调用扩展API
    +function onPlusReady(){
    +	getPosition();
    +	versionUpdate();
    +}
    +
    +// 获取当前用户位置
    +function getPosition(){
    +	plus.geolocation.getCurrentPosition(function(p){
    +		if(p.address.city==undefined){
    +			city = "上海";
    +			$("#input_city").text(city);
    +		}else{
    +			address = p.address.street;
    +			province = p.address.province;
    +			city = p.address.city;
    +			region = p.address.district;
    +			lng = p.coords.longitude;//获取到当前位置的经度
    +			lat = p.coords.latitude;//获取到当前位置的纬度;
    +			oriLng = p.coords.longitude;
    +			oriLat = p.coords.latitude;
    +			//alert("4"+oriLng);
    +			
    +			if(city){
    +				city = formatBaiduCity(city);
    +			}
    +			if(region.endWith("区")){
    +	            region = region.substring(0, region.length-1);
    +	        }
    +			oriRegion = region;
    +			oriCity = city;
    +			$("#input_city").text(city);
    +		}
    +		 localStorage.setItem("init_city", city);
    +		 addLocation(lat,lng);
    +		$(".nowCity").text(city);
    +		/*city="北京";
    +		region="";
    +		$("#input_city").text("北京");
    +		getDistrictList($("#input_city").text(),0,0,"",6,0,0,"");*/
    +		
    +		 initBaseInfo(city,region,address,lat,lng);	
    +		 if(city!="上海"){
    +		 	//$(".content").removeClass("pull-to-refresh-content");
    +		 	$.destroyPullToRefresh(".content")
    +		 	initRegionSelect(city);
    +		 	$("#ShangHaiDiv").hide();
    +		 	$("#otherCityDiv").show();
    +		 }else{
    +		 	$.initPullToRefresh(".content")
    +		 	$("#ShangHaiDiv").show();
    +		 	$("#otherCityDiv").hide();
    +		 }
    +		}, function(e){
    +			city = "上海";
    +			$("#input_city").text(city);
    +			initRegionSelect(city);
    +			localStorage.setItem("init_city", city);
    +			addLocation(lat,lng);
    +			initBaseInfo(city,"","",0,0);
    +			$("#ShangHaiDiv").show();
    +		 	$("#otherCityDiv").hide();
    +		},
    +		{
    +			provider:'baidu',
    +			enableHighAccuracy:true,
    +			coordsType:'bd09ll'
    +		}
    +	);
    +}
    +
    +/* 获取#region字数,截取#region前4字,并添加... */
    +
    +var baseInfo = new Vue({
    +	el: '#baseInfo',
    +	data: {
    +		region : "",
    +		topMonth:"",
    +		momAvgPrice: "",
    +		momRate: "",
    +		priceRate:"",
    +		priceRateType:1,
    +		isLogin:"",
    +		regionRank:0
    +	}
    +})
    +
    +function initBaseInfo(city,region,address,lat,lng){
    +	//显示附近地址
    +	if(address!=""){
    +		var nearAddressParam = address;
    +		var length = address.length;
    +		var textStr = "";
    +		if(length > 6){
    +			textStr = nearAddressParam.substr(0,6);
    +			nearAddressParam = textStr + "...";
    +		}
    +		$("#nearDistrictSpan").text(nearAddressParam);
    +	}
    +	//显示基本信息
    +	var cityParam = city;
    +	var regionParam = region;
    +	var latParam = lat;
    +	var lngParam = lng;
    +	axios.get("/rest/index/home", {
    +	    params: {
    +	      city: cityParam,
    +	      region:regionParam
    +	    }
    +	})
    +	.then(function (response) {
    +		baseInfo.region = response.data.data.region;
    +		baseInfo.topMonth = response.data.data.topMonth;
    +		if(response.data.data.momAvgPrice=='暂无数据'){
    +			$("#momAvgPriceId").hide();
    +			$("#momAvgPriceId_noData").show();
    +		}else{
    +			$("#momAvgPriceId").show();
    +			$("#momAvgPriceId_noData").hide();
    +			baseInfo.momAvgPrice = response.data.data.momAvgPrice;
    +		}
    +		if(response.data.data.momRate=='暂无数据'){
    +			$("#momRateId").hide();
    +			$("#momRateId_noData").show();
    +		}else{
    +			$("#momRateId").show();
    +			$("#momRateId_noData").hide();
    +			baseInfo.momRate = (response.data.data.momRate*100).toFixed(2);
    +		}
    +		if(response.data.data.regionRank=='暂无数据'){
    +			$("#regionRankId").hide();
    +			$("#regionRankId_noData").show();
    +		}else{
    +			$("#regionRankId").show();
    +			$("#regionRankId_noData").hide();
    +			baseInfo.regionRank = response.data.data.regionRank;
    +		}
    +		if(response.data.data.priceRate=='暂无数据'){
    +			$("#priceRateId").hide();
    +			$("#priceRateId_noData").show();
    +		}else{
    +			$("#priceRateId").show();
    +			$("#priceRateId_noData").hide();
    +			//baseInfo.dealCount = response.data.data.dealCount;
    +			baseInfo.priceRate = response.data.data.priceRate;
    +			baseInfo.priceRateType = response.data.data.priceRateType;
    +		}
    +		baseInfo.isLogin = response.data.data.isLogin;
    +		
    +		/*if(response.data.data.isLogin){
    +			$("#addHouseDiv").hide();
    +			$("#detailHouseDiv").show();
    +		}else{
    +			$("#addHouseDiv").show();
    +			$("#detailHouseDiv").hide();
    +		}
    +		localStorage.setItem("isLogin", response.data.data.isLogin);*/
    +		if(response.data.data.momRateType>0){
    +			$("#momRateTypeClass").removeClass("icon-arrow-green");
    +			$("#momRateTypeClass").addClass("icon-arrow-red");
    +		}else{
    +			$("#momRateTypeClass").removeClass("icon-arrow-red");
    +			$("#momRateTypeClass").addClass("icon-arrow-green");
    +		}
    +		if(response.data.data.priceRateType>0){
    +			$("#priceRateTypeClass").removeClass("icon-arrow-green");
    +			$("#priceRateTypeClass").addClass("icon-arrow-red");
    +			$("#priceInfo").text("上涨概率");
    +		}else{
    +			$("#priceRateTypeClass").removeClass("icon-arrow-red");
    +			$("#priceRateTypeClass").addClass("icon-arrow-green");
    +			$("#priceInfo").text("下跌概率");
    +		}
    +		
    +	   	regionChange(response.data.data.region);
    +	   	
    +	   	regionList = response.data.data.regionList;
    +		loadRegion();
    +		$(".loadingBg").hide();
    +	})
    +	.catch(function (error) {
    +		setTimeout(function(){
    +			mui.init();
    +			mui.openWindow({
    +		        url: 'error.html', 
    +		        id:'error.html',
    +		        extras:{
    +		            //扩展参数
    +		        }
    +		    });
    +		},10000)
    +	   console.log(error);
    +	});
    +	initNearDistricts(cityParam,latParam,lngParam,regionParam,0,0,0,"");
    +	if($("#input_city").text()=="上海"){
    +		page = 1;
    +		dataObj = [];
    +		$("#newsList").html("");
    +		initNews(page);
    +	}
    +}
    +
    +var regionList=[];
    +var regionPicker = "";
    +var regionChangeRegion = true;
    +var regionChangeCount = 0;
    +function loadRegion(){
    +	$("#region").picker({
    +			toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
    +			<button class="button button-link pull-right close-picker" id="regionStatusButton">确定</button>\
    +			<h1 class="title">选择区域</h1>\
    +			</header>',
    +			cols: [
    +					{
    +						textAlign: "center",
    +						values: regionList
    +					}
    +				],onOpen:function(p){
    +		         	 p.cols[0].replaceValues(regionList);
    +		        },onClose:function(p){
    +					regionPicker = p.value[0];
    +					if(!regionChangeRegion && regionChangeCount==1){
    +						document.getElementById("regionStatusButton").click();
    +					}
    +					regionChangeRegion = true;
    +					regionChangeCount = 0;
    +		        }
    +		});
    +		$("#regionIcon").picker({
    +			toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
    +			<button class="button button-link pull-right close-picker" id="regionStatusButton">确定</button>\
    +			<h1 class="title">选择区域</h1>\
    +			</header>',
    +			cols: [
    +					{
    +						textAlign: "center",
    +						values: regionList
    +					}
    +				],onOpen:function(p){
    +		         	 p.cols[0].replaceValues(regionList);
    +		        },onClose:function(p){
    +					regionPicker = p.value[0];
    +					if(!regionChangeRegion && regionChangeCount==1){
    +						document.getElementById("regionStatusButton").click();
    +					}
    +					regionChangeRegion = true;
    +					regionChangeCount = 0;
    +		        }
    +		});
    +}
    +$("body").delegate("#regionStatusButton", "click", function (){
    +	regionChangeRegion = false;
    +	regionChangeCount += 1;
    +	var region_copy = $("#region_copy").val();
    +	if(region_copy != regionPicker && regionPicker!=""){
    +		$("#region_copy").val(regionPicker);
    +		$("#region").val(regionPicker);
    +		changeRegion();
    +	}
    +})
    +
    +function initNearDistricts(cityParam,latParam,lngParam,regionParam,order,minPrice,maxPrice,tag){
    +	axios.get("/rest/index/districtList", {
    +	    params: {
    +	      city: cityParam,
    +	      region:regionParam,
    +	      lat:latParam,
    +	      lng:lngParam,
    +	      minAvgPrice:minPrice,
    +	      maxAvgPrice:maxPrice,
    +	      poiTags:tag,
    +	      sort:order,
    +	    }
    +	})
    +	.then(function (response) {
    +	   if(cityParam=="上海"){
    +	      if(response.data.data.dtos.length==0){
    +
    +		   		$("#nearAddress").hide();
    +		   		$("#nearDistricts").hide();
    +		   }else{
    +
    +		   		$("#nearAddress").show();
    +		   		$("#nearDistricts").show();
    +		   }
    +		   //附近小区列表
    +		   var html = '<div class="cardNearbyWin" id="nearbyDistrictList">';
    +		   for(var i in response.data.data.dtos){
    +		   	    var textName = response.data.data.dtos[i].name;
    +		   		var length = textName.length;
    +				var textStr = textName;
    +				if(length > 5){
    +					textStr = textName.substr(0,5)+ "...";
    +				}
    +		
    +		   		html += '<div class="card cardNearby"  onclick="openDistWindow(\''+response.data.data.dtos[i].city+'\',\''+response.data.data.dtos[i].district+'\',\''+response.data.data.dtos[i].name+'\')"><div class="card-header">'+	
    +	   		textStr+
    +		   		'</div><div class="card-content"><div class="card-content-inner">'+response.data.data.dtos[i].avgPrice+'元/㎡</div></div><div class="card-footer">'+
    +		   		'距您'+response.data.data.dtos[i].distance+'m</div></div>';
    +		   }	
    +		   html += '</div>';
    +		   $("#nearDistricts").html(html);	
    +		   $("#nearbyDistrictList").css("width",(7.5*response.data.data.dtos.length)+"rem");
    +	   }else{
    +	   		getCityPriceLevel(cityParam);
    +	   }
    +	   
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function initNews(page){
    +	//资讯列表
    +	axios.get("/rest/news/list", {
    +	    params: {
    +	      city: $("#input_city").text(),
    +	      page:page,
    +	      deviceId:plus.device.uuid
    +	    }
    +	})
    +	.then(function (response) {
    +		//合并数组
    +		if(response.data.data.list.length == 0){
    +			//隐藏加载框
    +			$('.infinite-scroll-preloader').hide();
    +            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +            $.detachInfiniteScroll($('.infinite-scroll'));
    +		}
    +		if(page==1 && response.data.data.list.length == 0){
    +        	$("#todayNews").hide();
    +        }else{
    +        	$("#todayNews").show();
    +        }
    +		for(var i in response.data.data.list){
    +			dataObj.push(response.data.data.list[i])
    +		}
    +		lastIndex = $('.cardInfo').length;
    +		itemsPerLoad = response.data.data.list.length;
    +    	addItems(itemsPerLoad, lastIndex);
    +    	
    +    	
    +    	$(".pull-to-refresh-layer").addClass("dn");
    +    	/*if(dataObj.length>5){
    +        	$(".infinite-scroll-preloader").show();
    +    	}else{
    +        	$(".infinite-scroll-preloader").hide();
    +    	}*/
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +/*$("body").delegate("#regionStatusButton", "click", function ()  {
    +	var region_copy = $("#region_copy").val();
    +	var value = $(".picker-selected").text();
    +	if(region_copy != value && value!="" && value!=null){
    +		changeRegion();
    +	}
    +});
    +$("#region").click(function(e){
    +	 $(document).click(function(e){
    +		var region_copy = $("#region_copy").val();
    +		var value = $(".picker-selected").text();
    +		if(region_copy != value && value!="" && value!=null){
    +			changeRegion();
    +		}
    +	})
    +})*/
    +
    +$("body").delegate(".vote01 .icon-light-grey", "click", function ()  {
    +	if($(".vote01 .icon-light-grey").attr("class").indexOf("red") > 0){
    +		$.toast("已投票");
    +		return;
    +	}
    +	var id = $(this).attr("data-val");
    +	var voteFavorCount = parseInt($("#voteFavorCount_"+id).text().split("  ")[0].replace("票",""))+1;
    +	var voteNoFavorCount = parseInt($("#voteNoFavorCount_"+id).text().split("  ")[0].replace("票",""));
    +	var voteFavorCountRate = Math.round((voteFavorCount*100)/(voteFavorCount+voteNoFavorCount));
    +	var voteNoFavorCountRate = 100-voteFavorCountRate;
    +	axios.get("/rest/news/vote", {
    +	    params: {
    +	      newsId: id,
    +	      type:0,
    +	      deviceId:plus.device.uuid
    +	    }
    +	})
    +	.then(function (response) {
    +		if(!response.data.status){
    +			$.toast(response.data.message);
    +		} else {
    +			if (!response.data.data){
    +				$(".vote01 .icon-light-grey").addClass("icon-light-red");
    +				$(".vote02 .icon-light-grey").removeClass("icon-light-blue");
    +				$("#voteFavorCount_"+id).text(voteFavorCount+'票  '+voteFavorCountRate+'%');
    +				$("#voteFavorCountRate_"+id).css("width",voteFavorCountRate+'%');
    +				$("#voteNoFavorCount_"+id).text(voteNoFavorCount+'票  '+voteNoFavorCountRate+'%');
    +				$("#voteNoFavorCountRate_"+id).css("width",voteNoFavorCountRate+'%');
    +			} else {
    +				$.toast("已投票");
    +			}
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	   $.toast("投票失败,请重试");
    +	});
    +	
    +});
    +
    +$("body").delegate(".vote02 .icon-light-grey", "click", function ()  {
    +	if($(".vote01 .icon-light-grey").attr("class").indexOf("blue") > 0){
    +		$.toast("已投票");
    +		return;
    +	}
    +	var id = $(this).attr("data-val");
    +	var voteFavorCount = parseInt($("#voteFavorCount_"+id).text().split("  ")[0].replace("票",""));
    +	var voteNoFavorCount = parseInt($("#voteNoFavorCount_"+id).text().split("  ")[0].replace("票",""))+1;
    +	var voteFavorCountRate = Math.round((voteFavorCount*100)/(voteFavorCount+voteNoFavorCount));
    +	var voteNoFavorCountRate = 100-voteFavorCountRate;
    +	axios.get("/rest/news/vote", {
    +	    params: {
    +	      newsId: id,
    +	      type:1,
    +	      deviceId:plus.device.uuid
    +	    }
    +	})
    +	.then(function (response) {
    +		if(!response.data.status){
    +			$.toast(response.data.message);
    +		} else {
    +			if (!response.data.data){
    +				$("#voteFavorCount_"+id).text(voteFavorCount+'票  '+voteFavorCountRate+'%');
    +				$("#voteFavorCountRate_"+id).css("width",voteFavorCountRate+'%');
    +				$("#voteNoFavorCount_"+id).text(voteNoFavorCount+'票  '+voteNoFavorCountRate+'%');
    +				$("#voteNoFavorCountRate_"+id).css("width",voteNoFavorCountRate+'%');
    +				$(".vote01 .icon-light-grey").removeClass("icon-light-red");
    + 				$(".vote02 .icon-light-grey").addClass("icon-light-blue");
    +			} else {
    +				$.toast("已投票");
    +			}
    +		}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	   $.toast("投票失败,请重试");
    +	});
    +	
    +});
    +
    +
    +function changeRegion(){
    +	axios.get("/rest/index/home", {
    +	    params: {
    +	      city: $("#input_city").text(),
    +	      region:$("#region").val(),
    +	      lat:0,
    +	      lng:0
    +	    }
    +	})
    +	.then(function (response) {
    +		baseInfo.region = response.data.data.region;
    +		baseInfo.topMonth = response.data.data.topMonth;
    +		if(response.data.data.momAvgPrice=='暂无数据'){
    +			$("#momAvgPriceId").hide();
    +			$("#momAvgPriceId_noData").show();
    +		}else{
    +			$("#momAvgPriceId").show();
    +			$("#momAvgPriceId_noData").hide();
    +			baseInfo.momAvgPrice = response.data.data.momAvgPrice;
    +		}
    +		if(response.data.data.momRate=='暂无数据'){
    +			$("#momRateId").hide();
    +			$("#momRateId_noData").show();
    +		}else{
    +			$("#momRateId").show();
    +			$("#momRateId_noData").hide();
    +			baseInfo.momRate = (response.data.data.momRate*100).toFixed(2);
    +		}
    +		if(response.data.data.regionRank=='暂无数据'){
    +			$("#regionRankId").hide();
    +			$("#regionRankId_noData").show();
    +		}else{
    +			$("#regionRankId").show();
    +			$("#regionRankId_noData").hide();
    +			baseInfo.regionRank = response.data.data.regionRank;
    +		}
    +		if(response.data.data.priceRate=='暂无数据'){
    +			$("#priceRateId").hide();
    +			$("#priceRateId_noData").show();
    +		}else{
    +			$("#priceRateId").show();
    +			$("#priceRateId_noData").hide();
    +			//baseInfo.dealCount = response.data.data.dealCount;
    +			baseInfo.priceRate = response.data.data.priceRate;
    +			baseInfo.priceRateType = response.data.data.priceRateType;
    +		}
    +		baseInfo.isLogin = response.data.data.isLogin;
    +		
    +		regionChange(response.data.data.region);
    +		if(response.data.data.momRateType>0){
    +			$("#momRateTypeClass").removeClass("icon-arrow-green");
    +			$("#momRateTypeClass").addClass("icon-arrow-red");
    +		}else{
    +			$("#momRateTypeClass").removeClass("icon-arrow-red");
    +			$("#momRateTypeClass").addClass("icon-arrow-green");
    +		}
    +		if(response.data.data.priceRateType>0){
    +			$("#priceRateTypeClass").removeClass("icon-arrow-green");
    +			$("#priceRateTypeClass").addClass("icon-arrow-red");
    +			$("#priceInfo").text("上涨概率");
    +		}else{
    +			$("#priceRateTypeClass").removeClass("icon-arrow-red");
    +			$("#priceRateTypeClass").addClass("icon-arrow-green");
    +			$("#priceInfo").text("下跌概率");
    +		}
    +		
    +		$("#region_copy").val(response.data.data.region);
    +		
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +/* 页面底部无限加载事件 */
    +$.init();
    +var loading = false;
    +// 最多可加载的条目
    +var maxItems = 60;
    +// 每次加载添加多少条目
    +var itemsPerLoad = 5;
    +var itemsPerLoad2 = 5;
    +var dataObj = [];
    +var dataObj2 = [];
    +var page = 1;
    +var yesterDayDeployFlag = true;
    +function addItems(number, lastIndex) {
    +        // 生成新条目的HTML
    +        
    +        if($("#input_city").text()=="上海"){
    +        	if(dataObj.length == 0) {
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            $.detachInfiniteScroll($('.infinite-scroll'));
    +	            // 删除加载提示符
    +	            $('.infinite-scroll-preloader').remove();
    +	            $('.infinite-scroll-bottom .list-container').html("<div style='text-align: center; line-height: 3rem;'></div>");
    +	            return;
    +       		 }
    +        	var html = '';
    +	        for(var i in dataObj){
    +	        	if(i>=lastIndex){
    +		            if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
    +		            		if(dataObj[i].yesterDayDeploy && yesterDayDeployFlag){
    +		            			yesterDayDeployFlag = false;
    +		            			html += '<div class="content-block-title recommend" style="border-top:solid 0.5rem #f3f3f3;">历史推荐</div>';
    +		            		}
    +			            	if(dataObj[i].type=="专题"){
    +						  		html += '<div class="card cardInfo cardInfo01" onclick="openNewsView(\''+dataObj[i].id+'\')">'+
    +						  					'<div class="card-header">'+dataObj[i].title+'</div>'+
    +						  					'<img src="cardInfoPlaceholderImg.png"  onload="loadImg(\''+dataObj[i].coverImg+'\', this)">'+
    +						  					'<div class="card-footer">'+
    +						  						'<span>'+
    +						  						'<i class="icon icon-eye-orange"></i><label id="visitCount_'+dataObj[i].id+'">'+numberConver(dataObj[i].visitCount)+'人</label>'+
    +						  						'<i class="icon icon-comments-orange"></i><label id="visitComment_'+dataObj[i].id+'">'+numberConver(dataObj[i].recommendCommentCount)+'条</label>'+
    +						  						'</span>'+
    +						  					'</div>'+
    +						  				'</div>';
    +						  	}
    +						  	if(dataObj[i].type=="推荐小区"){
    +						  		html += '<div class="card cardInfo cardInfo02" onclick="openDistWindow(\''+dataObj[i].recommendDistrictCity+'\',\''+dataObj[i].recommendDistrictRegion+'\',\''+dataObj[i].recommendDistrictName+'\')">'+
    +						  					'<div class="card-content">'+
    +						  					'<div class="list-block media-list"><ul><li class="item-content">'+
    +						  					'<div class="item-media"><img src="cardInfoPlaceholderImg.png"  onload="loadImg(\''+dataObj[i].coverImg+'\',this)"></div>'+
    +						  					'<div class="item-inner" style="padding-right:0;">'+
    +						  					'<div class="item-title-row"><div class="item-title">'+dataObj[i].recommendDistrictName+'</div>'+
    +						  					'<div class="item-after"><span>'+dataObj[i].recommendDistrictCity+'-'+dataObj[i].recommendDistrictRegion+
    +						  					'</span></div></div>';
    +			  					if(dataObj[i].recommendDistrictTags != "" && dataObj[i].recommendDistrictTags != null){
    +						  			var arry = dataObj[i].recommendDistrictTags.split("_");
    +						  			html += '<div class="item-subtitle"><span class="tag">';
    +						  			for(var j in arry){
    +						  				html += '<small>'+arry[j]+'</small>';
    +						  			}
    +						  			html += '</span></div>';
    +						  		}
    +			  					html += '<div class="item-subtitle"><span class="star">推荐指数:<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i></span></div>';
    +			  					if(dataObj[i].recommendDistrictPrice){
    +			  						html += '<div class="item-subtitle"><em><strong>'+dataObj[i].recommendDistrictPrice+'</strong>元/㎡</em></div>';
    +			  					}
    +			  					html += '</div></li></ul></div></div></div>';
    +						  	}
    +						  	if(dataObj[i].type=="活动"){
    +						  		if(dataObj[i].adUrl!=null && dataObj[i].adUrl!=""){
    +						  			html += '<div class="card cardInfo cardInfo01 cardInfo01b"  onclick="openUrl(\''+BASE_PATH+'/message/openView?url='+dataObj[i].adUrl+'\')">';
    +						  		}else{
    +						  			html += '<div class="card cardInfo cardInfo01 cardInfo01b">';
    +						  		}
    +					  			html += '<div class="card-header">'+dataObj[i].title+'</div>'+
    +					  				'<img src="cardInfoPlaceholderImg.png"  onload="loadImg(\''+dataObj[i].coverImg+'\',this)">'+
    +					  				'<div class="card-footer"><span>'+dataObj[i].introduction+'</span></div></div>';
    +						  	}
    +						  	if(dataObj[i].type=="推荐城市"){
    +						  		html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openHangQing(\''+dataObj[i].recommendCity+'\')">'+
    +						  				'<div class="card-header">推荐城市——'+dataObj[i].recommendCity+'</div>';
    +						  				if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){
    +								  			var arry = dataObj[i].recommendCityTags.split("_");
    +								  			html += '<div class="card-content"><div class="card-content-inner"><span class="tag">';
    +								  			for(var j in arry){
    +								  				html += '<small>'+arry[j]+'</small>';
    +								  			}
    +								  			html += '</span></div></div>';
    +								  		}
    +						  				html += '<img src="cardInfoPlaceholderImg.png"  onload="loadImg(\''+dataObj[i].coverImg+'\',this)">'+
    +						  						'<div class="card-footer"><span>均价:<em>'+dataObj[i].recommendCityAvgPrice+'元/㎡</em></span>'+
    +						  						'<span class="star">潜力指数:';
    +						  						if(dataObj[i].recommendCityIndex<4){
    +						  							html += '<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=5 && dataObj[i].recommendCityIndex<15){
    +						  							html += '<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=15 && dataObj[i].recommendCityIndex<25){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=25 && dataObj[i].recommendCityIndex<35){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=35 && dataObj[i].recommendCityIndex<45){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=45 && dataObj[i].recommendCityIndex<55){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=55 && dataObj[i].recommendCityIndex<65){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=65 && dataObj[i].recommendCityIndex<75){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=75 && dataObj[i].recommendCityIndex<85){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>';
    +						  						}else if(dataObj[i].recommendCityIndex>=85 && dataObj[i].recommendCityIndex<95){
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>';
    +						  						}else{
    +						  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>';
    +						  						}
    +						  				html += '</span></div><div class="card-footer" style="margin-top:-0.75rem;">';
    +						  				if(dataObj[i].recommendCityYoy){
    +						  					html += '<span>近1年涨跌幅:';
    +						  					if(dataObj[i].recommendCityYoy>0){
    +						  						html += '<strong>'+(dataObj[i].recommendCityYoy*100).toFixed(2)+'%</strong><i class="icon icon-arrow-red"></i>';
    +						  					}else{
    +						  						html += '<strong>'+(dataObj[i].recommendCityYoy*100).toFixed(2)+'%</strong><i class="icon icon-arrow-green"></i>';
    +						  					}
    +						  					html += '</span>';
    +						  				}
    +						  				if(dataObj[i].recommendCityIndexTrend){
    +						  					html += '<span>';
    +						  					if(dataObj[i].recommendCityIndexTrend>=0){
    +						  						html += '上涨概率:<strong>'+dataObj[i].recommendCityIndexTrend+'%</strong><i class="icon icon-arrow-red"></i>';
    +						  					}else{
    +						  						html += '下跌概率:<strong>'+dataObj[i].recommendCityYoy*(-1)+'%</strong><i class="icon icon-arrow-green"></i>';
    +						  					}
    +						  					html += '</span>';
    +						  				}
    +						  				html += '</div></div>';
    +						  						
    +						  	}
    +						  	if(dataObj[i].type=="新闻"){
    +						  		html += '<div class="card cardInfo cardInfo02" onclick="openNewsView(\''+dataObj[i].id+'\')"><div class="card-content"><div class="list-block media-list">'+
    +						  				'<ul><li class="item-content">'+
    +						  				'<div class="item-inner"><div class="item-title-row"><div class="item-title">'+
    +						  				dataObj[i].title+'</div></div>'+
    +						  				'<div class="item-subtitle"><font>'+dataObj[i].introduction+'</font></div>'+
    +						  				'<div class="item-subtitle"><span><i class="icon icon-eye-orange"></i><label id="visitCount_'+dataObj[i].id+'">'+numberConver(dataObj[i].visitCount)+'人</label>'+
    +						  				'<i class="icon icon-comments-orange"></i><label id="visitComment_'+dataObj[i].id+'">'+numberConver(dataObj[i].recommendCommentCount)+'条</label></span></div></div>'+
    +						  				'<div class="item-media"><img src="cardInfoPlaceholderImg.png"  onload="loadImg(\''+dataObj[i].coverImg+'\',this)"></div>'+
    +						  				'</li></ul></div></div></div>';
    +						  	}
    +						  	if(dataObj[i].type=="投票"){
    +						  		var voteFavorCount = dataObj[i].voteFavorCount;
    +						  		var voteNoFavorCount = dataObj[i].voteNoFavorCount;
    +						  		var voteFavorCountRate = 50
    +						  		var voteNoFavorCountRate = 50
    +						  		if(voteFavorCount == 0 && voteNoFavorCount==0){
    +						  			
    +						  		}else{
    +						  			voteFavorCountRate = Math.round((voteFavorCount*100)/(voteFavorCount+voteNoFavorCount));
    +						  			voteNoFavorCountRate = 100-voteFavorCountRate;
    +						  		}
    +						  		
    +						  		var colorClass = "icon-light-grey";
    +						  		var colorClass2 = "icon-light-grey";
    +						  		if (dataObj[i].vote) {
    +						  			if (dataObj[i].voteType == 0) {
    +						  				colorClass = "icon-light-grey icon-light-red";
    +						  			} else {
    +						  				colorClass2 = "icon-light-grey icon-light-blue";
    +						  			}
    +						  		}
    +						  		html += '<div class="card cardInfo cardInfo03"><div class="card-header">'+dataObj[i].title+
    +						  				'</div><div class="card-content"><div class="card-content-inner row"><div class="vote01 col-50">'+
    +						  				'<i class="icon '+colorClass+'" data-val="'+dataObj[i].id+'"></i><span>'+dataObj[i].voteFavorText+'</span>'+
    +						  				'<font style="width:'+voteFavorCountRate+'%;" id="voteFavorCountRate_'+dataObj[i].id+'"></font><label id="voteFavorCount_'+dataObj[i].id+'">'+voteFavorCount+'票&nbsp;&nbsp;'+voteFavorCountRate+'%</label></div>'+
    +						  				'<div class="vote02 col-50"><i class="icon '+colorClass2+'" data-val="'+dataObj[i].id+'"></i><span>'+dataObj[i].voteNoFavorText+'</span>'+
    +						  				'<font style="width:'+voteNoFavorCountRate+'%;" id="voteNoFavorCountRate'+dataObj[i].id+'"></font><label id="voteNoFavorCount_'+dataObj[i].id+'">'+voteNoFavorCount+'票&nbsp;&nbsp;'+voteNoFavorCountRate+'%</label></div><em>V.S</em></div></div></div>';
    +						  	}
    +		            }
    +	        	}
    +	        }
    +	        
    +	        /*if(dataObj.length<=(lastIndex + number)){
    +	        	$(".infinite-scroll-preloader").hide();
    +	        }*/
    +	        // 添加新条目
    +	        if(lastIndex == 0){
    +				$("#newsList").html(html);
    +			}else{
    +				$('#newsList').append(html);
    +			}
    +        }else{
    +        	if(dataObj2.length == 0) {
    +	            // 加载完毕,则注销无限加载事件,以防不必要的加载
    +	            $.detachInfiniteScroll($('.infinite-scroll'));
    +	            // 删除加载提示符
    +	            $('.infinite-scroll-preloader').hide();
    +	            $('.infinite-scroll-bottom .list-container').html("<div style='text-align: center; line-height: 3rem;'></div>");
    +	            return;
    +       		 }
    +        	var html = '';
    +	        for(var i in dataObj2){
    +	        	if(i>=lastIndex2){
    +		            if((dataObj2.length<lastIndex2 + number) || (i < lastIndex2 + number)){
    +		            	var tags = dataObj2[i].poiTags;
    +		       			var tagStr = '';
    +		       			if(tags){
    +		       				tagStr = '<div class="item-subtitle"><span class="tag">';
    +		       				for(var j=0;j<tags.length;j++){
    +		       					if(j<3){
    +		       						var tag = tags[j];
    +		       						tagStr += '<small>'+tag+'</small>';
    +		       					}
    +		       				}
    +		       				tagStr += '</span></div>';
    +		       			}
    +		       			html += '<li>'+
    +		       			'<a onclick="openDistWindow(\''+dataObj2[i].city+'\',\''+dataObj2[i].region+'\',\''+dataObj2[i].districtName+'\')" class="external item-content">'+
    +	     				'<div class="item-inner"><div class="item-title-row"><div class="item-title">'+
    +		       			dataObj2[i].districtName+'</div><div class="item-after"><em>¥'+dataObj2[i].avgPrice+'元/㎡</em></div></div><div class="item-title-row">'+
    +		       			'<div class="item-title"><i class="icon icon-address03"></i><small>'+
    +		       			dataObj2[i].city+dataObj2[i].region+dataObj2[i].address+'</small></div>';
    +		       			if(dataObj2[i].distance){
    +		       				html += '<div class="item-after"><span>距您'+dataObj2[i].distance+'m</span></div>';
    +		       			}
    +		       			html += '</div><div class="item-subtitle">';
    +		       			
    +		       			html += '<div>潜力指数: <span class="star">';
    +			       			
    +	       				if(dataObj2[i].index<4){
    +  							html += '<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=5 && dataObj2[i].index<15){
    +  							html += '<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=15 && dataObj2[i].index<25){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=25 && dataObj2[i].index<35){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=35 && dataObj2[i].index<45){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=45 && dataObj2[i].index<55){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=55 && dataObj2[i].index<65){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=65 && dataObj2[i].index<75){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=75 && dataObj2[i].index<85){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i>';
    +  						}else if(dataObj2[i].index>=85 && dataObj2[i].index<95){
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i>';
    +  						}else{
    +  							html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>';
    +  						}
    +		  				html += "</span></div>";
    +		  						
    +		       			if(dataObj2[i].weekendMarkup){
    +			       			if(dataObj2[i].weekendMarkup>=0){
    +			       				html += '<div>近30天涨跌幅: <em class="up">'+(dataObj2[i].weekendMarkup/100).toFixed(2)+'%<i class="icon icon-arrow-red"></i></em></div>';
    +			       			}else{
    +			       				html += '<div>近30天涨跌幅: <em class="down">'+(dataObj2[i].weekendMarkup/100*(-1)).toFixed(2)+'%<i class="icon icon-arrow-green"></i></em></div>';
    +			       			}
    +		       			}else{
    +		       				html += '<div>近30天涨跌幅: <em class="em01">暂无</em></div>';
    +		       			}
    +		       			
    +		       			html += '</div>'+tagStr+'</div></a></li>';
    +		            }
    +	        	}
    +	        }
    +	        if(dataObj2.length<=(lastIndex2 + number)){
    +	        	$(".infinite-scroll-preloader").hide();
    +	        }
    +	        // 添加新条目
    +	        if(lastIndex2 == 0){
    +				$('.infinite-scroll-bottom .list-container').html(html);
    +				$("#nearDistrictContainer").show();
    +			}else{
    +				$('.infinite-scroll-bottom .list-container').append(html);
    +			}
    +        }
    +	  	
    +    }
    +
    +
    +function loadImg(url, obj){
    +	if($(obj).attr("src") == 'cardInfoPlaceholderImg.png'){
    +		$(obj).attr("src", url)
    +		console.log("+=============="+url);
    +	}
    +}
    +//数量进行转换
    +function numberConver(thumbsUpCount){
    +	var thumbsUpCountStr = ""
    +	if(thumbsUpCount>=10000){
    +		thumbsUpCountStr = (thumbsUpCount/10000).toFixed(1)+"万"
    +	}else{
    +		thumbsUpCountStr = thumbsUpCount
    +	}
    +	return thumbsUpCountStr;
    +}
    +
    +// 上次加载的序号
    +var lastIndex = 5;
    +var lastIndex2 = 5;
    +// 注册'infinite'事件处理函数
    +$(document).on('infinite', '.infinite-scroll-bottom',function() {
    +    // 如果正在加载,则退出
    +    if (loading) return;
    +    // 设置flag
    +    loading = true;
    +    // 模拟1s的加载过程\
    +    setTimeout(function() {
    +        // 重置加载flag
    +        loading = false;
    +        if($("#input_city").text()=="上海"){
    +        	page += 1;
    +        	initNews(page);
    +        	// 添加新条目
    +	        //addItems(itemsPerLoad, lastIndex);
    +	        // 更新最后加载的序号
    +	        lastIndex = $('.cardInfo').length;
    +        }else{
    +        	addItems(itemsPerLoad2, lastIndex2);
    +	        // 更新最后加载的序号
    +	        lastIndex2 = $('.list-container li').length;
    +        }
    +        
    +    }, 500);
    +});
    +
    +
    +
    +// 添加'refresh'监听器
    +$(document).on('refresh', '.pull-to-refresh-content',function(e) {
    +	if($("#input_city").text()=="上海"){
    +		$(".pull-to-refresh-layer").removeClass("dn");
    +		page = 1;
    +		dataObj = [];
    +		$("#newsList").html("");
    +		initNews(page);
    +	}
    +	// 加载完毕需要重置
    +	$.pullToRefreshDone('.pull-to-refresh-content');
    +});
    +
    +
    +
    +function regionChange(region){
    +	baseInfo.region = region;
    +		var text = region;
    +		var length = region.length;
    +		var textStr = "";
    +		if(length > 4){
    +			textStr = text.substr(0,4);
    +			$("#region").val(textStr + "...");
    +			$("#region").css("width","3.8rem");
    +		}
    +		if(length == 4){
    +			$("#region").css("width","3.2rem");
    +		}
    +		if(length == 3){
    +			$("#region").css("width","2.8rem");
    +		}
    +		if(length == 2){
    +			$("#region").css("width","2.4rem");
    +		}
    +	};
    +//记录用户位置信息
    +function addLocation(latParam,lngParam){
    +	//保存用户经纬度和设备号信息
    +	$.ajax({
    +		type : 'post',
    +        url :"../house/addUserDevice",
    +        data:{deviceId:plus.device.uuid,lat:latParam, lng:lngParam},
    +        dataType:'json',
    +        async:true,
    +        success:function(result){
    +        	
    +        },
    +        error:function(){
    +        }
    +	})
    +}
    +
    +function initRegionSelect(city){
    +	 var arry = new Array();
    +	$.getJSON("js/cityRegion.js?version=${version!}", function(json){
    +		  for(var i in json.data){
    +			  if(json.data[i].city == city){
    +				  arry.push(json.data[i].name);
    +			  }
    +		  }
    +		  var html = '<p class="buttons-row buttons-row01 buttons-row01a theme"><a class="button active">不限</a>';
    +		  for(var i=0;i<arry.length;i++){
    +			  if((i+1)%4 == 0){
    +				  html += '<p class="buttons-row buttons-row01 buttons-row01a theme">';
    +				  html += '<a class="button">'+arry[i]+'</a>';
    +			  }else if((i+2)%4 == 0 || (i+1 == arry.length)){
    +				  html += '<a class="button">'+arry[i]+'</a>';
    +				  html += '</p>';
    +			  }else{
    +				  html += '<a class="button">'+arry[i]+'</a>';
    +			  }
    +		  }
    +		  $("#regionDiv").html(html);
    +	});
    +}
    +/* 信息输入弹窗 */
    +$(document).on('click','#notFound_btn', function () {
    +	$.modal({
    +		title:  '小区信息',
    +		afterText: '<div class="info-container">'+
    +			  '<input type="text" placeholder="小区名称(必填)" id="input_name_noFound">'+
    +			  '</div>'+
    +			  '<div class="info-container">'+
    +			  '<input type="text" placeholder="小区地址" id="input_address_noFound">'+
    +			  '</div>',
    +		buttons: [
    +			{
    +				text: '取消',
    +				onClick: function() {
    +					$('.modal').remove();
    +					$('.modal-overlay').remove();
    +				}
    +			},
    +			{
    +				text: '确定',
    +				close: false,
    +				onClick: function() {
    +					// 错误提示
    +					var a = $("#input_name_noFound").val();
    +					if(a == ""){
    +						$.toast("小区名称不能为空");
    +						return false;
    +					}
    +					var b = $("#input_address_noFound").val();
    +					var c = $("#input_city").text();
    +					
    +	                    
    +					$.ajax({
    +						type : 'post',
    +			            url :BASE_PATH + "/rest/districts/addNoFoundDistrict",
    +			            data:{city:c,name:a, address:b},
    +			            dataType:'json',
    +			            success:function(result){
    +							$('.modal').remove();
    +							$('.modal-overlay').remove();
    +							if(result.data){
    +								$.toast('提交成功,我们会尽快完善信息');
    +							}else{
    +								$.toast('提交失败,请重试');
    +							}
    +			            },
    +			            error:function(){
    +			            	$('.modal').remove();
    +							$('.modal-overlay').remove();
    +							$.toast('提交失败,请重试');
    +			            }
    +		        	})
    +				}
    +			}
    +		]
    +	})
    +});
    +/* 获取城市 */
    +$("body").delegate(".popup-about01 p", "click", function ()  {
    +	changeCity($(this).text())
    +});
    +$("body").delegate(".popup-about01 .cityGPS", "click", function ()  {
    +	changeCity($(this).find('p')[0].innerHTML)
    +});
    +
    +function changeCity(cityStr){
    +	$("#input_city").text(cityStr);
    +	$(".cityChoice a").text(cityStr);
    +	$(".popup-about01 p").removeClass("active");
    +	$(this).addClass("active");
    +	var sort = 1;
    +	city = cityStr
    +	console.log(oriCity + "==" + cityStr)
    +	if(oriCity== cityStr){
    +		if(oriRegion!=""){
    +			//$("#region").text(oriRegion);
    +			setTimeout(function(){
    +				baseInfo.region = oriRegion;
    +			},1000)
    +			
    +		}
    +		lat = oriLat;
    +		lng = oriLng;
    +		if(cityStr=="上海"){
    +			$("#ShangHaiDiv").show();
    +			$("#otherCityDiv").hide();
    +			//initNearDistricts($(this).text(),lat,lng,"",0,0,0,"");
    +		}else{
    +			$("#ShangHaiDiv").hide();
    +			$("#otherCityDiv").show();
    +			$("#select_order").find("div").removeClass("active");
    +			$("#select_order").find("i").removeClass("icon-check");
    +			$(".order a").text("按距离近优先");
    +			$("#distanceOrder").addClass("active");
    +			$("#distanceOrder").find("i").addClass("icon-check");
    +		}
    +	}else{
    +		lat = 0;
    +		lng = 0;
    +		if(cityStr=="上海"){
    +			$.initPullToRefresh(".content")
    +			$("#ShangHaiDiv").show();
    +			$("#otherCityDiv").hide();
    +			//initNews()
    +		}else{
    +			//$(".content").removeClass("pull-to-refresh-content");
    +			$.destroyPullToRefresh(".content")
    +			$("#select_order").find("div").removeClass("active");
    +			$("#select_order").find("i").removeClass("icon-check");
    +			$(".order a").text("按潜力指数");
    +			$("#indexOrder").addClass("active");
    +			$("#indexOrder").find("i").addClass("icon-check");
    +		}
    +	}
    +	
    +	if(cityStr=="上海"){
    +		$("#ShangHaiDiv").show();
    +		$("#otherCityDiv").hide();
    +		//initNearDistricts($(this).text(),0,0,"",0,0,0,"");
    +		initBaseInfo(cityStr,"",address,lat,lng);
    +	}else{
    +		$("#ShangHaiDiv").hide();
    +		$("#otherCityDiv").show();
    +		lastIndex2 = 0;
    +		dataObj2 = {};
    +		$(".infinite-scroll-preloader").show();
    +		$('.infinite-scroll-bottom .list-container').html('');
    +		city = cityStr;
    +		initRegionSelect(cityStr);
    +		$(".region a").text('不限');
    +		$("#select_price_div a").text('不限');
    +		//不同城市查询价格区间
    +		getCityPriceLevel(cityStr);
    +		//加载列表
    +		sort=6;
    +		getDistrictList(cityStr,lat,lng,"",sort,0,0,"");
    +		initBaseInfo(cityStr,"","",0,0);
    +		
    +	}
    +	$(".selectContent").hide();
    +	//刷新下拉滚动加载事件
    +	$.attachInfiniteScroll($('.infinite-scroll'))
    +	//potenialIndex($(this).text(),sort);
    +}
    +function req(cityStr){
    +	city=cityStr.replace("<i></i>","")
    +   $("#input_city").text(city);
    +	var sort = 1;
    +	if(oriCity== city){
    +		lat = oriLat;
    +		lng = oriLng;
    +		$("#select_order").find("div").removeClass("active");
    +		$("#select_order").find("i").removeClass("icon-check");
    +		$(".order a").text("按距离近优先");
    +		$("#distanceOrder").addClass("active");
    +		$("#distanceOrder").find("i").addClass("icon-check");
    +	}else{
    +		lat = 0;
    +		lng = 0;
    +		sort = 6;
    +		$("#select_order").find("div").removeClass("active");
    +		$("#select_order").find("i").removeClass("icon-check");
    +		$(".order a").text("按潜力指数");
    +		$("#indexOrder").addClass("active");
    +		$("#indexOrder").find("i").addClass("icon-check");
    +	}
    +	lastIndex = 0;
    +	dataObj = {};
    +	$(".infinite-scroll-preloader").show();
    +	$('.infinite-scroll-bottom .list-container ul').html('');
    +	initRegionSelect(city);
    +	$(".region a").text('不限');
    +	$("#select_price_div a").text('不限');
    +	//potenialIndex(city,sort);
    +}
    +
    +function openUrl(url){
    +	clicked(url,true);
    +}
    +
    +
    +/* 筛选条件切换 */
    +$("body").delegate(".region", "click", function (){
    +	$(".selectContent").show();
    +	$("#select_region").show();
    +	$("#select_price").hide();
    +	$("#select_filter").hide();
    +	$("#select_order").hide();
    +	$(".region").addClass("active");
    +	$(".region i").addClass("icon-up");
    +	$(".price").removeClass("active");
    +	$(".price i").removeClass("icon-up");
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +$(".price").on("click", function () {
    +	$(".selectContent").show();
    +	$("#select_region").hide();
    +	$("#select_price").show();
    +	$("#select_filter").hide();
    +	$("#select_order").hide();
    +	$(".region").removeClass("active");
    +	$(".region i").removeClass("icon-up");
    +	$(".price").addClass("active");
    +	$(".price i").addClass("icon-up");
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +$(".filter").on("click", function () {
    +	$(".selectContent").show();
    +	$("#select_region").hide();
    +	$("#select_price").hide();
    +	$("#select_filter").show();
    +	$("#select_order").hide();
    +	$(".region").removeClass("active");
    +	$(".region i").removeClass("icon-up");
    +	$(".price").removeClass("active");
    +	$(".price i").removeClass("icon-up");
    +	$(".filter").addClass("active");
    +	$(".filter i").addClass("icon-up");
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +});
    +
    +$(".order").on("click", function () {
    +	$(".selectContent").show();
    +	$("#select_region").hide();
    +	$("#select_price").hide();
    +	$("#select_filter").hide();
    +	$("#select_order").show();
    +	$(".region").removeClass("active");
    +	$(".region i").removeClass("icon-up");
    +	$(".price").removeClass("active");
    +	$(".price i").removeClass("icon-up");
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	$(".order").addClass("active");
    +	$(".order i").addClass("icon-up");
    +});
    +
    +/* 区域 */
    +
    +$("body").delegate("#select_region .button", "click", function () {
    +	$(this).parents(".topic").find(".button").removeClass("active");
    +	$(this).addClass("active");
    +	var text = $("#select_region .button").eq(0).hasClass("active");
    +	var regionParam = "";
    +	if(text){
    +		$(".region a").text("区域");
    +	}else{
    +		$(".region a").text($(this).text());
    +		regionParam = $(this).text();
    +	}
    +	//默认按距离
    +	var select_order = $("#select_order").find(".active").attr("data-id");
    +	//默认按距离
    +	var select_price = $("#select_price").find(".active").text();
    +	var minPrice = 0;
    +	var maxPrice = 0;
    +	if(select_price.indexOf("以上")!=-1){
    +		select_price = select_price.replace("以上","");
    +		minPrice = parseInt(select_price);
    +		maxPrice = 0;
    +	}else if(select_price.indexOf("不限")!=-1){
    +		minPrice = 0;
    +		maxPrice = 0;
    +	}else{
    +		var arr = select_price.split("-");
    +		minPrice = parseInt(arr[0]);
    +		maxPrice = parseInt(arr[1]);
    +	}
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	getDistrictList(city,lat,lng,regionParam,parseInt(select_order),minPrice,maxPrice,tag);
    +	$(".mask").hide();
    +	$("#select_region").hide();
    +	$(".region").removeClass("active");
    +	$(".region i").removeClass("icon-up");
    +	$(".selectContent").hide();
    +});
    +
    +function customPriceQuery () {
    +	if($("#minPrice").val()==""){
    +		$.toast('请填写最小价格');
    +		return;
    +	}
    +	if($("#maxPrice").val()==""){
    +		$.toast('请填写最大价格');
    +		return;
    +	}
    +	var minPrice = parseFloat($("#minPrice").val())*10000;
    +	var maxPrice = parseFloat($("#maxPrice").val())*10000;
    +	//默认按距离
    +	var select_order = $("#select_order").find(".active").attr("data-id");
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	//区域
    +	var regionParam = $("#select_region").find(".active").text();
    +	if(regionParam == "不限" || regionParam == null){
    +		regionParam = "";
    +	}
    +	getDistrictList(city,lat,lng,regionParam,parseInt(select_order),minPrice,maxPrice,tag);
    +	$(".price a").text($("#minPrice").val() + "-" + $("#maxPrice").val() + "万");
    +	$("#select_price").hide();
    +	$(".price").removeClass("active");
    +	$(".price i").removeClass("icon-up");
    +	$(".selectContent").hide();
    +}
    +/* 标签 */
    +$(".reset_btn").on("click", function () {
    +	$(".button").removeClass("active");
    +});
    +
    +$(".confirm_btn").on("click", function () {
    +	//区域
    +	var regionParam = $("#select_region").find(".active").text();
    +	if(regionParam == "不限" || regionParam == null){
    +		regionParam = "";
    +	}
    +	var select_order = $("#select_order").find(".active").attr("data-id");
    +	//默认按距离
    +	var select_price = $("#select_price").find(".active").text();
    +	var minPrice = 0;
    +	var maxPrice = 0;
    +	if(select_price.indexOf("以上")!=-1){
    +		select_price = select_price.replace("以上","");
    +		minPrice = parseInt(select_price);
    +		maxPrice = 0;
    +	}else if(select_price.indexOf("不限")!=-1){
    +		minPrice = 0;
    +		maxPrice = 0;
    +	}else{
    +		var arr = select_price.split("-");
    +		minPrice = parseInt(arr[0]);
    +		maxPrice = parseInt(arr[1]);
    +	}
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	getDistrictList(city,lat,lng,regionParam,parseInt(select_order),minPrice,maxPrice,tag);
    +	
    +	$(".mask").hide();
    +	$("#select_filter").hide();
    +	$(".filter").removeClass("active");
    +	$(".filter i").removeClass("icon-up");
    +	$(".selectContent").hide();
    +});
    +
    +$("#select_filter .button").on("click", function () {
    +	if($(this).hasClass("active")){
    +		$(this).removeClass("active");
    +	}else{
    +		$(this).addClass("active");
    +	}
    +});
    +
    +/* 智能排序 */
    +$("#select_order li").on("click", function () {
    +	$(this).parents("#select_order").find(".item-title").removeClass("active");
    +	$(this).parents("#select_order").find(".item-title i").removeClass("icon-check");
    +	$(this).find(".item-title").addClass("active");
    +	$(this).find(".item-title i").addClass("icon-check");
    +	$(".order a").text($(this).text());
    +	//区域
    +	var regionParam = $("#select_region").find(".active").text();
    +	if(regionParam == "不限" || regionParam == null){
    +		regionParam = "";
    +	}
    +	var select_order = $("#select_order").find(".active").attr("data-id");
    +	//默认按距离
    +	var select_price = $("#select_price").find(".active").text();
    +	var minPrice = 0;
    +	var maxPrice = 0;
    +	if(select_price.indexOf("以上")!=-1){
    +		select_price = select_price.replace("以上","");
    +		minPrice = parseInt(select_price);
    +		maxPrice = 0;
    +	}else if(select_price.indexOf("不限")!=-1){
    +		minPrice = 0;
    +		maxPrice = 0;
    +	}else{
    +		var arr = select_price.split("-");
    +		minPrice = parseInt(arr[0]);
    +		maxPrice = parseInt(arr[1]);
    +	}
    +	var obj = $("#select_filter .topicContent .button");
    +	var tag = "";
    +	$.each(obj, function(key, val) {
    +		if(obj[key].className.indexOf("active")!=-1){
    +			tag += "_"+obj[key].text;
    +		}
    +	});
    +	getDistrictList(city,lat,lng,regionParam,parseInt(select_order),minPrice,maxPrice,tag);
    +	$("#select_order").hide();
    +	$(".order").removeClass("active");
    +	$(".order i").removeClass("icon-up");
    +	$(".selectContent").hide();
    +});
    +
    +//查询城市价格区间
    +function getCityPriceLevel(cityParam){
    +	axios.get("/house/getCityPriceLevel", {
    +	    params: {
    +	      city: cityParam
    +	    }
    +	})
    +	.then(function (response) {
    +	    var re = response.data;
    +   		if(re==null){
    +    		$("#select_price_div").hide();
    +    	}else{
    +    		$("#select_price_div").show();
    +    		$("#select_price").html('');
    +    		var html='';
    +    		html += '<ul><li class="item-content"><div class="item-inner"><div class="item-title theme active" data-id="0"><i class="icon icon-check"></i>不限</div></div></li>';
    +    		for(var i=1;i<9;i++){
    +    			html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="1"><i class="icon"></i>'+re["level"+i]+'</div></div></li>';
    +    		}
    +    		html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="8"><i class="icon"></i>自定义:<input type="number" placeholder="最小" id="minPrice"> - <input type="number" placeholder="最大" id="maxPrice"> 万<a class="button button-fill theme" onclick="customPriceQuery()">确定</a></div></div></li></ul>';
    +    		$("#select_price").html(html);
    +    		
    +    		$("#select_price li").on("click", function () {
    +    			$(this).parents("#select_price").find(".item-title").removeClass("active");
    +    			$(this).parents("#select_price").find(".item-title i").removeClass("icon-check");
    +    			$(this).find(".item-title").addClass("active");
    +    			$(this).find(".item-title i").addClass("icon-check");
    +    			var index = $("#select_price li").index(this);
    +    			if(index == 9){
    +    				return;
    +    			}
    +    			if(index < 8){
    +    				var text = $("#select_price li").eq(0).find(".item-title").hasClass("active");
    +    				if(text){
    +    					$(".price a").text("均价");
    +    				}else{
    +    					$(".price a").text($(this).text());
    +    				}
    +    				$("#select_price").hide();
    +    				$(".price").removeClass("active");
    +    				$(".price i").removeClass("icon-up");
    +    			}
    +    			
    +    			//默认按距离
    +    			var select_price = $("#select_price").find(".active").text();
    +    			var minPrice = 0;
    +    			var maxPrice = 0;
    +    			if(select_price.indexOf("以上")!=-1){
    +    				select_price = select_price.replace("以上","");
    +    				minPrice = parseInt(select_price);
    +    				maxPrice = 0;
    +    			}else if(select_price.indexOf("不限")!=-1){
    +    				minPrice = 0;
    +    				maxPrice = 0;
    +    			}else{
    +    				var arr = select_price.split("-");
    +    				minPrice = parseInt(arr[0]);
    +    				maxPrice = parseInt(arr[1]);
    +    			}
    +    			var select_order = $("#select_order").find(".active").attr("data-id");
    +    			var obj = $("#select_filter .topicContent .button");
    +    			var tag = "";
    +    			$.each(obj, function(key, val) {
    +    				if(obj[key].className.indexOf("active")!=-1){
    +    					tag += "_"+obj[key].text;
    +    				}
    +    			});
    +    			//区域
    +    			var regionParam = $("#select_region").find(".active").text();
    +    			if(regionParam == "不限" || regionParam == null){
    +    				regionParam = "";
    +    			}
    +    			getDistrictList(city,lat,lng,regionParam,parseInt(select_order),minPrice,maxPrice,tag);
    +    			$(".selectContent").hide();
    +    		});
    +    	}
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +
    +function getDistrictList(cityParam,latParam,lngParam,regionParam,order,minPrice,maxPrice,tag){
    +	$("#nearDistrictContainer").hide();
    +	latParam=0;
    +	lngParam=0;
    +	axios.get("/rest/index/districtList", {
    +	    params: {
    +	      city: cityParam,
    +	      lat:latParam,
    +	      lng:lngParam,
    +	      region:regionParam,
    +	      sort:order,
    +	      minAvgPrice:minPrice,
    +	      maxAvgPrice:maxPrice,
    +	      poiTags:tag
    +	    }
    +	})
    +	.then(function (response) {
    +		var html="";
    +    	dataObj2 = response.data.data.dtos;
    +    	lastIndex2 = 0;
    +    	addItems(itemsPerLoad2, 0)
    +    	if(dataObj2.length == 0){
    +    		
    +    	}else{
    +    		
    +    	}
    +    	if(dataObj2.length>5){
    +        	$(".infinite-scroll-preloader").show();
    +    	}else{
    +        	$(".infinite-scroll-preloader").hide();
    +    	}
    +    	lastIndex2 = $('.list-container li').length;
    +    	
    +	})
    +	.catch(function (error) {
    +	   console.log(error);
    +	});
    +}
    +mui.init();
    +function openNewsView(newId) {
    +//mui.openWindow({
    +//      url: 'views/news/newsDetail.html', 
    +//      id:'newsDetail.html',
    +//      extras:{
    +//        newsId:newId  //扩展参数
    +//      }
    +//  });
    +	clicked('views/news/newsDetail.html',true,false,{},{newsId:newId},function(newId){
    +		axios.post("/rest/comment/getCommentCount",{commentObjId : newId}).then(function (response) {
    +			var msg = response.data.message
    +			if(response.data.status){
    +				$("#visitComment_"+newId).text(response.data.data+"条");
    +			}
    +		})
    +		.catch(function (error) {
    +		   console.log(error);
    +		});
    +	},newId);
    +	if($("#visitCount_"+newId).text().indexOf("万")<0){
    +		var count = parseInt($("#visitCount_"+newId).text().replace("人",""))+1;
    +		$("#visitCount_"+newId).text(count+'人');
    +	}
    +}
    +function openNewView(viewHtml) {
    +	clicked(viewHtml,true,false,{},{})
    +}
    +function openIntelligentHouseView() {
    +	clicked('views/intelligentHouse/index.html',true,false,{},{})
    +}
    +function openDistWindow(city, region, name){
    +	clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
    +}
    +</script>
    +<script>
    +/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
    +/*$(document).ready(function () {
    +	var text = $(".cardNearby .card-header").text();
    +	var length = $(".cardNearby .card-header").text().length;
    +	var textStr = "";
    +	if(length > 5){
    +		textStr = text.substr(0,5);
    +		$(".cardNearby .card-header").text(textStr + "...");
    +	}
    +});*/
    +
    +
    +
    +$("body").delegate("#hotList ul li", "click", function ()  {
    +	var select_city = $(this).find("a").attr("data-city");
    +	var select_region = $(this).find("a").attr("data-region");
    +	var select_name = $(this).find("a").attr("data-name");
    +	saveHistory({district:select_region,name:select_name,city:select_city})
    +	//clicked(BASE_PATH+'/district/details?city='+select_city+'&region='+select_region+'&name='+select_name,true);
    +	if(cat == "rent"){
    +		clicked('views/rent/rent.html',true,false,{},{city:select_city,region:select_region,name:select_name})
    +	}else{
    +		clicked('views/district/detail.html',true,false,{},{city:select_city,region:select_region,name:select_name});
    +	}
    +	
    +	//var url = '../district/details?city='+select_city+"&region="+select_region+"&name="+select_name;
    +	//clicked(url, true);
    +});
    +
    +
    +
    +
    +</script>
    +
    +</body>
    +</html>
    \ No newline at end of file